:root {
  color-scheme: light;
  --ink: #15231f;
  --muted: #596863;
  --line: #d7e0dc;
  --paper: #f6f4ef;
  --white: #ffffff;
  --green: #155c48;
  --green-dark: #0e493a;
  --green-pale: #e4f1ec;
  --green-wash: #edf5f1;
  --green-border: #cfe1d9;
  --green-muted: #38554c;
  --surface-soft: #fbfaf7;
  --lime: #dff58c;
  --amber: #a56516;
  --amber-pale: #fff1d8;
  --red: #a43b37;
  --red-pale: #ffebe9;
  --shadow: 0 16px 42px rgba(25, 50, 42, .08);
  --classic-shell-max: 1640px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(228, 241, 236, .8), transparent 30rem),
    var(--paper);
  min-width: 320px;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.topbar {
  height: 72px; padding: 0 clamp(18px, 4vw, 64px); display: grid; grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
  align-items: center; gap: 28px; background: rgba(246,244,239,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; width: fit-content; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--lime); font-weight: 800; letter-spacing: -.04em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.nav { display: flex; gap: 4px; padding: 4px; background: var(--paper); border-radius: 13px; }
.nav-button { border: 0; color: var(--muted); background: transparent; border-radius: 10px; padding: 9px 14px; font-weight: 650; font-size: 13px; }
.nav-button.is-active { color: var(--ink); background: var(--white); box-shadow: 0 3px 12px rgba(22,37,30,.08); }
.persona-control { justify-self: end; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.persona-control select { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 10px; padding: 8px 28px 8px 10px; }
.storefront-topbar { grid-template-columns: 1fr auto; }
.locale-chip { justify-self: end; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); background: var(--green-pale); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.public-topbar { grid-template-columns: minmax(220px, 1fr) auto auto; }
.public-nav { display: flex; align-items: center; justify-content: center; gap: 4px; }
.public-nav a { padding: 9px 11px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 750; white-space: nowrap; }
.public-nav a:hover, .public-nav a.is-current { color: var(--green); background: var(--green-pale); }
.public-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.button.compact { display: inline-flex; align-items: center; justify-content: center; padding: 9px 12px; text-decoration: none; font-size: 11px; white-space: nowrap; }
.button.is-current { box-shadow: 0 0 0 3px rgba(21,92,72,.12); }
.catalogue-notice { min-height: 38px; padding: 8px clamp(18px, 4vw, 64px); display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; background: var(--ink); color: #ecf5ef; font-size: 12px; }
.catalogue-notice strong { color: var(--lime); letter-spacing: .08em; }
.source-language-note { padding: 9px clamp(18px, 4vw, 64px); border-bottom: 1px solid #e7cf9f; background: #fff6e5; color: #76531f; text-align: center; font-size: 11px; line-height: 1.55; }
.banner-link { color: var(--lime); text-underline-offset: 3px; }

.nonprod-banner { min-height: 38px; padding: 8px clamp(18px, 4vw, 64px); display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; background: var(--ink); color: #ecf5ef; font-size: 12px; letter-spacing: .01em; }
.nonprod-banner strong { color: var(--lime); letter-spacing: .08em; }
.health-dot { display: inline-flex; align-items: center; gap: 6px; color: #bcd0c3; }
.health-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #edbd4c; }
.health-dot.ok::before { background: #63d59e; box-shadow: 0 0 0 4px rgba(99,213,158,.12); }

main { width: min(1480px, 100%); margin: 0 auto; padding: 34px clamp(18px, 4vw, 64px) 80px; }
.view { display: none; }
.view.is-active { display: block; animation: reveal .22s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(4px); } }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; letter-spacing: -.045em; line-height: 1.02; font-size: clamp(34px, 4.8vw, 62px); }
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(340px, .8fr); gap: 56px; align-items: end; padding: 38px 0 34px; }
.hero > div:first-child > p:last-child, .section-heading p:last-child { max-width: 720px; color: var(--muted); line-height: 1.7; }
.storefront-hero h1 { max-width: 780px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.catalogue-scope { min-width: 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); color: var(--green); font-size: 15px; font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; }
.metric { padding: 22px 16px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-size: 27px; letter-spacing: -.05em; }
.metric span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }

.catalog-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 230px auto auto; gap: 10px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 0 0 16px 16px; position: sticky; top: var(--catalogue-sticky-offset, 72px); z-index: 10; box-shadow: 0 10px 30px rgba(22,37,30,.06); }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); padding: 11px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,107,75,.1); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(18,112,78,.45); outline-offset: 3px; }
.button { border-radius: 10px; border: 1px solid transparent; padding: 10px 15px; font-weight: 750; }
.button.primary { background: var(--green); color: white; }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { background: var(--white); border-color: var(--line); color: var(--ink); }
.button.danger { background: var(--red-pale); border-color: #f1bbb7; color: var(--red); }
.button:disabled { cursor: not-allowed; opacity: .45; }
.readonly-chip { display: inline-grid; place-items: center; padding: 0 14px; border-radius: 10px; background: var(--green-pale); color: var(--green); font-weight: 800; font-size: 12px; white-space: nowrap; }

.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.catalogue-empty-state { grid-column: 1 / -1; padding: clamp(22px, 3vw, 38px); border: 1px solid var(--green-border); border-radius: 16px; background: var(--green-wash); color: var(--green-dark); }
.catalogue-empty-state strong { display: block; font-size: 18px; }
.catalogue-empty-state p { max-width: 750px; margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.product-card { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--white); min-width: 0; box-shadow: 0 8px 24px rgba(25,50,42,.035); transition: transform .18s, box-shadow .18s, border-color .18s; }
.product-card:hover { transform: translateY(-3px); border-color: #b9cec1; box-shadow: var(--shadow); }
.product-card button { width: 100%; height: 100%; display: flex; flex-direction: column; border: 0; background: transparent; padding: 0; text-align: left; color: inherit; }
.product-visual { width: 100%; aspect-ratio: 1; position: relative; display: grid; place-items: center; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.product-visual img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 12px; object-fit: contain; }
.placeholder-art { width: 58%; aspect-ratio: 1; display: grid; place-items: center; border: 1px dashed #b6c6bd; border-radius: 50%; color: #91a39a; font-size: 38px; background: rgba(255,255,255,.45); }
.image-state { position: absolute; left: 10px; bottom: 10px; padding: 6px 8px; border-radius: 8px; background: rgba(22,37,30,.86); color: white; font-size: 10px; font-weight: 700; }
.product-copy { flex: 1; display: flex; flex-direction: column; padding: 18px; }
.sale-unit { color: var(--muted); font-size: 12px; font-weight: 700; }
.card-meta { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
/* 卡片标题最多两行、超出省略（2026-09-23 房寒拍板：中文长标题不撑高卡片，详情页仍给全量） */
.product-copy h3 { min-height: 48px; margin: 10px 0 18px; font-size: 16px; line-height: 1.45; letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.view-product { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; color: var(--green); font-size: 12px; font-weight: 800; }
.product-card:hover .view-product span { transform: translateX(3px); }
.view-product span { transition: transform .18s; }
.storefront-page .product-copy .badge.amber { text-transform: none; }
.sku { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.badge { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 7px; border-radius: 7px; background: #eef2ef; color: #52635a; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .025em; }
.badge.green { background: var(--green-pale); color: var(--green); }
.badge.amber { background: var(--amber-pale); color: var(--amber); }
.badge.red { background: var(--red-pale); color: var(--red); }
.pagination { display: flex; justify-content: center; gap: 8px; margin: 24px 0; }

/* 目录分页条（13,185 卡分 550 页）。结构与 4319 门面同一套：汇总 / 页码 / 每页+跳页。 */
#catalogue-pagination { flex-direction: column; align-items: center; gap: 14px; margin: 32px 0 8px; }
#catalogue-pagination:empty { display: none; }
#catalogue-pagination .pagination-summary { margin: 0; color: var(--muted); font-size: 12px; }
#catalogue-pagination .pager { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
#catalogue-pagination .pager-pages { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
#catalogue-pagination .pager-page { min-width: 36px; min-height: 36px; padding: 0 10px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
#catalogue-pagination .pager-page:hover { border-color: var(--green-border); background: var(--green-wash); }
#catalogue-pagination .pager-page.is-current { background: var(--green); border-color: var(--green); color: var(--white); font-weight: 600; }
#catalogue-pagination .pager-gap { color: var(--muted); padding: 0 2px; }
#catalogue-pagination .pager-step { min-height: 36px; }
#catalogue-pagination .pager-step[disabled] { opacity: .45; cursor: not-allowed; }
#catalogue-pagination .pager-compact { display: none; color: var(--muted); font-size: 12px; }
#catalogue-pagination .pagination-tools { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
#catalogue-pagination .page-size, #catalogue-pagination .page-jump { display: flex; align-items: center; gap: 8px; }
#catalogue-pagination .page-jump label { display: flex; align-items: center; gap: 8px; }
#catalogue-pagination .page-size select { min-height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--ink); font: inherit; font-size: 13px; }
#catalogue-pagination .page-jump input { width: 72px; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--ink); font: inherit; font-size: 13px; }
#catalogue-pagination .page-jump button { min-height: 34px; }
@media (max-width: 720px) {
  #catalogue-pagination .pager-pages { display: none; }
  #catalogue-pagination .pager-compact { display: inline; }
}

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: 24px 0 28px; }
.section-heading h1 { font-size: clamp(32px, 4vw, 48px); }
.role-hint { min-width: 280px; max-width: 380px; padding: 14px 16px; background: var(--amber-pale); color: #78501e; border: 1px solid #efd09e; border-radius: 13px; font-size: 12px; line-height: 1.5; }
.admin-layout { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 18px; min-height: 660px; }
.admin-list-panel, .admin-detail { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.panel-title { display: flex; justify-content: space-between; padding: 18px 18px 10px; }
.panel-title span { color: var(--muted); font-size: 12px; }
.mini-search { display: block; padding: 0 14px 10px; }
.admin-list { max-height: 720px; overflow: auto; border-top: 1px solid var(--line); }
.admin-list-item { width: 100%; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; border: 0; border-bottom: 1px solid var(--line); background: var(--white); text-align: left; color: inherit; }
.admin-list-item:hover, .admin-list-item.is-active { background: #f0f7f3; }
.admin-list-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.admin-list-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); grid-column: 1 / 2; }
.admin-detail { padding: clamp(20px, 3vw, 38px); }
.admin-detail.empty-state { display: grid; place-items: center; text-align: center; color: var(--muted); }
.empty-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green-pale); color: var(--green); font-size: 24px; }
.detail-topline { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.detail-topline h2 { margin: 4px 0 7px; font-size: 25px; letter-spacing: -.025em; }
.detail-topline code { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.snapshot-box { padding: 13px; background: var(--ink); color: #dbe9df; border-radius: 12px; min-width: 245px; }
.snapshot-box small, .snapshot-box code { display: block; }
.snapshot-box small { color: #9ab0a2; margin-bottom: 5px; }
.snapshot-box code { color: var(--lime); font-size: 10px; overflow-wrap: anywhere; }
.guard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0; }
.guard { padding: 10px; border-radius: 10px; background: var(--green-pale); color: var(--green); font-size: 11px; font-weight: 700; text-align: center; }
.guard::before { content: "✓ "; }
.form-grid { display: grid; gap: 14px; }
.form-grid label > span { display: block; font-size: 12px; font-weight: 750; margin-bottom: 6px; }
.form-grid textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.form-grid textarea.detail { min-height: 180px; }
.form-note { padding: 12px; border-radius: 10px; background: var(--paper); color: var(--muted); font-size: 11px; line-height: 1.55; }
.image-candidates { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.image-option { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.image-option img { width: 100%; aspect-ratio: 1.2; object-fit: contain; display: block; background: #f2f5f3; }
.image-option label { display: flex; gap: 7px; padding: 9px; font-size: 10px; line-height: 1.4; }
.image-option input { width: auto; }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.review-callout { margin-top: 18px; padding: 16px; border-radius: 13px; background: var(--amber-pale); border: 1px solid #efd09e; }
.review-callout h3 { margin: 0 0 6px; }
.admin-single-sku-note, .admin-sibling-readonly { margin: 16px 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--muted); font-size: 11px; line-height: 1.55; }
.admin-sibling-readonly { border-color: #efd09e; background: var(--amber-pale); color: #78501e; }
.admin-variant-family { margin: 18px 0; padding: 16px; border: 1px solid #bcd6c7; border-radius: 14px; background: #f7fbf8; }
.admin-variant-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.admin-variant-heading h3 { margin: 2px 0 0; font-size: 18px; }
.admin-variant-boundary { margin-top: 12px; padding: 11px 12px; border-radius: 10px; background: var(--amber-pale); color: #78501e; font-size: 11px; line-height: 1.55; }
.admin-variant-boundary code, .admin-variant-meta code { overflow-wrap: anywhere; }
.admin-variant-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 12px 0; color: var(--muted); font-size: 10px; }
.admin-variant-buttons { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.admin-variant-button { flex: 1 1 180px; min-width: 0; max-width: 320px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); text-align: left; }
.admin-variant-button strong, .admin-variant-button span, .admin-variant-button small { display: block; overflow-wrap: anywhere; }
.admin-variant-button strong { font-size: 12px; }
.admin-variant-button span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.admin-variant-button small { margin-top: 4px; color: var(--green); font-size: 8px; }
.admin-variant-button:hover, .admin-variant-button.is-active { border-color: var(--green); background: var(--green-pale); box-shadow: inset 0 0 0 1px var(--green); }
.admin-variant-button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
.admin-variant-exceptions { margin: 16px 0; padding: 14px; border: 1px solid #e6c98d; border-radius: 12px; background: var(--amber-pale); }
.admin-variant-exceptions h3 { margin: 0 0 4px; font-size: 14px; }
.admin-variant-exceptions > p { margin: 0 0 10px; color: #78501e; font-size: 10px; }
.admin-variant-exception-row { display: grid; gap: 4px; padding: 9px 0; border-top: 1px solid rgba(120,80,30,.18); font-size: 9px; overflow-wrap: anywhere; }
.admin-variant-exception-row code { color: #78501e; font-weight: 800; }
.admin-variant-exception-row small { color: var(--muted); }
.admin-preview-summary { display: grid; grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); gap: 18px; margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.admin-preview-image { display: grid; place-items: center; min-height: 180px; overflow: hidden; border-radius: 12px; background: #f2f5f3; }
.admin-preview-image img { width: 100%; height: 100%; max-height: 240px; object-fit: contain; }
.admin-preview-facts { min-width: 0; }
.admin-preview-facts h3 { margin: 2px 0 5px; font-size: 19px; }
.admin-preview-facts > code { display: block; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.admin-preview-facts h4 { margin: 15px 0 7px; }
.admin-preview-metrics { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.admin-preview-metrics span { flex: 1 1 145px; padding: 9px 10px; border-radius: 9px; background: var(--paper); color: var(--muted); font-size: 9px; line-height: 1.45; }
.admin-preview-metrics strong { display: block; margin-top: 2px; color: var(--ink); overflow-wrap: anywhere; font-size: 10px; }
.admin-preview-specs { margin: 0; border-top: 1px solid var(--line); }
.admin-preview-specs > div { display: grid; grid-template-columns: minmax(105px, .7fr) minmax(0, 1.3fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.admin-preview-specs dt { color: var(--muted); }
.admin-preview-specs dd { margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.admin-readonly-identity { display: grid; gap: 2px; min-width: 150px; padding: 8px 10px; border: 1px solid var(--green-border); border-radius: 10px; background: var(--green-pale); }
.admin-readonly-identity strong { font-size: 10px; }
.admin-readonly-identity span, .admin-readonly-identity a { color: var(--muted); font-size: 8px; }
.admin-readonly-identity a { color: var(--green); font-weight: 800; }
.admin-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-overview-grid > article { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.admin-overview-grid h2 { margin: 3px 0 13px; font-size: 20px; }
.admin-overview-grid .button { margin-top: 14px; }
.admin-compact-list { display: grid; gap: 6px; }
.admin-compact-list > span { min-width: 0; display: flex; justify-content: space-between; gap: 12px; padding: 8px 9px; border-radius: 8px; background: var(--paper); }
.admin-compact-list strong, .admin-compact-list em { min-width: 0; overflow-wrap: anywhere; font-size: 9px; font-style: normal; }
.admin-compact-list em { color: var(--muted); text-align: right; }
.admin-safety-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-safety-list span { padding: 11px; border-radius: 9px; background: var(--green-pale); color: var(--muted); font-size: 9px; }
.admin-safety-list strong { display: block; margin-top: 4px; color: var(--ink); font-size: 14px; }
.admin-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-two-column > article { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.admin-two-column h2 { margin: 0 0 13px; font-size: 20px; }
.admin-record-list { display: grid; gap: 8px; }
.admin-record-list article { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; align-items: start; padding: 11px; border: 1px solid var(--line); border-radius: 10px; }
.admin-record-list strong, .admin-record-list code, .admin-record-list small { display: block; overflow-wrap: anywhere; }
.admin-record-list strong { font-size: 11px; }
.admin-record-list code, .admin-record-list small { color: var(--muted); font-size: 8px; }
.admin-record-list small, .admin-record-list button { grid-column: 1 / -1; }
.admin-record-list button { justify-self: start; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--muted); font-size: 8px; }
.admin-order-boundary { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 13px; padding: 13px 15px; border: 1px solid #e6c98d; border-radius: 12px; background: var(--amber-pale); color: #6f4b1f; font-size: 10px; }
.admin-workflow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.admin-workflow-grid article { min-width: 0; display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.admin-workflow-grid article > span { color: #b7c7bf; font-size: 20px; font-weight: 900; }
.admin-workflow-grid strong { font-size: 13px; }
.admin-workflow-grid em { color: var(--green); font-size: 11px; font-style: normal; font-weight: 800; }
.admin-workflow-grid button { padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--muted); font-size: 8px; }
.admin-version-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.admin-version-card h2 { margin: 3px 0 7px; font-size: 20px; }
.admin-version-card p { max-width: 690px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.admin-version-card > div:last-child { display: grid; justify-items: end; gap: 7px; }
.admin-version-card span { color: var(--muted); font-size: 8px; }
.admin-preview-gallery { display: flex; gap: 5px; overflow-x: auto; margin-top: 7px; padding-bottom: 4px; }
.admin-preview-gallery > span { position: relative; flex: 0 0 45px; width: 45px; height: 45px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: white; }
.admin-preview-gallery img { width: 100%; height: 100%; padding: 2px; object-fit: contain; }
.admin-preview-gallery small { position: absolute; right: 2px; bottom: 2px; padding: 1px 3px; border-radius: 4px; background: rgba(22,37,30,.8); color: white; font-size: 6px; }
.admin-preview-gallery em { color: var(--muted); font-size: 9px; font-style: normal; }

.readiness-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 10px; margin-bottom: 14px; }
.readiness-metric { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.readiness-metric strong, .readiness-metric span { display: block; }
.readiness-metric strong { color: var(--ink); font-size: 26px; line-height: 1; }
.readiness-metric span { margin-top: 7px; color: var(--muted); font-size: 11px; }
.readiness-boundary { margin-bottom: 14px; padding: 13px 15px; border: 1px solid #efd09e; border-radius: 12px; background: var(--amber-pale); color: #78501e; font-size: 12px; line-height: 1.55; }
.readiness-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.readiness-table { width: 100%; min-width: 1120px; border-collapse: collapse; font-size: 11px; line-height: 1.5; }
.readiness-table th, .readiness-table td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.readiness-table th { position: sticky; top: 0; z-index: 1; background: #edf4ef; color: var(--green-dark); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.readiness-table tr:last-child td { border-bottom: 0; }
.readiness-table td:nth-child(2) { min-width: 260px; }
.readiness-table td:nth-child(2) strong, .readiness-table td:nth-child(2) span { display: block; }
.readiness-table td:nth-child(2) strong { overflow-wrap: anywhere; }
.readiness-table td:nth-child(2) span { margin-top: 4px; color: var(--muted); }
.readiness-table td:last-child { min-width: 260px; }
.completion-track-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.completion-track-button { min-height: 72px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); color: var(--ink); text-align: left; }
.completion-track-button strong, .completion-track-button span { display: block; }
.completion-track-button strong { font-size: 13px; }
.completion-track-button span { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.completion-track-button:hover, .completion-track-button.is-active { border-color: var(--green); background: var(--green-pale); }
.completion-table { min-width: 1080px; }
.completion-table td:first-child { min-width: 220px; }
.completion-table td:first-child strong, .completion-table td:first-child span, .completion-table td:last-child strong, .completion-table td:last-child span { display: block; }
.completion-table td:first-child .badge { width: max-content; margin-top: 7px; }
.completion-table td:nth-child(2) { min-width: 300px; }
.completion-table td:nth-child(3) { min-width: 270px; }
.completion-table td:last-child { min-width: 390px; }
.completion-table td:last-child span { margin-top: 5px; color: var(--muted); }
.completion-source-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }

.audit-timeline { display: grid; gap: 10px; }
.audit-entry { display: grid; grid-template-columns: 145px 14px 1fr; gap: 15px; align-items: start; padding: 17px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.audit-entry time { color: var(--muted); font-size: 11px; }
.audit-node { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-pale); }
.audit-entry strong { display: block; margin-bottom: 5px; }
.audit-entry code { display: block; color: var(--muted); overflow-wrap: anywhere; font-size: 10px; }

.product-dialog { width: min(1180px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 0; overflow: auto; border: 0; border-radius: 24px; background: var(--paper); box-shadow: 0 30px 90px rgba(10,25,17,.25); }
.product-dialog::backdrop { background: rgba(12,25,18,.55); backdrop-filter: blur(4px); }
.dialog-close { position: sticky; float: right; top: 14px; right: 14px; z-index: 4; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--ink); color: white; font-size: 24px; line-height: 1; box-shadow: 0 6px 18px rgba(21,35,31,.2); }
.dialog-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.approved-product-detail { grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: 28px; min-height: 0; padding: 22px; }
.catalogue-gallery { min-width: 0; }
.gallery-stage { aspect-ratio: 1; position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.gallery-stage-empty { background: linear-gradient(145deg, #eff4f0, #faf9f6); }
.gallery-main-button { width: 100%; height: 100%; display: grid; place-items: center; border: 0; padding: 20px; background: transparent; }
.gallery-main-button:not(:disabled) { cursor: zoom-in; }
.gallery-main-button:disabled { cursor: default; }
.gallery-main-button img { width: 100%; height: 100%; object-fit: contain; }
.gallery-arrow { position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; transform: translateY(-50%); border: 1px solid rgba(21,35,31,.12); border-radius: 50%; background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 7px 20px rgba(21,35,31,.12); font-size: 30px; line-height: 1; }
.gallery-arrow:hover { color: var(--green); border-color: rgba(21,92,72,.35); }
.gallery-arrow-prev { left: 12px; }
.gallery-arrow-next { right: 12px; }
.gallery-counter { position: absolute; right: 12px; bottom: 12px; padding: 6px 9px; border-radius: 999px; background: rgba(21,35,31,.82); color: white; font-size: 10px; font-weight: 800; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; padding: 3px; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 76px; width: 76px; height: 76px; padding: 5px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb.is-active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(21,92,72,.13); }
.dialog-visual { display: grid; place-items: center; position: relative; background: #eef3ef; padding: 35px; }
.dialog-visual img { width: 100%; height: 100%; max-height: 480px; object-fit: contain; mix-blend-mode: multiply; }
.approved-product-detail .dialog-copy { align-self: center; padding: 22px 14px 22px 2px; }
.dialog-copy h2 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -.035em; }
.dialog-copy > p:not(.eyebrow):not(.sku) { color: var(--muted); line-height: 1.7; }
.product-lead { font-size: 16px; line-height: 1.6; color: var(--ink); }
.detail-section-title { margin: 22px 0 8px; }
.variant-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-button { min-height: 38px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 7px 10px; overflow-wrap: anywhere; }
.variant-button.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.variant-button:disabled { cursor: not-allowed; opacity: .58; }
.catalogue-ordering-note { margin-top: 22px; padding: 13px 14px; border-radius: 10px; background: var(--paper); color: var(--muted); font-size: 12px; }
/* 单SKU规格标注与中性提示（2026-09-23 房寒拍板）：坐实规格→醒目标注；坐实不了→中性说明 */
.single-spec-note { margin-top: 14px; padding: 11px 14px; border-radius: 10px; border: 1px solid #d9a439; background: #fdf6e5; color: #6c5311; font-size: 13px; line-height: 1.55; }
.single-spec-note strong { font-weight: 700; }
.single-spec-note.single-spec-neutral { border-color: var(--line); background: var(--paper); color: var(--muted); }
.storefront-note { grid-column: 1 / -1; }
.dialog-copy .sku { white-space: normal; overflow-wrap: anywhere; }
.detail-specs { margin: 10px 0 0; border-top: 1px solid var(--line); }
.detail-spec-row { display: grid; grid-template-columns: minmax(110px, .75fr) minmax(0, 1.25fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.detail-spec-row dt { color: var(--muted); font-size: 12px; }
.detail-spec-row dd { margin: 0; font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.spec { padding: 10px; background: var(--paper); border-radius: 9px; }
.spec small, .spec strong { display: block; }
.spec small { color: var(--muted); margin-bottom: 3px; }
.boundary-box { margin-top: 22px; padding: 14px; border-left: 3px solid var(--amber); background: var(--amber-pale); color: #6f4b1f; font-size: 11px; line-height: 1.6; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 20px); padding: 12px 16px; border-radius: 10px; background: var(--ink); color: white; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.language-toggle { position: fixed; right: 10px; bottom: 10px; z-index: 45; min-width: 34px; height: 28px; padding: 0 8px; border: 1px solid rgba(21,92,72,.25); border-radius: 999px; background: rgba(246,244,239,.9); color: var(--green); box-shadow: 0 4px 14px rgba(21,35,31,.09); opacity: .48; font-size: 10px; font-weight: 850; letter-spacing: .02em; transition: opacity .16s, transform .16s; }
.language-toggle:hover, .language-toggle:focus-visible { opacity: 1; transform: translateY(-1px); outline: 2px solid rgba(21,92,72,.22); outline-offset: 2px; }
@media (max-width: 820px) {
  .language-toggle { position: static; display: block; min-width: 44px; height: 44px; margin: 16px 12px max(16px, env(safe-area-inset-bottom)) auto; opacity: 1; }
}
html[data-language="zh-CN"] body { font-family: "Microsoft YaHei", "PingFang SC", Inter, ui-sans-serif, system-ui, sans-serif; }
.loading, .empty-results { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--muted); }
.storefront-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px clamp(18px, 4vw, 64px); border-top: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 11px; }

.marketing-main { width: min(1320px, 100%); padding-top: 0; }
.marketing-hero { min-height: 620px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); align-items: center; gap: clamp(36px, 7vw, 100px); padding: 70px 0; }
.marketing-hero h1 { max-width: 850px; font-size: clamp(44px, 6vw, 76px); }
.hero-copy { max-width: 760px; color: var(--muted); font-size: clamp(16px, 1.7vw, 20px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-actions .button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; text-decoration: none; }
.promise-card { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.promise-card > strong { display: block; max-width: 300px; font-size: 28px; line-height: 1.15; letter-spacing: -.035em; }
.clean-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); }
.clean-list li { display: grid; grid-template-columns: 18px 1fr; gap: 7px; line-height: 1.5; }
.clean-list li::before { content: "✓"; color: var(--green); font-weight: 900; }
.marketing-section { padding: 78px 0; scroll-margin-top: 100px; }
.section-intro { max-width: 800px; margin-bottom: 34px; }
.section-intro h2, .marketing-cta h2 { margin: 0; font-size: clamp(31px, 4vw, 50px); line-height: 1.08; letter-spacing: -.04em; }
.section-intro > p:last-child, .marketing-cta p { color: var(--muted); line-height: 1.7; }
.feature-grid { display: grid; gap: 16px; }
.feature-grid.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.82); box-shadow: 0 8px 24px rgba(25,50,42,.035); }
.feature-card h3 { margin: 16px 0 9px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 13px; }
.feature-number { color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.tinted-section { margin: 18px 0; padding: clamp(36px, 6vw, 72px); border: 1px solid var(--line); border-radius: 30px; background: rgba(228,241,236,.58); }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.process-grid li { display: flex; gap: 14px; padding: 20px; border-radius: 16px; background: rgba(255,255,255,.86); }
.process-grid li > span { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 12px; font-weight: 900; }
.process-grid h3 { margin: 4px 0 7px; }
.process-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.fulfilment-strip { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; overflow-x: auto; border-radius: 16px; background: var(--ink); color: white; font-size: 12px; font-weight: 800; white-space: nowrap; }
.fulfilment-strip span[aria-hidden] { color: var(--lime); }
.marketing-cta { margin: 50px 0 80px; padding: clamp(28px, 5vw, 54px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 35px; border-radius: 26px; background: var(--white); box-shadow: var(--shadow); }
.marketing-cta .hero-actions { margin: 0; justify-content: flex-end; }
.public-footer { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 30px clamp(18px, 4vw, 64px); border-top: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 11px; }
.public-footer strong { color: var(--ink); }
.public-footer p { margin: 5px 0 0; }
.public-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 15px; }
.public-footer a { color: var(--green); text-decoration: none; font-weight: 750; }
.compact-footer { min-height: 78px; }

/* Restored full-platform layout confirmed from the 2026-08-12 local prototype. */
.classic-safety-strip { min-height: 34px; padding: 7px clamp(18px, 3vw, 52px); display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--ink); color: #ecf5ef; font-size: 12px; line-height: 1.4; }
.classic-safety-strip strong { padding: 3px 0; color: var(--lime); font-size: 11px; letter-spacing: .08em; }
.classic-header { position: sticky; top: 0; z-index: 25; background: rgba(246,244,239,.98); border-bottom: 1px solid var(--line); box-shadow: 0 3px 18px rgba(15,55,43,.06); }
.classic-header-main, .classic-category-nav-inner, .classic-main, .classic-footer-inner { width: min(var(--classic-shell-max), 100%); margin-inline: auto; }
.classic-header-main { min-height: 84px; padding: 12px clamp(20px, 3vw, 52px); display: grid; grid-template-columns: minmax(220px, 1fr) minmax(360px, 620px) auto; align-items: center; gap: 24px; }
.classic-brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; color: var(--ink); text-decoration: none; }
.classic-brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: var(--lime); font-size: 16px; font-weight: 900; letter-spacing: -.04em; }
.classic-brand strong, .classic-brand small { display: block; }
.classic-brand strong { font-size: 19px; letter-spacing: -.02em; }
.classic-brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.classic-search { width: 100%; max-width: 620px; height: 50px; justify-self: center; display: grid; grid-template-columns: minmax(0,1fr) auto; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); box-shadow: none; }
.classic-search input { height: 42px; border: 0; padding: 8px 14px; box-shadow: none; font-size: 14px; }
.classic-search input:focus { box-shadow: none; }
.classic-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(21,92,72,.16); }
.classic-search button { min-width: 96px; border: 0; border-radius: 8px; background: var(--green); color: white; font-size: 13px; font-weight: 850; }
.classic-search button:hover { background: var(--green-dark); }
.classic-public-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.classic-public-actions > a:not(.button) { min-height: 40px; padding: 11px 6px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 750; white-space: nowrap; }
.classic-public-actions .button.compact { min-height: 42px; padding: 11px 14px; font-size: 12px; }
.classic-public-actions .secondary { border-color: var(--line); background: var(--white); color: var(--ink); }
.classic-light-button { border-color: transparent; background: var(--green); color: white; }
.classic-light-button:hover { background: var(--green-dark); }
.classic-menu-toggle { display: none; width: 42px; height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.classic-menu-toggle span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--ink); }
.classic-category-nav { position: relative; border-bottom: 1px solid var(--line); background: white; }
.classic-category-nav-inner { position: relative; min-height: 58px; padding: 0 clamp(20px, 3vw, 52px); display: grid; grid-template-columns: auto minmax(0,1fr); align-items: stretch; gap: 12px; overflow: visible; }
.classic-category-nav-inner > a { min-height: 56px; padding: 0 10px; display: flex; align-items: center; color: var(--green-muted); text-decoration: none; font-size: 12px; font-weight: 800; white-space: nowrap; }
.classic-category-nav-inner > a:hover, .classic-category-nav-inner > a.is-current { color: var(--green); }
.classic-category-nav-inner > a.is-current::before { content: "◇"; margin-right: 7px; color: var(--green); }
.classic-category-menu-toggle { display: none; }
.classic-category-links { min-width: 0; display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); align-items: stretch; gap: 4px; }
.classic-nav-department { position: static; min-width: 0; }
.classic-nav-department-toggle { width: 100%; min-height: 57px; padding: 7px 6px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--green-muted); font: inherit; font-size: 11px; font-weight: 800; line-height: 1.25; text-align: center; cursor: pointer; }
.classic-nav-department-toggle > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.classic-nav-disclosure { flex: 0 0 auto; color: var(--green); font-size: 13px; transition: transform .16s ease; }
.classic-nav-department:hover .classic-nav-department-toggle, .classic-nav-department.is-open .classic-nav-department-toggle { border-bottom-color: var(--green); background: var(--green-pale); color: var(--green-dark); }
.classic-nav-department.is-open .classic-nav-disclosure { transform: rotate(180deg); }
.classic-nav-subcategory-panel { position: absolute; top: 100%; left: clamp(20px,3vw,52px); right: clamp(20px,3vw,52px); z-index: 50; display: none; grid-template-columns: minmax(210px,.3fr) minmax(0,1fr); gap: 20px; padding: 18px 20px 20px; border: 1px solid var(--green-border); border-top: 0; border-radius: 0 0 14px 14px; background: white; box-shadow: 0 20px 36px rgba(15,55,43,.15); }
.classic-nav-department.is-open .classic-nav-subcategory-panel { display: grid; }
.classic-nav-subcategory-heading { min-width: 0; padding: 2px 20px 2px 0; display: grid; grid-template-columns: 38px minmax(0,1fr); align-content: start; gap: 12px; border-right: 1px solid var(--line); }
.classic-nav-subcategory-heading strong, .classic-nav-subcategory-heading small { display: block; }
.classic-nav-subcategory-heading strong { margin-top: 1px; font-size: 15px; line-height: 1.35; }
.classic-nav-subcategory-heading small { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.4; }
@media (hover: hover) and (pointer: fine) {
  .classic-nav-department:hover .classic-nav-subcategory-panel { display: grid; }
  .classic-nav-department:hover .classic-nav-disclosure { transform: rotate(180deg); }
}
.classic-main { padding: 34px clamp(20px, 3vw, 52px) 84px; }
.classic-hero { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(420px,.95fr); gap: clamp(40px,4vw,64px); align-items: center; padding: clamp(46px,5vw,78px); border: 1px solid var(--green-border); border-radius: 20px; background: linear-gradient(115deg, rgba(228,241,236,.42) 0%, var(--surface-soft) 70%); }
.classic-hero-copy h1 { max-width: 760px; font-size: clamp(46px,4vw,62px); line-height: 1.04; }
.classic-hero-copy .hero-copy { max-width: 760px; margin: 22px 0 0; font-size: 17px; line-height: 1.65; }
.classic-hero-checks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.classic-hero-checks li::before { content: "✓"; margin-right: 7px; color: var(--green); font-weight: 900; }
.classic-catalogue-preview { min-height: 390px; padding: 28px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow); }
.classic-preview-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.classic-preview-heading small, .classic-preview-heading strong { display: block; }
.classic-preview-heading small { margin-bottom: 5px; color: var(--green); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.classic-preview-heading strong { font-size: 20px; }
.classic-preview-heading > span { padding: 7px 10px; border-radius: 8px; background: var(--green-pale); color: var(--green); font-size: 11px; font-weight: 850; white-space: nowrap; }
.classic-preview-categories { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 0; }
.classic-preview-categories a { min-width: 0; padding: 11px; display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 4px 10px; border: 1px solid var(--line); border-radius: 11px; color: inherit; text-decoration: none; }
.classic-preview-categories a > span { grid-row: 1 / 3; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--green-pale); color: var(--green); font-size: 10px; font-weight: 900; }
.classic-preview-categories strong { min-width: 0; overflow-wrap: break-word; font-size: 12px; line-height: 1.25; }
.classic-preview-categories small { color: var(--muted); font-size: 10px; }
.classic-preview-footer { padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; border-radius: 9px; background: var(--green-pale); color: var(--green-dark); font-size: 11px; }
.classic-value-strip { margin: 22px 0 72px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 8px 24px rgba(25,50,42,.035); }
.classic-value-strip article { min-width: 0; min-height: 92px; padding: 22px; display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 13px; border-right: 1px solid var(--line); }
.classic-value-strip article:last-child { border-right: 0; }
.classic-value-strip article > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--green-pale); color: var(--green); font-size: 14px; font-weight: 900; }
.classic-value-strip strong, .classic-value-strip small { display: block; }
.classic-value-strip strong { font-size: 14px; }
.classic-value-strip small { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.classic-section { padding: 0 0 78px; }
.classic-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.classic-section-heading h2, .classic-local-section h2, .classic-cta h2 { max-width: 780px; margin: 0; font-size: clamp(30px,3.8vw,48px); line-height: 1.08; letter-spacing: -.04em; }
.classic-section-heading > a { min-height: 40px; padding: 10px 0; color: var(--green); text-decoration: none; font-size: 13px; font-weight: 850; }
.classic-section-heading > p { max-width: 410px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.classic-category-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--green-pale); color: var(--green); font-size: 11px; font-weight: 900; }
.classic-subcategory-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.classic-nav-subcategory-list { grid-template-columns: repeat(4,minmax(0,1fr)); align-content: start; }
.classic-subcategory-list a, .classic-subcategory-list li > span { min-height: 34px; padding: 7px 9px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 11px; line-height: 1.3; }
.classic-subcategory-list a { background: var(--green-pale); }
.classic-subcategory-list a:hover { box-shadow: inset 0 0 0 1px var(--green-border); }
.classic-subcategory-list small { color: var(--green); font-size: 9px; white-space: nowrap; }
.classic-subcategory-list .is-sample-empty { background: var(--surface-soft); color: var(--muted); }
.classic-subcategory-list .is-sample-empty small { color: var(--muted); }
.classic-products-section { margin: 0; padding: 52px clamp(22px,2vw,32px) 72px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(25,50,42,.035); }
.classic-products-section .classic-section-heading { align-items: flex-start; }
.classic-products-summary { max-width: 760px; margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.classic-source-note { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.classic-product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.classic-home-product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; transition: transform .16s, box-shadow .16s; }
.classic-home-product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.classic-home-product-card > a { height: 100%; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.classic-home-product-visual { position: relative; aspect-ratio: 1.1; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.classic-home-product-visual img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 10px; object-fit: contain; background: #fff; }
.classic-product-placeholder { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 9px; background: linear-gradient(135deg,var(--green-wash),var(--surface-soft)); color: #536c62; }
.classic-product-placeholder span { width: 68px; height: 68px; display: grid; place-items: center; border: 1px dashed #afc6ba; border-radius: 50%; background: rgba(255,255,255,.72); color: #355248; font-size: 22px; font-weight: 900; }
.classic-product-placeholder small { font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.classic-home-product-copy { flex: 1; display: flex; flex-direction: column; padding: 14px; }
.classic-home-product-copy > small:first-child { color: var(--green); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.classic-home-product-copy h3 { min-height: 48px; margin: 10px 0 8px; font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.classic-home-product-sku { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-family: ui-monospace,monospace; font-size: 10px; }
.classic-home-product-copy > strong { margin-top: auto; padding-top: 18px; color: var(--green); font-size: 12px; }
.classic-centred-action { margin-top: 26px; text-align: center; }
.classic-local-section { padding: 72px 0; display: grid; grid-template-columns: minmax(330px,.9fr) minmax(0,1.1fr); align-items: center; gap: clamp(36px,7vw,100px); }
.classic-local-section > div:last-child > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.7; }
.classic-au-visual { min-height: 330px; position: relative; display: grid; place-items: center; align-content: center; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(135deg,var(--green-pale),var(--surface-soft)); color: var(--green-dark); }
.classic-au-visual::before { content: ""; position: absolute; width: 70%; height: 54%; border: 1px dashed #8eb8a6; border-radius: 50%; transform: rotate(-8deg); }
.classic-au-visual span { font-size: 62px; font-weight: 900; }
.classic-au-visual strong { font-size: 10px; letter-spacing: .14em; }
.classic-au-visual i { position: absolute; width: 14px; height: 14px; border: 3px solid white; border-radius: 50%; background: var(--green); }
.classic-au-visual .dot-one { left: 24%; bottom: 26%; }
.classic-au-visual .dot-two { right: 25%; top: 25%; }
.classic-benefit-list { margin: 22px 0 0; padding: 0; list-style: none; }
.classic-benefit-list li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 750; }
.classic-benefit-list li::before { content: "◇"; margin-right: 10px; color: var(--green); }
.classic-process-section { margin: 0 calc(clamp(20px,3vw,52px) * -1); padding: 62px clamp(20px,3vw,52px); background: var(--paper); }
.classic-process-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; list-style: none; }
.classic-process-grid li { min-height: 210px; padding: 26px; border-right: 1px solid var(--line); background: white; }
.classic-process-grid li:last-child { border-right: 0; background: var(--green-pale); }
.classic-process-grid li > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #eef4f1; color: var(--green); font-size: 10px; font-weight: 900; }
.classic-process-grid h3 { margin: 36px 0 8px; }
.classic-process-grid p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.classic-cta { margin: 62px 0 0; padding: clamp(30px,4vw,52px); display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 36px; overflow: hidden; border: 1px solid var(--green-border); border-radius: 17px; background: linear-gradient(105deg,var(--surface-soft),var(--green-pale)); }
.classic-cta > div:first-child > p:last-child { color: var(--muted); }
.classic-footer { border-top: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 12px; }
.classic-footer-inner { padding: 42px clamp(20px,3vw,52px); display: grid; grid-template-columns: minmax(240px,1.3fr) repeat(2,minmax(170px,.7fr)) minmax(250px,1fr); gap: 38px; }
.classic-footer .classic-brand { color: var(--ink); }
.classic-footer .classic-brand-mark { background: var(--ink); color: var(--lime); }
.classic-footer .classic-brand small { max-width: 200px; color: var(--muted); line-height: 1.45; }
.classic-footer nav { display: grid; align-content: start; gap: 8px; }
.classic-footer nav strong, .classic-footer-boundary strong { color: var(--ink); }
.classic-footer nav a { color: var(--muted); text-decoration: none; }
.classic-footer-boundary { display: grid; align-content: start; gap: 8px; line-height: 1.55; }

@media (max-width: 1180px) {
  .classic-header-main { grid-template-columns: minmax(180px,.45fr) minmax(260px,1fr) auto; gap: 12px; }
  .classic-public-actions > a:not(.button) { display: none; }
  .classic-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .classic-footer-inner { grid-template-columns: 1.2fr .8fr .8fr; }
  .classic-footer-boundary { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .classic-header { position: relative; }
  .classic-header-main { grid-template-columns: 1fr auto; }
  .classic-search { grid-column: 1 / -1; grid-row: 2; }
  .classic-menu-toggle { display: block; }
  .classic-public-actions { display: none; grid-column: 1 / -1; grid-row: 3; padding-top: 8px; align-items: stretch; flex-direction: column; }
  .classic-public-actions.is-open { display: flex; }
  .classic-public-actions > a:not(.button) { display: block; padding: 10px; border-bottom: 1px solid var(--line); }
  .classic-hero { grid-template-columns: 1fr; }
  .classic-catalogue-preview { display: none; }
  .classic-value-strip { grid-template-columns: 1fr 1fr; }
  .classic-value-strip article:nth-child(2) { border-right: 0; }
  .classic-value-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .classic-category-nav-inner { padding: 8px 12px 10px; grid-template-columns: 1fr auto; gap: 6px; }
  .classic-category-nav-inner > a { min-height: 40px; padding: 0 7px; }
  .classic-category-menu-toggle { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--green); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
  .classic-category-menu-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
  .classic-category-links { display: none; grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .classic-category-links.is-open { display: grid; }
  .classic-nav-department-toggle { min-height: 42px; padding: 8px 10px; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; text-align: left; }
  .classic-nav-department:hover .classic-nav-department-toggle, .classic-nav-department.is-open .classic-nav-department-toggle { border-color: var(--green-border); }
  .classic-nav-subcategory-panel { top: 100%; left: 12px; right: 12px; max-height: min(460px,70vh); grid-template-columns: 1fr; gap: 14px; padding: 16px; overflow-y: auto; border-top: 1px solid var(--green-border); border-radius: 12px; }
  .classic-nav-subcategory-heading { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .classic-nav-subcategory-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .classic-product-grid { grid-template-columns: 1fr 1fr; }
  .classic-local-section { grid-template-columns: 1fr; }
  .classic-process-grid { grid-template-columns: 1fr 1fr; }
  .classic-process-grid li:nth-child(2) { border-right: 0; }
  .classic-process-grid li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .classic-cta { grid-template-columns: 1fr; }
  .classic-footer-inner { grid-template-columns: 1fr 1fr; }
  .classic-footer-inner > div:first-child, .classic-footer-boundary { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .classic-safety-strip { align-items: flex-start; justify-content: flex-start; }
  .classic-header-main { padding: 12px; }
  .classic-category-nav-inner { padding: 8px 12px 10px; }
  .classic-main { padding: 18px 12px 54px; }
  .classic-hero { padding: 28px 20px; }
  .classic-hero-copy h1 { font-size: 36px; }
  .classic-hero-copy .hero-copy { font-size: 14px; }
  .classic-hero .hero-actions { display: grid; }
  .classic-hero .hero-actions .button { width: 100%; }
  .classic-hero-checks { display: grid; }
  .classic-value-strip { margin-bottom: 54px; }
  .classic-value-strip article { padding: 14px 10px; }
  .classic-section { padding-bottom: 56px; }
  .classic-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .classic-nav-subcategory-list { grid-template-columns: 1fr; }
  .classic-products-section { margin-left: 0; margin-right: 0; padding: 44px 12px 56px; }
  .classic-process-section { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  .classic-product-grid { grid-template-columns: 1fr; }
  .classic-home-product-visual { aspect-ratio: 1.2; }
  .classic-local-section { padding: 56px 0; gap: 30px; }
  .classic-au-visual { min-height: 250px; }
  .classic-process-grid { grid-template-columns: 1fr; }
  .classic-process-grid li, .classic-process-grid li:nth-child(2) { min-height: 150px; border-right: 0; border-bottom: 1px solid var(--line); }
  .classic-process-grid li:last-child { border-bottom: 0; }
  .classic-process-grid h3 { margin-top: 22px; }
  .classic-cta { margin-top: 44px; padding: 26px 20px; }
  .classic-cta .hero-actions { display: grid; }
  .classic-footer-inner { grid-template-columns: 1fr; padding: 32px 18px; }
  .classic-footer-inner > div:first-child, .classic-footer-boundary { grid-column: auto; }
}

.form-page, .help-page { width: min(1160px, 100%); min-height: calc(100vh - 188px); display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 78px); align-items: start; padding-top: 70px; }
.form-page-intro { position: sticky; top: 120px; }
.form-page-intro h1, .help-page h1, .access-card h1 { font-size: clamp(38px, 5vw, 58px); }
.form-page-intro > p, .help-page > section > p, .access-card > p { color: var(--muted); line-height: 1.7; }
.boundary-card { margin-top: 24px; padding: 16px; border-left: 3px solid var(--amber); border-radius: 0 12px 12px 0; background: var(--amber-pale); color: #6f4b1f; }
.boundary-card strong { display: block; margin-bottom: 5px; }
.boundary-card p { margin: 0; font-size: 12px; line-height: 1.6; }
.side-steps { display: grid; gap: 11px; margin: 24px 0 0; padding: 0; list-style: none; }
.side-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.side-steps span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--green-pale); color: var(--green); font-weight: 900; }
.public-form { display: grid; gap: 16px; padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.intake-fields { display: grid; gap: 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
.intake-fields:disabled { opacity: .58; }
.form-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.form-heading h2 { margin: 0; }
.form-heading span { color: var(--green); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.public-form label > span, .disabled-login label > span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 780; }
.public-form label small { color: var(--muted); font-weight: 500; }
.public-form textarea { min-height: 125px; resize: vertical; line-height: 1.55; }
.field-grid { display: grid; gap: 14px; }
.two-up-fields { grid-template-columns: 1fr 1fr; }
.confirmation-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 10px; background: var(--paper); }
.confirmation-row input { width: auto; margin-top: 2px; }
.confirmation-row span { margin: 0 !important; color: var(--muted); line-height: 1.5; font-weight: 500 !important; }
.demo-form-status { padding: 13px 14px; border: 1px solid #b9d8ca; border-radius: 10px; background: var(--green-pale); color: var(--green); font-size: 12px; font-weight: 750; }
.access-page { width: min(780px, 100%); min-height: calc(100vh - 188px); display: grid; place-items: center; padding-top: 60px; }
.access-card { width: 100%; padding: clamp(28px, 5vw, 54px); border: 1px solid var(--line); border-radius: 26px; background: var(--white); box-shadow: var(--shadow); }
.disabled-login { display: grid; gap: 15px; margin: 30px 0; padding: 22px; border-radius: 16px; background: var(--paper); }
.disabled-login input:disabled { opacity: .72; cursor: not-allowed; }
.access-link { margin-top: 22px; }
.access-link a { color: var(--green); font-weight: 800; }
.merchant-account-form, .merchant-company-card form { display: grid; gap: 14px; margin: 24px 0; }
.merchant-account-form label, .merchant-company-card form label { display: grid; gap: 6px; font-size: 13px; }
.merchant-account-form input, .merchant-company-card form input:not([type="checkbox"]), .merchant-company-card form select { box-sizing: border-box; width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.merchant-company-card form label:has(input[type="checkbox"]) { display: flex; align-items: center; }
.merchant-company-card output { overflow-wrap: anywhere; white-space: pre-wrap; }
.classic-header-main { grid-template-columns: minmax(160px, .6fr) minmax(180px, 1fr) minmax(0, auto); }
.classic-public-actions { flex-wrap: wrap; }
@media (max-width: 820px) { .classic-header-main { grid-template-columns: 1fr auto; } }
.merchant-demo-page { background: var(--paper); }
.merchant-demo-topbar { grid-template-columns: minmax(230px, 1fr) auto; }
.merchant-nav-toggle { display: none; }
.merchant-demo-nav { display: flex; align-items: center; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.merchant-demo-nav a, .merchant-demo-nav button { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 750; white-space: nowrap; }
.merchant-demo-nav a[aria-current="page"] { background: var(--green); color: var(--white); }
.merchant-demo-nav a span { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: var(--green-pale); color: var(--green); text-align: center; font-size: 9px; }
.merchant-demo-nav button { margin-left: 8px; border-left: 1px solid var(--line); border-radius: 0 9px 9px 0; }
.merchant-boundary { background: #23352f; }
.merchant-boundary span { min-width: 0; max-width: 100%; text-align: center; overflow-wrap: anywhere; }
.merchant-demo-main { width: min(1240px, 100%); }
.merchant-demo-hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 36px 0 28px; }
.merchant-demo-hero h1 { font-size: clamp(36px, 5vw, 58px); }
.merchant-demo-hero p:last-child { max-width: 700px; color: var(--muted); line-height: 1.65; }
.merchant-loading, .merchant-empty { padding: 36px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); text-align: center; }
.merchant-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.merchant-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.merchant-summary article { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.merchant-summary strong, .merchant-summary span { display: block; }
.merchant-summary strong { font-size: 27px; }
.merchant-summary span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.merchant-product-list, .merchant-cart-lines { display: grid; gap: 10px; }
.merchant-product-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(190px, 260px); gap: 16px; align-items: center; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.merchant-product-image, .merchant-cart-image { width: 100%; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.merchant-product-image img, .merchant-cart-image img { width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.merchant-image-placeholder { padding: 8px; color: var(--muted); text-align: center; font-size: 9px; }
.merchant-product-copy { min-width: 0; }
.merchant-product-copy small { color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.merchant-product-copy h2 { margin: 5px 0 7px; font-size: 17px; line-height: 1.3; }
.merchant-product-copy code, .merchant-cart-line code { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: 9px; }
.merchant-product-actions { display: grid; gap: 7px; }
.merchant-product-actions .button { width: 100%; min-width: 0; text-align: center; text-decoration: none; font-size: 11px; }
.merchant-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.merchant-cart-line { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.merchant-cart-line strong { display: block; margin-bottom: 7px; line-height: 1.35; }
.merchant-checkout-boundary { display: grid; gap: 13px; padding: 22px; border: 1px solid #e7cc91; border-radius: 16px; background: var(--amber-pale); }
.merchant-checkout-boundary h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.merchant-checkout-boundary p { margin: 0; color: #6f4b1f; font-size: 12px; line-height: 1.6; }
.merchant-filter-open { display: none; margin-bottom: 12px; }
.merchant-catalogue-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.merchant-filter-panel { position: sticky; top: 18px; display: grid; gap: 7px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.merchant-filter-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.merchant-filter-heading button { display: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--paper); font-size: 22px; }
.merchant-category-option { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); text-align: left; font-size: 10px; }
.merchant-category-option span { overflow-wrap: anywhere; }
.merchant-category-option strong { min-width: 25px; padding: 2px 6px; border-radius: 999px; background: var(--paper); color: var(--green); text-align: center; }
.merchant-category-option:hover, .merchant-category-option.is-active { border-color: var(--green-border); background: var(--green-pale); color: var(--ink); }
.merchant-filter-boundary { margin-top: 8px; padding: 11px; border-radius: 9px; background: var(--paper); color: var(--muted); font-size: 9px; line-height: 1.55; }
.merchant-catalogue-results { min-width: 0; }
.merchant-catalogue-controls { display: grid; grid-template-columns: minmax(180px, 1fr) 170px 92px auto; gap: 9px; align-items: end; margin-bottom: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.merchant-catalogue-controls label { min-width: 0; }
.merchant-catalogue-controls label span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 800; }
.merchant-catalogue-controls input, .merchant-catalogue-controls select { width: 100%; height: 40px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); }
.merchant-result-line { margin-bottom: 11px; color: var(--muted); font-size: 11px; }
.merchant-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.merchant-product-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.merchant-product-card-image { aspect-ratio: 1.12; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.merchant-product-card-image img { width: 100%; height: 100%; padding: 10px; object-fit: contain; }
.merchant-product-card-copy { min-width: 0; flex: 1; padding: 13px; }
.merchant-product-card-copy > small { color: var(--green); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.merchant-product-card-copy h2 { min-height: 44px; margin: 7px 0; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.merchant-product-card-copy code { display: block; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.merchant-family-chip { display: block; width: max-content; max-width: 100%; margin-top: 9px; padding: 4px 7px; border-radius: 999px; background: var(--green-pale); color: var(--green); font-size: 8px; }
.merchant-product-card .merchant-product-actions { padding: 0 13px 13px; }
.merchant-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px 0 4px; }
.merchant-pagination span { color: var(--muted); font-size: 11px; }
.merchant-orders-boundary { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 15px 17px; border: 1px solid #e7cc91; border-radius: 14px; background: var(--amber-pale); color: #6f4b1f; font-size: 11px; line-height: 1.55; }
.merchant-order-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: white; }
.merchant-order-head { display: flex; justify-content: space-between; gap: 18px; padding: 19px; border-bottom: 1px solid var(--line); }
.merchant-order-head h2 { margin: 3px 0 5px; font-size: 20px; }
.merchant-order-head span, .merchant-order-head code { display: block; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.merchant-order-head > strong { height: max-content; padding: 7px 10px; border-radius: 999px; background: var(--green-pale); color: var(--green); font-size: 9px; }
.merchant-order-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.merchant-order-facts span { min-width: 0; padding: 14px; border-right: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.merchant-order-facts strong { display: block; margin-top: 5px; color: var(--ink); overflow-wrap: anywhere; font-size: 10px; }
.merchant-order-timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 20px; list-style: none; }
.merchant-order-timeline li { position: relative; min-width: 0; padding: 0 8px; text-align: center; }
.merchant-order-timeline li::before { content: ""; position: absolute; top: 13px; left: 0; right: 0; height: 2px; background: var(--green-border); }
.merchant-order-timeline li:first-child::before { left: 50%; }
.merchant-order-timeline li:last-child::before { right: 50%; }
.merchant-order-timeline li > span { position: relative; z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; margin: 0 auto 9px; border-radius: 50%; background: var(--green); color: white; font-size: 9px; }
.merchant-order-timeline strong, .merchant-order-timeline small { display: block; overflow-wrap: anywhere; }
.merchant-order-timeline strong { font-size: 9px; }
.merchant-order-timeline small { margin-top: 5px; color: var(--muted); font-size: 7px; line-height: 1.4; }
.faq-list { display: grid; gap: 9px; margin-top: 30px; }
.faq-list details { padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.78); }
.faq-list summary { cursor: pointer; font-weight: 800; }
.faq-list p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

@media (max-width: 1120px) {
  .topbar { grid-template-columns: 1fr auto; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .public-topbar { grid-template-columns: 1fr auto; }
  .public-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; }
  .nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .marketing-hero { min-height: 0; grid-template-columns: 1fr; padding: 58px 0; }
  .promise-card { max-width: 600px; }
  .feature-grid.four-up, .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-layout { grid-template-columns: 310px minmax(0, 1fr); }
  .guard-grid { grid-template-columns: repeat(2, 1fr); }
  .merchant-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .merchant-catalogue-controls { grid-template-columns: minmax(180px, 1fr) 150px; }
}
@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr; gap: 10px; }
  .public-topbar { grid-template-columns: 1fr; position: relative; }
  .public-actions { grid-row: 2; justify-self: stretch; }
  .public-actions .button { flex: 1; }
  .public-nav { grid-row: 3; grid-column: 1; justify-content: flex-start; margin: 0 -4px; }
  .storefront-topbar { grid-template-columns: 1fr auto; }
  .storefront-topbar .locale-chip { grid-row: 1; }
  .persona-control { justify-self: stretch; grid-row: 2; }
  .persona-control select { flex: 1; }
  .nav { grid-row: 3; overflow-x: auto; justify-content: flex-start; }
  .nonprod-banner { justify-content: flex-start; }
  main { padding-top: 18px; }
  .marketing-main { padding-top: 0; }
  .marketing-hero { padding: 44px 0; }
  .marketing-hero h1 { font-size: clamp(39px, 13vw, 58px); }
  .marketing-section { padding: 54px 0; }
  .tinted-section { margin-left: -4px; margin-right: -4px; padding: 28px 18px; border-radius: 22px; }
  .feature-grid.three-up, .feature-grid.four-up, .process-grid { grid-template-columns: 1fr; }
  .marketing-cta { grid-template-columns: 1fr; margin-bottom: 52px; }
  .marketing-cta .hero-actions { justify-content: flex-start; }
  .public-footer { display: grid; }
  .public-footer nav { justify-content: flex-start; }
  .form-page, .help-page { grid-template-columns: 1fr; min-height: 0; padding-top: 38px; }
  .form-page-intro { position: static; }
  .two-up-fields { grid-template-columns: 1fr; }
  .access-page { min-height: 0; padding-top: 38px; }
  .merchant-demo-topbar { grid-template-columns: 1fr; }
  html[data-merchant-nav-ready="true"] .merchant-nav-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--green); font: inherit; font-weight: 750; cursor: pointer; }
  .merchant-demo-nav { width: 100%; display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  html[data-merchant-nav-ready="true"] .merchant-demo-nav:not(.is-open) { display: none; }
  .merchant-demo-nav a, .merchant-demo-nav button { min-width: 0; justify-content: center; white-space: normal; text-align: center; }
  .merchant-demo-nav button { margin-left: 0; border-left: 0; border-radius: 9px; }
  .merchant-demo-hero { align-items: flex-start; flex-direction: column; }
  .merchant-product-row { grid-template-columns: 72px minmax(0, 1fr); }
  .merchant-product-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .merchant-cart-layout { grid-template-columns: 1fr; }
  .merchant-filter-open { display: inline-flex; }
  .merchant-catalogue-layout { grid-template-columns: 1fr; }
  .merchant-filter-panel { position: fixed; inset: 0 12% 0 0; z-index: 80; display: none; align-content: start; overflow-y: auto; border-radius: 0 18px 18px 0; box-shadow: 20px 0 60px rgba(10,25,17,.3); }
  .merchant-filter-panel.is-open { display: grid; }
  .merchant-filter-heading button { display: grid; place-items: center; }
  .merchant-catalogue-controls { grid-template-columns: 1fr 1fr; }
  .merchant-catalogue-controls label:first-child { grid-column: 1 / -1; }
  .merchant-order-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .merchant-order-timeline { grid-template-columns: 1fr; }
  .merchant-order-timeline li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; padding: 7px 0; text-align: left; }
  .merchant-order-timeline li::before { top: 0; bottom: 0; left: 13px; right: auto; width: 2px; height: auto; }
  .merchant-order-timeline li:first-child::before { top: 50%; left: 13px; }
  .merchant-order-timeline li:last-child::before { right: auto; bottom: 50%; }
  .merchant-order-timeline li > span { grid-row: 1 / 3; margin: 0; }
  .form-heading { align-items: flex-start; }
  .hero { padding-top: 20px; }
  .hero-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric { padding: 14px 10px; }
  .metric strong { font-size: 22px; }
  .catalog-toolbar { grid-template-columns: 1fr; position: static; }
  .readonly-chip { min-height: 38px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-copy { padding: 12px; }
  .product-copy h3 { font-size: 14px; }
  .section-heading { display: block; }
  .role-hint { min-width: 0; max-width: none; margin-top: 16px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-list-panel { max-height: 360px; }
  .admin-list { max-height: 285px; }
  .completion-track-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-topline { display: block; }
  .snapshot-box { margin-top: 14px; min-width: 0; }
  .admin-preview-summary { grid-template-columns: 1fr; }
  .admin-preview-image { min-height: 220px; }
  .dialog-body { grid-template-columns: 1fr; }
  .product-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 18px; }
  .approved-product-detail { grid-template-columns: 1fr; gap: 20px; padding: 14px; }
  .approved-product-detail .dialog-copy { padding: 6px 4px 18px; }
  .gallery-arrow { width: 38px; height: 38px; font-size: 27px; }
  .gallery-thumb { flex-basis: 66px; width: 66px; height: 66px; }
  .detail-spec-row { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .dialog-visual { min-height: 280px; }
  .dialog-copy { padding: 28px 22px; }
  .audit-entry { grid-template-columns: 1fr; gap: 7px; }
  .audit-node { display: none; }
  .storefront-footer { display: grid; }
}
@media (max-width: 430px) {
  .public-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 0; }
  .public-nav a { min-width: 0; white-space: normal; text-align: center; }
  .catalog-grid { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .guard-grid { grid-template-columns: 1fr 1fr; }
  .admin-variant-button { flex-basis: 100%; max-width: none; }
  .completion-track-buttons { grid-template-columns: 1fr; }
  .merchant-summary { grid-template-columns: 1fr; }
  .merchant-product-row { grid-template-columns: 62px minmax(0, 1fr); padding: 10px; gap: 10px; }
  .merchant-product-actions { grid-template-columns: 1fr; }
  .merchant-cart-line { grid-template-columns: 58px minmax(0, 1fr); }
  .merchant-cart-line .button { grid-column: 1 / -1; }
  .merchant-catalogue-controls { grid-template-columns: 1fr; }
  .merchant-catalogue-controls label:first-child { grid-column: auto; }
  .merchant-product-grid { grid-template-columns: 1fr; }
  .merchant-order-head { display: grid; }
}

.merchant-detail-shell { display: grid; gap: 22px; }
.merchant-detail-back { width: max-content; color: var(--green); font-size: 11px; font-weight: 800; text-decoration: none; }
.merchant-detail-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 24px; align-items: start; }
.merchant-detail-gallery, .merchant-detail-copy, .merchant-detail-story, .merchant-detail-specs { min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 12px 32px rgba(18, 39, 30, .055); }
.merchant-detail-gallery { padding: 14px; }
.merchant-detail-stage { position: relative; min-height: 510px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: linear-gradient(145deg, #f8faf8, #eef4f0); }
.merchant-detail-stage img { width: 100%; height: 510px; padding: 18px; object-fit: contain; }
.merchant-detail-stage > span { position: absolute; left: 14px; bottom: 14px; padding: 6px 9px; border-radius: 999px; background: rgba(22,37,30,.82); color: white; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.merchant-detail-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 11px; padding-bottom: 3px; scrollbar-width: thin; }
.merchant-detail-thumb { flex: 0 0 72px; width: 72px; height: 72px; overflow: hidden; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.merchant-detail-thumb.is-active { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-pale); }
.merchant-detail-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* Local boss review hub. This surface is deliberately separate from public and merchant navigation. */
.review-page { min-height: 100vh; background: radial-gradient(circle at 10% 10%, #e7f3ed 0, transparent 38%), var(--paper); }
.review-boundary { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 7px 20px; background: var(--green-dark); color: white; font-size: 10px; }
.review-boundary strong { color: #d9f58e; }
.review-header { width: min(1220px, calc(100% - 40px)); min-height: 78px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.review-account { display: grid; justify-items: end; gap: 3px; padding: 9px 12px; border-radius: 10px; background: white; border: 1px solid var(--line); }
.review-account strong { font-size: 11px; }
.review-account span { color: var(--muted); font-size: 9px; }
.review-main { width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 70px; }
.review-login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: clamp(30px, 7vw, 90px); align-items: center; min-height: calc(100vh - 230px); }
.review-login h1, .review-hero h1, .review-denied h1 { margin: 8px 0 18px; font-size: clamp(39px, 6vw, 72px); line-height: .98; letter-spacing: -.045em; }
.review-login > div > p:last-child, .review-hero > div > p:last-child, .review-denied > p { max-width: 700px; color: var(--muted); line-height: 1.7; }
.review-login-form { display: grid; gap: 15px; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.review-login-form label span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 800; }
.review-login-form input { width: 100%; height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; }
.review-login-note, .review-login-error { margin: 0; padding: 10px 12px; border-radius: 9px; font-size: 9px; line-height: 1.55; }
.review-login-note { background: var(--green-pale); color: var(--green-dark); }
.review-login-error { background: #fbe8e6; color: #8f342f; }
.review-hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.review-hero h1 { font-size: clamp(38px, 5vw, 62px); }
.review-safety { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; }
.review-safety article { padding: 18px; border-right: 1px solid var(--line); }
.review-safety article:last-child { border-right: 0; }
.review-safety strong, .review-safety span { display: block; }
.review-safety strong { font-size: 28px; }
.review-safety span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.review-surface-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-surface-grid > article { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 14px 34px rgba(18, 39, 30, .055); }
.review-surface-grid > article > span { position: absolute; right: 20px; top: 18px; color: #b9c9c1; font-size: 26px; font-weight: 900; }
.review-surface-grid h2 { margin: 5px 0 10px; font-size: 22px; }
.review-surface-grid article > p:not(.eyebrow) { flex: 1; color: var(--muted); font-size: 11px; line-height: 1.65; }
.review-surface-grid article > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.review-surface-grid a { text-decoration: none; }
.review-checklist { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; padding: 15px; border: 1px solid #e6c98d; border-radius: 13px; background: var(--amber-pale); color: #6f4b1f; font-size: 10px; }
.review-checklist span::before { content: "✓"; margin-right: 5px; font-weight: 900; }
.review-denied { max-width: 760px; margin: 80px auto; padding: 34px; border: 1px solid #e6c98d; border-radius: 20px; background: white; }

@media (max-width: 820px) {
  .review-login { grid-template-columns: 1fr; min-height: auto; }
  .review-hero { align-items: flex-start; flex-direction: column; }
  .review-safety { grid-template-columns: repeat(2, 1fr); }
  .review-safety article:nth-child(2) { border-right: 0; }
  .review-safety article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .review-surface-grid { grid-template-columns: 1fr; }
  .admin-overview-grid, .admin-two-column { grid-template-columns: 1fr; }
  .admin-workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-version-card { align-items: flex-start; flex-direction: column; }
  .admin-version-card > div:last-child { justify-items: start; }
}

@media (max-width: 520px) {
  .review-boundary { align-items: flex-start; flex-direction: column; gap: 2px; }
  .review-header, .review-main { width: min(100% - 24px, 1220px); }
  .review-header { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .review-account { width: 100%; justify-items: start; }
  .review-main { padding-top: 28px; }
  .review-login h1, .review-hero h1, .review-denied h1 { font-size: 37px; }
  .review-safety { grid-template-columns: 1fr 1fr; }
  .admin-workflow-grid { grid-template-columns: 1fr; }
  .admin-safety-list { grid-template-columns: 1fr; }
}
.merchant-detail-copy { padding: clamp(24px, 4vw, 42px); }
.merchant-detail-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.merchant-detail-kicker span { color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.merchant-detail-kicker strong { padding: 5px 8px; border-radius: 999px; background: var(--green-pale); color: var(--green); font-size: 8px; }
.merchant-detail-copy h2 { margin: 18px 0 12px; font-size: clamp(29px, 3.6vw, 46px); line-height: 1.04; letter-spacing: -.035em; }
.merchant-detail-summary { margin: 0 0 17px; color: var(--muted); line-height: 1.65; }
.merchant-detail-identifiers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.merchant-detail-identifiers span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 9px; }
.merchant-detail-identifiers code { margin-left: 5px; color: var(--ink); overflow-wrap: anywhere; }
.merchant-option-group { margin: 0 0 17px; padding: 0; border: 0; }
.merchant-option-group legend { margin-bottom: 9px; font-size: 12px; font-weight: 850; }
.merchant-option-group > div { display: flex; flex-wrap: wrap; gap: 7px; }
.merchant-option-button { min-height: 39px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-weight: 750; }
.merchant-option-button:hover { border-color: var(--green); }
.merchant-option-button.is-active { border-color: var(--green); background: var(--green); color: white; box-shadow: 0 6px 15px rgba(22, 96, 67, .16); }
.merchant-selected-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 3px 0 20px; }
.merchant-selected-options span { padding: 7px 9px; border-radius: 8px; background: var(--paper); color: var(--muted); font-size: 9px; }
.merchant-selected-options strong { margin-left: 6px; color: var(--ink); }
.merchant-purchase-boundary { display: grid; gap: 14px; margin-top: 22px; padding: 17px; border: 1px solid #e7cc91; border-radius: 14px; background: var(--amber-pale); }
.merchant-purchase-boundary strong, .merchant-purchase-boundary span { display: block; }
.merchant-purchase-boundary strong { color: #593a17; }
.merchant-purchase-boundary span { margin-top: 4px; color: #76552d; font-size: 10px; line-height: 1.5; }
.merchant-detail-lower { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.merchant-detail-story, .merchant-detail-specs { padding: 26px; }
.merchant-detail-story h3, .merchant-detail-specs h3 { margin: 5px 0 15px; font-size: 23px; }
.merchant-detail-story > p:last-child { margin: 0; color: var(--muted); line-height: 1.75; }
.merchant-detail-specs dl, .merchant-company-card dl { margin: 0; }
.merchant-detail-specs dl > div, .merchant-company-card dl > div { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.merchant-detail-specs dt, .merchant-company-card dt { color: var(--muted); font-size: 9px; }
.merchant-detail-specs dd, .merchant-company-card dd { margin: 0; overflow-wrap: anywhere; font-size: 10px; font-weight: 750; }
.merchant-cart-line small { display: block; margin-top: 6px; color: var(--green); font-size: 9px; }
.merchant-checkout-boundary .eyebrow { margin: 0; color: #6f4b1f; }
.merchant-import-demo { display: grid; gap: 6px; margin-top: 4px; padding-top: 13px; border-top: 1px solid #dfc17e; }
.merchant-import-demo strong { font-size: 11px; }
.merchant-import-demo span, .merchant-import-result { color: #76552d; font-size: 9px; line-height: 1.5; }
.merchant-import-demo input { width: 100%; min-width: 0; padding: 8px; border: 1px dashed #c9a55d; border-radius: 8px; background: rgba(255,255,255,.52); font-size: 9px; }
.merchant-orders-list { display: grid; gap: 15px; }
.merchant-after-sales, .merchant-cancel-request { border-top: 1px solid var(--line, #d9dfdf); margin-top: 14px; padding-top: 14px; }
.merchant-after-sales h3, .merchant-cancel-request h3 { margin: 0 0 7px; font-size: 15px; }
.merchant-cancel-request p { line-height: 1.5; }
.merchant-cancel-request form { margin-top: 12px; }
.merchant-cancel-request [data-cancel-request-status], [data-cancel-request-pending] { line-height: 1.5; }
.merchant-after-sales form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 12px; }
.merchant-after-sales label { display: grid; gap: 5px; min-width: 150px; font-size: 12px; }
.merchant-after-sales select, .merchant-after-sales input { max-width: 100%; min-height: 36px; }
.merchant-after-sales [data-after-sales-status], [data-after-sales-pending] { line-height: 1.5; }
.merchant-company-boundary { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 17px; padding: 15px 17px; border: 1px solid var(--green-border); border-radius: 14px; background: var(--green-pale); color: var(--green); font-size: 10px; }
.merchant-company-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.merchant-company-card { min-width: 0; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 10px 28px rgba(18,39,30,.05); }
.merchant-company-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 13px; background: var(--green); color: white; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.merchant-company-card h2 { min-height: 55px; margin: 5px 0 14px; font-size: 20px; }
.merchant-company-card > p:not(.eyebrow) { color: var(--muted); font-size: 10px; line-height: 1.6; }
.merchant-company-card .button { width: 100%; margin-top: auto; }
.merchant-company-empty { display: flex; align-items: end; gap: 8px; margin: 10px 0; }
.merchant-company-empty strong { font-size: 38px; line-height: 1; }
.merchant-company-empty span { max-width: 110px; color: var(--muted); font-size: 9px; }

@media (max-width: 900px) {
  .merchant-detail-grid, .merchant-detail-lower { grid-template-columns: 1fr; }
  .merchant-detail-stage { min-height: 430px; }
  .merchant-detail-stage img { height: 430px; }
  .merchant-company-grid { grid-template-columns: 1fr; }
  .merchant-company-card h2 { min-height: 0; }
}
@media (max-width: 560px) {
  .merchant-detail-gallery { padding: 8px; border-radius: 14px; }
  .merchant-detail-stage { min-height: 310px; }
  .merchant-detail-stage img { height: 310px; padding: 10px; }
  .merchant-detail-thumb { flex-basis: 60px; width: 60px; height: 60px; }
  .merchant-detail-copy, .merchant-detail-story, .merchant-detail-specs { padding: 18px; border-radius: 14px; }
  .merchant-detail-copy h2 { font-size: 29px; }
  .merchant-detail-kicker, .merchant-company-boundary { align-items: flex-start; flex-direction: column; }
  .merchant-purchase-boundary .button { width: 100%; }
}

/* The menu represents a verified customer session, including its sign-out
   action. Keep it out of view while the session check is pending or failed. */
html[data-merchant-nav-ready="true"]:not([data-merchant-session-verified="true"]) .merchant-demo-nav,
html[data-merchant-nav-ready="true"]:not([data-merchant-session-verified="true"]) .merchant-nav-toggle {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.merchant-product-card-image img{width:100%;height:100%;object-fit:contain}.merchant-detail-stage img{width:100%;max-height:560px;object-fit:contain}
