/* product.css · Weekly Planner v1.0.0 (Nov 16, 2026) · every style for app/screens.js (spec "screens": "product").
 * Framework styles copied from Wedding Binder v1.0.0 (renamed wb- → wp-), with the Hearth palette (doc 47 §3: Pikesway
 * clay, pine and cream; every text pair ≥ 4.5:1, checked by test/weeklyplanner_check.py) and the brand fonts:
 * Fraunces for headings, Poppins for everything else. Light and dark follow the device. No sideways scroll at 320 px.
 * Then: Today, Week, Groceries, Chores, person colours, and the kitchen tablet view (body.wp-is-tablet). */
:root {
  --bg: #FFF6F1; --surface: #FFFFFF; --soft: #FBE9E0; --ink: #1F3A3D; --muted: #5E5550; --line: #EED9CE; --on-primary: #FFFFFF;
  --primary: #A8492A; --link: #1F3A3D; --soft2: #F6D3C3; --accent: #D2603A;
  --soon-bg: #FDE6D8; --soon: #84270F; --late-bg: #FBDAD4; --late: #8C1C0F; --done-bg: #E1F0EA; --done: #1F5A44;
  --serif: 'Fraunces', Georgia, serif; --sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --r-card: 18px; --r-btn: 14px; --r-in: 12px; --pad: 20px; --nav-h: 64px;
  --sheet-shadow: 0 -8px 30px rgba(31, 58, 61, .12); --fab-shadow: 0 6px 16px rgba(31, 58, 61, .18);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141C1D; --surface: #1D2829; --soft: #253233; --ink: #F5EDE8; --muted: #B8AEA8; --line: #33403F; --on-primary: #FFFFFF;
    --primary: #A8492A; --link: #F0A07F; --soft2: #3F2418;
    --soon-bg: #3F2418; --soon: #F5C3A9; --late-bg: #40201C; --late: #F4B6AC; --done-bg: #1B3A2B; --done: #BDEBD0;
    --sheet-shadow: 0 -8px 30px rgba(0, 0, 0, .45); --fab-shadow: 0 6px 16px rgba(0, 0, 0, .5);
  }
}
@media (max-width: 379px) { :root { --pad: 14px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.45 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.wp-locked { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
a { color: var(--link); }
svg { width: 22px; height: 22px; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.wp-page { max-width: 640px; margin: 0 auto; padding: max(8px, env(safe-area-inset-top)) var(--pad) calc(var(--nav-h) + 96px + env(safe-area-inset-bottom)); }
.wp-bar { display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 8px; }
.wp-icon { width: 48px; height: 48px; margin-left: -12px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.wp-bar > .wp-icon:last-child { margin: 0 -12px 0 0; }
.wp-date { font-size: 13px; font-weight: 500; color: var(--muted); }
.wp-title { font: 600 28px/1.15 var(--serif); color: var(--ink); margin: 2px 0 16px; letter-spacing: -.005em; }
.wp-over { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.wp-group { margin: 22px 2px 8px; }
.wp-muted { color: var(--muted); }
.wp-hint { font-size: 13px; color: var(--muted); margin: 10px 2px; }
.wp-line { font-size: 14px; margin: 0 2px 10px; }
.wp-note { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; }
.wp-note svg { width: 18px; height: 18px; margin-top: 2px; }
.wp-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wp-status { font-size: 13px; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.wp-status.late { color: var(--late); }
.wp-status.demo { border: 0; padding: 0 0 6px; font-size: 12px; }
.wp-status button { color: var(--link); font-weight: 600; text-decoration: underline; }

/* buttons */
.wp-primary { display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: center; gap: 8px; border-radius: var(--r-btn); background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: 16px; text-align: center; }
.wp-primary:disabled { opacity: .6; }
.wp-secondary { text-decoration: none; display: flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; width: 100%; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); font-weight: 500; color: var(--ink); text-align: center; margin-top: 10px; }
.wp-textbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; color: var(--link); font-weight: 600; font-size: 15px; }
.wp-addline { margin: 2px 0 6px; }
.wp-textbtn svg { width: 18px; height: 18px; }
.wp-danger { color: var(--late); margin-top: 6px; }
.wp-btns { display: grid; gap: 0; }
.wp-btns .wp-textbtn { justify-content: center; }

/* stats, cards, chips, lists */
.wp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.wp-stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wp-stat { background: var(--soft); border-radius: 16px; padding: 10px 12px; min-width: 0; }
.wp-stat span { display: block; font-size: 13px; color: var(--muted); }
.wp-stat b { display: block; font-size: clamp(16px, 4.9vw, 22px); font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-card .wp-stat { background: var(--soft); }
.wp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; margin-bottom: 12px; }
.wp-card > b, .wp-card-title { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 4px; }
.wp-card .wp-stats { margin: 10px 0 6px; }
.wp-share-owed { padding: 8px 0 2px; border-top: 1px solid var(--line); margin-top: 4px; }
.wp-share-owed b { font-size: 17px; }
.wp-bar-track { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 10px 0 2px; }
.wp-bar-track i { display: block; height: 100%; background: var(--primary); border-radius: 6px; }
.wp-sticky { position: sticky; top: 0; z-index: 5; background: var(--bg); margin: 0 calc(-1 * var(--pad)); padding: 8px var(--pad) 6px; }
.wp-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad); }
.wp-chips::-webkit-scrollbar { display: none; }
.wp-chips button { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 500; white-space: nowrap; }
.wp-chips button.on { background: var(--soft2); color: var(--ink); border-color: transparent; font-weight: 600; }
.wp-search { display: flex; align-items: center; gap: 8px; height: 44px; background: var(--soft); border-radius: var(--r-in); padding: 0 12px; margin-bottom: 8px; color: var(--muted); }
.wp-search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 16px; color: var(--ink); }
.wp-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.wp-list > * + * { border-top: 1px solid var(--line); }
.wp-item { display: flex; align-items: center; gap: 4px; padding-right: 10px; position: relative; }
.wp-item-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 6px 10px 14px; }
button.wp-item-main.wp-item { padding-right: 14px; width: 100%; }
.wp-item-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.wp-item-text b { font-weight: 500; font-size: 16px; overflow-wrap: anywhere; }
.wp-item-text small { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.wp-item-text .wp-pill { margin-left: 6px; vertical-align: 2px; }
.wp-job { color: var(--ink) !important; }
.wp-item-end { display: grid; justify-items: end; gap: 4px; flex: none; }
.wp-amt { font-weight: 600; }
.is-paid .wp-amt { color: var(--muted); }
.wp-markpaid { position: absolute; right: 14px; bottom: 2px; min-height: 32px; font-size: 13px; }
.wp-item:has(.wp-markpaid) .wp-item-main { padding-bottom: 28px; }
.wp-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; flex: none; color: var(--muted); }
.wp-ic.late { background: var(--late-bg); color: var(--late); }
.wp-ic.done { background: var(--done-bg); color: var(--done); }
.wp-ic svg { width: 20px; height: 20px; }
.wp-av { width: 40px; height: 40px; border-radius: 50%; background: var(--soft2); color: var(--ink); display: grid; place-items: center; flex: none; font-size: 14px; font-weight: 600; }
.wp-pill { display: inline-block; flex: none; font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.wp-pill.done { background: var(--done-bg); color: var(--done); }
.wp-pill.soon { background: var(--soon-bg); color: var(--soon); }
.wp-pill.late { background: var(--late-bg); color: var(--late); }
.wp-call { width: 48px; height: 48px; border-radius: 50%; background: var(--soft2); color: var(--ink); display: grid; place-items: center; flex: none; }
.wp-call svg { width: 20px; height: 20px; }
.wp-mini-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 48px; border-top: 1px solid var(--line); padding: 8px 0; }
.wp-mini-row small { color: var(--muted); font-size: 13px; text-align: right; }
.wp-empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.wp-empty p { margin: 0; }

/* forms */
.wp-form { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.wp-field { display: grid; gap: 6px; }
.wp-field > span { font-size: 14px; font-weight: 500; }
.wp-field small { font-size: 13px; color: var(--muted); }
.wp-field input, .wp-field select, .wp-field textarea, .wp-money { width: 100%; min-height: 50px; border-radius: var(--r-in); border: 1px solid transparent; background: var(--soft); padding: 12px 14px; font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.wp-field textarea { min-height: 88px; resize: vertical; }
.wp-field input:focus, .wp-field select:focus, .wp-field textarea:focus, .wp-money:focus-within { outline: 0; border-color: var(--primary); background: var(--surface); }
.wp-field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.wp-field input[type=date], .wp-field input[type=time] { min-width: 0; display: block; }
.wp-money { display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.wp-money i { font-style: normal; color: var(--muted); }
.wp-money input { flex: 1; min-width: 0; border: 0 !important; background: none !important; padding: 12px 0; min-height: 48px; outline: 0; }
.wp-seg { display: flex; background: var(--soft); border-radius: var(--r-in); padding: 4px; gap: 4px; }
.wp-seg label { flex: 1; min-width: 0; }
.wp-seg input { position: absolute; opacity: 0; pointer-events: none; }
.wp-seg span { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--muted); text-align: center; padding: 0 4px; overflow-wrap: anywhere; line-height: 1.15; }
.wp-seg input:checked + span { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(43, 42, 40, .12); }
.wp-seg input:focus-visible + span { outline: 2px solid var(--primary); }
.wp-more { border-top: 1px solid var(--line); padding-top: 4px; }
.wp-more summary, .wp-help summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-weight: 600; cursor: pointer; }
.wp-more summary::-webkit-details-marker, .wp-help summary::-webkit-details-marker { display: none; }
.wp-more[open] { display: grid; gap: 14px; }
.wp-check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; }
.wp-check input { width: 20px; height: 20px; accent-color: var(--primary); }
.wp-sub { border-top: 1px solid var(--line); padding-top: 10px; }
.wp-sub .wp-list { margin-top: 8px; }
.wp-help { border-top: 1px solid var(--line); }
.wp-help:first-of-type { border-top: 0; }
.wp-help p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.wp-links { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }

/* bottom sheet */
.wp-scrim { position: fixed; inset: 0; background: rgba(28, 29, 27, .38); z-index: 40; animation: wp-fade .2s; }
.wp-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; margin: 0 auto; max-height: calc(100% - 28px - env(safe-area-inset-top)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: var(--sheet-shadow); padding: 0 var(--pad) env(safe-area-inset-bottom); animation: wp-up .25s ease-out; }
.wp-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; }
.wp-sheet-head { position: sticky; top: 0; z-index: 2; background: var(--surface); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 52px; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.wp-sheet-head h2 { font: 600 20px/1.2 var(--serif); margin: 0; text-align: center; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-sheet .wp-form { padding: 6px 0 16px; }
.wp-sheet-foot { position: sticky; bottom: 0; background: var(--surface); padding: 10px 0 12px; margin-top: 4px; }
.wp-sheet .wp-list { border-radius: 14px; }
.wp-step-card { display: flex; gap: 12px; background: var(--soft); border-radius: 16px; padding: 14px; }
.wp-step-card > div { flex: 1; min-width: 0; display: grid; gap: 4px; }
.wp-step-card small { color: var(--muted); font-size: 14px; }
.wp-step-card .wp-secondary { margin-top: 8px; }
.wp-num { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 600; flex: none; font-size: 14px; }
.wp-num svg { width: 16px; height: 16px; }
.wp-step-card.done .wp-num { background: var(--done-bg); color: var(--done); border: 0; }
.wp-file { cursor: pointer; }
.wp-pdf-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; background: var(--soft); border-radius: 16px; padding: 10px 14px; }
.wp-pdf-row .wp-ic { background: var(--surface); color: var(--ink); }
.wp-pdf-row > svg { color: var(--ink); width: 20px; height: 20px; }
@keyframes wp-up { from { transform: translateY(40px); opacity: .4; } }
@keyframes wp-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wp-sheet, .wp-scrim { animation: none; } }

/* round + button */
.wp-fab { position: fixed; z-index: 20; right: max(20px, calc(50% - 280px + 20px)); bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; box-shadow: var(--fab-shadow); }
.wp-fab svg { width: 26px; height: 26px; stroke-width: 2; }

/* toast */
#wp-toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 60; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 0 8px 0 18px; min-height: 44px;
  display: flex; align-items: center; gap: 8px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
#wp-toast:not(:has(button)) { padding-right: 18px; }
#wp-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#wp-toast button { color: var(--bg); font-weight: 700; text-decoration: underline; min-height: 44px; padding: 0 10px; }

/* first run + setup */
.wp-first { padding-top: max(48px, env(safe-area-inset-top)); }
.wp-brand { font: 600 34px/1.1 var(--serif); text-align: center; margin: 0 0 8px; }
.wp-lead { text-align: center; color: var(--muted); margin: 0 0 24px; }
.wp-steps { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.wp-steps li { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.wp-steps li > div { display: grid; gap: 2px; min-width: 0; }
.wp-steps small { color: var(--muted); font-size: 14px; }
.wp-steps li.now { border-color: var(--primary); }
.wp-steps li.done .wp-num { background: var(--done-bg); color: var(--done); border: 0; }
.wp-steps li.now .wp-num { background: var(--primary); color: var(--on-primary); border: 0; }
.wp-setup .wp-title { margin-top: 10px; }
.wp-setup .wp-over { margin-top: 12px; }
.wp-setup-foot { display: grid; justify-items: center; gap: 4px; margin-top: 10px; }

/* ================================================================ Weekly Planner */
.wp-skel { background: linear-gradient(90deg, var(--soft) 25%, var(--line) 50%, var(--soft) 75%); background-size: 200% 100%; animation: wp-sk 1.4s infinite; min-height: 96px; border: 0; }
@keyframes wp-sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .wp-skel { animation: none; } }
.wp-person { padding: 10px 14px; gap: 12px; min-height: 64px; }
.wp-person em { font-style: normal; color: var(--muted); font-weight: 400; }
.wp-kv { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; text-decoration: none; color: inherit; }
.wp-kv span { color: var(--muted); flex: none; }
.wp-kv b { font-weight: 500; text-align: right; overflow-wrap: anywhere; min-width: 0; flex: 1; }
.wp-h2 { display: flex; align-items: center; gap: 8px; font: 600 18px/1.2 var(--serif); margin: 0; color: var(--ink); }
.wp-h2 svg { width: 20px; height: 20px; color: var(--muted); }
.wp-card .wp-row-between + * { margin-top: 6px; }
.wp-inline { width: auto; margin: 0; padding: 0 16px; }
.wp-link-h { display: grid; gap: 2px; min-height: 48px; align-content: center; }
.wp-link-h small { color: var(--muted); font-size: 13px; }
.wp-btnrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.wp-btnrow .wp-secondary { margin-top: 0; font-size: 14px; padding: 0 8px; }
@media (max-width: 379px) { .wp-btnrow { grid-template-columns: 1fr; } }
.wp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wp-late { color: var(--late); font-style: normal; }
.wp-sub { margin: 14px 2px 6px; }

/* bottom bar */
.wp-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line);
  padding: 0 max(4px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-right)); }
.wp-nav button { min-height: var(--nav-h); display: grid; justify-items: center; align-content: center; gap: 2px; color: var(--muted); font-size: 12px; font-weight: 500; text-align: center; }
.wp-nav button svg { width: 24px; height: 24px; }
.wp-nav button.on { color: var(--ink); font-weight: 600; }
.wp-nav button.on svg { color: var(--primary); }
body.wp-locked .wp-nav { visibility: hidden; }

/* Today */
.wp-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 14px 0 10px; }
.wp-hh { font: 600 26px/1.15 var(--serif); margin: 0; overflow-wrap: anywhere; }
.wp-date { margin: 2px 0 0; color: var(--muted); font-weight: 500; }
.wp-hero .wp-icon { margin: -4px -12px 0 0; }
.wp-dinner { background: var(--soft); border-color: transparent; }
.wp-dinner .wp-over { display: block; margin-bottom: 4px; }
.wp-dinner-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; width: 100%; min-height: 48px; }
.wp-dinner-main b { font: 600 22px/1.2 var(--serif); }
.wp-dinner-main small { width: 100%; color: var(--muted); font-size: 14px; }
.wp-dinner .wp-secondary { margin-top: 8px; }
.wp-evday { margin: 12px 0 4px; }
.wp-evs { list-style: none; margin: 0; padding: 0; }
.wp-ev { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.wp-evs .wp-ev:first-child { border-top: 0; }
.wp-ev-time { flex: none; width: 74px; font-size: 14px; font-weight: 600; color: var(--link); }
.wp-ev-text { display: grid; min-width: 0; }
.wp-ev-text b { font-weight: 500; overflow-wrap: anywhere; }
.wp-ev-text small { color: var(--muted); font-size: 13px; }
.wp-connect p { margin: 4px 0; color: var(--muted); font-size: 14px; }
.wp-prow { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(60px, 34%) auto; align-items: center; gap: 10px; width: 100%; min-height: 48px; border-top: 1px solid var(--line); }
.wp-prow-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-prow .wp-bar-track { margin: 0; }
.wp-prow small { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* board */
.wp-note-row { position: relative; padding: 10px 0; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.wp-card > .wp-note-row:first-of-type, .wp-board > .wp-note-row:first-child { border-top: 0; }
.wp-note-row.pinned { background: var(--soon-bg); margin: 4px -16px; padding: 10px 16px; border-top: 0; }
.wp-pinmark svg { width: 18px; height: 18px; color: var(--soon); }
.wp-note-text { flex: 1; min-width: 0; }
.wp-note-text p { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.wp-note-row.pinned .wp-note-text p { color: var(--soon); font-weight: 500; }
.wp-note-text small { color: var(--muted); font-size: 13px; }
.wp-note-row.pinned .wp-note-text small { color: var(--soon); }
.wp-note-acts { display: flex; gap: 14px; width: 100%; }

/* Week */
.wp-days { display: grid; gap: 10px; }
.wp-day { display: grid; gap: 6px; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 16px; }
.wp-day.is-today { border: 2px solid var(--accent); padding: 11px 15px; }
.wp-day.is-past { opacity: .75; }
.wp-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wp-day-head b { font: 600 18px/1.2 var(--serif); }
.wp-day-head small { color: var(--muted); }
.wp-day-dinner { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.wp-day-dinner svg { width: 18px; height: 18px; color: var(--muted); }
.wp-day-dinner em { color: var(--muted); font-style: normal; font-weight: 400; }
.wp-day-evs { display: grid; gap: 1px; font-size: 14px; color: var(--muted); padding-left: 26px; }
.wp-day-evs span { overflow-wrap: anywhere; }
.wp-day-chores { font-size: 13px; color: var(--muted); }
.wp-daybadge { width: 48px; height: 48px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; align-content: center; flex: none; line-height: 1.1; }
.wp-daybadge b { font-size: 13px; } .wp-daybadge small { font-size: 12px; color: var(--muted); }
.wp-row { width: 100%; padding-right: 14px; }
.wp-row > svg { color: var(--muted); width: 18px; height: 18px; }

/* Groceries */
.wp-quick { display: flex; gap: 8px; margin: 0 0 10px; }
.wp-quick input { flex: 1; min-width: 0; min-height: 52px; border-radius: var(--r-in); border: 1px solid var(--line); background: var(--surface); padding: 0 14px; font-size: 16px; color: var(--ink); }
.wp-quick input:focus { outline: 0; border-color: var(--primary); }
.wp-quick .wp-primary { width: auto; min-height: 52px; padding: 0 16px; }
.wp-quick.big input, .wp-quick.big .wp-primary { min-height: 64px; font-size: 20px; }
.wp-gro { display: flex; align-items: center; }
.wp-tick { width: 56px; min-height: 56px; display: grid; place-items: center; flex: none; }
.wp-tick::before { content: ''; grid-area: 1 / 1; width: 26px; height: 26px; border-radius: 8px; border: 1.8px solid var(--muted); }
.wp-tick svg { grid-area: 1 / 1; width: 16px; height: 16px; color: var(--on-primary); z-index: 1; stroke-width: 2.4; }
.wp-gro.got .wp-tick::before { background: var(--done); border-color: var(--done); }
.wp-gro.got .wp-tick svg { color: var(--surface); }
.wp-gro .wp-item-main { padding-left: 0; min-height: 56px; }
.wp-gro.got .wp-item-text b { text-decoration: line-through; color: var(--muted); }
.wp-clear { margin-top: 8px; }
.wp-check-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 14px; }
.wp-check-row input { width: 22px; height: 22px; accent-color: var(--primary); flex: none; }

/* Chores */
.wp-pcard .wp-bar-track { margin: 8px 0 4px; }
.wp-when { margin: 12px 0 2px; }
.wp-chore { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; border-top: 1px solid var(--line); }
.wp-when + .wp-chore { border-top: 0; }
.wp-box { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; flex: none; }
.wp-box svg { width: 18px; height: 18px; color: var(--on-primary); stroke-width: 2.4; }
.wp-chore.done .wp-box { background: var(--done); border-color: var(--done); }
.wp-chore.done .wp-box svg { color: var(--surface); }
.wp-chore.done .wp-item-text b { text-decoration: line-through; color: var(--muted); }

/* person colours (dot, chip, avatar): light chip + dark ink, each ≥ 4.5:1 */
.p-tomato { --pc: #C2412D; --pc-bg: #FCDDD6; --pc-ink: #7F2416; }
.p-marigold { --pc: #D99A1E; --pc-bg: #FCEFC9; --pc-ink: #6B4A07; }
.p-leaf { --pc: #4F9A3A; --pc-bg: #E0F1D8; --pc-ink: #2B5A1E; }
.p-teal { --pc: #1F8A84; --pc-bg: #D3EFEC; --pc-ink: #0F5450; }
.p-sky { --pc: #3A86C8; --pc-bg: #DCEBF8; --pc-ink: #1C4E7A; }
.p-plum { --pc: #8E4C9E; --pc-bg: #EEDDF2; --pc-ink: #5B2A68; }
.p-rose { --pc: #C9507A; --pc-bg: #F9DDE7; --pc-ink: #7E2647; }
.p-slate { --pc: #5F6B76; --pc-bg: #E2E6EA; --pc-ink: #36404A; }
@media (prefers-color-scheme: dark) {
  .p-tomato { --pc: #F08A73; --pc-bg: #4A2219; --pc-ink: #FFD3C8; } .p-marigold { --pc: #F2C05A; --pc-bg: #44330F; --pc-ink: #FCE6B0; }
  .p-leaf { --pc: #8CCB74; --pc-bg: #233A1C; --pc-ink: #D2EFC6; } .p-teal { --pc: #6CCFC7; --pc-bg: #133A38; --pc-ink: #C7F0EC; }
  .p-sky { --pc: #84BCEB; --pc-bg: #19334A; --pc-ink: #D2E7F8; } .p-plum { --pc: #C99AD6; --pc-bg: #38213F; --pc-ink: #EDD8F2; }
  .p-rose { --pc: #EC93B2; --pc-bg: #45202E; --pc-ink: #F9D4E1; } .p-slate { --pc: #A9B4BE; --pc-bg: #2B3238; --pc-ink: #E1E6EA; }
}
.wp-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--pc, var(--muted)); flex: none; vertical-align: -1px; margin-right: 6px; }
.wp-h2 .wp-dot { margin-right: 0; }
.wp-chips .wp-dot { margin-right: 6px; }
.wp-pchip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--pc-bg); color: var(--pc-ink); font-size: 14px; font-weight: 600; }
.wp-av[class*=" p-"] { background: var(--pc-bg); color: var(--pc-ink); font-size: 18px; }
.wp-av.big { width: 64px; height: 64px; font-size: 30px; }
.wp-person-head { display: flex; align-items: center; gap: 14px; padding: 6px 0 14px; }
.wp-person-head > div { flex: 1; display: grid; }
.wp-person-head b { font: 600 26px/1.15 var(--serif); }
.wp-person-head small { color: var(--muted); }
.wp-alert { border-color: var(--late); background: var(--late-bg); }
.wp-alert .wp-kv span, .wp-alert .wp-kv b, .wp-alert .wp-kv p, .wp-alert .wp-over { color: var(--late); }
.wp-colours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wp-colours input { position: absolute; opacity: 0; pointer-events: none; }
.wp-swatch { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; background: var(--pc-bg); color: var(--pc-ink); font-size: 13px; font-weight: 600; border: 2px solid transparent; }
.wp-colours input:checked + .wp-swatch { border-color: var(--pc-ink); }
.wp-colours input:focus-visible + .wp-swatch { outline: 2px solid var(--primary); }
.wp-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-pick input { position: absolute; opacity: 0; pointer-events: none; }
.wp-pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--soft); font-weight: 500; }
.wp-pick input:checked + span { background: var(--ink); color: var(--bg); }
.wp-pick input:focus-visible + span { outline: 2px solid var(--primary); }

/* More, Household, Settings */
.wp-more-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 14px; }
.wp-more-row > svg { color: var(--muted); width: 18px; height: 18px; }
.wp-more-row .wp-ic { color: var(--ink); }
.wp-kv { align-items: center; }
.wp-kv-long { display: grid; gap: 2px; }
.wp-kv-long p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
button.wp-kv { width: 100%; text-align: left; min-height: 48px; }
.wp-mini { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); flex: none; }
.wp-mini svg { width: 18px; height: 18px; }
.wp-sos { display: flex; align-items: center; gap: 14px; background: var(--late-bg); color: var(--late); border-radius: var(--r-card); padding: 14px 16px; margin-bottom: 12px; text-decoration: none; min-height: 64px; }
.wp-sos span { display: grid; } .wp-sos small { font-size: 14px; }
.wp-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--line); }
.wp-card > .wp-over + .wp-switch { border-top: 0; }
.wp-switch span { display: grid; gap: 2px; } .wp-switch small { color: var(--muted); font-size: 13px; }
.wp-switch input { appearance: none; -webkit-appearance: none; width: 52px; height: 32px; border-radius: 16px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .15s; }
.wp-switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .15s; }
.wp-switch input:checked { background: var(--primary); }
.wp-switch input:checked::after { left: 23px; }
.wp-switch input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.wp-sheet .wp-switch { border-top: 0; }

/* first run + setup */
.wp-logo { font-size: 44px; text-align: center; margin-bottom: 4px; }
.wp-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 6px; }
.wp-progress i { height: 4px; border-radius: 4px; background: var(--line); }
.wp-progress i.on { background: var(--primary); }
.wp-setup-person { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 8px; }
.wp-setup-person input, .wp-setup-person select { min-height: 50px; border-radius: var(--r-in); border: 1px solid transparent; background: var(--soft); padding: 0 12px; font-size: 16px; color: var(--ink); min-width: 0; }
.wp-setup .wp-card p { margin: 6px 0; }
.wp-first .wp-page, .wp-first { padding-bottom: 40px; }
.wp-first ~ .wp-nav { display: none; }

/* ================================================================ kitchen tablet view */
.wp-tablet { min-height: 100vh; padding: max(12px, env(safe-area-inset-top)) 20px calc(96px + env(safe-area-inset-bottom)); }
.wp-tbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.wp-tbar h1 { flex: 1; font: 600 28px/1.15 var(--serif); margin: 0; }
.wp-tstat { color: var(--muted); font-size: 14px; }
.wp-gear { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; opacity: .6; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.wp-gear svg { width: 20px; height: 20px; }
.wp-gear.holding { background: var(--soft2); opacity: 1; transition: background 2s; }
.wp-tgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.wp-tcol { display: grid; gap: 12px; min-width: 0; }
.wp-tclock b { display: block; font: 600 64px/1 var(--serif); letter-spacing: -.02em; }
.wp-tclock span { font-size: 20px; color: var(--muted); font-weight: 500; }
.wp-tdinner { display: block; font: 600 28px/1.2 var(--serif); margin: 4px 0; }
.wp-tablet .wp-ev { font-size: 17px; } .wp-tablet .wp-ev-time { width: 86px; font-size: 16px; }
.wp-tweek { padding: 4px 16px; }
.wp-tday { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 17px; }
.wp-tday:first-child { border-top: 0; }
.wp-tday span { color: var(--ink); overflow-wrap: anywhere; }
.wp-tpeople { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: start; }
.wp-tperson { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px 12px; }
.wp-tperson h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 6px; padding: 8px 12px; border-radius: 12px; background: var(--pc-bg); color: var(--pc-ink); font: 600 20px/1.2 var(--serif); }
.wp-tperson h3 small { font: 600 15px var(--sans); }
.wp-chore.big { min-height: 72px; font-size: 18px; }
.wp-chore.big .wp-box { width: 44px; height: 44px; }
.wp-chore.big .wp-box svg { width: 26px; height: 26px; }
.wp-chore.big .wp-item-text b { font-size: 18px; }
.wp-tnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.wp-tnav button { min-height: 64px; margin: 0; font-size: 18px; }
.wp-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wp-who > span { width: 100%; font-weight: 600; }
.wp-who .wp-pchip { min-height: 52px; padding: 0 18px; font-size: 17px; border: 2px solid transparent; }
.wp-who .wp-pchip.on { border-color: var(--pc-ink); box-shadow: inset 0 0 0 2px var(--pc-ink); }
body.wp-is-tablet #wp-toast { bottom: calc(110px + env(safe-area-inset-bottom)); font-size: 17px; }
body.wp-is-tablet .wp-sheet { max-width: 720px; }
@media (max-width: 1099px) { .wp-tgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .wp-tchores { grid-column: 1 / -1; } }
@media (max-width: 699px) { .wp-tgrid { grid-template-columns: 1fr; } .wp-tclock b { font-size: 48px; } }
