/* Alfred — the Voorhees family butler.
   The dark "manor library" look the family already knows: olive-black surfaces, cream
   ink, one brass accent for actions and selection, green for done. Serif only for the
   Alfred wordmark and the greeting; everything a person reads or taps is the system sans.
   Scene: Mom on her iPhone in the kitchen at 6pm, the boys on phones and Chromebooks,
   Dad glancing at the money at night — low light, one hand, a few seconds at a time. */
:root {
  color-scheme: dark;
  --bg: #13150e;
  --surface: #1b1e15;
  --surface-2: #23271c;
  --surface-3: #2c3124;
  --line: #31372a;
  --line-strong: #464d3a;
  --ink: #eee9da;
  --ink-2: #bdb7a2;
  --ink-3: #928d78;
  --brass: #c9a76a;
  --brass-strong: #dcbc80;
  --brass-ink: #1a1508;
  --brass-soft: rgba(201, 167, 106, .13);
  --green: #93b393;
  --green-deep: #3f5a45;
  --green-soft: rgba(147, 179, 147, .14);
  --danger: #e38b76;
  --danger-soft: rgba(227, 139, 118, .13);
  --warn: #e3b55c;
  --warn-soft: rgba(227, 181, 92, .13);
  /* family members — validated categorical set (dark), always shown with a name */
  --p-mom: #3987e5; --p-dad: #d95926; --p-zaden: #199e70; --p-kyler: #c98500;
  --p-ace: #d55181; --p-knox: #3a9a3a; --p-javen: #9085e9; --p-other: #7d7866;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --tab-h: 58px;
  --z-nav: 20; --z-bubble: 30; --z-backdrop: 40; --z-sheet: 50; --z-toast: 60; --z-auth: 70;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }
body { font: 15px/1.5 var(--sans); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--brass-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 6px; }
::placeholder { color: var(--ink-3); opacity: 1; }
.hidden, [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; line-height: 1.25; }

/* ---------- shell ---------- */
#app { min-height: 100dvh; display: flex; }
#side { display: none; }
#main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#top { position: sticky; top: 0; z-index: var(--z-nav); display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-t)) 16px 10px; background: rgba(19, 21, 14, .92); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
#top h1 { font-size: 19px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); flex-shrink: 0; }
.iconbtn:hover { background: var(--surface-2); color: var(--ink); }
.iconbtn svg { width: 22px; height: 22px; }
.dot { position: absolute; top: 6px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--brass); color: var(--brass-ink); font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; background: var(--p-other); }
.avatar.sm { width: 22px; height: 22px; font-size: 10.5px; }
.avatar.lg { width: 44px; height: 44px; font-size: 17px; }
#view { flex: 1; padding: 16px 16px calc(var(--tab-h) + 96px + var(--safe-b)); max-width: 880px; width: 100%; margin: 0 auto; }
#view.wide { max-width: 1180px; }

#tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav); display: flex; background: rgba(22, 25, 17, .96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
#tabs a { flex: 1; height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-3); font-size: 10.5px; font-weight: 600; letter-spacing: .01em; text-decoration: none; position: relative; }
#tabs a svg { width: 23px; height: 23px; }
#tabs a.on { color: var(--brass-strong); }
#tabs a .dot { top: 4px; right: calc(50% - 22px); }

@media (min-width: 900px) {
  #tabs { display: none; }
  #side { display: flex; flex-direction: column; width: 236px; flex-shrink: 0; position: sticky; top: 0; height: 100dvh; padding: 18px 12px;
    background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
  #side .brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 20px; }
  #side .brand img { width: 38px; height: 38px; }
  #side .brand b { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: .01em; }
  #side nav { display: flex; flex-direction: column; gap: 2px; }
  #side nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; text-decoration: none; position: relative; }
  #side nav a svg { width: 20px; height: 20px; flex-shrink: 0; }
  #side nav a:hover { background: var(--surface-2); color: var(--ink); }
  #side nav a.on { background: var(--brass-soft); color: var(--brass-strong); }
  #side nav a .dot { position: static; margin-left: auto; }
  #side .sep { height: 1px; background: var(--line); margin: 12px 10px; }
  #side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--ink-2); text-decoration: none; }
  #side .me:hover { background: var(--surface-2); }
  #top { padding-left: 24px; padding-right: 24px; }
  #top .mobile-only { display: none; }
  #view { padding: 24px 28px 110px; }
}

/* ---------- type + blocks ---------- */
.greet { font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.2; letter-spacing: .005em; }
.sub { color: var(--ink-2); }
.meta { color: var(--ink-3); font-size: 13px; }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.section { margin-top: 26px; }
.section:first-child { margin-top: 0; }
.sh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.sh h2 { font-size: 17px; flex: 1; }
.sh .link { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--brass-strong); font-weight: 500; }
.sh .link svg { width: 15px; height: 15px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pad { padding: 14px 16px; }
.stack > * + * { margin-top: 10px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.note { background: var(--surface-2); border-radius: var(--r); padding: 11px 14px; color: var(--ink-2); font-size: 14px; }
.note.warn { background: var(--warn-soft); color: #f0d7a5; }
.note.bad { background: var(--danger-soft); color: #f3c3b6; }
.note.good { background: var(--green-soft); color: #cfe2cf; }
.empty { text-align: center; padding: 28px 18px; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* list rows */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); min-height: 52px; }
.item:first-child { border-top: 0; }
.item .grow { flex: 1; min-width: 0; }
.item .t { font-weight: 500; overflow-wrap: anywhere; }
.item.done .t { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.item.tap { cursor: pointer; }
.item.tap:hover { background: var(--surface-2); }
.item.tap:active, .night:active { background: var(--surface-3); }
button.chip { transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease); }
button.chip:active { transform: scale(.97); }
.how { background: var(--brass-soft); border: 1px solid rgba(201, 167, 106, .3); border-radius: var(--r-lg); padding: 12px 16px 14px; }
.how .how-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.how ol { margin: 8px 0 0 20px; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink); }
.how ol li::marker { color: var(--brass-strong); font-weight: 700; }
.gsteps { display: grid; gap: 16px; }
.gstep { display: flex; gap: 12px; align-items: flex-start; }
.gstep .gn { width: 30px; height: 30px; border-radius: 50%; background: var(--brass); color: var(--brass-ink); font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.gstep .t { font-weight: 650; font-size: 16px; }
.gstep p { margin: 2px 0 8px; font-size: 14.5px; }
.sh h2 svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--brass-strong); }
.todo { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.todo .td-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brass-soft); color: var(--brass-strong); flex-shrink: 0; }
.todo .td-ic svg { width: 22px; height: 22px; }
.todo .t { font-weight: 650; font-size: 16px; }
.todo a.chip { text-decoration: none; color: var(--brass-strong); border-color: rgba(201, 167, 106, .45); }
.glance .gv { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; margin: 2px 0 10px; }
.glance .gv.over { color: var(--danger); }
.gbar { height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; margin-bottom: 8px; }
.gbar i { display: block; height: 100%; background: var(--brass); border-radius: 5px; }
.calnote { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.calnote svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 2px; color: var(--brass); }
.night .quickskip { margin-top: 8px; gap: 6px; }
.night .quickskip .chip { color: var(--ink-2); }
.skipchips .chip { flex: 1; justify-content: center; min-height: 40px; }
.earlynote { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: 13px; color: var(--warn); }
.earlynote svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.earlynote b { font-weight: 650; }
.chip.off { opacity: .55; }
.chip.off .avatar { filter: grayscale(1); }
.rthumb { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; font-size: 22px; background: var(--surface-2); border: 1px solid var(--line); }
.gitem .gmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.gitem .gmeta .meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.gitem .iconbtn { color: var(--ink-3); }
.item .end { text-align: right; flex-shrink: 0; }
.item .amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.item .amt.plus { color: var(--green); }
.group-h { padding: 14px 14px 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.list .group-h { border-top: 1px solid var(--line); background: var(--surface); }
.list .group-h:first-child { border-top: 0; }

/* checkbox */
.check { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line-strong); flex-shrink: 0; display: grid; place-items: center; color: transparent; transition: background .18s var(--ease), border-color .18s var(--ease); }
.check svg { width: 16px; height: 16px; }
.check:hover { border-color: var(--brass); }
.done .check, .check.on { background: var(--green-deep); border-color: var(--green); color: #eaf3ea; }

/* chips / pills */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { max-width: 100%; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; line-height: 1.3; }
button.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.on { background: var(--brass-soft); border-color: rgba(201, 167, 106, .55); color: var(--brass-strong); }
.chip.tiny { padding: 2px 8px; font-size: 12px; }
.chip.good { background: var(--green-soft); border-color: rgba(147, 179, 147, .4); color: #cfe2cf; }
.chip.bad { background: var(--danger-soft); border-color: rgba(227, 139, 118, .45); color: #f3c3b6; }
.chip.warn { background: var(--warn-soft); border-color: rgba(227, 181, 92, .45); color: #f0d7a5; }
.chip.ghost { background: none; border-style: dashed; font-style: italic; }
.pdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--ink); transition: background .15s var(--ease), transform .12s var(--ease); }
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.chip svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn.primary { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); }
.btn.primary:hover { background: var(--brass-strong); }
.btn.danger { color: var(--danger); }
.btn.ghost { background: none; border-color: transparent; color: var(--brass-strong); padding: 0 10px; }
.btn.ghost:hover { background: var(--brass-soft); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.btn.busy::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* forms */
label.f { display: block; }
label.f > span, div.f > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.in, select.in, textarea.in { width: 100%; min-height: 44px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 11px; padding: 10px 12px; color: var(--ink); }
textarea.in { min-height: 96px; resize: vertical; line-height: 1.45; }
.in:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft); }
select.in { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
/* minmax(0,…): a grid column may shrink below its widest child, so nothing spills off a phone */
.form { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.two { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.err { color: var(--danger); font-size: 13.5px; min-height: 0; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.toggle:first-child { border-top: 0; }
.toggle .grow { flex: 1; }
.switch { width: 46px; height: 28px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line-strong); position: relative; flex-shrink: 0; transition: background .18s var(--ease); }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-2); transition: transform .2s var(--ease), background .2s var(--ease); }
.switch.on { background: var(--green-deep); border-color: var(--green); }
.switch.on::after { transform: translateX(18px); background: #fff; }
.addrow { display: flex; gap: 8px; }
.addrow .in { flex: 1; min-width: 0; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.seg button.on { background: var(--surface-3); color: var(--ink); }

/* expandable editor under a row */
.editor { padding: 14px; border-top: 1px solid var(--line); background: var(--surface-2); }
.editor .form { gap: 12px; }

/* ---------- dinner ---------- */
.night { display: flex; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: flex-start; cursor: pointer; }
.night:first-child { border-top: 0; }
.night:hover { background: var(--surface-2); }
.night .day { width: 46px; flex-shrink: 0; text-align: center; }
.night .day b { display: block; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.night .day span { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.night.today .day span { color: var(--brass-strong); }
.night .what { flex: 1; min-width: 0; }
.night .meal { font-weight: 600; overflow-wrap: anywhere; }
.night .meal.sug { font-weight: 500; color: var(--ink-2); }
.night .meal.muted { font-weight: 500; color: var(--ink-3); }
.night .meal.open { font-weight: 600; color: var(--brass-strong); }
.night.opened { background: var(--surface-2); }
.night .nmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 3px; }
.night .nmeta .cook { margin-top: 0; }
.cook.nobody { color: var(--ink-3); }
.rstate { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--green); }
.rstate svg { width: 13px; height: 13px; }
.rstate.bad { color: var(--warn); }
.rstate.writing { color: var(--ink-2); }
.rstate.writing::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); animation: pulse 1.4s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.night .table { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.avs { display: inline-flex; }
.avs .av { margin-left: -5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); transition: opacity .2s var(--ease), filter .2s var(--ease); }
.avs .av:first-child { margin-left: 0; }
.avs .av .avatar { display: grid; }
.avs .av.gone { opacity: .28; filter: grayscale(1); }
.night.opened .avs .av { box-shadow: 0 0 0 2px var(--surface-2); }
.rsvp { align-self: center; flex-shrink: 0; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 52px; min-height: 48px;
  border-radius: 12px; border: 1px solid var(--line-strong); color: var(--ink-3); font-size: 11.5px; font-weight: 650; transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease); }
.rsvp svg { width: 18px; height: 18px; }
.rsvp.in { background: var(--green-soft); border-color: rgba(147, 179, 147, .45); color: var(--green); }
.rsvp:active { transform: scale(.96); }
.planbar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.planbar .pb-k { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.planbar .pb-v { font-size: 24px; font-weight: 650; line-height: 1.2; }
.planbar .pb-v span { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.pbar { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin-top: 12px; }
.pbar i { height: 8px; border-radius: 3px; background: var(--surface-3); }
.pbar i:nth-child(7) { margin-right: 4px; }
.pbar i.on { background: var(--brass); }
.pbar i.now { box-shadow: 0 0 0 1.5px var(--ink-2); }
.calfeed { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.calfeed .cf-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brass-soft); color: var(--brass-strong); flex-shrink: 0; }
.calfeed .cf-ic svg { width: 22px; height: 22px; }
.calfeed .t { font-weight: 600; }
.recipe-mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.recipe-mini .rm-h { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--green); margin-bottom: 8px; }
.recipe-mini .rm-h svg { width: 14px; height: 14px; }
.recipe-mini .ing { list-style: none; columns: 2; column-gap: 18px; font-size: 14px; }
.recipe-mini .ing li { break-inside: avoid; padding: 2px 0; }
.recipe-mini .steps { margin: 10px 0 0 18px; font-size: 14px; color: var(--ink-2); }
.recipe-mini .steps li + li { margin-top: 5px; }
.note.writing { display: flex; align-items: center; gap: 8px; }
.note.writing svg { width: 16px; height: 16px; color: var(--brass); flex-shrink: 0; }
details.own > summary { cursor: pointer; color: var(--brass-strong); font-size: 14px; font-weight: 500; list-style: none; padding: 6px 0; }
details.own > summary::-webkit-details-marker { display: none; }
details.own > summary::before { content: '›'; display: inline-block; width: 14px; transition: transform .18s var(--ease); }
details.own[open] > summary::before { transform: rotate(90deg); }
.chip.add { border-style: dashed; color: var(--brass-strong); }
.chip .meta { font-size: 11.5px; }
p.meta svg { width: 13px; height: 13px; vertical-align: -2px; color: var(--brass); }
.cook { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.yt { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; width: 100%; max-width: 480px; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.yt .play { position: absolute; inset: 0; display: grid; place-items: center; }
.yt .play i { width: 58px; height: 40px; border-radius: 12px; background: rgba(0, 0, 0, .7); display: grid; place-items: center; }
.yt .play i::after { content: ''; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.yt .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 9px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); font-size: 13px; font-weight: 500; color: #fff; }
.yt iframe { width: 100%; height: 100%; border: 0; display: block; }
.ytmini { width: 72px; height: 42px; border-radius: 7px; overflow: hidden; flex-shrink: 0; position: relative; background: #000; }
.ytmini img { width: 100%; height: 100%; object-fit: cover; }
.ytmini::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%); border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.hero { padding: 16px; border-radius: var(--r-lg); background: linear-gradient(160deg, #26301f, #1b1e15 70%); border: 1px solid var(--line); }
.hero .k { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.hero .v { font-size: 21px; font-weight: 650; margin-top: 2px; }
.rota { width: 100%; border-collapse: collapse; font-size: 13px; }
.rota th { color: var(--ink-3); font-weight: 600; padding: 4px; text-align: left; }
.rota td { padding: 3px; }
.rota select.in { min-height: 36px; padding: 6px 26px 6px 8px; font-size: 13px; background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; }

/* ---------- money ---------- */
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpis .kpi.big { grid-column: 1 / -1; }
@media (min-width: 700px) { .kpis .kpi.big { grid-column: auto; } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 13px 15px; }
.kpi .k { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.kpi .v { font-size: 25px; font-weight: 650; font-variant-numeric: tabular-nums; margin-top: 2px; letter-spacing: -.01em; }
.kpi.big .v { font-size: 34px; }
.kpi .d { font-size: 13px; margin-top: 2px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.kpi .d.up { color: var(--danger); }
.kpi .d.down { color: var(--green); }
.bars { display: grid; gap: 2px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 14px; border-radius: 10px; align-items: center; }
.bar.tap { cursor: pointer; }
.bar.tap:hover { background: var(--surface-2); }
.bar .lbl { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; }
.bar .lbl span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bar .track { grid-column: 1 / -1; height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--brass); border-radius: 0 4px 4px 0; min-width: 2px; }
.bar .sub { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--ink-3); font: 11px var(--sans); font-variant-numeric: tabular-nums; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .col { fill: #5d6149; }
.chart .col.hi { fill: var(--brass); }
.chart .col:hover { fill: #7b7f64; }
.chart .col.hi:hover { fill: var(--brass-strong); }
.chart .ln { fill: none; stroke: var(--brass); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .pt { fill: var(--brass); stroke: var(--surface); stroke-width: 2; }
.tip { position: fixed; z-index: var(--z-toast); pointer-events: none; background: var(--surface-3); border: 1px solid var(--line-strong); color: var(--ink); padding: 6px 10px; border-radius: 8px; font-size: 13px; font-variant-numeric: tabular-nums; box-shadow: 0 8px 24px rgba(0,0,0,.4); white-space: nowrap; }
.subnav { position: sticky; top: calc(61px + var(--safe-t)); z-index: calc(var(--z-nav) - 1); background: var(--bg); padding: 8px 0 12px; margin-top: -6px; }
@media (min-width: 900px) { .subnav { top: 61px; } }
.txn .cat { font-size: 18px; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; }
.txn .line2 { font-size: 13px; color: var(--ink-3); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 1px; }
.drop { display: block; cursor: pointer; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: 26px 18px; text-align: center; background: var(--surface); transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--brass); background: var(--brass-soft); }
.drop b { display: block; font-size: 16px; margin-bottom: 4px; }
.howto summary { cursor: pointer; font-weight: 600; padding: 11px 14px; list-style: none; display: flex; gap: 8px; align-items: center; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after { content: '+'; margin-left: auto; color: var(--ink-3); font-size: 18px; }
.howto[open] summary::after { content: '–'; }
.howto > div { padding: 0 14px 14px; color: var(--ink-2); font-size: 14px; }
.howto ol { padding-left: 20px; }
.howto li + li { margin-top: 4px; }
.secret { font-family: var(--mono); font-size: 17px; letter-spacing: .02em; background: var(--surface-3); border: 1px solid var(--line-strong); padding: 10px 12px; border-radius: 10px; user-select: all; overflow-wrap: anywhere; }

/* ---------- Alfred bubble + chat ---------- */
#bubble { position: fixed; right: 16px; bottom: calc(var(--tab-h) + 14px + var(--safe-b)); z-index: var(--z-bubble); width: 58px; height: 58px; border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .55), 0 0 0 1px rgba(201, 167, 106, .35); transition: transform .2s var(--ease); }
#bubble img { width: 100%; height: 100%; }
#bubble:hover { transform: scale(1.05); }
#bubble:active { transform: scale(.95); }
@media (min-width: 900px) { #bubble { bottom: 24px; right: 24px; width: 62px; height: 62px; } }
#backdrop { position: fixed; inset: 0; z-index: var(--z-backdrop); background: rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
#backdrop.on { opacity: 1; pointer-events: auto; }
#chat { position: fixed; z-index: var(--z-sheet); left: 0; right: 0; bottom: 0; height: 88dvh; display: flex; flex-direction: column; background: var(--surface);
  border-radius: 20px 20px 0 0; border: 1px solid var(--line-strong); border-bottom: 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
  transform: translateY(105%); transition: transform .28s var(--ease); visibility: hidden; }
#chat.on { transform: none; visibility: visible; }
@media (min-width: 900px) {
  #chat { left: auto; right: 24px; bottom: 98px; width: 420px; height: min(680px, calc(100dvh - 130px)); border-radius: 20px; border-bottom: 1px solid var(--line-strong); transform: translateY(16px) scale(.98); opacity: 0; transition: transform .22s var(--ease), opacity .18s var(--ease); }
  #chat.on { transform: none; opacity: 1; }
}
#chat header { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 16px; border-bottom: 1px solid var(--line); }
#chat header img { width: 34px; height: 34px; }
#chat header .who { flex: 1; min-width: 0; }
#chat header .who b { font-family: var(--serif); font-size: 19px; font-weight: 500; display: block; line-height: 1.1; }
#chat header .who span { font-size: 12.5px; color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modebar { display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.modebar .chip { flex: 1; justify-content: center; }
.moneynote { font-size: 12.5px; color: #f0d7a5; background: var(--warn-soft); padding: 7px 14px; }
#chatlog { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--green-deep); border-bottom-right-radius: 5px; }
.msg.al { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg p + p, .msg ul + p, .msg p + ul { margin-top: 7px; }
.msg ul, .msg ol { padding-left: 18px; }
.msg h4 { font-size: 15px; margin: 6px 0 2px; }
.msg code { font-family: var(--mono); font-size: 13px; background: var(--surface-3); padding: 1px 5px; border-radius: 5px; }
.msg img { max-width: 160px; border-radius: 10px; margin-bottom: 6px; }
.tooling { align-self: flex-start; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; padding-left: 4px; }
.tooling::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--brass); border-right-color: transparent; animation: spin .8s linear infinite; }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); margin-right: 3px; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.hello { color: var(--ink-2); text-align: center; padding: 18px 14px 6px; font-size: 14.5px; }
.hello .greet { font-size: 22px; color: var(--ink); margin-bottom: 4px; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 8px 6px; }
.hist { padding: 6px 4px; }
.hist button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); }
.hist button:hover { background: var(--surface-2); color: var(--ink); }
.hist h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 14px 12px 4px; }
.hist .count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--brass); color: var(--bg); font-size: 12px; font-weight: 700; text-align: center; }
.hist.recent { margin-top: 8px; }
.chatsbtn { margin-left: auto; font-size: 13px; }
.msg .from { display: block; font-size: 12px; font-weight: 600; color: var(--brass-strong); margin-bottom: 2px; }
.threadnew .pick { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; }
.threadnew .pick:hover { background: var(--surface-2); }
.threadnew input[name=title] { width: calc(100% - 24px); margin: 10px 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; }
.threadnew .btn { margin: 4px 12px; }
.threadnew .err { color: var(--danger); margin: 0 12px; font-size: 14px; }
#photochip { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
#photochip img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
#composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); }
#composer textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 22px; padding: 11px 16px; line-height: 1.35; }
#composer textarea:focus { outline: none; border-color: var(--brass); }
#composer .iconbtn { width: 44px; height: 44px; border-radius: 50%; }
#send { background: var(--brass); color: var(--brass-ink); }
#send:hover { background: var(--brass-strong); color: var(--brass-ink); }
#send[disabled] { opacity: .45; }

/* ---------- sheet (pickers, the More menu) ---------- */
.sheet { position: fixed; z-index: var(--z-sheet); left: 0; right: 0; bottom: 0; max-height: 86dvh; overflow-y: auto; background: var(--surface); border-radius: 20px 20px 0 0;
  border: 1px solid var(--line-strong); border-bottom: 0; padding: 8px 16px calc(18px + var(--safe-b)); transform: translateY(105%); transition: transform .26s var(--ease); visibility: hidden; }
.sheet.on { transform: none; visibility: visible; }
.sheet .grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 4px auto 12px; }
.sheet h3 { font-size: 17px; margin-bottom: 10px; }
@media (min-width: 900px) { .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 460px; border-radius: 20px; border-bottom: 1px solid var(--line-strong);
  transform: translate(-50%, -46%); opacity: 0; transition: transform .2s var(--ease), opacity .18s var(--ease); } .sheet.on { transform: translate(-50%, -50%); opacity: 1; }
  /* the bell: a drop-down under the top-right corner, not a centered dialog */
  .sheet.drop { top: 64px; right: 24px; left: auto; width: 380px; max-height: 70vh; transform: translateY(-6px); }
  .sheet.drop.on { transform: none; }
  .sheet.drop .grab { display: none; } }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 14px; padding: 13px 6px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; text-decoration: none; text-align: left; }
.menu > :first-child { border-top: 0; }
.menu svg { width: 21px; height: 21px; color: var(--ink-2); }

/* ---------- toast ---------- */
#toasts { position: fixed; z-index: var(--z-toast); left: 50%; transform: translateX(-50%); top: calc(12px + var(--safe-t)); display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--surface-3); border: 1px solid var(--line-strong); color: var(--ink); padding: 11px 14px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  font-size: 14.5px; display: flex; gap: 10px; align-items: center; animation: toastin .22s var(--ease); }
.toast.bad { border-color: rgba(227, 139, 118, .6); }
.toast .btn { margin-left: auto; }
@keyframes toastin { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- auth ---------- */
#auth { position: fixed; inset: 0; z-index: var(--z-auth); display: flex; align-items: center; justify-content: center; padding: 24px 18px; overflow-y: auto;
  background: radial-gradient(120% 90% at 50% 0%, #212a1b 0%, var(--bg) 62%); }
#auth .box { width: min(380px, 100%); text-align: center; }
#auth .crest { width: 84px; height: 84px; margin: 0 auto 14px; }
#auth h1 { font-family: var(--serif); font-weight: 500; font-size: 36px; letter-spacing: .01em; }
#auth .tag { color: var(--ink-2); font-family: var(--serif); font-style: italic; margin: 2px 0 26px; }
#auth form { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
#auth .alt { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
#auth .alt button { color: var(--brass-strong); font-weight: 600; }

/* skeleton */
.sk { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }

/* shop mode */
#shop { position: fixed; inset: 0; z-index: var(--z-sheet); background: var(--bg); overflow-y: auto; padding: 0 16px calc(24px + var(--safe-b)); }
/* The bar carries the status-bar gap itself, so it never scrolls up under the clock. */
.shopbar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: calc(18px + var(--safe-t)) 0 12px; background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: 12px; flex-wrap: wrap; }
.shopcols { column-width: 15rem; column-gap: 26px; }
.shopgrp { break-inside: avoid; margin-bottom: 16px; }
.shopgrp h4 { font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); padding-bottom: 3px; margin-bottom: 4px; }
.shopitem { display: flex; gap: 9px; padding: 5px 0; font-size: 16px; cursor: pointer; }
.shopitem i { color: var(--ink-3); font-style: normal; }
.shopitem.got { color: var(--ink-3); text-decoration: line-through; }
.shopitem.busy { opacity: .6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print { #tabs, #side, #top, #bubble, .shopbar { display: none !important; } body, #shop { background: #fff; color: #000; } }

/* An iPhone zooms the whole page into any field under 16px and leaves it zoomed. Touch screens get 16. */
@media (pointer: coarse) { input, select, textarea, .rota select.in { font-size: 16px; } }

/* Reports print as a clean light page: Save as PDF from the print dialog. */
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f3f3ef; --line: #ddd; --line-strong: #bbb; --ink: #111; --ink-2: #333; --ink-3: #555; }
  .subnav, .noprint, #top, #chat, #backdrop, .tip { display: none !important; }
  .panel, .kpi { break-inside: avoid; border-color: #ccc; }
  .chart .col { fill: #8a7a52; }
}

/* ---------- stars + countdowns ---------- */
.chip.star { background: var(--brass-soft); border-color: rgba(201, 167, 106, .45); color: var(--brass-strong); flex-shrink: 0; }
.starhero { display: flex; align-items: center; gap: 14px; }
.starhero .avatar { width: 48px; height: 48px; font-size: 19px; }
.starhero .big { font-size: 30px; font-weight: 700; color: var(--brass-strong); line-height: 1.1; }
.cdrow { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cd { flex: 0 0 auto; min-width: 118px; max-width: 170px; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; color: var(--ink); cursor: pointer; font: inherit; }
.cd b { display: block; font-size: 20px; color: var(--brass-strong); }
.cd span { display: block; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* profile pictures: same box as the initial circle */
img.avatar { object-fit: cover; background: var(--p-other); padding: 0; }
.photo-pick { cursor: pointer; display: inline-flex; }
/* the eye on password boxes */
.pw-wrap { position: relative; display: block; }
.pw-wrap .in { padding-right: 44px; width: 100%; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; font-size: 17px; opacity: .45; cursor: pointer; }
.pw-eye.on { opacity: 1; }
.from .avatar { display: inline-grid; vertical-align: -5px; }
.avatar.notif-ic { background: var(--brass-soft, #eee); color: var(--ink, #333); }
.avatar.notif-ic svg { width: 17px; height: 17px; }
/* notification rows: unread tint + a ✓ to mark one read without opening it */
.nrow { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.nrow:last-child { border-bottom: 0; }
.nrow > .item { flex: 1; min-width: 0; border-bottom: 0; }
.nrow.unread { background: var(--brass-soft); }
.nrow .nread { align-self: center; margin-right: 6px; flex: none; }

/* ---------- Skylight look for the boys (2026-09-27): a color per boy, rings, emoji, bursts ---------- */
.cem { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: var(--surface-2); flex-shrink: 0; }
.kidcol { --pc: var(--p-other); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface-1, var(--surface)); }
.kidcol .kh { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: color-mix(in srgb, var(--pc) 22%, transparent); border-bottom: 3px solid var(--pc); }
.kidcol .kh .avatar { width: 40px; height: 40px; font-size: 16px; }
.kidcol .kh .nm { font-weight: 700; font-size: 17px; }
.kidcol .list { border: 0; border-radius: 0; }
.kidcol .check { border-radius: 50%; width: 30px; height: 30px; border-color: var(--pc); }
.kidcol .done .check { background: var(--pc); border-color: var(--pc); color: #fff; }
.kidcol .done .t { text-decoration: line-through; opacity: .6; }
.kidcol .chip.star { font-weight: 700; }
.starpill { background: var(--brass-soft); color: var(--brass-strong); border-radius: 999px; padding: 4px 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ring { flex-shrink: 0; }
.ring text { font-size: 11px; font-weight: 700; fill: var(--ink); }
.kidhero { --pc: var(--p-other); display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: color-mix(in srgb, var(--pc) 24%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--pc) 50%, transparent); }
.kidhero .avatar { width: 56px; height: 56px; font-size: 22px; }
.kidhero .big { font-size: 34px; font-weight: 800; color: var(--brass-strong); line-height: 1.1; }
.sbar { height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.sbar i { display: block; height: 100%; background: var(--brass); border-radius: 5px; }
.kidcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kidcard { --pc: var(--p-other); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: var(--r); background: color-mix(in srgb, var(--pc) 16%, var(--surface-2)); border-top: 4px solid var(--pc); text-align: center; min-width: 0; }
.kidcard .avatar { width: 44px; height: 44px; font-size: 17px; }
.kidcard .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.kidcard .st { font-size: 20px; font-weight: 800; color: var(--brass-strong); }
.rewardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.reward { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); min-height: 170px; min-width: 0; }
.reward.ready { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass) inset; }
.reward .em { font-size: 34px; line-height: 1; }
.reward .t { font-weight: 700; overflow-wrap: anywhere; }
.reward .cost { color: var(--brass-strong); font-weight: 800; }
.reward .who { display: flex; gap: 4px; margin: 2px 0 6px; }
.dotp { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--pc); opacity: .28; }
.dotp.on { opacity: 1; }
.burst { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.burst span { position: absolute; bottom: 18%; font-size: 26px; animation: burst 1.4s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes burst { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(25deg); opacity: 0; } }
/* the bell sheet borrows the class "drop" for its desktop drop-down; don't let the upload box's .drop styles (centered, dashed) leak in */
.sheet.drop { text-align: left; cursor: default; }

/* ---------- the boys today (Mom's midday look) ---------- */
.item.boy .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--pc); }
.item.boy .t { font-size: 16px; }
.bstat { font-weight: 500; font-size: 13px; color: var(--ink-2); margin-left: 4px; }
.bstat.ok { color: var(--green); }
.bopen { color: var(--ink-2); margin-top: 1px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* a tick waiting on Mom: a clock in the box, calm brass, not crossed out */
.item.waiting .check { background: var(--brass-soft); border-color: var(--brass); color: var(--brass-strong); }
.kidcol .item.waiting .check { border-color: var(--brass); }
.item.waiting .meta { color: var(--brass-strong); }

/* ---------- cooking mode: phone on the counter, hands busy ---------- */
.cookmode { max-width: 640px; margin: 0 auto; }
.cm-bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-bottom: 22px; }
.cm-bar i { display: block; height: 100%; background: var(--brass); border-radius: 3px; transition: width .25s var(--ease); }
.cm-k { color: var(--ink-2); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.cm-h { font-size: 26px; margin-bottom: 14px; }
.cm-step { font-size: 27px; line-height: 1.4; font-weight: 500; text-wrap: pretty; min-height: 8lh; }
.cm-ing { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cm-ing li + li { border-top: 1px solid var(--line); }
.cm-ing label { display: flex; align-items: center; gap: 14px; padding: 14px 16px; font-size: 19px; cursor: pointer; min-height: 56px; }
.cm-ing input { width: 24px; height: 24px; flex-shrink: 0; accent-color: var(--green-deep); }
.cm-ing input:checked + span { color: var(--ink-3); text-decoration: line-through; }
.cm-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 24px; }
.cm-nav .btn { min-height: 58px; font-size: 18px; border-radius: 14px; }
.cm-nav.one { grid-template-columns: 1fr; }
/* Phones: Alfred is the crest in the top bar, so nothing floats over the page. */
@media (max-width: 899px) { #bubble { display: none !important; } }
.alfredbtn img { width: 30px; height: 30px; }
/* A row's own button (OK, Nudge, Answer): a full 44px to hit with a thumb. */
@media (pointer: coarse) { .item > .btn.sm { min-height: 44px; } }
/* Mom's Home on a laptop: Waiting for you and The boys today side by side, not one stretched column. */
.momtop { margin-top: 26px; }   /* its first .section would otherwise lose the gap under the greeting */
@media (min-width: 1100px) { .momtop { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: start; } .momtop > .section { margin-top: 0; } }
