/* BRIGAD · Ladan Vinter 26/27 — "Polar Night" (dark) and "Snow" (light).
 * Every colour lives in the two token blocks below (print CSS excepted).
 */

/* ============ tokens: Polar Night ============ */
:root {
  color-scheme: dark;
  --bg: #0b1018;
  --surface: #111826;
  --surface-2: #172133;
  --surface-3: #1e2a40;
  --line: rgba(196, 214, 235, .10);
  --line-strong: rgba(196, 214, 235, .18);
  --ink: #eef1f5;
  --ink-dim: #b6c0cf;
  --muted: #7f8aa0;
  --brass: #d9b26f;
  --brass-2: #b48a45;
  --brass-tint: rgba(217, 178, 111, .12);
  --brass-line: rgba(217, 178, 111, .34);
  --frost: #cfe3f5;
  --frost-tint: rgba(207, 227, 245, .09);
  --frost-line: rgba(207, 227, 245, .22);
  --danger: #ef7b6c;
  --danger-tint: rgba(239, 123, 108, .12);
  --danger-line: rgba(239, 123, 108, .34);
  --ok: #7cc7a1;
  --ok-tint: rgba(124, 199, 161, .12);
  --ok-line: rgba(124, 199, 161, .34);
  --warn: #e8b765;
  --warn-tint: rgba(232, 183, 101, .12);
  --warn-line: rgba(232, 183, 101, .38);

  --accent: #d9b26f;              /* active states, primary buttons */
  --accent-2: #b48a45;
  --accent-tint: rgba(217, 178, 111, .12);
  --on-accent: #1b1407;
  --price: #d9b26f;
  --focus: #cfe3f5;

  --crit-ink: #f19a8f;  --crit-bg: rgba(239, 123, 108, .12);  --crit-line: rgba(239, 123, 108, .30);
  --com-ink: #e2c088;   --com-bg: rgba(217, 178, 111, .12);   --com-line: rgba(217, 178, 111, .30);
  --oth-ink: #cfe3f5;   --oth-bg: rgba(207, 227, 245, .08);   --oth-line: rgba(207, 227, 245, .22);

  --st-kall-ink: #bfe0f7;  --st-kall-bg: rgba(150, 200, 240, .12);
  --st-varm-ink: #f0b08c;  --st-varm-bg: rgba(232, 140, 95, .13);
  --st-frit-ink: #ecc873;  --st-frit-bg: rgba(232, 190, 90, .13);
  --st-kond-ink: #dcbde8;  --st-kond-bg: rgba(200, 160, 225, .13);

  --topbar-bg: rgba(11, 16, 24, .82);
  --glass: rgba(8, 12, 20, .62);
  --scrim: rgba(6, 9, 15, .78);
  --scrim-hero: rgba(6, 9, 15, .92);
  --on-photo: #f6f4ef;
  --brass-photo: #d9b26f;
  --photo-line: rgba(255, 255, 255, .10);
  --photo-line-strong: rgba(255, 255, 255, .30);
  --scrim-missing: .45;
  --on-photo-dim: rgba(246, 244, 239, .78);
  --modal-scrim: rgba(3, 6, 10, .66);

  --ph-line: rgba(207, 227, 245, .16);
  --ph-a: #19243a;  --ph-b: #0e1524;  --ph-c: rgba(207, 227, 245, .10);  --ph-mark: rgba(207, 227, 245, .40);

  --hero-img-op: .42; --hero-fade: rgba(11, 16, 24, .92);
  --role-grill: #f2a47c; --role-grill-bg: rgba(232, 140, 95, .14);
  --role-sauce: #e6c27e; --role-sauce-bg: rgba(217, 178, 111, .14);
  --role-cold: #a5d3f3;  --role-cold-bg: rgba(150, 200, 240, .13);
  --role-lunch: #8fd3b0; --role-lunch-bg: rgba(124, 199, 161, .14);
  --lvl-closed: #9aa5b8; --lvl-closed-bg: rgba(154, 165, 184, .14);
  --lvl-low: #a5d3f3;    --lvl-low-bg: rgba(150, 200, 240, .13);
  --lvl-normal: #8fd3b0; --lvl-normal-bg: rgba(124, 199, 161, .14);
  --lvl-high: #ecc06f;   --lvl-high-bg: rgba(232, 183, 101, .15);
  --lvl-peak: #f29b8e;   --lvl-peak-bg: rgba(239, 123, 108, .16);
  --shadow-3: 0 24px 60px rgba(0, 0, 0, .5), 0 4px 14px rgba(0, 0, 0, .35);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .18);
  --shadow-2: 0 10px 40px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .3);
  --hairline-in: inset 0 1px 0 rgba(255, 255, 255, .04);

  /* type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --fs-12: 12px; --fs-13: 13px; --fs-15: 15px; --fs-17: 17px; --fs-20: 20px;
  --fs-24: 24px; --fs-30: 30px; --fs-38: 38px; --fs-48: 48px;

  /* space · radius */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r1: 8px; --r2: 12px; --r3: 16px; --r4: 22px;

  /* one z-index scale */
  --z-sticky: 10; --z-topbar: 20; --z-nav: 30; --z-dropdown: 40; --z-modal: 50; --z-cook: 60; --z-toast: 70;

  /* layout */
  --side-w: 256px;
  --topbar-h: 60px;
  --nav-h: 64px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ============ tokens: Snow ============ */
:root[data-theme="snow"] {
  color-scheme: light;
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-2: #f1f3f1;
  --surface-3: #e7ebe8;
  --line: rgba(30, 42, 38, .10);
  --line-strong: rgba(30, 42, 38, .18);
  --ink: #1d2422;
  --ink-dim: #3f4a47;
  --muted: #6b7672;
  --brass: #a67c3a;
  --brass-2: #8a642b;
  --brass-tint: rgba(166, 124, 58, .10);
  --brass-line: rgba(166, 124, 58, .32);
  --frost: #3a6577;
  --frost-tint: rgba(58, 101, 119, .08);
  --frost-line: rgba(58, 101, 119, .22);
  --danger: #c2473a;
  --danger-tint: rgba(194, 71, 58, .08);
  --danger-line: rgba(194, 71, 58, .30);
  --ok: #2f7a57;
  --ok-tint: rgba(47, 122, 87, .09);
  --ok-line: rgba(47, 122, 87, .30);
  --warn: #9a6a12;
  --warn-tint: rgba(196, 142, 40, .12);
  --warn-line: rgba(176, 124, 30, .38);

  --accent: #2f5d50;
  --accent-2: #24493f;
  --accent-tint: rgba(47, 93, 80, .10);
  --on-accent: #ffffff;
  --price: #9b7435;
  --focus: #2f5d50;

  --crit-ink: #b23d30;  --crit-bg: rgba(210, 80, 65, .09);   --crit-line: rgba(194, 71, 58, .28);
  --com-ink: #85601f;   --com-bg: rgba(196, 150, 70, .13);   --com-line: rgba(166, 124, 58, .30);
  --oth-ink: #3a6577;   --oth-bg: rgba(58, 101, 119, .08);   --oth-line: rgba(58, 101, 119, .22);

  --st-kall-ink: #285f80;  --st-kall-bg: rgba(60, 130, 180, .10);
  --st-varm-ink: #a24a22;  --st-varm-bg: rgba(200, 100, 50, .10);
  --st-frit-ink: #8a6210;  --st-frit-bg: rgba(200, 150, 40, .14);
  --st-kond-ink: #7a4592;  --st-kond-bg: rgba(140, 80, 170, .10);

  --topbar-bg: rgba(246, 247, 245, .86);
  --brass-photo: #e6c58a;
  --scrim-missing: 0;
  --modal-scrim: rgba(20, 28, 26, .38);

  --ph-line: rgba(47, 93, 80, .16);
  --ph-a: #e4eae8;  --ph-b: #f4f6f4;  --ph-c: rgba(47, 93, 80, .08);  --ph-mark: rgba(47, 93, 80, .38);

  --hero-img-op: .34; --hero-fade: rgba(246, 247, 245, .94);
  --role-grill: #ad4b22; --role-grill-bg: rgba(200, 100, 50, .11);
  --role-sauce: #8a6210; --role-sauce-bg: rgba(200, 150, 40, .14);
  --role-cold: #2a6487;  --role-cold-bg: rgba(60, 130, 180, .11);
  --role-lunch: #2c7552; --role-lunch-bg: rgba(47, 122, 87, .11);
  --lvl-closed: #5d6866; --lvl-closed-bg: rgba(60, 75, 72, .10);
  --lvl-low: #2a6487;    --lvl-low-bg: rgba(60, 130, 180, .11);
  --lvl-normal: #2c7552; --lvl-normal-bg: rgba(47, 122, 87, .11);
  --lvl-high: #8a5d0c;   --lvl-high-bg: rgba(196, 142, 40, .15);
  --lvl-peak: #b23d30;   --lvl-peak-bg: rgba(210, 80, 65, .11);
  --shadow-3: 0 24px 60px rgba(20, 30, 28, .18), 0 4px 14px rgba(20, 30, 28, .08);
  --shadow-1: 0 1px 2px rgba(20, 30, 28, .06), 0 4px 16px rgba(20, 30, 28, .06);
  --shadow-2: 0 14px 44px rgba(20, 30, 28, .16), 0 2px 8px rgba(20, 30, 28, .08);
  --hairline-in: inset 0 1px 0 rgba(255, 255, 255, .7);
}
/* Photos without a picture on the dish hero stay dark in both themes. */
:root[data-theme="snow"] .ph-hero { --ph-a: #24463d; --ph-b: #10211b; --ph-c: rgba(200, 230, 245, .12); --ph-mark: rgba(220, 235, 240, .40); --ph-line: rgba(220, 235, 240, .18); }

/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 64px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-15)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; min-height: 100dvh;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: 0; font-optical-sizing: auto; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
code { font: 500 .92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-3); padding: 1px 6px; border-radius: 6px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-star { width: 12px; height: 12px; color: var(--brass); margin-left: 4px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: var(--z-toast); background: var(--surface); padding: 10px 14px; border-radius: var(--r2); }
.skip-link:focus { left: 8px; }
::selection { background: var(--brass-tint); }

/* ============ layout shell ============ */
.sidebar { display: none; }
.topbar {
  position: sticky; top: 0; z-index: var(--z-topbar);
  height: calc(var(--topbar-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex; align-items: center; gap: var(--s3);
  background: var(--topbar-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
}
.topbar-brand { display: flex; align-items: center; gap: 10px; flex: none; min-height: 44px; }
.topbar-brand img { border-radius: 9px; }
.topbar-brand-text { font: 700 var(--fs-17)/1 var(--serif); letter-spacing: .12em; display: none; }
.view { display: block; max-width: 1280px; margin: 0 auto; padding: var(--s4) var(--gutter) calc(var(--nav-h) + env(safe-area-inset-bottom) + var(--s6)); }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav);
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--topbar-bg); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
}
.bn-link { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; transition: color .2s var(--ease); }
.bn-link .ic { width: 23px; height: 23px; }
.bn-link.is-active { color: var(--accent); }
.bn-link.is-active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--accent); }

@media (min-width: 560px) { .topbar-brand-text { display: inline; } }
@media (min-width: 700px) { :root { --gutter: 24px; } }
@media (min-width: 1025px) {
  :root { --topbar-h: 68px; --gutter: 32px; }
  .sidebar {
    display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: var(--z-nav);
    background: var(--surface); border-right: 1px solid var(--line); padding: var(--s5) var(--s4);
  }
  .topbar, .view { margin-left: var(--side-w); }
  .view { padding-bottom: var(--s7); }
  .topbar { justify-content: flex-end; }
  .topbar .search { margin-right: auto; }
  .topbar-brand, .bottom-nav { display: none; }
}
.brand { display: flex; align-items: center; gap: var(--s3); padding: 4px 8px var(--s5); border-bottom: 1px solid var(--line); margin-bottom: var(--s4); }
.brand-mark { border-radius: 10px; box-shadow: var(--shadow-1); }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font: 700 var(--fs-20)/1 var(--serif); letter-spacing: .16em; }
.brand-season { font-size: var(--fs-12); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
  position: relative; display: flex; align-items: center; gap: var(--s3); min-height: 48px; padding: 0 var(--s3);
  border-radius: var(--r2); color: var(--ink-dim); font-weight: 550; transition: background .18s var(--ease), color .18s var(--ease);
}
.side-link .ic { width: 21px; height: 21px; color: var(--muted); transition: color .18s var(--ease); }
.side-link .nav-label { flex: 1; }
.nav-count { font-size: var(--fs-12); font-variant-numeric: tabular-nums; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 1px 8px; border-radius: 999px; }
.side-link.is-active { background: var(--surface-2); color: var(--ink); box-shadow: var(--hairline-in), 0 0 0 1px var(--line); }
.side-link.is-active .ic { color: var(--accent); }
.side-link.is-active::before { content: ""; position: absolute; left: -16px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: var(--s3) 8px 0; border-top: 1px solid var(--line); font-size: var(--fs-12); color: var(--muted); }
.side-foot-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-tint); }
.is-offline .side-foot-dot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-tint); }

@media (hover: hover) {
  .side-link:hover { background: var(--surface-2); color: var(--ink); }
  .bn-link:hover { color: var(--ink); }
}

/* ============ search ============ */
.search { position: relative; flex: 1; max-width: 560px; min-width: 0; }
.search-icon { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 100%; height: 44px; padding: 0 40px 0 40px; border-radius: var(--r2);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-size: var(--fs-15);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--frost-line); background: var(--surface); outline: none; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 11px var(--sans); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 7px; display: none; }
@media (hover: hover) and (min-width: 1025px) { .search-kbd { display: block; } }
.search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: var(--z-dropdown);
  max-height: min(70vh, 560px); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r3); box-shadow: var(--shadow-2);
  padding: 6px; display: none;
}
.search-dropdown.open { display: block; }
@media (max-width: 559px) { .search-dropdown { position: fixed; top: calc(var(--topbar-h) + env(safe-area-inset-top) + 6px); left: 8px; right: 8px; max-height: calc(100dvh - var(--topbar-h) - var(--nav-h) - 40px); } }
.sd-hint, .sd-empty { padding: 12px; color: var(--muted); font-size: var(--fs-13); }
.sd-head { display: flex; justify-content: space-between; padding: 12px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sd-row { display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: 6px 8px; border-radius: var(--r2); }
.sd-row:focus-visible { outline-offset: -2px; }
.sd-row .ph-thumb, .sd-thumb-c { width: 52px; }
.sd-thumb-c { flex: none; aspect-ratio: 4 / 3; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--frost); border: 1px solid var(--line); }
.sd-text { display: flex; flex-direction: column; min-width: 0; }
.sd-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-meta { font-size: var(--fs-12); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .sd-row:hover { background: var(--surface-2); } }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 var(--s4);
  border-radius: var(--r2); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink);
  font-weight: 600; font-size: var(--fs-15); white-space: nowrap; box-shadow: var(--hairline-in);
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .15s var(--ease);
}
.btn .ic { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: default; }
.btn-primary { background: linear-gradient(180deg, var(--accent), var(--accent-2)); color: var(--on-accent); border-color: transparent; }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-sm { min-height: 40px; padding: 0 var(--s3); font-size: var(--fs-13); }
.btn-lg { min-height: 60px; padding: 0 var(--s5); font-size: var(--fs-17); border-radius: var(--r3); }
.btn.is-on { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); }
.btn.is-armed { background: var(--danger-tint); border-color: var(--danger-line); color: var(--danger); }
.icon-btn { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-dim); transition: color .18s var(--ease), background .18s var(--ease); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
[data-theme="snow"] .theme-toggle .i-sun { display: block; }
[data-theme="snow"] .theme-toggle .i-moon { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
@media (hover: hover) {
  .btn:hover { border-color: var(--frost-line); background: var(--surface-3); }
  .btn-primary:hover { background: linear-gradient(180deg, var(--accent), var(--accent)); border-color: transparent; }
  .btn-ghost:hover { background: var(--surface-2); }
  .icon-btn:hover { color: var(--ink); background: var(--surface-3); }
}

/* ============ tags & chips ============ */
.tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; gap: 6px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-dim);
}
.tag-big { height: 34px; padding: 0 14px; font-size: var(--fs-15); }
.tag.tier-critical { color: var(--crit-ink); background: var(--crit-bg); border-color: var(--crit-line); }
.tag.tier-common { color: var(--com-ink); background: var(--com-bg); border-color: var(--com-line); }
.tag.tier-other { color: var(--oth-ink); background: var(--oth-bg); border-color: var(--oth-line); }
.tag-note { font-weight: 500; opacity: .8; padding-left: 6px; border-left: 1px solid currentColor; }
.tag-none { color: var(--muted); }
.tag-check { color: var(--warn); background: var(--warn-tint); border: 1px dashed var(--warn-line); width: 26px; justify-content: center; padding: 0; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: var(--fs-13); font-weight: 600; color: var(--ink-dim);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--frost); opacity: .7; }
.badge-served { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--frost); border: 1px solid var(--frost-line); }
.station-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--surface-3); color: var(--ink-dim); }
.station-kall { color: var(--st-kall-ink); background: var(--st-kall-bg); }
.station-varm { color: var(--st-varm-ink); background: var(--st-varm-bg); }
.station-frit-s { color: var(--st-frit-ink); background: var(--st-frit-bg); }
.station-konditori { color: var(--st-kond-ink); background: var(--st-kond-bg); }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--ink-dim); white-space: nowrap; }
.pill .ic { width: 13px; height: 13px; }
.pill-ok { background: var(--ok-tint); color: var(--ok); }
.pill-frost { background: var(--frost-tint); color: var(--frost); }
.pill-dim { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.pill-due { background: var(--brass-tint); color: var(--brass); font-variant-numeric: tabular-nums; height: 26px; font-size: var(--fs-13); }
@media (hover: hover) { .chip:hover { border-color: var(--frost-line); color: var(--ink); } }

/* ============ price ============ */
.price { font: 600 var(--fs-17)/1.2 var(--serif); color: var(--price); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; letter-spacing: 0; }
.price .kr { font-size: .78em; opacity: .8; }
.price-lg { font-size: var(--fs-24); }

/* ============ segmented control ============ */
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--hairline-in); }
.seg-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 0;
  background: transparent; color: var(--ink-dim); font-weight: 600; font-size: var(--fs-15); white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.seg-btn .ic { width: 16px; height: 16px; }
.seg-btn .ic-star { width: 11px; height: 11px; margin: 0 0 0 -2px; }
.seg-btn.is-active { background: var(--surface-3); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-1); }
.seg-n { font-size: 11.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.seg-small .seg-btn { min-height: 38px; font-size: var(--fs-13); }
@media (hover: hover) { .seg-btn:not(.is-active):hover { color: var(--ink); background: var(--surface-2); } }

/* ============ headings ============ */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin: var(--s3) 0 var(--s5); }
.page-head h1 { font-size: clamp(28px, 6vw, var(--fs-38)); font-weight: 700; }
@media (max-width: 559px) { .page-head { margin: var(--s2) 0 var(--s4); gap: var(--s3); } .page-sub { font-size: var(--fs-13); margin-top: 4px; } }
.page-sub { margin-top: 8px; color: var(--ink-dim); max-width: 62ch; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.h-section { display: flex; align-items: baseline; gap: var(--s3); margin: var(--s6) 0 var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.h-section h2 { font-size: var(--fs-30); }
.h-en { font-size: var(--fs-13); color: var(--muted); letter-spacing: .04em; }
.count { margin-left: auto; font: 600 var(--fs-12)/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
.h-course { display: flex; align-items: center; gap: var(--s3); margin: var(--s5) 0 var(--s3); font: 700 var(--fs-12)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.h-course::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--brass-line), transparent); }
.menu-sec:first-of-type .h-section { margin-top: var(--s3); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-12); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.eyebrow .ic { width: 15px; height: 15px; }

/* ============ photo + elegant fallback ============ */
.ph {
  position: relative; overflow: hidden; width: 100%; height: 100%;
  background:
    radial-gradient(70% 90% at var(--ph-x, 50%) 10%, var(--ph-c), transparent 70%),
    linear-gradient(var(--ph-angle, 160deg), var(--ph-a), var(--ph-b));
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s var(--ease); }
.ph img.img-loaded { opacity: 1; }
.ph img.img-failed { display: none; }
.ph-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--ph-mark); }
.ph-mark { box-sizing: content-box; width: 30px; height: 30px; padding: 22px; stroke-width: 1.2; border-radius: 50%; border: 1px solid var(--ph-line, var(--ph-mark)); }
.ph-caption { font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.ph:not(.ph-missing) .ph-fallback { opacity: .7; }
.ph-thumb { width: 64px; height: auto; aspect-ratio: 4 / 3; flex: none; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.ph-thumb .ph-mark { width: 16px; height: 16px; padding: 0; border: 0; }

/* ============ grid & cards ============ */
.grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); } }
@media (min-width: 1700px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r3); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1), var(--hairline-in);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card-media { position: relative; aspect-ratio: 3 / 2; }
/* Scrim sits at the BOTTOM of the photo, under the fire badge. */
.card-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(to top, var(--scrim), transparent); pointer-events: none; opacity: .7; }
.badge-fire { position: absolute; left: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--glass); color: var(--on-photo); font-size: var(--fs-13); font-weight: 600; font-variant-numeric: tabular-nums; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--photo-line); }
.badge-fire .ic { width: 15px; height: 15px; color: var(--brass); }
.badge-static { position: static; }
.card-media:has(.ph-missing)::after { opacity: var(--scrim-missing); }
.badge-fire .ic { --brass: var(--brass-photo); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: var(--s4) var(--s4) var(--s4); flex: 1; }
.card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.card-titles { min-width: 0; }
.card-title { font-size: var(--fs-20); line-height: 1.2; }
.card-printed { margin-top: 3px; font: italic 400 var(--fs-13)/1.3 var(--serif); color: var(--brass); }
.card-en { font-size: var(--fs-13); color: var(--ink-dim); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--s2); }
.card-eq { display: contents; }
.comp-card { padding: var(--s4); gap: 6px; }
.comp-card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: 4px; }
.comp-used { font-size: var(--fs-12); color: var(--muted); }
.comp-card .card-title { font-size: var(--fs-20); }
.comp-yield { display: flex; gap: 6px; align-items: flex-start; font-size: var(--fs-13); color: var(--muted); }
.comp-yield .ic { width: 15px; height: 15px; margin-top: 2px; }
@media (hover: hover) {
  .card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-2); }
}

/* ============ toolbar / filters ============ */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-bottom: var(--s5); }
.toolbar-count { font-size: var(--fs-13); color: var(--muted); font-variant-numeric: tabular-nums; margin-left: auto; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.field-search { position: relative; flex: 1 1 280px; max-width: 460px; }
.field-search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.field-search input { width: 100%; height: 48px; padding: 0 14px 0 40px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-15); }
.field-search input:focus { border-color: var(--frost-line); outline: none; }
.filter-row { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.filter-label { flex: none; width: 92px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 559px) {
  .filter-label { width: 100%; }
  .filter-row .filter-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
  .filter-row .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chip { flex: none; }
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-dim); font-weight: 600; font-size: var(--fs-13); transition: all .18s var(--ease); }
.filter-chip .ic { width: 15px; height: 15px; }
.filter-chip.is-active { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); }
.filter-chip.is-active .seg-n { color: inherit; }
.empty-inline { padding: var(--s6) 0; text-align: center; grid-column: 1 / -1; }
@media (hover: hover) { .filter-chip:not(.is-active):hover { border-color: var(--line-strong); color: var(--ink); } }

/* ============ recipe page ============ */
.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding-right: 10px; color: var(--ink-dim); font-weight: 600; font-size: var(--fs-13); }
.back-link .ic { width: 18px; height: 18px; }
.r-hero {
  position: relative; isolation: isolate; overflow: hidden; margin: calc(-1 * var(--s4)) calc(-1 * var(--gutter)) 0;
  padding: var(--s3) var(--gutter) var(--s5); color: var(--ink);
  background: radial-gradient(70% 120% at 85% 0%, var(--frost-tint), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--bg));
  border-bottom: 1px solid var(--line);
}
.r-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.r-hero-bg img { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(34px) saturate(1.25); opacity: 0; transform: scale(1.1); transition: opacity .4s var(--ease); }
.r-hero-bg img.img-loaded { opacity: var(--hero-img-op); }
.r-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, var(--hero-fade) 100%); }
.r-hero.no-img .r-hero-bg img { display: none; }
.r-hero-inner { max-width: 980px; }
.back-hero { margin-left: -6px; color: var(--ink-dim); }
.r-hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.r-printed { margin-top: 6px; font: italic 400 var(--fs-17)/1.35 var(--serif); color: var(--brass); }
.r-printed span { font: 700 11px/1 var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; vertical-align: 2px; }
.r-en { margin-top: 8px; color: var(--ink-dim); font-size: var(--fs-17); max-width: 70ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--fs-12); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin: 4px 0 8px; }
@media (min-width: 1025px) {
  .r-hero { margin: 0; border-radius: var(--r4); border: 1px solid var(--line); padding: var(--s5) var(--s6) var(--s6); box-shadow: var(--shadow-1); }
}

/* the pass card: everything the pass needs, above the fold */
.pass-card {
  position: relative; display: grid; gap: var(--s4); margin: var(--s4) 0 0; padding: var(--s4);
  border-radius: var(--r4); background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2), var(--hairline-in);
}
.pass-media { border-radius: var(--r3); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.pass-info { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.pass-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.pass-fire { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: var(--r2); background: var(--brass-tint); border: 1px solid var(--brass-line); }
.pass-fire > .ic { width: 22px; height: 22px; color: var(--brass); }
.pass-fire span { display: flex; flex-direction: column; line-height: 1.1; }
.pass-fire small { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pass-fire strong { font: 700 var(--fs-20)/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.pass-served { display: inline-flex; gap: 6px; }
.pass-block { display: flex; flex-direction: column; gap: var(--s2); }
.pass-plating { padding-top: var(--s4); border-top: 1px solid var(--line); }
.plate-steps { list-style: none; counter-reset: pl; margin: var(--s2) 0 0; padding: 0; display: grid; gap: 8px; }
.plate-steps li { counter-increment: pl; position: relative; padding: 4px 0 4px 40px; font-size: var(--fs-17); line-height: 1.5; }
.plate-steps li::before { content: counter(pl); position: absolute; left: 0; top: 3px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 var(--fs-15)/1 var(--serif); color: var(--brass); border: 1px dashed var(--brass-line); background: var(--brass-tint); }
.pass-actions .r-actions { margin: 0; }
.pass-comp { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .pass-card { grid-template-columns: minmax(260px, 40%) minmax(0, 1fr); padding: var(--s5); gap: var(--s5); }
  .pass-plating, .pass-actions { grid-column: 1 / -1; }
  .pass-comp { grid-template-columns: 1fr; }
  .plate-steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px var(--s5); }
}
.tag-btn { cursor: pointer; font-family: inherit; }
.tag-btn:focus-visible { outline-offset: 2px; }
@media (hover: hover) { .tag-btn:hover { border-color: currentColor; } }
.verify-tight { padding: var(--s3) var(--s4); }
.verify-tight .verify-list, .verify-tight .verify-note { padding-left: 34px; margin-left: 0; }

.r-head { padding: var(--s2) 0 var(--s4); }
.r-head h1 { font-size: clamp(32px, 5vw, var(--fs-48)); font-weight: 700; }
.r-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s3); }
.r-yield { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); color: var(--ink-dim); }
.r-yield .ic { width: 15px; height: 15px; color: var(--muted); }

.r-tabs {
  position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top)); z-index: var(--z-sticky);
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
  background: var(--topbar-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.r-tabs-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.r-tabs-inner::-webkit-scrollbar { display: none; }
.r-tab { position: relative; flex: none; min-height: 50px; padding: 0 14px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: var(--fs-15); transition: color .18s var(--ease); }
.r-tab::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s var(--ease); }
.r-tab.is-active { color: var(--ink); }
.r-tab.is-active::after { transform: scaleX(1); }
@media (hover: hover) { .r-tab:hover { color: var(--ink); } }

.recipe-grid { display: grid; gap: var(--s6); margin-top: var(--s5); }
@media (min-width: 1025px) {
  .recipe-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s7); }
  .aside { position: sticky; top: calc(var(--topbar-h) + 74px); align-self: start; }
}
.recipe-main { min-width: 0; max-width: 820px; }
@media (min-width: 700px) { .r-lede { font-size: var(--fs-20); } }
.r-lede { font: 400 var(--fs-17)/1.55 var(--serif); color: var(--ink-dim); margin-bottom: var(--s5); max-width: 60ch; }
.r-allergens { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s5); }
.r-comps { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s5); }
.r-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.r-actions { margin-bottom: var(--s4); }

.verify-box { border: 1px solid var(--warn-line); background: var(--warn-tint); border-radius: var(--r3); padding: var(--s4); }
.verify-head { display: flex; gap: var(--s3); align-items: flex-start; }
.verify-head > .ic { width: 22px; height: 22px; color: var(--warn); margin-top: 1px; }
.verify-head strong { display: block; color: var(--warn); font-size: var(--fs-15); letter-spacing: .02em; }
.verify-head span { font-size: var(--fs-13); color: var(--ink-dim); }
.verify-list { list-style: none; margin: var(--s3) 0 0; padding: 0 0 0 34px; display: flex; flex-direction: column; gap: 8px; }
.verify-list li { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: var(--fs-15); }
.verify-note { margin: var(--s3) 0 0 34px; font-size: var(--fs-15); color: var(--ink); }
.verify-compact { padding: var(--s3); margin-bottom: var(--s3); font-size: var(--fs-13); }
.verify-compact .ic { width: 16px; height: 16px; color: var(--warn); vertical-align: -3px; }

.r-section { margin-top: var(--s7); scroll-margin-top: calc(var(--topbar-h) + 70px); }
.r-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.r-section-head h2 { font-size: var(--fs-24); display: flex; align-items: center; gap: 12px; }
.r-section-head h2::before { content: ""; width: 18px; height: 1px; background: var(--brass); }
.mep-list, .svc-list, .notes-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mep-list li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); font-size: var(--fs-17); line-height: 1.5; }
.mep-list li::before { content: ""; position: absolute; left: 4px; top: 20px; width: 8px; height: 8px; border: 1.5px solid var(--frost); border-radius: 2px; opacity: .7; }
.mep-list li:last-child { border-bottom: 0; }

/* ingredients + scale */
.scale-box { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.scale-chip { min-width: 44px; min-height: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-dim); font-weight: 600; font-variant-numeric: tabular-nums; }
.scale-chip.is-active { background: var(--surface-3); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.scale-custom { display: inline-flex; align-items: center; gap: 2px; padding-left: 8px; color: var(--muted); }
.scale-custom input { width: 60px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); text-align: center; font-variant-numeric: tabular-nums; }
.scale-hint { font-size: var(--fs-12); color: var(--muted); padding: 0 8px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ingredients { list-style: none; margin: 0; padding: 0; border-radius: var(--r3); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.ingredients li { display: grid; grid-template-columns: 104px 1fr; gap: var(--s4); padding: 12px var(--s4); border-bottom: 1px solid var(--line); align-items: baseline; }
.ingredients li:last-child { border-bottom: 0; }
.ingredients .qty { text-align: right; font: 600 var(--fs-17)/1.3 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); transition: color .2s var(--ease); }
.ingredients .qty-scaled { color: var(--accent); }
.ingredients .name { font-size: var(--fs-17); line-height: 1.4; }
.ingredients .name a { color: var(--brass); border-bottom: 1px dotted var(--brass-line); }
.ingredients .note { display: block; font-size: var(--fs-13); color: var(--muted); margin-top: 2px; }
.ing-ref .qty::after { content: ""; }

/* method */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { counter-increment: step; position: relative; padding: 14px 0 14px 56px; font-size: var(--fs-17); line-height: 1.62; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step::before {
  content: counter(step); position: absolute; left: 0; top: 12px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font: 600 var(--fs-17)/1 var(--serif); color: var(--brass);
  border: 1px solid var(--brass-line); background: var(--brass-tint); font-variant-numeric: lining-nums;
}
.step-phase { display: flex; align-items: center; gap: var(--s3); margin: var(--s5) 0 var(--s2); font-size: var(--fs-12); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--frost); }
.step-phase::before { content: ""; width: 24px; height: 1px; background: var(--frost-line); }
.step-phase::after { content: ""; flex: 1; height: 1px; background: var(--frost-line); }
.step-phase:first-child { margin-top: 0; }
.step-make { margin: var(--s4) 0; padding: var(--s4) var(--s4) var(--s2); border-radius: var(--r3); background: var(--surface); border: 1px solid var(--frost-line); box-shadow: var(--hairline-in); }
.step-make-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: var(--s3); border-bottom: 1px solid var(--line); font-size: var(--fs-17); }
.step-make-head strong { font-family: var(--serif); font-weight: 600; }
.step-make-tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--frost); background: var(--frost-tint); border: 1px solid var(--frost-line); padding: 3px 8px; border-radius: 6px; }
.step-make-yield { margin-left: auto; font-size: var(--fs-13); color: var(--muted); }
.step-ccp { background: var(--danger-tint); border: 1px solid var(--danger-line); border-radius: var(--r2); padding: 12px 16px 12px 56px; margin: 6px 0; }
.step-ccp::before { color: var(--danger); border-color: var(--danger-line); background: transparent; left: 10px; }
.ccp-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--danger); margin-bottom: 2px; }
.ccp-label .ic { width: 15px; height: 15px; }
.steps-plating .step::before { border-style: dashed; }

/* inline tokens: °C, durations, weights */
.tok { display: inline-block; padding: 0 6px; border-radius: 6px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.45; }
.tok-temp { color: var(--crit-ink); background: var(--crit-bg); }
.tok-time { color: var(--frost); background: var(--frost-tint); }
.tok-qty { color: var(--ink); background: var(--surface-3); }

/* service · notes */
.svc-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-17); }
.svc-list li:last-child { border-bottom: 0; }
.svc-fire { display: flex; gap: var(--s3); align-items: center; padding: 14px var(--s4) !important; border: 1px solid var(--brass-line) !important; border-radius: var(--r2); background: var(--brass-tint); font-weight: 600; margin-bottom: 6px; }
.svc-fire > .ic { width: 22px; height: 22px; color: var(--brass); }
.notes-list { gap: var(--s2); }
.notes-list li { padding: 14px var(--s4); border-radius: var(--r2); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-15); line-height: 1.6; color: var(--ink-dim); }
.ntag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-right: 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; vertical-align: 1px; background: var(--surface-3); color: var(--ink); }
.ntag-why { background: var(--frost-tint); color: var(--frost); }
.ntag-hold, .ntag-storage, .ntag-overnight { background: var(--ok-tint); color: var(--ok); }
.ntag-fix, .ntag-if { background: var(--warn-tint); color: var(--warn); }
.ntag-ccp { background: var(--danger-tint); color: var(--danger); }
.ntag-tip, .ntag-service { background: var(--brass-tint); color: var(--brass); }
.ntag-head { font-weight: 700; color: var(--ink); font-variant-caps: all-small-caps; letter-spacing: .05em; font-size: 1.08em; }
.note-ccp { border-color: var(--danger-line) !important; }

/* aside */
.aside { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.box { padding: var(--s4) var(--s4) var(--s4); border-radius: var(--r3); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--hairline-in); }
.box h3 { font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }
.box-sub { margin-top: var(--s4); }
.box-link { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; margin-top: 6px; font-size: var(--fs-13); font-weight: 600; color: var(--brass); }
.box-link .ic { width: 15px; height: 15px; }
.facts { margin: 0; display: flex; flex-direction: column; }
.fact { display: flex; justify-content: space-between; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-13); }
.fact:last-child { border-bottom: 0; }
.fact dt { color: var(--muted); }
.fact dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.aside-prep { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.aside-prep li { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-13); }
.aside-prep .role-chip { align-self: flex-start; margin-top: 2px; }
.aside-prep-when { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.used-by { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.used-by a { display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: 6px; margin: 0 -6px; border-radius: var(--r2); }
.used-by span { display: flex; flex-direction: column; min-width: 0; }
.used-by strong { font-size: var(--fs-15); font-weight: 600; }
.used-by small { font-size: var(--fs-12); color: var(--muted); }
@media (hover: hover) { .used-by a:hover { background: var(--surface-2); } }

.batch-panel { margin: var(--s5) 0 0; padding: var(--s4); border-radius: var(--r3); background: linear-gradient(160deg, var(--brass-tint), transparent 70%), var(--surface); border: 1px solid var(--brass-line); }
.batch-panel h2 { font-size: var(--fs-20); margin-bottom: var(--s3); }
.batch-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s3) var(--s4); }
.batch-grid dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.batch-grid dd { margin: 2px 0 0; font-weight: 600; font-size: var(--fs-15); }

/* ============ allergens ============ */
.gf-panel { padding: var(--s4); border-radius: var(--r3); background: var(--surface); border: 1px solid var(--line); margin-bottom: var(--s5); }
.gf-panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); min-height: 40px; }
.gf-panel-head h2 { font-size: var(--fs-20); }
.gf-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.gf-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-dim); font-weight: 600; transition: all .18s var(--ease); }
.gf-tick { width: 0; height: 16px; opacity: 0; transition: width .18s var(--ease), opacity .18s var(--ease); stroke-width: 2.4; }
.gf-chip.is-on .gf-tick { width: 16px; opacity: 1; }
.gf-chip.is-on.tier-critical { color: var(--crit-ink); background: var(--crit-bg); border-color: var(--crit-ink); }
.gf-chip.is-on.tier-common { color: var(--com-ink); background: var(--com-bg); border-color: var(--com-ink); }
.gf-chip.is-on.tier-other { color: var(--oth-ink); background: var(--oth-bg); border-color: var(--oth-ink); }
.gf-hint { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s5); border-radius: var(--r3); border: 1px dashed var(--line-strong); color: var(--ink-dim); }
.gf-hint .ic { width: 22px; height: 22px; color: var(--frost); }
.gf-cols { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .gf-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gf-col { padding: var(--s4); border-radius: var(--r3); background: var(--surface); border: 1px solid var(--line); border-top-width: 3px; }
.gf-col h2 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-20); }
.gf-col h2 .ic { width: 20px; height: 20px; }
.gf-safe { border-top-color: var(--ok); } .gf-safe h2 .ic { color: var(--ok); }
.gf-check { border-top-color: var(--warn); } .gf-check h2 .ic { color: var(--warn); }
.gf-contains { border-top-color: var(--danger); } .gf-contains h2 .ic { color: var(--danger); }
.gf-sub { font-size: var(--fs-12); color: var(--muted); margin: 4px 0 var(--s3); }
.gf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.gf-row { display: flex; gap: var(--s3); align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); min-height: 56px; }
.gf-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gf-text strong { font-weight: 600; }
.gf-text small { font-size: var(--fs-12); color: var(--muted); }
.gf-detail { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: var(--fs-12); color: var(--ink-dim); margin-top: 4px; }
.gf-detail .tag { height: 22px; font-size: 11.5px; }
.gf-reasons { flex-direction: column; align-items: flex-start; }
.gf-reasons .gf-hot { color: var(--warn); }
.gf-none { font-size: var(--fs-13); }
@media (hover: hover) { .gf-chip:not(.is-on):hover { border-color: var(--frost-line); color: var(--ink); } .gf-row:hover strong { color: var(--brass); } }

.mx-legend { display: flex; flex-wrap: wrap; gap: var(--s4); font-size: var(--fs-13); color: var(--muted); margin-bottom: var(--s3); }
.mx-legend b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; margin-right: 4px; font-size: 11px; }
.mx-wrap { overflow: auto; max-height: calc(100dvh - var(--topbar-h) - 210px); border-radius: var(--r3); border: 1px solid var(--line); background: var(--surface); overscroll-behavior: contain; }
.mx { border-collapse: separate; border-spacing: 0; width: 100%; font-size: var(--fs-13); }
.mx th, .mx td { border-bottom: 1px solid var(--line); }
.mx thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); vertical-align: bottom; }
.mx-corner { left: 0; z-index: 3 !important; text-align: left; padding: 12px var(--s4); font: 700 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mx-col { padding: 12px 2px; min-width: 40px; }
.mx-col span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-weight: 700; font-size: 12px; letter-spacing: .04em; display: inline-block; }
.mx-col.tier-critical { color: var(--crit-ink); } .mx-col.tier-common { color: var(--com-ink); } .mx-col.tier-other { color: var(--oth-ink); }
.mx tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; font-weight: 600; padding: 6px var(--s4); min-width: 180px; max-width: 280px; }
.mx tbody th a { display: inline-block; padding: 6px 0; }
.mx td { text-align: center; padding: 3px 2px; }
.mx-sec th { background: var(--bg) !important; font: 700 11px var(--sans) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); padding: 14px var(--s4) 8px !important; }
.mx-cell { width: 36px; height: 36px; border-radius: 50%; border: 1px solid transparent; background: transparent; font-size: 15px; line-height: 1; }
.mx-has.tier-critical { color: var(--crit-ink); background: var(--crit-bg); }
.mx-has.tier-common { color: var(--com-ink); background: var(--com-bg); }
.mx-has.tier-other { color: var(--oth-ink); background: var(--oth-bg); }
.mx-check { color: var(--warn); background: var(--warn-tint); border: 1px dashed var(--warn-line); font-weight: 800; font-size: 14px; }
.mx-none { color: var(--line-strong); }
.mx-note { margin-left: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); }
.alg-print-title, .order-print-title { display: none; }
@media (hover: hover) { .mx tbody tr:not(.mx-sec):hover th, .mx tbody tr:not(.mx-sec):hover td { background: var(--surface-2); } .mx-cell:hover { border-color: currentColor; } }

/* source modal */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: flex-end; justify-content: center; }
.modal-scrim { position: absolute; inset: 0; background: var(--modal-scrim); opacity: 0; transition: opacity .2s var(--ease); }
.modal-box { position: relative; width: 100%; max-width: 560px; max-height: 86vh; overflow: auto; padding: var(--s5); padding-bottom: calc(var(--s5) + env(safe-area-inset-bottom)); border-radius: var(--r4) var(--r4) 0 0; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(16px); opacity: 0; transition: transform .22s var(--ease), opacity .22s var(--ease); }
.modal.open .modal-scrim { opacity: 1; }
.modal.open .modal-box { transform: none; opacity: 1; }
@media (min-width: 700px) { .modal { align-items: center; } .modal-box { border-radius: var(--r4); } }
.modal-x { position: absolute; top: 14px; right: 14px; }
.modal-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); padding-right: 52px; }
.modal-head h2 { font-size: var(--fs-24); }
.modal-lede { margin: var(--s2) 0 var(--s4); color: var(--muted); font-size: var(--fs-13); }
.src-printed { font-size: var(--fs-13); margin-bottom: var(--s3); }
.src-printed span { font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.src-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.src-row { padding: var(--s3) var(--s4); border-radius: var(--r2); background: var(--surface-2); border: 1px solid var(--line); }
.src-main { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); font-weight: 600; }
.src-main a { color: var(--brass); }
.src-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.src-detail { margin-top: 4px; font-size: var(--fs-13); color: var(--ink-dim); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.modal-open { overflow: hidden; }

/* ============ prep board ============ */
.board-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 1fr); gap: var(--s2); overflow-x: auto; margin-bottom: var(--s5); scrollbar-width: none; }
.board-tabs::-webkit-scrollbar { display: none; }
.board-tab { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 12px var(--s4); border-radius: var(--r3); background: var(--surface); border: 1px solid var(--line); transition: all .18s var(--ease); }
.board-tab span { display: flex; align-items: center; font: 600 var(--fs-17)/1.2 var(--serif); }
.board-tab small { font-size: var(--fs-12); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-tab.is-active { background: var(--surface-2); border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
@media (min-width: 1025px) { .board-tabs { grid-auto-columns: minmax(200px, 260px); } }
@media (hover: hover) { .board-tab:not(.is-active):hover { border-color: var(--line-strong); } }

.prep-top { margin-bottom: var(--s4); }
.progress { padding: var(--s4); border-radius: var(--r3); background: var(--surface); border: 1px solid var(--line); }
.progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: 10px; }
.progress-count { font: 600 var(--fs-20)/1 var(--serif); color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.progress-count strong { font-size: var(--fs-30); color: var(--ink); font-weight: 700; }
.progress-meta { font-size: var(--fs-13); color: var(--muted); }
.progress-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress-bar > div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .3s var(--ease); }

.chk-card { margin-bottom: var(--s5); }
.chk-grid { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .chk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chk-list { border-radius: var(--r3); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.chk-list h3 { display: flex; align-items: center; justify-content: space-between; padding: var(--s3) var(--s4); font-size: var(--fs-17); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.chk-count { font: 600 var(--fs-12) var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }
.chk-count.is-complete { color: var(--ok); border-color: var(--ok-line); background: var(--ok-tint); }

.prep-group { margin-bottom: var(--s4); border-radius: var(--r3); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.prep-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: var(--s3) var(--s4); background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: var(--fs-20); }
.pg-time { display: inline-flex; align-items: center; gap: 5px; font: 600 var(--fs-13) var(--sans); color: var(--brass); }
.pg-time .ic { width: 15px; height: 15px; }
.prep-list { list-style: none; margin: 0; padding: 0; }
.prep-list > li { border-bottom: 1px solid var(--line); transition: opacity .25s var(--ease); }
.prep-list > li:last-child { border-bottom: 0; }
.prep-list > li.is-leaving { opacity: 0; }

/* the big tap-anywhere tick row */
.tick-row { position: relative; display: flex; align-items: flex-start; gap: 14px; min-height: 60px; padding: 14px var(--s4); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s var(--ease); }
.tick-row input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tick-box { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 1.5px solid var(--line-strong); background: var(--surface-2); color: transparent; transition: all .18s var(--ease); }
.tick-box .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.tick-row input:checked + .tick-box { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.tick-row input:focus-visible + .tick-box { outline: 2px solid var(--focus); outline-offset: 2px; }
.tick-row:active { background: var(--surface-2); }
.tick-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.tick-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tick-text { font-size: var(--fs-17); font-weight: 600; line-height: 1.35; transition: color .18s var(--ease); }
.tick-sm { min-height: 52px; padding: 11px var(--s4); border-bottom: 1px solid var(--line); align-items: center; }
.tick-sm:last-child { border-bottom: 0; }
.tick-sm .tick-text { font-size: var(--fs-15); font-weight: 500; flex: 1; }
.tick-sm .tick-box { width: 26px; height: 26px; }
.tick-time { font-size: var(--fs-12); color: var(--ok); font-variant-numeric: tabular-nums; }
.tick-lg { min-height: 72px; padding: 18px var(--s4); }
.tick-lg .tick-box { width: 36px; height: 36px; border-radius: 10px; }
.tick-lg .tick-text { font-size: var(--fs-20); }
.tick-when { font-size: var(--fs-13); color: var(--ink-dim); }
.tick-for { font-size: var(--fs-13); color: var(--muted); }
.tick-for a { color: var(--brass); padding: 4px 0; }
.tick-meta { font-size: var(--fs-13); color: var(--ink-dim); }
.tick-batch { display: flex; flex-wrap: wrap; gap: 4px var(--s4); margin-top: 4px; padding: 8px 10px; border-radius: var(--r1); background: var(--brass-tint); font-size: var(--fs-12); color: var(--ink-dim); }
.tick-batch strong { color: var(--ink); font-weight: 600; }
.tick-notes { font-size: var(--fs-15); color: var(--ink-dim); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.is-open .tick-notes { -webkit-line-clamp: unset; display: block; }
.is-done .tick-text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.is-done .tick-body > :not(.tick-title) { opacity: .6; }
.ev-more { flex: none; align-self: center; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-dim); font-size: var(--fs-13); font-weight: 600; }
.ev-more .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.ev-more[aria-expanded="true"] .ic { transform: rotate(180deg); }
@media (hover: hover) { .tick-row:hover { background: var(--surface-2); } }

.ev-head { display: grid; gap: var(--s4); margin-bottom: var(--s4); align-items: center; }
@media (min-width: 900px) { .ev-head { grid-template-columns: 1fr minmax(320px, 440px); } }
.ev-title h2 { display: flex; align-items: center; font-size: var(--fs-30); }
.ev-title .ic-star { width: 16px; height: 16px; margin-left: 8px; }
.ev-title p { color: var(--muted); margin-top: 4px; }
.seg-days { display: flex; flex-wrap: nowrap; overflow-x: auto; margin-bottom: var(--s4); max-width: 100%; scrollbar-width: none; }
.ev-foot { display: flex; justify-content: flex-end; margin-top: var(--s4); }

.order-panel { display: flex; flex-direction: column; gap: var(--s4); }
.order-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); padding: var(--s4); border-radius: var(--r3); background: var(--surface); border: 1px solid var(--line); }
.order-head .btn { margin-left: auto; }
.guest-field { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.guest-field .ic { width: 22px; height: 22px; color: var(--brass); }
.guest-field input { width: 120px; height: 52px; border-radius: var(--r2); border: 1px solid var(--line-strong); background: var(--surface-2); text-align: center; font: 600 var(--fs-24) var(--serif); font-variant-numeric: tabular-nums; }
.guest-field input:focus { border-color: var(--accent); outline: none; }
.order-groups { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .order-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.order-group { border-radius: var(--r3); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.order-group h3 { padding: var(--s3) var(--s4); font-size: var(--fs-17); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.order-table { width: 100%; border-collapse: collapse; }
.order-table th, .order-table td { padding: 11px var(--s4); border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.order-table tr:last-child th, .order-table tr:last-child td { border-bottom: 0; }
.order-table .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; width: 1%; white-space: nowrap; color: var(--ink); }
.order-table .unit { width: 1%; color: var(--muted); padding-left: 0; }


/* ============ utilities ============ */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.print-title { display: none; }

/* ============ language switch ============ */
.lang-switch { flex: none; display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.lang-switch button { min-width: 40px; min-height: 38px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 700 var(--fs-13)/1 var(--sans); letter-spacing: .06em; transition: background .18s var(--ease), color .18s var(--ease); }
.lang-switch button.is-active { background: var(--surface-3); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-1); }
@media (hover: hover) { .lang-switch button:not(.is-active):hover { color: var(--ink); } }
@media (max-width: 380px) { .lang-switch button { min-width: 34px; padding: 0 5px; } }

/* ============ sticky control bars ============ */
.sticky-bar {
  position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top)); z-index: var(--z-sticky);
  display: flex; align-items: center; gap: var(--s2); margin: 0 calc(-1 * var(--gutter)) var(--s4); padding: 8px var(--gutter);
  background: var(--topbar-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
}
.sb-scroll { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; margin: -4px 0; padding: 4px 0; }
.sb-scroll::-webkit-scrollbar { display: none; }
.seg-svc { flex: none; }
.seg-layout { flex: none; }
.seg-layout .seg-btn { padding: 0 12px; min-height: 40px; }
.seg-layout .ic { width: 18px; height: 18px; }
@media (max-width: 699px) { .seg-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .seg-layout .seg-btn { min-width: 44px; justify-content: center; padding: 0; } }
@media (min-width: 1025px) { .sticky-bar { margin-left: 0; margin-right: 0; border-radius: var(--r3); border: 1px solid var(--line); padding: 8px; top: calc(var(--topbar-h) + 8px); } }

/* ============ today strip ============ */
.today-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 var(--s3); padding: 10px var(--s4);
  border-radius: var(--r3); background: linear-gradient(100deg, var(--surface-2), var(--surface) 60%); border: 1px solid var(--line);
  box-shadow: var(--hairline-in); font-size: var(--fs-13); color: var(--ink-dim); line-height: 1.3;
}
.ts-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; min-height: 28px; }
.ts-item .ic { width: 16px; height: 16px; color: var(--muted); }
.ts-item strong, .ts-item b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.ts-date strong { font-size: var(--fs-15); }
.ts-sep { color: var(--muted); }
.ts-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-tint); }
.ts-team { gap: 4px 10px; flex-wrap: wrap; white-space: normal; }
.ts-chef { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ts-chef small { color: var(--muted); font-size: var(--fs-12); }
.ts-event { color: var(--ink-dim); border-radius: 8px; padding: 0 4px; margin: 0 -4px; min-height: 32px; }
.ts-event .ic-star { margin: 0; width: 13px; height: 13px; }
@media (hover: hover) { .ts-event:hover { color: var(--ink); background: var(--surface-3); } }
@media (max-width: 559px) { .today-strip { gap: 4px 12px; padding: 8px 12px; } }

/* level badges */
.lvl { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.lvl-closed, .lvl-pre { color: var(--lvl-closed); background: var(--lvl-closed-bg); }
.lvl-low { color: var(--lvl-low); background: var(--lvl-low-bg); }
.lvl-normal { color: var(--lvl-normal); background: var(--lvl-normal-bg); }
.lvl-high { color: var(--lvl-high); background: var(--lvl-high-bg); }
.lvl-peak { color: var(--lvl-peak); background: var(--lvl-peak-bg); }

/* roles */
.role-dot { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px var(--surface-3); }
.role-dot.role-grill { background: var(--role-grill); box-shadow: 0 0 0 3px var(--role-grill-bg); }
.role-dot.role-sauce { background: var(--role-sauce); box-shadow: 0 0 0 3px var(--role-sauce-bg); }
.role-dot.role-cold { background: var(--role-cold); box-shadow: 0 0 0 3px var(--role-cold-bg); }
.role-dot.role-lunch { background: var(--role-lunch); box-shadow: 0 0 0 3px var(--role-lunch-bg); }
.role-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; background: var(--surface-3); color: var(--ink-dim); white-space: nowrap; }
.role-chip .role-dot { width: 7px; height: 7px; box-shadow: none; }
.role-chip.role-grill { color: var(--role-grill); background: var(--role-grill-bg); }
.role-chip.role-sauce { color: var(--role-sauce); background: var(--role-sauce-bg); }
.role-chip.role-cold { color: var(--role-cold); background: var(--role-cold-bg); }
.role-chip.role-lunch { color: var(--role-lunch); background: var(--role-lunch-bg); }

/* equipment chips */
.eq-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px 0 9px; border-radius: 8px; font-size: var(--fs-13); font-weight: 600; color: var(--frost); background: var(--frost-tint); border: 1px solid var(--frost-line); white-space: nowrap; }
.eq-chip .ic { width: 15px; height: 15px; }
.card-meta .eq-chip { min-height: 24px; font-size: 11.5px; padding: 0 8px 0 7px; }

/* ============ menu list view ============ */
.dish-list { list-style: none; margin: 0; padding: 0; border-radius: var(--r3); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; }
.dish-list > li + li { border-top: 1px solid var(--line); }
.dish-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: var(--s3); min-height: 72px; padding: 10px var(--s3) 10px 10px; transition: background .15s var(--ease); }
.ph-row { width: 84px; height: 56px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.ph-row .ph-mark { width: 16px; height: 16px; padding: 0; border: 0; }
.dr-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dr-title { font: 600 var(--fs-17)/1.25 var(--serif); }
.dr-printed { font-size: var(--fs-12); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-algs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.dr-algs .tag { height: 22px; padding: 0 8px; font-size: 11.5px; }
.dr-algs .tag-check { width: 22px; padding: 0; }
.dr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dr-side .price { font-size: var(--fs-17); }
.dr-fire { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-13); font-weight: 650; color: var(--ink-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dr-fire .ic { width: 15px; height: 15px; color: var(--brass); }
@media (hover: hover) { .dish-row:hover { background: var(--surface-2); } }
@media (min-width: 1100px) { .menu-list .dish-list { display: grid; grid-template-columns: 1fr 1fr; } .menu-list .dish-list > li + li { border-top: 0; } .menu-list .dish-list > li { border-bottom: 1px solid var(--line); } .menu-list .dish-list > li:nth-child(odd) { border-right: 1px solid var(--line); } }

/* ============ prep: planning bar, scale banner, roles ============ */
.page-head-text { min-width: 0; }
.plan-bar { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--hairline-in); }
.plan-bar .icon-btn { border: 0; background: transparent; }
.plan-date { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; }
.plan-date .ic { width: 18px; height: 18px; color: var(--muted); }
.plan-date, .jb-date-box { min-height: 44px; cursor: pointer; }
.plan-date-text { font: 650 var(--fs-15)/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; min-width: 92px; }
.date-overlay { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; color-scheme: inherit; }
.plan-date:focus-within, .jb-date-box:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
.jb-date-box { position: relative; display: inline-flex; align-items: center; height: 46px; padding: 0 14px; border-radius: var(--r2); border: 1px solid var(--line-strong); background: var(--surface-2); }
.plan-bar .btn { border-radius: 999px; }

.scale-banner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r3); border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-15); color: var(--ink-dim); box-shadow: var(--hairline-in); }
.scale-banner > .ic { width: 24px; height: 24px; flex: none; }
.scale-banner p { flex: 1 1 260px; }
.scale-banner strong { color: var(--ink); }
.sb-peak { border-color: var(--lvl-peak); background: linear-gradient(100deg, var(--lvl-peak-bg), transparent 75%), var(--surface); } .sb-peak > .ic { color: var(--lvl-peak); }
.sb-high { border-color: var(--warn-line); background: linear-gradient(100deg, var(--lvl-high-bg), transparent 75%), var(--surface); } .sb-high > .ic { color: var(--lvl-high); }
.sb-normal > .ic { color: var(--lvl-normal); } .sb-low > .ic { color: var(--lvl-low); }
.sb-pre, .sb-closed { border-style: dashed; border-color: var(--line-strong); } .sb-pre > .ic, .sb-closed > .ic { color: var(--frost); }

.role-bar { padding-top: 8px; padding-bottom: 8px; }
.role-filters { display: flex; gap: 6px; width: max-content; }
.role-filter {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px 6px 14px; border-radius: var(--r2);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-dim); text-align: left; transition: all .18s var(--ease);
}
.role-filter > .ic { width: 18px; height: 18px; color: var(--muted); }
.rf-text { display: flex; flex-direction: column; line-height: 1.2; }
.rf-text b { font-size: var(--fs-13); font-weight: 700; color: var(--ink); white-space: nowrap; }
.rf-text small { font-size: var(--fs-12); color: var(--muted); white-space: nowrap; }
.rf-n { margin-left: 4px; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--surface-3); color: var(--ink-dim); }
.role-filter.is-active { border-color: var(--accent); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); }
.role-filter.is-active .rf-n { background: var(--accent); color: var(--on-accent); }
@media (hover: hover) { .role-filter:not(.is-active):hover { border-color: var(--line-strong); } }

.prep-top { display: grid; gap: var(--s3); margin-bottom: var(--s4); }
@media (min-width: 900px) { .prep-top { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.tick-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tick-tags:empty { display: none; }

/* checklists as collapsible cards */
.chk-list > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 52px; padding: var(--s3) var(--s4); cursor: pointer; background: var(--surface-2); font: 600 var(--fs-17)/1.2 var(--serif); }
.chk-list > summary::-webkit-details-marker { display: none; }
.chk-list[open] > summary { border-bottom: 1px solid var(--line); }
.chk-name { display: inline-flex; align-items: center; gap: 8px; }
.chk-chev { width: 18px; height: 18px; color: var(--muted); transform: rotate(-90deg); transition: transform .2s var(--ease); }
.chk-list[open] .chk-chev { transform: none; }

/* ============ team ============ */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s3); margin: var(--s6) 0 var(--s3); }
.sec-head h2 { font-size: var(--fs-24); }
.sec-head .count { margin-left: 0; }
.sec-head-btn { margin-left: auto; }
.duty .sec-head { margin-top: var(--s2); }
.duty-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
@media (max-width: 559px) { .duty-card { padding: var(--s3); } .duty-chef { font-size: var(--fs-20); } .duty-does { font-size: var(--fs-12); } }
.duty-card { position: relative; overflow: hidden; padding: var(--s4); border-radius: var(--r3); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1), var(--hairline-in); }
.duty-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--muted); }
.duty-card.role-grill::before { background: var(--role-grill); } .duty-card.role-sauce::before { background: var(--role-sauce); }
.duty-card.role-cold::before { background: var(--role-cold); } .duty-card.role-lunch::before { background: var(--role-lunch); }
.duty-role { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.duty-chef { margin: 8px 0 6px; font: 700 var(--fs-24)/1.15 var(--serif); }
.duty-does { font-size: var(--fs-13); color: var(--ink-dim); }
.duty-note { margin-top: var(--s2); font-size: var(--fs-13); }

.rota-wrap { overflow-x: auto; border-radius: var(--r3); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); overscroll-behavior-x: contain; }
.rota { border-collapse: separate; border-spacing: 0; width: 100%; font-size: var(--fs-13); font-variant-numeric: tabular-nums; }
.rota th, .rota td { border-bottom: 1px solid var(--line); text-align: center; padding: 0; }
.rota thead th { background: var(--surface-2); font-weight: 600; color: var(--muted); }
.rota-corner { position: sticky; left: 0; z-index: 2; text-align: left !important; padding: 8px var(--s3) !important; font: 700 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.rota-week { padding: 8px 4px !important; font-size: var(--fs-12); font-weight: 700; color: var(--ink-dim) !important; border-left: 1px solid var(--line); white-space: nowrap; }
.rota-week small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.rota-week .ts-tag { margin-left: 6px; }
.rota-week.is-current { color: var(--accent) !important; background: var(--accent-tint) !important; }
.rota-day { min-width: 34px; padding: 6px 0 !important; line-height: 1.1; }
.rota-day span { display: block; font-size: 10.5px; text-transform: uppercase; }
.rota-day b { display: block; color: var(--ink-dim); }
.rota-day.is-wkend span { color: var(--brass); }
.rota-name { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left !important; min-width: 150px; border-right: 1px solid var(--line); }
.rota-name label { position: relative; display: flex; align-items: center; }
.chef-input { width: 100%; min-height: 46px; padding: 0 30px 0 var(--s3); border: 0; background: transparent; font: 600 var(--fs-15) var(--sans); color: var(--ink); border-radius: 8px; }
.chef-input:focus { outline: 2px solid var(--focus); outline-offset: -4px; background: var(--surface-2); }
.chef-edit { position: absolute; right: 8px; width: 15px; height: 15px; color: var(--muted); pointer-events: none; opacity: .6; }
.rota td { height: 46px; min-width: 34px; }
.rota-on span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-weight: 800; font-size: 12px; }
.rota-on.role-grill span { color: var(--role-grill); background: var(--role-grill-bg); }
.rota-on.role-sauce span { color: var(--role-sauce); background: var(--role-sauce-bg); }
.rota-on.role-cold span { color: var(--role-cold); background: var(--role-cold-bg); }
.rota-on.role-lunch span { color: var(--role-lunch); background: var(--role-lunch-bg); }
.rota-off { color: var(--line-strong); }
.rota .is-plan { background: var(--accent-tint); box-shadow: inset 1px 0 0 var(--accent), inset -1px 0 0 var(--accent); }
.rota thead .is-plan b { color: var(--accent); }
.rota .is-today b { text-decoration: underline; text-underline-offset: 3px; }
.rota-count { font-weight: 700; color: var(--ink); padding: 0 var(--s3) !important; border-left: 1px solid var(--line); white-space: nowrap; }
.rota tfoot th { text-align: left; padding: 8px var(--s3); font-size: var(--fs-12); font-weight: 600; color: var(--muted); position: sticky; left: 0; background: var(--surface); }
.rota tfoot td { color: var(--muted); font-weight: 700; height: 36px; border-bottom: 0; }
.rota tfoot th { border-bottom: 0; }
.rota-legend { display: flex; flex-wrap: wrap; gap: 6px var(--s4); margin-top: var(--s3); font-size: var(--fs-13); color: var(--ink-dim); align-items: center; }
.rota-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.rota-key { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 11px; }
.rota-key.role-grill { color: var(--role-grill); background: var(--role-grill-bg); } .rota-key.role-sauce { color: var(--role-sauce); background: var(--role-sauce-bg); }
.rota-key.role-cold { color: var(--role-cold); background: var(--role-cold-bg); } .rota-key.role-lunch { color: var(--role-lunch); background: var(--role-lunch-bg); }

.notice { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); margin-bottom: var(--s3); border-radius: var(--r2); border: 1px solid var(--warn-line); background: var(--warn-tint); color: var(--ink-dim); }
.notice .ic { width: 20px; height: 20px; color: var(--warn); margin-top: 2px; }
.notice strong { color: var(--warn); }
.svc-hours { display: flex; flex-wrap: wrap; gap: 8px var(--s4); margin-bottom: var(--s3); font-size: var(--fs-13); color: var(--ink-dim); }
.svc-hours span { display: inline-flex; align-items: center; gap: 6px; }
.svc-hours .ic { width: 15px; height: 15px; color: var(--muted); }
.svc-hours b { color: var(--ink); }
.eq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-radius: var(--r3); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
@media (min-width: 900px) { .eq-list { grid-template-columns: 1fr 1fr; } .eq-list li:nth-child(odd) { border-right: 1px solid var(--line); } }
.eq-list li { display: flex; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
.eq-count { flex: none; width: 30px; font: 700 var(--fs-17)/1.3 var(--serif); color: var(--brass); font-variant-numeric: tabular-nums; }
.eq-list strong { font-weight: 650; }
.eq-list p { font-size: var(--fs-13); color: var(--muted); margin-top: 2px; }

.hh-cols { display: grid; gap: var(--s5); }
.hh-col h3 { font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s2); }
.hh-grid { list-style: none; margin: 0; padding: var(--s2); display: grid; grid-template-columns: 1fr; gap: 6px; border-radius: var(--r3); background: var(--surface-2); border: 1px solid var(--line); }
@media (min-width: 640px) { .hh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hh-drawer { position: relative; min-height: 76px; padding: 30px 12px 12px; border-radius: var(--r1); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--hairline-in); font-size: var(--fs-13); display: flex; flex-direction: column; gap: 3px; }
.hh-drawer a, .hh-drawer strong { font-weight: 650; color: var(--ink); line-height: 1.25; }
.hh-drawer a { color: var(--brass); }
.hh-drawer small { color: var(--muted); font-size: var(--fs-12); }
.hh-drawer.is-empty { background: transparent; border-style: dashed; }
.hh-kettle { margin-top: var(--s2); min-height: 0; background: var(--surface-2); }
.hh-n { position: absolute; top: 8px; left: 12px; right: 10px; display: flex; justify-content: space-between; font: 700 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hh-temp { color: var(--crit-ink); letter-spacing: 0; }
.hh-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.hh-item a { font-size: var(--fs-15); }
.hh-item em { font-style: normal; font-size: var(--fs-12); color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.hh-drawer > small { margin-top: 4px; line-height: 1.45; }

/* ============ season ============ */
.season-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 0 0 var(--s4); border-radius: var(--r3); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.season-facts > div { padding: var(--s3) var(--s4); background: var(--surface); }
.season-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.season-facts dd { margin: 4px 0 0; font: 600 var(--fs-17)/1.2 var(--serif); }
.season-facts dd a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.periods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.period { display: grid; grid-template-columns: 1fr auto; gap: var(--s2) var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r3); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--lvl-normal); }
.lvl-row-closed { border-left-color: var(--lvl-closed); } .lvl-row-low { border-left-color: var(--lvl-low); }
.lvl-row-high { border-left-color: var(--lvl-high); } .lvl-row-peak { border-left-color: var(--lvl-peak); }
.period.is-current { box-shadow: 0 0 0 2px var(--accent), var(--shadow-2); }
.period-when { grid-column: 1; display: flex; align-items: baseline; gap: 8px; }
.period-when strong { font-variant-numeric: tabular-nums; }
.period-when small { color: var(--muted); font-size: var(--fs-12); }
.period-main { grid-column: 1 / -1; }
.period-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.period-title h3 { font-size: var(--fs-20); }
.period-main p { margin-top: 4px; color: var(--ink-dim); font-size: var(--fs-13); }
.period-ev { display: flex; align-items: center; gap: 4px; color: var(--brass) !important; font-weight: 600; }
.period-ev .ic-star { margin: 0; }
.period-covers { grid-column: 1; display: flex; gap: var(--s5); }
.period-covers span { display: flex; flex-direction: column; }
.period-covers small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.period-covers b { font: 700 var(--fs-20)/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.period-covers em { font-style: normal; font-size: var(--fs-12); color: var(--muted); }
.period-plan { grid-column: 2; grid-row: 1; justify-self: end; }
@media (min-width: 900px) {
  .period { grid-template-columns: 150px minmax(0, 1fr) 220px auto; align-items: center; }
  .period-when { grid-column: 1; flex-direction: column; gap: 2px; }
  .period-main { grid-column: 2; }
  .period-covers { grid-column: 3; }
  .period-plan { grid-column: 4; grid-row: auto; }
}
.season-foot { margin-top: var(--s4); font-size: var(--fs-13); }

/* ============ events ============ */
.ev-cd { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--fs-13); color: var(--ink-dim); }
.ev-cd .ic { width: 15px; height: 15px; color: var(--brass); }
.ev-cd-unset { color: var(--warn); }
.jb-picker { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-bottom: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r3); background: linear-gradient(100deg, var(--brass-tint), transparent 70%), var(--surface); border: 1px solid var(--brass-line); }
.jb-field { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; }
.jb-field .ic { width: 20px; height: 20px; color: var(--brass); }
.jb-hint { display: flex; gap: 8px; align-items: flex-start; flex: 1 1 280px; font-size: var(--fs-13); color: var(--ink-dim); }
.jb-hint .ic { width: 16px; height: 16px; color: var(--frost); margin-top: 1px; }
.seg-days .seg-btn { min-height: 52px; }
.day-lbl { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.day-lbl small { font-size: 11.5px; font-weight: 600; color: var(--muted); }

/* recipe text at kitchen distance */
.step, .mep-list li, .ingredients .name, .svc-list li { font-size: 18px; }
@media (min-width: 760px) { .step, .mep-list li, .svc-list li { font-size: 19px; line-height: 1.6; } .ingredients .name, .ingredients .qty { font-size: 18px; } }
.notes-list li { font-size: var(--fs-17); }

/* ============ cook mode ============ */
.cook-open { overflow: hidden; }
.cook-mode { position: fixed; inset: 0; z-index: var(--z-cook); display: grid; grid-template-rows: auto auto 1fr auto; background: radial-gradient(80% 60% at 50% 0%, var(--surface-2), var(--bg)); color: var(--ink); padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); animation: fade .2s var(--ease); }
.cook-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s4) var(--s5); }
.cook-title { display: flex; flex-direction: column; }
.cook-title span { font: 600 var(--fs-20) var(--serif); }
.cook-title small { color: var(--muted); font-size: var(--fs-13); font-variant-numeric: tabular-nums; }
.cook-close { width: 52px; height: 52px; }
.cook-progress { display: flex; gap: 4px; padding: 0 var(--s5); }
.cook-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); transition: background .2s var(--ease); }
.cook-progress .is-past { background: var(--accent-2); }
.cook-progress .is-now { background: var(--accent); }
.cook-body { display: grid; align-items: center; gap: var(--s6); padding: var(--s5) clamp(24px, 6vw, 96px); overflow: auto; }
.cook-body.has-img { grid-template-columns: 1fr; }
@media (min-width: 900px) { .cook-body.has-img { grid-template-columns: 1.2fr 1fr; } }
.cook-copy { max-width: 1100px; }
.cook-phase { font-size: var(--fs-13); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--frost); margin-bottom: var(--s4); }
.cook-step-n { font: 700 clamp(56px, 8vw, 96px)/1 var(--serif); color: var(--brass); margin-bottom: var(--s3); font-variant-numeric: lining-nums; }
.cook-step-text { font-size: clamp(26px, 3.4vw, 46px); line-height: 1.35; font-weight: 500; letter-spacing: -.01em; text-wrap: pretty; }
.cook-step-text.is-ccp { color: var(--danger); }
.cook-sub { margin: var(--s5) 0 0; padding-left: 1.3em; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.5; color: var(--ink-dim); }
.cook-sub li { margin-bottom: 8px; }
.cook-img { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r4); overflow: hidden; box-shadow: var(--shadow-2); }
.cook-nav { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s3); padding: var(--s4) var(--s5) var(--s5); }
.cook-nav .ic { width: 22px; height: 22px; }

/* ============ empty / error / toast ============ */
.empty-state { text-align: center; padding: var(--s7) var(--s4); max-width: 520px; margin: var(--s5) auto; }
.empty-mark { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--frost); margin-bottom: var(--s4); }
.empty-mark .ic { width: 30px; height: 30px; stroke-width: 1.3; }
.empty-state h2 { font-size: var(--fs-24); margin-bottom: var(--s2); }
.empty-state p { color: var(--muted); }
.empty-state .actions { justify-content: center; margin-top: var(--s4); }
.app-error { max-width: 640px; margin: var(--s7) auto; padding: var(--s5); border-radius: var(--r3); border: 1px solid var(--danger-line); background: var(--danger-tint); }
.app-error h1 { font-size: var(--fs-24); margin-bottom: var(--s2); }
.app-error .actions { margin-top: var(--s4); }
.app-error-detail { white-space: pre-wrap; font-size: var(--fs-12); color: var(--muted); }
.toast { position: fixed; left: 50%; top: calc(var(--topbar-h) + env(safe-area-inset-top) + 12px); z-index: var(--z-toast); transform: translate(-50%, -8px); padding: 10px 18px; border-radius: 999px; background: var(--surface-3); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); font-weight: 600; font-size: var(--fs-13); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

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

/* ============ print ============ */
@media print {
  :root, :root[data-theme="snow"] {
    --bg: #fff; --surface: #fff; --surface-2: #fff; --surface-3: #f2f2f2; --ink: #000; --ink-dim: #222; --muted: #555;
    --line: #ccc; --line-strong: #999; --brass: #000; --price: #000; --accent: #000; --frost: #333;
    --crit-ink: #000; --com-ink: #000; --oth-ink: #000; --crit-bg: #fff; --com-bg: #fff; --oth-bg: #fff;
    --warn: #000; --warn-tint: #fff; --danger: #000; --danger-tint: #fff; --ok: #000;
  }
  body { background: #fff; color: #000; font-size: 11pt; }
  .sidebar, .topbar, .bottom-nav, .toast, .r-tabs, .r-actions, .seg-wrap, .back-link, .page-head-actions,
  .toolbar, .board-tabs, .ev-foot, .ev-more, .modal, .skip-link, .card-media::after,
  .sticky-bar, .today-strip, .plan-bar, .lang-switch, .scale-banner, .prep-top .toolbar-actions, .jb-picker, .sec-head-btn, .period-plan { display: none !important; }
  .print-title { display: block; font: 700 14pt Georgia, serif; margin-bottom: 4mm; }
  /* print scopes: only the part that was asked for */
  body[data-print-scope="rota"] .view > :not(.rota-sec), body[data-print-scope="rota"] .rota-legend .muted { display: none !important; }
  body[data-print-scope="rota"] .rota-wrap { overflow: visible; border: 0; box-shadow: none; }
  body[data-print-scope="rota"] .rota { font-size: 9pt; }
  body[data-print-scope="rota"] .chef-input { font-size: 10pt; min-height: 0; padding: 2pt 0; }
  body[data-print-scope="rota"] .chef-edit, body[data-print-scope="rota"] .rota-sec .sec-head { display: none !important; }
  body[data-print-scope="rota"] .rota td { height: 18pt; }
  body[data-print-scope="rota"] .rota-on span { border: 0.5pt solid #000; color: #000 !important; background: #fff !important; width: 16pt; height: 16pt; }
  body[data-print-scope="rota"] .rota .is-plan { box-shadow: none; background: #eee; }
  body[data-print-scope="prep"] .chk-card, body[data-print-scope="prep"] .page-head, body[data-print-scope="prep"] .progress { display: none !important; }
  body[data-print-scope="prep"] .tick-for a, body[data-print-scope="prep"] .tick-batch { font-size: 9pt; }
  body[data-print-scope="prep"] .tick-row { min-height: 0; padding: 5pt 6pt; }
  body[data-print-scope="prep"] .tick-text { font-size: 11pt; }
  body[data-print-scope="prep"] .prep-group-head { font-size: 13pt; padding: 4pt 6pt; }
  body[data-print-scope="matrix"] .page-head-actions, body[data-print-scope="matrix"] .page-head .page-sub { display: none !important; }
  .role-chip, .lvl, .eq-chip { background: #fff !important; color: #000 !important; border: 0.5pt solid #999; }
  .role-dot { box-shadow: none !important; background: #000 !important; }
  .view { margin: 0 !important; padding: 0 !important; max-width: none; }
  .card, .box, .ingredients, .prep-group, .chk-list, .progress, .notes-list li, .step-make, .order-group { box-shadow: none !important; border-color: #ccc !important; break-inside: avoid; }
  a { color: #000 !important; }
  .tok { background: none !important; padding: 0; color: #000 !important; }
  .tag { border-color: #999 !important; color: #000 !important; background: #fff !important; }

  /* recipe: no hero image, black on white */
  .r-hero { margin: 0 0 4mm; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; color: #000; }
  .r-hero-bg, .back-hero { display: none !important; }
  .pass-card { box-shadow: none; border: 1pt solid #999; padding: 4mm; grid-template-columns: 45mm 1fr; gap: 4mm; break-inside: avoid; }
  .pass-plating, .pass-actions { grid-column: 1 / -1; }
  .pass-actions { display: none; }
  .pass-fire { background: none; border-color: #999; }
  .badge-fire { background: none; color: #000; box-shadow: none; padding: 0; }
  .recipe-grid { display: block; margin-top: 0; }
  .aside { position: static; margin-top: 8mm; display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
  .r-section { margin-top: 7mm; break-inside: auto; }
  .r-section-head { break-after: avoid; }
  .step, .ingredients li { break-inside: avoid; }
  .step::before { background: #fff !important; border-color: #000 !important; color: #000 !important; }
  .verify-box { border: 1.5px solid #000; background: #fff; }
  .price, .r-hero .price, .badge-fire .ic { color: #000 !important; }
  .scale-box, .mx-legend span:last-child { display: none !important; }
  .r-lede { font-size: 12pt; }

  /* allergen matrix: A4 landscape, light */
  body[data-print="landscape"] .page-head p, body[data-print="landscape"] .mx-legend { font-size: 9pt; }
  .alg-print-title, .order-print-title { display: block; font: 700 14pt Georgia, serif; margin-bottom: 4mm; }
  .mx-wrap { max-height: none; overflow: visible; border: 0; }
  .mx { font-size: 8.5pt; }
  .mx thead th, .mx tbody th { position: static; background: #fff !important; }
  .mx th, .mx td { border-bottom: 0.5pt solid #bbb; }
  .mx td { border-left: 0.5pt solid #e2e2e2; }
  .mx-col span { color: #000; }
  .mx-cell { width: auto; height: auto; background: none !important; border: 0 !important; color: #000 !important; font-size: 10pt; }
  .mx-check { font-weight: 800; }
  .mx-sec th { color: #000; background: #f2f2f2 !important; }
  .mx tbody tr { break-inside: avoid; }

  /* prep + order lists */
  .tick-box { border: 1pt solid #000 !important; background: #fff !important; }
  .tick-row input:checked + .tick-box { color: #000 !important; }
  .order-head { display: none; }
  .order-groups { display: block; }
  .order-group { margin-bottom: 6mm; }
  .order-table th, .order-table td { padding: 4pt 6pt; }
}
