:root {
  --green: #153f35;
  --green2: #24765b;
  --gold: #bda064;
  --ink: #203b33;
  --muted: #6e8178;
  --line: #e1e8e0;
  --bg: #f3f5f0;
  --radius: 14px;
  --shadow: 0 3px 15px #173c2d04;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 'Segoe UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 3px solid #bda064; }
button { cursor: pointer; border: 0; transition: background .16s, border-color .16s, box-shadow .16s, transform .16s; }
button:disabled { opacity: .45; cursor: default; }
a { color: var(--green2); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -1.25px; line-height: 1.2; margin-bottom: 10px; }
h2 { font-size: 19px; letter-spacing: -.45px; line-height: 1.4; margin-bottom: 10px; }
h3 { font-size: 14px; line-height: 1.5; }
p { line-height: 1.7; }
button, label, .tag, .badge { line-height: 1.4; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 600; }
input, select, textarea { min-width: 0; padding: 12px 13px; border: 1px solid #d8e2d8; border-radius: 8px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #9bb5a5; }
input:focus, select:focus, textarea:focus { border-color: var(--green2); box-shadow: 0 0 0 3px #24765b0c; }
textarea { width: 100%; resize: vertical; }
input[type=checkbox] { accent-color: var(--green2); }
.primary, .secondary, .light-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 42px; border-radius: 8px; font-size: 12px; font-weight: 600; padding: 11px 17px; }
.primary { background: var(--green); color: white; box-shadow: 0 3px 8px #153f3512; }
.primary:hover { background: #235a48; box-shadow: 0 4px 12px #153f3520; }
.secondary { border: 1px solid #dce5dc; background: #fff; color: var(--ink); }
.secondary:hover { background: #f2f6ee; border-color: #abc0ad; }
.light-button { background: #f1f5eb; color: var(--green); }
.light-button:hover { background: #fff; }
.eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 1.55px; color: var(--green2); margin-bottom: 11px; }
.muted { color: var(--muted); }
.consultation-notice { padding: 12px 16px; margin-bottom: 22px; border: 1px solid #d4dfce; border-left: 3px solid var(--gold); border-radius: 8px; background: #edf2e8; color: var(--green); font-size: 12px; }
input[readonly], textarea[readonly], select:disabled { background: #f4f6f2; color: var(--ink); opacity: 1; }
.skip-link { position: fixed; left: 20px; top: -70px; background: white; border: 1px solid var(--green); border-radius: 8px; padding: 12px 20px; z-index: 2000; }
.skip-link:focus { top: 12px; }
.sidebar { width: 244px; position: fixed; inset: 0 auto 0 0; background: var(--green); color: white; padding: 35px 20px 25px; display: flex; flex-direction: column; z-index: 20; }
.brand { color: #fff; text-decoration: none; padding: 0 0 25px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #ffffff15; }
.brand-logo, .login-logo { display: block; flex-shrink: 0; object-fit: contain; background: #fff; border-radius: 50%; }
.brand-logo { width: 56px; height: 56px; }
.brand-copy { display: block; min-width: 0; }
.brand-copy strong { display: block; font-size: 20px; font-weight: 750; letter-spacing: 1px; }
.brand-copy small { display: block; margin-top: 5px; font-size: 7px; font-weight: 500; letter-spacing: .8px; color: #b6c8bd; }
.nav-caption { font-size: 9px; color: #9bb6a6; letter-spacing: 1.6px; margin: 31px 14px 17px; }
.sidebar nav { display: grid; gap: 7px; }
.sidebar nav button { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 8px; text-align: left; background: transparent; color: #c1d2c5; font-size: 12px; }
.sidebar nav button svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar nav button:hover { background: #ffffff09; color: white; }
.sidebar nav button.active { color: #fff; background: #ffffff10; box-shadow: inset 3px 0 var(--gold); }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #ffffff18; padding: 24px 14px 0; font-size: 10px; color: #b3c9bb; }
.sidebar-bottom p { margin: 16px 0 12px; overflow-wrap: anywhere; font-size: 10px; }
.sidebar-bottom button { background: transparent; color: #e6eee7; padding: 0; font-size: 11px; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; background: #a8c495; border-radius: 50%; }
main { margin-left: 244px; min-width: 0; }
.topbar { position: sticky; top: 0; height: 76px; display: flex; gap: 20px; align-items: center; padding: 0 38px; background: #fbfcf9f5; border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); z-index: 15; font-size: 11px; }
.topbar>span:first-child { margin-right: auto; font-weight: 600; }
.topbar .muted { font-weight: 400; }
#today { font-size: 10px; color: var(--muted); white-space: nowrap; }
.account-chip { display: flex; align-items: center; gap: 10px; border-left: 1px solid var(--line); padding-left: 20px; min-width: 0; }
.account-avatar { width: 32px; height: 32px; display: grid; place-items: center; background: #e9eee1; border-radius: 50%; color: var(--green); font-size: 12px; font-weight: 600; flex-shrink: 0; }
.account-chip strong { display: block; font-size: 10px; font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chip small { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; }
.content { max-width: 1650px; padding: 36px 38px 45px; margin: auto; }
.page-head { padding: 0 0 29px; margin-bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.page-head .eyebrow { margin-bottom: 12px; }
.page-head p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.page-head .primary { flex-shrink: 0; }
.filters { display: flex; align-items: flex-end; gap: 15px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 23px; }
.filters label { flex: 1; font-size: 10px; letter-spacing: .2px; color: var(--muted); font-weight: 600; }
.filters select { background-color: #fcfdf9; border-color: #e1e8dc; font-size: 12px; }
.filters .secondary { font-size: 10px; padding: 10px 12px; }
.dashboard-sections { display: flex; gap: 4px; padding: 5px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: 24px; scrollbar-width: thin; }
.dashboard-sections a { text-decoration: none; white-space: nowrap; color: var(--muted); padding: 10px 13px; font-size: 11px; border-radius: 6px; }
.dashboard-sections a.active { color: var(--green); font-weight: 600; background: #e7ede1; }
.dashboard-sections a:hover { color: var(--green); background: #eaf0e5; }
.decision-actions { display: flex; justify-content: flex-end; gap: 10px; margin: -3px 0 15px; }
.decision-actions .secondary { min-height: 34px; padding: 8px 12px; font-size: 10px; color: var(--muted); }
.decision-kpi-groups { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-bottom: 24px; }
.decision-kpi-group { padding: 22px; background: #fff; border: 1px solid var(--line); border-top: 3px solid #b6c8b1; border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.decision-kpi-group:first-child { border-top-color: var(--gold); }
.decision-kpi-group:nth-child(2) { border-top-color: var(--green2); }
.decision-kpi-group>.eyebrow { font-size: 9px; letter-spacing: 1.2px; margin-bottom: 21px; }
.decision-kpi-row { display: grid; gap: 16px; }
.decision-kpi { min-width: 0; border-top: 1px solid #edf0e8; padding-top: 15px; display: flex; flex-direction: column; gap: 6px; }
.decision-kpi:first-child { border: 0; padding-top: 0; }
.decision-kpi>span { color: var(--muted); font-size: 11px; }
.decision-kpi>strong { font-size: 27px; font-weight: 600; letter-spacing: -.9px; font-variant-numeric: tabular-nums; line-height: 1.25; }
.decision-kpi-group:nth-child(2) .decision-kpi>strong { font-size: clamp(18px,1.58vw,26px); white-space: nowrap; letter-spacing: -.65px; }
.decision-kpi>small { color: #829085; font-size: 9px; overflow-wrap: anywhere; }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; min-width: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; box-shadow: var(--shadow); min-width: 0; scroll-margin-top: 100px; }
.panel-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.panel-title h2 { margin-bottom: 0; }
.tag { color: var(--muted); background: #f6f8f2; border: 1px solid #e9ede1; border-radius: 6px; padding: 6px 9px; white-space: nowrap; font-size: 9px; }
.panel-sub { color: var(--muted); font-size: 12px; margin: 10px 0 22px; }
.bars { display: grid; gap: 17px; margin-top: 25px; }
.bar-label { display: flex; justify-content: space-between; align-items: start; gap: 20px; font-size: 11px; margin-bottom: 9px; }
.bar-label>span { min-width: 0; line-height: 1.5; }
.bar-label strong { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.track { height: 7px; background: #f0f3eb; border-radius: 6px; overflow: hidden; }
.fill { background: var(--green2); height: 100%; border-radius: 6px; width: 0; transition: width .35s ease; }
.bar:nth-child(2n) .fill { background: #98b08e; }
.bar:nth-child(3n) .fill { background: var(--gold); }
.bars.compact { max-height: 280px; overflow: auto; padding-right: 12px; gap: 14px; scrollbar-width: thin; }
.bars.compact .track { height: 5px; }
.green-panel { position: relative; overflow: hidden; background: var(--green); border-color: var(--green); color: #fff; padding: 28px; }
.green-panel::after { content: ''; position: absolute; width: 270px; height: 270px; right: -155px; top: -75px; border: 1px solid #ffffff13; border-radius: 50%; box-shadow: 0 0 0 32px #ffffff05, 0 0 0 64px #ffffff03; pointer-events: none; }
.green-panel .eyebrow { color: #d7c791; }
.green-panel h2 { font-size: 26px; max-width: 290px; margin: 24px 0 16px; }
.green-panel>p:not(.eyebrow) { color: #bdd2c3; font-size: 12px; max-width: 320px; }
#publicationSummary { margin: 24px 0 20px; padding-top: 20px; border-top: 1px solid #ffffff1d; }
#publicationSummary strong { font-size: 43px; font-weight: 500; color: #e1c780; line-height: 1; }
#publicationSummary small { font-size: 12px; color: #d6e1d4; margin-left: 5px; }
#publicationSummary p { font-size: 10px; margin-top: 12px; color: #b3c9bb; }
.light-button { margin-top: 0; font-size: 11px; }
.decision-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 22px; min-width: 0; }
.full-width { grid-column: 1 / -1; }
.comparison-legend { display: flex; align-items: center; gap: 15px; margin: 20px 0 24px; font-size: 10px; color: var(--muted); }
.comparison-legend span { display: flex; align-items: center; gap: 6px; }
.comparison-legend i { width: 8px; height: 8px; background: var(--green2); border-radius: 2px; }
.comparison-legend i.gold { background: var(--gold); }
.comparison-legend small { margin-left: auto; font-size: 9px; text-align: right; }
.comparisons { display: grid; gap: 22px; }
.comparison-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 7px 15px; margin-bottom: 10px; font-size: 11px; }
.comparison-heading>strong { font-weight: 600; }
.comparison-heading>span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 10px; }
.compare-track { height: 7px; background: #f1f4ec; margin-top: 5px; border-radius: 5px; overflow: hidden; }
.compare-a, .compare-b { height: 100%; border-radius: 5px; }
.compare-a { background: var(--green2); }
.compare-b { background: var(--gold); }
.footnote { color: #7d8d80; font-size: 10px; line-height: 1.7; margin: 20px 0 0; }
.empty-message { color: var(--muted); font-size: 12px; padding: 15px 0; }
.trend-wrap { max-width: 100%; overflow: auto; }
.trend-wrap svg { display: block; width: 100%; min-width: 450px; }
.trend-wrap text { font: 10px 'Segoe UI',Arial,sans-serif; fill: var(--muted); }
.type-bars { max-height: 360px; overflow: auto; padding-right: 12px; scrollbar-width: thin; }
.metric-tiles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 22px; }
.metric-tile { min-width: 0; text-align: left; display: flex; flex-direction: column; gap: 9px; padding: 17px; border: 1px solid #e3e8dd; border-radius: 10px; background: #fafbf7; color: var(--ink); }
.metric-tile:hover { background: #f0f5e9; border-color: #acc4a8; transform: translateY(-1px); }
.metric-tile.selected { background: #edf4e8; border-color: #8faa82; box-shadow: inset 0 3px var(--green2); }
.metric-tile>small:first-child { font-size: 9px; font-weight: 600; letter-spacing: .4px; color: var(--green2); }
.metric-tile>span { font-size: 11px; line-height: 1.6; min-height: 34px; }
.metric-tile>strong { font-size: 25px; font-weight: 600; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.metric-tile>small:last-child { color: var(--muted); font-size: 9px; line-height: 1.6; margin-top: auto; }
.metric-detail { margin-top: 24px; padding: 21px; background: #f5f8f0; border: 1px solid #e3eadd; border-radius: 10px; }
.metric-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.metric-heading h3 { margin: 0; overflow-wrap: anywhere; }
.metric-heading>span { font-size: 10px; margin-left: auto; color: var(--muted); }
.metric-heading .secondary { font-size: 10px; min-height: 32px; padding: 7px 10px; }
.metric-bars { max-height: 330px; overflow: auto; padding-right: 9px; gap: 12px; scrollbar-width: thin; }
.metric-bars .bar[role=button] { cursor: pointer; padding: 6px; border-radius: 5px; }
.metric-bars .bar[role=button]:hover { background: #e7efdf; }
.coverage-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-top: 22px; }
.coverage-tile { display: flex; flex-direction: column; align-items: start; gap: 7px; min-width: 0; padding: 18px 15px; border: 1px solid #dfe7d8; background: #f3f7ee; border-radius: 10px; text-align: left; color: var(--ink); }
.coverage-tile:hover { background: #e9f2df; border-color: #a8bf9b; }
.coverage-tile strong { font-size: 25px; font-weight: 600; letter-spacing: -.8px; }
.coverage-tile span { font-size: 11px; line-height: 1.5; }
.coverage-tile small { color: var(--muted); font-size: 9px; }
.coverage-tile.uncovered { background: #fff8e9; border-color: #eadfc5; }
.decision-table-wrap { max-width: 100%; max-height: 420px; overflow: auto; margin-top: 16px; scrollbar-width: thin; }
table { border-collapse: collapse; width: 100%; font-size: 12px; text-align: left; }
th { padding: 16px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .8px; background: #f7f9f3; }
td { padding: 18px 16px; border-top: 1px solid #e9ede5; vertical-align: middle; }
tbody tr:hover { background: #fbfcf8; }
td:first-child { max-width: 350px; }
td strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.6; }
td small { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); }
.decision-table-wrap th { position: sticky; top: 0; z-index: 1; }
.decision-table-wrap td { padding: 13px; font-size: 11px; }
.text-link { text-align: left; color: var(--green2); background: none; padding: 0; font-size: 11px; line-height: 1.6; }
.text-link:hover { text-decoration: underline; }
.badge, .alert-badge { display: inline-flex; padding: 6px 9px; border-radius: 5px; font-size: 10px; white-space: nowrap; }
.badge { background: #eef2e7; color: #647657; }
.badge.publie { background: #e5f0e3; color: #2a6941; }
.badge.soumis { background: #fff2d5; color: #976922; }
.badge.valide { background: #e7f0ec; color: #407f67; }
.badge.archive { background: #f3eae4; color: #8f6651; }
.alert-badge { background: #fcf0dd; color: #96651e; }
.quality-issue { display: inline-block; padding: 5px 7px; margin: 2px; border-radius: 4px; background: #fcf3e7; color: #8c683a; font-size: 10px; }
.list-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.list-tools input { flex: 1; background: #fff; padding-left: 15px; }
.list-tools select { font-size: 12px; }
.table-panel { padding: 0; overflow: hidden; }
.table-wrap { overflow: auto; scrollbar-width: thin; }
.edit-record { min-height: 34px; font-size: 10px; padding: 8px 12px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 20px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.pagination>div { display: flex; gap: 8px; }
.pagination button { min-height: 34px; font-size: 10px; }
.signal-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.signal-item:last-of-type { border-bottom: 0; }
.signal-item h3 { font-size: 13px; margin: 14px 0 8px; }
.signal-item p { font-size: 12px; }
.signal-item small { color: var(--muted); font-size: 10px; }
.signal-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; align-items: center; }
.signal-response { background: #eef5e7; padding: 13px; border-radius: 7px; margin-top: 12px; }
.signal-reply { display: flex; gap: 10px; margin-top: 15px; }
.signal-reply input { flex: 1; font-size: 12px; }
.signal-create { padding: 17px; background: #f6f8f0; border: 1px solid #e4ebd9; border-radius: 9px; margin-top: 22px; }
.signal-create summary { font-weight: 600; }
.signal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 15px; }
.signal-fields textarea { grid-column: 1 / -1; }
.signal-fields button { justify-self: start; }
.checkbox-label { flex-direction: row; align-items: center; gap: 9px; }
.map-panel { margin-top: 22px; }
#map { height: 420px; border: 1px solid #e2e9dd; border-radius: 10px; margin-top: 20px; z-index: 0; }
.leaflet-tooltip { font: 12px/1.6 'Segoe UI',Arial,sans-serif; max-width: 300px; white-space: normal; }
pre { font: 12px/1.8 Consolas,monospace; padding: 22px; background: #f3f7ed; border: 1px solid #e0e8d6; border-radius: 10px; overflow: auto; }
code { color: #37634d; font-size: 12px; }
.integration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 25px; }
.integration-grid p, .panel>p { font-size: 12px; }
.user-form { display: flex; align-items: end; flex-wrap: wrap; gap: 15px; padding: 22px; background: #f7f9f2; border: 1px solid var(--line); border-radius: 10px; margin: 25px 0; }
.user-form label { flex: 1; min-width: 170px; }
.user-row, .audit-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 0; border-top: 1px solid var(--line); font-size: 12px; }
.user-row>div { display: flex; gap: 10px; align-items: center; }
.user-row select { font-size: 11px; }
.user-row small { color: var(--muted); font-weight: 400; font-size: 10px; }
.audit-row { align-items: start; }
.audit-row p { margin: 7px 0 0; font-size: 11px; }
.audit-row>span { white-space: nowrap; font-size: 10px; color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 23px 38px; font-size: 9px; color: var(--muted); }
dialog { max-width: 94vw; width: 850px; max-height: 90vh; overflow: auto; margin: auto; padding: 28px; border: 1px solid #dce7d8; border-radius: 16px; color: var(--ink); box-shadow: 0 30px 100px #10342330; }
dialog::backdrop { background: #12342780; backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin-bottom: 0; }
.dialog-head .secondary { min-height: 36px; font-size: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wide { grid-column: 1 / -1; }
.dialog-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
#recordState { font-size: 11px; color: var(--muted); }
.workflow-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.workflow-actions button { font-size: 11px; }
details { font-size: 12px; margin-top: 22px; }
summary { cursor: pointer; padding: 10px 0; color: var(--green2); }
details p { color: var(--muted); }
#extraFields { font: 12px/1.7 Consolas,monospace; }
.error { color: #a04835 !important; font-size: 12px !important; margin-top: 12px; }
#notice { position: fixed; top: 20px; right: 20px; max-width: min(85vw,480px); background: var(--green); color: #fff; border: 1px solid #648a60; border-radius: 10px; padding: 16px 22px; font-size: 12px; box-shadow: 0 7px 30px #153f3520; z-index: 1000; }
.request-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg,transparent 15%,var(--gold) 45%,var(--green2) 60%,transparent 90%); background-size: 200% 100%; animation: progress 1.2s ease infinite; z-index: 2000; }
@keyframes progress { from { background-position: 200% 0; } to { background-position: -100% 0; } }
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #f7f8f2; }
.login-brand { position: relative; overflow: hidden; background: var(--green); padding: 11vh 8vw; color: white; display: flex; flex-direction: column; justify-content: center; }
.login-brand::after { content: ''; position: absolute; width: 450px; height: 450px; border-radius: 50%; border: 1px solid #ffffff12; right: -270px; bottom: -180px; box-shadow: 0 0 0 60px #ffffff04,0 0 0 120px #ffffff03; }
.login-logo { width: 128px; height: 128px; margin-bottom: 32px; box-shadow: 0 8px 28px #09291f30; }
.login-brand .eyebrow { color: #cabb8c; font-size: 9px; }
.login-brand h1 { font-size: clamp(32px,3.5vw,51px); line-height: 1.2; margin: 18px 0 28px; letter-spacing: -1.5px; }
.login-brand>p:not(.eyebrow) { font-size: 14px; line-height: 1.9; color: #c0d0c3; }
.gold-line { height: 3px; width: 48px; background: var(--gold); margin-top: 25px; border-radius: 5px; }
.login-card { width: 370px; max-width: 85%; padding: 40px 0; margin: auto; }
.login-card h2 { font-size: 32px; letter-spacing: -.9px; margin: 12px 0; }
.login-card>p { color: var(--muted); font-size: 12px; margin-bottom: 32px; }
.login-card label { margin-bottom: 21px; }
.login-card input { padding: 14px; background: white; }
.login-card .primary { width: 100%; margin-top: 6px; min-height: 46px; }
.login-card small { display: block; color: var(--muted); font-size: 10px; margin-top: 23px; }
@media (max-width: 1250px) {
  .sidebar { width: 210px; padding-inline: 16px; }
  main { margin-left: 210px; }
  .topbar { padding-inline: 25px; gap: 15px; }
  .topbar>span:first-child .muted { display: none; }
  .content { padding-inline: 25px; }
  .decision-kpi-groups { gap: 12px; }
  .decision-kpi-group { padding: 18px; }
  .decision-kpi-group>.eyebrow { font-size: 8px; letter-spacing: .9px; }
  .decision-kpi-group:nth-child(2) .decision-kpi>strong { font-size: 19px; }
  .metric-tiles { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .coverage-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 1000px) {
  .decision-kpi-groups { grid-template-columns: 1fr; }
  .decision-kpi-row { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
  .decision-kpi { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 16px; }
  .decision-kpi:first-child { padding: 0; }
  .decision-kpi-group>.eyebrow { font-size: 9px; }
  .decision-kpi-group:nth-child(2) .decision-kpi-row { grid-template-columns: 1fr 1fr; }
  .decision-kpi-group:nth-child(2) .decision-kpi:last-child { grid-column: 1/-1; border-left: 0; border-top: 1px solid var(--line); padding: 13px 0 0; }
  .decision-kpi-group:nth-child(2) .decision-kpi>strong { font-size: 21px; }
  .dashboard-grid, .decision-grid { grid-template-columns: 1fr; }
  .account-chip>div { display: none; }
  .page-head { align-items: start; }
  .page-head .primary { font-size: 10px; padding: 10px 12px; }
  .panel { padding: 22px; }
  .table-panel { padding: 0; }
  .user-row { align-items: start; flex-wrap: wrap; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 20px; }
  .sidebar { position: static; width: auto; padding: 18px 16px 12px; }
  .brand { padding: 0; border: 0; gap: 12px; }
  .brand-logo { width: 48px; height: 48px; }
  .nav-caption, .sidebar-bottom { display: none; }
  .sidebar nav { display: flex; gap: 3px; overflow-x: auto; padding: 16px 0 2px; scrollbar-width: none; }
  .sidebar nav button { padding: 10px 11px; flex-shrink: 0; gap: 7px; font-size: 10px; }
  .sidebar nav button svg { width: 14px; height: 14px; }
  .sidebar nav button.active { box-shadow: inset 0 -2px var(--gold); }
  main { margin-left: 0; }
  .topbar { position: static; height: 54px; padding: 0 18px; font-size: 10px; gap: 12px; }
  #today { font-size: 9px; }
  .account-chip { padding-left: 12px; }
  .account-avatar { width: 26px; height: 26px; font-size: 10px; }
  .content { padding: 27px 16px 32px; }
  .page-head { gap: 14px; padding-bottom: 23px; }
  h1 { font-size: 29px; }
  .page-head .eyebrow { font-size: 8px; letter-spacing: 1.1px; }
  .page-head p:last-child { font-size: 11px; }
  .page-head .primary { max-width: 120px; font-size: 10px; }
  .filters { flex-wrap: wrap; padding: 16px; gap: 13px; margin-bottom: 15px; }
  .filters label { flex: 1 1 40%; }
  .filters label:last-of-type { flex: 1 1 40%; }
  .filters select { padding: 10px; font-size: 11px; }
  .filters .secondary { flex: 1 1 40%; min-height: 38px; }
  .dashboard-sections { margin-inline: -3px; margin-bottom: 19px; }
  .dashboard-sections a { padding: 9px 11px; font-size: 10px; }
  .decision-actions { justify-content: flex-start; }
  .decision-kpi-group { padding: 18px; }
  .decision-kpi-row { gap: 12px; }
  .decision-kpi { padding-left: 12px; }
  .decision-kpi>strong { font-size: 24px; }
  .decision-kpi>span { font-size: 10px; }
  .decision-kpi>small { font-size: 9px; }
  .decision-kpi-group:nth-child(2) .decision-kpi>strong { font-size: 21px; }
  .panel { padding: 20px; border-radius: 12px; }
  .table-panel { padding: 0; }
  h2 { font-size: 18px; }
  .panel-title { flex-wrap: wrap; gap: 10px; }
  .metric-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .metric-tile { padding: 14px; }
  .metric-tile>strong { font-size: 24px; }
  .metric-detail { padding: 15px; }
  .metric-heading { align-items: start; gap: 8px; }
  .metric-heading>span { margin-left: 0; width: 100%; }
  .coverage-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
  .coverage-tile { padding: 13px 10px; }
  .coverage-tile strong { font-size: 23px; }
  .coverage-tile span { font-size: 10px; }
  .coverage-tile small { font-size: 8px; }
  .comparison-heading { gap: 5px 10px; }
  .comparison-heading>span { font-size: 10px; }
  .list-tools { flex-wrap: wrap; }
  .list-tools input { flex-basis: 100%; }
  .list-tools select { flex: 1; min-width: 0; }
  .list-tools .secondary { font-size: 10px; padding: 10px; }
  .pagination { flex-wrap: wrap; padding: 15px; font-size: 10px; }
  th { padding: 13px; }
  td { padding: 15px 13px; }
  .integration-grid { grid-template-columns: 1fr; gap: 15px; }
  .user-form { display: grid; padding: 16px; }
  .user-row, .audit-row { flex-wrap: wrap; gap: 12px; }
  .user-row>div { width: 100%; }
  .user-row select { flex: 1; }
  .signal-reply { flex-wrap: wrap; }
  .signal-reply input { flex-basis: 100%; }
  footer { padding: 20px 18px; font-size: 9px; }
  footer>span { display: none; }
  .login { display: block; }
  .login-brand { padding: 38px 30px; }
  .login-logo { width: 88px; height: 88px; margin-bottom: 22px; }
  .login-brand h1 { font-size: 32px; margin: 10px 0; }
  .login-brand>p:not(.eyebrow), .gold-line { display: none; }
  .login-card { padding: 35px 0; }
  dialog { padding: 20px; border-radius: 12px; }
  .dialog-head { align-items: start; gap: 12px; }
  .dialog-head h2 { font-size: 18px; }
  .dialog-head .secondary { padding: 8px 10px; }
  .form-grid, .signal-fields { grid-template-columns: 1fr; }
  .wide, .signal-fields textarea { grid-column: auto; }
  .dialog-footer { flex-wrap: wrap; }
  .dialog-footer .primary { width: 100%; }
  #map { height: 350px; }
}
@media (max-width: 420px) {
  .brand-copy small { font-size: 7px; letter-spacing: .8px; }
  .account-chip { display: none; }
  .page-head { flex-wrap: wrap; }
  .page-head .primary { max-width: none; font-size: 11px; }
  .decision-kpi-row { grid-template-columns: 1fr 1fr; }
  .decision-kpi:last-child { grid-column: 1/-1; border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
  .decision-kpi-group:nth-child(2) .decision-kpi-row { grid-template-columns: 1fr; }
  .decision-kpi-group:nth-child(2) .decision-kpi { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
  .decision-kpi-group:nth-child(2) .decision-kpi:first-child { border: 0; padding: 0; }
  .coverage-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  body { background: #fff; font-size: 10pt; }
  .sidebar, .topbar, footer, #newRecord, .filters, .decision-actions, .dashboard-sections, .signal-reply, .metric-back, .workflow-actions, #notice, .skip-link, .request-progress { display: none !important; }
  main { margin: 0; }
  .content { padding: 0; max-width: none; }
  .dashboard-grid, .decision-grid { display: block; }
  .decision-kpi-groups { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .decision-kpi-row { grid-template-columns: 1fr; }
  .decision-kpi { border-left: 0; padding: 10px 0 0; }
  .decision-kpi-group:nth-child(2) .decision-kpi-row { grid-template-columns: 1fr; }
  .panel, .decision-kpi-group { break-inside: avoid; border-color: #ccc; margin-bottom: 14px; box-shadow: none; }
  .decision-table-wrap, .bars, .metric-bars, .type-bars { max-height: none; overflow: visible; }
  .metric-tiles { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .green-panel { background: white !important; color: var(--green) !important; }
  .green-panel p, #publicationSummary p, #publicationSummary small { color: #555 !important; }
  .light-button { display: none; }
  .map-panel { break-before: page; }
  .signal-create { display: none; }
  .page-head { margin-bottom: 15px; }
  .metric-tile, .comparison, .bar { break-inside: avoid; }
}
body:has(dialog[open]) { overflow: hidden; }
