/* ../../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: warm gold + deep navy. Contrast pairs checked to WCAG AA (>= 4.5:1 text, >= 3:1 UI). */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --ink: #14213d;
  --ink-2: #4a5470;
  --line: #e3d9c6;
  --gold: #c9973a;
  --gold-soft: #f3e3bd;
  --gold-ink: #835a0f;
  --action: #14213d;
  --action-ink: #ffffff;
  --action-hover: #22355f;
  --promo-gold: #e2b451;
  --promo-gold-ink: #14213d;
  --promo-solid: #14213d;
  --promo-solid-ink: #ffffff;
  --focus: #b07a17;
  --ok: #1d6f47;
  --warn: #8f5300;
  --info: #2b5591;
  --muted: #5d6680;
  --hero-a: rgba(226, 180, 81, 0.42);
  --hero-veil: #f4f7fb;
  --hero-ink-2: #2b5591;
  --hero-media-filter: none;
  --hero-tint: transparent;
  --card-glow: rgba(226, 180, 81, 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: #e2b451;
  --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: #e2b451;
    --gold-soft: #2b2a24;
    --gold-ink: #ecc76f;
    --action: #e2b451;
    --action-ink: #0b1222;
    --action-hover: #efc76e;
    --focus: #ecc76f;
    --ok: #6fd39b;
    --warn: #f2b45a;
    --info: #8fb2ea;
    --muted: #a3abbd;
    --hero-a: rgba(226, 180, 81, 0.24);
    --hero-veil: #0b1222;
    --hero-ink-2: #e2b451;
    --hero-media-filter: brightness(0.78) contrast(1.12);
    --hero-tint: #5f78b4;
    --card-glow: rgba(226, 180, 81, 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: #e2b451;
    --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: #e2b451;
  --gold-soft: #2b2a24;
  --gold-ink: #ecc76f;
  --action: #e2b451;
  --action-ink: #0b1222;
  --action-hover: #efc76e;
  --focus: #ecc76f;
  --ok: #6fd39b;
  --warn: #f2b45a;
  --info: #8fb2ea;
  --muted: #a3abbd;
  --hero-a: rgba(226, 180, 81, 0.24);
  --hero-veil: #0b1222;
  --hero-ink-2: #e2b451;
  --hero-media-filter: brightness(0.78) contrast(1.12);
  --hero-tint: #5f78b4;
  --card-glow: rgba(226, 180, 81, 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: #e2b451;
  --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 */
.container { width: min(100% - clamp(32px, 8vw, 144px), 1440px); margin-inline: auto; }
@media (min-width: 1800px) { .container { width: min(100% - 192px, 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-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-brand .footer-fine { margin-top: 6px; font-size: 0.8rem; opacity: 0.8; }
.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); }

.support-qr-frame { position:relative; width:min(200px,100%); aspect-ratio:1; overflow:hidden; margin:16px auto; border-radius:12px; 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: 8px; align-items: center; font-size: 13px; }
.header-group-number strong { font-family: ui-monospace, monospace; }
#header-support a[href*="t.me/"] { display:flex; justify-content:center; align-items:center; padding:12px; font-size:13px; line-height:1.5 }
#header-support [data-copy-status]:empty { display: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; }

/* Keep the six primary destinations visible until the navigation moves into the menu. */
.header-center .promo .icon { width: 14px; height: 14px; }
.header-tools .lang-menu > summary { gap: 6px; padding-inline: 6px; }
@media (max-width: 1536px) {
  .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; }
}
@media (max-width: 1500px) { html[lang="en"] .header-tools .header-business { display: none; } }
@media (max-width: 1380px) { .header-tools .header-business { display: none; } }
@media (max-width: 1279px) { .header-center { display: none; } .header-tools { gap: 8px; } }
@media (max-width: 600px) {
  .site-header .brand { width: 130px; }
  .header-inner { gap: 4px; }
  .header-tools { gap: 2px; }
  .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 }

/* 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 } }
@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>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 }
}

/* 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(--ink); border-color: var(--ink); }
.button-outline:hover { background: var(--surface-2); border-color: var(--ink); }
.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 whole card is one link. */
.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-link { display: grid; grid-template-rows: auto 1fr; height: 100%; color: inherit; text-decoration: none; }
.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); }
.product-card:hover .cover { transform: scale(1.045); }
.cover-fallback { display: grid; place-items: center; background: linear-gradient(135deg, #14213d, #2a3a63); color: #e2b451; 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-auto, .tag-info { color: #2f6fe0; }
.tag-warn { color: #b7791f; }
.tag-muted { color: var(--ink-2); }
.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; }
.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 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-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) behind CSS fluted glass; 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 { position: absolute; inset: 0; z-index: -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, .hero.is-gl .hero-reeds { opacity: 0; }
.hero-reeds { position: absolute; inset: 0; transition: opacity 0.9s ease; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 62%); mask-image: linear-gradient(90deg, transparent 30%, #000 62%);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 2px, rgba(255, 255, 255, 0.22) 9px, rgba(255, 255, 255, 0.04) 18px, rgba(20, 33, 61, 0.07) 25px, rgba(255, 255, 255, 0) 26px);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.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; }
.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(--action); color: var(--action-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): photo + CSS fluted glass, 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); }
.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; }
.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%); }
  .hero-reeds { -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 70%); mask-image: linear-gradient(90deg, transparent 10%, #000 70%); }
  .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); }
.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-inner { flex-wrap: wrap; }
  .partner-icon { display: none; }
  .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; }
.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 .filter-actions .button { width: 100%; min-height: 42px; font-size: 13px; }
.route-products .catalog-results { min-width: 0; }
.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-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: 1700px) {
  .route-products .product-grid { grid-template-columns: repeat(5, 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 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; }
}

/* 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 .sku-detail { line-height: 1.6; font-size: 11px; overflow-wrap: anywhere; }
.route-product .sku-detail b { font-weight: 500; }
.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 { 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); }
}

/* routes/redeem.css */
/* Redemption workspace and authenticated form. */
.route-redeem { background:var(--surface); color:var(--ink); padding:48px 24px 80px; font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",system-ui,sans-serif }
.route-redeem :is(h1,h2,h3) { font-family:inherit }
.route-redeem .redeem-workspace { max-width:976px; margin:auto }
.route-redeem .redeem-eyebrow { margin:0 0 10px; color:var(--ink-2); font-size:11px; font-weight:600; letter-spacing:.12em }
.route-redeem .redeem-heading h1 { margin:0 0 10px; font-size:30px; line-height:1.3; letter-spacing:-.025em }
.route-redeem .redeem-heading>p:last-child { margin:0; color:var(--ink-2); font-size:14px; line-height:1.8 }
.route-redeem .redeem-pills { display:flex; flex-wrap:wrap; gap:8px; list-style:none; margin:28px 0 24px; padding:0 }
.route-redeem .redeem-pills li { display:flex; align-items:center; gap:8px; min-height:36px; padding:6px 13px 6px 8px; border:1px solid var(--line); border-radius:999px; color:var(--ink-2); font-size:12px }
.route-redeem .redeem-pills li>span { display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--surface-2); font-size:11px; font-weight:650 }
.route-redeem .redeem-pills .is-current { border-color:#0875ed; color:var(--ink) }
.route-redeem .redeem-pills .is-current>span { color:#fff; background:#0875ed }
.route-redeem .redeem-columns { display:grid; grid-template-columns:minmax(0,612fr) minmax(0,340fr); align-items:start; gap:24px }
.route-redeem :is(.redeem-main-card,.redeem-status,.redeem-faq) { min-width:0; padding:24px; border:1px solid var(--line); border-radius:20px; background:var(--surface); box-shadow:0 2px 4px #14213d06,0 8px 22px -20px #14213d33 }
.route-redeem .redeem-field+.redeem-field { margin-top:26px }
.route-redeem .redeem-field label { display:flex; align-items:center; gap:10px; margin-bottom:10px; color:var(--ink); font-size:14px; font-weight:600 }
.route-redeem .redeem-field label>span { display:grid; place-items:center; flex:none; width:22px; height:22px; border-radius:7px; color:#0875ed; background:#e7f1ff; font-size:11px }
.route-redeem :is(input:not([type="checkbox"]),textarea,select) { display:block; box-sizing:border-box; width:100%; max-width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:var(--surface-2); color:var(--ink-2); font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:13px; line-height:1.7; opacity:1 }
.route-redeem textarea { min-height:128px; resize:vertical }
.route-redeem [data-redeem-form]>label:not(.check) { display:grid; gap:8px; min-width:0; font-size:14px; line-height:1.6 }
.route-redeem select { min-height:48px; cursor:pointer; font-family:inherit }
.route-redeem .check { display:flex; align-items:flex-start; gap:10px; font-size:13px; line-height:1.7; cursor:pointer }
.route-redeem .check input { flex:0 0 20px; width:20px; height:20px; padding:0; margin:1px 0 0; cursor:pointer }
.route-redeem .check>span { flex:1; min-width:0; overflow-wrap:anywhere }
.route-redeem [data-redeem-form] .help { margin:0; font-size:12px; line-height:1.7 }
.route-redeem [data-message],.route-redeem [data-history] { overflow-wrap:anywhere }
.route-redeem :is(input,textarea)::placeholder { color:var(--ink-2); opacity:.75 }
.route-redeem .redeem-field>p { margin:8px 0 0; color:var(--ink-2); font-size:12px; line-height:1.7 }
.route-redeem .redeem-disabled-note { margin-bottom:10px; padding:12px 14px; border-radius:12px; background:var(--surface-2); color:var(--ink-2); font-size:12px; line-height:1.8 }
.route-redeem .redeem-safe { display:flex; align-items:flex-start; gap:6px }
.route-redeem .redeem-safe svg { flex:none; margin-top:3px; color:#20956c }
.route-redeem .redeem-card-actions { display:flex; gap:10px; margin-top:26px }
.route-redeem .redeem-confirm { flex:1; min-width:0; min-height:44px; padding:10px 14px; border:0; border-radius:12px; background:#0875ed; color:#fff; font-size:14px; font-weight:500; opacity:.58; cursor:not-allowed }
.route-redeem .redeem-query { display:flex; align-items:center; justify-content:center; padding:10px 15px; border:1px solid var(--line); border-radius:12px; color:var(--ink); font-size:13px; text-decoration:none }
.route-redeem .redeem-query:hover { border-color:#0875ed; color:#0875ed }
.route-redeem .redeem-order-links { display:flex; flex-wrap:wrap; gap:12px 20px; margin-top:16px; font-size:12px }
.route-redeem .redeem-order-links a,.route-redeem .redeem-status>a,.route-redeem .redeem-policy { color:#0875ed; text-decoration:none }
.route-redeem .redeem-order-links a:hover,.route-redeem .redeem-status>a:hover,.route-redeem .redeem-policy:hover { text-decoration:underline }
.route-redeem .redeem-sidebar { display:grid; gap:24px; min-width:0 }
.route-redeem .redeem-sidebar h2 { margin:0 0 16px; color:var(--ink-2); font-size:13px; font-weight:500 }
.route-redeem .redeem-status>p { margin:12px 0; color:var(--ink-2); font-size:12px; line-height:1.8 }
.route-redeem .redeem-status .redeem-status-chip { display:flex; align-items:center; gap:7px; color:var(--ink); font-weight:550 }
.route-redeem .redeem-status-chip>span { width:7px; height:7px; border-radius:50%; background:#d59a35 }
.route-redeem .redeem-status>a { font-size:12px; line-height:1.7 }
.route-redeem .redeem-faq-item { border-top:1px solid var(--line) }
.route-redeem .redeem-faq-item summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:15px 0; list-style:none; color:var(--ink); font-size:12px; line-height:1.6; cursor:pointer }
.route-redeem .redeem-faq-item summary::-webkit-details-marker { display:none }
.route-redeem .redeem-faq-item summary::after { content:'+'; color:var(--ink-2) }
.route-redeem .redeem-faq-item[open] summary::after { content:'−' }
.route-redeem .redeem-faq-item p { margin:0; padding-bottom:16px; color:var(--ink-2); font-size:12px; line-height:1.8 }
.route-redeem .redeem-policy { display:inline-block; margin-top:14px; font-size:12px }
:root[data-theme="dark"] .route-redeem { background:var(--surface-2) }
@media(max-width:700px) {
 .route-redeem { padding:32px 18px 56px }
 .route-redeem .redeem-heading h1 { font-size:26px }
 .route-redeem .redeem-columns { grid-template-columns:minmax(0,1fr) }
 .route-redeem :is(.redeem-main-card,.redeem-status,.redeem-faq) { padding:20px }
 .route-redeem .redeem-pills { gap:6px; margin-top:22px }
 .route-redeem .redeem-pills li { padding-right:10px; font-size:11px }
 .route-redeem .redeem-card-actions { flex-wrap:wrap }
 .route-redeem .redeem-confirm { flex-basis:100% }
 .route-redeem .redeem-query { width:100% }
}

/* routes/cart.css */
/* Route styles for cart (EthanAI-style replica). Scope selectors to this route. */
.route-cart { display: grid; gap: 0; max-width: 1248px; --action: light-dark(#0071e3, #69aeff); --action-ink: light-dark(#fff, #102039); --action-hover: light-dark(#0062c5, #8fc2ff); }
.route-cart .page-head { justify-items: start; text-align: left; margin-bottom: 32px; }
.route-cart .page-head h1 { font: 700 1.9rem/1.3 var(--font-sans); letter-spacing: -0.03em; }
.route-cart .page-head .lead { font-size: 0.9rem; }
.route-cart .steps-bar { flex-wrap: nowrap; align-items: center; gap: 0; margin-bottom: 32px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; 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: 28px; height: 28px; 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 state: centered card with an icon tile, like the reference's empty cart. */
.route-cart .cart-empty { justify-items: center; gap: 16px; padding: 48px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: center; }
.route-cart .cart-empty-icon { display: grid; place-items: center; width: 64px; height: 64px; color: var(--muted); }
.route-cart .cart-empty-icon svg { width: 60px; height: 60px; }
.route-cart .cart-empty h2 { font-size: 1.2rem; }
.route-cart .cart-empty p { margin: 0 0 8px; color: var(--ink-2); }
.route-cart .cart-empty .button { border-radius: 12px; }
.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; }

/* Static purchase-flow card (server-rendered). */
.route-cart .cart-flow { margin-top: 28px; padding: 22px 24px; border: 1px solid color-mix(in srgb, var(--line) 85%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.route-cart .cart-flow h2 { margin: 0 0 16px; font-size: 1.05rem; }
.route-cart .cart-flow-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.route-cart .cart-flow-list li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.route-cart .cart-flow-num { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--gold-ink); font-weight: 700; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.route-cart .cart-flow-list strong { display: block; font-size: 0.95rem; }
.route-cart .cart-flow-list p { margin: 4px 0 0; color: var(--ink-2); font-size: 0.85rem; line-height: 1.6; }
.route-cart .cart-flow-foot { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); color: var(--ink-2); font-size: 0.85rem; }

@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, .route-cart .cart-flow { 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-flow-list { grid-template-columns: minmax(0, 1fr); }
  .route-cart .cart-empty { padding: 40px 18px; }
}

/* routes/checkout.css */
/* Two-column order review, with the payment form in the narrower right column. */
.route-checkout {max-width:1248px;--action:light-dark(#0071e3,#69aeff);--action-ink:light-dark(#fff,#102039);--action-hover:light-dark(#0062c5,#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 {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}

/* routes/pay.css */
/* Route styles for pay (EthanAI-style replica). Scope selectors to this route. */
/* Desktop: payment card left, sticky order summary right. Phones: summary (status, amount, countdown) first. */
.route-pay .page-head { justify-items: center; text-align: center; margin-bottom: 20px; }
.route-pay .page-head h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); letter-spacing: 0.02em; }
.route-pay .page-head .lead { margin-inline: auto; }
.route-pay .steps-bar { justify-content: center; margin-bottom: 32px; }
.route-pay > .actions { justify-content: center; }

.route-pay .pay-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); grid-template-areas: "main side"; gap: 24px; max-width: 1120px; margin-inline: auto; }
.route-pay .pay-side { grid-area: side; position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; min-width: 0; }
.route-pay .pay-main { grid-area: main; display: grid; gap: 20px; min-width: 0; }
.route-pay .panel { padding: 24px; border-radius: var(--radius-l); box-shadow: var(--shadow); }
.route-pay .panel h2 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.01em; }

/* Order summary card */
.route-pay .pay-status-panel { gap: 16px; }
.route-pay .pay-status { align-items: flex-start; gap: 8px 10px; font-size: 0.94rem; color: var(--ink-2); }
.route-pay .pay-summary { display: grid; gap: 14px; padding-block: 16px; border-block: 1px solid var(--line); }
.route-pay .pay-summary > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.route-pay .pay-summary dt { font-weight: 500; }
.route-pay .pay-summary > div:first-child { display: grid; gap: 6px; justify-content: stretch; }
.route-pay .pay-summary > div:first-child .amount { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem); font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.route-pay .countdown { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; padding: 12px 14px; border-radius: var(--radius-m); background: color-mix(in srgb, var(--gold-soft) 55%, var(--surface)); color: var(--ink-2); font-size: 0.9rem; }
.route-pay .countdown strong { font-size: 1.5rem; font-weight: 700; color: var(--gold-ink); }
.route-pay .countdown .help { flex-basis: 100%; font-size: 0.82rem; }
.route-pay .pay-status-panel .notice { margin: 0; }
.route-pay .order-ref { margin: 0; justify-content: space-between; font-size: 0.88rem; }
.route-pay .order-ref .mono { color: var(--ink); font-weight: 600; }

/* Payment card: exact amount, facts and the QR card */
.route-pay .pay-details { grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; row-gap: 18px; align-items: start; }
.route-pay .pay-details > h2, .route-pay .pay-details > .notice, .route-pay .pay-details > .pay-entry:not(.pay-entry-qr) { grid-column: 1 / -1; }
.route-pay .pay-details.is-closed, .route-pay .pay-details[data-method] { grid-template-columns: minmax(0, 1fr); }
.route-pay .pay-facts { gap: 0; }
.route-pay .pay-facts > div { padding-block: 12px; border-top: 1px solid var(--line); }
.route-pay .pay-facts > div:first-child { padding-top: 0; border-top: 0; }
.route-pay .pay-facts dt { font-weight: 500; }
.route-pay .pay-fact-amount { padding-bottom: 16px; }
.route-pay .pay-fact-amount dd .amount { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.route-pay .address { padding: 8px 10px; border-radius: var(--radius-s); background: var(--surface-2); font-size: 0.88rem; line-height: 1.5; }
.route-pay .qr-figure { position: relative; gap: 10px; padding: 18px 18px 14px; border-radius: var(--radius-l); box-shadow: 0 1px 2px rgba(20, 33, 61, 0.06); max-width: 280px; justify-self: center; }
.route-pay .qr-figure figcaption { max-width: 26ch; color: #4a5470; line-height: 1.5; }
.route-pay .qr { width: min(100%, 220px); }

/* EPAY: method accent on the QR card (WeChat green / Alipay blue), centred entry */
.route-pay .pay-details[data-method] .pay-entry { justify-items: center; text-align: center; }
.route-pay .pay-details[data-method] .qr-figure { border-top: 4px solid var(--pay-accent); max-width: 300px; }
.route-pay .pay-details[data-method="wxpay"] { --pay-accent: #07c160; }
.route-pay .pay-details[data-method="alipay"] { --pay-accent: #1677ff; }
.route-pay .pay-details[data-method] .qr-figure figcaption { font-weight: 600; color: #14213d; }
.route-pay .pay-go { width: min(100%, 360px); }
.route-pay .pay-mobile-hint { max-width: 46ch; }

/* Steps */
.route-pay .pay-steps { display: grid; gap: 16px; }
.route-pay .pay-step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.route-pay .pay-step-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.route-pay .pay-step-list strong { display: block; font-size: 0.94rem; line-height: 1.4; }
.route-pay .pay-step-list p { margin: 4px 0 0; line-height: 1.55; }
.route-pay .pay-step-no { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--action); color: var(--action-ink); font-size: 0.86rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.route-pay .pay-warnings, .route-pay .pay-help { display: grid; gap: 12px; box-shadow: none; background: var(--surface-2); }
.route-pay .pay-warnings ul { font-size: 0.92rem; line-height: 1.6; }
.route-pay .pay-help dt { font-weight: 600; }
.route-pay .pay-help dd { margin: 4px 0 0; color: var(--ink-2); font-size: 0.92rem; line-height: 1.6; }
.route-pay .pay-main > [data-show-in] > .help { margin: 0; text-align: center; }

@media (max-width: 1023px) {
  .route-pay .pay-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; max-width: 640px; }
  .route-pay .pay-side { position: static; }
}
@media (max-width: 720px) {
  .route-pay .pay-details { grid-template-columns: minmax(0, 1fr); }
  .route-pay .pay-step-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .route-pay .panel { padding: 18px; }
  .route-pay .steps-bar { margin-bottom: 20px; }
}

/* routes/order.css */
/* Order details keep lifecycle, payment and fulfilment independent. */
.route-order { max-width: 1160px; padding-block: 40px 72px; }
.route-order .order-page-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.route-order .page-head { gap: 10px; margin: 0; }
.route-order .page-head .eyebrow { font-size: 10px; letter-spacing: 0.18em; color: var(--muted); }
.route-order .page-head h1 { font-family: var(--font-sans); font-size: 32px; letter-spacing: -0.04em; font-weight: 700; }
.route-order .page-head .lead { font-size: 13px; color: var(--ink-2); }
.route-order .button { min-height: 42px; border-radius: 999px; font-size: 12px; gap: 10px; }
.route-order .order-page-head > .button { flex-shrink: 0; background: var(--surface); }
.route-order .island { gap: 22px; }
.route-order .order-head { padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); gap: 10px 20px; font-size: 12px; }
.route-order .order-head p:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.route-order .order-head .mono { font-size: 11px; }
.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 .status-grid { gap: 16px; }
.route-order .panel { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--surface); box-shadow: 0 6px 24px -22px rgba(20, 33, 61, 0.2); }
.route-order .panel h2 { font-family: var(--font-sans); font-size: 14px; font-weight: 650; margin-bottom: 16px; letter-spacing: -0.01em; }
.route-order .status-card { position: relative; gap: 12px; padding-top: 24px; overflow: hidden; }
.route-order .status-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: color-mix(in srgb, var(--info) 24%, var(--line)); }
.route-order .status-card:nth-child(2)::before { background: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.route-order .status-card:nth-child(3)::before { background: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.route-order .status-card h2 { font-size: 12px; color: var(--ink-2); margin: 0; }
.route-order .status-card .price { font-size: 25px; font-weight: 650; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: -0.04em; }
.route-order .pill { min-height: 26px; font-size: 11px; padding: 3px 10px; 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 .two-columns h3 { font-size: 12px; margin-block: 22px 10px; }
.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: 12px; }
.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: 10px; }
.route-order .actions { gap: 10px; }
.route-order .actions .text-link { font-size: 12px; margin-inline: 4px; }
.route-order .delivery-item { background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); padding: 18px; font-size: 12px; }
.route-order .code-value { font-size: 12px; overflow-wrap: anywhere; }
.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; }
@media (max-width: 720px) {
  .route-order { padding-block: 28px 48px; }
  .route-order .order-page-head { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 22px; }
  .route-order .page-head h1 { font-size: 28px; }
  .route-order .status-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .route-order .status-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; }
  .route-order .status-card .price, .route-order .status-card .help { grid-column: 1 / -1; }
  .route-order .panel { padding: 20px; }
  .route-order .two-columns { grid-template-columns: minmax(0, 1fr); }
  .route-order .order-head { padding: 16px; }
}

/* 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}}
