/* ../../loading.css */
.page-loading{position:fixed;inset:0;z-index:180;display:grid;place-items:center;pointer-events:none;background:rgba(255,255,255,.76);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);opacity:0;transition:opacity 140ms ease-in;color:#253b61}
.page-loading[hidden]{display:none!important}
.page-loading.is-visible{opacity:1;transition:opacity 180ms cubic-bezier(.16,1,.3,1)}
.page-loading-inner{display:grid;justify-items:center;gap:15px;transform:translateY(6px);transition:transform 180ms cubic-bezier(.16,1,.3,1);padding:28px;text-align:center}
.page-loading.is-visible .page-loading-inner{transform:translateY(0)}
.page-loading-inner>strong{font:600 13px/1.5 system-ui,sans-serif;letter-spacing:.34em;margin-left:.34em}
.page-loading-label{font:400 12px/1.6 system-ui,sans-serif;color:#6d7890;letter-spacing:.06em}
.page-loading-orbit{position:relative;display:grid;place-items:center;width:96px;height:96px;margin-bottom:7px;border:1px solid rgba(53,100,177,.12);border-radius:50%;box-shadow:0 0 44px rgba(76,115,192,.09)}
.page-loading-orbit:before,.page-loading-orbit:after{content:"";position:absolute;inset:8px;border-radius:50%;border:1px solid transparent;border-top-color:#b89451;border-right-color:rgba(184,148,81,.15);animation:aurelis-orbit 2.4s linear infinite}
.page-loading-orbit:after{inset:-10px;border-top-color:rgba(72,114,180,.3);border-right-color:transparent;animation-direction:reverse;animation-duration:4s}
.page-loading-orbit img{object-fit:contain;filter:drop-shadow(0 4px 8px #34568820)}
.page-loading-line{width:76px;height:2px;overflow:hidden;border-radius:2px;background:#dfe6f0}
.page-loading-line:after{content:"";display:block;width:32px;height:100%;background:linear-gradient(90deg,#718fb7,#b89451);animation:aurelis-sweep 1.4s ease-in-out infinite}
@keyframes aurelis-orbit{to{transform:rotate(360deg)}}
@keyframes aurelis-sweep{0%{transform:translateX(-32px)}100%{transform:translateX(76px)}}
[data-theme="dark"] .page-loading{background:rgba(14,22,37,.8);color:#e1e8f5}
[data-theme="dark"] .page-loading-label{color:#abb8ce}
@media(max-width:600px){.page-loading-orbit{width:78px;height:78px}.page-loading-inner{gap:12px}}
@media(prefers-reduced-motion:reduce){.page-loading,.page-loading-inner{transition:none!important;transform:none}.page-loading-orbit:before,.page-loading-orbit:after,.page-loading-line:after{animation:none}.page-loading-line:after{transform:translateX(22px)}}

/* tokens.css */
/* AURELIS V2 tokens: logo blue-violet + deep navy; legacy gold token names retained for shared components. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --ink: #14213d;
  --ink-2: #4a5470;
  --line: #dfe3e8;
  --gold: #718ee2;
  --gold-soft: #e9edff;
  --gold-ink: #344c93;
  --action: #1677ff;
  --action-ink: #ffffff;
  --action-hover: #0958d9;
  --promo-gold: #a1b9ff;
  --promo-gold-ink: #14213d;
  --promo-solid: #14213d;
  --promo-solid-ink: #ffffff;
  --focus: #435fbd;
  --ok: #1d6f47;
  --warn: #8f5300;
  --info: #2b5591;
  --muted: #5d6680;
  --hero-a: rgba(113, 142, 226, 0.42);
  --hero-veil: #f4f7fb;
  --hero-ink-2: #2b5591;
  --hero-media-filter: none;
  --hero-tint: transparent;
  --card-glow: rgba(113, 142, 226, 0.16);
  --hero-sun: 0.32;
  --hero-b: rgba(20, 33, 61, 0.10);
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.06), 0 8px 24px rgba(20, 33, 61, 0.08);
  --brand-mark-bg: #14213d;
  --brand-mark-ink: #a1b9ff;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --space: 8px;
  --header-h: 73px;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1222;
    --surface: #111a2e;
    --surface-2: #17223b;
    --ink: #f3eee3;
    --ink-2: #b6bdcc;
    --line: #27334f;
    --gold: #a1b9ff;
    --gold-soft: #202b4c;
    --gold-ink: #b9c8ff;
    --action: #a1b9ff;
    --action-ink: #0b1222;
    --action-hover: #bdcbff;
    --focus: #b9c8ff;
    --ok: #6fd39b;
    --warn: #f2b45a;
    --info: #8fb2ea;
    --muted: #a3abbd;
    --hero-a: rgba(113, 142, 226, 0.24);
    --hero-veil: #0b1222;
    --hero-ink-2: #a1b9ff;
    --hero-media-filter: brightness(0.78) contrast(1.12);
    --hero-tint: #5f78b4;
    --card-glow: rgba(113, 142, 226, 0.1);
    --hero-sun: 0.1;
    --hero-b: rgba(143, 178, 234, 0.10);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    --brand-mark-bg: #a1b9ff;
    --brand-mark-ink: #0b1222;
    --promo-solid: #f3eee3;
    --promo-solid-ink: #0b1222;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1222;
  --surface: #111a2e;
  --surface-2: #17223b;
  --ink: #f3eee3;
  --ink-2: #b6bdcc;
  --line: #27334f;
  --gold: #a1b9ff;
  --gold-soft: #202b4c;
  --gold-ink: #b9c8ff;
  --action: #a1b9ff;
  --action-ink: #0b1222;
  --action-hover: #bdcbff;
  --focus: #b9c8ff;
  --ok: #6fd39b;
  --warn: #f2b45a;
  --info: #8fb2ea;
  --muted: #a3abbd;
  --hero-a: rgba(113, 142, 226, 0.24);
  --hero-veil: #0b1222;
  --hero-ink-2: #a1b9ff;
  --hero-media-filter: brightness(0.78) contrast(1.12);
  --hero-tint: #5f78b4;
  --card-glow: rgba(113, 142, 226, 0.1);
  --hero-sun: 0.1;
  --hero-b: rgba(143, 178, 234, 0.10);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  --brand-mark-bg: #a1b9ff;
  --brand-mark-ink: #0b1222;
  --promo-solid: #f3eee3;
  --promo-solid-ink: #0b1222;
}

/* base.css */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font-sans); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; text-wrap: balance; }
h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); }
h3 { font-size: 1.05rem; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-s); background: var(--action); color: var(--action-ink); text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
/* Keep focused fields and validation scrolls clear of the fixed mobile bottom nav (layout.css, ≤ 900px). */
@media (max-width: 900px) { html { scroll-padding-bottom: 80px; } }

/* layout.css */
/* From 1440px the content keeps the 1080p desktop proportion (70% of the screen: 1344px at 1920px, up to the
   original 1760px on 2K), so 125%-scaled 1080p laptops (1536px) get the same side whitespace and the floating
   pills sit beside the content instead of over the products. */
.container { width: min(100% - clamp(32px, 8vw, 144px), 1344px); margin-inline: auto; }
@media (min-width: 1440px) { .container { width: min(70vw, 1760px); } }
.page { padding-block: 32px 64px; }
.section { padding-block: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title { margin-bottom: 20px; }
.section-head .section-title { margin-bottom: 0; }

.site-header { --header-blue: #0071e3; --header-blue-ink: #0071e3; --header-blue-soft: #e8f2ff; --header-blue-line: #b7d7ff; --header-muted: #7a7c83; --header-danger: #d64b4b; position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 50; background: var(--surface); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
body { padding-top: var(--header-h); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 100%; width: 100%; max-width: 1536px; padding-inline: 16px; }
.header-center { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.site-header .brand { padding: 0 12px; height: 40px; width: 130px; border: 1px solid color-mix(in srgb, #3b5bdb 28%, var(--line)); border-radius: 999px; background: var(--surface); transition: border-color 0.2s, box-shadow 0.2s; }
.site-header .brand-mark { width: 26px; height: 23px; }
.site-header .brand-text strong { font-size: 13px; letter-spacing: 0.08em; }
.site-header .brand-text small { font-size: 6.5px; letter-spacing: 0.12em; }
.site-header .brand:hover { border-color: color-mix(in srgb, #3b5bdb 55%, var(--line)); box-shadow: 0 4px 14px -6px rgba(59, 91, 219, 0.35); }
.brand-mark { display: block; width: 32px; height: 27px; flex: none; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.12em; }
.brand-text small { font-size: 0.6rem; letter-spacing: 0.22em; color: var(--gold-ink); }
.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav > a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 10px; border-radius: 999px; text-decoration: none; color: var(--header-muted); font-size: 13px; font-weight: 500; white-space: nowrap; transition: color 0.2s, background-color 0.2s; }
.header-nav > a:hover { color: var(--header-blue-ink); background: color-mix(in srgb, var(--header-blue-soft) 65%, transparent); }
.header-nav > a[aria-current="page"] { color: var(--header-blue-ink); background: var(--header-blue-soft); }
.header-nav .icon { flex: none; }
[data-dropdown] { position: relative; }
[data-dropdown] > summary { list-style: none; }
[data-dropdown] > summary::-webkit-details-marker { display: none; }
[data-dropdown] > summary .icon { transition: transform 0.2s; }
[data-dropdown][open] > summary .icon:last-child { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; display: grid; min-width: 140px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 18px 40px -18px rgba(20, 33, 61, 0.35); }
.dropdown-menu a, .dropdown-menu button { padding: 8px 12px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font: inherit; font-size: 0.86rem; text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); color: var(--ink); }
.dropdown-menu [aria-current="true"], .dropdown-menu [aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.promo { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; min-height: 40px; border-radius: 999px; font-size: 13px; font-weight: 750; letter-spacing: .025em; text-decoration: none; white-space: nowrap; transition: box-shadow .18s, border-color .18s; }
.promo-gold { position: relative; overflow: hidden; border: 1px solid #c99638; background: linear-gradient(115deg, #edc366, #ffe6a1 45%, #e8b54b); color: #493006; box-shadow: inset 0 1px 0 #fff5cc, 0 3px 12px rgba(189, 138, 37, .15); }
.promo-gold::before { content: ""; position: absolute; top: -50%; bottom: -50%; left: -70%; width: 45%; background: linear-gradient(90deg, transparent, rgba(255, 249, 223, .8), transparent); pointer-events: none; animation: promo-gold-sweep 4.8s ease-in-out infinite; }
@media (hover: hover) { .promo-gold:hover { border-color: #aa741d; box-shadow: inset 0 1px 0 #fff5cc, 0 4px 18px rgba(189, 138, 37, .27); } }
@keyframes promo-gold-sweep { 0%, 15% { transform: translateX(0) skewX(-22deg); } 48%, 100% { transform: translateX(550%) skewX(-22deg); } }
@media (prefers-reduced-motion: reduce) { .promo-gold::before { animation: none; display: none; } }
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tool-link, .lang-menu > summary { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--header-muted); font: 500 12px/1.4 var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.tool-link .icon, .lang-menu .icon { flex: none; }
.account-link [data-login-icon], .account-link [data-user-icon] { display: inline-flex; }
.tool-link:hover, .lang-menu > summary:hover, .icon-button:hover { color: var(--ink); background: var(--surface-2); }
.header-tools .header-feedback { color: var(--header-blue-ink); border-color: var(--header-blue-line); font-weight: 600; }
.header-tools .header-feedback:hover { background: var(--header-blue-soft); border-color: var(--header-blue); }
.header-tools .header-enterprise { padding-inline: 14px; background: var(--header-blue); color: #fff; border-color: var(--header-blue); font-weight: 600; }
.header-tools .header-enterprise:hover { background: #0062c6; border-color: #0062c6; }
.header-tools .header-supply, .header-tools .header-account.is-signed-in { padding-inline: 14px; color: var(--header-blue-ink); border-color: var(--header-blue-line); background: color-mix(in srgb, var(--header-blue-soft) 60%, var(--surface)); }
.header-tools .header-supply:hover, .header-tools .header-account.is-signed-in:hover { background: var(--header-blue-soft); border-color: var(--header-blue); }
.header-logout { color: var(--header-danger); }
.header-logout:hover { color: var(--header-danger); background: color-mix(in srgb, var(--header-danger) 8%, var(--surface)); }
.header-auth-status { position: absolute; top: calc(100% + 8px); right: 16px; max-width: min(400px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); font-size: 13px; }
.lang-menu .dropdown-menu { left: auto; right: 0; min-width: 176px; max-width: calc(100vw - 32px); padding: 6px; border-color: color-mix(in srgb, var(--line) 70%, var(--surface)); border-radius: 14px; box-shadow: 0 6px 24px -8px rgb(20 33 61 / 20%), 0 2px 6px rgb(20 33 61 / 5%); }
.lang-menu > summary > .icon:last-child { width: 12px; height: 12px; opacity: .65; }
.lang-menu[open] > summary { color: var(--header-blue-ink); background: var(--header-blue-soft); }
.lang-menu .lang-switch [role="menuitemradio"] { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; padding: 10px 12px; border-radius: 9px; font-size: 13px; line-height: 1.4; }
.lang-menu .lang-switch [aria-checked="true"] { color: var(--header-blue-ink); background: var(--header-blue-soft); font-weight: 600; }
.lang-menu .language-check { flex: none; opacity: 0; }
.lang-menu [aria-checked="true"] .language-check { opacity: 1; }
.lang-menu .lang-switch [role="menuitemradio"]:focus-visible { outline: 2px solid var(--header-blue); outline-offset: -2px; }
.lang-menu > summary:focus-visible { outline: 2px solid var(--header-blue); outline-offset: 2px; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); cursor: pointer; }
.badge { position: absolute; top: 1px; left: 18px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--gold); color: #14213d; font-size: 0.66rem; font-weight: 700; line-height: 16px; text-align: center; }

.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 0.92rem; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; }
.footer-main nav h2 { margin-bottom: 14px; font-size: 0.98rem; color: var(--ink); }
.footer-main ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.footer-main nav a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.footer-main nav a .icon { width: 17px; height: 17px; opacity: 0.75; }
.footer-main nav a:hover { color: var(--ink); }
.footer-brand p { margin-top: 14px; }
.footer-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-block: 16px; border-top: 1px solid var(--line); font-size: 0.85rem; }
.pay-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.pay-chip b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; color: #fff; font-size: 0.7rem; font-weight: 700; }
.pay-wechat { background: #07c160; }
.pay-alipay { background: #1677ff; }
.pay-usdt { display:block; width:20px; height:20px; border-radius:50%; flex:none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding-block: 18px 28px; border-top: 1px solid var(--line); font-size: 0.82rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a { color: var(--ink-2); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  body { padding-bottom: 72px; }
  .mobile-nav { position: fixed; inset: auto 0 0 0; z-index: 50; display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); }
  .mobile-nav a { display: grid; justify-items: center; gap: 2px; min-height: 60px; padding-top: 8px; font-size: 0.75rem; text-decoration: none; color: var(--ink-2); }
  .mobile-nav a[aria-current="page"] { color: var(--gold-ink); font-weight: 600; }
}
@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .header-tools { gap: 0; }
  .brand-text strong { font-size: 1.05rem; letter-spacing: 0.1em; }
  .brand-text small { display: none; }
  .site-header .brand { height: 40px; padding: 0 8px; }
}
/* Very narrow phones: keep the brand name for assistive tech but give the header tools the room. */
@media (max-width: 380px) {
  .site-header .brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Header actions stay reachable when the desktop navigation collapses. */
.header-mobile-menu { display: block; position: relative; }
.header-mobile-menu > summary { display: grid; place-items: center; width: 36px; height: 36px; cursor: pointer; color: var(--ink-2); }
.header-mobile-menu .dropdown-menu { left: auto; right: 0; min-width: 220px; max-height: calc(100dvh - 110px); overflow-y: auto; }
.header-mobile-menu .dropdown-menu a, .header-mobile-menu .dropdown-menu button { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 40px; border-radius: 9px; }
.header-mobile-menu .dropdown-menu .header-logout { color: var(--header-danger); }
.language-heading { padding: 7px 12px; font-size: 12px; color: var(--muted); }
.header-dialog { position: fixed; width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 28px; overflow-y: auto; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 80px #0003; }
.header-dialog::backdrop { background: #0008; backdrop-filter: blur(4px); }
.header-dialog h2 { padding-right: 30px; font-size: 21px; }
.header-dialog p { margin-top: 14px; color: var(--ink-2); font-size: 14px; }
.header-dialog .dialog-close { position: absolute; top: 14px; right: 14px; font-size: 24px; background: var(--surface-2); }
.header-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 20px; }
.header-dialog-actions .button { font-size: 13px; }
.header-inquiry { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.header-inquiry h3 { font-size: 14px; }
.header-inquiry pre { margin: 12px 0 0; white-space: pre-wrap; font: 13px/1.9 var(--font-sans); }

#header-support { width:min(480px,calc(100% - 32px)); padding:36px 24px 28px; border-radius:30px; text-align:center; }
#header-support h2 { margin:0; padding:0 28px; font-size:23px; line-height:1.4; font-weight:650; }
#header-support .dialog-close { top:15px; right:15px; width:44px; height:44px; border-radius:50%; color:var(--ink-2); font-size:24px; }
#header-support .header-group-number strong,#header-support .support-copy-button { color:var(--ink); }
#header-support .support-group-note { margin:20px 0 0; font-size:14px; line-height:1.7; }
#header-support [data-copy-status]:empty { display:none; }
.support-group-card { width:min(300px,100%); margin:24px auto 20px; padding:24px; border:1px solid #dce1e9; border-radius:20px; background:#f8f8fa; color:#191d26; }
.support-group-card-head { display:flex; align-items:center; gap:12px; padding:10px 0 30px; border-bottom:1px dashed #e0e3e9; text-align:left; }
.support-group-card-head > img { flex-shrink:0; width:52px; height:52px; padding:5px; border-radius:50%; background:#fff; }
.support-group-card-head > div { min-width:0; }
.support-group-card-head strong { display:block; font-size:17px; line-height:1.5; font-weight:600; }
.support-group-card-head small { display:block; margin-top:10px; color:#92959d; font-size:12px; white-space:nowrap; }
.support-qr-frame { position:relative; width:100%; aspect-ratio:1; overflow:hidden; margin:28px auto 16px; border-radius:0; background:#fff; }
.support-qr-frame img { position:absolute; display:block; width:142.6667%; max-width:none; height:auto; left:-21.6667%; top:-89.4444%; border:0; border-radius:0; }
.header-group-number { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; align-items:center; color:#687386; font-size:16px; }
.header-group-number strong { color:inherit; font-family:inherit; font-size:18px; font-weight:650; font-variant-numeric:tabular-nums; user-select:all; }
.support-copy-button { display:inline-flex; justify-content:center; align-items:center; gap:5px; padding:5px 12px; border:1px solid #dce1e9; border-radius:10px; color:inherit; background:transparent; font:inherit; font-size:14px; line-height:1.5; cursor:pointer; }
.support-copy-button svg { flex-shrink:0; }
.support-copy-button:focus-visible,.support-help-link:focus-visible { outline:2px solid #007aff; outline-offset:3px; }
.support-help-link { display:block; width:fit-content; margin:16px auto 0; color:#007aff; font-size:15px; text-decoration:none; }

.header-telegram { margin-top: 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; }
.header-telegram summary { cursor: pointer; font-size: 14px; font-weight: 600; }

/* Fit the desktop tools and primary navigation in the header's capped width. */
.header-center .promo .icon { width: 14px; height: 14px; }
.header-tools .lang-menu > summary { gap: 6px; padding-inline: 6px; }
.header-inner { gap: 10px; }
.header-center { gap: 12px; }
.header-nav { gap: 2px; }
.header-nav > a { padding-inline: 8px; gap: 5px; font-size: 12px; }
.header-tools { gap: 4px; }
.header-tools .header-enterprise, .header-tools .header-supply, .header-tools .header-account.is-signed-in { padding-inline: 11px; }
.header-center .promo { padding-inline: 13px; font-size: 12px; }
html[lang="en"] .header-inner { max-width: 1664px; }
/* Room for the six primary links (incl. GPT account check): business buttons go first, then text labels of
   help/guest orders become icon-only (their aria-label stays). English labels are longer, so it starts earlier. */
@media (max-width: 1500px) { .header-tools .header-business { display: none; } }
@media (max-width: 1700px) { html[lang="en"] .header-tools .header-business { display: none; } }
@media (max-width: 1400px) { .header-tools :is(.header-help, .header-guest) > span { display: none; } }
html[lang="en"] .header-tools :is(.header-help, .header-guest, .header-cart) > span:not(.badge) { display: none; }
@media (max-width: 1366px) { html[lang="en"] :is(.header-center, .header-tools .header-logout-main > span) { display: none; } }
@media (max-width: 1279px) { .header-center { display: none; } .header-tools { gap: 8px; } }
@media (max-width: 600px) {
  .site-header .brand { width: auto; gap: 4px; padding-inline: 6px; }
  .header-inner { gap: 4px; padding-inline: 10px; }
  .header-tools { gap: 2px; }
  .header-tools .header-feedback { min-height: 44px; padding-inline: 8px; }
  .header-tools .lang-menu > summary > .icon:first-child { display: none; }
  .header-tools .header-cart { display: none; }
  .header-tools .header-account, .header-tools .header-logout-main { width: 34px; padding: 0; }
  .header-tools .header-account [data-account-label], .header-tools .header-logout-main > span { display: none; }
  .header-tools .icon-button, .header-mobile-menu > summary { width: 32px; }
}
@media (max-width: 380px) { .site-header .brand { width: 44px; padding-inline: 8px; } }
:root[data-theme="dark"] .site-header { --header-blue-ink: #80b9ff; --header-blue-soft: #173558; --header-blue-line: #345e8d; --header-muted: #b6bdcc; --header-danger: #ff9696; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header { --header-blue-ink: #80b9ff; --header-blue-soft: #173558; --header-blue-line: #345e8d; --header-muted: #b6bdcc; --header-danger: #ff9696; }
}

#header-enterprise.enterprise-dialog { --enterprise-ink:#1d1d1f; --enterprise-muted:#6e6e73; --enterprise-line:#dedede; --enterprise-surface:#fff; width:min(560px,calc(100% - 32px)); max-height:calc(100dvh - 32px); padding:0; overflow:hidden; border-radius:24px }
#header-enterprise .enterprise-dialog-shell { display:flex; flex-direction:column; max-height:calc(100dvh - 34px) }
#header-enterprise .enterprise-dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-shrink:0; padding:24px 24px 14px }
#header-enterprise .enterprise-dialog-head h2 { margin:0; padding:0; color:var(--enterprise-ink); font-size:22px; line-height:1.4; font-weight:500 }
#header-enterprise .enterprise-dialog-head .dialog-close { position:static; width:32px; height:32px; padding:0; border:0; border-radius:50%; color:var(--ink-2); background:none; font-size:28px; line-height:1 }
#header-enterprise .enterprise-dialog-content { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:0 24px 24px }
.enterprise-dialog-content .enterprise-intro { margin:0; color:var(--enterprise-muted); font-size:15px; line-height:1.8 }
.enterprise-dialog-content .enterprise-conditions { margin-top:24px; padding:18px; border:1px solid #bad9ff; border-radius:18px; background:#e8f3ff }
.enterprise-dialog-content .enterprise-conditions h3 { margin:0 0 12px; color:#0071e3; font-size:15px; font-weight:500 }
.enterprise-dialog-content .enterprise-conditions ul { display:grid; gap:10px; margin:0; padding:0; list-style:none }
.enterprise-dialog-content .enterprise-conditions li { display:flex; align-items:baseline; gap:11px; color:var(--enterprise-ink); font-size:15px; line-height:1.65 }
.enterprise-dialog-content .enterprise-conditions li>span:first-child { flex-shrink:0; color:#0071e3; font-size:18px; line-height:1 }
.enterprise-dialog-content .enterprise-conditions p { margin:16px 0 0; color:var(--enterprise-muted); font-size:12px; line-height:1.8 }
.enterprise-dialog-content .enterprise-conditions a { color:#0071e3; text-decoration:none }
.enterprise-dialog-content .enterprise-request { margin-top:18px; padding:18px; border:1px solid var(--enterprise-line); border-radius:18px; background:var(--enterprise-surface) }
.enterprise-dialog-content .enterprise-request-head { display:flex; align-items:center; justify-content:space-between; gap:12px }
.enterprise-dialog-content .enterprise-request-head h3 { margin:0; color:var(--enterprise-ink); font-size:15px; font-weight:500 }
.enterprise-dialog-content .enterprise-request-head button { display:inline-flex; align-items:center; justify-content:center; gap:7px; flex-shrink:0; min-height:34px; padding:5px 12px; border:1px solid var(--enterprise-line); border-radius:999px; color:var(--enterprise-ink); background:var(--enterprise-surface); font-size:13px; line-height:1.4; cursor:pointer }
.enterprise-dialog-content .enterprise-request ol { display:grid; gap:9px; margin:16px 0 0; padding-left:27px; color:var(--enterprise-muted); font-size:15px; line-height:1.75; white-space:normal }
.enterprise-dialog-content .enterprise-request li { padding-left:2px }
.enterprise-dialog-content .enterprise-request li::marker { color:var(--enterprise-ink) }
.enterprise-dialog-content [data-copy-status] { margin:12px 0 0; color:#0071e3; font-size:12px; line-height:1.6 }
.enterprise-dialog-content [data-copy-status]:empty { display:none }
.enterprise-dialog-content .enterprise-contact-button { margin-top:20px; display:flex; align-items:center; justify-content:center; width:100%; min-height:56px; padding:14px 16px; border:1px solid #0071e3; border-radius:18px; color:#fff; background:#0071e3; font-size:15px; line-height:1.6; text-align:center; text-decoration:none }
.enterprise-dialog-content .enterprise-contact-button:hover { background:#0062c6; border-color:#0062c6 }
.enterprise-dialog-content .enterprise-form-link { display:block; min-height:36px; margin-top:10px; padding:8px 4px 0; color:#0071e3; font-size:12px; line-height:1.6; text-align:center; text-decoration:none }
:root[data-theme=dark] .enterprise-dialog-content .enterprise-conditions { background:#142e4e; border-color:#315883 }
:root[data-theme=dark] .enterprise-dialog-content .enterprise-conditions h3,:root[data-theme=dark] .enterprise-dialog-content .enterprise-conditions li>span:first-child,:root[data-theme=dark] .enterprise-dialog-content .enterprise-conditions a,:root[data-theme=dark] .enterprise-dialog-content [data-copy-status],:root[data-theme=dark] .enterprise-dialog-content .enterprise-form-link { color:#9fcaff }
@media(max-width:480px) {
  .enterprise-dialog-content .enterprise-conditions,.enterprise-dialog-content .enterprise-request { padding:16px }
  .enterprise-dialog-content .enterprise-request-head { gap:8px }
  .enterprise-dialog-content .enterprise-request-head h3 { font-size:14px }
  .enterprise-dialog-content .enterprise-request-head button { padding:5px 10px; font-size:12px }
  .enterprise-dialog-content .enterprise-contact-button { font-size:14px; border-radius:15px }
}

:root[data-theme=dark] #header-enterprise.enterprise-dialog { --enterprise-ink:var(--ink); --enterprise-muted:var(--ink-2); --enterprise-line:var(--line); --enterprise-surface:var(--surface) }
#header-enterprise .dialog-close:focus-visible { outline:2px solid #0071e3; outline-offset:2px }
/* Desktop (>= 900px wide): compact dialogs, about half of a 1080p screen and two thirds of a 125% laptop
   screen: a single-column enterprise dialog with tighter type, and a smaller QQ group card. Phones are unchanged. */
@media (min-width: 900px) {
  #header-enterprise.enterprise-dialog { width:min(540px,calc(100% - 32px)); max-height:min(760px,78dvh) }
  #header-enterprise .enterprise-dialog-shell { max-height:min(760px,78dvh) }
  #header-enterprise .enterprise-dialog-head { padding:18px 22px 8px }
  #header-enterprise .enterprise-dialog-head h2 { font-size:19px }
  #header-enterprise .enterprise-dialog-content { padding:0 22px 16px }
  .enterprise-dialog-content .enterprise-intro { font-size:13px; line-height:1.65 }
  .enterprise-dialog-content .enterprise-conditions { margin-top:12px; padding:12px 14px; border-radius:14px }
  .enterprise-dialog-content .enterprise-conditions h3,.enterprise-dialog-content .enterprise-request-head h3 { font-size:14px }
  .enterprise-dialog-content .enterprise-conditions h3 { margin-bottom:8px }
  .enterprise-dialog-content .enterprise-conditions ul { gap:2px }
  .enterprise-dialog-content .enterprise-conditions li { font-size:13px; line-height:1.6 }
  .enterprise-dialog-content .enterprise-conditions p { margin-top:8px; line-height:1.6 }
  .enterprise-dialog-content .enterprise-request { margin-top:12px; padding:12px 14px; border-radius:14px }
  .enterprise-dialog-content .enterprise-request-head button { min-height:30px; padding:3px 10px; font-size:12px }
  .enterprise-dialog-content .enterprise-request ol { gap:0; margin-top:8px; font-size:13px; line-height:1.6 }
  .enterprise-dialog-content .enterprise-contact-button { margin-top:12px; min-height:42px; padding:9px 14px; border-radius:14px; font-size:14px; position:sticky; bottom:8px; z-index:1; box-shadow:0 0 0 10px var(--enterprise-surface) }
  .enterprise-dialog-content .enterprise-form-link { margin-top:2px; padding-top:6px; min-height:0 }
  #header-support { padding:26px 22px 20px; border-radius:24px }
  #header-support h2 { font-size:20px }
  .support-group-card { width:min(220px,100%); margin:14px auto 12px; padding:14px }
  .support-group-card-head { padding:0 0 12px }
  .support-group-card-head > img { width:44px; height:44px }
  .support-qr-frame { margin:12px auto 4px }
  #header-support .support-group-note { margin-top:10px; font-size:13px }
}

/* Shared compact navigation groups. */
.header-nav { gap:2px; padding:3px; border-radius:999px; background:var(--surface-2) }
.header-nav>a { height:34px; min-height:34px; padding:0 10px }
.header-nav>a>.icon { display:none }
.header-nav>a[aria-current=page] { color:var(--ink); background:var(--surface); box-shadow:0 1px 4px #0002 }
.header-more { position:relative }
.header-more>summary { display:flex; align-items:center; gap:4px; height:34px; padding:0 10px; font-size:13px; color:var(--header-muted); cursor:pointer; list-style:none }
.header-more>summary::-webkit-details-marker { display:none }
.header-more>summary .icon { width:12px; height:12px }
.header-more>.dropdown-menu { min-width:150px; padding:6px; border-radius:14px }
.header-more .dropdown-menu a { display:flex; align-items:center; gap:10px; min-height:40px; border-radius:9px; font-size:13px }
.header-more>summary:focus-visible { outline:2px solid var(--header-blue); border-radius:999px }
@media(min-width:1501px) { .header-mobile-menu { display:none } }
/* English hides the business buttons up to 1700px, so the menu that also lists them stays until then. */
@media (max-width: 1700px) { html[lang="en"] .header-mobile-menu { display: block; } }
@media(max-width:1279px) { .header-tools .header-guest { display:none } }
@media(max-width:600px) { .header-tools .header-help { display:none } }

#header-supply { width:min(450px,calc(100% - 32px)); padding:24px; border-radius:24px; background:var(--surface) }
.supply-dialog-note { margin-top:20px; padding:18px; border:1px solid #bad9ff; border-radius:14px; background:#e8f3ff }
.supply-dialog-note h3 { margin:0; font-size:15px; line-height:1.6; color:#0071e3 }
.supply-dialog-note p { margin:10px 0 0; font-size:14px; line-height:1.8; color:var(--ink-2) }
.supply-contact-button { display:flex; justify-content:center; align-items:center; min-height:48px; margin-top:20px; padding:12px; border-radius:12px; background:#0071e3; color:#fff; text-decoration:none; font-size:14px }
.supply-contact-button:hover { background:#0062c6; color:#fff }
:root[data-theme=dark] .supply-dialog-note { background:#142e4e; border-color:#315883 }
:root[data-theme=dark] .supply-dialog-note h3 { color:#9fcaff }

/* Floating contact tools leave room for the mobile tab bar and safe area. */
.floating-tools { position:fixed; z-index:40; right:24px; bottom:24px; display:flex; flex-direction:column; align-items:flex-end; gap:28px; pointer-events:none }
.floating-tools>a,.floating-tools>button { pointer-events:auto; display:inline-flex; align-items:center; justify-content:center; gap:10px; color:var(--ink); background:var(--surface); box-shadow:0 8px 24px rgb(20 33 61 / 9%),0 2px 4px rgb(20 33 61 / 4%); cursor:pointer; text-decoration:none; font-family:inherit }
.floating-tools .floating-support { min-width:128px; height:44px; padding:0 14px; border:1px solid #b7d7ff; border-radius:999px; font-size:13px; font-weight:600 }
.floating-support>svg { width:18px; height:18px; color:#0071e3 }
.floating-tools .floating-back-top { width:48px; height:48px; padding:0; background:#edf0f5; border:1px solid #d9e0e9; border-radius:50% }
:root[data-theme=dark] .floating-tools .floating-back-top { background:var(--surface); border-color:var(--line) }
.floating-back-top>svg { width:22px; height:22px }
.floating-tools .floating-back-top[hidden] { display:none }
.floating-tools:has(.floating-back-top[hidden]) { padding-bottom:76px }
.floating-tools>a:hover,.floating-tools>button:hover { border-color:#0071e3; color:#0071e3 }
.floating-tools .floating-assistant { min-width:128px; height:44px; padding:0 14px; border:1px solid transparent; border-radius:999px; font-size:13px; font-weight:600; color:var(--action-ink); background:var(--action) }
.floating-tools .floating-assistant:hover { color:var(--action-ink); background:var(--action-hover) }
.floating-assistant>svg { width:18px; height:18px }
.assistant-panel { position:fixed; z-index:60; inset:auto 24px 24px auto; width:min(400px, calc(100% - 32px)); height:min(620px, calc(100dvh - 48px)); margin:0; padding:0; flex-direction:column; border:1px solid var(--line); border-radius:var(--radius-l); color:var(--ink); background:var(--surface); box-shadow:0 24px 80px #0003; overflow:hidden }
.assistant-panel[open] { display:flex }
.assistant-head { display:flex; align-items:center; gap:8px; padding:14px 16px; border-bottom:1px solid var(--line) }
.assistant-head h2 { flex:1; margin:0; font-size:16px }
.assistant-head .dialog-close { position:static }
.assistant-clear { padding:4px 8px; border:0; border-radius:var(--radius-s); color:var(--muted); background:none; font:inherit; font-size:12px; cursor:pointer }
.assistant-clear:hover { color:var(--ink); background:var(--surface-2) }
.assistant-log { flex:1; display:flex; flex-direction:column; gap:10px; padding:16px; overflow-y:auto; overscroll-behavior:contain }
.assistant-message { max-width:88%; margin:0; padding:10px 12px; border-radius:14px; font-size:14px; line-height:1.6; overflow-wrap:anywhere }
.assistant-bot { align-self:flex-start; background:var(--surface-2) }
.assistant-user { align-self:flex-end; color:var(--action-ink); background:var(--action) }
.assistant-pending { color:var(--muted) }
.assistant-error { color:var(--warn) }
.assistant-message a { color:var(--info); text-decoration:underline }
.assistant-sources { display:flex; flex-wrap:wrap; gap:4px 10px; margin:-4px 0 0; font-size:12px; color:var(--muted) }
.assistant-sources a { color:var(--info) }
.assistant-suggestions { display:flex; flex-direction:column; align-items:flex-start; gap:6px }
.assistant-suggestions button { padding:6px 12px; border:1px solid var(--line); border-radius:999px; color:var(--ink); background:var(--surface); font:inherit; font-size:13px; text-align:left; cursor:pointer }
.assistant-suggestions button:hover { border-color:var(--info); color:var(--info) }
.assistant-form { display:flex; align-items:flex-end; gap:8px; padding:12px 16px 4px; border-top:1px solid var(--line) }
.assistant-form .button { flex:none; min-height:40px; padding:0 16px; font-size:14px }
.assistant-form textarea { flex:1; min-height:44px; max-height:120px; padding:10px 12px; border:1px solid var(--line); border-radius:var(--radius-m); color:var(--ink); background:var(--bg); font:inherit; font-size:14px; resize:none }
.assistant-form textarea:focus { outline:2px solid var(--focus); outline-offset:1px }
.assistant-note { margin:0; padding:4px 16px 12px; font-size:11px; color:var(--muted) }
@media (max-width: 640px) { .assistant-panel { inset:0; width:100%; height:100dvh; max-height:none; border-radius:0 } .floating-tools .floating-assistant { min-width:0 } }
.floating-tools>a:focus-visible,.floating-tools>button:focus-visible { outline:2px solid #0071e3; outline-offset:4px }
.floating-sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
:root[data-theme=dark] .floating-support { border-color:#345e8d }
:root[data-theme=dark] .floating-support>svg { color:#80b9ff }
@media(max-width:900px) {
  .floating-tools { right:16px; bottom:calc(84px + env(safe-area-inset-bottom)); gap:16px }
  .floating-tools .floating-support { min-width:120px; height:44px; padding-inline:12px; font-size:13px }
  .floating-tools:has(.floating-back-top[hidden]) { padding-bottom:64px }
}
@media(max-width:640px) {
  .floating-tools { gap:12px }
  .floating-tools .floating-assistant,.floating-tools .floating-support { width:44px; min-width:0; height:44px; padding:0; border-radius:50% }
  .floating-tools .floating-back-top { width:44px; height:44px }
  .floating-tools:has(.floating-back-top[hidden]) { padding-bottom:56px }
  .floating-assistant>span,.floating-support>span { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
}

/* Attribution controls stay below content, clear of the overlapping hero. */
.referral-note { padding-block: 12px 20px; color: var(--ink-2); font-size: 0.85rem; }
.referral-note summary { cursor: pointer; width: fit-content; min-height: 44px; display: list-item; align-content: center; }
.referral-note p { margin-block: 8px; max-width: 65ch; }
.referral-note [data-referral-error]:empty { display: none; }

/* Desktop: the assistant panel keeps to about 70% of the screen height. */
@media (min-width: 900px) { .assistant-panel { height:min(560px, calc(72dvh - 16px)) } }

/* Short laptop screens (e.g. 1080p at 125%): smaller labelled floating buttons. */
@media (min-width: 901px) and (max-height: 860px) {
  .floating-tools { gap:12px }
  .floating-tools .floating-assistant,.floating-tools .floating-support { min-width:112px; height:36px; padding:0 12px; gap:6px; font-size:12px }
  .floating-assistant>svg,.floating-support>svg { width:15px; height:15px }
  .floating-tools .floating-back-top { width:40px; height:40px }
  .floating-tools:has(.floating-back-top[hidden]) { padding-bottom:52px }
}

/* components.css */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--action); background: var(--action); color: var(--action-ink); font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 0.15s, transform 0.15s; }
.button:hover { background: var(--action-hover); border-color: var(--action-hover); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.button-outline { background: transparent; color: var(--action); border-color: var(--action); }
.button-outline:hover { background: color-mix(in srgb, var(--action) 8%, var(--surface)); border-color: var(--action-hover); }
.text-link { color: var(--gold-ink); font-weight: 600; text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); }
.lead { color: var(--ink-2); font-size: 1.06rem; max-width: 62ch; }
.help { color: var(--ink-2); font-size: 0.88rem; }
.panel { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.notice { padding: 10px 14px; border-radius: var(--radius-s); background: var(--surface-2); border-left: 3px solid var(--gold); color: var(--ink); font-size: 0.92rem; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--ok); }
.status-warn { color: var(--warn); }
.status-info { color: var(--info); }
.status-muted { color: var(--muted); }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }

.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { font-size: 0.86rem; font-weight: 600; color: var(--ink-2); padding: 0; }
.field input[type="search"], .field input[type="number"] { width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.field input:focus-visible { border-color: var(--focus); }
.choice { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 10px; border-radius: var(--radius-s); cursor: pointer; }
.choice:hover { background: var(--surface-2); }
.choice input { accent-color: var(--gold); width: 18px; height: 18px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
/* Product card (EthanAI-style layout): media with brand chip, category line, title, tags, two-line summary,
   then a divider and the price with cart/arrow affordances. The product link covers the card; contact links remain separate. */
.product-card { position: relative; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; transition: box-shadow 0.35s, transform 0.35s cubic-bezier(0.2, 0.7, 0.1, 1), border-color 0.35s; }
.product-card:hover { box-shadow: 0 18px 40px -18px rgba(20, 33, 61, 0.28); transform: translateY(-4px); border-color: color-mix(in srgb, var(--action) 30%, var(--line)); }
.card-content { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.stock-contact { position: relative; z-index: 1; text-decoration: none; }
.stock-contact:hover { text-decoration: underline; }
.card-media { position: relative; display: block; overflow: hidden; background: var(--surface-2); }
.card-chip { position: absolute; top: 12px; right: 12px; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; color: #14213d; background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(20, 33, 61, 0.75); }
.cover, .cover-fallback { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.1, 1); }
.cover-poster { object-position: center top; }
.product-card:hover .cover { transform: scale(1.045); }
.cover-fallback { display: grid; place-items: center; background: linear-gradient(135deg, #14213d, #2a3a63); color: #a1b9ff; font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.1em; }
.card-body { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 8px; padding: 14px 16px 14px; }
.card-cat { font-size: 0.76rem; color: var(--ink-3, var(--ink-2)); }
.card-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 1.02rem; line-height: 1.35; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-supplier-stock { flex-basis: 100%; color: var(--ink-2); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 0.7rem; line-height: 1.6; border: 1px solid currentColor; background: color-mix(in srgb, currentColor 8%, transparent); }
.tag-member, .tag-ok { color: #2f8a5b; }
.tag svg { flex: none; margin-inline-end: 3px; }
.tag-auto, .tag-info { color: #2f6fe0; }
.tag-warn { color: #b7791f; }
.tag-muted { color: var(--ink-2); }
/* Two lines exactly: a stretched card must not reveal a third, half-cut line under the ellipsis. */
.card-summary { color: var(--ink-2); font-size: 0.86rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.4em; max-height: 3.4em; flex: none; }
.card-foot { display: flex; align-items: flex-end; gap: 10px; margin-top: 4px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.card-price { display: grid; flex: 1; min-width: 0; }
.card-price .price-free { color: #d92d20; font-size: 1.25rem; font-weight: 500; letter-spacing: 0; }
.card-price small { font-size: 0.72rem; color: var(--ink-2); }
.card-price strong { font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 1.02rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-price .card-price-range { white-space: normal; }
.card-cart { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-2); transition: background 0.25s, color 0.25s, border-color 0.25s; }
.card-go { display: grid; place-items: center; color: var(--ink-2); transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.1, 1), color 0.25s; }
.product-card:hover .card-cart { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.product-card:hover .card-go { transform: translateX(3px); color: var(--ink); }
.empty-state { display: grid; justify-items: start; gap: 12px; padding: 32px; border: 1px dashed var(--line); border-radius: var(--radius-l); }
.pager { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 28px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 0.88rem; color: var(--ink-2); }
.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs [aria-current] { color: var(--ink); }
@media (max-width: 599px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-summary, .card-go { display: none; }
  .card-body { padding: 10px 12px 12px; gap: 6px; }
  .card-title { font-size: 0.92rem; }
  .card-cart { width: 30px; height: 30px; }
}

/* pages.css */
/* Home hero: CC0 sky photo (media/SOURCES.md); islands/hero.js upgrades it to WebGL.
   Content stays readable without JS, and reduced-motion users keep the static version. */
.hero { position: relative; display: grid; align-items: center; min-height: max(600px, 100svh); margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); overflow: hidden; isolation: isolate; background: #dfe8f3; }
/* The header floats over the sky until the page scrolls. */
.hero-media, .hero-inner { transition: opacity 0.9s ease; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
/* With scripts on, the backdrop and the copy wait for the hero island and fade in together, once, in the final look, instead of showing the bare ground, then the photo, then the WebGL layer; if the island never runs they appear anyway. */
@media (scripting: enabled) {
  .hero:not(.is-ready) .hero-media, .hero:not(.is-ready) .hero-inner { opacity: 0; animation: hero-media-late 0s linear 3s forwards; }
  .hero.is-gl .hero-canvas, .hero.is-gl .hero-photo { transition: none; }
}
@keyframes hero-media-late { to { opacity: 1; } }
/* Dark theme: multiply the sky toward navy so pale haze reads as night, not grey. */
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--hero-tint); mix-blend-mode: multiply; }
.hero-photo, .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { object-fit: cover; object-position: 62% 58%; transform: scale(1.04); transition: opacity 0.9s ease; }
.hero-canvas { opacity: 0; transition: opacity 1.1s ease; }
.hero.is-gl .hero-canvas { opacity: 1; }
.hero.is-gl .hero-photo { opacity: 0; }
.hero-veil { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, color-mix(in srgb, var(--hero-veil) 86%, transparent) 0%, color-mix(in srgb, var(--hero-veil) 58%, transparent) 30%, transparent 58%),
  linear-gradient(180deg, transparent 72%, var(--bg) 100%); }
.hero-inner { position: relative; padding-block: 64px 104px; }
.hero-copy { display: grid; justify-items: start; gap: 30px; max-width: 900px; }
.hero-title { display: grid; gap: 18px; font-family: var(--font-sans); font-weight: 800; letter-spacing: 0; }
.hero-line { display: block; white-space: nowrap; font-size: clamp(2.4rem, 1.1rem + 4.2vw, 5.2rem); line-height: 1.08; letter-spacing: 0.05em; color: var(--ink);
  background: linear-gradient(100deg, var(--ink) 30%, var(--hero-ink-2) 70%, var(--ink) 100%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: clamp(1.3rem, 0.85rem + 1.6vw, 2.4rem); font-weight: 600; letter-spacing: 0.32em; }
.hero-stat { font-size: clamp(1.3rem, 0.8rem + 1.6vw, 2.5rem); font-weight: 500; color: var(--ink); letter-spacing: 0.06em; }
.hero-stat strong { display: inline-block; min-width: 5.2ch; margin-inline: 0.3em; text-align: center; font-weight: 800; color: var(--hero-ink-2, #0e4f7a); font-variant-numeric: tabular-nums; letter-spacing: 0; }
/* Live figure updates (islands/hero.js): the number pops with a glow in its own colour and a "+N" floats up beside it. */
.hero-stat strong { position: relative; }
.hero-stat strong.is-bumped { animation: hero-stat-bump 0.8s cubic-bezier(0.2, 0.7, 0.1, 1); }
.hero-stat-delta { position: absolute; right: -0.9em; top: -0.95em; padding: 0.12em 0.5em; border-radius: 999px; font-size: 0.48em; font-weight: 700; line-height: 1.3; color: var(--surface); background: var(--hero-ink-2); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--hero-ink-2) 70%, transparent); white-space: nowrap; pointer-events: none; animation: hero-stat-delta 1.6s ease-out forwards; }
/* With scripts on, the figure waits for the hero island's count-up instead of flashing its final value first; if the island never runs it appears anyway. */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) { .hero-stat strong:not(.is-live) { visibility: hidden; animation: hero-stat-late 0s linear 4s forwards; } }
@keyframes hero-stat-late { to { visibility: visible; } }
@keyframes hero-stat-bump { 0% { transform: scale(1); } 15% { transform: scale(1.14); text-shadow: 0 0 18px color-mix(in srgb, var(--hero-ink-2) 45%, transparent); } 100% { transform: scale(1); } }
@keyframes hero-stat-delta { 0% { opacity: 0; transform: translateY(0.3em); } 6% { opacity: 1; transform: none; } 70% { opacity: 1; transform: translateY(-0.3em); } 100% { opacity: 0; transform: translateY(-1.1em); } }
@media (prefers-reduced-motion: reduce) { .hero-stat strong.is-bumped { animation: none; text-shadow: 0 0 18px color-mix(in srgb, var(--hero-ink-2) 45%, transparent); } .hero-stat-delta { animation: none; } }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero-cta { display: inline-flex; align-items: center; gap: 18px; min-height: 56px; padding: 6px 6px 6px 26px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 14px 34px -12px rgba(20, 33, 61, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.7); transition: box-shadow 0.3s, transform 0.35s cubic-bezier(0.2, 0.7, 0.1, 1); will-change: transform; }
.hero-cta-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--promo-solid); color: var(--promo-solid-ink); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.1, 1); }
.hero-cta:hover { box-shadow: 0 20px 44px -14px rgba(20, 33, 61, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.hero-cta:hover .hero-cta-icon { transform: rotate(45deg); }
.hero-link { position: relative; color: var(--ink); font-weight: 600; text-decoration: none; padding-block: 6px; }
.hero-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(0.35); transform-origin: left; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.1, 1); }
.hero-link:hover::after { transform: scaleX(1); }
.hero-cue { display: inline-flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 0.82rem; letter-spacing: 0.12em; color: var(--ink-2); text-decoration: none; }
.hero-cue-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); background: color-mix(in srgb, var(--surface) 60%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .hero-title .hero-line, .hero-stat, .hero-actions, .hero-cue { animation: hero-rise 1.2s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
  .hero-title .hero-line { animation: hero-rise 1.2s cubic-bezier(0.2, 0.7, 0.1, 1) both, hero-sheen 9s ease-in-out 1.4s infinite; }
  .hero-title .hero-sub { animation-delay: 0.14s, 1.6s; }
  .hero-stat { animation-delay: 0.15s; }
  .hero-actions { animation-delay: 0.42s; }
  .hero-cue { animation-delay: 0.56s; }
  .hero-cue-icon { animation: hero-bob 2.4s ease-in-out 1.6s infinite; }
  .hero-photo { animation: hero-breathe 26s ease-in-out infinite alternate; }
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(22px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hero-sheen { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
@keyframes hero-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes hero-breathe { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }

/* Scroll reveal: only armed once islands/reveal.js has run, so content never hides without JS. */
.reveal-armed [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.1, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1); transition-delay: calc(var(--reveal-i, 0) * 70ms); }
.reveal-armed [data-reveal].is-in { opacity: 1; transform: none; }

.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: trust; }
.trust-grid li { position: relative; display: grid; gap: 8px; padding: 26px 24px 24px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); overflow: hidden; counter-increment: trust; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.1, 1), box-shadow 0.35s, border-color 0.35s; }
.trust-grid li::before { content: "0" counter(trust); font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.16em; color: var(--gold-ink); }
.trust-grid li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.trust-grid p { color: var(--ink-2); font-size: 0.92rem; }
.trust-grid li::after, .product-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), var(--card-glow), transparent 60%); }
.trust-grid li:hover::after, .product-card:hover::after { opacity: 1; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.category-tile { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 14px 18px; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.category-tile::after { content: "→"; color: var(--gold-ink); }
.category-tile:hover { border-color: var(--gold); }

.page-head { display: grid; gap: 10px; margin-bottom: 24px; }
/* Catalog sky band (shared.pageHero): the sky photo, floating header like the home hero. */
.page-hero { position: relative; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + 56px) 0 64px; overflow: hidden; isolation: isolate; background: #dfe8f3; }
.page-hero-media { position: absolute; inset: 0; z-index: -1; }
.page-hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--hero-tint); mix-blend-mode: multiply; }
.page-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 70%; filter: saturate(1.35) contrast(1.05) var(--hero-media-filter); }
.page-hero-veil { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--hero-veil) 82%, transparent), color-mix(in srgb, var(--hero-veil) 30%, transparent) 55%, transparent), linear-gradient(180deg, transparent 55%, var(--bg)); }
.page-hero-inner { display: grid; gap: 12px; }
.page-hero h1 { font-family: var(--font-sans); font-weight: 800; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); letter-spacing: 0.04em; }
.page-hero .lead { color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) { .page-hero-inner > * { animation: hero-rise 1s cubic-bezier(0.2, 0.7, 0.1, 1) both; } .page-hero-inner > :nth-child(2) { animation-delay: 0.1s; } }
.catalog-page { padding-top: 8px; }
.catalog-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.catalog-filters { position: sticky; top: calc(var(--header-h) + 16px); padding: 18px; border-radius: var(--radius-l); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 80%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 18px 40px -30px rgba(20, 33, 61, 0.35); }
.catalog-filters .choice { position: relative; transition: background-color 0.2s, color 0.2s; }
.catalog-filters .choice:has(input:checked) { background: color-mix(in srgb, var(--gold-soft) 60%, var(--surface)); font-weight: 600; }
.catalog-filters .choice:has(input:checked)::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--gold); }
.filter-form { display: grid; gap: 16px; }
.choices { display: grid; }
.filter-actions { display: flex; align-items: center; gap: 16px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.85fr); grid-template-areas: "media aside" "main aside"; gap: 32px 48px; align-items: start; }
.detail-media { grid-area: media; position: relative; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.1, 1); transform-style: preserve-3d; }
.detail-media.is-tilting { transition-duration: 0.15s; }
.detail-media::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-l); pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, 0.4), transparent 55%); mix-blend-mode: soft-light; }
.detail-media.is-tilting::before { opacity: 1; }
.detail-media::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-l); pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
.detail-head { gap: 12px; margin-bottom: 20px; }
.detail-head h1 { font-family: var(--font-sans); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); letter-spacing: 0.01em; }
.detail-main { grid-area: main; display: grid; gap: 24px; }
.detail-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-l); box-shadow: 0 30px 60px -30px rgba(20, 33, 61, 0.35); }
.product-guide-image { margin: 1.5rem 0; }
.product-guide-image img { display: block; width: 100%; height: auto; border-radius: var(--radius-m); }
.product-guide-image figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.875rem; }
.detail-price { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 1.3rem; }
.prose { display: grid; gap: 12px; max-width: 70ch; white-space: pre-line; }
.route-product .detail-description .prose { gap: 18px; font-size: 1rem; line-height: 1.85; color: var(--ink-2); overflow-wrap: anywhere; }
.detail-description .prose h3 { margin: 16px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: clamp(1.2rem, 1.05rem + 0.45vw, 1.45rem); line-height: 1.45; font-weight: 800; color: var(--ink); }
.detail-description .prose p, .detail-description .prose ul { margin: 0; font-size: inherit; line-height: inherit; }
.detail-description .prose strong { font-weight: 750; color: var(--ink); }
.detail-description .prose ul { padding-left: 1.4em; white-space: normal; }
.detail-description .prose li + li { margin-top: 10px; }
.product-important { padding: 16px 18px; border-left: 4px solid var(--gold); border-radius: 0 var(--radius-m) var(--radius-m) 0; background: color-mix(in srgb, var(--gold-soft) 45%, var(--surface)); color: var(--ink); }

.detail-main .panel { display: grid; gap: 10px; }
.detail-aside { grid-area: aside; position: sticky; top: calc(var(--header-h) + 16px); }
.detail-aside .sku-form { box-shadow: 0 24px 50px -28px rgba(20, 33, 61, 0.3); }
.sku-form { display: grid; gap: 16px; }
.sku-form fieldset { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.sku-form legend { margin-bottom: 8px; font-weight: 700; }
.sku-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-m); cursor: pointer; }
.sku-option:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold-soft) 55%, var(--surface)); }
.sku-option input { accent-color: var(--gold); width: 18px; height: 18px; }
.sku-main { display: grid; }
.sku-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.sku-detail { grid-column: 2 / -1; font-size: 0.84rem; color: var(--ink-2); }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-message:empty { display: none; }
.form-message { font-size: 0.9rem; color: var(--ok); }
.form-message[data-tone="error"] { color: var(--warn); }

.error-page { display: grid; justify-items: start; gap: 16px; padding-block: 72px; }
.error-code { font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--gold-ink); }

@media (max-width: 1023px) {
  .hero-veil { background: linear-gradient(90deg, color-mix(in srgb, var(--hero-veil) 80%, transparent) 0%, color-mix(in srgb, var(--hero-veil) 40%, transparent) 70%, transparent 100%), linear-gradient(180deg, transparent 70%, var(--bg) 100%); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "aside" "main"; gap: 24px; }
  .detail-aside { position: static; }
}
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .catalog-filters { position: static; padding: 12px; }
  .choices { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .filter-form .choice { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; min-height: 40px; }
}
@media (max-width: 599px) {
  .hero { min-height: min(700px, calc(100svh - 64px)); }
  .hero-inner { padding-block: 40px 72px; }
  .hero-copy { gap: 22px; }
  .hero-title { gap: 12px; }
  .hero-sub { letter-spacing: 0.18em; }
  .hero-line { white-space: normal; }
  .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .buy-actions { grid-template-columns: minmax(0, 1fr); }
}
.hero-photo { filter: saturate(1.35) contrast(1.05) var(--hero-media-filter); }
.hero-canvas { filter: var(--hero-media-filter); }

/* Home sections below the hero, following the EthanAI layout: partner band, featured grid with tabs,
   latest updates, and the "every step is visible" purchase flow card. */
.partner-band { position: sticky; top: var(--header-h); z-index: 40; border-block: 1px solid #ecd9a8; background: linear-gradient(100deg, #fff8e6 0%, #fdf0cf 55%, #f3d58a 100%); color: #3b2a12; }
.partner-inner { display: flex; align-items: center; gap: 20px; padding-block: 26px; }
.partner-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; color: #a06a12; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(160, 106, 18, 0.25); }
.partner-icon svg { width: 28px; height: 28px; }
.partner-copy { flex: 1; display: grid; gap: 4px; }
.partner-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; color: #8a6420; }
.partner-copy h2 { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); color: #2a1d08; }
.partner-copy p { font-size: 0.88rem; color: #6b5328; }
.partner-cta { display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 12px 22px; border-radius: 999px; background: #2a1d08; color: #fff3d6; font-weight: 600; text-decoration: none; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.1, 1), box-shadow 0.3s; }
.partner-cta svg { width: 18px; height: 18px; }
.partner-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(42, 29, 8, 0.6); }

.home-section { padding-block: clamp(56px, 7vw, 96px) 0; }
.home-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.home-head h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: 0.02em; }
.home-head p { margin-top: 6px; color: var(--ink-2); }
.home-head-links { display: flex; gap: 18px; }
.home-head-links a { color: var(--ink-2); text-decoration: none; }
.home-head-links a:hover { color: var(--ink); }
.pill-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; background: var(--action); color: var(--action-ink); font-weight: 600; text-decoration: none; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.1, 1), box-shadow 0.3s; }
.pill-link svg { width: 18px; height: 18px; transition: transform 0.3s; }
.pill-link:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(20, 33, 61, 0.5); }
.pill-link:hover svg { transform: translateX(3px); }
.home-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 22px; padding-bottom: 2px; }
.home-tabs a { flex: none; padding: 8px 16px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 0.92rem; transition: background 0.25s, color 0.25s; }
.home-tabs a:hover { color: var(--ink); }
.home-tabs a[aria-current="true"] { background: color-mix(in srgb, var(--action) 10%, var(--surface)); color: var(--action); font-weight: 600; }
.home-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-grid .product-card[hidden] { display: none; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.news-card { display: grid; gap: 10px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: box-shadow 0.3s, transform 0.3s; }
.news-card:hover { box-shadow: 0 18px 40px -20px rgba(20, 33, 61, 0.25); transform: translateY(-3px); }
.news-card time { font-size: 0.8rem; color: var(--ink-2); }
.news-card p { color: var(--ink-2); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card a { color: var(--action); text-decoration: none; font-size: 0.9rem; }

.flow-card { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.flow-card h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); word-break: keep-all; overflow-wrap: anywhere; }
.flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 36px 0 0; padding: 0; list-style: none; }
.flow-steps li { position: relative; display: grid; gap: 8px; align-content: start; }
.flow-steps li:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: 76px; right: -14px; height: 1px; background: var(--line); }
.flow-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px; color: #2f6fe0; background: #e8f0fe; border: 1px solid #d3e2fd; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.1, 1); }
.flow-icon-4 { color: #c27a1a; background: #fdf1e0; border-color: #f6dfbd; }
.flow-steps li:hover .flow-icon { transform: translateY(-4px) rotate(-4deg); }
.flow-steps small { font-size: 0.76rem; color: var(--ink-2); letter-spacing: 0.08em; }
.flow-steps h3 { font-size: 1.08rem; }
.flow-steps p { color: var(--ink-2); font-size: 0.88rem; line-height: 1.7; }
.flow-steps a { display: inline-flex; align-items: center; gap: 4px; color: var(--action); font-size: 0.86rem; font-weight: 600; text-decoration: none; }
.flow-steps a svg { width: 14px; height: 14px; }
.flow-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.flow-foot p { color: var(--ink-2); font-size: 0.88rem; }
.flow-foot .pill-link { background: transparent; color: var(--action); border: 1px solid color-mix(in srgb, var(--action) 35%, var(--line)); }
@media (max-width: 1279px) { .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1023px) {
  .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-steps li::after { display: none; }
}
@media (max-width: 699px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .partner-band { position: static; }
  .partner-inner { flex-direction: column; align-items: stretch; gap: 16px; padding-block: 24px; }
  .partner-icon { display: none; }
  .partner-eyebrow { letter-spacing: 0.14em; }
  .partner-copy { gap: 6px; }
  .partner-copy p { line-height: 1.7; }
  .partner-cta { justify-content: center; padding-block: 14px; }
  .flow-card { padding: 28px 22px; }
  .flow-steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

/* private.css */
/* F3/F4 private shells: cart, checkout, pay, orders, guest lookup, auth and account. Tokens only, no inline styles. */
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.break { overflow-wrap: anywhere; }
.narrow { max-width: 760px; }
.auth-page { max-width: 560px; }
.island { display: grid; gap: 20px; min-width: 0; }
.island-stack { display: grid; gap: 20px; }
.loading { color: var(--ink-2); }
.page .panel h2 { font-size: 1.15rem; margin-bottom: 12px; }
.panel { min-width: 0; }
.panel-warn { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
.panel-ok { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.notice-warn { border-left-color: var(--warn); }
.notice-info { border-left-color: var(--info); }
.notice-error { border-left-color: var(--warn); color: var(--warn); font-weight: 600; }
.notice + .notice { margin-top: 8px; }
.button-small { min-height: 36px; padding: 0 14px; font-size: 0.88rem; }
.text-button { min-height: 32px; padding: 2px 6px; border: 0; background: none; color: var(--gold-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 4px; }
.lang-switch button { min-height: 28px; padding: 4px 9px; white-space: nowrap; border: 0; background: none; font-size: 0.78rem; color: var(--ink-2); cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); font-weight: 600; }

/* Forms */
.stack-form { display: grid; gap: 14px; }
.stack-form + .stack-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-group { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.form-group legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
.form-group:disabled { opacity: 0.7; }
.input-row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.input-row .text-button { flex: none; white-space: nowrap; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea { width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--ink); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--focus); }
.field input:user-invalid { border-color: var(--warn); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--gold); }
.choice-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-m); cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold-soft) 55%, var(--surface)); }
.choice-card input { flex: none; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--gold); }
.choice-card span, .channel-single { display: grid; gap: 2px; }
.coupon-form { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.filter-bar .field { flex: 1 1 200px; }
.link-list { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Pills: text label plus colour, never colour alone. */
.pill { justify-self: start; display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.pill-ok, .pill-SUCCEEDED { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.pill-warn, .pill-REVIEW, .pill-UNKNOWN, .pill-CREATE_FAILED { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.pill-info, .pill-AWAITING_CHAIN, .pill-WAITING, .pill-CREATING, .pill-VERIFYING, .pill-AWAITING_GATEWAY { color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, var(--line)); }
.pill-muted, .pill-EXPIRED, .pill-CLOSED { color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-block: 8px; }

/* Checkout progress */
.steps-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: none; }
.steps-bar li { display: inline-flex; gap: 6px; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 0.88rem; }
.steps-bar li span { font-variant-numeric: tabular-nums; color: var(--gold-ink); font-weight: 700; }
.steps-bar li[aria-current="step"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold-soft) 60%, var(--surface)); color: var(--ink); font-weight: 600; }

/* Cart and checkout */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr); gap: 24px; align-items: start; }
.summary { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 12px); }
.line-list, .summary-lines, .plain-list, .order-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.line-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px 16px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-main { display: grid; gap: 2px; min-width: 0; }
.quantity input { width: 84px; min-height: 40px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px dashed var(--line); }
.summary-lines li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.15rem; }
.summary-total strong { font-size: 1.4rem; }
.pending-item { display: grid; gap: 8px; padding-block: 12px; border-top: 1px solid var(--line); }

/* Pay page */
.pay-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pay-layout > .pay-status-panel, .pay-layout > [data-show-in] { grid-column: 1 / -1; }
.pay-status-panel { display: grid; gap: 10px; }
.pay-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.05rem; }
.countdown { font-size: 1rem; }
.countdown strong { font-size: 1.35rem; }
.order-ref { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-2); font-size: 0.92rem; }
.pay-details { display: grid; gap: 16px; }
.pay-facts { display: grid; gap: 14px; margin: 0; }
.pay-facts > div { display: grid; gap: 4px; }
.pay-facts dt { font-size: 0.84rem; font-weight: 600; color: var(--ink-2); }
.pay-facts dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.pay-facts dd .help { flex-basis: 100%; }
.address { padding: 8px 10px; border-radius: var(--radius-s); background: var(--surface-2); font-size: 0.95rem; letter-spacing: 0.02em; word-break: break-all; }
.amount { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 700; letter-spacing: 0.01em; }
.amount mark { padding: 0 3px; margin-left: 1px; border-radius: 4px; background: var(--gold-soft); color: var(--gold-ink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.amount-unit { font-weight: 700; color: var(--ink-2); }
.qr-figure { display: grid; justify-items: center; gap: 8px; margin: 0; padding: 16px; border-radius: var(--radius-m); background: #ffffff; color: #14213d; border: 1px solid var(--line); text-align: center; font-size: 0.86rem; }
.qr { width: min(100%, 240px); height: auto; }
/* Order page (MANUAL): the owner's payment codes above the payment instructions. */
.pay-codes-block { display: grid; gap: 10px; margin-bottom: 14px; }
.pay-codes-block:empty { display: none; }
.pay-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.pay-code img { width: min(100%, 240px); height: auto; }
.pay-warnings ul { display: grid; gap: 8px; margin: 0; padding-left: 1.2em; }
.pay-warnings li::marker { color: var(--warn); }
/* EPAY (CNY): order facts, gateway entry (link or local QR; phones get the direct link first), static help. */
.pay-summary { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; }
.pay-summary > div { display: grid; gap: 2px; min-width: 0; }
.pay-summary dt { font-size: 0.84rem; font-weight: 600; color: var(--ink-2); }
.pay-summary dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.pay-entry { display: grid; gap: 12px; justify-items: start; }
.pay-go { min-height: 52px; padding-inline: 28px; font-size: 1.05rem; }
.pay-entry-qr { justify-items: stretch; }
.pay-app-link { margin: 0; }
.pay-help .help-list { display: grid; gap: 14px; margin: 0; }
.pay-help dt { font-weight: 700; }
.pay-help dd { margin: 4px 0 0; color: var(--ink-2); }
.pay-layout > .pay-help { grid-column: 1 / -1; }
@media (hover: hover) and (pointer: fine) {
  .pay-app-link, .pay-mobile-hint { display: none; }
}
@media (hover: none), (pointer: coarse) {
  .pay-app-link { order: -1; }
  .pay-go, .pay-app-link .button { width: 100%; }
}
.epay-types { display: grid; gap: 8px; margin: 4px 0 0; padding: 12px 0 0; border: 0; border-top: 1px dashed var(--line); min-width: 0; }
.epay-types legend { font-weight: 700; padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-card-compact { flex: 1 1 140px; align-items: center; }
.choice-card-compact input { margin-top: 0; }

/* Orders */
.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.status-card { display: grid; gap: 8px; align-content: start; }
.status-card h2 { margin-bottom: 0; font-size: 0.92rem; color: var(--ink-2); }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.two-columns h3 { margin-top: 16px; font-size: 0.98rem; }
.prose-text { white-space: pre-line; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table-scroll th, .table-scroll td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-scroll th { font-size: 0.82rem; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.timeline { display: grid; gap: 12px; margin: 0; padding: 0 0 0 16px; list-style: none; border-left: 2px solid var(--line); }
.timeline li { display: grid; gap: 2px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.timeline time { font-size: 0.8rem; color: var(--ink-2); }
.delivery-item { display: grid; gap: 10px; margin-top: 14px; padding: 14px; border-radius: var(--radius-m); background: var(--surface-2); }
.code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.code-value { flex: 1 1 220px; padding: 8px 10px; border-radius: var(--radius-s); background: var(--surface); border: 1px dashed var(--line); min-height: 40px; }
.order-card { display: grid; gap: 6px; margin-bottom: 12px; }
.order-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }

/* Account */
.account-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.side-nav { display: grid; gap: 4px; position: sticky; top: calc(var(--header-h) + 12px); }
.side-nav a { padding: 10px 12px; border-radius: var(--radius-s); text-decoration: none; color: var(--ink-2); }
.side-nav a:hover, .side-nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.account-content { min-width: 0; }
.mfa-setup { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-block: 14px; }
.mfa-setup .qr { width: 200px; }
.secret { display: inline-block; padding: 8px 10px; border-radius: var(--radius-s); background: var(--surface-2); font-size: 1.02rem; letter-spacing: 0.06em; }

/* Redeem (public) */
.redeem-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; padding: 0; list-style: none; }
.redeem-steps li { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface); }
.redeem-steps h2 { font-size: 1.02rem; }
.redeem-steps p { color: var(--ink-2); font-size: 0.92rem; }
.step-number { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-ink); }
.page > .notice, .page > .help { margin-bottom: 16px; }

/* Dialog and toast */
.dialog { width: min(100% - 24px, 560px); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(11, 18, 34, 0.55); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 0 20px; }
.dialog-body { display: grid; gap: 12px; padding: 12px 20px 20px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 88px; transform: translateX(-50%); max-width: min(92vw, 460px); padding: 12px 18px; border-radius: var(--radius-m); background: var(--action); color: var(--action-ink); box-shadow: var(--shadow); font-size: 0.92rem; }

@media (max-width: 1023px) {
  .checkout-layout, .pay-layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .redeem-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .side-nav { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .side-nav a { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
}
@media (max-width: 480px) {
  .lang-switch button { padding: 4px 5px; letter-spacing: -0.01em; }
  .site-header .header-inner { gap: 6px; }
}
@media (max-width: 720px) {
  .status-grid, .two-columns { grid-template-columns: minmax(0, 1fr); }
  .line-item { grid-template-columns: minmax(0, 1fr) auto; }
  .line-item .line-main { grid-column: 1 / -1; }
  .redeem-steps { grid-template-columns: minmax(0, 1fr); }
}

/* EPAY return page (server-rendered by store.epayReturnPage: no header, no scripts, one link). */
.return-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.return-card { display: grid; gap: 10px; justify-items: center; width: min(100%, 420px); padding: 32px 24px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); text-align: center; box-shadow: var(--shadow); }
.return-card h1 { font-family: var(--font-display); font-size: 1.4rem; }
.return-card p { margin: 0; color: var(--ink-2); }
.return-card .return-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--action); color: var(--action-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.return-card .button { margin-top: 8px; }

/* routes/products.css */
/* Compact catalog with a persistent desktop sidebar and enhanced mobile filters. */
.route-products { min-height: 60vh; padding-bottom: 40px; }
.route-products .catalog-head { padding-block: 48px 36px; text-align: center; border-bottom: 1px solid var(--line); }
.route-products .catalog-head h1 { font-family: var(--font-sans); font-size: clamp(30px, 3.3vw, 46px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; }
.route-products .catalog-head .lead { margin: 12px auto 0; font-size: 16px; min-block-size: 3lh; }
.route-products .catalog-page { padding-top: 32px; }
.route-products .catalog-layout { grid-template-columns: 224px minmax(0, 1fr); gap: 28px; }
.route-products .catalog-filters { padding: 22px 18px; border-radius: 16px; background: var(--surface); box-shadow: none; backdrop-filter: none; }
.route-products .filter-form { gap: 24px; }
.route-products .field { gap: 12px; }
.route-products .field > span { font-size: 12px; font-weight: 500; }
.route-products .field > legend { font-size: 16px; font-weight: 700; margin-bottom: 10px; padding-left: 12px; border-left: 3px solid var(--gold); }
.route-products .field input[type="search"] { min-height: 42px; border-width: 1px; border-radius: 12px; font-size: 13px; }
.route-products .choices { display: grid; gap: 6px; }
.route-products .choice { min-height: 44px; padding: 8px 12px; border-radius: 12px; color: var(--ink-2); font-size: 14px; }
.route-products .choice input { width: 15px; height: 15px; flex-shrink: 0; }
.route-products .choice:has(input:checked) { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.route-products .catalog-filters .choice:has(input:checked)::before { display: none; }
.route-products .catalog-filters .choice { transition: none; }
.route-products .filter-actions .button { width: 100%; min-height: 42px; font-size: 13px; }
.route-products .catalog-results { min-width: 0; }
.route-products .catalog-results[aria-busy="true"] .catalog-toolbar { cursor: progress; }
.route-products .catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; margin-bottom: 14px; color: var(--ink-2); font-size: 12px; }
.route-products .catalog-query { overflow-wrap: anywhere; }
.route-products .catalog-view { display: flex; flex-shrink: 0; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.route-products .catalog-view[hidden] { display: none; }
.route-products .catalog-view button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--ink-2); background: transparent; cursor: pointer; }
.route-products .catalog-view button[aria-pressed="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 4px rgba(20, 33, 61, 0.08); }
.route-products .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.route-products .product-card { border-radius: 14px; min-width: 0; }
.route-products .card-body { padding: 13px; gap: 7px; }
.route-products .card-title { font-family: var(--font-sans); font-size: 14px; }
.route-products .card-cat { font-size: 11px; }
.route-products .card-summary { font-size: 12px; }
.route-products .card-tags { gap: 4px; }
.route-products .tag { padding-inline: 6px; font-size: 10px; }
.route-products .card-price strong { font-size: 13px; letter-spacing: 0; }
.route-products .card-price .price-free { font-size: 15px; }
.route-products .card-cart { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; }
.route-products .card-go { display: none; }
.route-products .card-chip { top: 9px; right: 9px; padding: 1px 7px; font-size: 10px; }
.route-products .empty-state { min-height: 320px; align-content: center; justify-items: center; text-align: center; border-style: solid; background: var(--surface); color: var(--ink-2); }
.route-products .empty-state h3 { color: var(--ink); }
.route-products .catalog-filter-toggle { display: none; }
.route-products .catalog-filter-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 24px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--surface); overflow-y: auto; }
.route-products .catalog-filter-dialog::backdrop { background: rgba(10, 18, 34, 0.45); backdrop-filter: blur(4px); }
.route-products .catalog-filter-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.route-products .catalog-filter-dialog h2 { font-size: 20px; }
.route-products .catalog-filter-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; font: 24px/1 var(--font-sans); background: var(--surface); color: var(--ink); cursor: pointer; }
.route-products.catalog-list-view .product-grid { grid-template-columns: minmax(0, 1fr); }
.route-products.catalog-list-view .card-link { grid-template-columns: minmax(120px, 26%) minmax(0, 1fr); grid-template-rows: auto; }
.route-products.catalog-list-view .card-media { display: flex; align-items: center; }
.route-products.catalog-list-view .card-body { padding: 18px; }
.route-products.catalog-list-view .card-summary { min-height: 0; }
@media (min-width: 2300px) {
  .route-products .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* 1440-1739px: the 70% content width leaves room for three cards beside the filters. */
@media (min-width: 1440px) and (max-width: 1739px) {
  .route-products .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .route-products .catalog-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
  .route-products .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .route-products .catalog-head { padding-block: 32px 28px; }
  .route-products .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .route-products.filters-enhanced .catalog-filters { display: none; }
  .route-products .catalog-filter-toggle:not([hidden]) { display: flex; width: 100%; margin-bottom: 20px; min-height: 44px; border-color: var(--line); background: var(--surface); font-size: 14px; }
  .route-products .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .route-products .filter-form .choices { display: grid; overflow: visible; }
  .route-products .filter-form .choice { border: 0; border-radius: 12px; }
}
@media (max-width: 599px) {
  .route-products .catalog-head .lead { font-size: 14px; }
  .route-products .catalog-page { padding-top: 24px; }
  .route-products .catalog-toolbar { align-items: flex-start; font-size: 11px; }
  .route-products .catalog-toolbar > p { padding-top: 10px; }
  .route-products .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .route-products .card-body { padding: 11px; gap: 6px; }
  .route-products .card-title { font-size: 13px; }
  .route-products .card-foot { gap: 6px; }
  .route-products .card-price strong { font-size: 12px; }
  .route-products .card-price .price-free { font-size: 14px; }
  .route-products .card-price small { font-size: 10px; }
  .route-products .card-cart { width: 26px; height: 26px; }
  .route-products .empty-state { padding: 24px 16px; }
  .route-products.catalog-list-view .card-link { grid-template-columns: 100px minmax(0, 1fr); }
  .route-products.catalog-list-view .card-body { padding: 12px; }
}

/* Authored category copy (SEO article below the product grid). */
.route-products .category-copy { max-width: 820px; padding-block: 8px 32px; display: grid; gap: 14px; }
.route-products .category-copy h2 { margin-top: 18px; }
.route-products .category-copy h3 { margin-top: 6px; }
.route-products .category-copy ul, .route-products .category-copy ol { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.route-products .category-copy a { text-decoration: underline; text-underline-offset: 2px; }
.route-products .category-copy .table-scroll table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.route-products .category-copy .table-scroll th, .route-products .category-copy .table-scroll td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.route-products .category-copy .table-scroll { overflow-x: auto; max-width: 100%; }
.route-products .category-copy .category-faq { display: grid; gap: 8px; }
.route-products .category-copy .category-faq p { color: var(--ink-2); }

/* routes/product.css */
/* Product detail: spacious media, compact purchase card, clear product and redemption information. */
.route-product { max-width: 1240px; padding-block: 28px 72px; }
.route-product .breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 12px; color: var(--muted); }
.route-product .breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.route-product .breadcrumbs a:hover { color: var(--info); }
.route-product .detail-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr); grid-template-areas: "media aside" "main main"; gap: 40px; }
.route-product .detail-media { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.route-product .detail-media::after { display: none; }
.route-product .detail-cover { display: block; border-radius: 0; box-shadow: none; }
.route-product .detail-media-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 17px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: 0.04em; }
.route-product .detail-media-caption > :first-child { color: var(--ink); font-weight: 600; }
.route-product .detail-aside { position: static; min-width: 0; }
.route-product .detail-head { gap: 14px; margin-bottom: 24px; padding: 4px 0; }
.route-product .detail-head .eyebrow { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.route-product .detail-head h1 { font-family: var(--font-sans); font-size: clamp(24px, 2.3vw, 34px); line-height: 1.25; letter-spacing: -0.03em; font-weight: 700; overflow-wrap: anywhere; }
.route-product .detail-price { gap: 12px; }
.route-product .detail-price > .price { font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 30px; letter-spacing: -0.03em; font-weight: 600; }
.route-product .status { font-size: 11px; padding: 4px 9px; border-radius: 999px; }
.route-product .sku-form { padding: 24px; gap: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 8px 30px -22px rgba(20, 33, 61, 0.2); }
.route-product .sku-form legend { font-size: 13px; padding-bottom: 4px; }
.route-product .sku-option { gap: 5px 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.route-product .sku-option:has(input:checked) { border-color: var(--info); background: color-mix(in srgb, var(--info) 5%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--info) 12%, transparent); }
.route-product .sku-option input { accent-color: var(--info); width: 16px; height: 16px; }
.route-product .sku-main { gap: 3px; min-width: 0; font-size: 13px; }
.route-product .sku-price { font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 13px; }
.route-product .purchase-selection { margin: 0 0 16px; font-size: 13px; font-weight: 600; color: var(--ink); }
.route-product .purchase-notice-list { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.route-product .purchase-notice-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.route-product .purchase-notice-list svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; color: var(--muted); }
.route-product .sku-form .notice { margin: 0; padding: 12px 14px; font-size: 12px; line-height: 1.7; border-radius: 8px; }
.route-product .sku-form .field { font-size: 12px; }
.route-product .sku-form input[type="number"] { width: 100px; border-radius: 10px; }
.route-product .button { border-radius: 999px; font-size: 13px; min-height: 44px; }
.route-product .sku-form > .text-link { font-size: 12px; justify-self: start; }
.route-product .detail-main { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; padding-top: 4px; }
.route-product .detail-main .panel { align-content: start; padding: 28px; gap: 16px; border-radius: 16px; box-shadow: none; }
.route-product .detail-section-head { display: grid; gap: 6px; }
.route-product .detail-section-head .eyebrow { color: var(--muted); font-size: 10px; letter-spacing: 0.14em; }
.route-product .detail-main h2 { font-family: var(--font-sans); font-size: 16px; letter-spacing: -0.02em; margin: 0; }
.route-product .prose, .route-product .detail-guidance > p { font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.route-product .detail-help-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 4px; font-size: 12px; }
.route-product .detail-help-links .text-link { color: var(--info); }
@media (max-width: 900px) {
  .route-product .detail-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "aside" "main"; gap: 28px; }
  .route-product .detail-media { max-width: 620px; width: 100%; justify-self: center; }
  .route-product .detail-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .route-product { padding-block: 20px 48px; }
  .route-product .breadcrumbs { margin-bottom: 20px; gap: 6px; font-size: 11px; }
  .route-product .detail-head h1 { font-size: 26px; }
  .route-product .detail-price > .price { font-size: 27px; }
  .route-product .sku-form, .route-product .detail-main .panel { padding: 20px; border-radius: 16px; }
  .route-product .sku-option { grid-template-columns: auto minmax(0, 1fr); }
  .route-product .sku-option > .status { grid-column: 2; justify-self: start; }
  .route-product .buy-actions { grid-template-columns: minmax(0, 1fr); }
}

/* Purchase statement (native dialog): a centred card over a blurred dimmed page, like the reference store. */
.purchase-statement {width:min(672px,calc(100vw - 32px));max-height:90dvh;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);box-shadow:0 25px 50px -12px rgba(0,0,0,.25)}
.purchase-statement[open] {display:flex;flex-direction:column}
.purchase-statement::backdrop {background:rgba(0,0,0,.4);backdrop-filter:blur(8px)}
.purchase-statement h2 {margin:0;font:700 18px/28px var(--font-sans);letter-spacing:0}
.purchase-statement .statement-body {overflow-y:auto;margin-top:8px;font-size:14px;line-height:1.65;color:var(--ink-2)}
.purchase-statement .statement-body p {margin:0 0 4px}
.purchase-statement .statement-body h3 {margin:18px 0 2px;font-size:14px;font-weight:400;color:var(--ink-2)}
.purchase-statement .statement-links {margin:0;padding:0;list-style:none}
.purchase-statement .statement-links a {color:var(--ink-2);font-weight:400;text-decoration:none;overflow-wrap:anywhere}
.purchase-statement .statement-body:focus {outline:none}
.purchase-statement .statement-agree {display:flex;align-items:flex-start;gap:12px;margin-top:20px;font-size:14px;font-weight:600;color:var(--ink)}
.purchase-statement .statement-agree input {flex-shrink:0;width:20px;height:20px;margin-top:2px;accent-color:var(--action)}
.purchase-statement .statement-actions {display:flex;justify-content:flex-end;gap:12px;margin-top:12px;padding-top:12px}
.purchase-statement .statement-actions .button {min-height:36px;padding:8px 16px;border-radius:8px;font-size:14px;font-weight:500}
.purchase-statement .button-secondary {background:var(--surface-2);border-color:transparent;color:var(--ink)}
.purchase-statement [data-statement-confirm]:disabled {opacity:.5}
/* Desktop: a wider, slightly tighter statement wraps less, so it stays compact and fits without scrolling. */
@media (min-width: 900px) {
  .purchase-statement { width:min(800px,calc(100vw - 32px)); padding:20px 24px }
  .purchase-statement h2 { font-size:17px; line-height:26px }
  .purchase-statement .statement-body { font-size:13px; line-height:1.6 }
  .purchase-statement .statement-body h3 { margin-top:12px; font-size:13px }
  .purchase-statement .statement-agree { margin-top:14px; font-size:13px }
  .purchase-statement .statement-actions { margin-top:8px; padding-top:8px }
}

/* routes/redeem.css */
/* Redemption follows the reference store: left-aligned heading, the form card and a status/FAQ column. */
body:has(.route-redeem) { background:var(--surface-2) }
.route-redeem { --line:#dbe0e7; min-height:75vh; padding:48px 24px 64px; color:var(--ink); font-family:var(--font-sans) }
.route-redeem :is(h1,h2,h3) { font-family:inherit; letter-spacing:0 }
.route-redeem [hidden] { display:none!important }
.route-redeem .redeem-workspace { max-width:976px; margin:auto }
.route-redeem .redeem-heading { margin-bottom:24px }
.route-redeem .redeem-eyebrow { display:inline-flex; align-items:center; gap:6px; margin:0 0 12px; color:var(--action); font-size:12px; font-weight:700; letter-spacing:.12em }
.route-redeem .redeem-heading h1 { margin:0 0 10px; font-size:36px; font-weight:500; line-height:1.2 }
.route-redeem .redeem-heading p { margin:0; color:var(--ink-2); font-size:16px }
.route-redeem .redeem-main-card { display:block }
.route-redeem .redeem-layout { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(0,1fr); gap:24px; align-items:start }
.route-redeem .redeem-card, .route-redeem .redeem-side-card { padding:24px; border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:0 1px 2px rgba(23,25,29,.04) }
.route-redeem .redeem-side { display:grid; gap:24px }
.route-redeem form { display:grid; gap:20px }
.route-redeem .redeem-field { display:grid; gap:10px }
.route-redeem .redeem-field h2 { display:flex; align-items:center; gap:10px; margin:0; font-size:16px; font-weight:500 }
.route-redeem .redeem-no { display:grid; place-items:center; width:22px; height:22px; border-radius:6px; background:color-mix(in srgb,var(--action) 12%,var(--surface)); color:var(--action); font-size:11px; font-weight:700 }
.route-redeem input:not([type=checkbox]):not([type=hidden]), .route-redeem textarea { width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:var(--surface-2); color:var(--ink); font:inherit; font-size:16px }
.route-redeem textarea { min-height:104px; resize:vertical; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px; background:var(--surface) }
.route-redeem input:focus-visible, .route-redeem textarea:focus-visible { outline:2px solid color-mix(in srgb,var(--action) 45%,transparent); outline-offset:1px }
.route-redeem .redeem-help, .route-redeem .redeem-safe { margin:0; color:var(--ink-2); font-size:12px; line-height:1.6 }
.route-redeem .redeem-safe::before { content:'🛡 '; }
.route-redeem .redeem-howto { display:grid; gap:8px; padding:12px 14px; border-radius:10px; background:var(--surface-2); color:var(--ink-2); font-size:13px; line-height:1.7 }
.route-redeem .redeem-howto p { margin:0 }
.route-redeem .redeem-howto a { width:fit-content; color:var(--action); text-decoration:none }
.route-redeem .redeem-check { display:flex; align-items:flex-start; gap:10px; color:var(--ink-2); font-size:13px; line-height:1.6 }
.route-redeem .redeem-check input { flex-shrink:0; width:18px; height:18px; margin-top:2px; accent-color:var(--action) }
.route-redeem .redeem-message { margin:0; color:var(--warn); font-size:13px }
.route-redeem .redeem-message:empty { display:none }
.route-redeem .redeem-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px }
.route-redeem .redeem-actions .button { min-height:46px; border-radius:10px; font-size:16px }
.route-redeem .redeem-actions [data-submit] { background:var(--action); border-color:var(--action); color:var(--action-ink) }
.route-redeem .button-secondary { padding-inline:22px; border:1px solid var(--line); background:var(--surface); color:var(--ink-2) }
.route-redeem .redeem-gate { display:grid; justify-items:start; gap:14px }
.route-redeem .redeem-gate p { margin:0; color:var(--ink-2) }
.route-redeem .redeem-side-card h2 { margin:0 0 12px; font-size:14px; font-weight:500; color:var(--ink-2) }
.route-redeem .redeem-faq { border-top:1px solid var(--line) }
.route-redeem .redeem-faq summary { display:flex; justify-content:space-between; gap:12px; padding:13px 0; cursor:pointer; list-style:none; font-size:14px; font-weight:500; color:var(--ink) }
.route-redeem .redeem-faq summary::-webkit-details-marker { display:none }
.route-redeem .redeem-faq summary::after { content:'+'; color:var(--ink-2) }
.route-redeem .redeem-faq[open] summary::after { content:'−' }
.route-redeem .redeem-faq p { margin:0 0 14px; color:var(--ink-2); font-size:13px; line-height:1.7 }
.route-redeem .redeem-record { display:grid; gap:4px; padding:12px; margin-top:10px; border:1px solid var(--line); border-radius:12px; background:var(--surface-2) }
.route-redeem .redeem-record h3 { margin:0; font-size:14px }
.route-redeem .redeem-record p { margin:0; color:var(--ink-2); font-size:12px }
.route-redeem .redeem-record-status { width:fit-content; padding:2px 8px; border-radius:999px; background:color-mix(in srgb,var(--action) 12%,var(--surface)); color:var(--action); font-size:11px; font-weight:600 }
.route-redeem .redeem-record-id { overflow-wrap:anywhere }
.route-redeem .redeem-history-title { margin:16px 0 0; font-size:13px; font-weight:500; color:var(--ink-2) }
.route-redeem .redeem-footer { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:24px; font-size:13px }
.route-redeem .redeem-footer a { color:var(--ink-2); text-decoration:none }
.route-redeem .redeem-footer a:hover { color:var(--ink) }
@media (max-width:860px) { .route-redeem .redeem-layout { grid-template-columns:minmax(0,1fr) } }
@media (max-width:600px) {
  .route-redeem { padding:32px 16px 48px }
  .route-redeem .redeem-heading h1 { font-size:28px }
  .route-redeem .redeem-card, .route-redeem .redeem-side-card { padding:18px }
  .route-redeem .redeem-actions { grid-template-columns:minmax(0,1fr) }
}
.route-redeem .redeem-verify { width:fit-content; margin-top:6px; background:var(--action); border-color:var(--action); color:var(--action-ink) }

/* routes/cart.css */
/* Route styles for cart (EthanAI-style replica). Scope selectors to this route. */
body:has(.route-cart) { background: light-dark(#f3f4f6, #0b1222); }
.route-cart.page { min-height: calc(100svh - var(--header-h)); align-content: start; }
.route-cart { display: grid; gap: 0; max-width: 1328px; --line: light-dark(#dfe3e9, #27334f); --ink: light-dark(#242933, #f3eee3); --ink-2: light-dark(#758092, #b6bdcc); --action: light-dark(#1677ff, #69aeff); --action-ink: light-dark(#fff, #102039); --action-hover: light-dark(#0958d9, #8fc2ff); }
.route-cart .page-head { justify-items: start; gap: 6px; text-align: left; margin-bottom: 28px; }
.route-cart .page-head h1 { font: 500 28px/1.3 var(--font-sans); letter-spacing: 0; }
.route-cart .page-head .lead { font-size: 14px; color: var(--ink-2); }
.route-cart .steps-bar { flex-wrap: nowrap; align-items: center; gap: 0; margin-bottom: 28px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.route-cart .steps-bar li { flex: 1; gap: 8px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 0.88rem; white-space: nowrap; }
.route-cart .steps-bar li:not(:last-child)::after { content: ''; flex: 1; height: 1px; margin-right: 8px; background: var(--line); }
.route-cart .steps-bar li:last-child { flex: none; }
.route-cart .steps-bar li span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 2px solid var(--line); border-radius: 50%; color: var(--ink-2); font-size: 0.8rem; }
.route-cart .steps-bar li[aria-current="step"] span { border-color: var(--action); background: var(--action); color: var(--action-ink); }
.route-cart .island > .loading { padding: 40px 0; text-align: center; }

/* Panels follow the home product card: 18px radius, soft line, hover lift kept off for form rows. */
.route-cart .panel { border-radius: 18px; border-color: color-mix(in srgb, var(--line) 85%, transparent); padding: 22px 24px; box-shadow: 0 1px 2px rgba(20, 33, 61, 0.04); }
.route-cart .checkout-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 24px; }
.route-cart .cart-items-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.route-cart.page .cart-items-head h2 { margin: 0; font-size: 1.05rem; }
.route-cart .cart-count { color: var(--ink-2); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

.route-cart .line-item { grid-template-columns: minmax(0, 1fr) auto minmax(96px, auto) auto; gap: 10px 20px; padding-block: 18px; border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
.route-cart .line-main { gap: 4px; }
.route-cart .line-main strong { font-size: 1rem; overflow-wrap: anywhere; }
.route-cart .cart-sku { justify-self: start; padding: 1px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); background: color-mix(in srgb, var(--gold-soft) 55%, transparent); color: var(--gold-ink); font-size: 0.75rem; line-height: 1.7; overflow-wrap: anywhere; }
.route-cart .line-main .help { font-size: 0.82rem; }
.route-cart .cart-line-total { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.02rem; letter-spacing: 0.02em; text-align: right; white-space: nowrap; }

/* Quantity stepper: − [input] + in one pill. */
.route-cart .cart-stepper { display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden; }
.route-cart .cart-stepper button { display: grid; place-items: center; width: 40px; height: 100%; padding: 0; border: 0; background: none; color: var(--ink-2); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.route-cart .cart-stepper button:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.route-cart .cart-stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
/* The pill clips overflow, so focus rings sit inside each control. */
.route-cart .cart-stepper :focus-visible { outline-offset: -3px; }
.route-cart .cart-stepper .quantity input { width: 52px; min-height: 0; height: 38px; padding: 0 4px; border: 0; border-inline: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.route-cart .cart-stepper .quantity input::-webkit-inner-spin-button, .route-cart .cart-stepper .quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.route-cart .cart-remove { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--ink-2); font-size: 0.85rem; cursor: pointer; transition: color 0.2s, border-color 0.2s, background-color 0.2s; }
.route-cart .cart-remove:hover { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 6%, transparent); }

/* Summary: sticky card with a monospace total and full-width pill action. */
.route-cart .cart-summary { gap: 14px; }
.route-cart.page .cart-summary h2 { margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.route-cart .cart-summary-row { display: flex; justify-content: space-between; gap: 12px; margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.route-cart .summary-total { margin: 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 1rem; }
.route-cart .summary-total strong { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.5rem; letter-spacing: 0.02em; }
.route-cart .cart-summary .help { margin: 0; font-size: 0.8rem; line-height: 1.6; }
.route-cart .cart-summary .button { width: 100%; }
.route-cart .cart-summary .text-link { justify-self: center; font-size: 0.9rem; }

/* Empty cart follows the compact reference card. */
.route-cart .cart-empty { justify-items: center; align-content: center; gap: 20px; min-height: 236px; padding: 40px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px rgb(20 33 61 / 4%); text-align: center; }
.route-cart .cart-empty-icon { display: grid; place-items: center; width: 56px; height: 56px; color: light-dark(#9198a4, #b6bdcc); }
.route-cart .cart-empty-icon svg { width: 56px; height: 56px; }
.route-cart .cart-empty h2 { font-size: 14px; font-weight: 400; line-height: 1.5; }
.route-cart .cart-empty .button { min-height: 34px; padding: 6px 16px; border-radius: 12px; font-size: 14px; font-weight: 400; }
.route-cart .cart-problem .line-item { grid-template-columns: minmax(0, 1fr) auto; }
.route-cart .cart-noscript { display: flex; justify-content: center; margin: 12px 0 0; }

@media (max-width: 1023px) {
  .route-cart .checkout-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .route-cart .steps-bar { padding: 12px 10px; }
  .route-cart .steps-bar li { gap: 5px; font-size: 0.75rem; }
  .route-cart .steps-bar li:not(:last-child)::after { margin-right: 5px; }
  .route-cart .steps-bar li span { width: 24px; height: 24px; }
  .route-cart .panel { padding: 18px 16px; }
  .route-cart .line-item { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding-block: 16px; }
  .route-cart .line-item .line-main { grid-column: 1 / -1; }
  .route-cart .cart-line-total { justify-self: end; }
  .route-cart .cart-remove-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .route-cart .cart-remove { width: 40px; justify-content: center; padding: 0; }
  .route-cart .cart-empty { padding: 40px 18px; }
  .route-cart .cart-empty .button { min-height: 44px; }
}

/* routes/checkout.css */
/* Two-column order review, with the payment form in the narrower right column. */
.route-checkout {max-width:1248px;--action:light-dark(#1677ff,#69aeff);--action-ink:light-dark(#fff,#102039);--action-hover:light-dark(#0958d9,#8fc2ff)}
.route-checkout .page-head {margin-bottom:28px}
.route-checkout .page-head h1 {font:500 1.8rem/1.3 var(--font-sans);letter-spacing:-.02em}
.route-checkout .page-head .lead {font-size:.88rem}
.route-checkout .steps-bar {display:flex;flex-wrap:nowrap;align-items:center;gap:0;margin-bottom:28px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.route-checkout .steps-bar li {flex:1;gap:8px;padding:0;border:0;background:transparent;font-size:.83rem;white-space:nowrap}
.route-checkout .steps-bar li:not(:last-child)::after {content:'';flex:1;height:1px;margin-right:8px;background:var(--line)}
.route-checkout .steps-bar li:last-child {flex:none}
.route-checkout .steps-bar li span {display:grid;place-items:center;flex:none;width:26px;height:26px;border:1px solid var(--line);border-radius:50%;color:var(--ink-2);font-size:.8rem}
.route-checkout .steps-bar li[aria-current] span {background:var(--action);border-color:var(--action);color:var(--action-ink)}
.route-checkout .checkout-layout {display:grid;grid-template-columns:minmax(0,2fr) minmax(330px,1fr);gap:28px;align-items:start}
.route-checkout .checkout-details {display:grid;gap:22px;min-width:0}
.route-checkout .panel {padding:24px;border-radius:16px;box-shadow:none}
.route-checkout .panel h2 {margin:0 0 18px;font-size:1rem;font-weight:500}
.route-checkout .checkout-product-list {padding:0;margin:0;display:grid;gap:12px;list-style:none}
.route-checkout .checkout-product-list li {display:flex;gap:14px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.route-checkout .checkout-product-list li>div {min-width:0}
.route-checkout .checkout-product-list img {width:72px;height:72px;object-fit:cover;border:1px solid var(--line);border-radius:10px;flex-shrink:0}
.route-checkout .checkout-product-list a {font-size:.9rem}
.route-checkout .checkout-product-list p {margin:5px 0}
.route-checkout .checkout-product-list details {margin-top:6px;font-size:.75rem;color:var(--ink-2)}
.route-checkout .checkout-product-list summary {cursor:pointer}
.route-checkout .checkout-coupon .coupon-form {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.route-checkout .checkout-coupon .field>span:first-child {display:none}
.route-checkout .checkout-coupon input {min-width:0}
.route-checkout .checkout-form {position:sticky;top:96px;display:grid;gap:14px;min-width:0}
.route-checkout .checkout-form h2 {margin:0}
.route-checkout .checkout-quote-note {margin:0;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);font-size:.72rem}
.route-checkout .checkout-amount-lines {margin:0;display:grid;gap:8px;font-size:.8rem}
.route-checkout .checkout-amount-lines>div {display:flex;justify-content:space-between;gap:12px}
.route-checkout .checkout-amount-lines dt {color:var(--ink-2)}
.route-checkout .checkout-amount-lines dd {margin:0}
.route-checkout .checkout-payable {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px;border:1px solid color-mix(in srgb,var(--action) 40%,var(--line));border-radius:8px;background:color-mix(in srgb,var(--action) 5%,var(--surface));font-size:.83rem}
.route-checkout .checkout-payable strong {color:var(--action);font-size:1.65rem}
.route-checkout .checkout-section {padding:14px 0 0;border:0;border-top:1px solid var(--line);gap:10px;min-width:0}
.route-checkout .checkout-section>legend:not(.sr-only) {float:left;width:100%;font-size:.83rem;margin-bottom:8px}
.route-checkout .checkout-section>legend+* {clear:both}
.route-checkout .checkout-account-email {overflow-wrap:anywhere;margin:0;font-size:.85rem}
.route-checkout .checkout-section .help,.route-checkout .checkout-form>.help {font-size:.72rem;margin:0}
.route-checkout .checkout-section .field {font-size:.8rem}
.route-checkout .choice-card {padding:12px;background:var(--surface);font-size:.83rem;gap:10px}
.route-checkout .choice-card:has(input:checked) {border-color:var(--action);background:color-mix(in srgb,var(--action) 4%,var(--surface))}
.route-checkout .channel-single {display:grid;gap:4px;margin:0;padding:12px;border:1px solid var(--action);border-radius:10px;font-size:.83rem}
.route-checkout .check {font-size:.75rem;line-height:1.7;align-items:flex-start}
.route-checkout .checkout-submit-button {width:100%;min-height:44px;border-radius:10px}
.route-checkout .checkout-form .notice {margin:0;font-size:.75rem}
.route-checkout .checkout-closed {display:grid;gap:4px;padding:16px;margin-bottom:20px;border:1px solid var(--warn);border-radius:12px;color:var(--ink)}
.route-checkout .checkout-closed strong {color:var(--warn)}
@media(max-width:900px){.route-checkout .checkout-layout {grid-template-columns:minmax(0,1fr)}.route-checkout .checkout-form {position:static}}
@media(max-width:600px){.route-checkout .panel {padding:18px}.route-checkout .steps-bar {padding:12px}.route-checkout .steps-bar li {font-size:.75rem}.route-checkout .checkout-coupon .coupon-form {grid-template-columns:minmax(0,1fr)}.route-checkout .checkout-payable strong {font-size:1.4rem}}
.route-checkout .text-link {color:var(--action)}
.route-checkout .checkout-product-list img {object-fit:contain;background:var(--surface)}
.route-checkout .checkout-form .help {line-height:1.5}

/* Ethan-style checkout: pale page, white cards, stacked payable amount and side-by-side channel cards. */
body:has(.route-checkout) {background:var(--surface-2)}
.route-checkout .panel {background:var(--surface);border:1px solid #dbe0e7;box-shadow:0 1px 2px rgba(23,25,29,.04)}
.route-checkout .page-head h1 {font:800 1.875rem/1.2 var(--font-sans);letter-spacing:0}
.route-checkout .page-head .lead {font-size:.875rem;color:var(--ink-2)}
.route-checkout .panel h2 {font-size:1.125rem;font-weight:500}
.route-checkout .checkout-product-list a {text-decoration:none;font-size:1rem}
.route-checkout .checkout-product-list a strong {font-weight:500;color:var(--action)}
.route-checkout .checkout-product-list .price {font-size:1.125rem;font-weight:700}
.route-checkout .checkout-amount-lines {font-size:.875rem}
.route-checkout .checkout-amount-lines dd {font-family:var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);font-weight:400}
.route-checkout .checkout-payable {display:grid;justify-content:stretch;gap:6px;padding:16px;border:2px solid color-mix(in srgb,var(--action) 30%,transparent);border-radius:12px;background:color-mix(in srgb,var(--action) 6%,var(--surface))}
.route-checkout .checkout-payable>span {font-size:1rem;color:var(--ink)}
.route-checkout .checkout-payable strong {font-size:2.25rem;font-weight:800;line-height:1.15;color:var(--action);font-variant-numeric:tabular-nums}
.route-checkout .channel-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.route-checkout .channel-grid .choice-card {align-items:flex-start;padding:12px;border-radius:10px}
.route-checkout .channel-grid .choice-card>span {display:grid;gap:4px}
.route-checkout .choice-card .choice-help {display:none}
.route-checkout .choice-fee {font-size:.72rem;color:var(--warn)}
.route-checkout .channel-help {margin:4px 0 0}
.route-checkout .checkout-coupon h2 {margin-bottom:14px}
@media(max-width:600px){.route-checkout .checkout-payable strong {font-size:1.875rem}}

/* Subsite setup summary under the products (address, shop name, skin) with the way back to the form. */
.route-checkout .checkout-subsite-summary {display:grid;gap:10px;margin:0 0 16px;font-size:.875rem}
.route-checkout .checkout-subsite-summary>div {display:grid;grid-template-columns:5.5em minmax(0,1fr);gap:12px}
.route-checkout .checkout-subsite-summary dt {color:var(--ink-2)}
.route-checkout .checkout-subsite-summary dd {margin:0;min-width:0;overflow-wrap:anywhere}

/* routes/pay.css */
/* Route styles for pay, following the reference store: title row with a back link, the step bar, then one white
   card holding the payment notice, the QR/entry box and the order column. Phones stack everything in one column. */
body:has(.route-pay) { background: var(--surface-2); }
.route-pay { --line: #dbe0e7; max-width: 1280px; }
.route-pay .pay-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.route-pay .pay-head h1 { margin: 0 0 8px; font: 800 1.875rem/1.2 var(--font-sans); letter-spacing: 0; }
.route-pay .pay-head .lead { margin: 0; font-size: 0.875rem; color: var(--ink-2); }
.route-pay .pay-back { flex-shrink: 0; margin-top: 20px; font-size: 0.875rem; color: var(--ink-2); text-decoration: none; }
.route-pay .pay-back:hover { color: var(--ink); }

/* Step bar: earlier steps show a check mark, the current step its number */
.route-pay .steps-bar { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; margin: 0 0 32px; padding: 16px; list-style: none; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.route-pay .steps-bar li { display: flex; flex: 1; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; font-size: 0.875rem; white-space: nowrap; color: var(--ink); }
.route-pay .steps-bar li:not(:last-child)::after { content: ''; flex: 1; height: 2px; margin-right: 8px; background: var(--action); }
.route-pay .steps-bar li:last-child { flex: none; }
.route-pay .steps-bar li span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--action); color: var(--action-ink); font-size: 0.75rem; font-weight: 600; }
.route-pay .steps-bar li:not([aria-current]) span { font-size: 0; }
.route-pay .steps-bar li:not([aria-current]) span::before { content: '✓'; font-size: 0.875rem; }

/* Card */
.route-pay .pay-layout { display: block; }
.route-pay .panel { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px rgba(23, 25, 29, 0.04); }
.route-pay .pay-card { display: grid; gap: 24px; }
.route-pay .pay-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.route-pay .pay-card-head h2 { margin: 0; font: 500 1.25rem/1.4 var(--font-sans); }
.route-pay .pay-card-head .help { margin: 4px 0 0; font-size: 0.875rem; color: var(--ink-2); }
.route-pay .pay-card-head .help + .help { font-size: 0.75rem; }
.route-pay .pay-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.route-pay .button-secondary { min-height: 36px; padding: 8px 16px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--ink); font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.route-pay .button-secondary:hover { background: color-mix(in srgb, var(--surface-2) 80%, var(--ink) 6%); }
.route-pay .pay-state { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.route-pay .pay-state h3 { margin: 0; font-size: 1rem; }
.route-pay .pay-state p { margin: 0; color: var(--ink-2); }
.route-pay .pay-state-warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); }
.route-pay .pay-state-ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
.route-pay .pay-details { display: grid; gap: 24px; }
.route-pay .pay-details > .notice { margin: 0; }

/* Amber payment notice: exact amount, network and the transfer rules */
.route-pay .pay-amount-notice { display: grid; gap: 8px; margin: 0; padding: 20px; border: 1px solid #f3d9a4; border-radius: 16px; background: #fffbf2; }
.route-pay .pay-amount-notice dt, .route-pay .pay-notice-label { margin: 0; font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.route-pay .pay-amount-notice dd { margin: 0; }
.route-pay .pay-notice-amount { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.route-pay .pay-notice-amount .amount { font-size: 1.875rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.route-pay .pay-notice-amount mark { background: transparent; color: inherit; }
.route-pay .pay-notice-amount .amount-unit { font-size: 1.125rem; font-weight: 700; }
.route-pay .pay-notice-amount .button { min-height: 32px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--ink); font-size: 0.875rem; font-weight: 500; }
.route-pay .pay-notice-rules { display: grid; gap: 8px; font-size: 0.875rem; line-height: 1.65; color: var(--ink-2); }
.route-pay .pay-notice-rules p, .route-pay .pay-notice-list { margin: 0; }
.route-pay .pay-notice-strong { font-weight: 600; color: var(--ink); }
.route-pay .pay-notice-small { font-size: 0.75rem; }
.route-pay .pay-notice-list { display: grid; gap: 6px; padding-left: 1.2em; font-size: 0.875rem; line-height: 1.6; color: var(--ink-2); }

/* QR / entry box and the order column */
.route-pay .pay-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.route-pay .pay-grid > .pay-side:only-child { grid-column: 2; }
.route-pay .pay-qr-box { display: grid; justify-items: center; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); text-align: center; }
.route-pay .pay-qr-box.is-empty { display: none; }
.route-pay .pay-qr-box > .help { margin: 0; font-size: 0.875rem; color: var(--ink-2); }
.route-pay .qr-figure { display: grid; justify-items: center; gap: 10px; margin: 0; padding: 8px; border-radius: 12px; background: #fff; }
.route-pay .qr-figure figcaption { max-width: 32ch; font-size: 0.75rem; line-height: 1.5; color: #586273; }
.route-pay .qr { width: min(100%, 240px); }
.route-pay .pay-fact-table { display: grid; width: min(100%, 576px); margin: 0; padding: 4px 12px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface) 40%, transparent); text-align: left; }
.route-pay .pay-fact-table > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.route-pay .pay-fact-table > div:first-child { border-top: 0; }
.route-pay .pay-fact-table dt { flex-shrink: 0; font-size: 0.75rem; color: var(--ink-2); }
.route-pay .pay-fact-table dd { min-width: 0; margin: 0; font-size: 0.875rem; text-align: right; overflow-wrap: anywhere; }
.route-pay .pay-fact-table .address { padding: 0; background: transparent; font-weight: 600; font-size: 0.875rem; }
.route-pay .pay-fact-actions { display: flex; justify-content: flex-end; width: min(100%, 576px); margin-top: -8px; }
.route-pay .pay-fact-actions .button { min-height: 32px; border: 0; border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 0.75rem; }
.route-pay .pay-entry { display: grid; justify-items: center; gap: 12px; width: 100%; }
.route-pay .pay-details[data-method] .qr-figure { border-top: 4px solid var(--pay-accent); }
.route-pay .pay-details[data-method="wxpay"] { --pay-accent: #07c160; }
.route-pay .pay-details[data-method="alipay"] { --pay-accent: #1677ff; }
.route-pay .pay-go { width: min(100%, 360px); }
.route-pay .pay-mobile-hint { max-width: 46ch; margin: 0; font-size: 0.75rem; }
.route-pay .pay-entry-qr .qr { width: min(100%, 260px); }

.route-pay .pay-side { display: grid; gap: 16px; min-width: 0; }
.route-pay .pay-box { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); font-size: 0.75rem; color: var(--ink-2); }
.route-pay .pay-box p { margin: 0; }
.route-pay .pay-box-label { font-size: 0.75rem; }
.route-pay .pay-box-id { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.route-pay .pay-box-id .mono { font-size: 0.875rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.route-pay .pay-box-id .button { min-height: 28px; padding: 4px 10px; font-size: 0.75rem; }
.route-pay .pay-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.75rem; color: var(--ink-2); }
.route-pay .pay-status .pill { min-height: 22px; padding: 2px 8px; font-size: 0.6875rem; }
.route-pay .pay-box-amount { gap: 10px; padding: 20px; border: 2px solid color-mix(in srgb, var(--action) 30%, transparent); background: color-mix(in srgb, var(--action) 5%, var(--surface)); }
.route-pay .pay-box-amount > .pay-facts { display: grid; gap: 6px; }
.route-pay .pay-box-title { font-size: 1rem; font-weight: 500; color: var(--ink); }
.route-pay .pay-box-big { font-size: 2.25rem; font-weight: 800; line-height: 1.15; color: var(--action); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.route-pay .pay-box-big .amount { font: inherit; color: inherit; }
.route-pay .pay-box-big .amount-unit { font-size: 1.25rem; }
.route-pay .pay-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.75rem; }
.route-pay .pay-row strong { color: var(--ink); font-weight: 600; }
.route-pay .pay-row-countdown { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.route-pay .pay-box .notice { margin: 0; font-size: 0.75rem; }
.route-pay .pay-auto-note { margin: 0; text-align: center; font-size: 0.75rem; }

.route-pay .pay-help { display: grid; gap: 12px; margin-top: 24px; }
.route-pay .pay-help h2 { margin: 0; font-size: 1.125rem; font-weight: 500; }
.route-pay .pay-help dl { display: grid; gap: 12px; margin: 0; }
.route-pay .pay-help dt { font-weight: 600; font-size: 0.875rem; }
.route-pay .pay-help dd { margin: 4px 0 0; color: var(--ink-2); font-size: 0.875rem; line-height: 1.6; }

@media (max-width: 1023px) {
  .route-pay .pay-grid { grid-template-columns: minmax(0, 1fr); }
  .route-pay .pay-grid > .pay-side:only-child { grid-column: auto; }
}
@media (max-width: 599px) {
  .route-pay .panel { padding: 16px; }
  .route-pay .pay-head h1 { font-size: 1.625rem; }
  .route-pay .steps-bar { padding: 12px; margin-bottom: 20px; }
  .route-pay .steps-bar li { font-size: 0; gap: 0; }
  .route-pay .steps-bar li span { font-size: 0.75rem; }
  .route-pay .pay-qr-box { padding: 16px; }
  .route-pay .pay-box-big { font-size: 1.875rem; }
}

/* routes/order.css */
/* Order details keep lifecycle, payment and fulfilment independent. */
body:has(.route-order) { background: var(--surface-2); }
.route-order .order-progress { align-self: start; }
.route-order .text-button { font-size: 11px; font-weight: 500; color: var(--info); text-decoration: none; }
.route-order .help { font-size: 12px; line-height: 1.7; }
.route-order .pill { min-height: 22px; font-size: 11px; font-weight: 600; padding: 2px 8px; background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.route-order .notice { margin: 0; padding: 14px 18px; font-size: 12px; border-radius: 10px; }
.route-order .table-scroll table { font-size: 12px; }
.route-order .table-scroll th { font-size: 11px; background: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); }
.route-order .table-scroll th, .route-order .table-scroll td { padding: 14px 12px; }
.route-order .table-scroll td:first-child { min-width: 160px; }
.route-order .two-columns { gap: 22px; }
.route-order .prose-text, .route-order .plain-list { font-size: 12px; color: var(--ink-2); line-height: 1.8; }
.route-order .timeline { gap: 22px; padding-left: 22px; margin: 6px 0 0 4px; border-left: 1px solid var(--line); font-size: 14px; }
.route-order .timeline li { gap: 5px; }
.route-order .timeline li::before { width: 7px; height: 7px; left: -26px; top: 7px; background: var(--info); box-shadow: 0 0 0 4px var(--surface); }
.route-order .timeline time { font-size: 12px; }
.route-order .actions { gap: 10px; }
.route-order .actions .text-link { font-size: 12px; margin-inline: 4px; }
.route-order .pay-codes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.route-order .pay-code { min-width: 0; padding: 10px; }
.route-order .pay-code img { max-width: 100%; }
.route-order .pay-code .button { font-size: 10px; padding-inline: 10px; }
.route-order .polygon-payment { display: grid; gap: 14px; min-width: 0; }
.route-order .polygon-payment > .pill { justify-self: start; color: var(--info); }
.route-order .polygon-payment p { margin: 0; }
.route-order .polygon-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; }
.route-order .polygon-amount strong { font-size: 36px; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.route-order .polygon-amount > span { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.route-order [data-polygon-transfer] { display: grid; gap: 16px; }
.route-order .polygon-qr { display: grid; place-items: center; padding: 20px; border-radius: 14px; background: var(--surface-2); }
.route-order .polygon-qr:empty { display: none; }
.route-order .polygon-qr svg { display: block; width: 240px; max-width: 100%; height: auto; border-radius: 8px; }
.route-order .polygon-address-label { display: grid; gap: 8px; color: var(--ink-2); font-size: 12px; }
.route-order .polygon-address { overflow-wrap: anywhere; padding: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: 13px; line-height: 1.7; }
.route-order [data-polygon-countdown] { font-variant-numeric: tabular-nums; text-align: center; }
.route-order .polygon-payment-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }

.route-order [data-delivery][hidden] { display: none; }

.route-order [data-delivery-error]:empty { display: none; }


/* Ethan-style order detail: stacked white cards on a pale page, 16px radius, 24px padding. */
.route-order { --line: #dbe0e7; --card-shadow: 0 1px 2px rgba(23, 25, 29, 0.04); max-width: 1536px; padding: 96px 16px 64px; }
.route-order .island { display: grid; gap: 24px; }
.route-order .order-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.route-order .order-crumbs a { color: inherit; text-decoration: none; }
.route-order .order-crumbs a:hover, .route-order .order-crumbs [aria-current] { color: var(--ink); }
.route-order .order-crumbs > span[aria-hidden] { opacity: 0.6; }
.route-order .order-page-head { margin-bottom: 32px; }
.route-order .order-page-head h1 { margin: 0 0 8px; font: 800 30px/1.2 var(--font-sans); letter-spacing: 0; }
.route-order .order-page-head p { margin: 0; font-size: 14px; color: var(--ink-2); }
.route-order .order-banner { display: flex; align-items: center; gap: 16px; padding: 24px; border: 2px solid color-mix(in srgb, var(--action) 30%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--action) 10%, var(--surface)); }
.route-order .order-banner-icon { display: grid; place-items: center; flex-shrink: 0; color: var(--action); }
.route-order .order-banner h2 { margin: 0; font: 700 24px/1.3 var(--font-sans); }
.route-order .order-banner p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.route-order .order-policy { padding: 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.route-order .order-policy h2 { margin: 0; font-size: 14px; font-weight: 600; }
.route-order .order-policy p { margin: 8px 0 0; color: var(--ink-2); }
.route-order .order-policy dl { display: grid; gap: 8px; margin: 12px 0 0; }
.route-order .order-policy dt { font-weight: 500; }
.route-order .order-policy dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.route-order .order-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--card-shadow); }
.route-order .order-reference { flex: 1 1 260px; min-width: 0; }
.route-order .order-label { font-size: 12px; color: var(--ink-2); }
.route-order .order-id { margin-top: 4px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.route-order .order-id .mono { font-size: 14px; }
.route-order .order-created { margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.route-order .order-amount { display: grid; gap: 4px; justify-items: center; text-align: center; }
.route-order .order-amount .price { font-size: 18px; font-weight: 700; }
.route-order .status-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; font-size: 11px; color: var(--ink-2); }
.route-order .status-grid > span { display: inline-flex; align-items: center; gap: 6px; }
.route-order .order-support { padding: 16px 20px; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); border-radius: 16px; font-size: 14px; color: var(--ink-2); }
.route-order .order-support .text-link { margin-left: 8px; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.route-order .panel { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--card-shadow); }
.route-order .panel > h2 { margin: 0 0 16px; font: 700 18px/1.4 var(--font-sans); letter-spacing: 0; }
.route-order .order-item-list, .route-order .order-line-list { display: grid; gap: 16px; }
.route-order .order-item-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.route-order .order-item-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.route-order .order-item-no { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.route-order .order-item-no .mono { font-size: 14px; }
.route-order .order-item-sum { margin-top: 4px; font-size: 12px; color: var(--ink-2); }
.route-order .order-item-card > h3, .route-order .order-item-delivery-head h3 { margin: 16px 0 12px; font-size: 14px; font-weight: 600; }
.route-order .order-line { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 12px; font-size: 14px; color: var(--ink-2); }
.route-order .order-line-product { display: flex; align-items: flex-start; gap: 12px; flex: 1 1 320px; min-width: 0; }
.route-order .order-item-image { flex-shrink: 0; width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 12px; background: #fff; object-fit: cover; }
.route-order .order-item-image-empty { display: grid; place-items: center; font-size: 20px; color: var(--muted); }
.route-order .order-line-main { min-width: 0; }
.route-order .order-line-name { font-weight: 500; color: var(--ink); }
.route-order .order-item-terms { max-width: 560px; margin: 12px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); font-size: 14px; }
.route-order .order-item-terms h2 { margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.route-order .order-item-terms p { margin: 0; line-height: 1.6; }
.route-order .order-item-meta { display: grid; gap: 2px; margin-top: 8px; font-size: 12px; }
.route-order .order-item-price { display: grid; gap: 4px; justify-items: end; font-size: 14px; }
.route-order .order-item-paid { font-weight: 500; color: var(--ink); }
.route-order .order-item-delivery { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.route-order .order-redeem { display: grid; gap: 10px; max-width: 720px; margin: 16px 0 0; padding: 16px; border: 1px solid color-mix(in srgb, var(--action) 30%, var(--line)); border-radius: 12px; font-size: 14px; }
.route-order .order-redeem h3, .route-order .order-redeem p { margin: 0; line-height: 1.6; }
.route-order .order-redeem textarea { width: 100%; font-family: var(--font-mono, monospace); font-size: 13px; overflow-wrap: anywhere; }
.route-order .order-redeem-entry { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 1px solid color-mix(in srgb, var(--action) 25%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--action) 7%, var(--surface)); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.route-order .order-redeem-entry:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.order-redeem-entry-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid color-mix(in srgb, var(--action) 25%, var(--line)); border-radius: 10px; background: var(--surface); color: var(--action); font-size: 22px; }
.order-redeem-entry-copy { display: grid; gap: 4px; flex: 1; min-width: 0; }
.order-redeem-entry-copy small { color: var(--muted); font-size: 12px; }
.order-redeem-entry-cta { color: var(--action); font-size: 13px; white-space: nowrap; }
.order-redeem-shot { display: block; width: 100%; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); cursor: zoom-in; }
.order-redeem-shot img { display: block; width: 100%; max-height: 360px; height: auto; object-fit: contain; }
.order-redeem-shot span { display: block; padding: 6px 0 2px; color: var(--muted); font-size: 12px; text-align: center; }
.dialog.redeem-guide-dialog { width: min(100% - 24px, 900px); }
.dialog.redeem-guide-dialog .dialog-body { padding: 12px 0 0; gap: 0; }
.redeem-guide { display: grid; grid-template-columns: 180px minmax(0, 1fr); border-top: 1px solid var(--line); }
.redeem-guide-nav { display: grid; align-content: start; gap: 6px; padding: 16px 10px; border-right: 1px solid var(--line); background: var(--surface-2); }
.redeem-guide-nav button { display: flex; align-items: center; gap: 8px; padding: 10px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.redeem-guide-nav button span { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; }
.redeem-guide-nav button[aria-current] { background: color-mix(in srgb, var(--action) 12%, var(--surface)); color: var(--action); font-weight: 600; }
.redeem-guide-nav button[aria-current] span { border-color: var(--action); background: var(--action); color: #fff; }
.redeem-guide-step { min-height: 380px; max-height: 60dvh; overflow: auto; padding: 20px 24px; }
.redeem-guide-step h3 { margin: 6px 0 8px; font-size: 20px; }
.redeem-guide-step > p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.8; }
.redeem-guide-link { white-space: nowrap; }
.redeem-guide-kicker { color: var(--action); font-size: 12px; font-weight: 600; }
.redeem-guide-demo { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.redeem-guide-demo code { display: block; padding: 16px; background: var(--surface-2); font-size: 12px; overflow-wrap: anywhere; }
.redeem-guide-demo p { margin: 0; padding: 18px 12px; color: var(--muted); font-size: 13px; text-align: center; }
.redeem-guide-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.redeem-guide-foot > small { color: var(--muted); }
.redeem-guide-foot > div { display: flex; gap: 8px; }
.dialog.redeem-zoom-dialog { width: min(100% - 16px, 1100px); }
.order-redeem-zoom { display: block; width: 100%; height: auto; }
@media (max-width: 640px) {
    .route-order .order-redeem-entry { gap: 10px; padding: 12px; }
    .order-redeem-entry-cta { display: none; }
    .redeem-guide { grid-template-columns: minmax(0, 1fr); }
    .redeem-guide-nav { display: flex; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
    .redeem-guide-nav button { flex-shrink: 0; padding: 8px; font-size: 12px; white-space: nowrap; }
    .redeem-guide-step { min-height: 300px; max-height: 55dvh; padding: 16px; }
    .redeem-guide-foot { padding: 12px 16px; }
}
.route-order .order-item-delivery-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.route-order .order-item-delivery-head h3 { margin: 0 0 12px; }
.route-order .order-item-delivery-head .button { min-height: 30px; margin-bottom: 12px; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 500; }
.route-order .delivery-item { overflow: hidden; border: 2px solid color-mix(in srgb, var(--action) 30%, transparent); border-radius: 16px; background: var(--surface); }
.route-order .delivery-item:not(:has(.delivery-head)) { border-width: 1px; border-color: var(--line); }
.route-order .delivery-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: color-mix(in srgb, var(--action) 10%, var(--surface)); }
.route-order .delivery-head h3 { margin: 0; font: 700 20px/1.3 var(--font-sans); }
.route-order .delivery-head p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.route-order .delivery-body { display: grid; gap: 20px; padding: 20px; font-size: 14px; }
.route-order .delivery-body > p, .route-order .delivery-body h4 { margin: 0; }
.route-order .delivery-body h4 { font-size: 14px; font-weight: 600; }
.route-order .code-row { display: grid; gap: 12px; }
.route-order .code-value { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); font-size: 18px; font-weight: 700; overflow-wrap: anywhere; user-select: all; }
.route-order .code-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.route-order .code-actions .button { min-height: 44px; padding: 8px 16px; border-radius: 12px; font-size: 16px; font-weight: 600; }
.route-order .delivery-link { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.route-order .delivery-link .help { margin: 0; font-size: 14px; color: var(--ink-2); }
.route-order .order-recharge-link { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--action); border-radius: 12px; background: transparent; color: var(--action); font-size: 16px; font-weight: 600; }
.route-order .order-recharge-link:hover { background: color-mix(in srgb, var(--action) 8%, var(--surface)); }
.route-order .order-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.route-order .order-tiles > div { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.route-order .order-tiles span { font-size: 12px; color: var(--ink-2); }
.route-order .order-tiles strong { font-weight: 400; overflow-wrap: anywhere; }
.route-order .order-tiles .mono { font-size: 14px; }
.route-order .panel .order-line { padding-bottom: 12px; }
.route-order .panel .order-line-list .order-line + .order-line { padding-top: 16px; border-top: 1px solid var(--line); }
.route-order .order-back, .route-order .order-back-sep, .route-order .order-back-current { display: none; }
.route-order .order-crumbs-full { display: contents; }
.route-order .order-item-delivery-meta { display: grid; gap: 2px; margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 720px) {
  .route-order .order-crumbs-full { display: none; }
  .route-order .order-back { display: inline-flex; align-items: center; gap: 6px; }
  .route-order .order-back-sep { display: inline; opacity: 0.6; }
  .route-order .order-back-current { display: inline; color: var(--ink); }
  .route-order { padding-top: 80px; }
  .route-order .status-grid { justify-content: flex-start; }
  .route-order .order-amount { justify-items: start; text-align: left; }
  .route-order .order-item-price { justify-items: start; }
  .route-order .order-tiles, .route-order .two-columns { grid-template-columns: minmax(0, 1fr); }
  .route-order .panel { padding: 16px; }
  .route-order .order-head { padding: 16px; }
}

.route-order .order-banner[hidden] { display: none; }
.route-order .order-item-delivery-head .button[data-copy-all] { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.route-order .delivery-note { display: grid; gap: 4px; margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; line-height: 1.6; }
.route-order .delivery-note p, .route-order .delivery-guide p { margin: 0; }
.route-order .delivery-guide { display: grid; gap: 12px; margin-top: 16px; padding: 16px; border: 1px solid color-mix(in srgb, var(--action) 30%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--action) 5%, var(--surface)); font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.route-order .delivery-guide h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; color: var(--action); }

/* Subsite-setup provisioning panel: state heading, four steps while opening, links once active. */
.route-order .subsite-provision { display: grid; gap: 16px; }
.route-order .subsite-provision:empty { display: none; }
.route-order .subsite-provision-head { padding-left: 14px; border-left: 3px solid var(--info); }
.route-order .subsite-provision-head[data-tone="ok"] { border-left-color: var(--ok); }
.route-order .subsite-provision-head[data-tone="warn"] { border-left-color: var(--warn); }
.route-order .subsite-provision-head[data-tone="muted"] { border-left-color: var(--line); }
.route-order .subsite-provision-head h2 { margin: 0; font: 700 18px/1.4 var(--font-sans); }
.route-order .subsite-provision-head p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.route-order .subsite-provision-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: provision; }
.route-order .subsite-provision-steps li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--muted); counter-increment: provision; }
.route-order .subsite-provision-steps li::before { content: counter(provision); display: grid; place-items: center; flex: none; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; font-size: 12px; }
.route-order .subsite-provision-steps li[data-state="done"] { color: var(--ink); }
.route-order .subsite-provision-steps li[data-state="done"]::before { content: '✓'; border-color: var(--ok); background: var(--ok); color: var(--surface); }
.route-order .subsite-provision-steps li[data-state="current"] { color: var(--ink); font-weight: 600; }
.route-order .subsite-provision-steps li[data-state="current"]::before { border-color: var(--info); color: var(--info); }
@media (max-width: 720px) { .route-order .subsite-provision-steps { grid-template-columns: minmax(0, 1fr); } }

/* routes/guest-orders.css */
/* Route styles for guest-orders (EthanAI-style replica). Scope selectors to this route. */
.route-guest-orders { max-width: 560px; }
.route-guest-orders .page-head { justify-items: center; text-align: center; margin-bottom: 20px; }
.route-guest-orders .guest-card { display: grid; padding: 8px 28px 28px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow); min-width: 0; }

/* Segmented tab bar; hidden until the island enables it. */
.route-guest-orders .guest-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 12px 0 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.route-guest-orders .guest-tabs[hidden] { display: none; }
.route-guest-orders .guest-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 44px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.route-guest-orders .guest-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-guest-orders .guest-tab svg { flex: none; width: 17px; height: 17px; }
.route-guest-orders .guest-tab:hover { color: var(--ink); }
.route-guest-orders .guest-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 18%, transparent); }
.route-guest-orders .guest-tab[aria-selected="true"] svg { color: var(--gold-ink); }

/* Sections: stacked with dividers without JS, one at a time as tab panels. */
.route-guest-orders .guest-panel { display: grid; gap: 18px; padding-top: 22px; min-width: 0; }
.route-guest-orders .guest-panel[hidden] { display: none; }
.route-guest-orders .guest-panel + .guest-panel { margin-top: 26px; border-top: 1px solid var(--line); }
.route-guest-orders .guest-tabs:not([hidden]) ~ .guest-panel { margin-top: 0; border-top: 0; }
.route-guest-orders .guest-panel-head { display: flex; gap: 14px; align-items: flex-start; }
.route-guest-orders .guest-panel-head h2 { margin: 2px 0 4px; font-size: 1.12rem; }
.route-guest-orders .guest-panel-head .help { margin: 0; line-height: 1.55; }
.route-guest-orders .guest-panel-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius-m); background: var(--gold-soft); color: var(--gold-ink); }

.route-guest-orders .stack-form + .stack-form { margin-top: 4px; padding-top: 18px; }
.route-guest-orders .guest-step { display: flex; gap: 10px; align-items: center; margin: 0; color: var(--ink); font-size: 0.92rem; font-weight: 600; }
.route-guest-orders .guest-step span { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--action); color: var(--action-ink); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.route-guest-orders .guest-submit { width: 100%; }
.route-guest-orders .guest-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.9rem; }
.route-guest-orders .guest-results:empty { display: none; }
.route-guest-orders .guest-results { padding: 4px 16px; border-radius: var(--radius-m); background: var(--surface-2); }
.route-guest-orders > noscript .notice { margin-top: 16px; }

@media (max-width: 599px) {
    .route-guest-orders .guest-card { padding: 4px 16px 20px; }
    .route-guest-orders .guest-tab { flex-direction: column; gap: 2px; min-height: 52px; padding: 4px 6px; font-size: 0.8rem; border-radius: 14px; }
    .route-guest-orders .guest-tabs { border-radius: 18px; }
    .route-guest-orders .guest-panel-icon { width: 36px; height: 36px; }
}

/* routes/auth.css */
/* Account entry pages use the reference's compact centred card. */
.route-auth { min-height: calc(100svh - var(--header-h)); padding: 48px 0 72px; background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--info) 13%, var(--surface)) 0, var(--bg) 75%); }
.route-auth .auth-wrap { width: min(100% - 40px, 512px); }
.route-auth .auth-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 16px 22px; }
.route-auth .auth-back { display: inline-flex; align-items: center; min-height: 24px; color: var(--ink-2); font-size: 0.82rem; text-decoration: none; }
.route-auth .auth-back:hover { color: var(--ink); text-decoration: underline; }
.route-auth .auth-category { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 55%, transparent); color: var(--ink-2); font-size: 0.7rem; font-weight: 600; }
.route-auth .auth-card { display: grid; gap: 28px; padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 2px 4px rgba(20, 33, 61, 0.05), 0 16px 32px -20px rgba(20, 33, 61, 0.28); }
.route-auth .auth-head { display: grid; gap: 10px; text-align: center; }
.route-auth .auth-brand { margin: 0 0 2px; color: var(--info); font-size: 0.72rem; font-weight: 750; letter-spacing: 0.22em; }
.route-auth .auth-head h1 { margin: 0; color: var(--ink); font-family: var(--font-sans); font-weight: 750; font-size: 1.9rem; letter-spacing: -0.04em; line-height: 1.25; }
.route-auth .auth-lead { margin: 0; color: var(--ink-2); font-size: 0.88rem; line-height: 1.65; }
.route-auth .auth-form { gap: 20px; }
.route-auth .auth-form .field > span:first-child { color: var(--ink-2); font-size: 0.8rem; font-weight: 600; }
.route-auth .auth-form .field input { min-height: 46px; padding: 10px 13px; border-radius: 12px; background: var(--surface); transition: border-color 0.2s, box-shadow 0.2s; }
.route-auth .auth-form .field input:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 15%, transparent); }
.route-auth .auth-form .input-row { position: relative; }
.route-auth .auth-form .input-row .text-button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); text-decoration: none; font-size: 0.8rem; }
.route-auth .auth-form .input-row:has(.text-button:not([hidden])) input { padding-right: 72px; }
.route-auth .auth-forgot { margin: -10px 0 -4px; text-align: right; font-size: 0.8rem; }
.route-auth .auth-forgot .text-link { color: var(--ink-2); font-weight: 400; text-decoration: none; }
.route-auth .auth-forgot .text-link:hover { text-decoration: underline; }
.route-auth .auth-submit { width: 100%; min-height: 46px; margin-top: 4px; border-radius: 12px; gap: 8px; font-size: 0.88rem; }
.route-auth .auth-submit svg { width: 16px; height: 16px; }
.route-auth .form-message:empty { display: none; }
.route-auth .auth-note { margin: -10px 0 0; text-align: center; color: var(--muted); font-size: 0.76rem; line-height: 1.65; }
.route-auth .auth-swap { margin: 20px 0 0; text-align: center; color: var(--ink-2); font-size: 0.88rem; }
.route-auth .auth-swap .text-link { font-weight: 500; text-decoration: none; }
.route-auth .auth-swap .text-link:hover { text-decoration: underline; }
.route-auth .auth-links { justify-content: center; gap: 16px; margin-top: 14px; padding: 0; }
.route-auth .auth-links .text-link { color: var(--muted); font-size: 0.78rem; font-weight: 400; text-decoration: none; }
.route-auth .auth-links .text-link:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 599px) {
  .route-auth { padding: 28px 0 48px; }
  .route-auth .auth-wrap { width: min(100% - 32px, 512px); }
  .route-auth .auth-topline { margin: 0 8px 16px; }
  .route-auth .auth-card { padding: 28px 22px; border-radius: 20px; gap: 24px; }
  .route-auth .auth-head h1 { font-size: 1.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .route-auth .auth-form .field input { transition: none; }
}

/* routes/account.css */
/* Account centre: quiet sidebar, outlined cards and compact order rows. */
.route-account { padding-top: 36px; padding-bottom: 64px; }
.route-account .acct-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 32px; align-items: start; }
.route-account .acct-side { position: sticky; top: calc(var(--header-h) + 24px); padding: 20px 12px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.route-account .acct-side-head { padding: 0 12px 18px; }
.route-account .acct-side-head .eyebrow { margin: 0 0 5px; font-size: 0.65rem; letter-spacing: 0.15em; }
.route-account .acct-side-title { margin: 0; color: var(--ink); font-size: 1.12rem; font-weight: 750; }
.route-account .acct-nav { display: grid; gap: 16px; }
.route-account .acct-nav-group { display: grid; gap: 3px; }
.route-account .acct-nav-label { margin: 0 12px 5px; color: var(--muted); font-size: 0.72rem; }
.route-account .acct-nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px; border-radius: 12px; color: var(--ink-2); font-size: 0.88rem; text-decoration: none; }
.route-account .acct-nav a:hover { color: var(--ink); background: var(--surface-2); }
.route-account .acct-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); font-weight: 650; }
.route-account .acct-nav-icon { display: flex; flex: none; }
.route-account .acct-main { min-width: 0; }
.route-account .page-head { margin-bottom: 24px; }
.route-account .page-head h1 { font-family: var(--font-sans); font-size: clamp(1.65rem, 1.35rem + 0.8vw, 2.1rem); letter-spacing: -0.035em; }
.route-account .page-head .lead { max-width: 60ch; font-size: 0.92rem; }
.route-account [data-island="account"] { display: grid; gap: 24px; }
.route-account .panel { margin: 0; border-radius: 18px; padding: 24px; box-shadow: none; }
.route-account h2 { font-family: var(--font-sans); font-size: 1.05rem; letter-spacing: -0.02em; }
.route-account .help { margin: 0; font-size: 0.82rem; line-height: 1.65; }
.route-account .button { min-height: 42px; border-radius: 999px; padding: 9px 18px; font-size: 0.84rem; }
.route-account .acct-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; color: var(--gold-ink); background: var(--surface-2); }
.route-account .acct-icon-lg { width: 56px; height: 56px; border-radius: 18px; }
.route-account .acct-icon-lg svg { width: 24px; height: 24px; }
.route-account .acct-icon-ok { color: var(--ok); }
.route-account .acct-hero { display: flex; align-items: center; gap: 18px; background: linear-gradient(125deg, var(--surface), color-mix(in srgb, var(--surface-2) 65%, var(--surface))); }
.route-account .acct-avatar { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--gold-ink); font-size: 1.6rem; font-weight: 700; }
.route-account .acct-hero-main { min-width: 0; flex: 1; }
.route-account .acct-hero-main .eyebrow { margin: 0 0 5px; font-size: 0.68rem; }
.route-account .acct-hero-main h2 { margin: 0 0 10px; overflow-wrap: anywhere; font-size: 1.15rem; }
.route-account .pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.route-account .pill { font-size: 0.72rem; }
.route-account .acct-hero-actions { justify-content: flex-end; }
.route-account .acct-logout { color: var(--ink-2); }
.route-account .acct-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.route-account .acct-shortcut { display: flex; align-items: center; gap: 12px; height: 100%; min-height: 100px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; transition: border-color 0.18s, background-color 0.18s; }
.route-account .acct-shortcut:hover { border-color: var(--gold); background: color-mix(in srgb, var(--surface-2) 40%, var(--surface)); }
.route-account .acct-shortcut-text { display: grid; gap: 5px; flex: 1; min-width: 0; color: var(--ink); }
.route-account .acct-shortcut-text strong { font-size: 0.9rem; }
.route-account .acct-go { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2); background: var(--surface); }
.route-account .acct-shortcut .acct-go { border: 0; background: transparent; }
.route-account a.acct-go:hover { border-color: var(--gold); color: var(--gold-ink); }
.route-account .acct-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.route-account .acct-section-head h2 { margin: 0; }
.route-account .acct-section-head a { font-size: 0.82rem; }
.route-account .acct-orders { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.route-account .acct-order { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.route-account .acct-order-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; }
.route-account .acct-order-id { min-width: 0; color: var(--ink); font-size: 0.84rem; font-weight: 650; overflow-wrap: anywhere; text-decoration: none; }
.route-account .acct-order-id:hover { text-decoration: underline; }
.route-account .acct-order-items { margin: 14px 0; color: var(--ink-2); font-size: 0.88rem; }
.route-account .acct-order-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.route-account .acct-order-foot .pill-row { flex: 1; }
.route-account .acct-order-price { display: grid; gap: 2px; text-align: right; }
.route-account .acct-order-label { color: var(--muted); font-size: 0.7rem; }
.route-account .acct-order-price .price { font-size: 1rem; }
.route-account .acct-empty, .route-account .acct-signin { padding: 40px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-align: center; }
.route-account .acct-empty h2, .route-account .acct-empty h3, .route-account .acct-signin h2 { margin: 12px 0 8px; }
.route-account .acct-empty .button, .route-account .acct-signin .actions { margin-top: 20px; }
.route-account .acct-signin .actions { justify-content: center; }
.route-account .acct-partner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; border: 1px solid color-mix(in srgb, var(--gold) 50%, var(--line)); border-radius: 18px; background: linear-gradient(115deg, color-mix(in srgb, var(--gold) 15%, var(--surface)), var(--surface)); color: var(--ink); text-decoration: none; }
.route-account .acct-partner > span:first-child { display: grid; gap: 6px; }
.route-account .acct-partner .eyebrow { margin: 0; font-size: 0.65rem; }
.route-account .acct-partner strong { font-size: 1rem; }
.route-account .acct-partner-cta { display: flex; align-items: center; gap: 8px; flex: none; font-size: 0.84rem; font-weight: 650; }
.route-account .acct-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.route-account .acct-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--surface); font-size: 0.82rem; text-decoration: none; }
.route-account .acct-chips a:hover, .route-account .acct-chips a[aria-current="page"] { color: var(--action-ink); background: var(--action); border-color: var(--action); }
.route-account .acct-filter { display: flex; gap: 10px; align-items: center; }
.route-account .acct-search { flex: 1; min-width: 0; margin: 0; }
.route-account .acct-search-box { position: relative; display: flex; align-items: center; }
.route-account .acct-search-box > svg { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.route-account .acct-search-box input { width: 100%; padding-left: 42px; }
.route-account .acct-card { display: grid; gap: 20px; min-width: 0; align-content: start; }
.route-account .acct-card-head { display: flex; gap: 12px; align-items: center; }
.route-account .acct-card-head > div { min-width: 0; flex: 1; }
.route-account .acct-card-head h2 { margin: 0; }
.route-account .acct-card-head .help { margin-top: 4px; overflow-wrap: anywhere; }
.route-account .acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.route-account .stack-form { gap: 16px; }
.route-account .stack-form > .button { justify-self: start; }
.route-account .field input { min-height: 44px; border-radius: 10px; background: var(--surface); }
.route-account .input-row { position: relative; }
.route-account .input-row input[type="password"], .route-account .input-row:has([data-toggle-password]) input { padding-right: 70px; }
.route-account .input-row [data-toggle-password] { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); text-decoration: none; font-size: 0.78rem; }
.route-account [data-email-confirm] { padding-top: 20px; border-top: 1px solid var(--line); }
.route-account .acct-sessions { list-style: none; margin: 0; padding: 0; }
.route-account .acct-session { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.route-account .acct-session:first-child { padding-top: 0; }
.route-account .acct-session:last-child { border-bottom: 0; padding-bottom: 0; }
.route-account .acct-session .line-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.route-account .acct-session strong { font-size: 0.85rem; }
.route-account .acct-session .help { overflow-wrap: anywhere; }
.route-account .acct-session-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.route-account .acct-session.is-current .acct-session-dot { background: var(--ok); }
.route-account .acct-card-foot { padding-top: 20px; border-top: 1px solid var(--line); }
.route-account .acct-claim { max-width: 520px; }
.route-account .acct-steps { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.route-account .acct-steps li { display: flex; gap: 12px; align-items: center; color: var(--ink-2); font-size: 0.88rem; }
.route-account .acct-step-no { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); color: var(--gold-ink); font-size: 0.8rem; }
.route-account .acct-mfa-form { max-width: 440px; }
.route-account .secret { max-width: 100%; overflow-wrap: anywhere; }
.route-account .mfa-setup { margin: 18px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; }

@media (max-width: 1100px) {
  .route-account .acct-layout { grid-template-columns: 194px minmax(0, 1fr); gap: 24px; }
  .route-account .acct-hero { flex-wrap: wrap; }
  .route-account .acct-hero-actions { width: 100%; justify-content: flex-start; }
  .route-account .acct-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .route-account { padding-top: 24px; padding-bottom: 36px; }
  .route-account .acct-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .route-account .acct-side { position: static; padding: 14px; }
  .route-account .acct-side-head { display: none; }
  .route-account .acct-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .route-account .acct-nav-group { align-content: start; }
  .route-account .acct-nav-label { margin: 0 8px 3px; font-size: 0.65rem; }
  .route-account .acct-nav a { gap: 7px; padding: 8px; font-size: 0.78rem; }
  .route-account .acct-nav-icon svg { width: 15px; height: 15px; }
}
@media (max-width: 520px) {
  .route-account .acct-side { padding: 12px 8px; border-radius: 16px; }
  .route-account .acct-nav { gap: 2px; }
  .route-account .acct-nav a { gap: 5px; padding: 8px 5px; font-size: 0.73rem; }
  .route-account .acct-nav-label { margin-left: 5px; }
  .route-account .panel { padding: 20px 16px; }
  .route-account .acct-shortcuts { grid-template-columns: minmax(0, 1fr); }
  .route-account .acct-shortcut { min-height: 82px; padding: 16px; }
  .route-account .acct-avatar { width: 52px; height: 52px; border-radius: 16px; }
  .route-account .acct-hero { gap: 12px; }
  .route-account .acct-hero-main h2 { font-size: 0.95rem; }
  .route-account .acct-partner { flex-wrap: wrap; padding: 20px; }
  .route-account .acct-order { padding: 16px; }
  .route-account .acct-order-foot .pill-row { flex-basis: 100%; }
  .route-account .acct-order-price { margin-right: auto; text-align: left; }
  .route-account .acct-session { flex-wrap: wrap; }
  .route-account .acct-mfa .acct-card-head { flex-wrap: wrap; }
  .route-account .acct-filter { gap: 8px; }
  .route-account .acct-filter > .button { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .route-account .acct-shortcut { transition: none; }
}
.route-account .acct-metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.route-account .acct-stat {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px;box-shadow:0 8px 22px -18px #17223b66}
.route-account .acct-stat strong {display:block;margin-top:8px;font-size:20px;line-height:1.4}
.route-account .acct-nav a[aria-current="page"] {color:#0074ed;background:#e6f1ff;box-shadow:inset 3px 0 #0074ed}
@media(max-width:900px){.route-account .acct-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.route-account .acct-stat{padding:14px}.route-account .acct-stat .acct-icon{display:none}}
