﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* ===================== Responder HQ brand ===================== */

/* Self-hosted condensed brand face. Bahnschrift only exists on Windows (and 'Arial
   Narrow' only on some desktops), so without this the brand typography silently
   degrades to a generic sans on iOS/Android — including the Capacitor app. */
@font-face {
    font-family: 'Barlow Semi Condensed';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/barlow-semicondensed-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Barlow Semi Condensed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/barlow-semicondensed-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Barlow Semi Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/barlow-semicondensed-700.woff2') format('woff2');
}

:root {
    --ffhq-ink: #20242A;
    --ffhq-muted: #67635A;
    --ffhq-paper: #F4F3EE;
    --ffhq-line: #E3E1D8;
    --ffhq-navy: #274060;
    --ffhq-navy-deep: #1B2C42;
    --ffhq-red: #B7202A;
    --ffhq-ok: #2F7D51;
    --ffhq-crit: #C23B2B;
    /* Status palette (chips, alerts, severity rails) */
    --ffhq-ok-bg: #E7F2EB;
    --ffhq-warn: #B97A0F;
    --ffhq-warn-bg: #F9EFDC;
    --ffhq-crit-bg: #F9E7E4;
    --ffhq-info: #3B6EA5;
    --ffhq-info-bg: #E8F0F9;
    /* TEXT on the status backgrounds above. The base colours (--ffhq-ok, --ffhq-warn, ...) are
       right for rails, dots, borders and filled buttons, but as small text on their own -bg they
       measure 4.4 / 3.1 / 4.45 / 4.6:1 — under the 4.5:1 pass mark at chip sizes. These measure
       5.7 / 5.9 / 6.2 / 8.0:1 on the matching -bg (and better on white). Use them for chips,
       alerts, counters and any status WORDS; keep the base colours for non-text marks. */
    --ffhq-ok-text: #1C6B3A;
    --ffhq-warn-text: #7A5408;
    --ffhq-crit-text: #A3231F;
    --ffhq-info-text: #1B4A75;
    /* Quiet text that must still be read: placeholders, chevrons, hints, code labels. Replaces
       #A6A296 (2.6:1) and #8A857A (3.6:1) for TEXT — 5.3:1 on white, 4.8:1 on paper. The old
       values are fine for borders and dividers, never for words. */
    --ffhq-hint: #6F6B61;
    /* A disabled primary still has to be legible: white on this is 5.2:1 (the old #9AA7B8 was 2.4). */
    --ffhq-cta-disabled: #5F6E82;
    /* Condensed brand face — one var so every module renders the same on every OS. */
    --ffhq-cond: 'Barlow Semi Condensed', Bahnschrift, 'Franklin Gothic Medium', 'Arial Narrow', sans-serif;
}

/* ---- Auth screens (login / 2FA / register / join) ---- */
.auth-stage {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 20px;
    background: radial-gradient(1100px 500px at 50% -10%, #24385A 0%, transparent 60%), var(--ffhq-navy-deep);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.auth-panel { width: 100%; max-width: 430px; }
.auth-card-wide + .auth-under, .auth-panel:has(.auth-card-wide) { max-width: 560px; }
.auth-panel:has(.auth-card-legal) { max-width: 860px; }

/* Legal documents (Terms, Privacy, DPA) — long-form readable content in the auth card. */
.auth-card-legal { padding: 40px 46px 36px; text-align: left; }
.legal-title { font-family: var(--ffhq-cond); font-size: 26px; font-weight: 600; letter-spacing: .02em; color: var(--ffhq-ink); margin: 6px 0 4px; }
.legal-meta { color: var(--ffhq-muted); font-size: 12.5px; margin: 0 0 6px; }
.legal-meta span { margin-right: 14px; }
.legal-lead { color: var(--ffhq-ink); font-size: 14px; line-height: 1.65; margin: 14px 0 8px; }
.legal-body { color: var(--ffhq-ink); font-size: 14px; line-height: 1.7; }
.legal-body h2 { font-family: var(--ffhq-cond); font-size: 17px; font-weight: 600; letter-spacing: .02em; color: var(--ffhq-navy); margin: 28px 0 8px; padding-top: 14px; border-top: 1px solid var(--ffhq-line); }
.legal-body h3 { font-size: 14.5px; font-weight: 700; color: var(--ffhq-ink); margin: 16px 0 6px; }
.legal-body p { margin: 0 0 10px; }
.legal-body ul { margin: 0 0 12px; padding-left: 22px; }
.legal-body li { margin: 0 0 6px; }
.legal-body a { color: var(--ffhq-navy); font-weight: 600; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 13px; }
.legal-body th, .legal-body td { border: 1px solid var(--ffhq-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-body th { background: var(--ffhq-wash, #F4F2EC); font-weight: 600; }
.legal-back { display: block; text-align: center; margin-top: 26px; font-size: 13px; }

.auth-card {
    background: #fff;
    border-radius: 16px;
    border-top: 5px solid var(--ffhq-red);
    box-shadow: 0 24px 60px rgba(10, 16, 26, .45);
    padding: 34px 36px 30px;
    color: var(--ffhq-ink);
}

.auth-logo { display: block; width: 100%; max-width: 340px; margin: 0 auto 6px; }
.auth-welcome { text-align: center; color: var(--ffhq-muted); font-size: 14px; margin: 2px 0 22px; font-weight: 600; }
.auth-note { color: var(--ffhq-muted); font-size: 13.5px; margin-bottom: 18px; }

.auth-label {
    display: block;
    font-family: var(--ffhq-cond);
    font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ffhq-muted); margin: 14px 0 6px;
}

.auth-input {
    width: 100%; border: 1.5px solid var(--ffhq-line); border-radius: 10px;
    padding: 11px 14px; font-size: 14.5px; font-family: inherit;
    color: var(--ffhq-ink); background: #FDFDFB;
}
.auth-input:focus { outline: 2px solid var(--ffhq-navy); border-color: var(--ffhq-navy); }
.auth-code { font-size: 20px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }

.auth-row { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 18px; font-size: 13px; }
.auth-row a { color: var(--ffhq-navy); text-decoration: none; font-weight: 600; }
.auth-row a:hover { text-decoration: underline; }
.auth-check { display: flex; align-items: center; gap: 7px; margin: 0; }
.auth-check input { width: 15px; height: 15px; accent-color: var(--ffhq-navy); }

.auth-btn {
    display: block; width: 100%; background: var(--ffhq-navy); color: #fff;
    border: none; border-radius: 10px; padding: 13px;
    font-family: var(--ffhq-cond);
    font-size: 15px; font-weight: 600; letter-spacing: .06em; cursor: pointer;
}
.auth-btn:hover { background: #1E3450; }
.auth-btn:focus-visible { outline: 2px solid var(--ffhq-red); outline-offset: 2px; }

.auth-divide {
    display: flex; align-items: center; gap: 12px; color: var(--ffhq-hint);
    font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
    margin: 22px 0 12px; font-family: var(--ffhq-cond);
}
.auth-divide::before, .auth-divide::after { content: ""; flex: 1; height: 1px; background: var(--ffhq-line); }

.auth-invite { text-align: center; font-size: 13px; color: var(--ffhq-muted); }
.auth-invite a { color: var(--ffhq-red); font-weight: 600; text-decoration: none; }
.auth-invite a:hover { text-decoration: underline; }

.auth-under { color: #7E8BA0; text-align: center; font-size: 12px; margin-top: 18px; line-height: 1.7; }
.auth-under a { color: #9AA6B8; text-decoration: none; }
.auth-under a:hover { color: #C7D0DE; text-decoration: underline; }
.auth-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.auth-mfahead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.auth-mfahead img { width: 44px; height: 44px; }
.auth-mfahead .t { font-family: var(--ffhq-cond); font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.auth-mfahead .s { font-size: 12.5px; color: var(--ffhq-muted); }

/* ---- App shell ---- */
.ffhq-shell { display: flex; min-height: 100vh; background: var(--ffhq-paper); font-family: 'Segoe UI', system-ui, sans-serif; color: var(--ffhq-ink); }

/* PINNED. The sidebar used to be an ordinary flex column as tall as the page, so on a long list it
   scrolled away with the content and navigation was a scroll back to the top. Sticky at the
   viewport's height keeps it in place; align-self stops the shell's stretch from making it
   page-tall again, which would leave sticky nothing to do. Only .ffhq-nav scrolls, and only when the
   window is too short for every link — the logo and the member footer never move. dvh after vh for
   the browsers whose vh ignores their own toolbars. The phone block turns this same element into the
   "More" screen; the groups, avatar and the rest of the 2026-11 navigation rules are in the UX11
   navigation section at the end of this file. */
.ffhq-sidebar {
    width: 216px; background: var(--ffhq-navy-deep); color: #C3CAD4; flex-shrink: 0; display: flex; flex-direction: column;
    position: sticky; top: 0; align-self: flex-start; height: 100vh; height: 100dvh;
}
.ffhq-logo { padding: 12px 14px 10px; border-bottom: 1px solid #2B3E58; flex: none; }
.ffhq-logo img { width: 134px; max-width: 100%; border-radius: 8px; background: #fff; display: block; padding: 4px; }
/* #9FB0C6 on the navy is 6.4:1; the old #7E8BA0 was 4.1, under the pass mark at this size. */
.ffhq-dept { font-size: 12px; line-height: 1.2; color: #9FB0C6; margin-top: 4px; }

/* min-height: 0 lets the list shrink below its content so overflow-y can take over; without it a
   flex child refuses to be shorter than its links and pushes the footer off the bottom instead. */
.ffhq-nav { padding: 4px 0; flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
/* 30px rows, down from 39: with the group headings added, nineteen links at the old height ran to
   about 870px and a chief's Billing, Support and Feature requests sat below the fold of a 900px
   laptop. At 30px everything a chief has fits in an 880px-tall window with nothing to scroll. */
.ffhq-nav a {
    display: flex; align-items: center; gap: 11px; min-height: 30px; padding: 0 15px; color: #C3CAD4; text-decoration: none;
    font-family: var(--ffhq-cond); font-size: 14px; letter-spacing: .04em;
    border-left: 3px solid transparent;
    transition: background-color .12s ease, color .12s ease;
}
.ffhq-nav a svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .7; }
.ffhq-nav a:hover { background: #22344E; color: #fff; }
.ffhq-nav a.active { background: #22344E; color: #fff; border-left-color: var(--ffhq-red); }
.ffhq-nav a:hover svg, .ffhq-nav a.active svg { opacity: 1; }
.ffhq-nav a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* The member, in a footer under the links (it used to sit above them, between the logo and the
   list). A two-column grid: the avatar spans both rows, the name is on the first and Account ·
   Sign out on the second. .ffhq-userid is display: contents so its avatar and name are grid items
   here; on a phone it becomes a real box of its own at the top of the More screen. */
.ffhq-userchip {
    flex: none; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; align-items: center;
    padding: 10px 14px; border-top: 1px solid #2B3E58; background: #16243A; font-size: 12px; line-height: 1.3; color: #C3CAD4;
}
.ffhq-userchip b { display: block; color: #fff; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ffhq-userlinks { grid-column: 2; display: flex; gap: 6px; align-items: center; }
.ffhq-userlinks a { color: #C3CAD4; }
.ffhq-userlinks a:hover, .ffhq-linkbtn:hover { color: #fff; }
.ffhq-linkbtn { background: none; border: none; padding: 0; color: #C3CAD4; cursor: pointer; font-size: 12px; text-decoration: underline; }
.ffhq-userlinks a:focus-visible, .ffhq-linkbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 3px; }

/* min-width: 0 IS THE DESKTOP SIDEWAYS-SCROLL FIX. A flex item's min-width defaults to auto, i.e.
   its widest unbreakable content — and the dashboard and incident tables are white-space: nowrap,
   so one long incident type made the table's min-content the column's floor and pushed this box out
   to its 1400px cap. On any window under ~1616px the page then scrolled sideways (359px over at
   1280), with "+ New incident" and the fourth KPI tile off-screen. The phone block had carried this
   line all along; desktop never did. With it, wide tables scroll inside their .ffhq-tblwrap (or
   truncate — see "Long cells" below) instead of widening the page. */
.ffhq-main { flex: 1; min-width: 0; padding: 26px 32px 60px; max-width: 1400px; margin-inline: auto; }

.ffhq-pager { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 14px; }
.ffhq-pager-info { font-size: 12.5px; color: var(--ffhq-muted); }

.ffhq-seclinks { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.ffhq-seclinks a { color: var(--ffhq-navy); font-size: 14px; text-decoration: none; }
.ffhq-seclinks a:hover { text-decoration: underline; }

.ffhq-h1 { font-family: var(--ffhq-cond); font-size: 24px; font-weight: 600; letter-spacing: .02em; }
.ffhq-sub { color: var(--ffhq-muted); font-size: 13px; margin: 3px 0 22px; }
.ffhq-muted { color: var(--ffhq-muted); }

.ffhq-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.ffhq-kpi { background: #fff; border: 1px solid var(--ffhq-line); border-radius: 10px; padding: 14px 18px; border-top: 4px solid var(--ffhq-navy); }
.ffhq-kpi .n { font-family: var(--ffhq-cond); font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ffhq-kpi .l { font-size: 12px; color: var(--ffhq-muted); text-transform: uppercase; letter-spacing: .07em; font-family: var(--ffhq-cond); }
.ffhq-kpi .d { font-size: 12px; color: var(--ffhq-muted); margin-top: 2px; }

.ffhq-card { background: #fff; border: 1px solid var(--ffhq-line); border-radius: 10px; }
.ffhq-card h2 {
    font-family: var(--ffhq-cond); font-size: 15px; font-weight: 600;
    letter-spacing: .05em; padding: 14px 18px; border-bottom: 1px solid var(--ffhq-line); margin: 0;
}
.ffhq-card-body { padding: 16px 18px; }
/* Card heading that carries a real action rather than a secondary link (see .ffhq-card h2 .ffhq-linklike
   below, which floats). Flex so a full button sits centered against the title instead of hanging out of
   the heading's line box, and less vertical padding so the button does not deepen the header. */
.ffhq-card h2.ffhq-h2-action {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding-top: 9px; padding-bottom: 9px;
}

.auth-panel { color: #E6E9EE; }
.auth-panel > h1, .auth-panel > h2 { font-family: var(--ffhq-cond); letter-spacing: .03em; }
.auth-panel a { color: #E8C6C9; }
.auth-card a { color: var(--ffhq-navy); }

/* Was 9.5px at 2.6:1 — present but unreadable. 11.5px at 6.4:1 on the sidebar navy. */
.ffhq-powered {
    font-size: 11.5px; color: #9FB0C6; text-transform: uppercase; letter-spacing: .09em;
    margin-top: 5px; font-family: var(--ffhq-cond); line-height: 1.2;
}

/* Personnel module */
.ffhq-pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ffhq-pagehead .ffhq-sub { margin-bottom: 0; }
.ffhq-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* justify-content: centre so a button STRETCHED to a width (phone page-head actions, full-width
   card actions) centres its label; text-align does nothing to an inline-flex box's anonymous item,
   so those labels sat hard left. Changes nothing for an auto-width button, which has no free space. */
.ffhq-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 8px;
    padding: 10px 18px; font-family: var(--ffhq-cond); font-size: 14px;
    letter-spacing: .04em; cursor: pointer; text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.ffhq-btn.primary { background: var(--ffhq-navy); color: #fff; }
.ffhq-btn.primary:hover { background: #1E3450; box-shadow: 0 2px 8px rgba(27, 44, 66, .25); }
.ffhq-btn.ghost { background: #fff; color: var(--ffhq-navy); border: 1px solid var(--ffhq-line); }
.ffhq-btn.ghost:hover { border-color: var(--ffhq-navy); }
.ffhq-btn.danger { background: #fff; color: var(--ffhq-crit); border: 1px solid var(--ffhq-crit); }
.ffhq-btn.danger:hover { background: var(--ffhq-crit-bg); }
.ffhq-btn.tiny { padding: 4px 10px; font-size: 12px; background: #fff; color: var(--ffhq-navy); border: 1px solid var(--ffhq-line); border-radius: 7px; }
.ffhq-btn.tiny:hover { border-color: var(--ffhq-navy); }
.ffhq-btn.tiny.danger { color: var(--ffhq-crit); border-color: var(--ffhq-crit); }
.ffhq-btn.sm { padding: 7px 14px; font-size: 13px; }
.ffhq-btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.ffhq-btn:focus-visible { outline: 2px solid var(--ffhq-red); outline-offset: 2px; }

.ffhq-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 2px solid var(--ffhq-line); }
.ffhq-tabs button {
    background: none; border: none; cursor: pointer; padding: 9px 16px; color: var(--ffhq-muted);
    font-family: var(--ffhq-cond); font-size: 13.5px; letter-spacing: .04em;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.ffhq-tabs button.active { color: var(--ffhq-navy); border-bottom-color: var(--ffhq-red); font-weight: 600; }
/* Inset, because the tab strip's bottom border sits under the button and an outset ring would be
   clipped by it on one side. */
.ffhq-tabs button:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: -2px; border-radius: 6px 6px 0 0; }

/* minmax(0, 1fr), not 1fr, in every list-plus-rail grid below: a bare 1fr track has an `auto`
   minimum, so a nowrap table inside it sets the column's floor and the grid outgrows the page —
   the second half of the desktop sideways-scroll bug (.ffhq-main's min-width is the first). */
.ffhq-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
@media (max-width: 1050px) { .ffhq-cols { grid-template-columns: 1fr; } }

.ffhq-tblwrap { overflow-x: auto; }
.ffhq-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ffhq-table th {
    font-family: var(--ffhq-cond); font-size: 12px; text-transform: uppercase;
    letter-spacing: .07em; color: var(--ffhq-muted); text-align: left; padding: 11px 14px;
    border-bottom: 1px solid var(--ffhq-line); font-weight: 600; white-space: nowrap;
}
.ffhq-table td { padding: 10px 14px; border-bottom: 1px solid var(--ffhq-line); vertical-align: middle; white-space: nowrap; }
.ffhq-table tr:last-child td { border-bottom: none; }
.ffhq-table td.num { font-variant-numeric: tabular-nums; }
.ffhq-table tbody tr:hover td { background: #FAFAF7; }
.ffhq-table tr.sel td { background: var(--ffhq-info-bg); }
.ffhq-table td .ffhq-linklike { font-weight: 600; }
.ffhq-empty { color: var(--ffhq-muted); text-align: center; padding: 22px 14px !important; white-space: normal !important; }

/* Long tables keep their column labels while scrolling (desktop only — on phones the
   tables either card-ify or scroll sideways in place, where sticky can't apply). */
@media (min-width: 821px) {
    .ffhq-table th, .ffhq-tbl th { position: sticky; top: 0; background: #fff; z-index: 2; }
}

/* 12px desktop / 13px phone (see the wave-1 phone block), text in the *-text tokens: at 11px in the
   base colours the warn chip measured 3.1:1 and ok/crit/info sat just under 4.5. */
.ffhq-chip {
    display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px;
    font-family: var(--ffhq-cond); letter-spacing: .05em; text-transform: uppercase;
    margin-right: 6px;
}
.ffhq-chip.ok { background: var(--ffhq-ok-bg); color: var(--ffhq-ok-text); }
.ffhq-chip.warn { background: var(--ffhq-warn-bg); color: var(--ffhq-warn-text); }
.ffhq-chip.crit { background: var(--ffhq-crit-bg); color: var(--ffhq-crit-text); }
.ffhq-chip.info { background: var(--ffhq-info-bg); color: var(--ffhq-info-text); }
.ffhq-chip.neutral { background: #EFEEE8; color: #5C584F; }

.ffhq-linklike {
    background: none; border: none; padding: 0; cursor: pointer; color: var(--ffhq-navy);
    font: inherit; text-decoration: none;
}
.ffhq-linklike:hover { text-decoration: underline; }
/* A button dressed as a link loses the browser's default ring along with its border, so a keyboard
   user tabbing through "Edit · Files · Delete" could not see where they were. */
.ffhq-linklike:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: 2px; border-radius: 3px; text-decoration: underline; }
.ffhq-card h2 .ffhq-linklike { float: right; font-size: 13px; font-weight: 600; letter-spacing: 0; }

/* Member drawer */
/* Sticky, and DELIBERATELY WITHOUT a max-height or its own overflow.

   Capping this to the viewport and giving it overflow-y:auto also makes the panel reachable, and was
   tried — but it costs a second scrollbar beside the page's, which is the exact confusion this app
   has already been bitten by on phones. Left to grow, the panel is simply part of the page: one
   scrollbar, everything reachable, and sticky still holds it beside the list for as long as its
   column lasts. The panel running off the bottom was never this rule's doing — it was .ffhq-sheet
   turning the box FIXED on desktop (see .ffhq-modalsheet below). */
.ffhq-drawer { position: sticky; top: 16px; }

/* ---- PROTOTYPE: editing panel as a centred dialog on desktop -----------------
   Opt-in with .ffhq-dialog alongside .ffhq-drawer; only the apparatus page uses it so far.

   This is the deliberate version of what a bug produced by accident last week, when .ffhq-sheet
   leaked its fixed positioning onto desktop. That accident was liked for a real reason — a focused
   panel with the page receding behind it is easier to work in than a 360px rail — but it had no
   backdrop, no close, no Escape, and could not scroll. This has all four.

   min-width:821px, the exact complement of the 820px phone block, so phones are untouched: there
   the panel is already a bottom sheet and this must not reach it.

   inset:0 + margin:auto + height:max-content is the centring trick — it centres on both axes
   without transforms, so no blurred text from half-pixel translation. */
/* The dialog backdrop (PanelDialog's .ffhq-dim.ffhq-dialog-dim) shows at EVERY width now.
   It used to be desktop-only, on the theory that a phone sheet owns the screen. It does not: the
   sheet is only as tall as its content (max 88dvh), and the page left showing above it was undimmed,
   so it read as live roster you could still tap — while the scroll lock made it dead. The phone
   z-index and colour are in the 820px block (the dim has to sit over the sticky top bar there). */

@media (min-width: 821px) {
    .ffhq-dialog {
        position: fixed; inset: 0; margin: auto;
        width: min(680px, calc(100vw - 48px));
        height: max-content;
        max-height: min(84vh, 84dvh);
        overflow-y: auto;
        z-index: 41;
        /* Its OWN background. The old .ffhq-sheet rule supplied one and that moved to
           .ffhq-modalsheet, leaving this transparent — the page showed through the gaps between the
           header and the cards inside, so a strip of the roster appeared to float inside the dialog.
           Only visible once a real panel was open on a real list. */
        background: var(--ffhq-paper);
        border-radius: 14px;
        box-shadow: 0 24px 60px rgba(16, 24, 40, .28);
    }

    /* The close button earns its keep here. SheetHeader hides above 820px because a column is
       visible without being opened and needs no dismissal — but a dialog covers the list, so the
       way out has to be on screen. Same component, shown again for the same reason it exists. */
    .ffhq-dialog .ffhq-sheet-head {
        display: flex; align-items: center; justify-content: space-between;
        position: sticky; top: 0; z-index: 1;
        margin: 0 0 10px; padding: 13px 18px;
        background: var(--ffhq-paper); border-bottom: 1px solid var(--ffhq-line);
        border-radius: 14px 14px 0 0;
    }
    .ffhq-dialog .ffhq-sheet-head .t {
        font-family: var(--ffhq-cond); font-size: 15px; letter-spacing: .04em;
        text-transform: uppercase; color: var(--ffhq-navy);
    }
    .ffhq-dialog .ffhq-sheet-close {
        background: none; border: 0; font-size: 19px; line-height: 1; cursor: pointer;
        color: var(--ffhq-muted); padding: 0; border-radius: 6px;
        width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    }
    .ffhq-dialog .ffhq-sheet-close:hover { background: var(--ffhq-line); color: var(--ffhq-ink); }

    /* ONE TITLE, NOT TWO. The panels carry their own navy header (.ffhq-dhead) because as a column
       they had no other chrome. In a dialog the sticky bar above already names what you opened and
       holds the close, so the second heading just repeated it — "ENGINE 1 CHECKLIST" sitting on top
       of "MANAGE CHECKLIST · Engine 1 · Weekly". The sticky bar wins: it survives scrolling, which
       is what keeps the close reachable in a long checklist. */
    .ffhq-dialog .ffhq-dhead { display: none; }

    /* Same duplication, different page. EventDetail carries its own title line (.ffhq-evcard .t)
       above the date and location; in a dialog that repeated the sticky header word for word —
       "MONTHLY BUSINESS MEETING" twice, one above the other. Only the title goes: the kicker
       ("MEETING · TUESDAY · REPEATS") and the meta line say things the header does not. */
    .ffhq-dialog .ffhq-evcard > .t { display: none; }
    .ffhq-dialog .ffhq-sheet-close:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: 1px; }

    /* The page behind must not scroll under the dialog — the same rule, and the same reasoning, as
       the phone sheet: two scrollbars, and the gesture moves the wrong one. html AND body because
       document.scrollingElement here is HTML. */
    html:has(.ffhq-dialog),
    body:has(.ffhq-dialog) { overflow: hidden; }
}
/* An editing panel opted into phone-sheet behaviour. Inert on desktop, where the panel is a
   column beside the list; see the 820px block for what it becomes. */
.ffhq-sheet-head { display: none; }
.ffhq-drawer-card { overflow: hidden; }
.ffhq-drawer-empty { padding: 26px 20px; color: var(--ffhq-muted); font-size: 13px; }
.ffhq-dhead { background: var(--ffhq-navy-deep); color: #fff; padding: 18px; }
.ffhq-dhead .nm { font-family: var(--ffhq-cond); font-size: 19px; font-weight: 600; letter-spacing: .03em; }
.ffhq-dhead .rk { color: #AEB6C2; font-size: 12.5px; margin-top: 2px; }
.ffhq-dhead .quick { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; color: #AEB6C2; }
.ffhq-dhead .quick b { display: block; color: #fff; font-family: var(--ffhq-cond); font-size: 17px; font-variant-numeric: tabular-nums; }
.ffhq-dsec { padding: 13px 18px; border-bottom: 1px solid var(--ffhq-line); }
.ffhq-dsec:last-child { border-bottom: none; }
.ffhq-dsec h3 {
    font-family: var(--ffhq-cond); font-size: 12px; font-weight: 600;
    letter-spacing: .07em; text-transform: uppercase; color: var(--ffhq-muted); margin: 0 0 8px;
    display: flex; justify-content: space-between; align-items: baseline;
}
.ffhq-dsec h3 .ffhq-linklike { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.ffhq-certrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed #EEEDE6; }
.ffhq-certrow:last-of-type { border-bottom: none; }
.ffhq-certrow .c { font-weight: 600; flex: 1; }
.ffhq-certrow .d { color: var(--ffhq-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ffhq-certrow .ffhq-chip { margin-right: 0; }
.ffhq-xbtn { background: none; border: none; cursor: pointer; color: var(--ffhq-muted); font-size: 15px; line-height: 1; padding: 0 2px; }
.ffhq-xbtn:hover { color: var(--ffhq-crit); }
.ffhq-xbtn:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: 1px; border-radius: 4px; }
.ffhq-trow { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13px; color: var(--ffhq-muted); }
.ffhq-trow b { color: var(--ffhq-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Forms */
.ffhq-field { display: block; font-size: 12.5px; }
.ffhq-field > span {
    display: block; font-family: var(--ffhq-cond); font-size: 12px;
    text-transform: uppercase; letter-spacing: .06em; color: var(--ffhq-muted); margin-bottom: 4px;
}
.ffhq-field > span .ffhq-linklike { text-transform: none; letter-spacing: 0; margin-left: 6px; }
.ffhq-input {
    width: 100%; border: 1.5px solid var(--ffhq-line); border-radius: 8px; padding: 8px 10px;
    font: inherit; font-size: 13.5px; color: var(--ffhq-ink); background: #FDFDFB;
}
.ffhq-input:focus { outline: 2px solid var(--ffhq-navy); border-color: var(--ffhq-navy); }
.ffhq-form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .ffhq-form-grid2 { grid-template-columns: 1fr; } }
.ffhq-inline-form { display: grid; gap: 10px; padding: 12px 0 2px; border-top: 1px dashed var(--ffhq-line); margin-top: 10px; }
.ffhq-alert { border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.ffhq-alert.err { background: var(--ffhq-crit-bg); color: var(--ffhq-crit-text); }
.ffhq-alert.ok { background: var(--ffhq-ok-bg); color: var(--ffhq-ok-text); }
.ffhq-alert.warn { background: var(--ffhq-warn-bg); color: var(--ffhq-warn-text); }
.ffhq-alert.info { background: var(--ffhq-info-bg); color: var(--ffhq-info-text); }
.ffhq-alert.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.ffhq-alert.banner a, .ffhq-alert.banner .capacitor-only { font-weight: 700; white-space: nowrap; }
/* On a phone the banner is the first thing on every authenticated page. It used to stack below
   560px (message over link, about 80px tall); it is now one compact row at 820px and under — see
   the UX11 navigation section at the end of this file, which also handles the native shell's long
   "manage on the web at app.responder-hq.com" trailer that the stacking was originally for. */

/* CSV import panel */
.ffhq-import { margin-bottom: 18px; }
.ffhq-import code { background: #EFEEE8; border-radius: 4px; padding: 1px 5px; font-size: 12px; }
.ffhq-import-inputs { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 10px 0; font-size: 13px; }
.ffhq-import-paste { font-family: Consolas, monospace; font-size: 12.5px; margin-bottom: 10px; resize: vertical; }
.ffhq-import-errors { display: grid; gap: 6px; margin-bottom: 12px; }

/* Training tab */
.ffhq-training-form { margin-bottom: 18px; }
.ffhq-picklist {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 14px;
    border: 1.5px solid var(--ffhq-line); border-radius: 8px; padding: 10px 12px;
    max-height: 240px; overflow-y: auto; background: #FDFDFB;
}
.ffhq-pick { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.ffhq-pick input { width: 15px; height: 15px; accent-color: var(--ffhq-navy); }

/* Expirations tab */
.ffhq-expgrid { display: grid; gap: 18px; }
@media (min-width: 1050px) { .ffhq-expgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }

/* Apparatus module */
.ffhq-pagehead-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* Three actions do not fit one phone row. Let them share the width rather than overflow it, and
   drop the now-unused full-width "Water near me" block that used to sit in the sidebar. */
@media (max-width: 560px) {
  .ffhq-pagehead-actions { width: 100%; }
  .ffhq-pagehead-actions .ffhq-btn { flex: 1 1 auto; text-align: center; }
}
.ffhq-h2 { font-family: var(--ffhq-cond); font-size: 15px; font-weight: 600; letter-spacing: .05em; margin: 22px 0 12px; }

/* ---- Apparatus registry cards ---- */
.ffhq-rigs { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.ffhq-rig { background: #fff; border: 1px solid var(--ffhq-line); border-radius: 10px; padding: 16px 18px; border-top: 4px solid var(--ffhq-navy); }
.ffhq-rig.oos { border-top-color: var(--ffhq-crit); }
.ffhq-rig .d { font-family: var(--ffhq-cond); font-size: 18px; font-weight: 600; letter-spacing: .03em; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ffhq-rig .t { color: var(--ffhq-muted); font-size: 12.5px; margin-bottom: 10px; }
/* "specrow" (not "row") — Bootstrap's grid .row > * { width: 100% } is loaded globally
   for the Identity pages and would stack these label→value pairs vertically. */
.ffhq-rig .specrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; padding: 3px 0; color: var(--ffhq-muted); }
.ffhq-rig .specrow b { color: var(--ffhq-ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.ffhq-rig .specrow b:has(select) { flex: 1; max-width: 180px; }
.ffhq-rig .specrow select.ffhq-input { padding: 5px 8px; font-size: 12.5px; }
.ffhq-rig .nocheck { font-size: 12px; color: var(--ffhq-muted); }
.ffhq-rig-check { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--ffhq-navy); font-weight: 600; text-decoration: none; }
.ffhq-rig-check:hover { text-decoration: underline; }

/* ---- Equipment filters + table ---- */
.ffhq-filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.ffhq-filters button { background: #fff; border: 1px solid #C9C6BA; border-radius: 99px; padding: 5px 13px; min-height: 36px; font: inherit; font-size: 12.5px; color: #5C584F; cursor: pointer; user-select: none; }
.ffhq-filters button:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: 2px; }
.ffhq-filters button.on { background: var(--ffhq-navy); border-color: var(--ffhq-navy); color: #fff; font-weight: 600; }
.ffhq-card-h3 { font-family: var(--ffhq-cond); font-size: 14px; font-weight: 600; letter-spacing: .05em; padding: 13px 16px; border-bottom: 1px solid var(--ffhq-line); margin: 0; }
.ffhq-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.ffhq-tbl th { font-family: var(--ffhq-cond); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ffhq-muted); text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--ffhq-line); font-weight: 600; white-space: nowrap; }
.ffhq-tbl td { padding: 9px 14px; border-bottom: 1px solid var(--ffhq-line); vertical-align: middle; white-space: nowrap; }
.ffhq-tbl tr:last-child td { border-bottom: none; }
.ffhq-tbl td.num { font-variant-numeric: tabular-nums; }
.ffhq-tbl tbody tr:hover td { background: #FAFAF7; }

/* ---- Admin CRUD: layout, rig/equipment actions, checklist editor, account page ---- */
.ffhq-apparatus-cols { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.ffhq-apparatus-cols:has(.ffhq-drawer) { grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 1050px) { .ffhq-apparatus-cols:has(.ffhq-drawer) { grid-template-columns: 1fr; } }
.ffhq-apparatus-main { min-width: 0; }
.ffhq-rig-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; margin-top: 12px; }
.ffhq-eqactions { white-space: nowrap; }
.ffhq-eqactions .ffhq-linklike { margin-right: 10px; font-size: 12.5px; }
.ffhq-checkedit-row { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--ffhq-line); }
.ffhq-checkedit-fields { display: grid; gap: 6px; flex: 1; min-width: 0; }
.ffhq-checkedit-btns { display: flex; flex-direction: column; gap: 2px; }
.ffhq-checkedit-btns .ffhq-xbtn { font-size: 14px; }
.ffhq-checkedit-btns .ffhq-xbtn:disabled { opacity: .3; cursor: default; }
.ffhq-checkinline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ffhq-muted); cursor: pointer; }
.ffhq-checkinline input { margin: 0; }
/* Retired rows are read-only history, not something to mistake for an editable line. */
.ffhq-retired { opacity: .62; }
.ffhq-retired .ffhq-checkedit-fields { font-size: 13px; }
.ffhq-account-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 1050px) { .ffhq-account-grid { grid-template-columns: 1fr; } }
.ffhq-account-grid h3, .ffhq-cardsec { font-family: var(--ffhq-cond); font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ffhq-muted); margin: 18px 0 10px; }
.ffhq-account-grid .ffhq-card-body h3:first-child, h3.ffhq-cardsec:first-child { margin-top: 0; }
.ffhq-cardnote { font-size: 13px; color: var(--ffhq-muted); margin: 0 0 12px; }

/* ---- Maintenance queue ---- */
.ffhq-maint { list-style: none; margin: 0; padding: 0; }
.ffhq-maint li { display: flex; gap: 11px; padding: 11px 16px; border-bottom: 1px solid var(--ffhq-line); font-size: 13px; align-items: flex-start; }
.ffhq-maint li:last-child { border-bottom: none; }
.ffhq-maint .sev { width: 4px; border-radius: 2px; align-self: stretch; flex-shrink: 0; }
.ffhq-maint .sev.crit { background: var(--ffhq-crit); }
.ffhq-maint .sev.warn { background: var(--ffhq-warn); }
.ffhq-maint .sev.info { background: var(--ffhq-info); }
.ffhq-maint .body { flex: 1; min-width: 0; }
.ffhq-maint .t { font-weight: 600; }
.ffhq-maint .s { color: var(--ffhq-muted); font-size: 12px; }

/* The standard template rule went missing during branding — without it the error bar
   renders permanently at the end of short pages (visible on the FocusLayout runner). */
#blazor-error-ui {
    color-scheme: light only; background: lightyellow; bottom: 0; display: none;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2); left: 0; padding: .6rem 1.25rem .7rem;
    position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* ---- Truck check runner (phone-first) ---- */
.ffhq-focus .ffhq-main { max-width: 560px; margin: 0 auto; padding: 16px 14px 60px; }
/* Documents (invoices) share FocusLayout's chrome-free shell but not its phone-column cap. */
.ffhq-doc .ffhq-main { margin: 0 auto; padding: 20px 20px 60px; }
/* .ffhq-check is the RUNNER's column and nothing else. It used to be declared a second time, for the
   authority-groups checkbox row, further down this file; that later rule added align-items: center,
   which turned this column into a centred stack: every card shrink-wrapped to its own label (ragged
   widths), the progress track collapsed to 0px, the two progress labels met in the middle, and the
   Finish button shrank to 188px. That row is .ffhq-authcheck now. Do not reuse this name. */
.ffhq-check { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.ffhq-check-head { display: flex; align-items: center; gap: 6px; padding: 0; }
/* 44x44 back target; the negative margin keeps the arrow where it sat optically. */
.ffhq-check-head .back {
    width: 44px; height: 44px; flex: none; margin-left: -10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--ffhq-navy); line-height: 1; text-decoration: none; border-radius: 8px;
}
.ffhq-check-head .back:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: -2px; }
.ffhq-check-head .ttl { font-family: var(--ffhq-cond); font-size: 17px; font-weight: 600; letter-spacing: .03em; min-width: 0; }
.ffhq-check-head .num { margin-left: auto; font-size: 13px; color: var(--ffhq-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ffhq-prog { height: 6px; border-radius: 99px; background: #DDDBD1; overflow: hidden; }
.ffhq-prog i { display: block; height: 100%; background: var(--ffhq-navy); border-radius: 99px; transition: width .15s ease; }
/* Sits ABOVE the track (markup order); -3px against the column's 8px gap leaves the 5px the
   label and its bar should read as one unit at. */
.ffhq-proglbl { font-size: 12px; color: var(--ffhq-muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--ffhq-cond); display: flex; justify-content: space-between; gap: 12px; margin-bottom: -3px; }
.ffhq-check-grp { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ffhq-muted); font-family: var(--ffhq-cond); padding: 4px 2px 0; }
.ffhq-check-item { background: #fff; border: 1px solid var(--ffhq-line); border-radius: 12px; padding: 7px 8px 7px 12px; min-height: 58px; display: flex; align-items: center; gap: 8px; }
.ffhq-check-item .t { font-size: 15px; font-weight: 600; flex: 1; min-width: 0; }
.ffhq-check-item .t small { display: block; font-weight: 400; color: var(--ffhq-muted); font-size: 13px; }
.ffhq-check-item.failed { border-color: var(--ffhq-crit); background: #FFFBFA; }
.ffhq-check-item.failed .t small { color: var(--ffhq-crit-text); }
.ffhq-pf { display: flex; gap: 6px; }
.ffhq-pf button { width: 52px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 10px; border: 1px solid #C9C6BA; font: inherit; font-weight: 800; font-size: 16px; color: #5C584F; cursor: pointer; user-select: none; background: #fff; }
.ffhq-pf button:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: 2px; }
.ffhq-pf .p.on { background: var(--ffhq-ok); border-color: var(--ffhq-ok); color: #fff; }
.ffhq-pf .f.on { background: var(--ffhq-crit); border-color: var(--ffhq-crit); color: #fff; }
/* A solid bar with a hairline, not a fade: the gradient let the last card's text show through behind
   the button, which read as overlap. The safe-area inset clears the home indicator. On a phone it
   bleeds to the screen edges (wave-1 phone block). */
.ffhq-actionbar {
    position: sticky; bottom: 0; z-index: 2;
    padding: 12px 0 calc(16px + env(safe-area-inset-bottom, 0px));
    background: var(--ffhq-paper); border-top: 1px solid var(--ffhq-line);
}
.ffhq-cta { display: block; width: 100%; min-height: 50px; background: var(--ffhq-navy); color: #fff; text-align: center; border: none; border-radius: 12px; padding: 14px; font-family: var(--ffhq-cond); font-size: 16px; font-weight: 600; letter-spacing: .05em; cursor: pointer; text-decoration: none; }
.ffhq-cta:hover { background: #1E3450; }
.ffhq-cta:focus-visible { outline: 2px solid var(--ffhq-red); outline-offset: 2px; }
.ffhq-cta:disabled { background: var(--ffhq-cta-disabled); cursor: default; }
.ffhq-cta.ok { background: var(--ffhq-ok); }
.ffhq-cta.ok:hover { background: #286844; }
/* The secondary action on the sign-off bar. Deliberately quieter than the primary: an officer who
   CAN sign off should be able to ask a colleague to review instead, but signing remains the ordinary
   ending and must stay the obvious one. Stacked under the primary with a gap, because these are two
   full-width CTAs and a flush pair reads as one control split in half. */
.ffhq-cta.ghost { background: #fff; color: var(--ffhq-navy); border: 1px solid var(--ffhq-line); margin-top: 10px; }
.ffhq-cta.ghost:hover { background: #fff; border-color: var(--ffhq-navy); }
.ffhq-cta.ghost:disabled { background: #fff; color: var(--ffhq-muted); border-color: var(--ffhq-line); cursor: default; }
.ffhq-check-error { color: var(--ffhq-crit-text); font-size: 13px; margin: 0; }
.ffhq-check-empty { background: #fff; border: 1px solid var(--ffhq-line); border-radius: 12px; padding: 18px; font-size: 14px; color: var(--ffhq-muted); }

/* Failure sheet */
.ffhq-dim { position: fixed; inset: 0; background: rgba(27, 44, 66, .35); z-index: 40; }
/* .ffhq-modalsheet, NOT .ffhq-sheet, AND THAT DISTINCTION IS THE BUG FIX.

   Two different things wanted the same class name. A MODAL sheet — the apparatus-check failure
   sheet and the incident type picker — is a fixed bottom sheet at EVERY width, which is what this
   rule describes. An EDITING PANEL (personnel, apparatus, equipment, calendar) carries .ffhq-sheet
   only to opt into phone behaviour; on desktop it is meant to be a sticky column beside its list.

   Unscoped, this rule applied to both. On desktop the editing panels therefore became fixed,
   centred, 480px overlays sitting ON TOP of the roster they were meant to sit beside — and because
   .ffhq-drawer contributes top:16px while this contributes bottom:0, they were pinned to a fixed
   height with overflow visible: content taller than the window spilled off the bottom with nothing
   to scroll, and the page scroll could not help because the box was fixed. Measured on Personnel at
   1440x560: a 544px box holding 668px of content, 124px permanently unreachable. Customer-reported
   as "the checklist will not scroll, same on personnel"; live since 2026-08-24 (f8d14c2), whose own
   title says "on phones" — the desktop leak was never intended, and the comment below this block
   has been claiming the class is "inert on desktop" the whole time.

   Modals keep BOTH classes so every phone rule below (which targets .ffhq-sheet) still reaches
   them unchanged. */
.ffhq-modalsheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(32, 36, 42, .22); padding-bottom: 18px; z-index: 41; }
.ffhq-modalsheet .grab { width: 38px; height: 4px; border-radius: 99px; background: #D8D6CC; margin: 9px auto 8px; }
/* Corner close for the MODAL sheets — the apparatus-check failure sheet and the incident-type
   picker. Both are bottom sheets at every width, so they cannot use SheetHeader, which is
   display:none above 820px and carries negative margins tuned to the drawer panels' padding.
   Both shipped with the backdrop tap as their only exit, and the type picker with no visible exit
   at all: a member who opened it to browse codes and did not want one was stuck on the step. */
.ffhq-sheet-x {
    position: absolute; top: 4px; right: 6px;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    background: none; border: 0; border-radius: 8px;
    font-size: 17px; line-height: 1; color: var(--ffhq-muted); cursor: pointer;
}
.ffhq-sheet-x:hover { background: var(--ffhq-paper); color: var(--ffhq-ink); }
.ffhq-sheet-x:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: 1px; }
.ffhq-sheet h4 { font-family: var(--ffhq-cond); font-size: 14px; font-weight: 600; letter-spacing: .04em; padding: 0 16px 2px; color: var(--ffhq-crit); margin: 0; }
.ffhq-sheet .sub { padding: 0 16px 10px; font-size: 12.5px; color: var(--ffhq-muted); }
.ffhq-sheet textarea { display: block; width: calc(100% - 28px); margin: 0 14px 9px; background: var(--ffhq-paper); border: 1px solid var(--ffhq-line); border-radius: 12px; padding: 10px 13px; font-size: 14px; font-family: inherit; color: var(--ffhq-ink); min-height: 74px; resize: vertical; }
.ffhq-sheet textarea:focus { outline: 2px solid var(--ffhq-navy); border-color: var(--ffhq-navy); }
.ffhq-sheet .hint { padding: 0 16px 10px; font-size: 12px; color: var(--ffhq-muted); }
.ffhq-sheet .ffhq-cta { width: calc(100% - 28px); margin: 0 14px; }
.ffhq-sevrow { display: flex; gap: 7px; margin: 0 14px 12px; }
.ffhq-sevrow button { flex: 1; text-align: center; border: 1px solid #C9C6BA; border-radius: 10px; padding: 9px 4px; min-height: 44px; font: inherit; font-size: 13px; color: var(--ffhq-ink); background: var(--ffhq-paper); cursor: pointer; user-select: none; }
.ffhq-sevrow button:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: 2px; }
.ffhq-sevrow button.on { background: var(--ffhq-warn-bg); border-color: var(--ffhq-warn); color: var(--ffhq-warn-text); font-weight: 700; }
.ffhq-sevrow button.on.note { background: var(--ffhq-info-bg); border-color: var(--ffhq-info); color: var(--ffhq-info-text); }
.ffhq-sevrow button.on.oos { background: var(--ffhq-crit-bg); border-color: var(--ffhq-crit); color: var(--ffhq-crit-text); }

/* Completion summary */
.ffhq-sumrow { display: flex; gap: 10px; }
.ffhq-sum { flex: 1; background: #fff; border: 1px solid var(--ffhq-line); border-radius: 14px; padding: 16px; text-align: center; }
.ffhq-sum .big { font-family: var(--ffhq-cond); font-size: 38px; font-weight: 600; color: var(--ffhq-ok); }
.ffhq-sum .big.warn { color: var(--ffhq-crit); }
.ffhq-sum .l { font-size: 12.5px; color: var(--ffhq-muted); text-transform: uppercase; letter-spacing: .07em; font-family: var(--ffhq-cond); }
.ffhq-mrec { background: var(--ffhq-crit-bg); border: 1px solid #EAC4BD; border-radius: 12px; padding: 10px 13px; font-size: 13px; color: #7C2418; }
.ffhq-mrec b { display: block; }
.ffhq-check-byline { background: #fff; border: 1px solid var(--ffhq-line); border-radius: 12px; padding: 10px 13px; font-size: 12.5px; color: var(--ffhq-muted); }
.ffhq-check-byline b { color: var(--ffhq-ink); }

/* Incidents module */

/* ---- Wizard shell (phone-first, rides FocusLayout like the check runner) ---- */
.ffhq-wiz { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 9px; }
.ffhq-wiz-steps { display: flex; gap: 5px; }
.ffhq-wiz-steps span { flex: 1; height: 4px; border-radius: 99px; background: #DDDBD1; }
.ffhq-wiz-steps span.done { background: var(--ffhq-navy); }
.ffhq-wiz-steps span.cur { background: var(--ffhq-red); }
.ffhq-wiz-steplbl { font-size: 12px; color: var(--ffhq-muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--ffhq-cond); margin-bottom: 2px; }

/* ---- Field cards ---- */
.ffhq-fld { background: #fff; border: 1px solid #C9C6BA; border-radius: 12px; padding: 10px 13px; position: relative; }
.ffhq-fld.tappable { cursor: pointer; }
.ffhq-fld .l { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ffhq-muted); font-family: var(--ffhq-cond); margin-bottom: 2px; }
.ffhq-fld .v { font-size: 14.5px; font-weight: 600; }
.ffhq-fld .v.ph { color: var(--ffhq-hint); font-weight: 400; }
.ffhq-fld .chev { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--ffhq-hint); }
.ffhq-fld input, .ffhq-fld textarea, .ffhq-fld select {
    width: 100%; border: none; background: transparent; font: inherit; font-size: 14.5px;
    font-weight: 600; color: var(--ffhq-ink); padding: 0;
}
/* The input's own ring is suppressed because the CARD is the box — so the card has to show focus
   instead. Without this, tabbing through the wizard moved focus with nothing on screen to say where
   it went. Border + 1px shadow reads as a 2px navy ring without shifting the layout.
   Not on the date/time card or the mutual-aid box: their inputs carry their own bordered boxes and
   rings, and a second ring around the card would just be noise. */
.ffhq-fld input:focus, .ffhq-fld textarea:focus, .ffhq-fld select:focus { outline: none; }
.ffhq-fld:focus-within:not(:has(.ffhq-dtin, .ffhq-aidbox)) {
    border-color: var(--ffhq-navy); box-shadow: 0 0 0 1px var(--ffhq-navy);
}

/* Digit date/time pair. Sized to their content rather than stretched to the card, so the two read
   as one timestamp and the tap target for each stays where the eye expects it. tabular-nums keeps
   09/06/2026 and 11/11/2026 the same width — a field that reflows as you type reads as broken. */
.ffhq-dtrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* The shortcuts wrap as a GROUP. Dispatched carries two of them, and on a phone they do not fit
   beside the boxes — left loose, −1 DAY stayed on the first line while NOW dropped alone under it.
   Kept together they land as a tidy second row instead. */
.ffhq-dtbtns { display: flex; align-items: center; gap: 8px; }
.ffhq-dtin { display: flex; gap: 8px; align-items: center; }
/* .ffhq-fld strips border and background from its inputs, because normally the card IS the box and
   the input fills it. A date and a time sitting side by side are not that: without their own
   borders they are invisible slivers, which is exactly how they shipped. */
.ffhq-fld .ffhq-dtin input {
    border: 1px solid var(--ffhq-line); background: #fff; border-radius: 8px;
    padding: 8px 10px; font-variant-numeric: tabular-nums; font-weight: 600;
    /* Monospace, so the box width is DETERMINISTIC. These boxes are sized in ch, and ch is the
       advance of "0" in whatever font is resolved — in the body's proportional stack a slash is
       narrower than a digit and the platforms disagree about by how much, so a width that fits on
       one machine clips on another. In a mono face every glyph is exactly 1ch: 09/06/2026 is 10ch
       and 21:14 is 5ch, everywhere. It is also the right typeface for typing a timestamp. */
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    /* 16px, not the card's 14.5px: iOS Safari zooms the whole page in on focusing any input under
       16px, and a firefighter typing four timestamps would fight that zoom four times.
       40px min-height keeps the tap target honest. */
    font-size: 16px; min-height: 40px; width: auto;
}
.ffhq-fld .ffhq-dtin input:focus {
    outline: none; border-color: var(--ffhq-info); box-shadow: 0 0 0 2px var(--ffhq-info-bg);
}
/* content-box, deliberately, against Bootstrap's global border-box.
   THIS IS WHY THE YEAR WAS LOSING ITS LAST DIGIT. bootstrap.min.css loads before this file and sets
   box-sizing: border-box on everything, so a width of 12ch was the OUTER box — 20px of padding and
   2px of border came out of it, leaving 83.6px of room for 88px of date. Under content-box the
   width means what it says: twelve characters of text, with the padding and border outside it.
   Ten characters of date in a 12ch box, five of time in a 7ch box. */
.ffhq-fld .ffhq-dtin input.date { box-sizing: content-box; width: 12ch; flex: 0 0 auto; }
.ffhq-fld .ffhq-dtin input.time { box-sizing: content-box; width: 7ch; flex: 0 0 auto; }
/* Placeholders must never read as entered text.
   This rule is deliberately UNSCOPED. The only placeholder styling used to be the .ffhq-fld one
   below, but the app puts placeholders on four different input classes (.ffhq-input 37 times,
   .form-control 18, .auth-input 9, plus the search boxes) — so 66 of 87 placeholders fell back to
   the browser default, which in Chrome is dark enough that a hint like "09-114" or "1500" is
   indistinguishable from a value the user typed. A chief cannot tell whether their NERIS entity id
   is saved or the field is empty.
   Italic carries the signal, not colour alone: colour is the thing a photocopy, a bright screen, or
   a colour-vision difference takes away first. opacity:1 is for Firefox, which otherwise applies its
   own fade on top. Example-value placeholders are additionally prefixed "e.g." in the markup, so the
   meaning survives even where no styling reaches. */
/* The class selectors are NOT redundant with the element ones. Bootstrap ships
   `.form-control::placeholder{color:var(--bs-secondary-color);opacity:1}`, which is class
   specificity (0,1,1) and beats a bare `input::placeholder` (0,0,2) no matter that app.css loads
   after bootstrap.min.css — specificity is decided before order. Measured before this fix, a
   .form-control placeholder rendered rgba(33,37,41,0.75): the same ink as typed text, merely faded.
   That is the NERIS entity-id field the problem was reported against, so an element-only rule would
   have looked like a fix everywhere except the one place it was asked for. */
input::placeholder,
textarea::placeholder,
.form-control::placeholder,
.ffhq-input::placeholder,
.auth-input::placeholder,
.searchbox::placeholder,
.search::placeholder,
.rmv-search::placeholder {
    /* --ffhq-hint (5.3:1 on white). The previous #8A857A measured 3.6:1 — italic carried the
       "this is not a value" signal, but the words themselves were hard to read. */
    color: var(--ffhq-hint);
    font-style: italic;
    font-weight: 400;
    opacity: 1;
}

.ffhq-fld input::placeholder, .ffhq-fld textarea::placeholder { color: var(--ffhq-hint); font-weight: 400; font-style: italic; }
.ffhq-fld textarea { resize: vertical; min-height: 64px; font-weight: 400; }
.ffhq-fld .hint { font-size: 12px; color: var(--ffhq-muted); margin-top: 6px; }
.ffhq-fld .ffhq-picklist { border: none; background: transparent; padding: 6px 0 0; max-height: 230px; }
/* Checkboxes must escape the `width:100%` above, which is meant for text/select fields.
   `.ffhq-pick input` (line 413) already sets 15px, but it ties on specificity (0,1,1) with
   `.ffhq-fld input` and loses on source order — so a checkbox inside a wizard field stretched to
   the full grid column and pushed its own label out of view. Measured on the incident wizard's crew
   step: three apparatus and three responders rendered as bare checkboxes with no names beside them.
   The attribute selector wins on specificity (0,2,1) rather than order, so it holds wherever the two
   contexts nest. flex:none keeps it from being shrunk by the flex row in .ffhq-pick. */
.ffhq-fld input[type="checkbox"] { width: 15px; height: 15px; flex: none; }
/* One field per row, at every width. Two-up was right when each field was a single compact native
   input; a date box, a time box and a NOW button do not fit side by side in this column, and the
   button wrapped onto its own line on the narrow half. Desktop and phone now lay out the same way,
   which is one fewer thing to get wrong. */
.ffhq-timegrid { display: grid; grid-template-columns: 1fr; gap: 9px; }
.ffhq-fld input[type="datetime-local"], .ffhq-fld input[type="date"], .ffhq-fld input[type="time"] { font-variant-numeric: tabular-nums; }
/* Dispatched anchors the report and carries a second shortcut, so it spans the grid. */
.ffhq-timegrid .ffhq-fld.wide { grid-column: 1 / -1; }
.ffhq-nowbtn {
    background: var(--ffhq-info-bg); color: var(--ffhq-info-text); border: 0; border-radius: 8px; font-size: 14px;
    font-weight: 700; padding: 0 16px; font-family: var(--ffhq-cond);
    letter-spacing: .04em; cursor: pointer; user-select: none; white-space: nowrap;
    /* A real button now, 14px and 44px tall so a gloved thumb can hit it — it sits beside the boxes,
       not over them. Colour is the info TEXT token (8:1 on its tint); --ffhq-info was 4.6:1. */
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
}
.ffhq-nowbtn:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: 2px; }
/* Sits left of NOW, quieter than it: the point is that a past date is equally allowed, not that
   it is the usual choice. */
.ffhq-nowbtn.alt {
    background: transparent; color: #5C584F;
    border: 1px solid #C9C6BA;
}
.ffhq-nowbtn.alt:hover { color: var(--ffhq-info); border-color: var(--ffhq-info); }
.ffhq-timenote { font-size: 11.5px; color: var(--ffhq-muted); line-height: 1.45; }
.ffhq-timenote b { color: var(--ffhq-ink); font-weight: 600; }
.ffhq-chipsrow { display: flex; gap: 6px; flex-wrap: wrap; }
.ffhq-chipsrow .ffhq-chip .x { background: none; border: none; color: inherit; cursor: pointer; font-size: 12px; margin-left: 5px; padding: 0; }
.ffhq-wiz-addlink { font-size: 13px; text-align: left; padding: 0 2px; }

/* ---- Conditional module ---- */
.ffhq-modbanner { background: var(--ffhq-warn-bg); border: 1px solid #EAD9B0; border-radius: 12px; padding: 9px 13px; font-size: 12.5px; color: #7A5408; }
.ffhq-modbanner b { font-family: var(--ffhq-cond); letter-spacing: .03em; }
.ffhq-seg { display: flex; gap: 6px; margin-top: 6px; }
.ffhq-seg button { flex: 1; text-align: center; border: 1px solid #C9C6BA; background: #fff; border-radius: 10px; padding: 9px 4px; min-height: 44px; font: inherit; font-size: 13px; color: var(--ffhq-ink); cursor: pointer; user-select: none; }
.ffhq-seg button:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: 2px; }
.ffhq-seg button.on { background: var(--ffhq-navy); border-color: var(--ffhq-navy); color: #fff; font-weight: 600; }

/* ---- Review ---- */
.ffhq-rvsec { background: #fff; border: 1px solid var(--ffhq-line); border-radius: 12px; padding: 10px 13px; }
.ffhq-rvsec .h { display: flex; justify-content: space-between; font-family: var(--ffhq-cond); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ffhq-muted); margin-bottom: 4px; }
.ffhq-rvsec .rowline { font-size: 13px; display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.ffhq-rvsec .rowline span:first-child { color: var(--ffhq-muted); flex-shrink: 0; }
.ffhq-rvsec .rowline span:last-child { font-weight: 600; text-align: right; }
.ffhq-valbox { border-radius: 12px; padding: 10px 13px; font-size: 12.5px; display: flex; gap: 9px; align-items: flex-start; }
.ffhq-valbox.crit { background: var(--ffhq-crit-bg); border: 1px solid #EAC4BD; color: #7C2418; }
.ffhq-valbox.warn { background: var(--ffhq-warn-bg); border: 1px solid #EAD9B0; color: #7A5408; }
/* Confirmation, not a problem: a backdated report is being accepted, and it should not wear the
   same colour as something that needs fixing. */
.ffhq-valbox.info { background: var(--ffhq-info-bg); border: 1px solid #C3D4E6; color: #1B4A75; }
.ffhq-valbox b { display: block; }
.ffhq-valbox .ic { font-weight: 800; font-family: var(--ffhq-cond); }

/* ---- Type picker bottom sheet ---- */
/* dvh for the same reason as .ffhq-sheet: vh measures the URL-bar-retracted viewport, so the
   bottom of this picker could sit under the browser chrome. vh line first as the fallback. */
.ffhq-typesheet { display: flex; flex-direction: column; max-height: 76vh; max-height: 76dvh; }
.ffhq-typesheet h4 { color: var(--ffhq-ink); }
.ffhq-typesheet .searchbox { margin: 4px 14px 10px; background: var(--ffhq-paper); border: 1px solid var(--ffhq-line); border-radius: 10px; padding: 9px 13px; font-size: 13.5px; color: var(--ffhq-ink); width: calc(100% - 28px); font-family: inherit; }
.ffhq-typesheet .searchbox:focus { outline: 2px solid var(--ffhq-navy); border-color: var(--ffhq-navy); }
.ffhq-typesheet .opts { overflow-y: auto; }
.ffhq-typesheet .grp { padding: 6px 16px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ffhq-muted); font-family: var(--ffhq-cond); }
.ffhq-typesheet .opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 11px 16px; border: 0; border-bottom: 1px solid #F0EFE9; background: none; text-align: left; font: inherit; font-size: 14px; color: inherit; cursor: pointer; }
.ffhq-typesheet .opt:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: -2px; }
.ffhq-typesheet .opt:hover { background: #FAFAF7; }
.ffhq-typesheet .opt.sel { background: var(--ffhq-info-bg); font-weight: 600; }
.ffhq-typesheet .opt .code { margin-left: auto; font-size: 12px; color: var(--ffhq-hint); }
.ffhq-typesheet .opt .dot { width: 8px; height: 8px; border-radius: 50%; background: #C9C6BA; flex-shrink: 0; }
.ffhq-typesheet .opt .dot.t-fire { background: var(--ffhq-crit); }
.ffhq-typesheet .opt .dot.t-medical { background: var(--ffhq-info); }
.ffhq-typesheet .opt .dot.t-hazsit { background: var(--ffhq-warn); }
.ffhq-typesheet .opt .dot.t-rescue { background: var(--ffhq-navy); }

/* ---- Incident list ---- */
.ffhq-tabs .cnt { background: #EFEEE8; border-radius: 99px; padding: 1px 8px; font-size: 11.5px; margin-left: 5px; font-variant-numeric: tabular-nums; }
.ffhq-tabs button.active .cnt { background: var(--ffhq-navy); color: #fff; }
.ffhq-tabs .cnt.err { background: var(--ffhq-crit-bg); color: var(--ffhq-crit-text); }
.ffhq-listnote { margin-top: 16px; background: #fff; border: 1px solid var(--ffhq-line); border-left: 4px solid var(--ffhq-red); border-radius: 10px; padding: 14px 18px; font-size: 13px; color: var(--ffhq-muted); max-width: 75ch; }
.ffhq-listnote b { color: var(--ffhq-ink); }

/* Expanded submission detail: the raw NERIS response and, behind a toggle, the exact payload we
   sent. Both are unbounded machine text, so they scroll inside the panel rather than stretching
   the table and pushing the page sideways. */
.ffhq-detail { padding: 4px 0 10px; font-size: 13px; }
.ffhq-detail > b { display: block; margin-bottom: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ffhq-muted); }
.ffhq-detail details { margin-top: 10px; }
.ffhq-detail summary { cursor: pointer; color: var(--ffhq-navy); font-size: 12.5px; }
.ffhq-pre {
    background: #FAF9F5; border: 1px solid var(--ffhq-line); border-radius: 8px;
    padding: 10px 12px; margin: 6px 0 0; max-height: 320px; overflow: auto;
    font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.ffhq-detailrow:hover td { background: none; }

/* ---- Dashboard ---- */
.ffhq-dashcols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .ffhq-dashcols { grid-template-columns: 1fr; } }
.ffhq-stack { margin-bottom: 18px; }
.ffhq-kpi .d.crit { color: var(--ffhq-crit); }
.ffhq-attn { list-style: none; margin: 0; padding: 0; }
.ffhq-attn li { display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--ffhq-line); align-items: flex-start; }
.ffhq-attn li:last-child { border-bottom: none; }
.ffhq-attn .sev { width: 4px; border-radius: 2px; align-self: stretch; flex-shrink: 0; }
.ffhq-attn .sev.crit { background: var(--ffhq-crit); }
.ffhq-attn .sev.warn { background: var(--ffhq-warn); }
.ffhq-attn .sev.info { background: var(--ffhq-info); }
.ffhq-attn .body { flex: 1; min-width: 0; }
.ffhq-attn .t { font-weight: 600; font-size: 13.5px; }
.ffhq-attn .s { color: var(--ffhq-muted); font-size: 12.5px; }
.ffhq-attn .act { margin-left: auto; align-self: center; flex-shrink: 0; }
.ffhq-attn .act a { font-size: 12.5px; color: var(--ffhq-navy); text-decoration: none; font-weight: 600; white-space: nowrap; }
.ffhq-attn .act a:hover { text-decoration: underline; }

/* Calendar module */
:root {
    --ffhq-ev-drill: var(--ffhq-navy);
    --ffhq-ev-meet: #3B6EA5;
    --ffhq-ev-duty: #8A6D1C;
    --ffhq-ev-work: #67635A;
    --ffhq-ev-pub: #2F7D51;
}

.ffhq-cal-cols { display: grid; grid-template-columns: 1fr 372px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .ffhq-cal-cols { grid-template-columns: 1fr; } }

.ffhq-calhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--ffhq-line); }
.ffhq-calhead .m { font-family: var(--ffhq-cond); font-size: 17px; font-weight: 600; letter-spacing: .04em; }
.ffhq-calnav { display: flex; gap: 6px; }
.ffhq-calnav button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--ffhq-line); border-radius: 8px; color: var(--ffhq-navy); background: #fff; cursor: pointer; font-size: 15px; }
.ffhq-calnav button:hover { border-color: var(--ffhq-navy); }

.ffhq-legend { display: flex; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--ffhq-line); font-size: 12px; color: var(--ffhq-muted); flex-wrap: wrap; }
.ffhq-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.ffhq-legend i.drill { background: var(--ffhq-ev-drill); }
.ffhq-legend i.meet { background: var(--ffhq-ev-meet); }
.ffhq-legend i.duty { background: var(--ffhq-ev-duty); }
.ffhq-legend i.work { background: var(--ffhq-ev-work); }
.ffhq-legend i.pub { background: var(--ffhq-ev-pub); }

.ffhq-cal { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 560px; }
.ffhq-cal th { font-family: var(--ffhq-cond); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ffhq-muted); padding: 8px 6px; border-bottom: 1px solid var(--ffhq-line); font-weight: 600; }
.ffhq-cal td { border: 1px solid #EFEEE8; vertical-align: top; height: 88px; padding: 5px 6px; font-size: 12px; }
.ffhq-cal td .dn { font-variant-numeric: tabular-nums; color: var(--ffhq-muted); font-size: 11.5px; margin-bottom: 3px; }
.ffhq-cal td.out { background: #FAFAF7; }
.ffhq-cal td.out .dn { color: var(--ffhq-hint); }
.ffhq-cal td.today { background: var(--ffhq-info-bg); }
.ffhq-cal td.today .dn { color: var(--ffhq-navy); font-weight: 700; }

.ffhq-ev { display: block; width: 100%; text-align: left; border: none; border-radius: 6px; padding: 2px 7px; margin-bottom: 3px; font-size: 11.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; font-family: inherit; }
.ffhq-ev.drill { background: var(--ffhq-ev-drill); }
.ffhq-ev.meet { background: var(--ffhq-ev-meet); }
.ffhq-ev.duty { background: var(--ffhq-ev-duty); }
.ffhq-ev.work { background: var(--ffhq-ev-work); }
.ffhq-ev.pub { background: var(--ffhq-ev-pub); }
.ffhq-ev.sel { outline: 2px solid var(--ffhq-red); outline-offset: 1px; }

/* List view (phone-friendly alternative to the grid) */
.ffhq-evlist { list-style: none; margin: 0; padding: 0; }
.ffhq-evlist li { display: flex; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--ffhq-line); align-items: center; cursor: pointer; }
.ffhq-evlist li:last-child { border-bottom: none; }
.ffhq-evlist li:hover, .ffhq-evlist li.sel { background: #FAFAF7; }
.ffhq-evlist .t { font-weight: 600; font-size: 13.5px; }
.ffhq-evlist .s { color: var(--ffhq-muted); font-size: 12.5px; }
.ffhq-evlist .mark { width: 9px; height: 9px; border-radius: 3px; margin-left: auto; flex-shrink: 0; }
.ffhq-evlist .mark.drill { background: var(--ffhq-ev-drill); }
.ffhq-evlist .mark.meet { background: var(--ffhq-ev-meet); }
.ffhq-evlist .mark.duty { background: var(--ffhq-ev-duty); }
.ffhq-evlist .mark.work { background: var(--ffhq-ev-work); }
.ffhq-evlist .mark.pub { background: var(--ffhq-ev-pub); }

/* Datebox (list view + dashboard UPCOMING panel) */
.ffhq-datebox { width: 44px; text-align: center; background: var(--ffhq-paper); border: 1px solid var(--ffhq-line); border-radius: 8px; padding: 4px 0; flex-shrink: 0; }
.ffhq-datebox .m { font-size: 11.5px; text-transform: uppercase; color: var(--ffhq-crit-text); font-weight: 700; letter-spacing: .06em; }
.ffhq-datebox .d { font-family: var(--ffhq-cond); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ffhq-events { list-style: none; margin: 0; padding: 0; }
.ffhq-events li { display: flex; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--ffhq-line); }
.ffhq-events li:last-child { border-bottom: none; }
.ffhq-events .t { font-weight: 600; font-size: 13.5px; }
.ffhq-events .s { color: var(--ffhq-muted); font-size: 12.5px; }

/* Event detail panel */
.ffhq-evcard { background: #fff; border: 1px solid var(--ffhq-line); border-radius: 14px; padding: 14px; }
.ffhq-evcard .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ffhq-navy); font-family: var(--ffhq-cond); font-weight: 700; }
.ffhq-evcard .t { font-family: var(--ffhq-cond); font-size: 18px; font-weight: 600; margin: 3px 0 6px; letter-spacing: .02em; text-transform: uppercase; }
.ffhq-evcard .meta { font-size: 13px; color: var(--ffhq-muted); }
.ffhq-evcard .desc { font-size: 13px; color: var(--ffhq-ink); margin-top: 8px; }

.ffhq-rsvp { display: flex; gap: 8px; margin-top: 10px; }
.ffhq-rsvp button { flex: 1; text-align: center; border: 1.5px solid var(--ffhq-line); border-radius: 12px; padding: 11px 4px; font-weight: 700; font-size: 13.5px; background: #fff; cursor: pointer; color: var(--ffhq-ink); font-family: inherit; }
.ffhq-rsvp button.going.on { background: var(--ffhq-ok); border-color: var(--ffhq-ok); color: #fff; }
.ffhq-rsvp button.declined.on { background: var(--ffhq-crit); border-color: var(--ffhq-crit); color: #fff; }
.ffhq-rsvp button:disabled { opacity: .55; cursor: default; }

.ffhq-who { background: #fff; border: 1px solid var(--ffhq-line); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.ffhq-who h5 { font-family: var(--ffhq-cond); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ffhq-muted); margin: 0 0 8px; }
.ffhq-who .r { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.ffhq-who .r span:last-child { color: var(--ffhq-ok); font-weight: 700; font-size: 12px; }
.ffhq-who .r.no span:last-child { color: var(--ffhq-hint); }
.ffhq-who .r.att span:last-child { color: var(--ffhq-navy); }

.ffhq-cap { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--ffhq-muted); }
.ffhq-cap .bar { flex: 1; height: 7px; border-radius: 99px; background: #EFEEE8; overflow: hidden; }
.ffhq-cap .bar i { display: block; height: 100%; background: var(--ffhq-ev-duty); border-radius: 99px; }
.ffhq-cap.full .bar i { background: var(--ffhq-crit); }

.ffhq-evdetail-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ffhq-feed { background: #fff; border: 1px solid var(--ffhq-line); border-radius: 14px; padding: 12px 14px; margin-top: 14px; }
.ffhq-feed h5 { font-family: var(--ffhq-cond); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ffhq-muted); margin: 0 0 6px; }
.ffhq-feed p { font-size: 12.5px; color: var(--ffhq-muted); margin: 0 0 8px; }
.ffhq-feed input { width: 100%; border: 1.5px solid var(--ffhq-line); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; font-family: Consolas, monospace; color: var(--ffhq-ink); background: #FDFDFB; }

/* Points module */
.ffhq-yearsel { width: auto; padding: 8px 12px; font-family: var(--ffhq-cond); font-size: 14px; letter-spacing: .04em; cursor: pointer; }
.ffhq-pts-flash { margin-bottom: 14px; }
.ffhq-pts-cols { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 1050px) { .ffhq-pts-cols { grid-template-columns: 1fr; } }
.ffhq-pts-side { margin-bottom: 18px; }
.ffhq-table th.r, .ffhq-table td.r { text-align: right; }

/* Point rules side card (view + inline edit) */
.ffhq-rules { padding: 6px 16px 12px; font-size: 13px; }
.ffhq-rules .r { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #EEEDE6; }
.ffhq-rules .r:last-of-type { border-bottom: none; }
.ffhq-rules .r span:first-child { color: var(--ffhq-muted); }
.ffhq-rules .r span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ffhq-pts-ruleinput { width: 76px; padding: 5px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.ffhq-pts-monthsel { width: auto; padding: 5px 8px; cursor: pointer; }
.ffhq-pts-rulenote { font-size: 12px; color: var(--ffhq-muted); padding: 8px 0 2px; line-height: 1.5; }
.ffhq-pts-rulebtns { display: flex; gap: 8px; padding-top: 10px; }

/* Manual entry + blurb cards */
.ffhq-pts-manual { display: grid; gap: 10px; }
.ffhq-pts-blurb { font-size: 12.5px; color: var(--ffhq-muted); line-height: 1.7; }
.ffhq-pts-blurb b { color: var(--ffhq-ink); }

/* LOSAP statement (screen) */
.ffhq-pts-stmtbar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.ffhq-stmt { max-width: 820px; padding: 28px 34px; }
.ffhq-stmt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; border-bottom: 3px solid var(--ffhq-navy); padding-bottom: 14px; }
.ffhq-stmt-head .dept { font-family: var(--ffhq-cond); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ffhq-muted); }
.ffhq-stmt-head h1 { font-family: var(--ffhq-cond); font-size: 22px; font-weight: 600; letter-spacing: .02em; margin: 2px 0; }
.ffhq-stmt-head .sub { font-size: 12.5px; color: var(--ffhq-muted); }
.ffhq-stmt-head .who { text-align: right; }
.ffhq-stmt-head .nm { font-family: var(--ffhq-cond); font-size: 18px; font-weight: 600; }
.ffhq-stmt-head .rk { font-size: 12.5px; color: var(--ffhq-muted); }

.ffhq-stmt-verdict { display: flex; gap: 26px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ffhq-line); flex-wrap: wrap; }
.ffhq-stmt-verdict .l { display: block; font-family: var(--ffhq-cond); font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ffhq-muted); }
.ffhq-stmt-verdict .n { font-family: var(--ffhq-cond); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ffhq-stmt-verdict .v { margin-left: auto; font-family: var(--ffhq-cond); font-size: 15px; font-weight: 700; letter-spacing: .08em; padding: 8px 18px; border-radius: 8px; }
.ffhq-stmt-verdict .v.ok { background: var(--ffhq-ok-bg); color: var(--ffhq-ok-text); border: 1.5px solid var(--ffhq-ok); }
.ffhq-stmt-verdict .v.no { background: var(--ffhq-crit-bg); color: var(--ffhq-crit-text); border: 1.5px solid var(--ffhq-crit); }

.ffhq-stmt-cat { margin-top: 16px; }
.ffhq-stmt-cat h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-family: var(--ffhq-cond); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border: none; padding: 0 0 6px; margin: 0; border-bottom: 2px solid var(--ffhq-line); }
.ffhq-stmt-cat h2 .sum { color: var(--ffhq-muted); font-size: 12px; letter-spacing: .03em; text-transform: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.ffhq-stmt-cat table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ffhq-stmt-cat td { padding: 5px 0; border-bottom: 1px dashed #EEEDE6; }
.ffhq-stmt-cat tr:last-child td { border-bottom: none; }
.ffhq-stmt-cat td.d { width: 120px; color: var(--ffhq-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ffhq-stmt-cat td.p { width: 60px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.ffhq-stmt-total { display: flex; justify-content: space-between; margin-top: 18px; padding: 12px 0; border-top: 3px solid var(--ffhq-navy); font-family: var(--ffhq-cond); font-size: 15px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.ffhq-stmt-empty { padding: 26px 0; color: var(--ffhq-muted); font-size: 13px; }
.ffhq-stmt-foot { margin-top: 14px; font-size: 11.5px; color: var(--ffhq-muted); line-height: 1.6; }

/* Printed page geometry for the invoice document (browser print-to-PDF, no PDF library). */
@page { size: letter; margin: 0.6in; }

/* Print: statement pages print clean — chrome hidden, white paper, no borders. */
@media print {
    .ffhq-sidebar, .ffhq-topbar, .ffhq-tabbar, .ffhq-noprint, #blazor-error-ui { display: none !important; }
    body, .ffhq-shell, .ffhq-main { background: #fff !important; }
    .ffhq-main { padding: 0 !important; max-width: none !important; }
    .ffhq-stmt { border: none; border-radius: 0; max-width: none; padding: 0; }
    .ffhq-stmt-cat { break-inside: avoid; }
    .ffhq-inv { border: none; border-radius: 0; max-width: none; padding: 0; }

    /* Reports print for a board packet, a commission or a grant application. The chart is inline
       SVG, so it prints as vector rather than as the fuzzy bitmap a canvas library would give. */
    .ffhq-rpt { border: none; border-radius: 0; max-width: none; padding: 0; }
    .ffhq-rpt-chart, .ffhq-rpt-summary > div { break-inside: avoid; }
    .ffhq-rpt-table thead { display: table-header-group; }
    .ffhq-rpt-table tr { break-inside: avoid; }

    /* The batch incident-detail document: a cover, then EVERY incident in the range, each starting
       on a fresh sheet. break-before on the section rather than break-after on the previous one, so
       the document ends with the last incident instead of a blank sheet. The legacy page-break-*
       properties ride alongside the modern ones — Chrome honours both, older print engines only the
       legacy pair, and a break that silently does not apply prints two incidents on one page. */
    .ffhq-idb-page { break-before: page; page-break-before: always; margin-top: 0; }

    /* The on-screen card chrome comes off on paper, like the invoice's and the report's. It is not
       cosmetic here: the border, the radius and 24px/30px of padding push a section that fits a
       Letter column over the edge, and a section that spills by 40px costs a whole extra sheet —
       over a 400-call year that is a couple of hundred sheets of a printed annual report. */
    .ffhq-idb-inc { border: none; border-radius: 0; padding: 0; }

    /* The shell is a flex container, and a page break inside one is ignored by print engines that
       do not fragment flex. Chrome does honour it here (verified: 13 sheets with the rule, 10
       without), but block layout is what the fragmentation rules are actually specified over, so
       the document does not depend on that. */
    .ffhq-shell.ffhq-doc, .ffhq-doc .ffhq-main { display: block !important; }
    .ffhq-idb-head, .ffhq-idb-field, .ffhq-idb-tbl tr { break-inside: avoid; }
    .ffhq-idb-tbl thead { display: table-header-group; }
    .ffhq-idb-sub { break-after: avoid; page-break-after: avoid; }
    .ffhq-idb-end { break-before: avoid; page-break-before: avoid; }
}

/* ---------- Printable invoice document ---------- */

.ffhq-inv-bar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.ffhq-inv { max-width: none; padding: 28px 34px; }
.ffhq-inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; border-bottom: 3px solid var(--ffhq-navy); padding-bottom: 14px; }
.ffhq-inv-logo { width: 160px; border-radius: 8px; }
.ffhq-inv-biller { text-align: right; font-size: 12.5px; color: var(--ffhq-muted); line-height: 1.5; }
.ffhq-inv-biller-name { font-family: var(--ffhq-cond); font-size: 15px; font-weight: 700; color: var(--ffhq-ink); }
.ffhq-inv-meta { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--ffhq-line); }
.ffhq-inv-num { text-align: right; }
.ffhq-inv-label { font-family: var(--ffhq-cond); font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ffhq-muted); }
.ffhq-inv-deptname { font-family: var(--ffhq-cond); font-size: 16px; font-weight: 600; }
.ffhq-inv-dates { display: flex; gap: 26px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--ffhq-line); font-size: 13px; }
.ffhq-inv-dates span { display: block; color: var(--ffhq-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.ffhq-inv-lines { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 16px; }
.ffhq-inv-lines th { text-align: left; padding: 8px 0; border-bottom: 2px solid var(--ffhq-line); font-family: var(--ffhq-cond); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ffhq-muted); }
.ffhq-inv-lines td { padding: 8px 0; border-bottom: 1px dashed #EEEDE6; }
.ffhq-inv-lines th.num.r, .ffhq-inv-lines td.num.r { text-align: right; }
.ffhq-inv-total td { border-top: 3px solid var(--ffhq-navy); border-bottom: none; font-weight: 700; font-size: 15px; padding-top: 12px; font-variant-numeric: tabular-nums; }
.ffhq-inv-status { margin-top: 18px; }
.ffhq-inv-status .ffhq-muted { margin-top: 4px; font-size: 12.5px; }
.ffhq-inv-foot { margin-top: 22px; font-size: 11.5px; color: var(--ffhq-muted); line-height: 1.6; }

/* ---------- Reports (index + printable report document) ---------- */

.ffhq-rpt-cat { font-family: var(--ffhq-cond); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ffhq-muted); margin: 22px 0 10px; }
.ffhq-rpt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ffhq-rpt-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; text-decoration: none; color: inherit; }
.ffhq-rpt-card:hover { border-color: var(--ffhq-navy); }
.ffhq-rpt-card .t { font-family: var(--ffhq-cond); font-size: 16px; font-weight: 600; color: var(--ffhq-ink); }
.ffhq-rpt-card .d { font-size: 13px; color: var(--ffhq-muted); line-height: 1.5; }
.ffhq-rpt-card .go { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--ffhq-navy); }

.ffhq-rpt-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.ffhq-rpt-range { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ffhq-rpt-range .f { background: #fff; border: 1px solid var(--ffhq-line); border-radius: 8px; padding: 6px 12px; font-size: 13px; color: var(--ffhq-muted); display: flex; align-items: center; gap: 7px; }
.ffhq-rpt-range .f b { color: var(--ffhq-ink); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.ffhq-rpt-range .f input { border: none; background: transparent; font-size: 13px; color: var(--ffhq-ink); outline: none; padding: 0; }
.ffhq-rpt-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.ffhq-rpt { max-width: none; padding: 28px 34px; }
.ffhq-rpt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; border-bottom: 3px solid var(--ffhq-navy); padding-bottom: 14px; }
.ffhq-rpt-head .dept { font-family: var(--ffhq-cond); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ffhq-muted); }
.ffhq-rpt-head h1 { font-family: var(--ffhq-cond); font-size: 24px; font-weight: 700; letter-spacing: .03em; color: var(--ffhq-ink); margin: 2px 0 0; }
.ffhq-rpt-head .meta { text-align: right; font-size: 13px; }
.ffhq-rpt-head .meta span { display: block; color: var(--ffhq-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.ffhq-rpt-head .meta > div { margin-bottom: 6px; }

.ffhq-rpt-notes { margin: 14px 0 0; font-size: 12.5px; color: var(--ffhq-muted); line-height: 1.6; }
.ffhq-rpt-notes p { margin: 0 0 5px; }
.ffhq-rpt-empty { margin: 28px 0; padding: 22px; border: 1px dashed var(--ffhq-line); border-radius: 8px; text-align: center; font-size: 14px; color: var(--ffhq-muted); }

.ffhq-rpt-summary { display: flex; flex-wrap: wrap; gap: 26px; padding: 16px 0; margin-top: 12px; border-bottom: 1px solid var(--ffhq-line); }
.ffhq-rpt-summary .l { display: block; font-family: var(--ffhq-cond); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ffhq-muted); }
.ffhq-rpt-summary .n { display: block; font-size: 22px; font-weight: 700; color: var(--ffhq-ink); font-variant-numeric: tabular-nums; }
.ffhq-rpt-summary .d { display: block; font-size: 11.5px; color: var(--ffhq-muted); }

.ffhq-rpt-chart { margin: 22px 0; }
.ffhq-rpt-chart .ffhq-chart { width: 100%; height: auto; max-width: 720px; display: block; }
.ffhq-rpt-chartnote { font-size: 11.5px; color: var(--ffhq-muted); margin: 4px 0 0; }
.ffhq-rpt-legend { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ffhq-muted); margin: 0 0 8px; }
.ffhq-rpt-legend .ffhq-ma { margin-left: 0; }

.ffhq-rpt-detail { margin-top: 22px; }
.ffhq-rpt-detail h2 { font-family: var(--ffhq-cond); font-size: 15px; font-weight: 700; letter-spacing: .03em; color: var(--ffhq-ink); margin: 0 0 8px; }
.ffhq-rpt-tableempty { font-size: 13px; color: var(--ffhq-muted); margin: 0; }
.ffhq-rpt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ffhq-rpt-table.compact { max-width: 720px; margin-top: 8px; font-size: 12.5px; }
.ffhq-rpt-table th { text-align: left; padding: 7px 8px 7px 0; border-bottom: 2px solid var(--ffhq-line); font-family: var(--ffhq-cond); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ffhq-muted); }
.ffhq-rpt-table td { padding: 7px 8px 7px 0; border-bottom: 1px dashed #EEEDE6; vertical-align: top; }
/* Right-aligned cells keep their right gap and gain a left one: a right-aligned figure sits hard
   against the cell's right edge, so without the left gap it crowds the column BEFORE it too.
   Zeroing padding-right here (which this rule used to do unconditionally) fused every right-aligned
   column into its neighbour — "879:009:00" for four separate response-time figures, "0Draft" for
   responders + sign-off. Each cell was individually correct, so only rendering caught it. */
.ffhq-rpt-table th.r, .ffhq-rpt-table td.r { text-align: right; padding-left: 16px; font-variant-numeric: tabular-nums; }

/* Only a TRAILING numeric column goes flush to the table edge — the original intent of the rule. */
.ffhq-rpt-table th.r:last-child, .ffhq-rpt-table td.r:last-child { padding-right: 0; }
.ffhq-rpt-foot { margin-top: 22px; padding-top: 10px; border-top: 1px solid var(--ffhq-line); font-size: 11.5px; color: var(--ffhq-muted); line-height: 1.6; }

/* ---------- Batch incident detail document (cover + one incident per page) ---------- */

.ffhq-idb-page { margin-top: 18px; }
.ffhq-idb-inc { background: #fff; border: 1px solid var(--ffhq-line); border-radius: 12px; padding: 24px 30px; }
.ffhq-idb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; border-bottom: 2px solid var(--ffhq-navy); padding-bottom: 12px; }
.ffhq-idb-head .n { font-family: var(--ffhq-cond); font-size: 19px; font-weight: 700; letter-spacing: .03em; color: var(--ffhq-ink); }
.ffhq-idb-head .t { font-size: 14px; color: var(--ffhq-ink); margin-top: 2px; }
.ffhq-idb-head .s { font-size: 12px; color: var(--ffhq-muted); margin-top: 2px; }
.ffhq-idb-head .meta { text-align: right; font-size: 13px; }
.ffhq-idb-head .meta > div { margin-bottom: 5px; }
.ffhq-idb-head .meta span { display: block; color: var(--ffhq-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }

.ffhq-idb-correction { margin: 12px 0 0; font-size: 12.5px; color: var(--ffhq-muted); font-style: italic; }

.ffhq-idb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 22px; margin-top: 14px; }
.ffhq-idb-field.wide { grid-column: 1 / -1; }
.ffhq-idb-field span { display: block; font-family: var(--ffhq-cond); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ffhq-muted); }
.ffhq-idb-field b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ffhq-ink); }

.ffhq-idb-sub { font-family: var(--ffhq-cond); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ffhq-muted); margin: 20px 0 6px; }
/* pre-wrap: a narrative typed with line breaks prints as it was written. */
.ffhq-idb-narrative { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ffhq-ink); white-space: pre-wrap; }
.ffhq-idb-narrative.none, .ffhq-idb-none { margin: 0; font-size: 13px; color: var(--ffhq-muted); font-style: italic; }
/* A single labelled line on a printed report - the non-fire agencies, which are a list of types
   rather than a table's worth of columns. */
.ffhq-idb-line { margin: 8px 0 0; font-size: 13px; }

.ffhq-idb-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.ffhq-idb-tbl th { text-align: left; padding: 6px 8px 6px 0; border-bottom: 2px solid var(--ffhq-line); font-family: var(--ffhq-cond); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ffhq-muted); }
.ffhq-idb-tbl td { padding: 6px 8px 6px 0; border-bottom: 1px dashed #EEEDE6; vertical-align: top; }
/* Right-aligned but NOT flush: the staffing column sits in the MIDDLE of the units table, and
   zeroing its right padding ran "STAFFING" straight into "EN ROUTE" and the figure into the next
   cell's em dash — two columns that read as one. Only a genuinely last column goes flush. */
.ffhq-idb-tbl th.r, .ffhq-idb-tbl td.r { text-align: right; font-variant-numeric: tabular-nums; }
.ffhq-idb-tbl th.r:last-child, .ffhq-idb-tbl td.r:last-child { padding-right: 0; }

.ffhq-idb-end { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--ffhq-line); font-size: 11.5px; color: var(--ffhq-muted); }

/* ---------- Apparatus check detail (one completed check per page) ---------- */

.ffhq-chk { background: #fff; border: 1px solid var(--ffhq-line); border-radius: 12px; padding: 24px 30px; }
.ffhq-chk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; border-bottom: 2px solid var(--ffhq-navy); padding-bottom: 12px; }
.ffhq-chk-title h2 { margin: 0; font-family: var(--ffhq-cond); font-size: 19px; font-weight: 700; letter-spacing: .03em; color: var(--ffhq-ink); }
.ffhq-chk-tpl { font-size: 12.5px; color: var(--ffhq-muted); }
/* The verdict is the first thing read and the reason the page was printed, so it carries weight
   rather than sitting as one more field in the grid. */
.ffhq-chk-verdict { font-family: var(--ffhq-cond); font-size: 15px; font-weight: 700; letter-spacing: .06em; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.ffhq-chk-verdict.ok { background: #E8F4EC; color: #1C6B3A; }
.ffhq-chk-verdict.bad { background: #FBEAEA; color: #A3231F; }

.ffhq-chk-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 22px; margin: 14px 0 0; }
.ffhq-chk-meta dt { font-family: var(--ffhq-cond); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ffhq-muted); }
.ffhq-chk-meta dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ffhq-ink); }

.ffhq-chk-group { margin-top: 18px; }
.ffhq-chk-group h3 { margin: 0 0 4px; font-family: var(--ffhq-cond); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ffhq-muted); }
.ffhq-chk-items { width: 100%; border-collapse: collapse; font-size: 13px; }
.ffhq-chk-items td { padding: 5px 8px 5px 0; border-bottom: 1px dashed #EEEDE6; vertical-align: top; }
.ffhq-chk-items td.lbl { color: var(--ffhq-ink); }
.ffhq-chk-items td.lbl .det { display: block; font-size: 11.5px; color: var(--ffhq-muted); }
.ffhq-chk-items td.res { width: 62px; text-align: right; padding-right: 0; font-family: var(--ffhq-cond); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: #1C6B3A; }
.ffhq-chk-items tr.fail td.res { color: #A3231F; }
.ffhq-chk-items tr.fail td.lbl { font-weight: 600; }
/* The finding hangs under its item rather than beside it: a note is a sentence, and a sentence in
   a narrow cell wraps into an unreadable column. */
.ffhq-chk-items tr.note td { border-bottom: 1px dashed #EEEDE6; padding: 0 0 6px 14px; font-size: 12.5px; color: var(--ffhq-ink); }
.ffhq-chk-items tr.note .txt { font-style: italic; }
.ffhq-chk-items tr.note .sev { display: inline-block; margin-left: 8px; font-family: var(--ffhq-cond); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: #A3231F; }
.ffhq-chk-retired { display: inline-block; margin-left: 6px; font-family: var(--ffhq-cond); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ffhq-muted); border: 1px solid var(--ffhq-line); border-radius: 999px; padding: 0 6px; }

/* ---------- Incident list filter bar (mockup 2's .filters row) ---------- */

.ffhq-filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.ffhq-filterbar .f { background: #fff; border: 1px solid var(--ffhq-line); border-radius: 8px; padding: 6px 12px; font-size: 13px; color: var(--ffhq-muted); display: flex; align-items: center; gap: 7px; }
.ffhq-filterbar .f b { color: var(--ffhq-ink); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.ffhq-filterbar .f input, .ffhq-filterbar .f select { border: none; background: transparent; font-size: 13px; color: var(--ffhq-ink); outline: none; padding: 0; max-width: 170px; }
.ffhq-filterbar .search { flex: 1; min-width: 200px; background: #fff; border: 1px solid var(--ffhq-line); border-radius: 8px; padding: 8px 12px; font-size: 13px; color: var(--ffhq-ink); }
.ffhq-filterbar .search:focus { outline: 2px solid var(--ffhq-navy); border-color: var(--ffhq-navy); }
.ffhq-filterbar .clear { background: none; border: none; color: var(--ffhq-navy); font-size: 12.5px; cursor: pointer; text-decoration: underline; padding: 4px 2px; }

/* Platform console */
/* RM Ventures back-office. Deliberately distinct from the department app: a slate top-bar
   instead of the navy department sidebar, an amber accent, and no ffhq department chrome —
   so it is unmistakably the operator console. Reuses ffhq-* primitives (chips, tables). */
:root {
    --rmv-ink: #E8EBF0;
    --rmv-slate: #10151E;
    --rmv-slate-2: #1A222F;
    --rmv-slate-3: #232E3E;
    --rmv-line: #2C3849;
    --rmv-amber: #E0A83B;
    --rmv-accent: #4C8DD6;
}

.rmv-shell { min-height: 100vh; background: #EEF0F4; font-family: 'Segoe UI', system-ui, sans-serif; color: var(--ffhq-ink); }

.rmv-topbar {
    display: flex; align-items: center; gap: 26px; background: var(--rmv-slate);
    color: var(--rmv-ink); padding: 0 26px; height: 60px; border-bottom: 3px solid var(--rmv-amber);
}
.rmv-brand { display: flex; align-items: center; gap: 11px; }
.rmv-mark {
    width: 38px; height: 38px; border-radius: 9px; background: var(--rmv-amber); color: var(--rmv-slate);
    display: grid; place-items: center; font-family: var(--ffhq-cond);
    font-weight: 700; font-size: 16px; letter-spacing: .02em;
}
.rmv-title { font-family: var(--ffhq-cond); font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.rmv-sub { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--rmv-amber); }

.rmv-nav { display: flex; gap: 4px; flex: 1; }
.rmv-nav a {
    color: #9AA6B6; text-decoration: none; padding: 8px 15px; border-radius: 8px;
    font-family: var(--ffhq-cond); font-size: 14px; letter-spacing: .03em;
}
.rmv-nav a:hover { background: var(--rmv-slate-2); color: #fff; }
.rmv-nav a.active { background: var(--rmv-slate-3); color: #fff; box-shadow: inset 0 -2px 0 var(--rmv-amber); }

.rmv-user { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.rmv-username { color: #DDE3EA; font-weight: 600; }
.rmv-role { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--rmv-slate); background: var(--rmv-amber); border-radius: 5px; padding: 2px 7px; font-family: var(--ffhq-cond); }
.rmv-signout { background: none; border: 1px solid var(--rmv-line); color: #9AA6B6; border-radius: 7px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; }
.rmv-signout:hover { border-color: var(--rmv-amber); color: #fff; }

.rmv-main { max-width: 1180px; margin: 0 auto; padding: 26px 26px 60px; }

.rmv-pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.rmv-h1 { font-family: var(--ffhq-cond); font-size: 24px; font-weight: 600; letter-spacing: .02em; }
.rmv-crumb { color: var(--ffhq-muted); font-size: 13px; margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rmv-muted { color: var(--ffhq-muted); }
.rmv-back { font-size: 12.5px; color: var(--rmv-accent); text-decoration: none; font-weight: 600; }
.rmv-back:hover { text-decoration: underline; }
.rmv-headactions { display: flex; gap: 10px; }

.rmv-btn {
    display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: 8px;
    padding: 9px 17px; font-family: var(--ffhq-cond); font-size: 14px;
    letter-spacing: .04em; cursor: pointer; text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.rmv-btn.primary { background: var(--ffhq-navy); color: #fff; }
.rmv-btn.primary:hover { background: #1E3450; box-shadow: 0 2px 8px rgba(27, 44, 66, .25); }
.rmv-btn.ghost { background: #fff; color: var(--ffhq-navy); border: 1px solid var(--ffhq-line); }
.rmv-btn.ghost:hover { border-color: var(--ffhq-navy); }
.rmv-btn.danger { background: #fff; color: var(--ffhq-crit); border: 1px solid var(--ffhq-crit); }
.rmv-btn.danger:hover { background: var(--ffhq-crit-bg); }
.rmv-btn:disabled { opacity: .55; cursor: default; box-shadow: none; }

.rmv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.rmv-kpi { background: #fff; border: 1px solid var(--ffhq-line); border-radius: 10px; padding: 15px 18px; border-top: 4px solid var(--ffhq-navy); }
.rmv-kpi.attn { border-top-color: var(--ffhq-warn); }
.rmv-kpi .n { font-family: var(--ffhq-cond); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rmv-kpi .l { font-size: 12px; color: var(--ffhq-muted); text-transform: uppercase; letter-spacing: .07em; font-family: var(--ffhq-cond); }
.rmv-kpi .d { font-size: 12px; color: var(--ffhq-muted); margin-top: 3px; }

.rmv-card { background: #fff; border: 1px solid var(--ffhq-line); border-radius: 10px; margin-bottom: 18px; }
.rmv-card h2 { font-family: var(--ffhq-cond); font-size: 14px; font-weight: 600; letter-spacing: .06em; padding: 13px 18px; border-bottom: 1px solid var(--ffhq-line); margin: 0; }
.rmv-empty { padding: 26px 18px; text-align: center; color: var(--ffhq-muted); font-size: 13.5px; }
.rmv-flash { margin-bottom: 16px; }

.rmv-statusbars { padding: 16px 18px; display: grid; gap: 12px; }
.rmv-statusbar { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.rmv-statusbar .ffhq-chip { width: 92px; text-align: center; margin: 0; }
.rmv-statusbar .bar { flex: 1; height: 10px; background: #EFEEE8; border-radius: 99px; overflow: hidden; }
.rmv-statusbar .bar i { display: block; height: 100%; border-radius: 99px; }
.rmv-statusbar b { width: 34px; text-align: right; font-variant-numeric: tabular-nums; }

/* Approvals queue */
.rmv-appcard { background: #fff; border: 1px solid var(--ffhq-line); border-radius: 10px; border-left: 4px solid var(--ffhq-warn); padding: 16px 18px; margin-bottom: 14px; }
.rmv-appcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rmv-appcard-name { font-family: var(--ffhq-cond); font-size: 18px; font-weight: 600; letter-spacing: .02em; }
.rmv-appcard-meta { color: var(--ffhq-muted); font-size: 12.5px; margin-top: 2px; }
.rmv-appcard-chief { margin: 12px 0; padding: 10px 0; border-top: 1px dashed var(--ffhq-line); border-bottom: 1px dashed var(--ffhq-line); }
.rmv-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ffhq-muted); font-family: var(--ffhq-cond); margin-bottom: 3px; }
.rmv-chief { font-size: 13.5px; font-weight: 600; }
.rmv-chief .rmv-muted { font-weight: 400; margin-left: 6px; }
.rmv-appcard-actions { display: flex; gap: 10px; margin-top: 4px; }

/* Directory + tables */
.rmv-filterbar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.rmv-search { flex: 1; min-width: 220px; background: #fff; border: 1px solid var(--ffhq-line); border-radius: 8px; padding: 9px 13px; font-size: 13.5px; color: var(--ffhq-ink); }
.rmv-search:focus { outline: 2px solid var(--ffhq-navy); border-color: var(--ffhq-navy); }
.rmv-statusfilter { display: flex; gap: 6px; }
.rmv-statusfilter button { background: #fff; border: 1px solid #C9C6BA; border-radius: 99px; padding: 6px 14px; font: inherit; font-size: 12.5px; color: #5C584F; cursor: pointer; user-select: none; }
.rmv-statusfilter button:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: 2px; }
.rmv-statusfilter button.on { background: var(--ffhq-navy); border-color: var(--ffhq-navy); color: #fff; font-weight: 600; }
.rmv-tbl td { white-space: nowrap; }
.rmv-rowlink { cursor: pointer; }
.rmv-rowlink:hover td { background: #F5F7FA !important; }
.rmv-supportcell { white-space: nowrap; }
.rmv-supportcell .ffhq-linklike { margin-right: 12px; font-size: 12.5px; }
.rmv-inlineform { display: inline; }
.rmv-loginas { font-weight: 600; color: var(--rmv-accent) !important; }

/* Department detail */
.rmv-detailcols { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .rmv-detailcols { grid-template-columns: 1fr; } }
/* The two NERIS cards ride side by side across the FULL page width, below .rmv-detailcols rather than
   inside its 340px rail — at rail width, 50/50 gave each about 160px and wrapped the note text to two
   or three words a line. minmax(0,1fr) rather than 1fr so the failures table shrinks its column
   instead of forcing the pair wider than the page.

   Stacks at 1000px, the same breakpoint .rmv-detailcols uses. Matching it means the page has one
   layout change rather than two, instead of the NERIS row collapsing on its own while the columns
   above it are still side by side. */
.rmv-nerispair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .rmv-nerispair { grid-template-columns: minmax(0, 1fr); } }
/* The failures table is the one thing here that can outgrow a half-width card. */
.rmv-nerispair .rmv-table { display: block; overflow-x: auto; }

.rmv-settings { padding: 14px 18px; display: grid; gap: 12px; }
/* CORE SETTINGS is a full-width card now, so its four fields sit in a ROW. Left as the single stacked
   column it inherited from the 340px rail, the card would be a page-wide box with a ribbon of inputs
   down its left edge and nothing beside them.

   WEIGHTED, not equal. auto-fit with a uniform floor gave all four the same width, which truncated
   "Pine Valley Volunteer Fire Department" to "Pine Valley Volunteer Fire Depa" while STATE — two
   characters, always — sat in an equally wide box. The name is the longest value on the page and the
   state is the shortest, so the tracks say so. Time zone gets room for the longest label on the list
   ("Hawaii-Aleutian — Adak") plus the select's own chevron.

   minmax(0, …) on every track: without the 0 floor, a long department name sets the track's minimum
   to its own content width and pushes the row wider than the card. The save button takes a full-width
   row of its own (grid-column: 1/-1) so it never lands mid-row looking like a fifth field. */
.rmv-settings-wide { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 0.55fr) minmax(0, 1.35fr); gap: 12px 18px; align-items: end; }
.rmv-settings-wide .rmv-settings-save { grid-column: 1 / -1; }
/* Two up, then stacked. Below ~900px four tracks put the name back to a truncating width. */
@media (max-width: 900px) { .rmv-settings-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .rmv-settings-wide { grid-template-columns: minmax(0, 1fr); } }
/* Buttons inside the settings grid keep their natural width instead of stretching. */
.rmv-settings .rmv-btn, .rmv-settings .ffhq-btn { justify-self: start; }
.rmv-detailcol { white-space: normal; max-width: 40ch; color: var(--ffhq-muted); font-size: 12.5px; }
/* One-line explanation under a card heading. */
.rmv-cardnote { padding: 0 18px 10px; font-size: 12.5px; }
/* Billing actions: the current-state line above a control, and its submit under the inputs. */
.rmv-actnow { font-size: 13px; margin-bottom: 8px; }
.rmv-actbtn { margin-top: 10px; }
/* Adjustment reasons answer "why is this department paying less than list?", so they wrap in full
   instead of running off the side. The element qualifier is needed: .rmv-tbl td's nowrap outranks
   a bare single-class selector. */
.rmv-tbl td.rmv-wrapcell { white-space: normal; min-width: 24ch; }
/* Code rows carry several actions (edit / deactivate / delete), so they need breathing room. */
.rmv-tbl td.rmv-rowacts .ffhq-linklike { margin-right: 12px; font-size: 12.5px; }
/* The inline code editor spans a whole row, so its cell behaves as a panel, not a table cell
   (.rmv-tbl td's nowrap would otherwise run the form off the side). */
.rmv-tbl td.rmv-editcell { white-space: normal; padding: 0; }
.rmv-editbtns { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
/* Label/value pairs (billing summary). */
.rmv-kv { padding: 14px 18px; display: grid; gap: 9px; }
.rmv-kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rmv-kv span { color: var(--ffhq-muted); font-size: 12.5px; }
.rmv-kv b { font-size: 13px; text-align: right; }

/* Impersonation banner (app-wide while a support session is active) */
.ffhq-imp-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1200;
    display: flex; align-items: center; gap: 12px;
    background: repeating-linear-gradient(45deg, #7A1E12, #7A1E12 12px, #8C2417 12px, #8C2417 24px);
    color: #fff; padding: 9px 18px; font-size: 13.5px; box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.ffhq-imp-warn { font-size: 17px; }
.ffhq-imp-text { flex: 1; }
.ffhq-imp-text b { font-weight: 700; }
.ffhq-imp-exit button {
    background: #fff; color: #7A1E12; border: none; border-radius: 7px; padding: 6px 16px;
    font-family: var(--ffhq-cond); font-weight: 700; font-size: 13px;
    letter-spacing: .04em; cursor: pointer;
}
.ffhq-imp-exit button:hover { background: #FFE8E3; }
/* Push the department shell down so the fixed banner never covers content. */
.ffhq-shell:has(.ffhq-imp-banner) { padding-top: 40px; }

/* ---- Mobile app shell: top bar, bottom tab bar, and the sidebar as the "More" screen
        (CSS-only via #ffhq-navtoggle; the tab bar's rules are in the UX11 navigation section) ---- */
.ffhq-topbar { display: none; }

@media (max-width: 820px) {
    .ffhq-shell { flex-direction: column; }

    /* Page title on the left, the account avatar (a 44px target) on the right. There is no
       hamburger: the tab bar's More is the one way into the menu. */
    .ffhq-topbar {
        display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-shrink: 0;
        position: sticky; top: 0; z-index: 45; height: 52px; padding: 0 4px 0 16px;
        background: var(--ffhq-navy-deep); color: #fff;
    }

    /* ---- Editing panels become bottom sheets ---------------------------
       In the two-column layouts the editing panel is a sibling column. Collapsing to one column
       on a phone dropped it BELOW the list, so tapping "Add" produced no visible change and the
       form sat several screens down — it read as a dead button.

       Pages opt in with .ffhq-sheet, and only while a panel is actually open: on Personnel the
       drawer is always in the markup (it holds the empty "select a member" state), so styling
       .ffhq-drawer itself would cover the roster permanently. */
    /* THE PAGE BEHIND AN OPEN SHEET MUST NOT SCROLL. The sheet is a fixed overlay that scrolls
       internally, and the document behind it stayed scrollable — so there were two scrollbars and
       the gesture moved the wrong one. On a short screen the sheet's action row (Save / Cancel /
       Retire) sits below the fold: you would scroll to reach it, the page behind would move instead,
       the sheet would not, and the button was simply unreachable-looking. Measured on the apparatus
       edit sheet at 390x420: 809px of the sheet hidden, Save among it.

       :has() rather than a body class because a sheet is opened by Blazor state, not by JS that
       could toggle a class — and .ffhq-sheet is applied ONLY while a panel is open (see above), so
       its presence in the DOM is exactly the condition. Already used elsewhere in this file.

       BOTH html AND body, and that is not belt-and-braces. document.scrollingElement here is HTML,
       so `body { overflow: hidden }` alone clips the body box while the document keeps scrolling
       underneath — measured: body overflow hidden, html still scrolling, two scrollbars unchanged.
       The html selector is the one doing the work; body is kept so the fix survives the scroller
       moving. */
    html:has(.ffhq-sheet),
    body:has(.ffhq-sheet) { overflow: hidden; }

    .ffhq-sheet {
        /* top: auto IS THE "SHEET HANGS FROM THE TOP" FIX. Editing panels carry .ffhq-drawer too,
           whose desktop rule is position: sticky; top: 16px. This rule set bottom: 0 but never
           cleared that top, so with both edges set and the height capped by max-height, top won:
           the sheet hung from y=16 and left an ~85px strip of undimmed page under it (measured on
           Personnel at 390x844: top 16, bottom 759). Cleared, the sheet sits on the bottom edge and
           is as tall as its content, up to the cap. */
        position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 70;
        /* dvh, NOT vh. On iOS Safari and Chrome Android vh resolves against the LARGEST viewport —
           the one with the URL bar retracted — so a sheet pinned to bottom:0 can extend underneath
           the browser chrome and put its action row off-screen with no way to scroll to it. That is
           why the symptom was intermittent: it depends on whether the URL bar is expanded, which
           changes as you scroll. dvh tracks the viewport actually visible right now.
           The vh line stays first as the fallback for browsers without dvh. */
        max-height: 88vh;
        max-height: 88dvh;
        overflow-y: auto;
        background: var(--ffhq-paper);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -14px 40px rgba(0, 0, 0, .34);
        padding: 0 12px calc(16px + env(safe-area-inset-bottom, 0px));
        animation: ffhq-sheet-up .2s ease-out;

        /* THESE THREE RESETS ARE THE FIX, NOT TIDYING. An older, unrelated component — the
           apparatus-check severity sheet — already owns the class name `.ffhq-sheet` further up this
           file, where it is a narrow CENTRED panel: `left: 50%`, `transform: translateX(-50%)`,
           `max-width: 480px`.
           This rule wins `left` because it comes later, but it never touched `transform` or
           `max-width`, so both survived the cascade. The result on a phone was a full-width sheet
           still shifted half its own width to the left — hanging off the screen edge and
           unreachable, exactly as reported.
           Long term the two components should not share a class name at all; until then these must
           stay, and anything added to the rule above must be neutralised here. */
        transform: none;
        max-width: none;
        width: auto;
    }
    /* Above the tab bar (50) and the nav drawer (60): an open editor is the top layer. */
    @keyframes ffhq-sheet-up { from { transform: translateY(14px); opacity: .4; } to { transform: none; opacity: 1; } }

    /* The grab handle is drawn in the header's top padding (::before), so it scrolls with nothing
       and needs no markup; the header stays sticky with the close button in it. */
    .ffhq-sheet .ffhq-sheet-head {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        position: sticky; top: 0; z-index: 1;
        margin: 0 -12px 10px; padding: 14px 4px 2px 16px;
        background: var(--ffhq-paper); border-bottom: 1px solid var(--ffhq-line);
    }
    .ffhq-sheet .ffhq-sheet-head::before {
        content: ""; position: absolute; top: 6px; left: 50%; width: 38px; height: 4px;
        margin-left: -19px; border-radius: 99px; background: #B9B5A8;
    }
    .ffhq-sheet .ffhq-sheet-head .t {
        font-family: var(--ffhq-cond); font-size: 16px; letter-spacing: .04em;
        text-transform: uppercase; color: var(--ffhq-navy); min-width: 0;
    }
    /* 44x44 — it was 32x27, the only way out of the sheet besides the backdrop. */
    .ffhq-sheet-close {
        width: 44px; height: 44px; flex: none; padding: 0;
        display: inline-flex; align-items: center; justify-content: center;
        background: none; border: 0; line-height: 1; cursor: pointer;
        color: #5C584F; border-radius: 8px;
    }
    .ffhq-sheet-close:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: -2px; }

    /* The page behind the sheet is dimmed, and the dim sits over the sticky top bar (45) and the nav
       drawer layer (60) but under the sheet (70) — the whole page recedes, not just the part below
       the bar. Tapping it closes the sheet (PanelDialog wires the click). */
    .ffhq-dialog-dim { z-index: 66; background: rgba(16, 24, 40, .55); }

    @media (prefers-reduced-motion: reduce) { .ffhq-sheet { animation: none; } }

    .ffhq-topbar-title { font-family: var(--ffhq-cond); font-weight: 600; letter-spacing: .04em; font-size: 16px; }

    /* The sidebar becomes the "More" screen: the whole viewport ABOVE the tab bar, opened by the
       bar's More tab. It used to be a 264px drawer sliding in from the left over a scrim; with the
       grouped two-column list it needs the full width, so there is nothing left to dim and the
       scrim (.ffhq-nav-backdrop) is gone. It stops at the top of the bar rather than covering it,
       which is what keeps the bar usable — More again closes it, and any other tab goes straight
       there.

       visibility, not just a transform: an off-screen drawer's links were still in the tab order,
       so a keyboard walked through twenty invisible links. Hidden, they are out of it. The
       visibility flip is delayed on the way out so the fade can finish.

       z-index 60 as before: over the sticky top bar (45) and level with nothing else; an open
       editing sheet (70) and its dim (66) cannot be on screen at the same time as this.

       align-self: stretch IS NOT TIDYING. The desktop rule's align-self: flex-start also applies to
       a fixed box, where it means "shrink to the content" even with top and bottom both set — the
       screen came out 540px tall on an 844px phone, with the page showing through under it. */
    .ffhq-sidebar {
        position: fixed; top: 0; left: 0; right: 0; bottom: calc(68px + env(safe-area-inset-bottom, 0px));
        width: auto; height: auto; align-self: stretch; z-index: 60;
        padding-top: env(safe-area-inset-top, 0px);
        visibility: hidden; opacity: 0; transform: translateY(10px);
        transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
    }
    .ffhq-navtoggle:checked ~ .ffhq-sidebar { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    @media (prefers-reduced-motion: reduce) { .ffhq-sidebar { transition: none; transform: none; } }

    /* Bottom padding clears the fixed tab bar: its 68px, plus the 20px of air the last control on a
       page had above the bar when it first shipped (that bar was 54px tall, hence the 74px this
       rule carried then), plus the home indicator. A control behind the bar cannot be tapped, so
       this figure and the bar's height (.ffhq-tabbar, UX11 navigation section) change together. */
    .ffhq-main {
        max-width: none; width: 100%; min-width: 0;
        padding: 16px 14px calc(88px + env(safe-area-inset-bottom, 0px));
    }
    /* Flex/grid children default to min-width:auto and stretch to their widest content
       (e.g. a wide table), overflowing the viewport. Let the chain shrink instead. */
    .ffhq-card, .ffhq-dashcols, .ffhq-cols, .ffhq-cal-cols, .ffhq-pts-cols,
    .ffhq-apparatus-cols, .ffhq-account-grid, .ffhq-expgrid, .ffhq-apparatus-main { min-width: 0; }
    .ffhq-dashcols, .ffhq-cols, .ffhq-cal-cols, .ffhq-pts-cols { grid-template-columns: minmax(0, 1fr); }
    /* Wide data tables scroll in place instead of stretching the page. */
    .ffhq-main table { display: block; width: 100%; overflow-x: auto; }

    /* KPI tiles ride 2-up on phones — four full-width tiles ate the whole first screen. */
    .ffhq-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ffhq-kpi { padding: 12px 14px; }
    .ffhq-kpi .n { font-size: 24px; }

    /* Stacked, single-column time fields (Dispatched / Answered / On scene / Cleared). */

    /* Tables opted into cards render each row as a labelled stacked card — no side-scroll. */
    .ffhq-tbl-cards, .ffhq-tbl-cards tbody { display: block; overflow: visible; }
    .ffhq-tbl-cards thead { display: none; }
    .ffhq-tbl-cards tr {
        display: block; background: #fff; border: 1px solid var(--ffhq-line);
        border-radius: 10px; padding: 2px 13px; margin-bottom: 10px;
    }
    .ffhq-tbl-cards tbody tr:hover td { background: none; }
    .ffhq-tbl-cards td {
        display: flex; justify-content: space-between; align-items: center; gap: 14px;
        white-space: normal; text-align: right; padding: 7px 0; border: none;
    }
    .ffhq-tbl-cards td:not(:first-child) { border-top: 1px dashed #EEEDE6; }
    /* 12px: these labels were 10.5px, under the 11.5px floor the rest of the phone layer keeps. */
    .ffhq-tbl-cards td::before {
        content: attr(data-label); flex-shrink: 0; text-align: left;
        font-family: var(--ffhq-cond); font-size: 12px; font-weight: 600;
        text-transform: uppercase; letter-spacing: .07em; color: var(--ffhq-muted);
    }
    .ffhq-tbl-cards td.ffhq-noaction { display: none; }
    .ffhq-tbl-cards td.ffhq-tbl-action { justify-content: flex-end; }
    .ffhq-tbl-cards td.ffhq-tbl-action::before { content: none; }
    .ffhq-tbl-cards td.ffhq-tbl-action .ffhq-btn { width: 100%; }
    .ffhq-tbl-cards td.ffhq-empty { display: block; text-align: center; }
    .ffhq-tbl-cards td.ffhq-empty::before { content: none; }
    /* The expanded detail panel is a full-width block inside the card, not a labelled field. */
    .ffhq-tbl-cards tr.ffhq-detailrow td { display: block; text-align: left; }
    .ffhq-tbl-cards tr.ffhq-detailrow td::before { content: none; }
}

/* ---- Native-app affordances (capacitor-bridge.js adds .capacitor on the native shell) ---- */
.capacitor-only { display: none; }
.capacitor .capacitor-only { display: block; }
.capacitor .auth-webonly { display: none; }
/* Inline variants for use inside a label, where display:block would break the row. */
.capacitor-only-inline { display: none; }
.capacitor .capacitor-only-inline { display: inline; }
.capacitor .auth-webonly-inline { display: none; }

/* The biometric lock overlay that lived here is gone. It cost a Face ID prompt on every
   cold start and guarded a session the phone lock screen already guards; the opt-in now buys a
   persistent session instead. See the note in App.razor before adding anything like it back. */

.ffhq-faceid { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; margin: 0; }
.ffhq-faceid .hint { display: block; color: var(--ffhq-muted); font-size: 12.5px; margin-top: 3px; font-weight: 400; }
.ffhq-faceid input { width: 20px; height: 20px; accent-color: var(--ffhq-navy); flex-shrink: 0; }

/* ---- Billing: Square Web Payments SDK card entry iframe host ---- */
/* The card form is capped even though its card is now full width. Stripe's Payment Element lays its
   fields out to whatever room it is given, and a card number stretched across a 1600px monitor reads
   as a bug, not as generosity. 560px is about a comfortable form column. */
.ffhq-sq-card { min-height: 90px; margin: 10px 0; padding: 10px; border: 1px solid var(--ffhq-border, #d8d5cc); border-radius: 8px; max-width: 560px; }
#sq-email { max-width: 560px; }

/* Billing actions tab strip in the platform console. Reuses .ffhq-tabs wholesale — the console had
   no tab pattern of its own, and inventing a second one so the two could drift apart is exactly the
   sprawl this grouping exists to undo. Only the spacing is adjusted: this strip sits INSIDE a card
   under its explanatory note, not at the top of a page. */
.rmv-billtabs { margin-top: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.rmv-billtabs button { font-size: 13px; }

/* ---------- Water supply (hydrants) ---------- */

.ffhq-hyd { margin-bottom: 10px; }
/* The class swatch is read before any text on this screen, so it leads the row. */
.ffhq-hyd-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; border: 1px solid rgba(0,0,0,.25); vertical-align: middle; }
.ffhq-hyd-line { font-size: 14.5px; }
.ffhq-hyd-flow { margin-top: 8px; font-family: var(--ffhq-cond); font-size: 13px; font-weight: 700; letter-spacing: .03em; color: var(--ffhq-ink); }
/* The row a department is actually measured against, in the 1720 table. */
.ffhq-zone-current { background: #F4F2EA; font-weight: 600; }

/* The demand-zone declaration on the reports index. Sits above the report list because the NFPA
   1720 report cannot run without it — a parameter, not a preference. */
.ffhq-zonecard { margin-bottom: 18px; }
.ffhq-zonecard .ffhq-rpt-table { width: 100%; }

/* ---- Attachments ---------------------------------------------------------------------------
   The file list under a report, a member's record, an apparatus. Deliberately a list rather than a
   gallery: most attachments are documents, and a grid of identical PDF glyphs is harder to scan
   than filenames with captions under them. */
.ffhq-filelist { display: grid; gap: 10px; }
.ffhq-file {
    display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
    padding: 10px; border: 1px solid var(--ffhq-line); border-radius: 10px; background: #fff;
}
.ffhq-file .thumb {
    width: 56px; height: 56px; border-radius: 8px; overflow: hidden; display: flex;
    align-items: center; justify-content: center; background: var(--ffhq-bg);
    border: 1px solid var(--ffhq-line); text-decoration: none;
}
.ffhq-file .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ffhq-file .thumb .glyph {
    font-family: var(--ffhq-cond); font-size: 11px; font-weight: 700; letter-spacing: .06em;
    color: var(--ffhq-muted);
}
.ffhq-file .body { min-width: 0; }
.ffhq-file .name {
    font-weight: 600; word-break: break-all; color: inherit; text-decoration: none;
}
.ffhq-file .name:hover { text-decoration: underline; }
.ffhq-file .caption { font-size: 13px; margin-top: 2px; }
.ffhq-file .meta { font-size: 12px; color: var(--ffhq-muted); margin-top: 4px; }
.ffhq-file .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.ffhq-filehistory { display: grid; gap: 4px; margin-top: 8px; }
.ffhq-filehistory .r {
    display: flex; justify-content: space-between; gap: 12px; font-size: 12px;
    color: var(--ffhq-muted); padding: 3px 0; border-bottom: 1px dashed var(--ffhq-line);
}

/* On a phone the thumbnail and the actions each need their own row — three columns at 380px wide
   squeezes the filename to about six characters. */
@media (max-width: 560px) {
    .ffhq-file { grid-template-columns: 44px 1fr; }
    .ffhq-file .thumb { width: 44px; height: 44px; }
    .ffhq-file .actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---- Authority groups (who may do what) --------------------------------
   A card per group with a one-line summary, and a dialog with a level per
   area. Ten dropdowns in two columns on a desktop, one on a phone: a chief
   sets these up once, usually sitting at a station computer. */
.ffhq-authsummary {
    text-transform: none;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ffhq-ink, #274060);
}

.ffhq-authgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px 16px;
}

.ffhq-authgrid .r {
    display: grid;
    grid-template-columns: 1fr 140px;
    align-items: center;
    gap: 8px;
}

.ffhq-authgrid .r .a {
    text-transform: none;
    font-size: 13px;
}

.ffhq-authpowers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 6px 16px;
}

/* One power's checkbox row. Its OWN name: this was .ffhq-check until 2026-11, which is also the
   truck-check runner's column, and this rule's align-items: center broke the runner at every
   width (see .ffhq-check above). */
.ffhq-authcheck {
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
    font-size: 13px;
}

/* The checkbox rule that bit us on the crew step: scope the size so the
   .ffhq-fld input { width:100% } rule cannot stretch it and push the label
   out of view. Same specificity plus a later source position wins. */
.ffhq-authcheck input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    accent-color: var(--ffhq-navy, #274060);
}

/* Ours, shown beside a department's own incident number. Smaller and quieter:
   theirs is what they wrote on the run sheet and what NERIS was filed with,
   ours is the one support asks for on the phone. Never hidden — a chief has to
   be able to read it off the screen they are already on. */
/* Quieter by colour, not opacity, and never under 11.5px: 0.72em of a 13px table cell was 9.4px,
   and opacity .62 took it to 4.5:1 — the smallest, faintest number on the page was the one support
   asks for. */
.ffhq-numalt {
    margin-left: 8px;
    font-size: max(11.5px, 0.72em);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--ffhq-muted);
    white-space: nowrap;
}

/* Mutual aid given: this department assisted on another's call and was not primary. Info blue —
   it is a fact about the call, not a warning — and kept beside the number, where a chief scanning
   a list is already looking. */
.ffhq-ma {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 6px;
    color: var(--ffhq-info);
    vertical-align: middle;
    white-space: nowrap;
}
.ffhq-ma svg { width: 15px; height: 15px; flex: 0 0 auto; }
.ffhq-ma.labelled {
    padding: 2px 8px 2px 6px;
    border-radius: 999px;
    background: var(--ffhq-info-bg);
    font-family: var(--ffhq-cond);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.ffhq-ma-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media print {
    .ffhq-ma { color: #000; }
    .ffhq-ma.labelled { background: none; border: 1px solid #000; }
}

/* ---- NERIS reconciliation console (platform) ---- */

/* Explanatory copy inside a console card. These screens carry more prose than the rest of the
   platform on purpose: every row asks an operator to make a judgement about a federal record, and
   the cost of guessing wrong is not recoverable from this app. */
.rmv-prose p { margin: 0 0 10px; font-size: 13px; line-height: 1.55; max-width: 78ch; }
.rmv-prose p:last-child { margin-bottom: 0; }
.rmv-prose p.rmv-muted { color: var(--ffhq-muted); }

/* One proposed NERIS unit beside the apparatus it might be. Stacked rather than inline so the
   designation, the type and the id each stay readable — an operator confirming a match is comparing
   all three, and a row that wraps mid-identifier is a row that gets skimmed. */
.rmv-candidate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 4px 0; }
.rmv-candidate + .rmv-candidate { border-top: 1px solid var(--ffhq-line, #E3E1D8); }
.rmv-candidate code { font-size: 11.5px; }
.rmv-candidate .rmv-btn { padding: 4px 10px; font-size: 12px; }

/* The console's tables carry sentences, not just values — nowrap would push the explanation off
   the side of the card, which is where the reason for every action lives. */
.rmv-tbl td.rmv-rowacts, .rmv-tbl td .rmv-candidate { white-space: normal; }

/* ---- Map picker ---- */

/* Leaflet measures its container, so the height must come from CSS and not from content. Tall
   enough to place a pin confidently on a phone, short enough that the rest of the form is still
   reachable without scrolling past it. */
.ffhq-map {
    height: 240px;
    margin-top: 8px;
    border: 1px solid var(--ffhq-line);
    border-radius: 12px;
    overflow: hidden;
    /* Above the page but below the app's sheets and dimmers, which sit at 40+. Leaflet's own panes
       start at 400 inside this element and would otherwise punch through an open modal. */
    z-index: 0;
}

.ffhq-map .leaflet-container { font: inherit; }
.ffhq-map .leaflet-control-attribution { font-size: 11.5px; }

/* "Water near me" - the screen the dashboard header links to. */
.ffhq-nearwater li { display: flex; align-items: center; gap: 10px; }
/* The row is a button so it is reachable by keyboard, but it must read as the list item it is. */
.ffhq-nearwater-row { flex: 1; display: flex; gap: 12px; align-items: baseline;
  background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit;
  text-align: left; cursor: pointer; }
.ffhq-nearwater-row .d { min-width: 84px; flex-shrink: 0; }
.ffhq-nearwater-go { flex-shrink: 0; text-decoration: none; }
.ffhq-nearwater .d-block { display: block; }

/* The map's key. Swatches match the markers in map.js createView - change one, change both. */
.ffhq-maplegend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px;
  color: var(--ffhq-muted); margin: -4px 0 12px; }
.ffhq-maplegend span { display: inline-flex; align-items: center; gap: 6px; }
.ffhq-maplegend i { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid; }
.ffhq-maplegend .ours { background: #E8C63D; border-color: #1B2C42; }
.ffhq-maplegend .theirs { background: #9DB0C4; border-color: #3D5168; }
.ffhq-maplegend .dead { background: #B3261E; border-color: #B3261E; }

/* Backfill progress on the NERIS console. One NERIS call per record, so a hundred records is
   minutes - a disabled button on its own cannot distinguish a slow run from a hung one. */
.rmv-progress { margin-top: 12px; max-width: 420px; }
.rmv-progress-bar { height: 6px; border-radius: 3px; background: #E3E1D8; overflow: hidden; }
.rmv-progress-bar span { display: block; height: 100%; background: var(--ffhq-navy, #274060);
  transition: width .2s ease; }
.rmv-progress-text { display: flex; justify-content: space-between; gap: 12px;
  font-size: 12.5px; margin-top: 5px; }

/* ---- Mutual aid entry in the incident wizard ----
   Three numbered decisions: who, which way, what kind. The first version of this markup referenced
   .ffhq-wiz-pick / .ffhq-wiz-picklist / .ffhq-wiz-check, none of which existed - so the results
   rendered as bare buttons and the "selected" state had nothing to show. Reported as "when I click
   it doesn't seem like it is selected". */
.ffhq-aidbox { border: 1px solid var(--ffhq-line); border-radius: 8px; padding: 12px 14px;
  margin-top: 10px; background: #FAFAF7; }
.ffhq-aidstep { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.ffhq-aidstep .n { flex: 0 0 20px; height: 20px; border-radius: 50%; background: var(--ffhq-navy);
  color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; margin-top: 2px; }
.ffhq-aidstep .b { flex: 1; min-width: 0; }
.ffhq-aidlbl { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 5px; }

/* The results. Each row is a button, but has to read as a list item you can hit with a thumb. */
.ffhq-aidlist { border: 1px solid var(--ffhq-line); border-radius: 6px; background: #fff;
  max-height: 220px; overflow-y: auto; margin-top: 6px; }
.ffhq-aidhit { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left;
  background: none; border: 0; border-bottom: 1px solid #EFEEE8; padding: 9px 11px; cursor: pointer;
  font: inherit; color: inherit; }
.ffhq-aidhit:last-child { border-bottom: 0; }
.ffhq-aidhit:hover, .ffhq-aidhit:focus-visible { background: var(--ffhq-info-bg); }
.ffhq-aidhit .ffhq-muted { font-size: 12px; }

/* What was chosen, once it is chosen. This is the feedback that was missing. */
.ffhq-aidchosen { display: flex; align-items: center; gap: 9px; padding: 9px 11px; margin-top: 2px;
  border: 1px solid var(--ffhq-ok); border-radius: 6px; background: var(--ffhq-ok-bg); }
.ffhq-aidchosen .tick { color: var(--ffhq-ok-text); font-weight: 700; }
.ffhq-aidchosen .who { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ffhq-aidchosen .ffhq-muted { font-size: 12px; }

.ffhq-aidor { font-size: 11.5px; color: var(--ffhq-muted); text-transform: uppercase;
  letter-spacing: .06em; margin: 8px 0 4px; }

.ffhq-aidradio { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 5px;
  font-size: 13px; cursor: pointer; }
.ffhq-aidradio input { margin-top: 2px; flex-shrink: 0; }

.ffhq-aidadd { width: 100%; margin-top: 2px; }

/* .ffhq-fld strips the border and background off its inputs and stretches them to 100%, because
   normally the field card IS the box around a single value. Inside .ffhq-aidbox that is wrong twice
   over: this is a nested panel holding several controls, so each needs its own box, and a RADIO
   stretched to 100% puts its glyph in the middle of the row with the label squeezed into whatever
   is left - which is exactly how it shipped. Same exception .ffhq-dtin already makes above. */
.ffhq-aidbox input[type="text"], .ffhq-aidbox input:not([type]), .ffhq-aidbox select {
  width: 100%; box-sizing: border-box; border: 1px solid var(--ffhq-line); border-radius: 6px;
  background: #fff; padding: 8px 10px; font-size: 14px; font-weight: 400; }
.ffhq-aidbox input[type="text"]:focus, .ffhq-aidbox input:not([type]):focus,
.ffhq-aidbox select:focus { outline: 2px solid var(--ffhq-navy); outline-offset: -1px; }
.ffhq-aidbox input::placeholder { font-weight: 400; color: var(--ffhq-hint); }

/* A radio is a glyph, not a field. */
.ffhq-aidradio input[type="radio"] { width: auto; flex: 0 0 auto; margin: 2px 0 0; }
.ffhq-wiz-check input[type="checkbox"] { width: auto; flex: 0 0 auto; }

/* The non-fire agencies: a wrapping set of checkboxes rather than a list. */
.ffhq-wiz-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  padding: 5px 10px; border: 1px solid var(--ffhq-line); border-radius: 999px; background: #fff;
  cursor: pointer; margin: 0 6px 6px 0; }
.ffhq-wiz-check input { margin: 0; }

/* =================================================================================================
   UX REVIEW 2026-11, WAVE 1 — the shared layer
   Long-cell truncation, the OverflowMenu, and the phone rules every page relies on: type size,
   iOS focus zoom, 44px tap targets. Placed late so it wins over the module rules above at equal
   specificity; the per-page UX11 sections at the very end of the file come later still and refine
   it. Token values (--ffhq-*-text, --ffhq-hint, --ffhq-cta-disabled) live in :root at the top.
   ================================================================================================= */

/* ---- Long cells (desktop) ----------------------------------------------------------------------
   A long incident type ("Hazard Non-Chemical — Electrical Power Line Down / Arching /
   Malfunction") used to set the whole table's width. With .ffhq-main and the grids now able to
   shrink, it would scroll inside its card instead — this goes one better and truncates the two
   free-text columns so the row fits.

   The max-width: 0 + percentage pair is the table idiom for "take a share of what is left, never
   ask for more": max-width: 0 removes the cell's content from the column's minimum, and the
   percentages split the leftover 62/38 between Type and Address. Every other column keeps its
   natural width; if even those do not fit, .ffhq-tblwrap scrolls in place as before.

   Desktop only. On a phone both tables give way to three-line rows (.ffhq-irows, UX11 lists).
   The dashboard's recent-incidents table has no data-labels, so it is addressed by position:
   column 3 is Type and column 4 is Address in Home.razor. Reorder those columns and update this.

   The dashboard splits 72/28, not 62/38. Its card is narrower (a 320px rail sits beside it), and
   at 1280 the even-ish split left Type at "Structure Fire …" while the address beside it was a
   town name with room to spare. Type is what identifies a call at a glance; the address is the
   column that can afford to lose its tail. (Its # column also stacks ours under theirs and says
   "Resp." — see the UX11 lists section — so there is more left to split.) */
@media (min-width: 821px) {
    .ffhq-tbl td[data-label="Type"] {
        width: 62%; max-width: 0; overflow: hidden; text-overflow: ellipsis;
    }
    .ffhq-tbl td[data-label="Address"] {
        width: 38%; max-width: 0; overflow: hidden; text-overflow: ellipsis;
    }
    .ffhq-dashcols .ffhq-tbl td:nth-child(3) {
        width: 72%; max-width: 0; overflow: hidden; text-overflow: ellipsis;
    }
    .ffhq-dashcols .ffhq-tbl td:nth-child(4) {
        width: 28%; max-width: 0; overflow: hidden; text-overflow: ellipsis;
    }
}

/* ---- OverflowMenu (Shell/OverflowMenu.razor; behaviour in js/app-shell.js) ----------------------
   The trigger is a 44x44 target at every width. The list is position: fixed and placed by script,
   which is what lets it escape a card's overflow: hidden and the bottom sheet's scroller; the
   transparent scrim under it takes the "tap outside" so closing a menu never presses whatever was
   beneath. 89/90 sit above the sticky top bar (45) and, inside a sheet, within the sheet's own
   layer (70). The list resets the typography it might inherit from a heading or a nowrap cell. */
.ffhq-omenu { position: relative; display: inline-flex; flex: none; vertical-align: middle; }
.ffhq-omenu-btn {
    width: 44px; height: 44px; padding: 0; margin: 0;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: none; border: 1px solid transparent; border-radius: 8px;
    color: #5C584F; cursor: pointer; font: inherit; line-height: 1;
}
.ffhq-omenu-btn svg { flex: none; }
.ffhq-omenu-btn.labelled {
    width: auto; padding: 0 12px 0 10px;
    font-family: var(--ffhq-cond); font-size: 14px; letter-spacing: .04em; color: var(--ffhq-navy);
}
.ffhq-omenu-btn:hover,
.ffhq-omenu-btn[aria-expanded="true"] { background: var(--ffhq-paper); color: var(--ffhq-ink); }
.ffhq-omenu-btn:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: -2px; }
.ffhq-omenu-btn:disabled { opacity: .5; cursor: default; background: none; }
.ffhq-omenu.boxed .ffhq-omenu-btn { background: #fff; border-color: #C9C6BA; }
.ffhq-omenu.boxed .ffhq-omenu-btn:hover,
.ffhq-omenu.boxed .ffhq-omenu-btn[aria-expanded="true"] { border-color: var(--ffhq-navy); }
.ffhq-omenu-scrim { position: fixed; inset: 0; z-index: 89; background: transparent; }
/* iOS only delivers a tap on a plain element to a document-level listener if it looks clickable. */
@media (hover: none) { .ffhq-omenu-scrim { cursor: pointer; } }
.ffhq-omenu-list {
    position: fixed; top: 0; left: 0; z-index: 90;
    min-width: 200px; max-width: calc(100vw - 16px); max-height: min(60vh, 360px); overflow-y: auto;
    padding: 6px 0; background: #fff; border: 1px solid var(--ffhq-line); border-radius: 10px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .18), 0 2px 6px rgba(16, 24, 40, .08);
    font-family: 'Segoe UI', system-ui, sans-serif; font-size: 14.5px; font-weight: 400;
    color: var(--ffhq-ink); text-align: left; text-transform: none; letter-spacing: normal; white-space: normal;
}
.ffhq-omenu-item {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px;
    padding: 10px 16px; margin: 0; border: 0; border-radius: 0; background: none;
    font: inherit; line-height: 1.3; color: var(--ffhq-ink); text-align: left; text-decoration: none;
    cursor: pointer;
}
.ffhq-omenu-item:hover,
.ffhq-omenu-item:focus-visible { background: var(--ffhq-paper); color: var(--ffhq-ink); text-decoration: none; outline: none; }
.ffhq-omenu-item:focus-visible { box-shadow: inset 3px 0 0 var(--ffhq-navy); }
.ffhq-omenu-item.danger { color: var(--ffhq-crit-text); }
.ffhq-omenu-item.danger:hover,
.ffhq-omenu-item.danger:focus-visible { background: var(--ffhq-crit-bg); color: var(--ffhq-crit-text); }
.ffhq-omenu-item:disabled,
.ffhq-omenu-item[aria-disabled="true"] { color: var(--ffhq-hint); background: none; cursor: default; }
.ffhq-omenu-sep { height: 1px; margin: 6px 0; background: var(--ffhq-line); }

@media (max-width: 820px) {
    /* ---- iOS focus zoom ----------------------------------------------------------------------
       iOS Safari (and the iOS app's WKWebView) zooms the whole page in when you focus a field whose
       font-size is under 16px, and leaves it zoomed. Until now only the wizard's date/time boxes
       were 16px; every search box, filter, roster form and Bootstrap .form-control zoomed.

       !important, deliberately. This is a platform rule, not a style: it has to beat the
       higher-specificity module rules that size particular inputs (.ffhq-filterbar .f input,
       .ffhq-rig .specrow select.ffhq-input, .ffhq-typesheet .searchbox, ...) and any rule added
       later, because the failure is invisible on desktop and in every test. Desktop sizes are
       untouched. An input that should be LARGER than 16px on a phone goes in the :not() list
       (.auth-code is 20px). */
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="hidden"]):not(.auth-code),
    select,
    textarea {
        font-size: 16px !important;
    }
    /* Boxed fields grow to a full 44px row now that their text is 16px. */
    .ffhq-input, .auth-input, .form-control, .form-select { min-height: 44px; }

    /* ---- Type: the common size is 15-16px, not 13 ----------------------------------------------
       Body text inherits 16px already; the 13px came from these module rules, which set it
       explicitly. Labels stay smaller but nothing here goes under 12.5px. Page-specific blocks
       (calendar grid, rig cards, file list, type picker, card-ified tables) are their owners'. */
    .ffhq-sub { font-size: 14.5px; }
    .ffhq-table, .ffhq-tbl { font-size: 15px; }
    .ffhq-table th, .ffhq-tbl th { font-size: 12.5px; }
    .ffhq-chip { font-size: 13px; padding: 3px 11px; }
    .ffhq-alert { font-size: 15px; }
    .ffhq-btn, .ffhq-btn.sm { font-size: 15px; }
    .ffhq-btn.tiny { font-size: 14px; }
    /* Tabs keep their 13.5px here: four of them (Personnel) only just fit a 390px row with their
       labels wrapping, and 14.5px pushed the page 14px sideways. The tab strip's phone layout is
       the lists section's to redesign. */
    .ffhq-card h2 { font-size: 16px; }
    .ffhq-card-h3 { font-size: 15px; }
    .ffhq-card-body { font-size: 15px; }
    .ffhq-kpi .l { font-size: 12.5px; }
    .ffhq-kpi .d { font-size: 13px; }
    .ffhq-attn .t, .ffhq-events .t, .ffhq-maint .t { font-size: 15.5px; }
    .ffhq-attn .s, .ffhq-events .s, .ffhq-maint .s { font-size: 14px; }
    .ffhq-maint li { font-size: 15px; }
    .ffhq-dhead .nm { font-size: 20px; }
    .ffhq-dhead .rk { font-size: 14px; }
    .ffhq-dhead .quick { font-size: 13px; }
    .ffhq-dsec h3 { font-size: 13px; }
    .ffhq-dsec h3 .ffhq-linklike { font-size: 14px; }
    .ffhq-certrow, .ffhq-trow { font-size: 15px; }
    .ffhq-certrow .d { font-size: 13px; }
    /* No wrap rules here any more. Files and remove were two 44px targets beside the chip, which
       left the NAME one word a line; they are one More menu now and the expiry sits under the name
       (MemberDrawer, and the UX11 lists section), so name, chip and menu share one 390px row. */
    /* At 15px a full street address no longer fits beside its label on one 390px line, and the
       value is nowrap on desktop — so it ran out of the card. Let the VALUE wrap (right-aligned,
       breaking a long email anywhere) and keep the label whole. */
    .ffhq-trow > :first-child { flex: none; }
    .ffhq-trow b { white-space: normal; text-align: right; min-width: 0; overflow-wrap: anywhere; }
    .ffhq-drawer-empty, .ffhq-cardnote, .ffhq-listnote, .ffhq-check-empty { font-size: 15px; }
    .ffhq-field { font-size: 14px; }
    .ffhq-field > span { font-size: 12.5px; }
    .ffhq-pager-info { font-size: 14px; }
    .ffhq-pick, .ffhq-checkinline, .ffhq-authcheck, .ffhq-authsummary, .ffhq-authgrid .r .a,
    .ffhq-import-inputs, .ffhq-rules, .ffhq-aidradio, .ffhq-wiz-check, .ffhq-seclinks a { font-size: 15px; }
    .ffhq-fld .v { font-size: 16px; }
    .ffhq-fld .hint, .ffhq-timenote { font-size: 14px; }
    .ffhq-rvsec .rowline { font-size: 15px; }
    .ffhq-rvsec .h { font-size: 12.5px; }
    .ffhq-modbanner, .ffhq-valbox, .ffhq-mrec, .ffhq-check-byline, .ffhq-pts-blurb, .ffhq-detail { font-size: 14px; }
    .ffhq-sum .l { font-size: 13px; }
    .ffhq-who .r { font-size: 15px; }
    .ffhq-feed p { font-size: 14px; }
    .ffhq-rpt-card .d { font-size: 14.5px; }
    .ffhq-maplegend { font-size: 13.5px; }
    .ffhq-omenu-item { font-size: 16px; min-height: 48px; }

    /* The check runner's / wizard's sticky action bar runs edge to edge: it bleeds through the
       FocusLayout column's 14px side padding. */
    .ffhq-actionbar { margin-inline: -14px; padding-inline: 14px; }

    /* ---- Tap targets: 44px in the smaller dimension ------------------------------------------
       min-height/min-width with flex centring rather than bigger type or padding, so a control
       grows its hit area without growing its look more than it must. */
    .ffhq-btn { min-height: 44px; min-width: 44px; }
    .ffhq-btn.tiny { padding: 6px 14px; }
    .ffhq-tabs button { min-height: 44px; }
    .ffhq-xbtn {
        min-width: 44px; min-height: 44px;
        display: inline-flex; align-items: center; justify-content: center;
    }
    .ffhq-rsvp button { min-height: 44px; }
    /* The calendar's month arrows (30x30). The rest of the calendar's rules are its own section's. */
    .ffhq-calnav button { width: 44px; height: 44px; }
    .ffhq-attn .act a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }

    /* Link-styled buttons. Every .ffhq-linklike in the app is a standalone action (Edit, Files,
       "All incidents →", a row's name) — none sits inside running prose — so all of them get the
       full target. Where one rides in a line of text (a card heading, a field label, a table cell)
       the negative block margin keeps that line from growing: the hit area spills into padding that
       is already there instead of pushing the layout apart. */
    .ffhq-linklike { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
    .ffhq-card h2 .ffhq-linklike { margin-block: -13px; }
    .ffhq-dsec h3 .ffhq-linklike,
    .ffhq-field > span .ffhq-linklike,
    .ffhq-rvsec .h .ffhq-linklike { margin-block: -12px; }
    .ffhq-table td .ffhq-linklike,
    .ffhq-tbl td .ffhq-linklike { margin-block: -10px; }
    /* "Manage billing" in the banner that heads every page. */
    .ffhq-alert.banner a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
}

/* =================================================================================================
   UX11 MERGE ANCHORS — the per-page sections of the 2026-11 UX review
   Several branches add CSS for that review at the same time. Each owns ONE section below and writes
   only between its own ">>>" and "<<<" marker lines, so independent insertions land in separate
   hunks and merge without conflicts. Keep the markers exactly as they are, put nothing outside your
   section, and leave the spacer comments between sections alone: they are what keeps one section's
   insertion from sitting next to another's in a diff.
   These sections come last, so a rule here beats the shared layer above at equal specificity —
   refine the shared rules here rather than editing them in place.
   ================================================================================================= */

/* >>> UX11 navigation shell */
/* Markup: Shell/AppSidebar.razor (the links, once, for every width), Shell/MobileTabBar.razor,
   Layout/MainLayout.razor (top bar, the #ffhq-navtoggle checkbox), Layout/BillingStatusBanner.razor.
   Behaviour: js/app-shell.js. The sidebar's own box, the top bar's box and .ffhq-main's phone
   padding are still where they always were, further up; everything new is here.

   Layers on a phone, bottom to top: page, top bar 45, TAB BAR 50, More screen 60 (it stops above
   the bar, so the two never overlap), editing-sheet dim 66, editing sheet 70, OverflowMenu 89/90.
   So an open sheet and its dim cover the bar, and a menu opens over everything. */

/* ---- Groups ---- */
.ffhq-navhead {
    font-family: var(--ffhq-cond); font-size: 11.5px; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; color: #9FB0C6; padding: 8px 18px 2px; line-height: 1.2;
}
/* A group with no link in it shows nothing — not even its heading. This is what hides ADMIN from a
   member: every link in that group is behind an AuthorizeView, and the heading is not, so without
   this a member would see a heading over an empty space. Done here rather than by repeating the
   three policies around the heading, because a repeated gate is one that drifts. */
.ffhq-navgroup:not(:has(a)) { display: none; }

/* ---- Avatar (sidebar footer, More screen, phone top bar) ---- */
.ffhq-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--ffhq-info-bg); color: var(--ffhq-info-text);
    font-family: var(--ffhq-cond); font-size: 14px; font-weight: 600; letter-spacing: .02em; line-height: 1;
}
.ffhq-userid { display: contents; }
.ffhq-userid .ffhq-avatar { grid-row: 1 / span 2; }
.ffhq-userwho { min-width: 0; }
.ffhq-userdept { display: none; }
/* "Account · Sign out" */
.ffhq-userlinks form { display: flex; align-items: center; gap: 6px; margin: 0; }
.ffhq-userlinks form::before { content: "\00B7"; }

/* An impersonation banner is fixed over the top 40px and the shell is padded down by as much, so
   the pinned sidebar starts under it and is that much shorter. */
.ffhq-shell:has(.ffhq-imp-banner) .ffhq-sidebar { top: 40px; height: calc(100vh - 40px); height: calc(100dvh - 40px); }

/* THE 880px BUDGET. A chief has nineteen links and five headings, and all of them have to be on
   screen in an 880px-tall window (a 1440x900 laptop less the browser's own bars) — that was the
   point of the regrouping. Measured: logo block 120 (with a department name long enough to wrap
   to two lines), list 697, footer 54 = 871. The "Powered by" line is the 19px that does not fit, so
   it shows only where there is room for it (it is also in the footer of every signed-out page).
   That is also why the logo is 134px wide rather than filling the column. Adding a link or a heading
   means finding 30px here first; past that the list scrolls on its own, which is the fallback
   rather than the plan. */
@media (max-height: 899px) { .ffhq-powered { display: none; } }
/* When it does scroll (a chief on a 768px-tall screen), a thin bar in the sidebar's own colours
   rather than a light system scrollbar down the navy. app-shell.js keeps the current page's link
   in view. */
.ffhq-nav { scrollbar-width: thin; scrollbar-color: #4A5E7A transparent; }
/* A tablet wide enough for the sidebar (an iPad in landscape) is still worked with a finger, and a
   30px row is a mouse's target. Finger-first devices get 44px rows and let the list scroll. */
@media (min-width: 821px) and (pointer: coarse) { .ffhq-nav a { min-height: 44px; } }

/* ---- Billing banner: the two labels of its one link ---- */
.ffhq-banner-short { display: none; }

/* ---- Phone tab bar: off entirely above 820px, where the sidebar owns navigation ---- */
.ffhq-tabbar { display: none; }

@media (max-width: 820px) {
    /* ---- Top bar ---- */
    .ffhq-topbar-title {
        font-size: 19px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .ffhq-topbar-acct {
        width: 44px; height: 44px; flex: none; border-radius: 50%;
        display: flex; align-items: center; justify-content: center; text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    .ffhq-topbar-acct:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

    /* ---- Tab bar ---------------------------------------------------------------------------
       Four destinations and More. Fixed, so it stays put while the page scrolls — the reason for
       having it. 68px of bar plus the home-indicator inset, which is padding so the labels sit
       above the indicator while the white runs to the screen edge. .ffhq-main's bottom padding
       (the 820px block further up) is derived from this height. */
    .ffhq-tabbar {
        display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
        box-sizing: border-box; height: calc(68px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: #fff; border-top: 1px solid #D8D6CC;
    }
    /* #5C584F on white is 7.1:1; the active navy is 10.4:1. The 3px top line is transparent when
       idle so an active tab does not shift its icon. margin: 0 because More is a <label> and
       Bootstrap gives labels a bottom margin. */
    .ffhq-tab {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        min-width: 0; margin: 0; border-top: 3px solid transparent;
        color: #5C584F; text-decoration: none; cursor: pointer; user-select: none;
        font-family: var(--ffhq-cond); font-size: 13px; font-weight: 400; letter-spacing: .03em; line-height: 1.2;
        -webkit-tap-highlight-color: transparent;
    }
    .ffhq-tab svg { width: 22px; height: 22px; flex: none; }
    .ffhq-tab:hover { color: var(--ffhq-navy); }
    .ffhq-tab.active,
    .ffhq-navtoggle:checked ~ .ffhq-tabbar .ffhq-tab-more {
        color: var(--ffhq-navy); border-top-color: var(--ffhq-red); font-weight: 600;
    }
    /* While the More screen is open, More is the lit tab and the page's own tab steps back: one
       active tab at a time, and it names what is on screen. */
    .ffhq-navtoggle:checked ~ .ffhq-tabbar a.ffhq-tab.active {
        color: #5C584F; border-top-color: transparent; font-weight: 400;
    }
    .ffhq-tab:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: -3px; border-radius: 6px; }

    /* The page behind the More screen must not scroll — same reasoning as the editing sheet. */
    html:has(.ffhq-navtoggle:checked),
    body:has(.ffhq-navtoggle:checked) { overflow: hidden; }

    /* ---- The More screen (the sidebar, rearranged) -------------------------------------------
       Member at the top, grouped links in the middle (the only part that scrolls), Account and
       Sign out as two buttons at the bottom. .ffhq-userchip dissolves (display: contents) so its
       two halves become flex children of the sidebar and `order` can put the identity first; the
       DOM order — links, then Account / Sign out — is already the order they are read and tabbed. */
    .ffhq-logo { display: none; }
    .ffhq-userchip { display: contents; }
    .ffhq-userid {
        order: -1; flex: none; display: flex; align-items: center; gap: 12px;
        padding: 14px 16px; border-bottom: 1px solid #2B3E58;
    }
    .ffhq-userid .ffhq-avatar { width: 40px; height: 40px; font-size: 15px; }
    .ffhq-userchip b { font-size: 16px; }
    .ffhq-userdept { display: block; font-size: 13px; color: #B9C2CE; }

    .ffhq-nav { padding: 6px 12px 10px; gap: 4px; overscroll-behavior: contain; }
    /* As many 150px columns as fit: two on a phone, more on a small tablet. Two columns keep a
       chief's fifteen links on one 844px screen; the longest label ("Roles & permissions", with its
       icon) needs 160px of a 179px column at 390 wide. The heading spans the row. */
    .ffhq-navgroup { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 8px; flex: none; }
    .ffhq-navhead { grid-column: 1 / -1; font-size: 12px; letter-spacing: .1em; padding: 10px 6px 2px; }
    .ffhq-nav a {
        min-height: 44px; padding: 0 6px; gap: 9px; border-left: 0; border-radius: 8px;
        color: #E6EBF1; font-size: 16px; letter-spacing: .03em;
    }
    /* The four destinations the tab bar already shows are left out here, and a group with nothing
       else in it goes with them. */
    .ffhq-nav a.ffhq-intab { display: none; }
    .ffhq-navgroup:not(:has(a:not(.ffhq-intab))) { display: none; }

    .ffhq-userlinks {
        flex: none; gap: 8px; padding: 10px 12px; border-top: 1px solid #2B3E58; align-items: stretch;
    }
    .ffhq-userlinks > a, .ffhq-userlinks > form { flex: 1 1 0; min-width: 0; }
    .ffhq-userlinks form::before { content: none; }
    .ffhq-userlinks a, .ffhq-linkbtn {
        display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px;
        border: 1px solid #4A5E7A; border-radius: 8px; background: none; color: #fff; text-decoration: none;
        font-family: var(--ffhq-cond); font-size: 15px; letter-spacing: .03em;
    }
    .ffhq-userlinks a:active, .ffhq-linkbtn:active { background: #22344E; }

    /* Under an impersonation banner the More screen starts below it (the desktop rule above set a
       height, which a fixed top-and-bottom box must not have). */
    .ffhq-shell:has(.ffhq-imp-banner) .ffhq-sidebar { height: auto; }

    /* ---- Billing banner: one compact row -----------------------------------------------------
       Flush under the top bar and edge to edge (the negative margins undo .ffhq-main's 16px/14px
       padding). Message on the left, "Billing ›" on the right, and the link's ::before stretched
       over the whole row, so the row — at least 44px — is the target, not the two words. A long
       message wraps to a second line beside the action instead of pushing it underneath. */
    .ffhq-main > .ffhq-alert.banner {
        position: relative; margin: -16px -14px 14px; padding: 0 14px; min-height: 44px;
        border-radius: 0; gap: 12px; font-size: 14px; line-height: 1.3;
    }
    .ffhq-banner-msg { min-width: 0; padding-block: 6px; }
    .ffhq-banner-act { flex: none; align-self: stretch; display: flex; align-items: center; }
    .ffhq-banner-long { display: none; }
    .ffhq-banner-short { display: inline; }
    .ffhq-alert.banner a {
        display: flex; align-items: center; min-height: 44px; margin-block: 0;
        color: inherit; text-decoration: none;
    }
    .ffhq-alert.banner a::before { content: ""; position: absolute; inset: 0; }
    .ffhq-alert.banner a::after { content: "\203A"; margin-left: 5px; }
    .ffhq-alert.banner a:focus-visible { outline: none; }
    .ffhq-alert.banner a:focus-visible::before { outline: 2px solid currentColor; outline-offset: -3px; }
    /* Inside the native shell there is no link (no purchase path in the app), and "manage on the
       web at app.responder-hq.com" does not fit beside anything on a phone. It takes the line under
       the message, wrapping if it must. */
    /* The first line is load-bearing: `.ffhq-alert.banner a { display: ... }` (here, and in the
       shared phone layer above since e3e0350) outranks `.capacitor .auth-webonly { display: none }`,
       so without it the billing link came back inside the app — a purchase path the stores forbid. */
    .capacitor .ffhq-alert.banner a.auth-webonly { display: none; }
    .capacitor .ffhq-main > .ffhq-alert.banner { flex-wrap: wrap; row-gap: 2px; padding-block: 8px; }
    .capacitor .ffhq-banner-msg { padding-block: 0; }
    .capacitor .ffhq-banner-act { flex: 1 0 100%; }
    .capacitor .ffhq-alert.banner .capacitor-only { white-space: normal; }
}
/* <<< UX11 navigation shell */

/* ~ spacer 1 of 4 (navigation shell / lists) ~ */
/* ~ keep: separates two UX11 sections ~ */
/* ~ do not add CSS on these lines ~ */
/* ~ end spacer 1 ~ */

/* >>> UX11 lists (incidents, personnel) */
/* The incidents list, the dashboard's recent incidents, and the personnel roster on a phone:
   rows you tap instead of tables you scroll sideways, filters behind one button, secondary
   actions in a More menu. Desktop keeps its tables; everything here either lives inside the 820px
   block or styles markup that only a phone shows.

   ---- Which layout shows where -------------------------------------------------------------------
   The list pages render BOTH a desktop table and a phone list, and these two classes pick one. Two
   renderings rather than one table restyled because a row has to be ONE link (or button) on a
   phone, and a <tr> cannot be either. !important because they are visibility switches that must
   beat a component's own display (.ffhq-btn is inline-flex, .ffhq-omenu inline-flex, ...). */
@media (min-width: 821px) { .ffhq-list-phone { display: none !important; } }
@media (max-width: 820px) { .ffhq-list-desk { display: none !important; } }

/* ---- Incident rows (IncidentsPage, Home) ---------------------------------------------------------
   Three lines and one link: number + status, type, "date · time · address · units/responders".
   About 78px a row — seven on the first screen, where a labelled nine-line card fitted one. A row
   with a More menu puts it beside the link, never inside it (a button in an <a> is invalid and the
   tap would navigate). */
.ffhq-irows { list-style: none; margin: 0; padding: 0; }
.ffhq-irow { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--ffhq-line); }
.ffhq-irow:last-child { border-bottom: 0; }
/* A NERIS refusal stays loud in a compact row: the red chip AND a red rail down the row's edge. */
.ffhq-irow.err { box-shadow: inset 4px 0 0 var(--ffhq-crit); }
.ffhq-irow-link {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1px;
    padding: 9px 14px; color: var(--ffhq-ink); text-decoration: none;
}
.ffhq-irow:has(> .ffhq-omenu, > .ffhq-irow-nomenu, > .ffhq-linklike) .ffhq-irow-link { padding-right: 6px; }
/* The whole row lights, menu slot included, and only where hover is real — a touch screen keeps
   :hover on the last row tapped, which read as a selection. */
a.ffhq-irow-link:hover { color: var(--ffhq-ink); }
@media (hover: hover) { .ffhq-irow:has(> a.ffhq-irow-link:hover) { background: #FAFAF7; } }
.ffhq-irow-link:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: -2px; border-radius: 8px; }
.ffhq-irow .l1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; line-height: 1.3; }
/* The number never truncates; ours (the .ffhq-numalt beside it) gives way first. */
.ffhq-irow .no { display: flex; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; }
.ffhq-irow .no b { flex: none; font-size: 15px; font-weight: 700; color: var(--ffhq-navy); }
.ffhq-irow .no .ffhq-numalt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ffhq-irow .no .ffhq-ma { flex: none; }
.ffhq-irow .l1 .ffhq-chip { flex: none; margin-right: 0; font-size: 12px; padding: 2px 10px; }
.ffhq-irow .l2, .ffhq-irow .l3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.ffhq-irow .l2 { font-size: 15px; }
.ffhq-irow .l3 { font-size: 13px; color: var(--ffhq-muted); }
.ffhq-irow > .ffhq-omenu, .ffhq-irow-nomenu { flex: none; margin-right: 4px; }
.ffhq-irow-nomenu { width: 44px; height: 44px; }
/* The same row with no link (TrainingTab): ink, not link navy, for the title; the figure on the
   right; the meta line allowed to wrap because its last part ("3 attended") is the point. */
div.ffhq-irow-link .no { flex: 1 1 auto; white-space: normal; }
div.ffhq-irow-link .no b { flex: 1 1 auto; min-width: 0; color: var(--ffhq-ink); }
.ffhq-irow .l1 .hrs { flex: none; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ffhq-irow .l3.wrap { white-space: normal; }
.ffhq-irow > .ffhq-linklike { flex: none; margin-right: 6px; font-weight: 600; }
.ffhq-irows-empty { padding: 22px 14px; text-align: center; color: var(--ffhq-muted); font-size: 15px; }

/* "Delete draft 2026-0002? This can't be undone. [Delete] [Cancel]" under the row it belongs to,
   and the same strip for removing a certification in the member panel. A menu item never deletes
   on its own: choosing it only asks. */
.ffhq-irow-confirm, .ffhq-certconfirm {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
    padding: 10px 12px; border-radius: 8px;
    background: var(--ffhq-crit-bg); color: var(--ffhq-crit-text); font-size: 13px;
}
.ffhq-irow-confirm { width: calc(100% - 20px); margin: 0 10px 10px; }
.ffhq-certconfirm { margin: 2px 0 8px; }
.ffhq-irow-confirm .btns, .ffhq-certconfirm .btns { display: flex; gap: 8px; margin-left: auto; }

/* ---- Member panel: certification rows (MemberDrawer — phone sheet and desktop dialog) ----------
   Name with its expiry underneath, status chip, one More menu (Files, Remove…). The menu trigger's
   44px box is mostly padding round the dots, so it is pulled into the row's right edge rather
   than indenting the chips. */
.ffhq-certrow { min-height: 52px; }
.ffhq-certrow .c { min-width: 0; }
.ffhq-certrow .c .d { display: block; font-weight: 400; }
.ffhq-certrow > .ffhq-omenu { margin: -4px -10px -4px 0; }

/* ---- Personnel roster rows (PersonnelPage, phone) ----------------------------------------------
   One button per member: initials, "Last, First", "rank · authority", an EXPIRED chip when the
   page's own certification data has one, a chevron that says it opens. */
.ffhq-roster { list-style: none; margin: 0; padding: 0; border-radius: 10px; overflow: hidden; }
.ffhq-roster li + li { border-top: 1px solid var(--ffhq-line); }
.ffhq-roster-row {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px;
    padding: 10px 12px 10px 14px; margin: 0; border: 0; background: none;
    font: inherit; color: var(--ffhq-ink); text-align: left; cursor: pointer;
}
.ffhq-roster-row.sel { background: #FAFAF7; }
@media (hover: hover) { .ffhq-roster-row:hover { background: #FAFAF7; } }
.ffhq-roster-row:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: -2px; border-radius: 8px; }
.ffhq-roster-row .av {
    flex: none; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--ffhq-info-bg); color: var(--ffhq-info-text);
    font-family: var(--ffhq-cond); font-size: 15px; font-weight: 600; letter-spacing: .02em;
}
.ffhq-roster-row .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ffhq-roster-row .nm, .ffhq-roster-row .rk { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ffhq-roster-row .nm { font-size: 16px; font-weight: 600; }
.ffhq-roster-row .rk { font-size: 14px; color: var(--ffhq-muted); }
.ffhq-roster-row .ffhq-chip { flex: none; margin-right: 0; font-size: 12px; padding: 3px 10px; }
.ffhq-roster-row .chev { flex: none; color: var(--ffhq-muted); }
.ffhq-roster-empty { padding: 22px 14px; text-align: center; color: var(--ffhq-muted); font-size: 15px; }

/* ---- Dashboard recent incidents (desktop) --------------------------------------------------------
   Ours stacks under theirs here instead of riding beside it. Beside, it set the # column's width
   for every row (one "PV26-0042 2026-0001" made the column 155px wide) and took that room from Type;
   stacked, the column is as wide as one number and the extra line is paid only by the row that has
   two. The incidents list keeps them side by side — its table is wider. */
/* And when the CARD is a phone's width on a wider screen — a 1024 tablet, where the 320px rail
   leaves it about 400px and the six columns truncated every Type to four letters and scrolled the
   status off the edge — it takes the phone rows too. A container query, so it follows the card's
   width rather than guessing it from the viewport's; where container queries are unsupported the
   viewport switch above still applies, which is the old behaviour. Specificity (0,2,0) because the
   switches are !important. */
.ffhq-dashrecent { container-type: inline-size; }
@container (max-width: 600px) {
    .ffhq-dashrecent .ffhq-list-desk { display: none !important; }
    .ffhq-dashrecent .ffhq-list-phone { display: block !important; }
}
@media (min-width: 821px) {
    .ffhq-dashinc td:first-child .ffhq-numalt { display: block; margin-left: 0; line-height: 1.3; }
    /* 10px between columns rather than 28: six columns of gutter was 48px Type did not get. */
    .ffhq-dashinc th, .ffhq-dashinc td { padding-left: 10px; padding-right: 10px; }
    .ffhq-dashinc th:first-child, .ffhq-dashinc td:first-child { padding-left: 18px; }
    .ffhq-dashinc th:last-child, .ffhq-dashinc td:last-child { padding-right: 18px; }
}

/* ---- Incidents filter bar (IncidentsPage) --------------------------------------------------------
   Desktop: exactly the old row. The Filter button is hidden and the panel is display: contents, so
   its four labelled fields are flex items of the bar again; order puts the search box after them
   and Clear last, where they always were. */
@media (min-width: 821px) {
    .ffhq-ifilter-btn { display: none; }
    .ffhq-ifilter-panel { display: contents; }
    .ffhq-ifilter .search { order: 1; }
    .ffhq-ifilter .clear { order: 2; }
}

/* A disabled Prev/Next at .55 opacity measured 3.0:1. Full opacity in the hint colour is 5.3:1 and
   still plainly not a live button. */
.ffhq-pager .ffhq-btn:disabled { opacity: 1; color: var(--ffhq-hint); }

@media (max-width: 820px) {
    /* ---- Page heads: title and the primary action share the first row ------------------------
       The title block is display: contents so its two lines become grid items: the title beside
       the actions, the subtitle across the full width under both. Without this the subtitle was
       squeezed into the column left of the buttons, or the buttons wrapped under the title. */
    .ffhq-ihead, .ffhq-phead {
        display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
        gap: 2px 10px; margin-bottom: 14px;
    }
    .ffhq-ihead > div:first-child, .ffhq-phead > div:first-child { display: contents; }
    .ffhq-ihead .ffhq-h1, .ffhq-phead .ffhq-h1 { grid-column: 1; grid-row: 1; margin: 0; }
    .ffhq-ihead .ffhq-sub, .ffhq-phead .ffhq-sub { grid-column: 1 / -1; grid-row: 2; margin: 0; }
    /* width: auto undoes the 560px rule that stretches .ffhq-pagehead-actions to the full row. */
    .ffhq-ihead .ffhq-pagehead-actions, .ffhq-phead .ffhq-actions {
        grid-column: 2; grid-row: 1; width: auto; flex-wrap: nowrap; gap: 8px;
    }
    .ffhq-ihead .ffhq-pagehead-actions .ffhq-btn, .ffhq-phead .ffhq-actions .ffhq-btn { flex: none; padding: 0 14px; }

    /* ---- Incident status filters: one row of pills --------------------------------------------
       Pills because these FILTER the list below (mock 05); the four fit 362px with "To sign" in
       place of "Awaiting sign-off", and scroll sideways rather than wrap on a narrower phone. */
    .ffhq-itabs {
        gap: 6px; border-bottom: 0; margin-bottom: 10px;
        overflow-x: auto; scrollbar-width: none;
    }
    .ffhq-itabs::-webkit-scrollbar { display: none; }
    .ffhq-itabs button {
        flex: none; display: inline-flex; align-items: center; gap: 5px;
        min-height: 44px; padding: 0 10px; margin: 0;
        border: 1px solid #C9C6BA; border-radius: 99px; background: #fff;
        color: #5C584F; font-size: 15px; letter-spacing: .02em; white-space: nowrap;
    }
    .ffhq-itabs button.active { background: var(--ffhq-navy); border-color: var(--ffhq-navy); color: #fff; }
    .ffhq-itabs .cnt { margin-left: 0; padding: 1px 7px; font-size: 12.5px; }
    .ffhq-itabs button.active .cnt { background: rgba(255, 255, 255, .22); color: #fff; }
    .ffhq-itabs button:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: 2px; border-radius: 99px; }

    /* ---- Incidents filter: search + Filter button, the rest disclosed ------------------------ */
    .ffhq-ifilter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 12px; }
    .ffhq-ifilter .search { min-width: 0; min-height: 44px; border-color: #C9C6BA; }
    .ffhq-ifilter-btn {
        display: inline-flex; align-items: center; justify-content: center; gap: 6px;
        min-height: 44px; padding: 0 14px; border: 1px solid #C9C6BA; border-radius: 8px;
        background: #fff; color: var(--ffhq-navy); cursor: pointer;
        font-family: var(--ffhq-cond); font-size: 15px; letter-spacing: .03em;
    }
    .ffhq-ifilter-btn[aria-expanded="true"] { border-color: var(--ffhq-navy); }
    .ffhq-ifilter-btn:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: 2px; }
    .ffhq-ifilter-btn .cnt {
        min-width: 22px; padding: 1px 7px; border-radius: 99px;
        background: var(--ffhq-navy); color: #fff; font-size: 13px; font-variant-numeric: tabular-nums;
    }
    .ffhq-ifilter-panel { display: none; }
    .ffhq-ifilter.open .ffhq-ifilter-panel {
        grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px;
        padding: 12px; background: #fff; border: 1px solid var(--ffhq-line); border-radius: 10px;
    }
    .ffhq-ifilter-panel .f {
        display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0;
        padding: 0; border: 0; background: none; color: var(--ffhq-muted);
    }
    .ffhq-ifilter-panel .f b { font-size: 12.5px; }
    .ffhq-ifilter-panel .f input, .ffhq-ifilter-panel .f select {
        width: 100%; max-width: none; min-width: 0; min-height: 44px; padding: 6px 10px;
        border: 1.5px solid var(--ffhq-line); border-radius: 8px; background: #FDFDFB;
    }
    .ffhq-ifilter-panel .f input:focus, .ffhq-ifilter-panel .f select:focus { outline: 2px solid var(--ffhq-navy); border-color: var(--ffhq-navy); }
    .ffhq-ifilter-panel .clear {
        grid-column: 1 / -1; justify-self: start; min-height: 44px; padding: 0 4px; font-size: 15px;
    }

    /* ---- Pager: Prev | where you are | Next, the middle allowed to wrap ---------------------- */
    .ffhq-pager { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
    .ffhq-pager-info { text-align: center; }

    .ffhq-irow-confirm, .ffhq-certconfirm { font-size: 15px; }

    /* ---- Personnel tabs: one row ---------------------------------------------------------------
       15px with "Training" for "Training sessions" fits 362px. overflow-x for narrower phones, so
       the underline is an inset shadow on the strip (a border plus the buttons' -2px overlap would
       be clipped by the scroller) and the buttons' 3px underline sits inside their own box. */
    .ffhq-ptabs {
        gap: 0; border-bottom: 0; box-shadow: inset 0 -2px 0 var(--ffhq-line);
        overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
    }
    .ffhq-ptabs::-webkit-scrollbar { display: none; }
    .ffhq-ptabs button {
        flex: none; padding: 0 10px; margin-bottom: 0; border-bottom-width: 3px;
        font-size: 15px; letter-spacing: .03em; white-space: nowrap;
    }
}
/* <<< UX11 lists (incidents, personnel) */

/* ~ spacer 2 of 4 (lists / apparatus and calendar) ~ */
/* ~ keep: separates two UX11 sections ~ */
/* ~ do not add CSS on these lines ~ */
/* ~ end spacer 2 ~ */

/* >>> UX11 apparatus and calendar */
/* Apparatus cards, checklist editor, calendar. Phone = the shell's 820px breakpoint. */

.ffhq-ac-wide { display: inline; }

/* ---- Apparatus: page head ---- */
@media (max-width: 820px) {
    .ffhq-ac-wide { display: none; }
    /* Title and "+ Add" share one row; the sub-line sits under the title. */
    .ffhq-apphead, .ffhq-calpagehead { flex-wrap: nowrap; align-items: center; gap: 10px; }
    .ffhq-apphead > :first-child, .ffhq-calpagehead > :first-child { min-width: 0; }
    .ffhq-apphead .ffhq-pagehead-actions { width: auto; flex: none; flex-wrap: nowrap; }
    .ffhq-apphead .ffhq-pagehead-actions .ffhq-btn { flex: none; }
    .ffhq-calpagehead .ffhq-actions { flex: none; flex-wrap: nowrap; }
    /* The "Check due: Engine 1" shortcut is the desktop's; the due rig's card leads with Start check. */
    .ffhq-apphead-check { display: none; }
}

/* ---- Apparatus: cards ---- */
.ffhq-rig .d { font-size: 19px; }
.ffhq-rig .t { font-size: 13.5px; }
.ffhq-rig-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px 12px; margin: 0 0 8px; }
.ffhq-rig-specs .cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; }
.ffhq-rig-specs .cell.station { grid-column: 1 / -1; }
.ffhq-rig .k { font-size: 13px; font-weight: 400; color: var(--ffhq-muted); }
.ffhq-rig-specs .cell b { font-size: 15px; font-weight: 600; color: var(--ffhq-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* The Station control is a field like its neighbours' values: same size, a quiet outline, no heavy fill. */
.ffhq-rig-specs select.ffhq-input {
    width: 100%; padding: 6px 8px; font-size: 15px; font-weight: 600;
    color: var(--ffhq-ink); background-color: #FAFAF7; border: 1px solid var(--ffhq-line);
}
.ffhq-rig-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 6px; font-size: 13px; color: var(--ffhq-muted); }
.ffhq-rig-line b { color: var(--ffhq-ink); font-weight: 600; }
.ffhq-rig .nocheck { display: block; font-size: 13px; color: var(--ffhq-muted); padding: 6px 0; }
.ffhq-rig-cta { width: 100%; min-height: 48px; font-size: 16px; }
.ffhq-rig-cta.outlined { border-color: var(--ffhq-navy); }
.ffhq-rig-row2 { display: flex; gap: 8px; align-items: center; }
.ffhq-rig-row2 > .ffhq-btn { flex: 1 1 0; min-height: 44px; }
.ffhq-rig-row2 .ffhq-omenu-btn { width: 48px; }
.ffhq-rig-confirm { display: flex; gap: 8px; margin-top: 8px; }
.ffhq-maint li { align-items: center; }

/* ---- Checklist editor: reorder / remove ---- */
@media (max-width: 820px) {
    /* Three 44px buttons stacked beside the fields made every row ~132px tall. In a row of their own
       under the fields they cost one 44px line. */
    .ffhq-checkedit-row { flex-wrap: wrap; }
    .ffhq-checkedit-fields { flex: 1 0 100%; }
    .ffhq-checkedit-btns { flex-direction: row; gap: 6px; margin-left: auto; }
    .ffhq-checkedit-btns .ffhq-xbtn { border: 1px solid var(--ffhq-line); border-radius: 8px; background: #fff; }
    /* Disabled at 30% opacity measured 1.5:1; keep the text legible and say "off" with the fill. */
    .ffhq-checkedit-btns .ffhq-xbtn:disabled { opacity: 1; color: var(--ffhq-hint); background: var(--ffhq-paper); }
    .ffhq-checkedit .ffhq-checkinline { min-height: 44px; display: flex; align-items: center; gap: 8px; }
}

/* ---- Calendar: List | Month ---- */
.ffhq-calseg { display: flex; gap: 3px; padding: 3px; margin: 0 0 12px; max-width: 280px; background: #E3E1D8; border-radius: 10px; }
.ffhq-calseg button {
    flex: 1; min-height: 36px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
    font-family: var(--ffhq-cond); font-size: 15px; letter-spacing: .03em; color: #4A473F;
}
.ffhq-calseg button[aria-pressed="true"] { background: #fff; color: var(--ffhq-ink); font-weight: 600; }
.ffhq-calseg button:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: 1px; }
/* Nobody has chosen: the list on phones, the grid elsewhere. Both are in the page; CSS picks. */
@media (min-width: 821px) {
    .ffhq-calseg.for-phone, .ffhq-calview.list.auto { display: none; }
}
@media (max-width: 820px) {
    .ffhq-calseg { max-width: none; }
    .ffhq-calseg button { min-height: 44px; }
    .ffhq-calseg.for-wide, .ffhq-calview.month.auto { display: none; }
}

.ffhq-evlist li { padding: 0; cursor: default; }
.ffhq-evlist li:hover { background: none; }
.ffhq-evlist li.empty { padding: 14px 16px; font-size: 14px; }
.ffhq-evrow {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 10px 14px;
    background: none; border: 0; border-left: 5px solid var(--ffhq-line); text-align: left;
    font: inherit; color: var(--ffhq-ink); cursor: pointer;
}
.ffhq-evrow:hover, .ffhq-evrow.sel { background: #FAFAF7; }
.ffhq-evrow:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: -2px; }
.ffhq-evrow .body { flex: 1; min-width: 0; display: block; }
.ffhq-evrow .t { display: block; font-size: 16px; font-weight: 600; }
.ffhq-evrow .s { display: block; font-size: 14px; color: var(--ffhq-muted); }
.ffhq-evrow .ffhq-datebox { display: block; width: 46px; }
.ffhq-evrow .ffhq-datebox .m, .ffhq-evrow .ffhq-datebox .d { display: block; }
.ffhq-evrow .ffhq-datebox .d { font-size: 19px; }
.ffhq-evrow.drill { border-left-color: var(--ffhq-ev-drill); }
.ffhq-evrow.meet { border-left-color: var(--ffhq-ev-meet); }
.ffhq-evrow.duty { border-left-color: var(--ffhq-ev-duty); }
.ffhq-evrow.work { border-left-color: var(--ffhq-ev-work); }
.ffhq-evrow.pub { border-left-color: var(--ffhq-ev-pub); }
.ffhq-evearlier, .ffhq-evexport {
    display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 16px;
    border: 0; border-top: 1px solid var(--ffhq-line); background: none; text-align: left;
    font: inherit; font-size: 15px; font-weight: 600; color: var(--ffhq-navy); cursor: pointer; text-decoration: none;
}
.ffhq-evearlier:hover, .ffhq-evexport:hover { background: #FAFAF7; }
.ffhq-evearlier:focus-visible, .ffhq-evexport:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: -2px; }
.ffhq-evexport { font-weight: 400; font-size: 14px; }

/* ---- Calendar: month grid on a phone ---- */
@media (max-width: 820px) {
    /* Seven fixed 80px columns that scroll sideways inside .ffhq-tblwrap. The shared phone rule makes
       every table display: block, which threw the fixed layout away and gave uneven columns; the
       grid goes back to being a real table so the columns are equal and titles have room. */
    .ffhq-main table.ffhq-cal { display: table; overflow: visible; min-width: 560px; width: 100%; table-layout: fixed; }
    .ffhq-cal td { height: auto; min-height: 72px; padding: 4px 3px; }
    .ffhq-cal td .dn { font-size: 13px; }
    /* A 44px tap target that may wrap to three lines, so a title is still readable. */
    .ffhq-ev {
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
        min-height: 44px; padding: 4px 5px; margin-bottom: 3px; white-space: normal;
        font-size: 11.5px; line-height: 1.2;
    }
    .ffhq-cal-cols .ffhq-drawer-empty { display: none; }
    /* The sheet's own header already carries the title. */
    .ffhq-sheet .ffhq-evcard > .t { display: none; }
}

/* ---- Calendar: feed link ---- */
.ffhq-feedbtn { width: 100%; min-height: 44px; }
.ffhq-feedbtn.copied { background: var(--ffhq-ok-bg); border-color: var(--ffhq-ok); color: var(--ffhq-ok-text); }
.ffhq-feedstatus { display: block; margin-top: 8px; font-size: 13px; color: var(--ffhq-ok-text); }
.ffhq-feedstatus:empty { display: none; }
.ffhq-feedfallback { margin-top: 10px; }
.ffhq-feedfallback label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--ffhq-muted); }
/* <<< UX11 apparatus and calendar */

/* ~ spacer 3 of 4 (apparatus and calendar / controls) ~ */
/* ~ keep: separates two UX11 sections ~ */
/* ~ do not add CSS on these lines ~ */
/* ~ end spacer 3 ~ */

/* >>> UX11 controls (check runner, wizard, filters) */
/* The pass/fail pair, severity choices, NOW shortcuts, segmented choices, equipment and platform
   filters, and the type picker's options were clickable spans and divs: no keyboard, no role, no
   name. They are buttons now, and their base rules were edited where they live (.ffhq-pf, .ffhq-seg,
   .ffhq-sevrow, .ffhq-nowbtn, .ffhq-filters, .rmv-statusfilter, .ffhq-typesheet). What follows is the
   part that needed new selectors. */

/* ---- Wizard field cards: the caption is the label, and the card is the target --------------------
   The borderless input inside a card was 24px tall and had no accessible name, so a thumb had to find
   a 24px strip and a screen reader heard "edit text". The visible caption is now a real <label for>.
   .solo marks a card that holds exactly one control; there the label stretches over the whole card
   (the card is position:relative) so a tap anywhere on it focuses the field, and the control itself
   is lifted above that overlay and grown to a 44px box that reaches the card's edges. The negative
   margins cancel the extra size, so the card is the height it always was and the text has not
   moved. Cards with several controls (mutual aid, cost recovery, unit times) are NOT .solo: a label
   stretched over them would swallow taps meant for their neighbours. */
.ffhq-fld > label.l { display: block; }
.ffhq-fld.solo > label.l::after { content: ""; position: absolute; inset: 0; }
.ffhq-fld.solo > :is(input, select, textarea) { position: relative; z-index: 1; }
.ffhq-fld.solo > :is(input, select) {
    display: block; box-sizing: border-box; width: calc(100% + 26px); min-height: 44px;
    margin: -10px -13px -10px; padding: 10px 13px 11px;
}

/* A control that shares its card with others cannot be the whole card, so it is drawn as its own
   field instead: bordered, 44px, spaced from the one above. */
.ffhq-fld input.boxed, .ffhq-fld select.boxed {
    display: block; box-sizing: border-box; width: 100%; min-height: 44px; margin: 6px 0 0; padding: 8px 10px;
    border: 1px solid #C9C6BA; border-radius: 8px; background: #fff; font-weight: 400;
}
.ffhq-fld input.boxed:focus, .ffhq-fld select.boxed:focus { outline: 2px solid var(--ffhq-navy); outline-offset: -1px; }

/* The incident-type card is one button; it must still read as the card its neighbours are. */
button.ffhq-fld.tappable { display: block; width: 100%; min-height: 44px; text-align: left; font: inherit; color: inherit; }
.ffhq-fld.tappable .l, .ffhq-fld.tappable .v { display: block; }
button.ffhq-fld.tappable:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: 2px; }

/* The date and time boxes were 40px; they join the 44px rule. */
.ffhq-fld .ffhq-dtin input { min-height: 44px; }

/* Mutual-aid search results and fields: real controls already, now 44px. */
.ffhq-aidbox input[type="text"], .ffhq-aidbox input:not([type]), .ffhq-aidbox select { min-height: 44px; }
.ffhq-aidhit { min-height: 44px; }
.ffhq-aidbox input:focus-visible, .ffhq-aidhit:focus-visible { outline-offset: -2px; }

/* Account page: the security links are a list of rows, each a full-width target on a phone. */
@media (max-width: 820px) {
    /* The remove "x" on a chip: a 44px target that spills into the chip's own padding and the gap
       beside it instead of making the pill taller. */
    .ffhq-chipsrow .ffhq-chip .x {
        display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
        min-width: 44px; min-height: 44px; margin: -12px -11px -12px 0; font-size: 14px;
    }
    .ffhq-seclinks { display: block; }
    .ffhq-seclinks a {
        display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--ffhq-line);
    }
    .ffhq-seclinks a:last-child { border-bottom: 0; }
    .ffhq-filters button { min-height: 44px; padding: 0 16px; }
}
.ffhq-chipsrow .ffhq-chip .x:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: 1px; border-radius: 4px; }
.ffhq-seclinks a:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: 2px; border-radius: 3px; }

/* Platform console: the row's primary link is a real anchor styled as the text it replaced, and the
   rest of the row stays clickable for a pointer. */
.rmv-rowanchor { color: inherit; text-decoration: none; font-weight: 700; }
.rmv-rowanchor:hover { text-decoration: underline; }
.rmv-rowanchor:focus-visible { outline: 2px solid var(--ffhq-navy); outline-offset: 2px; border-radius: 3px; }
/* The disabled "Add this department" button measured 4.4:1 at the shared disabled opacity. */
.ffhq-aidadd:disabled { opacity: 1; background: var(--ffhq-cta-disabled); border-color: var(--ffhq-cta-disabled); color: #fff; }

/* ---- Wizard checkboxes and radios on a phone: a 44px target around the same small box ----------
   A native checkbox is 15px and cannot be enlarged without enlarging the box itself. So on a phone
   the native glyph is replaced with a 44x44 transparent control that draws a 22px box in ::before
   (and the tick or dot in ::after). The negative margin gives back the layout space, so rows keep
   their rhythm; the hit area spills over the row's own padding. The label rows are 44px tall too,
   so tapping the words works as before. Wizard only: nothing else shares these selectors. */
@media (max-width: 820px) {
    .ffhq-wiz .ffhq-pick, .ffhq-wiz .ffhq-aidradio, .ffhq-wiz .ffhq-checkinline { min-height: 44px; }
    .ffhq-wiz .ffhq-wiz-check { min-height: 44px; padding: 0 14px 0 6px; }
    .ffhq-wiz input[type="checkbox"], .ffhq-wiz input[type="radio"] {
        -webkit-appearance: none; appearance: none; position: relative; flex: none;
        width: 44px; height: 44px; margin: -12px; padding: 0; border: 0; background: transparent; cursor: pointer;
    }
    .ffhq-wiz input[type="checkbox"]::before, .ffhq-wiz input[type="radio"]::before {
        content: ""; position: absolute; inset: 11px; border: 2px solid #5C584F; border-radius: 4px; background: #fff;
    }
    .ffhq-wiz input[type="radio"]::before { border-radius: 50%; }
    .ffhq-wiz input[type="checkbox"]:checked::before, .ffhq-wiz input[type="radio"]:checked::before {
        background: var(--ffhq-navy); border-color: var(--ffhq-navy);
    }
    .ffhq-wiz input[type="checkbox"]:checked::after {
        content: ""; position: absolute; left: 18px; top: 13px; width: 6px; height: 12px;
        border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
    }
    .ffhq-wiz input[type="radio"]:checked::after {
        content: ""; position: absolute; inset: 17px; border-radius: 50%; background: #fff;
    }
    .ffhq-wiz input[type="checkbox"]:focus-visible::before, .ffhq-wiz input[type="radio"]:focus-visible::before {
        outline: 2px solid var(--ffhq-navy); outline-offset: 2px;
    }
}
/* The type picker's dialog is focused by script when it opens, so a screen reader announces it; that
   focus is not a control and should not draw a ring. */
.ffhq-typesheet:focus { outline: none; }
/* Bootstrap sizes <code> at .875em, which is 11.4px inside the console's 13px tables. */
.rmv-tbl code { font-size: 12px; }
/* <<< UX11 controls (check runner, wizard, filters) */

/* ~ spacer 4 of 4 (controls / incident view and files) ~ */
/* ~ keep: separates two UX11 sections ~ */
/* ~ do not add CSS on these lines ~ */
/* ~ end spacer 4 ~ */

/* >>> UX11 incident view and files */
/* ---- State notices (incident view, files panel) -----------------------------------------------
   ONE pattern for every notice these screens announce: a padded block with a coloured background,
   an icon and bold title on the first line, the body under it, and any actions last. The colour is
   the severity (warn / info / err / ok). Before this the locked notice was bare text flush against
   its card's edge and its button inherited no styling, so it read as disabled. The text colours are
   darker than the --ffhq-*-text tokens on purpose: these carry a paragraph, not a chip. */
.ffhq-notice {
    display: flex; flex-direction: column; gap: 10px;
    margin: 0 0 12px; padding: 14px 16px; border: 1px solid; border-radius: 10px;
    font-size: 14px; line-height: 1.5;
}
.ffhq-notice.warn { background: var(--ffhq-warn-bg); border-color: #EAD9B0; color: #4A3A12; }
.ffhq-notice.info { background: var(--ffhq-info-bg); border-color: #C3D4E6; color: #1B3A5C; }
.ffhq-notice.err  { background: var(--ffhq-crit-bg); border-color: #EAC4BD; color: #6B1F18; }
.ffhq-notice.ok   { background: var(--ffhq-ok-bg);   border-color: #BFDCCB; color: #17492B; }
.ffhq-notice .ttl { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.4; }
.ffhq-notice .ttl svg { flex: none; margin-top: 1px; }
.ffhq-notice .ttl b { font-weight: 700; }
.ffhq-notice .ttl span { font-weight: 400; }
.ffhq-notice.warn .ttl > svg, .ffhq-notice.warn .ttl > b { color: var(--ffhq-warn-text); }
.ffhq-notice.info .ttl > svg, .ffhq-notice.info .ttl > b { color: var(--ffhq-info-text); }
.ffhq-notice.err .ttl > svg { color: var(--ffhq-crit-text); }
.ffhq-notice.ok .ttl > svg, .ffhq-notice.ok .ttl > b { color: var(--ffhq-ok-text); }
.ffhq-notice .msg, .ffhq-notice .note { margin: 0; }
.ffhq-notice .note { font-size: 13px; }
.ffhq-notice .acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ffhq-notice .resend { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(74, 58, 18, .18); }
.ffhq-notice.info .resend { border-top-color: rgba(27, 58, 92, .2); }
/* Enabled-looking buttons: white, navy outline, navy text. A bare .ffhq-btn has no background of its
   own and rendered as the browser's grey, which is what made "Return to draft" look disabled. */
.ffhq-notice .ffhq-btn {
    background: #fff; color: var(--ffhq-navy); border: 1px solid var(--ffhq-navy);
    font-weight: 600; justify-content: center;
}
.ffhq-notice .ffhq-btn:hover { background: #F4F7FB; }
.ffhq-notice .ffhq-btn.primary { background: var(--ffhq-navy); color: #fff; }
.ffhq-notice .ffhq-btn.primary:hover { background: #1E3450; }
.ffhq-notice .ffhq-btn:disabled { opacity: .55; }
.ffhq-notice .ffhq-fld { margin: 0; }
@media (max-width: 820px) {
    .ffhq-notice { font-size: 15px; padding: 14px 16px; }
    .ffhq-notice .ttl { font-size: 16px; }
    .ffhq-notice .note { font-size: 14px; }
    .ffhq-notice .ffhq-btn { min-height: 44px; }
}

/* ---- Incident header, ON SCREEN ONLY ---------------------------------------------------------
   Applied by <IncidentDetailSection Screen="true"> (the incident view page). The printed batch report
   never sets Screen, so none of these classes exist in its markup and its .ffhq-idb-head layout is
   untouched. Type is the headline, date and place sit under it, the two statuses are chips. */
.ffhq-idb-screen { border: 0; border-radius: 0; padding: 18px 20px; }
.ffhq-incv-head { text-align: left; padding-bottom: 14px; border-bottom: 2px solid var(--ffhq-navy); }
.ffhq-incv-type { font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--ffhq-ink); }
.ffhq-incv-also { font-size: 13px; color: #5C584F; margin-top: 2px; }
.ffhq-incv-sub { font-size: 14px; color: #5C584F; margin-top: 3px; overflow-wrap: anywhere; }
.ffhq-incv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ffhq-incv-chips .ffhq-chip { margin-right: 0; font-size: 13px; padding: 3px 11px; }
.ffhq-idb-screen .ffhq-idb-grid { gap: 14px 22px; margin-top: 16px; }
.ffhq-idb-screen .ffhq-idb-field span { font-size: 12.5px; color: #5C584F; letter-spacing: .07em; }
.ffhq-idb-screen .ffhq-idb-field b { font-size: 15px; overflow-wrap: anywhere; }
.ffhq-idb-screen .ffhq-idb-sub { font-size: 12.5px; color: #5C584F; }
.ffhq-idb-screen .ffhq-idb-narrative { font-size: 15px; }
.ffhq-idb-screen .ffhq-idb-none, .ffhq-idb-screen .ffhq-idb-line { font-size: 14px; }
.ffhq-idb-screen .ffhq-idb-tbl { font-size: 14px; }
.ffhq-idb-screen .ffhq-idb-tbl th { font-size: 12px; }
@media (max-width: 820px) {
    .ffhq-idb-screen { padding: 16px; }
    .ffhq-incv-type { font-size: 16px; }
    .ffhq-idb-screen .ffhq-idb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
    .ffhq-idb-screen .ffhq-idb-field b { font-size: 16px; }
    .ffhq-idb-screen .ffhq-idb-tbl { font-size: 15px; }
}

/* ---- Files panel (incidents, members, certifications, apparatus, equipment, hydrants) ------------ */
.ffhq-files-empty { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: #5C584F; }
.ffhq-files .ffhq-filelist { margin-bottom: 14px; }
.ffhq-file .name { font-size: 14px; }
.ffhq-file .caption { font-size: 14px; }
.ffhq-file .meta { font-size: 12.5px; color: #5C584F; }
.ffhq-file .thumb .glyph { font-size: 12.5px; color: #5C584F; }
.ffhq-filehistory .r { font-size: 12.5px; color: #5C584F; }
.ffhq-file .ffhq-btn.danger { color: var(--ffhq-crit-text); border-color: var(--ffhq-crit-text); }

.ffhq-files-form { position: relative; display: flex; flex-direction: column; gap: 14px; }
/* The real <input type="file">, kept for accessibility and behaviour but not drawn: "Choose file" is
   a <label for> styled as the button. Visually hidden rather than display:none so it stays focusable. */
.ffhq-files-input {
    position: absolute; top: 0; left: 0; width: 100%; height: 48px; margin: 0; padding: 0; border: 0;
    opacity: 0; pointer-events: none;
}
.ffhq-files-input:focus-visible ~ .ffhq-files-pick label[data-ffhq-choose] { outline: 2px solid var(--ffhq-red); outline-offset: 2px; }
.ffhq-files-pick { display: flex; gap: 10px; }
.ffhq-files-btn {
    flex: 1 1 0; min-height: 48px; margin: 0; padding: 0 14px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 10px; border: 1px solid var(--ffhq-navy); background: #fff; color: var(--ffhq-navy);
    font-family: var(--ffhq-cond); font-size: 16px; font-weight: 600; letter-spacing: .04em;
    cursor: pointer; text-decoration: none; user-select: none;
}
.ffhq-files-btn:hover { background: #F4F7FB; }
.ffhq-files-btn.primary { background: var(--ffhq-navy); color: #fff; }
.ffhq-files-btn.primary:hover { background: #1E3450; }
.ffhq-files-btn.off { opacity: .55; cursor: default; }
.ffhq-files-btn:focus-visible { outline: 2px solid var(--ffhq-red); outline-offset: 2px; }
.ffhq-files-btn[hidden] { display: none; }
/* Visibly disabled: the muted slate token (5.2:1 with white text), not a faded navy that reads as
   merely hovered. */
.ffhq-files-attach { width: 100%; flex: none; }
.ffhq-files-attach:disabled { background: var(--ffhq-cta-disabled); border-color: var(--ffhq-cta-disabled); color: #fff; cursor: default; opacity: 1; }
.ffhq-files-chosen { margin-top: -6px; font-size: 14px; color: var(--ffhq-hint); overflow-wrap: anywhere; }
.ffhq-files-chosen.has { color: var(--ffhq-ink); font-weight: 600; }
.ffhq-files-cap { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.ffhq-files-cap > span { font-family: var(--ffhq-cond); font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: #5C584F; }
.ffhq-files-cap .ffhq-input { height: 44px; font-size: 16px; padding: 0 12px; }
.ffhq-files-fine { margin: 0; font-size: 13px; line-height: 1.5; color: #5C584F; }
.ffhq-files-details { margin-top: -8px; font-size: 13px; color: #5C584F; }
.ffhq-files-details summary { display: inline-flex; align-items: center; min-height: 32px; cursor: pointer; color: var(--ffhq-navy); font-weight: 600; }
.ffhq-files-details p { margin: 4px 0 8px; line-height: 1.5; }
.ffhq-files-history { margin-top: 14px; }
.ffhq-files-history summary { display: flex; align-items: center; min-height: 32px; cursor: pointer; font-size: 14px; color: var(--ffhq-navy); font-weight: 600; }
.ffhq-files-progress { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #5C584F; overflow-wrap: anywhere; }
.ffhq-files-progress .bar { position: relative; height: 6px; border-radius: 99px; background: #E3E1D8; overflow: hidden; }
.ffhq-files-progress .bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; border-radius: 99px; background: var(--ffhq-navy); animation: ffhq-files-slide 1.3s ease-in-out infinite; }
@keyframes ffhq-files-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .ffhq-files-progress .bar i { animation: none; width: 45%; } }
@media (max-width: 820px) {
    .ffhq-files-empty { font-size: 15px; }
    .ffhq-file .name, .ffhq-file .caption { font-size: 15px; }
    .ffhq-file .name { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
    .ffhq-file .meta { font-size: 13px; }
    .ffhq-files-chosen { font-size: 14px; }
    .ffhq-files-fine, .ffhq-files-details, .ffhq-files-progress { font-size: 13px; }
    .ffhq-files-details summary, .ffhq-files-history summary { min-height: 44px; min-width: 44px; }
}
/* <<< UX11 incident view and files */

/* >>> UX11 cleanup */
/* Stragglers from the final re-measure, on pages no single section above owned. */

.ffhq-integrations code { font-size: 12px; } /* Bootstrap's .875em was 10.9px in a 12.5px label */

/* ---- Alerts wrap: a long unbroken string (a URL, a stack frame) must never widen the page ------ */
.ffhq-alert { overflow-wrap: anywhere; }

/* ---- Bootstrap buttons (admin pages, Identity manage pages) --------------------------------------
   Contrast, at every width: Bootstrap's outline-danger text is #dc3545, 4.08:1 on the page
   background. The crit-text token passes on the page and on white. Hover keeps Bootstrap's filled
   red with white text. */
.ffhq-main .btn-outline-danger {
    --bs-btn-color: var(--ffhq-crit-text);
    --bs-btn-border-color: var(--ffhq-crit-text);
}
/* A disabled filled-primary in the sync queue's bar: .55 opacity gave 4.43:1. Same fix as the
   files panel's disabled Attach (the slate token with white text, no opacity). */
.ffhq-filterbar .ffhq-btn.primary:disabled { opacity: 1; background: var(--ffhq-cta-disabled); color: #fff; }

@media (max-width: 820px) {
    /* ---- Bootstrap buttons: 44px, like .ffhq-btn above -------------------------------------------
       One rule for every .btn inside the app's main column (admin pages are written in Bootstrap,
       and so are the Identity manage pages, which share this column). inline-flex centres the label
       once min-height outgrows Bootstrap's padding. */
    .ffhq-main .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

    /* ---- Links inside a sentence ----------------------------------------------------------------
       Same trick as the card-heading links: the 44px target spills into the line spacing instead of
       growing the paragraph. For short link text only (one word or two, never one that wraps). */
    .ffhq-inlinelink { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
    .ffhq-nearwater-all { display: flex; align-items: center; min-height: 44px; margin-top: 4px; }

    /* ---- Sync queue: tab strip and checkboxes ---------------------------------------------------
       Five tabs plus their counts were 5px wider than a 390px column. Tighter side padding, and let
       them share the row instead of each keeping its desktop width. */
    .ffhq-tabs-fit button { flex: 1 1 auto; min-width: 0; padding-inline: 4px; }
    .ffhq-tabs-fit .cnt { margin-left: 3px; padding-inline: 6px; }

    /* ---- Checkboxes: the wizard's 44px target around a drawn box, for the other pages that need it
       (see "Wizard checkboxes and radios" above for how it works). */
    :is(.ffhq-tbl-cards td, .ffhq-filterbar .f, .ffhq-integrations .ffhq-checkinline) input[type="checkbox"] {
        -webkit-appearance: none; appearance: none; position: relative; flex: none;
        width: 44px; height: 44px; margin: -12px; padding: 0; border: 0; background: transparent; cursor: pointer;
    }
    :is(.ffhq-tbl-cards td, .ffhq-filterbar .f, .ffhq-integrations .ffhq-checkinline) input[type="checkbox"]::before {
        content: ""; position: absolute; inset: 11px; border: 2px solid #5C584F; border-radius: 4px; background: #fff;
    }
    :is(.ffhq-tbl-cards td, .ffhq-filterbar .f, .ffhq-integrations .ffhq-checkinline) input[type="checkbox"]:checked::before {
        background: var(--ffhq-navy); border-color: var(--ffhq-navy);
    }
    :is(.ffhq-tbl-cards td, .ffhq-filterbar .f, .ffhq-integrations .ffhq-checkinline) input[type="checkbox"]:checked::after {
        content: ""; position: absolute; left: 18px; top: 13px; width: 6px; height: 12px;
        border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
    }
    :is(.ffhq-tbl-cards td, .ffhq-filterbar .f, .ffhq-integrations .ffhq-checkinline) input[type="checkbox"]:focus-visible::before {
        outline: 2px solid var(--ffhq-navy); outline-offset: 2px;
    }
    .ffhq-integrations .ffhq-checkinline { min-height: 44px; }

    /* ---- Integrations: links and disclosure toggles in the dispatch-email log ------------------ */
    .ffhq-integrations a.sm, .ffhq-integrations details.sm > summary {
        display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; cursor: pointer;
    }

    /* ---- Date-range and zone pills (Reports and every report page) ------------------------------
       The pill held a 24px borderless input. The pill is now the 44px row and the input fills it. */
    .ffhq-filterbar .f, .ffhq-rpt-range .f { padding-block: 0; min-height: 44px; }
    .ffhq-filterbar .f :is(input:not([type="checkbox"]), select),
    .ffhq-rpt-range .f :is(input:not([type="checkbox"]), select) { min-height: 44px; }
    /* The NFPA 1720 zone table as cards: the declared zone's card keeps the highlight the row had. */
    .ffhq-rpt-table.ffhq-tbl-cards td, .ffhq-rpt-table.ffhq-tbl-cards td.r { padding: 7px 0; border-bottom: 0; }
    .ffhq-tbl-cards tr.ffhq-zone-current { background: #F4F2EA; border-color: var(--ffhq-navy); }
}
/* <<< UX11 cleanup */

/* >>> UX11 follow-up (2026-11-12): report charts and tables on phones, account pages, pick rows */

/* ---- Report charts: one of two drawings -----------------------------------------------------------
   SvgChart emits each chart twice: 720 units wide for desktop and paper, 320 wide for phones. The
   wide one scaled into a 340px column put its 10-unit text at about 4.5px. `screen` matters: a page
   printed from a phone, or onto paper narrower than 820px, must still get the wide chart. */
.ffhq-rpt-chart .ffhq-chart.compact { display: none; }
/* The report's table heading picked up the card-header padding and rule meant for `.ffhq-card h2`,
   so it sat 18px to the right of the table it names. */
.ffhq-rpt-detail h2 { padding: 0; border-bottom: 0; }
@media screen and (max-width: 820px) {
    .ffhq-rpt-chart .ffhq-chart:not(.compact) { display: none; }
    .ffhq-rpt-chart .ffhq-chart.compact { display: block; max-width: 440px; }
    /* 34px of side padding left the report a 280px column on a 390px phone. */
    .ffhq-rpt { padding: 18px 16px; }
    .ffhq-rpt-head .meta { text-align: left; }

    /* ---- Report tables of four or more columns: stacked rows --------------------------------------
       The incident log is nine columns; in a 280px column it either scrolled sideways or broke a
       street address one word a line. Each row becomes a block of label/value lines, the header
       text coming from data-label. Screen only, so the printed report keeps its table. */
    .ffhq-rpt-table.stack, .ffhq-rpt-table.stack tbody { display: block; overflow: visible; }
    .ffhq-rpt-table.stack thead { display: none; }
    .ffhq-rpt-table.stack tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--ffhq-line); }
    /* A floated label rather than a flex row: a cell can hold text AND the mutual-aid mark, and as
       flex items those two would be pushed apart. flow-root contains the float. */
    .ffhq-rpt-table.stack td, .ffhq-rpt-table.stack td.r {
        display: flow-root; padding: 3px 0; border: 0; text-align: right; font-size: 14.5px; overflow-wrap: anywhere;
    }
    .ffhq-rpt-table.stack td::before {
        content: attr(data-label); float: left; margin-right: 16px; line-height: 1.8;
        font-family: var(--ffhq-cond); font-size: 12px; font-weight: 600;
        text-transform: uppercase; letter-spacing: .06em; color: var(--ffhq-muted);
    }
    .ffhq-rpt-table.stack td:first-child { font-weight: 600; }
}

/* ---- Account settings pages (Identity scaffolding, written in Bootstrap) --------------------------
   Bootstrap's link blue is 4.05:1 on the page background, its secondary grey 4.22:1 and its success
   green 4.3:1. The brand tokens pass, and the section menu now looks like the rest of the app. */
.ffhq-main .nav-pills .nav-link { color: var(--ffhq-navy); font-weight: 600; }
.ffhq-main .nav-pills .nav-link.active { background: var(--ffhq-navy); color: #fff; }
.ffhq-main .form-label, .ffhq-main .form-text, .ffhq-main .text-muted, .ffhq-main .text-secondary { color: var(--ffhq-muted) !important; }
.ffhq-main .text-success { color: var(--ffhq-ok-text) !important; }
.ffhq-main .text-danger { color: var(--ffhq-crit-text) !important; }

@media (max-width: 820px) {
    .ffhq-main .nav-pills .nav-link { display: flex; align-items: center; min-height: 44px; }

    /* ---- Pick rows (checkbox + label) outside the wizard: the whole row is the 44px target ------- */
    .ffhq-pick { min-height: 44px; }
}
/* ---- Platform console on tablets and phones -------------------------------------------------------
   The top bar was one fixed 60px row: brand, eleven links and the user block. Below about 1100px
   that row was wider than the screen and the whole console scrolled sideways (813px on a phone).
   Brand and user now share the first row and the links get their own, scrolling inside the bar. */
@media (max-width: 1100px) {
    .rmv-topbar { flex-wrap: wrap; height: auto; padding: 8px 14px 0; gap: 6px 14px; }
    .rmv-brand { flex: 1; min-width: 0; }
    .rmv-nav {
        order: 3; flex: 0 0 auto; width: calc(100% + 28px); margin-inline: -14px; padding-inline: 14px;
        overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .rmv-nav::-webkit-scrollbar { display: none; }
    .rmv-nav a { flex: none; display: flex; align-items: center; min-height: 44px; white-space: nowrap; border-radius: 8px 8px 0 0; }
}
@media (max-width: 820px) {
    .rmv-main { padding: 18px 14px 60px; }
    .rmv-username { display: none; }
    .rmv-btn, .rmv-signout, .rmv-statusfilter button { min-height: 44px; min-width: 44px; justify-content: center; }
    .rmv-rowanchor { display: inline-flex; align-items: center; min-height: 44px; }
}
/* <<< UX11 follow-up */

/* >>> Dispatch calls */
/* ---- Call screen and who's coming (Features/Calls) ----------------------------------------------
   Opened from a dispatch alert, one-handed, on the way to the truck. One column at every width,
   capped so a desktop does not stretch a 58px answer button across the whole page. The red band is
   the call; it turns the muted grey once the call is closed. */
.ffhq-call { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.ffhq-call-band {
    display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 10px;
    background: var(--ffhq-red); color: #fff;
}
.ffhq-call-band.closed { background: var(--ffhq-muted); }
.ffhq-call-band .type {
    font-family: var(--ffhq-cond); font-size: 30px; font-weight: 700; line-height: 1.05;
    letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere;
}
.ffhq-call-band .meta { font-size: 14px; }
/* Who's coming: type and address on one line, the age at its end. */
.ffhq-call-band.slim { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; padding: 10px 16px; }
.ffhq-call-band.slim .type { font-size: 20px; }
.ffhq-call-band.slim .meta { flex: none; }

.ffhq-call-where .addr {
    font-family: var(--ffhq-cond); font-size: 28px; font-weight: 600; line-height: 1.1;
    color: var(--ffhq-navy-deep); overflow-wrap: anywhere;
}
.ffhq-call-where .addr.none { font-size: 20px; color: var(--ffhq-muted); }
.ffhq-call-where .cross { margin-top: 4px; font-size: 15px; color: var(--ffhq-muted); }
.ffhq-call .ffhq-call-directions { width: 100%; min-height: 44px; margin-top: -4px; font-size: 15px; font-weight: 600; }

/* Units and notes. Specific enough to beat `.ffhq-card h2`, which would give these labels a card
   header's padding and rule. */
.ffhq-call-facts { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; }
.ffhq-call .ffhq-call-h {
    margin: 0 0 6px; padding: 0; border: 0;
    font-family: var(--ffhq-cond); font-size: 13px; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase; color: var(--ffhq-muted);
}
.ffhq-call-units { display: flex; flex-wrap: wrap; gap: 8px; }
.ffhq-call-units span {
    padding: 5px 10px; border-radius: 8px; background: var(--ffhq-info-bg);
    color: var(--ffhq-navy-deep); font-size: 14px; font-weight: 600;
}
.ffhq-call-notes { margin: 0; font-size: 15px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }

/* The answer. To the scene is the large primary; To station and Not available are the equal pair
   under it. The member's current answer is filled green with a tick (and aria-pressed). Disabled
   is the slate token at full opacity, as the files panel does: faded navy read as merely hovered.
   A closed call keeps its tick green so the final answer still shows. */
.ffhq-call-status { margin: 0; font-size: 15px; }
.ffhq-call-respond { display: flex; flex-direction: column; gap: 10px; }
.ffhq-call-respond .ffhq-btn { width: 100%; border-radius: 12px; font-weight: 600; letter-spacing: .03em; }
.ffhq-call-respond .ffhq-btn.scene { min-height: 58px; font-size: 22px; background: var(--ffhq-navy-deep); color: #fff; }
.ffhq-call-respond .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ffhq-call-respond .pair .ffhq-btn {
    min-height: 52px; font-size: 19px; background: #fff; color: var(--ffhq-navy);
    border: 1.5px solid var(--ffhq-navy);
}
.ffhq-call-respond .ffhq-btn:not(:disabled):hover { box-shadow: 0 2px 8px rgba(27, 44, 66, .25); }
.ffhq-call-respond .ffhq-btn.on { background: var(--ffhq-ok); border-color: var(--ffhq-ok); color: #fff; }
.ffhq-call-respond .ffhq-btn:disabled {
    opacity: 1; background: var(--ffhq-cta-disabled); border-color: var(--ffhq-cta-disabled); color: #fff;
}
.ffhq-call-respond .ffhq-btn.on:disabled { background: var(--ffhq-ok); border-color: var(--ffhq-ok); }
.ffhq-call-who {
    display: flex; align-items: center; justify-content: center; min-height: 44px;
    font-size: 15px; font-weight: 600; color: var(--ffhq-navy); text-decoration: none;
}
.ffhq-call-who:hover { color: var(--ffhq-navy-deep); text-decoration: underline; }
.ffhq-call .ffhq-call-close { width: 100%; min-height: 44px; font-weight: 600; }
.ffhq-call .ffhq-notice { margin: 0; }

/* ---- Who's coming -------------------------------------------------------------------------------- */
.ffhq-call-mine {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 60px; padding: 8px 8px 8px 14px; border-radius: 12px;
    background: var(--ffhq-navy-deep); color: #fff;
}
.ffhq-call-mine .l { font-size: 12px; letter-spacing: .08em; color: #C6D0DC; }
.ffhq-call-mine .v { font-family: var(--ffhq-cond); font-size: 20px; font-weight: 600; }
.ffhq-call-mine a {
    flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
    border-radius: 8px; background: #fff; color: var(--ffhq-navy-deep);
    font-size: 15px; font-weight: 700; text-decoration: none;
}
.ffhq-call-mine a:hover { color: var(--ffhq-navy-deep); background: var(--ffhq-info-bg); }
.ffhq-call-mine a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ffhq-call-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ffhq-call-counts > div {
    padding: 8px 10px; border: 1px solid var(--ffhq-line); border-radius: 10px;
    background: #fff; text-align: center;
}
.ffhq-call-counts b {
    display: block; font-family: var(--ffhq-cond); font-size: 30px; font-weight: 700; line-height: 1;
    color: var(--ffhq-navy-deep); font-variant-numeric: tabular-nums;
}
.ffhq-call-counts span { font-size: 13px; color: var(--ffhq-muted); }
.ffhq-call-rows {
    margin: 0; padding: 0; list-style: none;
    border: 1px solid var(--ffhq-line); border-radius: 10px; background: #fff;
}
.ffhq-call-rows li {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    min-height: 44px; padding: 8px 14px; border-bottom: 1px solid var(--ffhq-line);
}
.ffhq-call-rows li:last-child { border-bottom: 0; }
.ffhq-call-rows .who { min-width: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.ffhq-call-rows .rk { font-weight: 400; color: var(--ffhq-muted); }
.ffhq-call-rows .at { flex: none; font-size: 14px; color: var(--ffhq-muted); }
.ffhq-call-names { margin: 0; font-size: 15px; line-height: 1.4; }
.ffhq-call-names.quiet { color: var(--ffhq-muted); }
.ffhq-call .ffhq-call-report {
    width: 100%; min-height: 48px; font-size: 17px; font-weight: 600; border: 1.5px solid var(--ffhq-navy);
}

/* ---- Dashboard banner ------------------------------------------------------------------------------
   The whole banner is the link. Desktop: one row. Phone: the label and "Open call ›" share the first
   row, the call and its time take a row each. */
.ffhq-callbanner {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
    margin: 0 0 16px; padding: 12px 16px; min-height: 44px; border-radius: 10px;
    background: var(--ffhq-red); color: #fff; text-decoration: none;
}
.ffhq-callbanner:hover, .ffhq-callbanner:focus { color: #fff; text-decoration: none; box-shadow: 0 2px 10px rgba(183, 32, 42, .35); }
.ffhq-callbanner:focus-visible { outline: 2px solid var(--ffhq-navy-deep); outline-offset: 2px; }
.ffhq-callbanner .lbl {
    padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .2);
    font-family: var(--ffhq-cond); font-size: 13px; font-weight: 700; letter-spacing: .1em;
}
.ffhq-callbanner .what {
    order: 1; font-family: var(--ffhq-cond); font-size: 20px; font-weight: 700;
    letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere;
}
.ffhq-callbanner .when { order: 2; font-size: 14px; }
.ffhq-callbanner .go { order: 3; margin-left: auto; font-weight: 700; white-space: nowrap; }
.ffhq-callbanner .go::after { content: "\203A"; margin-left: 5px; }
@media (max-width: 820px) {
    .ffhq-callbanner .go { order: 0; }
    .ffhq-callbanner .what, .ffhq-callbanner .when { flex-basis: 100%; }
}
/* <<< Dispatch calls */

/* >>> Alert settings */
/* ---- Dispatch alert settings (Features/Account/AlertSettingsPage) --------------------------------
   One column, capped so a desktop does not stretch the rows. Every control is at least 44px tall. */
.ffhq-alerts { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.ffhq-alerts .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ffhq-alerts-sec { display: flex; flex-direction: column; gap: 6px; }
.ffhq-alerts-h { margin: 0; font-family: var(--ffhq-cond); font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--ffhq-muted); }
.ffhq-alerts-group { display: flex; flex-direction: column; margin: 0; padding: 0; min-width: 0; background: #fff; border: 1px solid var(--ffhq-line); border-radius: 14px; }
.ffhq-alerts-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; min-height: 52px; border-bottom: 1px solid var(--ffhq-line); }
.ffhq-alerts-row:last-child { border-bottom: 0; }
.ffhq-alerts-row .ttl { font-size: 17px; font-weight: 600; }
.ffhq-alerts-row .sub { font-size: 14px; color: var(--ffhq-muted); line-height: 1.4; }
.ffhq-alerts-row.check { font-size: 17px; cursor: pointer; }
.ffhq-alerts-row.check input { flex: none; width: 24px; height: 24px; accent-color: var(--ffhq-navy-deep); }
.ffhq-switch { flex: none; width: 54px; height: 44px; padding: 6px 0; border: 0; background: transparent; cursor: pointer; }
.ffhq-switch .track { display: flex; align-items: center; justify-content: flex-start; width: 54px; height: 32px; padding: 3px; box-sizing: border-box; border-radius: 16px; background: #8F8B80; }
.ffhq-switch .track.on { justify-content: flex-end; background: var(--ffhq-navy-deep); }
.ffhq-switch .knob { width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.ffhq-switch:focus-visible { outline: 2px solid var(--ffhq-red); outline-offset: 2px; border-radius: 16px; }
.ffhq-switch:disabled { opacity: .55; cursor: default; }
.ffhq-window { display: flex; flex-direction: column; gap: 10px; margin: 0; min-width: 0; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--ffhq-line); }
.ffhq-window legend { float: left; width: 100%; padding: 0; margin: 0 0 8px; font-family: var(--ffhq-cond); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ffhq-muted); }
.ffhq-window legend + * { clear: both; }
.ffhq-window .days { display: flex; flex-wrap: wrap; gap: 6px; }
.ffhq-window .day { position: relative; display: inline-flex; }
.ffhq-window .day input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ffhq-window .day span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: 0 8px; border: 1.5px solid var(--ffhq-line); border-radius: 10px; background: #fff; font-size: 15px; font-weight: 600; }
.ffhq-window .day input:checked + span { background: var(--ffhq-navy-deep); border-color: var(--ffhq-navy-deep); color: #fff; }
.ffhq-window .day input:focus-visible + span { outline: 2px solid var(--ffhq-red); outline-offset: 2px; }
.ffhq-window .times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ffhq-window .ffhq-input { min-height: 44px; font-size: 16px; }
.ffhq-window .note { font-size: 14px; color: var(--ffhq-muted); }
.ffhq-alerts-remove { min-height: 44px; align-self: flex-start; }
.ffhq-alerts-add { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 600; color: var(--ffhq-navy); cursor: pointer; text-align: left; }
.ffhq-alerts-add:disabled { opacity: .55; cursor: default; }
.ffhq-alerts-hint { font-size: 14px; line-height: 1.4; color: var(--ffhq-muted); }
.ffhq-alerts-save { display: flex; flex-direction: column; gap: 10px; }
.ffhq-alerts-save .ffhq-notice { margin: 0; }
.ffhq-alerts-savebtn { min-height: 52px; font-size: 16px; }
.ffhq-alerts-foot { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ffhq-muted); }
/* <<< Alert settings */
