/* /dinners/ — what's for dinner this week, and the shopping list it writes (UX run-19). A v2 page on
   the css/toys.css tokens (DESIGN.md § 8f): putty surface, physical depth, springy keys, light and dark,
   Geist + Geist Mono like the other family pages. One lemon accent, the kitchen's colour: tonight's slab
   with a plate drawn in CSS, the «Fill» key, today's night and the ticks. Lemon is an object colour and
   stays the same in dark mode; text on it is ink. The shared header floats fixed over the page; the
   body clears its height. */
body.dn {
  --t-display: "Geist", ui-sans-serif, system-ui, sans-serif;
  --dn-gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --dn-ink: #141414;               /* text on lemon: 12.76:1 */
  --dn-lemon-text: #806100;        /* lemon-coloured text on putty and card, light: 4.85 / 5.35:1 */
  padding-top: var(--header-h);
  font-family: var(--t-display);
  font-variation-settings: normal;
}
@media (prefers-color-scheme: dark) {
  body.dn { --dn-lemon-text: #ffd23f; }
}
html:has(body.dn) { scroll-padding-top: calc(var(--header-h) + 18px); }
body.dn .t-wrap,
body.dn .container-wide { width: min(100% - 2 * var(--dn-gutter), 1240px); }
.dn-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Until dinners.js has drawn the plan, everything under the masthead is laid out but not painted. */
html.dn-wait #dn-tonight,
html.dn-wait #dn-app,
html.dn-wait .dn-real,
html.dn-wait .site-foot { visibility: hidden; animation: dn-show 0s 3s forwards; }
@keyframes dn-show { to { visibility: visible; } }
/* Side by side, the masthead sits at the foot of the row the tonight card sets, so it waits with the card
   (UX run-27: the card grew past it and the masthead jumped once the plan was drawn). */
@media (min-width: 1000px) { html.dn-wait .dn-mast { visibility: hidden; animation: dn-show 0s 3s forwards; } }
@media (scripting: none) { #dn-app, #dn-tonight { display: none; } }
.dn-noscript { margin: 0 0 32px; padding: 18px 20px; border-radius: var(--t-r-m); background: var(--t-card); box-shadow: inset 0 0 0 2px var(--t-line); }

/* ---------- Masthead and tonight ---------- */
.dn-main { padding-bottom: 40px; }
.dn-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 48px; padding-bottom: 32px; }
@media (min-width: 1000px) { .dn-top { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: end; padding-top: 28px; } }
.dn-mast { padding: 36px 0 24px; }
@media (min-width: 1000px) { .dn-mast { padding: 28px 0 8px; } }
.dn-kicker { margin: 0 0 14px; color: var(--t-ink-2); }
.dn-mast h1 {
  margin: 0; max-width: 11ch;
  font-size: 2.5rem; line-height: .94; font-weight: 800; letter-spacing: -.02em; text-wrap: balance;
  animation: dn-rise .7s var(--t-spring) both;
}
.dn-mast h1:focus { outline: none; } /* focused only by script, when the toast that had the keyboard closes */
.dn-lede { margin: 20px 0 0; max-width: 46ch; font-size: 1.125rem; line-height: 1.4; color: var(--t-ink-2); text-wrap: pretty; }
.dn-lede strong { color: var(--t-ink); font-weight: 600; }
@keyframes dn-rise { from { transform: translateY(28px) scale(.97); } }
@media (min-width: 380px) { .dn-mast h1 { font-size: 2.75rem; } }
@media (min-width: 600px) { .dn-mast h1 { font-size: 4.25rem; } .dn-lede { font-size: 1.3125rem; } }
@media (min-width: 1100px) { .dn-mast h1 { font-size: 5.25rem; } }

.dn-tonight {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 300px; padding: 22px 20px 20px; border-radius: 34px;
  background: var(--t-lemon); color: var(--dn-ink);
  box-shadow: inset 0 -10px 0 rgba(0,0,0,.14), 0 24px 44px -26px rgba(120,90,0,.8);
  animation: dn-slab .8s var(--t-spring) .08s both;
}
@keyframes dn-slab { from { transform: translateY(36px) scale(.97); } }
@media (min-width: 600px) { .dn-tonight { padding: 30px 32px 26px; } }
/* A plate seen from above, drawn: rim, well and a fork's shadow of a line. Decoration only. */
.dn-plate {
  position: absolute; z-index: -1; right: -58px; top: -58px; width: 180px; height: 180px; border-radius: 50%;
  background: #fff8dc; box-shadow: inset 0 0 0 14px #fff2c0, 0 18px 30px -18px rgba(120,90,0,.6);
  animation: dn-spin 1.1s var(--t-out) .1s both;
}
.dn-plate i { position: absolute; inset: 36px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(120,90,0,.16); }
@keyframes dn-spin { from { transform: rotate(-40deg) scale(.8); } }
@media (min-width: 600px) { .dn-plate { right: -40px; top: -40px; width: 250px; height: 250px; } .dn-plate i { inset: 44px; } }
body.dn .dn-tonight :focus-visible { outline: 3px solid var(--dn-ink); outline-offset: 3px; }
.dn-tonight-k { margin: 0; max-width: calc(100% - 150px); font: 600 .8125rem/1.3 var(--t-mono); letter-spacing: .08em; text-transform: uppercase; }
.dn-tonight-name {
  margin: 64px 0 10px; max-width: 15ch;
  font-size: clamp(2.25rem, 9vw, 3.5rem); line-height: .95; font-weight: 800; letter-spacing: -.02em; text-wrap: balance;
  overflow-wrap: anywhere;
}
.dn-tonight-next { margin: 0; font: 500 .9375rem/1.45 var(--t-mono); }
.dn-tonight-prep { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.55); font-weight: 600; line-height: 1.35; }
.dn-tonight-prep::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--dn-ink); }
/* UX run-27: tonight's question for the table, a quiet link under the dinner. */
.dn-tonight-q { margin: 14px 0 0; max-width: 46ch; }
.dn-tonight-q a { display: inline-block; padding: 4px 0; color: var(--dn-ink); font-weight: 600; line-height: 1.35; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.dn-tonight-q-k { font: 600 .75rem/1.3 var(--t-mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; display: block; margin-bottom: 2px; }
.dn-tonight-keys { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 599px) { .dn-tonight-keys > .dn-key { flex: 1 1 100%; } }

/* ---------- Keys and chips ---------- */
body.dn .dn-key {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 18px; border: 0; border-radius: var(--t-r-btn, 10px); cursor: pointer;
  background: var(--t-card); color: var(--t-ink); text-decoration: none; text-align: center;
  font: 600 .9375rem/1.2 var(--t-display);
  box-shadow: inset 0 0 0 1.5px var(--t-line), inset 0 -4px 0 rgba(0,0,0,.08);
  transition: transform var(--t-base) var(--t-spring);
}
body.dn .dn-key:active { transform: translateY(2px) scale(.97); }
body.dn .dn-key:disabled { cursor: default; opacity: .6; }
body.dn .dn-key[hidden] { display: none; }
body.dn .dn-key-ink { background: var(--t-ink); color: var(--t-surface); box-shadow: inset 0 -4px 0 rgba(255,255,255,.14); font-weight: 700; }
body.dn .dn-key-lemon { background: var(--t-lemon); color: var(--dn-ink); font-weight: 800; box-shadow: inset 0 -5px 0 rgba(0,0,0,.16); }
body.dn .dn-key-s { min-height: 44px; padding: 8px 14px; font-size: .875rem; }
body.dn .dn-tonight .dn-key-ink { background: var(--dn-ink); color: #fff; }
body.dn .dn-tonight .dn-key-ghost { background: transparent; color: var(--dn-ink); box-shadow: inset 0 0 0 2px rgba(20,20,20,.75); }
body.dn .dn-key[aria-pressed="true"] { background: var(--t-lemon); color: var(--dn-ink); box-shadow: inset 0 -4px 0 rgba(0,0,0,.16); }

body.dn .dn-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 14px; border: 0; border-radius: var(--t-r-btn, 10px); cursor: pointer;
  background: var(--t-card); color: var(--t-ink); font: 600 .9375rem/1.2 var(--t-display);
  box-shadow: inset 0 0 0 1.5px var(--t-line), inset 0 -3px 0 rgba(0,0,0,.06);
  transition: transform var(--t-base) var(--t-spring), background-color var(--t-base);
}
body.dn .dn-chip:active { transform: translateY(2px) scale(.97); }
body.dn .dn-chip[aria-pressed="true"] { background: var(--t-ink); color: var(--t-surface); box-shadow: inset 0 -3px 0 rgba(255,255,255,.14); }
.dn-chip-n { font: 500 .75rem/1 var(--t-mono); opacity: .8; }

.dn-app { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.dn-h2 { margin: 0 0 8px; font-size: 1.75rem; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
@media (min-width: 900px) { .dn-h2 { font-size: 2.25rem; } }
.dn-sub { margin: 0 0 18px; max-width: 64ch; color: var(--t-ink-2); }
.dn-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: 999px; background: var(--t-surface-2); color: var(--t-ink); font: 500 .75rem/1.2 var(--t-mono); letter-spacing: .02em; }

/* ---------- The week ---------- */
.dn-week-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.dn-range { margin: 0; font: 500 .9375rem/1.4 var(--t-mono); color: var(--t-ink-2); }
.dn-week-nav { display: flex; gap: 8px; }
.dn-week-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 16px; }
.dn-week-note { flex: 1 1 16em; margin: 0; font-size: .9375rem; color: var(--t-ink-2); }
@media (max-width: 599px) { .dn-week-keys > .dn-key { flex: 1 1 100%; } }
.dn-days { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .dn-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .dn-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; } }
.dn-day {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 14px; align-items: start;
  padding: 14px; border-radius: var(--t-r-m); background: var(--t-card); box-shadow: inset 0 0 0 1.5px var(--t-line);
}
@media (min-width: 1100px) {
  .dn-day { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; min-height: 236px; padding: 14px 12px 12px; }
}
.dn-day.is-today { box-shadow: inset 0 0 0 3px var(--t-lemon), 0 16px 30px -22px rgba(120,90,0,.7); }
.dn-day.is-past { background: transparent; }
.dn-day.is-past .dn-day-name { color: var(--t-ink-2); }
.dn-day.is-empty:not(.is-past):not(.is-today) { background: transparent; box-shadow: none; outline: 2px dashed var(--t-line); outline-offset: -2px; }
.dn-day-when { display: grid; justify-items: start; gap: 2px; grid-row: span 2; }
@media (min-width: 1100px) { .dn-day-when { grid-row: auto; display: flex; align-items: baseline; gap: 8px; } }
.dn-day-dow { font: 600 .75rem/1 var(--t-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--t-ink-2); }
.dn-day-n { font-size: 1.75rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.dn-day-today { display: inline-flex; padding: 3px 7px; border-radius: 999px; background: var(--t-lemon); color: var(--dn-ink); font: 600 .6875rem/1 var(--t-mono); letter-spacing: .06em; text-transform: uppercase; }
.dn-day-body { min-width: 0; }
.dn-day-name { margin: 0; font-size: 1.0625rem; line-height: 1.2; font-weight: 700; overflow-wrap: anywhere; text-wrap: pretty; }
.dn-day.is-empty .dn-day-name { font-weight: 500; color: var(--t-ink-2); }
.dn-day-meta { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; }
.dn-day-acts { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 2; margin-top: 8px; }
@media (min-width: 1100px) { .dn-day-acts { grid-column: auto; align-self: end; } .dn-day-acts .dn-key { flex: 1 1 auto; } }
body.dn .dn-day-acts .dn-key { min-height: 44px; padding: 8px 12px; font-size: .875rem; }
body.dn .dn-day-x { min-width: 44px; padding: 8px 10px; }

/* ---------- The shopping list ---------- */
.dn-shop {
  padding: 20px 18px; border-radius: var(--t-r-l); background: var(--t-card); box-shadow: inset 0 0 0 1.5px var(--t-line);
}
.dn-shop:focus { outline: none; }
@media (min-width: 600px) { .dn-shop { padding: 28px 30px; } }
.dn-shop-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; }
.dn-shop-count { margin: 0; font: 600 .9375rem/1.3 var(--t-mono); font-variant-numeric: tabular-nums; }
.dn-add { display: flex; gap: 8px; max-width: 560px; margin: 0 0 16px; }
.dn-add input, .dn-field input, .dn-field select, .dn-pick-q, #dn-pick-q {
  min-height: 48px; min-width: 0; width: 100%; padding: 10px 14px; border: 0; border-radius: var(--t-r-s);
  background: var(--t-surface); color: var(--t-ink); font: 500 1rem/1.3 var(--t-display);
  box-shadow: inset 0 0 0 1.5px var(--t-line);
}
.dn-add input { flex: 1 1 auto; }
.dn-add input::placeholder, .dn-field input::placeholder, #dn-pick-q::placeholder { color: var(--t-ink-2); opacity: 1; }
.dn-low { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 22px; }
.dn-low-label { margin: 0; font-weight: 700; }
.dn-low-keys { display: flex; flex-wrap: wrap; gap: 6px; }
body.dn .dn-low-keys .dn-chip { padding: 8px 12px; font-size: .875rem; font-weight: 500; }
body.dn .dn-low-keys .dn-chip[aria-pressed="true"] { font-weight: 600; }
.dn-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 32px; }
@media (min-width: 800px) { .dn-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .dn-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dn-group h3 { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1.5px solid var(--t-line); font: 600 .75rem/1.3 var(--t-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--t-ink-2); }
.dn-rows { margin: 0; padding: 0; list-style: none; }
.dn-row { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--t-line); }
.dn-row:last-child { border-bottom: 0; }
.dn-tick { display: flex; flex: 1 1 auto; align-items: center; gap: 12px; min-height: 52px; min-width: 0; padding: 6px 0; cursor: pointer; }
.dn-tick input {
  flex: none; appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 0; border-radius: 8px; cursor: pointer;
  background: var(--t-surface); box-shadow: inset 0 0 0 2px var(--t-ink-2);
  transition: background-color var(--t-fast), transform var(--t-base) var(--t-spring);
}
.dn-tick input:checked { background: var(--t-lemon); box-shadow: inset 0 0 0 2px var(--dn-ink); }
.dn-tick input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M7 13.5l4 4 8-9' fill='none' stroke='%23141414' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.dn-tick input:active { transform: scale(.9); }
.dn-tick input:focus-visible { outline: 3px solid var(--t-ink); outline-offset: 3px; }
.dn-tick-t { display: grid; min-width: 0; }
.dn-tick-name { font-size: 1.0625rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.dn-tick-for { font-size: .8125rem; line-height: 1.3; color: var(--t-ink-2); }
.dn-row.is-got .dn-tick-name { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--t-ink-2); font-weight: 500; }
.dn-row.is-low .dn-tick-for { color: var(--dn-lemon-text); font-weight: 600; }
body.dn .dn-row-x { flex: none; min-width: 44px; min-height: 44px; padding: 6px 10px; font-size: .8125rem; font-weight: 500; }
.dn-empty { margin: 0; padding: 18px; border-radius: var(--t-r-m); background: var(--t-surface); color: var(--t-ink-2); }
.dn-shop-keys { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 599px) { .dn-shop-keys > .dn-key { flex: 1 1 100%; } }
/* In the shop: the list is the page, big rows, the screen kept on. */
body.dn.is-shopping .dn-tick-name { font-size: 1.25rem; }
body.dn.is-shopping .dn-tick { min-height: 60px; }

/* ---------- Your dinners ---------- */
.dn-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.dn-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .dn-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .dn-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .dn-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dn-card { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 16px; border-radius: var(--t-r-m); background: var(--t-card); box-shadow: inset 0 0 0 1.5px var(--t-line); }
.dn-card.is-liked { box-shadow: inset 0 0 0 3px var(--t-lemon); }
.dn-card.is-hidden { background: transparent; }
.dn-card.is-hidden .dn-card-name { color: var(--t-ink-2); text-decoration: line-through; }
.dn-card-name { margin: 0; font-size: 1.125rem; line-height: 1.2; font-weight: 700; overflow-wrap: anywhere; }
.dn-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; }
.dn-card-things { margin: 0; font-size: .875rem; line-height: 1.4; color: var(--t-ink-2); }
.dn-card-had { font: 500 .75rem/1.2 var(--t-mono); color: var(--t-ink-2); }
.dn-card-acts { display: flex; flex-wrap: wrap; gap: 6px; }
body.dn .dn-card-acts .dn-key { min-height: 44px; padding: 8px 12px; font-size: .875rem; }
.dn-more { margin-top: 14px; }
.dn-own { margin-top: 18px; padding: 0; border-radius: var(--t-r-m); background: var(--t-card); box-shadow: inset 0 0 0 1.5px var(--t-line); }
.dn-own > summary { display: flex; align-items: center; min-height: 52px; padding: 12px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.dn-own > summary::-webkit-details-marker { display: none; }
.dn-own > summary::before { content: "+"; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 12px; border-radius: 8px; background: var(--t-lemon); color: var(--dn-ink); font-weight: 800; }
.dn-own[open] > summary::before { content: "\2212"; }
.dn-own > summary:focus-visible { outline: 3px solid var(--t-ink); outline-offset: 2px; border-radius: var(--t-r-m); }
.dn-own-form { display: grid; gap: 14px; padding: 0 18px 18px; }
.dn-field { display: grid; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--t-ink-2); }
.dn-own-tags { margin: 0; padding: 0; border: 0; }
.dn-own-tags legend { padding: 0; margin-bottom: 6px; font-size: .875rem; font-weight: 600; color: var(--t-ink-2); }
.dn-own-tag-list { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.dn-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; }
.dn-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--dn-ink); }
.dn-own-keys { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Reminder, keep ---------- */
.dn-remind-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.dn-remind-form .dn-field { flex: 0 1 12em; }
.dn-fine { margin: 10px 0 0; font-size: .875rem; color: var(--t-ink-2); }
.dn-keep { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 18px; border-top: 1.5px solid var(--t-line); }
.dn-note { flex: 1 1 22em; margin: 0; font-size: .9375rem; color: var(--t-ink-2); }

/* ---------- The picker ---------- */
/* The open picker keeps one size and one place while the visitor types: a fixed height, pinned from the top (12 px on a
   phone, centred room above on a tall screen), so the search field never moves under the thumb or the caret as the
   list narrows; the list scrolls inside. */
.dn-pick {
  width: min(100% - 24px, 640px); height: min(100dvh - 24px, 760px); max-height: none;
  margin: max(12px, (100dvh - 760px) / 2) auto auto; padding: 0; border: 0; border-radius: var(--t-r-l);
  background: var(--t-card); color: var(--t-ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
}
.dn-pick::backdrop { background: rgba(20,20,20,.55); }
.dn-pick[open] { animation: dn-pick-in var(--t-slow) var(--t-spring); }
@keyframes dn-pick-in { from { transform: translateY(24px) scale(.97); } }
.dn-pick-in { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 18px; }
@media (min-width: 600px) { .dn-pick-in { padding: 24px; } }
.dn-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dn-pick-title { margin: 0; font-size: 1.5rem; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }
.dn-pick-tags { margin: 0; }
.dn-pick-list { flex: 1 1 auto; min-height: 120px; margin: 0 -6px; padding: 0 6px; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.dn-pick-opt {
  display: grid; width: 100%; gap: 2px; min-height: 56px; margin: 0 0 6px; padding: 10px 14px; border: 0; border-radius: var(--t-r-s);
  background: var(--t-surface); color: var(--t-ink); text-align: left; cursor: pointer; font: inherit;
  box-shadow: inset 0 0 0 1.5px var(--t-line);
}
.dn-pick-opt:hover { box-shadow: inset 0 0 0 2px var(--t-ink-2); }
.dn-pick-opt:focus-visible { outline: 3px solid var(--t-ink); outline-offset: 2px; }
.dn-pick-opt[aria-current="true"] { background: var(--t-lemon); color: var(--dn-ink); box-shadow: inset 0 -4px 0 rgba(0,0,0,.14); }
.dn-pick-opt[aria-current="true"] .dn-pick-meta { color: var(--dn-ink); }
.dn-pick-name { font-size: 1.0625rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.dn-pick-meta { font-size: .8125rem; line-height: 1.3; color: var(--t-ink-2); }
.dn-pick-new .dn-pick-name::before { content: "Use «"; font-weight: 500; }
.dn-pick-new .dn-pick-name::after { content: "»"; font-weight: 500; }
.dn-pick-none { margin: 6px 0; color: var(--t-ink-2); }
.dn-pick-other { padding-top: 10px; border-top: 1.5px solid var(--t-line); }
.dn-pick-other-t { margin: 0 0 8px; font-size: .875rem; font-weight: 600; color: var(--t-ink-2); }
.dn-pick-special { display: flex; flex-wrap: wrap; gap: 8px; }

/* The answer to every action: a toast fixed at the bottom, wherever the key was (as on /days-off/).
   The live region is always there and takes no room; only its card shows. Ink on putty, inverted in dark. */
.dn-status {
  position: fixed; z-index: 10000; left: 0; right: 0;
  bottom: calc(16px + var(--dn-toast-lift, 0px) + env(safe-area-inset-bottom, 0px));
  width: min(100% - 2 * var(--dn-gutter), 560px); margin: 0 auto; pointer-events: none;
}
.dn-toast {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px;
  padding: 8px 8px 8px 18px; border-radius: var(--t-r-m);
  background: var(--t-ink); color: var(--t-surface); pointer-events: auto;
  box-shadow: inset 0 -4px 0 rgba(255,255,255,.12), 0 22px 44px -16px rgba(0,0,0,.55);
  animation: dn-toast-in var(--t-base) var(--t-spring);
}
@keyframes dn-toast-in { from { transform: translateY(18px) scale(.97); } }
.dn-toast-keys { display: flex; flex: none; gap: 6px; margin-left: auto; }
.dn-toast-t { flex: 1 1 12em; min-width: 0; padding: 6px 0; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
body.dn .dn-toast-a, body.dn .dn-toast-x {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px;
  border: 0; border-radius: var(--t-r-btn, 10px); cursor: pointer; text-decoration: none;
  font: 700 .9375rem/1.2 var(--t-display);
}
body.dn .dn-toast-a { background: var(--t-surface); color: var(--t-ink); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
body.dn .dn-toast-x { background: transparent; color: var(--t-surface); font-weight: 600; box-shadow: inset 0 0 0 1.5px currentColor; }
body.dn .dn-toast :focus-visible { outline: 3px solid var(--t-lemon); outline-offset: 2px; }
body.dn .dn-toast-a:active, body.dn .dn-toast-x:active { transform: translateY(2px) scale(.97); }

.dn-real { margin-top: 48px; padding: 26px 22px; border-radius: var(--t-r-l); background: var(--t-surface-2); }
.dn-real .t-label { margin: 0 0 10px; color: var(--t-ink-2); }
.dn-real h2 { margin: 0 0 10px; max-width: 24ch; font-size: 1.75rem; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.dn-real p { margin: 0 0 16px; max-width: 62ch; color: var(--t-ink-2); }
@media (min-width: 900px) { .dn-real { padding: 36px 40px; } .dn-real h2 { font-size: 2.25rem; } }

@media (prefers-reduced-motion: reduce) {
  .dn-mast h1, .dn-tonight, .dn-plate, .dn-toast, .dn-pick[open] { animation: none !important; }
  body.dn .dn-key, body.dn .dn-chip, .dn-tick input { transition: none; }
  body.dn .dn-key:active, body.dn .dn-chip:active, .dn-tick input:active, body.dn .dn-toast-a:active, body.dn .dn-toast-x:active { transform: none; }
}
#dn-together { flex-basis: 100%; order: 3; }
#dn-together a { display: inline-flex; align-items: center; min-height: 44px; color: var(--t-ink); font-weight: 600; text-underline-offset: 3px; }
