:root {
  --bg: #ffffff;
  --ink: #111d3f;
  --ink-soft: #4c5876;
  --muted: #7c8296;
  --line: #d9d5e8;
  --line-soft: #ece9f5;
  --panel: #f7f6fb;
  --panel-strong: #f0eef8;
  --rose: #a77d91;
  --leaf: #63795f;
  --brass: #b59a62;
  --success: #16825d;
  --danger: #b6424f;
  --warning: #a96d18;
  --shadow: 0 18px 50px rgba(18, 29, 63, 0.08);
  --serif: "Cormorant Garamond", "Noto Serif JP", serif;
  --jp-serif: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", system-ui, sans-serif;
}

.has-product-image {
  background: #f4f2ef;
}

.has-product-image::before,
.has-product-image::after {
  display: none;
}

.has-product-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.customer-admin-list {
  display: grid;
}

.customer-admin-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(240px, 1.5fr) minmax(250px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.customer-admin-row:last-child {
  border-bottom: 0;
}

.customer-admin-primary,
.customer-admin-address {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.customer-admin-primary a,
.customer-admin-primary span,
.customer-admin-address span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.customer-admin-address strong {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.customer-admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(64px, 1fr));
  gap: 10px;
  margin: 0;
}

.customer-admin-stats div {
  display: grid;
  gap: 4px;
}

.customer-admin-stats dt {
  color: var(--muted);
  font-size: 11px;
}

.customer-admin-stats dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.order-detail-grid section {
  padding: 14px;
  border: 1px solid var(--line-soft);
  background: #fff;
}

.order-detail-grid h3 {
  margin: 0 0 10px;
  font-size: 13px;
}

.order-detail-grid dl,
.order-detail-items,
.order-option-row {
  display: grid;
  gap: 7px;
  margin: 0;
}

.order-detail-grid dl > div,
.order-detail-items > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}

.order-detail-grid dt,
.order-option-row span {
  color: var(--muted);
}

.order-detail-grid dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.order-option-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
}

.refund-form {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(220px, 1fr);
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #c9a8a2;
  background: #fffafa;
}

.refund-form-head,
.refund-form .check-row,
.refund-form .inline-warning,
.refund-form .shipping-form-actions {
  grid-column: 1 / -1;
}

.refund-form-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.refund-form label:not(.check-row) {
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.refund-form input {
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.danger-text {
  color: #8b3730;
}

.button.danger {
  border-color: #8b3730;
  background: #8b3730;
  color: #fff;
}

@media (max-width: 900px) {
  .customer-admin-row,
  .order-detail-grid,
  .refund-form {
    grid-template-columns: 1fr;
  }

  .customer-admin-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .refund-form-head,
  .refund-form .check-row,
  .refund-form .inline-warning,
  .refund-form .shipping-form-actions {
    grid-column: 1;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.ui-locked {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 74px;
  padding: 0 56px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
}

.sandbox-notice {
  padding: 8px 20px;
  border-bottom: 1px solid rgba(117, 79, 83, 0.22);
  background: #f7eeee;
  color: #67474b;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.checkout-return {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px max(20px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid var(--line);
  background: #f8f9f7;
}

.checkout-return > div {
  display: grid;
  gap: 3px;
}

.checkout-return strong {
  font-size: 14px;
}

.checkout-return span {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.checkout-return .checkout-referral {
  margin-top: 5px;
  color: var(--ink);
  font-size: 12px;
}

.referral-photo-claim {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(43, 89, 72, 0.18);
}

.referral-photo-claim > a,
.admin-post-link {
  color: var(--leaf);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.referral-photo-claim-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.42fr);
  gap: 8px 10px;
  width: min(720px, 100%);
}

.referral-photo-claim-form > label:not(.check-row) {
  display: grid;
  gap: 4px;
}

.referral-photo-claim-form input[type="url"],
.referral-photo-claim-form input:not([type]) {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.referral-photo-claim-form .check-row {
  margin: 0;
}

.referral-photo-claim-form button {
  justify-self: start;
}

.checkout-return-note {
  color: var(--muted);
  font-size: 12px;
}

.checkout-return.confirmed {
  border-color: #b9dfd1;
  background: #edf8f3;
}

.checkout-return.failed {
  border-color: #efd0d4;
  background: #fff4f5;
}

.status-spinner {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: status-spin 0.8s linear infinite;
}

@keyframes status-spin {
  to { transform: rotate(360deg); }
}

.checkout-sandbox-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(117, 79, 83, 0.28);
  background: #fbf5f5;
  color: #67474b;
  font-size: 12px;
  line-height: 1.6;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 31px;
  height: 31px;
  color: var(--ink);
}

.brand-text {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand-sub {
  display: block;
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.store-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
}

.nav-link,
.utility-link {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}

.nav-link {
  position: relative;
  padding: 27px 0 25px;
  color: var(--ink-soft);
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
  content: "";
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.store-utilities {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.icon-button,
.utility-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
}

.utility-link {
  min-width: auto;
  padding: 0 8px;
  gap: 7px;
  font-size: 13px;
}

.icon-button:hover,
.utility-link:hover {
  border-color: var(--line);
  background: var(--panel);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--rose);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: #fff;
  transform: translateY(-102%);
  transition: transform 0.5s cubic-bezier(0.16, 0.7, 0.2, 1);
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-menu-links {
  display: grid;
  padding: 12px 20px;
}

.mobile-menu-links a,
.mobile-menu-links button {
  display: flex;
  align-items: center;
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid #f1eff6;
  background: transparent;
  color: var(--ink);
  font-family: var(--jp-serif);
  font-size: 19px;
  text-align: left;
  text-decoration: none;
}

.mobile-menu p {
  margin: auto 20px 26px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, 0.82fr);
  align-items: center;
  gap: 68px;
  width: min(100% - 112px, 1180px);
  margin: 0 auto;
  padding: 76px 0 90px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  background: #fff;
}

.hero-eyebrow,
.section-kicker {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: 60px;
  font-weight: 500;
  line-height: 1.14;
  color: var(--ink);
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 440px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  background: #ececf1;
  color: #858997;
  border-color: #d8d9e1;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.button.small {
  min-height: 36px;
  padding: 0 15px;
  font-size: 12px;
}

.hero-media {
  position: relative;
  min-width: 0;
  background: transparent;
  border-left: 0;
}

.asset-crop {
  background-image: url("./assets/flower-products-sheet.jpg");
  background-repeat: no-repeat;
  background-size: 300% 200%;
}

.hero-shot {
  min-height: 0;
}

.hero-shot.main {
  position: relative;
  z-index: 1;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-position: 0% 0%;
  animation: gentle-zoom 22s ease-in-out infinite alternate;
}

.hero-mat,
.custom-mat {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 1px solid #ece3e8;
  border-radius: 12px;
  background: #f6f1f3;
  content: "";
}

@keyframes gentle-zoom {
  from { background-size: 300% 200%; }
  to { background-size: 330% 220%; }
}

.category-rail,
.section,
.about-section,
.custom-teaser {
  width: min(100% - 112px, 1180px);
  margin-right: auto;
  margin-left: auto;
}

.category-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  margin-top: 18px;
  border: 1px solid var(--line);
}

.category-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 13px 28px;
  border-right: 1px solid var(--line);
  background: #fff;
  text-align: left;
}

.category-item:last-child {
  border-right: 0;
}

.category-item:hover,
.category-item.active {
  background: var(--panel);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--rose);
}

.category-name {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.1;
}

.category-ja {
  display: block;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 12px;
}

.section {
  padding: 86px 0 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-title {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.9;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.select-lite {
  min-width: 140px;
  height: 36px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.collection-unavailable,
.collection-empty {
  width: 100%;
  margin: 0;
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  text-align: center;
}

.collection-unavailable h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.collection-unavailable p {
  margin: 0 0 16px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 29, 63, 0.05);
  transition:
    border-color 140ms ease,
    box-shadow 320ms ease;
}

.product-card:hover {
  border-color: #cfc9df;
  box-shadow: 0 26px 50px -28px rgba(17, 29, 63, 0.4);
}

.product-art {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  transition: background-size 1.1s cubic-bezier(0.16, 0.7, 0.2, 1);
}

.product-card:hover .product-art {
  background-size: 316% 211%;
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 4px;
  background: var(--rose);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px -3px rgba(17, 29, 63, 0.4);
}

.product-card.leaf .product-tag {
  background: var(--leaf);
}

.product-card.brass .product-tag {
  background: var(--brass);
}

.asset-crop.p1 {
  background-position: 0% 0%;
}

.asset-crop.p2 {
  background-position: 50% 0%;
}

.asset-crop.p3 {
  background-position: 100% 0%;
}

.asset-crop.p4 {
  background-position: 0% 100%;
}

.asset-crop.p5 {
  background-position: 50% 100%;
}

.asset-crop.p6 {
  background-position: 100% 100%;
}

.favorite {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(217, 213, 232, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.favorite.active {
  color: var(--rose);
  background: #fff;
}

.product-body {
  display: flex;
  min-height: 226px;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
}

.product-name {
  margin: 0;
  color: var(--ink);
  font-family: var(--jp-serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}

.product-description {
  flex: 1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.price {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
}

.tax-label {
  color: var(--muted);
  font-size: 11.5px;
}

.stock {
  color: var(--muted);
  font-size: 12px;
}

.add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.add-button:hover {
  border-color: #20305f;
  background: #20305f;
  color: #fff;
}

.product-media-link,
.product-name a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.product-actions .add-button {
  width: 100%;
  margin-top: 0;
  padding: 0 12px;
}

.detail-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.detail-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.detail-main,
.custom-main {
  background: #fff;
}

.detail-hero,
.custom-hero,
.custom-layout {
  width: min(100% - 88px, 1320px);
  margin: 0 auto;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(380px, 0.95fr) minmax(360px, 0.78fr);
  gap: 54px;
  align-items: start;
  padding: 54px 0 42px;
}

.detail-gallery {
  display: grid;
  gap: 12px;
}

.detail-photo {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail-thumbs .asset-crop {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
}

.detail-copy {
  position: sticky;
  top: 98px;
  padding-top: 10px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  text-decoration: none;
}

.detail-copy h1,
.custom-hero-copy h1 {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: 43px;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: 0.07em;
}

.detail-price {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
}

.detail-tax,
.mobile-purchase-bar small {
  margin-left: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
}

.detail-copy p,
.custom-hero-copy p {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-family: var(--jp-serif);
  line-height: 1.9;
}

.spec-list {
  display: grid;
  margin: 28px 0 0;
  border-top: 1px solid var(--line-soft);
}

.spec-list div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.spec-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.spec-list dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 30px;
}

.detail-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 32px 44px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
}

.detail-band h2 {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: 25px;
  font-weight: 400;
}

.detail-band p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.detail-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.detail-notes span,
.summary-lines span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.section-compact {
  padding-top: 42px;
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-purchase-bar,
.custom-mobile-bar {
  display: none;
}

.custom-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(300px, 0.68fr);
  gap: 46px;
  align-items: center;
  padding: 48px 0 34px;
}

.custom-hero-copy {
  max-width: 620px;
}

.custom-preview {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, #f8f7fc);
}

.preview-bouquet {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 18px;
}

.preview-bouquet .asset-crop {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  opacity: calc(0.42 + (var(--count) * 0.029));
}

.preview-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-top: 1px solid var(--line-soft);
}

.preview-caption span {
  color: var(--ink-soft);
  font-size: 13px;
}

.preview-caption strong {
  font-family: var(--serif);
  font-size: 24px;
}

.preview-caption small,
.custom-mobile-bar small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
}

.custom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
  padding-bottom: 56px;
}

.custom-editor {
  display: grid;
  gap: 14px;
}

.custom-panel,
.summary-card {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #fff;
}

.custom-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
}

.custom-panel-head h2,
.summary-card h2 {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: 19px;
  font-weight: 500;
}

.custom-panel-head span {
  color: var(--muted);
  font-size: 13px;
}

.flower-list {
  display: grid;
}

.flower-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.flower-row:last-child {
  border-bottom: 0;
}

.flower-thumb {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
}

.flower-row strong {
  display: block;
  font-family: var(--jp-serif);
  font-weight: 500;
}

.flower-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.custom-qty button:disabled {
  color: #b9bdca;
  cursor: not-allowed;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px 16px;
}

.choice-card {
  display: grid;
  gap: 7px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.choice-card span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.choice-card strong {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 18px;
}

.choice-card.selected {
  border-color: var(--ink);
  background: #f8f7fc;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.choice-card .choice-swatch {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(17, 29, 63, 0.14);
  border-radius: 50%;
  background: var(--swatch, #fff);
}

.custom-choice-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.custom-choice-copy strong,
.custom-choice-copy small,
.custom-choice-name {
  display: block;
}

.custom-choice-copy small,
.custom-choice-name {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.custom-choice-name {
  text-align: left;
}

.custom-summary {
  position: sticky;
  top: 92px;
}

.summary-card {
  padding: 18px;
}

.summary-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.summary-breakdown {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.summary-breakdown div,
.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-breakdown span,
.summary-total span {
  color: var(--muted);
  font-size: 13px;
}

.summary-breakdown strong,
.summary-total strong {
  font-family: var(--serif);
  font-size: 19px;
}

.summary-total {
  margin: 16px 0;
}

.summary-total strong {
  font-size: 29px;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1fr);
  gap: 56px;
  width: min(100% - 112px, 1180px);
  margin: 0 auto;
  padding: 68px 0 0;
}

.footer-wordmark {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.footer-brand p {
  max-width: 30ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links h2 {
  margin: 0 0 4px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.footer-links a,
.footer-links button {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--ink);
}

.footer-note {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  background: var(--panel);
  box-shadow: 50vw 0 0 var(--panel), -50vw 0 0 var(--panel);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.legal-main {
  background: #fff;
}

.legal-hero,
.legal-layout {
  width: min(100% - 88px, 1120px);
  margin: 0 auto;
}

.legal-hero {
  padding: 50px 0 28px;
}

.legal-hero h1 {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.legal-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  line-height: 1.85;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 40px;
}

.legal-nav {
  position: sticky;
  top: 92px;
  display: grid;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #fff;
}

.legal-nav a {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.legal-nav a:last-child {
  border-bottom: 0;
}

.legal-nav a.active,
.legal-nav a:hover {
  color: var(--ink);
  background: var(--panel);
}

.legal-content {
  display: grid;
  gap: 14px;
}

.legal-section {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #fff;
}

.legal-section h2 {
  margin: 0;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--jp-serif);
  font-size: 20px;
  font-weight: 500;
}

.legal-section dl {
  margin: 0;
}

.legal-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.legal-row:last-child {
  border-bottom: 0;
}

.legal-row dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.legal-row dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.75;
}

.legal-updated {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.trust-strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100% - 112px, 1180px);
  margin: 0 auto;
  padding: 50px 0;
}

.trust-inner > div {
  padding: 0 40px;
  text-align: center;
}

.trust-inner > div + div {
  border-left: 1px solid #e2dfee;
}

.trust-inner h2 {
  margin: 0 0 8px;
  font-family: var(--jp-serif);
  font-size: 16px;
  font-weight: 500;
}

.trust-inner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.85;
}

.custom-teaser {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
  margin-top: 92px;
  padding: 78px 0;
}

.custom-teaser::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc((100vw - 100%) / -2);
  z-index: -1;
  width: 100vw;
  background: var(--panel);
  content: "";
}

.custom-teaser-media {
  position: relative;
  min-width: 0;
}

.custom-teaser-photo {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: #fff;
  animation: gentle-zoom 26s ease-in-out infinite alternate;
}

.custom-teaser-copy h2,
.about-title h2 {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.25;
}

.custom-teaser-copy p,
.about-copy p {
  max-width: 54ch;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.95;
}

.custom-limit {
  color: var(--rose) !important;
  font-size: 12.5px !important;
}

.custom-teaser-copy .button {
  margin-top: 24px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.64fr) minmax(0, 1fr);
  gap: 70px;
  padding: 92px 0;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.about-actions span {
  color: var(--muted);
  font-size: 13px;
}

.consult-strip {
  display: grid;
  grid-template-columns: auto 1fr auto minmax(260px, 0.8fr);
  align-items: center;
  gap: 26px;
  margin-top: 22px;
  margin-bottom: 34px;
  padding: 19px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: linear-gradient(90deg, #f8f7fc, #ffffff 68%, #f6f3fb);
}

.instagram-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
}

.strip-title {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: 18px;
}

.strip-copy {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-gallery .asset-crop {
  min-height: 58px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}

.content-band {
  border-top: 1px solid var(--line-soft);
  background: var(--panel);
}

.guide-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(320px, 1.15fr);
  gap: 40px;
  width: min(100% - 88px, 1510px);
  margin: 0 auto;
  padding: 54px 0;
}

.guide-section h2 {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.07em;
}

.guide-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.guide-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 20px 24px;
  background: #fff;
}

.guide-row strong {
  font-family: var(--serif);
  font-size: 19px;
}

.guide-row p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.cart-drawer.open {
  pointer-events: auto;
}

.cart-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 29, 63, 0.34);
  opacity: 0;
  backdrop-filter: blur(2px);
  transition: opacity 0.4s ease;
}

.cart-drawer.open .cart-scrim {
  opacity: 1;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(100vw, 440px);
  height: 100%;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -40px rgba(17, 29, 63, 0.5);
  transform: translateX(102%);
  transition: transform 0.5s cubic-bezier(0.16, 0.7, 0.2, 1);
}

.cart-drawer.open .cart-panel {
  transform: translateX(0);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-title {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: 22px;
  font-weight: 400;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 14px 20px;
}

.cart-empty {
  display: grid;
  place-items: center;
  min-height: 240px;
  color: var(--muted);
  text-align: center;
}

.cart-line {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.cart-thumb {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}

.cart-line h4 {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 30px 34px 30px;
  align-items: center;
  overflow: hidden;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.qty-control button {
  height: 30px;
  border: 0;
  background: #fff;
}

.qty-control span {
  text-align: center;
  font-size: 13px;
}

.cart-footer {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line-soft);
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
}

.checkout-note,
.status-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.checkout-drawer,
.legal-dialog {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.checkout-drawer.open,
.legal-dialog {
  pointer-events: auto;
}

.checkout-scrim,
.legal-dialog-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 29, 63, 0.36);
  opacity: 0;
  backdrop-filter: blur(2px);
  transition: opacity 0.28s ease;
}

.checkout-drawer.open .checkout-scrim,
.legal-dialog .legal-dialog-scrim {
  opacity: 1;
}

.checkout-panel,
.legal-dialog-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(100vw, 560px);
  height: 100%;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -40px rgba(17, 29, 63, 0.5);
  transform: translateX(102%);
  transition: transform 0.42s cubic-bezier(0.16, 0.7, 0.2, 1);
}

.checkout-drawer.open .checkout-panel,
.legal-dialog .legal-dialog-panel {
  transform: translateX(0);
}

.panel-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.checkout-form,
.legal-dialog-content {
  flex: 1;
  overflow: auto;
  padding: 18px 20px calc(22px + env(safe-area-inset-bottom));
}

.checkout-section {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 18px;
}

.checkout-section.compact {
  display: grid;
  gap: 10px;
}

.checkout-section h3 {
  margin: 0 0 13px;
  font-family: var(--jp-serif);
  font-size: 18px;
  font-weight: 500;
}

.checkout-item-list {
  display: grid;
  gap: 12px;
}

.checkout-item-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #fff;
}

.checkout-thumb {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
}

.checkout-item-main {
  min-width: 0;
}

.checkout-item-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}

.checkout-item-title strong {
  font-family: var(--jp-serif);
  font-weight: 500;
}

.checkout-item-title span {
  color: var(--muted);
  white-space: nowrap;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-grid.two {
  grid-template-columns: 1fr 1fr;
}

.checkout-grid.tight {
  gap: 9px;
}

.checkout-choice-group {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.checkout-choice-group:first-child {
  margin-top: 0;
}

.choice-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.checkout-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.checkout-choice-grid.wide {
  grid-template-columns: 1fr;
}

.checkout-choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.checkout-choice-card.selected {
  border-color: var(--ink);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.choice-swatch {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--swatch);
}

.choice-copy {
  display: grid;
  gap: 2px;
}

.choice-copy strong,
.choice-copy small,
.choice-name {
  display: block;
  line-height: 1.35;
}

.choice-copy strong {
  font-size: 13px;
}

.choice-copy small {
  color: var(--ink-soft);
  font-size: 12px;
}

.choice-name {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
}

.checkout-choice-group.invalid .checkout-choice-card {
  border-color: var(--danger);
}

.checkout-choice-group em {
  color: var(--danger);
  font-size: 11px;
  font-style: normal;
}

.checkout-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.checkout-field span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.checkout-field input,
.checkout-field select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  padding: 0 11px;
}

.checkout-field.invalid input,
.checkout-field.invalid select {
  border-color: var(--danger);
  background: #fff8f9;
}

.checkout-field em {
  color: var(--danger);
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
}

.checkout-hint,
.checkout-empty {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.material-preview,
.box-preview,
.shipping-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: center;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--panel);
}

.shipping-notice {
  grid-template-columns: 1fr;
  margin-top: 10px;
}

.material-swatch {
  width: 52px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.35), rgba(17,29,63,0.08)),
    var(--swatch);
}

.material-preview strong,
.box-preview strong,
.shipping-notice strong {
  display: block;
  font-family: var(--jp-serif);
  font-size: 14px;
  font-weight: 500;
}

.material-preview p,
.box-preview p,
.shipping-notice p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.box-visual {
  position: relative;
  width: 62px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.42), rgba(17,29,63,0.08)),
    var(--box-color);
  box-shadow: inset 0 9px 0 rgba(255,255,255,0.28);
}

.box-visual::before,
.box-visual::after {
  position: absolute;
  background: rgba(17, 29, 63, 0.18);
  content: "";
}

.box-visual::before {
  top: 14px;
  right: 0;
  left: 0;
  height: 1px;
}

.box-visual::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.delivery-date {
  margin-top: 10px;
}

.check-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.check-row input {
  margin-top: 4px;
}

.check-row.invalid {
  color: var(--danger);
}

.checkout-final-note {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-total-card {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--panel);
}

.checkout-total-card h3 {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: 18px;
  font-weight: 500;
}

.breakdown-list {
  display: grid;
  gap: 8px;
}

.breakdown-block {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: #fff;
}

.breakdown-head,
.breakdown-line,
.total-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.breakdown-head strong {
  font-family: var(--jp-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.breakdown-head span {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.breakdown-line {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.breakdown-line b {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.total-lines {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.checkout-total-card span {
  color: var(--muted);
  font-size: 13px;
}

.checkout-total-card strong {
  font-family: var(--serif);
  font-size: 18px;
}

.checkout-total-card .grand {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.checkout-total-card .grand strong {
  font-size: 25px;
}

.checkout-contract-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #fff;
}

.checkout-contract-summary h3 {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: 17px;
  font-weight: 500;
}

.checkout-contract-summary dl {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line-soft);
}

.checkout-contract-summary dl > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.6;
}

.checkout-contract-summary dt {
  color: var(--muted);
  font-weight: 700;
}

.checkout-contract-summary dd {
  margin: 0;
  color: var(--ink-soft);
}

.checkout-contract-summary .button {
  justify-self: start;
}

.checkout-errors {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid #f1c4ca;
  border-radius: 5px;
  background: #fff0f2;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}

.checkout-submit {
  min-height: 48px;
}

.legal-dialog {
  z-index: 100;
}

.legal-dialog-panel {
  left: 50%;
  right: auto;
  top: 50%;
  width: min(calc(100vw - 28px), 760px);
  height: min(calc(100vh - 60px), 720px);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translate(-50%, calc(-50% + 18px));
  opacity: 0;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.legal-dialog .legal-dialog-panel {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.legal-dialog-content {
  padding: 18px 20px 22px;
}

.legal-dialog-content > p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.legal-dialog-section {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  margin-bottom: 12px;
}

.legal-dialog-section h3 {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--jp-serif);
  font-size: 17px;
  font-weight: 500;
}

body.admin-route {
  --ink: #202621;
  --ink-soft: #505952;
  --muted: #79817b;
  --line: #d4d9d4;
  --line-soft: #e7eae7;
  --panel: #f3f5f2;
  --panel-strong: #e9ede8;
  background: #f6f7f5;
}

.admin-auth-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  background: #f6f7f5;
}

.admin-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.92);
}

.admin-auth-header .brand-mark {
  width: 32px;
  height: 32px;
}

.admin-auth-header .brand-text {
  font-size: 26px;
}

.admin-auth-back {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.admin-auth-back:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.admin-auth-main {
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.admin-auth-panel {
  width: min(100%, 410px);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(28, 36, 30, 0.07);
}

.admin-auth-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border: 1px solid #cdd6cf;
  border-radius: 50%;
  color: #46614d;
  background: #f2f6f2;
}

.admin-auth-eyebrow {
  margin: 0 0 8px;
  color: #637168;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.admin-auth-panel h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
}

.admin-auth-lead {
  margin: 8px 0 26px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.admin-auth-form {
  display: grid;
  gap: 10px;
}

.admin-auth-form label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.admin-auth-form input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: none;
  background: #fff;
  color: var(--ink);
}

.admin-auth-form input:focus {
  border-color: #6f8675;
  box-shadow: 0 0 0 3px rgba(78, 112, 87, 0.12);
}

.admin-auth-form .button {
  min-height: 44px;
  margin-top: 4px;
  background: #26372b;
}

.google-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
}

.admin-auth-error {
  margin: 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.6;
}

.admin-auth-checking {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: 12px;
}

.admin-auth-footer {
  padding: 18px 24px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  text-align: center;
}

.admin-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 300px;
  min-height: 100vh;
  background: #f6f7f5;
}

.admin-mobile-header,
.admin-mobile-menu,
.admin-product-cards,
.mobile-editor-back {
  display: none;
}

.admin-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.admin-mobile-menu-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 29, 63, 0.32);
}

.admin-mobile-menu-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(88vw, 340px);
  height: 100%;
  overflow-y: auto;
  border-right: 1px solid var(--line-soft);
  background: #f7f8f6;
  box-shadow: 18px 0 44px rgba(17, 29, 63, 0.16);
}

.admin-mobile-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}

.admin-mobile-menu-head div,
.admin-mobile-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-mobile-menu-head span,
.admin-mobile-title span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-mobile-menu-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 14px 16px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
}

.admin-product-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 92px;
  padding: 11px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.admin-product-card-image {
  width: 68px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
}

.admin-product-card-copy,
.admin-product-card-status {
  display: flex;
}

.admin-product-card-copy {
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.admin-product-card-title,
.admin-product-card-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-card-title {
  font-size: 13px;
  font-weight: 700;
}

.admin-product-card-meta {
  color: var(--muted);
  font-size: 10px;
}

.admin-product-card-status {
  flex-wrap: wrap;
  gap: 5px;
}

.admin-product-card-status .badge {
  min-height: 21px;
  padding-inline: 7px;
  font-size: 10px;
}

.admin-product-card-arrow {
  color: var(--muted);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--line-soft);
  background: #f1f3f0;
}

.admin-brand {
  padding: 22px 28px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.admin-brand .brand-text {
  font-size: 30px;
}

.admin-nav {
  display: grid;
  gap: 3px;
  padding: 18px 12px;
}

.admin-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.admin-nav button.active,
.admin-nav button:hover {
  border-color: #d8ddd8;
  background: #fff;
}

.admin-nav button.active {
  color: #294b33;
  box-shadow: inset 3px 0 0 #5d8067;
}

.admin-main {
  min-width: 0;
  border-right: 1px solid var(--line-soft);
  background: #f7f8f6;
}

.admin-topbar,
.admin-page-head,
.admin-toolbar,
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-topbar {
  min-height: 56px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b8bdc8;
}

.status-dot.live {
  background: var(--success);
}

.admin-connection {
  display: grid;
  gap: 8px;
  margin: 0 13px 16px;
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
}

.admin-connection label,
.connection-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.admin-user-email {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-workspace {
  align-content: start;
}

.access-add-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 150px auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
}

.access-add-form .field {
  margin: 0;
}

.access-user-list,
.access-event-list {
  display: grid;
}

.access-user-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 130px 130px auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.access-user-row:last-child,
.access-event-row:last-child {
  border-bottom: 0;
}

.access-user-identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.access-user-identity strong,
.access-user-identity span,
.access-user-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-user-identity span,
.access-user-identity small,
.access-user-row label span {
  color: var(--muted);
  font-size: 11px;
}

.access-user-row label {
  display: grid;
  gap: 5px;
}

.access-user-row select,
.access-add-form select,
.access-add-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.access-user-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
}

.access-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.access-event-row div {
  display: grid;
  gap: 3px;
}

.access-event-row span,
.access-event-row time {
  color: var(--muted);
  font-size: 11px;
}

.connection-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.admin-connection input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.connection-error {
  color: var(--danger);
  font-size: 11px;
  line-height: 1.5;
}

.admin-page-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}

.admin-page-head h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 600;
}

.admin-page-head p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.admin-toolbar {
  padding: 16px 28px;
}

.search-field {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.search-field input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.search-field svg {
  position: absolute;
  top: 10px;
  left: 13px;
  color: var(--muted);
}

.product-table-wrap {
  margin: 0 28px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.product-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  background: #fff;
}

.product-table th,
.product-table td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.product-table th {
  background: #f3f5f2;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.product-table tr:last-child td {
  border-bottom: 0;
}

.product-table tr.selected {
  background: #eef3ef;
  outline: 1px solid #9caea0;
  outline-offset: -1px;
}

.table-product {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 11px;
}

.table-thumb {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
}

.table-product strong {
  display: block;
}

.table-product span {
  color: var(--muted);
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.badge.live {
  border-color: #bbead7;
  background: #e9fbf3;
  color: var(--success);
}

.badge.draft {
  border-color: #dde1dd;
  background: #f3f5f3;
}

.badge.soldout {
  border-color: #f1c4ca;
  background: #fff0f2;
  color: var(--danger);
}

.table-footer {
  padding: 11px 28px;
  color: var(--muted);
  font-size: 13px;
}

.admin-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: 16px;
  padding: 16px 28px 28px;
}

#admin-orders,
#admin-services,
#admin-inventory {
  scroll-margin-top: 12px;
}

.inventory-panel {
  grid-column: 1 / -1;
}

.ops-panel {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #fff;
}

.ops-panel h2 {
  margin: 0;
  padding: 15px 16px 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
}

.order-row,
.sync-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}

.order-entry {
  border-bottom: 1px solid var(--line-soft);
}

.order-entry:last-child {
  border-bottom: 0;
}

.order-entry .order-row {
  border-bottom: 0;
}

.shipping-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: end;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line-soft);
  background: #f7f8f7;
}

.shipping-form label:not(.shipping-email-option) {
  display: grid;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.shipping-form input[type="text"],
.shipping-form input:not([type]) {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.shipping-email-option {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  color: var(--ink-soft);
  font-size: 12px;
}

.shipping-email-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
}

.shipping-form-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 8px;
}

.sync-row:last-child {
  border-bottom: 0;
}

.order-row strong,
.sync-row strong {
  display: block;
  margin-bottom: 4px;
}

.order-row span,
.sync-row span {
  color: var(--muted);
}

.order-summary {
  min-width: 0;
}

.order-summary > span {
  display: block;
  overflow-wrap: anywhere;
}

.order-summary .order-date,
.order-summary .order-id {
  font-size: 11px;
}

.order-summary .order-items {
  margin-top: 4px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.inventory-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}

.inventory-event:last-child {
  border-bottom: 0;
}

.inventory-event strong,
.inventory-event span {
  display: block;
}

.inventory-event span,
.inventory-delta span,
.empty-ops {
  color: var(--muted);
}

.inventory-delta {
  min-width: 72px;
  color: var(--success);
  font-weight: 700;
  text-align: right;
}

.inventory-delta.negative {
  color: var(--danger);
}

.inventory-delta span {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 400;
}

.empty-ops {
  margin: 0;
  padding: 14px 16px;
  font-size: 12px;
}

.order-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.sync-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.freee-batch-list {
  border-top: 1px solid var(--line-soft);
}

.freee-batch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.freee-batch-row > div:first-child {
  min-width: 0;
}

.freee-batch-row strong,
.freee-batch-row span {
  display: block;
  overflow-wrap: anywhere;
}

.freee-batch-row strong {
  font-size: 11px;
}

.freee-batch-row span {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 11px;
}

.order-actions .button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.inspector {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 0;
  background: #fff;
}

.inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
}

.inspector-head h2 {
  margin: 0;
  font-size: 18px;
}

.inspector-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.selected-photo {
  aspect-ratio: 4 / 3;
  margin-bottom: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.field-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
}

.field input,
.field select {
  height: 36px;
  padding: 0 11px;
}

.field textarea {
  min-height: 108px;
  padding: 10px 11px;
  resize: vertical;
}

.product-detail-fields {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.product-image-manager {
  display: grid;
  gap: 10px;
}

.product-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-image-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--panel);
}

.product-image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-tile .icon-button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(17, 29, 63, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.primary-image-label {
  position: absolute;
  bottom: 5px;
  left: 5px;
  padding: 3px 6px;
  border-radius: 3px;
  background: rgba(17, 29, 63, 0.86);
  color: #fff;
  font-size: 10px;
}

.product-image-upload {
  justify-self: start;
  cursor: pointer;
}

.product-image-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.product-image-upload.disabled {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
}

.switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #d9dce8;
  transition: background 140ms ease;
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(17, 29, 63, 0.2);
  transition: transform 140ms ease;
  content: "";
}

.switch input:checked + span {
  background: var(--ink);
}

.switch input:checked + span::after {
  transform: translateX(20px);
}

.inspector-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.admin-workspace-shell {
  grid-template-columns: 230px minmax(0, 1fr);
}

.admin-workspace-shell .admin-main {
  border-right: 0;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--line-soft);
}

.workspace-stack {
  display: grid;
  gap: 18px;
  padding: 24px 28px;
}

.workspace-panel {
  min-width: 0;
  margin: 24px 28px;
}

.workspace-stack {
  min-width: 0;
}

.workspace-stack .workspace-panel {
  margin: 0;
}

.workspace-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.workspace-panel-head h2 {
  padding: 0;
  border: 0;
}

.workspace-panel-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.workspace-panel-head > .badge,
.campaign-history .badge,
.shipping-batch-row > .badge,
.customer-admin-row > .badge {
  justify-self: start;
}

.workspace-list-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, auto);
  align-items: end;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}

.workspace-search-field,
.workspace-filter-grid label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.workspace-search-field > div {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--muted);
}

.workspace-search-field input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
}

.workspace-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
}

.workspace-filter-grid select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 32px 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.workspace-list-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 46px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.workspace-list-summary strong {
  font-size: 16px;
}

.workspace-list-summary span {
  color: var(--muted);
  font-size: 11px;
}

.workspace-list-summary button {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.workspace-no-results {
  margin: 0;
  padding: 30px 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.workspace-order-list .order-entry:last-child {
  border-bottom: 0;
}

.admin-empty-state {
  margin: 20px;
  padding: 32px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.capacity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  padding: 20px;
}

.closed-date-form {
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.closed-date-form .field {
  margin: 0;
}

.closed-date-list {
  display: grid;
}

.closed-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.closed-date-row:last-child {
  border-bottom: 0;
}

.closed-date-row strong,
.closed-date-row span {
  display: block;
}

.closed-date-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.capacity-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.capacity-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.capacity-heading div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.capacity-heading div span {
  color: var(--muted);
  font-size: 11px;
}

.capacity-heading div strong {
  font-family: var(--jp-serif);
  font-size: 21px;
  font-weight: 500;
}

.capacity-meter {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--panel-strong);
}

.capacity-meter span {
  display: block;
  height: 100%;
  background: var(--leaf);
}

.capacity-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border: 1px solid var(--line-soft);
}

.capacity-stats div {
  padding: 9px;
  text-align: center;
}

.capacity-stats div + div {
  border-left: 1px solid var(--line-soft);
}

.capacity-stats dt {
  color: var(--muted);
  font-size: 10px;
}

.capacity-stats dd {
  margin: 3px 0 0;
  font-weight: 700;
}

.field > span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.capacity-panel .field,
.admin-form-grid .field {
  margin: 0;
}

.inline-warning {
  margin: 12px 16px;
  padding: 10px 12px;
  border-left: 3px solid var(--warning);
  background: #fff8ec;
  color: #76521f;
  font-size: 12px;
  line-height: 1.6;
}

.data-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.compact-data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.compact-data-table th,
.compact-data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
  text-align: left;
  vertical-align: middle;
}

.compact-data-table th {
  background: #fafafd;
  color: var(--ink-soft);
}

.table-actions,
.sync-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.referral-reward-table td {
  vertical-align: top;
}

.referral-reward-table td > strong,
.referral-reward-table td > small,
.referral-reward-table td > span,
.referral-reward-table td > a {
  display: block;
  margin-bottom: 5px;
}

.referral-reward-table td > small {
  max-width: 240px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.photo-review-checks {
  display: grid;
  gap: 5px;
  margin: 8px 0;
}

.photo-review-checks label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.admin-form-grid .button {
  align-self: end;
}

.campaign-history {
  border-top: 1px solid var(--line-soft);
}

.campaign-history > div,
.shipping-batch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}

.campaign-history strong,
.campaign-history span,
.shipping-batch-row strong,
.shipping-batch-row span {
  display: block;
}

.campaign-history span,
.shipping-batch-row span {
  color: var(--muted);
}

.template-workspace {
  display: grid;
  grid-template-columns: 210px minmax(360px, 1fr) minmax(300px, 0.8fr);
  align-items: start;
  min-height: calc(100vh - 150px);
  border-top: 1px solid var(--line-soft);
}

.template-list,
.template-editor,
.template-preview {
  min-width: 0;
  padding: 16px;
}

.template-list,
.template-editor {
  border-right: 1px solid var(--line-soft);
}

.template-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.template-list-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.template-list-item.active {
  border-color: #aeb9dc;
  background: #f6f8ff;
}

.template-list-item span {
  color: var(--muted);
  font-size: 10px;
}

.template-editor form {
  display: grid;
  gap: 12px;
}

.template-editor .admin-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}

.code-editor {
  min-height: 260px !important;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  line-height: 1.6;
}

.template-variables {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.template-variables code {
  padding: 4px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: var(--panel);
  font-size: 11px;
}

.template-preview-subject {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 12px;
}

.template-preview-subject span {
  color: var(--muted);
}

.template-preview iframe {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--line);
  background: #fff;
}

.template-deliveries {
  grid-column: 1 / -1;
  margin: 0 16px 16px;
}

.shipping-batch-row:last-child {
  border-bottom: 0;
}

.stripe-record {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: #fafbfc;
}

.stripe-record > div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.stripe-record span {
  color: var(--muted);
  font-size: 11px;
}

.stripe-record strong {
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 44px));
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

@media (max-width: 1220px) {
  .store-header {
    padding-inline: 40px;
  }

  .store-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    grid-template-columns: 1fr;
    width: min(100% - 80px, 760px);
    gap: 42px;
  }

  .hero-media {
    order: -1;
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  }

  .detail-hero,
  .custom-hero,
  .custom-layout {
    width: min(100% - 54px, 1320px);
  }

  .detail-hero,
  .custom-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-copy,
  .custom-summary {
    position: static;
  }

  .custom-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
  }

  .admin-shell {
    grid-template-columns: 190px minmax(0, 1fr) 300px;
  }

  .admin-workspace-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .template-workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .template-preview {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line-soft);
  }

  .template-preview iframe {
    min-height: 420px;
  }

  .admin-lower {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-auth-header {
    min-height: 62px;
    padding: 0 18px;
  }

  .admin-auth-header .brand-mark {
    display: block;
    width: 28px;
    height: 28px;
  }

  .admin-auth-main {
    padding: 28px 14px;
  }

  .admin-auth-panel {
    padding: 26px 22px;
  }

  .access-add-form,
  .access-user-row {
    grid-template-columns: 1fr;
  }

  .access-user-actions {
    justify-content: flex-start;
  }

  .store-header {
    min-height: 60px;
    padding: 0 20px;
    gap: 10px;
  }

  .checkout-return {
    align-items: flex-start;
    padding: 12px 16px;
  }

  .referral-photo-claim-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    display: none;
  }

  .brand-text {
    font-size: 21px;
    letter-spacing: 0.02em;
  }

  .brand-sub {
    display: none;
  }

  .store-utilities {
    gap: 6px;
  }

  .icon-button {
    min-width: 36px;
    min-height: 36px;
  }

  .utility-link {
    display: none;
  }

  .hero {
    display: flex;
    width: min(100% - 40px, 440px);
    flex-direction: column;
    gap: 32px;
    min-height: 0;
    padding: 32px 0 48px;
  }

  .hero-copy {
    padding: 0;
    background: #fff;
  }

  .hero-title {
    font-size: 33px;
    line-height: 1.28;
    letter-spacing: 0;
  }

  .hero-copy p {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.95;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .hero-actions .button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 52px;
    padding: 0 14px;
  }

  .hero-media {
    order: 0;
    width: 100%;
    display: block;
    min-height: 0;
    background: #fff;
    border-left: 0;
  }

  .hero-copy {
    order: 1;
  }

  .hero-shot.main {
    display: block;
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 5;
    background-size: 300% 200%;
    background-position: 0% 0%;
  }

  .hero-mat,
  .custom-mat {
    top: 14px;
    left: 14px;
    border-radius: 10px;
  }

  .category-rail,
  .section,
  .about-section,
  .custom-teaser,
  .consult-strip,
  .guide-section {
    width: min(100% - 40px, 440px);
  }

  .category-rail {
    grid-template-columns: 1fr;
  }

  .category-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .category-item:last-child {
    border-bottom: 0;
  }

  .section-head {
    max-width: none;
    margin: 0 0 32px;
    text-align: left;
  }

  .section-title {
    font-size: 26px;
  }

  .toolbar {
    justify-content: space-between;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-card {
    border-radius: 8px;
  }

  .product-body {
    min-height: 0;
    padding: 18px 18px 20px;
  }

  .product-name {
    min-height: 0;
    font-size: 17px;
    line-height: 1.5;
  }

  .product-meta {
    margin-top: 4px;
  }

  .price {
    font-size: 17px;
  }

  .add-button {
    min-height: 44px;
    margin-top: 0;
    font-size: 13px;
  }

  .product-actions {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .product-actions .add-button {
    width: 100%;
    margin-top: 0;
  }

  .detail-link {
    justify-content: center;
    min-height: 44px;
  }

  .detail-hero,
  .custom-hero,
  .custom-layout {
    width: min(100% - 28px, 1320px);
  }

  .detail-hero {
    gap: 20px;
    padding: 16px 0 92px;
  }

  .detail-gallery {
    gap: 8px;
  }

  .detail-photo {
    aspect-ratio: 1 / 1.12;
  }

  .detail-thumbs {
    gap: 7px;
  }

  .detail-copy {
    padding-top: 0;
  }

  .back-link {
    margin-bottom: 13px;
    font-size: 14px;
  }

  .detail-copy h1,
  .custom-hero-copy h1 {
    font-size: 27px;
    line-height: 1.45;
    letter-spacing: 0.06em;
  }

  .detail-price {
    margin-top: 13px;
    font-size: 25px;
  }

  .detail-copy p,
  .custom-hero-copy p {
    margin-top: 13px;
    font-size: 13px;
    line-height: 1.75;
  }

  .spec-list {
    margin-top: 18px;
  }

  .spec-list div {
    grid-template-columns: 72px 1fr;
    gap: 10px;
    padding: 12px 0;
    font-size: 13px;
  }

  .detail-actions {
    display: none;
  }

  .detail-band {
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }

  .detail-band h2 {
    font-size: 21px;
  }

  .detail-notes {
    justify-content: flex-start;
  }

  .compact-grid {
    grid-template-columns: 1fr;
  }

  .mobile-purchase-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
  }

  .mobile-purchase-bar span {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
  }

  .mobile-purchase-bar .button {
    min-height: 42px;
    padding: 0 17px;
  }

  .custom-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 0 16px;
  }

  .custom-preview {
    order: -1;
  }

  .preview-bouquet {
    gap: 6px;
    padding: 12px;
  }

  .custom-layout {
    padding-bottom: 94px;
  }

  .custom-panel-head {
    min-height: 50px;
    padding: 0 13px;
  }

  .flower-row {
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
    padding: 12px 13px;
  }

  .custom-qty {
    grid-template-columns: 28px 30px 28px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 13px 13px;
  }

  .choice-card {
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 52px;
  }

  .custom-summary {
    display: none;
  }

  .custom-mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
  }

  .custom-mobile-bar span {
    display: block;
    color: var(--muted);
    font-size: 12px;
  }

  .custom-mobile-bar strong {
    font-family: var(--serif);
    font-size: 22px;
  }

  .custom-mobile-bar .button {
    min-height: 42px;
    padding: 0 20px;
  }

  .trust-inner {
    grid-template-columns: 1fr;
    width: min(100% - 40px, 440px);
    padding: 36px 0;
    gap: 22px;
  }

  .trust-inner > div {
    padding: 0;
    text-align: left;
  }

  .trust-inner > div + div {
    border-left: 0;
  }

  .custom-teaser {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 58px;
    padding: 58px 0;
  }

  .custom-teaser-copy h2,
  .about-title h2 {
    font-size: 26px;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 58px 0;
  }

  .site-footer {
    margin-top: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    width: min(100% - 40px, 440px);
    gap: 32px;
    padding: 50px 0 0;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-links {
    display: flex;
  }

  .footer-note {
    display: grid;
    gap: 8px;
    margin-top: 4px;
  }

  .legal-hero,
  .legal-layout {
    width: min(100% - 28px, 1120px);
  }

  .legal-hero {
    padding: 28px 0 18px;
  }

  .legal-hero h1 {
    font-size: 26px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 22px;
  }

  .legal-nav {
    position: static;
  }

  .legal-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 13px 14px;
  }

  .legal-section h2 {
    padding: 14px;
    font-size: 18px;
  }

  .consult-strip {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 20px;
    padding: 18px;
  }

  .mini-gallery {
    display: none;
  }

  .guide-section {
    grid-template-columns: 1fr;
    padding: 40px 0;
  }

  .guide-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cart-panel,
  .checkout-panel {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(92vh, 780px);
    border-top: 1px solid var(--line);
    border-left: 0;
    border-radius: 12px 12px 0 0;
    transform: translateY(104%);
  }

  .cart-drawer.open .cart-panel,
  .checkout-drawer.open .checkout-panel {
    transform: translateY(0);
  }

  .checkout-form {
    padding: 16px 14px calc(18px + env(safe-area-inset-bottom));
  }

  .checkout-item-card {
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 10px;
  }

  .checkout-item-title {
    display: grid;
    gap: 4px;
  }

  .checkout-item-title span {
    white-space: normal;
  }

  .checkout-grid,
  .checkout-grid.two,
  .checkout-grid.tight {
    grid-template-columns: 1fr;
  }

  .checkout-choice-grid,
  .checkout-choice-grid.wide {
    grid-template-columns: 1fr;
  }

  .checkout-choice-card {
    min-height: 56px;
  }

  .checkout-field input,
  .checkout-field select {
    height: 44px;
  }

  .material-preview,
  .box-preview {
    grid-template-columns: 48px 1fr;
  }

  .material-swatch,
  .box-visual {
    width: 48px;
  }

  .check-row {
    font-size: 12.5px;
  }

  .legal-dialog-panel {
    width: calc(100vw - 20px);
    height: min(calc(100vh - 48px), 720px);
  }

  .legal-dialog-content {
    padding: 15px 14px 18px;
  }

  .order-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px 14px;
  }

  .order-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .admin-shell {
    display: block;
    min-height: 100dvh;
  }

  body.admin-route,
  .admin-main {
    background: #f6f7f5;
  }

  body.admin-mobile-editor-open,
  body.admin-mobile-menu-open {
    overflow: hidden;
  }

  .admin-mobile-header {
    position: sticky;
    top: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    min-height: 58px;
    padding: 7px 10px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.97);
  }

  .admin-mobile-header .icon-button {
    width: 42px;
    height: 42px;
  }

  .admin-mobile-title {
    padding-inline: 10px;
  }

  .admin-mobile-title strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-mobile-menu.open {
    display: block;
  }

  .admin-mobile-nav {
    gap: 4px;
    padding: 12px 10px;
  }

  .admin-mobile-nav button {
    min-height: 48px;
    padding-inline: 14px;
    font-size: 14px;
  }

  .admin-main {
    min-height: calc(100dvh - 58px);
    border-right: 0;
  }

  .admin-topbar {
    display: none;
  }

  .admin-page-head {
    gap: 14px;
    padding: 17px 14px 15px;
  }

  .admin-page-head h1 {
    font-size: 20px;
  }

  .admin-page-head p {
    font-size: 11px;
    line-height: 1.65;
  }

  .admin-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-actions .button {
    width: 100%;
    min-height: 42px;
    padding-inline: 8px;
  }

  .admin-toolbar {
    gap: 8px;
    padding: 12px 14px;
  }

  .admin-toolbar > span {
    font-size: 11px;
  }

  .product-table-wrap,
  .table-footer {
    display: none;
  }

  .admin-product-cards {
    display: grid;
    gap: 8px;
    padding: 0 14px 20px;
  }

  .workspace-panel,
  .admin-empty-state {
    margin: 14px;
  }

  .workspace-stack,
  .capacity-grid {
    padding: 14px;
  }

  .closed-date-form {
    grid-template-columns: 1fr;
  }

  .workspace-panel-head,
  .campaign-history > div,
  .shipping-batch-row {
    display: grid;
    align-items: flex-start;
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-panel-head {
    gap: 8px;
    min-height: 0;
    padding: 13px 14px;
  }

  .workspace-panel-head > span,
  .workspace-panel-head > .badge,
  .campaign-history .badge,
  .shipping-batch-row > .badge,
  .customer-admin-row > .badge {
    width: fit-content;
    justify-self: start;
  }

  .workspace-list-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .workspace-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-list-summary {
    padding-inline: 14px;
  }

  .customer-admin-row {
    gap: 14px;
    padding: 18px 14px;
  }

  .customer-admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }

  .customer-admin-address {
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
  }

  .data-table-wrap {
    overflow: visible;
  }

  .referral-code-table,
  .referral-reward-table,
  .referral-code-table tbody,
  .referral-reward-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .referral-code-table thead,
  .referral-reward-table thead {
    display: none;
  }

  .referral-code-table tr,
  .referral-reward-table tr {
    display: grid;
    gap: 9px;
    padding: 14px;
    border-bottom: 1px solid var(--line-soft);
  }

  .referral-code-table td,
  .referral-reward-table td {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .referral-code-table td::before,
  .referral-reward-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
  }

  .referral-code-table td[colspan],
  .referral-reward-table td[colspan] {
    display: block;
  }

  .referral-code-table td[colspan]::before,
  .referral-reward-table td[colspan]::before {
    content: none;
  }

  .admin-form-grid,
  .template-editor .admin-form-grid,
  .template-workspace {
    grid-template-columns: 1fr;
  }

  .template-list,
  .template-editor {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .template-preview,
  .template-deliveries {
    grid-column: 1;
  }

  .admin-sidebar {
    display: none;
  }

  .inspector {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    height: 100dvh;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 180ms ease, visibility 180ms step-end;
  }

  .inspector.mobile-open {
    visibility: visible;
    transform: translateX(0);
    transition: transform 180ms ease;
  }

  .inspector-head {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    min-height: 58px;
    padding: 7px 12px;
    background: #fff;
  }

  .inspector-head > div {
    display: grid;
    align-content: center;
    gap: 1px;
    min-width: 0;
  }

  .inspector-head h2 {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .inspector-head > div > span {
    color: var(--muted);
    font-size: 10px;
  }

  .mobile-editor-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 42px;
    padding: 0 6px 0 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
  }

  .mobile-editor-back svg {
    transform: rotate(180deg);
  }

  .desktop-editor-close {
    display: none;
  }

  .inspector-body {
    padding: 14px 14px calc(22px + env(safe-area-inset-bottom));
  }

  .inspector .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .inspector .field.full {
    grid-column: 1;
  }

  .inspector input,
  .inspector select {
    min-height: 44px;
  }

  .inspector textarea {
    min-height: 104px;
  }

  .inspector-actions {
    position: sticky;
    bottom: -14px;
    z-index: 2;
    margin: 18px -14px 0;
    padding: 12px 14px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -10px 24px rgba(17, 29, 63, 0.07);
  }

  .inspector-actions .button {
    min-height: 46px;
  }

  .admin-page-head,
  .admin-toolbar,
  .table-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-actions,
  .search-field {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 380px) {
  .workspace-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
