:root {
  color-scheme: dark;
  --bg: #000000;
  --field: #16181c;
  --field-2: #202327;
  --line: #2f3336;
  --line-2: #3e4144;
  --ink: #e7e9ea;
  --ink-2: #9aa0a6;
  --ink-3: #7c8187;
  --gain: #1d9bf0;
  --loss: #f4212e;
  --money: #00ba7c;
  --knob: #eff3f4;
  --on-knob: #0f1419;
  --focus: #1d9bf0;
  --topbar: 56px;
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #ffffff;
    --field: #f7f9f9;
    --field-2: #eff3f4;
    --line: #eff3f4;
    --line-2: #cfd9de;
    --ink: #0f1419;
    --ink-2: #536471;
    --ink-3: #5e6b75;
    --gain: #1a8cd8;
    --loss: #e0245e;
    --money: #00a36c;
    --knob: #0f1419;
    --on-knob: #ffffff;
    --focus: #1a8cd8;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

body[data-mode="retro"] .only-plan,
body[data-mode="plan"] .only-retro { display: none !important; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  height: var(--topbar);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}
.mark, .topbar__how { padding: 6px 0; border: 0; background: none; }
.mark { font-weight: 700; letter-spacing: -0.01em; }
.topbar__how { color: var(--ink-2); font-size: 14px; }
.topbar__how:hover { color: var(--ink); }

/* ---------- shared controls ---------- */

.pill {
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--knob);
  color: var(--on-knob);
  font-weight: 700;
  font-size: 15px;
}
.pill:hover { opacity: .9; }

.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}
.link:hover { color: var(--ink); text-decoration-color: currentColor; }

input[type="datetime-local"],
input[type="time"],
input[type="number"] {
  min-width: 0;
  padding: 10px 12px;
  background: var(--field);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
}
input[aria-invalid="true"] { border-color: var(--loss); }
.big-input { width: 100%; padding: 14px 16px; font-size: 17px; }

input[type="range"] {
  --p: 50%;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(to right, var(--ink) var(--p), var(--line-2) var(--p));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--knob);
  box-shadow: 0 0 0 4px var(--bg);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--ink); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--knob); box-shadow: 0 0 0 4px var(--bg); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--focus); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--focus); }

.num {
  display: inline-flex;
  align-items: center;
  padding-right: 12px;
  background: var(--field);
  border: 1px solid var(--line-2);
  border-radius: 12px;
}
.num:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.num input { width: 52px; border: 0; background: transparent; text-align: right; -moz-appearance: textfield; }
.num input:focus-visible { outline: none; }
.num i { font-style: normal; color: var(--ink-3); }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- layout ---------- */

.stage { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------- start ---------- */

.view--start {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100dvh - var(--topbar));
  padding: 40px 0 64px;
}
.view--start h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(40px, 8vw, 76px);
  font-weight: 700;
  font-stretch: 85%;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
/* The opening beat: a weekly limit refilling from 0 to 100. */
.start-meter { max-width: 560px; margin-bottom: 36px; }
.start-meter__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; color: var(--ink-2); font-size: 15px; }
.start-meter__num { color: var(--ink); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.start-meter__track { height: 12px; border-radius: 12px; background: var(--line); overflow: hidden; }
.start-meter__fill { width: 0; height: 100%; border-radius: 12px; background: var(--knob); }
.choices { display: grid; gap: 12px; max-width: 560px; margin-top: 40px; }
.choice {
  display: grid;
  gap: 2px;
  padding: 18px 22px;
  text-align: left;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: border-color .15s, background-color .15s;
}
.choice:hover { border-color: var(--line-2); background: var(--field-2); }
.choice b { font-size: 18px; }
.choice span { color: var(--ink-2); font-size: 14.5px; }

/* ---------- questions ---------- */

.view--ask {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  min-height: calc(100dvh - var(--topbar));
  margin: 0 auto;
  padding: 24px 0 28px;
}
.progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress__bar { height: 100%; width: 0; border-radius: 4px; background: var(--ink); transition: width .25s ease; }
.ask__count { margin: 10px 0 0; color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }

.q { margin-top: clamp(28px, 9vh, 88px); }
.q.is-in { animation: q-in .22s ease both; }
@keyframes q-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.q__title {
  margin: 0;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.q__title:focus { outline: none; }
.q__hint { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }
.q__note { margin: 10px 0 0; color: var(--ink-2); font-size: 14.5px; min-height: 1.5em; }
.q > .big-input { margin-top: 24px; }
.q > .link { display: inline-block; margin-top: 16px; }
.q__guess { margin: 12px 0 0; color: var(--ink-2); font-size: 14px; font-weight: 600; }

/* "Resets in 6d 23h", the way the usage page says it, with the exact date as a fallback. */
.resets { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-top: 24px; }
.resets__label { color: var(--ink-2); font-size: 20px; }
.resets__unit { display: inline-flex; align-items: baseline; gap: 4px; }
.resets__unit input {
  width: 2.6ch;
  padding: 6px 8px;
  border-radius: 12px;
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  font-stretch: 85%;
  -moz-appearance: textfield;
}
.resets__unit i { font-style: normal; font-size: 28px; font-weight: 700; color: var(--ink-3); }
.q__or { display: block; margin: 22px 0 8px; color: var(--ink-3); font-size: 14px; }

.optional { margin-top: 24px; color: var(--ink-2); }
.optional summary { width: max-content; cursor: pointer; font-size: 14.5px; }
.optional summary span { color: var(--ink-3); }
.optional[open] summary { margin-bottom: 10px; }

.options { display: grid; gap: 10px; margin-top: 24px; }
.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--field);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.option b { font-size: 17px; }
.option small { color: var(--ink-2); font-size: 14px; text-align: right; }
.option:hover > span { border-color: var(--ink-3); }
.option input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.f-unknown { margin-top: 18px; }

/* The big number you set with the slider below it. */
.dial { display: flex; align-items: baseline; margin: 20px 0 6px; }
/* Equal-width digits, so the field is exactly --n digits wide in any browser;
   ch follows the font, so it stays right once the web font arrives. */
.dial input {
  width: calc(var(--n, 2) * 1ch + 0.12em);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: clamp(64px, 14vw, 88px);
  font-weight: 700;
  font-stretch: 85%;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  -moz-appearance: textfield;
}
.dial input:focus-visible { outline: none; box-shadow: 0 3px 0 var(--focus); }
.dial i { margin-left: 4px; font-style: normal; font-size: clamp(32px, 7vw, 44px); font-weight: 700; color: var(--ink-3); }

.field { margin-top: 24px; }
.field > label { display: block; margin-bottom: 8px; color: var(--ink-2); font-size: 14.5px; }
.field__row { display: flex; align-items: center; gap: 10px; }
.field__row .big-input { flex: 1; }
.dash { color: var(--ink-3); }
.field--inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.field--inline > label { margin: 0; }
.field__after { color: var(--ink-2); font-size: 14.5px; }
.paid-input { display: inline-flex; align-items: center; gap: 4px; padding-left: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--field); }
.paid-input input { width: 110px; border: 0; background: transparent; }
.paid-input input:focus-visible { outline-offset: 0; }

.q__error {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--loss);
  border-radius: 0 10px 10px 0;
  background: var(--field);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 32px;
}
.nav__next { min-width: 132px; }

/* ---------- result ---------- */

.view--result { padding: 48px 0 96px; }
.question { margin: 0; color: var(--ink-2); font-size: 18px; }
.question:focus { outline: none; }
.verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }

.hero {
  display: inline-flex;
  font-size: clamp(72px, 15vw, 132px);
  font-weight: 700;
  font-stretch: 85%;
  line-height: 1.12;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.tag {
  --tag: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--field-2);
  font-weight: 600;
}
.tag__mark { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--tag); }
.tag.is-gain { --tag: var(--gain); }
.tag.is-loss { --tag: var(--loss); }
.tag.is-loss .tag__mark { border-bottom: 0; border-top: 8px solid var(--tag); }
.tag.is-flat .tag__mark { width: 10px; height: 3px; border: 0; border-radius: 2px; background: var(--tag); }

.lede { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; }

/* Dollars remain selectable and copyable as ordinary text. */
.money { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 22px 0 0; }
.money__val {
  display: inline-flex;
  font-size: clamp(44px, 8vw, 68px);
  font-weight: 700;
  font-stretch: 85%;
  line-height: 1.12;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.money.is-gain .money__val { color: var(--money); }
.money.is-loss .money__val { color: var(--loss); }
.money__note { color: var(--ink-2); font-size: 16px; }
.money__tax { max-width: 620px; margin: 4px 0 0; color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }
.estimate-note { max-width: 680px; margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink-2); line-height: 1.5; }
.input-warning { max-width: 680px; margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--loss); border-radius: 12px; color: var(--ink); line-height: 1.5; }
.money.is-in { animation: money-in .4s cubic-bezier(.16, .84, .24, 1) both; }
@keyframes money-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.section-title { margin: 44px 0 10px; font-weight: 700; font-size: 17px; }

/* Step by step: a dated timeline, one fact per row. */
.steps { margin: 36px 0 0; padding: 0; list-style: none; }
.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 132px 22px minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 12px;
  padding: 10px 0;
}
.steps li:not(.steps__total)::before {
  content: "";
  position: absolute;
  left: calc(132px + 12px + 10px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-2);
}
.steps li.is-first::before { top: 50%; }
.steps li.is-last::before { bottom: 50%; }
.steps__when { color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.steps__mark {
  position: relative;
  z-index: 1;
  justify-self: center;
  align-self: center;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--bg);
}
.mark-reset { background: var(--bg); border: 2px solid var(--ink); }
.mark-old { background: var(--bg); border: 2px solid var(--ink-3); }
.mark-new { background: var(--ink); }
.mark-best { background: var(--gain); }
.mark-end { width: 3px; height: 15px; border-radius: 2px; background: var(--ink); }
.steps__what b { font-weight: 700; }
.steps__muted { color: var(--ink-2); }
.steps__val { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.steps__total { margin-top: 6px; padding-top: 16px !important; border-top: 1px solid var(--line); }
.steps__total .steps__what { font-weight: 700; }
.steps__total .steps__val { font-size: 20px; }

/* Best / worst and per-plan: short sentences, each led by its number. */
.cases { display: grid; gap: 10px; margin: 0; }
.case {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 14px 16px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.case__val { font-size: 22px; font-weight: 700; font-stretch: 90%; letter-spacing: -0.01em; }
.case__name { font-weight: 700; }
.case__text { grid-column: 2; color: var(--ink-2); }
.case.is-mine { border-color: var(--line-2); }
.case.is-mine .case__name::after { content: " (you)"; color: var(--ink-3); font-weight: 400; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats:empty { display: none; }
.stats > div { padding: 14px 16px 14px 0; }
.stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.stats dt { color: var(--ink-2); font-size: 13.5px; }
.stats dd { margin: 2px 0 0; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }

.figure { position: relative; margin: 44px 0 0; }
.figure__title { font-weight: 700; font-size: 17px; }
.figure__sub { margin: 2px 0 14px; color: var(--ink-2); font-size: 14px; }

.chart { position: relative; touch-action: pan-y; border-radius: 8px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .t-ink { fill: var(--ink-2); }
.chart .t-strong { fill: var(--ink); font-weight: 700; }
/* Labels knock out the lines behind them. */
.chart text { paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: var(--line-2); stroke-width: 1; }
.chart .lane { stroke: var(--line-2); stroke-width: 1; }
.chart .dot { stroke: var(--bg); stroke-width: 2; }
.chart .dot-old { fill: var(--ink-3); }
.chart .dot-new { fill: var(--ink); }
.chart .dot-reset { fill: var(--bg); stroke: var(--ink); stroke-width: 2; }
.chart .shift { stroke: var(--ink-3); stroke-width: 1; fill: none; }
.chart .line-gain { stroke: var(--gain); stroke-width: 2; fill: none; stroke-linejoin: round; }
.chart .line-loss { stroke: var(--loss); stroke-width: 2; fill: none; stroke-linejoin: round; }
.chart .area-gain { fill: var(--gain); opacity: .16; }
.chart .area-loss { fill: var(--loss); opacity: .16; }
.chart .avg { stroke: var(--ink-2); stroke-width: 1; }
.chart .marker { stroke: var(--ink); stroke-width: 1; }
.chart .cross { stroke: var(--ink-2); stroke-width: 1; }
.chart .pt { stroke: var(--bg); stroke-width: 2; }
.chart .pt-gain { fill: var(--gain); }
.chart .pt-loss { fill: var(--loss); }
.chart .pt-ink { fill: var(--ink); }
.chart:focus-visible { outline-offset: 6px; }

.chart__tip {
  position: absolute;
  z-index: 3;
  min-width: 150px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--field-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
  font-size: 13px;
  pointer-events: none;
}
.chart__tip strong { display: block; font-size: 16px; }
.chart__tip span { color: var(--ink-2); }

.table-view { margin-top: 12px; color: var(--ink-2); font-size: 13px; }
.table-view summary { width: max-content; cursor: pointer; }
.table-view summary:hover { color: var(--ink); }
.table-view table { margin-top: 10px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table-view th, .table-view td { padding: 4px 18px 4px 0; text-align: left; border-bottom: 1px solid var(--line); }
.table-view th { color: var(--ink-3); font-weight: 500; }
.table-view td:last-child { text-align: right; color: var(--ink); }

.answers { margin-top: 44px; }
.answers__title { margin: 0 0 10px; font-weight: 700; font-size: 17px; }
.answers__title span { margin-left: 6px; color: var(--ink-3); font-weight: 400; font-size: 14px; }
.answers__list { display: flex; flex-wrap: wrap; gap: 8px; }
.answer {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
}
.answer:hover { background: var(--field-2); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 40px; }
.actions__note { color: var(--ink-3); font-size: 13px; }
.results-disclaimer { max-width: 700px; margin: 42px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.results-disclaimer strong, .how__disclaimer strong { color: var(--ink); }

/* Plan-end follow-up: two options side by side. */
.options--row { grid-template-columns: 1fr 1fr; margin-top: 12px; }

/* What moved your result: one input per row, with what it would be otherwise. */
.drivers { display: grid; gap: 8px; }
.driver {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  padding: 14px 16px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.driver__name { font-weight: 700; }
.driver__name span { margin-left: 6px; color: var(--ink-2); font-weight: 400; }
.driver__alt { grid-column: 1; color: var(--ink-2); font-size: 14.5px; }
.driver__val { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.driver__val small { display: block; font-size: 13px; font-weight: 600; }
.driver__val .up { color: var(--gain); }
.driver__val .down { color: var(--loss); }

.details { margin-top: 20px; }
.details > summary {
  width: max-content;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.details > summary::-webkit-details-marker { display: none; }
.details > summary:hover { background: var(--field-2); }
.factors { display: grid; gap: 14px; margin: 20px 0 0; }
.factors dt { font-weight: 700; }
.factors dt span { margin-left: 6px; color: var(--ink-2); font-weight: 400; }
.factors dd { margin: 2px 0 0; color: var(--ink-2); }

/* ---------- how ---------- */

.how {
  max-width: 560px;
  padding: 28px;
  background: var(--field);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 20px;
}
.how::backdrop { background: rgba(0, 0, 0, .6); }
.how h2 { margin-top: 0; font-size: 20px; }
.how p { color: var(--ink-2); }
.how a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.how__disclaimer { padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.how form { margin-top: 20px; }

.local-time {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 20px 20px 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12.5px;
  text-align: center;
}

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  .stage { padding: 0 16px; }
  .topbar__inner { padding: 0 16px; }
  .local-time { padding-inline: 16px; }
  .view--ask { padding-top: 16px; padding-bottom: 0; }
  .q { margin-top: 28px; }
  .nav {
    position: sticky;
    bottom: 0;
    margin-inline: -16px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .nav__next { flex: 1; max-width: 220px; }
  .view--result { padding-top: 32px; }
  .steps li { grid-template-columns: 104px 18px minmax(0, 1fr) auto; column-gap: 8px; }
  .steps li:not(.steps__total)::before { left: calc(104px + 8px + 8px); }
  .steps__when { font-size: 12.5px; }
  .case { grid-template-columns: 76px minmax(0, 1fr); padding: 12px 14px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div + div { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .case__val { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
