/* NextStop design tokens. Rationale for each choice lives in DESIGN.md. */
@font-face { font-family: "Mukta"; src: url("fonts/mukta-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("fonts/mukta-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("fonts/mukta-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("fonts/mukta-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }


:root {
  color-scheme: light;
  /* chrome: no colour. The metro line colours are the only hues, and they sit on the route. */
  --ground: #f2f4f7;      /* concourse blue-grey */
  --surface: #ffffff;
  --raised: #eceef2;
  --pressed: #e2e5ea;
  --border: #e1e4e9;
  --rule: #eceef1;
  --control: #c9ced6;
  --text: #0a0a0a;
  --muted: #555c68;
  --primary: #111111;
  --on-primary: #ffffff;
  --focus: #1d5fbf;
  --negative: #b3261e;
  --pill-warning-bg: #fffbeb; --pill-warning-ink: #92400e;

  --radius-card: 16px;
  --radius-inner: 10px;
  --pill: 999px;
  --gap: 16px;
  --pad: 20px;
  --tap: 48px;      /* primary controls, Fitts */
  --tap-sm: 40px;

  --font: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-figure: 32px;
  --fs-title: 24px;
  --fs-section: 16px;
  --fs-body: 16px;
  --fs-meta: 14px;
  --fs-small: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* line colours, each with a text colour picked for 4.5:1 on it */
  --aqua: #00a19a;    --aqua-ink: #00201e;
  --blue: #1565c0;    --blue-ink: #ffffff;
  --yellow: #fdd835;  --yellow-ink: #1f1a00;
  --magenta: #b0006d; --magenta-ink: #ffffff;
  --red: #d32f2f;     --red-ink: #ffffff;
  --green: #2e7d32;   --green-ink: #ffffff;
  --violet: #6a1b9a;  --violet-ink: #ffffff;
  --pink: #ec407a;    --pink-ink: #1f0010;
  --grey: #6b6b6b;    --grey-ink: #ffffff;
  --orange: #ef6c00;  --orange-ink: #1f0e00;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #000000;
    --surface: #111111;
    --raised: #1d1d1d;
    --pressed: #2a2a2a;
    --border: #232323;
    --rule: #1a1a1a;
    --control: #444444;
    --text: #ffffff;
    --muted: #b4b4b4;
    --primary: #ffffff;
    --on-primary: #000000;
    --focus: #7fb0ff;
    --negative: #ff8a80;
    --pill-warning-bg: #2a2110; --pill-warning-ink: #f5c26b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: var(--fs-body)/1.5 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--text); color: var(--surface); }
input { caret-color: var(--focus); }

a { color: inherit; }
h2 { font-size: var(--fs-section); font-weight: 600; margin: 0 0 12px; }
svg { flex: none; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 30; background: var(--surface); padding: 12px; border-radius: 8px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
input:focus-visible { outline-offset: 0; }

/* ---- shell ---------------------------------------------------------- */

.top {
  display: flex; align-items: center; gap: 24px;
  max-width: 1120px; margin: 0 auto; padding: 12px 20px; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 700; font-size: 18px; letter-spacing: -.01em; text-decoration: none;
}
.brand .mark { color: var(--text); }

.tabs { display: flex; gap: 4px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: var(--tap-sm); padding: 0 14px; border-radius: var(--pill);
  color: var(--muted); text-decoration: none; font-size: var(--fs-meta); font-weight: 500;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { color: var(--text); background: var(--raised); }
.tab[aria-current="page"] { color: var(--text); background: var(--pressed); }

.offline {
  margin-left: auto; font-size: var(--fs-small); color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.offline::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* desktop: search on the left, the answer on the right, one 16px gutter everywhere */
.layout {
  display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr);
  max-width: 1120px; margin: 0 auto; padding: 4px 20px 32px;
}
.layout > * { min-width: 0; }
@media (min-width: 840px) {
  .layout { grid-template-columns: 384px minmax(0, 1fr); align-items: start; }
  .search { position: sticky; top: 16px; grid-row: 1 / span 2; }
  .lines, .saved-view { grid-column: 1 / -1; }
}

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: var(--pad);
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.panel-head h2 { margin-bottom: 12px; }
.spaced { margin-top: 28px; }

.title { font-size: var(--fs-title); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin: 0 0 16px; }
.sub { color: var(--muted); font-size: var(--fs-meta); margin: 0; }

.home { display: grid; gap: var(--gap); align-content: start; }

/* ---- buttons -------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap-sm); padding: 0 18px; border-radius: var(--pill);
  font: inherit; font-size: var(--fs-meta); font-weight: 600; cursor: pointer;
  border: 0; background: var(--raised); color: var(--text); text-decoration: none;
  transition: background-color .15s var(--ease), transform .1s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { background: var(--pressed); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); color: var(--on-primary); min-height: var(--tap); font-size: var(--fs-body); }
.btn.primary:hover { background: color-mix(in srgb, var(--primary) 85%, var(--ground)); }
.btn.quiet { background: transparent; border: 1px solid var(--control); }
.btn.quiet:hover { background: var(--raised); }
.btn[aria-pressed="true"] svg { fill: currentColor; }
.btn:disabled { cursor: not-allowed; opacity: 1; color: var(--muted); }
.link {
  background: none; border: 0; padding: 4px 0; min-height: 32px; cursor: pointer;
  font: inherit; font-size: var(--fs-meta); color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.link:hover { color: var(--text); }

/* ---- search form ---------------------------------------------------- */

form { display: grid; gap: 12px; }
.stops { position: relative; display: grid; gap: 8px; padding-left: 28px; padding-right: 52px; }
.rail { position: absolute; left: 4px; top: 38px; bottom: 22px; width: 14px; }
.rail::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--control); }
.rail i { position: absolute; left: 1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--text); background: var(--surface); }
.rail i:first-child { top: 0; }
.rail i:last-child { bottom: 0; background: var(--text); }

.field { position: relative; display: grid; gap: 6px; }
label { font-size: var(--fs-meta); color: var(--muted); font-weight: 500; }
input {
  font: inherit; color: inherit; background: var(--ground);
  border: 1px solid transparent; border-radius: 12px;
  padding: 0 14px; min-height: var(--tap); width: 100%;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
input:hover { border-color: var(--control); }
input:focus { background: var(--surface); border-color: var(--text); outline: none; }
input:disabled { color: var(--muted); cursor: progress; }
input::placeholder { color: var(--muted); opacity: 1; }

.swap {
  position: absolute; right: 0; top: 50%; translate: 0 -30%;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--control); background: var(--surface); color: inherit; cursor: pointer;
  transition: background-color .15s var(--ease), rotate .25s var(--ease);
}
.swap svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.swap:hover { background: var(--raised); }
.swap.spin { rotate: 180deg; }

.hint { font-size: var(--fs-small); color: var(--muted); margin: 0; padding-left: 28px; }

.search-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.t-trip, #edit { display: none; }

.suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  list-style: none; margin: 6px 0 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  max-height: 340px; overflow-y: auto;
  box-shadow: 0 12px 32px rgb(0 0 0 / .14); /* taste-skill-ignore: floating menu */
}
.suggest .group { font-size: var(--fs-small); color: var(--muted); padding: 8px 10px 4px; cursor: default; min-height: 0; }
.suggest [role="option"] {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 10px; cursor: pointer; min-height: 48px;
}
.suggest [role="option"][aria-selected="true"], .suggest [role="option"]:hover { background: var(--raised); }
.suggest mark { background: none; color: inherit; font-weight: 700; }

.status { margin: 12px 0 0; font-size: var(--fs-meta); color: var(--muted); }
.status:empty { display: none; }
.status.error { color: var(--negative); }
.status p { margin: 0 0 8px; }
.did { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- line chip: line name in text, never colour alone --------------- */

.chip {
  display: inline-flex; align-items: center; flex: none; white-space: nowrap;
  padding: 2px 10px; border-radius: var(--pill); font-size: var(--fs-small); font-weight: 600; line-height: 20px;
  background: var(--c); color: var(--ci);
}
.chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

/* ---- result --------------------------------------------------------- */

.result h2.route-name { font-size: var(--fs-meta); color: var(--muted); font-weight: 500; margin: 0 0 4px; }
.figure-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.figure { font-size: var(--fs-figure); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
.figure small { font-size: 18px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.arrive { font-size: var(--fs-body); font-weight: 500; margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--fs-meta); }
.facts b { color: var(--text); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.actions .primary { flex: 1 1 180px; }

.options {
  display: inline-flex; gap: 4px; padding: 4px; margin: 20px 0 4px;
  background: var(--raised); border-radius: var(--pill); max-width: 100%;
}
.options button {
  min-height: var(--tap-sm); padding: 0 16px; border: 0; border-radius: var(--pill);
  background: transparent; color: var(--muted); font: inherit; font-size: var(--fs-meta); font-weight: 500; cursor: pointer;
  white-space: nowrap;
}
.options button[aria-pressed="true"] { background: var(--surface); color: var(--text); }
.options span { color: var(--muted); font-weight: 400; }

/* the route strip: each leg is drawn as its line, in its colour */
.strip { margin: 20px 0 0; padding: 0; list-style: none; }
.stop, .leg, .change { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; }
.stop .node {
  width: 16px; height: 16px; margin: 4px 6px; border-radius: 50%;
  border: 3px solid var(--text); background: var(--surface);
}
.stop.end .node { background: var(--text); }
.stop p { margin: 0; font-weight: 600; }
.stop .when { color: var(--muted); font-weight: 400; font-size: var(--fs-meta); }

.leg .track { justify-self: center; width: 6px; border-radius: 3px; background: var(--c); margin: 4px 0; }
.leg .body { padding: 10px 0 14px; }
.leg-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.leg-head .dir { font-size: var(--fs-meta); }
.leg-meta { color: var(--muted); font-size: var(--fs-meta); margin: 6px 0 0; }
.leg details { margin-top: 2px; }
.leg summary {
  cursor: pointer; color: var(--muted); font-size: var(--fs-meta);
  min-height: 40px; display: inline-flex; align-items: center; gap: 6px; list-style: none;
}
.leg summary::-webkit-details-marker { display: none; }
.leg summary::before { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; rotate: -45deg; transition: rotate .2s var(--ease); }
.leg details[open] summary::before { rotate: 45deg; }
.leg summary:hover { color: var(--text); }
.leg ol { list-style: none; margin: 0 0 4px; padding: 0; font-size: var(--fs-meta); color: var(--muted); }
.leg ol li { position: relative; padding: 3px 0 3px 2px; }
.leg ol li::before { content: ""; position: absolute; left: -27px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--surface); border: 2px solid var(--c); }

/* the line change: the step riders get wrong, so it stands out (Von Restorff) */
.change .knot {
  width: 24px; height: 24px; margin: 12px 2px; border-radius: 50%;
  border: 12px solid; border-color: var(--c1) var(--c2) var(--c2) var(--c1); rotate: 45deg;
  outline: 2px solid var(--text); outline-offset: 3px;
}
.change .box { background: var(--raised); border-radius: var(--radius-inner); padding: 12px 14px; margin: 4px 0; }
.change p { margin: 0; }
.change .walk { color: var(--muted); font-size: var(--fs-meta); margin-top: 2px; }

.fare-note { color: var(--muted); font-size: var(--fs-small); margin: 16px 0 0; }

/* ---- ride mode: one stop at a time (Goal-gradient, Peak-end) --------- */

.ride-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ride-top p { margin: 0; color: var(--muted); font-size: var(--fs-meta); }
.progress { margin: 16px 0 6px; height: 8px; border-radius: var(--pill); background: var(--raised); overflow: hidden; }
.progress i { display: block; height: 100%; width: var(--p); background: var(--c, var(--text)); border-radius: inherit; transition: width .4s var(--ease); }
.progress-label { display: flex; justify-content: space-between; font-size: var(--fs-meta); color: var(--muted); margin: 0; }
.progress-label b { color: var(--text); font-weight: 600; }
.now { margin: 24px 0 0; }
.now .label { font-size: var(--fs-meta); color: var(--muted); margin: 0 0 4px; }
.now .station { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 10px; }
.alert {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start;
  background: var(--text); color: var(--surface); border-radius: var(--radius-inner); padding: 14px; margin: 16px 0 0;
}
.alert .knot { width: 24px; height: 24px; border-radius: 50%; border: 12px solid; border-color: var(--c1) var(--c2) var(--c2) var(--c1); rotate: 45deg; outline: 2px solid var(--surface); }
.alert p { margin: 0; }
.alert .sm { opacity: .8; font-size: var(--fs-meta); }
.upcoming { list-style: none; padding: 0; margin: 20px 0 0; }
.upcoming li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); font-size: var(--fs-meta); }
.upcoming li span:last-child { color: var(--muted); }
.ride-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 20px 0 0; }

.arrived { text-align: left; }
.arrived .tick {
  width: 56px; height: 56px; border-radius: 50%; background: var(--text); color: var(--surface);
  display: grid; place-items: center; margin-bottom: 16px;
}
.arrived .tick svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.arrived .tick path { stroke-dasharray: 30; stroke-dashoffset: 0; }

/* ---- trip lists ----------------------------------------------------- */

.trips { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.trips li { display: flex; align-items: center; gap: 4px; }
.trips a {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--tap); padding: 6px 12px; border-radius: 12px; text-decoration: none;
  transition: background-color .15s var(--ease);
}
.trips a:hover { background: var(--raised); }
.trips .names { display: flex; align-items: center; gap: 8px; min-width: 0; }
.trips .names span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trips .arrow { color: var(--muted); }
.trips .x {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.trips .x:hover { background: var(--raised); color: var(--text); }
.trips .x svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.note { color: var(--muted); font-size: var(--fs-small); margin: 12px 0 0; }
.empty { color: var(--muted); font-size: var(--fs-meta); margin: 0 0 8px; }

/* ---- lines ---------------------------------------------------------- */

.lines .panel-head { display: block; }
.lines .title { margin-bottom: 4px; }
.line-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.line-tabs button {
  min-height: var(--tap-sm); padding: 0 16px; border-radius: var(--pill); cursor: pointer;
  font: inherit; font-size: var(--fs-meta); font-weight: 600;
  background: var(--raised); color: var(--text); border: 0;
  display: inline-flex; align-items: center; gap: 8px;
}
.line-tabs button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.line-tabs button[aria-pressed="true"] { background: var(--c); color: var(--ci); }
.line-tabs button[aria-pressed="true"] i { background: var(--ci); }

/* one unbroken strip, the way the line runs on the platform map, with the interchanges beside it */
.line-body { display: grid; gap: 32px; align-items: start; }
@media (min-width: 840px) {
  .line-body { grid-template-columns: minmax(0, 1fr) 340px; }
  .line-aside { position: sticky; top: 16px; }
}
@media (max-width: 839px) { .line-aside { order: -1; } }
.line-aside { background: var(--raised); border-radius: var(--radius-inner); padding: 16px; }
.swaps { list-style: none; margin: 0; padding: 0; }
.swaps li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: var(--fs-meta); }
.swaps li:first-child { border-top: 0; }
.swaps li > span:first-child { white-space: nowrap; }
.swaps .sub { font-size: var(--fs-small); text-align: right; }
.line-stations { list-style: none; margin: 0; padding: 0; }
.line-stations li {
  position: relative; break-inside: avoid;
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding-left: 32px;
}
.line-stations li::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 6px; background: var(--c); }
.line-stations li:first-child::before { top: 50%; }
.line-stations li:last-child::before { bottom: 50%; }
.line-stations li::after {
  content: ""; position: absolute; left: 5px; top: 50%; translate: 0 -50%;
  width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--c);
}
.line-stations li.x::after { border-color: var(--text); width: 18px; height: 18px; left: 3px; }
.line-stations .nm { flex: 1; min-width: 0; }
.line-stations .nm small { display: block; color: var(--muted); font-size: var(--fs-small); }
.line-stations .act { display: flex; gap: 4px; opacity: .0; transition: opacity .15s var(--ease); }
.line-stations li:hover .act, .line-stations li:focus-within .act { opacity: 1; }
.line-stations .act .btn { min-height: 36px; padding: 0 12px; font-size: var(--fs-small); }
@media (hover: none) { .line-stations .act { opacity: 1; } }

/* ---- toast ---------------------------------------------------------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 40;
  background: var(--text); color: var(--surface); padding: 12px 18px; border-radius: var(--pill);
  font-size: var(--fs-meta); font-weight: 500; box-shadow: 0 8px 24px rgb(0 0 0 / .2); /* taste-skill-ignore: floating toast */
}

.foot { max-width: 1120px; margin: 0 auto; color: var(--muted); font-size: var(--fs-small); padding: 8px 20px 32px; }

/* ---- phone ---------------------------------------------------------- */

@media (max-width: 839px) {
  .top { padding: 8px 16px; min-height: 56px; }
  .layout { padding: 0 16px 24px; }
  /* bottom tab bar in the thumb zone (Fitts, Jakob) */
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    justify-content: space-around; gap: 0;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .tab { flex-direction: column; gap: 2px; min-height: 52px; flex: 1; justify-content: center; border-radius: 12px; font-size: var(--fs-small); }
  .tab[aria-current="page"] { background: transparent; }
  .tab[aria-current="page"] svg { stroke-width: 2.2; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }

  body.has-result:not(.editing) #form,
  body.has-result:not(.editing) .t-plan { display: none; }
  body.has-result:not(.editing) .t-trip,
  body.has-result:not(.editing) #edit { display: inline-flex; }
  body.has-result:not(.editing) #plan-h { font-size: 18px; margin: 0; letter-spacing: -.01em; }
  body.has-result #home { display: none; }
  body.riding #search { display: none; }
  .line-stations { columns: 1; }
  .actions .primary { flex-basis: 100%; }
  .actions .btn:not(.primary) { flex: 1; }
  body.has-result .route-name { display: none; }
  .ride-bar { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); background: var(--surface); padding-top: 8px; }
}
@media (min-width: 840px) {
  body.has-result #home { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .result.enter > * { animation: rise .32s var(--ease) both; }
  .result.enter > *:nth-child(2) { animation-delay: 40ms; }
  .result.enter > *:nth-child(3) { animation-delay: 80ms; }
  .result.enter > *:nth-child(n+4) { animation-delay: 120ms; }
  .toast { animation: rise .2s var(--ease); }
  .arrived .tick path { animation: draw .5s .1s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
  @keyframes draw { from { stroke-dashoffset: 30; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
