@font-face { font-family: "Overpass"; src: url("fonts/overpass.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("fonts/atkinson-next.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  /* Layout idea: the page speaks in safety signs. Green panel = safe action, yellow panel = limits, red bar = emergency only.
     One light theme by choice: this is signage, and it has to print. */
  color-scheme: light;
  --paper: #ffffff;
  --wash: #eef5f0;
  --ink: #0f2a1d;
  --ink-soft: #3c5145;
  --rule: #b4c6ba;
  --safe: #00693e;
  --safe-deep: #004c2d;
  --safe-tint: #dcefe3;
  --caution: #ffd23f;
  --caution-tint: #fff4c9;
  --caution-ink: #6b4d00;
  --danger: #b3261e;
  --danger-tint: #fde9e6;
  --info: #0b56a4;
  --info-tint: #e2edfa;
  --display: "Overpass", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Atkinson Next", "Atkinson Hyperlegible", Verdana, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.1875rem; line-height: 1.55; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.05rem, 1.3rem + 3.6vw, 3.45rem); letter-spacing: -0.012em; }
h2 { font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.05rem); }
h3 { font-weight: 700; font-size: 1.28rem; }
h1:focus, h2:focus { outline: none; }
p { margin: 0; }
a { color: var(--safe-deep); text-decoration-thickness: 0.09em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.16em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.mark { flex: none; display: block; }
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; box-shadow: 0 0 0 6px var(--caution); border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.wrap { max-width: 70rem; margin-inline: auto; padding-inline: var(--gutter); }
.stack > * + * { margin-top: 1rem; }
.stack-l > * + * { margin-top: 1.75rem; }
.lead { font-size: 1.3rem; line-height: 1.5; max-width: 34em; }
.soft { color: var(--ink-soft); }
.measure { max-width: 36em; }

/* ---------- emergency bar, header, footer ---------- */
.now-bar { background: var(--danger); color: #fff; font-weight: 700; }
.now-bar .wrap { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; align-items: center; padding-block: 0.55rem; font-size: 1.05rem; }
.now-bar a { color: #fff; }
.now-bar span.rest { font-weight: 400; }

.top { border-bottom: 2px solid var(--ink); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem; padding-block: 0.8rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 1.28rem; line-height: 1.05; display: block; }
.brand small { display: block; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.2; }
.top nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.3rem; }
.top nav a { font-weight: 700; padding-block: 0.5rem; color: var(--ink); }
.top nav a[aria-current="page"] { text-decoration-thickness: 0.2em; text-decoration-color: var(--safe); }

.foot { margin-top: 4rem; background: var(--wash); border-top: 2px solid var(--ink); font-size: 1.05rem; }
.foot .wrap { padding-block: 1.6rem 2.2rem; display: grid; gap: 0.7rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; }

/* ---------- event banner ---------- */
.alert { background: var(--caution); border-bottom: 3px solid var(--ink); }
.alert .wrap { padding-block: 1rem; display: grid; gap: 0.6rem; }
.alert h2 { font-size: 1.45rem; display: flex; gap: 0.55rem; align-items: flex-start; }
.alert h2 .ico { margin-top: 0.1em; width: 1.3em; height: 1.3em; }
.alert .acts { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.3rem; padding: 0.55rem 1.3rem; border-radius: var(--r); border: 2px solid var(--ink); background: #fff; color: var(--ink); font-weight: 700; font-size: 1.12rem; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--wash); }
.btn-main { background: var(--safe); border-color: var(--safe); color: #fff; }
.btn-main:hover { background: var(--safe-deep); border-color: var(--safe-deep); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #8e1d17; border-color: #8e1d17; }
.btn-quiet { border-color: transparent; background: transparent; min-height: 2.75rem; padding-inline: 0.7rem; }
.btn-quiet:hover { background: var(--wash); }
.btn-link { border: 0; background: none; padding: 0; min-height: 0; font-weight: 700; color: var(--safe-deep); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; font-size: inherit; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.acts { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

/* ---------- home ---------- */
.hero { padding-block: clamp(1.6rem, 4vw, 3.2rem) clamp(1.8rem, 4vw, 3rem); }
.hero .wrap { display: grid; gap: 1.8rem; }
@media (min-width: 60rem) { .hero .wrap { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); align-items: start; gap: 3.2rem; } }
.hero-text { display: grid; gap: 1.1rem; }

/* The green sign: white keyline inset, the way a road sign is edged. */
.sign { background: var(--safe); color: #fff; border-radius: 16px; padding: 1.5rem 1.35rem 1.6rem; position: relative; display: grid; gap: 1rem; }
.sign::before { content: ""; position: absolute; inset: 7px; border: 2.5px solid #fff; border-radius: 10px; pointer-events: none; }
.sign h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2rem); }
.sign > * { position: relative; }
.sign .pick { display: grid; gap: 0.7rem; }
.sign .pick .btn { background: #fff; border-color: #fff; color: var(--ink); justify-content: flex-start; text-align: left; min-height: 4rem; font-size: 1.22rem; padding-inline: 1.1rem; }
.sign .pick .btn:hover { background: var(--caution-tint); }
.sign p { font-size: 1.08rem; }
.sign a { color: #fff; }

.band { padding-block: clamp(2rem, 5vw, 3.4rem); }
.band-wash { background: var(--wash); border-block: 1px solid var(--rule); }
.band h2 { margin-bottom: 1.2rem; }
.two { display: grid; gap: 2.2rem; }
@media (min-width: 56rem) { .two { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

.steps { list-style: none; counter-reset: step; display: grid; gap: 1.3rem; }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.6rem; } }
.steps li { counter-increment: step; border-top: 4px solid var(--safe); padding-top: 0.7rem; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 900; font-size: 2.4rem; line-height: 1; color: var(--safe); display: block; margin-bottom: 0.3rem; }
.steps h3 { margin-bottom: 0.3rem; }
.steps p { font-size: 1.08rem; }

.ticks { list-style: none; display: grid; gap: 0.7rem; }
.ticks li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; align-items: start; }
.ticks .ico { color: var(--safe); width: 1.5rem; height: 1.5rem; margin-top: 0.12em; }

.caution { background: var(--caution); border: 3px solid var(--ink); border-radius: 14px; padding: 1.3rem 1.3rem 1.45rem; }
.caution h2 { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.9rem; }
.caution h2 .ico { width: 1.25em; height: 1.25em; margin-top: 0.06em; }
.caution ul { list-style: none; display: grid; gap: 0.75rem; }
.caution li b { display: block; }

.plain-list { list-style: none; display: grid; gap: 0.9rem; }
.plain-list b { display: block; font-family: var(--display); font-size: 1.14rem; }

.places { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 50rem) { .places { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); } }
.place { border: 2px solid var(--ink); border-radius: 12px; padding: 1rem 1.1rem 1.1rem; background: #fff; display: grid; gap: 0.45rem; align-content: start; }
.place h3 { font-size: 1.2rem; }
.place .facts { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; font-size: 1rem; }
.place .facts li { background: var(--wash); border-radius: 6px; padding: 0.1rem 0.5rem; }
/* On a calm day the pill reads "Opens when an evacuation is ordered", wider than a phone: it may wrap, and a card may
   never push its column past the screen. */
.two > *, .places > * { min-width: 0; }
.place .pill { white-space: normal; border-radius: 14px; }

.phone-box { border-left: 6px solid var(--safe); padding: 0.2rem 0 0.2rem 1rem; }
.phone-box strong { font-family: var(--display); font-size: 1.5rem; display: block; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.12rem 0.6rem 0.12rem 0.45rem; border-radius: 99px; font-weight: 700; font-size: 0.95em; line-height: 1.35; border: 1.5px solid var(--ink-soft); background: #fff; color: var(--ink); white-space: nowrap; }
.pill .ico { width: 1em; height: 1em; }
.pill { justify-self: start; }
.pill.safe { background: var(--safe-tint); border-color: var(--safe); color: var(--safe-deep); }
.pill.warn { background: var(--caution-tint); border-color: var(--caution-ink); color: var(--caution-ink); }
.pill.info { background: var(--info-tint); border-color: var(--info); color: var(--info); }
.pill.bad { background: var(--danger-tint); border-color: var(--danger); color: var(--danger); }

/* ---------- forms ---------- */
.form-page { padding-block: 1.6rem 3rem; }
.form-page .wrap { max-width: 44rem; }
.progress { display: grid; gap: 0.45rem; margin-bottom: 1.4rem; }
.progress p { font-weight: 700; color: var(--ink-soft); font-size: 1.05rem; }
.progress .bar { height: 10px; border-radius: 5px; background: var(--wash); border: 1px solid var(--rule); overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--safe); }
form.q { display: grid; gap: 1.6rem; margin-top: 1.3rem; }
.field { display: grid; gap: 0.3rem; }
.field label, .choice legend { font-weight: 700; font-size: 1.16rem; padding: 0; }
.choice { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 0.35rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.hint { color: var(--ink-soft); font-size: 1.05rem; }
.err { color: var(--danger); font-weight: 700; font-size: 1.05rem; display: flex; gap: 0.35rem; align-items: flex-start; }
.err .ico { margin-top: 0.2em; }
input[type="text"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 3.3rem; padding: 0.5rem 0.75rem; border: 2px solid var(--ink); border-radius: 8px; background: #fff; font-size: 1.16rem; }
textarea { min-height: 6rem; resize: vertical; line-height: 1.45; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); border-width: 3px; }
.rows { display: grid; gap: 0.55rem; margin-top: 0.25rem; }
.row { display: grid; grid-template-columns: 1.9rem 1fr; gap: 0.75rem; align-items: start; border: 2px solid var(--ink); border-radius: var(--r); padding: 0.8rem 0.95rem; cursor: pointer; background: #fff; }
.row:hover { background: var(--wash); }
.row:has(input:checked) { background: var(--safe-tint); border-color: var(--safe); box-shadow: inset 0 0 0 1.5px var(--safe); }
.row input { width: 1.75rem; height: 1.75rem; margin: 0.05rem 0 0; accent-color: var(--safe); }
.row-text { display: grid; gap: 0.1rem; }
.row-label { font-weight: 700; font-size: 1.14rem; line-height: 1.35; }
.row-hint { color: var(--ink-soft); font-size: 1.02rem; }
.inline { display: grid; gap: 1.2rem; }
@media (min-width: 34rem) { .inline { grid-template-columns: 1fr 1fr; } .inline.narrow-second { grid-template-columns: 2fr 1fr; } }
.nested { border-left: 6px solid var(--safe-tint); padding-left: 1rem; display: grid; gap: 1.4rem; }
.summary { border: 3px solid var(--danger); border-radius: var(--r); padding: 1rem 1.1rem; background: var(--danger-tint); }
.summary h2 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.summary ul { padding-left: 1.2rem; }
.summary a { color: var(--danger); font-weight: 700; }
.note { background: var(--wash); border-left: 6px solid var(--safe); padding: 0.8rem 1rem; border-radius: 0 8px 8px 0; }
.note.warn { background: var(--caution-tint); border-left-color: var(--caution-ink); }

.review { display: grid; gap: 1.3rem; }
.review section { border: 2px solid var(--ink); border-radius: 12px; padding: 0.9rem 1.05rem 1rem; }
.review header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.5rem; }
.review dl { margin: 0; display: grid; gap: 0.5rem; }
.review dt { font-size: 1rem; color: var(--ink-soft); }
.review dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.code-box { border: 3px dashed var(--ink); border-radius: 12px; padding: 1rem 1.1rem; background: var(--caution-tint); display: grid; gap: 0.5rem; }
.code-box strong { font-family: var(--display); font-weight: 900; font-size: clamp(1.55rem, 6.4vw, 2.3rem); letter-spacing: 0.03em; overflow-wrap: anywhere; }

.fridge { border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; max-width: 30rem; background: #fff; }
.fridge header { background: var(--safe); color: #fff; padding: 0.8rem 1rem; display: flex; gap: 0.7rem; align-items: center; }
.fridge header b { font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.1; }
.fridge .in { padding: 0.9rem 1rem 1rem; display: grid; gap: 0.55rem; }
.fridge .big { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; }
.fridge .red { background: var(--danger); color: #fff; padding: 0.5rem 1rem; font-weight: 700; }
.fridge ul { padding-left: 1.2rem; }

/* ---------- toast, dialog ---------- */
.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 2rem); background: var(--ink); color: #fff; padding: 0.75rem 1.15rem; border-radius: 10px; font-weight: 700; font-size: 1.02rem; max-width: min(92vw, 34rem); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 60; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.dlg { border: 3px solid var(--ink); border-radius: 14px; padding: 0; width: min(94vw, 36rem); max-height: min(92vh, 60rem); color: var(--ink); background: #fff; }
.dlg-wide { width: min(96vw, 54rem); }
.dlg[open] { display: flex; flex-direction: column; }
.dlg::backdrop { background: rgba(15, 42, 29, 0.55); }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 0.9rem 0.6rem 0.6rem 1.15rem; border-bottom: 2px solid var(--ink); }
.dlg-head h2 { font-size: 1.4rem; padding-top: 0.3rem; }
.dlg-body { padding: 1rem 1.15rem; overflow: auto; display: grid; gap: 1.1rem; }
.dlg-foot { padding: 0.8rem 1.15rem 1rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: flex-end; }

/* ---------- preview bar (only in the preview build) ---------- */
.pv { background: #1c1c1c; color: #fff; font-size: 0.95rem; position: sticky; top: 0; z-index: 50; border-bottom: 7px solid transparent; border-image: repeating-linear-gradient(135deg, var(--caution) 0 12px, #1c1c1c 12px 24px) 7; }
.pv .wrap { max-width: none; display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; align-items: center; padding-block: 0.45rem; }
.pv b { font-family: var(--display); font-weight: 800; margin-right: auto; }
.pv .seg { display: inline-flex; border: 1.5px solid #fff; border-radius: 8px; overflow: hidden; }
.pv .seg button { background: transparent; color: #fff; border: 0; padding: 0.35rem 0.7rem; font-weight: 700; cursor: pointer; min-height: 2.3rem; }
.pv .seg button + button { border-left: 1.5px solid #fff; }
.pv .seg button[aria-pressed="true"] { background: #fff; color: #1c1c1c; }
.pv .plainbtn { background: transparent; color: #fff; border: 0; text-decoration: underline; cursor: pointer; font-weight: 700; padding: 0.35rem 0.2rem; }
.pv :focus-visible { outline-color: #fff; }

/* The public concept page (Maniot labs, src/concept/): a thin yellow line says it is a demo and whose, and the bar
   under it opens "About this concept". One of the two always stays in view, the bar on a wide screen and the line
   on a phone, where the bar scrolls away: nobody should read this page for long without seeing that it is a demo. */
.pv a { color: #fff; }
.pv .about-btn { background: var(--caution); color: #1c1c1c; border: 0; border-radius: 8px; font-weight: 800; padding: 0.35rem 0.8rem; min-height: 2.3rem; cursor: pointer; }
.pv .about-btn:hover { background: #ffe07a; }
.pv-tag { margin: 0; background: var(--caution); color: #1c1c1c; font-size: 0.95rem; line-height: 1.25; text-align: center; padding: 0.32rem var(--gutter); }
.pv-tag a { color: inherit; font-weight: 700; }
dialog.about { border: 3px solid var(--ink); border-radius: 14px; padding: 0; width: min(40rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); color: var(--ink); background: var(--paper); }
dialog.about::backdrop { background: rgba(15, 42, 29, 0.62); }
dialog.about .in { padding: 1.4rem 1.5rem 1.5rem; display: grid; gap: 0.85rem; }
dialog.about h2 { font-size: 1.7rem; }
dialog.about p, dialog.about ul { margin: 0; }
dialog.about ul { padding-left: 1.2rem; display: grid; gap: 0.3rem; }
dialog.about .acts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.3rem; }

/* =====================  coordinator console  ===================== */
.console { font-size: 1.03rem; line-height: 1.45; background: var(--wash); min-height: 100vh; }
.console h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.console h2 { font-size: 1.28rem; }
.console h3 { font-size: 1.08rem; }
.console .btn { min-height: 2.75rem; font-size: 1rem; padding: 0.4rem 0.9rem; border-radius: 8px; }
.console .btn-s { min-height: 2.4rem; padding: 0.25rem 0.7rem; font-size: 0.97rem; }
.console input[type="text"], .console input[type="tel"], .console input[type="number"], .console input[type="date"], .console select, .console textarea { min-height: 2.75rem; font-size: 1rem; padding: 0.35rem 0.6rem; }
.console .field label, .console .choice legend { font-size: 1rem; }
.console .hint, .console .err { font-size: 0.95rem; }
.console .row { padding: 0.5rem 0.7rem; grid-template-columns: 1.5rem 1fr; gap: 0.55rem; }
.console .row input { width: 1.35rem; height: 1.35rem; }
.console .row-label { font-size: 1rem; }
.console .row-hint { font-size: 0.93rem; }

.c-top { background: var(--ink); color: #fff; }
.c-top .in { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.2rem; padding: 0.6rem var(--gutter); }
.c-top .brand { color: #fff; }
.c-top .brand b { font-size: 1.1rem; }
.c-top .brand small { color: #cfe0d5; font-size: 0.88rem; }
.c-top .who { font-size: 0.95rem; color: #cfe0d5; }
.c-top a { color: #fff; }
.c-top :focus-visible { outline-color: #fff; }

.c-event { background: var(--caution); border-bottom: 3px solid var(--ink); }
.c-event.calm { background: #fff; border-bottom: 1px solid var(--rule); }
.c-event .in { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.2rem; padding: 0.65rem var(--gutter); }
.c-event b { font-family: var(--display); font-weight: 800; font-size: 1.18rem; }
.c-event .grow { margin-right: auto; display: grid; }

.c-tabs { background: #fff; border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 20; }
.pv ~ .console .c-tabs, .pv ~ * .c-tabs { top: var(--pv-h, 0px); }
.c-tabs .in { position: relative; display: flex; gap: 0.2rem; overflow-x: auto; padding: 0 calc(var(--gutter) - 0.6rem); scrollbar-width: thin; }
.c-tabs button { background: none; border: 0; border-bottom: 5px solid transparent; padding: 0.75rem 0.75rem 0.55rem; font-weight: 700; cursor: pointer; white-space: nowrap; color: var(--ink-soft); display: inline-flex; gap: 0.4rem; align-items: center; }
.c-tabs button[aria-current="page"] { color: var(--ink); border-bottom-color: var(--safe); }
.c-tabs .n { background: var(--ink); color: #fff; border-radius: 99px; font-size: 0.85rem; padding: 0 0.5rem; line-height: 1.5; }
.c-tabs .n.hot { background: var(--danger); }

.c-main { padding: 1.3rem var(--gutter) 4rem; display: grid; gap: 1.4rem; max-width: 96rem; margin-inline: auto; }
.c-main > *, .grid2 > * { min-width: 0; }
.c-head { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; align-items: center; justify-content: space-between; }
.panel { background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; padding: 1rem 1.1rem 1.15rem; display: grid; gap: 0.8rem; align-content: start; min-width: 0; }
.panel > h2 { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; gap: 1.2rem; }
@media (min-width: 62rem) { .grid2 { grid-template-columns: 1.15fr 0.85fr; align-items: start; } }

.figures { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.7rem; }
.figures li { background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; padding: 0.7rem 0.9rem 0.75rem; border-left-width: 9px; }
.figures li.warn { border-left-color: var(--caution-ink); } .figures li.info { border-left-color: var(--info); }
.figures li.safe { border-left-color: var(--safe); } .figures li.bad { border-left-color: var(--danger); } .figures li.plain { border-left-color: var(--ink-soft); }
.figures b { font-family: var(--display); font-weight: 900; font-size: 2.1rem; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.figures span { font-weight: 700; }

.queue { list-style: none; display: grid; gap: 0.7rem; }
.queue > li { border: 1.5px solid var(--ink); border-left: 9px solid var(--danger); border-radius: 10px; padding: 0.7rem 0.85rem; display: grid; gap: 0.4rem; background: #fff; }
.queue > li.soft-edge { border-left-color: var(--caution-ink); }
.queue .acts { gap: 0.5rem; }
.quote { font-style: normal; border-left: 3px solid var(--rule); padding-left: 0.6rem; color: var(--ink-soft); }

table.t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.t th, .t td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.t th { font-size: 0.93rem; color: var(--ink-soft); font-weight: 700; white-space: nowrap; }
.t td.num, .t th.num { text-align: right; }
.t tbody tr:hover { background: var(--wash); }
.scroll-x { overflow-x: auto; position: relative; }
.meter { height: 12px; background: var(--wash); border: 1px solid var(--ink-soft); border-radius: 6px; overflow: hidden; min-width: 6rem; }
.meter i { display: block; height: 100%; background: var(--safe); }
.meter.tight i { background: var(--caution-ink); } .meter.full i { background: var(--danger); }

.filters { display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem; align-items: end; }
.filters .field { min-width: 9rem; }
.filters .grow { flex: 1 1 14rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips button { border: 1.5px solid var(--ink); background: #fff; border-radius: 99px; padding: 0.3rem 0.85rem; font-weight: 700; cursor: pointer; min-height: 2.4rem; }
.chips button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.tier { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 0.92rem; border-radius: 6px; padding: 0.12rem 0.5rem 0.02rem; border: 2px solid var(--ink); white-space: nowrap; }
.tier.t1 { background: var(--ink); color: #fff; }
.tier.t2 { background: var(--caution); }
.tier.t3 { background: #fff; }
.tier.t4 { background: #fff; border-style: dashed; color: var(--ink-soft); border-color: var(--ink-soft); }

.calls { list-style: none; display: grid; gap: 0.75rem; }
.call { background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; padding: 0.8rem 0.95rem 0.9rem; display: grid; gap: 0.5rem; }
.call .line1 { display: flex; flex-wrap: wrap; gap: 0.35rem 0.7rem; align-items: center; }
.call .name { font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.call .where { color: var(--ink-soft); }
.call .tel { font-weight: 700; font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.call .needs { display: flex; flex-wrap: wrap; gap: 0.3rem 0.4rem; list-style: none; }
.call .needs li, .needs-inline li { background: var(--wash); border-radius: 6px; padding: 0.05rem 0.5rem; font-size: 0.97rem; }
.needs-inline { display: flex; flex-wrap: wrap; gap: 0.3rem 0.4rem; list-style: none; }
.call .acts { gap: 0.45rem; }

.board { display: grid; gap: 1rem; }
@media (min-width: 72rem) { .board { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 0.8rem; } }
.col { background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; padding: 0.7rem; display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.col > h2 { font-size: 1.05rem; display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; border-bottom: 4px solid var(--ink-soft); padding-bottom: 0.4rem; }
.col.warn > h2 { border-bottom-color: var(--caution-ink); } .col.info > h2 { border-bottom-color: var(--info); } .col.safe > h2 { border-bottom-color: var(--safe); }
.col .count { font-variant-numeric: tabular-nums; }
.col ul { list-style: none; display: grid; gap: 0.6rem; }
.kcard { border: 1.5px solid var(--ink-soft); border-radius: 10px; padding: 0.6rem 0.65rem 0.7rem; display: grid; gap: 0.35rem; background: #fff; }
.kcard .name { font-family: var(--display); font-weight: 800; font-size: 1.08rem; }
.kcard small { color: var(--ink-soft); font-size: 0.93rem; }
.kcard .acts { gap: 0.25rem 0.7rem; margin-top: 0.2rem; }
.console .kcard .btn-quiet { min-height: 2.2rem; padding: 0.1rem 0.15rem; text-decoration: underline; text-underline-offset: 0.18em; font-size: 0.95rem; }
.empty { color: var(--ink-soft); font-size: 0.97rem; padding: 0.3rem 0.1rem; }

.detail { display: grid; gap: 1.1rem; }
.detail section { display: grid; gap: 0.4rem; }
.detail h3 { border-bottom: 2px solid var(--ink); padding-bottom: 0.2rem; }
.detail dl { margin: 0; display: grid; grid-template-columns: minmax(8rem, 0.5fr) 1fr; gap: 0.3rem 0.8rem; }
.detail dt { color: var(--ink-soft); }
.detail dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.history { list-style: none; display: grid; gap: 0.35rem; font-size: 0.97rem; }
.history time { color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-right: 0.5rem; }

.run { list-style: none; display: grid; gap: 1rem; counter-reset: stop; }
.run > li { counter-increment: stop; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 0.9rem 1rem 1rem; display: grid; gap: 0.55rem; }
.run .stop { font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.run .stop::before { content: "Stop " counter(stop) ": "; color: var(--ink-soft); }
.run .addr { font-size: 1.15rem; font-weight: 700; }
.run .btn { min-height: 3.3rem; font-size: 1.1rem; }

/* ---------- paper ---------- */
.sheet { background: #fff; color: #000; padding: 1.2rem; border: 1.5px solid var(--ink); border-radius: 6px; font-size: 0.95rem; }
.sheet h1 { font-size: 1.5rem; } .sheet h2 { font-size: 1.15rem; margin-top: 1.1rem; }
.sheet table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.sheet th, .sheet td { border: 1px solid #000; padding: 0.3rem 0.4rem; text-align: left; vertical-align: top; }
.sheet .box { display: inline-block; width: 1rem; height: 1rem; border: 1.5px solid #000; vertical-align: -0.15rem; }
@media print {
  .pv, .pv-tag, dialog.about, .now-bar, .top, .foot, .c-top, .c-tabs, .c-event, .no-print, .toast { display: none !important; }
  body, .console { background: #fff; font-size: 11pt; }
  .sheet { border: 0; padding: 0; }
  .c-main { padding: 0; }
  .fridge { break-inside: avoid; }
}

.skip { position: absolute; left: 0.5rem; top: -4rem; background: var(--caution); color: var(--ink); padding: 0.6rem 0.9rem; font-weight: 700; border: 2px solid var(--ink); border-radius: 8px; z-index: 100; }
.skip:focus { top: 0.5rem; }

@media (max-width: 40rem) {
  .pv { position: static; }
  .pv-tag { position: sticky; top: 0; z-index: 51; font-size: 0.9rem; border-bottom: 2px solid #1c1c1c; }
  .pv-tag .more { display: none; }
  .pv .more { display: none; }
  .pv .wrap { gap: 0.4rem 0.6rem; }
  .pv .seg button { padding-inline: 0.55rem; }
  .top nav { gap: 0.1rem 1.1rem; }
}

.nojs { padding: 1rem var(--gutter); font-size: 1.2rem; }
