/* Future-state warehouse club concept: design tokens + components. Mobile first. */
:root {
  --red: #D0102E; --red-soft: #FDECEF; --blue: #005DAA; --blue-ink: #00447D; --blue-soft: #E8F1FA;
  --ink: #0F1B2D; --ink-2: #33415A; --muted: #56627A; --line: #DFE4EB; --bg: #F5F6F8; --surface: #FFFFFF; --surface-2: #F0F2F5;
  --green: #17734A; --green-soft: #E5F4EC; --amber: #8A5A00; --amber-soft: #FFF3D6; --gold: #8A6A12; --gold-soft: #FBF3DC;
  --ai: #4B3FD1; --ai-soft: #EFEDFD; --ai-line: #CFC9F7;
  --r-s: 8px; --r-m: 12px; --r-l: 18px; --r-xl: 24px;
  --sh-1: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 3px rgba(15, 27, 45, .08); --sh-2: 0 8px 28px rgba(15, 27, 45, .14);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tab-h: 64px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --red: #FF6B81; --red-soft: #3A1620; --blue: #6CB4F5; --blue-ink: #A9D3FA; --blue-soft: #12283E;
  --ink: #F2F5F9; --ink-2: #D2D9E4; --muted: #A3AFC2; --line: #2B3647; --bg: #0C131D; --surface: #141D2A; --surface-2: #1B2636;
  --green: #5FD39A; --green-soft: #11301F; --amber: #F5C566; --amber-soft: #33270B; --gold: #E6C866; --gold-soft: #2E2710;
  --ai: #A99CFF; --ai-soft: #1E1B3D; --ai-line: #3B3577;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .5); --sh-2: 0 10px 30px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.5 var(--font); color: var(--ink); background: var(--bg); padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.25; letter-spacing: -.01em; font-weight: 750; }
h3 { font-size: 1rem; line-height: 1.3; font-weight: 700; }
a { color: var(--blue); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .xs { font-size: .78rem; } .b { font-weight: 700; } .nowrap { white-space: nowrap; }
.stack { display: grid; gap: 12px; } .stack-l { display: grid; gap: 24px; } .hstack { display: flex; align-items: center; gap: 10px; } .wrapx { flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 16px; }
@media (min-width: 900px) { .wrap { padding: 24px 32px 48px; } body { padding-bottom: 0; } }

/* Concept ribbon: permanent, so nobody mistakes this for a real store */
.ribbon { background: var(--ink); color: #fff; font-size: .78rem; line-height: 1.35; padding: 6px 16px; text-align: center; }
:root[data-theme="dark"] .ribbon { background: #000; }
.ribbon a { color: #fff; font-weight: 600; }

/* Header */
.hdr { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.hdr-in { max-width: 1280px; margin: 0 auto; padding: 10px 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px 12px; align-items: center; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--red); font-weight: 900; font-size: 1.3rem; letter-spacing: -.03em; font-style: italic; }
.brand small { font-style: normal; font-weight: 700; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); border: 1.5px solid var(--blue); border-radius: 999px; padding: 1px 7px; }
.search { grid-column: 1 / -1; display: flex; align-items: center; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 6px 0 14px; min-height: 48px; }
.search:focus-within { border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 3px var(--blue-soft); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; padding: 10px 6px; font-size: 1rem; }
.search input::placeholder { color: var(--muted); }
.icon-btn { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border: 0; background: none; border-radius: 999px; position: relative; text-decoration: none; color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
.search .go { background: var(--blue); color: #fff; width: 40px; min-width: 40px; height: 40px; }
:root[data-theme="dark"] .search .go, :root[data-theme="dark"] .btn-p { color: #06223C; }
.hdr-actions { display: flex; align-items: center; gap: 2px; justify-self: end; }
.cart-btn { gap: 6px; display: inline-flex; align-items: center; padding: 0 12px 0 8px; font-weight: 700; }
.badge { background: var(--red); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; font-size: .72rem; font-weight: 800; display: inline-grid; place-items: center; padding: 0 5px; }
:root[data-theme="dark"] .badge { color: #2A0710; }
@media (max-width: 899px) { .hide-m { display: none !important; } .hdr-actions { grid-row: 1; grid-column: 3; } .search { grid-row: 2; } }
h1:focus { outline: none; }
.card.stack, .ai-card.stack { align-content: start; }
.note { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: var(--r-m); font-size: .86rem; margin-top: 12px; } .note.amber { background: var(--amber-soft); color: var(--amber); } .note.green { background: var(--green-soft); color: var(--green); }
@media (min-width: 900px) {
  .hdr-in { grid-template-columns: auto minmax(280px, 1fr) auto; padding: 12px 32px; gap: 24px; }
  .search { grid-column: auto; } .hide-d { display: none !important; }
  .brand { font-size: 1.6rem; }
}
.ctx { background: var(--surface); border-bottom: 1px solid var(--line); }
.ctx-in { max-width: 1280px; margin: 0 auto; padding: 8px 16px; display: flex; gap: 10px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.ctx-in::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .ctx-in { padding: 8px 32px; } }
.pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: .86rem; font-weight: 600; min-height: 36px; text-decoration: none; color: var(--ink); }
.pill.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.pill.gold { background: var(--gold-soft); border-color: transparent; color: var(--gold); }
.depts { display: none; }
@media (min-width: 900px) { .depts { display: flex; gap: 4px; max-width: 1280px; margin: 0 auto; padding: 0 24px; } .depts a { white-space: nowrap; padding: 10px 10px; font-size: .9rem; font-weight: 600; color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; } .depts a:hover, .depts a[aria-current] { color: var(--blue); border-color: var(--blue); } }

/* Bottom tab bar (phones and small tablets) */
.tabbar { position: fixed; inset: auto 0 0 0; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); z-index: 40; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
.tabbar a, .tabbar button { display: grid; place-items: center; align-content: center; gap: 2px; font-size: .7rem; font-weight: 600; color: var(--muted); text-decoration: none; border: 0; background: none; min-height: var(--tab-h); }
.tabbar svg { width: 24px; height: 24px; }
.tabbar [aria-current="page"] { color: var(--blue); }
.tabbar .ask span:first-child { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--ai); color: #fff; margin-top: -18px; box-shadow: var(--sh-2); }
:root[data-theme="dark"] .tabbar .ask span:first-child { color: #15103F; }
@media (min-width: 900px) { .tabbar { display: none; } }

/* Buttons, chips, form bits */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; text-decoration: none; line-height: 1.2; text-align: center; }
.btn-p { background: var(--blue); color: #fff; } .btn-p:hover { background: var(--blue-ink); }
.btn-s { background: var(--surface); border-color: var(--line); color: var(--ink); } .btn-s:hover { border-color: var(--ink-2); }
.btn-g { background: none; color: var(--blue); padding-inline: 10px; }
.btn-ai { background: var(--ai); color: #fff; } :root[data-theme="dark"] .btn-ai { color: #15103F; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .88rem; } .btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: .86rem; font-weight: 600; min-height: 36px; white-space: nowrap; }
.chip[aria-pressed="true"], .chip.on { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-ink); }
.chip.ai { border-color: var(--ai-line); background: var(--ai-soft); color: var(--ai); white-space: normal; text-align: left; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; } .chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; } .chips.scroll::-webkit-scrollbar { display: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); letter-spacing: .01em; }
.tag.red { background: var(--red-soft); color: var(--red); } .tag.green { background: var(--green-soft); color: var(--green); } .tag.amber { background: var(--amber-soft); color: var(--amber); } .tag.ai { background: var(--ai-soft); color: var(--ai); } .tag.gold { background: var(--gold-soft); color: var(--gold); } .tag.line { background: none; border: 1px solid var(--line); color: var(--muted); }
select, .input { min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--surface); padding: 8px 12px; width: 100%; }
label.field { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; }
@media (min-width: 900px) { .card { padding: 20px; } }
.card.flat { box-shadow: none; } .card.pad0 { padding: 0; overflow: hidden; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* AI surfaces share one look so people learn to recognise machine-written content */
.ai-card { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--ai), var(--blue)) border-box; border: 1.5px solid transparent; border-radius: var(--r-l); padding: 16px; }
.ai-h { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ai); font-size: .86rem; }
.spark { width: 18px; height: 18px; flex: none; }
details.how { border-top: 1px dashed var(--line); padding-top: 10px; font-size: .86rem; }
details.how summary { cursor: pointer; font-weight: 600; color: var(--ink-2); min-height: 32px; display: flex; align-items: center; gap: 6px; }
.fb { display: flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--muted); }
.fb button { border: 0; background: none; min-width: 36px; height: 36px; border-radius: 999px; } .fb button:hover, .fb button[aria-pressed="true"] { background: var(--surface-2); }

/* Product art */
.art { aspect-ratio: 1; border-radius: var(--r-m); overflow: hidden; display: grid; place-items: center; width: 100%; }
.art svg { width: 100%; height: 100%; }
.art.emoji { font-size: clamp(2.6rem, 14cqw, 6rem); line-height: 1; container-type: inline-size; }
.art.emoji span { font-size: 44cqw; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .14)); }
.art-s { width: 64px; flex: none; } .art-xs { width: 44px; flex: none; }

/* Product grid and card */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; } .rail > * { scroll-snap-align: start; }
@media (min-width: 600px) { .rail { grid-auto-columns: 30%; } }
@media (min-width: 900px) { .rail { grid-auto-columns: calc((100% - 48px) / 5); margin-inline: 0; padding-inline: 0; } }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 10px; display: flex; flex-direction: column; gap: 8px; position: relative; min-width: 0; }
.pcard a.t { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard a.t::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-l); }
.pcard { transition: box-shadow .15s, transform .15s; }
.pcard:hover { box-shadow: var(--sh-2); border-color: transparent; transform: translateY(-2px); }
.pcard .add { position: relative; z-index: 2; margin-top: auto; }
.pcard .flags { position: absolute; left: 16px; top: 16px; display: flex; gap: 4px; flex-wrap: wrap; z-index: 1; }
.price { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; } .price sup { font-size: .6em; top: -.5em; }
.was { text-decoration: line-through; color: var(--muted); font-weight: 500; font-size: .85rem; }
.stars { color: #8A5A00; font-size: .82rem; white-space: nowrap; } :root[data-theme="dark"] .stars { color: #F1C56B; }
.modes { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper { display: inline-grid; grid-template-columns: 40px minmax(28px, auto) 40px; align-items: center; border: 1.5px solid var(--blue); border-radius: 999px; overflow: hidden; background: var(--surface); width: 100%; }
.stepper button { border: 0; background: none; height: 40px; font-size: 1.2rem; font-weight: 700; color: var(--blue); }
.stepper button:hover { background: var(--blue-soft); } .stepper output { text-align: center; font-weight: 700; }
.stepper.inline { width: auto; }

/* Home */
.hero { background: linear-gradient(135deg, #00447D, #005DAA 55%, #2B7FC9); color: #fff; border-radius: var(--r-xl); padding: 20px; display: grid; gap: 14px; }
.hero h1 { color: #fff; } .hero p { color: #DCEBFA; }
.ask-box { background: #fff; color: #0F1B2D; border-radius: var(--r-l); padding: 6px 6px 6px 14px; display: flex; align-items: center; gap: 8px; min-height: 56px; border: 0; width: 100%; text-align: left; font-size: 1rem; }
.ask-box span.grow { color: #56627A; }
.hero .chip { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; white-space: normal; text-align: left; }
@media (min-width: 900px) { .hero { padding: 36px 40px; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px; } }
.two { display: grid; gap: 16px; } @media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; } .two.wide-l { grid-template-columns: 1.6fr 1fr; } }
.three { display: grid; gap: 12px; } @media (min-width: 700px) { .three { grid-template-columns: repeat(3, 1fr); } }
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } @media (min-width: 700px) { .dept-grid { grid-template-columns: repeat(5, 1fr); } } @media (min-width: 1100px) { .dept-grid { grid-template-columns: repeat(10, 1fr); } }
.dept { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-size: .78rem; font-weight: 600; text-align: center; }
.dept span:first-child { width: 100%; aspect-ratio: 1; border-radius: var(--r-l); display: grid; place-items: center; font-size: 2rem; }
.meter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; } .meter i { display: block; height: 100%; border-radius: 999px; background: var(--blue); } .meter.low i { background: var(--red); } .meter.ok i { background: var(--green); } .meter.gold i { background: #C79A1E; }
.low-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; } .low-item + .low-item { border-top: 1px solid var(--line); }
.stat { display: grid; gap: 2px; } .stat b { font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.1; }

/* Search */
.layout { display: grid; gap: 20px; } @media (min-width: 900px) { .layout { grid-template-columns: 250px 1fr; align-items: start; } }
.filters { display: none; } @media (min-width: 900px) { .filters { display: grid; gap: 18px; position: sticky; top: 150px; } }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; } .filters legend { font-weight: 700; padding: 0; margin-bottom: 6px; font-size: .92rem; }
.check { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: .92rem; } .check input { width: 20px; height: 20px; accent-color: var(--blue); }
.understood { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.x { border: 0; background: none; padding: 0; width: 20px; height: 20px; border-radius: 999px; display: inline-grid; place-items: center; font-weight: 800; color: inherit; }

/* Product page */
.pdp { display: grid; gap: 20px; } @media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; } .pdp .gallery { position: sticky; top: 150px; } }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; background: var(--surface); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); } .opt input { width: 20px; height: 20px; accent-color: var(--blue); }
.opt.off { opacity: .55; cursor: not-allowed; }
.kv { width: 100%; border-collapse: collapse; font-size: .92rem; } .kv th, .kv td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; } .kv th { color: var(--muted); font-weight: 600; width: 34%; }
.pros { display: grid; gap: 8px; } @media (min-width: 600px) { .pros { grid-template-columns: 1fr 1fr; gap: 16px; } }
.pros li { display: flex; justify-content: space-between; gap: 8px; font-size: .92rem; padding: 4px 0; } .pros ul { list-style: none; padding: 0; margin: 6px 0 0; }
.buybar { position: fixed; inset: auto 0 calc(var(--tab-h) + env(safe-area-inset-bottom)) 0; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 12px; align-items: center; z-index: 35; }
@media (min-width: 900px) { .buybar { display: none; } }

/* Cart and checkout */
.line { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; } .line + .line { border-top: 1px solid var(--line); }
.line .ctl { grid-column: 2; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .line select { width: auto; min-height: 40px; padding: 6px 10px; font-size: .88rem; }
.group-h { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; } .sum-row.total { font-weight: 800; font-size: 1.2rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.sticky-d { position: static; } @media (min-width: 900px) { .sticky-d { position: sticky; top: 150px; } }
.nudge { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-m); background: var(--ai-soft); }
.step-n { width: 28px; height: 28px; border-radius: 999px; background: var(--ink); color: var(--surface); display: inline-grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } @media (min-width: 600px) { .slots { grid-template-columns: repeat(3, 1fr); } }
.slot { border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 10px; background: var(--surface); text-align: left; display: grid; gap: 2px; min-height: 64px; } .slot[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; } .timeline li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding-bottom: 16px; position: relative; }
.timeline li::before { content: ''; width: 14px; height: 14px; border-radius: 999px; border: 3px solid var(--line); background: var(--surface); margin: 3px 5px; z-index: 1; } .timeline li.done::before { border-color: var(--green); background: var(--green); } .timeline li.now::before { border-color: var(--blue); }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: 11px; top: 18px; bottom: 0; width: 2px; background: var(--line); } .timeline li.done:not(:last-child)::after { background: var(--green); }

/* Warehouse mode */
.mcard { background: linear-gradient(135deg, #111827, #1F2A44); color: #fff; border-radius: var(--r-xl); padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.mcard .tier { color: #F2D27A; font-weight: 800; letter-spacing: .08em; font-size: .78rem; text-transform: uppercase; }
.qr { width: 104px; height: 104px; background: #fff; border-radius: 12px; padding: 8px; } .qr.big { width: 180px; height: 180px; margin: 0 auto; }
.route li { display: grid; grid-template-columns: auto 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); } .route { list-style: none; margin: 0; padding: 0; } .route input { width: 22px; height: 22px; accent-color: var(--green); }
.aisle { font-weight: 800; font-size: .8rem; background: var(--ink); color: var(--surface); border-radius: 8px; padding: 6px 4px; text-align: center; }

/* Assistant drawer + sheets */
.scrim { position: fixed; inset: 0; background: rgba(8, 14, 24, .5); z-index: 50; }
.drawer { position: fixed; z-index: 60; background: var(--surface); display: grid; grid-template-rows: auto 1fr auto; inset: 0; }
@media (min-width: 700px) { .drawer { inset: 0 0 0 auto; width: 460px; box-shadow: var(--sh-2); border-left: 1px solid var(--line); } }
.drawer-h { padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.thread { overflow-y: auto; padding: 16px; display: grid; gap: 14px; align-content: start; overscroll-behavior: contain; }
.msg-u { justify-self: end; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 18px 18px 4px 18px; max-width: 85%; } :root[data-theme="dark"] .msg-u { color: #06223C; }
.msg-a { display: grid; gap: 10px; max-width: 100%; }
.composer { border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: grid; gap: 6px; }
.composer form { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border-radius: 999px; padding: 4px 4px 4px 14px; border: 1.5px solid var(--line); } .composer form:focus-within { border-color: var(--ai); }
.composer input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; min-height: 40px; }
.plan-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; } .plan-item + .plan-item { border-top: 1px solid var(--line); }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--surface-2); border-radius: 18px; width: max-content; } .typing i { width: 7px; height: 7px; border-radius: 999px; background: var(--muted); animation: blink 1s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.sheet { position: fixed; z-index: 70; background: var(--surface); inset: auto 0 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92dvh; overflow-y: auto; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--sh-2); }
@media (min-width: 700px) { .sheet { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(560px, 92vw); border-radius: var(--r-xl); padding: 28px; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--surface); padding: 10px 10px 10px 16px; border-radius: 999px; display: flex; gap: 10px; align-items: center; z-index: 80; box-shadow: var(--sh-2); font-size: .92rem; max-width: calc(100vw - 24px); }
.toast button { border: 0; background: rgba(127, 127, 127, .3); color: inherit; border-radius: 999px; min-height: 32px; padding: 4px 12px; font-weight: 700; }
@media (min-width: 900px) { .toast { bottom: 24px; } }
.switch { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 0; } .switch + .switch { border-top: 1px solid var(--line); }
.switch input { appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--muted); position: relative; cursor: pointer; margin: 0; } .switch input::after { content: ''; position: absolute; width: 22px; height: 22px; border-radius: 999px; background: #fff; top: 3px; left: 3px; transition: left .15s; } .switch input:checked { background: var(--green); } .switch input:checked::after { left: 23px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: .84rem; } table.cmp th, table.cmp td { padding: 8px 6px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; } table.cmp thead th { border: 0; font-size: .8rem; }
.foot { max-width: 1280px; margin: 0 auto; padding: 24px 16px 32px; color: var(--muted); font-size: .84rem; display: grid; gap: 8px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
