:root {
    --ink: #08140f;
    --ink-2: #0d1c16;
    --panel: #13261d;
    --panel-2: #183024;
    --line: rgba(212, 175, 89, 0.18);
    --gold: #d4af59;
    --gold-2: #f0d78c;
    --accent: #2387a5;
    --accent-soft: rgba(35, 135, 165, 0.12);
    --ink-on-accent: #ffffff;
    --canopy: #1f8a5b;
    --mint: #9fd7b3;
    --paper: #f4efe4;
    --clay: #c45c26;
    --crimson: #c23030;
    --sky: #4c8dda;
    --text: #e9f2ea;
    --muted: #9bb5a5;
    --field-ink: #17241c;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    --radius: 18px;
    --sidebar: 248px;
    --font: "Manrope", "Segoe UI", sans-serif;
    --display: "Syne", "Manrope", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
    --ink-on-gold: #1a1408;
    --glow-a: rgba(31, 138, 91, 0.22);
    --glow-b: rgba(212, 175, 89, 0.1);
    --sidebar-bg: rgba(8, 20, 15, 0.72);
    --topbar-bg: rgba(8, 20, 15, 0.78);
    --search-bg: rgba(19, 38, 29, 0.7);
    --card-from: rgba(24, 48, 36, 0.92);
    --card-to: rgba(16, 32, 24, 0.92);
    --row-line: rgba(255, 255, 255, 0.05);
    --row-hover: rgba(31, 138, 91, 0.08);
    --track: rgba(255, 255, 255, 0.06);
    --watch-bezel: #07110d;
    --watch-face: #f4e3a8;
    --mode-switch-bg: rgba(8, 20, 15, 0.45);
    --field-surface: #eef6ef;
    --field-card: #f7fbf7;
    --field-line: #c5e0cc;
    --field-muted: #4d6a58;
    --field-chrome: #0b3d2c;
    --popup-bg: #10241b;
    --popup-text: #e8efe9;
    --nav-active: rgba(31, 138, 91, 0.16);
}

html.scheme-dark {
    --ink: #07080a;
    --ink-2: #101215;
    --panel: #15181c;
    --panel-2: #1c2128;
    --line: rgba(232, 236, 240, 0.12);
    --canopy: #3d8b6e;
    --mint: #9aa3ad;
    --paper: #101215;
    --text: #e8eaed;
    --muted: #9aa3ad;
    --field-ink: #e8eaed;
    --glow-a: rgba(90, 100, 120, 0.16);
    --glow-b: rgba(212, 175, 89, 0.06);
    --sidebar-bg: rgba(7, 8, 10, 0.9);
    --topbar-bg: rgba(7, 8, 10, 0.92);
    --search-bg: rgba(21, 24, 28, 0.88);
    --card-from: rgba(28, 32, 38, 0.96);
    --card-to: rgba(16, 18, 22, 0.96);
    --row-hover: rgba(212, 175, 89, 0.08);
    --watch-bezel: #0b0c0e;
    --mode-switch-bg: rgba(255, 255, 255, 0.05);
    --field-surface: #101215;
    --field-card: #171b20;
    --field-line: #2a3038;
    --field-muted: #8b949e;
    --field-chrome: #050607;
    --popup-bg: #171b20;
    --popup-text: #e8eaed;
    --nav-active: rgba(212, 175, 89, 0.12);
}

html.scheme-site {
    --ink: #fbfdfe;
    --ink-2: #ffffff;
    --panel: #ffffff;
    --panel-2: #f2f9fb;
    --line: #cfe4ec;
    --gold: #1f7fa3;
    --gold-2: #2f97bd;
    --accent: #2f97bd;
    --accent-soft: rgba(47, 151, 189, 0.12);
    --ink-on-accent: #ffffff;
    --ink-on-gold: #ffffff;
    --canopy: #2f97bd;
    --mint: #8bc34a;
    --paper: #fbfdfe;
    --text: #21303d;
    --muted: #5b6977;
    --field-ink: #21303d;
    --shadow: 0 18px 40px rgba(31, 127, 163, 0.08);
    --glow-a: rgba(47, 151, 189, 0.1);
    --glow-b: rgba(139, 195, 74, 0.08);
    --sidebar-bg: #ffffff;
    --topbar-bg: rgba(251, 253, 254, 0.96);
    --search-bg: #f2f9fb;
    --card-from: #ffffff;
    --card-to: #ffffff;
    --row-line: #cfe4ec;
    --row-hover: rgba(47, 151, 189, 0.06);
    --track: #e7f3f7;
    --watch-bezel: #e7f3f7;
    --watch-face: #ffffff;
    --mode-switch-bg: #ffffff;
    --field-surface: #fbfdfe;
    --field-card: #ffffff;
    --field-line: #cfe4ec;
    --field-muted: #5b6977;
    --field-chrome: #d7ebf2;
    --popup-bg: #ffffff;
    --popup-text: #21303d;
    --nav-active: #f2f9fb;
    --radius: 12px;
    --sidebar: 228px;
    --font: "Inter", "Segoe UI", system-ui, sans-serif;
    --display: "Inter", "Segoe UI", system-ui, sans-serif;
}

html.scheme-green {
    --glow-a: rgba(31, 138, 91, 0.28);
    --canopy: #16a34a;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font); background: var(--ink); color: var(--text); letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.mono { font-family: var(--mono); }

.brand-mark {
    width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(145deg, #1f8a5b, #0b3d2c); color: var(--gold-2);
    font-family: var(--display); font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(240, 215, 140, 0.25);
}
html.scheme-site .brand-mark {
    background: #ffffff;
    color: #218856;
    box-shadow: inset 0 0 0 1px rgba(25, 55, 69, 0.12);
}
.brand-lockup { display: flex; gap: 12px; align-items: center; }
.brand-lockup strong { display: block; font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.18em; }
.brand-lockup span { color: var(--muted); font-size: 0.72rem; }

.command-shell {
    min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) 1fr;
    background:
        radial-gradient(1200px 500px at 80% -10%, var(--glow-a), transparent 50%),
        radial-gradient(800px 400px at 0% 100%, var(--glow-b), transparent 45%),
        var(--ink);
}
.sidebar {
    border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 28px;
    background: var(--sidebar-bg); backdrop-filter: blur(16px); position: sticky; top: 0; height: 100vh;
}
.nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-list a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
    color: var(--muted); font-weight: 600; font-size: 0.92rem;
}
.nav-list a svg { width: 18px; height: 18px; opacity: 0.8; }
.nav-list a:hover, .nav-list a.is-active { background: var(--nav-active); color: var(--gold-2); }
html.scheme-site .nav-list a { color: #153b4a; }
html.scheme-site .nav-list a:hover,
html.scheme-site .nav-list a.is-active { color: #153b4a; }
html.scheme-site .mode-switch a.is-on {
    background: linear-gradient(180deg, #318eaa, #197f9e);
    color: #ffffff;
}
html.scheme-site .sidebar .brand-lockup strong,
html.scheme-site .sidebar .brand-lockup span,
html.scheme-site .sidebar .muted { color: #153b4a; }
html.scheme-site .kicker { color: var(--accent); }
.sidebar-foot { margin-top: auto; display: grid; gap: 10px; }
.command-main { min-width: 0; }

.topbar {
    display: flex; align-items: center; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 8; background: var(--topbar-bg); backdrop-filter: blur(18px); flex-wrap: wrap;
}
.watch-pill {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line);
    border-radius: 999px; background: var(--panel); white-space: nowrap;
}
.watch-pill b { font-size: 0.86rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.15); }
.search {
    flex: 1; min-width: 180px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--search-bg); color: var(--muted);
}
.search button { display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: inherit; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; color: var(--text); }
.user-chip { display: flex; align-items: center; gap: 10px; text-align: right; }
.user-chip small { color: var(--muted); display: block; }
.avatar {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink-on-gold); font-weight: 800;
}

.page { padding: 24px 28px 48px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.kicker { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.page-head h1, .page h1 { font-family: var(--display); font-size: 2rem; margin: 4px 0 6px; letter-spacing: -0.03em; }
.lede { color: var(--muted); margin: 0; max-width: 54ch; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-detail { grid-template-columns: 1.35fr 0.9fr; }
.card {
    background: linear-gradient(180deg, var(--card-from), var(--card-to));
    border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 12px; font-size: 0.95rem; }
.stat-value { font-family: var(--display); font-size: 2.1rem; line-height: 1; }
.stat-meta { color: var(--muted); margin-top: 8px; font-size: 0.82rem; }

.table-wrap { overflow: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th {
    text-align: left; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 10px 8px; border-bottom: 1px solid var(--line);
}
table.data td { padding: 14px 8px; border-bottom: 1px solid var(--row-line); vertical-align: middle; }
table.data tr:hover td { background: var(--row-hover); }

.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.sev-critical { background: rgba(194, 48, 48, 0.18); color: #ff8b8b; }
.sev-high { background: rgba(196, 92, 38, 0.18); color: #ffb089; }
.sev-medium { background: rgba(212, 175, 89, 0.16); color: var(--gold-2); }
.sev-low { background: rgba(76, 141, 218, 0.16); color: #9ec2ff; }
.st-pending { background: rgba(155, 181, 165, 0.12); color: #d5e4da; }
.st-under_review { background: rgba(212, 175, 89, 0.16); color: var(--gold-2); }
.st-verified { background: rgba(31, 138, 91, 0.2); color: #8fe0b2; }
.st-escalated { background: rgba(194, 48, 48, 0.2); color: #ff9a9a; }
.st-rejected { background: rgba(107, 114, 128, 0.2); color: #c5c9d1; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line);
    background: var(--panel-2); color: var(--text); border-radius: 12px; padding: 10px 14px; font-weight: 700;
}
.btn:hover { border-color: var(--gold); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink-on-gold); border-color: transparent; }
html.scheme-site .btn-gold {
    background: #2f97bd;
    color: #ffffff;
}
html.scheme-site .btn-gold:hover { background: #1f7fa3; }
html.scheme-site .tabs a.is-active {
    color: var(--accent);
}
.btn-danger { background: #8d1f1f; border-color: #c23030; }
.btn-ghost { background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.action-stack { display: grid; gap: 10px; }
.verify-desk { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.verify-queue { max-height: 78vh; overflow: auto; }
.queue-item { display: block; padding: 12px 0; border-bottom: 1px solid var(--row-line); }
.queue-item:last-child { border-bottom: 0; }
.queue-item.is-on { color: var(--gold-2); }
.queue-item b { display: block; margin: 4px 0; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
select, .input, textarea {
    background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; outline: none;
}
select:focus, .input:focus, textarea:focus { border-color: var(--gold); }
textarea { width: 100%; min-height: 120px; resize: vertical; }
.flash { padding: 12px 14px; border-radius: 12px; background: rgba(31, 138, 91, 0.18); border: 1px solid rgba(31, 138, 91, 0.4); margin-bottom: 16px; }

.feed-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--row-line); }
.feed-item:last-child { border-bottom: 0; }
.muted { color: var(--muted); }
.trend { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 12px; }
.trend span { flex: 1; background: linear-gradient(180deg, var(--gold-2), var(--canopy)); border-radius: 8px 8px 4px 4px; min-height: 6px; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 1fr 48px; gap: 8px; align-items: center; color: var(--muted); font-size: 0.85rem; }
.bar-track { height: 8px; background: var(--track); border-radius: 99px; overflow: hidden; }
.bar-track b { display: block; height: 100%; background: linear-gradient(90deg, var(--canopy), var(--gold)); }

.board-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ticket-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ticket-card {
    position: relative;
    background: linear-gradient(180deg, var(--card-from), var(--card-to));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 20px 18px;
    box-shadow: var(--shadow);
}
.ticket-card h3 { margin: 0 0 4px; font-family: var(--display); font-size: 1.15rem; }
.ticket-card.is-lead { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(212, 175, 89, 0.45), var(--shadow); }
.ticket-rank {
    position: absolute; top: 14px; right: 14px;
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 0.75rem; font-weight: 800; color: var(--ink-on-gold);
    background: var(--gold);
}
.ticket-card:not(.is-lead) .ticket-rank { background: rgba(155, 181, 165, 0.25); color: var(--text); }
.ticket-votes { font-family: var(--display); font-size: 2.7rem; letter-spacing: -0.04em; margin: 12px 0 14px; }
.results-wall {
    min-height: 100vh;
    padding: 28px 36px 40px;
    background:
        radial-gradient(900px 420px at 10% -10%, var(--glow-a), transparent 45%),
        radial-gradient(700px 360px at 90% 0%, var(--glow-b), transparent 40%),
        var(--ink);
}
.wall-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 22px; }
.wall-head h1 { font-family: var(--display); font-size: 2.6rem; margin: 4px 0 6px; letter-spacing: -0.04em; }
.wall-clock { text-align: right; display: grid; justify-items: end; gap: 12px; }
.digital-watch { min-width: 0; }
.digital-watch-bezel {
    padding: 10px 14px 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, var(--glow-b), transparent 42%),
        var(--watch-bezel);
    box-shadow: inset 0 0 0 1px rgba(8, 20, 15, 0.6), 0 0 24px rgba(212, 175, 89, 0.08);
}
.digital-watch-kicker {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 2px;
}
.digital-watch-face {
    font-family: var(--mono);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--watch-face);
    text-shadow: 0 0 12px rgba(240, 215, 140, 0.35);
    line-height: 1;
}
.digital-watch-date {
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}
.digital-watch.is-chip .digital-watch-bezel { padding: 6px 10px 8px; border-radius: 12px; }
.digital-watch.is-chip .digital-watch-face { font-size: 1.15rem; }
.digital-watch.is-chip .digital-watch-date { display: none; }
.digital-watch.is-desk .digital-watch-face { font-size: 1.85rem; }
.digital-watch.is-wall .digital-watch-bezel { padding: 14px 18px 16px; min-width: 240px; }
.digital-watch.is-wall .digital-watch-face { font-size: 3rem; }
.digital-watch.is-wall .digital-watch-date { font-size: 0.9rem; }
html.scheme-site .digital-watch-bezel {
    background: #12384a;
    border-color: #1b6d88;
    box-shadow: none;
}
html.scheme-site .digital-watch-kicker { color: #b7e3f2; }
html.scheme-site .digital-watch-face { color: #ffffff; text-shadow: none; }
html.scheme-site .digital-watch-date { color: #d5eef6; }

.timeline { display: grid; gap: 16px; }
.timeline-item { display: grid; grid-template-columns: 16px 1fr; gap: 12px; }
.timeline-item i {
    width: 12px; height: 12px; border-radius: 50%; background: var(--gold); margin-top: 5px;
    box-shadow: 0 0 0 4px rgba(212, 175, 89, 0.15);
}
.response-note { margin: 8px 0 0; color: var(--text); }
.response-report dl { display: grid; gap: 12px; margin: 0; }
.response-report dt {
    color: var(--muted); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
}
.response-report dd { margin: 4px 0 0; }
.response-report.is-field {
    background: #fff; color: #17241c; border: 1px solid var(--field-line); box-shadow: none; margin-top: 12px; padding: 12px 14px;
}
.response-report.is-field dt, .response-report.is-field .muted { color: var(--field-muted); }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.evidence-card {
    min-height: 140px; border-radius: 14px; padding: 14px; display: flex; align-items: flex-end;
    background: linear-gradient(180deg, transparent 20%, rgba(8, 20, 15, 0.86)), repeating-linear-gradient(45deg, #1a3a2a 0 8px, #163224 8px 16px);
    border: 1px solid var(--line); font-size: 0.8rem;
}
html.scheme-site .evidence-card {
    background: linear-gradient(145deg, #e5f3f7, #d5eaf0);
    color: #193744;
}

.map-layout { display: grid; grid-template-columns: 240px minmax(280px, 1fr); gap: 16px; align-items: stretch; }
.map-layout aside:last-of-type { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.leaflet-map { height: 68vh; min-height: 480px; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; }
.leaflet-map.picker-map { height: 220px; min-height: 220px; }
body.paper .leaflet-map.field-ops-map { height: 58vh; min-height: 360px; border-color: var(--field-line); }
.map-toolbar { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; align-items: center; }
.map-toolbar .paper-input, .map-toolbar .input { flex: 1; min-width: 140px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 0.75rem; color: var(--muted); margin-top: 12px; }
.map-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.map-legend b { color: var(--text); margin-left: 4px; }
.station-picker { position: relative; }
.station-picker-results {
    position: absolute; z-index: 1200; top: 100%; left: 0; right: 0; max-height: 280px;
    overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--panel, #fff); box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
}
.station-picker-option {
    display: block; width: 100%; padding: 10px; border: 0; border-radius: 8px;
    background: transparent; color: inherit; text-align: left; cursor: pointer;
}
.station-picker-option:hover, .station-picker-option:focus { background: rgba(31, 138, 91, .12); }
.btn-locate, .map-list-item { cursor: pointer; }
button.feed-item.map-list-item {
    width: 100%; text-align: left; background: transparent; color: inherit; border: 0; grid-template-columns: 1fr;
}
button.feed-item.map-list-item:hover { color: var(--gold-2); }
.command-intake .paper-input { background: var(--ink-2); border-color: var(--line); color: var(--text); }
.command-intake .yesno label { background: var(--ink-2); border-color: var(--line); color: var(--text); }
.command-intake .yesno label:has(input:checked) { background: var(--canopy); color: #fff; border-color: var(--canopy); }
.command-progress { background: var(--track); }
.command-intake .gps-hint { color: var(--muted) !important; }
.command-intake .btn-locate, .command-intake .map-toolbar .btn-ghost {
    border: 1px solid var(--line); color: var(--gold-2); background: transparent;
}
.station-banner {
    margin: 8px 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(31, 138, 91, 0.12);
    border: 1px solid rgba(31, 138, 91, 0.28);
    color: #0f2a1c;
    font-weight: 700;
    font-size: 0.88rem;
}
.filter-group { margin-bottom: 18px; }
.filter-group h4 { margin: 0 0 8px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 0.78rem; color: var(--muted); }
button.chip { background: transparent; cursor: pointer; font: inherit; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--popup-bg); color: var(--popup-text); }
.leaflet-popup-content a { color: var(--gold); }
body.paper .leaflet-popup-content-wrapper, body.paper .leaflet-popup-tip { background: var(--field-card); color: #0f2a1c; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 8px 12px; border-radius: 999px; border: 1px solid transparent; color: var(--muted); }
.tabs a.is-active { border-color: var(--line); color: var(--gold-2); background: var(--panel); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.people-edit { display: grid; grid-template-columns: minmax(140px, 180px) minmax(140px, 1fr) minmax(140px, 200px) auto; gap: 8px; align-items: center; }
.people-card { display: grid; gap: 12px; margin: 8px 0 18px; }
.access-grid { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.access-option { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text); }
label.field { display: grid; gap: 6px; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.pagination { display: flex; gap: 6px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); padding: 0 8px;
}

body.paper {
    background: radial-gradient(600px 300px at 50% -10%, var(--glow-a), transparent), var(--paper);
    color: var(--field-ink);
}
.mode-switch {
    display: inline-flex;
    flex-wrap: wrap;
    padding: 4px;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--mode-switch-bg);
}
.chrome-switchers { display: grid; gap: 8px; }
.mode-switch.appearance-switch a { text-transform: none; letter-spacing: 0.04em; }
.mode-switch a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.mode-switch a.is-on {
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    color: var(--ink-on-gold);
}
.mode-switch.light {
    background: var(--field-card);
    border-color: var(--field-line);
}
.mode-switch.light a { color: var(--field-muted); }
.mode-switch.light a.is-on {
    background: var(--canopy);
    color: #fff;
}
.sidebar .mode-switch { max-width: 100%; }
.sidebar .mode-switch a { flex: 1; justify-content: center; padding: 7px 8px; }

.device-stage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 18px;
    background:
        radial-gradient(900px 420px at 80% -10%, var(--glow-a), transparent 50%),
        var(--ink);
}
.tablet-frame {
    width: min(1100px, 100%);
    min-height: min(820px, calc(100vh - 36px));
    background: var(--field-surface);
    color: var(--field-ink);
    border-radius: 32px;
    border: 14px solid var(--field-chrome);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(240, 215, 140, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.tablet-frame::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: #2a3d32;
}
.computer-field { min-height: 100vh; }
.desktop-field {
    width: min(1180px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--field-surface);
    box-shadow: 0 0 0 1px rgba(23, 36, 28, 0.06);
    display: flex;
    flex-direction: column;
}
.field-header-actions { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.field-header-actions .chrome-switchers { min-width: 220px; }
.field-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.watch-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.mode-tablet .watch-grid { grid-template-columns: 1fr 1fr; }
.mode-tablet .cat-grid { grid-template-columns: repeat(4, 1fr); }
.tablet-split { display: grid; gap: 16px; }
.mode-tablet .tablet-split { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
.mode-computer .desktop-field .cat-grid { grid-template-columns: repeat(3, 1fr); }
.mode-computer .desktop-field .watch-grid { grid-template-columns: 1fr 1fr 1fr; }
.mode-phone .watch-grid,
.mode-phone .tablet-split { grid-template-columns: 1fr; }
.mode-phone .cat-grid { grid-template-columns: 1fr 1fr; }
.mode-phone .field-title { font-size: 1.45rem; }
.mode-phone .tabbar { padding-bottom: 18px; }
.mode-phone .tabbar a { font-size: 0.62rem; }

.auth-desktop-body { background: var(--ink); color: var(--text); }
.auth-desktop {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}
.auth-desktop-brand {
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    background:
        radial-gradient(800px 400px at 0% 0%, var(--glow-a), transparent 50%),
        var(--ink);
}
.auth-desktop-brand h1 { font-family: var(--display); font-size: 3rem; margin: 0; letter-spacing: -0.04em; max-width: 14ch; }
.auth-desktop-panel {
    background: var(--field-surface);
    color: var(--field-ink);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
}
.auth-desktop-panel h2 { font-family: var(--display); font-size: 2rem; margin: 0 0 8px; }
.auth-desktop-panel .auth-form { padding: 18px 0 0; }

.field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 22px 8px;
}
.phone-frame {
    width: min(390px, 100%);
    min-height: min(780px, calc(100vh - 36px));
    margin: 0 auto;
    background: var(--field-surface);
    color: var(--field-ink);
    border-radius: 36px;
    border: 12px solid var(--field-chrome);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(240, 215, 140, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.phone-frame::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    width: 78px;
    height: 8px;
    margin-left: -39px;
    border-radius: 99px;
    background: #2a3d32;
}
.tablet-frame .field-body,
.phone-frame .field-body,
.desktop-field .field-body { flex: 1; }
.tablet-frame .field-header,
.phone-frame .field-header { padding-top: 28px; }
.field-header .brand-lockup strong { color: var(--field-ink); letter-spacing: 0.2em; }
.field-body { padding: 8px 22px 24px; }
.field-title { font-family: var(--display); font-size: 1.7rem; margin: 0 0 6px; }
.field-card { background: var(--field-card); border: 1px solid var(--field-line); border-radius: 18px; padding: 16px; margin-bottom: 12px; }
.tabbar {
    position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(6, 1fr);
    background: var(--field-surface); backdrop-filter: blur(12px); border-top: 1px solid var(--field-line); padding: 8px 6px 14px;
}
.tabbar a { display: grid; justify-items: center; gap: 4px; font-size: 0.68rem; font-weight: 700; color: var(--field-muted); padding: 6px 0; }
.tabbar a.is-active { color: var(--canopy); }
html.scheme-site .tabbar a.is-active { color: var(--accent); }
.tabbar svg { width: 20px; height: 20px; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat-tile {
    background: var(--field-card); border: 1px solid var(--field-line); border-radius: 16px; padding: 16px 14px; min-height: 108px;
    font-weight: 800; display: flex; flex-direction: column; justify-content: space-between;
}
.cat-tile small { font-weight: 600; color: var(--field-muted); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seg label { border: 1px solid var(--field-line); border-radius: 12px; padding: 10px 6px; text-align: center; font-weight: 800; font-size: 0.78rem; background: var(--field-card); }
.seg input { display: none; }
.seg label:has(input:checked) { background: var(--canopy); color: #fff; border-color: var(--canopy); }
.auth-hero { padding: 48px 28px 20px; }
.auth-hero p { color: var(--field-muted); }
.auth-form { padding: 0 28px 40px; display: grid; gap: 12px; }
.auth-form input { width: 100%; border: 1px solid var(--field-line); background: var(--field-card); color: var(--field-ink); border-radius: 14px; padding: 14px; }
.auth-form .btn-gold { width: 100%; padding: 14px; border-radius: 14px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.88rem; }
.anon-link { text-align: center; color: var(--canopy); font-weight: 800; margin-top: 8px; display: block; }
.progress { height: 8px; background: var(--field-line); border-radius: 99px; overflow: hidden; margin: 8px 0 16px; }
.progress b { display: block; height: 100%; background: var(--canopy); }
.error { color: #9b1c1c; font-size: 0.85rem; }
.paper-input { width: 100%; border: 1px solid var(--field-line); background: var(--field-card); color: var(--field-ink); border-radius: 14px; padding: 14px; }
.yesno { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 16px 0; }
.yesno label { border: 1px solid var(--field-line); background: var(--field-card); border-radius: 14px; padding: 14px; text-align: center; font-weight: 800; }
.yesno label:has(input:checked) { background: var(--canopy); color: #fff; border-color: var(--canopy); }
.yesno input { display: none; }
.yesno label.is-expected { box-shadow: inset 0 0 0 1px rgba(31, 138, 91, 0.45); }

html.scheme-site .st-pending { color: #3d4a42; }
html.scheme-site .st-verified { color: #0f5132; }
html.scheme-site .sev-critical { color: #9b1c1c; }
html.scheme-site .sev-high { color: #9a3412; }

@media (max-width: 860px) {
    .command-shell { grid-template-columns: 1fr; }
    .sidebar { height: auto; position: relative; flex-direction: row; flex-wrap: wrap; }
    .nav-list { flex-direction: row; flex-wrap: wrap; }
    .grid-4, .grid-3, .grid-2, .grid-detail, .map-layout, .form-grid, .people-edit, .verify-desk, .board-kpis, .ticket-grid { grid-template-columns: 1fr; }
    .wall-head { flex-direction: column; }
    .wall-clock { justify-items: start; width: 100%; }
    .digital-watch.is-wall .digital-watch-face { font-size: 2.2rem; }
    .leaflet-map { height: 52vh; min-height: 320px; }
    .auth-desktop { grid-template-columns: 1fr; }
    .auth-desktop-brand { padding: 32px 24px 12px; }
    .auth-desktop-panel { padding: 24px; }
    .mode-tablet .watch-grid,
    .mode-tablet .cat-grid,
    .mode-tablet .tablet-split,
    .mode-phone .watch-grid,
    .mode-phone .cat-grid,
    .mode-computer .desktop-field .cat-grid,
    .mode-computer .desktop-field .watch-grid { grid-template-columns: 1fr; }
    .device-stage { padding: 0; }
    .tablet-frame,
    .phone-frame { width: 100%; min-height: 100vh; border: 0; border-radius: 0; }
}

html.scheme-site .command-shell {
    background: #f2f7fa;
}
html.scheme-site .sidebar {
    background: #52a9c4;
    border-right: 0;
    color: #163b49;
    overflow-y: auto;
    padding: 22px 14px;
    gap: 20px;
}
html.scheme-site .sidebar .brand-lockup {
    gap: 9px;
}
html.scheme-site .sidebar .brand-lockup strong {
    color: #163b49;
    font-size: 1rem;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}
html.scheme-site .sidebar .brand-lockup span {
    color: #245b6c;
    font-size: 0.64rem;
}
html.scheme-site .sidebar .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #b7d74b;
    color: #163b49;
    box-shadow: none;
}
html.scheme-site .sidebar .nav-list {
    gap: 3px;
}
html.scheme-site .sidebar .nav-list a {
    min-height: 38px;
    padding: 9px 10px;
    border-radius: 7px;
    color: #173c4b;
    font-size: 0.8rem;
    font-weight: 700;
}
html.scheme-site .sidebar .nav-list a svg {
    opacity: 1;
}
html.scheme-site .sidebar .nav-list a:hover,
html.scheme-site .sidebar .nav-list a.is-active {
    background: #ffffff;
    color: #173c4b;
}
html.scheme-site .sidebar .nav-more {
    display: grid;
    gap: 2px;
    padding: 10px 0 0 10px;
    border-top: 1px solid rgba(22, 59, 73, 0.16);
}
html.scheme-site .sidebar .nav-caption {
    padding: 0 8px 4px;
    color: #245b6c;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}
html.scheme-site .sidebar .nav-caption::-webkit-details-marker {
    display: none;
}
html.scheme-site .sidebar .nav-caption::after {
    content: "+";
    font-size: 0.8rem;
    line-height: 1;
}
html.scheme-site .sidebar .nav-more[open] .nav-caption::after {
    content: "−";
}
html.scheme-site .sidebar .nav-more a {
    padding: 6px 8px;
    border-radius: 6px;
    color: #173c4b;
    font-size: 0.75rem;
    font-weight: 600;
}
html.scheme-site .sidebar .nav-more a:hover,
html.scheme-site .sidebar .nav-more a.is-active {
    background: rgba(255, 255, 255, 0.66);
    color: #173c4b;
}
html.scheme-site .sidebar-promise {
    display: grid;
    gap: 6px;
    padding: 12px 10px;
    border-radius: 8px;
    background: #e6f4f7;
    color: #173c4b;
}
html.scheme-site .sidebar-promise strong {
    font-size: 0.73rem;
    line-height: 1.35;
}
html.scheme-site .sidebar-promise span {
    color: #496d79;
    font-size: 0.63rem;
    line-height: 1.45;
}
html.scheme-site .sidebar-foot {
    gap: 8px;
}
html.scheme-site .sidebar-preferences {
    color: #173c4b;
}
html.scheme-site .sidebar-preferences summary {
    padding: 6px 8px;
    color: #245b6c;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 700;
    list-style: none;
}
html.scheme-site .sidebar-preferences summary::-webkit-details-marker {
    display: none;
}
html.scheme-site .sidebar-preferences summary::after {
    content: "+";
    float: right;
}
html.scheme-site .sidebar-preferences[open] summary::after {
    content: "−";
}
html.scheme-site .sidebar-preferences .chrome-switchers {
    gap: 5px;
    padding: 0 4px 4px;
}
html.scheme-site .sidebar-preferences .mode-switch {
    justify-content: center;
}
html.scheme-site .command-main {
    background: #f2f7fa;
}
html.scheme-site .topbar {
    min-height: 58px;
    gap: 10px;
    padding: 10px 22px;
    border-bottom-color: #e3ebef;
    box-shadow: 0 1px 2px rgba(25, 55, 69, 0.025);
}
html.scheme-site .topbar .watch-pill {
    padding: 6px 10px;
    border: 0;
    background: transparent;
}
html.scheme-site .topbar .watch-pill b {
    overflow-wrap: anywhere;
}
html.scheme-site .topbar .watch-pill {
    flex: 0 1 200px;
}
html.scheme-site .topbar .watch-pill small {
    display: none;
}
html.scheme-site .topbar .search {
    flex: 1 1 240px;
    min-width: min(240px, 100%);
    max-width: none;
    min-height: 36px;
    padding: 7px 11px;
    border-radius: 7px;
    background: #f7fafb;
}
html.scheme-site .topbar .btn {
    min-height: 35px;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 0.75rem;
}
html.scheme-site .topbar .btn-gold {
    background: #197f9e;
}
html.scheme-site .topbar .user-chip {
    margin-left: 0;
    font-size: 0.75rem;
}
html.scheme-site .topbar .avatar {
    width: 32px;
    height: 32px;
    background: #d8edf2;
    color: #1d586b;
}
html.scheme-site .page {
    padding: 22px 26px 40px;
}
html.scheme-site .page-head {
    align-items: center;
    margin-bottom: 16px;
}
html.scheme-site .page-head h1,
html.scheme-site .page h1 {
    font-family: var(--font);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.035em;
}
html.scheme-site .page-head .kicker {
    color: #416b79;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}
html.scheme-site .card {
    border-color: #e4edf1;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(25, 55, 69, 0.035);
}
html.scheme-site .card h3 {
    font-size: 0.84rem;
}
html.scheme-site .tabs {
    gap: 18px;
    border-bottom: 1px solid #e1ebef;
    margin: 0 0 16px;
}
html.scheme-site .tabs a {
    padding: 9px 2px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #627b85;
    font-size: 0.8rem;
}
html.scheme-site .tabs a.is-active {
    border-bottom-color: #197f9e;
    background: transparent;
    color: #176f8b;
    font-weight: 800;
}
html.scheme-site .confidence-card {
    background: #eaf5f8;
}
html.scheme-site .confidence-value {
    color: #234c59;
    font-family: var(--display);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}
html.scheme-site .confidence-value span {
    margin-left: 4px;
    color: #738b94;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
}
html.scheme-site .confidence-note {
    margin: 8px 0 4px;
    color: #176f8b;
    font-size: 0.78rem;
    font-weight: 800;
}
html.scheme-site .confidence-meter {
    height: 7px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 99px;
    background: #d9e9ee;
}
html.scheme-site .confidence-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #318eaa;
}
html.scheme-site .review-context {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}
html.scheme-site .review-context-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
html.scheme-site .review-context-heading h2 {
    margin: 3px 0;
    font-size: 1.08rem;
}
html.scheme-site .review-context-heading p {
    margin: 0;
    font-size: 0.76rem;
}
html.scheme-site .incident-review-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
    gap: 12px;
    align-items: stretch;
}
html.scheme-site .report-source,
html.scheme-site .confidence-card {
    min-width: 0;
}
html.scheme-site .report-source p {
    margin: 8px 0 16px;
    font-size: 0.83rem;
    line-height: 1.65;
}
html.scheme-site .report-metadata {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    padding-top: 10px;
    border-top: 1px solid #e0ebef;
    color: #73858c;
    font-size: 0.68rem;
}
html.scheme-site .report-metadata b {
    color: #314f59;
}
html.scheme-site .confidence-card > a {
    display: inline-block;
    margin-top: 4px;
    color: #176f8b;
    font-size: 0.75rem;
    font-weight: 800;
}
html.scheme-site .review-evidence {
    padding: 14px;
}
html.scheme-site .review-evidence .evidence-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
html.scheme-site .case-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0 12px;
}
html.scheme-site .case-titlebar h2 {
    margin: 2px 0;
    font-size: 1.15rem;
}
html.scheme-site .case-titlebar p {
    margin: 0;
    font-size: 0.74rem;
}
html.scheme-site .review-queue-panel {
    margin-bottom: 12px;
}
html.scheme-site .review-queue-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e2ebee;
    border-radius: 8px;
    background: #ffffff;
    color: #31515c;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 800;
    list-style: none;
}
html.scheme-site .review-queue-panel > summary::-webkit-details-marker {
    display: none;
}
html.scheme-site .review-queue-panel > summary::after {
    content: "+";
    margin-left: auto;
    color: #197f9e;
    font-size: 1rem;
}
html.scheme-site .review-queue-panel[open] > summary::after {
    content: "−";
}
html.scheme-site .review-queue-panel .verify-queue {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    max-height: 360px;
    margin-top: 8px;
    overflow: auto;
}
html.scheme-site .review-queue-panel .queue-item {
    padding: 10px;
    border: 1px solid #e8eff2;
    border-radius: 7px;
}
html.scheme-site .review-case-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.8fr);
    gap: 12px;
    align-items: start;
}
html.scheme-site .review-primary-column,
html.scheme-site .review-side-column {
    display: grid;
    min-width: 0;
    gap: 12px;
}
html.scheme-site .review-case-layout + .response-report {
    margin-top: 12px;
}
html.scheme-site .watch-config-tabs {
    margin-bottom: 8px;
}
html.scheme-site .watch-secondary-tabs {
    margin: 0 0 12px;
}
html.scheme-site .watch-secondary-tabs > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #42616c;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 800;
    list-style-position: inside;
}
html.scheme-site .watch-secondary-tabs > summary span {
    color: #7a9099;
    font-size: 0.64rem;
    font-weight: 600;
}
html.scheme-site .watch-secondary-tabs[open] > .tabs {
    margin-top: 8px;
}
html.scheme-site .watch-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
html.scheme-site .watch-overview-card {
    min-width: 0;
    padding: 14px;
}
html.scheme-site .watch-overview-card.is-current {
    border-color: #9bd8e7;
    box-shadow: inset 3px 0 #20a4c5;
}
html.scheme-site .watch-overview-card h3 {
    margin: 8px 0 5px;
    font-size: 0.9rem;
}
html.scheme-site .watch-overview-card > p {
    min-height: 2.2em;
    margin: 0 0 10px;
    font-size: 0.68rem;
}
html.scheme-site .watch-overview-counts {
    display: flex;
    gap: 12px;
    color: #52717c;
    font-size: 0.66rem;
    font-weight: 700;
}
html.scheme-site .watch-section-heading {
    margin-bottom: 12px;
}
html.scheme-site .watch-section-heading h2 {
    margin: 3px 0;
    font-size: 1rem;
}
html.scheme-site .watch-section-heading p {
    margin: 0;
    font-size: 0.7rem;
}
@media (max-width: 860px) {
    html.scheme-site .incident-review-grid {
        grid-template-columns: 1fr;
    }
    html.scheme-site .review-context-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    html.scheme-site .review-case-layout {
        grid-template-columns: 1fr;
    }
    html.scheme-site .case-titlebar {
        align-items: flex-start;
        flex-direction: column;
    }
}
html.scheme-site .btn {
    border-color: #dce8ed;
    border-radius: 8px;
    background: #ffffff;
    color: #234b59;
}
html.scheme-site .btn:hover {
    border-color: #62aabd;
}
html.scheme-site .filters select,
html.scheme-site .filters .input,
html.scheme-site .filters textarea,
html.scheme-site select,
html.scheme-site .input,
html.scheme-site textarea {
    background: #ffffff;
    border-color: #dce8ed;
    border-radius: 8px;
    color: #193744;
}
html.scheme-site .queue-item.is-on {
    color: #176f8b;
}
html.scheme-site .evidence-card {
    min-height: 116px;
    border-color: #d9eaf0;
    border-radius: 8px;
    color: #42616d;
    background: #e8f4f7;
}
html.scheme-site .flash {
    background: #e8f4f7;
    border-color: #cde5ec;
    color: #1d586b;
}

@media (max-width: 860px) {
    html.scheme-site .sidebar {
        position: relative;
        height: auto;
        padding: 14px;
        gap: 12px;
    }
    html.scheme-site .sidebar .nav-list {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    html.scheme-site .sidebar .nav-list a {
        flex: 0 0 auto;
    }
    html.scheme-site .sidebar .nav-more {
        display: flex;
        flex-wrap: wrap;
        padding: 8px 0 0;
    }
    html.scheme-site .sidebar .nav-caption {
        width: 100%;
    }
    html.scheme-site .sidebar-promise {
        display: none;
    }
    html.scheme-site .sidebar-foot {
        margin: 0 0 0 auto;
    }
    html.scheme-site .topbar {
        padding: 10px 14px;
    }
    html.scheme-site .topbar .search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
    }
    html.scheme-site .topbar .user-chip {
        margin-left: auto;
    }
    html.scheme-site .page {
        padding: 18px 14px 32px;
    }
}

html.scheme-site .stat-value {
    color: #1e748f;
}
html.scheme-site .stat-meta {
    color: #71858d;
}
html.scheme-site .page-head .btn-row {
    justify-content: flex-end;
}
html.scheme-site .page-head .muted {
    font-size: 0.76rem;
}
html.scheme-site table.data th {
    background: #f7fafb;
    color: #607983;
    border-bottom-color: #e3ecef;
}
html.scheme-site table.data td {
    border-bottom-color: #edf2f4;
}
html.scheme-site table.data tr:hover td {
    background: #f5fafb;
}
html.scheme-site .badge {
    border: 1px solid transparent;
    font-size: 0.64rem;
}
html.scheme-site .sev-critical,
html.scheme-site .st-escalated {
    background: #fbeaea;
    color: #a62c32;
    border-color: #f4d1d2;
}
html.scheme-site .sev-high {
    background: #fff0e7;
    color: #9b4d20;
    border-color: #f5dfd1;
}
html.scheme-site .sev-medium,
html.scheme-site .st-under_review {
    background: #fff7df;
    color: #806018;
    border-color: #efe4bd;
}
html.scheme-site .sev-low {
    background: #eaf3fb;
    color: #315f90;
    border-color: #d6e5f3;
}
html.scheme-site .st-pending {
    background: #edf2f4;
    color: #53666e;
    border-color: #dfe7ea;
}
html.scheme-site .st-verified {
    background: #e7f5ed;
    color: #256543;
    border-color: #d1e9dc;
}
html.scheme-site .st-rejected {
    background: #f0f1f3;
    color: #5d636d;
    border-color: #e1e3e7;
}
html.scheme-site .stat-value,
html.scheme-site .confidence-value,
html.scheme-site .ticket-votes {
    font-variant-numeric: tabular-nums;
}
html.scheme-site .trend span {
    background: linear-gradient(180deg, #45a6bf, #197f9e);
    border-radius: 4px 4px 2px 2px;
}
html.scheme-site .bar-track {
    background: #e8eff2;
}
html.scheme-site .bar-track b,
html.scheme-site .progress b {
    background: #3293ad;
}
html.scheme-site .ticket-card.is-lead {
    border-color: #8bc4d2;
    box-shadow: 0 0 0 1px rgba(49, 142, 170, 0.16), var(--shadow);
}
html.scheme-site .ticket-rank {
    background: #dff0f4;
    color: #1b6278;
}
html.scheme-site .ticket-card:not(.is-lead) .ticket-rank {
    background: #edf2f4;
    color: #526973;
}
html.scheme-site .filters {
    padding: 10px;
    border: 1px solid #e4edf1;
    border-radius: 10px;
    background: #ffffff;
}
html.scheme-site .filters .input,
html.scheme-site .filters select {
    min-height: 38px;
}
html.scheme-site .map-layout > aside.card {
    padding: 15px;
}
html.scheme-site .map-layout .filter-group + .filter-group {
    margin-top: 12px;
}
html.scheme-site .map-legend {
    padding-top: 10px;
    border-top: 1px solid #e7eef1;
}
html.scheme-site .pagination a,
html.scheme-site .pagination span {
    border-color: #e0e9ed;
    border-radius: 7px;
    background: #ffffff;
}
html.scheme-site .pagination span[aria-current="page"] {
    background: #197f9e;
    color: #ffffff;
}
html.scheme-site .command-intake {
    max-width: 920px;
}
html.scheme-site .field {
    color: #526e78;
    letter-spacing: 0.045em;
    font-size: 0.7rem;
}
html.scheme-site .field input,
html.scheme-site .field select,
html.scheme-site .field textarea {
    color: #193744;
}

@media (max-width: 1100px) {
    html.scheme-site .topbar {
        gap: 8px;
    }
    html.scheme-site .topbar .watch-pill {
        flex-basis: 170px;
    }
    html.scheme-site .topbar .search {
        max-width: 220px;
    }
}

/* ==========================================================================
   People-to-People (P2P-EWER) — navy / teal scheme (default)
   Matches the P2P-EWER screen document. Component rules below the token
   block are unscoped so the other schemes inherit sensible layouts.
   ========================================================================== */
html.scheme-navy {
    --ink: #0a121e;
    --ink-2: #0b1422;
    --panel: #131d2c;
    --panel-2: #192536;
    --line: #223147;
    --gold: #1e9bb0;
    --gold-2: #3cc3d6;
    --accent: #1e9bb0;
    --accent-soft: rgba(30, 155, 176, 0.16);
    --ink-on-accent: #ffffff;
    --ink-on-gold: #ffffff;
    --canopy: #1e9bb0;
    --mint: #8bc34a;
    --paper: #0a121e;
    --text: #e6edf5;
    --muted: #8a97a9;
    --field-ink: #e6edf5;
    --shadow: none;
    --radius: 12px;
    --sidebar: 238px;
    --font: "Inter", "Segoe UI", system-ui, sans-serif;
    --display: "Inter", "Segoe UI", system-ui, sans-serif;
    --glow-a: transparent;
    --glow-b: transparent;
    --sidebar-bg: #0e1828;
    --topbar-bg: #0e1828;
    --search-bg: #0b1422;
    --card-from: #131d2c;
    --card-to: #131d2c;
    --row-line: #1d2a3d;
    --row-hover: rgba(30, 155, 176, 0.06);
    --track: #0b1422;
    --watch-bezel: #0b1422;
    --watch-face: #3cc3d6;
    --mode-switch-bg: #0b1422;
    --field-surface: #0d1624;
    --field-card: #131d2c;
    --field-line: #223147;
    --field-muted: #8a97a9;
    --field-chrome: #05090f;
    --popup-bg: #131d2c;
    --popup-text: #e6edf5;
    --nav-active: rgba(30, 155, 176, 0.2);
    --green: #8bc34a;
    --green-strong: #6aa33a;
    --red: #ef4444;
    --orange: #f97316;
    --yellow: #facc15;
    --low: #22a3b8;
    color-scheme: dark;
}
html.scheme-navy body { background: var(--ink); }
:root {
    --green: #1f8a5b;
    --green-strong: #1f8a5b;
    --red: #c23030;
    --orange: #c45c26;
    --yellow: #d4af59;
    --low: #4c8dda;
}

/* ---------- Brand lockup ---------- */
.brand-link { display: block; color: inherit; }
.brand-lockup { display: flex; gap: 10px; align-items: center; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; background: #fff; flex: none; object-fit: contain; }
.brand-lockup .brand-text { display: grid; gap: 2px; line-height: 1.2; }
html .brand-lockup .brand-text strong {
    font-family: var(--font); font-size: 0.86rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: inherit;
}
.brand-lockup .brand-text strong em { display: block; font-style: normal; color: var(--gold-2); }
html .brand-lockup .brand-text small { color: var(--mint); font-size: 0.7rem; font-weight: 500; }
.brand-lockup.is-hero .brand-logo { width: 56px; height: 56px; }

/* ---------- Command shell ---------- */
html.scheme-navy .command-shell { background: var(--ink); }
html.scheme-navy .sidebar { background: var(--sidebar-bg); backdrop-filter: none; border-right: 1px solid var(--line); padding: 20px 16px; gap: 22px; overflow-y: auto; }
html.scheme-navy .nav-list { gap: 4px; }
html.scheme-navy .nav-list a { padding: 10px 12px; border-radius: 8px; color: #b9c4d3; font-weight: 500; font-size: 0.9rem; }
html.scheme-navy .nav-list a svg { opacity: 1; color: #93a1b4; }
html.scheme-navy .nav-list a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
html.scheme-navy .nav-list a.is-active { background: var(--nav-active); color: var(--gold-2); font-weight: 600; }
html.scheme-navy .nav-list a.is-active svg { color: var(--gold-2); }
.nav-more { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.nav-caption { color: var(--muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; list-style: none; padding: 0 12px 6px; }
.nav-caption::-webkit-details-marker { display: none; }
.nav-caption::after { content: " +"; }
.nav-more[open] .nav-caption::after { content: " −"; }
.nav-more a { padding: 7px 12px; border-radius: 6px; color: var(--muted); font-size: 0.82rem; }
.nav-more a:hover, .nav-more a.is-active { color: var(--gold-2); background: rgba(255, 255, 255, 0.03); }
.sidebar-preferences summary { color: var(--muted); font-size: 0.74rem; cursor: pointer; padding: 6px 4px; }
.sidebar-preferences .chrome-switchers { padding: 6px 0; }
.sidebar-user {
    display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center;
    padding: 10px; border: 1px solid var(--line); border-radius: 6px;
}
.sidebar-user b { display: block; font-size: 0.86rem; }
.sidebar-user small { display: block; color: var(--muted); font-size: 0.72rem; }
.sidebar-user a { color: var(--gold-2); font-weight: 700; text-decoration: underline; }
html.scheme-site .sidebar-user a { color: #0f6f8c; }
.sidebar-user .sidebar-gps { font-size: 0.66rem; opacity: 0.8; }
.icon-btn {
    width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 8px;
    border: 1px solid var(--line); background: transparent; color: var(--muted); flex: none;
}
.icon-btn:hover { color: var(--text); border-color: var(--gold); }

html.scheme-navy .topbar { background: var(--topbar-bg); backdrop-filter: none; padding: 14px 32px; gap: 14px; flex-wrap: nowrap; }
html.scheme-navy .watch-pill { border-radius: 8px; background: transparent; padding: 7px 12px; gap: 10px; }
.watch-pill .chev { color: var(--muted); }
.dot.is-live { background: var(--red); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18); }
.dot.is-idle { background: var(--muted); box-shadow: none; }
.watch-status-badge {
    padding: 4px 8px; border-radius: 4px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
    color: var(--gold-2); background: var(--accent-soft); white-space: nowrap;
}
.watch-status-badge.is-idle { color: var(--muted); background: rgba(255, 255, 255, 0.05); }
html.scheme-navy .topbar .search { flex: 0 1 280px; margin-left: auto; border-radius: 6px; padding: 8px 12px; }

/* ---------- Page scaffolding ---------- */
html.scheme-navy .page { padding: 28px 32px 48px; }
html.scheme-navy .page-head { align-items: flex-start; margin-bottom: 22px; }
html.scheme-navy .page-head h1, html.scheme-navy .page h1 { font-family: var(--font); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
html.scheme-navy .lede { color: var(--muted); font-size: 0.92rem; max-width: 80ch; }
html.scheme-navy .kicker { color: var(--muted); letter-spacing: 0.08em; }
.live-pill {
    display: inline-block; padding: 8px 14px; border: 1px solid var(--gold); border-radius: 6px;
    color: var(--gold-2); font-weight: 600; font-size: 0.86rem;
}
.pill { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 0.86rem; background: var(--panel); }
.pill-accent { color: var(--gold-2); }
.link-accent { color: var(--gold-2); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; }
html.scheme-navy .card { background: var(--panel); border-color: var(--line); border-radius: var(--radius); box-shadow: none; padding: 20px; }
html.scheme-navy .card h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin: 0 !important; }
html.scheme-navy .flash { background: var(--accent-soft); border-color: rgba(30, 155, 176, 0.45); color: var(--text); }
html.scheme-navy .muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.truncate { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-right { text-align: right !important; }

/* ---------- Stats ---------- */
.stat-card { display: block; }
.stat-card h3 { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-weight: 500 !important; font-size: 0.88rem !important; }
.stat-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.stat-dot.is-blue { background: var(--low); }
.stat-dot.is-green { background: var(--green); }
.stat-dot.is-yellow { background: var(--yellow); }
.stat-dot.is-red { background: var(--red); }
html.scheme-navy .stat-value { font-family: var(--font); font-size: 2.2rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
html.scheme-navy .stat-meta { font-size: 0.8rem; margin-top: 12px; }
html.scheme-navy .stat-card:nth-child(2) .stat-meta { color: var(--green); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.dash-grid.is-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Live feed ---------- */
.feed-card { padding: 0 !important; overflow: hidden; }
.feed-card .card-head { padding: 16px 20px; border-bottom: 1px solid var(--line); margin: 0; }
.feed-list { display: grid; gap: 10px; padding: 14px 16px 18px; }
.feed-row {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
    padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink-2);
}
.feed-row:hover { border-color: rgba(30, 155, 176, 0.5); }
.feed-row-main b { display: block; font-weight: 600; }
.feed-row-main span { font-size: 0.82rem; }
.feed-row-side { display: grid; justify-items: end; gap: 6px; font-size: 0.78rem; }

/* ---------- Badges ---------- */
html.scheme-navy .badge { border-radius: 4px; padding: 4px 8px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em; }
html.scheme-navy .sev-critical { background: rgba(239, 68, 68, 0.16); color: #f87171; }
html.scheme-navy .sev-high { background: rgba(239, 68, 68, 0.12); color: #f87171; }
html.scheme-navy .sev-medium { background: rgba(250, 204, 21, 0.12); color: var(--yellow); }
html.scheme-navy .sev-low { background: rgba(139, 195, 74, 0.14); color: var(--green); }
html.scheme-navy .st-pending { background: rgba(250, 204, 21, 0.12); color: var(--yellow); text-transform: none; }
html.scheme-navy .st-under_review { background: var(--accent-soft); color: var(--gold-2); text-transform: none; }
html.scheme-navy .st-verified { background: rgba(139, 195, 74, 0.14); color: var(--green); text-transform: none; }
html.scheme-navy .st-escalated { background: rgba(239, 68, 68, 0.16); color: #f87171; text-transform: none; }
html.scheme-navy .st-rejected { background: rgba(255, 255, 255, 0.06); color: var(--muted); text-transform: none; }
html.scheme-navy .st-active { background: rgba(139, 195, 74, 0.14); color: var(--green); }
html.scheme-navy .st-standby, html.scheme-navy .st-archived { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.tag { display: inline-block; padding: 4px 8px; border-radius: 4px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); font-size: 0.72rem; font-weight: 600; white-space: nowrap; }

/* ---------- Buttons & inputs ---------- */
html.scheme-navy .btn { background: var(--panel-2); border-color: var(--line); border-radius: 6px; padding: 9px 14px; font-weight: 600; font-size: 0.86rem; color: var(--text); }
html.scheme-navy .btn:hover { border-color: var(--gold); }
html.scheme-navy .btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
html.scheme-navy .btn-gold:hover { background: #22acc3; }
html.scheme-navy .btn-ghost { background: transparent; }
html.scheme-navy .btn-danger { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.55); color: #f87171; }
.btn-sm { padding: 6px 12px !important; font-size: 0.8rem !important; }
.btn-block { width: 100%; padding: 14px !important; font-size: 1rem !important; }
html.scheme-navy select, html.scheme-navy .input, html.scheme-navy textarea {
    background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; color: var(--text); padding: 10px 12px;
}
html.scheme-navy select:focus, html.scheme-navy .input:focus, html.scheme-navy textarea:focus { border-color: var(--gold); outline: none; }
html.scheme-navy label.field { color: #aeb9c7; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em; }
html.scheme-navy input[type="checkbox"], html.scheme-navy input[type="radio"] { accent-color: var(--gold); }

/* ---------- Charts ---------- */
.trend-bars { display: flex; align-items: flex-end; justify-content: space-around; gap: 14px; height: 190px; padding-top: 8px; }
.trend-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.trend-col span { width: min(36px, 70%); border-radius: 2px; background: #2a3a52; min-height: 4px; }
.trend-col span.is-peak { background: var(--gold); }
.trend-col span.is-current { background: var(--green-strong); }
.trend-col small { color: var(--muted); font-size: 0.72rem; }
html.scheme-navy .bars { gap: 14px; }
html.scheme-navy .bar-row { color: #c3cdd9; font-size: 0.84rem; margin-bottom: 6px; }
html.scheme-navy .bar-row b { color: var(--text); text-align: right; }
html.scheme-navy .bar-track { height: 5px; background: var(--track); border-radius: 0; }
html.scheme-navy .bar-track b { background: var(--gold); }
html.scheme-navy .bar-track.is-blue b { background: var(--green-strong); }
.donut-wrap { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; align-items: center; min-height: 230px; }
.donut { width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center; }
.donut > div { width: 96px; height: 96px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; align-content: center; }
.donut b { font-size: 1.35rem; }
.donut span { color: var(--muted); font-size: 0.74rem; }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.86rem; }
.donut-legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; color: var(--text); }
.donut-legend i { width: 10px; height: 10px; border-radius: 2px; }
.donut-legend b { color: var(--text); }
.line-chart { width: 100%; height: 200px; display: block; overflow: visible; }
.line-chart .grid-line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.line-chart .trend-line { fill: none; stroke: var(--gold); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.line-chart .trend-hit { fill: transparent; }
.line-chart .trend-hit:hover { fill: var(--gold-2); }
.line-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.74rem; margin-top: 10px; }
.stack-chart { display: flex; justify-content: space-around; align-items: flex-end; height: 200px; gap: 16px; }
.stack-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.stack { width: min(28px, 60%); display: flex; flex-direction: column; border-radius: 2px; overflow: hidden; }
.stack span { display: block; min-height: 2px; }
.stack-col small { color: var(--muted); font-size: 0.74rem; }
.seg-critical, .sev-dot-critical { background: var(--red); }
.seg-high, .sev-dot-high { background: var(--orange); }
.seg-medium, .sev-dot-medium { background: var(--yellow); }
.seg-low, .sev-dot-low { background: var(--low); }

/* ---------- Tables & filters ---------- */
.filter-bar { align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.filter-bar .input { flex: 1 1 220px; }
.filter-bar select { min-width: 150px; }
.filter-export { margin-left: auto; }
.table-card { padding: 0 !important; overflow: hidden; }
html.scheme-navy table.data th { color: #c3cdd9; font-size: 0.78rem; letter-spacing: 0; text-transform: none; font-weight: 600; padding: 16px 18px; border-bottom-color: var(--line); }
html.scheme-navy table.data td { padding: 14px 18px; border-bottom-color: var(--row-line); font-size: 0.86rem; }
html.scheme-navy table.data tr:hover td { background: var(--row-hover); }
.id-link { color: var(--gold-2); font-weight: 700; }
.table-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.table-foot .pagination { margin: 0; }
html.scheme-navy .pagination a, html.scheme-navy .pagination span { border-radius: 6px; border-color: var(--line); color: #c3cdd9; font-size: 0.84rem; }
html.scheme-navy .pagination .is-current { background: var(--accent-soft); color: var(--gold-2); border-color: var(--gold); }
html.scheme-navy .pagination .is-disabled { color: var(--muted); opacity: 0.6; }

/* ---------- Incident case ---------- */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.86rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--gold-2); }
.case-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.case-head h1 { margin: 0 !important; }
.case-meta { color: var(--muted); font-size: 0.86rem; margin: 8px 0 22px; }
.case-meta span { margin: 0 6px; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.case-main, .case-side { display: grid; gap: 20px; min-width: 0; }
.narrative { line-height: 1.65; color: var(--text); margin: 0; white-space: pre-line; }
.preserved-note { margin: 14px 0 0; font-size: 0.74rem; color: var(--muted); }
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.evidence-item { margin: 0; }
.evidence-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; display: block; }
.evidence-item figcaption { margin-top: 8px; color: var(--muted); font-size: 0.76rem; line-height: 1.4; }
.evidence-placeholder { aspect-ratio: 3 / 2; border-radius: 6px; display: grid; place-items: center; color: var(--muted); background: repeating-linear-gradient(45deg, var(--ink-2) 0 10px, var(--panel-2) 10px 20px); border: 1px solid var(--line); }
.evidence-empty { padding: 18px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 0.86rem; }
.audit-log { display: grid; }
.audit-item { display: grid; grid-template-columns: 16px 1fr; gap: 14px; position: relative; padding-bottom: 20px; }
.audit-item:last-child { padding-bottom: 0; }
.audit-item::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: 2px; width: 2px; background: var(--line); }
.audit-item:last-child::before { display: none; }
.audit-item i { width: 12px; height: 12px; border-radius: 50%; background: #2a3a52; margin-top: 4px; position: relative; }
.audit-item.is-first i { background: var(--gold); box-shadow: 0 0 0 4px var(--accent-soft); }
.audit-head { display: flex; justify-content: space-between; gap: 12px; }
.audit-head time { font-size: 0.78rem; white-space: nowrap; }
.audit-item .muted { font-size: 0.84rem; margin-top: 2px; }
.audit-by { font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
.meta-list { margin: 0; display: grid; }
.meta-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--row-line); }
.meta-list dt { color: var(--muted); font-size: 0.86rem; }
.meta-list dd { margin: 0; font-weight: 600; text-align: right; font-size: 0.88rem; }
.meta-list.is-compact > div { padding: 6px 0; border: 0; }
.meta-list.is-compact dt, .meta-list.is-compact dd { font-size: 0.8rem; }
.confidence.is-high { color: var(--green); }
.confidence.is-mid { color: var(--yellow); }
.confidence.is-low { color: #f87171; }
.decision-note { font-size: 0.74rem; color: var(--muted); margin: 12px 0; }
.case-map { height: 180px !important; min-height: 180px !important; border-radius: 8px; margin-bottom: 10px; }
.action-stack { display: grid; gap: 10px; }
.action-stack .btn { width: 100%; padding: 11px 14px; }
html .action-stack .btn-verify { background: var(--green-strong); border-color: var(--green-strong); color: #fff; }
html .action-stack .btn-verify:hover { filter: brightness(1.08); }
html .action-stack .btn-outline-warn { background: transparent; color: var(--gold-2); }
html .action-stack .btn-outline-danger { background: transparent; color: #f87171; }
html .action-stack .btn-escalate { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.75); color: #fecaca; }
html .action-stack .btn-claim { color: var(--muted); font-weight: 500; }
.assignee-line { font-size: 0.76rem; margin: 12px 0 0; }
html.scheme-navy .response-report dt { color: var(--muted); }

/* ---------- Maps ---------- */
.telemetry-map { border-radius: 0; border: 0; }
html.scheme-navy .leaflet-container { background: #08111c; }
.map-card { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.map-card .card-head { padding: 16px 20px; margin: 0; }
.map-overlay-wrap { position: relative; flex: 1; min-height: 340px; }
.map-overlay-wrap .leaflet-map { position: absolute; inset: 0; height: auto; min-height: 0; }
.map-county {
    position: absolute; z-index: 500; top: 12px; left: 12px; display: flex; align-items: center; gap: 10px;
    padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: rgba(14, 24, 40, 0.92); color: #e7eef4; font-weight: 600; font-size: 0.86rem;
}
.map-county select { padding: 4px 8px !important; font-size: 0.8rem; color: var(--gold-2) !important; }
.map-stage { position: relative; margin: -28px -32px -48px; height: calc(100vh - 65px); min-height: 560px; overflow: hidden; }
.map-stage > .leaflet-map { position: absolute; inset: 0; height: 100%; min-height: 0; }
.map-stage-label {
    position: absolute; z-index: 450; top: 14px; left: calc(50% + 150px); transform: translateX(-50%); pointer-events: none;
    max-width: min(520px, calc(100% - 390px)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: #7fe3f0; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; font-weight: 600;
    padding: 6px 18px; border: 1px solid rgba(60, 195, 214, 0.35); border-top: 0; background: rgba(8, 17, 28, 0.7);
}
.map-filters {
    position: absolute; z-index: 500; top: 16px; left: 16px; width: 290px; max-height: calc(100% - 32px); overflow-y: auto;
    background: rgba(19, 29, 44, 0.97) !important; color: #e7eef4;
}
.map-filters .muted, .map-filters h3, .map-filters h4, .map-filters label { color: #e7eef4; }
.map-filters .sev-option b { color: #e7eef4; }
.map-filters .chip { color: #d7e2ec; border-color: rgba(231, 238, 244, 0.35); background: transparent; }
.map-filters .chip.is-on { color: #ffffff; border-color: #7fe3f0; background: rgba(127, 227, 240, 0.16); }
#respond-list .btn {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 2px; white-space: normal; line-height: 1.35;
}
html.scheme-site .map-filters .btn .muted { color: #3d5563; }
html.scheme-site .map-filters .btn.btn-gold .muted { color: #ffffff; }
.map-filters h3 { font-size: 1.05rem !important; }
.map-filters .filter-group { margin-bottom: 18px; }
html.scheme-navy .filter-group h4 { color: #c3cdd9; font-size: 0.74rem; letter-spacing: 0.06em; font-weight: 600; }
.map-filters select, .map-filters .input { width: 100%; }
.severity-filter, .check-list { display: grid; gap: 4px; }
.sev-option { display: grid; grid-template-columns: 0 12px 1fr auto; gap: 10px; align-items: center; padding: 5px 0; cursor: pointer; font-size: 0.88rem; }
.sev-option input { opacity: 0; width: 0; margin: 0; }
.sev-option b { color: var(--muted); font-weight: 500; font-size: 0.82rem; }
.sev-option:has(input:not(:checked)) { opacity: 0.4; }
.sev-swatch { width: 12px; height: 12px; border-radius: 2px; }
.sev-swatch-critical { background: var(--red); }
.sev-swatch-high { background: var(--orange); }
.sev-swatch-medium { background: var(--yellow); }
.sev-swatch-low { background: var(--low); }
.check-option { display: flex; gap: 10px; align-items: center; font-size: 0.86rem; color: inherit; cursor: pointer; padding: 3px 0; }
.check-option input { width: 16px; height: 16px; }
html.scheme-navy .chip { border-color: var(--line); color: #c3cdd9; padding: 5px 11px; font-size: 0.78rem; }
html.scheme-navy .chip.is-on { background: var(--accent-soft); border-color: var(--gold); color: var(--gold-2); }
.map-filter-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.map-filter-note { font-size: 0.74rem; margin: 12px 0 0; }
.map-severity-legend {
    position: absolute; z-index: 500; right: 16px; bottom: 24px; padding: 14px 18px !important; display: grid; gap: 6px;
    background: rgba(19, 29, 44, 0.97) !important; color: #e7eef4; font-size: 0.82rem;
}
.map-severity-legend h4, .map-severity-legend span { color: #e7eef4; }
.map-severity-legend h4 { margin: 0 0 4px; font-size: 0.86rem; }
.map-severity-legend i, .map-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.pin-wrap { background: none; border: 0; }
.pin { display: block; width: 22px; height: 22px; border-radius: 50%; position: relative; border: 2px solid currentColor; background: rgba(8, 17, 28, 0.55); }
.pin::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: currentColor; }
.pin-critical { color: #ef4444; box-shadow: 0 0 12px rgba(239, 68, 68, 0.7); }
.pin-high { color: #f97316; box-shadow: 0 0 12px rgba(249, 115, 22, 0.6); }
.pin-medium { color: #facc15; box-shadow: 0 0 10px rgba(250, 204, 21, 0.5); }
.pin-low { color: #22a3b8; box-shadow: 0 0 10px rgba(34, 163, 184, 0.6); }
.leaflet-popup-content-wrapper { border-radius: 8px; }
.leaflet-popup-content { margin: 12px 14px; }
.map-popup { display: grid; gap: 3px; min-width: 210px; font-family: var(--font); }
.map-popup .pp-head { display: flex; justify-content: space-between; gap: 12px; font-size: 0.74rem; color: var(--muted); }
.pp-id { font-size: 0.78rem; }
.pp-critical, .pp-high { color: #ef4444; }
.pp-medium { color: #ca8a04; }
.pp-low { color: #0e7490; }
html.scheme-navy .pp-medium { color: var(--yellow); }
html.scheme-navy .pp-low { color: var(--gold-2); }
.pp-title { font-size: 0.95rem; }
.pp-loc { font-size: 0.8rem; color: var(--muted); }
.pp-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 0.76rem; }
.pp-review { color: var(--gold-2) !important; font-weight: 600; }
.pp-nav { font-size: 0.72rem; margin-top: 4px; }
html.scheme-navy .leaflet-bar a { background: var(--panel); color: var(--text); border-color: var(--line); }
html.scheme-navy .leaflet-control-attribution { background: rgba(8, 17, 28, 0.7); color: var(--muted); }
html.scheme-navy .leaflet-control-attribution a { color: var(--gold-2); }

/* ---------- Settings ---------- */
html.scheme-navy .watch-config-tabs { gap: 0; border: 1px solid var(--line); border-radius: 2px; padding: 0; margin-bottom: 12px; }
html.scheme-navy .watch-config-tabs a { border-radius: 0; padding: 12px 22px; color: #c3cdd9; border: 1px solid transparent; font-size: 0.9rem; }
html.scheme-navy .watch-config-tabs a.is-active { background: transparent; color: var(--text); border-color: var(--gold); font-weight: 600; }
html.scheme-navy .tabs a.is-active { color: var(--gold-2); }
.watch-secondary-tabs { margin: 0 0 18px; }
.watch-secondary-tabs > summary { color: var(--muted); font-size: 0.78rem; cursor: pointer; }
.watch-secondary-tabs > summary span { opacity: 0.75; margin-left: 6px; }
.watch-secondary-tabs[open] > .tabs { margin-top: 10px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
.settings-grid .form-grid { gap: 18px 16px; }
.settings-grid textarea { min-height: 110px; }
.form-actions { justify-content: flex-end; margin-top: 26px; }
.field-caption { color: var(--muted); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin: 18px 0 10px; display: block; }
body.paper .field-caption { color: var(--field-ink); }
.radio-list { display: grid; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.radio-option { display: grid; grid-template-columns: 18px 1fr; gap: 10px; cursor: pointer; }
.radio-option input { width: 16px; height: 16px; margin-top: 3px; }
.radio-option b { display: block; font-size: 0.92rem; }
.radio-option small { color: var(--muted); font-size: 0.78rem; }

/* ---------- Desktop sign-in ---------- */
html.scheme-navy .auth-desktop-body { background: #08111b; }
html.scheme-navy .auth-desktop { grid-template-columns: 1fr 1fr; }
html.scheme-navy .auth-desktop-brand { background: #08111b; padding: 44px 50px; justify-content: space-between; gap: 24px; }
.auth-desktop-brand h1 { font-family: var(--font) !important; font-size: 1.8rem !important; font-weight: 600; letter-spacing: -0.01em !important; max-width: 17ch; line-height: 1.25; }
.kenya-outline { width: min(420px, 100%); height: auto; align-self: center; color: var(--gold-2); }
.ko-border { fill: rgba(30, 155, 176, 0.04); stroke: #1e9bb0; stroke-width: 3; stroke-linejoin: round; }
.ko-route { fill: none; stroke: #f59e0b; stroke-width: 1.5; }
.ko-node { fill: #f59e0b; stroke: rgba(245, 158, 11, 0.35); stroke-width: 6; }
.ko-label { fill: #6b7a8e; font-size: 9px; letter-spacing: 0.06em; font-family: var(--font); }
html.scheme-navy .auth-desktop-panel { background: #08111b; color: var(--text); padding: 48px; }
.auth-panel-inner { width: min(480px, 100%); margin: 0 auto; }
.back-link { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 26px; }
.back-link:hover { color: var(--text); }
html.scheme-navy .auth-desktop-panel h2 { font-family: var(--font); font-size: 1.8rem; font-weight: 600; margin: 0 0 8px; }
.auth-form .field { display: grid; gap: 8px; font-size: 0.92rem !important; letter-spacing: 0 !important; text-transform: none !important; font-weight: 500 !important; color: inherit !important; }
.input-icon { position: relative; display: block; }
.input-icon > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
html .auth-form .input-icon input { width: 100%; padding: 14px 44px 14px 42px; border-radius: 6px; }
html.scheme-navy .auth-form input { background: var(--ink-2); border: 1px solid var(--line); color: var(--text); }
html.scheme-navy .auth-form input:focus { border-color: var(--gold); outline: none; }
.reveal { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: 6px; }
.auth-row { font-size: 0.86rem; }
.auth-form .btn-gold { width: 100%; padding: 14px; border-radius: 6px; font-size: 1rem; }
.auth-demo { text-align: center; color: var(--muted); font-size: 0.8rem; margin: 4px 0 0; }
.auth-anon { display: grid; justify-items: center; gap: 4px; padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--line); }
.auth-anon small { color: var(--muted); font-size: 0.78rem; }
.register-link { text-align: center; color: var(--muted); font-size: 0.8rem; text-decoration: underline; }
.auth-lang { display: flex; justify-content: center; align-items: center; gap: 6px; color: inherit; font-size: 0.86rem; margin-top: 6px; }
.auth-preferences { margin-top: 28px; color: var(--muted); font-size: 0.78rem; }
.auth-preferences summary { cursor: pointer; margin-bottom: 8px; }
html.scheme-navy .anon-link { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Field app ---------- */
html.scheme-navy body.paper { background: #05090f; color: var(--text); }
html.scheme-navy .device-stage { background: #05090f; }
html.scheme-navy .phone-frame, html.scheme-navy .tablet-frame { background: var(--field-surface); border-color: #000; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); }
html.scheme-navy .phone-frame::before, html.scheme-navy .tablet-frame::before { background: #1a2433; }
html.scheme-navy .desktop-field { background: var(--field-surface); box-shadow: 0 0 0 1px var(--line); }
.field-header { padding: 14px 20px 6px; }
.field-header.is-auth { justify-content: space-between; }
.field-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.field-brand .brand-logo { width: 28px; height: 28px; }
.field-status { font-size: 0.68rem; color: var(--field-muted); }
.field-status b { font-weight: 600; }
.device-label { font-size: 0.7rem; color: var(--field-muted); }
.field-header-actions { align-items: center; }
.field-preferences { position: relative; }
.field-preferences summary { list-style: none; cursor: pointer; color: var(--field-muted); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--field-line); }
.field-preferences summary::-webkit-details-marker { display: none; }
.field-preferences-panel { position: absolute; right: 0; top: 38px; z-index: 900; width: 250px; padding: 10px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--field-card); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.field-header-actions .chrome-switchers { min-width: 0; }
.field-body { padding: 8px 20px 24px; }
html.scheme-navy .field-title { font-family: var(--font); font-size: 1.3rem; font-weight: 700; margin: 0 0 4px; }
.screen-head { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0 16px; }
.screen-head > div { flex: 1; min-width: 0; }
.screen-head p { margin: 0; font-size: 0.82rem; }
.back-arrow { color: var(--gold-2); padding-top: 3px; }
.accent-line { color: var(--gold-2) !important; }
html.scheme-navy .tabbar { background: #0b1422; border-top-color: var(--field-line); grid-template-columns: repeat(5, 1fr); padding: 10px 6px 16px; }
html.scheme-navy .tabbar a { color: var(--field-muted); font-weight: 500; }
html.scheme-navy .tabbar a.is-active { color: var(--gold-2); }
.tabbar { grid-template-columns: repeat(5, 1fr); }
html.scheme-navy .field-card { background: var(--field-card); border-color: var(--field-line); border-radius: 10px; }
html.scheme-navy .paper-input { background: var(--ink-2); border: 1px solid var(--field-line); color: var(--text); border-radius: 8px; }
html.scheme-navy .station-banner { color: var(--text); background: var(--accent-soft); border-color: rgba(30, 155, 176, 0.4); }
.auth-hero { padding: 36px 24px 18px; text-align: center; display: grid; justify-items: center; gap: 6px; }
.hero-logo { width: 72px; height: 72px; border-radius: 50%; background: #fff; }
.auth-hero h1 { font-family: var(--font); font-size: 1.45rem; font-weight: 700; margin: 10px 0 0; line-height: 1.2; }
html.scheme-navy .auth-hero p { color: var(--mint); margin: 0; font-size: 0.86rem; }
.auth-form { padding: 0 22px 36px; }

/* Select watch */
.search-field { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--ink-2); color: var(--field-muted); margin-bottom: 16px; }
.search-field input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); }
.watch-grid form { margin: 0; }
.watch-card {
    width: 100%; display: grid; gap: 10px; text-align: left; padding: 14px 16px; border-radius: 8px;
    border: 1px solid var(--field-line); background: var(--field-card); color: var(--text); cursor: pointer;
}
.watch-card:hover { border-color: var(--gold); }
.watch-state { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--green); }
.watch-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.watch-card.is-restricted .watch-state { color: var(--field-muted); }
.watch-card.is-restricted .watch-name svg { color: var(--yellow); }
.theme-tag { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-2); background: var(--accent-soft); padding: 3px 7px; border-radius: 3px; }
.watch-name b { font-size: 0.98rem; }
.watch-meta { font-size: 0.76rem; }

/* Report categories */
html.scheme-navy .cat-grid, .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
html .cat-tile {
    min-height: 96px; display: grid; justify-items: center; align-content: center; gap: 10px; text-align: center;
    padding: 14px 8px; border-radius: 8px; border: 1px solid var(--field-line); background: var(--field-card); font-weight: 600; font-size: 0.78rem; line-height: 1.25;
}
.cat-tile svg { color: color-mix(in srgb, var(--cat, var(--gold)) 70%, white); }
.cat-tile:hover { border-color: var(--gold); }

/* Report form */
.report-form .field-caption { text-transform: none; letter-spacing: 0; font-size: 0.86rem; color: var(--field-ink); margin: 16px 0 8px; }
.describe-box { border: 1px solid var(--field-line); border-radius: 8px; background: var(--field-card); padding: 10px 12px; display: grid; gap: 6px; }
.describe-box input, .describe-box textarea { width: 100%; border: 0; outline: 0; background: transparent; color: var(--field-ink); padding: 2px 0; resize: vertical; }
.describe-box input { text-transform: uppercase; font-weight: 600; letter-spacing: 0.02em; }
.describe-box textarea { min-height: 52px; }
html .seg { display: flex; flex-wrap: wrap; gap: 8px; }
html .seg label { border-radius: 999px; padding: 6px 14px; background: var(--field-card); border: 1px solid var(--field-line); font-weight: 600; font-size: 0.8rem; cursor: pointer; }
html .seg label:has(input:checked) { color: #fff; }
.seg-critical:has(input:checked) { background: rgba(239, 68, 68, 0.2) !important; border-color: var(--red) !important; color: #fca5a5 !important; }
.seg-high:has(input:checked) { background: rgba(239, 68, 68, 0.2) !important; border-color: var(--red) !important; color: #fca5a5 !important; }
.seg-medium:has(input:checked) { background: rgba(250, 204, 21, 0.15) !important; border-color: var(--yellow) !important; color: var(--yellow) !important; }
.seg-low:has(input:checked) { background: var(--accent-soft) !important; border-color: var(--gold) !important; color: var(--gold-2) !important; }
.gps-card { border: 1px solid var(--field-line); border-radius: 8px; background: var(--field-card); padding: 12px; display: grid; gap: 10px; }
.gps-title { display: inline-flex; gap: 8px; align-items: center; color: var(--gold-2); font-weight: 600; font-size: 0.86rem; }
.coord-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.coord-grid label { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--field-line); border-radius: 6px; background: var(--ink-2); }
.coord-grid small { color: var(--field-muted); font-size: 0.68rem; }
.coord-grid input { border: 0; outline: 0; background: transparent; color: var(--text); font-weight: 700; font-size: 0.95rem; padding: 0; width: 100%; }
.place-row { gap: 10px; }
.place-input { flex: 1; min-width: 0; border: 0; border-bottom: 1px dashed var(--field-line); background: transparent; color: var(--field-muted); padding: 4px 0; font-size: 0.8rem; outline: 0; }
.place-actions { display: inline-flex; gap: 12px; font-size: 0.8rem; }
.picker-map { height: 130px !important; min-height: 130px !important; margin-top: 8px; border-radius: 8px !important; border: 1px solid var(--field-line) !important; }
.gps-hint { font-size: 0.74rem; margin: 6px 0 0; }
.evidence-pick { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.evidence-tile { width: 62px; height: 62px; display: grid; place-items: center; align-content: center; gap: 4px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--field-card); color: var(--field-muted); font-size: 0.66rem; cursor: pointer; }
.evidence-tile input { display: none; }
.evidence-tile:hover { border-color: var(--gold); color: var(--text); }
.evidence-preview { display: flex; gap: 8px; }
.evidence-preview img { width: 62px; height: 62px; object-fit: cover; border-radius: 8px; }

/* Checklist */
.progress-row { display: flex; justify-content: space-between; font-size: 0.8rem; }
html.scheme-navy .progress { background: var(--field-line); height: 5px; margin: 8px 0 18px; }
html.scheme-navy .progress b { background: var(--gold); }
.question-card h3 { font-size: 1rem; line-height: 1.35; margin: 0 0 14px; }
html .yesno { margin: 0 0 16px; gap: 8px; }
html .yesno label { border-radius: 6px; padding: 12px; background: var(--ink-2); border: 1px solid var(--field-line); font-weight: 600; cursor: pointer; }
html.scheme-navy .yesno label:has(input:checked) { background: var(--accent-soft); color: var(--gold-2); border-color: var(--gold); }
html.scheme-navy .yesno label.is-expected { box-shadow: none; }
.expected-note { font-size: 0.74rem; margin: 10px 0 0; }
.step-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.step-nav .btn { padding: 13px; }
.step-dots { display: flex; justify-content: center; gap: 6px; margin: 16px 0 6px; }
.step-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--field-line); }
.step-dots i.is-done { background: #3a5168; }
.step-dots i.is-on { background: var(--gold); }
.step-extra { text-align: center; }
.checklist-tools { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--field-line); font-size: 0.8rem; }

/* Reports */
.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pill-tabs a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--field-line); font-size: 0.76rem; font-weight: 600; color: var(--field-ink); }
.pill-tabs a.is-active { color: var(--gold-2); border-color: var(--gold); background: var(--accent-soft); }
.report-stack { display: grid; gap: 10px; }
.report-link { display: block; }
.report-card { padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--field-card); display: grid; gap: 6px; }
.report-link:hover .report-card { border-color: var(--gold); }
.report-id { font-size: 0.8rem; }
.report-id b { color: var(--gold-2); }
.report-title { font-size: 0.92rem; }
.status-text { font-size: 0.72rem; font-weight: 600; }
.st-text-pending { color: var(--yellow); }
.st-text-under_review { color: var(--gold-2); }
.st-text-verified { color: var(--green); }
.st-text-escalated { color: #f87171; }
.st-text-rejected { color: var(--field-muted); }
.report-more summary { cursor: pointer; color: var(--field-muted); font-size: 0.76rem; }
html.scheme-navy .response-report.is-field { background: var(--ink-2); color: var(--text); border-color: var(--field-line); }
.report-response { font-size: 0.76rem; margin: 0; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.quick-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--field-card); }
.quick-tile svg { grid-row: span 2; color: var(--gold-2); }
.quick-tile span { font-weight: 600; font-size: 0.86rem; }
.quick-tile small { color: var(--field-muted); font-size: 0.72rem; }
.quick-tile:hover { border-color: var(--gold); }
.mode-computer .desktop-field .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mode-computer .desktop-field .quick-grid { grid-template-columns: repeat(4, 1fr); }

/* ---------- Public landing ---------- */
body.landing {
    --ln-teal: #2f97bd; --ln-teal-dark: #1f7fa3; --ln-green: #8bc34a; --ln-text: #21303d; --ln-muted: #5b6977;
    --ln-line: #cfe4ec; --ln-tint: #f2f9fb; --gold-2: #2f97bd; --mint: #6a9f2a;
    background: #fbfdfe; color: var(--ln-text); font-family: "Inter", "Segoe UI", system-ui, sans-serif; letter-spacing: 0;
}
.landing a { color: inherit; }
.ln-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.ln-nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 253, 254, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ln-line); }
.ln-nav-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.ln-nav nav { margin-left: auto; display: flex; gap: 28px; font-size: 0.9rem; color: var(--ln-teal); }
.ln-nav nav a:hover { color: var(--ln-teal-dark); }
.landing .brand-logo { border: 1px solid var(--ln-line); }
.landing .brand-text strong { color: var(--ln-teal) !important; }
.landing .brand-text strong em { display: inline; color: var(--ln-teal); }
.ln-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 6px; background: var(--ln-teal); color: #fff !important; font-weight: 600; font-size: 0.9rem; border: 1px solid var(--ln-teal); }
.ln-btn:hover { background: var(--ln-teal-dark); }
.ln-btn-ghost { background: #fff; color: var(--ln-teal) !important; border-color: var(--ln-line); }
.ln-btn-ghost:hover { background: var(--ln-tint); }
.ln-btn-green { background: var(--ln-green); border-color: var(--ln-green); }
.ln-btn-green:hover { background: #7cb342; }
.ln-kicker { color: var(--ln-teal); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 14px; }
.landing h1, .landing h2 { font-weight: 500; color: var(--ln-teal); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 18px; }
.landing h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.landing h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.ln-lede { color: var(--ln-muted); max-width: 62ch; line-height: 1.6; margin: 0 0 22px; }
.ln-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding: 70px 0 50px; }
.ln-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ln-tag { color: var(--ln-green); font-size: 0.84rem; margin-top: 18px; }
.ln-demo { margin: 0; padding: 14px; border: 1px solid var(--ln-line); border-radius: 14px; background: #fff; box-shadow: 0 20px 50px rgba(31, 127, 163, 0.1); }
.ln-demo-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; margin-bottom: 10px; }
.ln-demo-head b { color: var(--ln-teal); }
.ln-demo-head span, .ln-panel-head span { color: var(--ln-teal); background: var(--ln-tint); border: 1px solid var(--ln-line); padding: 3px 8px; border-radius: 4px; font-size: 0.7rem; }
.ln-demo > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }
.ln-demo-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.ln-demo-thumbs img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 6px; }
.ln-demo figcaption, .ln-field figcaption { font-size: 0.74rem; color: var(--ln-muted); margin-top: 10px; }
.ln-strip { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--ln-line); border-bottom: 1px solid var(--ln-line); color: var(--ln-teal); font-size: 0.86rem; }
.ln-section { padding: 84px 0; }
.ln-tint { background: var(--ln-tint); }
.ln-cards { display: grid; gap: 18px; margin-top: 36px; }
.ln-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ln-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ln-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--ln-line); border-radius: 12px; background: #fff; }
.ln-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--ln-tint); color: var(--ln-teal); }
.ln-card h3, .ln-step h3, .ln-role h3 { color: var(--ln-teal); font-size: 1.2rem; font-weight: 500; margin: 6px 0 0; }
.ln-card p, .ln-step p, .ln-role p { color: var(--ln-muted); line-height: 1.6; margin: 0; font-size: 0.92rem; }
.ln-card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ln-line); display: flex; justify-content: space-between; align-items: center; color: var(--ln-teal); font-size: 0.78rem; }
.ln-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 36px; }
.ln-step { display: grid; gap: 10px; align-content: start; }
.ln-step-head { display: flex; justify-content: space-between; align-items: center; color: var(--ln-teal); }
.ln-step-num { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ln-line); display: grid; place-items: center; font-size: 0.86rem; background: #fff; }
.ln-step small { color: var(--ln-teal); font-size: 0.78rem; }
.ln-note { display: flex; gap: 10px; align-items: center; margin: 36px 0 0; padding: 14px 18px; border: 1px solid var(--ln-line); border-radius: 8px; background: #fff; color: var(--ln-teal); font-size: 0.88rem; }
.ln-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 36px; }
.ln-role { display: grid; gap: 10px; align-content: start; }
.ln-role-icon { color: var(--ln-teal); }
.ln-checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.ln-checks li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; color: var(--ln-text); font-size: 0.92rem; line-height: 1.45; }
.ln-checks svg { color: var(--ln-green); margin-top: 1px; }
.ln-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.ln-panel { padding: 20px; border: 1px solid var(--ln-line); border-radius: 12px; background: #fff; display: grid; gap: 12px; font-size: 0.86rem; color: var(--ln-muted); }
.ln-panel p { margin: 0; line-height: 1.55; }
.ln-panel-head { display: flex; justify-content: space-between; align-items: center; }
.ln-panel-head b { color: var(--ln-teal); }
.ln-cluster { display: grid; gap: 8px; padding: 14px; border-radius: 8px; background: var(--ln-tint); }
.ln-cluster > b { color: var(--ln-teal); font-weight: 600; }
.ln-cluster-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 6px; background: #fff; border: 1px solid var(--ln-line); color: var(--ln-teal); }
.ln-panel-caption { color: var(--ln-green) !important; font-size: 0.78rem; }
.ln-approval { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 8px; background: #f3f9ec; color: var(--ln-green); }
.ln-approval b { display: block; color: #557f24; }
.ln-approval small { color: var(--ln-muted); }
.ln-field { margin: 0; position: relative; }
.ln-field > img { width: 100%; border-radius: 14px; display: block; aspect-ratio: 5 / 4; object-fit: cover; }
.ln-field-card { position: absolute; right: -18px; top: 18%; width: 230px; padding: 14px; border-radius: 10px; background: #fff; border: 1px solid var(--ln-line); box-shadow: 0 20px 40px rgba(20, 50, 70, 0.18); display: grid; gap: 6px; font-size: 0.78rem; color: var(--ln-muted); }
.ln-field-card-head { display: flex; justify-content: space-between; color: var(--ln-teal); }
.ln-field-card-head span { color: var(--ln-green); }
.ln-field-card p { margin: 0; padding: 8px; background: var(--ln-tint); border-radius: 6px; color: var(--ln-text); }
.ln-chip { color: var(--ln-teal); }
.ln-saved { padding: 8px; border-radius: 6px; background: #f3f9ec; }
.ln-saved b { display: block; color: #557f24; }
.ln-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
.ln-faq-list details { border-bottom: 1px solid var(--ln-line); padding: 18px 0; }
.ln-faq-list summary { cursor: pointer; color: var(--ln-teal); font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.ln-faq-list summary::-webkit-details-marker { display: none; }
.ln-faq-list summary::after { content: "+"; font-size: 1.1rem; }
.ln-faq-list details[open] summary::after { content: "−"; }
.ln-faq-list p { color: var(--ln-muted); line-height: 1.6; margin: 10px 0 0; font-size: 0.92rem; }
.ln-cta { background: #4aa3cc; color: #fff; padding: 70px 0; }
.ln-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.ln-cta .ln-kicker, .ln-cta h2, .ln-cta p { color: #fff; }
.ln-cta h2 { max-width: 22ch; }
.ln-cta p { margin: 0; opacity: 0.92; }
.ln-footer { padding: 54px 0 0; font-size: 0.86rem; color: var(--ln-muted); }
.ln-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.ln-footer-grid p { max-width: 46ch; line-height: 1.6; }
.ln-footer h4 { color: var(--ln-teal); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 12px; }
.ln-footer-grid a { display: block; margin-bottom: 8px; color: var(--ln-muted); }
.ln-footer-grid a:hover { color: var(--ln-teal); }
.ln-footer-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 26px; border-top: 1px solid var(--ln-line); font-size: 0.78rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .dash-grid, .dash-grid.is-even, .case-grid, .settings-grid { grid-template-columns: minmax(0, 1fr); }
    .ln-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    html.scheme-navy .sidebar { position: relative; height: auto; flex-direction: column; padding: 14px; gap: 12px; }
    html.scheme-navy .nav-list { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; }
    html.scheme-navy .nav-list a { flex: none; }
    html.scheme-navy .topbar { flex-wrap: wrap; padding: 12px 16px; }
    html.scheme-navy .topbar .search { order: 5; flex: 1 1 100%; margin-left: 0; }
    html.scheme-navy .page { padding: 18px 16px 32px; }
    .map-stage { margin: -18px -16px -32px; height: auto; min-height: 0; display: flex; flex-direction: column; overflow: visible; }
    .map-stage > .leaflet-map { position: relative; height: 60vh; }
    .map-filters, .map-severity-legend { position: static; width: auto; max-height: none; margin: 12px 16px 0; }
    .map-stage-label { position: static; transform: none; display: block; margin: 12px 16px 0; text-align: center; }
    .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
    .auth-desktop-brand .kenya-outline { width: 220px; }
    html.scheme-navy .auth-desktop-panel { padding: 24px 16px; }
    .ln-hero, .ln-split, .ln-faq, .ln-steps, .ln-roles, .ln-cards-3, .ln-cards-4, .ln-footer-grid { grid-template-columns: minmax(0, 1fr); }
    .ln-hero { padding-top: 40px; gap: 32px; }
    .ln-nav nav { display: none; }
    .ln-nav .ln-btn { margin-left: auto; }
    .ln-field-card { position: static; width: auto; margin-top: 12px; }
    .ln-section { padding: 56px 0; }
}
@media (max-width: 520px) {
    .grid-4 { grid-template-columns: minmax(0, 1fr) !important; }
    .filter-export { margin-left: 0; }
}

/* ---------- Polish pass ---------- */
html.scheme-navy .filter-bar select, html.scheme-navy .filter-bar .input { font-size: 0.84rem; padding: 7px 10px; min-width: 0; }
html.scheme-navy .filter-bar { flex-wrap: wrap; }
.id-link, html.scheme-navy .badge { white-space: nowrap; }
html.scheme-navy label.field input, html.scheme-navy label.field select, html.scheme-navy label.field textarea {
    font-weight: 400; font-size: 0.92rem; letter-spacing: 0; text-transform: none; color: var(--text);
}
html.scheme-navy label.field { gap: 8px; }
.sidebar-user > div { min-width: 0; }
.sidebar-user b, .sidebar-user small { overflow-wrap: anywhere; }
.sidebar-user .avatar { width: 38px; height: 38px; font-size: 0.86rem; }
html.scheme-navy .avatar { background: var(--accent-soft); color: var(--gold-2); border: 1px solid rgba(30, 155, 176, 0.4); }
html .field-header { flex-wrap: nowrap; }
.field-brand { flex: 1; min-width: 0; }
.field-status { overflow-wrap: anywhere; }
html .field-header-actions { flex-wrap: nowrap; flex: none; }
html.scheme-navy .mode-phone .cat-grid, html.scheme-navy .mode-tablet .cat-grid, html.scheme-navy .mode-computer .desktop-field .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.scheme-navy .mode-tablet .cat-grid, html.scheme-navy .mode-computer .desktop-field .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 340px) { html.scheme-navy .mode-phone .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html .describe-box input, html .describe-box textarea { border: 0 !important; background: transparent !important; padding: 2px 0 !important; border-radius: 0 !important; }

/* The page follows the window. Manual display modes still change the field frame,
   and these rules keep that frame, the situation room, and the public pages inside the screen. */
html { overflow-x: clip; }
.page, .command-main, .card, .field-body, .auth-panel-inner { min-width: 0; max-width: 100%; }
.page-head h1, .page h1, .field-title, .auth-desktop-brand h1 { font-size: clamp(1.45rem, 3.2vw, 2rem); overflow-wrap: anywhere; }
.watch-pill, .search, select, .input, textarea, .table-wrap, .map-filters, .people-card { max-width: 100%; min-width: 0; }
.watch-pill { white-space: normal; }
.watch-pill b { overflow-wrap: anywhere; }
.search { min-width: 0; }
.table-wrap { overflow-x: auto; }
.grid-4, .board-kpis { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.grid-3, .ticket-grid { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.grid-2, .evidence-grid { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.form-grid, .people-edit { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.map-popup { min-width: min(210px, 70vw); }

@media (max-width: 1100px) {
    html .settings-grid,
    html .dash-grid,
    html .dash-grid.is-even,
    html .case-grid,
    html .verify-desk,
    html .grid-detail,
    html .map-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
    html .command-shell { grid-template-columns: minmax(0, 1fr); }
    html .sidebar,
    html.scheme-navy .sidebar,
    html.scheme-site .sidebar,
    html.scheme-dark .sidebar,
    html.scheme-green .sidebar {
        position: relative;
        height: auto;
        max-height: none;
        flex-direction: column;
    }
    html .nav-list,
    html.scheme-navy .nav-list,
    html.scheme-site .sidebar .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }
    html .page,
    html.scheme-navy .page,
    html.scheme-site .page { padding: 16px 14px 28px; }
    html .topbar,
    html.scheme-navy .topbar { padding: 12px 14px; }
    html .topbar .search,
    html.scheme-navy .topbar .search { flex: 1 1 100%; min-width: 0; }
    html .page-head, html .row-between { flex-wrap: wrap; align-items: flex-start; }
    html .auth-desktop,
    html.scheme-navy .auth-desktop { grid-template-columns: minmax(0, 1fr); }
    html .auth-desktop-brand,
    html .auth-desktop-panel,
    html.scheme-navy .auth-desktop-brand,
    html.scheme-navy .auth-desktop-panel { padding: 24px 16px; }
    html .map-stage { margin: 0; height: auto; min-height: 0; display: flex; flex-direction: column; overflow: visible; }
    html .map-stage > .leaflet-map { position: relative; height: min(60vh, 520px); }
    html .map-filters,
    html .map-severity-legend { position: static; width: auto; max-width: 100%; max-height: none; margin: 12px 0 0; }
    html .map-stage-label { left: 50%; max-width: calc(100% - 24px); }
    html .device-stage { padding: 0; }
    html .phone-frame,
    html .tablet-frame { width: 100%; min-height: 100vh; border: 0; border-radius: 0; }
    html .field-header,
    html .field-header-actions { flex-wrap: wrap; }
    html .cat-grid,
    html.scheme-navy .mode-phone .cat-grid,
    html.scheme-navy .mode-tablet .cat-grid,
    html.scheme-navy .mode-computer .desktop-field .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html .yesno { grid-template-columns: 1fr 1fr; }
    html .coord-grid { grid-template-columns: minmax(0, 1fr); }
    html .tabs, html .watch-config-tabs { flex-wrap: wrap; }
}

@media (max-width: 520px) {
    html .cat-grid,
    html.scheme-navy .mode-phone .cat-grid,
    html.scheme-navy .mode-tablet .cat-grid,
    html.scheme-navy .mode-computer .desktop-field .cat-grid,
    html .yesno,
    html .seg { grid-template-columns: minmax(0, 1fr); }
    html .tabbar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    html .tabbar a { min-width: 0; font-size: 0.68rem; overflow-wrap: anywhere; }
    html .leaflet-map { height: 48vh; min-height: 240px; }
}

/* Sign-in stays inside the window in every display and appearance mode. */
html .auth-desktop,
html.scheme-navy .auth-desktop { min-width: 0; }
html .auth-desktop > *,
html .auth-panel-inner,
html .auth-form,
html .chrome-switchers,
html .mode-switch { max-width: 100%; min-width: 0; }
html .mode-switch { flex-wrap: wrap; }
html .auth-form .row-between { flex-wrap: wrap; row-gap: 6px; }
html .field-preferences-panel { width: min(250px, calc(100vw - 20px)); }

@media (min-width: 961px) {
    html .auth-desktop,
    html.scheme-navy .auth-desktop {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        min-height: 100dvh;
        align-items: stretch;
    }
    html .auth-desktop-brand,
    html.scheme-navy .auth-desktop-brand,
    html .auth-desktop-panel,
    html.scheme-navy .auth-desktop-panel {
        min-width: 0;
        min-height: 100dvh;
        padding: 28px 32px;
    }
    html .auth-desktop-brand,
    html.scheme-navy .auth-desktop-brand { justify-content: center; gap: 14px; }
    html .auth-desktop-brand .kenya-outline {
        width: min(400px, 100%);
        height: auto;
        max-height: min(380px, calc(100dvh - 280px));
    }
    html .device-stage { box-sizing: border-box; min-height: 100dvh; padding: 12px; }
    html .phone-frame { width: min(390px, 100%); min-height: min(780px, calc(100dvh - 24px)); }
    html .tablet-frame { width: min(1100px, 100%); min-height: min(820px, calc(100dvh - 24px)); }
}

@media (max-width: 960px) {
    html .auth-desktop,
    html.scheme-navy .auth-desktop { min-height: 100dvh; align-content: start; }
    html .auth-desktop-brand .kenya-outline { display: none; }
    html .auth-desktop-brand,
    html.scheme-navy .auth-desktop-brand {
        padding: 16px 16px 0;
        gap: 8px;
        justify-content: flex-start;
        min-height: 0;
    }
    html .auth-desktop-brand h1 { font-size: 1.2rem !important; max-width: 28ch; }
    html .auth-desktop-panel,
    html.scheme-navy .auth-desktop-panel {
        padding: 8px 16px 20px;
        justify-content: flex-start;
        min-height: 0;
    }
    html .back-link { margin-bottom: 10px; }
    html .auth-desktop-panel h2,
    html.scheme-navy .auth-desktop-panel h2 { font-size: 1.4rem; margin-bottom: 4px; }
    html .auth-desktop-panel .auth-form { padding-top: 8px; }
    html .auth-preferences { margin-top: 12px; }
    html .auth-anon { padding-top: 12px; margin-top: 4px; }
}

@media (max-width: 520px), (max-height: 700px) {
    html .auth-hero { padding: 16px 16px 8px; }
    html .auth-form { padding-left: 16px; padding-right: 16px; }
    html .phone-frame .auth-form,
    html .tablet-frame .auth-form { padding-bottom: 20px; }
}

@media (max-width: 960px) and (max-height: 700px) {
    html .auth-desktop-brand,
    html.scheme-navy .auth-desktop-brand { padding-top: 12px; }
    html .auth-desktop-brand h1 { font-size: 1.05rem !important; }
    html .auth-form { gap: 8px; }
    html .auth-form .input-icon input { padding-top: 10px; padding-bottom: 10px; }
    html .auth-anon { padding-top: 8px; }
    html .back-link { margin-bottom: 6px; }
}

/* Website appearance: the public site’s white, teal and green, inside the system. */
html.scheme-site .command-shell,
html.scheme-site .command-main,
html.scheme-site .page,
html.scheme-site .device-stage,
html.scheme-site .auth-desktop-body,
html.scheme-site .auth-desktop-brand,
html.scheme-site .auth-desktop-panel { background: #fbfdfe; color: #21303d; }
html.scheme-site .sidebar {
    background: #ffffff;
    color: #21303d;
    border-right: 1px solid #cfe4ec;
}
html.scheme-site .sidebar .brand-lockup strong,
html.scheme-site .brand-lockup .brand-text strong { color: #2f97bd; text-transform: none; }
html.scheme-site .sidebar .brand-lockup span,
html.scheme-site .brand-lockup .brand-text small { color: #8bc34a; }
html.scheme-site .sidebar .nav-list a,
html.scheme-site .sidebar .nav-more a,
html.scheme-site .sidebar .nav-caption,
html.scheme-site .sidebar-preferences,
html.scheme-site .sidebar-preferences summary { color: #21303d; }
html.scheme-site .sidebar .nav-list a:hover,
html.scheme-site .sidebar .nav-list a.is-active,
html.scheme-site .sidebar .nav-more a:hover,
html.scheme-site .sidebar .nav-more a.is-active { background: #f2f9fb; color: #2f97bd; }
html.scheme-site .sidebar .nav-more { border-top-color: #cfe4ec; }
html.scheme-site .sidebar-promise { background: #f2f9fb; color: #21303d; }
html.scheme-site .sidebar-promise span { color: #5b6977; }
html.scheme-site .topbar { background: #ffffff; border-bottom: 1px solid #cfe4ec; }
html.scheme-site .card,
html.scheme-site .field-card,
html.scheme-site .phone-frame,
html.scheme-site .tablet-frame { background: #ffffff; color: #21303d; border-color: #cfe4ec; }
html.scheme-site .page-head h1,
html.scheme-site .page h1,
html.scheme-site .card h3,
html.scheme-site .field-title,
html.scheme-site .auth-desktop-brand h1,
html.scheme-site .auth-desktop-panel h2,
html.scheme-site .auth-hero h1,
html.scheme-site .kicker,
html.scheme-site .page-head .kicker { color: #2f97bd; }
html.scheme-site .tabs { border-bottom-color: #cfe4ec; }
html.scheme-site .tabs a { color: #5b6977; }
html.scheme-site .tabs a.is-active { color: #2f97bd; border-bottom-color: #2f97bd; }
html.scheme-site .topbar .btn-gold,
html.scheme-site .btn.btn-gold,
html.scheme-site .btn.btn-gold:hover {
    background: #2f97bd;
    color: #ffffff;
    border-color: #2f97bd;
}
html.scheme-site .btn.btn-gold:hover,
html.scheme-site .topbar .btn-gold:hover { background: #1f7fa3; }
html.scheme-site .btn.btn-danger,
html.scheme-site .btn.btn-danger:hover {
    background: #8d1f1f;
    color: #ffffff;
    border-color: #c23030;
}
.live-notes { position: relative; flex: none; }
.live-notes .icon-btn { position: relative; }
.note-badge {
    position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 99px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
    display: grid; place-items: center; line-height: 1;
}
.note-panel {
    position: fixed; width: min(380px, calc(100vw - 16px)); z-index: 5000;
    background: #ffffff; color: var(--text); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 16px 40px rgba(16, 32, 48, 0.28);
}
html.scheme-navy .note-panel { background: #132033; color: #e8eef7; }
.note-panel-head, .note-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.note-panel-head { border-bottom: 1px solid var(--line); }
.note-panel-foot { border-top: 1px solid var(--line); color: var(--gold-2); font-weight: 700; }
.note-list { list-style: none; margin: 0; padding: 0; max-height: min(70vh, 640px); overflow: auto; background: inherit; }
.note-list li { background: inherit; }
.note-list a { display: grid; gap: 4px; padding: 12px 14px; color: inherit; text-decoration: none; white-space: normal; }
.note-list a:hover { background: var(--panel-2); }
.note-list li.is-unread a { box-shadow: inset 3px 0 0 #ef4444; }
.note-list small, .note-list span, .note-empty { color: var(--muted); }
.note-empty { padding: 14px 12px; }
.note-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.paper .note-toasts { bottom: 84px; }
.note-toast {
    display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; text-decoration: none;
    background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(16, 32, 48, 0.2);
}
.note-toast.sev-critical, .note-toast.sev-high { border-color: #ef4444; }
.note-panel .btn { padding: 6px 10px; }
a.report-card { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 6px; min-height: 148px; }
a.report-card:hover { border-color: var(--gold-2); }
.report-figure { font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.report-sheet { margin-bottom: 16px; }
.report-sheet h3 { margin-bottom: 12px; }
table.data td.is-detail { white-space: normal; min-width: 220px; max-width: 420px; vertical-align: top; }
