/* Cradle — minimalist liquid glass.
   A soft ambient ground; a handful of floating translucent surfaces above it.
   Blur is expensive: only the topbar, panels, quickbar, sheet, and toast get it. */
:root {
  --ground: #f4f4f6;
  --blob-a: rgba(107, 124, 219, .12);
  --blob-b: rgba(224, 158, 82, .10);
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-border: rgba(255, 255, 255, .70);
  --glass-edge: rgba(24, 24, 32, .07);
  --glass-highlight: rgba(255, 255, 255, .85);
  --hover: rgba(120, 120, 140, .08);
  --divider: rgba(60, 60, 80, .09);
  --text: #1d1d22;
  --text-dim: #6e6e76;
  --text-faint: #a5a5ad;
  --accent: #5f70d6;
  --accent-ink: #ffffff;
  --feed: #b0762f;
  --sleep: #5f70d6;
  --diaper: #3f8f6a;
  --pump: #ad6597;
  --danger: #c4554d;
  --feed-tint: rgba(176, 118, 47, .12);
  --sleep-tint: rgba(95, 112, 214, .12);
  --diaper-tint: rgba(63, 143, 106, .12);
  --pump-tint: rgba(173, 101, 151, .12);
  --radius: 16px;
  --panel-shadow: 0 1px 1px rgba(20, 20, 30, .04), 0 12px 32px rgba(20, 20, 30, .08);
  --float-shadow: 0 2px 6px rgba(20, 20, 30, .08), 0 16px 40px rgba(20, 20, 30, .16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
[data-theme="dark"] {
  --ground: #0a0a0d;
  --blob-a: rgba(101, 118, 220, .16);
  --blob-b: rgba(216, 156, 90, .07);
  --glass: rgba(28, 28, 34, .55);
  --glass-strong: rgba(30, 30, 38, .82);
  --glass-border: rgba(255, 255, 255, .10);
  --glass-edge: rgba(0, 0, 0, .40);
  --glass-highlight: rgba(255, 255, 255, .09);
  --hover: rgba(200, 200, 255, .07);
  --divider: rgba(255, 255, 255, .08);
  --text: #f0f0f3;
  --text-dim: #97979f;
  --text-faint: #5c5c64;
  --accent: #8b99e8;
  --accent-ink: #101018;
  --feed: #cf9c55;
  --sleep: #97a4ef;
  --diaper: #6cb392;
  --pump: #c489b1;
  --danger: #d9776f;
  --feed-tint: rgba(207, 156, 85, .13);
  --sleep-tint: rgba(151, 164, 239, .13);
  --diaper-tint: rgba(108, 179, 146, .13);
  --pump-tint: rgba(196, 137, 177, .13);
  --panel-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  --float-shadow: 0 2px 8px rgba(0, 0, 0, .4), 0 18px 48px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 15px;
  background:
    radial-gradient(520px 420px at 12% -4%, var(--blob-a), transparent 70%),
    radial-gradient(460px 380px at 96% 22%, var(--blob-b), transparent 70%),
    radial-gradient(600px 500px at 50% 110%, var(--blob-a), transparent 72%),
    var(--ground);
  background-attachment: fixed;
}

/* the one shared glass recipe */
.glass, .status-grid, .timeline, .insights, .chart-card, .rhythm, .smartbar input, .sheet, .toast, .topbar-glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--glass-border);
  box-shadow: var(--panel-shadow), inset 0 1px 0 var(--glass-highlight), 0 0 0 .5px var(--glass-edge);
}
@supports not (backdrop-filter: blur(1px)) {
  .glass, .status-grid, .timeline, .insights, .chart-card, .rhythm, .smartbar input, .sheet, .toast, .topbar-glass {
    background: var(--glass-strong);
  }
}

button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea {
  font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 10px 16px; width: 100%;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
::placeholder { color: var(--text-faint); }

#app { max-width: 620px; margin: 0 auto; padding: 0 18px calc(104px + env(safe-area-inset-bottom)); }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; max-width: 360px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; }
.logo { font-size: 36px; text-align: center; }
.auth-wrap h1 { text-align: center; font-size: 26px; letter-spacing: -.4px; margin: 10px 0 4px; font-weight: 700; }
.tagline { text-align: center; color: var(--text-dim); margin-bottom: 26px; font-size: 14.5px; }
.auth-card { display: grid; gap: 10px; }
.auth-switch { text-align: center; color: var(--text-dim); margin-top: 18px; font-size: 14px; }
.auth-switch button { color: var(--accent); font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 14.5px;
  background: var(--glass); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  transition: background .15s, transform .08s;
}
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.07); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-dim); }
.btn-danger { color: var(--danger); }
.btn-block { width: 100%; padding: 11px 18px; }
.error { color: var(--danger); font-size: 13.5px; min-height: 1em; }

/* ---------- header ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 4px; position: sticky; top: 10px; z-index: 5;
  border-radius: 999px; margin: 12px 0 16px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--glass-border);
  box-shadow: var(--panel-shadow), inset 0 1px 0 var(--glass-highlight);
}
@supports not (backdrop-filter: blur(1px)) { .topbar { background: var(--glass-strong); } }
.baby-switch { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16.5px; letter-spacing: -.2px; border-radius: 999px; padding: 4px 12px 4px 6px; }
.baby-switch:hover { background: var(--hover); }
.baby-switch .age { font-size: 12px; font-weight: 400; color: var(--text-dim); display: block; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--sleep-tint);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.icon-btn { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--text-dim); }
.icon-btn:hover { background: var(--hover); }
.topbar > div:last-child { padding-right: 6px; }

/* ---------- tab bar ---------- */
.tabbar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  padding: 4px; margin: 0 0 14px; border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}
.tabbar .tab {
  padding: 7px 0; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  color: var(--text-dim); transition: background .15s, color .15s;
}
.tabbar .tab:hover { background: var(--hover); }
.tabbar .tab.active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* ---------- Book tab ---------- */
.prompt-card { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; }
.prompt-card .p-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 4px;
}
.prompt-card p { font-size: 14.5px; color: var(--text); }
.composer { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 8px; display: grid; gap: 10px; }
.kind-row { display: flex; gap: 6px; }
.kind-chip {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--hover); color: var(--text-dim); border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.kind-chip.selected { border-color: var(--accent); background: var(--sleep-tint); color: var(--text); }
.composer textarea { border-radius: 14px; resize: vertical; min-height: 64px; font-size: 15px; }
.composer input { border-radius: 14px; }
.composer-actions { display: flex; justify-content: space-between; align-items: center; }
.photo-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-thumb { position: relative; display: inline-block; }
.photo-thumb img, .e-photo {
  width: 72px; height: 72px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--glass-border); display: block;
}
.entry .e-photo { width: 96px; height: 96px; }
.photo-x {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--text); color: var(--ground);
  font-size: 10px; display: flex; align-items: center; justify-content: center;
}
.entries { display: grid; gap: 10px; }
.entry { border-radius: var(--radius); padding: 13px 16px; }
.entry header { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; color: var(--text-faint); margin-bottom: 6px; }
.entry .e-kind { font-size: 14px; }
.entry .e-date { font-weight: 600; color: var(--text-dim); }
.entry .e-delete, .sched-item .e-delete {
  margin-left: auto; width: 24px; height: 24px; border-radius: 50%;
  font-size: 11px; color: var(--text-faint); display: flex; align-items: center; justify-content: center;
}
.entry .e-delete:hover, .sched-item .e-delete:hover { background: var(--hover); color: var(--danger); }
.entry p { font-size: 14.5px; line-height: 1.55; margin-bottom: 8px; white-space: pre-wrap; }
.milestone-chip {
  display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 12px;
  border-radius: 999px; background: var(--feed-tint); color: var(--feed); margin-bottom: 8px;
}

/* ---------- Ask tab ---------- */
.lang-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 4px 8px; }
.lang-btn { font-size: 12.5px; padding: 5px 12px; }
.sched { border-radius: var(--radius); overflow: hidden; }
.sched-item {
  display: flex; gap: 12px; padding: 12px 16px; align-items: flex-start;
}
.sched-item + .sched-item, .sched-item + .appt-form, .sched .btn-ghost { border-top: 1px solid var(--divider); }
.sched-item.past { opacity: .45; }
.s-icon {
  width: 32px; height: 32px; border-radius: 50%; flex: none; font-size: 14px;
  display: flex; align-items: center; justify-content: center; background: var(--hover);
}
.s-main { flex: 1; min-width: 0; }
.s-title { font-weight: 600; font-size: 14px; }
.s-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; margin-top: 2px; }
.s-date { font-size: 12.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sched-note { font-size: 12px; color: var(--text-faint); margin: 8px 6px 0; }
.appt-form { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 12px 16px; }
.appt-form input { border-radius: 12px; font-size: 13.5px; padding: 8px 12px; width: auto; }
.ics-url {
  display: block; font-size: 11px; color: var(--text-dim); word-break: break-all;
  background: var(--hover); border-radius: 8px; padding: 6px 10px; margin-top: 8px;
  font-family: ui-monospace, monospace;
}
@media (max-width: 520px) { .appt-form { grid-template-columns: 1fr; } .appt-form input { width: 100%; } }

/* ---------- status panel ---------- */
.status-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-radius: var(--radius); overflow: hidden;
  margin: 0 0 12px;
}
.status-card { padding: 13px 16px; text-align: left; transition: background .15s; position: relative; }
.status-card:hover { background: var(--hover); }
.status-card:nth-child(2n)::before,
.status-card:nth-child(n+3)::after {
  content: ""; position: absolute; background: var(--divider);
}
.status-card:nth-child(2n)::before { left: 0; top: 12px; bottom: 12px; width: 1px; }
.status-card:nth-child(n+3)::after { top: 0; left: 14px; right: 14px; height: 1px; }
.status-card .kind { font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 6px; color: var(--text-dim); }
.status-card .kind .dot { width: 7px; height: 7px; border-radius: 50%; }
.k-feed .kind .dot { background: var(--feed); }
.k-sleep .kind .dot { background: var(--sleep); }
.k-diaper .kind .dot { background: var(--diaper); }
.k-pump .kind .dot { background: var(--pump); }
.status-card .ago { display: block; font-size: 21px; font-weight: 600; letter-spacing: -.4px; margin-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.status-card .sub { display: block; font-size: 12px; color: var(--text-faint); margin-top: 1px; min-height: 1.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-card.asleep { background: var(--sleep-tint); }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sleep); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } * { transition: none !important; } }

/* ---------- rhythm strip ---------- */
.rhythm {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
  font-size: 13px; color: var(--text-dim);
  padding: 9px 16px; margin-bottom: 12px; border-radius: 999px;
}
.rhythm .r-item { display: flex; align-items: center; gap: 7px; }
.rhythm .r-icon { font-size: 13px; }
.rhythm strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.rhythm .r-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- smart bar ---------- */
.smartbar { position: relative; margin-bottom: 22px; }
.smartbar input { padding-right: 80px; }
.smartbar .sb-actions { position: absolute; right: 7px; top: 20px; transform: translateY(-50%); display: flex; gap: 2px; }
.smartbar .sb-btn {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 14px; color: var(--text-dim);
}
.smartbar .sb-btn:hover { background: var(--hover); }
.smartbar .sb-btn.listening { background: var(--sleep-tint); color: var(--accent); }
.parse-preview { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.parse-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--text-dim);
}
.parse-chip strong { color: var(--text); font-weight: 500; }

/* ---------- sections ---------- */
.section-title {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-faint); margin: 24px 4px 8px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.section-title .today-stats { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-dim); font-size: 12.5px; }

/* ---------- insights ---------- */
.insights { display: grid; border-radius: var(--radius); overflow: hidden; }
.insight {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 16px;
  font-size: 13.5px; color: var(--text-dim); line-height: 1.45;
}
.insight + .insight { border-top: 1px solid var(--divider); }
.insight .i-icon { font-size: 14px; flex: none; margin-top: 1px; }
.insight strong { color: var(--text); font-weight: 600; }

/* ---------- timeline ---------- */
.timeline { border-radius: var(--radius); overflow: hidden; }
.timeline > .btn-ghost { width: 100%; border-radius: 0; padding: 10px; font-size: 13px; border-top: 1px solid var(--divider); }
.event-row {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  padding: 9px 16px; transition: background .15s;
}
.event-row:hover { background: var(--hover); }
.event-row + .event-row, .event-row + .day-divider, .day-divider + .event-row { border-top: 1px solid var(--divider); }
.event-dot {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  background: var(--hover);
}
.event-dot.d-feed { background: var(--feed-tint); }
.event-dot.d-sleep { background: var(--sleep-tint); }
.event-dot.d-diaper { background: var(--diaper-tint); }
.event-dot.d-pump { background: var(--pump-tint); }
.event-main { flex: 1; min-width: 0; }
.event-title { font-weight: 500; font-size: 14px; }
.event-sub { font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-time { font-size: 12.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.empty { color: var(--text-faint); text-align: center; padding: 26px 16px; font-size: 14px; }
.day-divider {
  font-size: 11px; font-weight: 600; color: var(--text-faint); padding: 8px 16px 6px;
  text-transform: uppercase; letter-spacing: .08em;
}

/* ---------- chart ---------- */
.chart-card { border-radius: var(--radius); padding: 16px; }
.chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 96px; }
.chart .col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; height: 100%; }
.chart .bar { width: 52%; border-radius: 4px; min-height: 2px; }
.chart .bar.b-feed { background: var(--feed); opacity: .7; }
.chart .bar.b-sleep { background: var(--sleep); opacity: .7; }
.chart .lbl { font-size: 10.5px; color: var(--text-faint); }
.chart .val { font-size: 10.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--text-dim); }
.legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; opacity: .7; }

/* ---------- floating quick-log capsule ---------- */
.quickbar {
  position: fixed; bottom: calc(12px + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  width: min(420px, calc(100% - 28px)); z-index: 10;
  border-radius: 999px; padding: 6px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(1.7);
  backdrop-filter: blur(28px) saturate(1.7);
  border: 1px solid var(--glass-border);
  box-shadow: var(--float-shadow), inset 0 1px 0 var(--glass-highlight);
}
@supports not (backdrop-filter: blur(1px)) { .quickbar { background: var(--glass-strong); } }
.quickbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  border-radius: 999px; padding: 7px 4px 6px;
  font-size: 11px; font-weight: 500; color: var(--text-dim);
  transition: background .15s, transform .08s;
}
.quick-btn:hover { background: var(--hover); }
.quick-btn:active { transform: scale(.94); }
.quick-btn .emoji { font-size: 19px; }
.quick-btn.active-sleep { background: var(--sleep-tint); color: var(--accent); }

/* ---------- sheet / modal ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(10, 10, 16, .35); z-index: 20;
  display: flex; align-items: flex-end; justify-content: center; animation: fade .14s ease;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  border-radius: 22px 22px 0 0; width: 100%; max-width: 520px;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
  animation: rise .18s cubic-bezier(.2, .8, .3, 1); max-height: 85vh; overflow-y: auto;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(32px) saturate(1.7);
  backdrop-filter: blur(32px) saturate(1.7);
}
@keyframes rise { from { transform: translateY(28px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .overlay, .sheet { animation: none; } }
.sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--divider); margin: 6px auto 14px; }
.sheet h2 { font-size: 16.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.choice-grid.two { grid-template-columns: 1fr 1fr; }
.choice {
  padding: 11px 6px; border-radius: 14px; text-align: center;
  background: var(--hover); border: 1px solid transparent; font-weight: 500; font-size: 13.5px;
  display: flex; flex-direction: column; gap: 3px; align-items: center;
  transition: background .15s, border-color .15s;
}
.choice .emoji { font-size: 18px; }
.choice.selected { border-color: var(--accent); background: var(--sleep-tint); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-dim); margin-bottom: 5px; }
.field input, .sheet input { border-radius: 14px; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.sheet .btn-block { margin-top: 4px; }
.invite-code {
  font-size: 30px; font-weight: 700; letter-spacing: .16em; text-align: center;
  padding: 16px; background: var(--hover); border-radius: 16px;
  border: 1px dashed var(--divider); margin: 10px 0; user-select: all;
  font-variant-numeric: tabular-nums;
}
.menu-list { display: grid; gap: 1px; }
.menu-list .btn { justify-content: flex-start; background: transparent; border-color: transparent; box-shadow: none; padding: 10px 12px; font-weight: 400; font-size: 14.5px; border-radius: 12px; }
.menu-list .btn:hover { background: var(--hover); }
.menu-sep { height: 1px; background: var(--divider); margin: 6px 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  z-index: 30; animation: fade .14s ease; white-space: nowrap;
  box-shadow: var(--float-shadow), inset 0 1px 0 var(--glass-highlight);
}
.toast .undo { color: var(--accent); margin-left: 10px; font-weight: 600; }

/* ---------- onboarding ---------- */
.onboard { min-height: 100vh; max-width: 360px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 32px 0; }
.onboard h1 { font-size: 22px; text-align: center; letter-spacing: -.3px; font-weight: 700; }
.onboard p { text-align: center; color: var(--text-dim); margin-bottom: 8px; font-size: 14.5px; }
.onboard .auth-card { gap: 10px; }
.or { text-align: center; color: var(--text-faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; }

@media (min-width: 700px) {
  .status-grid { grid-template-columns: repeat(4, 1fr); }
  .status-card:nth-child(2n)::before { display: none; }
  .status-card:nth-child(n+2)::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--divider); display: block; }
  .status-card:nth-child(n+3)::after { display: none; }
}
