/* Daily Push — mobile-first styles */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef0f6;
  --text: #121826;
  --muted: #5f6b7d;
  --line: #e3e6ee;
  --primary: #4f46e5;
  --primary-ink: #ffffff;
  --primary-soft: #e9e8fd;
  --green: #15803d; --green-bg: #dcfce7;
  --blue: #1d4ed8; --blue-bg: #dbeafe;
  --amber: #a16207; --amber-bg: #fef3c7;
  --red: #b91c1c; --red-bg: #fee2e2;
  --orange: #c2410c; --orange-bg: #ffedd5;
  --grey-bg: #eceef3;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
  --radius: 18px;
  --nav-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1419; --surface: #182029; --surface-2: #212b36; --text: #eef2f7; --muted: #9aa6b6; --line: #2a3542;
    --primary: #8b85ff; --primary-ink: #0f1419; --primary-soft: #2a2860;
    --green: #4ade80; --green-bg: #133322; --blue: #7ab2ff; --blue-bg: #16284a; --amber: #fbbf24; --amber-bg: #3a2e0c;
    --red: #f87171; --red-bg: #3d1717; --orange: #fb923c; --orange-bg: #3c2210; --grey-bg: #242e3a;
    --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1419; --surface: #182029; --surface-2: #212b36; --text: #eef2f7; --muted: #9aa6b6; --line: #2a3542;
  --primary: #8b85ff; --primary-ink: #0f1419; --primary-soft: #2a2860;
  --green: #4ade80; --green-bg: #133322; --blue: #7ab2ff; --blue-bg: #16284a; --amber: #fbbf24; --amber-bg: #3a2e0c;
  --red: #f87171; --red-bg: #3d1717; --orange: #fb923c; --orange-bg: #3c2210; --grey-bg: #242e3a;
  --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
}
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
html[data-text="large"] { font-size: 18.5px; }
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);
  min-height: 100vh;
}
body.no-nav { padding-bottom: 24px; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 1.6rem; font-weight: 750; letter-spacing: -.01em; }
p { margin: .4rem 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

#main { max-width: 640px; margin: 0 auto; outline: none; }
.page { padding: calc(16px + env(safe-area-inset-top)) 16px 24px; }
.add-btn { flex: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 8px 0 16px; }
.eyebrow { font-size: .8rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; display: block; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.05rem; }
.pre { white-space: pre-wrap; }
.section-title { font-size: .95rem; font-weight: 700; color: var(--muted); margin: 24px 4px 10px; }

/* Cards */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; border: 1px solid var(--line); }
.card-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.cards { display: grid; gap: 12px; }

/* Buttons */
.btn { appearance: none; border: 0; border-radius: 14px; padding: 12px 16px; min-height: 48px; font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: transform .08s, background .15s; }
.btn:active { transform: scale(.98); }
.btn-lg { width: 100%; min-height: 54px; font-size: 1.05rem; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger-ghost { background: var(--red-bg); color: var(--red); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.split { justify-content: space-between; }
.btn-row { display: flex; gap: 8px; margin-top: 8px; }
.btn-row > .btn { flex: 1; }
.btn-row.wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 10px; margin-top: 12px; }
.link-btn { background: none; border: 0; color: var(--primary); font-weight: 650; padding: 8px 4px; cursor: pointer; min-height: 40px; }
.link-btn.back { padding-left: 0; margin-bottom: 4px; }
.icon-btn { background: var(--surface-2); border: 0; width: 44px; height: 44px; border-radius: 12px; font-size: 1.3rem; cursor: pointer; display: inline-grid; place-items: center; flex: none; color: var(--text); }
.icon-btn[disabled] { opacity: .35; }
.fab { position: fixed; right: max(16px, calc(50% - 304px)); bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); width: 60px; height: 60px; border-radius: 20px; border: 0; background: var(--primary); color: var(--primary-ink); font-size: 2rem; box-shadow: 0 8px 24px rgba(79,70,229,.35); cursor: pointer; z-index: 20; }

/* Summary */
.summary { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.summary-grid div { display: flex; flex-direction: column; }
.summary-grid b { font-size: 1.5rem; line-height: 1.1; }
.summary-grid span { font-size: .8rem; color: var(--muted); }
.summary-grid .warn b { color: var(--orange); }
.summary-msg { grid-column: 1 / -1; margin: 6px 0 0; font-weight: 550; }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--primary); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .5s; }
.ring-text { fill: var(--text); font-weight: 750; font-size: 1.1rem; }

/* Status badges */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.badge-completed { background: var(--green-bg); color: var(--green); }
.badge-progress { background: var(--blue-bg); color: var(--blue); }
.badge-upcoming { background: var(--amber-bg); color: var(--amber); }
.badge-pending { background: var(--red-bg); color: var(--red); }
.badge-overdue { background: var(--orange-bg); color: var(--orange); }
.badge-skipped { background: var(--grey-bg); color: var(--muted); }

/* Task card */
.task-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; border: 1px solid var(--line); border-left: 6px solid var(--line); }
.task-card.st-completed { border-left-color: var(--green); }
.task-card.st-progress { border-left-color: var(--blue); }
.task-card.st-upcoming { border-left-color: var(--amber); }
.task-card.st-pending { border-left-color: var(--red); }
.task-card.st-overdue { border-left-color: var(--orange); background: linear-gradient(0deg, var(--surface), var(--surface)) padding-box; }
.task-card.st-skipped { opacity: .8; }
.task-card-head { display: flex; gap: 12px; align-items: center; }
.task-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.35rem; flex: none; }
.task-title-wrap { flex: 1; min-width: 0; }
.task-title { font-size: 1.1rem; font-weight: 750; text-transform: uppercase; letter-spacing: .02em; overflow-wrap: anywhere; }
.task-meta { font-size: .85rem; color: var(--muted); }
.task-time { font-size: 1.05rem; font-weight: 650; margin: 10px 0 6px; }
.task-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.countdown { font-size: .85rem; color: var(--muted); }
.task-actions { margin-top: 12px; }
.card-msg { color: var(--muted); margin: 0 0 10px; }
.card-done { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); }
.prio { font-size: .72rem; font-weight: 750; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); }
.prio-important { background: var(--amber-bg); color: var(--amber); }
.prio-critical { background: var(--red-bg); color: var(--red); }
.tag { font-size: .72rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.bar { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 12px; }
.bar > span { display: block; height: 100%; background: var(--primary); border-radius: 99px; transition: width .4s; }
.bar.small { height: 6px; margin-top: 6px; }
.older-date { margin: 0 4px 4px; }

.suggest { border-color: var(--primary); background: var(--primary-soft); }
.goal-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; color: inherit; }
.goal-emoji { font-size: 1.8rem; }
.goal-body { flex: 1; display: flex; flex-direction: column; }
.goal-body span { font-size: .85rem; color: var(--muted); }
.chev { font-size: 1.6rem; color: var(--muted); }
.balance-row { display: flex; justify-content: space-between; padding: 4px 0; }

/* Empty */
.empty { text-align: center; padding: 32px 16px; }
.empty-icon { font-size: 2.6rem; }
.empty h3 { margin: 8px 0 4px; }
.empty p { color: var(--muted); max-width: 340px; margin: 0 auto 16px; }

/* Segmented tabs */
.segmented { display: flex; background: var(--surface-2); padding: 4px; border-radius: 14px; margin-bottom: 16px; }
.segmented a { flex: 1; text-align: center; padding: 10px 6px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 650; }
.segmented a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* Planner timeline */
.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.day-nav-label { text-align: center; display: flex; flex-direction: column; }
.day-nav-label span { font-size: .85rem; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 8px 0 0; }
.tl-row { display: grid; grid-template-columns: 72px 20px 1fr; align-items: stretch; }
.tl-time { font-size: .85rem; font-weight: 650; color: var(--muted); padding-top: 14px; text-align: right; padding-right: 6px; }
.tl-dot { position: relative; }
.tl-dot::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-dot::after { content: ""; position: absolute; left: 3px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--muted); }
.tl-row.st-completed .tl-dot::after { border-color: var(--green); background: var(--green); }
.tl-row.st-progress .tl-dot::after { border-color: var(--blue); background: var(--blue); }
.tl-row.st-upcoming .tl-dot::after { border-color: var(--amber); }
.tl-row.st-pending .tl-dot::after { border-color: var(--red); background: var(--red); }
.tl-row.st-overdue .tl-dot::after { border-color: var(--orange); background: var(--orange); }
.tl-body { margin: 6px 0 6px 6px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; cursor: pointer; color: inherit; min-height: 56px; }
.tl-name { font-weight: 700; }
.tl-meta { font-size: .85rem; color: var(--muted); }
.tl-row.st-skipped .tl-name { text-decoration: line-through; color: var(--muted); }
.tl-now { display: grid; grid-template-columns: 72px 1fr; align-items: center; margin: 4px 0; }
.tl-now span { grid-column: 2; font-size: .75rem; font-weight: 750; color: var(--red); border-top: 2px solid var(--red); padding-top: 2px; }

/* Task list */
.task-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.task-row { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 8px 8px 10px; box-shadow: var(--shadow); }
.task-row.paused { opacity: .65; }
.task-row-main { flex: 1; display: flex; gap: 12px; align-items: center; background: none; border: 0; text-align: left; cursor: pointer; padding: 4px; min-width: 0; color: inherit; }
.task-row-text { display: flex; flex-direction: column; min-width: 0; }
.task-row-text > span { font-size: .85rem; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

/* Forms */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 650; font-size: .92rem; padding: 0; }
input:not([type=radio]):not([type=checkbox]), select, textarea {
  width: 100%; min-height: 50px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 10px 12px; font-size: 1rem;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: none; }
.readout { min-height: 50px; display: flex; align-items: center; padding: 0 12px; border-radius: 12px; background: var(--surface-2); font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.inline input[type=number] { max-width: 120px; }
.hint { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
.form-error { color: var(--red); font-weight: 650; min-height: 1em; margin: 0; }
.form-actions { display: grid; gap: 10px; }
.danger-zone { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
.danger-zone .btn { flex: 1; }
.seg, .chips-select, .days { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label, .chips-select label, .days label { position: relative; }
.seg label { flex: 1; }
.seg input, .chips-select input, .days input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span, .chips-select span, .days span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; text-align: center; }
.days span { min-width: 46px; padding: 8px; }
.seg input:checked + span, .chips-select input:checked + span, .days input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.seg input:focus-visible + span, .chips-select input:focus-visible + span, .days input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.repeat-extra { margin-top: 10px; }
.toggle { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font-weight: 600; }
.toggle input { width: 24px; height: 24px; accent-color: var(--primary); flex: none; }
.checklist-edit { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist-edit li { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface-2); border-radius: 12px; padding: 4px 4px 4px 12px; }
.checklist-edit .icon-btn { width: 36px; height: 36px; font-size: 1rem; background: transparent; }
.file-btn { cursor: pointer; }
.perm-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.perm-row > div { display: flex; flex-direction: column; }
.form-page .card { display: grid; gap: 12px; }

/* Focus */
.focus-page { text-align: left; }
.focus-title { text-align: center; text-transform: uppercase; font-size: 1.4rem; letter-spacing: .03em; }
.focus-timer { position: relative; width: min(78vw, 280px); aspect-ratio: 1; margin: 18px auto 8px; }
.focus-ring { width: 100%; height: 100%; }
.focus-ring .ring-bg, .focus-ring .ring-fg { stroke-width: 12; }
.focus-clock { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
#focus-clock { font-size: clamp(2.8rem, 14vw, 3.8rem); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.focus-sub { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.is-paused #focus-clock { opacity: .55; }
.focus-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.focus-controls .wide { grid-column: 1 / -1; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist label { display: flex; gap: 12px; align-items: center; min-height: 48px; cursor: pointer; font-size: 1.02rem; }
.checklist input { width: 24px; height: 24px; accent-color: var(--green); flex: none; }
.checklist input:checked + span { text-decoration: line-through; color: var(--muted); }
.goal-inline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.goal-inline > div { display: flex; flex-direction: column; }
.focus-list { list-style: none; padding: 0; margin: 0; }
.focus-pick { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.focus-pick > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }

/* Progress */
.score-row { display: flex; align-items: center; gap: 18px; }
.score-list { list-style: none; margin: 0; padding: 0; flex: 1; }
.score-list li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.score-list li:last-child { border: 0; }
.week-head { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 12px; }
.week-head .center { display: flex; flex-direction: column; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); }
.stat-v { font-size: 1.35rem; font-weight: 800; }
.stat-l { font-size: .78rem; color: var(--muted); font-weight: 600; }
.stat.good .stat-v { color: var(--green); }
.stat.warn .stat-v { color: var(--orange); }
.stat.accent .stat-v { color: var(--primary); }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 160px; }
.bar-col { display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar-val { font-size: .7rem; color: var(--muted); height: 16px; }
.bar-track { flex: 1; width: 100%; max-width: 30px; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.bar-fill { width: 100%; background: var(--primary); opacity: .75; border-radius: 8px 8px 0 0; }
.bar-col.hl .bar-fill { opacity: 1; }
.bar-col.hl .bar-lbl { color: var(--primary); font-weight: 800; }
.bar-col.muted .bar-track { opacity: .5; }
.bar-lbl { font-size: .78rem; margin-top: 4px; color: var(--muted); font-weight: 600; }
.insights { display: grid; gap: 10px; }
.insight { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.insight > div { display: flex; flex-direction: column; }
.insight span { color: var(--muted); font-size: .92rem; }
.ins-emoji { font-size: 1.6rem; }

/* Career */
.goal-big .goal-line { display: flex; align-items: center; gap: 10px; }
.goal-big .goal-line b { flex: 1; font-size: 1.1rem; }
.stepper { display: flex; gap: 6px; }
.interview-note { background: var(--blue-bg); color: var(--blue); padding: 8px 12px; border-radius: 12px; margin-top: 10px; }
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; min-height: 42px; font-weight: 650; cursor: pointer; }
.chip span { color: var(--muted); font-weight: 600; margin-left: 4px; }
.chip.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.job-list { list-style: none; padding: 0; margin: 0; }
.job { display: flex; flex-direction: column; width: 100%; text-align: left; gap: 2px; cursor: pointer; color: inherit; }
.job-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.job-pos { font-weight: 550; }
.jstatus { font-size: .75rem; font-weight: 750; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); }
.js-applied, .js-waiting { background: var(--blue-bg); color: var(--blue); }
.js-interview { background: var(--amber-bg); color: var(--amber); }
.js-followup { background: var(--primary-soft); color: var(--primary); }
.js-rejected { background: var(--grey-bg); color: var(--muted); }
.js-selected { background: var(--green-bg); color: var(--green); }

/* Onboarding */
.onboard { padding-top: calc(28px + env(safe-area-inset-top)); }
.ob-hero { text-align: center; margin-bottom: 16px; }
.logo-big { font-size: 3.4rem; }
.ob-steps { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 14px 36px; margin: 0 0 20px; display: grid; gap: 4px; }
.ob-q { font-size: 1.35rem; margin: 8px 0 4px; }
.tpl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
.tpl { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 650; cursor: pointer; text-align: left; color: inherit; }
.tpl.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.tpl-emoji { font-size: 1.5rem; }
.tpl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tpl-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tpl-list li > span { display: flex; flex-direction: column; }
.tpl-list input { max-width: 140px; }
.sample-note { background: var(--amber-bg); border-color: transparent; }

/* Sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 12, 20, .5); opacity: 0; transition: opacity .2s; }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 12px 18px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s ease-out; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-handle { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 12px; }
.sheet-title { font-size: 1.25rem; margin: 4px 0; }
.pick-row { display: flex; gap: 8px; align-items: flex-end; margin-top: 16px; }
.pick-row .field { flex: 1; }
.reminder h2 { font-size: 1.45rem; text-transform: uppercase; letter-spacing: .02em; }
.reminder.overdue .eyebrow { color: var(--orange); }
.nudge { font-weight: 650; color: var(--primary); }
.celebrate { text-align: center; padding: 8px 0; }
.big-emoji { font-size: 3.4rem; }

/* Toast */
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px); transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; max-width: calc(100vw - 32px); opacity: 0; pointer-events: none; transition: .2s; z-index: 200; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Bottom nav */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; justify-content: space-around; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); height: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
.bottom-nav a { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .75rem; font-weight: 650; border-radius: 14px; position: relative; }
.bottom-nav .ni { font-size: 1.35rem; filter: grayscale(1); opacity: .75; }
.bottom-nav a.on { color: var(--primary); background: var(--primary-soft); }
.bottom-nav a.on .ni { filter: none; opacity: 1; }
.bottom-nav a.live::after { content: ""; position: absolute; top: 6px; right: calc(50% - 18px); width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--surface); }

@media (max-width: 360px) {
  .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tl-row { grid-template-columns: 62px 20px 1fr; }
  .tl-now { grid-template-columns: 62px 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
