/* Look and feel carried over from Home HQ. */
/* Layout: a family fridge door. Soft sky page, rounded cards, every kid has a colour, the week runs left to right. */
:root {
  --bg: #eaf4fb; --surface: #ffffff; --fg: #1d2b3a; --muted: #5b6b7d; --line: #d5e3ee; --soft: #f4f9fd;
  --sun: #ffc93c; --sun-ink: #4a3500; --sky: #2d7fc1; --sky-tint: #dcecf9;
  --ok: #2e8a57; --ok-tint: #e1f4e9; --warn: #b5650a; --bad: #c2412f; --bad-tint: #fde9e5;
  --k-grace: #8e5bd6; --k-lily: #e2508f; --k-jones: #1f8fd6; --k-walker: #f07c22; --k-family: #2e9e8f; --k-chris: #4b5d73;
  --a-money: #2e8a57; --a-family: #2e9e8f; --a-home: #2d7fc1; --a-health: #e2508f;
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --r: 16px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1a26; --surface: #172636; --fg: #edf4fa; --muted: #a2b4c6; --line: #2a3d52; --soft: #13212f;
  --sun: #ffc93c; --sun-ink: #4a3500; --sky: #7db9ec; --sky-tint: #1d3348;
  --ok: #6fd39a; --ok-tint: #173326; --warn: #f2b154; --bad: #f2806e; --bad-tint: #3a221e;
  --k-grace: #b993f0; --k-lily: #f283b4; --k-jones: #6cbaf0; --k-walker: #f6a35f; --k-family: #5fcabb; --k-chris: #9fb2c8;
  --a-money: #6fd39a; --a-family: #5fcabb; --a-home: #7db9ec; --a-health: #f283b4;
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0f1a26; --surface: #172636; --fg: #edf4fa; --muted: #a2b4c6; --line: #2a3d52; --soft: #13212f;
  --sun: #ffc93c; --sun-ink: #4a3500; --sky: #7db9ec; --sky-tint: #1d3348;
  --ok: #6fd39a; --ok-tint: #173326; --warn: #f2b154; --bad: #f2806e; --bad-tint: #3a221e;
  --k-grace: #b993f0; --k-lily: #f283b4; --k-jones: #6cbaf0; --k-walker: #f6a35f; --k-family: #5fcabb; --k-chris: #9fb2c8;
  --a-money: #6fd39a; --a-family: #5fcabb; --a-home: #7db9ec; --a-health: #f283b4;
  color-scheme: dark; }

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font: 400 16px/1.5 var(--body); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.gut { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; font-weight: 600; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { margin: 0; }
.muted { color: var(--muted); }

/* Header */
.top .gut { padding-block: 22px 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.hello { display: flex; align-items: center; gap: 14px; }
.house { width: 54px; height: 54px; flex: none; }
.top h1 { font-size: clamp(30px, 5vw, 40px); font-weight: 700; line-height: 1.05; }
.top .sub { color: var(--muted); font-size: 15px; }
.kids { display: flex; flex-wrap: wrap; gap: 6px; }
.kid { font: 700 13px var(--body); padding: 3px 10px; border-radius: 99px; color: #fff; background: var(--k); }
.live { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live, var(--muted)); }

/* Tabs */
.tabs { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); padding-block: 10px; }
.tabs .gut { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tabs .gut::-webkit-scrollbar { display: none; }
.tab { font: 700 15px var(--body); background: var(--surface); border: 2px solid var(--line); border-radius: 99px; padding: 8px 16px; color: var(--fg); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.tab[aria-selected="true"] { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.tab .n { font-size: 12px; min-width: 20px; line-height: 20px; padding: 0 6px; border-radius: 10px; background: var(--bad); color: #fff; text-align: center; }
.tab .n[hidden] { display: none; }

main.gut { display: grid; gap: 22px; padding-block: 12px 48px; }
section[hidden] { display: none; }
.sec { display: grid; gap: 16px; min-width: 0; }
.sec-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.note { font-size: 14px; color: var(--muted); max-width: 70ch; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; overflow: hidden; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px 10px; }
.count { font-size: 13px; font-weight: 700; color: var(--muted); }
.empty { padding: 12px 18px 18px; color: var(--muted); }

/* Week strip */
.week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.day.today { border: 2px solid var(--sun); }
.day-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.day-h b { font-family: var(--display); font-size: 18px; font-weight: 600; }
.day-h span { font-size: 13px; color: var(--muted); }
.day .none { font-size: 13px; color: var(--muted); }
.ev { border-left: 4px solid var(--k, var(--sky)); background: var(--soft); border-radius: 8px; padding: 7px 9px; display: grid; gap: 2px; font-size: 14px; min-width: 0; }
.ev .t { font-weight: 800; font-variant-numeric: tabular-nums; }
.ev .w { font-weight: 700; overflow-wrap: anywhere; }
.ev .p { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.ev a { color: var(--sky); font-weight: 700; font-size: 13px; }
.ev.special { background: var(--sky-tint); }
.ev.invite { background: var(--surface); border: 2px dashed var(--sun); border-left: 4px solid var(--k, var(--sky)); }
.ev .inv { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); }
.yn { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.yn button { padding: 3px 9px; font-size: 12.5px; }
.yes { background: var(--ok); border-color: var(--ok); color: #fff; }
.erow.invite { background: var(--soft); }

/* Event list */
.erow { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 14px; padding: 12px 18px; border-top: 1px solid var(--line); }
.cal { text-align: center; border-radius: 10px; overflow: hidden; line-height: 1.1; border: 1px solid var(--line); align-self: start; }
.cal b { display: block; background: var(--k, var(--sky)); color: #fff; font-size: 11px; letter-spacing: .08em; padding: 3px 0; }
.cal span { display: block; font-family: var(--display); font-weight: 600; font-size: 22px; padding: 3px 0 4px; }
.et { font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.facts { display: grid; gap: 2px; font-size: 14px; margin-top: 2px; }
.facts div { overflow-wrap: anywhere; }
.facts b { color: var(--muted); font-weight: 700; margin-right: 4px; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.flag { color: var(--warn); font-weight: 700; font-size: 14px; }

/* Clubs: fridge-chart grid, days across, one row per kid */
.cwrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }
.cgrid { border-collapse: separate; border-spacing: 5px; width: 100%; min-width: 820px; table-layout: fixed; }
.cgrid th { font-family: var(--display); font-weight: 600; font-size: 15px; color: #fff; background: var(--dc); border-radius: 10px; padding: 6px 4px; text-align: center; }
.cgrid th.corner { background: transparent; width: 82px; }
.cgrid th.rowh { background: var(--k); writing-mode: horizontal-tb; font-size: 16px; }
.cgrid td { vertical-align: top; background: var(--soft); border-radius: 10px; padding: 6px; }
.cgrid td.todaycol { box-shadow: inset 0 0 0 2px var(--sun); }
.ci { display: grid; gap: 1px; padding: 5px 6px; border-radius: 8px; background: var(--surface); border-left: 4px solid var(--k); margin-bottom: 5px; font-size: 13px; line-height: 1.3; }
.ci:last-child { margin-bottom: 0; }
.ci b { font-size: 13.5px; overflow-wrap: anywhere; }
.ci .tm { font-weight: 800; font-variant-numeric: tabular-nums; }
.ci .pl { color: var(--muted); overflow-wrap: anywhere; }
.ci .q { color: var(--warn); font-weight: 700; }
.cnone { color: var(--muted); font-size: 12.5px; text-align: center; padding: 6px 0; }
.dlist { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dlist th, .dlist td { text-align: left; padding: 8px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.dlist th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 0; }
.dlist td:first-child { white-space: nowrap; font-weight: 800; }
.dlist .q { color: var(--warn); font-weight: 700; }

/* Sort-outs */
.sort { border-top: 1px solid var(--line); }
.sort:first-child { border-top: 0; }
.sort summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 13px 18px; }
.sort summary::-webkit-details-marker { display: none; }
.sort .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--a); margin-top: 6px; }
.sort .st { font-weight: 800; overflow-wrap: anywhere; }
.sort .ss { font-size: 14px; color: var(--muted); }
.sort .chev { font-weight: 800; color: var(--sky); font-size: 14px; white-space: nowrap; }
.sort[open] .chev::after { content: " ▲"; } .sort:not([open]) .chev::after { content: " ▼"; }
.steps { margin: 0 18px 16px 42px; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--sky-tint); color: var(--sky); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.steps .sx { display: grid; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.sort-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 16px 42px; }
@media (max-width: 560px) { .steps, .sort-foot { margin-left: 18px; padding-left: 0; } .sort-foot { padding-left: 18px; margin-left: 0; } }

/* Jobs */
.job { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--line); }
.job .jt { font-weight: 700; overflow-wrap: anywhere; }
.job.done .jt { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.chk { width: 28px; height: 28px; border: 2px solid var(--muted); border-radius: 8px; background: var(--surface); cursor: pointer; padding: 0; display: grid; place-items: center; color: #fff; }
.chk:hover { border-color: var(--ok); }
.chk[aria-checked="true"] { background: var(--ok); border-color: var(--ok); }
.chk[aria-checked="true"]::after { content: "✓"; font-weight: 800; }

/* Mail */
.mrow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.mrow .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--a); margin-top: 6px; }
.mrow .mt { font-weight: 800; overflow-wrap: anywhere; }
.mrow .ms { font-size: 14px; color: var(--muted); }

/* People + bills */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 4px; min-width: 0; border-left: 6px solid var(--k); }
.person h3 { font-size: 20px; }
.person .role { font-size: 13px; font-weight: 800; color: var(--muted); }
.person p { font-size: 14px; overflow-wrap: anywhere; }
.scroll { overflow-x: auto; }
.bills { width: 100%; border-collapse: collapse; font-size: 15px; }
.bills th, .bills td { text-align: left; padding: 10px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.bills th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bills td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.total { padding: 12px 18px; border-top: 2px solid var(--line); font-weight: 800; display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }

/* Controls */
button, .btn { font: 700 14px var(--body); padding: 7px 13px; border: 2px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 99px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
button:hover, .btn:hover { border-color: var(--sky); }
.go { background: var(--sky); border-color: var(--sky); color: #fff; }
.go:hover { filter: brightness(1.08); border-color: var(--sky); }
.doneb { background: var(--ok-tint); border-color: var(--ok); color: var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chip { font-size: 14px; padding: 5px 12px; border-radius: 99px; }
.chip[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.tag { font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); }
.tag.hot { background: var(--bad); border-color: var(--bad); color: #fff; }
.sort-foot .mini { font-size: 14px; padding: 6px 12px; }
.sort-foot select { font-size: 14px; padding: 6px 8px; border-radius: 99px; border: 2px solid var(--line); background: var(--surface); color: var(--fg); }
.jwrap { border-top: 1px solid var(--line); }
.jwrap .job { border-top: 0; }
.jmore { min-width: 44px; }
.jfoot { padding: 0 18px 12px 58px; }
@media (max-width: 560px) { .jfoot { padding-left: 14px; } }
.later-row { display: flex; align-items: center; gap: 10px; padding: 8px 18px; border-top: 1px solid var(--line); }
.later-row span { flex: 1; min-width: 0; }
.ghost { border-color: transparent; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding-inline: 6px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.add { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line); background: var(--soft); }
.add input { font: inherit; padding: 9px 12px; border: 2px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 12px; min-width: 0; flex: 1 1 220px; }
.add button { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.shopf { border-top: 0; }
.shopf textarea { font: inherit; padding: 9px 12px; border: 2px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 12px; width: 100%; box-sizing: border-box; resize: vertical; }
.shopbar { padding: 10px 18px 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.shop { padding: 12px 18px; border-top: 1px solid var(--line); }
.shop:first-child { border-top: 0; }
.shop .q { font-weight: 700; overflow-wrap: anywhere; }
.shop .rep { margin: 6px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.shop .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.meal { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.meal p { margin: 2px 0 6px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.toggle { width: 100%; border: 0; border-radius: 0; border-top: 1px solid var(--line); background: transparent; padding: 10px 18px; text-align: left; color: var(--sky); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 99px; z-index: 30; font-weight: 700; max-width: calc(100% - 32px); }
.foot { padding-block: 0 28px; font-size: 13px; color: var(--muted); }
/* Brain dump */
.dump { padding: 14px 16px; display: grid; gap: 10px; border: 2px solid var(--sun); }
.dump-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.dump textarea { font: inherit; width: 100%; min-height: 70px; resize: vertical; padding: 10px 12px; border: 2px solid var(--line); background: var(--soft); color: var(--fg); border-radius: 12px; }
.dump-b { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.talk { background: var(--sky); border-color: var(--sky); color: #fff; font-size: 16px; padding: 10px 18px; }
.talk.rec { background: var(--bad); border-color: var(--bad); }
.sortit { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); font-size: 16px; padding: 10px 18px; }
.pingline { font-size: 13px; color: var(--muted); }
.mcard { margin-bottom: 16px; }
.mtop { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 4px 18px 8px; }
.mstat { background: var(--soft); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.mstat span { font-size: 13px; color: var(--muted); font-weight: 700; }
.mstat b { font-size: 24px; font-family: var(--display); }
.mstat.good b { color: var(--good, inherit); } .mstat.bad b { color: var(--bad); }
.mh { margin: 8px 18px 4px; font-size: 15px; }
.mcats { display: grid; gap: 10px; padding: 4px 18px 6px; }
.mcat .mlab { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.mcat i { display: block; height: 8px; border-radius: 99px; background: var(--sky); margin-top: 4px; }
.mfoot { padding: 6px 18px 16px; font-size: 14px; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.bgrid .total { margin: 0; }
.brow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 10px 18px; border-top: 1px solid var(--line); align-items: center; }
.bmain b { font-size: 15.5px; } .bmain .muted { font-size: 13px; overflow-wrap: anywhere; }
.bamt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bctl { grid-column: 1 / -1; display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; }
.bctl > a, .bctl > button { font-size: 13px; padding: 4px 10px; white-space: nowrap; }
.bmove { flex: 1 1 0; min-width: 0; font: inherit; font-size: 13px; padding: 4px 6px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); max-width: 100%; }
.cupc { margin-top: 16px; }
.cuprow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); }
.cuprow .muted { font-size: 13px; }
.cupres { font-weight: 800; padding: 4px 10px; border-radius: 99px; white-space: nowrap; font-size: 14px; }
.cupres.w { background: #d8f3dc; color: #1b5e20; } .cupres.l { background: #fde2e1; color: #9b1c1c; } .cupres.d { background: var(--soft); }
.cupres.n { background: var(--sun); color: var(--sun-ink); }
.mweek { padding: 4px 18px 10px; }
.mweek i { display: block; height: 10px; border-radius: 99px; background: var(--sky); margin-top: 6px; }
.mchk { border-top: 1px solid var(--line); }
.mchk summary { display: flex; justify-content: space-between; gap: 8px; padding: 10px 18px; font-weight: 800; cursor: pointer; }
.mnote { padding: 0 18px; font-size: 14px; }
.msteps { margin: 6px 0 4px; padding: 0 18px 0 40px; display: grid; gap: 6px; font-size: 15px; }
.mhide { margin: 6px 18px 12px; font-size: 14px; padding: 6px 12px; }
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 62px; height: 62px; border-radius: 50%; padding: 0; display: grid; place-items: center; font-size: 28px; background: var(--sun); border: 3px solid var(--sun-ink); color: var(--sun-ink); z-index: 25; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
main.gut { padding-bottom: 90px; }
dialog.dpop { border: 0; padding: 0; background: transparent; width: min(560px, calc(100% - 24px)); max-width: none; margin: 14px auto auto; color: var(--fg); }
dialog.dpop::backdrop { background: rgba(0,0,0,.5); }
.dpop .dump textarea { min-height: 130px; height: 130px; font-size: 17px; }
.dclose { border: 0; background: transparent; font-size: 20px; padding: 2px 8px; color: var(--muted); }
.dhint { margin: 0; font-size: 14px; color: var(--muted); }
.dhint.big { color: var(--fg); font-weight: 800; background: var(--soft); border: 2px solid var(--sun); border-radius: 12px; padding: 8px 10px; }
.daypick { display: none; }
/* Bills privacy: money figures blurred until unlocked */
.lockbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--soft); border: 2px solid var(--line); border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; font-weight: 800; }
.lockbar button { font-weight: 800; }
main.locked .amt { filter: blur(7px); user-select: none; -webkit-user-select: none; cursor: pointer; }
main.locked .mcat i, main.locked .mweek i { opacity: .25; }
#lockpop { overflow: hidden; }
.lockfab { position: fixed; right: 16px; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); height: 52px; border-radius: 99px; padding: 0 18px; font-weight: 800; font-size: 17px; background: var(--fg); color: var(--bg, #fff); border: 0; z-index: 25; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.lockfab[hidden] { display: none; }
.pinf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 18px; width: 100%; min-width: 0; box-sizing: border-box; }
.pinf > * { min-width: 0; }
.pinf input { width: 100%; min-width: 0; box-sizing: border-box; font-size: 24px; letter-spacing: 6px; text-align: center; padding: 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--fg); }
.pinf .row { display: flex; gap: 8px; flex-wrap: wrap; }
.pinf .row button { flex: 1 1 auto; }
.fold > summary { list-style: none; cursor: pointer; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h3 { flex: 1; }
.fchev { color: var(--sky); font-weight: 800; font-size: 14px; }
.fold[open] .fchev::after { content: "Hide ▲"; } .fold:not([open]) .fchev::after { content: "Show ▼"; }
/* Phone layout */
@media (max-width: 700px) {
  body { overflow-x: clip; }
  .top .gut { padding-block: 14px 4px; }
  .house { width: 42px; height: 42px; }
  .top h1 { font-size: 28px; }
  .top .kids, .top .live { display: none; }
  .ev { padding: 5px 8px; }
  .tabs .gut { flex-wrap: wrap; overflow: visible; gap: 6px; }
  .tab { font-size: 14px; padding: 6px 12px; }
  h2 { font-size: 21px; }
  .card-h, .empty, .erow, .job, .mrow, .add, .total, .toggle { padding-left: 14px; padding-right: 14px; }
  .sort summary { padding: 9px 14px; }
  .sort:not([open]) .ss { display: none; }
  .sec-h .note { display: none; }
  .erow { grid-template-columns: 52px minmax(0, 1fr); gap: 4px 12px; }
  .cal span { font-size: 19px; }
  /* Day picker: one day on screen at a time, no scrolling */
  .daypick { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .dp { display: grid; justify-items: center; gap: 0; padding: 5px 0 6px; border-radius: 12px; font-size: 12px; line-height: 1.2; position: relative; }
  .dp b { font-size: 17px; font-family: var(--display); }
  .dp b:empty { display: none; }
  .dp.has::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); margin-top: 3px; }
  .dp:not(.has) { color: var(--muted); }
  .dp.on { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
  .dp.on::after { background: var(--sun-ink); }
  .week { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .week .day:not(.sel) { display: none; }
  .day { padding: 10px 12px; }
  /* Clubs: picked day only, each kid on one row */
  .cwrap { overflow: visible; background: transparent; border: 0; padding: 0; }
  .cgrid, .cgrid tbody { display: block; width: 100%; min-width: 0; }
  .cgrid thead { display: none; }
  .cgrid tr { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; margin-bottom: 8px; }
  .cgrid th.rowh { display: grid; place-items: center; padding: 6px 4px; font-size: 16px; }
  .cgrid td { display: none; box-shadow: none !important; padding: 4px; }
  .cgrid td.sel { display: grid; gap: 5px; align-content: start; }
  .cgrid td .ci { margin: 0; font-size: 14px; }
  .cgrid td.off .cnone { text-align: left; padding: 6px 4px; }
  /* Brain dump: compact */
  .dump { padding: 10px 12px; gap: 8px; }
  .dump-b button { padding: 7px 14px; font-size: 15px; }
  .pingline { display: none; }
  /* Tables become stacked cards */
  .dlist thead, .bills thead { display: none; }
  .dlist, .dlist tbody, .dlist tr, .dlist td, .bills, .bills tbody, .bills tr, .bills td { display: block; width: 100%; }
  .dlist tr, .bills tr { border-top: 1px solid var(--line); padding: 10px 14px; }
  .dlist td, .bills td { border: 0; padding: 2px 0; white-space: normal !important; overflow-wrap: anywhere; }
  .dlist td:empty, .bills td:empty { display: none; }
  .dlist td:first-child, .bills td:first-child { font-weight: 800; font-size: 15.5px; }
  .dlist td[data-label]:not(:first-child)::before, .bills td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 700; }
  .dlist td:last-child::before, .bills td:last-child::before { content: none !important; }
  .dlist td:last-child, .bills td:last-child { padding-top: 6px; }
  .people { grid-template-columns: minmax(0, 1fr); }
  .dump-b button { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) { .toast { animation: up .2s ease-out; } @keyframes up { from { transform: translate(-50%, 10px); opacity: .4; } } }
