:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-2: #f6f5f1;
  --seg: #e8e6df;
  --seg-on: #ffffff;
  --text: #1b1c1e;
  --text-2: #45484e;
  --muted: #74787f;
  --border: #e6e3dc;
  --border-strong: #cdc9bf;

  --accent: #157a52;
  --on-accent: #ffffff;
  --accent-soft: #e1f1e9;
  --accent-ink: #0f6040;

  --strength: #d4561f;
  --on-strength: #ffffff;
  --strength-soft: #fbe9df;
  --strength-ink: #a2410f;
  --walk: #2563c9;
  --walk-soft: #e4ecfa;
  --walk-ink: #1d4fa3;
  --rest: #6d5fb3;
  --rest-soft: #ece9f7;
  --rest-ink: #54479a;
  --prep: #c08412;
  --prep-soft: #f8eed9;
  --prep-ink: #7d5506;
  --warn-soft: #fbeae2;
  --warn-ink: #9a3412;
  --danger-ink: #b42318;

  --grid: #ebe8e1;
  --dot: #9ea2a9;
  --chart-pt: #4a7fd0;
  --chart-avg: #157a52;
  --shadow: 0 1px 2px rgba(25, 25, 20, 0.04), 0 6px 20px rgba(25, 25, 20, 0.05);
  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --surface: #1a1c1f;
    --surface-2: #222529;
    --seg: #1c1e22;
    --seg-on: #34383e;
    --text: #ececea;
    --text-2: #c2c5ca;
    --muted: #8d9299;
    --border: #2a2d32;
    --border-strong: #464a51;

    --accent: #3cbf88;
    --on-accent: #08261a;
    --accent-soft: #163128;
    --accent-ink: #7fdcb3;

    --strength: #f0804c;
    --on-strength: #2a1206;
    --strength-soft: #3a2319;
    --strength-ink: #f7b08c;
    --walk: #6e9cf0;
    --walk-soft: #1a2740;
    --walk-ink: #a8c3f6;
    --rest: #a698ea;
    --rest-soft: #272242;
    --rest-ink: #cbc1f4;
    --prep: #e1a53b;
    --prep-soft: #352a12;
    --prep-ink: #f0c879;
    --warn-soft: #3a2116;
    --warn-ink: #f5b48a;
    --danger-ink: #f39a8f;

    --grid: #272a2e;
    --dot: #747980;
    --chart-pt: #5b8ee0;
    --chart-avg: #2b9d6f;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px calc(120px + env(safe-area-inset-bottom));
}

/* ---------- header ---------- */
.top { padding: 22px 0 2px; }
.top-row { display: flex; align-items: center; gap: 12px; }
.nav-btn {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.nav-btn svg { width: 20px; height: 20px; }
.nav-btn:disabled { opacity: 0.35; cursor: default; }
.nav-btn:not(:disabled):hover { border-color: var(--border-strong); }
.title { flex: 1; min-width: 0; text-align: center; }
.eyebrow { font-size: 13.5px; color: var(--muted); }
.eyebrow b { color: var(--accent-ink); font-weight: 650; }
h1 { margin: 2px 0 0; font-size: 30px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 750; }
h1 span { font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.progress { height: 6px; margin: 16px 0 12px; border-radius: 99px; background: var(--grid); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.3s; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.chips:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 10px;
  border-radius: 99px; border: 1px solid transparent;
  font-size: 12.5px; font-weight: 650;
  background: var(--surface-2); color: var(--text-2);
}
.chip svg { width: 14px; height: 14px; }
.chip.strength { background: var(--strength-soft); color: var(--strength-ink); }
.chip.walk { background: var(--walk-soft); color: var(--walk-ink); }
.chip.rest { background: var(--rest-soft); color: var(--rest-ink); }
.chip.prep { background: var(--prep-soft); color: var(--prep-ink); }
.chip.checkin { background: var(--accent-soft); color: var(--accent-ink); }
.chip.link { background: var(--surface); border-color: var(--border); }
.chip.link:hover { border-color: var(--border-strong); }

/* ---------- tabs ---------- */
.tabs-wrap { position: sticky; top: 0; z-index: 10; padding: 12px 0; background: var(--bg); }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 4px; border-radius: 14px; background: var(--seg); }
.tabs button { height: 36px; border-radius: 10px; font-size: 14px; font-weight: 650; color: var(--muted); transition: background 0.15s, color 0.15s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--seg-on); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }

/* ---------- cards ---------- */
.card {
  display: block; width: 100%;
  margin: 0 0 12px; padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
}
button.card { cursor: pointer; transition: border-color 0.15s; }
button.card:hover { border-color: var(--border-strong); }
.card h2 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card-head h2 { margin: 0; }
.card p { margin: 0 0 8px; }
.card p:last-child { margin-bottom: 0; }
.lead { font-size: 17px; }
.sub { font-size: 13px; color: var(--muted); }
.note { font-size: 13.5px; color: var(--muted); }
.notice { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--text-2); font-size: 14px; }
.count { font-size: 13px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.link { display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 650; color: var(--accent-ink); }
.link svg { width: 14px; height: 14px; }
.link.small { margin-top: 8px; font-size: 13px; }

/* icon row cards */
.hero { display: flex; align-items: center; gap: 14px; }
.hero-ico {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--surface-2); color: var(--text-2);
}
.hero-ico svg { width: 22px; height: 22px; }
.hero-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hero-txt small, .w-head small { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hero-txt strong { font-size: 17px; line-height: 1.3; font-weight: 700; }
.hero-txt span { font-size: 13.5px; color: var(--text-2); }
.chev { color: var(--muted); }
.chev svg { width: 18px; height: 18px; }
.strength .hero-ico { background: var(--strength-soft); color: var(--strength-ink); }
.walk .hero-ico, .steps .hero-ico { background: var(--walk-soft); color: var(--walk-ink); }
.rest .hero-ico { background: var(--rest-soft); color: var(--rest-ink); }
.prep .hero-ico, .season .hero-ico { background: var(--prep-soft); color: var(--prep-ink); }
.checkin .hero-ico { background: var(--accent-soft); color: var(--accent-ink); }

/* meals summary */
.meal-list { list-style: none; margin: 0; padding: 0; }
.meal-list li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); }
.meal-list li:first-child { border-top: 0; padding-top: 0; }
.meal-list .emoji { font-size: 20px; text-align: center; }
.m-txt { display: flex; flex-direction: column; min-width: 0; }
.m-txt strong { font-size: 14.5px; font-weight: 650; }
.m-txt span { font-size: 13.5px; color: var(--text-2); }
.m-kcal { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.total { margin: 10px 0 0 !important; padding-top: 10px; border-top: 1px solid var(--border); font-size: 13.5px; font-weight: 650; color: var(--text-2); }
.total.big { margin: 2px 0 14px !important; padding: 0; border: 0; text-align: center; font-weight: 500; }

/* checklists */
.meter { height: 4px; margin: -2px 0 6px; border-radius: 99px; background: var(--grid); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.25s; }
.ticks > * { border-top: 1px solid var(--border); }
.ticks > :first-child { border-top: 0; }
.tick-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0; cursor: pointer; }
.tick-row .label { flex: 1; cursor: pointer; }
.tick-row.done .label { color: var(--muted); }
.tick, .tick-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 24px; height: 24px; margin: 0; flex: none;
  display: grid; place-items: center;
  border-radius: 8px;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.tick-row input:checked, .tick.on { background: var(--accent); border-color: var(--accent); }
.tick-row input:checked::after, .tick.on::after {
  content: ""; width: 6px; height: 11px;
  border: solid var(--on-accent); border-width: 0 2.5px 2.5px 0;
  transform: translateY(-1px) rotate(45deg);
}
.qty { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.weight { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.weight input {
  width: 80px; height: 38px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-2);
  text-align: right; font-variant-numeric: tabular-nums;
}

.rule strong { display: block; margin-bottom: 2px; font-size: 17px; }
.rule p { color: var(--text-2); }

.steps { margin: 4px 0 14px; padding-left: 22px; }
.steps li { margin: 6px 0; padding-left: 2px; }

/* ---------- food ---------- */
.meal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.meal-head .emoji { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--surface-2); font-size: 22px; }
.meal-head h3 { flex: 1; margin: 0; font-size: 17px; }
.kcal { padding: 3px 10px; border-radius: 99px; background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.items { list-style: none; margin: 0 0 8px; padding: 0; }
.items li { position: relative; padding: 3px 0 3px 18px; }
.items li::before { content: ""; position: absolute; left: 4px; top: 0.78em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.opt { font-size: 13.5px; color: var(--text-2); }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.pill { padding: 7px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); font-size: 14px; }
.or { font-size: 12px; font-weight: 650; color: var(--muted); }
.option { margin-bottom: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; }
.option.picked { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.option .items { margin: 4px 0 0; }
.tag { display: inline-block; font-size: 11px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }
.tag.muted { color: var(--muted); }
.season-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--prep-soft); color: var(--prep-ink); font-size: 13px; font-weight: 650; }
.season-tag svg { width: 14px; height: 14px; }

details summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: ""; width: 8px; height: 8px; margin: 0 4px 4px;
  border: solid var(--muted); border-width: 0 2px 2px 0;
  transform: rotate(45deg); transition: transform 0.15s;
}
details[open] summary::after { transform: rotate(-135deg); margin-bottom: -2px; }
details summary h2 { margin: 0 !important; }
details[open] > summary { margin-bottom: 10px; }
.bullets { margin: 12px 0 0; padding-left: 18px; color: var(--text-2); font-size: 14px; }
.bullets li { margin: 4px 0; }
.card > .bullets:first-of-type:nth-child(2) { margin-top: 0; }

/* ---------- workout ---------- */
.w-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.w-head > div { display: flex; flex-direction: column; min-width: 0; }
.w-head h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.meta { font-size: 13.5px; color: var(--text-2); }
.exercises { list-style: none; margin: 0 0 14px; padding: 0; counter-reset: ex; }
.exercises li { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 6px 0; border-top: 1px solid var(--border); counter-increment: ex; }
.exercises li:first-child { border-top: 0; }
.exercises li::before {
  content: counter(ex);
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--surface-2);
  font-size: 12.5px; font-weight: 700; color: var(--muted);
}
.ex { flex: 1; font-weight: 650; }
.reps { font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 99px; background: var(--strength-soft); color: var(--strength-ink); font-size: 13px; font-weight: 700; }
.mini svg { width: 11px; height: 11px; }
.rounds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.r-label { margin-right: auto; font-size: 13.5px; font-weight: 650; color: var(--text-2); }
.round { width: 46px; height: 46px; border-radius: 14px; border: 2px solid var(--border-strong); font-size: 16px; font-weight: 750; color: var(--text-2); transition: background 0.15s, border-color 0.15s; }
.round.on { background: var(--strength); border-color: var(--strength); color: var(--on-strength); }
.hint { margin: 0 0 12px !important; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 0 16px;
  border-radius: 14px;
  background: var(--text); color: var(--bg);
  font-size: 15px; font-weight: 700;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { opacity: 0.92; }
.btn.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); font-size: 14px; }
.btn.danger { color: var(--danger-ink); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

.week { list-style: none; margin: 0; padding: 0; }
.week li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: 14.5px; }
.week li.now { background: var(--surface-2); font-weight: 650; }
.wd { width: 34px; font-size: 13px; font-weight: 700; color: var(--muted); }
.w-name { flex: 1; }
.week .tag.prep { color: var(--prep-ink); }
.dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--dot); }
.dot.strength { background: var(--strength); }
.dot.walk { background: var(--walk); }
.dot.rest { background: var(--rest); }

/* ---------- progress ---------- */
.weigh-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.big-input {
  width: 150px; height: 58px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface-2);
  font-size: 28px; font-weight: 700;
}
.unit { font-size: 17px; color: var(--muted); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.card .stat { background: var(--surface-2); }
.stat small { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); }
.stat strong { display: block; margin-top: 4px; font-size: 19px; font-weight: 750; letter-spacing: -0.01em; }

.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 6px; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.k-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--chart-pt); }
.k-line { display: inline-block; width: 16px; height: 2px; border-radius: 2px; background: var(--chart-avg); }
.chart { position: relative; margin: 0 -4px 6px; }
.chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .avg { fill: none; stroke: var(--chart-avg); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .pt { fill: var(--chart-pt); stroke: var(--surface); stroke-width: 2; }
.chart .end { fill: var(--chart-avg); stroke: var(--surface); stroke-width: 2; }
.chart .end-label { fill: var(--text); font-size: 12px; font-weight: 700; }
.chart .cross { stroke: var(--border-strong); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: crosshair; }
.tip {
  position: absolute; top: -8px; min-width: 160px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  font-size: 12.5px; pointer-events: none;
}
.tip-h { margin-bottom: 4px; font-weight: 700; }
.tip-r { display: flex; align-items: center; gap: 6px; }
.tip-r span { flex: 1; color: var(--text-2); }
.tip-r b { font-variant-numeric: tabular-nums; }
.empty { margin: 0; padding: 40px 8px; text-align: center; color: var(--muted); font-size: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-size: 12px; font-weight: 650; color: var(--muted); padding: 6px 4px; border-bottom: 1px solid var(--border); }
.table td { padding: 7px 4px; border-bottom: 1px solid var(--border); }

.status { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--text-2); font-size: 14px; font-weight: 600; }
.status.ontrack { background: var(--accent-soft); color: var(--accent-ink); }
.status.slow { background: var(--prep-soft); color: var(--prep-ink); }
.status.fast { background: var(--warn-soft); color: var(--warn-ink); }
.adj-rules { list-style: none; margin: 0 0 10px; padding: 0; }
.adj-rules li { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; }
.adj-rules li span { color: var(--text-2); }
.adj-rules li.active { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-wd { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.cal {
  aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 12px; border: 2px solid transparent;
  background: var(--surface-2);
  font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums;
}
.cal .dot { width: 6px; height: 6px; box-shadow: 0 0 0 1.5px var(--surface); }
.cal.part { background: var(--accent-soft); color: var(--accent-ink); }
.cal.full { background: var(--accent); color: var(--on-accent); }
.cal.future { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.cal.today { border: 2px solid var(--text); }
.cal.sel { outline: 2px solid var(--accent); outline-offset: 2px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sq { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.sq.full { background: var(--accent); }
.sq.part { background: var(--accent-soft); }
.sq.none { background: var(--surface-2); border: 1px solid var(--border); }

.field { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-weight: 600; }
.field input { height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }

/* ---------- timer + toast ---------- */
.timer {
  position: fixed; z-index: 30;
  left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(608px, calc(100% - 32px));
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 15px 18px;
  border-radius: 20px;
  background: var(--text); color: var(--bg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.t-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.t-info small { font-size: 12.5px; font-weight: 600; opacity: 0.75; }
.t-info strong { font-size: 28px; line-height: 1.1; font-weight: 750; font-variant-numeric: tabular-nums; }
.t-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--bg) 16%, transparent); color: var(--bg); }
.t-btn svg { width: 20px; height: 20px; }
.t-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: color-mix(in srgb, var(--bg) 15%, transparent); }
.t-bar i { display: block; width: 0; height: 100%; background: var(--accent); }
.timer.done { animation: pulse 1s ease-in-out 3; }
@keyframes pulse { 50% { transform: translateX(-50%) scale(1.03); } }

.toast {
  position: fixed; z-index: 40; top: 16px; left: 50%; transform: translateX(-50%);
  padding: 8px 16px; border-radius: 99px;
  background: var(--text); color: var(--bg);
  font-size: 13.5px; font-weight: 650;
}

.foot { padding: 8px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.foot p { margin: 4px 0; }

@media (min-width: 700px) {
  .top { padding-top: 32px; }
  h1 { font-size: 34px; }
}
@media (max-width: 400px) {
  .btn-row { grid-template-columns: 1fr; }
  .stat strong { font-size: 17px; }
  .round { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
