/* Thanksgiving Oven — styles
   Mobile-first. Warm palette: cranberry, pumpkin, harvest gold, deep brown, cream, sage. */

:root {
  --cranberry: #9B1B30;
  --cranberry-600: #84162A;
  --cranberry-800: #5F0F1F;
  --cranberry-50: #FBECEE;
  --pumpkin: #D9661F;
  --pumpkin-700: #A84A10;
  --pumpkin-50: #FDF0E6;
  --gold: #E3A82B;
  --gold-100: #FBEFD2;
  --brown: #3B2417;
  --brown-700: #5A3A28;
  --ink: #2A1A10;
  --muted: #6B5546;
  --cream: #FBF6EE;
  --cream-2: #F4EADB;
  --card: #FFFDF9;
  --line: #E7D9C5;
  --line-2: #D8C5AB;
  --sage: #7D9471;
  --sage-700: #4F6446;
  --sage-50: #EEF2EA;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(59, 36, 23, .08), 0 1px 1px rgba(59, 36, 23, .04);
  --shadow: 0 6px 20px -8px rgba(59, 36, 23, .25), 0 2px 6px rgba(59, 36, 23, .06);
  --shadow-lg: 0 24px 60px -20px rgba(59, 36, 23, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --gutter: max(16px, var(--sal));
  --gutter-r: max(16px, var(--sar));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.no-scroll, html.no-scroll body { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(1200px 500px at 110% -10%, rgba(227, 168, 43, .16), transparent 60%),
    radial-gradient(900px 500px at -20% 110%, rgba(155, 27, 48, .07), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* subtle leaf motifs in the corners */
body::before, body::after {
  content: "";
  position: fixed;
  width: 220px; height: 220px;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23D9661F' d='M12 1.5L13.8 5.2 16.4 4.2 15.6 8.6 19.6 6.6 18.8 9.6 22 10.6 18.4 13.8 19.2 15.8 14.6 15.2 12.7 17.4 12.7 22.5 11.3 22.5 11.3 17.4 9.4 15.2 4.8 15.8 5.6 13.8 2 10.6 5.2 9.6 4.4 6.6 8.4 8.6 7.6 4.2 10.2 5.2Z'/%3E%3C/svg%3E");
}
body::before { top: -50px; right: -60px; transform: rotate(24deg); }
body::after { bottom: -60px; left: -70px; transform: rotate(-30deg); opacity: .07; }

#app { position: relative; z-index: 1; outline: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
[hidden] { display: none !important; }
.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; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--brown); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: calc(8px + var(--sat)); }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.boot, .noscript, .fatal { max-width: 520px; margin: 18vh auto 0; padding: 24px; text-align: center; }
.boot-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--cranberry); margin: 0; }
.boot-sub { color: var(--muted); margin: 6px 0 0; }
.fatal-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 22px; box-shadow: var(--shadow); }
.fatal-card h1 { font-family: var(--font-display); font-size: 1.7rem; margin: 12px 0 8px; color: var(--brown); }
.fatal-card p { color: var(--muted); margin: 0 0 18px; }
.fatal-emoji { font-size: 3rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), background-color .2s, box-shadow .2s, color .2s, border-color .2s;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--cranberry); color: #fff; box-shadow: 0 6px 16px -6px rgba(155, 27, 48, .6); }
.btn-primary:hover { background: var(--cranberry-600); }
.btn-primary:disabled { background: #C9B4A5; box-shadow: none; cursor: not-allowed; }
.btn-secondary { background: var(--card); color: var(--brown); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--brown-700); }
.btn-ghost { background: transparent; color: var(--brown-700); }
.btn-ghost:hover { background: rgba(59, 36, 23, .06); }
.btn-danger { background: transparent; color: var(--cranberry); border-color: rgba(155, 27, 48, .35); }
.btn-lg { min-height: 56px; font-size: 1.1rem; padding: 0 28px; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: .95rem; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; flex: none;
  border: 0; background: transparent; color: var(--brown);
  transition: background-color .2s, transform .15s;
}
.icon-btn:hover { background: rgba(59, 36, 23, .07); }
.icon-btn:active { transform: scale(.94); }

/* ---------- Views ---------- */
.view { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
/* animate inner content only: a transform on .view would trap the fixed footers */
.view > .wiz-body, .view > .sched { animation: viewIn .25s var(--ease) backwards; }
.view.no-anim > .wiz-body, .view.no-anim > .sched { animation: none; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Wizard ---------- */
.wiz-head {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  padding: calc(8px + var(--sat)) var(--gutter-r) 8px var(--gutter);
  background: rgba(251, 246, 238, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
.wiz-head .back { margin-left: -8px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--brown); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; min-height: 44px; }
.brand svg { width: 30px; height: 30px; }
.wiz-head .brand { flex: 1; min-width: 0; }
.wiz-head .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dots { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.dots button {
  width: 24px; height: 44px; border: 0; background: transparent; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.dots button::before {
  content: ""; width: 10px; height: 10px; border-radius: 99px; background: var(--line-2);
  transition: width .3s var(--ease), background-color .3s;
}
.dots button[aria-current="step"]::before { width: 24px; background: var(--cranberry); }
.dots button.done::before { background: var(--gold); }
.dots button:disabled { cursor: default; }

.wiz-body {
  flex: 1;
  width: 100%; max-width: 600px; margin: 0 auto;
  padding: 12px var(--gutter-r) 140px var(--gutter);
  text-align: center;
}
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--pumpkin-700); margin: 8px 0 6px; }
.q { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.85rem, 7vw, 2.6rem); line-height: 1.1; letter-spacing: -.015em; color: var(--brown); margin: 0 auto 10px; max-width: 16ch; text-wrap: balance; }
.sub { color: var(--muted); margin: 0 auto 18px; max-width: 34ch; text-wrap: pretty; }
.hint { color: var(--muted); font-size: .95rem; margin: 18px auto 0; max-width: 36ch; }

.wiz-foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px var(--gutter-r) calc(12px + var(--sab)) var(--gutter);
  background: linear-gradient(to top, var(--cream) 65%, rgba(251, 246, 238, 0));
}
.wiz-foot-inner { max-width: 600px; margin: 0 auto; display: flex; gap: 10px; }
.wiz-foot-inner .btn { flex: 1; }
.wiz-foot-inner .btn-ghost { flex: 0 1 auto; }

/* ---------- Clock ---------- */
.clock-wrap { width: min(78vw, 330px, 40vh); min-width: 220px; margin: 4px auto 6px; position: relative; }
.clock { width: 100%; height: auto; touch-action: none; cursor: grab; border-radius: 50%; user-select: none; -webkit-user-select: none; }
.clock.dragging { cursor: grabbing; }
.clock:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; border-radius: 50%; }
.clock .face { fill: var(--card); stroke: var(--brown); stroke-width: 6; filter: drop-shadow(0 10px 18px rgba(59, 36, 23, .18)); }
.clock .face-inner { fill: none; stroke: var(--line); stroke-width: 1.5; }
.clock .tick { stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; }
.clock .tick.h { stroke: var(--brown-700); stroke-width: 3.5; }
.clock .num { font-family: var(--font-display); font-weight: 600; font-size: 22px; fill: var(--brown); text-anchor: middle; dominant-baseline: central; }
.clock .num.sel { fill: var(--cranberry); font-weight: 700; }
.clock .ampm-face { font-family: var(--font-sans); font-weight: 700; font-size: 15px; letter-spacing: .18em; fill: var(--pumpkin-700); text-anchor: middle; }
.clock .hand { transform-box: view-box; transform-origin: 150px 150px; transition: transform .22s var(--ease); }
.clock.dragging .hand { transition: none; }
.clock .hand-h line { stroke: var(--brown); stroke-width: 9; stroke-linecap: round; }
.clock .hand-m line { stroke: var(--cranberry); stroke-width: 5; stroke-linecap: round; }
.clock .knob-m { fill: var(--cranberry); stroke: #fff; stroke-width: 3; }
.clock .knob-h { fill: var(--gold); stroke: #fff; stroke-width: 3; }
.clock .cap { fill: var(--brown); }
.clock .cap-dot { fill: var(--gold); }
.clock .arc { fill: none; stroke: var(--gold); stroke-width: 10; stroke-linecap: round; opacity: .35; }

.readout { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 12px; }
.digital { min-width: 0; font-family: var(--font-display); font-weight: 700; color: var(--brown); font-variant-numeric: tabular-nums lining-nums; display: inline-flex; align-items: baseline; gap: 8px; }
.digital .hm { font-size: clamp(3rem, 15vw, 4.25rem); line-height: 1; letter-spacing: -.02em; }
.digital .ap { font-size: 1.4rem; color: var(--cranberry); font-family: var(--font-sans); font-weight: 700; letter-spacing: .06em; }
.round-btn {
  width: 56px; height: 56px; border-radius: 999px; flex: none;
  border: 1.5px solid var(--line-2); background: var(--card); color: var(--brown);
  display: inline-flex; align-items: center; justify-content: center; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .12s, background-color .2s, border-color .2s;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.round-btn:hover { border-color: var(--brown-700); }
.round-btn:active { transform: scale(.93); background: var(--cream-2); }
.round-btn .ico { width: 26px; height: 26px; stroke-width: 2.4; }
.round-btn:disabled { opacity: .4; cursor: not-allowed; }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--cream-2); border: 1px solid var(--line); gap: 2px; }
.seg button { min-height: 40px; min-width: 64px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; font-weight: 700; color: var(--muted); transition: background-color .2s, color .2s, box-shadow .2s; }
.seg button[aria-checked="true"], .seg button[aria-pressed="true"] { background: var(--card); color: var(--cranberry); box-shadow: var(--shadow-sm); }

.presets { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px auto 0; max-width: 420px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--brown-700);
  font-weight: 600; font-size: .92rem; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .12s;
}
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: #fff; }
.chip .count { background: rgba(255,255,255,.22); border-radius: 99px; padding: 0 7px; font-size: .78rem; }
.chip:not([aria-pressed="true"]) .count { background: var(--cream-2); }

/* ---------- Steppers / illustrations ---------- */
.illus { margin: 6px auto 18px; display: flex; justify-content: center; align-items: flex-end; gap: 10px; min-height: 150px; }
.oven-slot { border: 0; background: none; padding: 0; width: 74px; transition: transform .35s var(--ease), opacity .35s; }
.oven-slot svg { width: 100%; height: auto; }
.oven-slot.ghost { opacity: .5; }
.oven-slot.ghost:hover { opacity: .8; }
.oven-slot.on { animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: none; } }
.o-body { fill: var(--card); stroke: var(--brown); stroke-width: 3; }
.o-panel { fill: var(--cream-2); }
.o-knob { fill: var(--brown-700); }
.o-display { fill: var(--brown); }
.o-display-t { fill: var(--gold); font: 700 9px var(--font-sans); text-anchor: middle; dominant-baseline: central; }
.o-handle { fill: var(--brown-700); }
.o-window { fill: #4A3022; }
.on .o-window { fill: url(#ovenGlow); }
.o-rack { stroke: rgba(255, 255, 255, .25); stroke-width: 2; }
.o-heat { fill: none; stroke: rgba(255, 248, 230, .85); stroke-width: 2.5; stroke-linecap: round; opacity: 0; }
.on .o-heat { opacity: 1; animation: heat 1.8s ease-in-out infinite; }
.on .o-heat:nth-child(2) { animation-delay: .3s; }
.on .o-heat:nth-child(3) { animation-delay: .6s; }
@keyframes heat { 0%, 100% { transform: translateY(2px); opacity: .35; } 50% { transform: translateY(-3px); opacity: 1; } }
.ghost .o-body { fill: transparent; stroke-dasharray: 6 5; stroke: var(--line-2); }
.ghost .o-panel, .ghost .o-knob, .ghost .o-display, .ghost .o-handle, .ghost .o-window, .ghost .o-display-t { opacity: 0; }
.o-plus { stroke: var(--line-2); stroke-width: 4; stroke-linecap: round; display: none; }
.ghost .o-plus { display: inline; }

.cooktop { width: 100%; max-width: 330px; height: auto; margin: 0 auto; }
.ct-body { fill: #2E1C12; }
.ct-glass { fill: #3B2417; }
.ct-edge { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 2; }
.ct-knob { fill: var(--cream-2); }
.ct-knob.on { fill: var(--gold); }
.b-grate { fill: none; stroke: #6B4B38; stroke-width: 3; }
.b-ring { fill: #241509; stroke: #7A5642; stroke-width: 2; }
.b-flame { fill: var(--pumpkin); }
.b-flame-in { fill: var(--gold); }
.b-glow { fill: rgba(217, 102, 31, .35); }
.burner-g { transform-box: fill-box; transform-origin: center; }
.burner-g.new { animation: pop .45s var(--ease) both; }
.burner-g .flames { transform-box: fill-box; transform-origin: center; animation: flicker 2.4s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.94); opacity: .85; } }
.b-num { fill: rgba(251, 246, 238, .7); font: 700 10px var(--font-sans); text-anchor: middle; }

.stepper { display: inline-flex; align-items: center; gap: 22px; margin: 4px auto 0; }
.stepper .round-btn { width: 64px; height: 64px; }
.step-val { display: inline-flex; flex-direction: column; align-items: center; min-width: 96px; }
.step-val .num { font-family: var(--font-display); font-weight: 700; font-size: 4.2rem; line-height: 1; color: var(--brown); font-variant-numeric: tabular-nums; }
.step-val .lbl { font-weight: 600; color: var(--muted); }
.step-val .num.bump { animation: bump .3s var(--ease); }
@keyframes bump { 0% { transform: scale(.85); } 70% { transform: scale(1.08); } 100% { transform: none; } }

/* ---------- Dishes ---------- */
.view-dishes .wiz-body { max-width: 980px; text-align: left; }
.view-dishes .q, .view-dishes .sub, .view-dishes .eyebrow { text-align: center; }
.search { position: relative; max-width: 560px; margin: 0 auto 12px; }
.search .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 52px; padding: 0 48px 0 48px;
  border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card);
  font-size: 1.05rem; box-shadow: var(--shadow-sm); -webkit-appearance: none; appearance: none;
}
.search input:focus { border-color: var(--pumpkin); box-shadow: 0 0 0 4px rgba(217, 102, 31, .15); }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 calc(-1 * var(--gutter-r)) 6px calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter-r); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips-row::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .chips-row { flex-wrap: wrap; justify-content: center; overflow: visible; } }

.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
@media (min-width: 760px) { .dish-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; } }
.dish {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  min-height: 112px; padding: 14px 14px 12px; text-align: left;
  border-radius: var(--r); border: 1.5px solid var(--line); background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, background-color .2s, transform .15s var(--ease), box-shadow .2s;
}
.dish:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.dish:active { transform: scale(.97); }
.dish .emo { font-size: 1.9rem; line-height: 1; width: 48px; height: 48px; border-radius: 14px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; }
.dish .nm { font-weight: 700; font-size: 1rem; line-height: 1.25; color: var(--brown); overflow-wrap: anywhere; }
.dish .meta { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.dish .tag { color: var(--sage-700); font-weight: 600; }
.dish .tick {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 99px;
  border: 2px solid var(--line-2); background: var(--card); color: transparent;
  display: flex; align-items: center; justify-content: center; transition: all .2s var(--ease);
}
.dish .tick .ico { width: 16px; height: 16px; stroke-width: 3; }
.dish[aria-pressed="true"] { border-color: var(--cranberry); background: var(--cranberry-50); box-shadow: 0 0 0 1px var(--cranberry) inset, var(--shadow-sm); }
.dish[aria-pressed="true"] .tick { background: var(--cranberry); border-color: var(--cranberry); color: #fff; transform: scale(1.05); }
.dish[aria-pressed="true"] .emo { background: #fff; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.empty .big { font-size: 2.5rem; }

.selbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px var(--gutter-r) calc(10px + var(--sab)) var(--gutter);
  background: rgba(255, 253, 249, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgba(59, 36, 23, .4);
}
.selbar-inner { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.selbar .sel-count { flex: 1; min-width: 0; line-height: 1.2; }
.selbar .sel-count b { font-family: var(--font-display); font-size: 1.6rem; color: var(--cranberry); display: block; }
.selbar .sel-count span { font-size: .85rem; color: var(--muted); }
.selbar .sel-emojis { font-size: .95rem; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 100%; }
.selbar .btn-ghost { padding: 0 12px; }

/* ---------- Shared keyframes ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes wordIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Schedule ---------- */
.appbar {
  position: sticky; top: 0; z-index: 15;
  display: flex; align-items: center; gap: 6px;
  padding: calc(6px + var(--sat)) var(--gutter-r) 6px var(--gutter);
  background: rgba(251, 246, 238, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.appbar.scrolled { border-bottom-color: var(--line); }
.appbar .brand { flex: 1; min-width: 0; }
.appbar-actions { display: none; gap: 6px; }
.appbar-actions .btn { min-height: 44px; }
@media (min-width: 900px) { .appbar-actions { display: flex; } }

.sched {
  width: 100%; max-width: 860px; margin: 0 auto;
  padding: 8px var(--gutter-r) calc(110px + var(--sab)) var(--gutter);
}
@media (min-width: 900px) { .sched { padding-bottom: 60px; } }

.hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: 22px 20px 20px;
  background: linear-gradient(145deg, var(--cranberry) 0%, #7E1527 60%, var(--cranberry-800) 100%);
  color: #fff; box-shadow: var(--shadow);
}
.hero::after {
  content: ""; position: absolute; right: -30px; top: -26px; width: 160px; height: 160px; opacity: .14; transform: rotate(18deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23E3A82B' d='M12 1.5L13.8 5.2 16.4 4.2 15.6 8.6 19.6 6.6 18.8 9.6 22 10.6 18.4 13.8 19.2 15.8 14.6 15.2 12.7 17.4 12.7 22.5 11.3 22.5 11.3 17.4 9.4 15.2 4.8 15.8 5.6 13.8 2 10.6 5.2 9.6 4.4 6.6 8.4 8.6 7.6 4.2 10.2 5.2Z'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}
.hero .eyebrow { color: var(--gold); margin-top: 0; }
.hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 7.2vw, 2.6rem); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.015em; position: relative; z-index: 1; }
.hero-time {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: baseline;
  font: inherit; color: var(--gold); background: none; border: 0; padding: 0;
  border-bottom: 2px dashed rgba(227, 168, 43, .6);
}
.hero-time .ico { width: 18px; height: 18px; opacity: .8; }
.summary { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.sum-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 13px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1);
  color: #fff; font-weight: 600; font-size: .92rem;
  transition: background-color .2s;
}
.sum-chip:hover { background: rgba(255,255,255,.2); }
.sum-chip .ico { width: 18px; height: 18px; }
.sum-chip .pen { width: 14px; height: 14px; opacity: .7; }
.progress { margin-top: 16px; display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.progress .bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; }
.progress .bar span { display: block; height: 100%; background: var(--gold); border-radius: 99px; transition: width .4s var(--ease); }
.progress-txt { font-size: .85rem; font-weight: 600; opacity: .92; white-space: nowrap; }
.live-line { margin: 10px 0 0; font-size: .92rem; opacity: .95; position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 9px; height: 9px; border-radius: 99px; background: #7CE39A; box-shadow: 0 0 0 0 rgba(124, 227, 154, .6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(124, 227, 154, .55); } 70% { box-shadow: 0 0 0 9px rgba(124, 227, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 227, 154, 0); } }

.toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 4px; }
@media (min-width: 600px) { .toolbar { display: flex; flex-wrap: wrap; } }

.upnext {
  margin: 14px 0 0; padding: 16px 16px 16px 18px;
  border-radius: var(--r); background: var(--card); border: 1.5px solid var(--gold);
  box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
}
.upnext.live { border-color: var(--sage); }
.un-label { grid-column: 1 / -1; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--pumpkin-700); display: flex; gap: 8px; align-items: center; }
.upnext.live .un-label { color: var(--sage-700); }
.un-main { min-width: 0; }
.un-time { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--brown); line-height: 1.15; }
.un-text { font-size: 1.15rem; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; }
.un-more { font-size: .88rem; color: var(--muted); }
.upnext.all-done { grid-template-columns: 1fr; text-align: center; border-color: var(--sage); }
.upnext.all-done .un-text { font-family: var(--font-display); font-size: 1.4rem; }

.callout {
  margin: 14px 0 0; padding: 14px 16px; border-radius: var(--r);
  background: var(--gold-100); border: 1px solid #EBCB80; color: #5A3E07;
  display: flex; gap: 12px;
}
.callout .ico { color: var(--pumpkin-700); margin-top: 2px; }
.callout h3 { margin: 0 0 4px; font-size: 1rem; }
.callout ul { margin: 0; padding-left: 18px; }
.callout li { margin: 3px 0; }
.callout.err { background: var(--cranberry-50); border-color: #E7B4BC; color: var(--cranberry-800); }

.section-h { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; }
.section-h h2 { font-family: var(--font-display); font-size: 1.45rem; margin: 0; color: var(--brown); flex: 1; letter-spacing: -.01em; }

.daybefore { margin: 14px 0 0; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.daybefore > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 10px 16px; font-weight: 700; font-size: 1.08rem; color: var(--brown);
}
.daybefore > summary::-webkit-details-marker { display: none; }
.daybefore > summary .ico.moon { color: var(--sage-700); }
.daybefore > summary .db-count { margin-left: auto; font-size: .85rem; font-weight: 600; color: var(--muted); }
.daybefore > summary .chev { transition: transform .25s var(--ease); color: var(--muted); }
.daybefore[open] > summary .chev { transform: rotate(180deg); }
.daybefore ul { list-style: none; margin: 0; padding: 0 8px 8px; }

.viewtoggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 26px 0 8px; }
.viewtoggle-row h2 { font-family: var(--font-display); font-size: 1.45rem; margin: 0; color: var(--brown); }

.timeline { list-style: none; margin: 0; padding: 0; }
.tgroup {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 8px;
  padding: 12px 6px 12px 0; border-top: 1px solid var(--line);
  border-radius: 14px; position: relative;
  transition: background-color .3s;
  scroll-margin-top: 80px;
}
@media (min-width: 600px) { .tgroup { grid-template-columns: 120px minmax(0, 1fr); gap: 0 16px; } }
.tgroup:first-child { border-top: 0; }
.tg-time { padding: 6px 0 0 6px; font-family: var(--font-display); color: var(--brown); line-height: 1.05; font-variant-numeric: tabular-nums lining-nums; }
.tg-time .hm { display: block; font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; }
@media (min-width: 600px) { .tg-time .hm { font-size: 2rem; } }
.tg-time .ap { display: block; font-family: var(--font-sans); font-weight: 700; font-size: .8rem; letter-spacing: .1em; color: var(--muted); margin-top: 3px; }
.tg-time .day { display: block; font-family: var(--font-sans); font-size: .72rem; font-weight: 700; color: var(--sage-700); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.tg-pill { display: inline-block; margin-top: 8px; font-family: var(--font-sans); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; }
.tg-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tgroup.is-now { background: var(--sage-50); box-shadow: 0 0 0 2px var(--sage) inset; border-top-color: transparent; }
.tgroup.is-now + .tgroup { border-top-color: transparent; }
.tgroup.is-now .tg-pill { background: var(--sage-700); color: #fff; }
.tgroup.is-next { background: var(--pumpkin-50); box-shadow: 0 0 0 2px var(--gold) inset; border-top-color: transparent; }
.tgroup.is-next + .tgroup { border-top-color: transparent; }
.tgroup.is-next .tg-pill { background: var(--pumpkin-700); color: #fff; }
.tgroup.all-done .tg-time { opacity: .45; }
.day-divider { list-style: none; display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; color: var(--sage-700); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.day-divider::before, .day-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

.ev { display: flex; align-items: stretch; gap: 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: opacity .25s, background-color .25s, border-color .25s; min-width: 0; }
.ev-main {
  flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 12px; text-align: left;
  padding: 12px 4px 12px 10px; border: 0; background: transparent; border-radius: 14px;
  min-height: 64px;
}
@media (min-width: 600px) { .ev-main { padding-left: 14px; gap: 14px; } }
.ev-check {
  width: 30px; height: 30px; border-radius: 99px; flex: none; margin-top: 2px;
  border: 2.5px solid var(--line-2); color: transparent; background: var(--card);
  display: flex; align-items: center; justify-content: center; transition: all .2s var(--ease);
}
.ev-check .ico { width: 17px; height: 17px; stroke-width: 3.2; }
.ev-icon { display: inline-flex; width: 1.5em; height: 1.5em; border-radius: 8px; align-items: center; justify-content: center; vertical-align: -.32em; margin-right: 6px; background: var(--cream-2); color: var(--brown-700); }
.ev-icon .ico { width: .95em; height: .95em; }
.ev-body { min-width: 0; flex: 1; }
.ev-text { display: block; font-size: 1.2rem; font-weight: 600; line-height: 1.35; color: var(--ink); overflow-wrap: break-word; }
@media (min-width: 600px) { .ev-text { font-size: 1.35rem; } }
.ev-emo { margin-right: 4px; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.ev-tag { font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--cream-2); border-radius: 99px; padding: 2px 9px; }
.ev-share { width: 44px; flex: none; border: 0; background: transparent; color: var(--muted); border-radius: 0 14px 14px 0; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--line); }
.ev-share:hover { color: var(--cranberry); background: var(--cranberry-50); }
.ev.done { background: transparent; box-shadow: none; border-style: dashed; }
.ev.done .ev-text { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(107, 85, 70, .6); color: var(--muted); }
.ev.done .ev-icon, .ev.done .ev-meta { opacity: .5; }
.ev.done .ev-check { background: var(--sage-700); border-color: var(--sage-700); color: #fff; }
.ev.done .ev-check { animation: pop .35s var(--ease); }

.k-preheat .ev-icon, .k-oven-temp .ev-icon { background: #FDE6D3; color: var(--pumpkin-700); }
.k-oven-in .ev-icon, .k-oven-out .ev-icon { background: #FBE3C9; color: #8A3C0B; }
.k-oven-off .ev-icon { background: #EFE7DD; color: var(--brown-700); }
.k-stove-on .ev-icon, .k-stove-off .ev-icon { background: var(--cranberry-50); color: var(--cranberry); }
.k-prep .ev-icon { background: var(--sage-50); color: var(--sage-700); }
.k-wait .ev-icon { background: var(--gold-100); color: #8A6207; }
.k-serve .ev-icon { background: var(--cranberry); color: #fff; }
.k-info .ev-icon { background: #EAE6F0; color: #4E4466; }
.k-serve:not(.done) { border-color: var(--cranberry); background: linear-gradient(180deg, #fff, var(--cranberry-50)); }
.k-serve .ev-text { font-family: var(--font-display); font-weight: 700; }

.daybefore .ev { margin-top: 8px; }

/* Gantt */
.gantt { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y; scroll-behavior: smooth; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); max-width: 100%; }
.gantt:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gantt::-webkit-scrollbar { height: 8px; }
.gantt::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.gantt-inner { min-width: 100%; padding: 12px 30px 16px 14px; position: relative; }
.g-axis { position: relative; height: 22px; margin-left: 84px; border-bottom: 1px solid var(--line); }
.g-axis span { position: absolute; transform: translateX(-50%); font-size: .72rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.g-row { display: flex; align-items: center; min-height: 40px; border-bottom: 1px dashed var(--line); }
.g-row:last-child { border-bottom: 0; }
.g-name { width: 84px; flex: none; font-size: .82rem; font-weight: 700; color: var(--brown-700); }
.g-track { position: relative; flex: 1; height: 30px; }
.g-block { position: absolute; top: 3px; bottom: 3px; border-radius: 7px; padding: 0 6px; font-size: .72rem; font-weight: 600; color: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 24px; min-width: 4px; }
.g-oven .g-block { background: var(--pumpkin); }
.g-burner .g-block { background: var(--cranberry); }
.g-carve { position: absolute; top: 34px; bottom: 10px; width: 2px; background: var(--sage-700); }
.g-carve span { position: absolute; top: -2px; left: 5px; font-size: .68rem; font-weight: 800; color: #fff; background: var(--sage-700); border-radius: 99px; padding: 1px 7px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.g-carve.flip span { left: auto; right: 5px; }
.g-axis span.first { transform: none; }
.g-axis span.last { transform: translateX(-100%); }
.g-group-h { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 12px 0 2px; }
.g-empty { color: var(--muted); font-size: .9rem; padding: 6px 0; }

.sched-foot { text-align: center; color: var(--muted); font-size: .88rem; margin: 36px 0 0; }
.sched-foot .btn { margin-top: 10px; }

/* Bottom tab bar (mobile) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 4px max(4px, var(--sal)) calc(4px + var(--sab)) max(6px, var(--sar));
  background: rgba(255, 253, 249, .95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 54px; border: 0; background: transparent; color: var(--muted);
  font-size: .72rem; font-weight: 700; border-radius: 12px;
}
.tabbar button[aria-current="page"] { color: var(--cranberry); }
.tabbar button .ico { width: 24px; height: 24px; }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- Sheets / drawers ---------- */
.sheet-layer { position: fixed; inset: 0; z-index: 60; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(42, 26, 16, .45); opacity: 0; transition: opacity .3s ease; }
.sheet-layer.open .sheet-backdrop { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: calc(92vh - var(--sat)); max-height: calc(92dvh - var(--sat));
  display: flex; flex-direction: column;
  background: var(--cream); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
  transform: translateY(105%); transition: transform .38s var(--ease);
  outline: none;
}
.sheet-layer.open .sheet { transform: none; }
@media (min-width: 900px) {
  .sheet { left: auto; top: 0; width: min(500px, 92vw); max-height: none; border-radius: 0; transform: translateX(105%); }
}
.sheet-grab { width: 44px; height: 5px; border-radius: 99px; background: var(--line-2); margin: 8px auto 0; flex: none; }
@media (min-width: 900px) { .sheet-grab { display: none; } }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 20px; flex: none; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .sheet-head { padding-top: calc(12px + var(--sat)); } }
.sheet-head h2 { flex: 1; margin: 0; font-family: var(--font-display); font-size: 1.5rem; color: var(--brown); letter-spacing: -.01em; }
.sheet-tabs { display: flex; gap: 6px; padding: 10px 16px 0; flex: none; }
.sheet-tabs .chip { flex: 1; justify-content: center; }
.sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 14px 16px calc(24px + var(--sab)); }
.sheet-intro { color: var(--muted); font-size: .95rem; margin: 0 0 14px; }

/* Accordion */
.acc { display: flex; flex-direction: column; gap: 10px; }
.acc-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.acc-head { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 0; background: transparent; text-align: left; }
.acc-head .emo { font-size: 1.7rem; width: 44px; height: 44px; border-radius: 12px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; flex: none; }
.acc-head .t { flex: 1; min-width: 0; }
.acc-head .t b { display: block; font-size: 1.05rem; color: var(--brown); line-height: 1.25; }
.acc-head .t small { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.acc-head .chev { color: var(--muted); transition: transform .25s var(--ease); }
.acc-item.open .acc-head .chev { transform: rotate(180deg); }
.badge { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--pumpkin-700); border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.acc-body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.acc-body h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--pumpkin-700); margin: 16px 0 8px; }
.acc-body ul, .acc-body ol { margin: 0; padding-left: 20px; }
.acc-body li { margin: 5px 0; }
.acc-body .ing b { font-variant-numeric: tabular-nums; }
.tip { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--sage-50); color: var(--sage-700); font-size: .92rem; }
.phase-list { list-style: none; padding: 0 !important; }
.phase-list li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.phase-list li:last-child { border-bottom: 0; }
.phase-type { flex: none; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 99px; background: var(--cream-2); color: var(--brown-700); margin-top: 2px; min-width: 52px; text-align: center; }
.phase-type.oven { background: #FDE6D3; color: var(--pumpkin-700); }
.phase-type.stove { background: var(--cranberry-50); color: var(--cranberry); }
.phase-type.prep { background: var(--sage-50); color: var(--sage-700); }
.phase-type.wait { background: var(--gold-100); color: #8A6207; }
.phase-list .pm { color: var(--muted); font-size: .88rem; display: block; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* Edit form */
.field-row { display: grid; gap: 6px; align-items: center; margin-bottom: 8px; }
.ing-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; grid-template-areas: "item item del" "qty unit ."; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.ing-row [name="item"] { grid-area: item; }
.ing-row [name="qty"] { grid-area: qty; }
.ing-row [name="unit"] { grid-area: unit; }
.ing-row > :last-child { grid-area: del; }
@media (min-width: 480px) {
  .ing-row { grid-template-columns: 76px 92px minmax(0, 1fr) 44px; grid-template-areas: "qty unit item del"; padding-bottom: 0; border-bottom: 0; }
}
.step-row { grid-template-columns: 26px minmax(0, 1fr) 44px; align-items: start; }
.step-row .n { font-weight: 700; color: var(--muted); padding-top: 12px; text-align: right; }
.inp, .sel, .ta {
  width: 100%; min-height: 44px; padding: 8px 10px; border-radius: 10px;
  border: 1.5px solid var(--line-2); background: #fff; font-size: 16px; min-width: 0;
  -webkit-appearance: none; appearance: none;
}
.sel { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B5546' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 6px center; background-size: 16px; padding-right: 24px; }
.ta { resize: vertical; min-height: 64px; line-height: 1.4; }
.inp:focus, .sel:focus, .ta:focus { border-color: var(--pumpkin); box-shadow: 0 0 0 3px rgba(217, 102, 31, .15); }
.phase-edit { padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--cream); }
.phase-edit .ph-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.phase-edit .nums { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.phase-edit label { display: flex; flex-direction: column; font-size: .78rem; font-weight: 700; color: var(--muted); gap: 3px; flex: 1 1 90px; }
.add-btn { margin-top: 2px; }
.form-actions { position: sticky; bottom: calc(-24px - var(--sab)); margin: 16px -16px -16px; padding: 12px 16px; background: var(--card); border-top: 1px solid var(--line); display: flex; gap: 8px; }
.form-actions .btn { flex: 1; }

/* Shopping */
.shop-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.shop-tools .actions { display: flex; gap: 6px; }
.shop-count { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.shop-group h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--pumpkin-700); margin: 18px 0 6px; }
.shop-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.shop-list li + li { border-top: 1px solid var(--line); }
.shop-item { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border: 0; background: transparent; text-align: left; }
.shop-item .ev-check { margin-top: 0; width: 26px; height: 26px; }
.shop-item .ev-check .ico { width: 15px; height: 15px; }
.shop-item .nm { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.shop-item .uses { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); }
.shop-item .amt { font-weight: 700; color: var(--brown); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.shop-item .amt small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.shop-item[aria-pressed="true"] .nm, .shop-item[aria-pressed="true"] .amt { text-decoration: line-through; color: var(--muted); }
.shop-item[aria-pressed="true"] .ev-check { background: var(--sage-700); border-color: var(--sage-700); color: #fff; }

/* Modal */
.modal-layer { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(42, 26, 16, .5); animation: fadeIn .2s ease both; }
.modal { width: min(400px, 100%); background: var(--card); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-lg); animation: wordIn .3s var(--ease) both; }
.modal h2 { font-family: var(--font-display); margin: 0 0 6px; font-size: 1.4rem; color: var(--brown); }
.modal p { color: var(--muted); margin: 0 0 18px; }
.modal .row { display: flex; gap: 8px; }
.modal .row .btn { flex: 1; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(90px + var(--sab)); z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--brown); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; box-shadow: var(--shadow-lg);
  transition: opacity .25s, transform .3s var(--ease);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 32px; } }

.print-only { display: none; }

/* ---------- Round 2: wizard spacing without subtext ---------- */
.view-ovens .q, .view-burners .q, .view-dishes .q { margin-bottom: 18px; }

/* ---------- Dish variants ---------- */
.dish-grid { align-items: start; }
.dish-cell { display: flex; flex-direction: column; min-width: 0; }
.dish-cell .dish { width: 100%; }
.dish-cell.has-var .dish { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.dish .tag.alt { color: var(--pumpkin-700); }
.dish-var, .dv-pill {
  border: 1.5px solid var(--cranberry); border-top: 0;
  border-radius: 0 0 var(--r) var(--r); background: var(--card);
  box-shadow: 0 0 0 1px var(--cranberry) inset;
}
.dish-var { padding: 10px 8px 8px; display: flex; flex-direction: column; gap: 6px; animation: varIn .22s var(--ease) both; }
@keyframes varIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dv-q { margin: 0 4px 2px; font-size: .8rem; font-weight: 700; color: var(--brown-700); line-height: 1.25; }
.dv-opt {
  display: flex; align-items: flex-start; gap: 8px; width: 100%; min-height: 44px; padding: 8px 8px;
  border-radius: 12px; border: 1.5px solid var(--line); background: #fff; text-align: left;
  transition: border-color .2s, background-color .2s;
}
.dv-opt:hover { border-color: var(--line-2); }
.dv-opt[aria-checked="true"] { border-color: var(--cranberry); background: var(--cranberry-50); }
.dv-dot { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 99px; border: 2px solid var(--line-2); background: #fff; transition: border .15s; }
.dv-opt[aria-checked="true"] .dv-dot { border: 5.5px solid var(--cranberry); }
.dv-t { min-width: 0; line-height: 1.2; }
.dv-t b { display: block; font-size: .9rem; color: var(--brown); }
.dv-t small { display: block; font-size: .74rem; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.dv-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%;
  min-height: 44px; padding: 0 12px; font-weight: 700; font-size: .85rem; color: var(--cranberry);
  background: var(--cranberry-50);
}
.dv-pill .ico { width: 18px; height: 18px; }
.dv-pill:hover { background: #F7DDE1; }

/* Quick Recipes variant switch */
.acc-var { padding: 0 14px 12px; }
.acc-var .seg { display: flex; width: 100%; }
.acc-var .seg button { flex: 1; min-width: 0; padding: 0 10px; min-height: 44px; font-size: .92rem; }
.acc-head .cook-dot { margin-right: -2px; }

/* ---------- Schedule filter + cooks ---------- */
.seg-3 { width: 100%; }
.seg-3 button { flex: 1; min-width: 0; padding: 0 8px; min-height: 44px; font-size: .92rem; white-space: nowrap; }
@media (min-width: 600px) { .seg-3 { width: auto; } .seg-3 button { padding: 0 16px; } }
.viewtoggle-row h2 { flex: 1 1 auto; }
.who-row { margin-bottom: 4px; padding-top: 2px; }
.who-row .chip { min-height: 44px; }
.who-row .chip .ico { width: 18px; height: 18px; }
.cook-dot {
  --c: var(--brown-700);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: 99px; background: var(--c); color: #fff;
  font: 800 .78rem/1 var(--font-sans); letter-spacing: .02em;
  box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(59, 36, 23, .25);
}
.cook-dot.sm { width: 22px; height: 22px; font-size: .62rem; box-shadow: none; }
.chip[aria-pressed="true"] .cook-dot.sm { box-shadow: 0 0 0 1.5px #fff; }
.cook-dot.unset { background: transparent; color: var(--muted); border: 2px dashed var(--line-2); box-shadow: none; }
.cook-dot.unset .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.ev { position: relative; }
.ev.has-cook .ev-main { min-height: 94px; }
.ev-cook { position: absolute; left: 3px; top: 46px; width: 44px; height: 44px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 99px; }
.ev-cook .cook-dot { width: 28px; height: 28px; font-size: .72rem; }
@media (min-width: 600px) { .ev-cook { left: 7px; } }
.ev-cook:hover .cook-dot:not(.unset) { transform: scale(1.08); }
.ev-cook.none:hover .cook-dot { border-color: var(--brown-700); color: var(--brown-700); }
.ev-by { font-size: .8rem; font-weight: 700; color: var(--sage-700); padding: 2px 0; }
.ev.done .ev-meta { opacity: 1; }
.ev.done .ev-tag { opacity: .5; }
.ev-meta:empty { display: none; }
.empty .btn { margin-top: 6px; }
.empty.slim { padding: 18px 10px 6px; }

.sync-pill { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 9px 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .14); color: #fff; letter-spacing: .1em; vertical-align: 1px; }
.sync-pill .live-dot { width: 7px; height: 7px; }
.sync-pill.off .live-dot { background: #F2B544; animation: none; }

/* Cooks panel */
.cook-add { display: flex; gap: 8px; margin: 0 0 12px; }
.cook-add .inp { flex: 1; min-height: 48px; border-radius: 999px; padding: 0 16px; }
.cook-add .btn { min-height: 48px; }
.cook-chips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cook-chip { display: inline-flex; align-items: center; gap: 8px; padding: 0 0 0 7px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-height: 44px; }
.cook-chip .nm { font-weight: 700; color: var(--brown); }
.cook-chip .nm small { color: var(--muted); font-weight: 600; }
.cook-chip .icon-btn { color: var(--muted); }
.cooks-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--pumpkin-700); margin: 22px 0 6px; }
.sheet-intro.small { font-size: .86rem; margin-top: 10px; }
.me-row { display: flex; flex-wrap: wrap; gap: 8px; }
.me-row .chip { min-height: 44px; }
.assign-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.assign-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; min-height: 60px; }
.assign-list li + li { border-top: 1px solid var(--line); }
.assign-list .emo { font-size: 1.4rem; width: 36px; text-align: center; flex: none; }
.assign-list .nm { flex: 1; min-width: 0; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.assign-list .sel { width: auto; flex: none; max-width: 46%; min-width: 108px; font-weight: 700; border-color: var(--line-2); }
.assign-list .sel[style] { border-color: var(--c); color: var(--c); box-shadow: 0 0 0 1px var(--c) inset; }
.callout.soft { background: var(--card); border-color: var(--line); color: var(--ink); margin-top: 22px; }
.callout.soft .ico { color: var(--cranberry); }
.callout.soft p { margin: 0 0 10px; color: var(--muted); }

/* Sheet tabs: three chips */
.sheet-tabs .chip { padding: 0 8px; min-height: 44px; font-size: .88rem; gap: 5px; }
.sheet-tabs .chip .ico { width: 18px; height: 18px; }

/* Tab bar: five tabs */
.tabbar button { min-width: 0; padding: 0 2px; font-size: .68rem; }
.tabbar button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Pick + share modals ---------- */
.modal .row:only-child { margin-top: 0; }
.pick-list { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; max-height: 50vh; overflow-y: auto; }
.pick-opt {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px;
  border-radius: 14px; border: 1.5px solid var(--line); background: #fff; text-align: left; font-weight: 700; color: var(--brown);
}
.pick-opt span:not(.cook-dot) { flex: 1; min-width: 0; }
.pick-opt[aria-pressed="true"] { border-color: var(--cranberry); background: var(--cranberry-50); }
.pick-opt .pick-check { color: var(--cranberry); width: 20px; height: 20px; stroke-width: 3; }
.pick .cook-dot { box-shadow: none; }
.modal p { overflow-wrap: anywhere; }

.share-layer { align-items: flex-end; padding: 0; }
@media (min-width: 600px) { .share-layer { align-items: center; padding: 20px; } }
.modal.share { width: 100%; max-width: 440px; border-radius: 22px 22px 0 0; padding: 14px 18px calc(18px + var(--sab)); max-height: 94vh; overflow-y: auto; }
@media (min-width: 600px) { .modal.share { border-radius: var(--r-lg); padding-bottom: 20px; } }
.share-head { display: flex; align-items: center; gap: 8px; margin: 0 -6px 6px 0; }
.share-head h2 { flex: 1; margin: 0; }
.share-qr { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 236px; margin: 4px 0 10px; }
.qr-img { width: min(220px, 62vw); padding: 10px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.qr-img svg { width: 100%; height: auto; }
.qr-cap { margin: 8px 0 0 !important; font-size: .82rem; }
.qr-wait { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; text-align: center; max-width: 30ch; }
.qr-wait .ico { width: 28px; height: 28px; }
.spin { width: 30px; height: 30px; border-radius: 99px; border: 3px solid var(--line); border-top-color: var(--cranberry); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.share-mode { display: flex; gap: 8px; align-items: flex-start; justify-content: center; text-align: left; font-size: .92rem; margin: 0 0 12px !important; color: var(--ink) !important; }
.share-mode:empty { display: none; }
.share-mode.is-live { color: var(--sage-700) !important; }
.share-mode .live-dot { margin-top: 6px; }
.share-link { display: flex; gap: 8px; margin-bottom: 12px; }
.share-link .inp { flex: 1; font-size: .9rem; color: var(--muted); background: var(--cream); }
.share-btns { display: flex; flex-direction: column; gap: 6px; }

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

/* ---------- Print ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; color: #000; font-size: 11.5pt; }
  body::before, body::after { display: none; }
  .appbar, .wiz-head, .tabbar, .toolbar, .modal-layer, .who-row, .hero, .upnext, .callout, .daybefore, .viewtoggle-row, .timeline, .gantt, .sched-foot, .toast, .sheet-layer, .skip-link, .selbar, .wiz-foot { display: none !important; }
  .view { animation: none; min-height: 0; }
  .sched { padding: 0; max-width: none; }
  .print-only { display: block; }
  .pr h1 { font-family: var(--font-display); font-size: 20pt; margin: 0 0 2pt; }
  .pr .pr-sub { margin: 0 0 12pt; font-size: 10.5pt; }
  .pr h2 { font-size: 12pt; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1.5pt solid #000; padding-bottom: 2pt; margin: 14pt 0 6pt; }
  .pr table { width: 100%; border-collapse: collapse; }
  .pr td { padding: 4pt 4pt; border-bottom: .5pt solid #999; vertical-align: top; }
  .pr td.box { width: 14pt; font-size: 12pt; }
  .pr td.tm { width: 62pt; font-weight: 700; white-space: nowrap; }
  .pr tr { break-inside: avoid; }
  .pr .done td { color: #666; }
  .pr .done .tx { text-decoration: line-through; }
  .pr ul { margin: 0; padding-left: 16pt; }
  .pr .pr-shop { break-before: page; }
  .pr .pr-foot { margin-top: 14pt; font-size: 9pt; color: #444; }
}
