/* Hearth's look, from the mockup canvas (ADR 0023). Every value here is the mockup's own; screens use these classes
   instead of inline styles (ADR 0003). Themes follow the holiday (ADR 0011); colours mirror core/src/holidays.ts. */
@import url('/fonts/fonts.css');

:root, [data-theme="harvest"], [data-theme="hearth"] {
  --ground: #F8F2E7; --surface: #FFFDF8; --ink: #2A1E16; --muted: #6B5A4C; --line: #E8DCC8; --line-soft: #EFE5D4;
  --accent: #A3461B; --accent-deep: #7A3313; --on-accent: #FFF8EE; --accent-soft: #FBE3CF;
  --second: #4A6545; --second-ink: #2F4530; --second-soft: #E6EDDF; --second-line: #CBD8C1;
  --gold: #C9962B; --gold-soft: #F3E6C8; --gold-ink: #6E4E12; --chip: #F3EBDD; --chip-ink: #5A4A3D;
  --side: #2A1E16; --side-ink: #F8F2E7; --side-muted: #CDBBA5; --side-hover: #3D2C20; --side-active: #A3461B;
  --dark: #2A1E16; --on-dark: #FFF8EE; --highlight: #F2C46B; --flame: #E08A3C;
  --display: Fraunces, "Shippori Mincho", "Iowan Old Style", "Hiragino Mincho ProN", Georgia, serif;
  --body: Figtree, "Zen Kaku Gothic New", system-ui, -apple-system, "Hiragino Sans", "Segoe UI", sans-serif;
  --hand: Caveat, "Bradley Hand", cursive;
  --radius: 22px; --radius-s: 14px;
}
[data-theme="evergreen"] {
  --ground: #12342A; --surface: #1D4A3B; --ink: #F6EFE2; --muted: #A9C4B6; --line: #2C5E4C; --line-soft: #2C5E4C;
  --accent: #C8363B; --accent-deep: #A12A2F; --on-accent: #FFFFFF; --accent-soft: #FFE4E1;
  --second: #E2B85A; --second-ink: #F6EFE2; --second-soft: #1D4A3B; --second-line: #2C5E4C;
  --gold: #E2B85A; --gold-soft: #E3D3B0; --gold-ink: #5A3F0E; --chip: #2C5E4C; --chip-ink: #F6EFE2;
  --side: #0B241D; --side-ink: #F6EFE2; --side-muted: #A9C4B6; --side-hover: #1D4A3B; --side-active: #C8363B;
  --dark: #0B241D; --on-dark: #F6EFE2; --highlight: #F2C46B; --flame: #E2B85A;
}
[data-theme="washi"] {
  --ground: #F5EFE4; --surface: #FFFCF6; --ink: #1E1B18; --muted: #5E554B; --line: #E2D7C4; --line-soft: #EDE3D2;
  --accent: #B7282E; --accent-deep: #8E1D22; --on-accent: #FFFFFF; --accent-soft: #FFE9DA;
  --second: #2F5D3A; --second-ink: #2F5D3A; --second-soft: #EFE6D6; --second-line: #E2D7C4;
  --gold: #D9A441; --gold-soft: #F1E2BE; --gold-ink: #5E4310; --chip: #EFE6D6; --chip-ink: #5E554B;
  --side: #1E1B18; --side-ink: #F5EFE4; --side-muted: #BDB3A3; --side-hover: #3A332C; --side-active: #B7282E;
  --dark: #1E1B18; --on-dark: #F5EFE4; --highlight: #F1C76A; --flame: #D9A441;
  --display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  --hand: "Klee One", "Hiragino Mincho ProN", cursive;
  --radius: 6px; --radius-s: 4px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }
body { background: var(--ground); color: var(--ink); font: 16px/1.5 var(--body); }
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
h1, h2, h3 { margin: 0; }
button { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid #CDB89C; background: var(--surface); color: var(--ink); font: 600 15px var(--body); cursor: pointer; }
[data-theme="evergreen"] button { border-color: var(--line); }
button.primary, .button-link.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
button.dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); font-weight: 700; }
button:disabled { opacity: 0.55; cursor: not-allowed; }
button[aria-busy="true"] { cursor: progress; }
:focus-visible { outline: 3px solid var(--second); outline-offset: 2px; }
input, select, textarea { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid #E1D3BC; background: var(--surface); color: var(--ink); font: 16px var(--body); }
textarea { padding: 10px 12px; line-height: 1.5; }
.muted { color: var(--muted); }
.warn { color: var(--accent); font-weight: 700; margin: 0; }
.warn:empty { display: none; }

/* ---------- the shell: side menu and page ---------- */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; background: var(--ground); }
/* the sidebar never grows: a page that keeps its own width (a form, a reading column) must not widen it (ADR 0051) */
.side { flex: 0 0 232px; max-width: 100%; padding: 28px 20px; background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 26px var(--display); letter-spacing: -0.5px; color: var(--side-ink); text-decoration: none; }
.brand:hover { color: var(--side-ink); }
.side-family { display: block; margin: -6px 0 0 40px; color: var(--side-muted); font: 600 13px/1.3 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-group { display: flex; flex-direction: column; gap: 4px; }
.side-label { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--side-muted); padding: 0 12px 6px; }
.side-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--side-ink); text-decoration: none; font: inherit; background: none; border: 0; text-align: left; width: 100%; }
.side-link:hover { background: var(--side-hover); color: var(--side-ink); }
.side-link .when { font-size: 13px; color: var(--side-muted); }
.side-link.holiday-on { background: var(--side-active); color: #fff; font-weight: 600; }
.side-link.holiday-on .when { color: inherit; font-weight: 500; }
.side-link.on { background: var(--side-hover); font-weight: 600; }
.side-link .ico { display: inline-flex; align-items: center; gap: 12px; }
.side-foot { margin-top: auto; padding: 16px; border-radius: 14px; background: var(--side-hover); display: flex; flex-direction: column; gap: 6px; }
.side-foot strong { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.side-foot span { font-size: 13px; color: var(--side-muted); line-height: 1.45; }
.side-foot .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.side-foot button { min-height: 36px; padding: 0 12px; font-size: 13px; background: transparent; color: var(--side-ink); border-color: var(--side-muted); }
.page { flex: 999 1 560px; min-width: 0; padding: 40px clamp(20px, 4vw, 56px) 64px; display: flex; flex-direction: column; gap: 32px; }

/* ---------- type ---------- */
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
.title { margin: 0; font: 800 clamp(38px, 4.6vw, 58px)/1.04 var(--display); letter-spacing: -1.4px; }
.title.big { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -1.5px; }
.title em { font-style: normal; color: var(--accent); }
.lede { margin: 0; font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 640px; }
.h2 { font: 700 28px/1.2 var(--display); }
.h3 { font: 700 24px/1.2 var(--display); }
.h4 { font: 700 20px/1.2 var(--display); }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.head-text { display: flex; flex-direction: column; gap: 8px; }
.head-text.narrow { max-width: 680px; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 12px; }

/* ---------- surfaces ---------- */
.card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card.green { background: var(--second-soft); border-color: var(--second-line); color: var(--second-ink); }
.card.tight { padding: 22px; border-radius: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > .main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.split > .aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.btn-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.btn-light { background: var(--on-accent); color: var(--accent-deep); }
.btn-ghost { border: 1.5px solid var(--accent-soft); color: var(--on-accent); font-weight: 600; }
.btn-ghost:hover, .btn-light:hover { color: inherit; filter: brightness(0.97); }
.btn-ghost:hover { color: var(--on-accent); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill.gold { background: var(--gold-soft); color: var(--gold-ink); }
.pill.green { background: var(--second-soft); color: var(--second-ink); }
.pill.light { background: var(--on-accent); color: var(--accent); letter-spacing: 0.8px; }
.pill.small { padding: 4px 10px; font-size: 12px; }
.chip { padding: 3px 9px; border-radius: 6px; background: var(--chip); font-size: 12px; font-weight: 600; color: var(--chip-ink); }

/* ---------- home ---------- */
.hero { grid-column: span 2; padding: 32px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); display: flex; flex-direction: column; gap: 20px; position: relative; overflow: hidden; }
@media (max-width: 720px) { .hero { grid-column: auto; } }
.hero .burst { position: absolute; right: -50px; top: -40px; opacity: 0.14; }
.hero h2 { font: 800 38px var(--display); letter-spacing: -0.8px; }
.hero p { margin: 0; font-size: 17px; line-height: 1.5; max-width: 540px; color: #FFEDDC; }
.hero .step { font-size: 15px; color: var(--accent-soft); }
.meter { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.meter .row-between { font-size: 14px; font-weight: 600; }
.bar { height: 10px; border-radius: 999px; background: var(--accent-deep); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--highlight); }
.bar.soft { background: var(--line-soft); height: 12px; }
.bar.soft > span { background: var(--accent); }
.check-row { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; font-size: 15px; line-height: 1.4; cursor: pointer; }
.check-row input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; accent-color: var(--accent); flex: none; padding: 0; }
.check-row .stack { display: flex; flex-direction: column; gap: 2px; }
.check-row .stack strong { font-weight: 600; }
.check-row .stack span { color: var(--muted); font-size: 14px; }
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.day { padding: 20px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 8px; min-height: 168px; }
.day .tag { font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.day .name { font: 700 24px/1.1 var(--display); }
.day .date { font-size: 14px; font-weight: 600; opacity: 0.85; }
.day .what { font-size: 14px; line-height: 1.45; opacity: 0.9; }
.day.now { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.day.last { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.menu-row .stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.menu-row .stack strong { font-weight: 600; font-size: 16px; }
.menu-row .stack span { font-size: 13px; color: var(--muted); }
.house-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 6px 0; }
.house-row strong { font-weight: 600; }
/* edit and remove beside each job (they show on hover or focus with a mouse; always on touch) */
.house .house-row, .card.green .house-row { align-items: center; }
.house-row .house-when { margin-left: auto; }
.house-row .icon-button { width: 32px; min-height: 32px; color: inherit; opacity: 0.55; border-radius: 8px; }
.house-row .icon-button:hover, .house-row .icon-button:focus-visible { opacity: 1; background: rgba(0, 0, 0, 0.06); }
@media (hover: hover) {
  .house-row:not(:hover):not(:focus-within) .icon-button { opacity: 0; }
}
.house-row.editing { flex-wrap: wrap; gap: 8px; }
.house-row.editing input[type="text"] { flex: 1 1 100%; min-width: 0; }
.house-row.editing input[type="date"] { flex: 1 1 150px; min-width: 0; max-width: 220px; margin-right: auto; }
.house-row.editing button { min-height: 40px; padding: 0 14px; font-size: 14px; }
.undo-note { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 14px;
  background: var(--dark); color: var(--on-dark); padding: 10px 12px 10px 18px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); font-size: 15px; max-width: calc(100vw - 32px); }
.undo-note button { background: transparent; color: var(--on-dark); border: 1px solid rgba(255, 255, 255, 0.5); min-height: 34px; padding: 0 12px; font-size: 14px; }
@media (max-width: 760px) { .undo-note { bottom: calc(66px + env(safe-area-inset-bottom)); } }
.season-row { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 0; color: var(--ink); text-decoration: none; }
.season-row:hover { color: var(--ink); }
.season-row .swatch { width: 12px; height: 40px; border-radius: 6px; flex: none; }
.season-row .stack { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.season-row .stack span { font-size: 14px; color: var(--muted); }
.season-row .when { font-size: 14px; font-weight: 600; color: var(--muted); }
.swatch.christmas { background: #1F5A45; } .swatch.oshogatsu { background: #B7282E; } .swatch.thanksgiving { background: #A3461B; } .swatch.custom { background: #B08A2E; }

/* ---------- vault ---------- */
.safe { padding: 28px; border-radius: var(--radius); background: #2F4530; color: #F2F6EE; display: flex; flex-direction: column; gap: 20px; }
.safe h2 { font: 700 26px var(--display); display: flex; align-items: center; gap: 12px; }
.safe a { color: #DCEBD2; font-weight: 600; }
.safe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.safe-item { padding: 18px; border-radius: 16px; background: #3B5639; display: flex; flex-direction: column; gap: 6px; }
.safe-item .label { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #B9D8A8; }
.safe-item strong { font: 700 20px var(--display); }
.safe-item .body { font-size: 14px; line-height: 1.5; color: #DCEBD2; }
.search { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 12px; background: var(--surface); border: 1.5px solid #E1D3BC; flex: 0 1 340px; }
.search input { border: 0; outline: none; background: transparent; width: 100%; padding: 0; min-height: 0; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips button { border-radius: 999px; border-color: #E1D3BC; font-size: 14px; }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-accent); }
.rcard { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rcard:hover { color: var(--ink); border-color: #CDB89C; }
.rcard .art { height: 120px; display: flex; align-items: flex-end; padding: 14px; position: relative; }
.rcard .art .hand { font: 700 30px/1 var(--hand); }
.rcard .art .pill { position: absolute; top: 12px; right: 12px; background: var(--on-accent); color: #6E4E12; font-size: 12px; padding: 4px 10px; }
.rcard .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.rcard .body strong { font-size: 17px; }
.rcard .body > span { font-size: 14px; color: var(--muted); }
.rcard .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tint-0 { background: #F3E6C8; color: #6E4E12; } .tint-1 { background: #F6D9BE; color: #7A3313; } .tint-2 { background: #F1D3C2; color: #7A3313; }
.tint-3 { background: #EADBC6; color: #5A4A3D; } .tint-4 { background: #D6E6DA; color: #1F5A45; } .tint-5 { background: #E6EDDF; color: #2F4530; }
.tint-6 { background: #E3D3D3; color: #7D2427; } .tint-7 { background: #D9E2F0; color: #24497E; }

/* ---------- a recipe ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 15px; align-self: flex-start; text-decoration: none; }
.recipe-head { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.recipe-head .text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.recipe-head .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; padding-top: 6px; }
.facts strong { display: block; font: 700 22px var(--display); }
.facts .muted { display: block; }
.index-card { flex: 0 1 400px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.index-card .paper { transform: rotate(-2deg); background: #FFFBEF; border-radius: 6px; padding: 22px 26px 26px; box-shadow: 0 14px 30px rgba(60, 40, 20, 0.18), 0 2px 4px rgba(60, 40, 20, 0.12); background-image: repeating-linear-gradient(#FFFBEF 0 31px, #C9DCEB 31px 32px); position: relative; font: 500 24px/32px var(--hand); color: #2B3A67; }
.index-card .margin { position: absolute; top: 0; bottom: 0; left: 46px; width: 1.5px; background: #E7A3A3; }
.index-card .stain { position: absolute; right: 26px; bottom: 30px; width: 74px; height: 74px; border-radius: 50%; border: 6px solid rgba(160, 110, 50, 0.16); }
.index-card .written { padding-left: 30px; position: relative; }
.index-card .written div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.index-card .written .first { font-weight: 700; font-size: 28px; }
.index-card figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 14px; background: var(--line-soft); align-self: flex-start; flex-wrap: wrap; }
.tabs button { border: 0; border-radius: 10px; background: transparent; font-size: 15px; }
.tabs button[aria-selected="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(42, 30, 22, 0.15); }
.note { padding: 14px 18px; border-radius: 14px; font-size: 15px; line-height: 1.5; margin: 0; }
.note.green { background: var(--second-soft); color: var(--second-ink); }
.note.gold { background: var(--gold-soft); color: #5A3F0E; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 44px; padding: 0; font-size: 20px; font-weight: 700; border-color: #E1D3BC; }
.stepper strong { min-width: 36px; text-align: center; font: 700 24px var(--display); }
.ings { display: flex; flex-direction: column; }
.ing { display: flex; gap: 16px; padding: 11px 12px; border-bottom: 1px solid var(--line-soft); border-radius: 8px; }
.ing .qty { flex: 0 0 120px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ing .what { flex: 1; min-width: 0; }
.ing.changed { background: #EEF3E8; }
.ing .flag { color: var(--second); font-size: 13px; font-weight: 700; margin-left: 6px; }
.method { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.55; }
.words { padding: 22px; border-radius: 20px; background: var(--dark); color: var(--on-dark); display: flex; flex-direction: column; gap: 12px; }
.words .label { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--highlight); }
.words p { margin: 0; font: italic 400 19px/1.45 var(--display); }
.history { display: flex; gap: 12px; }
.history .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; flex: none; }
.dot.c0 { background: #C9962B; } .dot.c1 { background: #E08A3C; } .dot.c2 { background: #A3461B; } .dot.c3 { background: #4A6545; }
.history .stack { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.45; }
.history .stack strong { font-size: 15px; }
.history .stack span { color: var(--muted); }
.wide { width: 100%; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; padding: 0; accent-color: var(--accent); }
.row-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }

/* ---------- the front door and Family ---------- */
.door { max-width: 520px; margin: 8vh auto 0; padding: 0 20px; display: flex; flex-direction: column; gap: 16px; }
.door h1 { font: 800 clamp(40px, 6vw, 56px)/1.05 var(--display); letter-spacing: -1px; }
.door .join { margin-top: 24px; }
dialog { width: min(640px, 94vw); max-height: 88vh; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: 24px; }
dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
dialog section { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
.code { font: 800 28px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 2px; color: var(--accent); }
.loading { font: 700 28px var(--display); padding: 40px; }

/* ---------- layout helpers ---------- */
.stack-section { display: flex; flex-direction: column; gap: 16px; }
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.small { font-size: 14px; }
.center { align-items: center; }
.h-todo { font-size: 22px; }
.count { font: 400 18px var(--body); color: var(--muted); }
.stack-buttons { display: flex; flex-direction: column; gap: 10px; }
.stack-buttons > * { width: 100%; min-height: 48px; justify-content: center; }
.stack-buttons a { display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.card p.small { margin: 0; line-height: 1.5; }
.add-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.add-row input[type="text"] { flex: 1 1 200px; }
.hero .field label { color: var(--on-accent); }
.hero .two { max-width: 420px; }
.hero input { border-color: transparent; }
button.light { background: var(--on-accent); color: var(--accent-deep); border-color: var(--on-accent); font-weight: 700; }
.vault-form { display: flex; flex-direction: column; gap: 28px; }
/* the page itself always takes the room beside the sidebar; its content keeps a reading width */
.vault-form > * { width: 100%; max-width: 900px; }
.vault-form > .back { width: auto; }

/* ---------- a holiday's memories (ADR 0053) ---------- */
.memories { display: flex; flex-direction: column; gap: 24px; }
.memory-add { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.memory-add .primary { display: inline-flex; align-items: center; gap: 10px; }
.memory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.memory-tile { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--line-soft); cursor: pointer; min-height: 44px; }
.memory-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.memory-tile.clip { background: var(--side); color: var(--side-ink); }
.memory-tile .clip-mark { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.memory-tile .clip-length { font: 600 14px var(--body); }
.memory-tile.clip img + .clip-mark { background: rgba(0, 0, 0, 0.28); color: #fff; }
.memory-tile.missing { background: var(--line); }
.memory-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.62)); color: #fff; font: 500 13px/1.3 var(--body); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.memory-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.memory-card { display: flex; flex-direction: column; gap: 12px; }
.name-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.name-chips li { display: inline-flex; align-items: center; gap: 2px; padding: 0 2px 0 14px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.chip-x { min-height: 36px; width: 36px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.chip-x::before { content: '×'; font-size: 20px; line-height: 1; }
.row-inline { display: flex; gap: 8px; }
.row-inline input { flex: 1; min-width: 0; }
.served-dishes li { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; }
.memory-lines li { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; }
.memory-lines p { margin: 0; font: italic 400 17px/1.45 var(--display, inherit); }
.memory-card textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 400 16px/1.5 var(--body); resize: vertical; }
.other-memories li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; }
.memory-viewer { width: min(1100px, 96vw); max-height: 94vh; padding: 12px; border: 0; border-radius: 16px; background: var(--side); color: var(--side-ink); }
.memory-viewer::backdrop { background: rgba(0, 0, 0, 0.75); }
.memory-viewer .dialog-head button, .memory-viewer .viewer-foot button { color: var(--side-ink); background: transparent; border-color: rgba(255, 255, 255, 0.4); }
.viewer-stage { display: flex; justify-content: center; align-items: center; min-height: 200px; }
.viewer-stage img, .viewer-stage video { max-width: 100%; max-height: 72vh; border-radius: 10px; display: block; }
.viewer-foot { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.viewer-foot .muted { color: var(--side-muted); }
.viewer-caption { display: flex; gap: 8px; }
.viewer-caption input { flex: 1; min-width: 0; }
.viewer-caption-text { margin: 0; }
@media (max-width: 760px) {
  .memory-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .memory-tile { border-radius: 6px; }
  .memory-caption { display: none; }
  .memories > .head .title, .memories > .head .eyebrow { display: none; }
  .memory-viewer { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
}

/* ---------- send feedback (ADR 0050) ---------- */
.feedback-page { display: flex; flex-direction: column; gap: 28px; }
.feedback-page > * { max-width: 760px; width: 100%; }
.feedback-card textarea { width: 100%; min-height: 150px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 400 16px/1.5 var(--body); resize: vertical; }
.feedback-card .stack-section { display: flex; flex-direction: column; gap: 12px; }
.feedback-list .feedback-item { gap: 6px; padding: 14px 0; }
.feedback-text { margin: 0; white-space: pre-wrap; word-break: break-word; }
.feedback-item.done { opacity: 0.75; }
.feedback-done summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* ---------- the family page, joining and the welcome (ADR 0049) ---------- */
.family-page, .welcome { display: flex; flex-direction: column; gap: 28px; }
.back-link { text-decoration: none; }
.invite-form { display: flex; flex-direction: column; gap: 14px; }
.role-choice { align-items: flex-start; }
.role-choice > span { display: flex; flex-direction: column; gap: 2px; }
.invite-message { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--ground); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; font: 400 15px/1.5 var(--body); color: var(--ink); }
.made-invite { display: flex; flex-direction: column; gap: 12px; }
.people .person { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; }
.people .person .stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.people .person.removed { opacity: 0.7; }
.people select { min-height: 44px; }
.confirm-inline { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
button.danger { background: var(--danger, #9B2C1F); color: #fff; border-color: transparent; }
button.link { background: none; border: 0; padding: 0; min-height: 44px; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.roles-help { display: grid; gap: 4px; margin: 4px 0 0; }
.roles-help div { display: flex; gap: 6px; }
.roles-help dt { font-weight: 700; color: var(--ink); }
.roles-help dt::after { content: ':'; }
.roles-help dd { margin: 0; flex: 1; }
.join-steps { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; margin: 8px 0 0; }
.welcome-card, .welcome > .note { max-width: 640px; }
.welcome-list li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }

/* ---------- suggestions from an AI app (ADR 0046) ---------- */
.suggestions { display: flex; flex-direction: column; gap: 28px; }
.suggestion { display: flex; flex-direction: column; gap: 10px; }
.suggestion h2 { margin: 0; }
.suggestion-lines li { padding: 5px 0; font-size: 15px; }
.suggestion.accepted, .suggestion.rejected { opacity: 0.8; }
.suggestion-note { margin: 0; }

/* ---------- settings (ADR 0045) ---------- */
.settings { display: flex; flex-direction: column; gap: 28px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.settings-grid .card { display: flex; flex-direction: column; gap: 12px; }
.settings-grid .card h2 { margin: 0; }
.settings .lang-switch { max-width: 320px; }
.restore-summary { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--line-soft); font-size: 15px; line-height: 1.5; }
progress { width: 100%; height: 10px; accent-color: var(--accent); }

/* ---------- changing a started plan (ADR 0042) ---------- */
.plan-edit { margin-top: 4px; font-size: 15px; }
.plan-edit summary { cursor: pointer; font-weight: 600; color: var(--accent); min-height: 44px; display: flex; align-items: center; width: max-content; }
.plan-edit-body { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding: 8px 0; }
.plan-edit-body .field { flex: 0 1 200px; }
.plan-edit > p { margin: 0; }

/* ---------- capture: a scanned card beside its words (ADR 0038) ---------- */
.vault-form.with-scan > * { max-width: 1180px; }
.scan-review { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; }
.scan-review > .form { display: flex; flex-direction: column; gap: 14px; }
.scan-photo { margin: 0; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 8px; }
.scan-photo img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: 10px; background: #EFE7D8; box-shadow: 0 10px 24px rgba(60, 40, 20, 0.14); }
.scan-photo figcaption { font-size: 13px; color: var(--muted); text-align: center; }
section.card.scan-review { grid-template-columns: minmax(0, 420px) 1fr; align-items: center; }
.index-card .scan { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; transform: rotate(-1.5deg); border-radius: 6px; background: #EFE7D8; box-shadow: 0 14px 30px rgba(60, 40, 20, 0.18), 0 2px 4px rgba(60, 40, 20, 0.12); cursor: zoom-in; }
.index-card .scan.big { max-height: none; transform: none; cursor: zoom-out; }
/* a PDF (ADR 0040): a tile that opens it in the browser's own viewer */
.pdf-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 220px; width: 100%; padding: 24px; border-radius: 10px; border: 1.5px dashed #CDB89C; background: #FFFBEF; color: var(--ink); font: 600 16px var(--body); text-decoration: none; text-align: center; }
.pdf-tile .pdf-mark { display: grid; place-items: center; width: 64px; height: 80px; border-radius: 6px; background: #A3461B; color: #FFFFFF; font: 800 18px var(--body); letter-spacing: 1px; }
.pdf-tile:hover { border-color: var(--accent); }
.pdf-tile[aria-disabled="true"] { opacity: 0.6; }
.index-card.pdf { flex: 0 1 320px; }
@media (max-width: 900px) { .scan-review, section.card.scan-review { grid-template-columns: 1fr; } .scan-photo { position: static; } }

/* ---------- the family's story (ADR 0043) ---------- */
.words .story { display: flex; flex-direction: column; gap: 10px; }
.words .story p { margin: 0; font: 400 16px/1.6 var(--display); color: #F8F2E7; }
.words .story p.first { font: italic 400 19px/1.45 var(--display); }
.words .story .who { display: flex; gap: 12px; align-items: center; font-size: 14px; color: #CDBBA5; }
.words .story .who a { color: #F2C46B; font-weight: 600; }

/* ---------- recordings: someone telling it (ADR 0039) ---------- */
.words .play { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 12px; border: 0; background: #3D2C20; color: #F8F2E7; font: 600 14px var(--body); text-align: left; width: 100%; }
.words .play .play-dot { width: 34px; height: 34px; border-radius: 50%; background: #E08A3C; color: #2A1E16; display: grid; place-items: center; flex: none; }
.words .play .stack { display: flex; flex-direction: column; }
.words .play .sub { color: #CDBBA5; font-weight: 400; }
.card.record { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 36px 24px; }
.rec-button { width: 96px; height: 96px; border-radius: 50%; border: 6px solid #F3D9C9; background: #B3261E; padding: 0; }
.rec-button.stop { border-color: #F3D9C9; background: #2A1E16; position: relative; }
.rec-button.stop::after { content: ''; position: absolute; inset: 30px; border-radius: 6px; background: #FFFFFF; }
.card.record.on .rec-state { color: #B3261E; font-weight: 700; }
.rec-state { margin: 0; font: 700 22px var(--display); }
.card.form audio { width: 100%; }

/* ---------- vault protection: history and a copy to keep (ADR 0034) ---------- */
.vault-history { display: flex; flex-direction: column; gap: 28px; }
.vault-history .two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.vault-history .stack-col { display: flex; flex-direction: column; gap: 20px; }
.vault-history .safe { gap: 14px; padding: 24px; }
.vault-history .safe h2 { font-size: 22px; margin: 0; }
.vault-history .safe .body { margin: 0; font-size: 15px; line-height: 1.5; color: #DCEBD2; }
.vault-history .card { display: flex; flex-direction: column; gap: 12px; }
.vault-history .card h2 { margin: 0; }
.app-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line-soft); }
.app-row .stack { display: flex; flex-direction: column; gap: 2px; }
.apphost { font: 700 22px var(--body); margin: 0; }
.choices { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.choices legend { font-weight: 700; margin-bottom: 8px; }
.day-head { margin: 10px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.vault-history .history { padding: 4px 0; }
@media (max-width: 1000px) { .vault-history .two-col { grid-template-columns: 1fr; } .vault-history .stack-col { order: -1; } }

/* ---------- the family cookbook (ADR 0035) ---------- */
.cookbook-screen { display: flex; flex-direction: column; gap: 24px; max-width: 980px; }
.cb-bar { display: flex; flex-direction: column; gap: 10px; }
.cb-bar p { margin: 0; }
/* cookbook:start */
/* The book. These rules are copied, as they are, into the page "Save as a web page" writes: the theme's variables
   aren't there, so every one has a plain fallback. */
.cookbook { --cb-ink: var(--ink, #2A1E16); --cb-muted: var(--muted, #6B5A4C); --cb-line: var(--line, #E8DCC8); --cb-accent: #A3461B;
  --cb-display: var(--display, "Iowan Old Style", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif);
  --cb-body: var(--body, system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif);
  color: var(--cb-ink); font: 16px/1.55 var(--cb-body); background: #FFFDF8; border: 1px solid var(--cb-line); border-radius: 20px; padding: 56px 64px; }
body.cookbook-file { margin: 0; padding: 32px 16px; background: #F8F2E7; }
body.cookbook-file .cookbook { max-width: 860px; margin: 0 auto; }
.cookbook h1, .cookbook h2, .cookbook h3, .cookbook h4 { font-family: var(--cb-display); font-weight: 700; margin: 0; }
.cb-cover { display: flex; flex-direction: column; gap: 12px; padding: 40px 0 48px; border-bottom: 2px solid var(--cb-ink); text-align: center; align-items: center; }
.cb-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--cb-accent); }
.cb-cover h1 { font-size: 56px; line-height: 1.05; }
.cb-cover p { margin: 0; color: var(--cb-muted); }
.cb-cover .cb-promise { font: italic 19px/1.45 var(--cb-display); color: var(--cb-ink); max-width: 30em; }
.cb-contents { padding: 32px 0; border-bottom: 1px solid var(--cb-line); columns: 2 280px; column-gap: 40px; }
.cb-contents h2 { font-size: 26px; margin-bottom: 8px; column-span: all; }
.cb-contents > div { break-inside: avoid; padding-top: 16px; }
.cb-contents h3 { font-size: 15px; font-family: var(--cb-body); letter-spacing: 1px; text-transform: uppercase; color: var(--cb-accent); margin: 0 0 6px; }
.cb-contents ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.cb-contents a { color: var(--cb-ink); font-weight: 600; text-decoration: none; }
.cb-contents a:hover { text-decoration: underline; }
.cb-contents span { color: var(--cb-muted); }
.cb-chapter-title { font-size: 34px; padding: 48px 0 8px; border-bottom: 2px solid var(--cb-ink); }
.cb-recipe { padding: 32px 0; border-bottom: 1px solid var(--cb-line); display: flex; flex-direction: column; gap: 18px; }
.cb-recipe header { display: flex; flex-direction: column; gap: 4px; }
.cb-recipe h3 { font-size: 32px; line-height: 1.15; }
.cb-from { margin: 0; font: italic 18px var(--cb-display); color: var(--cb-muted); }
.cb-tags { margin: 4px 0 0; display: flex; gap: 8px; }
.cb-tags span { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--cb-line); color: var(--cb-muted); }
.cb-section { display: flex; flex-direction: column; gap: 8px; }
.cb-section h4 { font-size: 19px; color: var(--cb-accent); }
.cb-line { margin: 0; font-size: 13px; color: var(--cb-muted); }
.cb-note { margin: 0; font: italic 16px/1.5 var(--cb-display); }
.cb-words { display: grid; grid-template-columns: 1fr; gap: 28px; }
.cb-words.two { grid-template-columns: 1fr 1fr; }
.cb-words.two .translation { border-left: 1px solid var(--cb-line); padding-left: 28px; }
.cb-col h5 { margin: 10px 0 6px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.cb-serves { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--cb-muted); }
.cb-col ul, .cb-col ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.cb-col ol { gap: 8px; }
@media (max-width: 720px) {
  .cookbook { padding: 28px 20px; border-radius: 16px; }
  .cb-cover h1 { font-size: 40px; }
  .cb-words.two { grid-template-columns: 1fr; }
  .cb-words.two .translation { border-left: 0; padding-left: 0; border-top: 1px solid var(--cb-line); padding-top: 16px; }
}
@media print {
  .cookbook { border: 0; border-radius: 0; padding: 0; background: #FFFFFF; font-size: 12pt; }
  body.cookbook-file { padding: 0; background: #FFFFFF; }
  .cb-cover { min-height: 60vh; justify-content: center; border-bottom: 0; }
  .cb-contents { break-before: page; border-bottom: 0; }
  .cb-chapter-title { break-before: page; break-after: avoid; }
  .cb-recipe { break-before: page; border-bottom: 0; }
  .cb-chapter-title + .cb-recipe { break-before: auto; }
  .cb-col li { break-inside: avoid; }
  .cookbook h3, .cookbook h4, .cookbook h5, .cb-recipe header { break-after: avoid; }
  .cb-contents a { text-decoration: none; }
}
/* the card as scanned, the family's stories (ADR 0043) */
.cb-scans { display: flex; flex-wrap: wrap; gap: 16px; }
.cb-scans figure { margin: 0; flex: 0 1 360px; display: flex; flex-direction: column; gap: 6px; }
.cb-scan { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--cb-line); }
.cb-scans figcaption { font-size: 13px; color: var(--cb-muted); }
.cb-stories { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; border-left: 3px solid var(--cb-accent); background: #FBF5EA; }
.cb-stories h4 { font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--cb-accent); font-family: var(--cb-body); }
.cb-story p { margin: 0 0 8px; font: 16px/1.6 var(--cb-display); }
@media print { .cb-scans figure, .cb-stories { break-inside: avoid; } }
/* a holiday's memories in the book (ADR 0053) */
.cb-photo { margin: 12px 0; break-inside: avoid; }
.cb-photo img { max-width: 100%; border-radius: 8px; }
.cb-holiday blockquote { margin: 10px 0; padding-left: 14px; border-left: 3px solid var(--line); }
.cb-holiday cite { display: block; font-style: normal; color: var(--muted); font-size: 14px; }
/* cookbook:end */
.row-between > a { font-weight: 600; font-size: 15px; text-decoration: none; }
.row-between > a:hover { text-decoration: underline; }
.card > a:last-child { font-weight: 600; font-size: 15px; text-decoration: none; }

/* ---------- each holiday's header on Home (ADR 0025), values from the mockups ---------- */
.title em.script { font-family: var(--hand); font-weight: 700; font-size: 1.15em; color: var(--highlight); letter-spacing: 0; }
.page.home-christmas { position: relative; overflow: hidden; gap: 30px; }
.home-christmas .snow { position: absolute; right: 0; top: 0; }
.home-christmas .head { gap: 32px; position: relative; }
.home-christmas .head-text { gap: 10px; max-width: 680px; }
.home-christmas .eyebrow { color: var(--gold); }
.home-christmas .lede { color: #CFE0D6; max-width: none; }
.page.home-oshogatsu { padding-top: 0; gap: 34px; }
.banner { position: relative; overflow: hidden; margin: 0 calc(-1 * clamp(20px, 4vw, 56px)); padding: 48px clamp(20px, 4vw, 56px) 56px; background: #B7282E; color: #FFFFFF; align-items: flex-end; gap: 28px; }
.banner .seigaiha { position: absolute; left: 0; bottom: 0; height: 64px; opacity: 0.22; }
.banner-text { display: flex; gap: 28px; align-items: flex-start; position: relative; }
.banner .head-art { position: relative; }
.seal { writing-mode: vertical-rl; font: 800 44px/1 "Shippori Mincho", var(--display); letter-spacing: 8px; padding: 14px 10px; border: 2px solid #F1C76A; color: #F1C76A; flex: none; }
.banner .head-text { gap: 10px; max-width: 760px; }
.banner .eyebrow { font-weight: 700; letter-spacing: 1.6px; color: #FFE3C4; }
.banner .title.big { font-size: clamp(40px, 5vw, 62px); line-height: 1.1; letter-spacing: 0; }
.banner .lede { font-size: 18px; line-height: 1.6; color: #FFE9DA; max-width: none; }

/* ---------- New Year: eight days, two menus (ADR 0026) ---------- */
.days.many { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.days.many .day { min-height: 150px; padding: 14px 12px; border-radius: var(--radius-s); gap: 6px; }
.days.many .day .name { font-size: 18px; }
.days.many .day .tag { font-size: 11px; }
.days.many .day .what { font-size: 12px; }
.h3 .native { margin-right: 8px; }
.day.cook { background: var(--second); border-color: var(--second); color: #FFFFFF; }
.day.eve { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.day.feast { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.day.now { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }

/* ---------- Shopping (mockups Shopping and MobileShopping) ---------- */
.page.shop { gap: 28px; }
.pill.accent { align-self: flex-start; background: var(--accent); color: var(--on-accent); letter-spacing: 0.8px; }
.shop .title { font-size: clamp(36px, 4.4vw, 54px); letter-spacing: -1.2px; }
.shop .lede { font-size: 17px; max-width: 620px; }
.shop-head .row-buttons button { min-height: 48px; padding: 0 20px; }
.shop-progress { padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.shop-progress .meter-wrap { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; }
.shop-progress .accent { color: var(--accent); }
.shop-progress .stats { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; color: var(--muted); }
.shop-progress .stats strong { color: var(--ink); font-size: 18px; }
.shop .split > .main { gap: 20px; }
.shop-list { display: flex; flex-direction: column; gap: 20px; }
.aisle { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; --tint: #EFE5D4; --tint-ink: #2A1E16; }
.aisle-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; background: var(--tint); color: var(--tint-ink); }
.aisle-head h2 { font: 700 21px var(--display); }
.aisle-head span { font-size: 14px; font-weight: 600; }
.aisle-lines { display: flex; flex-direction: column; padding: 6px 10px; }
.sline { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 10px; cursor: pointer; }
.sline input { width: 22px; height: 22px; min-height: 0; padding: 0; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.sline .stack { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sline-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.sline .name { font-weight: 600; font-size: 16px; }
.sline .qty { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.sline .for { font-size: 13px; color: var(--muted); line-height: 1.45; }
.sline .note-strong { color: var(--accent-deep); font-weight: 600; }
.sline .chip.meal { margin-left: 6px; }
.sline.got { opacity: 0.55; }
.sline.got .name { text-decoration: line-through; }
.aisle-produce, .aisle-drinks { --tint: #E6EDDF; --tint-ink: #2F4530; }
.aisle-butcher { --tint: #F1D3C2; --tint-ink: #6E2E10; }
.aisle-seafood, .aisle-frozen { --tint: #D9E2F0; --tint-ink: #24497E; }
.aisle-dairy { --tint: #F3E6C8; --tint-ink: #5A3F0E; }
.aisle-bakery { --tint: #F6D9BE; --tint-ink: #6E2E10; }
.aisle-pantry { --tint: #EADBC6; --tint-ink: #4A3A2D; }
.aisle-spices { --tint: #F3EBDD; --tint-ink: #5A4A3D; }
.aisle-international { --tint: #F1DCD4; --tint-ink: #8E1D22; }
.aisle-supplies { --tint: #E3DCD3; --tint-ink: #3D2C20; }
.funnel-card { padding: 22px; border-radius: 20px; background: var(--dark); color: #F8F2E7; display: flex; flex-direction: column; gap: 14px; }
.funnel-card h2 { font: 700 20px var(--display); }
.funnel-row { display: flex; align-items: center; gap: 14px; }
.funnel-row .n { min-width: 48px; font: 800 26px var(--display); color: var(--highlight); text-align: right; }
.funnel-row span:last-child { font-size: 14px; line-height: 1.4; color: #EADCC8; }
.pantry-card, .out-card { padding: 22px; border-radius: 20px; gap: 12px; }
.pantry-card .h4, .out-card .h4 { font-size: 20px; }
.pantry-card .chips, .out-card .chips { gap: 8px; }
.pantry-card .chip { padding: 6px 11px; border-radius: 8px; font-size: 13px; }
button.chip-button { min-height: 32px; padding: 0 11px; border: 0; border-radius: 8px; background: var(--chip); color: var(--chip-ink); font-size: 13px; font-weight: 600; }
.out-card { gap: 10px; }
.order-card { padding: 22px; border-radius: 20px; gap: 12px; border-color: var(--gold); }
.order-card .h4 { font-size: 20px; }
.order-rows { display: flex; flex-direction: column; }
.order-rows .house-row { align-items: center; border-bottom: 1px solid var(--line-soft); }
.order-rows .stack { display: flex; flex-direction: column; gap: 2px; }
.order-rows .stack span { font-size: 13px; color: var(--accent-deep); font-weight: 600; }
.order-rows .ordered .stack span { color: var(--second); }
.order-rows button { min-height: 36px; padding: 0 12px; font-size: 13px; }
.order-card .add-row input[type="number"] { width: 72px; flex: none; }
.sline .order-flag { color: #8A6A1E; font-weight: 700; }
.out-card .house-row button { min-height: 36px; padding: 0 12px; font-size: 13px; }
.add-row select { flex: 1 1 180px; min-width: 0; }

/* ---------- Countdown (mockups Schedule, MobileCountdown, MobileNewYearCountdown) ---------- */
.page.countdown { gap: 28px; }
.countdown .title { font-size: clamp(36px, 4.4vw, 54px); letter-spacing: -1.2px; }
button.big-button { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; font-size: 16px; }
.rules { padding: 20px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.rules h2 { font: 700 15px var(--body); }
.rule-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.rule-chip { padding: 8px 12px; border-radius: 10px; background: var(--chip); color: var(--chip-ink); font-size: 14px; font-weight: 700; }
.rule-chip.shop { background: #F6E1CF; color: #6E2E10; }
.rule-chip.buffer { background: #F3EBDD; color: #4A3A2D; }
.rule-chip.verify { background: #F3E6C8; color: #5A3F0E; }
.rule-chip.cook { background: #E6EDDF; color: #2F4530; }
.rule-chip.execute { background: var(--dark); color: var(--on-dark); }
.rules-edit { flex-basis: 100%; }
.rules-edit summary, .step-form summary, .bag-items summary { cursor: pointer; font-weight: 700; color: var(--accent); min-height: 44px; display: flex; align-items: center; }
.rules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 12px; }
.day-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.day-tab { line-height: 1.2; min-height: 92px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.day-tab:hover { color: var(--ink); border-color: #CDB89C; }
.day-tab .tag { font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.day-tab .name { font: 700 20px var(--display); }
.day-tab .date { font-size: 13px; opacity: 0.85; }
.day-tab.on, .day-tab.on:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.day-list { padding: 28px; border-radius: 22px; gap: 6px; }
.day-list .h2 { margin-bottom: 8px; }
.task { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.task input { width: 22px; height: 22px; min-height: 0; padding: 0; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.task .stack { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.task .stack strong, .task .stack a { font-weight: 600; font-size: 16px; }
.task .stack span { font-size: 14px; color: var(--muted); }
.task .when { font-size: 14px; font-weight: 600; color: var(--muted); flex: none; }
.task.done .stack strong { text-decoration: line-through; opacity: 0.6; }
.bags-section { gap: 18px; }
.bag-head { padding: 24px 28px; border-radius: 22px; background: var(--gold-soft); color: #4A340B; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.bag-head .stack { flex: 1 1 360px; display: flex; flex-direction: column; gap: 6px; }
.bag-head p { margin: 0; font-size: 16px; line-height: 1.5; }
.bag-stats { display: flex; gap: 24px; }
.bag-stats > span { display: flex; flex-direction: column; font-size: 14px; }
.bag-stats strong { font: 700 34px var(--display); }
.bag-stats .short strong { color: var(--accent-deep); }
.bags-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.bag { padding: 18px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.bag.short { border-color: #E9B494; }
.bag-tag { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.bag-pill { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #F3EBDD; color: #5A4A3D; }
.bag-pill.full { background: #E6EDDF; color: #2F4530; }
.bag-pill.short { background: #F6DCCB; color: #7A3313; }
.bag-name { font: 700 20px var(--display); }
.bar.bag-bar { height: 8px; }
.bar.bag-bar > span { background: var(--gold); }
.bar.bag-bar.full > span { background: var(--second); }
.bar.bag-bar.short > span { background: var(--accent); }
.bag-missing { font-size: 14px; font-weight: 600; color: var(--accent-deep); }
.bag-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.bag-item label { display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 36px; }
.bag-item input { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--accent); }
.bag-item.got span { text-decoration: line-through; opacity: 0.6; }
.bag-item.missing span { color: var(--accent-deep); }
button.small-button { min-height: 32px; padding: 0 10px; font-size: 13px; }
.exec, .execs { gap: 20px; }
.exec-board { padding: 26px 28px; border-radius: 22px; background: var(--dark); color: var(--on-dark); display: flex; flex-direction: column; gap: 18px; }
.exec-board .summary { font-size: 14px; color: #CDBBA5; }
.lanes { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px 14px; align-items: center; }
.lane-label { font-size: 14px; font-weight: 700; }
.lane-label.head { font-size: 13px; color: #CDBBA5; }
.hours { display: flex; justify-content: space-between; font-size: 12px; color: #CDBBA5; font-variant-numeric: tabular-nums; }
.track { position: relative; height: 40px; border-radius: 10px; background: #3D2C20; }
.block { position: absolute; top: 0; bottom: 0; border-radius: 8px; display: flex; align-items: center; padding-left: 8px; font-size: 12px; font-weight: 700; color: #2A1E16; white-space: nowrap; overflow: hidden; }
.block.preheat { background: #6B4A30; color: #F8F2E7; } .block.oven { background: #C9962B; } .block.hot { background: #E08A3C; } .block.stove { background: #9FC28F; color: #1E2E1F; } .block.counter { background: #D9C4A8; }
.clash { margin: 0; font-size: 14px; font-weight: 600; color: #F6C9A8; }
.steps { padding: 10px 28px; border-radius: 22px; gap: 0; }
.step-row { line-height: 1.3; display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.step-row .time { flex: 0 0 76px; font: 700 20px var(--display); color: var(--muted); font-variant-numeric: tabular-nums; }
.step-row.strong .time { color: var(--accent); }
.step-row .stack { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.step-row .stack strong { font-size: 16px; }
.step-row .stack span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.step-row .bag-chip { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--chip); font-size: 12px; font-weight: 700; color: var(--chip-ink); }
.step-row input { width: 22px; height: 22px; min-height: 0; padding: 0; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.step-row.done .stack strong { text-decoration: line-through; }
.step-row.done { opacity: 0.55; }
button.icon-button { width: 36px; min-height: 36px; padding: 0; border: 0; background: none; color: var(--muted); display: grid; place-items: center; flex: none; }
.step-form { padding: 6px 0 12px; }
.day-head { flex-direction: column; gap: 4px; }
dialog.kitchen { width: min(680px, 100vw); max-width: 100vw; display: flex; flex-direction: column; gap: 14px; padding: 28px; }
dialog.kitchen:not([open]) { display: none; }
.k-time { font: 700 28px var(--display); color: var(--accent); }
.k-what { font: 800 40px/1.1 var(--display); }
.k-note { margin: 0; font-size: 18px; color: var(--muted); }
.k-next { padding-top: 12px; border-top: 1px solid var(--line); }
.k-next .label { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.k-next p { margin: 6px 0 0; }

/* ---------- Christmas's page (mockup Christmas, ADR 0029) ---------- */
.road { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.road-day { padding: 18px; border-radius: 18px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.road-day .label { font-size: 13px; font-weight: 700; letter-spacing: 0.8px; }
.road-day .name { font: 700 21px/1.15 var(--display); }
.road-day .what { font-size: 14px; line-height: 1.45; opacity: 0.9; }
.road-day.next { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.road-day.key { border-color: var(--gold); }
.road-day.feast { background: #F6EFE2; border-color: #F6EFE2; color: #1B2A23; }
.road-day.past { opacity: 0.55; }
.xgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.xday { padding: 26px; border-radius: 22px; background: #F6EFE2; color: #1B2A23; display: flex; flex-direction: column; gap: 12px; }
.xday .h3 { font-size: 24px; }
.xday-date { font-size: 14px; font-weight: 700; color: #A12A2F; }
.xday-progress { font-size: 14px; color: #4D5E55; }
.xday-item { display: flex; gap: 12px; align-items: flex-start; min-height: 40px; cursor: pointer; font-size: 15px; line-height: 1.4; }
.xday-item input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 1px 0 0; accent-color: #A12A2F; flex: none; }
.xday-item .stack { display: flex; flex-direction: column; gap: 1px; }
.xday-item .stack strong { font-weight: 600; }
.xday-item .stack span { font-size: 13px; color: #4D5E55; }
.xday-item.done .stack strong { text-decoration: line-through; }
.xday .add-row input { background: #FFFDF8; color: #1B2A23; border-color: #DCCDB4; }
.xday .add-row button { background: #FFFDF8; color: #1B2A23; border-color: #DCCDB4; }
.xday.baking { gap: 14px; }
.xday.baking .pill.gold { align-self: flex-start; background: #E3D3B0; color: #5A3F0E; }
.xday-line { margin: 0; font-size: 15px; line-height: 1.5; color: #3B4A42; }
.xday-card { transform: rotate(1.5deg); padding: 16px 20px; background: #FFFBEF; border-radius: 6px; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25); font: 700 22px/1.35 var(--hand); color: #2B3A67; }
.xday-rows { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.xday-row { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.xday-row input { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: #A12A2F; }
.xday-row span { flex: 1; }
.xday-row.done span { text-decoration: line-through; opacity: 0.7; }
.xday-open { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; background: #12342A; color: #F6EFE2; font-weight: 700; text-decoration: none; margin-top: auto; }
.xday-open:hover { color: #FFFFFF; }
.xmenus { padding: 26px; border-radius: 22px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.xmenus .h3 { font-size: 24px; }
.xmenu { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.xmenu .when { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--gold); }
.xmenu strong { font-weight: 600; font-size: 16px; }
.xmenu .xnote { font-size: 13px; color: var(--muted); }
.add-days { gap: 12px; }
.add-days select { min-width: 220px; }

/* ---------- New Year's page (mockup NewYearPlan, ADR 0030) ---------- */
.ny-strip .h2 { font-size: 30px; font-weight: 800; }
.ny-days { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.ny-day { padding: 14px 12px; border-radius: 6px; border: 1.5px solid #E2D7C4; background: #EFE6D6; color: #1E1B18; display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.ny-day .label { font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.ny-day .jp { font: 700 15px "Shippori Mincho", var(--display); opacity: 0.85; }
.ny-day .name { font: 800 18px/1.2 "Shippori Mincho", var(--display); }
.ny-day .what { font-size: 12px; line-height: 1.45; opacity: 0.9; }
.ny-day.cook { background: #2F5D3A; border-color: #2F5D3A; color: #FFFFFF; }
.ny-day.eve { background: #1E1B18; border-color: #1E1B18; color: #F5EFE4; }
.ny-day.gan { background: #B7282E; border-color: #B7282E; color: #FFFFFF; }
.ny-day.after { background: #FFFCF6; }
.ny-day.now { box-shadow: 0 0 0 3px #F5EFE4, 0 0 0 5px #D9A441; }
.ny-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); }
.ny-legend > span { display: flex; align-items: center; gap: 6px; }
.swatch-sq { width: 12px; height: 12px; border-radius: 2px; background: #EFE6D6; border: 1px solid #E2D7C4; }
.swatch-sq.cook { background: #2F5D3A; border: 0; } .swatch-sq.eve { background: #1E1B18; border: 0; } .swatch-sq.gan { background: #B7282E; border: 0; }
.ny-meals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.ny-meal { border-radius: 6px; background: #FFFCF6; border: 1px solid #E2D7C4; overflow: hidden; display: flex; flex-direction: column; }
.ny-band { padding: 22px 26px; color: #FFFFFF; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.ny-band.eve { background: #1E1B18; } .ny-band.gan { background: #B7282E; }
.ny-band .stack { display: flex; flex-direction: column; gap: 4px; }
.ny-band .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; color: #FFE3C4; }
.ny-band.eve .eyebrow { color: #F1C76A; }
.ny-band .name { font: 800 28px "Shippori Mincho", var(--display); }
.ny-band .when { font-size: 14px; opacity: 0.9; }
.ny-band .table { padding: 6px 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); font-size: 13px; font-weight: 700; white-space: nowrap; }
.ny-meal-body { padding: 20px 26px 24px; display: flex; flex-direction: column; gap: 18px; }
.ny-meal-body .h4 { font: 800 20px "Shippori Mincho", var(--display); }
.ny-meal-body .row-between > a { font-size: 14px; font-weight: 700; text-decoration: none; }
.ny-dish { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #EDE3D2; font-size: 15px; color: var(--ink); text-decoration: none; }
.ny-dish:hover { color: var(--ink); }
.ny-dish .muted { font-size: 13px; }
.ny-dish-note { font-size: 13px; color: #2F5D3A; font-weight: 700; white-space: nowrap; }
.ny-trow { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid #E6DCCB; align-items: baseline; }
.ny-trow .time { flex: 0 0 78px; font: 800 17px "Shippori Mincho", var(--display); color: #B7282E; }
.ny-trow .stack { display: flex; flex-direction: column; gap: 2px; }
.ny-trow .stack strong { font-size: 15px; }
.ny-trow .stack span { font-size: 13px; color: var(--muted); }
.ny-list { padding: 24px 28px; border-radius: 6px; background: #EFE6D6; display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; }
.ny-list .stack { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.ny-list .h3 { font: 800 22px "Shippori Mincho", var(--display); }
.ny-list .stack > span { font-size: 15px; color: var(--muted); line-height: 1.5; }
.ny-count { display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.ny-count strong { font: 800 30px "Shippori Mincho", var(--display); }
.ny-count.eve strong { color: #1E1B18; } .ny-count.gan strong { color: #B7282E; } .ny-count.both strong { color: #2F5D3A; }
.ny-count span { font-size: 13px; color: var(--muted); }
a.ny-open { min-height: 48px; padding: 0 22px; border-radius: 4px; background: #B7282E; color: #FFFFFF; }
a.ny-open:hover { color: #FFFFFF; }
.ny-house .xday { background: #FFFCF6; border: 1px solid #E2D7C4; border-radius: 6px; color: #1E1B18; }
.ny-house .xday-date { color: #B7282E; }
.ny-house .xday-item input { accent-color: #B7282E; }

.ny-today { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.ny-now { padding: 18px; border-radius: 16px; background: #B7282E; color: #FFFFFF; display: flex; flex-direction: column; gap: 10px; }
.ny-now.dark { background: #1F1A16; color: #F5EFE4; }
.ny-now .label { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #FFE3C4; }
.ny-now.dark .label { color: #E3B76A; }
.ny-now .name { font: 800 22px "Shippori Mincho", var(--display); }
.ny-now .ny-note { font-size: 14px; line-height: 1.5; color: #FFE9DA; }
.ny-now.dark .ny-note { color: #D9CDB9; }
.ny-prog { font-size: 13px; font-weight: 700; }
.ny-bar { height: 6px; border-radius: 2px; background: #8E1D22; overflow: hidden; }
.ny-now.dark .ny-bar { background: #4A4038; }
.ny-bar > span { display: block; height: 100%; background: #F1C76A; }
.ny-now-open { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 0; border-radius: 10px; background: #FFFFFF; color: #B7282E; font-weight: 700; font-size: 16px; text-decoration: none; }
.ny-now.dark .ny-now-open { background: #F5EFE4; color: #1F1A16; }
a.ny-now-open:hover { color: #B7282E; }
.ny-jubako { display: flex; flex-direction: column; gap: 8px; }
.ny-jubako .h4 { font: 800 19px "Shippori Mincho", var(--display); }
.ny-jubako .packed { font-size: 13px; font-weight: 700; color: #2F5D3A; }
.ny-tier { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; background: #1F1A16; color: #F5EFE4; }
.ny-tier .jp { flex: 0 0 40px; font: 800 18px "Shippori Mincho", var(--display); color: #E3B76A; }
.ny-tier .stack { display: flex; flex-direction: column; gap: 1px; }
.ny-tier .stack strong { font-size: 14px; }
.ny-tier .stack span { font-size: 12px; color: #D9CDB9; }
.ny-dish { align-items: center; }
.ny-dish > a { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.ny-dish select.tier { min-height: 36px; padding: 0 8px; font-size: 13px; border-radius: 8px; }
.ny-checklist .h4, .ny-after .h4 { font: 800 19px "Shippori Mincho", var(--display); margin-bottom: 4px; }
.ny-todo { display: flex; align-items: center; gap: 14px; min-height: 52px; border-bottom: 1px solid #E6DCCB; cursor: pointer; }
.ny-todo input { width: 24px; height: 24px; min-height: 0; padding: 0; margin: 0; accent-color: #B7282E; flex: none; }
.ny-todo .stack { flex: 1; display: flex; flex-direction: column; gap: 1px; padding: 6px 0; }
.ny-todo .stack strong { font-size: 15px; }
.ny-todo .stack span { font-size: 13px; color: var(--muted); }
.ny-todo .time { font-size: 13px; font-weight: 700; color: #B7282E; }
.ny-todo.done .stack { opacity: 0.5; } .ny-todo.done .stack strong { text-decoration: line-through; }
.ny-after { display: flex; flex-direction: column; gap: 8px; }
.ny-after-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: #FBF8F1; border: 1px solid #E6DCCB; }
.ny-after-row .jp { flex: 0 0 48px; font: 800 18px "Shippori Mincho", var(--display); color: #2F5D3A; }
.ny-after-row .jp.gan { color: #B7282E; }
.ny-after-row .stack { display: flex; flex-direction: column; gap: 1px; }
.ny-after-row .stack strong { font-size: 15px; }
.ny-after-row .stack span { font-size: 13px; color: var(--muted); }

/* ---------- the language switch (ADR 0032) ---------- */
.lang-switch { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--line-soft); }
.lang-switch button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; }
.lang-switch button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(42, 30, 22, 0.15); }
.lang-switch.on-dark { margin-top: 8px; background: rgba(255, 255, 255, 0.08); }
.lang-switch.on-dark button { min-height: 32px; color: var(--side-ink); font-size: 13px; }
.lang-switch.on-dark button[aria-pressed="true"] { background: var(--side-active); color: #FFFFFF; }
html:lang(ja) .ny-day .jp { display: none; }
html:lang(ja) .tab { font-size: 10px; letter-spacing: -0.3px; white-space: nowrap; }
html:lang(ja) .eyebrow, html:lang(ja) .ny-day .label, html:lang(ja) .road-day .label { letter-spacing: 0.4px; }

/* ---------- phones (ADR 0024): a slim top bar, the page, a tab bar fixed to the bottom ---------- */
.phone-top, .tabbar, .phone-only { display: none; }
.h-todo .desk-only { display: inline; }
dialog.sheet { padding: 20px; }
.sheet-label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.sheet-list { display: flex; flex-direction: column; }
.sheet-row { display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; font-weight: 600; }
.sheet-row .when { font-size: 14px; color: var(--muted); font-weight: 500; }
.sheet-row.on { color: var(--accent); }
.sheet-buttons { display: flex; flex-direction: column; gap: 8px; }
.sheet-buttons button { width: 100%; }
.button-link { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid #CDB89C; background: var(--surface); color: var(--ink); font: 600 15px var(--body); text-decoration: none; }

@media (max-width: 720px) {
  .side { display: none; }
  .phone-only { display: revert; }
  .desk-only, .h-todo .desk-only { display: none; }
  .shell { display: block; min-height: 100vh; }

  .phone-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 4px; height: 52px; padding: 0 12px 0 14px; background: var(--ground); border-bottom: 1px solid var(--line-soft); }
  .phone-top .switcher { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 8px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font: 700 15px var(--body); color: var(--ink); }
  .phone-top .switcher svg:first-child { width: 22px; height: 22px; }
  .phone-top.plain { border-bottom-color: transparent; }
  .bar-sync { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
  .bar-sync .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--second); }
  .bar-title { font: 800 24px var(--display); letter-spacing: -0.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bar-title.small-title { flex: 1; font: 700 16px var(--body); letter-spacing: 0; }
  .bar-back { width: 44px; height: 44px; margin-left: -12px; display: grid; place-items: center; color: var(--ink); flex: none; }
  .bar-gap { width: 44px; flex: none; }
  .bar-action { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 700 15px var(--body); }

  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; height: calc(54px + env(safe-area-inset-bottom, 0px)); padding: 3px 6px env(safe-area-inset-bottom, 0px); background: var(--surface); border-top: 1px solid var(--line); }
  .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 48px; padding: 0; border: 0; border-radius: 0; background: none; text-decoration: none; color: var(--muted); font: 600 10.5px/1.2 var(--body); }
  .tab:hover { color: var(--accent); }
  .tab .ic { display: grid; place-items: center; width: 40px; height: 24px; border-radius: 999px; }
  .tab .ic svg { width: 20px; height: 20px; }
  .tab.on { color: var(--accent); }
  .tab.on .ic { background: var(--accent-soft); }

  dialog.sheet { margin: auto 0 0; width: 100%; max-width: none; max-height: 85vh; border-radius: 20px 20px 0 0; padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }

  .page { padding: 18px 16px calc(78px + env(safe-area-inset-bottom, 0px)); gap: 22px; }
  .card { padding: 18px; border-radius: 16px; gap: 10px; }
  .h2 { font-size: 22px; } .h3 { font-size: 20px; } .h4 { font-size: 18px; }
  .title, .title.big { font-size: 32px; line-height: 1.08; letter-spacing: -0.8px; }
  .eyebrow { font-size: 12px; letter-spacing: 1.2px; }
  .grid-auto { grid-template-columns: 1fr; gap: 22px; }

  /* Today: what to do now first, then the countdown as a strip, the menu and the house folded */
  .home .head-art, .home .snow, .home .lede, .banner .seigaiha { display: none; }
  .banner { margin: 0; padding: 0; background: none; color: var(--ink); }
  .banner-text { flex-direction: row-reverse; justify-content: space-between; gap: 12px; width: 100%; }
  .seal { font-size: 22px; letter-spacing: 4px; padding: 8px 6px; border: 1.5px solid var(--accent); border-radius: 4px; color: var(--accent); }
  .banner .eyebrow { color: var(--accent); }
  .banner .title.big { font-size: 30px; line-height: 1.15; }
  .page.home-oshogatsu { padding-top: 18px; gap: 22px; }
  .meta { margin: 0; font-size: 14px; color: var(--muted); }
  .home .head-text { gap: 4px; }
  .hero { padding: 20px; border-radius: 20px; gap: 14px; }
  .hero .burst, .hero p, .hero .btn-ghost { display: none; }
  .hero h2 { font-size: 28px; letter-spacing: 0; }
  .hero .step { font-size: 13px; }
  .hero .pill.light { padding: 3px 10px; font-size: 11px; font-weight: 800; letter-spacing: 1px; }
  .hero .btn-light { flex: 1; justify-content: center; }
  .hero > .row-buttons:first-of-type { justify-content: space-between; align-items: center; }
  .todos { padding: 0; border: 0; background: none; gap: 0; }
  .todos > .row-between { align-items: baseline; padding-bottom: 4px; }
  .h-todo { font-size: 20px; }
  .check-row { min-height: 52px; padding: 12px 0; align-items: center; gap: 14px; border-bottom: 1px solid var(--line-soft); }
  .check-row input { width: 24px; height: 24px; margin: 0; }
  .check-row .stack strong { font-size: 15px; }
  .check-row .stack span { font-size: 13px; }
  .check-row.done .stack strong { text-decoration: line-through; }
  .day.now { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
  .day.last:not(.now) { background: var(--surface); border-color: var(--line); color: var(--ink); }
  .home .stack-section { gap: 10px; }
  .home .h2 { font-size: 20px; }
  .fold-card:not(.house) { padding: 16px 18px; border-radius: 18px; gap: 2px; }
  .fold-card .h3 { font-size: 20px; }
  .fold-card > .row-between { margin-bottom: 4px; }
  .menu-row { min-height: 52px; padding: 6px 0; }
  .menu-row .stack { gap: 0; }
  .menu-row .stack strong { font-size: 15px; }
  .unfold { margin-top: 6px; }
  .menu-row .pill.gold { padding: 0; background: none; color: var(--gold-ink); }
  .menu-row .pill.gold svg { width: 16px; height: 16px; }
  .days { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .days::-webkit-scrollbar { display: none; }
  .day { flex: 0 0 128px; min-height: 0; padding: 14px; border-radius: 14px; gap: 4px; scroll-snap-align: start; }
  .day .tag { font-size: 11px; } .day .name { font-size: 18px; } .day .date { font-size: 13px; } .day .what { display: none; }
  .fold-card:not(.open) .fold { display: none; }
  .fold-card.open .unfold, .fold-card.open .peek { display: none; }
  .unfold { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent); font: 700 15px var(--body); }
  .house { padding: 0; gap: 0; }
  .house:not(.open) > h2 { display: none; }
  .house.open { padding: 18px; gap: 10px; }
  .peek { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px; border: 0; border-radius: 16px; background: none; color: var(--second-ink); text-align: left; }
  .peek .stack { flex: 1; display: flex; flex-direction: column; gap: 2px; }
  .peek .stack strong { font: 700 17px var(--display); }
  .peek .stack span { font-size: 13px; font-weight: 500; }
  .home .col > .card:not(.house) { display: none; } /* the rest of the season lives under More */

  /* the vault: the bar has the title and Add; the promise folds to a line; recipes are rows */
  .vault > .head, .vault > .safe, #all { display: none; }
  .vault-history .two-col { grid-template-columns: 1fr; }
  .settings > .head { display: none; }
  .feedback-page > .head .title, .feedback-page > .head .eyebrow, .family-page > .head .title, .family-page > .head .eyebrow, .suggestions > .head .title, .suggestions > .head .eyebrow { display: none; }
  .settings-grid { grid-template-columns: 1fr; }
  .vault-history > .head .back, .cb-bar .back { display: none; }
  .page.vault { padding-top: 6px; }
  .safe-phone { border-radius: 12px; background: var(--second-soft); color: var(--second-ink); font-size: 13px; }
  .safe-phone summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font-weight: 600; cursor: pointer; list-style: none; }
  .safe-phone summary::-webkit-details-marker { display: none; }
  .safe-phone p { margin: 0; padding: 0 12px 10px; line-height: 1.5; }
  .vault .stack-section { gap: 12px; }
  .vault .row-between.center { display: block; }
  .search { flex: none; width: 100%; }
  .search input { font-size: 16px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; gap: 8px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex: 0 0 auto; min-height: 40px; padding: 0 14px; }
  .grid-cards { display: flex; flex-direction: column; gap: 0; }
  .rcard { flex-direction: row; align-items: center; gap: 14px; min-height: 88px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: none; overflow: visible; }
  .rcard .art { flex: 0 0 56px; height: 56px; padding: 0; border-radius: 14px; justify-content: center; align-items: center; overflow: hidden; }
  .rcard .art .hand { font-size: 22px; text-align: center; }
  .rcard .art .pill, .rcard .tags { display: none; }
  .rcard .body { flex: 1; min-width: 0; padding: 0; gap: 2px; }
  .rcard .body strong { font-size: 16px; display: flex; align-items: center; gap: 6px; }
  .rcard .body > span { font-size: 13px; }
  .lock-mark { display: inline-flex; color: #8A6A1E; flex: none; }
  .chev { display: inline-flex; color: #CDBBA5; flex: none; }
  .vault .page, .page.vault { gap: 12px; }

  /* a recipe: back and title in the bar; the card, the versions, then what you cook from */
  .recipe > .back, .recipe-head .lede, .recipe .card > .muted.small, .stepper > .muted { display: none; }
  .page.recipe { gap: 18px; }
  .recipe-head { gap: 18px; }
  .recipe-head .text { flex-basis: auto; gap: 8px; }
  .recipe-head .pills { gap: 6px; }
  .recipe-head .pill { padding: 4px 10px; font-size: 12px; }
  .recipe .title { font-size: 30px; line-height: 1.1; letter-spacing: -0.6px; }
  .facts { gap: 4px 14px; font-size: 14px; padding-top: 0; color: var(--muted); }
  .facts strong { display: inline; font: 700 14px var(--body); color: var(--ink); margin-right: 4px; }
  .facts .muted { display: inline; }
  .index-card { flex: 1 1 100%; gap: 6px; }
  .index-card .paper { transform: rotate(-0.6deg); padding: 14px 16px; border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line), 0 8px 18px rgba(42, 30, 22, 0.08); font-size: 23px; line-height: 26px; color: #2C3E66; background-image: repeating-linear-gradient(#FFFBF1 0 25px, #DCE6EE 25px 26px); }
  .index-card .margin, .index-card .stain { display: none; }
  .index-card .written { padding-left: 0; }
  .index-card .written .first { font-size: 23px; }
  .index-card .written div:nth-child(n+4) { display: none; }
  .index-card figcaption { font-size: 12px; text-align: left; }
  .tabs { align-self: stretch; flex-wrap: nowrap; padding: 4px; gap: 4px; border-radius: 12px; }
  .tabs button { flex: 1; min-height: 40px; padding: 0 8px; font-size: 14px; font-weight: 700; border-radius: 9px; }
  .note { margin-top: -8px; padding: 0; background: none; font-size: 13px; color: var(--muted); }
  .note.green, .note.gold { background: none; color: var(--muted); }
  .split > .main { gap: 18px; }
  .recipe .split > .main > .card { padding: 0; border: 0; border-radius: 0; background: none; gap: 0; }
  .recipe .card .h3 { font-size: 20px; }
  .recipe .card > .row-between { padding-bottom: 6px; flex-wrap: nowrap; align-items: center; }
  .stepper { gap: 2px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px #E1D3BC; }
  .stepper button { width: 44px; min-height: 40px; border: 0; background: none; color: var(--accent); }
  .stepper strong { min-width: 64px; font: 700 14px var(--body); }
  .ing { flex-direction: row-reverse; justify-content: space-between; padding: 11px 0; gap: 12px; font-size: 15px; border-radius: 0; }
  .ing .qty { flex: none; text-align: right; white-space: nowrap; }
  .ing.changed { background: none; }
  .method { list-style: none; padding: 0; gap: 0; font-size: 15px; line-height: 1.5; counter-reset: step; }
  .method li { display: flex; gap: 12px; padding: 10px 0; counter-increment: step; }
  .method li::before { content: counter(step); flex: 0 0 28px; height: 28px; border-radius: 999px; background: #F6E1CF; color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
  .split { gap: 18px; }
  /* Shopping: the switch, sticky aisle headings, big checkboxes */
  .page.shop { gap: 14px; }
  .shop .title { font-size: 30px; line-height: 1.1; letter-spacing: -0.6px; }
  .shop-head .head-text { gap: 10px; }
  .shop-progress { padding: 0; border: 0; background: none; gap: 10px; }
  .shop-progress .meter-wrap { flex-basis: 100%; gap: 10px; }
  .shop-progress .row-between { font-size: 14px; }
  .shop-progress .bar.soft { height: 8px; }
  .tabs.seg { display: flex; align-self: stretch; }
  .shop-progress .stats { display: none; }
  .shop-list { gap: 0; }
  .aisle { border: 0; border-radius: 0; background: none; overflow: visible; }
  .aisle-head { position: sticky; top: 56px; z-index: 1; padding: 14px 0 8px; background: var(--ground); color: var(--ink); border-bottom: 2px solid var(--tint-ink); align-items: baseline; }
  .aisle-head h2 { font-size: 18px; }
  .aisle-head span { font-size: 13px; color: var(--muted); }
  .aisle-lines { padding: 0; }
  .sline { padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
  .sline input { width: 28px; height: 28px; margin: 0; }
  .sline .name { font-weight: 700; }
  .sline .stack { gap: 2px; line-height: 1.3; }
  .sline .for { line-height: 1.35; }
  .sline .qty { font-size: 15px; }
  .shop.view-get .sline.got, .shop.view-cart .sline:not(.got) { display: none; }
  .shop.view-get .aisle:not(:has(.sline:not(.got))), .shop.view-cart .aisle:not(:has(.sline.got)) { display: none; }
  .shop.view-pantry .shop-list, .shop:not(.view-pantry) .pantry-card, .shop:not(.view-get) .out-card, .shop:not(.view-get) .order-card { display: none; }
  .order-card { padding: 18px; }
  .pantry-card, .out-card { padding: 18px; }
  /* Countdown: the days as a sticky strip, the day's name, then its work */
  .page.countdown { gap: 18px; padding-top: 0; }
  .countdown > .head, .countdown > .rules { display: none; }
  .day-tabs { display: flex; position: sticky; top: 56px; z-index: 2; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 6px 16px 10px; background: var(--ground); border-bottom: 1px solid var(--line-soft); scrollbar-width: none; }
  .day-tabs::-webkit-scrollbar { display: none; }
  .day-tab { flex: 0 0 auto; min-width: 72px; min-height: 52px; padding: 0 12px; border-radius: 12px; border-width: 1.5px; align-items: center; justify-content: center; gap: 1px; }
  .day-tab .tag { font-size: 11px; font-weight: 800; letter-spacing: 0.8px; }
  .day-tab .name { font: 700 14px var(--body); white-space: nowrap; }
  .day-tab .date { display: none; }
  .day-head.phone-only { display: flex; }
  .day-head .title { font-size: 30px; line-height: 1.1; }
  .day-head .muted { font-size: 14px; line-height: 1.45; }
  .day-list { padding: 0; border: 0; background: none; }
  .up-next.phone-only { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: var(--dark); color: var(--on-dark); }
  .up-next .label { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--highlight); }
  .up-next .name { font: 700 24px var(--display); }
  .up-next .note { font-size: 14px; color: #E8DCC8; }
  button.highlight { min-height: 48px; border: 0; background: var(--highlight); color: #2A1E16; font-weight: 800; font-size: 16px; }
  .exec-board { padding: 14px 16px; border-radius: 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); gap: 8px; }
  .exec-board .h2 { display: none; }
  .exec-board .row-between { justify-content: flex-end; }
  .exec-board .summary { color: var(--second); font-weight: 700; font-size: 13px; }
  .lanes { grid-template-columns: 64px minmax(0, 1fr); gap: 6px 10px; }
  .lane-label { font-size: 13px; } .lane-label.head, .hours { color: var(--muted); font-size: 11px; }
  .track { height: 22px; border-radius: 6px; background: var(--line-soft); }
  .block { font-size: 0; border-radius: 6px; padding: 0; }
  .clash { color: var(--accent-deep); }
  .steps { padding: 0; border: 0; background: none; }
  .step-row { gap: 14px; padding: 12px 0; }
  .step-row .time { flex-basis: 64px; font-size: 17px; }
  .step-row .stack strong { font-size: 15px; }
  .step-row .stack span { font-size: 13px; }
  .step-row .bag-chip { display: none; }
  .step-row input { width: 26px; height: 26px; margin: 0; }
  .bag-head { padding: 18px; border-radius: 16px; }
  .bag-head .h2 { font-size: 22px; }
  .bag-head p { font-size: 14px; }
  .bag-stats strong { font-size: 26px; }
  dialog.kitchen { margin: 0; width: 100vw; height: 100vh; max-height: none; border-radius: 0; }
  .k-what { font-size: 32px; }
  /* Christmas: the road scrolls sideways like the countdown strip */
  .road { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .road-day { flex: 0 0 150px; min-height: 0; padding: 14px; border-radius: 14px; scroll-snap-align: start; }
  .road-day .name { font-size: 18px; }
  .road-day .what { font-size: 13px; }
  .xgrid { grid-template-columns: 1fr; gap: 16px; }
  .xday, .xmenus { padding: 18px; border-radius: 18px; }
  .xday .h3, .xmenus .h3 { font-size: 20px; }
  .xday-item { min-height: 44px; }
  .xday-item input { width: 24px; height: 24px; }
  /* New Year: the eight days scroll sideways; one celebration under the other */
  .ny-days { display: flex; overflow-x: auto; gap: 8px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .ny-day { flex: 0 0 132px; min-height: 0; }
  .ny-strip .h2 { font-size: 22px; }
  .ny-band { padding: 16px 18px; }
  .ny-band .name { font-size: 22px; }
  .ny-meal-body { padding: 16px 18px 18px; }
  .ny-list { padding: 18px; gap: 14px 24px; }
  .ny-count { min-width: 90px; }
  .ny-count strong { font-size: 24px; }
  .ny-today { grid-template-columns: 1fr; gap: 22px; }
  .ny-today-mode .ny-strip, .ny-today-mode .ny-meals, .ny-today-mode .ny-list, .ny-today-mode .ny-house { display: none; }
}

/* ---------- print: the list alone (Shopping's Print button) ---------- */
@media print {
  .cb-bar,
  .side, .phone-top, .tabbar, .aside, .shop-head .row-buttons, .tabs.seg, dialog { display: none !important; }
  body, .shell, .page { background: #FFFFFF; }
  .page { padding: 0; }
  .aisle, .sline { break-inside: avoid; }
}

/* a family's storage limit on the platform admin's page (ADR 0061) */
.storage-limit { flex-wrap: wrap; align-items: center; margin-top: 6px; }
.storage-limit input { flex: 0 0 6.5rem; width: 6.5rem; min-height: 44px; }
.privacy-part p + p { margin-top: 8px; }
