/* Kopplin Family Thanksgiving — mobile-first, warm autumn palette, light and dark. */
[hidden] { display: none !important; }
:root {
  color-scheme: light;
  --pumpkin: #d9661f;
  --pumpkin-ink: #a8470c;
  --cranberry: #9b2335;
  --gold: #e3a52a;
  --brown: #4a2c1a;
  --cream: #fbf3e4;
  --ink: #2e1d12;
  --ink-2: #5a4232;
  --muted: #7d6656;
  --line: #ead9c2;
  --line-soft: #f3e7d6;
  --page: #fbf3e4;
  --surface: #fffaf2;
  --surface-2: #f7ecdb;
  --field: #ffffff;
  --input-line: #dcc6a8;
  --accent: var(--pumpkin);
  --accent-hover: #c4560f;
  --on-accent: #ffffff;
  --ok: #3f7d3a;
  --ok-bg: #e6f2df;
  --warn: #a86400;
  --warn-bg: #fff0d1;
  --danger: #b4321f;
  --none-bg: #f1e7da;
  --tabbar: rgba(255, 250, 242, .95);
  --shadow: 0 1px 2px rgba(74, 44, 26, .06), 0 6px 18px rgba(74, 44, 26, .07);
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5e9d8;
  --ink-2: #dcc9b2;
  --muted: #b19a83;
  --line: #3e2c20;
  --line-soft: #33241a;
  --page: #1c1410;
  --surface: #261b15;
  --surface-2: #2f221a;
  --field: #1a120e;
  --input-line: #4f3a2b;
  --accent: #f08a43;
  --accent-hover: #ff9d5c;
  --on-accent: #1c1410;
  --pumpkin-ink: #ffab70;
  --ok: #8fd185;
  --ok-bg: #22351f;
  --warn: #ffc464;
  --warn-bg: #3d2c12;
  --danger: #ff8a75;
  --none-bg: #33261c;
  --tabbar: rgba(38, 27, 21, .95);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #f5e9d8; --ink-2: #dcc9b2; --muted: #b19a83; --line: #3e2c20; --line-soft: #33241a;
    --page: #1c1410; --surface: #261b15; --surface-2: #2f221a; --field: #1a120e; --input-line: #4f3a2b;
    --accent: #f08a43; --accent-hover: #ff9d5c; --on-accent: #1c1410; --pumpkin-ink: #ffab70;
    --ok: #8fd185; --ok-bg: #22351f; --warn: #ffc464; --warn-bg: #3d2c12; --danger: #ff8a75; --none-bg: #33261c;
    --tabbar: rgba(38, 27, 21, .95); --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); }
body { min-height: 100vh; overflow-x: hidden; }
a { color: var(--pumpkin-ink); }
h1 { font-size: 1.6rem; margin: 0 0 .25rem; font-family: Georgia, "Iowan Old Style", serif; color: var(--brown); }
:root[data-theme="dark"] h1 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) h1 { color: var(--ink); } }
h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
h4 { margin: .5rem 0; font-size: .95rem; }
p { margin: .35rem 0; }
.muted { color: var(--muted); }
.small, small { font-size: .85rem; }
.center { text-align: center; }
.hint { color: var(--muted); font-size: .85rem; margin: .35rem 0; }
.grow { flex: 1; }
.boot { display: grid; place-items: center; height: 100vh; font-size: 3rem; animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ── buttons & inputs ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 44px; padding: .55rem 1rem; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink); background: var(--surface-2);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.link { background: none; border: 0; min-height: 36px; padding: .25rem .4rem; color: var(--pumpkin-ink); font-weight: 600; }
.btn.small { min-height: 34px; padding: .3rem .7rem; font-size: .9rem; }
.btn.big { min-height: 54px; font-size: 1.1rem; }
.btn.wide { width: 100%; }
.danger-text { color: var(--danger) !important; }
.icon-btn { min-width: 44px; min-height: 44px; border: 0; background: none; font-size: 1.25rem; cursor: pointer; color: var(--ink); border-radius: 10px; }
.icon-btn:hover { background: var(--surface-2); }

input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--field);
  border: 1px solid var(--input-line); border-radius: 10px; padding: .6rem .7rem; min-height: 44px; width: 100%;
}
textarea { resize: vertical; line-height: 1.4; }
input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: var(--accent); flex: none; margin: 0; }
input[type=color] { padding: 2px; width: 70px; }
input[type=range] { accent-color: var(--accent); padding: 0; border: 0; background: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
select.compact, .compact { width: auto; min-height: 40px; padding: .4rem .6rem; }
.field { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .8rem; }
.field .label { font-weight: 600; font-size: .9rem; }
.check { display: flex; align-items: center; gap: .5rem; min-height: 40px; cursor: pointer; }
.checks { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: .4rem; }
.row { display: flex; gap: .5rem; align-items: center; margin: .6rem 0; }
.row.end { justify-content: flex-end; }
.row.wrap { flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.seg label, .seg button { position: relative; display: flex; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span, .seg button { padding: .5rem .8rem; min-height: 40px; display: flex; align-items: center; cursor: pointer; border: 0; background: none; font: inherit; color: var(--ink); }
.seg input:checked + span, .seg button.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.seg.small span, .seg.small button { padding: .4rem .7rem; font-size: .92rem; }
.form { display: block; }

/* ── shell ── */
.shell { min-height: 100vh; }
.content { padding: 1rem 1rem calc(88px + env(safe-area-inset-bottom)); max-width: 980px; margin: 0 auto; }
.sidebar { display: none; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around;
  background: var(--tabbar); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
}
.nav-link {
  display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; min-height: 52px; padding: 4px 2px;
  color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; border-radius: 12px; min-width: 0;
}
.nav-link .nav-icon { font-size: 1.35rem; line-height: 1.2; display: flex; }
.nav-link .nav-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link.active { color: var(--pumpkin-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); }
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 230px 1fr; }
  .tabbar { display: none; }
  .sidebar { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; padding: 1rem .75rem; border-right: 1px solid var(--line); background: var(--surface); }
  .sidebar .nav-link { flex-direction: row; flex: none; gap: .6rem; font-size: 1rem; padding: .55rem .75rem; justify-content: flex-start; min-height: 44px; }
  .brand { display: flex; align-items: center; gap: .5rem; margin: 0 .4rem 1rem; text-decoration: none; color: var(--brown); font-family: Georgia, serif; font-size: 1.1rem; }
  .brand-mark { font-size: 1.8rem; }
  .content { padding: 1.5rem 2rem 3rem; }
}

.view-head { margin-bottom: 1rem; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }
.year-switch { display: flex; align-items: center; gap: .1rem; }
.back { display: inline-block; margin-bottom: .5rem; text-decoration: none; font-weight: 600; min-height: 36px; line-height: 36px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; box-shadow: var(--shadow); }
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.big-emoji { font-size: 2.5rem; }
.callout { background: var(--warn-bg); border-radius: 12px; padding: .75rem 1rem; }
.callout ol { margin: .4rem 0 0; padding-left: 1.3rem; }
.kbd { display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: 0 .35rem; background: var(--surface); }

/* ── avatars ── */
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; background: var(--gold); color: var(--brown); font-weight: 700; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.pup img { object-fit: contain; transform: scale(1.1) translateY(4%); }
.avatar.big { width: 84px; height: 84px; font-size: 2rem; }
.avatar.small { width: 32px; height: 32px; font-size: .9rem; }
.avatar.tiny { width: 26px; height: 26px; font-size: .8rem; }

/* ── login ── */
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem 1rem; position: relative; overflow: clip;
  background: radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--gold) 35%, transparent), transparent 55%), radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--cranberry) 25%, transparent), transparent 50%), var(--page); }
.login-card { position: relative; z-index: 1; width: 100%; max-width: 440px; background: var(--surface); border-radius: 22px; padding: 1.5rem 1.25rem; box-shadow: var(--shadow); text-align: center; border: 1px solid var(--line); }
.login-card.wide { max-width: 640px; }
.login-card form { text-align: left; }
.login-turkey { font-size: 3.5rem; line-height: 1; }
.login .prompt { color: var(--ink-2); margin-bottom: 1rem; }
.login-sub { margin-top: 1.4rem; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.who { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .7rem .3rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font: inherit; color: var(--ink); min-height: 96px; }
.who:hover { border-color: var(--accent); }
.who span { font-weight: 600; word-break: break-word; }
.who small { color: var(--muted); }
.code-input { font-size: 1.8rem; text-align: center; letter-spacing: .4em; margin: .5rem 0; }
.error { color: var(--danger); min-height: 1.2em; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.leaves span { position: absolute; top: -40px; left: calc(var(--i) * 8.5%); font-size: 1.6rem; opacity: .55; animation: fall calc(9s + var(--i) * .7s) linear infinite; animation-delay: calc(var(--i) * -1.3s); }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .leaves, .boot { animation: none; } .leaves span { display: none; } }
.avatar-preview { display: flex; align-items: center; gap: .75rem; margin: .5rem 0 1rem; font-weight: 600; }
.pup-group { text-align: left; margin-top: 1.1rem; }
.pup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .45rem; }
.pup-card { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .4rem; border-radius: 14px; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; font: inherit; color: var(--ink); }
.pup-card.on { border-color: var(--pup); background: color-mix(in srgb, var(--pup) 18%, var(--surface)); }
.pup-face { width: 60px; height: 60px; border-radius: 50%; background: var(--pup); display: grid; place-items: center; overflow: hidden; font-size: 1.8rem; }
.pup-face img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.1) translateY(4%); }
.pup-card b { font-size: .8rem; }
.avatar-picker .btn { margin-top: .5rem; }

/* ── calendar ── */
.cal-month { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow div { padding: .35rem; font-size: .75rem; font-weight: 700; text-align: center; color: var(--muted); background: var(--surface-2); }
.cal-cell { min-height: 92px; border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); padding: 3px; cursor: pointer; overflow: hidden; }
.cal-cell.pad { background: var(--surface-2); cursor: default; }
.cal-cell:hover:not(.pad) { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.cal-cell.tday { background: color-mix(in srgb, var(--gold) 22%, var(--surface)); }
.cal-cell.today .cal-num { background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 0 .4rem; display: inline-block; }
.cal-num { font-weight: 700; font-size: .85rem; margin-bottom: 2px; }
.cal-chips { display: flex; flex-direction: column; gap: 2px; }
.chip.ev { display: block; font-size: .7rem; line-height: 1.25; padding: 1px 4px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: color-mix(in srgb, var(--c) 18%, var(--surface)); border-left: 3px solid var(--c); color: var(--ink); }
.chip.ev.allday { background: var(--c); color: #fff; border-left-color: var(--c); }
.chip.ev.cont { opacity: .8; border-radius: 0 5px 5px 0; }
.chip.ev i { font-style: normal; font-weight: 700; margin-right: 3px; }
.chip.food { font-size: .75rem; background: var(--surface-2); border-radius: 6px; padding: 1px 4px; }
.more { font-size: .7rem; color: var(--muted); }
.ok { color: var(--ok); } .warn { color: var(--warn); }
@media (max-width: 560px) {
  .cal-cell { min-height: 64px; }
  .chip.ev { font-size: 0; padding: 0; height: 6px; border-left-width: 0; background: var(--c); }
  .chip.ev.cont { opacity: .55; }
  .chip.food { font-size: .68rem; padding: 0 2px; }
}

/* show / hide categories */
.show-row { margin: .6rem 0 .2rem; }
.show-chips { display: flex; gap: .4rem; overflow-x: auto; padding: .15rem 0 .45rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.show-chips::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .show-chips { flex-wrap: wrap; overflow: visible; } }
.show-chip { flex: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; padding: .3rem .75rem .3rem .45rem; border-radius: 999px; font: inherit; font-size: .85rem;
  cursor: pointer; color: var(--muted); background: var(--surface); border: 1.5px dashed var(--input-line); }
.show-chip .box { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--c); font-style: normal; font-size: .75rem; font-weight: 800; color: #fff; }
.show-chip.on { color: var(--ink); border-style: solid; border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.show-chip.on .box { background: var(--c); }
.show-chip small { color: var(--muted); font-weight: 600; }
.hidden-note { font-size: .82rem; color: var(--muted); margin: 0 0 .3rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--pumpkin-ink); text-decoration: underline; cursor: pointer; }

/* week: seven columns at every screen size; phones get tighter type */
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .5rem 0; }
.week-nav b { font-size: 1.05rem; text-align: center; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.week-day { display: flex; flex-direction: column; min-width: 0; min-height: 320px; padding: 0 .3rem .4rem; border-left: 1px solid var(--line-soft); }
.week-day:first-child { border-left: 0; }
.week-day.tday { background: color-mix(in srgb, var(--gold) 18%, var(--surface)); }
.week-head { position: relative; display: flex; flex-direction: column; align-items: center; gap: .1rem; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line-soft); font: inherit; color: var(--ink); padding: .45rem 0 .35rem; margin-bottom: .15rem; cursor: pointer; line-height: 1.1; }
.week-head .wd { font-weight: 700; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.week-head .wn { font-weight: 800; font-size: 1.15rem; min-width: 1.9em; padding: .1rem .2rem; border-radius: 999px; text-align: center; }
.week-day.today .wn { background: var(--accent); color: var(--on-accent); }
.week-head .tg { position: absolute; top: .4rem; right: .25rem; font-size: .85rem; line-height: 1; }
.week-head .plus { color: var(--muted); font-size: .8rem; line-height: 1; opacity: 0; }
.week-head:hover .plus, .week-head:focus-visible .plus { opacity: 1; }
.week-body { flex: 1; cursor: pointer; }
.week-body .nothing { color: var(--muted); opacity: .5; text-align: center; margin: .4rem 0 0; }
.week-body .event-row { flex-direction: column; align-items: stretch; gap: .1rem; min-height: 0; margin: .3rem 0; padding: .35rem .4rem; border-left-width: 4px; border-radius: 8px; font-size: .8rem; line-height: 1.2; }
.week-body .event-time { width: auto; font-size: .72rem; }
.week-body .event-row.allday { background: color-mix(in srgb, var(--c) 24%, var(--surface)); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.week-body .event-row.allday .event-time { display: none; }
.week-body .event-main b { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.week-body .event-main small { display: none; }
.week-body .count { font-size: .7rem; }
.week-body .meal-block { margin: .2rem 0 .4rem; }
.week-body .meal-head { font-size: .8rem; margin: .3rem 0 .15rem; gap: .2rem .3rem; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; min-width: 0; }
.week-body .house-tag { font-size: .62rem; letter-spacing: .02em; padding: 0 .35rem; overflow-wrap: anywhere; }
.week-body .food-row { flex-direction: column; align-items: stretch; min-width: 0; gap: .15rem; min-height: 0; padding: .35rem .4rem; margin: .25rem 0; border-radius: 8px; font-size: .8rem; line-height: 1.2; }
.week-body .food-emoji { font-size: 1rem; line-height: 1.1; }
.week-body .food-row .status { align-self: flex-start; }
.week-body .food-main b { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.week-body .food-main small { display: none; }
.week-body .status { font-size: .66rem; padding: .05rem .35rem; }
@media (hover: none) { .week-head .plus { opacity: .7; } }
@media (max-width: 599px) {
  .cal-weekwrap { margin: 0 -.75rem; }
  .cal-week { border-radius: 12px; }
  .week-day { min-height: 280px; padding: 0 1px .3rem; }
  .week-head { padding: .4rem 0 .3rem; }
  .week-head .wd { font-size: .6rem; letter-spacing: .02em; }
  .week-head .wn { font-size: 1rem; }
  .week-head .tg, .week-head .plus { display: none; }
  .week-body .event-row { padding: .25rem 1px .3rem .2rem; margin: .2rem 0; border-left-width: 3px; border-radius: 6px; font-size: .62rem; line-height: 1.15; gap: .05rem; }
  .week-body .event-time { font-size: .58rem; }
  .week-body .event-main b { font-weight: 600; }
  .week-body .count { display: none; }
  .week-body .meal-head { font-size: .56rem; justify-content: center; text-align: center; gap: .15rem; }
  .week-body .house-tag { font-size: 0; width: 8px; height: 8px; padding: 0; background: var(--c); }
  .week-body .food-row { padding: .25rem 1px .3rem .2rem; margin: .2rem 0; border-radius: 6px; font-size: .62rem; line-height: 1.15; gap: .1rem; }
  .week-body .food-emoji { font-size: .85rem; }
  .week-body .food-main b { font-weight: 650; }
  .week-body .status { font-size: .56rem; padding: 0 .25rem; }
}

.agenda-day { margin: 0 0 1rem; }
.agenda-day.today .day-head { color: var(--pumpkin-ink); }
.agenda-day.tday .day-head::after { content: ''; }
.day-head { font-size: 1rem; margin: 1rem 0 .4rem; position: sticky; top: 0; background: var(--page); padding: .35rem 0; z-index: 2; }
.day-head-row { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--page); z-index: 2; }
.day-head-row .day-head { position: static; }
.event-row { display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 12px; padding: .65rem .75rem; margin: .35rem 0; min-height: 56px; }
.event-row:hover { border-color: var(--c); }
.event-time { flex: none; width: 3.6rem; font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.event-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.event-main small { color: var(--muted); }
.count { flex: none; font-size: .8rem; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 1rem 0; font-size: .85rem; color: var(--ink-2); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: .35rem; }
.type-pill { display: inline-block; padding: .1rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--c) 18%, var(--surface)); border: 1px solid var(--c); font-size: .85rem; font-weight: 600; }
.event-detail { border-left: 5px solid var(--c); padding-left: .8rem; margin-bottom: 1rem; }
.big-when { font-size: 1.1rem; font-weight: 700; }
.notes, .recipe-text, .comment-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.byline { color: var(--muted); font-size: .8rem; margin-top: .5rem; }
.chips-pick { display: flex; flex-wrap: wrap; gap: .35rem; margin: -.4rem 0 .8rem; }
.chip.pick { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: .3rem .7rem; font: inherit; font-size: .85rem; cursor: pointer; color: var(--ink); min-height: 34px; }
.copy-row { display: flex; gap: .5rem; margin: .5rem 0; }
.feed-out .btn { margin: .3rem 0; }

/* ── food / menu ── */
.meal-block { margin: .25rem 0 .75rem; }
.meal-head { font-size: .95rem; margin: .4rem 0 .2rem; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.house-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--c); border: 1px solid var(--c); border-radius: 999px; padding: .05rem .5rem; }
.house-block { margin: 0 0 .4rem .25rem; }
.house-name { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--c); margin: .3rem 0 .15rem; }
.food-row { display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin: .3rem 0; color: var(--ink); text-decoration: none; min-height: 54px; }
.food-row:hover { border-color: var(--accent); }
.food-emoji { font-size: 1.5rem; flex: none; }
.food-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.food-main small { color: var(--muted); }
.status { flex: none; font-size: .8rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.status.done { background: var(--ok-bg); color: var(--ok); }
.status.missing { background: var(--warn-bg); color: var(--warn); }
.status.none { background: var(--none-bg); color: var(--muted); font-weight: 600; }
.item-head { display: flex; gap: 1rem; align-items: flex-start; }
.item-emoji { font-size: 3rem; line-height: 1; }
.ing-list { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.ing-row { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line); border-radius: 12px; padding: .2rem .6rem .2rem .2rem; background: var(--surface); }
.ing-row.got .ing-name { text-decoration: line-through; color: var(--muted); }
.ing-check { display: grid; place-items: center; min-width: 44px; min-height: 44px; cursor: pointer; }
.ing-main { flex: 1; display: flex; flex-direction: column; text-align: left; background: none; border: 0; font: inherit; color: var(--ink); padding: .4rem 0; cursor: pointer; min-width: 0; }
.ing-main small { color: var(--muted); }
.got-by { color: var(--ok) !important; }
.sec-tag { flex: none; font-size: 1.1rem; }
.ing-edit, .ing-add { border: 1px dashed var(--input-line); border-radius: 12px; padding: .6rem; background: var(--surface-2); }
.ing-fields { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .5rem; }
.quick-add { display: flex; gap: .4rem; }
.quick-add input { flex: 1; min-width: 0; }
.quick-add .btn { flex: none; }
.ing-more { margin-top: .45rem; }
.ing-more summary { cursor: pointer; color: var(--muted); font-size: .88rem; padding: .3rem 0; }
.ing-more[open] { display: flex; flex-direction: column; gap: .4rem; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; margin-bottom: .5rem; }
.file { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.file img { width: 100%; height: 110px; object-fit: cover; display: block; }
.file-doc { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 110px; text-decoration: none; font-size: 2rem; gap: .2rem; padding: .3rem; }
.file-doc span { font-size: .75rem; word-break: break-all; text-align: center; }
.file-meta { display: flex; align-items: center; justify-content: space-between; padding: 0 .3rem; }

/* ── discussion ── */
.discussion { margin: 1.25rem 0; }
.thread { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .75rem; }
.comment { display: flex; gap: .6rem; align-items: flex-start; }
.comment-main { flex: 1; min-width: 0; background: var(--surface-2); border-radius: 4px 14px 14px 14px; padding: .45rem .7rem; }
.comment-head { font-size: .85rem; }
.comment-tools { display: flex; gap: .25rem; margin: -.2rem 0 -.3rem -.4rem; }
.comment-form { display: flex; gap: .5rem; align-items: flex-end; }
.comment-form textarea { flex: 1; }

/* ── shopping ── */
.shop-section { margin-bottom: 1.25rem; }
.shop-head { font-size: 1.05rem; position: sticky; top: 0; background: var(--page); padding: .4rem 0; z-index: 2; margin: 0; }
.shop-head small { color: var(--muted); font-weight: 600; }
.shop-group { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: .4rem 0; overflow: hidden; }
.shop-group.done { opacity: .7; }
.group-head { display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; background: var(--surface-2); }
.times { font-weight: 800; color: var(--pumpkin-ink); }
.shop-line { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem .75rem; cursor: pointer; min-height: 52px; }
.shop-line + .shop-line { border-top: 1px solid var(--line-soft); }
.shop-line input { margin-top: .15rem; }
.shop-line.sub { padding-left: 1.25rem; }
.shop-main { display: flex; flex-direction: column; min-width: 0; }
.shop-line.got .shop-name { text-decoration: line-through; color: var(--muted); }
.shop-for { font-size: .82rem; color: var(--muted); text-decoration: none; }
.shop-for:hover { text-decoration: underline; }
.shop-for.link { background: none; border: 0; padding: 0; font: inherit; font-size: .82rem; text-align: left; cursor: pointer; }
.shop-house { margin-bottom: 1.5rem; border-left: 4px solid var(--c); padding-left: .65rem; }
.house-head { font-size: 1.15rem; margin: .25rem 0 .1rem; }
.house-head small, .shop-head small { color: var(--muted); font-weight: 600; }
.shop-section.sub-aisle { margin-bottom: .75rem; }
.shop-section.sub-aisle .shop-head { font-size: .95rem; }
form.stack { display: flex; flex-direction: column; gap: .6rem; }

/* ── games ── */
.game-list { display: grid; gap: .75rem; }
.game-card { display: flex; gap: 1rem; align-items: center; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.game-card span:last-child { display: flex; flex-direction: column; }
.game-card small { color: var(--muted); }
.game-emoji { font-size: 2.4rem; }
.players { display: flex; flex-wrap: wrap; gap: .4rem; }
.player { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem .25rem .3rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font: inherit; color: var(--ink); cursor: pointer; min-height: 40px; }
.player.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.player .x { margin-left: .2rem; opacity: .7; padding: 0 .2rem; }
.add-guest input { min-height: 40px; width: 12rem; border-radius: 999px; }
.spice { display: flex; align-items: center; gap: .6rem; }
.spice input { flex: 1; }
.spice-label { text-align: center; }
.deal-buttons { display: grid; grid-template-columns: 2fr 1fr; gap: .5rem; margin: 1rem 0; }
.card-table { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.black-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; text-align: left; aspect-ratio: 5 / 7; max-height: 420px;
  background: #141010; color: #fff; border-radius: 16px; padding: 1.2rem; border: 0; font: inherit; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.black-card .bc-text { font-size: 1.35rem; font-weight: 800; line-height: 1.25; font-family: "Helvetica Neue", Arial, sans-serif; overflow-wrap: anywhere; }
.black-card .bc-foot { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; opacity: .85; gap: .5rem; }
.black-card .bc-foot b { background: #fff; color: #141010; border-radius: 50px; padding: .1rem .5rem; }
.black-card.top { outline: 3px solid var(--gold); }
.bc-full { position: fixed; inset: 0; z-index: 100; background: rgba(10, 6, 4, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.25rem; }
.black-card.full { width: min(92vw, 60vh); max-height: none; cursor: default; }
.black-card.full .bc-text { font-size: clamp(1.6rem, 6vw, 2.6rem); }
.bc-hint { color: #fff; opacity: .6; margin-top: 1rem; }
.sup-add { display: flex; gap: .5rem; }
.sup-add input { flex: 1; min-width: 0; }
.sup-ideas { margin: 0; }
.sup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.sup-head h2 { margin: .35rem 0 0; font-size: 1.2rem; overflow-wrap: anywhere; }
.sup-head h2::before { content: '🏆 '; }
.sup-progress { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin: .8rem 0; }
.sup-dots { display: flex; gap: 5px; }
.sup-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.sup-dots i.on { background: var(--gold); }
.sup-results ol { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .5rem; }
.sup-winner { font-size: 1.15rem; font-weight: 700; margin: .6rem 0 .2rem; }
.sup-result { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; }
.sup-name { display: flex; flex-direction: column; gap: .2rem; min-width: 0; overflow-wrap: anywhere; }
.sup-bar { display: block; height: 8px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.sup-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.sup-result.win .sup-bar i { background: var(--gold); }
.sup-result.win .sup-name > span:first-child { font-weight: 700; }
.sup-count { min-width: 1.5rem; text-align: right; }
.sup-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: .7rem; margin-top: .4rem; }
.sup-voters { display: flex; align-items: center; padding-left: 6px; }
.sup-voters .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.sup-mine { display: inline-flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.vote-picks { margin-bottom: .5rem; }

/* ── me / admin / activity ── */
.me-card { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.place-row, .account-row, .deleted-row { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line-soft); }
.place-row span, .deleted-row span:first-child { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.deleted-row:last-child { border-bottom: 0; }
.log-day { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 1rem 0 .1rem; }
.log-day:first-of-type { margin-top: .2rem; }
.log-row { display: flex; align-items: flex-start; gap: .65rem; padding: .6rem 0; border-bottom: 1px solid var(--line-soft); }
.log-group .log-row:last-child { border-bottom: 0; }
.log-row > .avatar { margin-top: 2px; }
.log-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; line-height: 1.35; }
.log-who { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.log-who b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-who time { flex: none; font-size: .78rem; color: var(--muted); }
.log-what { color: var(--ink-2); overflow-wrap: anywhere; }
.log-row.linked { color: inherit; text-decoration: none; }
.log-row.linked:hover .log-what { color: var(--ink); }
.log-row.linked:hover .log-go { color: var(--accent); }
.log-go { flex: none; width: .7rem; align-self: center; text-align: right; color: var(--muted); font-size: 1.3rem; line-height: 1; }

/* ── sheets & toasts ── */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(30, 18, 10, .45); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
.overlay.show { opacity: 1; }
.sheet { background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 0 1rem calc(1rem + env(safe-area-inset-bottom)); transform: translateY(30px); transition: transform .2s; overscroll-behavior: contain; }
.sheet.wide { max-width: 760px; }
.overlay.show .sheet { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--surface); padding: .75rem 0 .5rem; z-index: 1; gap: .5rem; }
.sheet-head h2 { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 20px; } }
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; transition: .25s; z-index: 200;
  background: var(--brown); color: #fff; padding: .65rem 1rem; border-radius: 12px; box-shadow: var(--shadow); display: flex; gap: .75rem; align-items: center; width: max-content; max-width: calc(100vw - 2rem); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }
.toast-action { background: none; border: 1px solid rgba(255,255,255,.6); color: #fff; border-radius: 8px; padding: .25rem .6rem; font: inherit; font-weight: 700; cursor: pointer; }
.update-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 300; background: var(--accent); color: var(--on-accent); border: 0; padding: .7rem; font: inherit; font-weight: 700; cursor: pointer; }
.label-strong { font-weight: 700; margin-top: .5rem; }
.sticky-submit { position: sticky; bottom: 0; background: var(--surface); padding: .6rem 0 .2rem; margin-top: .5rem; }

/* ── meal planner ── */
.unscheduled h2 { font-size: 1rem; margin: 0; }
.tray { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--gold) 16%, var(--surface)); border: 1.5px dashed var(--gold); border-radius: var(--radius);
  padding: .5rem .6rem; margin: .5rem 0 1rem; box-shadow: var(--shadow); }
.tray-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.tray-dishes { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
@media (min-width: 760px) { .tray-dishes { flex-wrap: wrap; overflow: visible; } }
.dish-chip { flex: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; max-width: 16rem; padding: .35rem .6rem; border-radius: 12px; font: inherit; font-size: .9rem;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(74, 44, 26, .1); cursor: grab; text-align: left;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.dish-chip .dish-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dish-chip small { color: var(--muted); white-space: nowrap; }
.dish-chip .status { font-size: .75rem; }
.dish-chip.dragging { opacity: .3; }
.drag-ghost { position: fixed; z-index: 1000; pointer-events: none; margin: 0; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); border-color: var(--accent); opacity: .95; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
.drop-hint { color: var(--muted); font-size: .82rem; padding: .35rem .2rem; }
.plan-more { display: flex; justify-content: center; margin: .4rem 0; }
.plan-day { margin: 0 0 1rem; }
.plan-day-head { font-size: 1rem; margin: .8rem 0 .4rem; }
.plan-day.tday .plan-day-head { color: var(--cranberry); }
.plan-day.today .plan-day-head { color: var(--pumpkin-ink); }
.slots { display: grid; gap: .45rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.slot { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 12px; padding: .4rem .5rem .5rem; transition: background .12s, box-shadow .12s; }
.slot.open { background: var(--surface-2); }
.slot-head { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-bottom: .3rem; font-size: .9rem; }
.house-pick { max-width: 11rem; font-size: .8rem; min-height: 34px; padding: .15rem .4rem; }
.slot-dishes { display: flex; flex-wrap: wrap; gap: .35rem; min-height: 44px; align-items: center; }
.slot.open { padding-bottom: .4rem; }
.slot.open .slot-head { margin-bottom: 0; }
.slot.open .slot-dishes { min-height: 0; }
.slot.open .drop-hint { display: none; }
body.is-dragging .slot.open .slot-dishes { min-height: 40px; }
body.is-dragging .slot.open .drop-hint { display: inline; }
.slot.over, .tray.over { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); box-shadow: 0 0 0 2px var(--accent); }

/* ── calendar header (compact) ── */
.cal-head .title-row { margin-bottom: .25rem; flex-wrap: nowrap; }
.cal-head h1 small { font-size: .9rem; font-family: inherit; }
.more-btn { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.cal-bar { display: flex; gap: .4rem; margin: .35rem 0; }
.cal-bar .seg { flex: none; }
.cal-bar .seg:last-child { flex: 1; }
.cal-bar .seg:last-child button { flex: 1; justify-content: center; }
.cal-bar .seg button { padding: .35rem .65rem; min-height: 38px; font-size: .9rem; }
.filter-btn { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; min-height: 40px; margin: .35rem 0 .1rem; padding: .3rem .4rem .3rem .75rem;
  font: inherit; font-size: .88rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; text-align: left; }
.filter-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-btn b { flex: none; color: var(--pumpkin-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: .2rem .65rem; border-radius: 9px; }
.show-chips.wrap { flex-wrap: wrap; overflow: visible; }
.month-label { justify-content: center; }
.hidden-day { display: block; width: 100%; margin: .3rem 0 0; padding: .2rem .25rem; font: inherit; font-size: .75rem; line-height: 1.15; color: var(--muted); background: none;
  border: 1px dashed var(--input-line); border-radius: 8px; cursor: pointer; text-align: center; }
.hidden-day b { color: var(--ink-2); }
.day-head-row .hidden-day { width: auto; margin: 0; padding: .3rem .6rem; min-height: 34px; }
.more.hid { font-style: italic; }
.event-row.was-hidden { opacity: .8; border-style: dashed; border-left-style: solid; }
@media (max-width: 599px) {
  .week-body .hidden-day { font-size: .58rem; padding: .15rem 0; }
  .week-body .hidden-day span { display: block; }
}
.fab { position: fixed; right: 1rem; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 15; display: inline-flex; align-items: center; gap: .1rem; min-height: 50px; padding: 0 1.1rem;
  font: inherit; font-weight: 700; font-size: 1rem; color: var(--on-accent); background: var(--accent); border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 6px 18px rgba(74, 44, 26, .3); }
.fab:hover { background: var(--accent-hover); }
.fab-space { height: 64px; }
@media (min-width: 900px) { .fab { bottom: 2rem; right: 2rem; } .fab-space { height: 0; } }
.menu-list { display: flex; flex-direction: column; gap: .4rem; }
.menu-item { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; width: 100%; min-height: 50px; justify-content: center; padding: .5rem .85rem; font: inherit; font-weight: 600;
  color: var(--ink); text-decoration: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; text-align: left; }
.menu-item small { font-weight: 400; color: var(--muted); }
.menu-item:hover { border-color: var(--accent); }
.year-switch .btn { min-height: 40px; }
.sheet .year-switch { justify-content: space-between; gap: .5rem; }
.bc-settings { padding: 0; }
.bc-settings > summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 50px; padding: .5rem 1rem; cursor: pointer; list-style: none; font-weight: 600; }
.bc-settings > summary::-webkit-details-marker { display: none; }
.bc-settings > summary b { color: var(--pumpkin-ink); font-size: .9rem; }
.bc-settings[open] > summary b { visibility: hidden; }
.bc-settings > :not(summary) { margin-left: 1rem; margin-right: 1rem; }
.bc-settings > :last-child { margin-bottom: 1rem; }
.card-table .black-card { max-height: 46vh; width: 100%; }
@media (max-width: 599px) { .card-table { grid-template-columns: 1fr; } .card-table .black-card { aspect-ratio: auto; min-height: 15rem; } }
.shop-bar { align-items: center; }
.shop-bar .seg:first-child { flex: 1; }
.shop-bar .seg:first-child button { flex: 1; justify-content: center; }
.toggle-chip { flex: none; min-height: 38px; padding: .3rem .75rem; border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); }
.toggle-chip.on { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.shop-bar .more-btn { font-size: 1.2rem; flex: none; }

/* ── home ── */
.home-card h2 { margin-bottom: .4rem; }
.home-sub { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: .7rem 0 .2rem; }
.home-events { display: flex; flex-direction: column; gap: .35rem; }
.home-event { display: flex; align-items: center; gap: .4rem; border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 12px; background: var(--surface); }
.home-event.live { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 50%, transparent); }
.home-event-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; color: var(--ink); text-decoration: none; min-height: 52px; }
.he-time { flex: none; width: 3.4rem; font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.he-text { display: flex; flex-direction: column; min-width: 0; }
.he-text small { color: var(--muted); }
.flight-link { flex: none; margin-right: .5rem; padding: .3rem .55rem; border-radius: 9px; font-size: .8rem; font-weight: 700; text-decoration: none; background: var(--surface-2); white-space: nowrap; }
.home-link { display: block; color: var(--ink); text-decoration: none; }
.home-link:hover { border-color: var(--accent); }
.home-link .go { color: var(--pumpkin-ink); font-weight: 600; font-size: .9rem; }
.home-meal { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.home-meal:last-child { border-bottom: 0; }
.countdown { display: flex; align-items: center; gap: 1rem; position: relative; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 30%, var(--surface)), color-mix(in srgb, var(--accent) 22%, var(--surface))); }
.countdown > div:nth-child(2) { display: flex; flex-direction: column; }
.countdown b { font-size: 1.1rem; }
.countdown small { color: var(--ink-2); }
.cd-num { font-size: 3rem; font-weight: 800; line-height: 1; font-family: Georgia, serif; color: var(--pumpkin-ink); min-width: 3.5rem; text-align: center; }
.cd-turkey { position: absolute; right: -.4rem; bottom: -.9rem; font-size: 4.5rem; opacity: .25; transform: rotate(-12deg); }
.claim { flex: none; align-self: center; margin-left: auto; max-width: 7.5rem; min-height: 34px; padding: .2rem .6rem; border-radius: 999px; font: inherit; font-size: .78rem; font-weight: 700;
  color: var(--pumpkin-ink); background: transparent; border: 1px dashed var(--input-line); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.claim.mine { color: var(--on-accent); background: var(--accent); border: 1px solid var(--accent); }
.claim.other { color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); }
.ing-row .claim { margin-left: 0; }
.needs-cook { color: var(--pumpkin-ink); }

/* ── cook timeline ── */
.cook-gantt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .5rem .2rem; margin: .75rem 0; box-shadow: var(--shadow); overflow-x: auto; }
.cook-axis, .cook-lane { display: grid; grid-template-columns: 5.5rem minmax(calc(var(--hours) * 2.6rem), 1fr); align-items: stretch; gap: .4rem; }
.cook-lane { border-top: 1px solid var(--line-soft); padding: .3rem 0; border-radius: 8px; transition: background .12s; }
.cook-lane.over { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.cook-lane-name { display: flex; align-items: center; font-weight: 700; font-size: .85rem; min-width: 0; overflow-wrap: anywhere; }
.cook-lane-name i { color: var(--muted); font-weight: 600; }
.cook-track { position: relative; min-height: calc(var(--rows, 1) * 48px + 4px); }
.cook-track.axis { min-height: 1.3rem; }
.tick { position: absolute; top: 0; transform: translateX(-50%); font-size: .68rem; color: var(--muted); white-space: nowrap; }
.gridline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-soft); }
.cook-block { position: absolute; top: calc(var(--row, 0) * 48px + 3px); height: 44px; min-width: 2.2rem; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: .15rem .35rem; overflow: hidden;
  text-align: left; font: inherit; font-size: .75rem; line-height: 1.15; color: var(--ink); background: color-mix(in srgb, var(--accent) 22%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line));
  border-radius: 8px; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: pan-x pan-y; }
.cook-block b, .cook-block small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cook-block small { color: var(--ink-2); font-size: .68rem; }
.cook-block.clash { background: color-mix(in srgb, var(--danger) 20%, var(--surface)); border: 2px solid var(--danger); }
.cook-block.dragging { opacity: .3; }
.clash-list { margin: .75rem 0; }
.clash-list ul { margin: .3rem 0; padding-left: 1.2rem; }
.cook-steps { display: flex; flex-direction: column; gap: .35rem; }
.cook-step { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem .7rem; min-height: 52px; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.cook-step:hover { border-color: var(--accent); }
.cook-step.clash { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.cs-time { flex: none; width: 4.6rem; font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.cs-main { display: flex; flex-direction: column; min-width: 0; }
.cs-main small { color: var(--muted); }
.oven-house { margin: .6rem 0; }
.oven-house .chips-pick { margin: .3rem 0 0; }
.chip.pick.add { border-style: dashed; color: var(--pumpkin-ink); }

/* ── bingo ── */
.bingo-head { margin: .5rem 0; }
.bingo-winner { margin: .5rem 0; padding: .8rem 1rem; border-radius: var(--radius); font-weight: 800; font-size: 1.15rem; text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--accent)); color: #2e1d12; }
.bingo-winner small { font-weight: 600; }
.bingo-card { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: .5rem 0 1rem; }
.bingo-letter { text-align: center; font-weight: 900; font-size: 1.3rem; font-family: Georgia, serif; color: var(--pumpkin-ink); }
.bingo-sq { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 3px; font: inherit; font-size: .64rem; line-height: 1.12; font-weight: 600; text-align: center;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; overflow: hidden; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.bingo-sq.on { background: color-mix(in srgb, var(--accent) 30%, var(--surface)); border-color: var(--accent); }
.bingo-sq.win { background: var(--gold); color: #2e1d12; border-color: var(--gold); }
.bingo-sq.free { font-size: .8rem; cursor: default; }
.bingo-sq:disabled { opacity: 1; }
@media (min-width: 560px) { .bingo-sq { font-size: .78rem; padding: 6px; } }
.bingo-players { display: flex; flex-direction: column; gap: .4rem; }
.bingo-player { display: flex; align-items: center; gap: .5rem; }

/* ── pick'em, quotes ── */
.pk h2 { font-size: 1.1rem; }
.pk-options { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; }
.pk-opt { flex: 1 1 8rem; min-height: 48px; padding: .5rem .8rem; font: inherit; font-weight: 700; color: var(--ink); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.pk-opt.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pk-tb { display: flex; align-items: flex-end; gap: .5rem; }
.pk-tb label { flex: 1; display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; color: var(--ink-2); }
.pk-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .5rem; margin: .5rem 0; }
.pk-col { background: var(--surface-2); border-radius: 12px; padding: .5rem .6rem; }
.pk-col.win { background: var(--ok-bg); }
.pk-who { display: flex; flex-direction: column; gap: .25rem; margin-top: .3rem; }
.pk-person { display: flex; align-items: center; gap: .35rem; font-size: .88rem; }
.pk-result { font-weight: 700; }
.pk-board { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.pk-board li { display: flex; align-items: center; gap: .6rem; }
.pk-board li > span { flex: 1; min-width: 0; }
.pk-pts { font-size: 1.2rem; color: var(--pumpkin-ink); }
.quote blockquote { margin: .2rem 0; font-family: Georgia, serif; font-size: 1.15rem; line-height: 1.35; overflow-wrap: anywhere; }
.quote.right { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.quote.wrong { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.quote-by { display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; }

/* ── thankful wall ── */
.thank-form textarea { margin-bottom: .2rem; }
.thank-note { padding: .5rem 0; border-bottom: 1px solid var(--line-soft); }
.thank-note:last-child { border-bottom: 0; }
.thank-note p { margin: .2rem 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.thank-by { display: flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .9rem; }
.reveal { color: #fff; text-align: center; }
.reveal-close { position: absolute; top: calc(.5rem + env(safe-area-inset-top)); right: .5rem; color: #fff; }
.reveal-stage { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 40rem; }
.reveal-text { font-family: Georgia, serif; font-size: clamp(1.4rem, 5.5vw, 2.4rem); line-height: 1.3; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.reveal-q { opacity: .7; margin: 0; }
.reveal-count { opacity: .6; }
.reveal-author { display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: 1.5rem; margin: 0; }
.reveal .btn.link { color: #fff; opacity: .7; }

/* ── rate the dishes ── */
.rate-crowns p { margin: .25rem 0; }
.rate-list { display: flex; flex-direction: column; gap: .4rem; margin: .75rem 0; }
.rate-row { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.rate-main { flex: 1 1 8rem; display: flex; flex-direction: column; min-width: 0; }
.stars { display: flex; flex: none; }
.star { width: 38px; height: 44px; padding: 0; font-size: 1.6rem; line-height: 1; color: var(--line); background: none; border: 0; cursor: pointer; }
.star.on { color: var(--gold); }
.pk .sup-head h2::before, .quote .sup-head h2::before { content: none; }
