/* Garsonista voice PoC.
   The waiter's notepad: ballpoint blue for what the system wrote down, highlighter
   yellow for what it just understood, red pen for what was crossed out.
   Desktop: menu on the left, words + microphone + cart on the right.
   Phone: menu fills the screen, words + microphone + cart live in a bottom sheet. */

:root {
  --paper: #f3f5f2;
  --sheet: #ffffff;
  --ink: #172036;
  --muted: #6b7487;
  --faint: #9aa2b1;
  --pen: #2340d6;
  --pen-soft: #e8ecfd;
  --marker: #ffe45c;
  --pepper: #d93a2b;
  --rule: #e2e6ec;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(23, 32, 54, 0.05), 0 12px 32px -22px rgba(23, 32, 54, 0.28);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: "Commissioner", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sheet-h: 48dvh;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* minmax(0, 1fr) columns: the one-line category tabs must scroll, not widen the page */
.app { height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.menu-dock, .side, .menu-tabs { min-width: 0; }

/* Top bar ------------------------------------------------------------------ */

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; max-width: 1600px; margin: 0 auto; padding: 16px 28px 14px;
}
.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.store { font-size: 18px; font-weight: 740; letter-spacing: -0.01em; }
.sub { font-size: 14px; color: var(--faint); }

.pill {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap;
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--rule); background: var(--sheet);
  font-size: 14px; font-weight: 560; color: var(--muted);
}
.pill:hover { color: var(--ink); border-color: var(--faint); }
.link { border: 0; background: none; padding: 4px 0; color: var(--muted); font-size: 15px; font-weight: 560; cursor: pointer; }
.link:hover { color: var(--ink); }
.link.danger { color: var(--pepper); align-self: flex-start; margin-top: 4px; }

/* Stage: menu | side ------------------------------------------------------- */

.stage {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 1fr); gap: 22px;
  width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 28px 26px; min-height: 0;
}

/* Menu -------------------------------------------------------------------- */

.menu-dock {
  min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  background: var(--sheet); border-radius: var(--radius); box-shadow: var(--shadow);
}
.menu-tabs {
  position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 14px 18px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab {
  flex: none; padding: 7px 14px; border-radius: 999px; border: 0; background: var(--paper);
  font-size: 13.5px; font-weight: 620; color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}
.menu-tab:hover { color: var(--ink); }
.menu-tab[aria-current="true"] { background: var(--ink); color: #fff; }

.menu-list { padding: 2px 18px 28px; }
.menu-section h3 {
  display: flex; align-items: baseline; gap: 8px; margin: 22px 0 12px;
  font-size: 17px; font-weight: 760; letter-spacing: 0.01em;
}
.menu-section h3 span { font-size: 13px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }

.menu-item {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: stretch;
  width: 100%; min-height: 100px; padding: 12px; text-align: left; cursor: pointer;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px;
  transition: border-color 140ms ease, box-shadow 160ms ease, transform 140ms var(--bounce);
}
.menu-item:hover { border-color: var(--faint); box-shadow: 0 8px 20px -14px rgba(23, 32, 54, 0.45); }
.menu-item:active { transform: scale(0.98); }
.menu-item.has-qty { border-color: var(--pen); box-shadow: inset 0 0 0 1px var(--pen); }
.menu-text { display: flex; flex-direction: column; min-width: 0; }
.menu-name { font-size: 15px; font-weight: 620; line-height: 1.3; }
.menu-need { margin-top: 3px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.menu-price { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 620; font-variant-numeric: tabular-nums; }
.menu-pic { position: relative; width: 76px; height: 76px; align-self: center; }
.menu-img { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 12px; background: var(--sheet); }
/* The Garsonista photos have a lot of white around the product: zoom in a little */
.menu-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.menu-add {
  position: absolute; right: -6px; bottom: -6px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sheet); color: var(--pen);
  box-shadow: 0 2px 6px rgba(23, 32, 54, 0.18); font-size: 19px; line-height: 1; font-weight: 500;
}
.menu-item.no-pic .menu-add { position: static; align-self: end; }
.in-cart {
  position: absolute; top: -6px; left: -6px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  display: grid; place-items: center; background: var(--pen); color: #fff;
  font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.menu-item.no-pic .in-cart { top: 10px; left: auto; right: 10px; }

/* Side: voice card + ticket ------------------------------------------------ */

.side { min-height: 0; display: grid; grid-template-rows: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 18px; }
.sheet-handle { display: none; }

.voice-card {
  min-height: 0; display: flex; flex-direction: column;
  background: var(--sheet); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px 16px;
}
.transcript {
  flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22px);
  padding-top: 18px;
}
.history { list-style: none; margin: 0; padding: 0; }
.history li { margin: 0 0 10px; font-size: 17px; line-height: 1.4; color: var(--muted); max-width: 52ch; }
.history li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 9px; border-radius: 50%; background: var(--rule); vertical-align: middle; }

.live {
  margin: 0; font-size: clamp(24px, 2.1vw, 33px); line-height: 1.18; letter-spacing: -0.012em;
  font-weight: 650; max-width: 26ch;
}
.placeholder { font-weight: 300; color: var(--faint); }
.live:not(.empty) .placeholder, .transcript.has-history .live.empty .placeholder { display: none; }
.word.fresh { animation: ink 420ms ease-out; }
@keyframes ink { from { font-weight: 300; color: var(--muted); } to { font-weight: 650; color: var(--ink); } }
.word.hl {
  background-image: linear-gradient(transparent 56%, var(--marker) 56%, var(--marker) 94%, transparent 94%);
  background-repeat: no-repeat; background-size: 0% 100%;
  animation: sweep 360ms ease-out forwards;
}
@keyframes sweep { to { background-size: 100% 100%; } }
.history .word { font-weight: inherit; }
.interim { font-weight: 300; color: var(--muted); white-space: pre-wrap; }

.notes { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.notes li { font-size: 14.5px; color: var(--pepper); }
.notes li.info { color: var(--muted); }

.controls {
  display: flex; align-items: center; gap: 14px;
  margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--rule);
}
.mic {
  position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer; background: var(--pen); color: #fff;
  box-shadow: 0 10px 22px -10px rgba(35, 64, 214, 0.7);
  transition: transform 140ms var(--bounce), background-color 160ms ease;
}
.mic:active { transform: scale(0.94); }
.mic:disabled { background: var(--faint); box-shadow: none; cursor: not-allowed; }
.mic .ring {
  position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--pepper);
  opacity: 0; transform: scale(calc(1 + var(--level, 0) * 1.35)); transition: transform 90ms linear, opacity 160ms ease;
}
.mic svg { position: relative; }
.mic .icon-stop, .mic.listening .icon-mic { display: none; }
.mic.listening .icon-stop { display: block; }
.dock { display: none; }
.mic.listening { background: var(--pepper); box-shadow: 0 10px 22px -10px rgba(217, 58, 43, 0.75); }
.mic.listening .ring { opacity: 0.35; }
.mic.connecting { animation: wait 900ms ease-in-out infinite alternate; }
@keyframes wait { to { transform: scale(0.94); } }
.mic-status { font-size: 15.5px; color: var(--muted); }

/* Ticket -------------------------------------------------------------------- */

.ticket {
  position: relative; min-height: 0; display: flex; flex-direction: column;
  background: var(--sheet); border-radius: var(--radius) var(--radius) 6px 6px; box-shadow: var(--shadow);
  padding: 18px 22px 18px;
}
/* Tear-off edge */
.ticket::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px;
  background: radial-gradient(circle at 8px 0, var(--sheet) 7.5px, transparent 8px) 0 0 / 16px 10px repeat-x;
}
.ticket-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.ticket-head h2 { margin: 0; font-size: 19px; font-weight: 760; letter-spacing: -0.01em; }
.count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ticket-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; margin: 0 -8px; padding: 0 8px; }
.ticket-empty { margin: 16px 0 4px; color: var(--faint); font-size: 15px; }
.ticket-lines { list-style: none; margin: 0; padding: 0; }

.entry {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; column-gap: 8px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px dashed var(--rule); transform-origin: 30% 50%;
}
.qty {
  display: inline-flex; align-items: baseline; height: 1.25em; overflow: hidden;
  font-size: 20px; font-weight: 720; line-height: 1.25; color: var(--pen); font-variant-numeric: tabular-nums;
}
.qty-num { position: relative; display: inline-block; min-width: 0.6em; text-align: right; }
.qty-x { font-size: 0.68em; font-weight: 450; margin-left: 2px; opacity: 0.75; }
.what { display: flex; flex-direction: column; min-width: 0; }
.name { position: relative; font-size: 16px; font-weight: 600; line-height: 1.3; align-self: flex-start; transition: color 200ms ease; }
.opts { font-size: 13.5px; color: var(--muted); }
.price { font-size: 15px; font-weight: 580; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Still being spoken: pencil, not ink yet */
.entry.provisional .name, .entry.provisional .price { color: var(--muted); }
/* A first guess from the fast model, waiting for the accurate one */
.entry.preview { opacity: 0.55; }
.entry.preview .name::after {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 7px; border-radius: 50%;
  background: var(--pen); vertical-align: middle; animation: pulse 900ms ease-in-out infinite alternate;
}
@keyframes pulse { from { opacity: 0.2; } to { opacity: 1; } }

.entry.flash::after {
  content: ""; position: absolute; z-index: -1; inset: 3px -8px; border-radius: 6px;
  background: var(--marker); animation: flash 950ms ease-out forwards;
}
@keyframes flash { 0% { opacity: 0.95; } 55% { opacity: 0.6; } 100% { opacity: 0; } }

.entry.leaving { pointer-events: none; }
.entry.leaving.struck .name::before {
  content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; border-radius: 1px;
  background: var(--pepper); transform-origin: left center; animation: strike 150ms ease-out forwards;
}
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.tools {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; gap: 4px; padding-left: 12px; background: var(--sheet);
  opacity: 0; transition: opacity 120ms ease;
}
.entry:hover .tools, .entry:focus-within .tools { opacity: 1; }
.tools button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rule); background: var(--sheet);
  font-size: 17px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.tools button:hover { border-color: var(--pen); color: var(--pen); }
.tools button[data-act="remove"]:hover { border-color: var(--pepper); color: var(--pepper); }

.entry.ask { grid-template-columns: 42px minmax(0, 1fr); }
/* On a question, the close button sits top right, clear of the choice buttons */
.entry.ask .tools { top: 8px; transform: none; }
.entry.ask .name { padding-right: 40px; }
.entry.ask .name { color: var(--pen); font-weight: 680; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.choice {
  display: inline-flex; align-items: baseline; gap: 6px; cursor: pointer;
  padding: 5px 11px; border-radius: 999px; border: 1.5px solid var(--pen);
  background: var(--sheet); color: var(--pen); font-size: 14px; font-weight: 620;
  transition: background-color 120ms ease, color 120ms ease, transform 120ms var(--bounce);
}
.choice:hover { background: var(--pen); color: #fff; }
.choice:active { transform: scale(0.95); }
.choice-price { font-weight: 450; opacity: 0.75; font-variant-numeric: tabular-nums; }
.choice-price:empty { display: none; }

.ticket-foot { display: flex; align-items: baseline; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--rule); }
.total-label { font-size: 15px; color: var(--muted); }
.total-value { display: inline-block; font-size: 28px; font-weight: 780; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }

/* Settings panel ------------------------------------------------------------ */

.panel {
  margin: 0 0 0 auto; width: min(460px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw;
  padding: 24px 26px 32px; border: 0; background: var(--sheet); color: var(--ink);
  box-shadow: -30px 0 60px -30px rgba(23, 32, 54, 0.35); overflow-y: auto;
}
.panel[open] { animation: slide-in 220ms cubic-bezier(0.2, 0.9, 0.3, 1); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.panel::backdrop { background: rgba(23, 32, 54, 0.25); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.panel-head h2 { margin: 0; font-size: 20px; font-weight: 720; }
.panel-section { display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; }
.panel-section + .panel-section { padding-top: 22px; border-top: 1px solid var(--rule); }
.panel-section h3 { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--muted); line-height: 1.4; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--muted); }
.field select {
  padding: 9px 32px 9px 12px; border: 1px solid var(--rule); border-radius: 9px;
  background: var(--sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7487' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none; font-size: 15px; color: var(--ink);
}
.field select:disabled { color: var(--faint); }
.toggle { display: flex; align-items: center; gap: 9px; font-size: 15px; cursor: pointer; }
.toggle input { accent-color: var(--pen); width: 17px; height: 17px; margin: 0; flex: none; }
.toggle:has(input:disabled) { opacity: 0.45; cursor: default; }
.calls { list-style: none; margin: 0; padding: 0; }
.calls li { padding: 10px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.calls .said { font-size: 15px; font-weight: 560; }
.calls .meta { display: block; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.calls .slow { color: var(--pepper); }
.calls li.err .said { color: var(--pepper); }
.calls pre {
  margin: 8px 0 0; font-size: 11.5px; white-space: pre-wrap; word-break: break-word; cursor: text;
  background: var(--paper); padding: 10px; border-radius: 6px; max-height: 320px; overflow: auto;
}

/* Access code dialog --------------------------------------------------------- */

.code-dialog {
  width: min(380px, calc(100vw - 32px)); padding: 26px 24px 22px; border: 0; border-radius: 20px;
  background: var(--sheet); color: var(--ink); box-shadow: 0 30px 70px -20px rgba(23, 32, 54, 0.45);
}
.code-dialog::backdrop { background: rgba(23, 32, 54, 0.35); }
.code-dialog h2 { margin: 0 0 6px; font-size: 20px; font-weight: 740; }
.code-dialog p { margin: 0 0 14px; font-size: 14.5px; color: var(--muted); }
.code-dialog input {
  width: 100%; padding: 12px 14px; font-size: 17px; letter-spacing: 0.08em;
  border: 1px solid var(--rule); border-radius: 12px; background: var(--paper);
}
.code-dialog .code-error { margin: 8px 0 0; color: var(--pepper); }
.code-dialog button {
  width: 100%; margin-top: 14px; padding: 12px; border: 0; border-radius: 12px;
  background: var(--pen); color: #fff; font-size: 16px; font-weight: 650; cursor: pointer;
}

/* Phone ----------------------------------------------------------------------
   The menu fills the screen. A bar at the bottom holds the microphone (centre,
   thumb reach) and the cart button. The order card floats above the bar: it opens
   by itself when you speak or the cart changes, and the cart button toggles it. */

@media (max-width: 860px) {
  :root { --dock-h: calc(78px + env(safe-area-inset-bottom)); }

  .top { padding: 10px 16px; }
  .sub { display: none; }
  #settingsLabel { display: none; }
  .pill { padding: 8px; }

  .stage { display: block; position: relative; padding: 0; }
  .menu-dock { height: 100%; border-radius: 0; box-shadow: none; padding-bottom: calc(var(--dock-h) + 40px); }
  .menu-tabs { padding: 10px 14px; }
  .menu-list { padding: 2px 14px 20px; }
  .menu-grid { grid-template-columns: 1fr; gap: 8px; }
  .menu-item { min-height: 88px; border-radius: 16px; }
  .menu-pic { width: 68px; height: 68px; }

  /* Order card, floating above the bar */
  .side {
    position: fixed; left: 10px; right: 10px; bottom: calc(var(--dock-h) + 14px); z-index: 5;
    display: flex; flex-direction: column; gap: 0; max-height: min(58dvh, 560px);
    background: var(--sheet); border-radius: 24px;
    box-shadow: 0 2px 6px rgba(23, 32, 54, 0.06), 0 24px 60px -18px rgba(23, 32, 54, 0.45);
    transform: translateY(24px) scale(0.97); transform-origin: 50% 100%; opacity: 0; pointer-events: none;
    transition: transform 320ms var(--bounce), opacity 180ms ease, max-height 300ms cubic-bezier(0.2, 0.9, 0.3, 1);
  }
  .side.open { transform: none; opacity: 1; pointer-events: auto; }
  .side.expanded { max-height: calc(100dvh - var(--dock-h) - 70px); }
  .sheet-handle { display: block; flex: none; height: 20px; border: 0; background: none; cursor: pointer; position: relative; }
  .sheet-handle::before {
    content: ""; position: absolute; left: 50%; top: 8px; width: 38px; height: 4px; margin-left: -19px;
    border-radius: 2px; background: var(--rule);
  }

  .voice-card { flex: none; background: none; box-shadow: none; border-radius: 0; padding: 0 18px 10px; border-bottom: 1px solid var(--rule); }
  .voice-card .controls { display: none; }
  .transcript { max-height: 6.4em; padding-top: 8px; }
  .history li { font-size: 14.5px; margin-bottom: 4px; }
  .history li::before { display: none; }
  .live { font-size: 21px; max-width: none; }

  .ticket { flex: 1 1 auto; min-height: 0; background: none; box-shadow: none; border-radius: 0; padding: 8px 18px 14px; }
  .ticket::after { display: none; }
  .ticket-head { border-bottom-width: 1px; padding-bottom: 6px; }
  .ticket-head h2 { font-size: 16px; }
  .ticket-empty { margin-top: 10px; }
  .total-value { font-size: 22px; }
  .tools { opacity: 1; }
  .entry { grid-template-columns: 36px minmax(0, 1fr) auto; }

  /* Bottom bar */
  .dock {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; height: var(--dock-h);
    padding: 0 16px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--rule); box-shadow: 0 -12px 30px -22px rgba(23, 32, 54, 0.45);
  }
  .dock-status { flex: 1; max-width: calc(50% - 52px); font-size: 13.5px; line-height: 1.3; color: var(--muted); }
  .dock-mic {
    position: absolute; left: 50%; top: -26px; margin-left: -38px; width: 76px; height: 76px;
    border: 5px solid var(--paper);
    box-shadow: 0 14px 28px -12px rgba(35, 64, 214, 0.75);
  }
  .dock-mic.listening { box-shadow: 0 14px 28px -12px rgba(217, 58, 43, 0.75); }
  .dock-mic .ring { inset: -10px; }
  .dock-mic .ring-2 { inset: -10px; transform: scale(calc(1 + var(--level, 0) * 2.4)); }
  .dock-mic.listening .ring-2 { opacity: 0.16; }
  .dock-mic:not(.listening):not(:disabled) .ring { opacity: 0.18; border-color: var(--pen); animation: invite 2.4s ease-out infinite; }
  @keyframes invite { from { transform: scale(0.9); opacity: 0.35; } to { transform: scale(1.35); opacity: 0; } }

  .cart-button {
    flex: none; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px 0 12px;
    border: 1px solid var(--rule); border-radius: 999px; background: var(--sheet); color: var(--muted);
    font-size: 14.5px; font-weight: 650; cursor: pointer; transition: background-color 160ms ease, color 160ms ease;
  }
  .cart-button.has-items { background: var(--ink); border-color: var(--ink); color: #fff; }
  .cart-count {
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
    background: var(--paper); color: var(--ink); font-size: 12.5px; font-variant-numeric: tabular-nums;
  }
  .cart-button.has-items .cart-count { background: var(--marker); }
  .cart-total { font-variant-numeric: tabular-nums; }
}

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