/* ============================================================================
   Tafel · components.css — every shared component, on every surface.
   Controls are ≥ 44px tall. Status is icon + text + colour, never colour alone.
   ========================================================================= */

/* --- icons ---------------------------------------------------------------- */
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.ico-sm { width: 16px; height: 16px; } .ico-xs { width: 14px; height: 14px; } .ico-lg { width: 24px; height: 24px; } .ico-xl { width: 32px; height: 32px; }
.ico-fill { fill: currentColor; stroke: none; }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--control-h); padding: 0 var(--s-5);
  border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: var(--t-15); line-height: 1; white-space: nowrap;
  cursor: pointer; user-select: none; text-decoration: none;
  transition: background var(--d-micro) var(--ease-out), border-color var(--d-micro) var(--ease-out), color var(--d-micro) var(--ease-out), transform var(--d-press) var(--ease-out), box-shadow var(--d-micro);
}
.btn:hover { background: var(--surface-2); border-color: var(--line-control); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--paprika); border-color: var(--paprika); color: var(--on-paprika); }
.btn-primary:hover { background: var(--paprika-press); border-color: var(--paprika-press); }
.btn-ink { background: var(--chrome); border-color: var(--chrome); color: var(--chrome-ink); }
.btn-ink:hover { background: var(--chrome-2); border-color: var(--chrome-2); }
.btn-basil { background: var(--basil); border-color: var(--basil); color: #fff; }
.btn-basil:hover { background: var(--basil-ink); }
.btn-danger { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger-ink); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-soft { background: var(--paprika-soft); border-color: transparent; color: var(--paprika-ink); }
.btn-soft:hover { background: var(--paprika-line); }
.btn-ghost, .btn-quiet { background: transparent; border-color: transparent; }
.btn-ghost:hover, .btn-quiet:hover { background: var(--surface-2); border-color: transparent; }
.btn-sm { min-height: var(--control-h-sm); padding: 0 var(--s-3); font-size: var(--t-13); border-radius: var(--r-sm); }
.btn-sm .ico { width: 16px; height: 16px; }
.btn-lg { min-height: var(--control-h-lg); padding: 0 var(--s-6); font-size: var(--t-16); border-radius: var(--r-lg); }
.btn-block { width: 100%; }
.btn-pill { border-radius: var(--r-full); }
.btn-icon { width: var(--control-h); padding: 0; }
.btn-icon.btn-sm { width: var(--control-h-sm); }
.btn-apple { background: #000; border-color: #000; color: #fff; }
.btn-google { background: #fff; border-color: var(--line-strong); color: #1C1A17; }
.btn-klarna { background: #FFB3C7; border-color: #FFB3C7; color: #17120F; }
.link { color: var(--paprika-ink); font-weight: 600; cursor: pointer; background: none; border: 0; padding: 0; font-size: inherit; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-quiet { color: var(--ink-2); font-weight: 500; }

/* --- chips / badges -------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 10px; border-radius: var(--r-full);
  font-size: var(--t-12); font-weight: 600; line-height: 1; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.chip .ico { width: 13px; height: 13px; }
.chip-sm { height: 22px; padding: 0 8px; font-size: var(--t-11); }
.chip-lg { height: 32px; padding: 0 14px; font-size: var(--t-13); }
.chip-new       { background: var(--st-new-soft);       color: var(--st-new-ink);       border-color: var(--st-new-line); }
.chip-accepted  { background: var(--st-accepted-soft);  color: var(--st-accepted-ink);  border-color: var(--st-accepted-line); }
.chip-preparing { background: var(--st-preparing-soft); color: var(--st-preparing-ink); border-color: var(--st-preparing-line); }
.chip-ready     { background: var(--st-ready-soft);     color: var(--st-ready-ink);     border-color: var(--st-ready-line); }
.chip-out       { background: var(--st-out-soft);       color: var(--st-out-ink);       border-color: var(--st-out-line); }
.chip-done      { background: var(--st-done-soft);      color: var(--st-done-ink);      border-color: var(--st-done-line); }
.chip-cancelled { background: var(--st-cancelled-soft); color: var(--st-cancelled-ink); border-color: var(--st-cancelled-line); }
.chip-paprika { background: var(--paprika-soft); color: var(--paprika-ink); border-color: var(--paprika-line); }
.chip-basil { background: var(--basil-soft); color: var(--basil-ink); border-color: var(--basil-line); }
.chip-saffron { background: var(--saffron-soft); color: var(--saffron-ink); border-color: var(--saffron-line); }
.chip-plum { background: var(--plum-soft); color: var(--plum-ink); border-color: var(--plum-line); }
.chip-info { background: var(--info-soft); color: var(--info-ink); border-color: var(--info-line); }
.chip-danger { background: var(--danger-soft); color: var(--danger-ink); border-color: var(--danger-line); }
.chip-ink { background: var(--chrome); color: var(--chrome-ink); border-color: var(--chrome); }
.chip-solid { background: var(--paprika); color: var(--on-paprika); border-color: var(--paprika); }
.chip-outline { background: transparent; }
.chip-select { cursor: pointer; height: 36px; padding: 0 14px; font-size: var(--t-13); font-weight: 500; background: var(--surface); }
.chip-select:hover { border-color: var(--line-control); }
.chip-select[aria-pressed="true"], .chip-select.is-on { background: var(--chrome); color: var(--chrome-ink); border-color: var(--chrome); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dot-live { animation: tf-pulse 1.4s ease-in-out infinite; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-full); background: var(--paprika); color: var(--on-paprika); font-size: var(--t-11); font-weight: 700; }
.tag-module { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; background: var(--plum-soft); color: var(--plum-ink); font-family: var(--font-mono); font-size: 10px; font-weight: 500; border: 1px solid var(--plum-line); }

/* --- cards / panels -------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--e-1); }
.card-pad { padding: var(--card-pad); }
.card-hover { transition: box-shadow var(--d-micro), border-color var(--d-micro), transform var(--d-micro); cursor: pointer; }
.card-hover:hover { box-shadow: var(--e-2); border-color: var(--line-strong); }
.card-flat { box-shadow: none; }
.card-sunk { background: var(--surface-2); border-color: transparent; box-shadow: none; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.panel-title { font-weight: 600; font-size: var(--t-15); }
.panel-body { padding: var(--s-5); }
.panel-body.flush { padding: 0; }
.panel-foot { padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); background: var(--surface-2); }
.callout { display: flex; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); font-size: var(--t-13); line-height: 1.45; }
.callout .ico { width: 18px; height: 18px; margin-top: 1px; }
.callout-title { display: block; font-weight: 600; margin-bottom: 2px; }
.callout-paprika { background: var(--paprika-soft); border-color: var(--paprika-line); color: var(--paprika-ink); }
.callout-basil { background: var(--basil-soft); border-color: var(--basil-line); color: var(--basil-ink); }
.callout-saffron { background: var(--saffron-soft); border-color: var(--saffron-line); color: var(--saffron-ink); }
.callout-info { background: var(--info-soft); border-color: var(--info-line); color: var(--info-ink); }
.callout-plum { background: var(--plum-soft); border-color: var(--plum-line); color: var(--plum-ink); }
.callout-danger { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger-ink); }

/* --- KPI ------------------------------------------------------------------- */
.kpi { padding: var(--s-4) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.kpi-label { font-size: var(--t-12); font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.kpi-value { font-family: var(--font-display); font-size: var(--t-32); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin-top: var(--s-1); font-variant-numeric: tabular-nums; font-variation-settings: 'opsz' 48, 'SOFT' 40; }
.kpi-delta { font-size: var(--t-12); font-weight: 600; margin-top: var(--s-1); display: inline-flex; align-items: center; gap: 3px; }
.kpi-delta.up { color: var(--basil-ink); } .kpi-delta.down { color: var(--danger-ink); }

/* --- forms ----------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: var(--t-13); font-weight: 600; color: var(--ink-2); }
.label .req { color: var(--paprika-ink); }
.help { font-size: var(--t-12); color: var(--ink-3); }
.err { font-size: var(--t-12); color: var(--danger-ink); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-height: var(--control-h); padding: 0 var(--s-4);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); font-size: var(--t-15);
  transition: border-color var(--d-micro), box-shadow var(--d-micro), background var(--d-micro);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-control); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--paprika); box-shadow: 0 0 0 3px var(--paprika-soft); }
.input.is-err { border-color: var(--danger); }
.input-sm { min-height: var(--control-h-sm); font-size: var(--t-14); padding: 0 var(--s-3); }
.textarea { padding: var(--s-3) var(--s-4); min-height: 96px; line-height: 1.5; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B655C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input-wrap { position: relative; display: block; }
.input-wrap .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.input-wrap .trail .ico, .input-wrap .trail svg { position: static; transform: none; pointer-events: auto; }
.input-wrap > .input { padding-left: 44px; }
/* Chrome draws its own clear button on type=search, which doubled ours. */
.input[type="search"]::-webkit-search-cancel-button, .input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.input-wrap > .trail { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.search { border-radius: var(--r-full); background: var(--surface); }
.check { display: flex; align-items: flex-start; gap: var(--s-3); cursor: pointer; font-size: var(--t-14); line-height: 1.4; }
.check input { appearance: none; width: 22px; height: 22px; flex: none; margin-top: 1px; border: 1.5px solid var(--line-control); border-radius: 6px; background: var(--surface); display: grid; place-content: center; transition: background var(--d-micro), border-color var(--d-micro); }
.check input[type="radio"] { border-radius: 50%; }
.check input::before { content: ''; width: 12px; height: 12px; transform: scale(0); transition: transform var(--d-micro) var(--ease-spring); background: var(--on-paprika); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.check input[type="radio"]::before { clip-path: none; border-radius: 50%; width: 10px; height: 10px; }
.check input:checked { background: var(--paprika); border-color: var(--paprika); }
.check input:checked::before { transform: scale(1); }
.check input:focus-visible { box-shadow: var(--focus-ring); }
.toggle { position: relative; display: inline-flex; align-items: center; width: 50px; height: 30px; flex: none; border-radius: var(--r-full); background: var(--line-strong); transition: background var(--d-micro); cursor: pointer; border: 0; }
.toggle::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform var(--d-micro) var(--ease-spring); }
.toggle[aria-checked="true"] { background: var(--basil); }
.toggle[aria-checked="true"]::after { transform: translateX(20px); }
.toggle.toggle-paprika[aria-checked="true"] { background: var(--paprika); }
.toggle:focus-visible { box-shadow: var(--focus-ring); }
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: var(--r-full); border: 1px solid var(--line); }
.seg button, .seg a { min-height: 36px; padding: 0 var(--s-4); border-radius: var(--r-full); font-size: var(--t-13); font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; transition: background var(--d-micro), color var(--d-micro), box-shadow var(--d-micro); }
.seg [aria-pressed="true"], .seg [aria-current="true"], .seg .is-on { background: var(--surface); color: var(--ink); box-shadow: var(--e-1); }
.seg-block { display: flex; width: 100%; } .seg-block > * { flex: 1; justify-content: center; }
.stepper-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--surface); }
.stepper-qty button { width: 40px; height: 40px; display: grid; place-content: center; color: var(--ink-2); border-radius: 50%; }
.stepper-qty button:hover { background: var(--surface-2); }
.stepper-qty output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.range { appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--paprika) var(--pct, 40%), var(--line) var(--pct, 40%)); outline: none; }
.range::-webkit-slider-thumb { appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--paprika); box-shadow: var(--e-2); cursor: grab; }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--paprika); box-shadow: var(--e-2); cursor: grab; }
.otp { display: flex; gap: var(--s-2); }
.otp input { width: 48px; height: 56px; text-align: center; font-size: var(--t-24); font-weight: 600; font-family: var(--font-mono); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); }
.otp input:focus { outline: none; border-color: var(--paprika); box-shadow: 0 0 0 3px var(--paprika-soft); }

/* --- tabs ---------------------------------------------------------------- */
.tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; min-height: 44px; padding: 0 var(--s-3); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--t-14); color: var(--ink-3); white-space: nowrap; cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"], .tab.is-on { color: var(--ink); }
.tab[aria-selected="true"]::after, .tab.is-on::after { content: ''; position: absolute; left: var(--s-3); right: var(--s-3); bottom: -1px; height: 2px; background: var(--paprika); border-radius: 1px; }
.tab .count { background: var(--surface-2); color: var(--ink-2); }
.tab[aria-selected="true"] .count { background: var(--paprika); color: var(--on-paprika); }
.pills { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pills::-webkit-scrollbar { display: none; }

/* --- lists / rows -------------------------------------------------------- */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: var(--s-3); min-height: var(--row-h); padding: var(--s-3) 0; border-bottom: 1px solid var(--line-faint); }
.list-row:last-child { border-bottom: 0; }
.list-row.pad { padding-left: var(--s-4); padding-right: var(--s-4); }
.list-row.link { cursor: pointer; }
.list-row.link:hover { background: var(--surface-2); }
.list-row .ico.chev { color: var(--ink-4); margin-left: auto; }
.list-title { font-weight: 600; font-size: var(--t-15); }
.list-sub { font-size: var(--t-13); color: var(--ink-3); margin-top: 1px; }
.menu-row { display: flex; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line-faint); cursor: pointer; align-items: flex-start; }
.menu-row:last-child { border-bottom: 0; }
.menu-row:hover .menu-name { color: var(--paprika-ink); }
.menu-text { flex: 1; min-width: 0; }
.menu-name { font-weight: 600; font-size: var(--t-16); line-height: 1.3; }
.menu-desc { font-size: var(--t-13); color: var(--ink-3); margin-top: 3px; line-height: 1.45; }
.menu-foot { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-2); flex-wrap: wrap; }
.menu-price { font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--t-15); }
.menu-row .food { margin-left: auto; }
.menu-row.is-off { opacity: .55; }
.menu-row.is-off .menu-name { text-decoration: line-through; }

/* --- avatars / food tiles / images --------------------------------------- */
.avatar { display: inline-grid; place-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tint-butter); color: var(--ink); font-weight: 700; font-size: var(--t-14); flex: none; letter-spacing: .02em; }
.avatar-sm { width: 30px; height: 30px; font-size: var(--t-12); } .avatar-lg { width: 56px; height: 56px; font-size: var(--t-18); }

/* The tile is a photograph on a tinted ground. The glyph sits underneath, so a
   missing or still-loading image leaves a designed tile, never a grey box. */
.food { position: relative; display: grid; place-content: center; width: 88px; height: 88px; border-radius: var(--r-md); background: var(--tint, var(--tint-butter)); color: var(--ink); flex: none; overflow: hidden; }
.food .glyph { width: 50px; height: 50px; opacity: .55; }
.food > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.food.has-img { background: var(--surface-2); }
.food-sm { width: 56px; height: 56px; border-radius: var(--r-sm); }
.food-sm .glyph { width: 32px; height: 32px; }
.food-xs { width: 40px; height: 40px; border-radius: var(--r-xs); }
.food-xs .glyph { width: 22px; height: 22px; }
.food-lg { width: 100%; height: 160px; border-radius: var(--r-lg); }
.food-hero { width: 100%; height: 220px; border-radius: 0; }
.food-hero .glyph, .food-lg .glyph { width: 96px; height: 96px; }
.tint-tomato { --tint: var(--tint-tomato); } .tint-butter { --tint: var(--tint-butter); } .tint-basil { --tint: var(--tint-basil); } .tint-sky { --tint: var(--tint-sky); }
.tint-lilac { --tint: var(--tint-lilac); } .tint-sand { --tint: var(--tint-sand); } .tint-mint { --tint: var(--tint-mint); } .tint-rose { --tint: var(--tint-rose); }
[data-surface="kitchen"] .food { color: #1C1A17; }

/* --- restaurant card ------------------------------------------------------ */
/* Fixed vertical rhythm: shot, then three single-line rows. Names and facts
   never wrap, so a row of cards lines up regardless of how long the German is. */
.rcard { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow var(--d-micro), transform var(--d-micro), border-color var(--d-micro); cursor: pointer; }
.rcard:hover { box-shadow: var(--e-2); border-color: var(--line-strong); }
.rcard:hover .rcard-shot img { transform: scale(1.04); }
.rcard-shot { position: relative; display: block; }
.rcard-shot .food-lg { height: 144px; border-radius: 0; }
.rcard-shot img { transition: transform .5s var(--ease-out); }
.rcard-shot .badge-pickup { position: absolute; left: var(--s-3); top: var(--s-3); z-index: 2; background: var(--saffron); color: var(--ink); border-color: transparent; box-shadow: var(--e-1); font-weight: 700; }
.rcard-closed { position: absolute; inset: 0; display: grid; place-content: center; background: rgba(28,26,23,.45); z-index: 2; }
.rcard-body { display: block; padding: var(--s-3) var(--s-4) var(--s-4); }
.rcard-top { display: flex; align-items: baseline; gap: var(--s-3); }
.rcard-name { flex: 1; min-width: 0; font-family: var(--font-display); font-size: var(--t-18); font-weight: 600; font-variation-settings: 'opsz' 24, 'SOFT' 50; letter-spacing: -0.01em; line-height: 1.25; }
.rcard-rating { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: var(--t-13); color: var(--ink-2); }
.rcard-rating .ico { color: var(--saffron); }
.rcard-rating b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.rcard-cuisine { display: block; font-size: var(--t-13); color: var(--ink-3); margin-top: 2px; }
.rcard-facts { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-2); font-size: var(--t-12); color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.rcard-facts > span { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.rcard-facts .ico { color: var(--ink-4); }
.rcard.is-closed .rcard-shot img { filter: grayscale(.7); }
/* A wrapping meta row, used where the layout is a single card rather than a
   grid of them (the restaurant header, search result rows). */
.rcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); font-size: var(--t-13); color: var(--ink-3); margin-top: 4px; }
.rcard-meta .rating { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.rcard-meta .rating .ico { color: var(--saffron); width: 14px; height: 14px; }
.rcard-mini { display: flex; gap: var(--s-3); padding: var(--s-3); align-items: center; }
.rcard-mini .food { width: 64px; height: 64px; }
.rcard-mini .food .glyph { width: 36px; height: 36px; }

/* --- stars ---------------------------------------------------------------- */
.stars { display: inline-flex; gap: 2px; color: var(--saffron); }
.stars .ico { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.stars .ico.off { color: var(--line-strong); }
.stars-lg .ico { width: 36px; height: 36px; }
.stars-input button { cursor: pointer; color: var(--line-strong); transition: transform var(--d-press), color var(--d-micro); }
.stars-input button.on { color: var(--saffron); }
.stars-input button:hover { transform: scale(1.15); }

/* --- tables --------------------------------------------------------------- */
.table { width: 100%; font-size: var(--t-14); }
.table th { text-align: left; font-size: var(--t-12); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line-faint); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.link { cursor: pointer; }
.table tbody tr.link:hover { background: var(--surface-2); }
.table .tr, .table th.tr { text-align: right; }
.table td.num { font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table-wrap .table th:first-child, .table-wrap .table td:first-child { padding-left: var(--s-5); }

/* --- stepper (wizard) & timeline ----------------------------------------- */
.wizard { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.wizard-step { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-13); font-weight: 600; color: var(--ink-3); }
.wizard-step .n { display: grid; place-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); font-size: var(--t-12); }
.wizard-step.is-done .n { background: var(--basil); border-color: var(--basil); color: #fff; }
.wizard-step.is-on { color: var(--ink); } .wizard-step.is-on .n { background: var(--paprika); border-color: var(--paprika); color: var(--on-paprika); }
.wizard-sep { width: 24px; height: 1px; background: var(--line-strong); }
.timeline { position: relative; display: flex; flex-direction: column; gap: 0; }
.tl-item { position: relative; display: flex; gap: var(--s-4); padding-bottom: var(--s-5); }
.tl-item::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-item.is-done::before { background: var(--basil); }
.tl-dot { display: grid; place-content: center; width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--surface-2); border: 2px solid var(--line-strong); color: var(--ink-3); }
.tl-item.is-done .tl-dot { background: var(--basil); border-color: var(--basil); color: #fff; }
.tl-item.is-on .tl-dot { background: var(--paprika); border-color: var(--paprika); color: var(--on-paprika); animation: tf-ring 1.6s ease-out infinite; }
.tl-title { font-weight: 600; font-size: var(--t-15); }
.tl-sub { font-size: var(--t-13); color: var(--ink-3); margin-top: 2px; }
.tl-item.is-todo .tl-title { color: var(--ink-3); }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--paprika); border-radius: 3px; transition: width .6s var(--ease-out); }
.progress.basil > span { background: var(--basil); }
.status-strip { display: flex; gap: 4px; }
.status-strip > span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.status-strip > span.is-done { background: var(--basil); }
.status-strip > span.is-on { background: var(--paprika); animation: tf-pulse 1.4s infinite; }

/* --- kanban --------------------------------------------------------------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: var(--s-3); height: 100%; overflow-x: auto; padding-bottom: var(--s-2); }
.kcol { display: flex; flex-direction: column; min-width: 0; background: var(--surface-sunk); border-radius: var(--r-lg); border: 1px solid var(--line-faint); }
.kcol-head { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-4); font-weight: 700; font-size: var(--t-13); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line-faint); }
.kcol-head .count { background: var(--surface-3); color: var(--ink-2); }
.kcol-body { flex: 1; overflow-y: auto; padding: var(--s-2); display: flex; flex-direction: column; gap: var(--s-2); }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); cursor: pointer; transition: box-shadow var(--d-micro), border-color var(--d-micro); border-left-width: 4px; }
.kcard:hover { box-shadow: var(--e-2); }
.kcard.is-new { border-left-color: var(--st-new); animation: tf-ring 1.8s ease-out infinite; }
.kcard.is-accepted { border-left-color: var(--st-accepted); } .kcard.is-preparing { border-left-color: var(--st-preparing); }
.kcard.is-ready { border-left-color: var(--st-ready); } .kcard.is-out { border-left-color: var(--st-out); } .kcard.is-done { border-left-color: var(--st-done); }
.kcard-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.kcard-id { font-family: var(--font-mono); font-size: var(--t-13); font-weight: 500; }
.kcard-name { font-weight: 600; margin-top: 2px; }
.kcard-items { font-size: var(--t-13); color: var(--ink-2); margin-top: var(--s-1); }
.kcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: var(--s-2); font-size: var(--t-12); color: var(--ink-3); }
.kcard-timer { font-family: var(--font-mono); font-weight: 500; }
.kcard-timer.is-late { color: var(--danger-ink); }

/* --- chat ------------------------------------------------------------------ */
.chat { display: flex; flex-direction: column; gap: var(--s-2); }
.bubble { max-width: 78%; padding: var(--s-2) var(--s-4); border-radius: 18px; font-size: var(--t-15); line-height: 1.4; position: relative; }
.bubble.me { align-self: flex-end; background: var(--paprika); color: var(--on-paprika); border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 6px; }
.bubble.sys { align-self: center; background: transparent; color: var(--ink-3); font-size: var(--t-12); text-align: center; max-width: 90%; }
.bubble-time { display: block; font-size: var(--t-11); opacity: .7; margin-top: 2px; }
.bubble.me .bubble-time { text-align: right; }
.chat-input { display: flex; gap: var(--s-2); align-items: center; padding: var(--s-2); border-top: 1px solid var(--line); background: var(--surface); }
.chat-input .input { border-radius: var(--r-full); }
.chat-closed { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); background: var(--surface-2); border-top: 1px solid var(--line); color: var(--ink-3); font-size: var(--t-13); }
.quick-replies { display: flex; gap: var(--s-2); overflow-x: auto; padding: var(--s-2) var(--s-4); scrollbar-width: none; }
.quick-replies::-webkit-scrollbar { display: none; }

/* --- empty / skeleton / spinner ------------------------------------------ */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-2); padding: var(--s-10) var(--s-4); color: var(--ink-3); }
.empty .ico { width: 40px; height: 40px; color: var(--ink-4); }
.empty-title { font-weight: 600; color: var(--ink); }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: tf-shimmer 1.4s infinite; border-radius: var(--r-sm); }
@keyframes tf-shimmer { to { background-position: -200% 0; } }
.spinner { width: 20px; height: 20px; border: 2.5px solid var(--line-strong); border-top-color: var(--paprika); border-radius: 50%; animation: tf-spin .8s linear infinite; }

/* --- layers: modal / sheet / drawer -------------------------------------- */
.layer-backdrop { position: fixed; inset: 0; background: rgba(28,26,23,.45); z-index: var(--z-layer); animation: tf-fade var(--d-modal) var(--ease-out); backdrop-filter: blur(2px); }
.layer-backdrop.in-frame { position: absolute; border-radius: inherit; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - var(--s-8))); max-height: calc(100dvh - var(--s-16)); overflow: auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--e-3); z-index: calc(var(--z-layer) + 1); animation: tf-drop var(--d-modal) var(--ease-out); }
.modal-lg { width: min(820px, calc(100vw - var(--s-8))); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-5) var(--s-6) var(--s-3); }
.modal-title { font-size: var(--t-20); font-weight: 600; font-family: var(--font-display); font-variation-settings: 'opsz' 32, 'SOFT' 50; }
.modal-body { padding: var(--s-2) var(--s-6) var(--s-5); }
.modal-foot { display: flex; gap: var(--s-2); justify-content: flex-end; padding: var(--s-4) var(--s-6); border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--surface); box-shadow: var(--e-3); z-index: calc(var(--z-layer) + 1); display: flex; flex-direction: column; animation: tf-slide-in var(--d-sheet) var(--ease-out); }
@keyframes tf-slide-in { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-5) var(--s-6); border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow: auto; padding: var(--s-5) var(--s-6); }
.drawer-foot { padding: var(--s-4) var(--s-6); border-top: 1px solid var(--line); display: flex; gap: var(--s-2); justify-content: flex-end; background: var(--surface-2); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: var(--r-2xl) var(--r-2xl) 0 0; box-shadow: var(--e-3); z-index: calc(var(--z-layer) + 1); max-height: 92%; display: flex; flex-direction: column; animation: tf-slide-up var(--d-sheet) var(--ease-out); }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: var(--s-2) auto 0; }
.sheet-head { padding: var(--s-3) var(--s-5) var(--s-2); }
.sheet-body { overflow: auto; padding: 0 var(--s-5) var(--s-4); }
.sheet-foot { padding: var(--s-3) var(--s-5) calc(var(--s-5) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.sheet-title { font-family: var(--font-display); font-size: var(--t-22); font-weight: 600; font-variation-settings: 'opsz' 32, 'SOFT' 50; }

/* --- toast & push --------------------------------------------------------- */
.toaster { position: fixed; right: var(--s-4); bottom: calc(var(--pocbar-h) + var(--s-4)); z-index: var(--z-toast); display: flex; flex-direction: column-reverse; gap: var(--s-2); pointer-events: none; }
body:not(.has-pocbar) .toaster { bottom: var(--s-4); }
.toast { display: flex; align-items: flex-start; gap: var(--s-3); min-width: 260px; max-width: 380px; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--chrome); color: var(--chrome-ink); box-shadow: var(--e-3); font-size: var(--t-13); pointer-events: auto; transition: opacity var(--d-toast) var(--ease-out), transform var(--d-toast) var(--ease-out); }
.toast.pre { opacity: 0; transform: translateY(10px) scale(.97); }
.toast .ico { width: 16px; height: 16px; margin-top: 1px; color: var(--chrome-accent); }
.toast.is-ok .ico { color: #5CC27A; } .toast.is-bad .ico { color: #FF7A70; }
.push { position: absolute; left: var(--s-3); right: var(--s-3); top: var(--s-3); z-index: var(--z-toast); display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); background: rgba(255,255,255,.92); backdrop-filter: blur(20px) saturate(1.4); box-shadow: var(--e-3); color: #1C1A17; animation: tf-drop .4s var(--ease-spring); }
.push .push-app { width: 36px; height: 36px; border-radius: 9px; background: var(--paprika); display: grid; place-content: center; color: #fff; flex: none; }
.push-title { font-weight: 700; font-size: var(--t-13); display: flex; justify-content: space-between; gap: var(--s-2); }
.push-title span:last-child { font-weight: 400; color: #6B655C; font-size: var(--t-11); }
.push-body { font-size: var(--t-13); line-height: 1.35; margin-top: 1px; }
.push.out { animation: tf-lift .3s var(--ease-in-out) forwards; }
@keyframes tf-lift { to { opacity: 0; transform: translateY(-20px); } }

/* --- phone frame ---------------------------------------------------------- */
/* The stage is exactly one viewport tall and never scrolls: the device sits on
   it like a phone on a desk, and only the screen inside scrolls. The phone
   keeps its true 390x844 layout box and is scaled to fit shorter windows, so
   the app is always laid out at real phone dimensions. */
.phone-stage {
  --phone-fit: 1;
  height: 100dvh; overflow: hidden;
  display: grid; grid-template-columns: auto; place-content: center; place-items: center;
  column-gap: var(--s-10);
  padding: var(--s-4) var(--gutter) calc(var(--pocbar-h) + var(--s-4));
}
.phone {
  position: relative; width: var(--phone-w); height: var(--phone-h);
  background: var(--ground); border-radius: 54px; box-shadow: var(--e-phone);
  overflow: hidden; display: flex; flex-direction: column; border: 10px solid #15130f;
  transform: scale(var(--phone-fit)); transform-origin: center center;
}
.phone::before { content: ''; position: absolute; left: 50%; top: 10px; transform: translateX(-50%); width: 120px; height: 34px; background: #15130f; border-radius: 20px; z-index: 5; }
.phone-status { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 12px 28px 0; font-size: var(--t-14); font-weight: 600; flex: none; }
.phone-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; position: relative; display: flex; flex-direction: column; }
.phone-scroll::-webkit-scrollbar { display: none; }
.phone-scroll > * { flex-shrink: 0; }   /* scrollable rows must not collapse inside the flex column */
.phone-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); height: 84px; padding: 8px 8px 24px; border-top: 1px solid var(--line); background: var(--surface); flex: none; }
.phone-tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--ink-3); border-radius: var(--r-md); min-height: 44px; }
.phone-tabbar a .ico { width: 24px; height: 24px; }
.phone-tabbar a[aria-current="page"] { color: var(--paprika-ink); }
.phone-tabbar a .count { position: absolute; top: 2px; left: 50%; margin-left: 4px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.phone-home { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: var(--ink); opacity: .9; z-index: 4; }

/* The screen's own layout. One gutter (--app-gutter) is shared by the header,
   the body and every section heading, so titles and cards align on one edge. */
.phone { --app-gutter: var(--s-4); }
.app-head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--app-gutter) var(--s-3); flex: none; }
.app-head h1 { flex: 1; min-width: 0; font-family: var(--font-display); font-size: var(--t-24); font-weight: 600; font-variation-settings: 'opsz' 32, 'SOFT' 50; letter-spacing: -0.015em; line-height: 1.2; }
.app-head .btn-icon { width: 40px; min-height: 40px; flex: none; }
.app-body { padding: 0 var(--app-gutter) var(--s-8); flex: 1; }
.app-body > .sec-head:first-child { padding-top: 0; }
.app-foot { position: sticky; bottom: 0; padding: var(--s-3) var(--app-gutter) var(--s-4); background: linear-gradient(to top, var(--ground) 72%, transparent); flex: none; }
/* Section headings sit on the same edge as the cards beneath them. */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); padding: var(--s-5) var(--app-gutter) var(--s-3); }
.app-body .sec-head { padding-left: 0; padding-right: 0; }
.sec-head h2 { font-family: var(--font-display); font-size: var(--t-20); font-weight: 600; font-variation-settings: 'opsz' 32, 'SOFT' 50; letter-spacing: -0.01em; }
.sec-head .link, .sec-head .muted { flex: none; white-space: nowrap; }

/* The presenter note. Beside the device on a wide window; hidden on narrower
   ones, because pushing it under the phone is what made the page scroll. */
.phone-caption { display: none; align-self: center; max-width: 34ch; text-align: left; font-size: var(--t-14); line-height: 1.55; color: var(--ink-2); }
.phone-caption strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: var(--t-18); font-weight: 600; font-variation-settings: 'opsz' 24, 'SOFT' 50; margin-bottom: var(--s-2); }
@media (min-width: 1080px) {
  .phone-stage { grid-template-columns: auto minmax(260px, 34ch); }
  .phone-caption { display: block; }
}
/* Fit the device to shorter windows rather than letting the page scroll. */
@media (max-height: 940px) { .phone-stage { --phone-fit: .95; } }
@media (max-height: 880px) { .phone-stage { --phone-fit: .90; } }
@media (max-height: 820px) { .phone-stage { --phone-fit: .84; } }
@media (max-height: 770px) { .phone-stage { --phone-fit: .78; } }
@media (max-height: 700px) { .phone-stage { --phone-fit: .72; } }
@media (max-height: 640px) { .phone-stage { --phone-fit: .66; } }
/* On an actual handset the app is the page. */
@media (max-width: 600px) {
  .phone-stage { --phone-fit: 1; padding: 0; height: 100dvh; grid-template-columns: 1fr; }
  .phone { width: 100%; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; transform: none; }
  .phone::before, .phone-status, .phone-home { display: none; }
  .phone-caption { display: none; }
}

/* --- tablet frame --------------------------------------------------------- */
.tablet-stage { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); padding: var(--s-8) var(--gutter) calc(var(--pocbar-h) + var(--s-10)); min-height: 100dvh; background: #E9E2D6; }
[data-surface="kitchen"] .tablet-stage { background: #0F1114; }
.tablet { position: relative; width: min(var(--tablet-w), 100%); height: var(--tablet-h); background: var(--ground); border-radius: 28px; border: 14px solid #15130f; box-shadow: var(--e-phone); overflow: hidden; display: flex; }
.tablet-caption { font-size: var(--t-13); color: var(--ink-3); text-align: center; max-width: 60ch; }
[data-surface="kitchen"] .tablet-caption { color: #A39C92; }
.tablet-side { width: 92px; flex: none; display: flex; flex-direction: column; align-items: center; gap: var(--s-1); padding: var(--s-4) var(--s-2); background: var(--surface-sunk); border-right: 1px solid var(--line); }
.tablet-side a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 76px; min-height: 60px; border-radius: var(--r-md); color: var(--ink-3); font-size: 11px; font-weight: 600; text-align: center; position: relative; }
.tablet-side a:hover { background: var(--surface-2); color: var(--ink); }
.tablet-side a[aria-current="page"] { background: var(--surface-2); color: var(--paprika-ink); }
.tablet-side a .ico { width: 22px; height: 22px; }
.tablet-side a .count { position: absolute; top: 6px; right: 8px; }
.tablet-side .logo { margin-bottom: var(--s-3); }
.tablet-main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.tablet-top { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); flex: none; min-height: 60px; }
.tablet-top h1 { font-size: var(--t-20); font-weight: 600; }
.tablet-body { flex: 1; overflow: auto; padding: var(--s-4) var(--s-5); }
@media (max-width: 1240px) { .tablet { height: min(var(--tablet-h), calc(100dvh - var(--s-16))); } }
@media (max-width: 900px) { .tablet-stage { padding: 0; } .tablet { border: 0; border-radius: 0; width: 100%; height: 100dvh; } .tablet-caption { display: none; } }

/* --- admin shell ------------------------------------------------------------ */
.admin { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: var(--s-5) var(--s-3) calc(var(--pocbar-h) + var(--s-4)); }
.sidebar .logo { padding: 0 var(--s-3); margin-bottom: var(--s-6); }
.nav-grp { font-size: var(--t-11); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); padding: var(--s-4) var(--s-3) var(--s-1); }
.nav-item { display: flex; align-items: center; gap: var(--s-3); min-height: 40px; padding: 0 var(--s-3); border-radius: var(--r-md); color: var(--ink-2); font-weight: 500; font-size: var(--t-14); }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--paprika-soft); color: var(--paprika-ink); font-weight: 600; }
.nav-item .ico { width: 19px; height: 19px; color: var(--ink-3); }
.nav-item[aria-current="page"] .ico { color: var(--paprika-ink); }
.nav-item .count { margin-left: auto; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: var(--z-nav); display: flex; align-items: center; gap: var(--s-3); height: var(--topbar-h); padding: 0 var(--s-8); background: rgba(251,247,240,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .crumbs { font-size: var(--t-13); color: var(--ink-3); display: flex; gap: var(--s-2); align-items: center; }
.topbar .crumbs strong { color: var(--ink); font-weight: 600; }
.page { padding: var(--s-6) var(--s-8) calc(var(--pocbar-h) + var(--s-12)); max-width: 1440px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-6); }
.page-head h1 { font-family: var(--font-display); font-size: var(--t-32); font-weight: 500; letter-spacing: -0.02em; font-variation-settings: 'opsz' 48, 'SOFT' 50; }
.page-head .sub { margin-top: var(--s-1); max-width: 70ch; }
.toolbar { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; margin-bottom: var(--s-4); }
.toolbar .input-wrap { flex: 1 1 260px; max-width: 420px; }
.filters { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.nav-burger { display: none; }
@media (max-width: 960px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: var(--sidebar-w); transform: translateX(-100%); transition: transform var(--d-sheet) var(--ease-out); z-index: var(--z-layer); box-shadow: var(--e-3); }
  body.nav-open .sidebar { transform: none; }
  .nav-burger { display: inline-flex; }
  .topbar, .page { padding-left: var(--gutter); padding-right: var(--gutter); }
}

/* --- prototype bar ----------------------------------------------------------- */
.pocbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-pocbar); height: var(--pocbar-h); display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-4); background: var(--chrome); color: var(--chrome-ink); font-size: var(--t-12); box-shadow: 0 -4px 20px rgba(0,0,0,.2); }
.pocbar .tagword { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--chrome-accent); font-weight: 500; }
.pocbar .roles { display: flex; gap: 2px; }
.pocbar .roles a { padding: 5px 10px; border-radius: var(--r-full); color: var(--chrome-ink-2); font-weight: 600; }
.pocbar .roles a:hover { color: var(--chrome-ink); background: var(--chrome-2); }
.pocbar .roles a[aria-current="true"] { background: var(--chrome-accent); color: var(--chrome); }
.pocbar .spacer { flex: 1; }
.pocbar .link { color: var(--chrome-ink-2); font-weight: 600; font-size: var(--t-12); }
.pocbar .link:hover { color: var(--chrome-ink); text-decoration: none; }
.pocbar .mods { display: flex; gap: 4px; }
.pocbar .lang { display: inline-flex; border: 1px solid var(--chrome-2); border-radius: var(--r-full); padding: 2px; }
.pocbar .lang button { padding: 3px 9px; border-radius: var(--r-full); font-weight: 700; font-size: 11px; color: var(--chrome-ink-2); }
.pocbar .lang button[aria-pressed="true"] { background: var(--chrome-ink); color: var(--chrome); }
.pocbar .btn-icon { color: var(--chrome-ink-2); }
.pocbar .btn-icon:hover { background: var(--chrome-2); color: var(--chrome-ink); }
body.has-pocbar { padding-bottom: 0; }
@media (max-width: 720px) { .pocbar { gap: var(--s-2); padding: 0 var(--s-3); } .pocbar .tagword, .pocbar .mods { display: none; } .pocbar .roles a { padding: 5px 8px; } }
.tour-box { position: fixed; right: var(--s-4); bottom: calc(var(--pocbar-h) + var(--s-4)); z-index: var(--z-toast); width: min(380px, calc(100vw - var(--s-8))); padding: var(--s-5); border-radius: var(--r-xl); background: var(--chrome); color: var(--chrome-ink); box-shadow: var(--e-3); font-size: var(--t-13); line-height: 1.55; animation: tf-drop .3s var(--ease-out); }
.tour-box strong { color: var(--chrome-accent); font-size: var(--t-14); }
.tour-box .btn { color: var(--chrome-ink); border-color: rgba(255,255,255,.25); background: transparent; }
.tour-box .btn:hover { background: var(--chrome-2); }
.tour-box .btn-primary { background: var(--chrome-accent); border-color: var(--chrome-accent); color: var(--chrome); }
[data-module] { position: relative; }
body.show-sow [data-module]::before { content: attr(data-module); position: absolute; top: -8px; right: 8px; z-index: 3; height: 18px; padding: 0 6px; border-radius: 4px; background: var(--plum); color: #fff; font-family: var(--font-mono); font-size: 10px; line-height: 18px; pointer-events: none; }
body.show-sow [data-module] { outline: 1.5px dashed var(--plum-line); outline-offset: 2px; }

/* --- lang toggle (in-app) --------------------------------------------------- */
.lang-toggle { display: inline-flex; padding: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-full); }
.lang-toggle button { min-width: 40px; height: 30px; border-radius: var(--r-full); font-size: var(--t-12); font-weight: 700; color: var(--ink-3); }
.lang-toggle button[aria-pressed="true"] { background: var(--chrome); color: var(--chrome-ink); }

/* --- map placeholder ---------------------------------------------------------- */
.map { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #E8E4DA; background-image: linear-gradient(rgba(28,26,23,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(28,26,23,.06) 1px, transparent 1px); background-size: 28px 28px; }
.map .road { position: absolute; background: #F7F3EA; }
.map .park { position: absolute; background: #D6E7D3; border-radius: 40%; }
.map .water { position: absolute; background: #CFE0EE; border-radius: 40% 60% 50% 50%; }
.map .pin { position: absolute; transform: translate(-50%, -100%); color: var(--paprika); filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.map .pin .ico { width: 32px; height: 32px; fill: currentColor; stroke: #fff; }
.map .me { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--info); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(43,95,168,.2); transform: translate(-50%, -50%); }
.map .ring { position: absolute; border-radius: 50%; background: rgba(210,58,30,.10); border: 2px dashed var(--paprika); transform: translate(-50%, -50%); }
.map .ring-label { position: absolute; transform: translate(-50%, -50%); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-full); padding: 2px 10px; font-size: var(--t-12); font-weight: 600; }
[data-surface="kitchen"] .map { background: #262A31; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); }
[data-surface="kitchen"] .map .road { background: #30353D; } [data-surface="kitchen"] .map .park { background: #2A3A2E; } [data-surface="kitchen"] .map .water { background: #243040; }

/* --- misc --------------------------------------------------------------------- */
.price-big { font-family: var(--font-display); font-size: var(--t-28); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; font-variation-settings: 'opsz' 48, 'SOFT' 50; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--t-14); padding: 5px 0; }
.total-row.grand { font-weight: 700; font-size: var(--t-16); border-top: 1px solid var(--line); margin-top: var(--s-2); padding-top: var(--s-3); }
.total-row .muted { font-weight: 400; }
.pay-opt { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; background: var(--surface); transition: border-color var(--d-micro), background var(--d-micro); }
.pay-opt:hover { border-color: var(--line-control); }
.pay-opt.is-on { border-color: var(--paprika); background: var(--paprika-soft); }
.pay-logo { width: 44px; height: 28px; border-radius: 6px; display: grid; place-content: center; font-size: 10px; font-weight: 800; letter-spacing: .02em; flex: none; }
.pay-logo.apple { background: #000; color: #fff; } .pay-logo.google { background: #fff; color: #1C1A17; border: 1px solid var(--line-strong); }
.pay-logo.klarna { background: #FFB3C7; color: #17120F; } .pay-logo.stripe { background: #635BFF; color: #fff; } .pay-logo.cash { background: var(--basil-soft); color: var(--basil-ink); border: 1px solid var(--basil-line); }
.promo-banner { display: block; position: relative; overflow: hidden; padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); background: var(--chrome); color: var(--chrome-ink); }

.promo-banner > .ico { color: var(--chrome-accent); flex: none; }
.promo-banner::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(242,178,52,.35), transparent 60%); }
.code { display: inline-flex; align-items: center; gap: var(--s-2); padding: 4px 10px; border: 1.5px dashed var(--line-control); border-radius: var(--r-sm); font-family: var(--font-mono); font-weight: 500; font-size: var(--t-13); background: var(--surface); }
.countdown { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.pickup-code { display: inline-flex; gap: 6px; }
.pickup-code span { display: grid; place-content: center; width: 44px; height: 54px; border-radius: var(--r-md); background: var(--chrome); color: var(--chrome-accent); font-family: var(--font-mono); font-size: var(--t-24); font-weight: 500; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: var(--t-20); letter-spacing: -0.02em; font-variation-settings: 'opsz' 32, 'SOFT' 60; color: var(--ink); }
.logo .mark { width: 30px; height: 30px; }
.tooltip { position: relative; }
.tooltip[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; padding: 5px 9px; border-radius: 6px; background: var(--chrome); color: var(--chrome-ink); font-size: var(--t-12); z-index: 5; }
.sparkline { width: 100%; height: 40px; }
.bar-chart { width: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--t-12); color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.review { padding: var(--s-4) 0; border-bottom: 1px solid var(--line-faint); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: var(--s-3); }
.review-body { margin-top: var(--s-2); font-size: var(--t-14); line-height: 1.5; }
.review.is-flagged { background: var(--saffron-soft); margin: 0 calc(-1 * var(--s-4)); padding: var(--s-4); border-radius: var(--r-md); }
