/* Dayplate: a prep-kitchen label system. The only saturated colours are the seven day dots,
   and a colour on screen always means a weekday. See .impeccable.md for the brief. */
:root {
  color-scheme: light;
  --ground: oklch(0.855 0.012 215);     /* walk-in steel */
  --ground-2: oklch(0.815 0.014 215);
  --label: oklch(0.972 0.005 110);      /* label stock */
  --label-2: oklch(0.94 0.007 110);
  --ink: oklch(0.265 0.04 255);         /* blue-black marker */
  --ink-2: oklch(0.44 0.03 255);
  --rule: oklch(0.265 0.04 255 / 0.16);
  --rule-2: oklch(0.265 0.04 255 / 0.32);
  --mon: #1f5fbf; --tue: #f2c200; --wed: #d62828; --thu: #7a4a2b; --fri: #2e8b3d; --sat: #f07c1e; --sun: #1e1e1e;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Verdana, 'Segoe UI', sans-serif;
  --hand: 'Gochi Hand', 'Segoe Print', 'Comic Sans MS', cursive;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --r: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tabs-h: 60px;
}
.d0 { --dot: var(--sun); --on-dot: #fff; } .d1 { --dot: var(--mon); --on-dot: #fff; } .d2 { --dot: var(--tue); --on-dot: #1b2233; }
.d3 { --dot: var(--wed); --on-dot: #fff; } .d4 { --dot: var(--thu); --on-dot: #fff; } .d5 { --dot: var(--fri); --on-dot: #fff; } .d6 { --dot: var(--sat); --on-dot: #1b2233; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.5 var(--body);
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + var(--s5));
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--label); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
.num { font-variant-numeric: tabular-nums; }
.quiet { color: var(--ink-2); }
.small { font-size: .9rem; }

/* ── top bar and tabs ── */
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s3) max(var(--s4), env(safe-area-inset-left, 0px)) var(--s3) max(var(--s4), env(safe-area-inset-left, 0px)); }
.brand { display: inline-flex; flex-direction: column; gap: 3px; text-decoration: none; }
.brand-dots { display: flex; gap: 3px; }
.brand-dots i { width: 13px; height: 13px; border-radius: 50%; background: var(--dot); }
.brand-word { font: 900 1.9rem/0.85 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ink); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabs a { display: grid; place-items: center; height: var(--tabs-h); color: var(--label); text-decoration: none; font-weight: 600; opacity: .68; position: relative; }
.tabs a[aria-current="page"] { opacity: 1; }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--label); }
.tabs a:focus-visible { outline-color: var(--label); outline-offset: -4px; }
@media (min-width: 860px) {
  body { padding-bottom: var(--s8); }
  .top { padding-inline: var(--s6); border-bottom: 2px solid var(--ink); }
  .tabs { position: static; background: none; display: flex; gap: var(--s2); padding: 0; }
  .tabs a { height: 44px; padding: 0 var(--s4); color: var(--ink); border-radius: var(--r); opacity: 1; }
  .tabs a[aria-current="page"] { background: var(--ink); color: var(--label); }
  .tabs a[aria-current="page"]::after { display: none; }
  .tabs a:focus-visible { outline-color: var(--ink); outline-offset: 2px; }
}

#view { max-width: 1180px; margin: 0 auto; padding: var(--s4) max(var(--s4), env(safe-area-inset-left, 0px)) 0; outline: none; display: grid; gap: var(--s6); }
@media (min-width: 860px) { #view { padding: var(--s6) var(--s6) 0; } }
.page-head { display: grid; gap: var(--s2); }
.page-head h1 { font: 900 clamp(2.6rem, 9vw, 4.2rem)/0.86 var(--display); text-transform: uppercase; }
.page-head p { max-width: 60ch; }

/* ── controls ── */
.btn { min-height: 44px; padding: 0 var(--s4); border: 2px solid var(--ink); background: transparent; border-radius: var(--r); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); text-decoration: none; }
.btn:hover { background: var(--label); }
.btn.solid { background: var(--ink); color: var(--label); }
.btn.solid:hover { background: oklch(0.36 0.05 255); }
.btn.plain { border-color: transparent; padding-inline: var(--s2); text-decoration: underline; text-underline-offset: 3px; }
.btn.plain:hover { background: transparent; text-decoration-thickness: 2px; }
.btn:active { transform: translateY(1px); }
.row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--label); }
.seg button { min-height: 42px; min-width: 46px; padding: 0 var(--s3); border: 0; background: none; font-weight: 600; }
.seg button + button { border-left: 1px solid var(--rule-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--label); }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: var(--r); background: var(--label); }
.stepper button { width: 46px; height: 42px; border: 0; background: none; font-size: 1.35rem; font-weight: 700; line-height: 1; }
.stepper button:hover { background: var(--label-2); }
.stepper output, .stepper input { min-width: 5.2rem; text-align: center; font-weight: 700; border: 0; background: none; padding: 0 var(--s1); }
.stepper input { width: 3.4rem; min-width: 0; height: 42px; }
.field { display: grid; gap: var(--s1); min-width: 0; max-width: 100%; }
select { max-width: 100%; width: 100%; text-overflow: ellipsis; }
.field > span, .field > label { font-weight: 600; font-size: .9rem; }
input[type="date"], select, textarea { min-height: 46px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--label); padding: 0 var(--s3); }
textarea { padding: var(--s3); width: 100%; min-height: 96px; resize: vertical; }

/* ── plan ── */
.plan-bar { display: grid; gap: var(--s4); background: var(--label); border: 2px solid var(--ink); border-radius: var(--r); padding: var(--s4); }
.plan-bar .fields { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s5); align-items: end; }
.notice { background: var(--label); border: 2px dashed var(--ink); border-radius: var(--r); padding: var(--s3) var(--s4); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; justify-content: space-between; }
.days { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr)); align-items: start; }

.day { background: var(--label); border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; display: grid; }
.day-head { background: var(--dot); color: var(--on-dot); display: grid; grid-template-columns: auto 1fr; align-items: end; gap: var(--s3); padding: var(--s2) var(--s4) var(--s2); }
.day-abbr { font: 900 3.1rem/0.82 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.day-date { font-weight: 600; padding-bottom: 2px; }
.slots { display: grid; }
.slot { border-bottom: 1px solid var(--rule); }
.slot-btn { width: 100%; min-height: 60px; display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: var(--s2) var(--s4); background: none; border: 0; text-align: left; }
.slot-btn:hover { background: var(--label-2); }
.slot-kind { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.slot-name { font-weight: 700; line-height: 1.25; }
.slot-meta { display: block; font-weight: 400; font-size: .88rem; color: var(--ink-2); }
.slot-btn.empty .slot-name { font-weight: 400; color: var(--ink-2); }
.slot-act { font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.slot-btn.empty .slot-act { text-decoration: none; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; line-height: 1; }
.picker { background: var(--label-2); border-top: 1px solid var(--rule-2); padding: var(--s2) var(--s3) var(--s3); display: grid; gap: var(--s2); animation: open .28s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }
.picker h4 { font-size: .85rem; font-weight: 600; color: var(--ink-2); padding: var(--s2) var(--s1) 0; }
.opt { width: 100%; min-height: 52px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: var(--s2) var(--s3); background: var(--label); border: 1.5px solid var(--rule-2); border-radius: var(--r); text-align: left; }
.opt:hover { border-color: var(--ink); }
.opt[aria-pressed="true"] { border: 2px solid var(--ink); }
.opt b { display: block; line-height: 1.25; }
.opt small { color: var(--ink-2); font-size: .85rem; }
.opt .n { text-align: right; font-size: .88rem; line-height: 1.3; white-space: nowrap; }
.day-sum { padding: var(--s3) var(--s4); display: grid; gap: var(--s3); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.stat { display: grid; gap: 2px; min-width: 0; }
.stat-l { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.stat-v { font: 900 2.2rem/0.9 var(--display); font-variant-numeric: tabular-nums; }
.stat-v small { font: 600 .85rem var(--body); margin-left: 3px; }
.stat-t { font-size: .85rem; color: var(--ink-2); }
.meter { height: 8px; background: var(--rule); border-radius: 4px; position: relative; overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); background: var(--ink); border-radius: 4px; transition: width .5s var(--ease); }
.verdict { font-weight: 600; }
.day-foot { display: flex; flex-wrap: wrap; gap: 0 var(--s2); padding: 0 var(--s2) var(--s2); border-top: 1px solid var(--rule); }
.detail { padding: var(--s3) var(--s4) var(--s4); border-top: 1px solid var(--rule); display: grid; gap: var(--s3); animation: open .28s var(--ease); }
.nrows { display: grid; }
.nrow { display: grid; grid-template-columns: minmax(0, 1fr) auto 3.4rem; gap: 2px var(--s3); align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.nrow:last-child { border-bottom: 0; }
.nrow .meter { grid-column: 1 / -1; height: 5px; }
.nrow b { font-weight: 600; }
.nrow .low { font-weight: 700; }
.nrow .amt { color: var(--ink-2); font-size: .9rem; }
.nrow .pct { text-align: right; font-weight: 700; font-size: .9rem; }
.limit { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.limit b { font-weight: 600; }
.macro-line { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); }
.macro-line span b { font-weight: 700; }

.summary { display: grid; gap: var(--s3); background: var(--label); border: 2px solid var(--ink); border-radius: var(--r); padding: var(--s4); }
.summary h2 { font: 900 1.7rem/0.9 var(--display); text-transform: uppercase; }
.gaps li { padding: 6px 0; border-top: 1px solid var(--rule); }

/* ── cook list and recipe library ── */
.sec-h { font: 900 1.9rem/0.9 var(--display); text-transform: uppercase; padding-bottom: var(--s2); border-bottom: 3px solid var(--ink); }
.sec-sub { font-weight: 600; padding-top: var(--s4); }
.stack { display: grid; gap: var(--s4); }
.prep { background: var(--label); border: 2px solid var(--ink); border-radius: var(--r); padding: var(--s4); display: grid; gap: var(--s3); }
.prep-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: start; }
.prep h3 { font: 900 1.7rem/0.95 var(--display); text-transform: uppercase; }
.prep-count { font: 900 2.2rem/0.9 var(--display); text-align: right; }
.prep-count small { display: block; font: 600 .85rem var(--body); color: var(--ink-2); }
.eaten { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.daydot { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.daydot::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--dot); border: 1px solid oklch(0 0 0 / 0.25); }
.advice { background: var(--label-2); border-radius: var(--r); padding: var(--s2) var(--s3); }
.lib { display: grid; }
.lib a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--rule-2); text-decoration: none; min-height: 60px; }
.lib a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.lib b { font-size: 1.1rem; display: block; line-height: 1.25; }
.lib small { color: var(--ink-2); }
.lib .n { text-align: right; font-size: .9rem; white-space: nowrap; line-height: 1.3; }

/* ── recipe ── */
.back { justify-self: start; }
.recipe-head { display: grid; gap: var(--s3); }
.recipe-head h1 { font: 900 clamp(2.3rem, 8vw, 3.8rem)/0.88 var(--display); text-transform: uppercase; text-wrap: balance; }
.facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); padding: var(--s3) 0; border-block: 3px solid var(--ink); }
.facts .stat-v { font-size: 2.4rem; }
.recipe-grid { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 960px) { .recipe-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.panel { background: var(--label); border: 2px solid var(--ink); border-radius: var(--r); padding: var(--s4); display: grid; gap: var(--s4); }
.panel h2 { font: 900 1.6rem/0.9 var(--display); text-transform: uppercase; }
.ings { display: grid; }
.ing { border-bottom: 1px solid var(--rule); padding: var(--s3) 0; display: grid; gap: 4px; }
.ing:last-child { border-bottom: 0; }
.ing-top { display: grid; grid-template-columns: 56px 5.4rem minmax(0, 1fr); gap: var(--s3); align-items: start; }
.ph { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--rule-2); background: var(--label-2); display: block; }
.ph.none { border: 0; background: none; }
.ing-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.ing-amt small { display: block; font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.ing-name { font-weight: 600; }
.ing-prod { grid-column: 3; font-size: .9rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 2px var(--s3); align-items: baseline; }
.linkbtn { background: none; border: 0; padding: 6px 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.tags { grid-column: 1 / -1; display: grid; gap: var(--s2); padding-top: var(--s2); animation: open .28s var(--ease); }
/* shelf-edge tag: product on the left, the "price block" holds calories */
.tag.has-ph { grid-template-columns: 76px minmax(0, 1fr) 6.4rem; }
.tag-ph { width: 76px; height: 100%; min-height: 76px; border: 0; border-right: 1px solid var(--rule-2); border-radius: 0; }
.tag { display: grid; grid-template-columns: minmax(0, 1fr) 6.4rem; border: 1.5px solid var(--rule-2); border-radius: var(--r); background: var(--label); overflow: hidden; text-align: left; padding: 0; width: 100%; }
.tag:hover { border-color: var(--ink); }
.tag[aria-pressed="true"] { border: 2.5px solid var(--ink); }
.tag-main { padding: var(--s2) var(--s3); display: grid; gap: 2px; min-width: 0; }
.tag-store { font-size: .8rem; font-weight: 700; }
.tag-name { font-weight: 600; line-height: 1.25; }
.tag-note { font-size: .84rem; color: var(--ink-2); }
.tag-price { background: var(--label-2); border-left: 1px solid var(--rule-2); padding: var(--s2); display: grid; align-content: center; justify-items: center; text-align: center; }
.tag-price b { font: 900 1.9rem/0.9 var(--display); }
.tag-price small { font-size: .74rem; line-height: 1.2; color: var(--ink-2); }
.tag[aria-pressed="true"] .tag-price { background: var(--ink); color: var(--label); }
.tag[aria-pressed="true"] .tag-price small { color: var(--label); }
.tag-links { grid-column: 1 / -1; font-size: .84rem; padding: 0 var(--s1); display: flex; gap: 0 var(--s4); flex-wrap: wrap; align-items: center; }
.tag-links .linkbtn { font-size: .84rem; min-height: 36px; }
.pantry { font-size: .95rem; }
.steps { counter-reset: s; display: grid; gap: var(--s4); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); }
.steps li::before { content: counter(s); font: 900 2.1rem/0.95 var(--display); }
.steps h3 { font-size: 1.08rem; font-weight: 700; }
.steps p { max-width: 62ch; }
/* storage block drawn as a food-rotation label */
.rot { border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--label); }
.rot-head { background: var(--dot); color: var(--on-dot); padding: var(--s2) var(--s4); display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.rot-head b { font: 900 1.9rem/0.9 var(--display); text-transform: uppercase; }
.rot-row { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: var(--s3); padding: var(--s2) var(--s4); border-top: 1px solid var(--rule-2); align-items: baseline; }
.rot-row dt { font-size: .85rem; font-weight: 700; }
.rot-row .hand { font: 400 1.45rem/1.05 var(--hand); }
.tips li { padding-left: var(--s4); position: relative; }
.tips li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--ink); }
.stars { display: inline-flex; gap: 2px; }
.stars button { width: 44px; height: 44px; border: 2px solid var(--ink); background: var(--label); border-radius: 50%; font-weight: 700; }
.stars button[aria-pressed="true"] { background: var(--ink); color: var(--label); }

/* ── cook mode ── */
.cookmode { min-height: calc(100dvh - 190px); display: grid; grid-template-rows: auto 1fr auto; gap: var(--s5); }
.cm-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.cm-step { align-self: center; display: grid; gap: var(--s4); }
.cm-n { font: 900 1.4rem/1 var(--display); text-transform: uppercase; }
.cm-step h1 { font: 900 clamp(2.4rem, 9vw, 4.4rem)/0.9 var(--display); text-transform: uppercase; text-wrap: balance; }
.cm-step p { font-size: clamp(1.25rem, 4.4vw, 1.6rem); line-height: 1.42; max-width: 34ch; }
.cm-nav { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s3); }
.cm-nav .btn { min-height: 64px; font-size: 1.2rem; }
.cm-ings { background: var(--label); border: 2px solid var(--ink); border-radius: var(--r); padding: var(--s3) var(--s4); }
.cm-ings li { display: flex; justify-content: space-between; gap: var(--s3); padding: 5px 0; border-bottom: 1px solid var(--rule); }

/* ── shop ── */
.aisle { display: grid; max-width: 860px; }
.aisle h2 { font: 900 1.6rem/0.9 var(--display); text-transform: uppercase; padding: var(--s4) 0 var(--s2); border-bottom: 3px solid var(--ink); }
.item { display: grid; grid-template-columns: 44px 56px minmax(0, 1fr); gap: var(--s2) var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--rule-2); align-items: start; }
.check { width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--label); display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; line-height: 1; }
.check[aria-pressed="true"] { background: var(--ink); color: var(--label); }
.item-main { display: grid; gap: 2px; padding-top: 2px; min-width: 0; }
.item-name { font-weight: 700; display: flex; flex-wrap: wrap; gap: 0 var(--s3); justify-content: space-between; align-items: baseline; }
.item-name span { font-weight: 600; font-variant-numeric: tabular-nums; }
.item.done .item-name, .item.done .item-prod { text-decoration: line-through; color: var(--ink-2); }
.item-prod { font-size: .92rem; color: var(--ink-2); }
.item .tags { grid-column: 1 / -1; }
.item .ph { width: 56px; height: 56px; }
.credits { display: grid; gap: 4px; padding-top: var(--s2); font-size: .88rem; }
details summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.plainlist { columns: 2 180px; column-gap: var(--s6); padding-top: var(--s3); }
.plainlist li { padding: 4px 0; break-inside: avoid; }

/* ── settings ── */
.settings { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); align-items: start; }
.prose { display: grid; gap: var(--s3); max-width: 68ch; }
.prose li { padding-left: var(--s4); position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--ink); }

.qr { width: min(240px, 100%); border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: #fff; }
.qr svg { display: block; width: 100%; height: auto; }

/* ── walkthrough ── */
.tour { position: fixed; inset: 0; z-index: 30; }
.tour-hole { position: fixed; border-radius: 10px; box-shadow: 0 0 0 200vmax oklch(0.2 0.04 255 / 0.66); outline: 3px solid var(--label); pointer-events: none; transition: left .4s var(--ease), top .4s var(--ease), width .4s var(--ease), height .4s var(--ease); }
.tour-card { position: fixed; width: min(380px, calc(100vw - 24px)); background: var(--label); border: 2px solid var(--ink); border-radius: var(--r); padding: var(--s4); display: grid; gap: var(--s2); transition: left .4s var(--ease), top .4s var(--ease); }
.tour-card:focus { outline: none; }
.tour-n { font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.tour-card h2 { font: 900 2rem/0.92 var(--display); text-transform: uppercase; }
.tour-btns { display: flex; flex-wrap: wrap; gap: var(--s2); padding-top: var(--s2); align-items: center; }

/* ── toast ── */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + 12px); z-index: 15; background: var(--ink); color: var(--label); border-radius: var(--r); padding: var(--s2) var(--s2) var(--s2) var(--s4); display: flex; align-items: center; gap: var(--s3); width: max-content; max-width: calc(100vw - 32px); animation: open .3s var(--ease); }
.toast button { min-height: 40px; padding: 0 var(--s3); background: var(--label); color: var(--ink); border: 0; border-radius: 4px; font-weight: 700; }
@media (min-width: 860px) { .toast { bottom: 24px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  .top, .toast, .btn, .linkbtn, .day-foot, .check { display: none !important; }
  body { background: #fff; padding: 0; }
  .day, .panel, .prep { break-inside: avoid; }
}
