@font-face { font-family: Inter; src: url('fonts/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
/* Pitch In. Phone first. Palette: coral, plum, sunflower, cream (SPEC 12). */
:root {
  --coral: #E8604C; --plum: #2E2240; --sun: #F5B83D; --cream: #FFF8EF;
  --ink: #2E2240; --soft: #6B6078; --line: #EADFD0; --card: #FFFFFF;
  --good: #2F8F5B; --bad: #C0392B;
  --tap: 52px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 17px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
a { color: var(--coral); }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; line-height: 1.2; }
h2 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; color: var(--soft); font-weight: 600; }
p { margin: .5rem 0; }
.muted { color: var(--soft); font-size: .92rem; }

.top { display: flex; align-items: center; gap: .75rem; background: var(--cream); color: var(--ink); padding: .6rem 1rem; border-bottom: 2px solid var(--line); }
.brand { display: flex; align-items: center; gap: .4rem; color: var(--plum); font-weight: 800; font-size: 1.45rem; text-decoration: none; letter-spacing: -.03em; line-height: 1; }
.brand span { color: var(--coral); }
.brand img { display: block; }
.fam { color: var(--soft); font-size: .9rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.out { margin-left: auto; }
.top .link { color: var(--soft); }
.tagline { color: var(--soft); font-weight: 600; margin: 0 0 1rem; }
.adult { display: flex; gap: 1.25rem; padding: .6rem 1rem; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.adult a { text-decoration: none; font-weight: 600; white-space: nowrap; }

main { max-width: 34rem; margin: 0 auto; padding: 1rem; }
footer { text-align: center; font-size: .78rem; color: var(--soft); padding: 1.5rem 1rem; }
footer a { color: var(--soft); }

.flash { padding: .75rem 1rem; border-radius: 12px; background: #E7F5EC; color: #1E6B42; font-weight: 600; }
.flash.error { background: #FCE9E6; color: var(--bad); }

h1 { letter-spacing: -.02em; }
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 1rem; margin: .75rem 0; }
.card.tight { padding: .75rem 1rem; }
.row { display: flex; align-items: center; gap: .75rem; }
.row .grow { flex: 1; min-width: 0; }
.name { font-weight: 700; }
.amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount.neg { color: var(--bad); }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--soft); }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--line); color: var(--ink); }
.pill.done { background: #DDF2E5; color: #1E6B42; }
.pill.missed { background: #FCE9E6; color: var(--bad); }
.pill.wait { background: #FFF0CC; color: #7A5600; }

button, .btn {
  font: inherit; font-weight: 700; min-height: var(--tap); padding: 0 1.25rem; border: 0; border-radius: 14px;
  background: var(--coral); color: #fff; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
button.wide, .btn.wide { width: 100%; }
button.quiet, .btn.quiet { background: #fff; color: var(--ink); border: 2px solid var(--line); }
button.sun { background: var(--sun); color: var(--plum); }
button.link { background: none; color: var(--coral); min-height: 0; padding: 0; font-weight: 600; }
button:disabled { opacity: .5; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.actions form { flex: 1; }
.actions button { width: 100%; }

label { display: block; font-weight: 600; margin: .9rem 0 .3rem; }
input[type=text], input[type=email], input[type=password], input[type=time], input[type=date],
input[type=number], input[type=tel], select, textarea {
  font: inherit; width: 100%; min-height: var(--tap); padding: .6rem .8rem; border: 2px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.checks { display: flex; flex-wrap: wrap; gap: .4rem; }
.checks label { margin: 0; font-weight: 600; border: 2px solid var(--line); border-radius: 12px; padding: .55rem .7rem; background: #fff; display: flex; gap: .4rem; align-items: center; }
.hint { color: var(--soft); font-size: .88rem; font-weight: 400; margin: .25rem 0 0; }
.code { font-size: 1.4rem; letter-spacing: .25em; text-transform: uppercase; text-align: center; }
.linkbox { word-break: break-all; background: #FFF6DF; border: 2px dashed var(--sun); border-radius: 12px; padding: .8rem; font-size: .95rem; user-select: all; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.tile { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.25rem .5rem; border-radius: 18px; background: #fff; border: 2px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 2rem; font-weight: 800; }
.avatar.small { width: 36px; height: 36px; font-size: 1rem; flex: none; }

.big { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.split { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; text-align: center; }
.split div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .6rem .25rem; }
.split b { display: block; font-size: 1.15rem; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.lines li:last-child { border-bottom: 0; }
.lines .what { flex: 1; min-width: 0; }
.lines small { display: block; color: var(--soft); }

.steps { display: flex; gap: .3rem; margin: 0 0 1rem; }
.steps span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps span.on { background: var(--coral); }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { flex: 1; text-align: center; padding: .9rem 0; text-decoration: none; color: var(--soft); font-weight: 700; border-top: 3px solid transparent; }
.tabs a.on { color: var(--coral); border-top-color: var(--coral); }

table.plain { width: 100%; border-collapse: collapse; }
table.plain td { padding: .5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.off { opacity: .55; }
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(3, 1fr); } }

/* checkpoint 3: bell, dashboard actions, report, display */
.bell { position: relative; color: var(--plum); display: grid; place-items: center; width: 40px; height: 40px; }
.bell .count { position: absolute; top: 0; right: -2px; background: var(--coral); color: #fff; font-size: .7rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.daynav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .25rem 0 .75rem; }
.daynav a, .daynav span.none { min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 12px; border: 2px solid var(--line); background: #fff; text-decoration: none; font-weight: 800; color: var(--ink); }
.daynav span.none { opacity: .3; }
details.acts { margin-top: .6rem; }
details.acts summary { cursor: pointer; font-weight: 700; color: var(--coral); list-style: none; min-height: 40px; display: flex; align-items: center; }
details.acts summary::-webkit-details-marker { display: none; }
details.acts summary::after { content: " ▾"; }
details.acts[open] summary::after { content: " ▴"; }
.acts .grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .25rem; }
.acts .grid form { display: contents; }
.acts .grid button { min-height: 46px; padding: 0 .5rem; font-size: .92rem; }
.acts .give { display: flex; gap: .5rem; margin-top: .5rem; }
.acts .give select { flex: 1; }
.total { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.total .big { font-size: 1.7rem; }
.banner { background: #FFF0CC; color: #5E4300; border-radius: 12px; padding: .75rem 1rem; font-weight: 600; }
.banner.paid { background: #DDF2E5; color: #1E6B42; }
textarea { min-height: 7rem; font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }
.rules { white-space: pre-line; }
.lines a.fix { font-size: .82rem; font-weight: 700; white-space: nowrap; }
body.display { padding-bottom: 1rem; }
body.display main { max-width: 70rem; }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.board h2 { color: var(--ink); font-size: 1.3rem; display: flex; align-items: center; gap: .5rem; margin-top: 0; }
.acct { color: var(--soft); font-weight: 600; text-decoration: none; font-size: .95rem; }
.top form .link { font-size: .95rem; }

img.avatar { object-fit: cover; display: block; }
input[type=file] { width: 100%; padding: .6rem 0; }

/* one-touch sign out, beside the bell */
.power-form { display: flex; }
button.power { background: none; color: var(--plum); min-height: 0; width: 40px; height: 40px; padding: 0; border-radius: 12px; display: grid; place-items: center; }
button.power:active { background: var(--line); }

/* hide the family name on phones: the top bar is for the logo, the bell and sign out */
@media (max-width: 40rem) { .top .fam { visibility: hidden; } }
button.power { color: var(--plum); }

/* Dashboard: the week's days, to jump to any of them */
.weekstrip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .3rem; margin: 0 0 .75rem; }
.weekstrip a { text-align: center; text-decoration: none; color: var(--soft); font-size: .78rem; font-weight: 600; padding: .35rem 0; border-radius: 10px; border: 2px solid transparent; }
.weekstrip a b { display: block; font-size: 1rem; color: var(--ink); }
.weekstrip a.now { border-color: var(--line); background: #fff; }
.weekstrip a.on { background: var(--plum); color: #D9CFE6; border-color: var(--plum); }
.weekstrip a.on b { color: #fff; }

/* ---- a notch tighter (2026-11-19): same layout, less air; button rows stay on one line ---- */
:root { --tap: 46px; }
body { font-size: 16px; line-height: 1.4; }
main { padding: .75rem .8rem; }
h1 { font-size: 1.35rem; }
h2 { margin: 1.05rem 0 .35rem; font-size: 1rem; }
p { margin: .4rem 0; }
.card { padding: .8rem; margin: .5rem 0; border-radius: 14px; }
.card.tight { padding: .6rem .8rem; }
label { margin: .65rem 0 .25rem; }
.hint { margin-top: .2rem; font-size: .84rem; }
.lines li { padding: .5rem 0; }
.big { font-size: 1.9rem; }
.total .big { font-size: 1.5rem; }
.adult { padding: .45rem .8rem; gap: 1.1rem; }
.top { padding: .45rem .8rem; }
footer { padding: 1rem; }
.daynav { margin: .1rem 0 .5rem; }
.weekstrip { margin-bottom: .5rem; }
.tiles { gap: .6rem; }
.tile { padding: 1rem .5rem; }
.banner, .flash { padding: .55rem .8rem; }
.split div { padding: .45rem .25rem; }

/* Rows of buttons never wrap onto a second line. */
.actions { flex-wrap: nowrap; margin-top: .5rem; gap: .4rem; }
.actions form { min-width: 0; }
.actions button, .actions .btn { min-height: 40px; padding: 0 .5rem; font-size: .9rem; white-space: nowrap; border-radius: 11px; }
.give button { min-height: 40px; white-space: nowrap; }

/* Dashboard: the action buttons for a chore, in one row, always showing. */
.bar { display: flex; flex-wrap: nowrap; gap: .35rem; margin-top: .45rem; }
.bar form { flex: 1 1 0; min-width: 0; display: flex; margin: 0; }
.bar form.give { flex: 2 1 0; gap: .35rem; margin: 0; }
.bar button { width: 100%; min-height: 38px; padding: 0 .35rem; font-size: .84rem; white-space: nowrap; border-radius: 10px; overflow: hidden; text-overflow: ellipsis; }
.bar form.give button { width: auto; flex: none; padding: 0 .6rem; }
.bar select { min-height: 38px; padding: .2rem .35rem; font-size: .84rem; min-width: 0; flex: 1; border-radius: 10px; }

/* five tabs in the child's bottom menu */
.tabs a { padding: .75rem 0; font-size: .92rem; }
