/* Online Reporting, OPP-1897 demo.
   Palette: OPP Black #000, White, OPP Yellow #FFD100 (means "act": primary actions, focus, current step),
   Blueberry #1F3050 (dark ground), Slate #475063 (secondary text), Action Amber #A84300 ("your reply needed").
   Type: Atkinson Hyperlegible Next only (Braille Institute; built for low-vision readers). Scale 14/17/21/28/36/52.
   One bold element: the start panel, black with a gold edge like the OPP shoulder flash. Everything else stays quiet.
   Glass only where something sits behind it (map overlays, photo band). */
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 400; font-display: swap; src: url('/vendor/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 400; font-display: swap; src: url('/vendor/fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 700; font-display: swap; src: url('/vendor/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 700; font-display: swap; src: url('/vendor/fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 800; font-display: swap; src: url('/vendor/fonts/atkinson-hyperlegible-next-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 800; font-display: swap; src: url('/vendor/fonts/atkinson-hyperlegible-next-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Metric-matched fallbacks: until the real font arrives (or if it can't), text takes the same space, so nothing jumps when it swaps in. */
@font-face { font-family: 'Atkinson Fallback'; font-weight: 400; src: local('Arial'), local('Liberation Sans'), local('Arimo'); size-adjust: 99.5%; ascent-override: 98%; descent-override: 32%; line-gap-override: 0%; }
@font-face { font-family: 'Atkinson Fallback'; font-weight: 700 800; src: local('Arial Bold'), local('Liberation Sans Bold'), local('Arimo Bold'); size-adjust: 99.8%; ascent-override: 98%; descent-override: 32%; line-gap-override: 0%; }
@font-face { font-family: 'Atkinson Hyperlegible Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/vendor/fonts-mono/atkinson-hyperlegible-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('/vendor/fonts-mono/atkinson-hyperlegible-mono-latin-700-normal.woff2') format('woff2'); }
:root {
  /* Shape, depth and motion, shared by every screen. */
  --r-ctrl: 10px; --r-card: 16px; --r-panel: 24px;
  --sh-card: 0 1px 2px rgba(17,24,39,.05), 0 8px 28px rgba(17,24,39,.07);
  --sh-lift: 0 2px 8px rgba(17,24,39,.08), 0 18px 44px rgba(17,24,39,.14);
  --ease: cubic-bezier(.22,.61,.36,1);
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Staff workspace surfaces: a warm off-white canvas with white cards. */
  --canvas: #F6F5F2; --surface: #FFFFFF; --surface-2: #FAF9F6; --line-1: #E3E2DE; --line-2: #ECEBE7;
  --sb-bg: #1F3050; --sb-ink: rgba(255,255,255,.74); --sb-ink-hi: #FFFFFF; --sb-hover: rgba(255,255,255,.08); --sb-on: rgba(255,255,255,.13); --sb-line: rgba(255,255,255,.1);
  --bg: #FFFFFF; --bg-2: #F4F5F7; --ink: #000000; --ink-2: #262C38; --ink-3: #475063; --act: #A84300; --act-bg: #FFF1E6;
  --gold: #FFD100; --gold-2: #FFE14D; --on-gold: #000; --accent-text: #000000;
  --card: rgba(255,255,255,.9); --card-solid: #FFFFFF; --border: rgba(0,0,0,.14); --hairline: rgba(0,0,0,.08); --hover: rgba(0,0,0,.05);
  --chip-bg: #FFFFFF; --chip-on: #FFF3B8; --chip-on-border: #000000;
  --input-bg: #FFFFFF; --input-border: #5B6372;
  --series: #1F3050; --land: #E9EDF3; --land-hi: #D7DEE9; --water: #D2DCE8; --neighbor: #F5F6F8; --line: rgba(0,0,0,.18); --edge: rgba(0,0,0,.7);
  --mps-fill: #ECEAE4; --mps-hatch: rgba(0,0,0,.18); --label-halo: rgba(255,255,255,.95);
  --emerg-bg: #000000; --emerg-ink: #E6E6E6;
  --stop-bg: #FDECEA; --stop-border: rgba(192,57,43,.45); --stop-ink: #6E1B12;
  --ok-bg: #E8F5EC; --ok-border: rgba(30,123,69,.45); --ok-ink: #124D2B;
  --info-bg: #FFF8D6; --info-border: #B38F00; --info-ink: #3D3100;
  --err: #B3261E;
  --glass: linear-gradient(140deg, rgba(255,255,255,.82), rgba(255,255,255,.6));
  --glass-border: rgba(0,0,0,.08); --glass-shadow: 0 10px 28px -16px rgba(30,30,20,.22);
    --radius: 16px; --r-sm: 8px;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Fallback", "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --root-size: 100%;
  color-scheme: light;
}
html[data-size="large"] { --root-size: 112.5%; }
html[data-size="larger"] { --root-size: 125%; }

/* Dark tokens, applied by choice or by system preference. */
html[data-theme="dark"] {
  --canvas: #1A2944; --surface: #213456; --surface-2: #1D2E4D; --line-1: rgba(255,255,255,.14); --line-2: rgba(255,255,255,.08);
  --sb-bg: #121D33; --sh-card: 0 1px 2px rgba(0,0,0,.25), 0 8px 28px rgba(0,0,0,.22); --sh-lift: 0 2px 8px rgba(0,0,0,.3), 0 18px 44px rgba(0,0,0,.4);
  --bg: #1F3050; --bg-2: #1A2944; --ink: #FFFFFF; --ink-2: #D5DDEA; --ink-3: #B4C0D3; --act: #FFB37A; --act-bg: rgba(255,140,60,.14);
  --accent-text: #FFD100;
  --card: rgba(22,35,60,.82); --card-solid: #18284A; --border: rgba(255,255,255,.16); --hairline: rgba(255,255,255,.1); --hover: rgba(255,255,255,.08);
  --chip-bg: rgba(255,255,255,.06); --chip-on: rgba(255,209,0,.16); --chip-on-border: rgba(255,209,0,.7);
  --input-bg: #F5F7FA; --input-border: #F5F7FA;
  --series: #FFD100; --land: #2B4470; --land-hi: #36558A; --water: #17253F; --neighbor: #1A2944; --line: rgba(255,255,255,.16); --edge: rgba(255,209,0,.75);
  --mps-fill: #243149; --mps-hatch: rgba(255,255,255,.16); --label-halo: rgba(20,32,54,.92);
  --stop-bg: rgba(255,107,90,.14); --stop-border: rgba(255,107,90,.5); --stop-ink: #FFD7D1;
  --ok-bg: rgba(70,200,120,.14); --ok-border: rgba(70,200,120,.5); --ok-ink: #CFF5DC;
  --info-bg: rgba(255,209,0,.14); --info-border: rgba(255,209,0,.7); --info-ink: #FFF1B0;
  --err: #FF8A7E;
  --glass: linear-gradient(140deg, rgba(255,255,255,.13), rgba(255,255,255,.04));
  --glass-border: rgba(255,255,255,.2); --glass-shadow: 0 10px 28px -14px rgba(0,0,0,.45);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --canvas: #1A2944; --surface: #213456; --surface-2: #1D2E4D; --line-1: rgba(255,255,255,.14); --line-2: rgba(255,255,255,.08);
  --sb-bg: #121D33; --sh-card: 0 1px 2px rgba(0,0,0,.25), 0 8px 28px rgba(0,0,0,.22); --sh-lift: 0 2px 8px rgba(0,0,0,.3), 0 18px 44px rgba(0,0,0,.4);
  --bg: #1F3050; --bg-2: #1A2944; --ink: #FFFFFF; --ink-2: #D5DDEA; --ink-3: #B4C0D3; --act: #FFB37A; --act-bg: rgba(255,140,60,.14);
    --accent-text: #FFD100;
    --card: rgba(22,35,60,.82); --card-solid: #18284A; --border: rgba(255,255,255,.16); --hairline: rgba(255,255,255,.1); --hover: rgba(255,255,255,.08);
    --chip-bg: rgba(255,255,255,.06); --chip-on: rgba(255,209,0,.16); --chip-on-border: rgba(255,209,0,.7);
    --input-bg: #F5F7FA; --input-border: #F5F7FA;
    --series: #FFD100; --land: #2B4470; --land-hi: #36558A; --water: #17253F; --neighbor: #1A2944; --line: rgba(255,255,255,.16); --edge: rgba(255,209,0,.75);
    --mps-fill: #243149; --mps-hatch: rgba(255,255,255,.16); --label-halo: rgba(20,32,54,.92);
    --stop-bg: rgba(255,107,90,.14); --stop-border: rgba(255,107,90,.5); --stop-ink: #FFD7D1;
    --ok-bg: rgba(70,200,120,.14); --ok-border: rgba(70,200,120,.5); --ok-ink: #CFF5DC;
    --info-bg: rgba(255,209,0,.14); --info-border: rgba(255,209,0,.7); --info-ink: #FFF1B0;
    --err: #FF8A7E;
    --glass: linear-gradient(140deg, rgba(255,255,255,.13), rgba(255,255,255,.04));
    --glass-border: rgba(255,255,255,.2); --glass-shadow: 0 10px 28px -14px rgba(0,0,0,.45);
        color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { font-size: var(--root-size); -webkit-text-size-adjust: 100%; }
body { margin: 0; background-color: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
main { padding-top: 24px; padding-bottom: 56px; min-height: 60vh; }
main:focus { outline: none; }
body.narrow main { max-width: 860px; }
h1 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); font-weight: 800; line-height: 1.1; margin: 0 0 12px; letter-spacing: -.02em; }
h2 { font-size: 1.3125rem; font-weight: 700; line-height: 1.25; margin: 28px 0 10px; letter-spacing: -.005em; }
h3 { font-size: 1.0625rem; font-weight: 700; margin: 18px 0 8px; }
p { margin: 0 0 12px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; box-shadow: 0 0 0 6px #000; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #000; padding: 8px 12px; z-index: 1000; font-weight: 700; }
.skip:focus { left: 8px; }
.hint, .muted { color: var(--ink-3); font-size: .92rem; display: block; margin: 2px 0 6px; }
.lede, .lead { font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.rp-card p, .sheet p, .status-card p, .rp-lede, .band p { max-width: 68ch; }
/* Every control, table and map label uses the page font (browsers default to a system font otherwise). */
button, input, select, textarea, optgroup, table, svg text { font-family: inherit; }
code, pre, .mono { font-family: var(--mono); font-size: .88rem; }
pre { white-space: pre-wrap; word-break: break-word; background: var(--bg-2); padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--border); margin: 0; }
code.wrap { word-break: break-all; }
img { max-width: 100%; }
.glass { background: var(--card-solid); border: 1px solid var(--border); border-radius: var(--radius); }
.frost { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--glass-shadow); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }

/* ---- chrome ---- */
.emerg { background: var(--emerg-bg); color: var(--emerg-ink); font-size: .9rem; }
.emerg .wrap { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: center; padding-top: 7px; padding-bottom: 7px; }
.emerg strong, .emerg a { color: #fff; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #E53935; box-shadow: 0 0 0 3px rgba(229,57,53,.35); align-self: center; }
.banner { background: var(--info-bg); color: var(--info-ink); font-size: .85rem; border-bottom: 1px solid var(--info-border); }
.banner .wrap { padding-top: 5px; padding-bottom: 5px; }
.lang-notice { background: var(--warn-bg, #fff4cc); color: var(--warn-ink, #1a1a1a); font-size: .9rem; border-bottom: 1px solid var(--warn-border, #c9a400); }
.lang-notice .wrap { padding-top: 6px; padding-bottom: 6px; }
.lang-notice a { color: inherit; font-weight: 700; margin-inline-start: .5em; }
.lang-list { display: inline-flex; flex-wrap: wrap; gap: 6px; }
header.top .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.crest { width: 48px; height: 48px; object-fit: contain; flex: none; }
.crest.placeholder { display: grid; place-items: center; border: 2px solid var(--gold); border-radius: 12px 12px 22px 22px; background: #000; color: var(--gold); font-weight: 800; font-size: .72rem; letter-spacing: .06em; }
.org { display: block; font-size: .875rem; font-weight: 700; color: var(--ink-2); }
.product { display: block; font-weight: 800; font-size: 1.3125rem; line-height: 1.1; letter-spacing: -.01em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover { text-decoration: underline; }
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tools form { margin: 0; }
.who { font-size: .9rem; color: var(--ink-2); }
.pill { display: inline-block; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; text-decoration: none; font-weight: 600; background: var(--chip-bg); }
.sizes { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--chip-bg); }
.sz { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; text-decoration: none; font-weight: 700; }
.sz-default { font-size: .85rem; } .sz-large { font-size: 1rem; } .sz-larger { font-size: 1.15rem; }
.sz.on { background: var(--gold); color: #000; }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--chip-bg); color: var(--ink); cursor: pointer; text-decoration: none; font-size: 1.1rem; }
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme .moon { display: none; }
html[data-theme="dark"] .theme .sun { display: none; } html[data-theme="dark"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) { html:not([data-theme]) .theme .sun { display: none; } html:not([data-theme]) .theme .moon { display: block; } }
footer.site { border-top: 1px solid var(--hairline); padding: 24px 0 32px; color: var(--ink-3); font-size: .9rem; }
footer.site p { margin-bottom: 6px; }

/* ---- buttons ---- */
.btn, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2; border: 2px solid transparent; }
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { background: var(--gold-2); }
.btn-dark, .button { background: #000; color: #fff; border-color: #000; }
html[data-theme="dark"] .btn-dark, html[data-theme="dark"] .button { background: #fff; color: #000; border-color: #fff; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .btn-dark, html:not([data-theme="light"]) .button { background: #fff; color: #000; border-color: #fff; } }
.btn-ghost, .button.secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover, .button.secondary:hover { background: var(--hover); }
.btn-stop { background: #C0392B; color: #fff; }
.btn[aria-disabled="true"], .btn:disabled { background: transparent; color: var(--ink-3); border-color: var(--border); border-style: dashed; cursor: not-allowed; }
.screen-blocked { margin: 14px 0 0; }
.screen-blocked[hidden] { display: none; } /* .hint sets display, which would otherwise show it before any answer */
.btn-check { background: var(--gold); color: #000 !important; padding: 9px 16px; }
.btn.small, .button.small { padding: 7px 14px; font-size: .92rem; }
.button.danger { background: var(--err); border-color: var(--err); color: #fff; }
.linkbtn, button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn[disabled], button.link[disabled] { color: var(--ink-3); text-decoration: none; cursor: default; }
button.link.danger { color: var(--err); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0; }
.actions form { margin: 0; }

/* ---- form controls ---- */
.fld, .field { margin-bottom: 18px; }
.fld > label, .field > label, .lbl, legend { display: block; font-weight: 650; margin-bottom: 4px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
input[type=text], input:not([type]), input[type=email], input[type=tel], input[type=date], input[type=time], input[type=number], select, textarea {
  width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--input-border); border-radius: var(--r-sm); background: var(--input-bg); color: #000; }
textarea { min-height: 120px; resize: vertical; }
select { appearance: auto; }
input[type=file] { font: inherit; max-width: 100%; }
.invalid input, .invalid textarea, .invalid select, .has-error input, .has-error textarea, .has-error select { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.err, .error { color: var(--err); font-weight: 650; margin: 4px 0; }
.err p, .error p { margin: 0 0 4px; }
.errbox, .error-summary { border: 2px solid var(--err); background: var(--stop-bg); color: var(--ink); padding: 14px 16px; margin-bottom: 20px; border-radius: var(--r-sm); }
.errbox h2, .error-summary h2 { margin: 0 0 6px; font-size: 1.05rem; color: var(--err); }
.errbox ul, .error-summary ul { margin: 0; padding-left: 20px; }
.errbox a, .error-summary a { color: var(--err); font-weight: 650; }
.okbox { background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok-ink); border-radius: var(--r-sm); padding: 12px 14px; margin: 0 0 14px; }
.okbox.split, .mpsbox.split { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.contact-row { margin-bottom: 8px; }
.contact-row + .contact-row { margin-top: 0; }
.stopbox { background: var(--stop-bg); border: 1px solid var(--stop-border); color: var(--stop-ink); border-radius: var(--r-sm); padding: 14px 16px; margin: 12px 0; }
.stopbox ul { margin: 0 0 8px; padding-left: 20px; }
.stopbox .phones, .phones { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }
.qcall:empty { display: none; }
.qcall.on { background: var(--stop-bg); border: 1px solid var(--stop-border); border-left-width: 6px; color: var(--stop-ink); border-radius: var(--r-sm); padding: 12px 14px; margin: 10px 0 2px; }
.qcall .qcall-msg { margin: 0 0 10px; }
.qcall .qcall-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; text-align: center; text-decoration: none; }
.qcall .btn-stop { font-size: 1.15rem; font-weight: 700; }
.mpsbox { background: var(--info-bg); border: 1px solid var(--info-border); color: var(--info-ink); border-radius: var(--r-sm); padding: 14px 16px; margin: 12px 0; }
.yn, .radios { display: flex; flex-wrap: wrap; gap: 10px; }
.choice, .radio { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); border-radius: 999px; padding: 8px 16px; cursor: pointer; background: var(--chip-bg); font-weight: 500; }
.choice:has(input:checked) { border-color: var(--chip-on-border); background: var(--chip-on); }
.choice input, .radio input, .check input { width: 20px; height: 20px; margin: 0; accent-color: #000; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.qwrap { border-bottom: 1px solid var(--hairline); padding: 10px 0; margin: 0; }
.qrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 0; }
.qrow .q { font-weight: 500; flex: 1 1 260px; margin: 0; padding: 0; float: left; }
.qrow .err { flex-basis: 100%; }
.group { border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 6px 16px 12px; }
.group > legend { padding: 0 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
/* Paired fields on the public form: the two input boxes sit on one line even when only one side has a hint or an error. */
body.public .grid2 > .fld:not([hidden]) { display: flex; flex-direction: column; }
body.public .grid2 > .fld > input, body.public .grid2 > .fld > select { margin-top: auto; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.items { display: grid; gap: 12px; margin-bottom: 12px; }
.item { border: 1px dashed var(--border); border-radius: var(--r-sm); padding: 12px 14px 4px; }
.total { display: flex; justify-content: space-between; font-weight: 700; padding: 12px 16px; border-radius: var(--r-sm); background: var(--bg-2); margin-bottom: 12px; }
.total.over { background: var(--stop-bg); color: var(--stop-ink); }
.req { color: var(--err); }
/* Repeatable groups (vehicles, people ...) */
.group-field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.group-field > legend { padding: 0; }
.entry { border: 1px dashed var(--border); border-radius: var(--r-sm); padding: 12px 14px 8px; margin: 0 0 12px; min-width: 0; }
.entry > legend { font-weight: 700; padding: 0 6px; }
.entry .linkbtn { min-height: 24px; padding: 4px 0; margin: 0 0 8px; }
.entry .grid2 > * { min-width: 0; }
/* A tall text box gets a row of its own, so a one-line field beside it does not sit lower than it. */
.grid2 > .fld:has(> textarea) { grid-column: 1 / -1; }
.rv h3 { font-size: 1rem; margin: 12px 0 4px; }


/* ---- home ---- */
.home h1 { font-size: clamp(2rem, 3.3vw, 2.75rem); line-height: 1.05; letter-spacing: -.03em; margin: 4px 0 12px; }
.home .lede { margin-bottom: 0; }
.home-simple { max-width: 560px; margin: 0 auto; padding: 24px 0 8px; }
.home-simple h1 { margin: 0 0 12px; }
.home-simple .lede { margin: 0 0 24px; }
.home-simple .okbox, .home-simple .stopbox { margin: 0 0 20px; }
.home-actions { display: grid; gap: 28px; }
.home-actions .btn-xl { width: 100%; }
.btn-xl { min-height: 56px; padding: 14px 24px; font-size: 1.125rem; }
.home-already { border-top: 2px solid var(--border); padding-top: 20px; }
.home-new { margin: 14px 0 0; font-size: 1rem; text-align: center; }
.home-new a { display: inline-block; padding: 12px 8px; }
.home-already h2 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 800; }
.ask { display: flex; gap: 8px; background: #fff; border: 0; border-radius: 12px; padding: 6px; }
.ask input { border: 0; padding: 10px 12px; background: transparent; flex: 1; min-width: 0; color: #000; }
.ask input:focus { outline: none; }
.ask:focus-within { box-shadow: 0 0 0 3px var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 2px; }
.chips .chip { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--border); background: var(--chip-bg); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: .93rem; }
.chips .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips .chip svg { width: 16px; height: 16px; color: var(--accent-text); }
.chips .chip:has(input:checked) { background: var(--chip-on); border-color: var(--chip-on-border); }
.chips .chip:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.route { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; margin-top: 12px; background: var(--card); }
.route .tag, .tag { display: block; font-size: .875rem; color: var(--ink-3); }
.route b { display: block; }
.check-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); flex: none; }
.check-icon svg { width: 22px; height: 22px; }
.mapwrap { position: relative; height: 100%; min-height: 640px; }
.mapwrap svg { display: block; width: 100%; height: 640px; }
.map-tools { position: absolute; top: 0; right: 0; display: flex; gap: 8px; z-index: 2; }
.legend { position: absolute; top: 52px; right: 0; padding: 12px 14px; font-size: .85rem; max-width: 250px; z-index: 2; }
/* The area popup and the legend never overlap: the legend steps aside (keeping its space) while a popup is open. */
.mapwrap:has(.map-card:not([hidden])) .legend, .locmap:has(.map-card:not([hidden])) .legend { visibility: hidden; }
.legend ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 4px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend p { font-size: .75rem; color: var(--ink-3); margin: 0; }
.sw { width: 18px; height: 12px; border: 1px solid var(--line); border-radius: 3px; flex: none; }
.sw-opp { background: var(--land); } .sw-mps { background: repeating-linear-gradient(45deg, var(--mps-fill) 0 3px, var(--mps-hatch) 3px 5px); }
.sw-hq { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 2px solid #000; } .sw-ut { height: 0; border: 0; border-top: 1.5px solid var(--edge); }
.find { position: absolute; top: 230px; right: 0; width: 250px; z-index: 2; }
.map-cap { position: absolute; bottom: 0; left: 0; font-size: .8rem; color: var(--ink-3); }
.map-card { position: absolute; z-index: 3; width: 290px; padding: 14px 16px; color: var(--ink); }
.map-card .k { margin: 0 0 2px; } .map-card h3 { margin: 0 0 6px; }
.map-tip { position: absolute; pointer-events: none; z-index: 4; background: var(--card-solid); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: .85rem; opacity: 0; transition: opacity .1s; }
.map-tip small { display: block; color: var(--ink-3); }
svg .muni { fill: var(--land); stroke: var(--line); stroke-width: .5; vector-effect: non-scaling-stroke; cursor: pointer; }
svg .muni.mps { fill: url(#hatch); }
svg .muni:hover, svg .muni.active { fill: var(--land-hi); }
svg .muni.mps:hover, svg .muni.mps.active { fill: url(#hatchHi); }
svg .muni.target { stroke: var(--gold); stroke-width: 2.5; }
svg .ut { fill: none; stroke: var(--edge); stroke-width: 1.1; vector-effect: non-scaling-stroke; pointer-events: none; opacity: .55; }
svg .ont { fill: none; stroke: var(--edge); stroke-width: 1.6; vector-effect: non-scaling-stroke; pointer-events: none; }
svg .lake { fill: var(--water); stroke: none; pointer-events: none; }
svg .nb { fill: var(--neighbor); stroke: var(--line); stroke-width: .5; vector-effect: non-scaling-stroke; }
svg .hq circle.o { fill: var(--gold); stroke: #000; stroke-width: 2; }
svg .hq circle.i { fill: #000; }
svg .hq text, svg .mlabel { font: 600 12px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--label-halo); stroke-width: 3px; }
svg .pin path { fill: var(--gold); stroke: #000; stroke-width: 1.5; }
.band { margin-top: 48px; }
.band h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.elig { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.elig .glass { padding: 18px 20px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--bg-2); color: var(--ink); white-space: nowrap; }
.badge.yes { background: var(--ok-bg); color: var(--ok-ink); } .badge.no { background: var(--stop-bg); color: var(--stop-ink); }
.how { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how li { padding: 0 0 16px; overflow: hidden; }
.how img, .how .ph { width: 100%; height: 170px; object-fit: cover; display: block; }
.how .ph { display: grid; place-items: center; padding: 16px; text-align: center; font-size: .85rem; color: var(--ink-3); background: repeating-linear-gradient(45deg, var(--bg-2) 0 10px, transparent 10px 20px); }
.how h3, .how p { padding: 0 18px; }

/* ---- verification sheet, confirmation ---- */
.sheet { max-width: 520px; margin: 24px auto; padding: 26px 26px 20px; }
.sheet.wide { max-width: 760px; }
.k { font-size: .9375rem; font-weight: 700; color: var(--ink-3); margin: 0 0 4px; }
.or { text-align: center; color: var(--ink-3); font-size: .85rem; margin: -6px 0 10px; }
.sheet .btn { width: 100%; margin-top: 4px; }
.sheet .actions .btn { width: auto; }
.row { display: flex; gap: 10px; align-items: center; margin: 12px 0 0; flex-wrap: wrap; }
.row form { margin: 0; }
input.code { font-size: 1.75rem; font-weight: 700; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.dev-note { border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 16px; }
.done { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; margin-bottom: 12px; }
.done svg { width: 28px; height: 28px; fill: none; stroke: #000; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.confirmation { max-width: none; }
.trk { display: flex; flex-direction: column; gap: 2px; border-left: 6px solid var(--gold); background: var(--bg-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 12px 18px; margin: 12px 0 16px; }
.trk span { font-size: .9375rem; font-weight: 700; color: var(--ink-3); }
#tracking-no { white-space: nowrap; font-size: clamp(1.25rem, 6.4vw, 2.25rem); }
.trk strong { font-size: 2.25rem; font-weight: 800; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
ol.next { padding-left: 22px; }
ul.drafts { list-style: none; padding: 0; }
ul.drafts li { padding: 10px 0; border-bottom: 1px solid var(--hairline); }

/* ---- report flow ---- */
.rp-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
/* Step 1: the "Before you start" answers, collapsed once they're all No. */
.screen-sum { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; margin: 0 0 20px; }
.screen-sum > summary { cursor: pointer; font-weight: 700; }
.screen-sum > summary .screen-link { font-weight: 400; text-decoration: underline; margin-left: 4px; }
.screen-sum[open] > summary { margin-bottom: 12px; }
.screen-none { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.help { font-size: .88rem; color: var(--ink-2); border-top: 1px solid var(--hairline); padding-top: 12px; margin: 0; }
.rp-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.prog { margin: 0 0 6px; font-size: .9rem; color: var(--ink-2); }
.pbar { width: 220px; height: 5px; background: var(--hairline); border-radius: 3px; overflow: hidden; }
.pbar span { display: block; height: 100%; background: var(--gold); }
.pbar .q1 { width: 25%; } .pbar .q2 { width: 50%; } .pbar .q3 { width: 75%; } .pbar .q4 { width: 100%; }
.pbar .w1 { width: 16.6%; } .pbar .w2 { width: 33.3%; } .pbar .w3 { width: 50%; } .pbar .w4 { width: 66.6%; } .pbar .w5 { width: 83.3%; } .pbar .w6 { width: 100%; }
.rp-card { padding: 28px 32px; margin-bottom: 18px; }
.rp-card h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.rp-lede { color: var(--ink-2); margin-bottom: 20px; }
.rp-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.locmap { height: 340px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border); background: var(--water); position: relative; cursor: crosshair; }
.locmap svg { width: 100%; height: 100%; display: block; }
.locmap.readonly { cursor: default; height: 260px; }
.drop { border: 2px dashed var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 6px; }
.drop input[type=file] { min-width: 0; width: 100%; } /* a file input is as wide as its file name by default, which pushed the page sideways on phones */
.drop svg { width: 34px; height: 34px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; }
.drop.over { border-color: var(--gold); background: var(--chip-on); }
.rejects { list-style: none; padding: 12px 14px; margin: 14px 0; background: var(--stop-bg); color: var(--stop-ink); border: 1px solid var(--stop-border); border-radius: var(--r-sm); }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 16px; }
.file { border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: var(--card); }
.file .th { height: 100px; display: grid; place-items: center; background: var(--bg-2); font-weight: 700; color: var(--ink-3); }
.file .th img { width: 100%; height: 100%; object-fit: cover; }
.file .meta { padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; font-size: .88rem; word-break: break-all; }
.review { display: grid; gap: 12px; margin-bottom: 18px; }
.rv { border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 12px 16px; }
.rv header { display: flex; justify-content: space-between; align-items: baseline; }
.rv h2 { margin: 0 0 6px; font-size: 1.05rem; }
.rv dl, dl.summary { margin: 0; }
.rv dl > div, dl.summary > div { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 4px 16px; padding: 7px 0; border-top: 1px solid var(--hairline); }
.rv dt, dl.summary dt { color: var(--ink-3); }
.rv dd, dl.summary dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
dl.summary.compact > div { padding: 5px 0; }

/* ---- status page ---- */
.status-card { padding: 22px 26px; margin-bottom: 18px; }
.status-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.status-head h1 { margin: 2px 0 14px; font-size: clamp(1.75rem, 3.4vw, 2.25rem); }
.status-head h1.h2 { font-size: 1.5rem; }
.updated { font-size: .88rem; color: var(--ink-3); }
.tracker { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; position: relative; }
.tracker li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; position: relative; font-size: .92rem; }
.tracker li::before { content: ""; position: absolute; top: 18px; transform: translateY(-50%); left: -50%; right: 50%; height: 3px; background: var(--hairline); z-index: 0; }
.tracker li:first-child::before { display: none; }
.tracker li.is-done::before, .tracker li.is-now::before { background: var(--gold); }
.tracker .dot { flex: none; box-sizing: border-box; width: 36px; height: 36px; min-width: 36px; min-height: 36px; line-height: 1; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 2px solid var(--border); background: var(--card-solid); position: relative; z-index: 1; }
.tracker li.is-done .dot { background: var(--gold); color: #000; border-color: var(--gold); }
.tracker li.is-now .dot { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(255,209,0,.3); }
.tracker li.is-now .l { font-weight: 700; }
.tracker li { min-width: 0; padding: 0; } @media (max-width: 480px) { .tracker li { font-size: clamp(.74rem, 3.3vw, .92rem); gap: 4px; } } .tracker .l { display: block; max-width: 100%; overflow-wrap: break-word; hyphens: manual; }
.tracker.action li.is-now .dot { background: var(--act); border-color: var(--act); color: #fff; box-shadow: 0 0 0 5px var(--act-bg); }
.tracker.declined li.is-done:last-child .dot { background: var(--ink-3); border-color: var(--ink-3); color: var(--bg); }
.tracker em { display: block; font-style: normal; font-size: .875rem; font-weight: 700; color: #fff; background: var(--act); border-radius: 999px; padding: 1px 8px; margin-top: 3px; }
.next-line { background: var(--bg-2); border-radius: var(--r-sm); padding: 10px 14px; margin: 0; }
.action-card { border: 2px solid var(--act); background: var(--act-bg); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 18px; }
.action-card .k { color: var(--act); }
.action-card h2 { margin: 0 0 12px; font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.action-card blockquote { margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid var(--act); background: var(--card-solid); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.action-card .body { white-space: pre-wrap; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.status-grid .rp-card { padding: 20px 24px; }
.status-grid h2 { margin-top: 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; border-left: 2px solid var(--hairline); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--bg); }
.timeline li:first-child::before { box-shadow: 0 0 0 4px rgba(255,209,0,.3); }
.timeline time { display: block; font-size: .82rem; color: var(--ink-3); }
.filelist { padding-left: 20px; }
ol.thread { list-style: none; padding: 0; margin: 0 0 16px; }
ol.thread li { border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 10px; background: var(--card); }
ol.thread li.in { border-left: 5px solid #2E7D32; }
ol.thread li.out { border-left: 5px solid var(--gold); }
ol.thread .meta, .action-card .meta { color: var(--ink-3); font-size: .9375rem; margin-bottom: 4px; }
.meta b { color: var(--ink); margin-right: 8px; }
ol.thread .body { white-space: pre-wrap; word-break: break-word; }

/* ---- staff and admin (shared tokens) ---- */
body.staff main { max-width: 1400px; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 16px; margin-bottom: 16px; }
.panel h2 { margin-top: 0; font-size: 1.08rem; }
.panel.internal { border-left: 6px solid #7a4cc2; }
.panel.dev { border-style: dashed; margin-top: 28px; }
.callout { border-left: 6px solid var(--gold); background: var(--card); padding: 12px 16px; margin: 0 0 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout.ok { border-color: #2E7D32; background: var(--ok-bg); color: var(--ok-ink); }
.callout.warn { border-color: #B26A00; background: var(--info-bg); color: var(--info-ink); }
.has-error { border-left: 4px solid var(--err); padding-left: 12px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; align-items: end; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 14px 0; margin-bottom: 16px; }
.filters .field { margin-bottom: 14px; }
.filters .buttons { display: flex; gap: 12px; align-items: center; }
.table-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; border-radius: var(--r-sm); }
table { border-collapse: collapse; width: 100%; background: var(--card); }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
thead th { background: var(--bg-2); font-size: .88rem; white-space: nowrap; }
tr.disabled td { color: var(--ink-3); text-decoration: line-through; }
td.num { text-align: right; font-variant-numeric: tabular-nums; width: 3em; }
.badge.s-submitted { background: #DBE7F7; color: #0B2545; }
.badge.s-in_review, .badge.s-info_received { background: #FFF1C2; color: #4D3900; }
.badge.s-pending_supervisor { background: #EADCF8; color: #3D1F66; }
.badge.s-info_requested { background: #FFE1CC; color: #6B2A00; }
.badge.s-approved { background: #D5EFDF; color: #124D2B; }
.badge.s-rejected { background: #F6D6D3; color: #6E1610; }
.ptag { display: inline-block; font-size: .8rem; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--chip-bg); }
.ptags { display: flex; gap: 8px; flex-wrap: wrap; }
.pager { display: flex; gap: 16px; justify-content: center; margin-top: 16px; }
.detail-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.detail-head h1 { margin: 0; font-size: 2rem; font-variant-numeric: tabular-nums; }
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.side-col { position: sticky; top: 12px; }
.tr-form, .tr-details { margin-bottom: 10px; }
.tr-details > summary { list-style: none; display: inline-flex; }
.tr-details > summary::-webkit-details-marker { display: none; }
.tr-details[open] > summary { margin-bottom: 8px; }
.preview { margin-bottom: 12px; }
.preview pre { font-size: .82rem; max-height: 220px; overflow: auto; }
ul.thumbs { list-style: none; padding: 0; display: grid; gap: 10px; }
ul.thumbs img { display: block; max-width: 220px; max-height: 160px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 4px; }
ol.history { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
ol.history li { padding: 6px 0; border-bottom: 1px dotted var(--hairline); }
ol.history time { color: var(--ink-3); margin-right: 6px; }
ol.history .who { font-weight: 650; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px; border-top: 4px solid var(--gold); }
.tile .label { color: var(--ink-3); font-size: .88rem; margin: 0; }
.tile .value { font-size: 2rem; font-weight: 700; margin: 0; }
table.bars th { font-weight: 400; width: 45%; }
table.bars meter { width: 100%; height: 14px; }
.admin { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.admin-nav ul { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--card); overflow: hidden; }
.admin-nav li a { display: block; padding: 8px 12px; text-decoration: none; border-bottom: 1px solid var(--hairline); }
.admin-nav a[aria-current=page] { background: var(--gold); color: #000; font-weight: 700; }
.admin-main { min-width: 0; }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 16px; }
.admin-form fieldset.i18n, .admin-form fieldset.cond { border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 10px 14px 0; }
.admin-form fieldset legend { padding: 0 4px; }
.cond-row { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.row-actions { white-space: nowrap; }
.row-actions form { display: inline; margin-left: 8px; }
.danger-zone { margin-top: 20px; }
pre.json { max-height: 70vh; overflow: auto; font-size: .78rem; }
.mail-body { font-family: ui-monospace, Menlo, monospace; font-size: .88rem; }
.card-link { text-decoration: none; display: flex; justify-content: space-between; align-items: center; }
.grid2s { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.grid3s { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.radio { border-radius: 8px; }
a.back::before { content: "‹ "; }

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .mapwrap { min-height: 520px; }
  .mapwrap svg { height: 520px; }
  .rp-wrap, .detail, .admin { grid-template-columns: minmax(0, 1fr); } /* minmax(0, ...) so one wide child cannot stretch the column past the screen */
  .side-col { position: static; order: -1; }
  .how, .elig, .status-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { order: 3; width: 100%; }
  .tools { width: 100%; justify-content: space-between; }
  .ask { flex-direction: column; } .ask .btn { width: 100%; }
  .grid2, .grid3, .cond-row { grid-template-columns: 1fr; }
  .rp-card { padding: 20px 16px; }
  .route { grid-template-columns: 1fr; }
  .rv dl > div, dl.summary > div { grid-template-columns: 1fr; }
  .rp-nav .btn { flex: 1; }
  .legend, .find { position: static; max-width: none; width: 100%; margin-bottom: 8px; }
  .mapwrap { min-height: 0; }
  .mapwrap svg { height: 420px; }
  .map-tools { top: auto; bottom: 30px; }
  table.queue thead { position: absolute; left: -9999px; }
  table.queue tr { display: block; border-bottom: 2px solid var(--border); padding: 6px 0; }
  table.queue td { display: grid; grid-template-columns: 40% 1fr; border: 0; padding: 4px 10px; }
  table.queue td::before { content: attr(data-label); font-weight: 650; color: var(--ink-3); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
table.queue td:first-child a { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- workflow library and designer ---- */
.wf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 16px 0 28px; }
.wf-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; background: var(--card-solid); display: flex; flex-direction: column; gap: 6px; }
.wf-card h2 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.wf-card h2 a { text-decoration: none; }
.wf-card.new { border-style: dashed; }
.wf-card p { margin: 0; }
.wf-badges, .wf-types { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0; }
.wf-meta { color: var(--ink-3); font-size: .9375rem; }
.wf-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.wf-actions form { margin: 0; }
.ptag.def { background: #000; color: #fff; border-color: #000; }
.ptag.ok { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-border); }
.ptag.warnp { background: var(--act-bg); color: var(--act); border-color: var(--act); text-decoration: none; }
.ptag.cond { background: var(--bg-2); }
.admin-form.plain { border: 0; padding: 0; background: none; }
.apply-all { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 8px 0 16px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: var(--radius); }
.apply-all label { flex-basis: 100%; font-weight: 700; }
.apply-all select { max-width: 320px; }
.role-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 8px 0; }
.role-card { display: flex; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: var(--card-solid); }
.role-card p { margin: 0 0 4px; } .role-card .rname { font-weight: 800; }
.rbadge { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .8rem; font-weight: 800; flex: none; }
.rbadge.r-reviewer { background: #DBE7F7; color: #0B2545; } .rbadge.r-supervisor { background: #EADCF8; color: #3D1F66; } .rbadge.r-admin { background: #000; color: var(--gold); }
.rbadges { display: inline-flex; gap: 3px; }
.wf-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.wf-head h1 { margin: 0 0 6px; }
.lenses { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .9375rem; color: var(--ink-3); }
.lens { border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; text-decoration: none; color: var(--ink); background: var(--chip-bg); }
.lens.on { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 700; }
.wf-designer { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.wf-panel { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.wf-panel h2 { margin-top: 0; }
.wfd-wrap { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); padding: 6px; overflow-x: auto; }
svg.wfd { display: block; width: 100%; min-width: 640px; height: auto; font-family: var(--sans); }
.wfd-col { fill: var(--card-solid); stroke: var(--hairline); }
.wfd-colh { font-size: 14px; font-weight: 700; fill: var(--ink-3); }
.wfd-node rect { fill: var(--card-solid); stroke: var(--ink-3); stroke-width: 1.2; }
.wfd-node:hover rect, .wfd-node:focus rect { stroke: var(--ink); stroke-width: 2; }
.wfd-node.act rect { fill: var(--act-bg); stroke: var(--act); }
.wfd-node.final.accepted rect { fill: var(--ok-bg); stroke: #1E7B45; }
.wfd-node.final.declined rect { fill: var(--bg-2); stroke: var(--ink-2); }
.wfd-node.sel rect { stroke: var(--gold); stroke-width: 4; }
.wfd-node.bad rect { stroke: var(--err); stroke-dasharray: 5 3; stroke-width: 2; }
.wfd-t { font-size: 14.5px; font-weight: 800; fill: var(--ink); }
.wfd-s { font-size: 12px; fill: var(--ink-3); }
.wfd-start rect { fill: #000; } .wfd-start text { font-size: 11px; font-weight: 700; fill: var(--gold); }
.wfd-any rect { fill: var(--bg); stroke: var(--ink-3); } .wfd-any text { font-size: 11px; font-weight: 700; fill: var(--ink-2); }
.wfd-edge path { fill: none; stroke-width: 2.2; stroke-linejoin: round; }
.wfd-edge:hover path, .wfd-edge.on path { stroke-width: 4; }
.wfd-edge.dim { opacity: .14; }
.wfd-edge:focus-visible path { stroke-width: 5; }
.wf-legend { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
.wf-legend li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid transparent; }
.wf-legend li.on { border-color: var(--gold); background: var(--chip-on); }
.wf-legend li.dim { opacity: .4; }
.wf-legend .sw { flex: none; }
.wf-checks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.wf-checks li { padding: 8px 12px; border-radius: var(--r-sm); }
.wf-checks li.e { background: var(--stop-bg); color: var(--stop-ink); border: 1px solid var(--stop-border); }
.wf-checks li.w { background: var(--info-bg); color: var(--info-ink); border: 1px solid var(--info-border); }
.wf-checks a { color: inherit; }
.plain-list { padding-left: 18px; margin: 0 0 12px; }
.plain-list.diff { font-family: inherit; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; }
.inline-form select { max-width: 220px; }
@media (max-width: 1100px) { .wf-designer { grid-template-columns: 1fr; } .wf-panel { position: static; max-height: none; } }

/* ---- Jurisdictions ------------------------------------------------------------------------
   Accent colours are per jurisdiction, from the generated /jurisdictions.css
   (--jur-accent, --jur-on). Without one, the OPP gold applies. The accent is only ever a filled
   chip or edge with its own contrast-checked text colour, so it works on light and dark grounds. */
.jur-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.jur-chip { display: inline-block; background: var(--jur-accent, var(--gold)); color: var(--jur-on, #000); font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.jur-logo { height: 40px; width: auto; max-width: 140px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px; border: 1px solid var(--border); }
.jur-card.branded { border-left: 8px solid var(--jur-accent, var(--gold)); }
.jur-copy { white-space: pre-line; }
.jur-phone a, .jur-band a { color: inherit; font-weight: 700; }
.jur-band { background: var(--card-solid); border: 1px solid var(--border); border-left: 8px solid var(--jur-accent, var(--gold)); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 12px 16px; margin: 0 0 16px; }
.jur-band p { margin: 0 0 6px; } .jur-band p:last-child { margin-bottom: 0; }
.confirmation .jur-band { text-align: left; margin-top: 12px; }
svg .muni.sel { fill: var(--gold); stroke: #000; stroke-width: 1; }
.locmap.preview { cursor: grab; height: 320px; }
.jur-admin .grid2 { align-items: start; }
.jur-admin fieldset.group { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 16px 4px; margin: 0 0 16px; }
.jur-admin fieldset.group > legend { font-weight: 700; padding: 0 6px; }
.jur-admin .mode-hosted, .jur-admin .mode-link { border-left: 4px solid var(--border); padding-left: 12px; margin: 0 0 8px; }
.jur-admin .contrast { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 4px 0 12px; }
.jur-admin .contrast svg { flex: none; border-radius: 8px; }
.jur-admin .contrast ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.jur-admin .contrast .bad { color: var(--err); font-weight: 700; }
.jur-sw { vertical-align: middle; }
.jur-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; margin: 0 0 12px; }
.jur-history { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.jur-history > li { border-left: 4px solid var(--gold); background: var(--bg-2); padding: 8px 12px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.jur-history .who { font-weight: 700; }
.jur-history ul { margin: 4px 0 0; padding-left: 18px; }
.tag-mode { display: inline-block; font-size: .85rem; border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.tag-mode.link { background: var(--info-bg); color: var(--info-ink); border-color: var(--info-border); }
.tag-mode.hosted { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-border); }

/* ---- incident type catalogue ---- */
.card-h { margin: 0; font-size: 1.2rem; font-weight: 800; }
.card-h a { text-decoration: none; }
.ti { display: inline-flex; align-items: center; gap: 8px; }
.ti svg { flex: none; color: var(--ink-2); }
.ti.big svg { width: 32px; height: 32px; }
h1 .ti.big { margin-right: 10px; vertical-align: -4px; }
.new-type { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--border); border-radius: var(--radius); }
.new-type input { max-width: 240px; }
.checks .radio svg { color: var(--ink-2); }
.jur-mapsearch { margin: 8px 0 24px; }
.jm-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.jm-head h2 { margin: 0; }
.find-inline { display: flex; align-items: center; gap: 8px; }
.find-inline label { font-weight: 700; white-space: nowrap; }
.find-inline input { width: 260px; }
.mapwrap.admin-map { min-height: 0; height: 460px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--water); }
.mapwrap.admin-map svg { height: 460px; }
.mapwrap.admin-map .map-tools { top: 10px; right: 10px; }
.mapwrap.admin-map .legend { top: 60px; right: 10px; }

/* ---- staff and admin shell ---- */
header.staff-top { border-bottom: 1px solid var(--hairline); background: var(--bg); position: sticky; top: 0; z-index: 20; }
header.staff-top .bar { padding-top: 10px; padding-bottom: 10px; flex-wrap: nowrap; }
body.staff .wrap { max-width: 1480px; }
.staff-top .crest { width: 40px; height: 40px; }
.staff-top .product { font-size: 1.1rem; }
.staff-nav { margin-right: auto; margin-left: 12px; }
.staff-nav ul { gap: 4px; }
.staff-nav a { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 700; }
.staff-nav a:hover { background: var(--hover); text-decoration: none; }
.staff-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.staff-tools { flex-wrap: nowrap; gap: 8px; }
.qf-open { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 7px 10px 7px 12px; background: var(--chip-bg); color: var(--ink-2); font: inherit; font-size: .9375rem; cursor: pointer; }
.qf-open:hover { border-color: var(--ink-3); }
.qf-open svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.qf-open kbd { font: inherit; font-size: .8rem; border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--ink-3); }
details.account { position: relative; }
details.account > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px 4px 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--chip-bg); }
details.account > summary::-webkit-details-marker { display: none; }
details.account[open] > summary { border-color: var(--ink); }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #000; color: var(--gold); font-weight: 800; font-size: .8rem; }
.acct-name { font-weight: 700; font-size: .9375rem; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.acct-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 320px; background: var(--card-solid); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 18px 48px -18px rgba(0,0,0,.35); padding: 14px 16px; z-index: 30; display: grid; gap: 10px; }
.acct-who { margin: 0 0 4px; display: grid; gap: 2px; } .acct-who span { color: var(--ink-3); font-size: .875rem; overflow-wrap: anywhere; }
.acct-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.acct-row > span { font-weight: 700; font-size: .9375rem; }
.acct-out { margin: 0; padding-top: 10px; border-top: 1px solid var(--hairline); }
.acct-out .button { width: 100%; }

/* admin layout: grouped menu, wide content */
body.admin-area main { padding-top: 20px; }
.admin { grid-template-columns: 250px minmax(0, 1fr); gap: 28px; }
.admin-nav { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; padding-right: 4px; }
.admin-nav-toggle > summary { display: none; }
.admin-nav ul { list-style: none; padding: 0; margin: 0; border: 0; background: none; }
.admin-nav li a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; border: 0; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9375rem; }
.admin-nav li a:hover { background: var(--hover); color: var(--ink); }
.admin-nav a[aria-current=page] { background: var(--gold); color: #000; }
.nav-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-group { margin-top: 14px; }
.nav-h { margin: 0 0 4px; padding: 0 10px; font-size: .8125rem; font-weight: 700; color: var(--ink-3); }
.ov-group { margin-top: 24px; }
.ov-group h2 { font-size: 1.1rem; margin: 0 0 10px; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ov-card { display: grid; grid-template-columns: 22px 1fr; gap: 4px 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-solid); text-decoration: none; color: var(--ink); }
.ov-card:hover { border-color: var(--ink); }
.ov-card .nav-ic { width: 22px; height: 22px; grid-row: span 2; color: var(--ink-2); }
.ov-t { font-weight: 800; } .ov-n { font-weight: 700; color: var(--ink-3); }
.ov-b { color: var(--ink-3); font-size: .9rem; }
.ov-versions { margin-top: 20px; } .ov-versions > summary { cursor: pointer; font-weight: 700; }
.admin-main.wide { max-width: none; }

/* quick find */
dialog.qf { border: 0; padding: 0; background: transparent; width: min(640px, calc(100vw - 32px)); margin-top: 12vh; }
dialog.qf::backdrop { background: rgba(0,0,0,.45); }
.qf-box { background: var(--card-solid); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.qf-box input { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 16px 18px; font-size: 1.1rem; background: var(--card-solid); color: var(--ink); }
.qf-box input:focus { outline: none; box-shadow: none; }
#qf-list { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow: auto; }
#qf-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
#qf-list li[aria-selected="true"] { background: var(--gold); color: #000; }
#qf-list li[aria-selected="true"] .qf-s { color: #000; }
.qf-t { font-weight: 700; } .qf-s { color: var(--ink-3); font-size: .875rem; text-align: right; }
.qf-none { color: var(--ink-3); cursor: default; }
.qf-foot { margin: 0; padding: 8px 14px; border-top: 1px solid var(--hairline); color: var(--ink-3); font-size: .8125rem; }

@media (max-width: 1000px) {
  .admin { grid-template-columns: 1fr; gap: 12px; }
  .admin-nav { position: static; max-height: none; }
  .admin-nav-toggle > summary { display: block; cursor: pointer; font-weight: 700; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); }
  .acct-name, .qf-open span, .qf-open kbd { display: none; }
}
@media (max-width: 640px) {
  header.staff-top .bar { flex-wrap: wrap; }
  .staff-nav { order: 3; width: 100%; margin: 0; }
  .staff-nav ul { flex-wrap: nowrap; overflow-x: auto; }
  .acct-panel { width: min(320px, calc(100vw - 32px)); }
}

/* ---- Hand-off insights ---------------------------------------------------------------- */
.ins-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; margin: 18px 0 8px; background: var(--bg-2); border: 1px solid var(--hairline); border-radius: var(--r-sm); position: sticky; top: 0; z-index: 5; }
.ins-filters fieldset { border: 0; margin: 0; padding: 0; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--card-solid); }
.seg label, .fpill { position: relative; cursor: pointer; }
.seg input, .fpill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; white-space: nowrap; padding: 6px 13px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.seg label + label span { border-left: 1px solid var(--hairline); }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span, .fpill input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: -3px; }
.ins-filters .dates { display: inline-flex; align-items: center; gap: 6px; }
.ins-filters .dates[hidden] { display: none; }
.ins-filters input[type=date] { padding: 5px 8px; font: inherit; font-size: .9rem; border: 1px solid var(--border); border-radius: 8px; background: var(--card-solid); color: var(--ink); }
.pills { display: inline-flex; flex-wrap: wrap; gap: 4px; padding-left: 12px; border-left: 1px solid var(--border); }
.fpill span { display: block; white-space: nowrap; padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; font-size: .88rem; color: var(--ink-2); background: var(--card-solid); }
.fpill input:checked + span { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 700; }
.fpill:hover span { border-color: var(--ink-3); }
.fdrop { position: relative; }
.fdrop > summary { list-style: none; cursor: pointer; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card-solid); font-size: .9rem; font-weight: 600; }
.fdrop > summary::-webkit-details-marker { display: none; }
.fdrop > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.fdrop > summary b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; border-radius: 10px; background: var(--gold); color: #000; font-size: .78rem; }
.fdrop-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: 280px; padding: 10px; background: var(--card-solid); border: 1px solid var(--border); border-radius: var(--r-sm); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.fdrop-panel input[type=search] { width: 100%; box-sizing: border-box; padding: 6px 9px; font: inherit; font-size: .9rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--ink); }
.fdrop-list { max-height: 260px; overflow: auto; margin-top: 8px; display: grid; gap: 2px; }
.fdrop-list label { padding: 4px 6px; border-radius: 6px; font-size: .92rem; }
.fdrop-list label:hover { background: var(--hover); }
.fdrop-list label[hidden] { display: none; }
.ins-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 18px; color: var(--ink-3); font-size: .92rem; }
.fchip { display: inline-flex; gap: 6px; align-items: center; padding: 2px 6px 2px 10px; border-radius: 999px; background: var(--hover); color: var(--ink); text-decoration: none; font-weight: 600; }
.fchip span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 9px; }
.fchip:hover span { background: var(--ink); color: var(--bg); }
.tile .value.small { font-size: 1.3rem; line-height: 1.25; padding-top: .45rem; }
.tile .delta { margin: 4px 0 0; font-size: .85rem; color: var(--ink-3); }
.ins-panel { margin-bottom: 16px; }
.ins-panel h2 { font-size: 1.1rem; margin: 0 0 10px; }
.ins-chart-wrap { overflow-x: auto; }
.ins-chart { width: 100%; min-width: 560px; height: auto; display: block; }
.ins-chart .grid { stroke: var(--hairline); }
.ins-chart .axis { stroke: var(--line); }
.ins-chart .tick { fill: var(--ink-3); font-size: 11px; font-family: var(--sans); }
.ins-chart .bar path { fill: var(--series); }
.ins-chart .bar .hit { fill: transparent; }
.ins-chart .bar:hover .hit, .ins-chart .bar:focus .hit { fill: var(--hover); }
.ins-chart .bar:focus { outline: none; }
.ins-chart .bar:focus-visible .hit { stroke: var(--gold); stroke-width: 2; }
.ins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ins-grid .ins-panel { margin: 0; }
.ins-list { list-style: none; margin: 0 0 10px; padding: 0; }
.ins-list li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) 3.2em 3em; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--hairline); font-size: .94rem; }
.il-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.il-n, .il-p { text-align: right; font-variant-numeric: tabular-nums; }
.il-p { color: var(--ink-3); font-size: .86rem; }
.il-bar meter { width: 100%; height: 8px; display: block; -webkit-appearance: none; appearance: none; background: var(--hairline); border-radius: 4px; border: 0; }
.il-bar meter::-webkit-meter-bar { background: var(--hairline); border: 0; border-radius: 4px; height: 8px; }
.il-bar meter::-webkit-meter-optimum-value { background: var(--series); border-radius: 4px; }
.il-bar meter::-moz-meter-bar { background: var(--series); border-radius: 4px; }
@media (max-width: 760px) {
  .ins-filters { position: static; }
  .pills { padding-left: 0; border-left: 0; }
  .seg { max-width: 100%; overflow-x: auto; }
  .ins-list li { grid-template-columns: minmax(0, 1fr) 60px 2.6em 2.6em; gap: 8px; }
}
/* Text pages (privacy, accessibility) */
.sheet.prose { max-width: 720px; }
.sheet.prose h2 { font-size: 1.3125rem; margin: 1.4em 0 .4em; }
.pre { white-space: pre-line; }
.privacy-note { margin: 14px 0 10px; }
.foot-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 12px 0; }
.foot-links a { font-weight: 700; }
.locmap .map-tools { top: 8px; right: 8px; bottom: auto; }

/* ---- full-page empty states ----------------------------------------------------------------- */
.empty-page { max-width: 520px; margin: 10vh auto; text-align: center; }
.ep-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--card-solid); border: 1px solid var(--border); margin-bottom: 14px; }
.ep-ic svg { width: 28px; height: 28px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ep-code { margin: 0 0 4px; color: var(--ink-3); font-size: .9rem; letter-spacing: .1em; }
.empty-page h1 { font-size: 1.8rem; margin: 0 0 8px; }
.ep-body { color: var(--ink-3); margin: 0 auto 20px; max-width: 44ch; }
.ep-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Reporter journey: town first on the home page, place and photos folded into the report steps */
.pin-opt { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; margin: 0 0 20px; }
.pin-opt > summary { cursor: pointer; font-weight: 700; }
.pin-opt[open] > summary { margin-bottom: 12px; }
.files-sec { border: 0; padding: 0; margin: 24px 0 0; }
.files-sec > legend { padding: 0; }

/* Where step: one place, a small optional map */
.where-sheet .locmap { height: 260px; }
@media (min-width: 640px) { .where-sheet .locmap { height: 340px; } }
.where-sheet .locmap:focus-visible { outline: 3px solid var(--focus, #000); outline-offset: 2px; }
.where-sheet .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.where-sum { margin: 0 0 16px; }
.where-sum p { margin: 0 0 8px; }

/* Loading placeholder: a static, flat block of the right size where content fills in later. Never animated (motion belongs to the dashboard only). */
.skel { display: block; min-height: 160px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); color: var(--ink-3); padding: 16px; font-size: .95rem; }
.mapwrap:not(:has(svg)) { background: var(--bg-2); border-radius: var(--radius); }
.skel-s { min-height: 96px; } .skel-m { min-height: 160px; } .skel-l { min-height: 320px; }
.ep-crest { width: 96px; height: auto; margin: 0 auto 16px; display: block; }
.ep-ref { margin: 20px 0 4px; font-size: 1.05rem; } .ep-ref b { background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; letter-spacing: .08em; }
.ep-help { color: var(--ink-3); font-size: .9rem; margin: 0 auto; max-width: 44ch; }
/* Map levels, context layers, labels (pin-drop zoom), loading state, touch */
.map-status { position: absolute; left: 8px; bottom: 8px; margin: 0; padding: 2px 8px; font-size: .8125rem; background: var(--chip-bg, #fff); color: var(--ink); border: 1px solid var(--border); border-radius: var(--r-sm); z-index: 2; }
.map-status:empty { display: none; }
.map-loading svg { opacity: .45; }
.map-failed .map-status { position: static; margin: 8px; }
.map-tools .iconbtn { width: 44px; height: 44px; font-size: 1.25rem; }
svg .river { fill: none; stroke: var(--edge); stroke-width: .8; opacity: .3; vector-effect: non-scaling-stroke; pointer-events: none; }
svg .cwater { fill: var(--water); stroke: var(--edge); stroke-width: .6; stroke-opacity: .45; vector-effect: non-scaling-stroke; pointer-events: none; }
svg .criver { fill: none; stroke: var(--edge); stroke-width: 1.1; stroke-opacity: .4; vector-effect: non-scaling-stroke; pointer-events: none; }
svg .edge { fill: none; stroke: var(--edge); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
svg .target-casing { fill: none; stroke: #000; stroke-width: 6.5; vector-effect: non-scaling-stroke; pointer-events: none; }
svg .target { fill: none; stroke: var(--gold); stroke-width: 3.5; vector-effect: non-scaling-stroke; pointer-events: none; }
svg .road { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
svg .road.h { stroke-width: 2.6; opacity: .85; }
svg .road.s { stroke-width: 1.5; opacity: .75; stroke-dasharray: 7 3; }
svg .labels text { font: 600 12px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--label-halo); stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none; }
svg .labels text.focus { font-size: 14px; font-weight: 700; }
svg .labels text.pl-c, svg .labels text.pl-t { font-size: 13px; font-weight: 700; }
svg .labels text.pl-h, svg .labels text.pl-u { font-size: 11px; font-weight: 500; }
svg .labels .pdot { fill: var(--ink); stroke: var(--label-halo); stroke-width: 1.5px; }
.locmap svg { touch-action: pan-y; }
@media (prefers-reduced-motion: reduce) { .map-loading svg { transition: none; } }

/* Files list with a description next to each file (Details step) */
.camera { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.vh-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.camera label:has(+ .vh-input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.h-files { margin: 20px 0 4px; }
.files2 { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.file2 { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px; background: var(--card); }
.file2 .th { height: 96px; display: grid; place-items: center; background: var(--bg-2); font-weight: 700; color: var(--ink-3); border-radius: 6px; overflow: hidden; }
.file2 .th img { width: 100%; height: 100%; object-fit: cover; }
.file2 .meta { display: grid; gap: 4px; min-width: 0; }
.file2 .nm { margin: 0; word-break: break-all; }
.file2 label { font-weight: 600; }
.file2 input[type=text] { width: 100%; box-sizing: border-box; }
.file2 .linkbtn { justify-self: start; }
@media (max-width: 420px) { .file2 { grid-template-columns: 1fr; } .file2 .th { height: 120px; } }
/* Staff: inline playback */
.media-list video { display: block; width: 100%; max-width: 480px; max-height: 320px; background: #000; border-radius: 6px; margin-bottom: 4px; }
.media-list .fname, .media-list .fdesc { margin: 2px 0; }
.rejects { overflow-wrap: anywhere; }

.nw, .emerg a { white-space: nowrap; }
.rp-nav .btn { min-width: 0; }

/* Administration > Test a place */
.rt-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rt-step { border: 1px solid var(--line, #d4d4d4); border-radius: var(--r-sm); padding: 12px 16px; background: var(--card); }
.rt-step.skipped { opacity: .75; }
.rt-step h2 { font-size: 1.05rem; margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.rt-n { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: #000; color: #fff; font-size: .85rem; }
.rt-rules { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.rt-rule { border: 1px solid var(--line, #d4d4d4); border-radius: var(--r-sm); padding: 6px 10px; }
.rt-rule.matched { border-color: #2E7D32; border-width: 2px; }
.rt-rule summary { cursor: pointer; }
.rt-tree, .rt-tree ul { list-style: none; padding-left: 18px; margin: 4px 0; }
.rt-tag { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .85rem; font-weight: 650; border: 1px solid currentColor; }
.rt-tag.ok { color: var(--ok-ink, #1B5E20); background: var(--ok-bg, #E8F5E9); }
.rt-tag.no { color: #8A1C1C; background: #FDECEC; }
.rt-tag.mute { color: #444; background: #F0F0F0; }
.rt-form .locmap { min-height: 320px; }

.rbadge.r-custom { background: #FFF3BF; color: #3B2F00; }

/* Add information: two plain choices on one page (report page). */
.choice-cards { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.choice-cards legend { padding: 0; margin: 0 0 12px; }
.choice-cards legend h1 { margin: 0; }
.choice-card { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--border); border-radius: var(--r-sm); padding: 14px 16px; cursor: pointer; background: var(--chip-bg); }
.choice-card:has(input:checked) { border-color: var(--chip-on-border); background: var(--chip-on); }
.choice-card:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.choice-card input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #000; flex: none; }
.choice-card b { display: block; }
.choice-card .hint { display: block; margin-top: 4px; }
ul.supps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
ul.supps .meta { margin: 0 0 4px; }
ul.supps .body { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Hand-off card and leaving-site pages */
.ho-card .ho-title { font-size: 1.25rem; margin: 6px 0 8px; }
.ho-card p { margin: 8px 0; }
.ho-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ho-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.ho-addr { overflow-wrap: anywhere; font-size: .95rem; }
.ho-help { font-size: .95rem; }
.ho-card a:not(.btn) { color: inherit; font-weight: 700; }
.ho-911 { border-top: 1px solid currentColor; padding-top: 10px; }
.ho-page .ho-actions { margin-top: 16px; }

/* Collision centre finder and cards */
.cf { margin-top: 14px; padding-top: 12px; border-top: 1px solid currentColor; }
.cf-h { margin: 0 0 6px; }
.cf-row { display: grid; gap: 4px; }
.cf-lbl { font-weight: 700; }
.cf-town { width: 100%; }
.cf-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.cf-out:empty { display: none; }
.cf-card { background: var(--bg); color: var(--ink); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; margin: 10px 0; }
.cf-card p { margin: 6px 0; }
.cf-name { font-size: 1.1rem; margin: 4px 0; }
.cf-near { font-size: .9rem; margin: 0; }
.cf-msg { margin: 8px 0; }
.cf-all { margin: 8px 0 0; font-size: .95rem; }
.cf a:not(.btn) { color: inherit; font-weight: 700; }

/* Where step: the test-only note, the road question and the map's address offer. Flat surfaces, no motion. */
.geo-note { margin: 0 0 16px; font-size: .95rem; }
#roadAsk[hidden], #addr-fallback[hidden], .pin-addr[hidden] { display: none; }
#addr-fallback { margin: 8px 0 0; }
.pin-addr { margin: 8px 0 0; }
