:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #14251d;
  background: #f3f6f3;
  --green-950: #053623;
  --green-900: #07452d;
  --green-700: #087144;
  --green-600: #0b8752;
  --green-100: #e5f3eb;
  --gold: #d8aa3b;
  --ink: #14251d;
  --muted: #63736b;
  --line: #d8e1db;
  --surface: #ffffff;
}

* { box-sizing: border-box; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
body { margin: 0; min-width: 320px; background: #f3f6f3; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.site-header,
body > header {
  min-height: 72px;
  padding: 0 28px;
  background: var(--green-950);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 32px;
  box-shadow: 0 2px 14px #001b1033;
  position: relative;
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 220px; }
.brand-mark {
  width: 42px; height: 42px; border: 1px solid #ffffff66; border-radius: 12px;
  display: grid; place-items: center; font-weight: 850; letter-spacing: -.07em;
  background: linear-gradient(145deg, #158b57, #075033);
}
.brand strong { display: block; font-size: 15px; letter-spacing: .08em; }
.brand small { display: block; margin-top: 2px; color: #bcd5c7; font-size: 10px; letter-spacing: .14em; }
nav { display: flex; align-self: stretch; align-items: center; gap: 28px; flex: 1; }
nav a { color: #c9ddd2; text-decoration: none; font-size: 14px; height: 100%; display: flex; align-items: center; border-bottom: 3px solid transparent; }
nav a:hover, nav a.active { color: #fff; border-bottom-color: var(--gold); }
.poc-badge, .badge {
  border: 1px solid #ead08f80; color: #f3d98c; background: #ffffff0d;
  border-radius: 999px; padding: 7px 12px; font-size: 11px; letter-spacing: .08em; font-weight: 700;
}

.citizen-layout { min-height: calc(100vh - 72px); display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(400px, .75fr); }
.map-shell { min-width: 0; padding: 24px 24px 20px; display: flex; flex-direction: column; }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.eyebrow, .step-label { color: var(--green-700); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #21a868; box-shadow: 0 0 0 4px #21a8681f; }
.map-toolbar h1 { margin: 4px 0 0; font-size: clamp(23px, 2vw, 30px); letter-spacing: -.035em; }
.search-box { width: min(390px, 42%); position: relative; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 14px; min-height: 44px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 3px 12px #1937260a; }
.search-box span { font-size: 22px; color: var(--green-700); }
.search-box input { width: 100%; border: 0; outline: none; background: transparent; color: var(--ink); }
.clear-search { width: 30px; height: 30px; flex: 0 0 30px; padding: 0; color: #799087; border: 0; border-radius: 50%; background: rgb(255 255 255 / 7%); cursor: pointer; font-size: 20px; }
.search-results { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; max-height: 330px; overflow: auto; padding: 7px; border: 1px solid var(--glass-line); border-radius: 14px; background: rgb(5 11 8 / 96%); box-shadow: 0 22px 50px rgb(0 0 0 / 40%); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.search-result { width: 100%; min-height: 50px; display: grid; gap: 3px; padding: 9px 11px; color: #eaf5ee; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.search-result:hover,
.search-result:focus-visible { background: rgb(54 214 137 / 13%); }
.search-result strong,
.search-result span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result strong { font-size: 11px; }
.search-result span { color: #8fa299; font-size: 9px; }
.search-empty { margin: 0; padding: 14px 11px; color: #9baba3; font-size: 10px; line-height: 1.45; }

.offline-map { flex: 1; min-height: 535px; position: relative; overflow: hidden; background: #eaf1eb; border: 1px solid #ccd9d0; border-radius: 16px; box-shadow: 0 14px 36px #173d2912; }
.offline-map svg { display: block; width: 100%; height: 100%; min-height: 535px; cursor: crosshair; }
.road-casing { fill: none; stroke: #cad4cc; stroke-width: 36; stroke-linecap: round; stroke-linejoin: round; }
.road { fill: none; stroke: #fff; stroke-width: 27; stroke-linecap: round; stroke-linejoin: round; }
.road-center { fill: none; stroke: #d9c88f; stroke-width: 1.6; stroke-dasharray: 12 12; }
.road-label { fill: #68776f; font-size: 13px; letter-spacing: .03em; paint-order: stroke; stroke: #f7faf8; stroke-width: 4px; }
.building { fill: #fff; stroke: #9db2a5; stroke-width: 2; cursor: pointer; transition: fill .15s, stroke .15s, filter .15s; }
.building:hover, .building.is-filtered { fill: #dceee4; stroke: var(--green-600); }
.building.is-selected { fill: #f8e9b9; stroke: #9d7715; stroke-width: 4; filter: url(#map-shadow); }
.building-label { fill: #395147; font-size: 11px; text-anchor: middle; pointer-events: none; font-weight: 750; }
.poi-pin { cursor: pointer; }
.poi-pin.is-muted { opacity: .2; }
.poi-pin circle { fill: var(--green-700); stroke: #fff; stroke-width: 4; filter: url(#map-shadow); }
.poi-pin text { fill: #fff; font-size: 15px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.poi-name { fill: #24473a !important; font-size: 12px !important; font-weight: 750; paint-order: stroke; stroke: #f1f6f2; stroke-width: 4px; }
.user-marker circle:first-child { fill: #168c57; opacity: .18; }
.user-marker circle:last-child { fill: #0a7546; stroke: #fff; stroke-width: 5; filter: url(#map-shadow); }
.map-mode, .map-compass, .map-scale, .map-legend { position: absolute; background: #fffffff2; border: 1px solid #d4dfd7; box-shadow: 0 4px 14px #173d291a; }
.map-mode { top: 16px; left: 16px; padding: 8px 11px; border-radius: 8px; font-size: 11px; font-weight: 750; color: var(--green-700); }
.map-mode span { color: #12a563; margin-right: 4px; }
.offline-map-controls { position: absolute; z-index: 6; top: 56px; left: 16px; display: grid; grid-template-columns: 38px auto 38px 38px; align-items: center; gap: 4px; padding: 5px; color: #e6f0ea; border: 1px solid rgb(255 255 255 / 13%); border-radius: 13px; background: rgb(4 10 7 / 76%); box-shadow: 0 10px 26px rgb(0 0 0 / 26%); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.offline-map-controls button { width: 38px; height: 38px; padding: 0; color: #e8f4ed; border: 1px solid rgb(255 255 255 / 10%); border-radius: 9px; background: rgb(255 255 255 / 7%); cursor: pointer; font-size: 18px; font-weight: 800; }
.offline-map-controls button:hover { color: #06120c; background: #66dfa1; }
.offline-map-controls span { min-width: 48px; color: #a8bbb1; font-size: 9px; text-align: center; }
.map-layer-controls { position: absolute; z-index: 6; top: 16px; right: 72px; display: flex; align-items: center; gap: 4px; padding: 5px; color: #a8bbb1; border: 1px solid rgb(255 255 255 / 13%); border-radius: 13px; background: rgb(4 10 7 / 76%); box-shadow: 0 10px 26px rgb(0 0 0 / 26%); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.map-layer-controls > span { padding: 0 6px; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.map-layer-controls button { min-height: 32px; padding: 6px 9px; color: #8fa299; border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; font-size: 9px; font-weight: 750; }
.map-layer-controls button[aria-pressed="true"] { color: #06130c; border-color: rgb(115 235 176 / 35%); background: linear-gradient(135deg, #72e9ae, #28bd72); }
.candidate-building { fill: rgb(225 242 232 / 82%); stroke: #4eaa78; stroke-width: 1.25; }
.candidate-road { stroke: #f8faf9; stroke-width: 22; }
.map-compass { top: 16px; right: 16px; width: 42px; height: 55px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; }
.map-compass span { margin-top: -12px; font-size: 20px; color: var(--green-700); }
.map-scale { left: 18px; bottom: 54px; padding: 6px 9px; border-radius: 6px; font-size: 10px; }
.map-scale span { display: inline-block; width: 58px; border-top: 3px solid var(--ink); margin-right: 5px; vertical-align: middle; }
.map-legend { right: 16px; bottom: 16px; display: flex; gap: 14px; padding: 9px 12px; border-radius: 8px; font-size: 10px; }
.map-legend span { display: flex; gap: 6px; align-items: center; }
.map-legend i { width: 13px; height: 13px; display: inline-block; border-radius: 3px; }
.legend-building { background: #fff; border: 1px solid #9db2a5; }
.legend-poi { background: var(--green-700); border-radius: 50% !important; }
.legend-selected { background: #f8e9b9; border: 2px solid #9d7715; }
.map-disclaimer { color: #68776f; font-size: 11px; line-height: 1.45; padding: 10px 5px 0; }
.map-disclaimer strong { color: #9b6b00; }
.map-disclaimer span { display: block; }
#open-data-attribution { margin-top: 4px; color: #82938a; font-size: 9px; }

.citizen-panel { background: var(--surface); border-left: 1px solid var(--line); padding: 28px 34px 22px; overflow: auto; box-shadow: -10px 0 28px #173d2908; }
.panel-intro h2 { font-size: 27px; line-height: 1.12; letter-spacing: -.035em; margin: 7px 0 9px; }
.panel-intro p { color: var(--muted); line-height: 1.5; margin: 0 0 18px; font-size: 14px; }
.selection-card { display: flex; gap: 13px; align-items: center; background: #f2f8f4; border: 1px solid #d2e4d8; border-radius: 11px; padding: 13px; margin-bottom: 10px; }
.selection-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--green-700); font-size: 22px; }
.selection-card small { display: block; color: var(--green-700); font-size: 9px; letter-spacing: .1em; font-weight: 800; }
.selection-card strong { display: block; margin: 2px 0; font-size: 13px; }
.selection-card span { color: var(--muted); font-size: 11px; }
.selection-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: -2px 0 5px; }
.selection-actions button { min-height: 38px; padding: 7px 9px; color: #a8bbb1; border: 1px solid rgb(255 255 255 / 11%); border-radius: 10px; background: rgb(255 255 255 / 5%); cursor: pointer; font-size: 9px; font-weight: 750; }
.selection-actions button:hover { color: #72e9ae; background: rgb(47 208 131 / 10%); }
.selection-message { min-height: 16px; margin: 0 0 4px; color: #72e9ae; font-size: 9px; }
.secondary-button { width: 100%; border: 1px solid #b7cabe; color: var(--green-700); background: #fff; border-radius: 9px; padding: 10px 14px; cursor: pointer; font-weight: 700; margin-bottom: 16px; }
.secondary-button:hover { background: #f1f7f3; }
.claim-form label { display: block; color: #405249; font-size: 11px; font-weight: 700; }
.claim-form input, .claim-form select, .claim-form textarea, body > main.panel input, body > main.panel select, body > main.panel textarea {
  display: block; width: 100%; margin: 5px 0 11px; padding: 10px 11px; border: 1px solid #c9d5cd; border-radius: 8px; background: #fff; color: var(--ink); outline: none;
}
.claim-form textarea { resize: vertical; }
.claim-form input:focus, .claim-form select:focus, .claim-form textarea:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px #0b875218; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.consent { display: flex !important; align-items: flex-start; gap: 9px; font-weight: 500 !important; line-height: 1.35; margin: 1px 0 13px; }
.consent input { display: inline-block; width: auto; margin: 2px 0 0; accent-color: var(--green-700); }
.primary-button, body > main.panel button, .panel button { border: 0; background: var(--green-700); color: #fff; border-radius: 9px; padding: 12px 16px; cursor: pointer; font-weight: 750; }
.primary-button { width: 100%; display: flex; justify-content: space-between; }
.primary-button:hover, body > main.panel button:hover { background: var(--green-900); }
.primary-button:disabled, body > main.panel button:disabled { opacity: .6; cursor: wait; transform: none; }
.form-message { min-height: 20px; margin: 9px 0 0; font-size: 12px; color: var(--green-700); }
.form-message.error { color: #a2372c; }
.trust-strip { border-top: 1px solid #e0e7e2; margin-top: 10px; padding-top: 12px; display: flex; justify-content: space-between; color: #708078; font-size: 10px; }

body > header strong { white-space: nowrap; }
body > header nav { justify-content: flex-end; }
body > main.panel, main > .panel { max-width: 1100px; margin: 28px auto; padding: 26px; background: #fff; border-radius: 14px; box-shadow: 0 8px 30px #173d2910; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; padding: 24px; }
.card { background: #fff; border-top: 4px solid var(--gold); padding: 20px; border-radius: 11px; box-shadow: 0 6px 18px #173d2910; }
.metric { font-size: 34px; font-weight: 850; color: var(--green-900); }
.claim { border-bottom: 1px solid #dde5df; padding: 18px 0; }

.dashboard-page { max-width: 1240px; margin: 0 auto; padding: 34px 28px 60px; }
.dashboard-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 26px; }
.dashboard-hero h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.045em; margin: 8px 0 10px; }
.dashboard-hero p { max-width: 720px; color: var(--muted); line-height: 1.55; margin: 0; }
.snapshot-meta { min-width: 230px; padding: 15px 17px; border-left: 3px solid var(--gold); background: #fff; border-radius: 0 10px 10px 0; box-shadow: 0 6px 20px #173d290d; }
.snapshot-meta small, .snapshot-meta span { display: block; color: var(--muted); font-size: 10px; }
.snapshot-meta strong { display: block; margin: 4px 0; font-size: 15px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.dashboard-card { min-height: 138px; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green-700); border-radius: 12px; box-shadow: 0 8px 22px #173d290a; }
.dashboard-card.tone-gold { border-top-color: var(--gold); }
.dashboard-card.tone-warning { border-top-color: #c47422; background: #fffbf4; }
.dashboard-card strong { font-size: 13px; }
.dashboard-card small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.metric-value { color: var(--green-900); font-size: 36px; line-height: 1; font-weight: 850; letter-spacing: -.04em; margin-bottom: 12px; }
.loading-card, .locked-card { grid-column: 1 / -1; min-height: 92px; color: var(--muted); justify-content: center; }
.quality-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-top: 20px; }
.quality-panel, .secure-section { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 24px; box-shadow: 0 8px 24px #173d2908; }
.coverage-warning { background: #fffcf5; border-color: #eadbb4; }
.quality-panel h2, .secure-section h2 { margin: 5px 0 12px; font-size: 21px; }
.quality-panel p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.quality-badge { padding: 7px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.quality-badge.neutral { background: #eef2ef; color: var(--muted); }
.quality-badge.success { background: #e2f4e9; color: var(--green-700); }
.quality-badge.danger { background: #f9e5e2; color: #a2372c; }
.check-list { display: grid; gap: 9px; }
.check-row { display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid #e1e8e3; border-radius: 9px; }
.check-row strong, .check-row small { display: block; }
.check-row strong { font-size: 12px; }
.check-row small { color: var(--muted); margin-top: 2px; font-size: 10px; }
.check-icon { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; font-weight: 850; }
.check-icon.pass { background: #e2f4e9; color: var(--green-700); }
.check-icon.fail { background: #f9e5e2; color: #a2372c; }
.secure-section { margin-top: 20px; }
.text-link { color: var(--green-700); font-size: 12px; font-weight: 750; text-decoration: none; }
.compact-grid { grid-template-columns: repeat(3, 1fr); margin-top: 12px; }

@media (max-width: 900px) {
  .dashboard-hero { align-items: stretch; flex-direction: column; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-layout { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .citizen-layout { grid-template-columns: 1fr; }
  .citizen-panel { border: 0; border-top: 1px solid var(--line); }
  .offline-map, .offline-map svg { min-height: 480px; }
  .poc-badge { margin-left: auto; }
  body { padding-bottom: 82px; }
  .site-header nav {
    position: fixed; z-index: 100; left: 12px; right: 12px; bottom: 10px;
    min-height: 58px; display: flex; gap: 4px; padding: 5px;
    border: 1px solid rgb(255 255 255 / 15%); border-radius: 18px;
    background: rgb(5 11 8 / 88%); box-shadow: 0 18px 50px rgb(0 0 0 / 45%), inset 0 1px rgb(255 255 255 / 8%);
    backdrop-filter: blur(24px) saturate(145%); -webkit-backdrop-filter: blur(24px) saturate(145%);
  }
  .site-header nav a { min-height: 46px; flex: 1; justify-content: center; padding: 0 10px; border: 0; border-radius: 13px; font-size: 11px; font-weight: 750; }
  .site-header nav a.active { color: #06120c; background: linear-gradient(135deg, #72e9ae, #28bd72); }
}

@media (max-width: 620px) {
  .site-header, body > header { padding: 0 16px; min-height: 66px; }
  .brand { min-width: 0; }
  .brand-mark { width: 36px; height: 36px; }
  .poc-badge { font-size: 9px; padding: 6px 8px; }
  .map-shell { padding: 16px 12px; }
  .map-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .search-box { width: 100%; }
  .offline-map, .offline-map svg { min-height: 420px; }
  .map-legend { left: 12px; right: 12px; overflow: auto; }
  .offline-map-controls { top: 54px; left: 12px; grid-template-columns: 38px auto 38px; }
  .offline-map-controls #zoom-reset { display: none; }
  .citizen-panel { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .trust-strip { flex-direction: column; gap: 5px; }
  .dashboard-page { padding: 24px 14px 45px; }
  .metric-grid, .compact-grid { grid-template-columns: 1fr; }
}

/* Glass Noir design system — high-contrast, offline and dependency-free. */
:root {
  color-scheme: dark;
  --night-1000: #030605;
  --night-950: #060b09;
  --night-900: #0a100d;
  --glass: rgb(8 14 12 / 78%);
  --glass-soft: rgb(16 24 20 / 66%);
  --glass-line: rgb(255 255 255 / 12%);
  --glass-highlight: rgb(255 255 255 / 7%);
  --text-on-dark: #f4f8f5;
  --muted-on-dark: #a9b8b0;
  --emerald: #2fd083;
  --emerald-soft: rgb(47 208 131 / 16%);
  --gold-light: #f0ce72;
}

html { background: var(--night-1000); }
body {
  color: var(--text-on-dark);
  background:
    radial-gradient(circle at 12% 14%, rgb(24 118 76 / 26%), transparent 32rem),
    radial-gradient(circle at 92% 76%, rgb(177 132 35 / 16%), transparent 28rem),
    linear-gradient(145deg, #07100c 0%, #030605 52%, #0a0c09 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .55;
}
body::before { width: 18rem; height: 18rem; left: -8rem; top: 24%; background: radial-gradient(circle, rgb(31 205 126 / 20%), transparent 68%); }
body::after { width: 22rem; height: 22rem; right: -10rem; bottom: 0; background: radial-gradient(circle, rgb(234 187 74 / 14%), transparent 68%); }
main { position: relative; z-index: 1; }

.site-header,
body > header {
  position: sticky;
  top: 0;
  min-height: 78px;
  background: rgb(3 7 5 / 72%);
  border-bottom: 1px solid var(--glass-line);
  box-shadow: 0 16px 48px rgb(0 0 0 / 25%), inset 0 1px rgb(255 255 255 / 4%);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
}
.brand-mark {
  width: 44px;
  height: 44px;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 14px;
  background: linear-gradient(145deg, rgb(55 224 143 / 88%), rgb(6 74 45 / 92%));
  box-shadow: inset 0 1px rgb(255 255 255 / 28%), 0 10px 28px rgb(18 188 108 / 18%);
}
.brand small { color: #9fb6aa; }
nav { gap: 8px; justify-content: center; }
nav a {
  height: auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #aebdb5;
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}
nav a:hover,
nav a.active {
  color: #fff;
  border: 1px solid rgb(255 255 255 / 10%);
  background: rgb(255 255 255 / 8%);
  box-shadow: inset 0 1px rgb(255 255 255 / 8%);
  transform: translateY(-1px);
}
.poc-badge,
.badge {
  border-color: rgb(240 206 114 / 24%);
  color: var(--gold-light);
  background: rgb(239 194 75 / 8%);
  box-shadow: inset 0 1px rgb(255 255 255 / 7%);
}

.citizen-layout { min-height: calc(100vh - 78px); background: transparent; }
.map-shell { padding: 30px 28px 22px; }
.map-toolbar h1,
.dashboard-hero h1,
.admin-hero h1 { color: #fff; text-wrap: balance; }
.eyebrow,
.step-label { color: #72dfa8; }
.live-dot { background: var(--emerald); box-shadow: 0 0 0 4px rgb(47 208 131 / 13%), 0 0 18px rgb(47 208 131 / 45%); }
.search-box {
  height: 48px;
  color: #eaf4ee;
  background: rgb(5 9 7 / 68%);
  border-color: var(--glass-line);
  border-radius: 15px;
  box-shadow: inset 0 1px rgb(255 255 255 / 6%), 0 14px 32px rgb(0 0 0 / 20%);
  backdrop-filter: blur(20px) saturate(140%);
}
.search-box span { color: var(--emerald); }
.search-box input { color: #fff; }
.search-box input::placeholder { color: #82938a; }
.offline-map {
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 24px;
  box-shadow: 0 26px 70px rgb(0 0 0 / 38%), inset 0 1px rgb(255 255 255 / 25%);
}
.map-mode,
.map-compass,
.map-scale,
.map-legend {
  color: #f2f8f4;
  background: rgb(4 9 7 / 72%);
  border-color: rgb(255 255 255 / 14%);
  box-shadow: inset 0 1px rgb(255 255 255 / 8%), 0 12px 34px rgb(0 0 0 / 27%);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}
.map-mode { color: #78e0ad; border-radius: 12px; }
.map-compass { border-radius: 14px; }
.map-compass span { color: var(--emerald); }
.map-scale span { border-color: #fff; }
.map-disclaimer { color: #9caea4; }
.map-disclaimer strong { color: var(--gold-light); }

.citizen-panel {
  color: var(--text-on-dark);
  background: linear-gradient(160deg, rgb(13 20 17 / 86%), rgb(3 7 5 / 74%));
  border-left-color: var(--glass-line);
  box-shadow: -24px 0 70px rgb(0 0 0 / 24%), inset 1px 0 rgb(255 255 255 / 4%);
  backdrop-filter: blur(30px) saturate(135%);
  -webkit-backdrop-filter: blur(30px) saturate(135%);
}
.panel-intro h2 { color: #fff; font-size: clamp(27px, 2.6vw, 35px); }
.panel-intro p,
.login-card p,
.admin-hero p { color: var(--muted-on-dark); }
.selection-card {
  background: linear-gradient(145deg, rgb(47 208 131 / 13%), rgb(255 255 255 / 4%));
  border-color: rgb(80 220 150 / 20%);
  border-radius: 16px;
  box-shadow: inset 0 1px rgb(255 255 255 / 7%);
}
.selection-icon { color: #07120d; background: linear-gradient(145deg, #75e7ad, #24b96e); border-radius: 13px; box-shadow: 0 10px 24px rgb(35 200 117 / 20%); }
.selection-card small { color: #79e2ae; }
.selection-card span { color: #9eaea5; }
.secondary-button {
  min-height: 44px;
  color: #dff8ea;
  background: rgb(255 255 255 / 6%);
  border-color: rgb(255 255 255 / 13%);
  border-radius: 13px;
  box-shadow: inset 0 1px rgb(255 255 255 / 7%);
}
.secondary-button:hover { background: rgb(255 255 255 / 10%); }
.claim-form label,
.admin-login label { color: #c4d2ca; }
.claim-form input,
.claim-form select,
.claim-form textarea,
body > main.panel input,
body > main.panel select,
body > main.panel textarea {
  min-height: 44px;
  color: #f4f8f5;
  background: rgb(255 255 255 / 6%);
  border-color: rgb(255 255 255 / 13%);
  border-radius: 12px;
  box-shadow: inset 0 1px rgb(255 255 255 / 4%);
}
.claim-form input::placeholder,
.claim-form textarea::placeholder,
.admin-login input::placeholder { color: #74847b; }
.claim-form input:focus,
.claim-form select:focus,
.claim-form textarea:focus,
.admin-login input:focus {
  border-color: rgb(69 218 144 / 70%);
  box-shadow: 0 0 0 4px rgb(47 208 131 / 12%), inset 0 1px rgb(255 255 255 / 6%);
}
select option { color: #101713; background: #f4f7f5; }
.primary-button,
body > main.panel button,
.panel button {
  min-height: 46px;
  color: #04100a;
  background: linear-gradient(135deg, #68e5a6, #20b96d);
  border-radius: 13px;
  box-shadow: inset 0 1px rgb(255 255 255 / 35%), 0 14px 30px rgb(26 190 106 / 20%);
  transition: transform .2s, filter .2s, box-shadow .2s;
}
.primary-button:hover,
body > main.panel button:hover { background: linear-gradient(135deg, #7aebb2, #2ac878); filter: brightness(1.04); transform: translateY(-1px); }
.trust-strip { color: #8ea096; border-color: var(--glass-line); }
.trust-strip a { color: #70dfa8; text-decoration: none; }
.legal-page { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 52px 0 70px; color: var(--text-on-dark); }
.legal-page > h1 { margin: 8px 0 26px; font-size: clamp(34px, 6vw, 58px); letter-spacing: -.05em; }
.legal-page .glass-card { line-height: 1.65; }
.legal-page h2 { margin: 28px 0 4px; color: #eff8f2; font-size: 19px; }
.legal-page h2:first-child { margin-top: 0; }
.legal-page p { color: var(--muted-on-dark); }

body > main.panel,
main > .panel { background: transparent; box-shadow: none; }
.dashboard-page,
.admin-page { max-width: 1280px; padding-top: 42px; }
.dashboard-hero p { color: var(--muted-on-dark); }
.snapshot-meta,
.glass-card,
.dashboard-card,
.quality-panel,
.secure-section {
  color: var(--text-on-dark);
  background: linear-gradient(145deg, rgb(20 29 25 / 74%), rgb(7 12 10 / 68%));
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px rgb(255 255 255 / 7%), 0 24px 60px rgb(0 0 0 / 22%);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.snapshot-meta { border-left: 1px solid var(--glass-line); border-radius: 16px; }
.snapshot-meta small,
.snapshot-meta span,
.dashboard-card small { color: var(--muted-on-dark); }
.dashboard-card {
  min-height: 152px;
  border-top: 1px solid var(--glass-line);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.dashboard-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 52%; height: 2px; background: linear-gradient(90deg, var(--emerald), transparent); }
.dashboard-card.tone-gold::before { background: linear-gradient(90deg, var(--gold-light), transparent); }
.dashboard-card.tone-warning { background: linear-gradient(145deg, rgb(66 42 14 / 56%), rgb(15 12 8 / 70%)); }
.dashboard-card.tone-warning::before { background: linear-gradient(90deg, #e79842, transparent); }
.metric-value { color: #f8fcf9; }
.quality-panel,
.secure-section { border-radius: 20px; }
.coverage-warning { background: linear-gradient(145deg, rgb(58 42 13 / 55%), rgb(14 13 9 / 72%)); border-color: rgb(238 195 86 / 18%); }
.quality-panel p { color: var(--muted-on-dark); }
.quality-badge.neutral { color: #b8c5be; background: rgb(255 255 255 / 7%); }
.quality-badge.success { color: #72e5aa; background: rgb(39 195 116 / 13%); }
.quality-badge.danger { color: #ff9e94; background: rgb(229 77 65 / 13%); }
.check-row { border-color: var(--glass-line); background: rgb(255 255 255 / 3%); border-radius: 14px; }
.check-row small { color: var(--muted-on-dark); }
.check-icon.pass { color: #72e5aa; background: rgb(39 195 116 / 13%); }
.text-link { color: #72e5aa; }

.admin-page { margin: 0 auto !important; padding-inline: 28px !important; }
.admin-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 26px; }
.admin-hero h1 { margin: 7px 0 10px; font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: -.055em; }
.admin-hero p { max-width: 660px; margin: 0; line-height: 1.55; }
.security-chip { display: flex; align-items: center; gap: 12px; min-width: 190px; padding: 13px 15px; border: 1px solid var(--glass-line); border-radius: 16px; background: rgb(255 255 255 / 5%); box-shadow: inset 0 1px rgb(255 255 255 / 7%); }
.security-chip > span { display: grid; place-items: center; width: 32px; height: 32px; color: #71e4aa; background: var(--emerald-soft); border-radius: 10px; }
.security-chip small,
.security-chip strong { display: block; }
.security-chip small { color: #7f9188; font-size: 9px; letter-spacing: .14em; }
.security-chip strong { margin-top: 3px; font-size: 12px; }
.admin-layout { display: grid; grid-template-columns: minmax(280px, .68fr) minmax(0, 1.55fr); gap: 20px; align-items: start; }
.glass-card { border-radius: 22px; padding: 24px; }
.login-card { position: sticky; top: 104px; }
.login-card h2,
.claims-board h2 { margin: 6px 0 10px; font-size: 22px; }
.login-card p { font-size: 13px; line-height: 1.5; }
.admin-login { margin-top: 20px; }
.admin-login label { display: block; font-size: 11px; font-weight: 700; }
.subtle-button { margin: 9px 0 0; }
.mini-trust { display: flex; gap: 8px; border-top: 1px solid var(--glass-line); margin-top: 16px; padding-top: 15px; }
.mini-trust span { flex: 1; color: #91a39a; font-size: 9px; text-align: center; }
.mini-trust span::before { content: "✓ "; color: #70dfa8; }
.claim-list { display: grid; gap: 12px; margin-top: 18px; }
.empty-state { min-height: 260px; display: grid; place-items: center; align-content: center; text-align: center; color: #9aaba2; border: 1px dashed rgb(255 255 255 / 13%); border-radius: 17px; background: rgb(255 255 255 / 2%); }
.empty-state > span { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; color: #68dfa3; font-size: 28px; background: var(--emerald-soft); border-radius: 15px; }
.empty-state strong { color: #eef6f1; }
.empty-state p { max-width: 330px; margin: 7px 20px 0; font-size: 12px; }
.admin-claim { padding: 18px; border: 1px solid var(--glass-line); border-radius: 16px; background: rgb(255 255 255 / 4%); box-shadow: inset 0 1px rgb(255 255 255 / 4%); }
.claim-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.claim-status { padding: 6px 9px; color: #77e2ab; background: var(--emerald-soft); border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.admin-claim pre { max-height: 180px; overflow: auto; padding: 13px; color: #bccbc3; background: rgb(0 0 0 / 24%); border: 1px solid rgb(255 255 255 / 6%); border-radius: 11px; font: 11px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.claim-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.claim-actions .claim-action { min-height: 36px; padding: 8px 12px; color: #d9e6df; background: rgb(255 255 255 / 7%); border: 1px solid var(--glass-line); border-radius: 10px; box-shadow: none; font-size: 11px; }
.claim-actions .claim-action.approve { color: #06120c; background: #55d997; border-color: transparent; }
.claim-actions .claim-action.reject { color: #ffaaa2; background: rgb(219 74 61 / 10%); border-color: rgb(238 102 91 / 18%); }
.queue-actions, .map-sync-tools, .dashboard-sync-bar { display: flex; align-items: center; gap: 9px; }
.queue-actions { flex-wrap: wrap; justify-content: flex-end; }
.map-sync-tools { flex: 1; justify-content: flex-end; }
.refresh-button { min-height: 36px; padding: 7px 11px; color: #b9d8c8; border: 1px solid rgb(255 255 255 / 12%); border-radius: 10px; background: rgb(255 255 255 / 6%); font-size: 10px; font-weight: 800; cursor: pointer; }
.refresh-button:hover { color: #06130c; border-color: transparent; background: #65dfa3; }
.refresh-button:disabled { opacity: .58; cursor: wait; }
.dashboard-sync-bar { justify-content: space-between; margin: 0 0 18px; padding: 11px 13px; color: #90a49a; border: 1px solid var(--glass-line); border-radius: 13px; background: rgb(255 255 255 / 4%); font-size: 10px; }
.audit-board { margin-top: 20px; }
.audit-intro { margin: -4px 0 18px; color: var(--muted-on-dark); font-size: 11px; }
.audit-list { display: grid; gap: 10px; }
.audit-event { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid var(--glass-line); border-radius: 14px; background: rgb(255 255 255 / 3%); }
.audit-marker { width: 10px; height: 10px; margin-top: 4px; border: 2px solid #0a1811; border-radius: 50%; background: #59dea0; box-shadow: 0 0 0 4px rgb(89 222 160 / 12%); }
.audit-topline { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.audit-topline strong { color: #dff2e8; font-size: 12px; }
.audit-topline time { color: #7f9389; font-size: 9px; }
.audit-event p { margin: 5px 0 8px; color: #93a69c; font-size: 10px; overflow-wrap: anywhere; }
.audit-event pre { max-height: 130px; overflow: auto; margin: 0; color: #b9c9c0; font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.audit-more { display: block; width: min(320px, 100%); margin: 16px auto 0; }
.decision-dialog { width: min(520px, calc(100% - 28px)); padding: 0; color: var(--text-on-dark); border: 1px solid rgb(255 255 255 / 16%); border-radius: 22px; background: linear-gradient(150deg, rgb(17 27 22 / 98%), rgb(5 10 8 / 98%)); box-shadow: 0 32px 100px rgb(0 0 0 / 65%), inset 0 1px rgb(255 255 255 / 8%); }
.decision-dialog::backdrop { background: rgb(0 0 0 / 68%); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.decision-dialog form { padding: 25px; }
.decision-dialog h2 { margin: 7px 0 8px; font-size: 25px; letter-spacing: -.035em; }
.decision-dialog p { margin: 0 0 19px; color: var(--muted-on-dark); font-size: 12px; line-height: 1.55; }
.decision-dialog label { color: #c4d2ca; font-size: 11px; font-weight: 700; }
.decision-dialog textarea { display: block; width: 100%; margin-top: 6px; padding: 11px; color: #f4f8f5; border: 1px solid rgb(255 255 255 / 13%); border-radius: 12px; outline: none; resize: vertical; background: rgb(255 255 255 / 6%); }
.decision-dialog textarea:focus { border-color: rgb(69 218 144 / 70%); box-shadow: 0 0 0 4px rgb(47 208 131 / 12%); }
.dialog-actions { display: grid; grid-template-columns: .75fr 1.25fr; gap: 8px; margin-top: 18px; }
.dialog-actions button { width: 100%; margin: 0; }

:focus-visible { outline: 3px solid rgb(80 225 151 / 58%); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; color: #06120c; border-radius: 10px; background: #72e9ae; font-size: 12px; font-weight: 800; transform: translateY(-160%); transition: transform .16s; }
.skip-link:focus { transform: translateY(0); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 62px; padding: 14px clamp(16px, 4vw, 42px); color: #788a80; border-top: 1px solid var(--glass-line); background: rgb(2 7 4 / 72%); font-size: 10px; }
.site-footer nav { display: flex; gap: 16px; }
.site-footer a { color: #9fdcbd; text-decoration: none; }
.site-footer a:hover { color: #72e9ae; text-decoration: underline; text-underline-offset: 3px; }
.install-app { min-height: 34px; padding: 6px 10px; color: #07120d; border: 0; border-radius: 9px; background: #72e9ae; font-size: 10px; font-weight: 800; cursor: pointer; }
.connectivity-status { position: fixed; z-index: 120; right: 14px; bottom: 14px; max-width: min(350px, calc(100vw - 28px)); display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 8px 11px; color: #d6e4dc; border: 1px solid var(--glass-line); border-radius: 12px; background: rgb(5 11 8 / 90%); box-shadow: 0 14px 34px rgb(0 0 0 / 34%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); font-size: 9px; transition: opacity .2s; }
.connectivity-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #e2b450; box-shadow: 0 0 0 4px rgb(226 180 80 / 12%); }
.connectivity-status[data-state="online"] .connectivity-dot { background: #42dd91; box-shadow: 0 0 0 4px rgb(66 221 145 / 12%); }
.connectivity-status[data-state="offline"] .connectivity-dot { background: #f08b80; box-shadow: 0 0 0 4px rgb(240 139 128 / 12%); }

/* Fournisseur Google optionnel : la carte souveraine reste le mode initial. */
.map-provider-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -4px 0 14px; }
.provider-switch { display: inline-flex; padding: 4px; border: 1px solid var(--glass-line); border-radius: 13px; background: rgb(255 255 255 / 5%); box-shadow: inset 0 1px rgb(255 255 255 / 6%); }
.provider-button { min-height: 34px; padding: 7px 12px; color: #91a39a; border: 0; border-radius: 9px; background: transparent; font-size: 10px; font-weight: 800; letter-spacing: .035em; cursor: pointer; }
.provider-button.active { color: #06130c; background: linear-gradient(135deg, #72e9ae, #28bd72); box-shadow: 0 8px 20px rgb(27 189 108 / 18%); }
.provider-button.needs-configuration:not(.active)::after { content: " · config"; color: var(--gold-light); }
.provider-button:disabled { opacity: .55; cursor: wait; }
.provider-status { color: #80928a; font-size: 10px; text-align: right; }
.google-places-host { min-width: min(390px, 42vw); }
.google-places-host gmp-place-autocomplete { width: 100%; color-scheme: light; }
.google-map { position: absolute; inset: 0; min-height: 535px; background: #0a100d; }
.google-controls { position: absolute; z-index: 5; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: flex-end; gap: 10px; padding: 10px; color: #dce9e2; border: 1px solid rgb(255 255 255 / 14%); border-radius: 16px; background: rgb(4 10 7 / 78%); box-shadow: 0 16px 38px rgb(0 0 0 / 32%), inset 0 1px rgb(255 255 255 / 8%); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); }
.google-controls label { display: grid; gap: 4px; min-width: 100px; color: #8fa199; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.google-controls select { min-height: 34px; padding: 6px 28px 6px 9px; color: #eef7f2; border: 1px solid rgb(255 255 255 / 13%); border-radius: 9px; background: rgb(255 255 255 / 8%); }
.google-control-actions { display: flex; flex: 1; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.google-control-actions button { min-height: 34px; padding: 7px 10px; color: #cfddd5; border: 1px solid rgb(255 255 255 / 13%); border-radius: 9px; background: rgb(255 255 255 / 7%); font-size: 9px; font-weight: 750; cursor: pointer; }
.google-control-actions button:hover,
.google-control-actions button.active { color: #07120d; border-color: transparent; background: #61dda0; }
.google-result { display: flex; gap: 10px; align-items: baseline; margin-top: 10px; padding: 11px 14px; color: #b7c8bf; border: 1px solid var(--glass-line); border-radius: 13px; background: rgb(255 255 255 / 4%); font-size: 11px; }
.google-result strong { flex: 0 0 auto; color: #70e1a8; }
.google-result[data-kind="warning"] strong { color: var(--gold-light); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header, .citizen-panel, .glass-card, .dashboard-card, .quality-panel, .secure-section { background: #0b120f; }
}

@media (max-width: 1000px) {
  .citizen-panel { border-top-color: var(--glass-line); }
  .admin-layout { grid-template-columns: 1fr; }
  .login-card { position: static; }
  .connectivity-status { right: 16px; bottom: 82px; }
}

@media (max-width: 700px) {
  .site-header, body > header { min-height: 68px; }
  .admin-page { padding: 28px 14px 48px !important; }
  .admin-hero { align-items: stretch; flex-direction: column; }
  .security-chip { width: 100%; }
  .glass-card { padding: 19px; border-radius: 18px; }
  .snapshot-meta { min-width: 0; }
  .map-provider-bar { align-items: stretch; flex-direction: column; }
  .map-sync-tools, .dashboard-sync-bar { align-items: stretch; flex-direction: column; }
  .map-sync-tools { justify-content: flex-start; }
  .map-sync-tools .provider-status { text-align: left; }
  .queue-actions { align-items: stretch; flex-direction: column; }
  .audit-topline { align-items: flex-start; flex-direction: column; gap: 4px; }
  .provider-switch { align-self: flex-start; }
  .provider-status { text-align: left; }
  .google-places-host { width: 100%; min-width: 0; }
  .google-controls { max-height: 168px; overflow: auto; align-items: stretch; flex-direction: column; }
  .google-control-actions { justify-content: flex-start; }
  .google-result { align-items: flex-start; flex-direction: column; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
