/* fridge door — the household's fridge door: every feature is a "magnet".
   Layout: phone-first single column (max 560px), sticky top bar, people row (stories), full-bleed photo cards,
   bottom tab bar with a raised centre button. Dark-first, light theme mirrors it. */
:root {
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;   /* spacing scale (layout review): gaps come from these */
  /* shared shape tokens; each look (data-style on <html>) sets its own colours, type and edges below */
  --tap: 48px; --nav-h: 76px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px); --shadow: none; --drop: none;
  --scrim: linear-gradient(180deg, rgba(6,4,16,0) 30%, rgba(6,4,16,.9) 100%);
}

/* ===== neon retro (default): arcade at night. Magenta, violet, cyan, lime with glow; pixel type, square corners ===== */
:root, [data-style="retro"] {
  --bg: #0b0618; --bg-2: #120a26; --card: #160d2e; --card-2: #22134a; --ink: #f6f0ff; --muted: #b1a3d8; --line: #2f1f5e; --edge: #23f0ff;
  --pop: #b6ff2e; --pop-ink: #0b0618; --pop-text: #b6ff2e; --hot: #ff2bd6; --sky: #23f0ff; --grape: #a24bff; --sun: #e7ff4a;
  --ok: #b6ff2e; --warn: #ff9bf0; --glow-a: .75;
  --p-amy: #23f0ff; --p-spouse: #a24bff; --p-older: #ff2bd6; --p-teen: #b6ff2e;
  --font-d: "FD Digits", "Pixelify Sans", "Courier New", monospace; --font-b: "FD Digits", "Pixelify Sans", "Courier New", monospace;   /* plain digits: Pixelify's 5 read as S (Rosa, round 3) */
  --r-xl: 0; --r-l: 0; --r-m: 0; --r-pill: 0; --bw: 2px;
  color-scheme: dark;
}
[data-style="retro"][data-theme="light"] {
  --bg: #f4efff; --bg-2: #fbf8ff; --card: #ffffff; --card-2: #ece3ff; --ink: #1a0b3d; --muted: #574a80; --line: #d9ccf7; --edge: #7a2cf0;
  --pop: #2f7a00; --pop-ink: #ffffff; --pop-text: #2f7a00; --hot: #c4009e; --sky: #007f99; --grape: #6a1fd6; --sun: #566c00;
  --ok: #2f7a00; --warn: #a3007f; --glow-a: .28;
  --p-amy: #00a9c4; --p-spouse: #a77bff; --p-older: #e000b4; --p-teen: #5fb000;
  color-scheme: light;
}

/* ===== minimal: calm and plain. System type, flat cards, thin lines, no glow or pixels ===== */
[data-style="plain"] {
  --bg: #141619; --bg-2: #181b1f; --card: #1d2024; --card-2: #272b30; --ink: #eef0f2; --muted: #a9afb7; --line: #30353b; --edge: #3b4148;
  --pop: #7cc8a2; --pop-ink: #0e1a14; --pop-text: #8fd6b2; --hot: #b9476c; --sky: #8cc4ec; --grape: #b3a4f0; --sun: #e3c46a;
  --ok: #8fd6b2; --warn: #f0a58a; --glow-a: 0;
  --p-amy: #8cc4ec; --p-spouse: #b3a4f0; --p-older: #ee9bb6; --p-teen: #a8d982;
  --font-d: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif; --font-b: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --r-xl: 16px; --r-l: 14px; --r-m: 10px; --r-pill: 999px; --bw: 1px;
  color-scheme: dark;
}
[data-style="plain"][data-theme="light"] {
  --bg: #f5f5f3; --bg-2: #fafaf8; --card: #ffffff; --card-2: #efefec; --ink: #1c1f23; --muted: #585e66; --line: #e1e1dd; --edge: #cfd1ce;
  --pop: #2f7a55; --pop-ink: #ffffff; --pop-text: #2a6e4c; --hot: #b23a5e; --sky: #2a6f9e; --grape: #5f4bb0; --sun: #8a6a00;
  --ok: #2a6e4c; --warn: #a0461a;
  --p-amy: #4f9fd6; --p-spouse: #8f7be0; --p-older: #df7799; --p-teen: #79b54a;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 400 1rem/1.45 var(--font-b); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--font-d); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.fd { max-width: 560px; margin: 0 auto; min-height: 100dvh; padding: 0 max(16px, env(safe-area-inset-left, 0px)) calc(var(--nav-h) + var(--safe-b) + 24px) max(16px, env(safe-area-inset-right, 0px)); }

/* top bar */
.fd-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(var(--safe-t) + 10px) 0 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); margin: 0 -4px; }
.fd-brand { display: flex; align-items: center; gap: 10px; font: 800 1.35rem/1 var(--font-d); }
.fd-logo { width: 30px; height: 30px; border-radius: 9px; background: var(--card-2); position: relative; box-shadow: inset 0 0 0 2px var(--line); }
.fd-logo::before, .fd-logo::after { content: ""; position: absolute; border-radius: 50%; }
.fd-logo::before { width: 12px; height: 12px; background: var(--hot); top: 5px; left: 5px; }
.fd-logo::after { width: 9px; height: 9px; background: var(--pop); bottom: 5px; right: 5px; }
.fd-top-actions { display: flex; gap: 8px; align-items: center; }
.fd-iconbtn { width: var(--tap); height: var(--tap); border-radius: 50%; border: 0; background: var(--card); display: grid; place-items: center; color: var(--ink); }
.fd-iconbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fd-me { height: var(--tap); border-radius: var(--r-pill); border: 0; background: var(--card); display: flex; align-items: center; gap: 8px; padding: 0 14px 0 5px; font-weight: 700; }
.fd-banner { margin: 8px 0; padding: 12px 14px; border-radius: var(--r-m); background: var(--card); border: 1.5px solid var(--warn); font-size: .9rem; }

/* avatars */
.fd-av { --c: var(--pop); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 800 1rem/1 var(--font-d); background: var(--c); color: #0d0f1a; flex: none; }
.fd-av.lg { width: 64px; height: 64px; font-size: 1.6rem; }
.fd-av.sm { width: 26px; height: 26px; font-size: .75rem; }
.fd-people { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: none; }
.fd-people::-webkit-scrollbar { display: none; }
.fd-person { border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: 6px; min-width: 76px; color: var(--ink); }
.fd-ring { padding: 3px; border-radius: 50%; background: conic-gradient(var(--c) 0 100%); }
.fd-ring.away { background: var(--line); }
.fd-ring > .fd-av { box-shadow: 0 0 0 3px var(--bg); }
.fd-person small { font-size: .78rem; color: var(--muted); max-width: 86px; text-align: center; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fd-person b { font-size: .9rem; }

/* tonight hero */
.fd-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--card); min-height: 360px; display: flex; align-items: flex-end; box-shadow: var(--shadow); isolation: isolate; }
.fd-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.fd-hero::after { content: ""; position: absolute; inset: 0; background: var(--scrim); z-index: -1; }
.fd-hero.noimg { background: radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--pop) 35%, var(--card)) 0, var(--card) 60%); }
.fd-hero.noimg::after { display: none; }
.fd-hero-in { padding: 22px; display: grid; gap: 10px; width: 100%; color: #fff; }
.fd-hero.noimg .fd-hero-in { color: var(--ink); }
.fd-eyebrow { font: 700 .78rem/1 var(--font-b); letter-spacing: .12em; text-transform: none; opacity: .85; }
.fd-hero .fd-hero-t { font-size: clamp(2rem, 9vw, 2.9rem); line-height: .98; font-weight: 800; }
.fd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: var(--r-pill); background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .85rem; font-weight: 600; color: inherit; border: 0; }
.fd-hero.noimg .fd-chip, .fd-chip.solid { background: var(--card-2); }
.fd-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--pop)); }
.fd-you { font: 700 1.05rem/1.3 var(--font-b); }

/* sections + magnets */
.fd-sec { display: grid; gap: 12px; margin-top: 26px; }
.fd-sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fd-sec-h h2 { font-size: 1.35rem; font-weight: 800; }
.fd-link { background: none; border: 0; color: var(--pop-text); font-weight: 700; min-height: var(--tap); padding: 0 4px; }
.fd-days { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; margin: 0 -16px; padding-inline: 16px; }
.fd-days::-webkit-scrollbar { display: none; }
.fd-day { scroll-snap-align: start; position: relative; height: 178px; border-radius: var(--r-l); overflow: hidden; background: var(--card); border: 0; padding: 0; text-align: left; color: #fff; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; }
.fd-day img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.fd-day::after { content: ""; position: absolute; inset: 0; background: var(--scrim); z-index: -1; }
.fd-day.noimg { color: var(--ink); background: var(--card); }
.fd-day.noimg::after { display: none; }
.fd-day .d { margin: 10px; align-self: flex-start; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(0,0,0,.45); color: #fff; font: 800 .8rem/1.2 var(--font-d); text-transform: none; letter-spacing: .06em; }
.fd-day.noimg .d { background: var(--card-2); color: var(--ink); }
.fd-day.today { box-shadow: inset 0 0 0 3px var(--pop); }
.fd-day .n { padding: 10px 12px; font: 700 .98rem/1.15 var(--font-d); }
.fd-day.empty .n { color: var(--muted); font-weight: 500; }
.fd-magnets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fd-magnet { --c: var(--pop); border: 0; text-align: left; background: var(--card); border-radius: var(--r-l); padding: 16px; min-height: 120px; display: grid; align-content: space-between; gap: 10px; color: var(--ink); position: relative; overflow: hidden; }
.fd-magnet::before { content: ""; position: absolute; width: 70px; height: 70px; border-radius: 50%; background: var(--c); opacity: .18; right: -18px; top: -18px; }
.fd-magnet b { font: 800 2rem/1 var(--font-d); }
.fd-magnet span { font-weight: 700; }
.fd-magnet small { color: var(--muted); }
.fd-magnet svg { width: 26px; height: 26px; stroke: var(--c); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* week */
.fd-week { display: grid; gap: 12px; }
.fd-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: stretch; background: var(--card); border-radius: var(--r-l); padding: 10px; border: 0; width: 100%; text-align: left; color: var(--ink); }
.fd-row.today { box-shadow: inset 0 0 0 2.5px var(--pop); }
.fd-thumb { width: 76px; height: 76px; border-radius: var(--r-m); object-fit: cover; background: var(--card-2); display: grid; place-items: center; font: 800 1.1rem/1 var(--font-d); text-transform: none; color: var(--muted); }
.fd-row-b { display: grid; gap: 6px; align-content: center; min-width: 0; }
.fd-row-b .t { font: 800 1.08rem/1.15 var(--font-d); }
.fd-row-b .s { color: var(--muted); font-size: .85rem; }
.fd-eat { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-eat > span { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; padding: 2px 9px 2px 3px; border-radius: var(--r-pill); background: var(--card-2); }
.fd-eat .fd-av { width: 22px; height: 22px; font-size: .62rem; }
.fd-eat .alt { box-shadow: inset 0 0 0 1.5px var(--c); }
.fd-warn { font-size: .8rem; color: var(--warn); font-weight: 700; }
.fd-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--card); border-radius: var(--r-l); min-height: 56px; }
.fd-switch { appearance: none; width: 52px; height: 32px; border-radius: 16px; background: var(--card-2); position: relative; flex: none; box-shadow: inset 0 0 0 2px var(--line); transition: background .2s; }
.fd-switch::after { content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); top: 4px; left: 4px; transition: transform .2s; }
.fd-switch:checked { background: var(--pop); box-shadow: none; }
.fd-switch:checked::after { transform: translateX(20px); background: var(--pop-ink); }

/* sheet (picker) */
.fd-sheet-wrap { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; }
.fd-sheet-back { position: absolute; inset: 0; background: rgba(5,6,12,.6); }
.fd-sheet { position: relative; width: 100%; max-width: 560px; margin: 0 auto; max-height: 92dvh; overflow-y: auto; background: var(--bg-2); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 10px max(16px, env(safe-area-inset-left, 0px)) calc(20px + var(--safe-b)) max(16px, env(safe-area-inset-right, 0px)); display: grid; grid-auto-rows: max-content; align-content: start; gap: 14px; overscroll-behavior: contain; }
.fd-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); justify-self: center; }
.fd-sheet-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fd-sheet-h h2 { font-size: 1.5rem; font-weight: 800; }
.fd-seg { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-height: 44px; margin: 0 -16px; padding: 0 16px; }
.fd-seg::-webkit-scrollbar { display: none; }
.fd-seg :is(button, a) { flex: none; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 0; background: var(--card); font-weight: 700; color: var(--ink); }
.fd-seg :is(button[aria-pressed="true"], a[aria-current="page"]) { background: var(--ink); color: var(--bg); }
.fd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fd-pick { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; border: 0; padding: 0; background: var(--card); color: #fff; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.fd-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.fd-pick::after { content: ""; position: absolute; inset: 0; background: var(--scrim); z-index: -1; }
.fd-pick.noimg { color: var(--ink); background: var(--card); }
.fd-pick.noimg::after { display: none; }
.fd-pick .n { padding: 12px; font: 700 1rem/1.15 var(--font-d); }
.fd-pick .m { padding: 0 12px 12px; font-size: .78rem; opacity: .9; display: flex; gap: 6px; flex-wrap: wrap; }
.fd-pick[aria-pressed="true"] { box-shadow: inset 0 0 0 4px var(--pop); }
.fd-pick .tick { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--pop); color: var(--pop-ink); display: grid; place-items: center; }
.fd-pick .flag { position: absolute; top: 10px; left: 10px; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: var(--r-pill); background: var(--sun); color: #1b1300; }
.fd-pick.plan { aspect-ratio: auto; min-height: 92px; background: var(--card); color: var(--ink); }
.fd-pick.plan::after { display: none; }
.fd-pick.plan:not(.noimg) { color: #fff; min-height: 128px; }
.fd-pick.plan:not(.noimg)::after { display: block; }
.fd-field { display: grid; gap: 6px; }
.fd-field label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.fd-input, .fd-select { width: 100%; min-height: var(--tap); border-radius: var(--r-m); border: 2px solid var(--line); background: var(--card); color: var(--ink); padding: 0 14px; font-size: 1rem; }
.fd-input:focus, .fd-select:focus { border-color: var(--pop); outline: none; }

/* buttons */
.fd-btn { min-height: 52px; border-radius: var(--r-pill); border: 0; padding: 0 22px; font: 800 1rem/1 var(--font-d); display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--card-2); color: var(--ink); }
.fd-btn.go { background: var(--pop); color: var(--pop-ink); }
.fd-btn.hot { background: var(--hot); color: #fff; }
.fd-btn.wide { width: 100%; }
.fd-btn.sm { min-height: var(--tap); padding: 0 16px; font-size: .9rem; }
.fd-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* list + shop */
.fd-aisle { background: var(--card); border-radius: var(--r-l); overflow: hidden; }
.fd-aisle h3 { font: 800 .82rem/1 var(--font-b); text-transform: none; letter-spacing: .1em; color: var(--muted); padding: 14px 16px 6px; display: flex; justify-content: space-between; }
.fd-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 16px; min-height: 58px; border-top: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; color: var(--ink); }
.fd-aisle h3 + .fd-item { border-top: 0; }
.fd-item .nm { font-weight: 700; overflow-wrap: anywhere; }
.fd-item .q { color: var(--muted); font-size: .85rem; }
.fd-item .why { color: var(--muted); font-size: .78rem; }
.fd-item .why .hotw { color: var(--hot); font-weight: 700; }
.fd-more { width: var(--tap); height: var(--tap); border-radius: 50%; border: 0; background: var(--card-2); display: grid; place-items: center; color: var(--ink); }
.fd-more svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.fd-acts { display: flex; gap: 8px; padding: 0 16px 12px; flex-wrap: wrap; }
.fd-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.fd-shop { position: fixed; inset: 0; z-index: 40; background: var(--bg); overflow-y: auto; padding: calc(var(--safe-t) + 12px) max(16px, env(safe-area-inset-left, 0px)) calc(24px + var(--safe-b)) max(16px, env(safe-area-inset-right, 0px)); }
.fd-shop-in { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }
.fd-shop-h { display: flex; align-items: center; gap: 14px; position: sticky; top: calc(-12px - var(--safe-t)); padding-top: 8px; padding-bottom: 8px; background: var(--bg); z-index: 2; }
.fd-ringprog { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--pop) calc(var(--p) * 1%), var(--card-2) 0); display: grid; place-items: center; flex: none; }
.fd-ringprog span { width: 50px; height: 50px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font: 800 .95rem/1 var(--font-d); font-variant-numeric: tabular-nums; }
.fd-shop-h h1 { font-size: 1.6rem; font-weight: 800; flex: 1; }
.fd-shop .fd-item { min-height: 72px; grid-template-columns: 40px minmax(0, 1fr); font-size: 1.15rem; }
.fd-box { width: 34px; height: 34px; border-radius: 10px; border: 3px solid var(--muted); display: grid; place-items: center; }
.fd-box svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fd-item[aria-pressed="true"] .fd-box { background: var(--pop); border-color: var(--pop); color: var(--pop-ink); }
.fd-item[aria-pressed="true"] .nm { text-decoration: line-through; color: var(--muted); }

/* prep */
.fd-task { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px; background: var(--card); border-radius: var(--r-l); border: 0; width: 100%; text-align: left; color: var(--ink); }
.fd-task b { font: 800 1.05rem/1.2 var(--font-d); display: block; }
.fd-task small { color: var(--muted); display: block; margin-top: 4px; }
.fd-task[aria-pressed="true"] .fd-box { background: var(--pop); border-color: var(--pop); color: var(--pop-ink); }
.fd-task[aria-pressed="true"] b { text-decoration: line-through; color: var(--muted); }

/* costs */
.fd-cost { background: var(--card); border-radius: var(--r-l); padding: 16px; display: grid; gap: 12px; }
.fd-cost-h { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.fd-cost-h h3 { font-size: 1.15rem; font-weight: 800; }
.fd-save { text-align: right; flex: none; }
.fd-save b { display: block; font: 800 1.7rem/1 var(--font-d); color: var(--pop-text); font-variant-numeric: tabular-nums; }
.fd-save small { color: var(--muted); font-size: .75rem; }
.fd-bars { display: grid; gap: 8px; }
.fd-bar { display: grid; grid-template-columns: minmax(0, 1fr) 4.2rem; gap: 4px 10px; font-size: .85rem; }
.fd-bar .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-bar .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.fd-bar .tr { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: var(--card-2); overflow: hidden; }
.fd-bar .tr i { display: block; height: 100%; border-radius: 5px; background: var(--sky); }
.fd-bar.home .tr i { background: var(--pop); }
.fd-bar.home .l { font-weight: 800; }
.fd-src { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.fd-src a { color: var(--pop-text); }
details.fd-details summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; font-weight: 700; color: var(--pop-text); list-style: none; }
details.fd-details summary::-webkit-details-marker { display: none; }

/* snacks */
.fd-snack-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-snack-chips button { min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 2px solid var(--line); background: var(--card); font-weight: 700; color: var(--ink); }
.fd-snack-chips button[aria-pressed="true"] { background: var(--hot); border-color: var(--hot); color: #fff; }
.fd-req { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--card); border-radius: var(--r-l); padding: 12px 14px; }
.fd-req b { display: block; font: 700 1rem/1.2 var(--font-d); }
.fd-req small { color: var(--muted); }
.fd-state { font-size: .8rem; font-weight: 800; padding: 6px 12px; border-radius: var(--r-pill); background: var(--card-2); white-space: nowrap; }
.fd-state.yes { background: color-mix(in srgb, var(--ok) 22%, var(--card)); color: var(--ok); }
.fd-state.wait { color: var(--warn); }
.fd-yesno { display: flex; gap: 6px; }

/* empty + bottom nav + toast */
.fd-empty { padding: 28px 20px; border-radius: var(--r-l); background: var(--card); text-align: center; display: grid; gap: 8px; justify-items: center; }
.fd-empty b { font: 800 1.2rem/1.2 var(--font-d); }
.fd-empty p { margin: 0; color: var(--muted); max-width: 34ch; }
.fd-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + var(--safe-b)) max(10px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.fd-nav-in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; }
.fd-tab { border: 0; background: none; min-height: 56px; display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--muted); font: 700 .72rem/1 var(--font-b); position: relative; }
.fd-tab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fd-tab[aria-current="page"] { color: var(--ink); }
.fd-tab[aria-current="page"] svg { stroke: var(--pop); stroke-width: 2.2; }
.fd-tab.center span.c { width: 58px; height: 46px; border-radius: 16px; background: var(--pop); color: var(--pop-ink); display: grid; place-items: center; box-shadow: 0 6px 18px color-mix(in srgb, var(--pop) 40%, transparent); }
.fd-tab.center svg, .fd-tab.center[aria-current="page"] svg { stroke: var(--pop-ink); }
.fd-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--hot); color: #fff; font: 800 .7rem/20px var(--font-b); }
.fd-toast { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 18px); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: var(--r-pill); font-weight: 700; max-width: calc(100% - 32px); box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.fd-toast button { background: none; border: 0; color: var(--bg); font-weight: 800; text-decoration: underline; min-height: 36px; }

/* who are you */
.fd-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fd-who button { border: 0; background: var(--card); border-radius: var(--r-l); padding: 18px 12px; display: grid; justify-items: center; gap: 10px; font: 800 1.1rem/1 var(--font-d); color: var(--ink); }
.fd-who button[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--c); }
.fd-muted { color: var(--muted); font-size: .9rem; margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .fd-sheet { animation: fd-up .26s cubic-bezier(.2,.8,.2,1); }
  .fd-hero, .fd-day, .fd-pick, .fd-magnet { transition: transform .15s ease; }
  .fd-hero:active, .fd-day:active, .fd-pick:active, .fd-magnet:active { transform: scale(.98); }
  @keyframes fd-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
}
@media (min-width: 600px) { .fd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- shared: every look ---------- */
h1, h2, h3, .fd-brand, .fd-magnet b, .fd-day .n, .fd-row-b .t, .fd-pick .n, .fd-btn, .fd-task b, .fd-req b, .fd-who button, .fd-sheet-h h2, .fd-shop-h h1, .fd-save b, .fd-tab, .fd-big b { font-family: var(--font-d); }
.fd-input, .fd-select, .fd-textarea { border: var(--bw) solid var(--line); border-radius: var(--r-m); background: var(--card); font-family: var(--font-b); }
.fd-textarea { width: 100%; min-height: 110px; padding: 10px 14px; font-size: 1rem; color: var(--ink); resize: vertical; }
.fd-av { overflow: hidden; color: #0b0618; }
.fd-av img { width: 100%; height: 100%; object-fit: cover; }
.fd-av svg { width: 62%; height: 62%; }
.fd-av svg.px, .fd-glyphs svg.px { width: 72%; height: 72%; fill: currentColor; stroke: none; }
.fd-ring { padding: 0; background: none !important; }
.fd-ring.away > .fd-av { filter: grayscale(1); opacity: .5; }
.fd-magnet::before { display: none; }
.fd-sheet { border-radius: var(--r-xl) var(--r-xl) 0 0; }
.fd-tab[aria-current="page"] { color: var(--pop-text); }
.fd-seg :is(button[aria-pressed="true"], a[aria-current="page"]) { background: var(--pop); color: var(--pop-ink); }
.fd-snack-chips button[aria-pressed="true"] { background: var(--hot); border-color: var(--hot); color: #fff; }
.fd-top { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.fd-nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.fd-toast { background: var(--card); color: var(--ink); border: var(--bw) solid var(--edge); }
.fd-toast button { color: var(--pop-text); }
.fd-looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fd-looks button { min-height: 86px; padding: 10px; border: var(--bw) solid var(--line); border-radius: var(--r-m); background: var(--card-2); color: var(--ink); display: grid; gap: 6px; justify-items: center; align-content: center; font-family: var(--font-d); }
.fd-looks button[aria-pressed="true"] { border-color: var(--pop); box-shadow: 0 0 0 2px var(--pop); }
.fd-looks i { display: flex; gap: 3px; }
.fd-looks i b { width: 14px; height: 14px; display: block; border: 1.5px solid rgba(0,0,0,.4); }

/* ---------- neon retro ---------- */
[data-style="retro"] body { font-size: 1.0625rem; }
[data-style="retro"] { --glow: color-mix(in srgb, var(--edge) calc(var(--glow-a) * 100%), transparent); }
[data-style="retro"] h1, [data-style="retro"] h2, [data-style="retro"] h3, [data-style="retro"] .fd-brand, [data-style="retro"] .fd-btn, [data-style="retro"] .fd-tab, [data-style="retro"] .fd-magnet b, [data-style="retro"] .fd-day .n, [data-style="retro"] .fd-row-b .t, [data-style="retro"] .fd-pick .n, [data-style="retro"] .fd-sheet-h h2, [data-style="retro"] .fd-shop-h h1, [data-style="retro"] .fd-task b, [data-style="retro"] .fd-big b { font-weight: 600; text-transform: none; letter-spacing: .04em; }
[data-style="retro"] h1, [data-style="retro"] h2, [data-style="retro"] .fd-brand b, [data-style="retro"] .fd-sheet-h h2, [data-style="retro"] .fd-shop-h h1 { text-shadow: 0 0 6px color-mix(in srgb, var(--hot) calc(var(--glow-a) * 100%), transparent), 0 0 18px color-mix(in srgb, var(--grape) calc(var(--glow-a) * 80%), transparent); }
[data-style="retro"] .fd-hero, [data-style="retro"] .fd-day, [data-style="retro"] .fd-row, [data-style="retro"] .fd-aisle, [data-style="retro"] .fd-task, [data-style="retro"] .fd-cost, [data-style="retro"] .fd-req, [data-style="retro"] .fd-empty, [data-style="retro"] .fd-toggle, [data-style="retro"] .fd-pick, [data-style="retro"] .fd-who button, [data-style="retro"] .fd-banner, [data-style="retro"] .fd-card {
  border: var(--bw) solid var(--edge); border-radius: 0; box-shadow: 0 0 10px -1px var(--glow), inset 0 0 14px -8px var(--glow); }
[data-style="retro"] .fd-magnet, [data-style="retro"] .fd-big { border: var(--bw) solid var(--c) !important; background: var(--card); color: var(--ink); box-shadow: 0 0 12px -1px color-mix(in srgb, var(--c) calc(var(--glow-a) * 100%), transparent), inset 0 0 16px -8px var(--c); }
[data-style="retro"] .fd-magnet b, [data-style="retro"] .fd-big b { color: var(--c); text-shadow: 0 0 10px color-mix(in srgb, var(--c) calc(var(--glow-a) * 100%), transparent); }
[data-style="retro"] .fd-magnet svg, [data-style="retro"] .fd-big svg { stroke: var(--c); filter: drop-shadow(0 0 4px var(--c)); }
[data-style="retro"] .fd-iconbtn, [data-style="retro"] .fd-me, [data-style="retro"] .fd-more, [data-style="retro"] .fd-btn, [data-style="retro"] .fd-seg :is(button, a), [data-style="retro"] .fd-snack-chips button, [data-style="retro"] .fd-glyphs button, [data-style="retro"] .fd-tab.center span.c, [data-style="retro"] .fd-swatches button, [data-style="retro"] .fd-looks button { border: var(--bw) solid var(--edge); border-radius: 0; box-shadow: 0 0 8px -1px var(--glow); }
[data-style="retro"] .fd-btn.go { background: var(--pop); color: var(--pop-ink); border-color: var(--pop); box-shadow: 0 0 16px color-mix(in srgb, var(--pop) calc(var(--glow-a) * 100%), transparent); }
[data-style="retro"] .fd-btn.go::before { content: "▶"; font-size: .8em; }
[data-style="retro"] .fd-btn.hot { border-color: var(--hot); box-shadow: 0 0 16px color-mix(in srgb, var(--hot) calc(var(--glow-a) * 100%), transparent); }
[data-style="retro"] .fd-btn:active, [data-style="retro"] .fd-iconbtn:active, [data-style="retro"] .fd-magnet:active, [data-style="retro"] .fd-day:active, [data-style="retro"] .fd-pick:active, [data-style="retro"] .fd-row:active, [data-style="retro"] .fd-big:active { transform: translate(2px, 2px); }
[data-style="retro"] .fd-av, [data-style="retro"] .fd-logo, [data-style="retro"] .fd-badge, [data-style="retro"] .fd-state, [data-style="retro"] .fd-chip, [data-style="retro"] .fd-evchips span, [data-style="retro"] .fd-pick .flag, [data-style="retro"] .fd-pick .tick, [data-style="retro"] .fd-box, [data-style="retro"] .fd-switch, [data-style="retro"] .fd-switch::after, [data-style="retro"] .fd-input, [data-style="retro"] .fd-select, [data-style="retro"] .fd-textarea, [data-style="retro"] .fd-ringprog, [data-style="retro"] .fd-ringprog span, [data-style="retro"] .fd-day .d, [data-style="retro"] .fd-sheet, [data-style="retro"] .fd-toast, [data-style="retro"] .fd-bar .tr, [data-style="retro"] .fd-bar .tr i { border-radius: 0 !important; }
[data-style="retro"] .fd-input:focus, [data-style="retro"] .fd-select:focus, [data-style="retro"] .fd-textarea:focus { border-color: var(--hot); box-shadow: 0 0 12px -2px var(--hot); }
[data-style="retro"] .fd-av { border: var(--bw) solid var(--edge); font-family: var(--font-d); font-weight: 600; box-shadow: 0 0 10px -2px color-mix(in srgb, var(--c) calc(var(--glow-a) * 100%), transparent); }
[data-style="retro"] .fd-ring > .fd-av { border-color: var(--c); }
[data-style="retro"] .fd-logo { border: var(--bw) solid var(--edge); background: var(--card); box-shadow: 0 0 8px var(--glow); }
[data-style="retro"] .fd-logo::before, [data-style="retro"] .fd-logo::after { border-radius: 0; }
[data-style="retro"] .fd-hero::before, [data-style="retro"] .fd-day::before, [data-style="retro"] .fd-pick::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.2) 0 2px, transparent 2px 4px); }
[data-style="retro"] .fd-hero.noimg { background: radial-gradient(90% 70% at 15% 10%, color-mix(in srgb, var(--grape) 35%, var(--card)) 0, var(--card) 55%), var(--card); }
[data-style="retro"] .fd-eyebrow::before { content: "> "; }
[data-style="retro"] .fd-chip { border: 2px solid currentColor; background: rgba(0,0,0,.62); }
[data-style="retro"] .fd-hero.noimg .fd-chip, [data-style="retro"] .fd-chip.solid { background: var(--card-2); }
[data-style="retro"] .fd-tab[aria-current="page"] { text-shadow: 0 0 8px var(--pop); }
[data-style="retro"] .fd-tab[aria-current="page"]::after { content: "▲"; position: absolute; bottom: -2px; font-size: .55rem; }
[data-style="retro"] .fd-tab.center span.c { background: var(--hot); color: #fff; border-color: var(--hot); box-shadow: 0 0 16px color-mix(in srgb, var(--hot) calc(var(--glow-a) * 100%), transparent); }
[data-style="retro"] .fd-tab.center svg { stroke: #fff !important; }
[data-style="retro"] .fd-nav { border-top: var(--bw) solid var(--edge); box-shadow: 0 -4px 18px -8px var(--glow); }
[data-style="retro"] .fd-top { border-bottom: var(--bw) solid var(--line); }
[data-style="retro"] .fd-seg :is(button[aria-pressed="true"], a[aria-current="page"]) { box-shadow: 0 0 12px var(--pop); }
[data-style="retro"] .fd-pick[aria-pressed="true"], [data-style="retro"] .fd-row.today, [data-style="retro"] .fd-day.today { border-color: var(--hot); box-shadow: 0 0 14px color-mix(in srgb, var(--hot) calc(var(--glow-a) * 100%), transparent); }
[data-style="retro"] .fd-bar .tr i { background: repeating-linear-gradient(90deg, var(--sky) 0 8px, transparent 8px 10px); }
[data-style="retro"] .fd-bar.home .tr i { background: repeating-linear-gradient(90deg, var(--pop) 0 8px, transparent 8px 10px); }
[data-style="retro"] .fd-evchips span { background: transparent; color: var(--sky); border: 1.5px solid var(--sky); }
[data-style="retro"] details.fd-details summary::before { content: "▸ "; }
[data-style="retro"] details.fd-details[open] summary::before { content: "▾ "; }
[data-style="retro"] .fd-sheet { border-top: var(--bw) solid var(--edge); box-shadow: 0 -6px 24px -6px var(--glow); }

/* ---------- life sim ---------- */

/* calendar + chores + recipes + profile */
.fd-cal { display: grid; gap: 8px; }
.fd-ev { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: 10px; align-items: baseline; }
.fd-ev b { font-family: var(--font-d); color: var(--pop-text); font-variant-numeric: tabular-nums; }
.fd-ev span { overflow-wrap: anywhere; }
.fd-card { background: var(--card); border-radius: var(--r-l); padding: 14px 16px; display: grid; gap: 10px; }
.fd-card h3 { font-size: 1.15rem; display: flex; justify-content: space-between; gap: 10px; }
.fd-card h3.fd-card-h { justify-content: flex-start; align-items: center; }
.fd-evchips { display: flex; flex-wrap: wrap; gap: 4px; }
.fd-evchips span { font-size: .78rem; padding: 1px 6px; background: var(--card-2); color: var(--ink); border: 2px solid var(--sky); border-radius: var(--r-m); }
.fd-chore { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; min-height: 64px; width: 100%; background: none; border: 0; border-top: 2px solid var(--line); text-align: left; color: var(--ink); }
.fd-card h3 + .fd-chore { border-top: 0; }
.fd-chore .nm { font-weight: 800; }
.fd-chore small { color: var(--muted); display: block; }
.fd-chore[aria-pressed="true"] .fd-box { background: var(--pop); border-color: var(--edge); color: var(--pop-ink); }
.fd-chore[aria-pressed="true"] .nm { text-decoration: line-through; color: var(--muted); }
.fd-big { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 14px; background: var(--card); color: var(--ink); text-align: left; border-radius: var(--r-l); }
.fd-big svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fd-big b { font-size: 1.2rem; line-height: 1.1; display: block; }
.fd-big small { font-weight: 700; }
.fd-two { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fd-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.fd-swatches button { width: 44px; height: 44px; border: var(--bw) solid var(--edge); border-radius: var(--r-m); background: var(--c); }
.fd-swatches button[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 3px; }
.fd-glyphs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.fd-glyphs button { aspect-ratio: 1; border-radius: var(--r-m); background: var(--card-2); color: var(--ink); display: grid; place-items: center; font: 600 1.2rem/1 var(--font-d); }
.fd-glyphs button[aria-pressed="true"] { background: var(--c); color: #07081a; }
.fd-glyphs svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fd-inbox { display: grid; gap: 6px; }
.fd-inbox div { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }

/* ---------- people picker, board, stacks ---------- */
.fd-stack { display: grid; gap: 12px; }
.fd-cols { display: grid; gap: 12px; }
.fd-inl { width: 15px; height: 15px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; }
.fd-pickpeople { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-pickpeople button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border-radius: var(--r-pill); border: var(--bw) solid var(--line); background: var(--card-2); color: var(--ink); font-weight: 700; }
.fd-pickpeople button:last-child { padding: 0 16px; }
.fd-pickpeople button[aria-pressed="true"] { border-color: var(--c, var(--pop)); background: color-mix(in srgb, var(--c, var(--pop)) 22%, var(--card)); }
.fd-pickpeople .fd-av { width: 28px; height: 28px; font-size: .7rem; border-width: 2px; }
.fd-notecolors { display: flex; align-items: center; gap: 8px; }
.fd-notecolors button { width: 36px; height: 36px; border-radius: 50%; background: var(--c); border: var(--bw) solid var(--line); }
.fd-notecolors button[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.fd-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fd-note { background: var(--c); color: #120a22; padding: 14px 14px 10px; min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; border-radius: 4px; box-shadow: 0 6px 14px rgba(0,0,0,.25); position: relative; }
.fd-note:nth-child(3n+1) { transform: rotate(-1.4deg); } .fd-note:nth-child(3n+2) { transform: rotate(1.1deg); } .fd-note:nth-child(3n) { transform: rotate(-.4deg); }
.fd-note.pinned::before { content: ""; position: absolute; top: -7px; left: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; background: #e0263b; box-shadow: 0 2px 3px rgba(0,0,0,.4); }
.fd-note p { margin: 0; font-weight: 700; font-size: 1.02rem; line-height: 1.35; overflow-wrap: anywhere; white-space: pre-wrap; }
.fd-note footer { display: flex; align-items: center; gap: 8px; font-size: .78rem; }
.fd-note footer .fd-av { width: 24px; height: 24px; font-size: .62rem; border-width: 1.5px; }
.fd-note footer small { color: #120a22; opacity: .8; }
.fd-note-acts { margin-left: auto; display: flex; gap: 4px; }
.fd-note-acts button { min-width: 36px; min-height: 36px; border: 0; border-radius: 8px; background: rgba(0,0,0,.12); color: #120a22; font-weight: 800; }
[data-style="retro"] .fd-note { border-radius: 0; box-shadow: 0 0 14px -2px color-mix(in srgb, var(--c) 70%, transparent); }
.fd-add { grid-template-columns: minmax(0, 1fr) auto; }

/* ---------- home order on phones (two columns on wide screens below) ---------- */
.fd-home { display: flex; flex-direction: column; }
.fd-home-main, .fd-home-side { display: contents; }
.fd-o1 { order: 1; } .fd-o2 { order: 2; } .fd-o3 { order: 3; } .fd-o4 { order: 4; } .fd-o5 { order: 5; }
.fd-tab-extra { display: none; }

/* ---------- wide screens: laptop, desktop, iPad landscape ---------- */
@media (min-width: 900px) {
  :root { --rail: 104px; }
  .fd { max-width: 1280px; padding-left: calc(var(--rail) + 32px); padding-right: 32px; padding-bottom: 40px; }
  .fd-top { margin: 0; }
  .fd-nav { top: 0; bottom: 0; left: 0; right: auto; width: var(--rail); border-top: 0; border-right: var(--bw, 2px) solid var(--edge); padding: calc(var(--safe-t) + 84px) 8px 16px; overflow-y: auto; }
  .fd-nav-in { display: flex; flex-direction: column; gap: 6px; max-width: none; }
  .fd-tab { min-height: 70px; width: 100%; font-size: .8rem; border-radius: var(--r-m); }
  .fd-tab.center span.c { width: 52px; height: 42px; }
  .fd-tab-extra { display: grid; }
  .fd-tab-extra:first-of-type { margin-top: 10px; }
  .fd-tab[aria-current="page"]::after { content: none !important; }
  .fd-tab[aria-current="page"] { background: color-mix(in srgb, var(--pop) 14%, transparent); }
  .fd-home { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 28px; align-items: start; }
  .fd-home-main, .fd-home-side { display: grid; gap: 20px; align-content: start; }
  .fd-home-side .fd-card { margin-top: 0 !important; }
  .fd-home .fd-sec { margin-top: 0; }
  .fd-hero { min-height: 420px; }
  .fd-days { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
  .fd-day { height: 170px; }
  .fd-magnets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-sec > .fd-aisle { break-inside: avoid; }
  .fd-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .fd-notes { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
  .fd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fd-sheet-wrap { align-items: center; padding: 24px; }
  .fd-sheet { max-width: 720px; border-radius: var(--r-xl); max-height: 88dvh; }
  .fd-shop-in { max-width: 860px; }
  .fd-toast { bottom: 28px; }
  .fd-who { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .fd-week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fd-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fd-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- tester-panel fixes (2026-11-14) ---------- */
[data-style="retro"] body, [data-style="retro"] body * { font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }   /* Pixelify turned "fi"/"fl" into an "A" */
.nm, .fd-row-b .t, .fd-chore > span, .fd-note p, .fd-req b, .fd-pick .n, .fd-hero .fd-hero-t, .fd-sheet-h h2, .fd-ev span, .fd-recipe-list li { overflow-wrap: anywhere; min-width: 0; }
.fd-chore > span, .fd-item > div, .fd-item > span { min-width: 0; }
.fd-me { max-width: 46vw; min-width: 0; }
.fd-me-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 10ch; }
.fd-tab { font-size: .75rem; }
.fd-pickpeople .fd-av { font-size: .75rem; }
.fd-chore { grid-template-columns: 44px minmax(0, 1fr) auto; }
.fd-chore .fd-box { width: 44px; height: 44px; background: none; padding: 0; }
.fd-banner { border: 3px solid var(--warn) !important; border-left-width: 10px !important; box-shadow: none !important; font-weight: 700; }
.fd-today { display: inline-block; margin-right: 8px; padding: 1px 9px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-weight: 800; font-size: .75rem; text-transform: none; letter-spacing: .04em; vertical-align: 1px; }
.fd-day.today .d { background: var(--ink); color: var(--bg); }
.fd-pick .tick { width: auto; height: auto; padding: 3px 10px 3px 6px; gap: 4px; display: flex; align-items: center; background: var(--ink); color: var(--bg); font: 800 .8rem/1 var(--font-b); border-radius: var(--r-pill); }
.fd-pick .tick svg { width: 16px; height: 16px; stroke: currentColor; }
.fd-pick[aria-pressed="true"] { outline: 4px solid var(--ink); outline-offset: -4px; }
.fd-recipe-img { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--r-l); }
.fd-recipe-list { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.fd-link .fd-inl { vertical-align: -3px; }
.fd-skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: var(--r-m); font-weight: 800; }
.fd-skip:focus { top: calc(var(--safe-t) + 8px); }
/* board */
.fd-notecolors { flex-wrap: wrap; }
.fd-notecolors button { width: 44px; height: 44px; }
.fd-notecolors .fd-btn { width: auto; min-width: 104px; padding: 0 18px; flex: none; white-space: nowrap; }
.fd-note footer { flex-wrap: wrap; }
.fd-note footer small { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-note-acts button { min-width: 44px; min-height: 44px; }
@media (max-width: 420px) { .fd-notes { grid-template-columns: minmax(0, 1fr); } }
/* the largest text (about 150% zoom on a phone is a ~240px-wide page) */
@media (max-width: 330px) {
  .fd-brand b { display: none; }
  .fd-tab-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fd-me-name { max-width: 6ch; }
  .fd-top-actions { gap: 6px; }
  .fd-two { grid-template-columns: minmax(0, 1fr) !important; }
  .fd-magnets { grid-template-columns: minmax(0, 1fr); }
  .fd-hero { min-height: 260px; }
}
/* neon retro by day: no scanlines */
[data-style="retro"][data-theme="light"] .fd-hero::before, [data-style="retro"][data-theme="light"] .fd-day::before, [data-style="retro"][data-theme="light"] .fd-pick::before { display: none; }
.fd-cost-h { flex-wrap: wrap; }
.fd-cost-h > div:first-child { min-width: 0; flex: 1 1 160px; }
.fd-save { flex: 0 1 auto; min-width: 0; text-align: left; }
.fd-save small { display: block; overflow-wrap: anywhere; }
.fd-chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fd-note footer { font-size: .8rem; }
.fd-note footer small { font-size: .8rem; }
.fd-note footer .fd-av { width: 28px; height: 28px; font-size: .75rem; }
.fd-toast { overflow-wrap: anywhere; width: max-content; }
.fd-toast span { min-width: 0; }
.fd-pick .n, .fd-hero .fd-hero-t, .fd-sheet-h h2 { overflow-wrap: break-word; hyphens: auto; }
.fd-swatches button { display: grid; place-items: center; color: #0b0618; }
.fd-swatches button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; }

/* minimal look: flat, quiet, one accent */
[data-style="plain"] h1, [data-style="plain"] h2, [data-style="plain"] h3 { letter-spacing: -.015em; font-weight: 700; }
[data-style="plain"] .fd-hero, [data-style="plain"] .fd-day, [data-style="plain"] .fd-row, [data-style="plain"] .fd-aisle, [data-style="plain"] .fd-task, [data-style="plain"] .fd-cost,
[data-style="plain"] .fd-req, [data-style="plain"] .fd-empty, [data-style="plain"] .fd-toggle, [data-style="plain"] .fd-pick, [data-style="plain"] .fd-card, [data-style="plain"] .fd-magnet, [data-style="plain"] .fd-big { border: 1px solid var(--line); box-shadow: none; background-color: var(--card); }
[data-style="plain"] .fd-magnet b, [data-style="plain"] .fd-big b { color: var(--ink); }
[data-style="plain"] .fd-magnet svg, [data-style="plain"] .fd-big svg { stroke: var(--muted); }
[data-style="plain"] .fd-hero.noimg { background: var(--card); }
[data-style="plain"] .fd-tab.center span.c { background: var(--pop); color: var(--pop-ink); box-shadow: none; }
[data-style="plain"] .fd-tab.center svg { stroke: var(--pop-ink) !important; }
[data-style="plain"] .fd-tab[aria-current="page"] { color: var(--ink); }
[data-style="plain"] .fd-nav { border-top: 1px solid var(--line); box-shadow: none; }
[data-style="plain"] .fd-top { border-bottom: 1px solid var(--line); }
[data-style="plain"] .fd-btn, [data-style="plain"] .fd-iconbtn, [data-style="plain"] .fd-me, [data-style="plain"] .fd-snack-chips button { box-shadow: none; }
[data-style="plain"] .fd-snack-chips button { border-width: 1px; }
[data-style="plain"] .fd-snack-chips button[aria-pressed="true"] { background: var(--card-2); border-color: var(--line); color: var(--muted); }

/* add to the list */
.fd-add-h { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 18px 0 10px; color: var(--muted); }
.fd-add-h svg, .fd-snack-chips button svg, .fd-add-main svg, .fd-add-new svg, .fd-star svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fd-snack-chips button { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.fd-add-res { display: grid; gap: 8px; margin-top: 12px; }
.fd-add-hit { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 0; }
.fd-add-main, .fd-add-new { flex: 1; min-width: 0; min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 6px 12px; background: none; border: 0; color: var(--ink); text-align: left; }
.fd-add-new { width: 100%; border: 2px dashed var(--line); border-radius: var(--r-m); }
.fd-add-main span, .fd-add-new span { display: grid; min-width: 0; }
.fd-add-main b, .fd-add-new b { overflow-wrap: anywhere; }
.fd-add-main small, .fd-add-new small { color: var(--muted); }
.fd-star { flex: none; }
.fd-star[aria-pressed="true"] svg { fill: var(--sun); stroke: var(--sun); }
.fd-add-h svg { stroke: var(--sun); }

/* text follows the phone's text size (index.html sets the root size and data-big); at big sizes the phone layout tightens like the largest-text rules */
@media (max-width: 640px) {
  :root[data-big] .fd-brand b { display: none; }
  :root[data-big] .fd-tab-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  :root[data-big] .fd-me-name { max-width: 6ch; }
  :root[data-big] .fd-top-actions { gap: 6px; }
  :root[data-big] .fd-two { grid-template-columns: minmax(0, 1fr) !important; }
  :root[data-big] .fd-magnets { grid-template-columns: minmax(0, 1fr); }
}

/* ===== ab kit looks: bear, sherbet. Kit hues; text colours nudged only to reach 4.5:1 (generated by _scratch/kitchen-app/looks_gen.py) ===== */
/* bear (ab kit): white and charcoal, red lead, Avenir */
[data-style="block"] { --bg: #131a24; --bg-2: #131a24; --card: #1b2330; --card-2: #243041; --ink: #eef3f8; --line: #2e3a4c; --edge: #8593a6; --muted: #a9b3c0; --pop: #66d1c5; --pop-ink: #0b2224; --pop-text: #66d1c5; --hot: #b4486f; --sky: #6cc3cb; --grape: #b8b0d7; --sun: #ffad5c; --ok: #8fd6a0; --warn: #fc8b80; --p-amy: #66d1c5; --p-spouse: #b8b0d7; --p-older: #ff96c2; --p-teen: #ffad5c; --deep: #336269; --deep-ink: #ffffff; --deep-muted: #d5e6e6; --font-d: "Nunito", system-ui, sans-serif; --font-b: "Nunito", system-ui, sans-serif; --font-n: "Outfit", "Nunito", system-ui, sans-serif; --r-xl: 18px; --r-l: 14px; --r-m: 12px; --r-pill: 999px; --bw: 1.5px; --glow-a: 0; color-scheme: dark; }

[data-style="block"][data-theme="light"] { --bg: #f6f9fc; --bg-2: #f6f9fc; --card: #eef2f7; --card-2: #e2e8f0; --ink: #1d2733; --line: #d3dbe5; --edge: #4b5664; --muted: #4f5a67; --pop: #0e7d72; --pop-ink: #ffffff; --pop-text: #0b6e64; --hot: #b03d6c; --sky: #2b6f80; --grape: #6a5f9e; --sun: #9a5716; --ok: #20705f; --warn: #a8473c; --deep: #0b2224; --deep-ink: #ffffff; --deep-muted: #c5d6d7; color-scheme: light; }
/* sherbet (ab kit): cool white, teal, pink and orange, Nunito, soft and round */

[data-style="block"] .fd-hero, [data-style="block"] .fd-day, [data-style="block"] .fd-row, [data-style="block"] .fd-aisle, [data-style="block"] .fd-task, [data-style="block"] .fd-cost, [data-style="block"] .fd-req, [data-style="block"] .fd-empty, [data-style="block"] .fd-toggle, [data-style="block"] .fd-pick, [data-style="block"] .fd-card, [data-style="block"] .fd-magnet, [data-style="block"] .fd-big, [data-style="sherbet"] .fd-hero, [data-style="sherbet"] .fd-day, [data-style="sherbet"] .fd-row, [data-style="sherbet"] .fd-aisle, [data-style="sherbet"] .fd-task, [data-style="sherbet"] .fd-cost, [data-style="sherbet"] .fd-req, [data-style="sherbet"] .fd-empty, [data-style="sherbet"] .fd-toggle, [data-style="sherbet"] .fd-pick, [data-style="sherbet"] .fd-card, [data-style="sherbet"] .fd-magnet, [data-style="sherbet"] .fd-big { border: var(--bw) solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.06); background-color: var(--card); }
[data-style="block"] .fd-hero.noimg, [data-style="sherbet"] .fd-hero.noimg { background: var(--card); }
[data-style="block"] .fd-magnet b, [data-style="block"] .fd-big b, [data-style="sherbet"] .fd-magnet b, [data-style="sherbet"] .fd-big b { color: var(--ink); }
[data-style="block"] .fd-magnet svg, [data-style="block"] .fd-big svg, [data-style="sherbet"] .fd-magnet svg, [data-style="sherbet"] .fd-big svg { stroke: var(--c); }
[data-style="block"] .fd-tab.center span.c, [data-style="sherbet"] .fd-tab.center span.c { background: var(--pop); color: var(--pop-ink); box-shadow: none; }
[data-style="block"] .fd-tab.center svg, [data-style="sherbet"] .fd-tab.center svg { stroke: var(--pop-ink) !important; }
[data-style="block"] .fd-tab[aria-current='page'], [data-style="sherbet"] .fd-tab[aria-current='page'] { color: var(--pop-text); }
[data-style="block"] .fd-nav, [data-style="sherbet"] .fd-nav { border-top: 1px solid var(--line); box-shadow: none; }
[data-style="block"] .fd-top, [data-style="sherbet"] .fd-top { border-bottom: 1px solid var(--line); }
[data-style="block"] .fd-btn, [data-style="block"] .fd-iconbtn, [data-style="block"] .fd-me, [data-style="sherbet"] .fd-btn, [data-style="sherbet"] .fd-iconbtn, [data-style="sherbet"] .fd-me { box-shadow: none; }
[data-style="block"] h1, [data-style="block"] h2 { font-weight: 800; letter-spacing: -.02em; }
[data-style="block"] :is(.fd-hero, .fd-day, .fd-row, .fd-aisle, .fd-task, .fd-cost, .fd-req, .fd-empty, .fd-toggle, .fd-pick, .fd-card, .fd-magnet, .fd-big) { border-color: var(--edge); box-shadow: none; }

/* what do we need? picture tiles */
.fd-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.fd-item-tile { position: relative; border: var(--bw) solid var(--line); border-radius: var(--r-m); background: var(--card); overflow: hidden; }
.fd-item-tile.best { outline: 3px solid var(--pop); outline-offset: 1px; }
.fd-tile-main { display: grid; width: 100%; padding: 0 0 8px; border: 0; background: none; color: var(--ink); text-align: center; gap: 6px; min-height: 140px; align-content: start; }
.fd-tile-main img, .fd-tile-ph { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; display: grid; place-items: center; }
.fd-tile-ph { background: color-mix(in srgb, var(--t) 22%, var(--card)); color: var(--ink); font: 800 2.2rem/1 var(--font-d); }
.fd-tile-n { padding: 0 6px; font-weight: 700; font-size: .9rem; line-height: 1.2; overflow-wrap: anywhere; }
.fd-item-tile.on .fd-tile-main img { opacity: .45; }   /* the letter tile keeps full contrast; the check badge marks it */
.fd-tile-on { position: absolute; top: 8px; left: 8px; width: 34px; height: 34px; border-radius: 50%; background: var(--pop); color: var(--pop-ink); display: grid; place-items: center; }
.fd-tile-on svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3; }
.fd-tile-star { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; color: var(--muted); }
.fd-tile-star svg { width: 22px; height: 22px; fill: color-mix(in srgb, var(--card) 70%, transparent); stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fd-tile-star[aria-pressed="true"] { color: var(--sun); }
.fd-tile-star[aria-pressed="true"] svg { fill: var(--sun); }
.fd-place { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fd-place button { min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 2px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; }
.fd-place button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fd-hint { margin: 10px 0 8px; }
.fd-item.pic { grid-template-columns: auto minmax(0, 1fr) auto; }
.fd-item-img { width: 48px; height: 48px; border-radius: var(--r-m); object-fit: contain; background: #fff; flex: none; }
@media (min-width: 600px) { .fd-tiles { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); } }
.fd-shop .fd-item:has(.fd-item-img) { grid-template-columns: 40px 56px minmax(0, 1fr); }
.fd-shop .fd-item-img { width: 56px; height: 56px; }

/* ===== comic (was "chunky"): a printed comic page. Black ink outlines, flat process colours on newsprint,
   Ben-Day dots kept away from small text, square panels with hard offset shadows, caption boxes and speech bubbles.
   Google Fonts family string (fdFont map key "comic", or the static <link>):
     Bangers&family=Barlow:wght@500;600;700;800
   Bangers = display only (headings, big numbers, brand). Barlow = body and every UI-sized label.
   Contrast for every token pair measured by _scratch/kitchen-app/comic_contrast.py (see comic-look.md). ===== */
[data-style="comic"] {
  --bg: #172048; --bg-2: #1c2654; --card: #26316a; --card-2: #34418a; --ink: #fff7e4; --muted: #d3d8f4; --line: #4a58a0; --edge: #05060c;
  --pop: #ffd21f; --pop-ink: #111111; --pop-text: #ffd21f; --hot: #d61f2c; --sky: #7ad5ff; --grape: #dcbdff; --sun: #ffd21f;
  --ok: #95eba2; --warn: #ffb48c; --glow-a: 0;
  --p-amy: #7ad5ff; --p-spouse: #c9a8ff; --p-older: #ff95ab; --p-teen: #a6e070;
  --font-d: "Bangers", "Impact", "Arial Narrow Bold", sans-serif; --font-b: "Barlow", system-ui, -apple-system, sans-serif;
  --r-xl: 8px; --r-l: 6px; --r-m: 6px; --r-pill: 999px; --bw: 3px;
  --cx-shadow: #05060c; --cx-title: #05060c; --cx-hot-line: #ffa6ab;   /* red as a line/text colour on night panels (--hot stays a fill) */
  color-scheme: dark;
}
[data-style="comic"][data-theme="light"] {
  --bg: #f2e8cf; --bg-2: #f8f1de; --card: #fffbf0; --card-2: #f3e4bb; --ink: #121212; --muted: #4d473e; --line: #d6c79f; --edge: #121212;
  --pop: #ffd21f; --pop-ink: #121212; --pop-text: #1450b0; --hot: #c81b28; --sky: #0d5fb3; --grape: #7429a8; --sun: #845400;
  --ok: #16703a; --warn: #a8301a; --glow-a: 0;
  --p-amy: #7ad5ff; --p-spouse: #c9a8ff; --p-older: #ff95ab; --p-teen: #a6e070;
  --cx-shadow: #121212; --cx-title: #ffd21f; --cx-hot-line: #b81824;
  color-scheme: light;
}

/* ---------- comic: type ---------- */
/* Bangers is one weight: never fake-bold it, give it air */
[data-style="comic"] :is(h1, h2, h3, .fd-brand, .fd-magnet b, .fd-sheet-h h2, .fd-shop-h h1, .fd-save b, .fd-empty b, .fd-thumb, .fd-tile-ph) { font-weight: 400; font-synthesis: none; letter-spacing: .035em; }
[data-style="comic"] :is(h1, h2, .fd-sheet-h h2, .fd-shop-h h1) { text-shadow: 3px 3px 0 var(--cx-title); line-height: 1.02; }
[data-style="comic"] .fd-hero .fd-hero-t { font-size: clamp(2.3rem, 10.5vw, 3.3rem); }
[data-style="comic"] .fd-hero:not(.noimg) h1 { text-shadow: 3px 3px 0 #000; }
/* UI-sized text that the shared rules put in the display face goes back to Barlow */
[data-style="comic"] :is(.fd-day .n, .fd-row-b .t, .fd-pick .n, .fd-btn, .fd-task b, .fd-req b, .fd-who button, .fd-tab, .fd-big b, .fd-day .d, .fd-ringprog span, .fd-av, .fd-ev b, .fd-looks button, .fd-glyphs button) { font-family: var(--font-b); font-weight: 800; }
[data-style="comic"] :is(.fd-btn, .fd-tab, .fd-seg :is(button, a), .fd-day .d) { text-transform: none; letter-spacing: .04em; }

/* ---------- comic: panels (ink outline + hard offset shadow) ---------- */
[data-style="comic"] :is(.fd-hero, .fd-day, .fd-row, .fd-aisle, .fd-task, .fd-cost, .fd-req, .fd-empty, .fd-toggle, .fd-pick, .fd-who button, .fd-card, .fd-magnet, .fd-big, .fd-item-tile) {
  border: var(--bw) solid var(--edge); box-shadow: 5px 5px 0 var(--cx-shadow); }
[data-style="comic"] .fd-hero { border-width: 4px; box-shadow: 7px 7px 0 var(--cx-shadow); }
[data-style="comic"] :is(.fd-pick[aria-pressed="true"], .fd-row.today, .fd-day.today, .fd-who button[aria-pressed="true"]) { border-color: var(--edge); box-shadow: 5px 5px 0 var(--pop-text); }
[data-style="comic"] :is(.fd-magnet, .fd-day, .fd-pick, .fd-row, .fd-big, .fd-task):active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--cx-shadow); }

/* ---------- comic: buttons and chips ---------- */
[data-style="comic"] :is(.fd-iconbtn, .fd-me, .fd-more, .fd-btn, .fd-seg :is(button, a), .fd-snack-chips button, .fd-place button, .fd-glyphs button, .fd-looks button, .fd-pickpeople button, .fd-tab.center span.c) {
  border: var(--bw) solid var(--edge); box-shadow: 3px 3px 0 var(--cx-shadow); }
[data-style="comic"] :is(.fd-iconbtn, .fd-me, .fd-more, .fd-btn, .fd-seg :is(button, a), .fd-snack-chips button, .fd-place button, .fd-glyphs button, .fd-looks button, .fd-pickpeople button):active { transform: translate(3px, 3px); box-shadow: none; }
[data-style="comic"] .fd-btn { border-radius: var(--r-m); letter-spacing: .05em; }
[data-style="comic"] .fd-btn.go { background: var(--pop); color: var(--pop-ink); }
[data-style="comic"] .fd-btn.hot { background: var(--hot); color: #fff; }
[data-style="comic"] .fd-chip { background: var(--card); color: var(--ink); border: 2px solid var(--edge); backdrop-filter: none; -webkit-backdrop-filter: none; font-weight: 700; }
[data-style="comic"] .fd-evchips span { background: var(--card); color: var(--ink); border: 2px solid var(--edge); border-radius: 999px; padding: 1px 9px; }
[data-style="comic"] .fd-state.yes { background: var(--card); color: var(--ok); box-shadow: inset 0 0 0 2px var(--ok); }
[data-style="comic"] .fd-badge { border: 2px solid var(--edge); }
[data-style="comic"] :is(.fd-switch, .fd-box) { border: var(--bw) solid var(--edge); box-shadow: none; }
[data-style="comic"] :is(.fd-input, .fd-select, .fd-textarea) { border-color: var(--edge); }
[data-style="comic"] :is(.fd-input, .fd-select, .fd-textarea):focus { border-color: var(--edge); box-shadow: 3px 3px 0 var(--pop-text); }
[data-style="comic"] :focus-visible { outline: 3px solid var(--pop-text); outline-offset: 3px; }
[data-style="comic"] .fd-pick .flag { background: var(--pop); color: var(--pop-ink); border: 2px solid var(--edge); border-radius: 0; }

/* ---------- comic: caption boxes ---------- */
/* section headings sit in a yellow caption box, like the narration box at the top of a panel */
[data-style="comic"] .fd-sec-h { align-items: center; }
[data-style="comic"] .fd-sec-h h2 { background: var(--pop); color: var(--pop-ink); border: var(--bw) solid var(--edge); box-shadow: 3px 3px 0 var(--cx-shadow); padding: 6px 12px 3px; font-size: 1.45rem; text-shadow: none; }
/* day labels on the week strip: small caption box; today turns red */
[data-style="comic"] .fd-day .d { background: var(--pop); color: var(--pop-ink); border: 2px solid var(--edge); border-radius: 0; }
[data-style="comic"] .fd-day.today .d { background: var(--hot); color: #fff; }

/* ---------- comic: speech bubbles ---------- */
/* tonight's eyebrow ("tonight · mon") is a speech bubble with a tail; solid fill so it reads over photos too */
[data-style="comic"] .fd-hero .fd-eyebrow { position: relative; justify-self: start; margin-bottom: 8px; padding: 6px 12px; background: var(--card); color: var(--ink); border: 2px solid var(--edge); border-radius: 999px; opacity: 1; }
[data-style="comic"] .fd-hero .fd-eyebrow::before, [data-style="comic"] .fd-hero .fd-eyebrow::after { content: ""; position: absolute; left: 18px; clip-path: polygon(0 0, 100% 0, 0 100%); }
[data-style="comic"] .fd-hero .fd-eyebrow::before { bottom: -13px; width: 17px; height: 13px; background: var(--edge); }
[data-style="comic"] .fd-hero .fd-eyebrow::after { left: 20px; bottom: -8px; width: 11px; height: 10px; background: var(--card); }
/* the toast is a speech bubble pointing down at the tab bar */
[data-style="comic"] .fd-toast { width: max-content; border-radius: 22px; border-width: 3px; box-shadow: 4px 4px 0 var(--cx-shadow); }
[data-style="comic"] .fd-toast::before, [data-style="comic"] .fd-toast::after { content: ""; position: absolute; left: 34px; clip-path: polygon(0 0, 100% 0, 0 100%); pointer-events: none; }
[data-style="comic"] .fd-toast::before { bottom: -15px; width: 19px; height: 15px; background: var(--edge); }
[data-style="comic"] .fd-toast::after { left: 37px; bottom: -9px; width: 12px; height: 12px; background: var(--card); }

/* ---------- comic: Ben-Day dots (decoration only: corners, bars; never behind small text) ---------- */
/* tonight, no photo: a yellow splash panel with red dots fading out of the top-right corner */
[data-style="comic"] .fd-hero.noimg { background: var(--pop); }
[data-style="comic"] .fd-hero.noimg .fd-hero-in { color: var(--pop-ink); }
[data-style="comic"] .fd-hero.noimg h1 { text-shadow: none; }
[data-style="comic"] .fd-hero.noimg::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, var(--hot) 2.4px, transparent 2.9px) 0 0 / 11px 11px, radial-gradient(circle, var(--hot) 2.4px, transparent 2.9px) 5.5px 5.5px / 11px 11px;
  -webkit-mask-image: radial-gradient(210px 150px at 100% 0, #000 35%, transparent 100%); mask-image: radial-gradient(210px 150px at 100% 0, #000 35%, transparent 100%); }
[data-style="comic"] .fd-hero.noimg .fd-chip { background: var(--card); color: var(--ink); }
[data-style="comic"] .fd-hero.noimg .fd-you { background: var(--card); color: var(--ink); justify-self: start; padding: 4px 10px; border: 2px solid var(--edge); }
/* home tiles: plain panel, the tile colour shows as a dot patch in the corner and as the icon */
[data-style="comic"] .fd-magnet { background: var(--card); color: var(--ink); }
[data-style="comic"] .fd-magnet::before { display: block; content: ""; position: absolute; top: 0; right: 0; width: 88px; height: 88px; border-radius: 0; opacity: 1; pointer-events: none;
  background: radial-gradient(circle, var(--c) 1.9px, transparent 2.3px) 0 0 / 8px 8px, radial-gradient(circle, var(--c) 1.9px, transparent 2.3px) 4px 4px / 8px 8px;
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000 20%, transparent 72%); mask-image: radial-gradient(circle at 100% 0, #000 20%, transparent 72%); }
[data-style="comic"] .fd-magnet > * { position: relative; }
[data-style="comic"] .fd-magnet b { color: var(--ink); font-size: 2.4rem; }
[data-style="comic"] .fd-magnet svg { stroke: var(--c); stroke-width: 2.4; }
[data-style="comic"] .fd-magnet[style*="#ff8a3d"] { --c: var(--warn); }
[data-style="comic"] .fd-magnet[style*="--hot"] { --c: var(--cx-hot-line); }
[data-style="comic"] .fd-item .why .hotw { color: var(--cx-hot-line); }   /* the recipe tile's fixed orange is too faint on newsprint */
[data-style="comic"] .fd-big { background: var(--card); color: var(--ink); border-left-width: 12px; border-left-color: var(--c); }
[data-style="comic"] .fd-big svg { stroke: var(--c); }
/* progress bars: dotted fill, like a tint screen */
[data-style="comic"] .fd-bar .tr { border: 2px solid var(--edge); border-radius: 0; height: 14px; }
[data-style="comic"] .fd-bar .tr i { border-radius: 0; background: radial-gradient(circle, rgba(0,0,0,.35) 1.2px, transparent 1.6px) 0 0 / 5px 5px, var(--sky); }
[data-style="comic"] .fd-bar.home .tr i { background: radial-gradient(circle, rgba(0,0,0,.3) 1.2px, transparent 1.6px) 0 0 / 5px 5px, var(--pop); }

/* ---------- comic: chrome ---------- */
[data-style="comic"] .fd-top { border-bottom: var(--bw) solid var(--edge); }
[data-style="comic"] .fd-nav { border-top: var(--bw) solid var(--edge); }
[data-style="comic"] .fd-tab[aria-current="page"] { color: var(--pop-text); }
[data-style="comic"] .fd-tab[aria-current="page"] svg { stroke: var(--pop-text); }
[data-style="comic"] .fd-tab.center span.c { background: var(--pop); color: var(--pop-ink); border-radius: var(--r-m); }
[data-style="comic"] .fd-tab.center svg { stroke: var(--pop-ink) !important; }
[data-style="comic"] .fd-sheet { border: var(--bw) solid var(--edge); border-bottom: 0; }
[data-style="comic"] .fd-av { border: var(--bw) solid var(--edge); }
[data-style="comic"] .fd-logo { border: var(--bw) solid var(--edge); border-radius: 4px; background: var(--pop); box-shadow: 2px 2px 0 var(--cx-shadow); }
[data-style="comic"] .fd-logo::before { background: var(--hot); }
[data-style="comic"] .fd-logo::after { background: #1450b0; }
[data-style="comic"] .fd-thumb { color: var(--muted); }
/* fridge notes: inked sticky panels in a 40% tint of the note colour on paper, dark text in both themes */
[data-style="comic"] .fd-note { background: color-mix(in srgb, var(--c) 40%, #fffbf0); color: #120a22; border: var(--bw) solid var(--edge); border-radius: 2px; box-shadow: 4px 4px 0 var(--cx-shadow); }
@media (min-width: 900px) { [data-style="comic"] .fd-nav { border-right: var(--bw) solid var(--edge); } [data-style="comic"] .fd-sheet { border-bottom: var(--bw) solid var(--edge); box-shadow: 8px 8px 0 var(--cx-shadow); } }

/* look picker: each card wears its own look (data-style on the card) */
.fd-sheet .fd-looks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fd-sheet .fd-looks button.fd-look { position: relative; min-height: 104px; padding: 12px 14px; display: grid; grid-template-rows: auto 1fr auto; justify-items: start; align-content: stretch; gap: 6px;
  background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: var(--r-m); box-shadow: none; text-align: left; font-family: var(--font-b); }
.fd-sheet .fd-looks button.fd-look[aria-pressed="true"] { border-color: var(--pop); box-shadow: 0 0 0 2px var(--pop); }
.fd-look-aa { font: 400 1.7rem/1 var(--font-d); color: var(--ink); }
.fd-look-dots { display: flex; gap: 5px; }
.fd-look-dots b { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); }
.fd-look-n { font-weight: 700; font-size: .95rem; color: var(--ink); }
.fd-look-on { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--pop); color: var(--pop-ink); display: grid; place-items: center; }
.fd-look-on svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; }

/* ===== looks3: blueprint, atlas, cinema (UI designer seat, 2026-11-15). Append after the comic block.
   Each look: two token blocks (night = default, day = [data-theme="light"]) + layer rules prefixed [data-style="<name>"].
   Google Fonts family strings (fdFont map in index.html):
     blueprint: IBM+Plex+Mono:wght@500;600&family=IBM+Plex+Sans:wght@400;500;600;700
     atlas:     Alegreya+SC:wght@500;700&family=Alegreya:ital,wght@0,400;0,500;0,700;1,400
     cinema:    Limelight&family=Jost:wght@400;500;600;700
   Contrast for every token pair and every pair the layer creates: _scratch/kitchen-app/looks3_contrast.py (see looks3.md).
   Generic vocabulary only: drafting sheet, old map and chronicle, movie palace and printed programme. ===== */

/* ======================================================================================================
   blueprint: an architect's drafting sheet. Night = cyanotype with white linework; day = tracing vellum,
   graphite ink, red pencil, non-photo-blue grid. Square corners, mono labels, readable sans body.
   ====================================================================================================== */
[data-style="blueprint"] {
  --bg: #0c3163; --bg-2: #0f386f; --card: #12407c; --card-2: #194b8c; --ink: #f3f8ff; --muted: #bdd3f2; --line: #3a69a8; --edge: #dbe8ff;
  --pop: #ffb84d; --pop-ink: #0a1f3d; --pop-text: #ffc670; --hot: #c4382c; --sky: #a6dcff; --grape: #d6c8ff; --sun: #ffd977;
  --ok: #a3f0c4; --warn: #ffbc96; --glow-a: 0;
  --p-amy: #9fd8ff; --p-spouse: #c9b6ff; --p-older: #ffa3b8; --p-teen: #b8e68c;
  --font-d: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace; --font-b: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --r-xl: 0; --r-l: 0; --r-m: 0; --r-pill: 0; --bw: 1.5px;
  --bp-grid: #133d75; --bp-grid-major: #1c4886;   /* page grid lines, solid so they can be measured */
  --bp-hot-line: #ffa99f;                          /* red as a line/text colour (--hot stays a fill under white) */
  --bp-paper: #f6f9fc;                             /* base the fridge notes are tinted on */
  color-scheme: dark;
}
[data-style="blueprint"][data-theme="light"] {
  --bg: #e9eef0; --bg-2: #f1f4f5; --card: #fafbfc; --card-2: #e0e7ea; --ink: #1e2329; --muted: #4c5660; --line: #c3ccd3; --edge: #3b444d;
  --pop: #b8322a; --pop-ink: #ffffff; --pop-text: #a82c24; --hot: #8f2019; --sky: #1c5895; --grape: #5a3d99; --sun: #7a5800;
  --ok: #1f6a40; --warn: #9a4713; --glow-a: 0;
  --p-amy: #8cc8f0; --p-spouse: #bba9f2; --p-older: #f2a0b4; --p-teen: #a9d983;
  --bp-grid: #d9e4ec; --bp-grid-major: #c6d8e6; --bp-hot-line: #a82c24; --bp-paper: #fafbfc;
  color-scheme: light;
}

/* blueprint: the sheet. Faint drafting grid on the page only (24px minor, 120px major); every panel is solid */
[data-style="blueprint"] body { background:
  linear-gradient(var(--bp-grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
  linear-gradient(90deg, var(--bp-grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
  linear-gradient(var(--bp-grid) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px) 0 0 / 24px 24px, var(--bg); }

/* blueprint: type. Plex Mono for headings, labels, numbers and buttons; Plex Sans for meal names and body */
[data-style="blueprint"] :is(h1, h2, h3, .fd-brand, .fd-sheet-h h2, .fd-shop-h h1) { font-weight: 600; letter-spacing: -.01em; }
[data-style="blueprint"] :is(.fd-day .n, .fd-row-b .t, .fd-pick .n, .fd-task b, .fd-req b, .fd-big b, .fd-who button) { font-family: var(--font-b); font-weight: 600; }
[data-style="blueprint"] :is(.fd-btn, .fd-tab, .fd-seg :is(button, a), .fd-place button, .fd-day .d, .fd-eyebrow, .fd-aisle h3, .fd-today, .fd-pick .flag, .fd-pick .tick, .fd-state, .fd-badge) { font-family: var(--font-d); font-weight: 600; text-transform: none; letter-spacing: .06em; }
[data-style="blueprint"] .fd-ev b { font-weight: 600; font-size: .9rem; letter-spacing: -.03em; white-space: nowrap; }   /* times stay on one line in the 6.6rem column */
[data-style="blueprint"] .fd-tab { letter-spacing: .03em; }
[data-style="blueprint"] :is(.fd-magnet b, .fd-save b, .fd-ringprog span, .fd-bar .v) { font-family: var(--font-d); font-weight: 600; font-variant-numeric: tabular-nums slashed-zero; }
[data-style="blueprint"] .fd-hero .fd-hero-t { font-size: clamp(1.8rem, 8vw, 2.5rem); line-height: 1.06; letter-spacing: -.02em; }
/* section headings: drawing labels with a dashed dimension line and end ticks under them */
[data-style="blueprint"] .fd-sec-h h2 { font-size: 1.15rem; text-transform: none; letter-spacing: .07em; }
[data-style="blueprint"] .fd-sec-h h2::after { content: ""; display: block; height: 9px; margin-top: 5px;
  background: linear-gradient(var(--muted), var(--muted)) left center / 1.5px 9px no-repeat, linear-gradient(var(--muted), var(--muted)) right center / 1.5px 9px no-repeat,
  repeating-linear-gradient(90deg, var(--muted) 0 6px, transparent 6px 10px) center / 100% 1px no-repeat; }
[data-style="blueprint"] :is(.fd-card h3, .fd-cost-h h3) { text-transform: none; letter-spacing: .05em; font-size: 1rem; }

/* blueprint: linework panels, no shadows */
[data-style="blueprint"] :is(.fd-hero, .fd-day, .fd-row, .fd-aisle, .fd-task, .fd-cost, .fd-req, .fd-empty, .fd-toggle, .fd-pick, .fd-who button, .fd-card, .fd-magnet, .fd-big, .fd-item-tile) {
  border: var(--bw) solid var(--edge); border-radius: 0; box-shadow: none; }
[data-style="blueprint"] :is(.fd-row.today, .fd-day.today, .fd-who button[aria-pressed="true"]) { border-color: var(--pop); box-shadow: inset 0 0 0 1.5px var(--pop); }
[data-style="blueprint"] :is(.fd-thumb, .fd-recipe-img, .fd-item-img, .fd-box, .fd-tile-on, .fd-switch, .fd-switch::after, .fd-chip, .fd-evchips span, .fd-eat > span, .fd-state, .fd-badge, .fd-today, .fd-pick .tick, .fd-pick .flag, .fd-day .d, .fd-bar .tr, .fd-bar .tr i, .fd-toast, .fd-sheet, .fd-logo, .fd-input, .fd-select, .fd-textarea) { border-radius: 0 !important; }

/* blueprint: tonight is sheet 01. The eyebrow becomes a title-block cell: "SHT 01 | TONIGHT · SUN" on a solid ground */
[data-style="blueprint"] .fd-hero .fd-eyebrow { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 0 10px 0 0; opacity: 1;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--edge); font-size: .75rem; line-height: 1; }
[data-style="blueprint"] .fd-hero .fd-eyebrow::before { content: "SHT 01"; padding: 7px 8px; background: var(--ink); color: var(--card); }
/* no photo: a tighter grid in --line, with a centre mark in the top-right corner, away from the text block */
[data-style="blueprint"] .fd-hero.noimg { background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 16px 16px, var(--card); }
[data-style="blueprint"] .fd-hero.noimg::before { content: ""; position: absolute; top: 18px; right: 18px; width: 72px; height: 72px; z-index: -1; pointer-events: none; border-radius: 50%;
  border: 1.5px solid var(--edge); background: linear-gradient(var(--edge), var(--edge)) center / 1.5px 100% no-repeat, linear-gradient(var(--edge), var(--edge)) center / 100% 1.5px no-repeat; }
[data-style="blueprint"] .fd-hero.noimg :is(.fd-you, .fd-chip) { background: var(--card); color: var(--ink); border: 1.5px solid var(--edge); justify-self: start; }
[data-style="blueprint"] .fd-hero.noimg .fd-you { padding: 4px 10px; }
[data-style="blueprint"] .fd-chip { border: 1.5px solid currentColor; }

/* blueprint: buttons and controls */
[data-style="blueprint"] :is(.fd-iconbtn, .fd-me, .fd-more, .fd-btn, .fd-seg :is(button, a), .fd-snack-chips button, .fd-place button, .fd-glyphs button, .fd-looks button, .fd-pickpeople button) {
  border: var(--bw) solid var(--edge); border-radius: 0; box-shadow: none; }
[data-style="blueprint"] .fd-btn.go { background: var(--pop); color: var(--pop-ink); border-color: var(--pop); }
[data-style="blueprint"] .fd-btn.hot { background: var(--hot); color: #fff; border-color: var(--hot); }
[data-style="blueprint"] :is(.fd-input, .fd-select, .fd-textarea) { border-color: var(--edge); }
[data-style="blueprint"] :is(.fd-input, .fd-select, .fd-textarea):focus { border-color: var(--pop-text); box-shadow: inset 0 0 0 1.5px var(--pop-text); }
[data-style="blueprint"] :focus-visible { outline: 3px solid var(--pop-text); outline-offset: 3px; border-radius: 0; }
[data-style="blueprint"] ::placeholder { color: var(--muted); opacity: 1; }   /* browser grey fails on these cards */
[data-style="blueprint"] .fd-pick .flag { background: var(--pop); color: var(--pop-ink); }
[data-style="blueprint"] .fd-day .d { background: var(--card); color: var(--ink); border: 1.5px solid var(--edge); }
[data-style="blueprint"] .fd-day.today .d { background: var(--ink); color: var(--bg); }
[data-style="blueprint"] .fd-state.yes { background: var(--card); color: var(--ok); box-shadow: inset 0 0 0 1.5px var(--ok); }

/* blueprint: home tiles. Plain panel, a registration corner mark in the tile colour */
[data-style="blueprint"] .fd-magnet { background: var(--card); color: var(--ink); }
[data-style="blueprint"] .fd-magnet::before { display: block; content: ""; top: 8px; right: 8px; width: 16px; height: 16px; border-radius: 0; opacity: 1; background: none;
  border-top: 2px solid var(--c); border-right: 2px solid var(--c); }
[data-style="blueprint"] .fd-magnet b { color: var(--ink); }
[data-style="blueprint"] .fd-magnet svg { stroke: var(--c); stroke-width: 1.6; }
[data-style="blueprint"] .fd-magnet[style*="#ff8a3d"] { --c: var(--warn); }
[data-style="blueprint"] .fd-magnet[style*="--hot"] { --c: var(--bp-hot-line); }
[data-style="blueprint"] .fd-item .why .hotw { color: var(--bp-hot-line); }
[data-style="blueprint"] .fd-big { background: var(--card); color: var(--ink); border-left: 8px solid var(--c); }
[data-style="blueprint"] .fd-big svg { stroke: var(--c); }
/* progress bars: section hatching (no text sits here) */
[data-style="blueprint"] .fd-bar .tr { border: 1.5px solid var(--edge); height: 12px; background: var(--card); }
[data-style="blueprint"] .fd-bar .tr i { background: repeating-linear-gradient(45deg, var(--sky) 0 3px, transparent 3px 6px); }
[data-style="blueprint"] .fd-bar.home .tr i { background: var(--pop); }

/* blueprint: chrome */
[data-style="blueprint"] .fd-top { border-bottom: var(--bw) solid var(--edge); box-shadow: 0 4px 0 -3px var(--line); }
[data-style="blueprint"] .fd-nav { border-top: var(--bw) solid var(--edge); }
[data-style="blueprint"] .fd-tab[aria-current="page"] { color: var(--pop-text); }
[data-style="blueprint"] .fd-tab[aria-current="page"] svg { stroke: var(--pop-text); }
[data-style="blueprint"] .fd-tab.center span.c { background: var(--pop); color: var(--pop-ink); border: var(--bw) solid var(--pop); border-radius: 0; box-shadow: 3px 3px 0 -1.5px var(--edge); }
[data-style="blueprint"] .fd-tab.center svg { stroke: var(--pop-ink) !important; }
[data-style="blueprint"] .fd-sheet { border-top: var(--bw) solid var(--edge); }
[data-style="blueprint"] .fd-toast { border: var(--bw) solid var(--edge); }
[data-style="blueprint"] .fd-av { border: 1.5px solid var(--edge); }
[data-style="blueprint"] .fd-av[style*="card-2"] { color: var(--ink); }   /* the "who?" avatar: dark text on a dark fill otherwise */
[data-style="blueprint"] .fd-logo { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--edge); }
[data-style="blueprint"] .fd-logo::before { background: var(--pop); border-radius: 50%; }
[data-style="blueprint"] .fd-logo::after { background: var(--edge); border-radius: 0; }
/* fridge notes: tracing-paper slips held with drafting tape, not pins */
[data-style="blueprint"] .fd-note { background: color-mix(in srgb, var(--c) 30%, var(--bp-paper)); color: #120a22; border: 1px solid #3b444d; border-radius: 0; box-shadow: 0 3px 8px rgba(0,0,0,.22); }
[data-style="blueprint"] .fd-note.pinned::before { top: -8px; left: calc(50% - 24px); width: 48px; height: 16px; border-radius: 0; background: rgba(250,244,214,.82); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
@media (min-width: 900px) { [data-style="blueprint"] .fd-nav { border-right: var(--bw) solid var(--edge); } [data-style="blueprint"] .fd-sheet { border: var(--bw) solid var(--edge); } }

/* ======================================================================================================
   atlas: an old map and chronicle. Day = parchment, iron-gall ink, wax-seal red, forest green.
   Night = a candlelit study: deep brown-black, cream ink, brass. Double-rule frames, small-caps serif.
   ====================================================================================================== */

/* atlas: page. Night has a candle glow from the top; day darkens toward the page edges like old paper */

/* atlas: type. Alegreya SC (true small caps) for headings and labels, Alegreya for meal names and body */

/* section headings: ✦ ornament, double rule beneath like a chapter head */

/* atlas: double-rule frames, no shadows */

/* atlas: tonight. Eyebrow with ruled ends ("— tonight · sun —"); no photo = a sea chart with rhumb lines from a ✦ compass */

/* atlas: buttons and controls */

   /* browser grey fails on these cards */

/* atlas: home tiles */

/* atlas: chrome. Double rules top and bottom; the centre button is a wax seal */

/* fridge notes: parchment slips, sealed with wax rather than pinned */

/* ======================================================================================================
   cinema: an old movie palace and record sleeve. Night = dark theatre, velvet red, marquee gold.
   Day = a printed film programme: cream paper, black, red and gold. Limelight for titles, Jost tracked caps for labels.
   No film grain anywhere.
   ====================================================================================================== */

/* cinema: type. Limelight is display only and has one weight: no fake bold */

   /* "Sat 9:45 AM" on one line */

/* section headings: title card with a short gold double rule under it */

/* cinema: panels. Hairline frames; the hero has a gold proscenium line inside it */

/* cinema: the tonight eyebrow is a marquee. "NOW SHOWING" over "TONIGHT · SUN" on gold, bulbs in the top and bottom padding */

/* no photo: velvet curtain pleats with a gold stage light; cream text in both themes */

/* cinema: ticket stubs. Home tiles and week-strip days get notched corners and a dashed perforation */

   /* the mask would clip an outside ring */

/* cinema: buttons and controls */

   /* browser grey fails on these cards */

/* cinema: chrome. Gold double rules, like a theatre programme's border; the centre button is a ticket */

/* fridge notes: programme cards on cream, dark text in both themes */

/* shared fixes from the designer pass (every look): readable placeholders; the "who?" avatar takes ink, not the dark avatar text */
::placeholder { color: var(--muted); opacity: 1; }
.fd-av[style*="card-2"] { color: var(--ink); }

/* sweep fixes (2026-11-15, measured in headless Chrome across every look × night/day × six screens) */
.fd-eyebrow { opacity: 1; }
.fd-ring.away > .fd-av { opacity: 1; filter: grayscale(1) contrast(.85); }
[data-theme="light"] .fd-note { background: color-mix(in srgb, var(--c) 30%, var(--card)); color: var(--ink); }
[data-theme="light"] .fd-note footer small, [data-theme="light"] .fd-note-acts button { color: var(--ink); opacity: 1; }
.fd-day .d { background: rgba(0,0,0,.62); }   /* white day label stays 4.5:1+ even on a light card with no photo */
.fd-eat .fd-av, .fd-note footer .fd-av { width: 26px; height: 26px; font-size: .75rem; letter-spacing: -.02em; }   /* initials never under 12px */
/* family panel */
.fd-members { display: grid; gap: 10px; }
.fd-member { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.fd-member-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fd-member-who span { display: grid; min-width: 0; }
.fd-member-who small { color: var(--muted); overflow-wrap: anywhere; }
.fd-member-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fd-member-acts .fd-select { flex: 1 1 140px; min-height: 44px; }
.fd-member-acts .fd-btn { min-height: 44px; }
/* food icons when there's no photo */
.fd-tile-ph svg { width: 46%; height: 46%; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fd-item-ico { display: grid; place-items: center; background: color-mix(in srgb, var(--t) 22%, var(--card)); }
.fd-item-ico svg { width: 60%; height: 60%; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* player card: sensible sizes on wide screens */
.fd-glyphs { grid-template-columns: repeat(auto-fill, minmax(52px, 68px)); justify-content: start; }
.fd-sheet .fd-looks { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 900px) { .fd-sheet { max-width: 640px; } }

/* swipe deck: what's running out? */
.fd-deck { display: grid; gap: 12px; justify-items: center; }
.fd-deck-stack { position: relative; width: min(100%, 340px); }
.fd-swipe { position: relative; display: grid; gap: 6px; padding: 0 0 16px; border: var(--bw) solid var(--line); border-radius: var(--r-xl); background: var(--card); overflow: hidden; touch-action: pan-y; user-select: none; cursor: grab; text-align: center; --yes: 0; --no: 0; }
.fd-swipe:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; }
.fd-swipe.ghost { position: absolute; inset: 0; transform: translateY(8px) scale(.96); opacity: .5; z-index: 0; pointer-events: none; }
.fd-deck-stack > .fd-swipe:not(.ghost) { z-index: 1; }
.fd-swipe-pic { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; }
.fd-swipe-pic img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.fd-swipe-pic .fd-tile-ph { width: 100%; height: 100%; }
.fd-swipe-n { font: 700 1.35rem/1.2 var(--font-d); color: var(--ink); padding: 6px 16px 0; overflow-wrap: anywhere; }
.fd-swipe-why { color: var(--muted); padding: 0 16px; font-size: .9rem; }
.fd-swipe-tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: var(--r-pill); font-weight: 800; font-size: .95rem; pointer-events: none; }
.fd-swipe-tag.yes { left: 14px; background: var(--pop); color: var(--pop-ink); opacity: var(--yes); }
.fd-swipe-tag.no { right: 14px; background: var(--ink); color: var(--bg); opacity: var(--no); }
.fd-deck-acts { display: flex; align-items: center; gap: 10px; width: min(100%, 420px); justify-content: space-between; flex-wrap: wrap; }
.fd-deck-acts .fd-btn { flex: 1 1 130px; min-height: 52px; justify-content: center; }
.fd-deck-n { flex: 0 0 auto; font-size: .9rem; order: -1; width: 100%; text-align: center; }
.fd-browse { margin-top: 16px; }
.fd-browse > summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; }
@media (min-width: 900px) { .fd-deck-stack { width: 360px; } }
.fd-swipe-pic { max-height: 46vh; overflow: hidden; }
.fd-swipe-pic .fd-tile-ph { aspect-ratio: auto; height: 100%; width: 100%; }
.fd-swipe-pic .fd-tile-ph svg { width: 34%; height: 34%; }
.fd-deck-acts .fd-btn { height: auto; min-height: 52px; padding-block: 8px; white-space: normal; line-height: 1.15; text-align: center; }
.fd-sec .fd-deck-acts .fd-btn { height: auto; min-height: 52px; padding-block: 8px; white-space: normal; line-height: 1.15; overflow: visible; }

/* movie night, dice, board games */
.fd-watch { display: grid; gap: 12px; }
.fd-watch-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-watch-filters .fd-seg { flex: 0 1 auto; }
.fd-genres button { min-height: 44px; }
.fd-watch-pick { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; border: var(--bw) solid var(--line); border-radius: var(--r-l); background: var(--card-2); }
.fd-watch-pick img, .fd-watch-pick .fd-watch-ph { width: 120px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-m); background: var(--card); }
.fd-watch-info { display: grid; gap: 4px; min-width: 0; }
.fd-watch-info h3 { font-size: 1.3rem; overflow-wrap: anywhere; }
.fd-watch-info small { color: var(--muted); }
.fd-watch-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.fd-watch-ph { display: grid; place-items: center; color: var(--muted); }
.fd-watch-ph svg, .fd-add-h svg { width: 40%; height: 40%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fd-add-h svg { width: 18px; height: 18px; }
.fd-add-watch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 12px 0; }
.fd-add-watch .fd-input { grid-column: 1 / -1; }
.fd-add-watch .fd-select { min-height: 44px; }
.fd-add-watch .fd-btn { grid-column: 2; grid-row: 2; }
.fd-add-watch #wt-kind { grid-column: 1; }
.fd-add-watch #wt-who { grid-column: 1 / -1; }
.fd-watch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.fd-watch-tile { display: grid; gap: 4px; padding: 0 0 8px; border: var(--bw) solid var(--line); border-radius: var(--r-m); background: var(--card); color: var(--ink); text-align: center; overflow: hidden; }
.fd-watch-tile img, .fd-watch-tile .fd-watch-ph { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--card-2); }
.fd-watch-tile.seen img { opacity: .5; }
.fd-watch-t { font-weight: 700; font-size: .85rem; padding: 0 6px; line-height: 1.2; overflow-wrap: anywhere; }
.fd-watch-tile small { color: var(--muted); font-size: .78rem; }
.fd-watch-sheet { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.fd-watch-sheet img { width: 96px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-m); }
.fd-dice, .fd-games { display: grid; gap: 12px; margin-top: 16px; }
.fd-dice-sides { flex-wrap: wrap; }
.fd-dice-count { display: flex; align-items: center; justify-content: center; gap: 16px; }
.fd-dice-count b { min-width: 7ch; text-align: center; font: 700 1.1rem/1 var(--font-d); }
.fd-dice-count .fd-iconbtn { width: 48px; height: 48px; font-size: 1.4rem; }
.fd-dice-out { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.fd-die { width: 56px; height: 56px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); color: var(--ink); font: 800 1.5rem/1 var(--font-d); }
.fd-dice-out.rolling .fd-die { transform: rotate(8deg); }
.fd-dice-total { font: 800 1.6rem/1 var(--font-d); color: var(--pop-text); }
@media (max-width: 400px) { .fd-watch-pick { grid-template-columns: 96px minmax(0, 1fr); } .fd-watch-pick img, .fd-watch-pick .fd-watch-ph { width: 96px; } }
.fd-watch-filters .fd-seg, .fd-dice .fd-seg, .fd-games .fd-seg, .fd-watch-sheet ~ .fd-field .fd-seg { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
.fd-genre-pick > summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.fd-genre-pick .fd-genres { margin-top: 8px; }
.fd-dice > .fd-add-h, .fd-games > .fd-add-h { justify-content: flex-start; margin: 0; }
.fd-coin { display: grid; justify-items: center; gap: 8px; }
.fd-coin-face { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: #f2c94c; color: #1b1300; font: 800 2.4rem/1 var(--font-d); border: 3px solid color-mix(in srgb, var(--ink) 40%, transparent); }
.fd-coin.rolling .fd-coin-face { transform: scaleX(.3); }
.fd-coin b { font: 700 1.2rem/1 var(--font-d); color: var(--ink); }
.fd-eight { justify-self: center; width: 150px; height: 150px; border-radius: 50%; background: #111; display: grid; place-items: center; box-shadow: inset -10px -14px 0 rgba(255,255,255,.06); }
.fd-eight-win { width: 92px; height: 92px; border-radius: 50%; background: #1d2a6b; color: #fff; display: grid; place-items: center; text-align: center; padding: 8px; font: 700 .8rem/1.15 var(--font-b); overflow-wrap: anywhere; }
.fd-eight.rolling { transform: rotate(-6deg); }

/* coin: a 3D flip (rotateY by whole turns, plus half a turn for tails) */
.fd-coin-stage { justify-self: center; width: 168px; height: 168px; border: 0; background: none; padding: 0; perspective: 700px; cursor: pointer; }
.fd-coin3d { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(var(--turns, 0turn)); }
.fd-coin3d.spinning { transition: transform 1.05s cubic-bezier(.2, .7, .2, 1); animation: fd-coin-hop 1.05s ease-out; }
@keyframes fd-coin-hop { 0% { translate: 0 0; } 40% { translate: 0 -46px; } 100% { translate: 0 0; } }
.fd-coin-side { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, #fff6c8 0, #f5d066 22%, #d9a427 58%, #a8761a 100%);
  box-shadow: inset 0 0 0 6px #c08f22, inset 0 0 0 9px #f3d27a, inset 0 -10px 18px rgba(80, 50, 0, .35), 0 10px 22px rgba(0, 0, 0, .35); }
.fd-coin-side.tails { transform: rotateY(.5turn); background: radial-gradient(circle at 32% 28%, #f4f4f4 0, #d8dbe0 25%, #a9aeb8 60%, #737985 100%);
  box-shadow: inset 0 0 0 6px #8b919c, inset 0 0 0 9px #e3e6ea, inset 0 -10px 18px rgba(20, 25, 35, .35), 0 10px 22px rgba(0, 0, 0, .35); }
.fd-coin-ring { width: 74%; height: 74%; border-radius: 50%; border: 2px dashed rgba(60, 40, 0, .45); display: grid; place-content: center; text-align: center; color: #3b2700; }
.fd-coin-side.tails .fd-coin-ring { border-color: rgba(20, 25, 35, .45); color: #1d2129; }
.fd-coin-ring b { font: 800 3.2rem/1 var(--font-d); text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
.fd-coin-ring small { font: 800 .8rem/1 var(--font-b); letter-spacing: .14em; text-transform: none; }
.fd-ball-say { text-align: center; font-weight: 700; margin: 0; color: var(--ink); }

/* 8-ball: glossy black sphere; the answer floats up on a blue triangle in the window */
.fd-ball { justify-self: center; width: 190px; height: 190px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 26%, #6b6b6b 0, #2a2a2a 18%, #0b0b0b 52%, #000 100%); box-shadow: 0 16px 30px rgba(0, 0, 0, .45), inset -14px -18px 30px rgba(255, 255, 255, .05); }
.fd-ball-eight { width: 46%; height: 46%; border-radius: 50%; background: #fbfbf7; color: #111; display: grid; place-items: center; font: 800 2.6rem/1 Georgia, serif; box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .18); }
.fd-ball-window { width: 58%; height: 58%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #142045 0, #070b1c 75%); display: grid; place-items: center; box-shadow: inset 0 0 0 3px #1b1b1b, inset 0 6px 14px rgba(0, 0, 0, .8); animation: fd-ball-rise .5s ease-out; }
.fd-ball-tri { width: 92%; aspect-ratio: 1.12; clip-path: polygon(50% 100%, 0 12%, 100% 12%); background: linear-gradient(#2b4fd8, #1b36a8); display: grid; place-items: start center; padding-top: 22%; }
.fd-ball-tri span { width: 62%; color: #fff; font: 700 .75rem/1.15 var(--font-b); text-align: center; text-transform: none; letter-spacing: .02em; overflow-wrap: anywhere; }
.fd-ball.shake { animation: fd-ball-shake .8s ease-in-out; }
@keyframes fd-ball-shake { 0%, 100% { transform: translate(0, 0) rotate(0); } 15% { transform: translate(-10px, 4px) rotate(-8deg); } 30% { transform: translate(9px, -6px) rotate(7deg); } 45% { transform: translate(-7px, 5px) rotate(-5deg); } 60% { transform: translate(6px, -3px) rotate(4deg); } 80% { transform: translate(-2px, 1px) rotate(-1deg); } }
@keyframes fd-ball-rise { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fd-coin3d.spinning, .fd-ball.shake, .fd-ball-window { animation: none; transition: none; } }
/* Letterboxd link */
.fd-lb { display: inline-flex; align-items: center; text-decoration: none; }
.fd-coin-ring b, .fd-coin-ring small { font-family: Georgia, "Times New Roman", serif; }
/* who's home, per night */
.fd-homes { display: grid; gap: 10px; }
.fd-home-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.fd-home-days button { min-height: 52px; display: grid; place-items: center; gap: 2px; padding: 4px 0; border: 2px solid var(--line); border-radius: var(--r-m); background: var(--card); color: var(--ink); font-weight: 700; font-size: .85rem; }
.fd-home-days button[aria-pressed="true"] { background: var(--pop); color: var(--pop-ink); border-color: var(--pop); }
.fd-home-days svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; }
/* add a movie or show */
.fd-find { display: grid; gap: 10px; margin-bottom: 14px; }
.fd-find-bar { display: grid; gap: 8px; }
.fd-find-bar .fd-seg { margin: 0; padding: 0; }
.fd-find-res { display: grid; gap: 6px; }
.fd-find-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; gap: 12px; align-items: center; min-height: 64px; padding: 6px 10px 6px 6px; border: var(--bw) solid var(--line); border-radius: var(--r-m); background: var(--card); color: var(--ink); text-align: left; }
.fd-find-row img, .fd-find-row .fd-watch-ph { width: 44px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--card-2); }
.fd-find-row span { display: grid; min-width: 0; }
.fd-find-row b { overflow-wrap: anywhere; }
.fd-find-row small { color: var(--muted); }
.fd-find-row > svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.fd-find-none { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* recipe book + edit */
.fd-recipe-edit { display: grid; gap: 12px; }
.fd-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fd-num .fd-input { min-width: 0; }
.fd-recipe-edit .fd-textarea { min-height: 9em; font-size: 1rem; line-height: 1.45; }
.fd-edit-log { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.fd-edit-log .warn { color: var(--warn); font-weight: 700; }
.fd-banner.warn { border-color: var(--warn); }
.fd-book .fd-pick .fd-thumb svg { width: 40%; height: 40%; fill: none; stroke: currentColor; stroke-width: 1.8; }
/* meal prep + freezer */
.fd-prep-list { display: grid; gap: 8px; margin: 10px 0 14px; }
.fd-prep-job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.fd-prep-job.done { opacity: .75; }
.fd-prep-job .fd-iconbtn svg { width: 18px; height: 18px; }
.fd-freezer { display: grid; gap: 12px; margin-top: 18px; }
.fd-fz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fd-fz-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: var(--bw) solid var(--line); border-radius: var(--r-m); background: var(--card); }
.fd-fz-list li.old { border-color: var(--warn); }
.fd-fz-list li span { min-width: 0; overflow-wrap: anywhere; }
.fd-fz-list small { display: block; color: var(--muted); }
.fd-fz-list li.old small { color: var(--warn); font-weight: 700; }
.fd-fz-add { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 8px; }
.fd-freezer .fd-add-h svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- hub layout (Today · Plan · + · List · Family) ---------- */
.fd-segbar { position: sticky; top: calc(var(--top-h, 64px) + var(--safe-t)); z-index: 5; background: var(--bg); margin: 0 -16px 4px; padding: 8px 16px; flex-wrap: nowrap; }
.fd-segbar a { white-space: nowrap; }
.fd-rail-segs { display: none; }
.fd-myday { display: grid; gap: 4px; }
.fd-myday h3 { margin-bottom: 4px; }
.fd-day-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 16px; gap: 12px; align-items: center; min-height: 56px; padding: 8px 4px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); text-align: left; }
.fd-myday h3 + .fd-day-row { border-top: 0; }
.fd-day-row > svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fd-day-row .fd-chev { width: 14px; height: 14px; transform: scaleX(-1); opacity: .6; }
.fd-day-row span { display: grid; min-width: 0; }
.fd-day-row b { overflow-wrap: anywhere; }
.fd-day-row small { color: var(--muted); }
.fd-day-row.warn > svg:first-child, .fd-day-row.warn b { color: var(--warn); }
.fd-add-opts { display: grid; gap: 8px; }
.fd-add-opt { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 60px; padding: 10px 14px; border: var(--bw) solid var(--line); border-radius: var(--r-m); background: var(--card); color: var(--ink); text-align: left; }
.fd-add-opt > svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fd-add-opt span { display: grid; min-width: 0; }
.fd-add-opt small { color: var(--muted); }
.fd-people-list { display: grid; gap: 8px; margin: 12px 0 16px; }
.fd-person-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 72px; padding: 10px 14px; border: var(--bw) solid var(--line); border-radius: var(--r-m); background: var(--card); color: var(--ink); text-align: left; }
.fd-person-row span { display: grid; min-width: 0; }
.fd-person-row small { color: var(--muted); }
.fd-person-row > svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.fd-tab { position: relative; }
.fd-tab .fd-badge { position: absolute; top: 2px; right: calc(50% - 22px); }
/* large text: keep the labels, let the bar grow */
@media (max-width: 640px) { :root[data-big] .fd-tab-l { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: .7rem; } :root[data-big] .fd-tab svg { width: 20px; height: 20px; } }
@media (max-width: 330px) { .fd-tab-l { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; font-size: .68rem; } }
@media (min-width: 900px) { .fd-rail-segs { display: grid; gap: 4px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); } .fd-segbar { display: none; } }
.fd-badge { font-size: .75rem; min-width: 22px; height: 22px; line-height: 22px; }   /* the count on the list tab: 12px, the floor */
.fd-todo-form { display: grid; gap: 10px; margin-top: 16px; }
.fd-todo-form .fd-seg { margin: 0; padding: 0; }
.fd-dated { margin: 12px 0; }
.fd-todo-groups { margin-top: 4px; }
.fd-cost-line { display: grid; grid-template-columns: 24px minmax(0, 1fr) 14px; gap: 12px; align-items: center; min-height: 56px; padding: 10px 12px; border: var(--bw) solid var(--line); border-radius: var(--r-m); background: var(--card-2); color: var(--ink); text-align: left; }
.fd-cost-line > svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.fd-cost-line .fd-chev { width: 14px; height: 14px; transform: scaleX(-1); }
.fd-cost-line span { display: grid; min-width: 0; }
.fd-cost-line small { color: var(--muted); }

/* submenu icons: segment bars and the wide-screen rail */
.fd-segbar a { display: inline-flex; align-items: center; gap: 7px; }
.fd-segbar a svg, .fd-tab-extra svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) { .fd-tab-extra { grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; } }

/* colour block (replaces bear): deep ink-teal hero, outlined panels, a solid colour band on every tile, Outfit numerals */
[data-style="block"] .fd-hero.noimg { background: var(--deep); --ink: var(--deep-ink); --muted: var(--deep-muted); color: var(--deep-ink); border-color: var(--deep); }
[data-style="block"] .fd-hero.noimg .fd-chip, [data-style="block"] .fd-hero.noimg .fd-btn:not(.go) { background: transparent; color: var(--deep-ink); border: var(--bw) solid color-mix(in srgb, var(--deep-ink) 70%, transparent); }
[data-style="block"] :is(.fd-magnet, .fd-big) { background: var(--card); box-shadow: inset 0 12px 0 var(--c, var(--pop)); padding-top: calc(12px + 10px); }
[data-style="block"] :is(.fd-magnet b, .fd-big b, .fd-day .d) { font-family: var(--font-n); font-weight: 600; }
[data-style="block"] :is(.fd-btn, .fd-seg :is(button, a), .fd-iconbtn, .fd-me, .fd-snack-chips button, .fd-place button) { border: var(--bw) solid var(--edge); border-radius: var(--r-pill); box-shadow: none; }
[data-style="block"] .fd-btn.go, [data-style="block"] .fd-seg :is(button[aria-pressed="true"], a[aria-current="page"]) { background: var(--pop); color: var(--pop-ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
[data-style="block"] .fd-btn.go:active { transform: translate(3px, 3px); box-shadow: none; }
[data-style="block"] .fd-day .d { background: var(--deep); color: var(--deep-ink); }
[data-style="block"] .fd-sec-h h2::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .4em; border-radius: 3px; background: var(--pop); vertical-align: .08em; }

/* food likes and skips (People page) */
.fd-food { display: grid; gap: 14px; margin-top: 16px; }
.fd-food-p { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.fd-food-h { display: flex; align-items: center; gap: 10px; }
.fd-noeat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); font: 700 .9rem/1.2 var(--font-b); border: var(--bw) solid var(--line); background: var(--card-2); color: var(--ink); min-height: 40px; cursor: pointer; }
.fd-noeat svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.fd-food-add { display: flex; gap: 8px; }
.fd-food-add .fd-input { flex: 1; min-width: 0; }
.fd-food-own { display: grid; gap: 4px; }
[data-style="retro"]:not([data-theme="light"]) .fd-badge { color: #1a0024; }

/* class due dates (People page, player card) */
.fd-row-inline { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fd-row-inline svg { width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: var(--ok); stroke-width: 2.4; }
.fd-due { display: grid; gap: 8px; margin-top: 16px; }
.fd-due-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fd-due-list li { display: grid; gap: 2px; padding-left: 12px; border-left: 3px solid var(--pop); }
.fd-due-list small { color: var(--muted); }

/* suggested dinners */
.fd-draft { margin-left: 8px; padding: 1px 8px; border-radius: var(--r-pill); border: 1.5px dashed var(--pop-text); color: var(--pop-text); font-size: .8rem; font-weight: 700; }
.fd-draftbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fd-draftbar > span { display: grid; gap: 2px; }

/* ---------- smaller Today (2026-11-15): tonight takes less of the phone; your day comes before the week and calendar ---------- */
.fd-hero { min-height: 230px; }
.fd-hero .fd-hero-t { font-size: clamp(1.6rem, 7vw, 2.2rem); }
.fd-people .fd-av.lg { width: 52px; height: 52px; font-size: 1.3rem; }
.fd-people { gap: 10px; padding-bottom: 8px; }
/* phone order now comes from the page itself (round 3), so focus and reading follow what you see */
.fd-day { height: 132px; }

/* ---------- proper wide screens: a labelled side rail, masonry list, roomier plan ---------- */
@media (min-width: 900px) {
  :root { --rail: 196px; }
  .fd-nav { padding: calc(var(--safe-t) + 84px) 12px 16px; }
  .fd-nav-in { gap: 4px; }
  .fd-tab, .fd-tab-extra { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; font-size: .95rem; text-align: left; }
  .fd-tab svg { width: 22px; height: 22px; }
  .fd-tab .fd-badge { position: static; margin-left: auto; }
  .fd-tab.center { margin: 8px 0; }
  .fd-tab.center span.c { width: 40px; height: 34px; }
  .fd-tab-extra { min-height: 42px; font-size: .9rem; padding-left: 22px; }
  .fd-tab-extra svg { width: 18px; height: 18px; }
  .fd-hero { min-height: 300px; }
  .fd-day { height: 150px; }
  .fd-home .fd-o3 { order: 3; } .fd-home .fd-o4 { order: 4; } .fd-home .fd-o5 { order: 5; }
  .fd-home-days button { min-height: 44px; }
  .fd-cols { display: block; columns: 2 320px; column-gap: 16px; }
  .fd-cols > * { break-inside: avoid; margin: 0 0 16px; }
  .fd-people-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) { .fd-cols { columns: 3 300px; } }
@media (min-width: 1500px) { .fd { max-width: 1440px; } .fd-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* connections (People page) */
.fd-connect { display: grid; gap: 12px; margin-top: 16px; }
.fd-conn-p { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.fd-conn { display: grid; gap: 10px; }
.fd-conn-h { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.fd-conn-h > svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fd-conn-h > span { display: grid; gap: 2px; min-width: 0; }
.fd-conn-form { display: grid; gap: 10px; padding: 12px; border-radius: var(--r-m); background: var(--card-2); }
.fd-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }

/* ---------- bear (back by request): the ab kit's bear mood. Day mode gets black framing: ink outlines on every panel and control ---------- */

 [data-style="sherbet"] .fd-hero, [data-style="sherbet"] .fd-day, [data-style="sherbet"] .fd-row, [data-style="sherbet"] .fd-aisle, [data-style="sherbet"] .fd-task, [data-style="sherbet"] .fd-cost, [data-style="sherbet"] .fd-req, [data-style="sherbet"] .fd-empty, [data-style="sherbet"] .fd-toggle, [data-style="sherbet"] .fd-pick, [data-style="sherbet"] .fd-card, [data-style="sherbet"] .fd-magnet, [data-style="sherbet"] .fd-big { border: var(--bw) solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.06); background-color: var(--card); }
 [data-style="sherbet"] .fd-hero.noimg { background: var(--card); }
 [data-style="sherbet"] .fd-magnet b, [data-style="sherbet"] .fd-big b { color: var(--ink); }
 [data-style="sherbet"] .fd-magnet svg, [data-style="sherbet"] .fd-big svg { stroke: var(--c); }
 [data-style="sherbet"] .fd-tab.center span.c { background: var(--pop); color: var(--pop-ink); box-shadow: none; }
 [data-style="sherbet"] .fd-tab.center svg { stroke: var(--pop-ink) !important; }
 [data-style="sherbet"] .fd-tab[aria-current='page'] { color: var(--pop-text); }
 [data-style="sherbet"] .fd-nav { border-top: 1px solid var(--line); box-shadow: none; }
 [data-style="sherbet"] .fd-top { border-bottom: 1px solid var(--line); }
 [data-style="sherbet"] .fd-btn, [data-style="sherbet"] .fd-iconbtn, [data-style="sherbet"] .fd-me { box-shadow: none; }

/* ---------- spectrum (colour block + sherbet, merged): the course page's deep-teal hero and colour bands, with a full rainbow ---------- */
[data-style="block"] { --r1: #ff7a7a; --r2: #ffa552; --r3: #ffd84d; --r4: #6fdc8c; --r5: #4fd1c5; --r6: #63a4ff; --r7: #b48cff; --r8: #ff8fd0; }
[data-style="block"][data-theme="light"] { --r1: #e8505b; --r2: #f08a24; --r3: #f2c418; --r4: #2fb36b; --r5: #12a397; --r6: #3577e0; --r7: #8758e0; --r8: #e0559f; }
[data-style="block"] .fd-top { border-bottom: 0; box-shadow: none; background-image: linear-gradient(90deg, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6), var(--r7), var(--r8)); background-size: 100% 5px; background-repeat: no-repeat; background-position: bottom; }
[data-style="block"] .fd-nav { border-top: 0; box-shadow: none; background-image: linear-gradient(90deg, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6), var(--r7), var(--r8)); background-size: 100% 4px; background-repeat: no-repeat; background-position: top; }
@media (min-width: 900px) { [data-style="block"] .fd-nav { background-image: linear-gradient(180deg, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6), var(--r7), var(--r8)); background-size: 4px 100%; background-position: right; border-right: 0; } }
[data-style="block"] :is(.fd-magnet, .fd-big, .fd-row, .fd-aisle, .fd-day, .fd-pick, .fd-due-list li):nth-child(8n+1) { --rb: var(--r1); }
[data-style="block"] :is(.fd-magnet, .fd-big, .fd-row, .fd-aisle, .fd-day, .fd-pick, .fd-due-list li):nth-child(8n+2) { --rb: var(--r2); }
[data-style="block"] :is(.fd-magnet, .fd-big, .fd-row, .fd-aisle, .fd-day, .fd-pick, .fd-due-list li):nth-child(8n+3) { --rb: var(--r3); }
[data-style="block"] :is(.fd-magnet, .fd-big, .fd-row, .fd-aisle, .fd-day, .fd-pick, .fd-due-list li):nth-child(8n+4) { --rb: var(--r4); }
[data-style="block"] :is(.fd-magnet, .fd-big, .fd-row, .fd-aisle, .fd-day, .fd-pick, .fd-due-list li):nth-child(8n+5) { --rb: var(--r5); }
[data-style="block"] :is(.fd-magnet, .fd-big, .fd-row, .fd-aisle, .fd-day, .fd-pick, .fd-due-list li):nth-child(8n+6) { --rb: var(--r6); }
[data-style="block"] :is(.fd-magnet, .fd-big, .fd-row, .fd-aisle, .fd-day, .fd-pick, .fd-due-list li):nth-child(8n+7) { --rb: var(--r7); }
[data-style="block"] :is(.fd-magnet, .fd-big, .fd-row, .fd-aisle, .fd-day, .fd-pick, .fd-due-list li):nth-child(8n) { --rb: var(--r8); }
[data-style="block"] :is(.fd-magnet, .fd-big) { box-shadow: inset 0 12px 0 var(--rb, var(--pop)); }
[data-style="block"] .fd-row { box-shadow: inset 7px 0 0 var(--rb, var(--pop)); padding-left: 16px; }
[data-style="block"] .fd-aisle { box-shadow: inset 0 7px 0 var(--rb, var(--pop)); padding-top: 4px; }
[data-style="block"] .fd-day { border-bottom: 6px solid var(--rb, var(--pop)); }
[data-style="block"] .fd-due-list li { border-left-color: var(--rb, var(--pop)); }
[data-style="block"] .fd-card:not(.fd-hero) { box-shadow: inset 0 4px 0 color-mix(in srgb, var(--r6) 70%, var(--card)); }
[data-style="block"] .fd-sec-h h2::before { background: conic-gradient(var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6), var(--r7), var(--r8), var(--r1)); border-radius: 50%; }
[data-style="block"] .fd-hero.noimg { background: linear-gradient(var(--deep), var(--deep)) padding-box; box-shadow: inset 0 -8px 0 0 var(--r3); }
[data-style="block"] .fd-av { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--c, var(--pop)); }
/* spectrum, louder: tinted panels, rainbow icons and day buttons */
[data-style="block"] :is(.fd-row, .fd-aisle, .fd-magnet, .fd-big) { background-color: color-mix(in srgb, var(--rb, var(--pop)) 11%, var(--card)); }
[data-style="block"] .fd-row { box-shadow: inset 9px 0 0 var(--rb, var(--pop)); }
[data-style="block"] .fd-day-row:nth-of-type(8n+1) > svg:first-child { color: var(--r1); } [data-style="block"] .fd-day-row:nth-of-type(8n+2) > svg:first-child { color: var(--r2); }
[data-style="block"] .fd-day-row:nth-of-type(8n+3) > svg:first-child { color: var(--r4); } [data-style="block"] .fd-day-row:nth-of-type(8n+4) > svg:first-child { color: var(--r5); }
[data-style="block"] .fd-day-row:nth-of-type(8n+5) > svg:first-child { color: var(--r6); } [data-style="block"] .fd-day-row:nth-of-type(8n+6) > svg:first-child { color: var(--r7); }
[data-style="block"] .fd-day-row:nth-of-type(8n+7) > svg:first-child { color: var(--r8); } [data-style="block"] .fd-day-row:nth-of-type(8n) > svg:first-child { color: var(--r3); }
[data-style="block"] .fd-day-row > svg:first-child { stroke-width: 2.4; }
[data-style="block"] .fd-home-days button:nth-child(1) { --rb: var(--r1); } [data-style="block"] .fd-home-days button:nth-child(2) { --rb: var(--r2); } [data-style="block"] .fd-home-days button:nth-child(3) { --rb: var(--r3); }
[data-style="block"] .fd-home-days button:nth-child(4) { --rb: var(--r4); } [data-style="block"] .fd-home-days button:nth-child(5) { --rb: var(--r5); } [data-style="block"] .fd-home-days button:nth-child(6) { --rb: var(--r6); } [data-style="block"] .fd-home-days button:nth-child(7) { --rb: var(--r7); }
[data-style="block"] .fd-home-days button { border-color: var(--rb); border-width: 2.5px; }
[data-style="block"] .fd-home-days button[aria-pressed="true"] { background: var(--rb); border-color: var(--ink); color: #121212; }
[data-style="block"] .fd-segbar a:nth-child(1) svg { color: var(--r1); } [data-style="block"] .fd-segbar a:nth-child(2) svg { color: var(--r5); } [data-style="block"] .fd-segbar a:nth-child(3) svg { color: var(--r6); } [data-style="block"] .fd-segbar a:nth-child(4) svg { color: var(--r7); }
[data-style="block"] .fd-segbar a[aria-current="page"] svg { color: currentColor; }
[data-style="block"] .fd-tab:not(.center)[aria-current="page"] svg { color: var(--r1); }
[data-style="block"] .fd-sec-h h2 { background-image: linear-gradient(90deg, var(--r1), var(--r3), var(--r5), var(--r7)); background-size: 100% 4px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 4px; }

/* bear: black top bar and nav (rail on wide screens), day and night */

/* coin and 8-ball: pixel art (SVG rectangles, so blocky but sharp at any size) with stepped, game-like motion */
.fd-px svg { display: block; width: 100%; height: 100%; }
.fd-coin-stage { position: relative; width: 176px; height: 196px; }
.fd-coin-stage .fd-coin3d { height: 176px; }
.fd-coin-side.fd-px { background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0; }
.fd-coin3d.spinning { transition: transform 1.05s steps(14, end); animation: fd-px-hop 1.05s steps(7, end); }
@keyframes fd-px-hop { 0% { translate: 0 0; } 45% { translate: 0 -52px; } 100% { translate: 0 0; } }
.fd-px-shadow { position: absolute; left: 50%; bottom: 0; width: 96px; height: 10px; translate: -50% 0; background: repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 8px, rgba(0,0,0,.18) 8px 16px); clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%); }
.fd-ball.fd-px { position: relative; width: 208px; height: 208px; border-radius: 0; background: none !important; box-shadow: none !important; }
.fd-ball.fd-px svg { filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, .28)); }
.fd-px-answer { position: absolute; left: 50%; top: 35%; width: 40%; translate: -50% 0; color: #ffffff; font: 600 .78rem/1.1 "Pixelify Sans", ui-monospace, monospace; text-align: center; letter-spacing: .02em; text-shadow: 1px 1px 0 #0b1238; animation: fd-px-fade .5s steps(4, end); overflow-wrap: anywhere; }
@keyframes fd-px-fade { from { opacity: 0; } to { opacity: 1; } }
.fd-ball.fd-px.shake { animation: fd-px-shake .8s steps(8, end); }
@keyframes fd-px-shake { 0%, 100% { transform: translate(0, 0); } 12% { transform: translate(-12px, 4px); } 25% { transform: translate(12px, -4px); } 37% { transform: translate(-10px, -6px); } 50% { transform: translate(10px, 6px); } 62% { transform: translate(-6px, 2px); } 75% { transform: translate(6px, -2px); } 87% { transform: translate(-2px, 0); } }
.fd-dice .fd-ball-say { font-family: "Pixelify Sans", ui-monospace, monospace; font-weight: 600; letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { .fd-ball.fd-px.shake, .fd-px-answer { animation: none; } }

/* clipping fixes (2026-11-15 scan): room for the offset shadows under segment buttons; week tiles that fit their names on wide screens */
.fd-seg { padding-top: 2px; padding-bottom: 6px; }
.fd-watch-filters .fd-seg, .fd-dice .fd-seg, .fd-games .fd-seg, .fd-watch-sheet ~ .fd-field .fd-seg, .fd-find-bar .fd-seg, .fd-todo-form .fd-seg { padding: 2px 6px 6px 0; }
.fd-day { overflow: hidden; }
.fd-day .n { overflow-wrap: anywhere; hyphens: auto; }
@media (min-width: 900px) { .fd-day .n { font-size: .82rem; padding: 8px 8px; } .fd-day .d { margin: 8px; padding: 3px 8px; font-size: .74rem; } }
@media (min-width: 900px) and (max-width: 1100px) { .fd-day .d { font-size: .7rem; } }
.fd-learn { justify-self: start; margin-top: 2px; padding: 1px 8px; border-radius: var(--r-pill); font-size: .78rem; font-weight: 700; border: 1.5px solid var(--ok); color: var(--ok); }
.fd-learn.medium { border-color: var(--sky); color: var(--sky); } .fd-learn.hard { border-color: var(--warn); color: var(--warn); }
.fd-watch-tile img.fd-game-img { object-fit: contain; background: #ffffff; }

/* tester panel round 2 fixes (2026-11-15) */
.fd-toast button { min-height: 44px; padding: 0 10px; white-space: nowrap; }
.fd-btn[disabled] { opacity: 1; background: var(--card-2) !important; color: var(--muted) !important; border-color: var(--line) !important; cursor: default; box-shadow: none !important; }
.fd-conn-entry { display: grid; gap: 8px; }
.fd-conn-entry .fd-input { width: 100%; }
.fd-conn-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.fd-conn-btns .fd-btn { flex: 1 1 120px; }
.fd-conn-err { font-size: .9rem; }
.fd-input[aria-invalid="true"] { border-color: var(--warn) !important; }
/* every text field gets the same visible focus ring as buttons, in every look */
:root .fd-input:focus, :root .fd-select:focus-visible, :root .fd-textarea:focus, :root input:not([type=checkbox]):not([type=radio]):focus, :root textarea:focus { outline: 3px solid var(--pop-text) !important; outline-offset: 2px !important; }
/* special-night and photo tiles: the name sits on its own dark strip, so it reads over any picture */
.fd-pick:not(.noimg) .n, .fd-pick:not(.noimg) .m { position: relative; }
.fd-pick:not(.noimg)::after { background: linear-gradient(to top, rgba(0, 0, 0, .78) 0, rgba(0, 0, 0, .55) 38%, rgba(0, 0, 0, 0) 70%); }
.fd-pick:not(.noimg) :is(.n, .m) { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
/* targets and text sizes the sweep flagged */
.fd-seg :is(button, a), .fd-segbar a, .fd-noeat { min-height: 44px !important; }
@media (max-width: 420px) { .fd-homes { padding-left: 10px; padding-right: 10px; } .fd-home-days { gap: 3px; } }
.fd-skip { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 359px) { .fd-tab-l { font-size: .75rem !important; letter-spacing: 0; } .fd-tab { padding-inline: 2px; } }
@media (min-width: 900px) { .fd-day .d { font-size: .75rem !important; } }
.fd-game-picked { margin: 0; font-weight: 700; }
.fd-watch-tile.picked { outline: 3px solid var(--pop-text); outline-offset: 2px; position: relative; }
.fd-picked-tag { position: absolute; top: 6px; left: 6px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-size: .78rem; font-weight: 800; }
.fd-picked-tag svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; }
[data-style="block"] .fd-home-days button[aria-pressed="true"] { background: color-mix(in srgb, var(--rb) 45%, var(--card)); color: var(--ink); }
.fd-sec-h { flex-wrap: wrap; row-gap: 8px; }
.fd-sec-h > div { flex-wrap: wrap; }
/* large text: sheet titles don't hyphenate, sheet header (title + Done) stays in view, connection rows keep their words */
.fd-sheet-h h2 { hyphens: manual; overflow-wrap: normal; word-break: normal; }
.fd-sheet-h { position: sticky; top: 0; z-index: 3; background: var(--card); padding-block: 8px; }
.fd-conn-h > span b { overflow-wrap: normal; }
@media (max-width: 420px) { :root[style*="font-size"] .fd-conn-h, .fd-conn-h { grid-template-columns: 22px minmax(0, 1fr); } .fd-conn-h > .fd-btn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- Fun: game night ---------- */
.fd-game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fd-game { position: relative; display: grid; gap: 4px; align-content: start; text-align: left; padding: 8px; border-radius: var(--r-m); border: var(--bw) solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; min-height: 44px; }
.fd-game img, .fd-game .fd-watch-ph { width: 100%; aspect-ratio: 1; object-fit: contain; background: #ffffff; border-radius: calc(var(--r-m) - 4px); display: grid; place-items: center; }
.fd-game .fd-watch-ph svg { width: 40px; height: 40px; fill: none; stroke: #6b7280; stroke-width: 1.6; }
.fd-game-t { font: 800 1rem/1.2 var(--font-d); }
.fd-game small { color: var(--muted); }
.fd-game.picked { outline: 3px solid var(--pop-text); outline-offset: 2px; }
.fd-game-cover { width: 100%; max-height: 240px; object-fit: contain; background: #ffffff; border-radius: var(--r-m); }
.fd-score, .fd-timer { display: grid; gap: 12px; margin-top: 16px; }
.fd-score-who { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fd-score-p { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 12px 4px 6px; border-radius: var(--r-pill); border: var(--bw) solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; }
.fd-score-p[aria-pressed="true"] { border-color: var(--pop-text); box-shadow: inset 0 0 0 2px var(--pop-text); }
.fd-score-p svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.fd-score-guest { display: flex; gap: 8px; flex: 1 1 220px; }
.fd-score-guest .fd-input { flex: 1; min-width: 0; }
.fd-score-table { display: grid; gap: 6px; }
.fd-score-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 64px; gap: 10px; align-items: center; }
.fd-score-row.head { font-size: .85rem; color: var(--muted); font-weight: 700; }
.fd-score-total { font: 800 1.3rem/1 var(--font-d); text-align: right; }
.fd-score-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-timer-ring { --p: 100; justify-self: center; width: 180px; height: 180px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--pop) calc(var(--p) * 1%), var(--card-2) 0); }
.fd-timer-ring b { width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink); font: 800 2.4rem/1 var(--font-d); font-variant-numeric: tabular-nums; }
.fd-timer.done .fd-timer-ring b { color: var(--warn); }
.fd-seg-tight button { padding: 0 12px; }
.fd-timer-set { display: flex; align-items: center; justify-content: center; gap: 8px; }
.fd-timer-set .fd-input { width: 4.5em; text-align: center; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) { .fd-timer.done .fd-timer-ring { animation: fd-timer-flash .5s steps(2) 4; } }
@keyframes fd-timer-flash { 50% { background: var(--warn); } }
/* ---------- Fun: movie night extras ---------- */
.fd-vote, .fd-shows { display: grid; gap: 12px; margin-top: 16px; }
.fd-vote-list { display: grid; gap: 8px; }
.fd-vote-row, .fd-show-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.fd-vote-row img, .fd-vote-row .fd-watch-ph, .fd-show-row img, .fd-show-row .fd-watch-ph { width: 48px; height: 68px; object-fit: cover; border-radius: 6px; }
.fd-vote-row > span, .fd-show-info { display: grid; gap: 2px; min-width: 0; }
.fd-vote-row small, .fd-show-info small { color: var(--muted); }
.fd-vote-btns, .fd-show-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.fd-vote-btns .fd-btn[aria-pressed="true"] { background: var(--pop); color: var(--pop-ink); }
.fd-vote-chosen { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-m); background: var(--card-2); }
.fd-vote-chosen img { width: 64px; height: 92px; object-fit: cover; border-radius: 6px; }
.fd-vote-chosen span { display: grid; gap: 2px; } .fd-vote-chosen b { font: 800 1.2rem/1.2 var(--font-d); }
@media (max-width: 420px) { .fd-vote-row, .fd-show-row { grid-template-columns: 48px minmax(0, 1fr); } .fd-vote-btns, .fd-show-acts { grid-column: 1 / -1; justify-content: flex-start; } }
.fd-ratings { display: grid; gap: 8px; }
.fd-rating-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fd-stars { display: inline-flex; align-items: center; gap: 2px; }
.fd-star { width: 44px; height: 44px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.fd-star.on { color: var(--sun); }
.fd-star.half { background: linear-gradient(90deg, var(--sun) 50%, var(--muted) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fd-card-h { display: flex; align-items: center; gap: 8px; margin: 0; }
.fd-card-h svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fd-sheet-h { background: inherit; }
/* did we make it? */
.fd-made { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fd-made-btns { display: flex; gap: 8px; }
/* recipe book rows */
.fd-rrow { display: grid; gap: 8px; margin: 8px 0 4px; }
.fd-rrow h3 { margin: 0; }
.fd-rrow-in { display: grid; grid-auto-flow: column; grid-auto-columns: 140px; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.fd-rcard { display: grid; gap: 4px; align-content: start; text-align: left; padding: 6px; border-radius: var(--r-m); border: var(--bw) solid var(--line); background: var(--card); color: var(--ink); min-height: 44px; }
.fd-rcard img, .fd-rcard .fd-thumb { width: 100%; height: 90px; object-fit: cover; border-radius: calc(var(--r-m) - 4px); }
.fd-rcard b { font-size: .9rem; line-height: 1.2; } .fd-rcard small { color: var(--muted); font-size: .78rem; }
.fd-tired { margin-top: 8px; justify-self: start; }
/* what's at home */
.fd-athome section { display: grid; gap: 6px; margin-top: 10px; }
.fd-athome h3 { margin: 0; font-size: 1rem; }
.fd-athome-list { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-athome-item { padding: 4px 10px; border-radius: var(--r-pill); background: var(--card-2); color: var(--ink); font-size: .9rem; }
.fd-athome-item.low { box-shadow: inset 0 0 0 2px var(--warn); }
.fd-athome-item small { color: var(--warn); font-weight: 700; }
.fd-sub-line { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); padding: 0 0 6px 60px; }
.fd-sub-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; flex: 1 1 100%; }
.fd-sub-form label { grid-column: 1 / -1; font-size: .85rem; font-weight: 700; }
.fd-sub-shop { display: block; font-size: .85rem; color: var(--muted); }
/* home upkeep */
.fd-upkeep section { display: grid; gap: 6px; margin-top: 10px; }
.fd-upkeep h3 { margin: 0; font-size: 1rem; }
.fd-upkeep-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fd-upkeep-row > span { display: grid; gap: 2px; min-width: 0; }
.fd-upkeep-row small { color: var(--muted); }
.fd-upkeep-row.due small { color: var(--warn); font-weight: 700; }
.fd-upkeep-row .fd-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }
/* where to stream */
.fd-svcs { display: flex; flex-wrap: wrap; gap: 4px; }
.fd-svc { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: var(--r-pill); font-size: .78rem; font-weight: 700; border: 1.5px solid var(--line); color: var(--muted); }
.fd-svc.ours { border-color: var(--ok); color: var(--ok); }
.fd-svc svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; }
.fd-services { margin-top: 16px; }
.fd-svc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.fd-svc-row .fd-seg { margin: 0; padding: 0 0 4px; }
/* football */
.fd-nfl-day { display: grid; gap: 4px; margin-top: 12px; }
.fd-nfl-game { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.fd-nfl-game .fd-svcs { grid-column: 2; }
.fd-nfl-when { display: grid; gap: 2px; align-content: start; }
.fd-nfl-when small { color: var(--muted); font-size: .8rem; }
.fd-nfl-prime { color: var(--pop-text) !important; font-weight: 700; }
.fd-nfl-teams { display: grid; gap: 2px; }
.fd-nfl-teams span { display: flex; justify-content: space-between; gap: 8px; }
.fd-nfl-teams small { color: var(--muted); }
.fd-nfl-score { font-variant-numeric: tabular-nums; }
.fd-nfl-game.live .fd-nfl-when b { color: var(--warn); }

/* ---------- round 3: navigation and Food (lead) ---------- */
@font-face { font-family: "FD Digits"; src: local("Roboto"), local("Helvetica Neue"), local("Arial"), local("DejaVu Sans"); unicode-range: U+0030-0039; }
.fd-seg a { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
/* sub-tabs on a phone: every page in view as icon over word, so the current one is never off-screen (all five user seats) */
@media (max-width: 899px) {
  .fd-segbar { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; overflow: visible; }
  .fd-segbar a { flex-direction: column; justify-content: center; gap: 3px; padding: 6px 4px; min-height: 52px !important; white-space: normal; text-align: center; line-height: 1.1; font-size: .8rem; border-radius: var(--r-m); }
  .fd-segbar a span { overflow-wrap: anywhere; hyphens: none; }
}
/* the page's name, matching its tab (Noor), and the two-view switch under it */
.fd-pagetitle { font-size: 1.45rem; margin: 6px 0 0; text-wrap: balance; }
.fd-modes { margin: 4px -16px 2px; }
.fd-modes a { min-height: 44px; padding: 0 16px; }
/* the bottom bar: the page you're on is filled and marked on top; + is outlined so it doesn't read as "here" */
#nav .fd-tab { overflow: visible; }
.fd-badge { white-space: nowrap; min-width: max-content; }
@media (min-width: 900px) { .fd-tab-extra { min-height: 44px; } }
/* Today */
.fd-person b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.fd-hero-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fd-hero-acts .fd-tired { margin-top: 0; }
/* Dinners: Clear asks once, in place */
.fd-btn.warn { background: var(--hot); color: #fff; border-color: var(--hot); }
@media (max-width: 360px) { .fd-home-days { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fd-home-days button { min-height: 44px; } }
/* Shopping: the swap rule shows on the item and opens its editor */
button.fd-sub-line { display: block; background: none; border: 0; text-align: left; width: 100%; min-height: 44px; font: inherit; font-size: .85rem; color: var(--muted); }
@media (max-width: 899px) { .fd-home > * { order: 0 !important; } }

/* ---------- round 3: fun ---------- */
/* picked people: a filled chip with a tick, not just a border */
.fd-score-p[aria-pressed="true"] { background: var(--pop); color: var(--pop-ink); border-color: var(--pop); box-shadow: none; }
.fd-score-p .fd-tick { width: 16px; height: 16px; stroke-width: 3; margin-left: -2px; }
/* movie night */
.fd-spin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fd-spin-row .fd-btn { flex: 1 1 60%; }
.fd-choices { margin-top: 16px; }
.fd-choices summary > span { display: grid; gap: 2px; }
.fd-choices summary small { color: var(--muted); font-weight: 600; font-size: .82rem; }
.fd-choices[open] > :not(summary) { margin-top: 10px; }
.fd-choices .fd-watch-filters { display: grid; gap: 8px; }
.fd-find { margin-top: 16px; display: grid; gap: 10px; }
.fd-find-none { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fd-svc.wait { border-style: dashed; font-weight: 600; }
.fd-where { display: grid; gap: 6px; margin: 8px 0; }
.fd-where h3 { margin: 0; font-size: 1rem; }
.fd-where ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fd-where li { font-size: .92rem; overflow-wrap: anywhere; }
.fd-where li.ours { color: var(--ok); }
.fd-where li svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; vertical-align: -2px; margin-right: 4px; }
/* the Today row for an open movie vote (placed by the Today page) */
.fd-vote-today { display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--tap); padding: 10px 14px; border: var(--bw) solid var(--line); border-radius: var(--r-l); background: var(--card); color: var(--ink); text-align: left; }
.fd-vote-today > span { display: grid; gap: 2px; flex: 1; min-width: 0; }
.fd-vote-today small { color: var(--muted); }
.fd-vote-today svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.fd-vote-today .fd-vote-today-go { transform: rotate(180deg); width: 18px; height: 18px; color: var(--muted); }
/* game night */
.fd-jumpbar { position: sticky; top: calc(var(--top-h, 64px) + var(--safe-t)); z-index: 4; display: flex; gap: 8px; padding: 8px 0; background: var(--bg); }
.fd-jumpbar .fd-btn { flex: 1; }
#score, #timer { scroll-margin-top: calc(var(--top-h, 64px) + var(--safe-t) + 64px); }
@media (max-width: 899px) {   /* under the sticky sub-tab bar (about 72px on a phone) */
  .fd-jumpbar { top: calc(var(--top-h, 64px) + var(--safe-t) + 72px); }
  #score, #timer { scroll-margin-top: calc(var(--top-h, 64px) + var(--safe-t) + 136px); }
}
.fd-games .fd-seg button { min-width: 44px; min-height: 44px; }
.fd-game-near { opacity: .92; }
/* football */
.fd-nfl-team { display: inline-flex; align-items: baseline; gap: 4px; flex-wrap: wrap; min-width: 0; }
.fd-nfl-team small { color: var(--muted); font-size: .82rem; }
.fd-nfl-live { box-shadow: inset 0 0 0 2px var(--warn); }
.fd-nfl-done { margin-top: 16px; }
/* ---------- round 3: family ---------- */
/* to-dos: the add form folds behind one row */
.fd-add-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 16px; padding: 10px 14px; border: var(--bw) dashed var(--line); border-radius: var(--r-m); background: none; color: var(--pop-text); font: inherit; font-weight: 700; text-align: left; }
.fd-add-row svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.fd-todo-form-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fd-todo-form-h h3 { margin: 0; }
.fd-upkeep { margin-top: 12px; }
/* people: four cards, one sheet each */
.fd-person-chev { width: 16px !important; height: 16px !important; transform: scaleX(-1); opacity: .7; }
.fd-person-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 12px; }
.fd-person-top small { flex: 1 1 140px; min-width: 0; }
#sheet .fd-food, #sheet .fd-connect, #sheet .fd-due { margin-top: 12px; }
.fd-house { margin-top: 16px; }
/* player card: what's picked is plain to see */
.fd-pick-field > label b { color: var(--pop-text); }
.fd-sheet .fd-looks button.fd-look[aria-pressed="true"] { border-color: var(--pop); box-shadow: 0 0 0 3px var(--pop); }
.fd-look-tag { justify-self: start; padding: 1px 8px; border-radius: var(--r-pill); background: var(--pop); color: var(--pop-ink); font-size: .75rem; font-weight: 700; }
.fd-swatches button[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 3px; transform: scale(1.08); }
.fd-glyphs.short { grid-template-columns: repeat(6, minmax(0, 68px)); gap: 8px; }
.fd-glyph-more { aspect-ratio: 1; border-radius: var(--r-m); border: var(--bw) dashed var(--line); background: none; color: var(--pop-text); font: 700 .8rem/1.1 var(--font-b); padding: 2px; }
.fd-glyphs:not(.short) .fd-glyph-more { aspect-ratio: auto; min-height: 44px; }
#nav .fd-tab:not(.center)[aria-current="page"] .fd-tab-l { color: var(--ink); }   /* readable on the tinted fill in every look (retro day was 3.86:1) */

/* ---------- layout review (lead): one heading scale, a short header, distinct controls, measured bars, desktop grid ---------- */
.fd-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fd-hero .fd-hero-t { display: block; }
/* headings: the page title is the biggest thing; page sections, then cards, step down */
.fd-pagehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); margin: var(--s2) 0 0; }
.fd-pagetitle { font-size: 1.75rem; line-height: 1.1; margin: 0; }
.fd-pagetitle:focus { outline: none; }
#view .fd-section h2 { font-size: 1.25rem !important; }
#view .fd-section .fd-card h3 { font-size: 1.0625rem; }
/* the switch between a tab's two views: one track with a thumb, unlike tabs (filled) and filters (ticked) */
.fd-modes { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--card-2); }
.fd-modes a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); color: var(--muted); font-weight: 700; text-decoration: none; white-space: nowrap; }
.fd-modes a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .25), inset 0 0 0 1.5px var(--line); }
/* filters and settings: a tick when on */
.fd-seg button[aria-pressed="true"]::before { content: "✓"; margin-right: 6px; font-weight: 800; }
/* sub-tabs on a phone: one 44px row, icon beside the word (four tabs drop the icon on narrow phones) */
@media (max-width: 899px) {
  .fd-segbar { top: calc(var(--top-h, 64px) + var(--safe-t)); margin-bottom: 0; padding-block: 6px; gap: 4px; }
  .fd-segbar a { flex-direction: row !important; gap: 6px !important; min-height: 44px !important; padding: 0 6px !important; font-size: .82rem !important; }
  .fd-segbar a svg { width: 16px; height: 16px; }
}

/* the bottom bar: the page you're on gets a top marker and an ink label, no fill, so it never competes with the + */
#nav .fd-tab:not(.center)[aria-current="page"] { box-shadow: inset 0 3px 0 var(--pop-text); font-weight: 800; }
#nav .fd-tab:not(.center)[aria-current="page"] svg { stroke: var(--pop-text); }
#nav .fd-tab.center .fd-tab-l { margin-top: -4px; }
.fd-badge.quiet { background: var(--card-2) !important; color: var(--muted) !important; }
/* sticky parts sit on measured heights (no more 64/72px guesses), and focused fields scroll clear of the bars */
.fd-top { padding-top: calc(var(--safe-t) + 6px); padding-bottom: 6px; }
html { scroll-padding-top: calc(var(--top-h, 64px) + var(--safe-t) + var(--seg-h, 0px) + 8px); scroll-padding-bottom: calc(var(--navbar-h, 80px) + 8px); }
html .fd-jumpbar { top: calc(var(--top-h, 64px) + var(--safe-t) + var(--seg-h, 0px)); }
@media (max-height: 500px) and (max-width: 899px) { .fd-top, .fd-segbar, html .fd-jumpbar { position: static; } .fd-tab-l { display: none; } }
/* spacing scale */
.fd-sec { gap: var(--s3); margin-top: var(--s5); }
.fd-section .fd-sec:first-of-type { margin-top: var(--s3); }
.fd-card { padding: var(--s4); gap: var(--s3); }
/* Shopping: what you just did, where you're looking */
.fd-added { margin: 0; color: var(--ok); font-weight: 700; }
.fd-ghost { opacity: .6; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.fd-ghost .nm { text-decoration: line-through; }
.fd-tired-ask { margin-top: var(--s2); }
.fd-tired-ask p { margin: 0; }
.fd-addbtn { justify-self: start; align-self: flex-start; }
.fd-day .d .fd-draft { margin-left: 6px; }
/* sheets: one header, an × at the top right; a long title gets two lines, never hyphenated */
.fd-sheet-h { align-items: flex-start; }
.fd-sheet-h h2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; hyphens: none; }
.fd-x { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--r-pill); background: var(--card-2); color: var(--ink); margin: -4px -6px 0 0; }
.fd-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.fd-sheet-foot { position: sticky; bottom: 0; display: flex; gap: var(--s2); justify-content: flex-end; padding: var(--s3) 0 var(--s2); background: inherit; }
/* desktop: a 12-column page up to 1120px, text lines near 68 characters, buttons no wider than 360px; the rail starts with Add and keeps each page under its section */
.fd-grid12 { display: grid; gap: var(--s4); }
@media (min-width: 900px) {
  .fd { max-width: calc(var(--rail) + 1120px + 64px); }
  .fd-grid12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5); align-items: start; }
  .fd-grid12 > * { grid-column: 1 / -1; }
  .fd-grid12 > .fd-span-8 { grid-column: span 8; } .fd-grid12 > .fd-span-7 { grid-column: span 7; } .fd-grid12 > .fd-span-6 { grid-column: span 6; }
  .fd-grid12 > .fd-span-5 { grid-column: span 5; } .fd-grid12 > .fd-span-4 { grid-column: span 4; } .fd-grid12 > .fd-span-3 { grid-column: span 3; }
  #view p { max-width: 68ch; }
  #view .fd-btn.wide { max-width: 360px; }
  .fd-nav-in .fd-tab.center { order: -1; margin: 0 0 12px; }
  .fd-nav-in .fd-tab.center span.c { width: 100%; }
  .fd-rail-segs { display: grid; gap: 2px; margin: 0 0 6px; padding: 0; border: 0; }
  .fd-tab-extra { text-decoration: none; padding-left: 40px !important; min-height: 44px; }
  .fd-tab-extra:first-of-type { margin-top: 0; }
}

/* ---------- layout review: fun + family ---------- */
/* a column inside .fd-grid12 stacks its cards */
.fd-col { display: grid; gap: var(--s3); align-content: start; min-width: 0; }
/* jump bars (Movie night, Game night): anchors land clear of the sticky bar */
#spin, #vote, #shows, #our-list, #shelf { scroll-margin-top: calc(var(--s6) + var(--s5)); }
.fd-jumpbar { gap: var(--s2); }
.fd-jumpbar .fd-btn { min-width: 0; padding-inline: var(--s2); }
.fd-games .fd-choices { margin-top: 0; }
.fd-gamenight .fd-timer .fd-seg { flex-wrap: wrap; }
/* game night: the 8/4 split needs room for the score pad, so between 900 and 1099px the shelf and the pad stack */
@media (min-width: 900px) and (max-width: 1099px) { .fd-gamenight .fd-grid12 > :is(.fd-span-8, .fd-span-4) { grid-column: 1 / -1; } }
/* vote: your own progress */
.fd-vote-me { display: flex; align-items: center; gap: var(--s2); margin: 0; font-weight: 700; }
.fd-vote-me.done { color: var(--pop-text); }
.fd-vote-me svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; }
/* "You & this phone": a joined tab track inside the sheet */
.fd-me-tabs { display: flex; gap: 2px; margin: var(--s3) 0 var(--s4); padding: 3px; border-radius: var(--r-pill); background: var(--card-2); }
.fd-me-tabs button { flex: 1 1 auto; min-height: 44px; padding: 0 var(--s2); border: 0; border-radius: var(--r-pill); background: none; color: var(--muted); font: 700 .82rem/1.1 var(--font-b); white-space: nowrap; }
@media (max-width: 359px) { .fd-me-tabs button { padding: 0 var(--s1); font-size: .74rem; } }
.fd-me-tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .25), inset 0 0 0 1.5px var(--line); }
.fd-me-panel { display: grid; gap: var(--s4); min-width: 0; }
.fd-me-panel > .fd-card { margin-top: 0 !important; }
.fd-me-id { display: flex; align-items: center; gap: var(--s4); }
.fd-me-id p { margin: var(--s1) 0 0; overflow-wrap: anywhere; }
/* people */
.fd-people-list.fd-grid12 { gap: var(--s2); }
@media (min-width: 900px) {
  .fd-people-list.fd-grid12 { gap: var(--s3); }
  .fd-people-list .fd-person-row { min-height: 96px; }
  .fd-todo-grid .fd-cols { grid-template-columns: minmax(0, 1fr); }   /* each person's tasks stack inside the left half */
  .fd-jumpbar .fd-btn { flex: 0 1 auto; }
}
@media (max-width: 430px) { .fd-modes a { padding: 0 11px; font-size: .9rem; } }
@media (max-width: 430px) { .fd-segbar.fd-n4 a { font-size: .76rem !important; padding: 0 2px !important; } .fd-segbar.fd-n4 a svg { display: none !important; } .fd-segbar.fd-n4 a span { white-space: normal; line-height: 1.05; letter-spacing: 0 !important; text-align: center; overflow-wrap: normal; } }
.fd-src a { display: inline-block; padding: 14px 6px; margin: -14px -2px; }   /* inline source links: a 44px hit area without changing the line */

/* ===== re-test (lead): narrow and large-text layouts, Clear question, suggested marks ===== */
/* sub-page links never break a word mid-way; four links go 2×2 when the screen (or large text) leaves under 85px each */
.fd-segbar a span { overflow-wrap: normal !important; word-break: normal !important; hyphens: manual; }
@media (max-width: 360px) { .fd-segbar.fd-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fd-segbar.fd-n4 a { font-size: .82rem !important; padding: 0 6px !important; } }
@media (max-width: 300px) {
  .fd-segbar a { font-size: .75rem !important; padding: 0 3px !important; gap: 4px !important; }
  .fd-modes a { min-width: 48px; }
  #fz-qty { min-width: 48px; }
  .fd-segbar a svg { display: none !important; }
  #nav .fd-tab { padding-inline: 2px !important; min-width: 0; }
  #nav .fd-nav-in { gap: 0 !important; padding-inline: 4px !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  #nav .fd-tab-l { font-size: .75rem !important; letter-spacing: 0 !important; }
  #nav .fd-tab { width: 100%; margin-inline: 0 !important; min-width: 44px; }
}
/* 44px targets the sweep caught: the home-night days, inline source links, the services tag size */
@media (max-width: 420px) { .fd-homes { padding-inline: 8px !important; } .fd-home-days { gap: 2px !important; } }
.fd-src a { min-width: 44px; text-align: center; }
.fd-svc .fd-svc-tag { font-size: .75rem !important; }
/* the view switch sits inside the page gutter and shrinks rather than running off the edge */
.fd-modes { margin: 4px 0 2px !important; max-width: 100%; }
.fd-modes a { flex: 1 1 auto; min-width: 0; justify-content: center; }
@media (max-width: 360px) { .fd-modes a { padding: 0 8px !important; font-size: .84rem; } }
/* Clear asks in its own line, so the week arrows never move under a thumb */
.fd-clear-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); margin: var(--s2) 0; border: 2px solid var(--warn, var(--pop-text)); }
.fd-row-btns { display: flex; gap: var(--s2); flex-wrap: wrap; }
/* suggested, not kept: a dashed edge on the week strip card and the tag on its own line, so it's never cut */
.fd-day:has(.fd-draft) { outline: 2px dashed var(--pop-text); outline-offset: -2px; }
.fd-day .d .fd-draft { display: block; width: max-content; max-width: 100%; margin: 2px 0 0 !important; padding: 0 5px; font-size: .68rem; }
.fd-hero .fd-eyebrow .fd-draft { margin-left: 8px; background: var(--card); }

/* ===== re-test: fun + family (agent) ===== */
/* jump row (Game night, Movie night): quiet text links with a down arrow, so it reads "jump on this page", not filter chips or sub-pages */
.fd-jumpbar.fd-jumplinks { flex-wrap: wrap; align-items: center; gap: 0 var(--s3); padding: var(--s1) 0; border-bottom: 1px solid var(--line); }
.fd-jumplinks .fd-jump-l { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.fd-jumplinks .fd-jump { display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; padding: 0 var(--s1); margin: 0; border: 0; border-radius: var(--r-s, 6px); background: none; color: var(--pop-text); font: inherit; font-weight: 700; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; white-space: nowrap; box-shadow: none; flex: 0 0 auto; min-width: 0; }
.fd-jumplinks .fd-jump:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.fd-jumplinks .fd-jump-ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; transform: rotate(-90deg); flex: none; }
/* jumps land below the sticky jump row; jumpTo() does the exact sum, this covers keyboard / hash scrolls */
.fd-gamenight :is(#shelf, #score, #timer), .fd-movienight :is(#spin, #vote, #shows, #our-list) { scroll-margin-top: 52px; scroll-margin-bottom: var(--s2); }
@media (max-width: 899px) { .fd-gamenight :is(#score, #timer) { scroll-margin-top: 52px; } }
/* short phones (375×667): a smaller ring so the whole timer card, Start and Reset included, fits between the jump row and the bottom bar */
@media (max-height: 720px) and (max-width: 899px) {
  .fd-gamenight .fd-timer { gap: var(--s2); }
  .fd-gamenight .fd-timer-ring { width: 140px; height: 140px; }
  .fd-gamenight .fd-timer-ring b { width: 108px; height: 108px; font-size: 2rem; }
}
/* "ours" said in words on football channels and service chips, not only by colour */
.fd-svc .fd-svc-tag { font-size: .7rem; font-weight: 800; text-transform: lowercase; letter-spacing: .02em; padding-left: var(--s1); border-left: 1px solid currentColor; margin-left: 2px; }
/* the page-level spin, held while a vote is open */
.fd-spin-held { margin: 0; flex: 1 1 100%; font-size: .9rem; }
/* narrow screens (240px large text): no letter-by-letter stacking or mid-word breaks */
.fd-vote-row > span, .fd-show-info, .fd-watch-info, .fd-nfl-teams { min-width: 0; overflow-wrap: break-word; word-break: normal; hyphens: manual; }
.fd-svc { max-width: 100%; white-space: normal; }
.fd-nfl-game .fd-svc { flex-wrap: wrap; }
@media (max-width: 300px) { .fd-nfl-game { grid-template-columns: minmax(0, 1fr); } .fd-nfl-game .fd-svcs, .fd-nfl-game .fd-nfl-teams { grid-column: 1; } .fd-nfl-when { display: flex; gap: var(--s2); align-items: baseline; } }
@media (max-width: 430px) { .fd-jumplinks .fd-jump-l { display: none; } .fd-jumplinks .fd-jump { font-size: .88rem; } .fd-jumpbar.fd-jumplinks { gap: 0 var(--s2); } }
@media (max-width: 300px) {
  .fd-jumpbar.fd-jumplinks { position: static; }   /* two rows of links would eat a third of a 240px-wide screen if they stuck */
  .fd-vote-row { grid-template-columns: minmax(0, 1fr) !important; }
  .fd-vote-row > img, .fd-vote-row > .fd-watch-ph { display: none; }
  .fd-vote-btns { justify-content: flex-start; }
  .fd-score-acts .fd-btn { flex: 1 1 100%; }
  .fd-dice .fd-seg button { white-space: normal; line-height: 1.1; }
}
/* ===== household panel (lead): week strip, laptop sheets, iPad portrait, badges, small fixes ===== */
/* week strip: words wrap whole (a word only breaks if it can't fit at all), no auto-hyphens, three lines at most */
.fd-day .n { overflow-wrap: break-word !important; word-break: normal !important; hyphens: manual !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 899px) { .fd-days { padding-inline: 16px; scroll-padding-inline: 16px; } }
/* picker tiles: the skip flag and "Chosen" stack instead of covering each other or the name */
.fd-pick .flag { right: auto; max-width: calc(100% - 20px); white-space: normal; line-height: 1.2; }
.fd-pick[aria-pressed="true"] .flag { top: 46px; }
/* the week plan: away nights and who picked, as quiet tags */
.fd-eat .alt.away { opacity: .8; font-style: italic; }
.fd-eat .alt.by { background: none; border: 1px dashed var(--line); }
.fd-home-days button small { font-size: .75rem; font-weight: 700; color: inherit; }
[data-style="block"] .fd-home-days button[aria-pressed="true"] { background: color-mix(in srgb, var(--rb) 30%, var(--card)) !important; }
/* Plan it for a night */
.fd-planit { display: grid; gap: var(--s2); }
.fd-planit-days { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--s2); }
.fd-planit-days button { display: grid; gap: 2px; justify-items: start; text-align: left; min-height: 52px; padding: 6px 10px; }
.fd-planit-days small { font-size: .75rem; opacity: .8; }
/* people row: names share one baseline whatever the line under them says */
.fd-person { align-content: start; grid-template-rows: auto auto minmax(1.2em, auto); }
/* bottom bar: the Add label sits clear of the raised + button */
#nav .fd-tab:nth-child(3) .fd-tab-l { margin-top: 6px; }
/* laptop: sheets are wide dialogs, not phone sheets; the dinner picker puts the dinners first with its options beside them */
@media (min-width: 900px) {
  .fd-sheet { max-width: min(980px, 92vw) !important; }
  .fd-sheet .fd-grab { display: none; }
  .fd-sheet:has(.fd-pk-choose) { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: var(--s5); align-items: start; }
  .fd-sheet:has(.fd-pk-choose) > .fd-sheet-h { grid-column: 1 / -1; }
  .fd-sheet:has(.fd-pk-choose) > .fd-pk-choose { grid-column: 1; grid-row: 2; }
  .fd-sheet:has(.fd-pk-choose) > .fd-pk-opts { grid-column: 2; grid-row: 2; position: sticky; top: 0; }
}
.fd-pk-opts, .fd-pk-choose { display: grid; gap: var(--s3); align-content: start; min-width: 0; }
/* iPad portrait and other 700–899px screens: a wider page, and two-column grids instead of one stretched phone column */
@media (min-width: 700px) and (max-width: 899px) {
  .fd { max-width: 800px; }
  .fd-grid12 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); align-items: start; }
  .fd-grid12 > * { grid-column: 1 / -1; }
  .fd-grid12 > :is(.fd-span-3, .fd-span-4, .fd-span-5, .fd-span-6, .fd-span-7, .fd-span-8) { grid-column: auto; }
  .fd-sheet { max-width: 720px; }
}

/* ===== household re-test (lead): strip on iPad landscape, Movie night on iPad portrait, picker tiles on a laptop ===== */
/* the week strip's text stays inside its padding (no half line under the "…") */
.fd-day .n { padding-bottom: 0 !important; margin-bottom: 10px; }
@media (min-width: 900px) { .fd-day .n { margin-bottom: 8px; } }
/* 900–1399px (iPad landscape, small laptops): seven 69px tiles can't hold a whole word, so the strip wraps to fewer, wider tiles */
@media (min-width: 900px) and (max-width: 1399px) { .fd-days { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important; } }
/* iPad portrait: Movie night stays one column (its cards need the width) */
@media (min-width: 700px) and (max-width: 899px) { .fd-movienight .fd-grid12 { grid-template-columns: minmax(0, 1fr); } .fd-movienight .fd-grid12 > * { grid-column: 1 / -1 !important; } }
/* laptop picker: bigger tiles, so a skip flag or "Chosen" never sits on the name; names break only between words */
@media (min-width: 900px) { .fd-sheet:has(.fd-pk-choose) .fd-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)) !important; } }
.fd-pick .n { overflow-wrap: break-word; word-break: normal; hyphens: manual; }
/* avatar grid fills the width of its card */
.fd-glyphs { width: 100%; max-width: none; }
/* Movie night matches: each tile with its own vote button */
.fd-match { display: grid; gap: var(--s1); align-content: start; min-width: 0; }
.fd-match .fd-btn { width: 100%; justify-content: center; }
/* Neon retro by day: the current page in the side rail was lime-dark on grey (3.96:1); ink reads at 4.5+ */
@media (min-width: 900px) { [data-style="retro"][data-theme="light"] .fd-rail-segs .fd-tab[aria-current="page"] { color: var(--ink) !important; } }

/* ===== household panel: fun (agent) ===== */
/* Show / Movie said in words with an icon, not colour */
.fd-kind { display: inline-flex; align-items: center; gap: var(--s1); justify-self: start; padding: 1px var(--s2); border: 1.5px solid var(--line); border-radius: var(--r-pill); font-size: .78rem; font-weight: 800; color: var(--ink); background: var(--card); line-height: 1.5; }
.fd-kind svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fd-watch-tile .fd-kind { justify-self: center; }
.fd-watch-tile .fd-svcs { justify-content: center; padding: 0 var(--s1); }
/* vote: each title is one card, its Yes / No under the title in the same column (never on the row below the poster) */
.fd-vote-card { grid-template-columns: 48px minmax(0, 1fr) !important; align-items: start; padding: var(--s2); border: var(--bw, 1px) solid var(--line); border-radius: var(--r-m); background: var(--card); }
.fd-vote-card > img, .fd-vote-card > .fd-watch-ph { display: block !important; }
.fd-vote-body { display: grid; gap: var(--s1); min-width: 0; overflow-wrap: break-word; }
.fd-vote-body > b { line-height: 1.25; }
.fd-vote-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); }
.fd-vote-meta small { color: var(--muted); font-size: .8rem; }
.fd-vote-card .fd-vote-btns { grid-column: auto !important; justify-content: flex-start !important; margin-top: var(--s1); }
.fd-vote-card .fd-vote-btns .fd-btn { min-height: 44px; min-width: 72px; }
@media (max-width: 300px) { .fd-vote-card { grid-template-columns: minmax(0, 1fr) !important; } .fd-vote-card > img, .fd-vote-card > .fd-watch-ph { display: none !important; } .fd-vote-card .fd-vote-btns .fd-btn { flex: 1 1 0; min-width: 0; } }
/* add a title to tonight's vote; once in, it says so */
.fd-vote-add svg, .fd-vote-in svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fd-vote-add { display: inline-flex; align-items: center; gap: var(--s1); }
.fd-vote-in { display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; font-weight: 700; font-size: .9rem; color: var(--ink); }
/* movie night: no box inside the spin card (tester panel: box in box) */
.fd-watch > .fd-empty { padding: var(--s2) 0; border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0; }
.fd-match-intro { display: grid; gap: var(--s1); }
.fd-match-intro b { font: 800 1.2rem/1.2 var(--font-d); }
.fd-match-intro p, .fd-matches-h { margin: 0; color: var(--muted); }
.fd-matches-h b { color: var(--ink); }
.fd-matches { display: grid; gap: var(--s2); }
.fd-match-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
/* Our list says whether it follows the choices */
.fd-list-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: var(--s2) 0; }
.fd-list-note small { flex: 1 1 160px; color: var(--muted); font-size: .85rem; }
/* search: our own titles first, then the web */
.fd-find-own { display: grid; gap: var(--s2); margin-bottom: var(--s2); }
.fd-find-l { display: flex; align-items: center; gap: var(--s1); margin: var(--s1) 0 0; font-size: .8rem; font-weight: 800; color: var(--muted); }
.fd-find-l svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fd-find-row.own { background: var(--card-2); }
.fd-find-row.own > .fd-find-go { width: 18px; height: 18px; transform: rotate(180deg); color: var(--muted); }
.fd-find-row.own .fd-vote-meta { margin-top: 2px; }
/* game night: how many playing stays in view above the folded choices */
.fd-game-players { display: grid; gap: var(--s1); }
.fd-game-players-l { font-size: .85rem; font-weight: 800; color: var(--muted); }
/* football: a game the scoreboard stopped updating keeps its last score, without the live look */
.fd-nfl-game.stuck .fd-nfl-when b { color: var(--ink); font-size: .9rem; }
/* ---- round 2026-11-16f (household re-test of fd-43) ---- */
/* Movie night: "See the matches" stays on screen while the choices are open */
.fd-choices[open] .fd-see-matches { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); z-index: 3; }
@media (min-width: 900px) { .fd-choices[open] .fd-see-matches { bottom: 12px; } }
/* match tiles: the vote buttons sit on one line along the bottom, however the titles wrap */
.fd-match-grid { align-items: stretch; }
.fd-match { grid-template-rows: 1fr auto; }
/* avatar grid: the columns stretch to fill the row (they stopped 72px short at 390px) */
.fd-glyphs:not(.short) { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); justify-content: stretch; }
.fd-glyphs.short { grid-template-columns: repeat(6, minmax(0, 1fr)); }
/* to-dos: one list; a small bell marks the scheduled ones */
.fd-todo-one { display: grid; gap: var(--s2); }
.fd-chore small .fd-when-ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
/* dice (2026-11-18): a d6 is a 3D cube with drilled pips, rounded edges and faces shaded by the light; the others are faceted gems. They fly, tumble, bounce and rock to rest (rollDice in family.js) */
.fd-dice-stage { justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 14px; min-height: 120px; padding: 40px 8px 12px; border: 0; background: none; cursor: pointer; max-width: 100%; }
.fd-die3 { --size: 54px; --half: calc(var(--size) / 2); position: relative; width: 76px; height: 76px; display: grid; place-items: center; perspective: 420px; }
.fd-die3-hop { pointer-events: none; display: grid; place-items: center; width: 100%; height: 100%; transform-origin: 50% 85%; transform-style: preserve-3d; position: relative; z-index: 1; }
.fd-die3-shadow { position: absolute; left: 50%; bottom: -6px; width: 64px; height: 14px; margin-left: -32px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .34), rgba(0, 0, 0, .14) 60%, transparent); }
.fd-die3-view, .fd-die3-cube { position: relative; display: block; width: var(--size); height: var(--size); transform-style: preserve-3d; }
.fd-die3-face, .fd-die3-core { position: absolute; inset: 0; backface-visibility: hidden; }
.fd-die3-face { display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 13%; border-radius: 17%;
  background: radial-gradient(120% 120% at 28% 22%, #fffdf8 0%, #f4eee1 45%, #e3d8c0 100%);
  box-shadow: inset 0 0 0 1px rgba(90, 70, 30, .16), inset -3px -4px 7px rgba(110, 90, 50, .22), inset 3px 3px 5px rgba(255, 255, 255, .85); }
.fd-die3-face::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #2a2010; opacity: var(--dark, 0); pointer-events: none; }
.fd-die3-face i { place-self: center; width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #4a4a56 0%, #16161c 55%, #050507 100%); box-shadow: inset 0 1.5px 1.5px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .8); }
.fd-die3-face i.one { width: 100%; background: radial-gradient(circle at 42% 38%, #e2525d 0%, #a8141f 60%, #6e0710 100%); }
.fd-die3-core { background: #e6dcc4; inset: 1px; }   /* fills the gaps the rounded corners leave */
.fd-die3-spin { display: block; width: 72px; height: 72px; transform-style: preserve-3d; }
.fd-die3-gem { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .25)); }
.fd-die3-gem text { font-weight: 800; font-family: var(--font-d, system-ui), system-ui, sans-serif; fill: #fff; stroke: rgba(0, 0, 0, .45); stroke-width: 2.4px; paint-order: stroke; stroke-linejoin: round; font-variant-numeric: tabular-nums; }
.fd-die3-gem .under { fill: #fff; stroke: rgba(0, 0, 0, .45); stroke-width: 1px; }
.fd-die3.fade .fd-die3-hop { animation: fd-die3-fade .22s ease-out both; animation-delay: inherit; }
@keyframes fd-die3-fade { from { opacity: .15; } to { opacity: 1; } }
.fd-dice-sides button { min-width: 52px; font-variant-numeric: tabular-nums; }
.fd-dice-count .fd-iconbtn[disabled] { opacity: .45; }
/* the coin and the 8-ball, upscaled: more frames, a squash on landing, a shadow that follows the hop, an answer that floats up */
.fd-coin3d.spinning { transition: transform 1.25s steps(26, end); animation: fd-px-hop2 1.25s steps(16, end); }
@keyframes fd-px-hop2 { 0% { translate: 0 0; scale: 1; } 10% { translate: 0 6px; scale: 1.06 .92; } 42% { translate: 0 -66px; scale: 1; } 80% { translate: 0 0; scale: 1; } 88% { translate: 0 4px; scale: 1.06 .94; } 94% { translate: 0 -8px; scale: 1; } 100% { translate: 0 0; } }
.fd-coin-stage:has(.spinning) .fd-px-shadow { animation: fd-px-shadow 1.25s steps(16, end); }
@keyframes fd-px-shadow { 0%, 100% { scale: 1; opacity: 1; } 42% { scale: .5; opacity: .5; } 80% { scale: 1.1; opacity: 1; } 94% { scale: .9; } }
.fd-ball.fd-px.shake { animation: fd-px-shake2 .95s steps(14, end); }
@keyframes fd-px-shake2 { 0%, 100% { transform: translate(0, 0) rotate(0); } 10% { transform: translate(-14px, 4px) rotate(-6deg); } 22% { transform: translate(14px, -6px) rotate(6deg); } 34% { transform: translate(-12px, -8px) rotate(-5deg); }
  46% { transform: translate(12px, 6px) rotate(4deg); } 58% { transform: translate(-8px, 2px) rotate(-3deg); } 70% { transform: translate(7px, -3px) rotate(2deg); } 82% { transform: translate(-3px, 1px) rotate(-1deg); } 92% { transform: translate(2px, 0) rotate(0); } }
.fd-px-answer { animation: fd-px-float .7s steps(8, end) both; }
@keyframes fd-px-float { from { opacity: 0; translate: -50% 14px; } 60% { opacity: .8; } to { opacity: 1; translate: -50% 0; } }
/* Movie night and Game night picks land with a pop */
.fd-pop { animation: fd-pop .42s steps(6, end); }
@keyframes fd-pop { 0% { scale: .9; } 55% { scale: 1.04; } 100% { scale: 1; } }
.fd-game.flash, .fd-watch-tile.flash { outline: 3px solid var(--pop); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .fd-coin3d.spinning, .fd-coin-stage .fd-px-shadow, .fd-ball.fd-px.shake, .fd-px-answer, .fd-pop { animation: none !important; transition: none !important; } }
/* five Fun pages: short names on phones (the full name stays for screen readers) */
.fd-seg-s { display: none; }
@media (max-width: 560px) { .fd-segbar.fd-n5 .fd-seg-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .fd-segbar.fd-n5 .fd-seg-s { display: inline; } }
@media (max-width: 430px) { .fd-segbar.fd-n5 a { font-size: .76rem !important; padding: 0 2px !important; } .fd-segbar.fd-n5 a svg { display: none !important; } }
@media (max-width: 300px) { .fd-segbar.fd-n5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Events */
.fd-events { display: grid; gap: var(--s2); }
.fd-ev-list, .fd-ev-fansec { display: grid; gap: var(--s1); }
.fd-ev-day { display: grid; gap: var(--s1); }
.fd-ev-day h4 { margin: var(--s1) 0 0; font-size: .9rem; color: var(--muted); }
.fd-ev-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.fd-ev-row:first-of-type { border-top: 0; }
.fd-ev-row > img, .fd-ev-ph { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-s, 8px); background: var(--card-2); display: grid; place-items: center; }
.fd-ev-ph svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; }
.fd-ev-body { display: grid; gap: 3px; min-width: 0; }
.fd-ev-body b { overflow-wrap: break-word; }
.fd-ev-fans { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fd-ev-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.fd-kind svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -2px; }
.fd-places summary small { display: block; }
.fd-place-row { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.fd-place-row > .fd-btn { justify-self: start; }
.fd-place-add { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.fd-ev-src { text-align: center; }
@media (max-width: 300px) { .fd-ev-row { grid-template-columns: minmax(0, 1fr); } .fd-ev-row > img, .fd-ev-ph { width: 100%; } }
/* Game night matches: two across on phones, so names and buttons have room; places on Events wrap */
.fd-game-grid.fd-match-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.fd-game-grid.fd-match-grid .fd-vote-add { white-space: normal; }
.fd-events > .fd-seg { flex-wrap: wrap; overflow: visible; }
/* long choice labels wrap instead of pushing the page sideways at 240px (Choices open by default now, places on Events, the dice card) */
:is(.fd-watch-filters, .fd-events, .fd-dice) .fd-seg { flex-wrap: wrap; max-width: 100%; }
:is(.fd-watch-filters, .fd-events, .fd-dice) .fd-seg button { white-space: normal; max-width: 100%; min-width: 0; text-align: center; }
.fd-dice { min-width: 0; }
.fd-dice-stage { gap: 10px; padding-inline: 0; }
@media (max-width: 300px) { .fd-die3 { --size: 46px; width: 64px; height: 64px; } .fd-die3-spin { width: 60px; height: 60px; } .fd-die3-shadow { width: 54px; margin-left: -27px; } }
@media (max-width: 300px) { .fd-dice-count { gap: 8px; } .fd-dice-count b { min-width: 0; } }
.fd-dice-count .fd-iconbtn { flex: none; min-width: 48px; }   /* never squeezed under 44px (Blueprint at 240px with 150% text, 2026-11-18) */
/* sweep fixes (2026-11-16f): pressed chips in Neon retro by night read dark on pink; small number buttons and the Plan / Meal prep switch reach 44px */
[data-style="retro"][data-theme="dark"] .fd-snack-chips button[aria-pressed="true"] { color: #1a0016; }
:is(.fd-watch-filters, .fd-score, .fd-dice, .fd-events) .fd-seg button { min-width: 48px; }
.fd-modes a { min-width: 48px; justify-content: center; }
/* the Add screen at 240px: its search row and the page column shrink instead of pushing the page sideways */
.fd-sec { grid-template-columns: minmax(0, 1fr); }
form.fd-add { grid-template-columns: minmax(0, 1fr) auto; }
form.fd-add .fd-input { min-width: 0; }
@media (max-width: 300px) { .fd-req { grid-template-columns: 38px minmax(0, 1fr); } .fd-req .fd-yesno { grid-column: 1 / -1; justify-content: flex-end; } }
/* Settings tabs at 240px: two rows instead of pushing the sheet (and its close button) sideways */
@media (max-width: 300px) { .fd-me-tabs { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; } .fd-me-tabs button { min-width: 0; white-space: normal; } }
@media (max-width: 300px) { .fd-me-tabs { border-radius: var(--r-m); } }
/* ---- round 2026-11-16g (desktop pass) ---- */
/* the week strip on wide screens: wider tiles that wrap, so a name never breaks mid-word ("Homemad e") */
@media (min-width: 1400px) { .fd-days { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important; } }
.fd-day .n { overflow-wrap: normal; word-break: normal; hyphens: manual; }
/* Movie night's vote on laptops: two cards across */
@media (min-width: 900px) { .fd-vote-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s1); } }
.fd-ev-grid { align-items: start; }
/* avatar pictures: initials + twelve, in rows of seven (phones) or wider rows */
.fd-glyphs.fd-glyphs-13 { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
/* Events: Save sits next to Tickets; saved ones get their own card at the top */
.fd-ev-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.fd-ev-saved { display: grid; gap: var(--s1); }
.fd-watch-mine { font-weight: 700; }
/* someone out for the night: the chip keeps full-strength text (it was dimmed to 80%, which took the avatar letter under 4.5:1); italics and the grey avatar say "out" */
.fd-eat .alt.away { opacity: 1; }
.fd-eat .alt.away .fd-av { filter: grayscale(1); background: var(--card-2); color: var(--ink); }
/* ---- round 2026-11-16h (food flags, extras, favourites, staples) ---- */
.fd-also { display: grid; gap: var(--s1); }
.fd-also-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fd-also-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.fd-also-list li > img, .fd-also-list li > .fd-thumb { width: 48px; height: 48px; border-radius: var(--r-s, 8px); object-fit: cover; }
.fd-also-b { min-height: 48px; display: grid; align-content: center; gap: 2px; text-align: left; background: none; border: 0; padding: 0; color: var(--ink); font: inherit; cursor: pointer; }
.fd-also-b small { color: var(--muted); }
.fd-loved { display: block; padding: 0 10px 8px; font-size: .8rem; font-weight: 700; color: var(--ink); }
.fd-loved-line { margin: 0; font-weight: 700; }
.fd-recipe-meta { display: grid; gap: var(--s1); }
.fd-staples { display: grid; gap: var(--s1); }
@media (max-width: 300px) { .fd-also-list li { grid-template-columns: minmax(0, 1fr); } .fd-also-list li > img, .fd-also-list li > .fd-thumb { display: none; } .fd-also-list li > .fd-btn { justify-self: start; } }
/* ---- round 2026-11-16g (panel fixes) ---- */
/* largest text: Settings' tabs go to two rows and nothing in the sheet pushes it wider than the phone (Rosa) */
[data-big] .fd-me-tabs { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--r-m); }
[data-big] .fd-me-tabs button { white-space: normal; min-width: 0; padding: 6px; }
#sheet .fd-sheet { max-width: 100vw; }
#sheet .fd-sheet > *, .fd-me-panel > *, .fd-me-id > * { min-width: 0; }
.fd-me-id b, .fd-me-id p { overflow-wrap: anywhere; }
/* largest text: Fun's five tabs in two rows, labels allowed to wrap */
[data-big] .fd-segbar.fd-n5 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
[data-big] .fd-segbar a span { white-space: normal !important; }
/* the bottom bar never wider than the phone (it was 278px at 240px) */
.fd-nav-in { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 300px) { .fd-tab { font-size: .62rem !important; } .fd-tab.center span.c { width: 44px; height: 40px; } .fd-tab-l { overflow-wrap: anywhere; } }
/* choice rows that used to run off the side wrap instead (Add a title: For everyone / Just for me) */
.fd-find .fd-seg { flex-wrap: wrap; overflow: visible; }
/* favourites: a pill like the skip flag, white on a dark scrim so it reads on any photo in any look; family favourites in gold (panel 2026-11-16g) */
.fd-loved { display: inline-flex; align-self: start; justify-self: start; width: max-content; max-width: calc(100% - 20px); margin: 0 10px 8px; padding: 3px 9px; border-radius: 999px; background: rgba(12, 10, 20, .72); color: #fff !important; font: 700 .8rem/1.2 var(--font-b) !important; }
.fd-loved.fam { background: rgba(70, 48, 0, .78); color: #ffe08a !important; }
.fd-pick.noimg .fd-loved { background: var(--card-2); color: var(--ink) !important; }
.fd-pick .flag { font-size: .8rem !important; line-height: 1.25; }
/* filters: one row (Filters button, the count, Clear), the choices folded under it; every choice row wraps, one "on" style (panel 2026-11-16g) */
.fd-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fd-filterbar .fd-btn.on { background: var(--pop); color: var(--pop-ink); border-color: var(--pop); }
.fd-filters { display: grid; gap: 8px; padding: 10px; border-radius: var(--r-m); background: var(--card-2); }
.fd-filters .fd-seg, .fd-find-bar > .fd-seg { flex-wrap: wrap; overflow: visible; }
.fd-filters .fd-seg button, .fd-find-bar > .fd-seg button { white-space: normal; }
/* Minimal: a pressed chip looked greyed out ("Chicken, Any, Everything" looked off when on): ink fill, page-colour text */
[data-style="plain"] .fd-snack-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.fd-ev-places { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fd-places h3 small { display: block; font-weight: 500; color: var(--muted); }
.fd-conn-what { display: block; margin-top: 2px; }
.fd-grid12 > .fd-span-12 { grid-column: 1 / -1; }
/* Movie night's Our list, full width on laptops: more posters across */
@media (min-width: 900px) { .fd-movienight .fd-span-12 .fd-watch-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
/* Staples: calm chips with a tick, not the alarm colour (designer, panel 2026-11-16g) */
.fd-staples .fd-snack-chips button[aria-pressed="true"] { background: var(--card) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.fd-staples .fd-snack-chips button[aria-pressed="true"]::before { content: "✓ "; font-weight: 800; }
.fd-staples summary b { margin-right: 8px; }
.fd-planit-q { margin: 6px 0 0; font-weight: 700; }
#sheet .fd-sheet-h h2 { white-space: normal; overflow-wrap: break-word; text-overflow: clip; overflow: visible; }
#me { min-width: 44px; min-height: 44px; justify-content: center; }   /* signed out ("?" only) it shrank to 21px on laptops */
/* ---- round 2026-11-16h (full panel fixes) ---- */
/* recipe tiles: the time / serves line over a photo is light like the title (it was dark grey on the scrim in day looks, 1.8–3.1:1) */
.fd-pick:not(.noimg) .m, .fd-pick:not(.noimg) .fd-muted { color: rgba(255, 255, 255, .9) !important; }
.fd-gone { display: block; font-size: .8rem; }
/* largest text (Rosa): rows of choices in sheets wrap instead of scrolling off with no cue; the sheet header never covers its content */
#sheet .fd-seg:not(.fd-segbar) { flex-wrap: wrap; overflow: visible; }
#sheet .fd-seg:not(.fd-segbar) button, #sheet .fd-seg:not(.fd-segbar) a { white-space: normal; }
[data-big] #sheet .fd-sheet-h { position: static; height: auto; }
[data-big] #sheet .fd-sheet-h h2 { line-height: 1.15; }
/* largest text: the skip flag sits above the photo instead of on the dinner's name */
[data-big] .fd-pick .flag { position: static; display: block; margin: 6px 6px 0; width: auto; }
/* the star rating on Today wraps instead of making the page 305px wide at 240px */
.fd-made { flex-wrap: wrap; } .fd-made .fd-stars, .fd-made [role="radiogroup"] { flex-wrap: wrap; max-width: 100%; }
/* Today's week strip: six across on laptops (Saturday sat alone on a second row) */
@media (min-width: 1180px) { .fd-days { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; } }
/* long names: three lines, never cut mid-character */
.fd-person b, .fd-person small { -webkit-line-clamp: 3 !important; overflow-wrap: anywhere; }
@media (min-width: 1180px) { .fd-days:has(> :nth-child(7)) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }   /* seven tiles: 4 + 3, never one alone */
@media (max-width: 300px) { .fd-stars { flex-wrap: wrap; } .fd-stars button { min-width: 40px; } .fd-made > * { min-width: 0; max-width: 100%; } }
/* toasts sit at the top while a sheet is open, clear of what you're typing (it covered the favourites box) */
body:has(#sheet:not([hidden])) .fd-toast { top: calc(var(--safe-t) + 12px); bottom: auto; }
/* tonight's overline gets the same scrim pill as the time chip (it sat straight on a busy photo) */
.fd-hero .fd-eyebrow { background: rgba(10, 10, 16, .62); color: #fff; padding: 3px 10px; border-radius: 999px; width: max-content; max-width: 100%; }
/* switches: the whole row is the target, at least 48px tall */
.fd-toggle { min-height: 48px; }
/* largest text: section tabs may wrap their label instead of cutting it ("Shoppin") */
[data-big] .fd-segbar a { overflow: visible; }
[data-big] .fd-segbar a span { white-space: normal !important; overflow-wrap: anywhere; }
/* dinner poll on Today */
.fd-poll { display: grid; gap: var(--s1); }
.fd-poll-opts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.fd-poll-opt { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; min-height: 60px; padding: 6px; border-radius: var(--r-m); border: var(--bw, 1px) solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.fd-poll-opt img, .fd-poll-opt .fd-thumb { width: 48px; height: 48px; border-radius: var(--r-s, 8px); object-fit: cover; }
.fd-poll-opt small { display: block; color: var(--muted); }
.fd-poll-opt.on { border-color: var(--pop); box-shadow: inset 0 0 0 2px var(--pop); }
.fd-poll-opt.won { border-color: var(--pop); }
/* Settings: one scroll; the jump buttons stay at the top of the sheet; each section is its own card */
.fd-me-head { flex-wrap: wrap; row-gap: 6px; }
.fd-me-nav { flex: 1 0 100%; display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
.fd-me-nav::-webkit-scrollbar { display: none; }
.fd-me-nav button { flex: none; } .fd-me-nav button:last-child { margin-right: 24px; }
.fd-me-nav button[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fd-me-panel { display: grid; gap: var(--s2); }
.fd-me-sec { scroll-margin-top: var(--me-top, 120px); display: grid; gap: var(--s2); }
.fd-me-sec > h3 { margin: 0; }
/* avatar colours per look (2026-11-16): the same ten names, tuned to each look; the letter colour comes with each */
.fd-av[style*="--ci"] { color: var(--ci) !important; }
[data-style="plain"] { --hue-magenta: #b23a7a; --hue-violet: #6b54b8; --hue-cyan: #2a6f9e; --hue-lime: #437a26; --hue-pink: #b8445f; --hue-indigo: #4651a8; --hue-mint: #2b8064; --hue-yellow: #d9a82a; --hue-orange: #ad5420; --hue-white: #dcdcd6;
  --on-magenta: #fff; --on-violet: #fff; --on-cyan: #fff; --on-lime: #fff; --on-pink: #fff; --on-indigo: #fff; --on-mint: #fff; --on-yellow: #1b1300; --on-orange: #fff; --on-white: #1c1f23; }
[data-style="comic"] { --hue-magenta: #d61f6c; --hue-violet: #6a2bb5; --hue-cyan: #1450b0; --hue-lime: #8bd12e; --hue-pink: #f2577f; --hue-indigo: #3b2fa0; --hue-mint: #12a397; --hue-yellow: #ffd21f; --hue-orange: #f07a12; --hue-white: #ffffff;
  --on-magenta: #fff; --on-violet: #fff; --on-cyan: #fff; --on-lime: #121212; --on-pink: #121212; --on-indigo: #fff; --on-mint: #121212; --on-yellow: #121212; --on-orange: #121212; --on-white: #121212; }
[data-style="blueprint"] { --hue-magenta: #ff9ec4; --hue-violet: #c3b4ff; --hue-cyan: #8fd3ff; --hue-lime: #b8e68c; --hue-pink: #ffb3c1; --hue-indigo: #a9b8ff; --hue-mint: #8fe0c5; --hue-yellow: #ffcf6b; --hue-orange: #ffad7a; --hue-white: #dbe8ff;
  --on-magenta: #0c3163; --on-violet: #0c3163; --on-cyan: #0c3163; --on-lime: #0c3163; --on-pink: #0c3163; --on-indigo: #0c3163; --on-mint: #0c3163; --on-yellow: #0c3163; --on-orange: #0c3163; --on-white: #0c3163; }
[data-style="block"] { --hue-magenta: #c2378f; --hue-violet: #8758e0; --hue-cyan: #1a72b0; --hue-lime: #4fa33a; --hue-pink: #e8505b; --hue-indigo: #5a5fd6; --hue-mint: #12a397; --hue-yellow: #f2c418; --hue-orange: #f07d2a; --hue-white: #eef3f8;
  --on-magenta: #fff; --on-violet: #fff; --on-cyan: #fff; --on-lime: #0e1a0a; --on-pink: #1a0508; --on-indigo: #fff; --on-mint: #04201c; --on-yellow: #1b1300; --on-orange: #1b1300; --on-white: #131a24; }
/* padding and clipping pass (2026-11-16; measured on every page × 5 looks × 3 sizes) */
/* the count badge stays inside its bottom-bar tab at larger text */
.fd-tab { overflow: visible; } .fd-tab .fd-badge { left: auto; right: max(2px, calc(50% - 30px)); max-width: calc(100% - 4px); overflow: hidden; }
/* streaming pills on movie tiles wrap inside the tile instead of running past its edge */
.fd-watch-tile .fd-svc, .fd-watch-tile .fd-svcs { max-width: 100%; flex-wrap: wrap; white-space: normal; overflow-wrap: anywhere; }
.fd-watch-tile { overflow: hidden; grid-template-columns: minmax(0, 1fr); }
/* the top-right person button: room around the avatar and name */
.fd-me { padding-inline: 6px 12px; gap: 6px; }
/* at large text, a row of choices wraps instead of scrolling sideways with no cue (the week strip stays a swipe row) */
[data-big] main .fd-seg:not(.fd-segbar) { flex-wrap: wrap; overflow: visible; }
/* largest text: a dinner card grows to fit its name and skip badge instead of cutting them off at the top (panel 2026-11-16i) */
[data-big] .fd-pick:not(.plan) { aspect-ratio: auto; min-height: 220px; }
[data-big] .fd-me-sec { scroll-margin-top: 8px; }
/* sheet titles show in full: a two-line clamp let the third line run over "See the recipe" at the largest text (panel 2026-11-16i) */
#sheet .fd-sheet-h h2 { -webkit-line-clamp: unset !important; line-clamp: unset; display: block !important; overflow: visible; overflow-wrap: break-word; word-break: normal; hyphens: manual; min-width: 0; }
/* Today's people row wraps instead of hiding the last two off the side (240px, panel 2026-11-16i) */
div.fd-people[role="list"] { flex-wrap: wrap; overflow: visible; row-gap: 8px; }
.fd-skip-line { margin: 0; font-weight: 700; color: var(--ink); }
/* poll options: one per row on phones so names fit on a line or two; your pick is filled, not just outlined (designer, panel 2026-11-16i) */
.fd-poll-opts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.fd-poll-opt { grid-template-columns: 56px minmax(0, 1fr); }
.fd-poll-opt img, .fd-poll-opt .fd-thumb { width: 56px; height: 56px; }
.fd-poll-opt.on { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }
.fd-poll-opt.on small { color: var(--bg); opacity: .85; }
.fd-poll-opt.won { box-shadow: inset 0 0 0 3px var(--pop); }
/* Minimal: swatches with a light edge, so they read the same as the avatars they make */
[data-style="plain"] .fd-swatches button { border-color: var(--line); }
/* 240px: bottom-bar labels never split mid-word; at the largest text they hide (the icons keep their names for screen readers) and the count badge sits clear of the icon */
@media (max-width: 299px) { .fd-tab-l { white-space: nowrap; overflow-wrap: normal; word-break: normal; hyphens: none; font-size: 12px; }
  :root[data-big] .fd-tab-l { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap; }
  .fd-tab .fd-badge { top: 0; right: 0 !important; left: auto; min-width: 20px; height: 20px; font-size: 12px; line-height: 20px; padding: 0 4px; } }
/* Movie night on laptops: the Add card is already in the right column, so the top button goes; the services line sits in a card like its neighbours (designer, panel 2026-11-16i) */
@media (min-width: 900px) { .fd-movienight > .fd-addbtn:first-child { display: none; } }
.fd-movienight .fd-services { background: var(--card); border: var(--bw, 1px) solid var(--line); border-radius: var(--r-l); padding: var(--s2) var(--s3); margin-top: 0; }
.fd-movienight .fd-services > summary { color: var(--ink); }
/* one divider between "Did you make it?" and the first row, not two (panel 2026-11-16i) */
.fd-myday .fd-made + .fd-day-row { border-top: 0; }

/* short re-test on fd-58 (2026-11-16j) */
/* dinner names break between words, not inside them ("Hamburge / r"); a word longer than the card still wraps */
.fd-pick .n { overflow-wrap: break-word !important; word-break: normal !important; hyphens: manual !important; }
/* largest text: the Settings header isn't pinned, so the jump row wraps instead of hiding Look off the edge */
[data-big] .fd-me-nav { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
[data-big] .fd-me-nav button:last-child { margin-right: 0; }
/* Today's people: two even rows when they can't all fit on one, never one person alone on a line */
div.fd-people[role="list"] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-items: center; }   /* Today's row only: the People page also has .fd-people (it collapsed: panel 2026-11-17) */
@media (max-width: 359px) { div.fd-people[role="list"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { :root[data-big] div.fd-people[role="list"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* largest text on phones: the Food count sits above the icon's corner, not over it */
@media (max-width: 640px) { :root[data-big] .fd-tab .fd-badge { top: 0; right: 2px !important; left: auto; transform: translateY(-35%); } }
/* 240px at the largest text: cards and the tab bar never grow past the screen (the page was 255px wide) */
:where(.fd-card) { grid-template-columns: minmax(0, 1fr); }
.fd-card > *, .fd-cal > * { min-width: 0; }
@media (max-width: 299px) { #nav .fd-nav-in { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 0 !important; } #nav .fd-tab { min-width: 0; padding-inline: 0; } #nav .fd-tab.center span.c { width: 40px !important; } }
@media (max-width: 299px) { .fd-nav { padding-left: 2px !important; padding-right: 2px !important; } #nav .fd-nav-in { padding-inline: 0 !important; } }
[data-big] .fd-card > :not(.fd-days):not(.fd-seg) { flex-wrap: wrap; } [data-big] .fd-card .fd-muted { white-space: normal; }
/* designer, short re-test (2026-11-16j) */
/* 240px at the largest text: one dinner card per row, so names and "Family favourite" fit whole */
@media (max-width: 299px) { :root[data-big] .fd-grid:has(> .fd-pick) { grid-template-columns: minmax(0, 1fr) !important; } }
/* Today's tonight card: the label, name and time chip wrap inside the card at the largest text */
[data-big] .fd-hero :is(.fd-eyebrow, .fd-hero-t, .fd-you, .fd-chips, .fd-chip) { white-space: normal !important; max-width: 100%; min-width: 0; overflow-wrap: break-word; }
[data-big] .fd-hero .fd-chips { flex-wrap: wrap; }
/* a sheet's pinned header covers the sheet's own top padding, so nothing shows through above it */
#sheet .fd-sheet-h { top: -10px; padding-top: 18px; margin-top: -10px; }
/* Blueprint's spaced capitals made "Family" wider than its tab at the largest text */
:root[data-big][data-style="blueprint"] .fd-tab-l, :root[data-big][data-style="comic"] .fd-tab-l { letter-spacing: 0 !important; }
/* Comic at 240: tabs keep 44px by dropping the gaps between them */
@media (max-width: 299px) { [data-style="comic"] #nav .fd-tab { margin: 0 !important; border-width: 0 !important; min-width: 44px; } }
.fd-hero-in { grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 100%; }
/* full panel on fd-59 (2026-11-17) */
/* recipe rows scroll inside themselves (the Family favourites row pushed the page sideways at 240px); on wider screens they wrap instead of leaving 2/3 of the row empty */
.fd-rrow { grid-template-columns: minmax(0, 1fr); min-width: 0; }
@media (min-width: 820px) { .fd-rrow-in { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-columns: auto; overflow: visible; } }
/* names break between words on the tonight card and week tiles too */
.fd-hero .fd-hero-t, .fd-day .n { overflow-wrap: break-word !important; word-break: normal !important; hyphens: manual !important; }
/* largest text: names a touch smaller on the narrow week tiles and tonight's card, so whole words fit a line */
[data-big] .fd-day .n { font-size: .8rem; line-height: 1.15; }
@media (max-width: 399px) { [data-big] .fd-hero .fd-hero-t { font-size: clamp(1rem, 6.5vw, 1.35rem); } }
/* Blueprint: the last jump pill had 5px cut off; the row keeps room after it */
.fd-me-nav { padding-right: 8px; } .fd-me-nav button:last-child { margin-right: 32px; }
.fd-votenow { display: grid; gap: 8px; padding: 10px 14px; }
.fd-votenow-r { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.fd-votenow-r > span { display: grid; min-width: 0; } .fd-votenow-r small { color: var(--muted); }
.fd-votenow-b { display: flex; gap: 6px; flex-wrap: wrap; }
.fd-votenow-r + .fd-votenow-r { border-top: 1px solid var(--line); padding-top: 8px; }
.fd-serv { display: inline-flex; align-items: center; gap: 6px; }
.fd-serv .fd-iconbtn { min-width: 44px; min-height: 44px; font-size: 1.2rem; font-weight: 800; }
.fd-recipe-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.fd-recipe-acts > .fd-btn.wide, .fd-recipe-acts > .fd-planit > .fd-btn.wide { width: auto; flex: 0 1 auto; }
.fd-recipe-acts > .fd-planit { flex: 1 1 100%; display: grid; gap: 8px; } .fd-recipe-acts > .fd-planit > .fd-btn.wide { justify-self: start; }
/* steps keep a readable line length on iPad landscape and laptops (892px before) */
#sheet .fd-recipe-list { max-width: 68ch; }
.fd-poll-opt .fd-poll-skip { color: var(--hot-text, var(--muted)); font-weight: 700; }
.fd-poll-opt.on .fd-poll-skip { color: var(--bg); }
.fd-hero .fd-have.need { font-weight: 700; }
.fd-due-list li { display: flex; gap: 10px; align-items: flex-start; } .fd-due-list li > span { display: grid; min-width: 0; }
.fd-due-list li.done b { text-decoration: line-through; color: var(--muted); }
.fd-homes-today { display: block; margin: 0 0 6px; min-height: 44px; text-align: left; }
.fd-ideas { display: grid; gap: 8px; padding: 10px 14px; }
.fd-idea { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; } .fd-idea-b { display: flex; gap: 6px; }
.fd-suggest-t { justify-self: start; margin-bottom: 6px; } .fd-suggest-t.on { background: var(--ink); color: var(--bg); }
.fd-idea-chip { font-size: .8rem; font-weight: 700; color: var(--ink); }
.fd-idea-today { display: block; min-height: 44px; text-align: left; }
/* one selected style: the Settings jump pill matches a selected tab */
.fd-me-nav button[aria-current="true"] { background: var(--pop) !important; color: var(--pop-ink) !important; border-color: var(--pop) !important; }
/* Neon retro points with one accent: Add uses the primary colour too */
[data-style="retro"] .fd-addbtn { background: var(--pop); color: var(--pop-ink); border-color: var(--pop); }
/* Comic by day: a cool off-white page (cream stays inside the cards) */
:root[data-style="comic"][data-theme="light"] { --bg: #eef1f6; --bg-2: #f6f8fb; }
/* Movie night's jump links read as links, not dropdowns */
.fd-jumplinks a svg, .fd-jumplinks button svg { display: none; }
/* Connections: name, note and button line up */
.fd-conn-h { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
/* Blueprint: hero actions share the row evenly */
[data-style="blueprint"] .fd-hero-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.fd-week > .fd-past { grid-column: 1 / -1; } .fd-past > summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--muted); }
.fd-jumplinks .fd-jump { min-width: 44px; justify-content: center; }
/* re-test on fd-60 (2026-11-17b) */
/* 240px at 150% text: the two-view switch and the jump/tab rows wrap inside the column instead of widening the page */
@media (max-width: 299px) { .fd-modes { display: flex; flex-wrap: wrap; max-width: 100%; border-radius: var(--r-m); } .fd-modes a { white-space: normal; flex: 1 1 auto; justify-content: center; text-align: center; }
  .fd-jumpbar, .fd-jumplinks { flex-wrap: wrap !important; max-width: 100%; min-width: 0; } main .fd-sec, main section, main .fd-card { min-width: 0; max-width: 100%; } }
:root[data-big] .fd-modes { flex-wrap: wrap; max-width: 100%; } :root[data-big] .fd-modes a { white-space: normal; }
/* largest text: week tiles are as tall as their names need, and names break between words; tonight's title stays the biggest line */
[data-big] .fd-day { height: auto !important; min-height: 132px; } [data-big] .fd-day .n { -webkit-line-clamp: unset !important; display: block; overflow: visible; }
[data-big] .fd-days { grid-auto-columns: 150px; }
[data-big] .fd-day .n, [data-big] .fd-pick .n, [data-big] .fd-hero .fd-hero-t { overflow-wrap: break-word !important; word-break: normal !important; hyphens: auto !important; }
[data-big] .fd-hero .fd-hero-t { font-size: max(1.35em, 1.3rem) !important; } [data-big] .fd-hero .fd-you, [data-big] .fd-hero .fd-chip { font-size: .92rem; }
.fd-poll-note { margin: 4px 0 0; }
/* Today: the vote card is quieter than tonight's dinner, with room between them; tonight's actions share one even row; a suggestion sits in a tinted strip */
.fd-votenow { margin-bottom: var(--s3); }
.fd-hero-acts { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.fd-hero-acts > .fd-btn { width: 100%; justify-content: center; }
.fd-idea-today { background: var(--card-2); border-radius: var(--r-m); padding: 8px 12px; margin: 6px 0; color: var(--ink); text-decoration: none; }
/* Neon retro: badges use the primary accent too */
[data-style="retro"] .fd-badge { background: var(--pop) !important; color: var(--pop-ink) !important; }
[data-big][data-style="retro"] .fd-pick .n { font-size: .82rem; }
/* recipe sheet: the actions sit in one row (Plan it opens its days below); the servings stepper is one piece */
.fd-recipe-acts > .fd-planit { flex: 0 1 auto; } .fd-recipe-acts > .fd-planit:has(.fd-planit-days) { flex-basis: 100%; }
.fd-serv { border: var(--bw, 1px) solid var(--line); border-radius: var(--r-pill); background: var(--card); padding: 0 2px; gap: 0; }
.fd-serv .fd-iconbtn { background: none; border: 0; } .fd-serv .fd-chip { background: none !important; border: 0 !important; padding-inline: 4px; }
.fd-due-list .fd-box { min-width: 44px; min-height: 44px; flex: none; }
/* Family favourites: bigger cards on laptops so the row fills */
@media (min-width: 1180px) { .fd-rrow-in { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
/* the Settings jump row: no fade at the edge (it cut the last pill by 5px in Blueprint); the current pill scrolls into view */
.fd-me-nav { -webkit-mask-image: none !important; mask-image: none !important; }
/* tonight's label stays readable over a drawn picture */
.fd-hero.noimg .fd-eyebrow, .fd-hero img[src^="data:"] ~ .fd-hero-in .fd-eyebrow { background: rgba(0, 0, 0, .5); color: #fff; padding: 2px 8px; border-radius: var(--r-pill); justify-self: start; }
/* 240px: a choice chip's label wraps rather than widening the page (Blueprint's spaced capitals made "Drinks & sauces" 272px) */
@media (max-width: 299px) { .fd-seg :is(button, a) { flex: 0 1 auto !important; min-width: 44px; max-width: 100%; white-space: normal !important; overflow-wrap: break-word; text-align: center; } }
/* Neon retro at 240px: its glow layers reached 2px past the screen on Meal prep (no content does); clip them */
@media (max-width: 299px) { :root[data-style="retro"], :root[data-style="retro"] body { overflow-x: clip; } }
/* re-test on fd-61 (2026-11-17c): the recipe sheet for the cook */
.fd-who-lines { display: grid; gap: 4px; } .fd-who-lines:empty { display: none; }
@media (max-width: 599px) { .fd-recipe-acts > .fd-btn, .fd-recipe-acts > .fd-planit > .fd-btn { flex: 1 1 calc(50% - 4px); font-size: .85rem; padding-inline: 10px; } .fd-recipe-acts > .fd-planit { flex: 1 1 calc(50% - 4px); } }
#sheet .fd-recipe-img { max-height: 340px; object-fit: cover; width: 100%; }
#sheet ol.fd-recipe-list li { font-size: 1.06rem; line-height: 1.5; }
@media (min-width: 1000px) { #sheet .fd-sheet { max-width: 880px; } #sheet .fd-recipe-list { max-width: 62ch; } }
/* Family favourites fill the row on laptops */
@media (min-width: 1180px) { .fd-rrow-in { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important; } .fd-rrow-in > * { min-height: 200px; } }
/* a drawn picture sits to the right on tonight's card, so the label and name stay clear of it */
.fd-hero > img[src^="data:"] { object-fit: contain; object-position: 92% 35%; padding: 8px; }
/* tonight's buttons get room on wide screens */
@media (min-width: 900px) { .fd-hero-acts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important; } .fd-hero-acts > .fd-btn { white-space: nowrap; } }
/* Neon retro: the + Add in the bar uses the one accent too */
[data-style="retro"] .fd-tab.center span.c, [data-style="retro"] .fd-tab.center .c { background: var(--pop) !important; color: var(--pop-ink) !important; border-color: var(--pop) !important; box-shadow: 0 0 12px color-mix(in srgb, var(--pop) 50%, transparent) !important; }
/* Blueprint: the four Settings jump pills fit a phone without the last one running off */
@media (max-width: 430px) { [data-style="blueprint"] .fd-me-nav button { letter-spacing: 0 !important; padding-inline: 10px; } .fd-me-nav button:last-child { margin-right: 0; } }
/* Connections: buttons line up with their text */
.fd-conn > .fd-btn, .fd-conn > .fd-link, .fd-conn-entry, .fd-conn > small { margin-left: 34px; }
.fd-home-days button:disabled { opacity: 1; cursor: default; background: none !important; box-shadow: none !important; border-style: dashed !important; color: var(--muted) !important; } .fd-home-days button:disabled * { color: var(--muted) !important; opacity: 1 !important; }
.fd-day .fd-homemark { background: var(--ok, #2f7a55); color: #fff; }
.fd-mystars { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 700; } .fd-otherstars { margin: 0; }

/* ---------- re-test 2026-11-17d: stars ---------- */
/* label above, five stars on one line, then the count, hint and Clear (it wrapped under its label in Neon retro) */
.fd-mystars { flex-direction: column; align-items: flex-start; gap: 2px; }
.fd-stars { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 0; max-width: 100%; }
.fd-stars-in { display: inline-flex; flex-wrap: nowrap; gap: 2px; }
/* the glyph in a plain font in every look, so it isn't shrunk by display fonts; empty stars are hollow */
.fd-star { font-family: system-ui, -apple-system, "Segoe UI Symbol", "Apple Symbols", sans-serif !important; font-size: 1.7rem; font-weight: 400; text-shadow: none !important; }
.fd-star:not(.on):not(.half) { color: var(--muted) !important; }
.fd-star.on { color: var(--sun) !important; }
.fd-stars-n { font-size: .8rem; }
.fd-stars-clear { font-size: .9rem; min-width: 44px; }
/* your own stars on a card: a plain pill, not the family favorite's gold */
.fd-loved.mine { background: rgba(12, 10, 20, .72); color: #fff !important; font-weight: 600; }
.fd-pick.noimg .fd-loved.mine { background: var(--card-2); color: var(--ink) !important; }
@media (max-width: 300px) { .fd-stars-in { flex-wrap: wrap; } }

/* no double-tap zoom (taps on buttons zoomed the page on iPhone); pinch to zoom still works (Amy, 2026-11-17) */
html { touch-action: manipulation; }

/* ===== padding and clipping check 2026-11-17f ===== */
/* 2. buttons that wrap to two lines grow instead of touching their edges */
.fd-btn { padding-top: 8px !important; padding-bottom: 8px !important; line-height: 1.15 !important; }
/* 3. "Too tired? Easy dinner" fits its text on laptops (Blueprint ran it past both sides) */
@media (min-width: 900px) { .fd-hero-acts { display: flex !important; flex-wrap: wrap; } .fd-hero-acts > .fd-btn { flex: 1 1 170px; width: auto; min-width: max-content; } }
/* 4. long words break inside prep jobs and Dinners rows instead of running past the card */
.fd-task, .fd-task *, .fd-row, .fd-row * { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 300px) { .fd-task { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; padding: 12px; } .fd-task b { font-size: .95rem; } }
/* 5. a fridge note's "Amy · Nov 17" wraps under the avatar instead of shortening to "A…" */
.fd-note footer small { flex: 1 1 auto !important; overflow: visible !important; text-overflow: clip !important; white-space: normal !important; }
/* 6. Cook or order? shows the whole takeout item (size, pieces), on two lines if needed */
.fd-bar .l { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.25; }
/* 7. the Post button keeps its own corners (it took the color dots' 50% and went oval) */
.fd-notecolors .fd-btn { border-radius: var(--r-pill) !important; height: auto !important; min-height: var(--tap); }
[data-style="comic"] .fd-notecolors .fd-btn { border-radius: var(--r-m) !important; }
@media (max-width: 300px) {
  /* 1. section tabs: a row that scrolls sideways, each tab as wide as its word (they overlapped in the wide-letter looks) */
  .fd-segbar { display: flex !important; overflow-x: auto; scrollbar-width: none; gap: 6px !important; }
  .fd-segbar::-webkit-scrollbar { display: none; }
  .fd-segbar a { flex: none !important; padding: 0 12px !important; letter-spacing: 0 !important; white-space: nowrap !important; }
  .fd-segbar a span { white-space: nowrap !important; }
  /* 7. Neon retro's bar glow only upward, so the sides aren't cut at the screen edge */
  [data-style="retro"] .fd-nav { box-shadow: 0 -10px 14px -10px var(--glow); }
}
/* 2 (also): choice buttons (Flip a coin / Roll dice / Ask the 8-ball and the like) grow when they wrap */
.fd-seg :is(button, a) { padding-top: 6px !important; padding-bottom: 6px !important; line-height: 1.15 !important; height: auto !important; }

/* ===== fd-70 (2026-11-18): Blackout (was "Red & black") = Minimal's layout and type with a red-and-black palette (data-style="plain" + data-tone="red"); avatar red ===== */
:root { --hue-red: #e00000; --on-red: #ffffff; }
[data-style="plain"][data-tone="red"] {
  --bg: #0b0b0c; --bg-2: #101012; --card: #161618; --card-2: #222225; --ink: #f4f4f4; --muted: #b0b0b4; --line: #2c2c30; --edge: #44444a;
  --pop: #e00000; --pop-ink: #ffffff; --pop-text: #ff5252; --hot: #c40000; --sky: #d6d6da; --grape: #ff8a8a; --sun: #ffb199;
  --ok: #8fd6b2; --warn: #ff8a7a;
  --p-amy: #d6d6da; --p-spouse: #ff8a8a; --p-older: #ffb199; --p-teen: #ff5252;
}
[data-style="plain"][data-tone="red"][data-theme="light"] {
  --bg: #f4f4f4; --bg-2: #fafafa; --card: #ffffff; --card-2: #ececec; --ink: #111111; --muted: #4a4a4e; --line: #dcdcdc; --edge: #b8b8bc;
  --pop: #d00000; --pop-ink: #ffffff; --pop-text: #b00000; --hot: #b00000; --sky: #1a1a1a; --grape: #8f1010; --sun: #9a2a00;
  --ok: #1f6b45; --warn: #a0461a;
  --p-amy: #d6d6da; --p-spouse: #ff8a8a; --p-older: #ffb199; --p-teen: #ff5252;   /* avatars keep dark initials, so these stay light by day too */
}
[data-style="plain"][data-tone="red"] .fd-top { border-bottom: 2px solid var(--pop); }
[data-style="plain"][data-tone="red"] .fd-nav { border-top: 2px solid var(--pop); }
[data-style="plain"][data-tone="red"] .fd-tab[aria-current="page"] { color: var(--pop-text); }
.fd-glyphs[style*="--ci"] button[aria-pressed="true"] { color: var(--ci); }   /* the chosen picture tile uses the color's own initials ink (white on red) */

/* ===== fd-71 (2026-11-18): Blackout made sleeker, Bear-style (Amy: "more sleek, Avenir maybe … something similar to Bear"; Jack is about to turn 15).
   Bear's bones (retired 2026-11-16): Avenir Next, always-black top and bottom bars, soft borderless cards; Blackout keeps true red and pure black ===== */
[data-style="plain"][data-tone="red"] {
  --font-d: "Avenir Next", Avenir, "Nunito Sans", system-ui, sans-serif; --font-b: "Avenir Next", Avenir, "Nunito Sans", system-ui, sans-serif; --font-n: "Avenir Next", Avenir, "Nunito Sans", system-ui, sans-serif;
  --r-xl: 14px; --r-l: 12px; --r-m: 10px;
}
[data-style="plain"][data-tone="red"] :is(h1, h2, h3, .fd-sheet-h h2, .fd-shop-h h1) { font-weight: 700; letter-spacing: -.01em; }
[data-style="plain"][data-tone="red"] .fd-brand { font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 1.05rem; }
[data-style="plain"][data-tone="red"] .fd-btn { font-weight: 600; letter-spacing: .01em; }
[data-style="plain"][data-tone="red"] .fd-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 600; }
[data-style="plain"][data-tone="red"] .fd-tab { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 600; }
[data-style="plain"][data-tone="red"] .fd-tab.center span.c { border-radius: 12px; }
/* soft cards: no outline, a low shadow (Bear) */
[data-style="plain"][data-tone="red"] :is(.fd-hero, .fd-day, .fd-row, .fd-aisle, .fd-task, .fd-cost, .fd-req, .fd-empty, .fd-toggle, .fd-pick, .fd-card, .fd-magnet, .fd-big) { border-color: transparent; box-shadow: 0 6px 18px -10px rgba(0,0,0,.45); }
[data-style="plain"][data-tone="red"][data-theme="light"] :is(.fd-hero, .fd-day, .fd-row, .fd-aisle, .fd-task, .fd-cost, .fd-req, .fd-empty, .fd-toggle, .fd-pick, .fd-card, .fd-magnet, .fd-big) { box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 20px -12px rgba(0,0,0,.25); }
/* black bars day and night, edge to edge, red line on the inside edge (Bear's bar trick) */
[data-style="plain"][data-tone="red"] :is(.fd-top, .fd-nav) { --bg: #0b0b0c; --ink: #ffffff; --muted: #c9c9cc; --card: #222225; --card-2: #2c2c30; --line: #3a3a3f; --edge: #55555b; --pop-text: #ff5252; background: #0b0b0c; color: #fff; }
[data-style="plain"][data-tone="red"] .fd-top { box-shadow: 0 0 0 100vmax #0b0b0c; clip-path: inset(0 -100vmax); }
[data-style="plain"][data-tone="red"] .fd-nav :is(.fd-tab, .fd-tab-extra) { color: #c9c9cc; }
[data-style="plain"][data-tone="red"] .fd-nav :is(.fd-tab, .fd-tab-extra)[aria-current="page"] { color: #ff5252; }
[data-style="plain"][data-tone="red"] .fd-looks button.fd-look[data-tone="red"] .fd-look-n { text-transform: uppercase; letter-spacing: .14em; }
@media (min-width: 900px) { [data-style="plain"][data-tone="red"] .fd-nav { border-top: 0; border-right: 2px solid var(--pop); } }   /* the rail: red line beside the page, not along its top */

/* ===== fd-73 (2026-11-18): where-to-watch chips wrap cleanly (Amy's screenshot: ovals with the check on its own line) ===== */
.fd-svc { display: inline-block; border-radius: min(var(--r-pill), 12px); line-height: 1.3; padding: 2px 8px; text-wrap: balance; overflow-wrap: break-word; }
.fd-svc svg { display: inline-block; vertical-align: -1px; margin-right: 4px; }
.fd-watch-tile .fd-svcs { display: block; }
.fd-watch-tile .fd-svc { display: block; text-align: center; overflow-wrap: break-word; }
.fd-startwatch .fd-row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-startwatch .fd-row-btns .fd-btn { flex: 1 1 190px; white-space: nowrap; }   /* side by side when both fit, else one per row (never "watching / it") */

/* ===== fd-74 (2026-11-18): stacked too closely (Amy; gap check runs/2026-11-18/gap) ===== */
.fd-staples > .fd-input { margin: 6px 0 12px; }                       /* 1. Kitchen check: search box off the switch and the chips */
.fd-match { gap: 8px; }                                              /* 2. Game night (and Movie night matches): Vote button 8px under its card */
.fd-match-grid { row-gap: 16px; }                                    /*    and 16px before the next row */
.fd-watch-tile { gap: 8px; padding-bottom: 12px; }                   /* 3. Our list tiles: title, Show/Movie and where to watch 8px apart, room at the bottom */
.fd-toggle + .fd-toggle { margin-top: 4px; }                         /* 4. Settings: switch boxes 10px apart */
.fd-card + .fd-notes { margin-top: 13px; }                           /* 5. Fridge notes 20px under the note form (the pin no longer touches it) */
/* fd-75: room under the top bar (Amy: the people row and Calendar card touched Spectrum's rainbow line; 0–6px in every look) */
.fd-top { margin-bottom: 12px !important; }
@media (min-width: 900px) { .fd-top { margin-bottom: 16px !important; } }

/* ===== fd-79 (2026-11-19): Minimal accent, per phone (data-accent on <html>, set in Settings › Look). Green is Minimal's own; Blackout keeps its red. All pairs >= 5.5:1 day and night ===== */
:root[data-accent="blue"][data-style="plain"]:not([data-tone]), :root[data-accent="blue"] .fd-look[data-style="plain"]:not([data-tone]) { --pop: #8cc4ec; --pop-ink: #0e1a24; --pop-text: #9dcff2; }
:root[data-accent="blue"][data-style="plain"]:not([data-tone])[data-theme="light"], :root[data-accent="blue"] .fd-look[data-style="plain"]:not([data-tone])[data-theme="light"] { --pop: #2a6496; --pop-ink: #ffffff; --pop-text: #245a87; }
:root[data-accent="purple"][data-style="plain"]:not([data-tone]), :root[data-accent="purple"] .fd-look[data-style="plain"]:not([data-tone]) { --pop: #b3a4f0; --pop-ink: #16122a; --pop-text: #c0b3f5; }
:root[data-accent="purple"][data-style="plain"]:not([data-tone])[data-theme="light"], :root[data-accent="purple"] .fd-look[data-style="plain"]:not([data-tone])[data-theme="light"] { --pop: #5f4bb0; --pop-ink: #ffffff; --pop-text: #5642a6; }
:root[data-accent="pink"][data-style="plain"]:not([data-tone]), :root[data-accent="pink"] .fd-look[data-style="plain"]:not([data-tone]) { --pop: #ee9bb6; --pop-ink: #2a0f19; --pop-text: #f2a9c1; }
:root[data-accent="pink"][data-style="plain"]:not([data-tone])[data-theme="light"], :root[data-accent="pink"] .fd-look[data-style="plain"]:not([data-tone])[data-theme="light"] { --pop: #b23a5e; --pop-ink: #ffffff; --pop-text: #a3324f; }
:root[data-accent="orange"][data-style="plain"]:not([data-tone]), :root[data-accent="orange"] .fd-look[data-style="plain"]:not([data-tone]) { --pop: #f0a868; --pop-ink: #2a1606; --pop-text: #f3b57d; }
:root[data-accent="orange"][data-style="plain"]:not([data-tone])[data-theme="light"], :root[data-accent="orange"] .fd-look[data-style="plain"]:not([data-tone])[data-theme="light"] { --pop: #a54a12; --pop-ink: #ffffff; --pop-text: #96420f; }
:root[data-accent="teal"][data-style="plain"]:not([data-tone]), :root[data-accent="teal"] .fd-look[data-style="plain"]:not([data-tone]) { --pop: #6fcfc6; --pop-ink: #082220; --pop-text: #80d8cf; }
:root[data-accent="teal"][data-style="plain"]:not([data-tone])[data-theme="light"], :root[data-accent="teal"] .fd-look[data-style="plain"]:not([data-tone])[data-theme="light"] { --pop: #11766c; --pop-ink: #ffffff; --pop-text: #0d6b62; }
.fd-accents { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.fd-accents button { width: 44px; height: 44px; border-radius: 50%; background: var(--c); border: 1px solid var(--edge); display: grid; place-items: center; color: var(--ci); padding: 0; }
.fd-accents button[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.fd-accents svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3; }
/* to-dos (fd-79): Change who, the done fold, upkeep rows */
.fd-whoedit { display: grid; gap: 8px; padding: 0 16px 12px; }
.fd-donefold { margin: 4px 12px 8px; }
.fd-alldone { padding: 4px 12px 0; margin: 0; }
/* fd-80 (2026-11-19): the darker six. Night: white on the accent >= 4.9:1, the accent against cards >= 3.2:1, its text >= 7.5:1; day: >= 8:1 */
:root[data-accent="navy"][data-style="plain"]:not([data-tone]), :root[data-accent="navy"] .fd-look[data-style="plain"]:not([data-tone]) { --pop: #476ec2; --pop-ink: #ffffff; --pop-text: #a9c1f0; }
:root[data-accent="navy"][data-style="plain"]:not([data-tone])[data-theme="light"], :root[data-accent="navy"] .fd-look[data-style="plain"]:not([data-tone])[data-theme="light"] { --pop: #1f3a73; --pop-ink: #ffffff; --pop-text: #1f3a73; }
:root[data-accent="forest"][data-style="plain"]:not([data-tone]), :root[data-accent="forest"] .fd-look[data-style="plain"]:not([data-tone]) { --pop: #317e52; --pop-ink: #ffffff; --pop-text: #9fd8b4; }
:root[data-accent="forest"][data-style="plain"]:not([data-tone])[data-theme="light"], :root[data-accent="forest"] .fd-look[data-style="plain"]:not([data-tone])[data-theme="light"] { --pop: #1f5137; --pop-ink: #ffffff; --pop-text: #1f5137; }
:root[data-accent="plum"][data-style="plain"]:not([data-tone]), :root[data-accent="plum"] .fd-look[data-style="plain"]:not([data-tone]) { --pop: #8c5ab2; --pop-ink: #ffffff; --pop-text: #cdb0ea; }
:root[data-accent="plum"][data-style="plain"]:not([data-tone])[data-theme="light"], :root[data-accent="plum"] .fd-look[data-style="plain"]:not([data-tone])[data-theme="light"] { --pop: #4f2a6b; --pop-ink: #ffffff; --pop-text: #4f2a6b; }
:root[data-accent="wine"][data-style="plain"]:not([data-tone]), :root[data-accent="wine"] .fd-look[data-style="plain"]:not([data-tone]) { --pop: #aa5270; --pop-ink: #ffffff; --pop-text: #e3b3c6; }
:root[data-accent="wine"][data-style="plain"]:not([data-tone])[data-theme="light"], :root[data-accent="wine"] .fd-look[data-style="plain"]:not([data-tone])[data-theme="light"] { --pop: #6e1f33; --pop-ink: #ffffff; --pop-text: #6e1f33; }
:root[data-accent="slate"][data-style="plain"]:not([data-tone]), :root[data-accent="slate"] .fd-look[data-style="plain"]:not([data-tone]) { --pop: #647282; --pop-ink: #ffffff; --pop-text: #c3ccd6; }
:root[data-accent="slate"][data-style="plain"]:not([data-tone])[data-theme="light"], :root[data-accent="slate"] .fd-look[data-style="plain"]:not([data-tone])[data-theme="light"] { --pop: #4d5f73; --pop-ink: #ffffff; --pop-text: #4d5f73; }
:root[data-accent="brown"][data-style="plain"]:not([data-tone]), :root[data-accent="brown"] .fd-look[data-style="plain"]:not([data-tone]) { --pop: #996438; --pop-ink: #ffffff; --pop-text: #e3bf9a; }
:root[data-accent="brown"][data-style="plain"]:not([data-tone])[data-theme="light"], :root[data-accent="brown"] .fd-look[data-style="plain"]:not([data-tone])[data-theme="light"] { --pop: #5c3b20; --pop-ink: #ffffff; --pop-text: #5c3b20; }
/* fd-81 (panel 2026-11-19p): to-do rows, Change who, done fold, upkeep, Settings */
.fd-chore small .fd-when-ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }   /* the bell was solid black (default fill) */
.fd-chore small .fr { white-space: nowrap; }   /* "5:00 PM" or "every 6 months" never splits; the line breaks between pieces */
.fd-chore small .fd-warn { color: var(--warn); font-weight: 700; }
.fd-chore.is-done small .fd-warn { color: inherit; font-weight: inherit; }
.fd-left { white-space: nowrap; }
.fd-grp-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--card-2); color: var(--muted); flex: none; }
.fd-grp-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fd-chore .nm { overflow-wrap: break-word !important; word-break: normal !important; hyphens: manual !important; }   /* only a word too long for the line breaks */
/* Change who: hangs under the title, the actions on their own row */
.fd-whoedit { padding: 0 12px 14px calc(12px + 44px + 12px); gap: 6px; }
.fd-whoedit-q { font-size: .95rem; }
.fd-whoedit-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.fd-pickpeople button { text-align: left; }
.fd-pickpeople .fd-pick-ok { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; margin-left: -2px; }
/* the done fold: quieter than a row */
.fd-donefold { background: none !important; border-color: transparent !important; box-shadow: none !important; color: var(--pop-text) !important; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding-inline: 8px; }
/* All home upkeep: a block like the others, with a fold arrow */
details.fd-upkeep { background: var(--card); border: var(--bw, 1px) solid var(--line); border-radius: var(--r, 14px); padding: 4px 14px; }
details.fd-upkeep > summary::after { content: ""; width: 9px; height: 9px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
details.fd-upkeep[open] > summary::after { transform: rotate(-135deg); }
[data-style="retro"] details.fd-upkeep > summary::after { display: none; }
/* a toast never covers the last thing on the page */
body.fd-toasting #view::after { content: ""; display: block; height: 96px; }
/* narrow or 150% text: rows give the title more room, Settings jumps wrap */
@media (max-width: 300px) {
  .fd-todo-groups .fd-card { padding-inline: 0 !important; }
  .fd-chore { gap: 6px; padding-inline: 6px; grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .fd-whoedit { padding-left: 12px; }
}
@media (max-width: 340px) { .fd-me-nav { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; } .fd-me-nav button:last-child { margin-right: 0; } }
.fd-tolook { margin-top: 8px; justify-self: start; }
.fd-pick-field > small { display: block; margin: -2px 0 6px; }
/* fd-82 (delta re-test 2026-11-19p) */
.fd-upkeep-row small .fr { white-space: nowrap; }   /* All home upkeep wraps between pieces too */
.fd-upkeep-row.due small { color: var(--muted); font-weight: inherit; }
.fd-upkeep-row small .fd-warn { color: var(--warn); font-weight: 700; }
.fd-upkeep-row .fd-btn { white-space: nowrap; flex: none; }
/* fd-83 (delta re-test 2, 2026-11-19p) */
.fd-upkeep-row { flex-wrap: wrap; }   /* narrow or big text: Mark done drops under the text instead of widening the page */
.fd-upkeep-row > span { flex: 1 1 160px; }
.fd-upkeep-row > .fd-btn { margin-left: auto; }
.fd-todo-groups h3 { flex-wrap: wrap; row-gap: 4px; }
.fd-todo-groups h3 > span:first-child, .fd-person-row b, .fd-person-row span > * { min-width: 0; overflow-wrap: anywhere !important; word-break: normal; }   /* a very long name wraps instead of pushing the page sideways */
@media (max-width: 300px) {   /* Family's three tabs: two columns, every name whole (an earlier !important sideways row won before) */
  .fd-segbar.fd-n3 { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .fd-segbar.fd-n3 a { flex: initial !important; justify-content: center; padding: 0 6px !important; white-space: normal !important; }
  .fd-segbar.fd-n3 a span { white-space: normal !important; text-align: center; }
}
/* fd-84 (delta re-test 3): at 240px the two-row tab strip isn't pinned (it hid the row being changed), People cards put the avatar above the name */
@media (max-width: 300px) {
  .fd-segbar { position: static !important; }
  .fd-person-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "av chev" "txt txt"; row-gap: 8px; }
  .fd-person-row > .fd-av { grid-area: av; }
  .fd-person-row > span { grid-area: txt; }
  .fd-person-row > .fd-person-chev { grid-area: chev; }
  .fd-person-row b { overflow-wrap: break-word !important; }   /* whole words; only a word too long for the card breaks */
}
.fd-todo-groups h3 .fd-left { margin-left: auto; }   /* the count stays right when the heading wraps */
