/*
  all.help design system.
  Idea: safety signage. Colour carries meaning (red = call, green = defibrillators and first aid,
  blue = information and location, yellow = caution). Signs are flat plates with an inset keyline;
  everything else is quiet text on plain paper, separated by hairlines.
*/

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
}

:root {
  --paper: #f5f7fa;
  --glass: rgba(245, 247, 250, .92);
  --surface: #ffffff;
  --ink: #0b1f3a;
  --muted: #4a5870;
  --line: #dde3ec;
  --line-strong: #7d8aa0;

  --red: #c8232c;       --red-ink: #b01e26;   --red-tint: #fdecec;
  --green: #0b7a43;     --green-ink: #0a6b3a; --green-tint: #e6f4ec;
  --blue: #1d4ed8;      --blue-ink: #1d4ed8;  --blue-tint: #e8eeff;
  --yellow: #ffc72c;    --yellow-tint: #fff6d6;
  --slate: #33425c;
  --amber: #ffb000;
  --focus: #1d4ed8;

  --radius: 12px;
  --radius-lg: 18px;
  --gutter: 1rem;
  --col: 34rem;
  --tabbar: min(4.5rem, 80px);
  --font: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #08101f;
    --glass: rgba(8, 16, 31, .92);
    --surface: #111b30;
    --ink: #eaf0fa;
    --muted: #a6b3c8;
    --line: #22304a;
    --line-strong: #6b7a95;

    --red-ink: #ff9a9a;   --red-tint: #2a1519;
    --green-ink: #5fd99a; --green-tint: #10261d;
    --blue: #2d5be6;      --blue-ink: #9db9ff;  --blue-tint: #15213f;
    --yellow-tint: #2b2410;
    --slate: #3a4b69;
    --focus: #9db9ff;
  }
}

* { box-sizing: border-box; }

/* Follow the text size chosen in the device's settings (Dynamic Type on iPhone). */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@supports (font: -apple-system-body) {
  html { font: -apple-system-body; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-ink); text-underline-offset: .15em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
h1:focus, main:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.ico { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: .5rem; top: -4rem; z-index: 50; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: var(--radius); }
.skip:focus { top: .5rem; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { max-width: var(--col); margin: 0 auto; padding: .5rem var(--gutter); min-height: 3.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.wordmark { margin-right: auto; font-size: min(1.65rem, 30px); font-weight: 800; line-height: 1; letter-spacing: -.035em; color: var(--ink); text-decoration: none; }
.wordmark .dot, .about-mark .dot { color: var(--amber); }

.chip {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; max-width: 100%; min-width: 0; font-size: min(1rem, 22px);
  padding: 0 .55rem 0 .7rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 999px;
}
.chip .ico { width: 1.15rem; height: 1.15rem; color: var(--muted); }
.chip-name { min-width: 0; line-height: 1.2; text-align: left; overflow-wrap: anywhere; }
.flag { font-size: 1.3rem; line-height: 1; flex: none; }

.net-note { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .35rem var(--gutter); font-size: .875rem; font-weight: 600; line-height: 1.3; text-align: center; color: #fff; background: var(--slate); }
.net-note:empty { display: none; }
.net-note .ico { width: 1.05rem; height: 1.05rem; flex: none; }

.beta {
  display: flex; gap: .6rem; align-items: flex-start;
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--col) - 2 * var(--gutter)));
  margin: .75rem auto 0; padding: .6rem .8rem;
  background: var(--yellow); color: #0b1f3a; border-radius: var(--radius);
  font-size: .9375rem; line-height: 1.4;
}
.beta .ico { margin-top: .1rem; width: 1.25rem; height: 1.25rem; }
.beta p { flex: 1; }
.beta a { color: inherit; font-weight: 700; }

/* ---------- Layout ---------- */
main { max-width: var(--col); margin: 0 auto; padding: 1rem var(--gutter) calc(var(--tabbar) + env(safe-area-inset-bottom) + 1.5rem); }
h1 { font-size: min(1.75rem, 36px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; overflow-wrap: break-word; }
h2 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; }
.lead { font-size: 1.125rem; line-height: 1.45; margin-top: .6rem; }
.lead + .btn { margin-top: 1rem; }
.status { margin-top: .9rem; color: var(--muted); }
.status:empty { margin: 0; }
.fine { margin-top: 1.5rem; color: var(--muted); font-size: .875rem; }

.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .85rem; }
.page-head h1 { flex: 1 1 12rem; min-width: 0; }

/* ---------- Pictograms (small coloured signs) ---------- */
.pict { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 3.5rem; height: 3.5rem; border-radius: var(--radius); color: #fff; }
.pict::after { content: ""; position: absolute; inset: 4px; border: 1.5px solid rgba(255, 255, 255, .75); border-radius: 8px; pointer-events: none; }
.pict .ico { width: 1.75rem; height: 1.75rem; }
.pict-green { background: var(--green); }
.pict-blue { background: var(--blue); }
.pict-red { background: var(--red); }
.pict-ink { background: var(--slate); }
.pict-sm { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 10px; background: var(--blue-tint); color: var(--blue-ink); }
.pict-sm .ico { width: 1.3rem; height: 1.3rem; }

/* ---------- Plates (the big signs) ---------- */
.plate { position: relative; padding: 1.5rem 1.5rem 1.4rem; border-radius: var(--radius-lg); color: #fff; }
.plate::after { content: ""; position: absolute; inset: 7px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 12px; pointer-events: none; }
.plate-red { background: var(--red); }
.plate-blue { background: var(--blue); }
.plate-plain { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.plate-plain::after { border-color: var(--line); }

.hero-anim { animation: settle .22s ease-out; }
.hero-title { font-size: 1.65rem; line-height: 1.2; font-weight: 800; }
.hero-cap { font-size: 1.0625rem; font-weight: 700; }
.hero-number { margin: .1rem 0 .1rem; font-size: clamp(3.5rem, min(27vw, 14vh), 6.75rem); font-weight: 800; line-height: 1; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.hero-sub { font-size: 1.0625rem; line-height: 1.4; margin-bottom: 1.15rem; }
.hero-note { margin-top: .75rem; font-size: .875rem; line-height: 1.4; }
.hero-body { font-size: 1.0625rem; line-height: 1.45; margin: .4rem 0 1.15rem; }
.hero-actions { display: grid; gap: .6rem; }
.hero-foot { margin-top: .85rem; font-size: .875rem; }
.plate-plain .hero-cap, .plate-plain .hero-body { color: var(--ink); }
.plate-plain .hero-body { color: var(--muted); }

.skeleton { border-radius: var(--radius-lg); background: var(--line); min-height: 15rem; animation: pulse 1.2s ease-in-out infinite; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.25rem; padding: 0 1.25rem; font: inherit; font-weight: 700; text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: transform .08s ease-out;
}
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .6; cursor: default; }
.btn .ico { width: 1.35rem; height: 1.35rem; }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 3.75rem; font-size: 1.125rem; }
.btn-sm { min-height: 2.75rem; padding: 0 1rem; font-size: .9375rem; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-plate { background: #fff; color: #b01e26; min-height: 3.75rem; font-size: 1.35rem; font-weight: 800; }
.btn-plate .ico { width: 1.6rem; height: 1.6rem; }
.btn-plate-blue { background: #fff; color: #1d4ed8; min-height: 3.5rem; font-size: 1.125rem; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); min-height: 3.5rem; font-size: 1.0625rem; }

.link-btn { display: inline-block; padding: .65rem .25rem; font: inherit; font-weight: 700; color: var(--blue-ink); background: none; border: 0; text-decoration: underline; text-underline-offset: .15em; cursor: pointer; }

/* ---------- Home ---------- */
.prov { margin-top: .75rem; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.prov .link-btn { display: inline; padding: .4rem 0; }
.signs { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: 1.1rem .75rem; }
.sign { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; width: 100%; padding: 0; font: inherit; color: var(--ink); text-align: left; text-decoration: none; background: none; border: 0; cursor: pointer; }
.sign .pict { width: 4.25rem; height: 4.25rem; border-radius: 14px; transition: transform .08s ease-out; }
.sign .pict::after { inset: 5px; border-radius: 9px; }
.sign .pict .ico { width: 2.1rem; height: 2.1rem; }
.sign:active .pict { transform: scale(.96); }
.sign-label { font-weight: 700; font-size: .9375rem; line-height: 1.25; }

.block { margin-top: 2rem; }
.block h2 { font-size: 1.125rem; margin-bottom: .25rem; }
.srcline { margin-top: 1.25rem; color: var(--muted); font-size: .875rem; line-height: 1.45; }

.note { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; margin-bottom: 1rem; padding: .8rem 1rem; background: var(--blue-tint); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; }
.note.warn { background: var(--yellow-tint); border-left-color: var(--yellow); }
.note .link-btn { padding-block: .4rem; }

.install { margin-top: 2rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); display: grid; gap: .75rem; }
.install h2 { font-size: 1.0625rem; }
.install p { color: var(--muted); margin-top: .2rem; }
.install-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Lists ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li + li { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 3.5rem; padding: .8rem 0; font: inherit; color: inherit; text-align: left; text-decoration: none; background: none; border: 0; cursor: pointer; }
div.row { cursor: default; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.row-title { font-weight: 600; }
.row-sub { color: var(--muted); font-size: .9375rem; line-height: 1.35; }
.row-end { color: var(--muted); width: 1.25rem; height: 1.25rem; }
.group-title { margin: 1.75rem 0 .25rem; font-size: 1.0625rem; }
h1 + .group-title { margin-top: 1rem; }

.row-call { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: 0 .85rem; border: 2px solid var(--line-strong); border-radius: var(--radius); font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.row-call .ico { width: 1.15rem; height: 1.15rem; }
.is-urgent .row-call { color: var(--red-ink); border-color: var(--red-ink); }

/* ---------- Form controls ---------- */
.field { width: 100%; min-height: 3.25rem; padding: 0 1rem; font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--line-strong); border-radius: var(--radius); }
.field:focus-visible { border-color: var(--focus); outline-offset: 0; }
.switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 3.25rem; height: 2rem; margin: 0; background: var(--line-strong); border-radius: 999px; cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: .25rem; left: .25rem; width: 1.5rem; height: 1.5rem; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, .35); transition: transform .15s; }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(1.25rem); }

/* ---------- Defibrillators ---------- */
.callfirst { margin: 1.1rem 0 1rem; padding: .8rem 1rem; background: var(--red-tint); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; display: grid; gap: .75rem; }
.callfirst strong { color: var(--red-ink); }
.aeds { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .9rem; container-type: inline-size; }
.aed { display: grid; grid-template-columns: minmax(6rem, 28%) 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.aed-dist { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: .9rem .5rem; text-align: center; background: var(--green); color: #fff; }
.aed-dist strong { font-size: 1.6rem; line-height: 1.05; font-weight: 800; font-variant-numeric: tabular-nums; }
.aed-dir { font-size: .8125rem; font-weight: 600; line-height: 1.2; }
.compass { width: 2.25rem; height: 2.25rem; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.compass .n { fill: #fff; stroke: none; font-size: 6px; font-weight: 700; font-family: var(--font); }
.aed-body { display: flex; flex-direction: column; gap: .6rem; min-width: 0; padding: .85rem 1rem; }
.aed-where { font-weight: 700; overflow-wrap: anywhere; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; font-size: .8125rem; font-weight: 600; line-height: 1.3; border: 1px solid var(--line-strong); border-radius: 999px; }
.tag .ico { width: .9rem; height: .9rem; }
.tag-ok { background: var(--green-tint); color: var(--green-ink); border-color: transparent; }
.tag-warn { background: var(--yellow-tint); border-color: var(--yellow); }
.aed-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.aed-links a { flex: 1 1 9rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 3rem; padding: .35rem .85rem; font-size: .9375rem; font-weight: 700; text-decoration: none; color: var(--blue-ink); background: var(--surface); }
.aed-links a:focus-visible { outline-offset: -4px; border-radius: 0; }
.aed-links .ico { width: 1.1rem; height: 1.1rem; }
@container (max-width: 20rem) {
  .aed { grid-template-columns: 1fr; }
  .aed-dist { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; gap: .5rem .85rem; padding: .65rem 1rem; text-align: left; }
}
.saver { margin-top: 1.25rem; padding: .85rem 1rem; display: grid; gap: .6rem; justify-items: start; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.credit { margin-top: 1.25rem; color: var(--muted); font-size: .875rem; line-height: 1.5; }

/* ---------- Location ---------- */
.fix { margin-top: 1rem; padding: 1rem 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.coords { display: grid; gap: .6rem; }
.coords dt { color: var(--muted); font-size: .875rem; }
.coords dd { margin: 0; font-size: 1.9rem; line-height: 1.15; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .01em; overflow-wrap: anywhere; }
.acc { margin-top: .85rem; font-weight: 700; }
.acc.good { color: var(--green-ink); }
.when { color: var(--muted); font-size: .9375rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.actions .btn { flex: 1 1 8rem; }
.actions .actions-main { flex-basis: 100%; }
.actions .when { flex-basis: 100%; margin: 0; }
.btn-stack { display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.25; padding-block: .5rem; }
.btn-title { font-weight: 700; }
.btn-sub { font-size: .875rem; font-weight: 400; }

/* ---------- Text pages ---------- */
.back { display: inline-flex; align-items: center; gap: .2rem; min-height: 2.75rem; margin: 0 0 .4rem -.35rem; padding: 0 .5rem 0 .25rem; font-weight: 700; text-decoration: none; color: var(--blue-ink); }
.back .ico { width: 1.25rem; height: 1.25rem; }
.page { max-width: 32rem; }
.page h2 { margin: 1.75rem 0 .4rem; }
.page p + p, .page ul + p, .page p + ul { margin-top: .75rem; }
.page ul { padding-left: 1.25rem; }
.page li + li { margin-top: .4rem; }
.licence { margin-top: 1rem; padding-left: .85rem; border-left: 3px solid var(--blue); color: var(--ink); }
.sources { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: 1rem; }
.sources h3 { font-size: 1.0625rem; font-weight: 700; }
.sources p { margin-top: .2rem; color: var(--muted); font-size: .9375rem; }
.sources .links { display: flex; flex-direction: column; gap: .1rem; }
.sources a { overflow-wrap: anywhere; }
.sources details { margin-top: .2rem; color: var(--muted); font-size: .9375rem; }
.sources summary { cursor: pointer; min-height: 2.5rem; display: flex; align-items: center; }
.about-mark { margin: 1rem 0 .25rem; font-size: 3.25rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }

/* ---------- Tab bar ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding-bottom: env(safe-area-inset-bottom); background: var(--glass); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); }
.tabs-in { max-width: var(--col); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: min(4.25rem, 76px); padding: .35rem 0; font-size: min(.8125rem, 15px); font-weight: 600; color: var(--muted); text-decoration: none; }
.tab-ico { display: inline-flex; align-items: center; justify-content: center; width: min(3.5rem, 64px); height: min(2rem, 36px); border-radius: 999px; }
.tabs .ico { width: min(1.55rem, 28px); height: min(1.55rem, 28px); }
.tabs a[aria-current="page"] { font-weight: 800; }
.tabs a[data-tab="help"][aria-current="page"] { color: var(--red-ink); }
.tabs a[data-tab="help"][aria-current="page"] .tab-ico { background: var(--red-tint); }
.tabs a[data-tab="nearby"][aria-current="page"], .tabs a[data-tab="firstaid"][aria-current="page"] { color: var(--green-ink); }
.tabs a[data-tab="nearby"][aria-current="page"] .tab-ico, .tabs a[data-tab="firstaid"][aria-current="page"] .tab-ico { background: var(--green-tint); }
.tabs a[data-tab="location"][aria-current="page"] { color: var(--blue-ink); }
.tabs a[data-tab="location"][aria-current="page"] .tab-ico { background: var(--blue-tint); }
.tabs a[data-tab="more"][aria-current="page"] { color: var(--ink); }
.tabs a[data-tab="more"][aria-current="page"] .tab-ico { background: var(--line); }

/* ---------- Country sheet ---------- */
.sheet { width: 100%; max-width: var(--col); max-height: 92vh; max-height: 92dvh; margin: auto auto 0; padding: 0; color: var(--ink); background: var(--surface); border: 0; border-radius: 20px 20px 0 0; overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-up .22s ease-out; }
.sheet::backdrop { background: rgba(8, 16, 31, .6); animation: fade .22s ease-out; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1rem .5rem var(--gutter); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; color: var(--ink); background: var(--paper); border: 0; border-radius: 50%; cursor: pointer; }
.sheet-tools { display: grid; gap: .75rem; padding: .25rem var(--gutter) .75rem; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) calc(1rem + env(safe-area-inset-bottom)); }
.sheet-body h3 { margin: 1rem 0 .15rem; font-size: 1rem; color: var(--muted); font-weight: 700; }
.sheet-body ul { list-style: none; margin: 0; padding: 0; }
.sheet-body li + li { border-top: 1px solid var(--line); }
.pick { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 3.5rem; padding: .5rem 0; font: inherit; color: inherit; text-align: left; background: none; border: 0; cursor: pointer; }
.pick .name { flex: 1; min-width: 0; font-weight: 600; }
.pick .dial { color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.pick .has { flex: none; font-size: .8125rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; color: var(--green-ink); background: var(--green-tint); }
.pick .ico { color: var(--green-ink); width: 1.3rem; height: 1.3rem; }
.pick[aria-pressed="true"] .name { color: var(--blue-ink); }
.empty { padding: 1.25rem 0; color: var(--muted); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + .75rem); z-index: 40; transform: translateX(-50%); max-width: calc(100% - 2rem); padding: .7rem 1.1rem; color: var(--paper); background: var(--ink); border-radius: var(--radius); font-weight: 600; text-align: center; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); animation: toast-in .18s ease-out; }

/* ---------- Motion ---------- */
@keyframes settle { from { transform: scale(.985); } to { transform: none; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 50% { opacity: .55; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .plate::after, .pict::after { border-color: CanvasText; }
  .switch { border: 2px solid ButtonText; }
}

@media (max-height: 32rem) {
  .topbar { position: static; }
}

.row-from { font-size: .8125rem; font-weight: 700; color: var(--green-ink); }
.row-ext { flex: none; color: var(--muted); display: inline-flex; }
.row-ext .ico { width: 1.15rem; height: 1.15rem; }
