/* Dinner Timeline: a cooking schedule worked backward from dinner.
 * The plan is a stove: a brushed steel backguard with a brass nameplate,
 * oven knobs and burner lamps, over a black glass display where every dish is
 * a glowing element. Below it, a steel ticket rail with an order ticket for
 * every clock time. Cook mode is the pass under a heat lamp.
 * The stove and the paper look the same in both themes (they are things);
 * the page around them follows the theme. One Page Toys tool family. */

@import url("https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Inter:wght@400;500;600;700;800&family=Young+Serif&display=swap");

:root{
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-tix: "Courier Prime", "Courier New", ui-monospace, monospace;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ink: #221d18;
  --bg: #f6f1e8;
  --surface: #fffdf9;
  --surface-2: #f3ece0;
  --muted: #6f665b;
  --line: #e8dfd0;
  --line-strong: #d4c7b2;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: rgba(194, 65, 12, 0.12);
  --on-accent: #fff;
  --bad: #b42318;
  --bad-soft: rgba(180, 35, 24, 0.09);
  --note: #8a6612;
  --note-soft: rgba(176, 132, 22, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow: 0 2px 8px rgba(46, 30, 12, 0.07);
  --shadow-md: 0 10px 26px rgba(46, 30, 12, 0.11);
  --shadow-lg: 0 24px 54px rgba(46, 30, 12, 0.18);
  /* the stove and the paper: physical things */
  --steel-1: #eceef0;
  --steel-2: #c8ccd1;
  --steel-3: #a6acb3;
  --steel-ink: #3a3f45;
  --steel-faint: #6a7078;
  --glass: #0d0b0a;
  --brass-1: #ecd08a;
  --brass-2: #c39a45;
  --brass-ink: #47320c;
  --paper: #fffdf6;
  --paper-ink: #2a2520;
  --paper-faint: #8b8276;
  --paper-red: #c3262c;
  --vfd: #ffae5c;
}
:root[data-theme="dark"]{
  --ink: #f2ebe1;
  --bg: #100e0c;
  --surface: #1a1714;
  --surface-2: #231f1b;
  --muted: #a69d91;
  --line: #2b2622;
  --line-strong: #3f3832;
  --accent: #ff8a4c;
  --accent-hover: #ffa574;
  --accent-soft: rgba(255, 138, 76, 0.14);
  --on-accent: #1d0c03;
  --bad: #ff7a6b;
  --bad-soft: rgba(255, 122, 107, 0.1);
  --note: #e7c062;
  --note-soft: rgba(231, 192, 98, 0.1);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 30px -6px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 56px -10px rgba(0, 0, 0, 0.75);
  /* a stainless range at night: the same steel, less light on it */
  --steel-1: #50565d;
  --steel-2: #353a40;
  --steel-3: #24282c;
  --steel-ink: #dfe3e7;
  --steel-faint: #9aa1a9;
  --brass-1: #d6b66c;
  --brass-2: #9d7629;
  --paper: #ece4d3;
  --paper-ink: #24201b;
  --paper-faint: #786f62;
}

*, *::before, *::after{ box-sizing: border-box; }
html, body{ -webkit-tap-highlight-color: transparent; }
body{
  margin: 0; min-height: 100vh;
  display: flex; flex-direction: column;
  font-family: var(--font-sans); color: var(--ink);
  background:
    radial-gradient(80% 42% at 50% 0%, var(--accent-soft), transparent 72%),
    var(--bg);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.is-cooking{ overflow: hidden; }
button, input, select{ font: inherit; color: inherit; }
.visually-hidden{ position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar (family chrome) ---------- */
.topbar{
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 30px);
  padding-top: max(14px, env(safe-area-inset-top));
  padding-left: max(clamp(16px, 4vw, 30px), env(safe-area-inset-left));
  padding-right: max(clamp(16px, 4vw, 30px), env(safe-area-inset-right));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.brand{ display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.brand__mark{ width: 1.1em; height: 1.1em; border: 1.5px solid var(--ink); border-radius: 6px; background: linear-gradient(90deg, var(--ink) 0 50%, var(--surface) 50% 100%); }
.topbar__right{ display: inline-flex; align-items: center; gap: 10px; }
.topbar__tag{ font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.iconbtn{ appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; font-size: 1rem; line-height: 1; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease; }
.iconbtn:hover{ transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--ink); }
.iconbtn:focus-visible{ outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 5px var(--accent); }
.iconbtn svg{ width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn--sm{ width: 44px; height: 44px; }
#soundBtn .snd-off, #cookSound .snd-off{ display: none; }
#soundBtn[aria-pressed="false"] .snd-on, #cookSound[aria-pressed="false"] .snd-on{ display: none; }
#soundBtn[aria-pressed="false"] .snd-off, #cookSound[aria-pressed="false"] .snd-off{ display: inline; }
.theme-toggle__sun, .theme-toggle__moon, .theme-toggle__auto{ display: none; }
:root[data-theme-mode="system"] .theme-toggle__auto{ display: inline; }
:root[data-theme-mode="light"] .theme-toggle__sun{ display: inline; }
:root[data-theme-mode="dark"] .theme-toggle__moon{ display: inline; }

/* ---------- Stage ---------- */
.stage{
  position: relative; z-index: 2; flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 26px;
  padding: clamp(22px, 4vw, 44px) 16px clamp(48px, 6vw, 72px);
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: max(clamp(56px, 7vw, 80px), calc(env(safe-area-inset-bottom) + 40px));
}

/* ---------- Hero ---------- */
.hero{ width: 100%; max-width: 760px; text-align: center; }
.eyebrow{ margin: 0 0 10px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.headline{ margin: 0 0 12px; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.02; letter-spacing: -0.015em; }
.lede{ margin: 0 auto; max-width: 610px; font-size: clamp(0.95rem, 2.6vw, 1.05rem); line-height: 1.55; color: var(--muted); }
.menus{ margin: 22px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 620px; }
.menu{
  position: relative; appearance: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 74px; padding: 14px 14px 12px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  overflow: hidden;
}
.menu::before{ content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 14px); opacity: 0.8; }
.menu:hover{ transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.menu:active{ transform: scale(0.98); }
.menu:focus-visible{ outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 5px var(--accent); }
.menu__k{ font-size: 0.6rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.menu b{ font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; line-height: 1.1; }
.menu__v{ font-size: 0.76rem; color: var(--muted); }
.resume{ margin: 16px auto 0; max-width: 520px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.resume p{ margin: 0; font-size: 0.92rem; }
.resume[hidden]{ display: none; }
.loadnote{ margin: 14px auto 0; max-width: 560px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--note-soft); color: var(--note); font-size: 0.88rem; font-weight: 600; }
.loadnote[hidden]{ display: none; }

/* ---------- Buttons ---------- */
.btn{
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px;
  font-family: var(--font-sans); font-size: 0.94rem; font-weight: 700;
  border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:hover{ transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active{ transform: translateY(0) scale(0.98); }
.btn:focus-visible{ outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 5px var(--accent); }
.btn--primary{ background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover{ background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ink{ background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--ghost{ background: transparent; }
.btn--sm{ min-height: 44px; padding: 9px 18px; font-size: 0.86rem; }
.btn--big{ min-height: 56px; padding: 14px 30px; font-size: 1.04rem; }
.btn svg{ width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn[hidden]{ display: none; }
.btn:disabled{ opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.linkbtn{ appearance: none; border: 0; background: transparent; padding: 10px 6px; min-height: 44px; font-weight: 600; font-size: 0.86rem; color: var(--accent); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; border-radius: 8px; }
.linkbtn:hover{ color: var(--accent-hover); }
.linkbtn:focus-visible{ outline: 2px solid var(--accent); outline-offset: 1px; }
.linkbtn--danger{ color: var(--bad); }

/* ---------- Layout ---------- */
.layout{ width: 100%; max-width: 1220px; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.col{ display: flex; flex-direction: column; gap: 22px; min-width: 0; }
@media (min-width: 1000px){
  .layout{ grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; }
}

/* ---------- Cards ---------- */
.card{ position: relative; padding: clamp(16px, 3.6vw, 22px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card[hidden]{ display: none; }
.card__head{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card__title{ margin: 0; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; letter-spacing: -0.005em; }
.card__count{ font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.card__tip{ margin: 8px 0 0; font-size: 0.84rem; line-height: 1.5; color: var(--muted); }
.step{ display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); font-family: var(--font-sans); font-size: 0.78rem; font-weight: 800; flex: 0 0 auto; }
.step--dark{ width: 20px; height: 20px; font-size: 0.66rem; background: var(--brass-ink); color: var(--brass-1); }

/* ---------- Segmented + steppers ---------- */
.seg{ display: inline-flex; padding: 3px; gap: 3px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--line); }
.seg button, .seg__date{ appearance: none; position: relative; min-height: 40px; min-width: 44px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: transparent; font-size: 0.88rem; font-weight: 700; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease; white-space: nowrap; }
.seg button[aria-pressed="true"], .seg__date.is-on{ background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.seg button:focus-visible, .seg__date:focus-within{ outline: 2px solid var(--accent); outline-offset: 1px; }
.seg--sm button{ min-height: 38px; min-width: 42px; }
.seg__date input{ position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; }
.stepper{ display: inline-flex; align-items: center; gap: 4px; }
.stepper__b{ appearance: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 1.25rem; font-weight: 600; line-height: 1; cursor: pointer; display: inline-grid; place-items: center; transition: border-color 140ms ease, transform 120ms ease; }
.stepper__b:hover{ border-color: var(--ink); }
.stepper__b:active{ transform: scale(0.94); }
.stepper__b:focus-visible{ outline: 2px solid var(--accent); outline-offset: 1px; }
.stepper__b:disabled{ opacity: 0.4; cursor: not-allowed; }
.stepper output{ min-width: 34px; text-align: center; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.stepper__v{ display: inline-flex; align-items: baseline; gap: 3px; min-width: 0; }
.stepper__v input{ width: 3.4em; min-height: 44px; padding: 0 2px; text-align: center; border: 0; border-bottom: 1.5px solid var(--line-strong); background: transparent; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; outline: none; border-radius: 0; }
.stepper__v input:focus{ border-bottom-color: var(--accent); }
.stepper__v input::-webkit-outer-spin-button, .stepper__v input::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }
.stepper__v i{ font-style: normal; font-size: 0.78rem; font-weight: 600; color: var(--muted); }

/* ---------- 1. When ---------- */
.when{ display: grid; gap: 14px; justify-items: center; }
.clockset{ display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.nudge{ appearance: none; min-width: 56px; min-height: 48px; padding: 0 10px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 800; font-size: 0.88rem; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color 140ms ease, transform 120ms ease; }
.nudge:hover{ border-color: var(--ink); }
.nudge:active{ transform: scale(0.95); }
.nudge:focus-visible{ outline: 2px solid var(--accent); outline-offset: 1px; }
/* our own face for the time; the real time input sits invisibly on top, so a
   tap opens the phone's own wheel and a desktop click opens its picker */
.clockset__face{
  position: relative; flex: 1 1 auto; min-width: 0; max-width: 230px; min-height: 64px;
  display: grid; place-items: center; padding: 4px 10px;
  border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer; transition: box-shadow 140ms ease;
}
.clockset__face:hover{ box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.clockset__face:focus-within{ box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 3px var(--accent-soft); }
.clockset__show{ font-family: var(--font-sans); font-weight: 800; font-size: clamp(1.75rem, 8vw, 2.2rem); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; pointer-events: none; }
.clockset__face input{ position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; border: 0; cursor: pointer; font-size: 16px; -webkit-appearance: none; appearance: none; }
.clockset__face input::-webkit-calendar-picker-indicator{ position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer; }
.when__sub{ margin: 0; font-size: 0.86rem; color: var(--muted); text-align: center; }

.kitchen{ margin-top: 16px; border-top: 1px solid var(--line); }
.kitchen summary{ list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding-top: 12px; cursor: pointer; font-weight: 700; font-size: 0.9rem; }
.kitchen summary::-webkit-details-marker{ display: none; }
.kitchen summary::after{ content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 160ms ease; }
.kitchen[open] summary::after{ transform: rotate(-135deg); }
.kitchen summary:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.kitchen__sum{ margin-left: auto; font-weight: 600; font-size: 0.8rem; color: var(--muted); }
.kitchen__rows{ display: grid; gap: 10px; padding: 10px 0 2px; }
.krow{ display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.krow__k{ font-size: 0.86rem; font-weight: 600; color: var(--muted); }

/* ---------- 2. Dishes ---------- */
.dishes{ list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dishes__empty{ margin: 0 0 4px; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.dishes__empty[hidden]{ display: none; }
.dish{ --w: var(--accent); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; transition: border-color 160ms ease, box-shadow 160ms ease; }
.dish[data-where="stove"]{ --w: #2f6fdc; }
.dish[data-where="slow"]{ --w: #c27b0b; }
.dish[data-where="grill"]{ --w: #b4321a; }
.dish[data-where="none"]{ --w: #4f8a3a; }
:root[data-theme="dark"] .dish[data-where="stove"]{ --w: #6aa6ff; }
:root[data-theme="dark"] .dish[data-where="slow"]{ --w: #f0a93a; }
:root[data-theme="dark"] .dish[data-where="grill"]{ --w: #ff7051; }
:root[data-theme="dark"] .dish[data-where="none"]{ --w: #86c56b; }
.dish.is-open{ border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.dish.is-bad{ border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); }
.dish.is-new{ animation: dish-in 360ms cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes dish-in{ from{ transform: translateY(-6px) scale(0.98); opacity: 0; } to{ transform: none; opacity: 1; } }
.dish__row{ appearance: none; width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; padding: 9px 12px 9px 10px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.dish__row:focus-visible{ outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 14px; }
.dish__ic{ width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--w); background: color-mix(in srgb, var(--w) 13%, transparent); }
.dish__ic svg{ width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dish__txt{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dish__name{ font-weight: 700; font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dish__meta{ font-size: 0.77rem; line-height: 1.35; color: var(--muted); }
.dish__start{ font-size: 0.74rem; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; padding: 5px 9px; border-radius: var(--radius-pill); background: var(--surface-2); }
.dish.is-bad .dish__start{ color: var(--bad); background: var(--bad-soft); }

.ed{ padding: 4px 14px 14px; display: grid; gap: 14px; border-top: 1px dashed var(--line); animation: drop-in 200ms ease both; }
@keyframes drop-in{ from{ opacity: 0; transform: translateY(-4px); } to{ opacity: 1; transform: none; } }
.efield{ display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.efield--wide{ padding-top: 10px; }
.efield__k{ font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.efield__hint{ font-size: 0.74rem; color: var(--muted); }
.ed__name{ min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); font-size: 1rem; outline: none; }
.ed__name:focus{ border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.where{ display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.where button{ appearance: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; padding: 6px 2px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 0.7rem; font-weight: 700; color: var(--muted); cursor: pointer; transition: border-color 140ms ease, color 140ms ease, background 140ms ease; line-height: 1.1; text-align: center; }
.where button svg{ width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.where button[aria-checked="true"]{ border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.where button:focus-visible{ outline: 2px solid var(--accent); outline-offset: 1px; }
.ed__grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.check{ display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.88rem; font-weight: 600; }
.check input{ width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.check em{ display: block; font-style: normal; font-weight: 400; font-size: 0.78rem; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.ed__shift, .ed__note{ margin: 0; font-size: 0.8rem; line-height: 1.5; color: var(--muted); }
.ed__shift{ padding: 8px 12px; border-radius: 10px; background: var(--note-soft); color: var(--ink); }
.ed__shift .linkbtn{ min-height: 0; padding: 0 2px; font-size: inherit; }
.ed__acts{ display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.quick{ margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.quick__k{ margin: 0 0 10px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.quick__grid{ display: flex; flex-wrap: wrap; gap: 7px; }
.quick__g{ width: 100%; margin: 6px 0 0; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.quick__g:first-child{ margin-top: 0; }
.qchip{ --w: var(--accent); appearance: none; flex: 0 1 auto; max-width: 100%; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 5px 12px 5px 6px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface-2); text-align: left; cursor: pointer; transition: transform 140ms ease, border-color 140ms ease, background 140ms ease; }
.qchip[data-where="stove"]{ --w: #2f6fdc; } .qchip[data-where="slow"]{ --w: #c27b0b; } .qchip[data-where="grill"]{ --w: #b4321a; } .qchip[data-where="none"]{ --w: #4f8a3a; }
:root[data-theme="dark"] .qchip[data-where="stove"]{ --w: #6aa6ff; } :root[data-theme="dark"] .qchip[data-where="slow"]{ --w: #f0a93a; } :root[data-theme="dark"] .qchip[data-where="grill"]{ --w: #ff7051; } :root[data-theme="dark"] .qchip[data-where="none"]{ --w: #86c56b; }
.qchip:hover{ border-color: var(--line-strong); background: var(--surface); }
.qchip:active{ transform: scale(0.97); }
.qchip:focus-visible{ outline: 2px solid var(--accent); outline-offset: 1px; }
.qchip__ic{ flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--w); background: color-mix(in srgb, var(--w) 13%, transparent); }
.qchip__ic svg{ width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.qchip__t{ display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.qchip__t b{ font-size: 0.84rem; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qchip__t i{ font-style: normal; font-size: 0.7rem; color: var(--muted); }
.quick__own{ margin-top: 10px; width: 100%; }

/* ---------- 3. The range ---------- */
.range{
  position: relative;
  padding: 14px 14px 12px;
  border-radius: 24px;
  color: var(--steel-ink);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, rgba(0,0,0,0.025) 1px 2px, transparent 2px 4px),
    linear-gradient(180deg, var(--steel-1), var(--steel-2) 55%, var(--steel-3));
  border: 1px solid color-mix(in srgb, var(--steel-3) 80%, #000);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -2px 0 rgba(0,0,0,0.12), var(--shadow-lg);
}
:root[data-theme="dark"] .range{ box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -2px 0 rgba(0,0,0,0.3), var(--shadow-lg); }
.range__guard{ display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 2px 4px 14px; }
.plate{
  position: relative; display: flex; flex-direction: column; gap: 1px; min-width: 0;
  padding: 7px 14px 8px; border-radius: 9px;
  background: linear-gradient(180deg, var(--brass-1), var(--brass-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -1px 0 rgba(0,0,0,0.25), 0 2px 5px rgba(0,0,0,0.25);
  color: var(--brass-ink);
}
.plate::before, .plate::after{ content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6d8, #8a6a26 70%); box-shadow: 0 0 0 1px rgba(0,0,0,0.25); }
.plate::before{ left: 5px; } .plate::after{ right: 5px; }
.plate__k{ order: -1; display: inline-flex; align-items: center; gap: 6px; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; padding-left: 4px; }
.plate__name{ width: 100%; min-width: 0; min-height: 30px; padding: 0 4px; border: 0; background: transparent; font-family: var(--font-display); font-size: 1.12rem; color: var(--brass-ink); text-shadow: 0 1px 0 rgba(255,255,255,0.35); outline: none; border-radius: 4px; }
.plate__name::placeholder{ color: rgba(71,50,12,0.55); }
.plate__name:focus-visible{ box-shadow: 0 0 0 2px rgba(71,50,12,0.5); }
.knobs{ display: flex; align-items: center; gap: 12px; }
.knob{ display: flex; flex-direction: column; align-items: center; gap: 4px; }
.knob__cap{
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #ffffff, #d5d9de 32%, #8f969e 72%, #5d636a);
  box-shadow: 0 3px 6px rgba(0,0,0,0.35), inset 0 -2px 3px rgba(0,0,0,0.25), 0 0 0 3px rgba(0,0,0,0.08);
  transition: transform 500ms cubic-bezier(.3, 1.4, .5, 1);
}
.knob__cap::after{ content: ""; position: absolute; left: 50%; top: 4px; width: 3px; height: 12px; margin-left: -1.5px; border-radius: 2px; background: #2b2f34; }
.knob.is-on .knob__cap::after{ background: #e2531c; box-shadow: 0 0 6px rgba(255,110,40,0.8); }
.knob__k{ font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; color: var(--steel-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.burners{ display: grid; grid-template-columns: repeat(4, 9px); gap: 5px; padding: 6px 7px; border-radius: 8px; background: rgba(0,0,0,0.12); box-shadow: inset 0 1px 2px rgba(0,0,0,0.25); }
.burners i{ width: 9px; height: 9px; border-radius: 50%; background: #3b3f45; box-shadow: inset 0 1px 1px rgba(0,0,0,0.5); }
.burners i.is-on{ background: #6db0ff; box-shadow: 0 0 7px rgba(80,150,255,0.9), inset 0 0 2px #fff; }
.burners i.is-over{ background: #ff5040; box-shadow: 0 0 7px rgba(255,70,50,0.9); }
.clock7{ display: inline-flex; align-items: flex-end; gap: 4px; color: var(--vfd); line-height: 1; }
.range .clock7{ padding: 7px 10px 6px; border-radius: 9px; background: #0b0908; box-shadow: inset 0 1px 3px rgba(0,0,0,0.8), 0 1px 0 rgba(255,255,255,0.4); }
.clock7 svg{ height: 24px; width: auto; display: block; overflow: visible; filter: drop-shadow(0 0 4px rgba(255,140,50,0.65)); }
.clock7 .s7on{ fill: currentColor; }
.clock7 .s7off{ fill: currentColor; opacity: 0.08; }
.clock7__ap{ font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; opacity: 0.9; text-shadow: 0 0 6px rgba(255,140,50,0.7); }

.glass{
  position: relative; overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(120% 70% at 50% 120%, rgba(255,110,40,0.08), transparent 60%),
    linear-gradient(180deg, #171310, var(--glass) 40%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.8), inset 0 2px 10px rgba(0,0,0,0.7), 0 1px 0 rgba(255,255,255,0.5);
  min-height: 150px;
}
.glass::after{ content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, rgba(255,255,255,0.075) 0%, rgba(255,255,255,0.02) 28%, transparent 42%); }
.glass__svg{ display: block; width: 100%; height: auto; }
.glass__empty{ position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: 20px; text-align: center; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.06em; color: rgba(255,214,170,0.6); }
.glass__empty[hidden]{ display: none; }
.glass__svg text{ font-family: var(--font-sans); }
.r-grid{ stroke: rgba(255,236,214,0.07); stroke-width: 1; }
.r-lab{ fill: rgba(255,232,206,0.5); font: 600 10.5px var(--font-mono); letter-spacing: 0.04em; }
.r-name{ fill: #f6eadb; font-size: 12px; font-weight: 650; }
.r-at{ fill: rgba(246,224,198,0.55); font: 500 10.5px var(--font-mono); }
.r-track{ fill: rgba(255,236,214,0.1); }
.r-prep{ fill: rgba(255,214,160,0.07); stroke: rgba(255,214,160,0.68); stroke-width: 1.2; stroke-dasharray: 3 2.4; }
.r-temp{ font: 800 9px var(--font-mono); letter-spacing: 0.04em; fill: rgba(64,16,4,0.85); }
.r-temp--slow{ fill: rgba(60,28,2,0.8); }
.r-mid{ fill: #fff8ee; stroke: rgba(60,20,5,0.55); stroke-width: 1; }
.r-haz{ stroke: #ff5a4f; stroke-width: 1.2; }
.r-row{ fill: rgba(255,232,206,0.42); font: 700 9px var(--font-mono); letter-spacing: 0.14em; }
.r-rowv{ fill: rgba(255,210,170,0.75); font: 600 9.5px var(--font-mono); }
.r-burn{ fill: #5aa2ff; }
.r-burn.is-over{ fill: #ff4d4d; }
.r-serve{ stroke: #fff1dc; stroke-width: 2; }
.r-servelab{ fill: #fff1dc; font: 800 10.5px var(--font-mono); letter-spacing: 0.08em; }
.r-now{ stroke: #7cf5d4; stroke-width: 1.5; }
.r-nowdot{ fill: #7cf5d4; }
.r-nowlab{ fill: #7cf5d4; font: 800 10px var(--font-mono); letter-spacing: 0.1em; }

.seg[hidden]{ display: none; }
.seg--zoom{ background: rgba(0,0,0,0.1); border-color: rgba(0,0,0,0.12); }
.seg--zoom button{ min-height: 36px; font-size: 0.76rem; color: var(--steel-faint); padding: 0 12px; }
.seg--zoom button[aria-pressed="true"]{ background: var(--steel-1); color: var(--steel-ink); }
:root[data-theme="dark"] .seg--zoom button[aria-pressed="true"]{ background: #5d646c; }
.range__foot{ display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; padding: 10px 6px 0; }
.legend{ list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.legend li{ display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; font-weight: 700; color: var(--steel-faint); }
.lg{ width: 16px; height: 6px; border-radius: 3px; display: inline-block; }
.lg--prep{ border: 1.2px dashed #b88a50; height: 7px; }
.lg--oven{ background: linear-gradient(180deg, #ee4816, #ffb15a 50%, #962109); box-shadow: 0 0 5px rgba(255,110,40,0.7); }
.lg--stove{ background: linear-gradient(180deg, #cfe6ff, #5aa2ff 45%, #1c3fb0); box-shadow: 0 0 5px rgba(80,150,255,0.7); }
.lg--slow{ background: linear-gradient(180deg, #ffd27a, #e99a1c 50%, #8a4a09); }
.lg--grill{ background: linear-gradient(180deg, #ffb070, #e2461c 50%, #6e1408); }
.lg--rest{ background: repeating-linear-gradient(45deg, #8f8a83 0 1.4px, transparent 1.4px 4px); }
.range__sum{ margin: 0; font-size: 0.74rem; font-weight: 700; color: var(--steel-faint); font-variant-numeric: tabular-nums; }

/* ---------- Issues ---------- */
.issues[hidden]{ display: none; }
.issues__list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.issue{ display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); border-left: 4px solid var(--bad); }
.issue--warn{ border-left-color: var(--note); }
.issue--note{ border-left-color: var(--line-strong); box-shadow: none; background: var(--surface-2); }
.issue__ic{ width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--bad); background: var(--bad-soft); }
.issue--warn .issue__ic{ color: var(--note); background: var(--note-soft); }
.issue--note .issue__ic{ color: var(--muted); background: transparent; }
.issue__ic svg{ width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.issue__text{ margin: 0; font-size: 0.92rem; font-weight: 600; line-height: 1.45; }
.issue--note .issue__text{ font-weight: 500; color: var(--muted); font-size: 0.86rem; }
.issue__why{ margin: 4px 0 0; font-size: 0.8rem; line-height: 1.45; color: var(--muted); }
.issue__acts{ margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.issue__alt{ font-size: 0.78rem; color: var(--muted); }

/* ---------- The ticket rail ---------- */
.rail{ position: relative; }
.rail__head{ display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 2px 2px; }
.rail__title{ margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }
.rail__sub{ margin: 3px 0 0; font-size: 0.82rem; color: var(--muted); }
.rail__nav{ display: flex; gap: 8px; flex: 0 0 auto; }
.rail__track{ position: relative; margin: 6px -16px 0; }
@media (min-width: 1000px){ .rail__track{ margin: 6px 0 0; } }
.rail__bar{
  position: absolute; left: 0; right: 0; top: 14px; height: 15px; z-index: 1; pointer-events: none;
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #f3f5f7 0%, #c4c9cf 30%, #8d949c 62%, #b8bec5 80%, #6b7279 100%);
  box-shadow: 0 6px 10px -4px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.8);
}
:root[data-theme="dark"] .rail__bar{ background: repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 3px), linear-gradient(180deg, #a9afb6 0%, #6c737b 30%, #42484e 62%, #5d646b 80%, #2c3035 100%); }
.tickets{
  list-style: none; margin: 0; display: flex; gap: 14px;
  padding: 20px 16px 26px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; align-items: flex-start;
  transition: height 260ms ease; scroll-padding: 0 16px;
  overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  outline: none;
}
.tickets:focus-visible{ box-shadow: inset 0 0 0 2px var(--accent); border-radius: 12px; }
.ticket{ position: relative; flex: 0 0 214px; scroll-snap-align: start; transform: rotate(var(--tilt, 0deg)); transform-origin: 50% 0; }
.ticket__clip{
  position: absolute; z-index: 2; left: 50%; top: -9px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #c9ced4 40%, #6f767e 80%);
  box-shadow: 0 2px 3px rgba(0,0,0,0.4);
}
.ticket__paper{
  position: relative; padding: 16px 14px 22px;
  font-family: var(--font-tix); color: var(--paper-ink);
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05), transparent 14px),
    var(--paper);
  box-shadow: 0 10px 18px -8px rgba(40,26,10,0.4), 0 1px 2px rgba(40,26,10,0.18);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 7px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 7px repeat-x;
}
.ticket__no{ margin: 0; display: flex; justify-content: space-between; gap: 8px; padding-bottom: 6px; border-bottom: 1.5px dashed rgba(42,37,32,0.3); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: var(--paper-faint); }
.ticket__time{ margin: 8px 0 0; font-size: 1.6rem; font-weight: 700; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ticket__rel{ margin: 4px 0 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-red); }
.ticket__lines{ list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1.5px dashed rgba(42,37,32,0.3); display: grid; gap: 9px; }
.tl{ display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 7px; align-items: start; }
.tl__ic{ color: var(--paper-ink); opacity: 0.75; padding-top: 1px; }
.tl__ic svg{ width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.tl__tx{ font-size: 0.86rem; line-height: 1.3; overflow-wrap: anywhere; }
.tl__tx em{ display: block; margin-top: 2px; font-style: normal; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--paper-red); }
.tl--serve .tl__tx{ font-weight: 700; }
.tl--serve .tl__tx em{ color: var(--paper-faint); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.76rem; }
.ticket__stamp{ margin: 12px 0 0; display: inline-block; padding: 3px 9px; border: 2.5px solid var(--paper-red); border-radius: 5px; color: var(--paper-red); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.12em; transform: rotate(-5deg); opacity: 0.85; }
.ticket.is-past .ticket__paper{ opacity: 0.6; filter: saturate(0.4); }
.ticket.is-past .ticket__no span:last-child{ color: var(--paper-red); }
.ticket--blank{ flex-basis: 240px; }
/* a busy minute gets a wider ticket, so one ticket doesn't hang a foot lower than the rest */
.ticket.is-wide{ flex-basis: 300px; }
.ticket.is-xwide{ flex-basis: 400px; }
.ticket.is-xwide .ticket__lines{ grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
@media (max-width: 560px){ .ticket.is-xwide{ flex-basis: 300px; } .ticket.is-xwide .ticket__lines{ grid-template-columns: minmax(0, 1fr); } }
.ticket--blank .ticket__time{ color: var(--paper-faint); }
.ticket--blank .ticket__rel{ color: var(--paper-faint); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.82rem; }
.cookbar{ display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 4px; text-align: center; }
.cookbar__note{ margin: 0; font-size: 0.8rem; color: var(--muted); }

/* ---------- Share ---------- */
.sharecard .card__title{ margin-bottom: 2px; }
.linkbar{ margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.plain{ margin-top: 14px; }
.plain summary{ cursor: pointer; font-size: 0.86rem; font-weight: 700; min-height: 40px; display: flex; align-items: center; }
.plain summary:focus-visible{ outline: 2px solid var(--accent); border-radius: 6px; }
.plain__text{ margin: 6px 0 0; padding: 14px; max-height: 340px; overflow: auto; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-family: var(--font-tix); font-size: 0.8rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.sharecard .linkbtn--danger{ margin-top: 6px; padding-left: 0; }
.fine{ margin: 0; text-align: center; font-size: 0.76rem; line-height: 1.55; color: var(--muted); padding: 0 10px; }

/* ---------- Toast ---------- */
.toast{
  position: fixed; left: 50%; bottom: max(22px, calc(env(safe-area-inset-bottom) + 12px)); z-index: 60;
  display: flex; align-items: center; gap: 12px; max-width: min(520px, calc(100vw - 32px));
  padding: 10px 12px 10px 18px; border-radius: var(--radius-pill);
  background: #221d18; color: #fbf6ee; font-size: 0.88rem; font-weight: 600;
  box-shadow: var(--shadow-lg); transform: translate(-50%, 18px); opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}
:root[data-theme="dark"] .toast{ background: #f0e8dc; color: #1b1612; }
.toast[hidden]{ display: none; }
.toast.is-on{ transform: translate(-50%, 0); opacity: 1; }
.toast__undo{ min-height: 36px; padding: 6px 14px; border: 0; border-radius: var(--radius-pill); background: rgba(255,255,255,0.15); color: inherit; font-weight: 800; cursor: pointer; flex: 0 0 auto; }
:root[data-theme="dark"] .toast__undo{ background: rgba(0,0,0,0.1); }
.toast__undo[hidden]{ display: none; }
.toast__undo:focus-visible{ outline: 2px solid currentColor; }

.backlink{ font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; padding: 10px 0; transition: color 140ms ease, border-color 140ms ease; }
.backlink:hover{ color: var(--ink); border-bottom-color: var(--accent); }
.backlink:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Cook mode: the pass under a heat lamp ---------- */
.cook{
  position: fixed; inset: 0; z-index: 50; overflow-y: auto; overscroll-behavior: contain;
  color: #f6eadb;
  background:
    radial-gradient(110% 55% at 50% -12%, rgba(255,128,44,0.34), rgba(255,96,30,0.08) 45%, transparent 70%),
    radial-gradient(80% 50% at 50% 120%, rgba(255,110,40,0.07), transparent 70%),
    #0e0b09;
}
.cook[hidden]{ display: none; }
.cook__lamp{ position: absolute; left: 50%; top: 0; width: min(560px, 80vw); height: 10px; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: linear-gradient(180deg, #3b3f45, #1b1d20); box-shadow: 0 6px 30px 6px rgba(255,120,40,0.35); }
.cook__lamp::after{ content: ""; position: absolute; left: 8%; right: 8%; bottom: -4px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, transparent, #ffb36b, #ff8a3d, #ffb36b, transparent); filter: blur(1px); }
.cook__inner{
  position: relative; min-height: 100%; max-width: 1080px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 18px;
  padding: max(24px, calc(env(safe-area-inset-top) + 16px)) max(18px, env(safe-area-inset-right)) max(20px, calc(env(safe-area-inset-bottom) + 12px)) max(18px, env(safe-area-inset-left));
}
.cook__top{ display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cook__title{ min-width: 0; }
.cook__k{ margin: 0; font-family: var(--font-display); font-size: clamp(1rem, 4.4vw, 1.2rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cook__dinner{ margin: 2px 0 0; font-size: 0.8rem; color: rgba(246,234,219,0.62); font-weight: 600; }
.cook__btns{ display: flex; gap: 8px; flex: 0 0 auto; }
.cbtn{ appearance: none; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); border: 1.5px solid rgba(246,234,219,0.25); background: rgba(255,255,255,0.05); color: inherit; font-weight: 700; font-size: 0.86rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: border-color 140ms ease, background 140ms ease; }
.cbtn:hover{ border-color: rgba(246,234,219,0.6); background: rgba(255,255,255,0.09); }
.cbtn:focus-visible{ outline: 2px solid var(--vfd); outline-offset: 2px; }
.cbtn--icon{ width: 44px; padding: 0; }
.cbtn svg{ width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cbtn--quiet{ border-color: transparent; background: transparent; color: rgba(246,234,219,0.7); text-decoration: underline; text-underline-offset: 3px; }
.cook__grid{ display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.cook__left{ display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cook__clock{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.clock7--big svg{ height: clamp(46px, 11vw, 70px); filter: drop-shadow(0 0 8px rgba(255,140,50,0.7)); }
.clock7--big .clock7__ap{ font-size: 0.9rem; margin-bottom: 4px; }
.cook__left-k{ margin: 0; font-size: 0.92rem; font-weight: 700; color: rgba(246,234,219,0.75); }
.nowtix{
  position: relative; margin: 0; padding: 18px 18px 26px;
  font-family: var(--font-tix); color: var(--paper-ink);
  background: linear-gradient(180deg, rgba(255,190,120,0.18), transparent 60%), #fffcf3;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 70px rgba(255,130,40,0.28), 0 16px 30px -10px rgba(0,0,0,0.7);
  transform: rotate(-0.5deg);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 8px repeat-x;
}
.nowtix.is-fresh{ animation: tix-drop 620ms cubic-bezier(.2, 1.3, .35, 1) both; }
@keyframes tix-drop{ 0%{ transform: translateY(-26px) rotate(-2deg); opacity: 0.2; } 60%{ opacity: 1; } 100%{ transform: rotate(-0.5deg); } }
.nowtix__k{ margin: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-red); }
.nowtix__time{ margin: 4px 0 0; font-size: clamp(2rem, 8vw, 2.6rem); font-weight: 700; line-height: 1; }
.nowtix__lines{ list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 2px dashed rgba(42,37,32,0.3); display: grid; gap: 12px; }
.nowtix .tl{ grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
.nowtix .tl__ic svg{ width: 22px; height: 22px; }
.nowtix .tl__tx{ font-size: clamp(1.08rem, 4.4vw, 1.3rem); font-weight: 700; line-height: 1.25; }
.nowtix .tl__tx em{ font-size: 0.82rem; }
.nowtix .tl--wait .tl__tx{ grid-column: 1 / -1; font-weight: 400; font-size: 1.05rem; }
.nowtix.is-serve .nowtix__k{ color: #1f7a3c; }
.nowtix__missed{ margin: 14px 0 0; padding: 10px 12px; border-radius: 6px; background: rgba(195,38,44,0.08); display: grid; gap: 4px; font-size: 0.82rem; }
.nowtix__missed b{ font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-red); }
.nowtix__missed[hidden]{ display: none; }
.cook__right{ display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.nextup{ padding: 16px 18px; border-radius: 16px; background: linear-gradient(180deg, #17120f, #0b0908); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), inset 0 2px 10px rgba(0,0,0,0.6); }
.nextup__k, .later__k{ margin: 0; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(246,234,219,0.55); }
.clock7--count{ margin-top: 8px; }
.clock7--count svg{ height: clamp(50px, 12vw, 74px); filter: drop-shadow(0 0 9px rgba(255,140,50,0.7)); }
.clock7--count.is-soon{ color: #ff7448; }
.clock7--count.is-soon svg{ filter: drop-shadow(0 0 10px rgba(255,80,40,0.85)); }
.nextup__at{ margin: 8px 0 0; font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700; color: var(--vfd); letter-spacing: 0.04em; }
.nextup__lines{ list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.nextup .tl__ic{ color: #f6eadb; }
.nextup .tl__tx{ font-size: 1rem; font-weight: 600; }
.nextup .tl__tx em{ color: var(--vfd); }
.cook__right.is-done .nextup__k, .cook__right.is-done .later{ display: none; }
.later__list{ list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.later__list li{ display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; font-size: 0.88rem; line-height: 1.35; color: rgba(246,234,219,0.8); }
.later__t{ font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; color: rgba(255,174,92,0.9); padding-top: 1px; }
.cook__track{ padding: 10px 6px 0; }
.cook__rail{ position: relative; height: 22px; }
.cook__rail::before{ content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; border-radius: 2px; background: rgba(246,234,219,0.18); }
.cr__dot{ position: absolute; top: 6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #0e0b09; border: 2px solid rgba(246,234,219,0.45); }
.cr__dot.is-done{ background: rgba(246,234,219,0.45); border-color: transparent; }
.cr__dot.is-now{ background: var(--vfd); border-color: var(--vfd); box-shadow: 0 0 10px rgba(255,150,60,0.9); }
.cr__dot:last-of-type{ border-color: #fff1dc; }
.cr__now{ position: absolute; top: 0; width: 2px; height: 22px; margin-left: -1px; background: #7cf5d4; box-shadow: 0 0 8px rgba(124,245,212,0.8); border-radius: 2px; }
.cook__foot{ display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.cook__wake{ margin: 0; font-size: 0.78rem; color: rgba(246,234,219,0.55); cursor: default; }
@media (min-width: 760px){
  .cook__grid{ grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; }
}
/* a phone on its side: two columns, tighter type, nothing wasted */
@media (orientation: landscape) and (max-height: 500px){
  .cook__inner{ gap: 10px; padding-top: max(12px, env(safe-area-inset-top)); }
  .cook__grid{ grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
  .cook__left{ gap: 10px; }
  .clock7--big svg{ height: 40px; }
  .clock7--count svg{ height: 46px; }
  .nowtix{ padding: 12px 14px 18px; }
  .nowtix__time{ font-size: 1.7rem; }
  .nowtix__lines{ margin-top: 8px; padding-top: 8px; gap: 8px; }
  .nowtix .tl__tx{ font-size: 1rem; }
  .nextup{ padding: 12px 14px; }
  .later__list li:nth-child(n+3){ display: none; }
  .cook__track{ padding-top: 0; }
}

/* the tip jar and full-screen badges default to right-center, on top of the
   dish times; tuck them into the bottom-right corner */
.opt-tipjar.opt-tipjar{ top: auto; bottom: max(14px, env(safe-area-inset-bottom)); transform: none; }
.opt-fs.opt-fs{ top: auto; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 54px); transform: none; }
.opt-tipjar.opt-tipjar.tj-nudge{ animation: none; }
body.is-cooking .opt-tipjar, body.is-cooking .opt-fs, body.is-cooking .opt-tickets{ display: none !important; }

@media (max-width: 560px){
  .stage{ gap: 18px; }
  .menus{ gap: 7px; }
  .menu{ padding: 12px 10px 10px; min-height: 70px; }
  .menu b{ font-size: 0.98rem; }
  .menu__v{ font-size: 0.68rem; }
  .range{ padding: 10px 10px 10px; border-radius: 20px; }
  .range__guard{ grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding-bottom: 10px; }
  .plate{ grid-column: 1 / -1; }
  .knobs{ gap: 9px; }
  .knob__cap{ width: 32px; height: 32px; }
  .rail__head{ align-items: flex-start; }
  .ed__grid{ gap: 12px 8px; }
  .stepper__b{ width: 42px; }
  .stepper__v input{ width: 2.9em; }
  .dish__row{ gap: 10px; padding-right: 10px; }
  .dish__start{ font-size: 0.7rem; padding: 4px 7px; }
}
@media (max-width: 440px){
  .menu{ padding: 12px 8px 10px; }
  .menu b{ font-size: 0.86rem; letter-spacing: -0.01em; }
}
@media (max-width: 380px){
  .ed__grid{ grid-template-columns: minmax(0, 1fr); }
  .where button span{ font-size: 0.62rem; }
  .menu__v{ display: none; }
  .clockset{ gap: 6px; }
  .nudge{ min-width: 50px; }
}
@media (prefers-reduced-motion: reduce){
  .menu, .btn, .iconbtn, .qchip, .stepper__b, .nudge, .dish, .knob__cap, .toast, .seg button, .where button{ transition: none; }
  .dish.is-new, .ed, .nowtix.is-fresh{ animation: none; }
}

/* the brand mark is the app icon's sculpted split square (owner, 2026-10-24: every use of the logo the same) */
.brand__mark{ width: 1.35em !important; height: 1.35em !important; border: 0 !important; border-radius: 0 !important;
  background: url("../../assets/brand-mark-64.png") center / contain no-repeat !important; }
