:root {
  /* Pippa palette: warm cream, rosy coral, soft pastels with enough contrast to read */
  --bg: #FFF8F2; --surface: #FFFFFF; --surface-2: #FBEFE8; --ink: #3B2F45; --muted: #8A7D91; --line: #F1E3DA;
  --accent: #EE6F7E; --accent-ink: #FFFFFF; --accent-soft: #FDE3E5;
  --meal: #E8913A; --sleep: #7F84DC; --toilet: #3FA796; --photo: #E66C9E; --med: #9C78D3; --note: #5E95C2;
  --warn-bg: #FFF2DE; --warn-ink: #8F5B0C; --urgent-bg: #FFE5E8; --urgent-ink: #B2374A; --info-bg: #EEEFFD; --info-ink: #4B4DA3; --tip-bg: #E4F4EF; --tip-ink: #21705F;
  --shadow: 0 1px 2px rgba(59, 47, 69, .05), 0 6px 20px rgba(59, 47, 69, .07);
  --radius: 20px; --tabbar: 68px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: radial-gradient(1200px 500px at 50% -200px, #FFE9E4, transparent), var(--bg); color: var(--ink); font: 16px/1.45 Nunito, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea, select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); outline: none; }
input:focus, textarea:focus { border-color: var(--accent); }
input[type="time"], input[type="date"] { min-height: 46px; }
h1 { font: 600 1.65rem/1.15 Fredoka, Nunito, system-ui, sans-serif; margin: 0; letter-spacing: -.005em; }
h2, h3 { margin: 0; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.tiny { font-size: .78rem; color: var(--muted); }
.center { text-align: center; display: block; margin: 16px auto; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.icon { flex: none; display: block; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }

#app { max-width: 520px; margin: 0 auto; min-height: 100dvh; position: relative; }
@media (min-width: 560px) { #app { box-shadow: 0 0 0 1px var(--line); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 18px; border-radius: 14px; background: var(--surface-2); font-weight: 700; min-height: 46px; transition: transform .1s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.danger { color: var(--urgent-ink); }
.btn.small { padding: 7px 12px; min-height: 36px; font-size: .88rem; border-radius: 11px; white-space: nowrap; }
.btn.grow { width: 100%; }
.sheet-foot .btn.grow { flex: 1; width: auto; }
.btn:disabled { opacity: .45; cursor: default; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.link { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- layout ---------- */
.page { padding: max(16px, env(safe-area-inset-top)) 16px calc(var(--tabbar) + 96px); display: flex; flex-direction: column; gap: 22px; }
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.eyebrow { margin: 0 0 2px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.role-badge { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 99px; background: var(--info-bg); color: var(--info-ink); font-size: .8rem; font-weight: 700; }
.section-title { font-size: 1.02rem; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card.calm { display: flex; gap: 10px; align-items: center; color: var(--tip-ink); background: var(--tip-bg); box-shadow: none; }
.empty { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 32px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); }

/* ---------- avatars & chips ---------- */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroller { flex-wrap: nowrap; overflow-x: auto; margin: -4px -16px; padding: 4px 16px; scrollbar-width: none; }
.chips.small { margin-top: 8px; }
.chips.small .chip { padding: 5px 10px; font-size: .82rem; min-height: 32px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 700; font-size: .9rem; min-height: 40px; white-space: nowrap; }
.chip.kid { padding-left: 6px; }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; background: var(--tip-bg); color: var(--tip-ink); border-radius: 99px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .75rem; font-weight: 800; margin-top: 4px; width: fit-content; }
.tag.warn, .warn-text { color: var(--urgent-ink); }
.tag.warn { background: var(--urgent-bg); }

/* ---------- alerts ---------- */
.alerts { display: flex; flex-direction: column; gap: 10px; }
.alert { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); }
.alert-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .7); flex: none; }
.alert-text { flex: 1; display: flex; flex-direction: column; font-size: .9rem; min-width: 0; }
.alert-text strong { font-size: 1rem; }
.alert.warn { background: var(--warn-bg); color: var(--warn-ink); }
.alert.urgent { background: var(--urgent-bg); color: var(--urgent-ink); }
.alert.info { background: var(--info-bg); color: var(--info-ink); }
.alert.tip { background: var(--tip-bg); color: var(--tip-ink); }
.alert .btn { background: var(--surface); color: var(--ink); }

/* ---------- quick log ---------- */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); font-weight: 700; font-size: .9rem; transition: transform .1s; }
.quick-btn:active { transform: scale(.95); }
.quick-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }

/* ---------- recaps ---------- */
.recaps { display: grid; gap: 10px; }
.recap { text-align: left; display: flex; flex-direction: column; gap: 8px; }
.recap-head { display: flex; align-items: center; gap: 8px; }
.recap-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .88rem; }
.recap-stats b { color: var(--ink); }

/* ---------- AI summary ---------- */
.summary { display: flex; flex-direction: column; gap: 8px; background: linear-gradient(150deg, color-mix(in srgb, var(--photo) 10%, var(--surface)), var(--surface) 70%); }
.summary-head { display: flex; align-items: center; gap: 8px; }
.summary-head strong { flex: 1; }
.summary-icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: var(--photo); background: color-mix(in srgb, var(--photo) 14%, transparent); }
.summary-text { margin: 0; font-size: .97rem; line-height: 1.55; }
.summary-btn { width: 100%; background: color-mix(in srgb, var(--photo) 14%, var(--surface)); color: var(--photo); }
.summary-busy { margin: 0; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.row button { width: 100%; text-align: left; display: grid; grid-template-columns: 62px 32px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .85rem; color: var(--muted); padding-top: 6px; }
.row-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.row-text { display: flex; flex-direction: column; min-width: 0; font-size: .9rem; }
.row-text strong { font-size: .97rem; }
.row-text span { color: var(--muted); }
.row-text small { color: var(--muted); font-size: .75rem; margin-top: 2px; }
.row.live .row-icon { animation: pulse 2s infinite; }
.row-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; margin-top: 6px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent); } }

/* ---------- tab bar & fab ---------- */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); z-index: 20; }
.tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .74rem; font-weight: 700; color: var(--muted); }
.tabbar button.on { color: var(--accent); }
.tab-feed .tabbar { background: rgba(10, 8, 7, .82); border-color: transparent; }
.tab-feed .tabbar button { color: rgba(255, 255, 255, .6); }
.tab-feed .tabbar button.on { color: #fff; }
.fab { position: fixed; right: max(18px, calc(50% - 260px + 18px)); bottom: calc(var(--tabbar) + 18px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 45%, transparent); z-index: 15; }

/* ---------- sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(20, 14, 10, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { width: 100%; max-width: 520px; max-height: 92dvh; background: var(--bg); border-radius: 24px 24px 0 0; display: flex; flex-direction: column; animation: up .22s cubic-bezier(.2, .9, .3, 1); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 6px; }
.sheet-head h2 { font-size: 1.25rem; font-weight: 800; }
.sheet-body { padding: 8px 16px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.sheet-foot { display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet .quick { padding-bottom: 8px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-weight: 800; font-size: .92rem; }
.hint { font-size: .8rem; color: var(--muted); }
.time-row { display: flex; align-items: center; gap: 10px; }
.time-row input { width: 140px; }
.photo-pick { display: grid; place-items: center; text-align: center; min-height: 200px; border-radius: var(--radius); border: 2px dashed var(--line); color: var(--muted); font-weight: 700; cursor: pointer; overflow: hidden; }
.photo-pick.has { border-style: solid; }
.photo-pick img { width: 100%; max-height: 340px; object-fit: cover; display: block; }

/* ---------- feed ---------- */
.feed { height: 100dvh; overflow-y: scroll; scroll-snap-type: y mandatory; background: #0A0807; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.post { position: relative; height: calc(100dvh - var(--tabbar) - env(safe-area-inset-bottom)); scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; color: #fff; }
.post-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-media.art { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, hsl(var(--a) 80% 72%), transparent 60%), linear-gradient(160deg, hsl(var(--a) 70% 60%), hsl(var(--b) 65% 45%)); }
.post-media.art span { font-size: 8rem; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .25)); }
.post-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 80px 22px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.post-who { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.post-who div { display: flex; flex-direction: column; }
.post-who small { opacity: .85; font-size: .8rem; }
.post-caption { font-size: 1.05rem; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); margin: 0; }
.post-actions { position: absolute; right: 12px; bottom: 30px; display: flex; flex-direction: column; gap: 18px; }
.post-actions button { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .28); backdrop-filter: blur(8px); }
.post-actions .like.on { color: #FF5A79; }
.post-ago { position: absolute; top: max(16px, env(safe-area-inset-top)); left: 16px; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .3); backdrop-filter: blur(8px); }
.feed-add { position: fixed; top: max(12px, env(safe-area-inset-top)); right: max(12px, calc(50% - 260px + 12px)); z-index: 10; display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; color: #fff; font-weight: 700; background: rgba(0, 0, 0, .35); backdrop-filter: blur(8px); }
.feed-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; color: #ddd; padding: 24px; }

/* ---------- children ---------- */
.kid-list { display: flex; flex-direction: column; gap: 12px; }
.kid-card { display: flex; align-items: center; gap: 14px; text-align: left; }
.kid-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.kid-main strong { font-size: 1.1rem; }
.routine-line { font-size: .85rem; font-weight: 700; color: var(--sleep); margin-top: 4px; }
.profile-head { flex: 1; display: flex; align-items: center; gap: 12px; }
.insight { background: linear-gradient(150deg, #EEEFFD, #FFF5FA 55%, var(--surface)); }
.insight ul { margin: 0 0 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.routine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.routine-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.routine-item input { padding: 8px; min-height: 42px; font-weight: 700; }
.details dl { margin: 0; display: grid; gap: 4px; }
.details dt { font-weight: 800; font-size: .82rem; color: var(--muted); margin-top: 8px; }
.details dd { margin: 0; }
.days { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 14px; }
.day-row { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr 1.2fr; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); align-items: center; }
.day-row:last-child { border: 0; }
.day-row strong { color: var(--ink); font-size: .88rem; }

/* ---------- family ---------- */
.people { display: flex; flex-direction: column; gap: 10px; }
.person { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.person.off { opacity: .6; }
.p-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; flex: none; }
.p-main { flex: 1; display: flex; flex-direction: column; min-width: 140px; }
.p-actions { display: flex; gap: 6px; }
.pin-line { font-size: .85rem; color: var(--muted); }
.settings { padding: 4px 0; }
.set-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 700; text-align: left; border-bottom: 1px solid var(--line); }
.set-row:last-child { border: 0; }
.set-row .icon:last-child { margin-left: auto; color: var(--muted); }
.set-row.danger { color: var(--urgent-ink); }
.notif { display: flex; align-items: center; gap: 12px; }
.notif div { flex: 1; display: flex; flex-direction: column; }
.created { text-align: center; }
.big-pin { font-size: 3rem; font-weight: 800; letter-spacing: .3em; padding: 12px 0 12px .3em; margin: 8px 0 12px; border-radius: var(--radius); background: var(--surface-2); font-variant-numeric: tabular-nums; }

/* ---------- lock & onboarding ---------- */
.lock, .onboard { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 32px 24px; text-align: center; }
.onboard { align-items: stretch; text-align: left; max-width: 420px; margin: 0 auto; gap: 16px; }
.onboard h1 { font-size: 1.7rem; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 1.45rem Fredoka, Nunito, sans-serif; color: var(--ink); margin-bottom: 12px; }
.brand.big { font-size: 1.9rem; }
.logo { width: 40px; height: 40px; border-radius: 14px 14px 14px 4px; background: linear-gradient(140deg, #F58C8F, var(--accent) 55%, #E66C9E); color: #fff; display: grid; place-items: center; font: 600 1.5rem/1 Fredoka, sans-serif; padding-bottom: 4px; box-shadow: 0 4px 12px rgba(238, 111, 126, .35); }
.dots { display: flex; gap: 16px; margin: 18px 0 4px; }
.dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--muted); transition: background .1s; }
.dots span.on { background: var(--ink); border-color: var(--ink); }
.dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.error { color: var(--urgent-ink); min-height: 1.4em; font-weight: 700; font-size: .9rem; max-width: 300px; }
.pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; }
.pad button { width: 76px; height: 76px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); font-size: 1.7rem; font-weight: 700; }
.pad button:active { background: var(--surface-2); }
.demo-hint { margin-top: 18px; font-size: .82rem; color: var(--muted); max-width: 300px; }
.ticks { list-style: none; padding: 0; margin: 4px 0 12px; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 10px; color: var(--muted); }
.ticks .icon { color: var(--toilet); margin-top: 2px; }
.big-input { font-size: 1.3rem; padding: 16px; }

/* ---------- toast ---------- */
.toast { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: calc(100% - 24px); max-width: 496px; z-index: 60;
  display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); animation: drop .3s; cursor: pointer; }
.toast div { display: flex; flex-direction: column; font-size: .9rem; }
.toast.warn { background: var(--warn-bg); color: var(--warn-ink); }
.toast.urgent { background: var(--urgent-bg); color: var(--urgent-ink); }
@keyframes drop { from { transform: translate(-50%, -20px); opacity: 0; } }

@media (max-width: 360px) { .quick { grid-template-columns: repeat(2, 1fr); } .pad { grid-template-columns: repeat(3, 66px); } .pad button { width: 66px; height: 66px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- cloud ---------- */
.photo-loading { background: linear-gradient(110deg, var(--surface-2) 30%, #fff 50%, var(--surface-2) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; min-height: 72px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.center-col { align-items: center; text-align: center; }
form.onboard .error { margin: 0; }

/* ---------- saved foods ---------- */
.food-input { display: flex; gap: 8px; align-items: center; }
.food-input input { flex: 1; }
.chip.removable { gap: 4px; padding-right: 10px; }
.chip.food { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.2; padding-top: 6px; padding-bottom: 6px; }
.chip.food small { font-size: .68rem; font-weight: 700; color: var(--meal); }
.chip.food.had { opacity: .55; }
.chip.food .star { color: var(--meal); margin-right: 2px; }
.food-suggest { margin-top: 2px; }
.allergy-warn { display: flex; gap: 8px; align-items: center; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--urgent-bg); color: var(--urgent-ink); font-weight: 700; font-size: .88rem; }
.food-list { display: flex; flex-direction: column; }
.food-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.food-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.star-btn { font-size: 1.35rem; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); }
.star-btn.on { color: var(--meal); }

/* ---------- desktop (960px and wider) ---------- */
.side-brand { display: none; }
@media (min-width: 960px) {
  #app { max-width: none; box-shadow: none; }
  .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
  .shell > main { grid-column: 2; grid-row: 1; }

  /* bottom tab bar becomes a left sidebar */
  .tabbar, .tab-feed .tabbar {
    position: sticky; top: 0; left: auto; transform: none; grid-column: 1; grid-row: 1;
    width: auto; max-width: none; height: 100dvh; padding: 28px 14px;
    display: flex; flex-direction: column; gap: 4px;
    background: var(--surface); border-top: 0; border-right: 1px solid var(--line); backdrop-filter: none;
  }
  .side-brand { display: flex; align-items: center; gap: 10px; font: 600 1.45rem Fredoka, Nunito, sans-serif; padding: 0 10px 24px; }
  .side-brand .logo { width: 36px; height: 36px; font-size: 1.3rem; }
  .tabbar button, .tab-feed .tabbar button { flex-direction: row; justify-content: flex-start; gap: 12px; height: 48px; padding: 0 14px; border-radius: 14px; font-size: 1rem; color: var(--muted); }
  .tabbar button:hover { background: var(--surface-2); }
  .tabbar button.on, .tab-feed .tabbar button.on { background: var(--accent-soft); color: var(--accent); }

  .page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 36px 44px 80px; gap: 26px; }
  h1 { font-size: 2rem; }
  .fab { right: 44px; bottom: 40px; }
  .toast { left: auto; right: 24px; transform: none; width: 380px; }
  @keyframes drop { from { transform: translateY(-20px); opacity: 0; } }

  /* home: two columns */
  .page.home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-content: start;
    grid-template-areas: "top top" "chips chips" "attention daily" "quicklog daily" "today timeline" ". timeline"; }
  .page.home > .top { grid-area: top; }
  .page.home > .chips.scroller { grid-area: chips; margin: 0; padding: 4px 0; flex-wrap: wrap; }
  .area-attention { grid-area: attention; } .area-quicklog { grid-area: quicklog; } .area-today { grid-area: today; }
  .area-daily { grid-area: daily; } .area-timeline { grid-area: timeline; }
  .quick { grid-template-columns: repeat(3, 1fr); }

  /* lists become grids */
  .kid-list, .people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .settings, .notif { max-width: 620px; }

  /* sheets open as centred dialogs */
  .sheet-backdrop { align-items: center; padding: 24px; }
  .sheet { max-width: 580px; border-radius: 24px; max-height: 88dvh; box-shadow: 0 30px 80px rgba(59, 47, 69, .25); }

  /* moments feed: a centred column of photos */
  .feed { background: #0A0807; }
  .post { height: 100dvh; max-width: 560px; margin: 0 auto; border-radius: 0; }
  .feed-add { right: 32px; }

  /* sign-in & lock screens sit on a card */
  .lock, .onboard { min-height: 100dvh; }
  .onboard { max-width: 460px; }
}
@media (min-width: 1400px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
