:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #66716b;
  --line: #d9dfdb;
  --surface: #ffffff;
  --canvas: #f2f4f2;
  --confirmed: #c53a2f;
  --probable: #e07824;
  --suspected: #d7a41a;
  --anomaly: #596c80;
  --inactive: #276a94;
  --false-positive: #34734b;
  --accent: #236b4d;
  --shadow: 0 8px 24px rgba(24, 38, 30, 0.12);
}

[hidden] {
  display: none !important;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
html, body { height: 100%; margin: 0; }
body {
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}
button { font: inherit; letter-spacing: 0; }
a { color: inherit; }

.topbar {
  height: 64px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1001;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-link, a.brand { color: inherit; text-decoration: none; }
.brand-mark {
  width: 18px;
  height: 18px;
  position: relative;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.brand-mark::after { content: ""; position: absolute; inset: 6px; background: var(--confirmed); }
.brand h1 { font-size: 17px; line-height: 1.1; margin: 0; font-weight: 700; }
.brand p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.site-shell-actions { justify-self: center; gap: 8px; }
.topbar-utilities { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.primary-navigation { display: flex; align-items: center; gap: 3px; padding: 3px; background: #eef1ef; border-radius: 6px; }
.primary-nav-link {
  min-height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px;
  color: #4e5a54; border-radius: 4px; text-decoration: none; font-size: 11px; font-weight: 680;
}
.primary-nav-link:hover { color: var(--ink); background: rgba(255,255,255,.7); }
.primary-nav-link[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 3px rgba(24,38,30,.12); }
.primary-nav-link svg { width: 15px; height: 15px; }
.content-navigation { display: flex; align-items: center; gap: 2px; padding-left: 8px; border-left: 1px solid var(--line); }
.content-nav-link {
  min-height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 9px;
  color: var(--muted); border-radius: 4px; text-decoration: none; font-size: 10px; font-weight: 680;
}
.content-nav-link:hover { color: var(--ink); background: var(--canvas); }
.content-nav-link[aria-current="page"] { color: var(--ink); background: #e8eeea; }
.content-nav-link svg { width: 15px; height: 15px; }
.section-navigation { min-height: 42px; display: flex; align-items: end; gap: 22px; padding: 0 max(18px, calc((100vw - 1380px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.section-navigation a { min-height: 42px; display: flex; align-items: center; position: relative; color: var(--muted); text-decoration: none; font-size: 10px; font-weight: 700; }
.section-navigation a:hover { color: var(--ink); }
.section-navigation a[aria-current="page"] { color: var(--ink); }
.section-navigation a[aria-current="page"]::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--accent); }
.site-footer {
  min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px max(18px, calc((100vw - 1380px) / 2)); color: var(--muted); background: var(--surface);
  border-top: 1px solid var(--line); font-size: 10px;
}
.site-footer-brand { font-weight: 700; }
.site-footer a { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.site-footer a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a > svg { width: 16px; height: 16px; color: var(--accent); }
.site-footer a span { display: grid; gap: 2px; }
.site-footer a strong { font-size: 10px; }
.site-footer a small { color: var(--muted); font-size: 9px; }
.site-footer-map { min-height: 0; margin-top: 8px; padding: 12px; align-items: flex-start; }
.site-footer-map .site-footer-brand { display: none; }
.language-switcher {
  display: inline-flex;
  position: relative;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}
.language-switcher svg { width: 14px; height: 14px; color: var(--muted); }
.language-switcher select {
  width: 80px;
  min-width: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.localized-copy { min-width: 0; }
.localized-copy-text { margin: 0; }
.translation-toggle {
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}
.translation-toggle:hover { color: var(--ink); }
.translation-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.nav-action {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 650;
}
.nav-action:hover { background: var(--canvas); }
.nav-action[aria-current="page"] { color: white; background: var(--ink); border-color: var(--ink); }
.nav-action svg { width: 16px; height: 16px; }
.mode-badge {
  padding: 4px 8px;
  color: #704611;
  background: #fff3d6;
  border: 1px solid #efd9a3;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 650;
}
.mode-badge.live { color: #14523a; background: #e5f4ec; border-color: #b9dec9; }
.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}
.icon-button:hover { background: var(--canvas); }
.icon-button:disabled { opacity: .5; cursor: wait; }
.icon-button svg { width: 17px; height: 17px; }
.icon-button.loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.workspace {
  height: calc(100% - 64px);
  display: grid;
  grid-template-columns: 320px minmax(360px, 1fr);
  overflow: hidden;
}
.workspace.detail-open { grid-template-columns: 320px minmax(360px, 1fr) 340px; }
.sidebar, .detail-panel { background: var(--surface); min-width: 0; overflow-y: auto; }
.sidebar { border-right: 1px solid var(--line); }
.detail-panel { display: none; border-left: 1px solid var(--line); }
.detail-panel.open { display: block; }

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.summary div { padding: 15px 12px; border-right: 1px solid var(--line); }
.summary div:last-child { border-right: 0; }
.summary strong { display: block; font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; }
.summary span { display: block; margin-top: 6px; font-size: 10px; color: var(--muted); }

.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 12px; border-bottom: 1px solid var(--line); }
.filter {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 6px;
  border-radius: 4px;
  white-space: normal;
  cursor: pointer;
  font-size: 10px;
  line-height: 1.2;
}
.filter.active { color: white; background: var(--ink); border-color: var(--ink); }
.event-section { padding: 14px 12px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.section-heading h2 { margin: 0; font-size: 13px; }
.section-heading time { color: var(--muted); font-size: 10px; }
.event-list { display: grid; gap: 7px; }
.event-card {
  width: 100%;
  display: grid;
  grid-template-columns: 5px 1fr auto;
  gap: 10px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 10px 11px 8px;
  cursor: pointer;
}
.event-card:hover, .event-card.active { border-color: #8f9b94; background: #fafbfa; }
.event-bar { width: 5px; border-radius: 2px; background: var(--anomaly); }
.event-card[data-status="confirmed_fire"] .event-bar { background: var(--confirmed); }
.event-card[data-status="probable_fire"] .event-bar { background: var(--probable); }
.event-card[data-status="suspected_fire"] .event-bar { background: var(--suspected); }
.event-card[data-status="contained_or_inactive"] .event-bar { background: var(--inactive); }
.event-card[data-status="false_positive_likely"] .event-bar { background: var(--false-positive); }
.event-card[data-status="confirmed_flood"] .event-bar { background: #176b87; }
.event-card[data-status="severe_flood_warning"] .event-bar { background: #248ba5; }
.event-card[data-status="flood_warning"] .event-bar { background: #58a9b7; }
.event-card[data-status="critical_gauge"] .event-bar { background: #9b4d20; }
.event-card[data-status="elevated_gauge"] .event-bar { background: #315f87; }
.event-card[data-status="extreme_rain_warning"] .event-bar { background: #8750a1; }
.event-card[data-status="severe_rain_warning"] .event-bar { background: #6b78b7; }
.event-card[data-status="heavy_rain_warning"] .event-bar { background: #6798c0; }
.event-card[data-status="minor_earthquake"] .event-bar { background: #6b7280; }
.event-card[data-status="light_earthquake"] .event-bar { background: #4f78a8; }
.event-card[data-status="moderate_earthquake"] .event-bar { background: #c28a24; }
.event-card[data-status="strong_earthquake"] .event-bar { background: #d15b32; }
.event-card[data-status="major_earthquake"] .event-bar { background: #b4232f; }
.event-card[data-lifecycle="contained"] .event-bar { background: var(--inactive); }
.event-card[data-lifecycle="extinguished"] .event-bar { background: var(--anomaly); }
.event-title { display: block; font-weight: 650; font-size: 12px; margin-bottom: 4px; overflow-wrap: anywhere; }
.event-meta { display: block; color: var(--muted); font-size: 10px; line-height: 1.45; }
.event-score { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }

.map-region { position: relative; min-width: 0; }
#map { position: absolute; inset: 0; background: #dfe5e0; }
.gauge-map-marker { background: transparent; border: 0; }
.gauge-map-marker span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #315f87;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(20, 42, 58, .38);
}
.gauge-map-marker span { position: relative; }
.gauge-map-marker .gauge-map-wave { width: 17px; height: 17px; stroke-width: 2.2; }
.gauge-map-marker .gauge-map-trend {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 13px;
  height: 13px;
  padding: 2px;
  color: #315f87;
  background: #fff;
  border: 1px solid currentColor;
  border-radius: 50%;
  stroke-width: 3;
}
.gauge-map-marker span.rising { color: white; background: #9b4d20; }
.gauge-map-marker span.falling { color: white; background: #34734b; }
.gauge-map-marker span.rising .gauge-map-trend { color: #9b4d20; }
.gauge-map-marker span.falling .gauge-map-trend { color: #34734b; }
.legend {
  position: absolute;
  z-index: 500;
  left: 12px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 13px;
  max-width: calc(100% - 24px);
  padding: 8px 10px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: var(--shadow);
  font-size: 10px;
}
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--anomaly); }
.dot.confirmed { background: var(--confirmed); }
.dot.probable { background: var(--probable); }
.dot.suspected { background: var(--suspected); }
.dot.inactive { background: var(--inactive); }
.dot.false-positive { background: var(--false-positive); }
.leaflet-container { font-family: inherit; }
.leaflet-control-layers { border: 1px solid var(--line); border-radius: 5px; box-shadow: var(--shadow); }
.leaflet-control-layers-expanded { padding: 8px 10px; font-size: 11px; }
.fire-marker { border: 2px solid white; border-radius: 50%; box-shadow: 0 1px 7px rgba(0,0,0,.35); }
.wildfire-marker-shell.leaflet-div-icon {
  background: transparent;
  border: 0;
}
.hazard-picto-shell.leaflet-div-icon { background: transparent; border: 0; }
.hazard-marker-picto {
  display: grid; width: 100%; height: 100%; place-items: center; color: var(--marker-color);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.65)) drop-shadow(0 2px 5px rgba(0,0,0,.25));
  transition: transform 120ms ease, filter 120ms ease;
}
.hazard-marker-picto svg { width: 100%; height: 100%; fill: currentColor; stroke: #fff; stroke-width: 1.8; }
.hazard-marker-picto--flood svg {
  width: 68%;
  height: 68%;
  fill: none;
  stroke: #fff;
  stroke-width: 2.8;
}
.hazard-marker-picto--flood {
  color: #fff;
  background: var(--marker-color);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--marker-color) 42%, transparent);
}
.flood-cluster-marker { position: relative; overflow: visible; }
.flood-cluster-marker b {
  position: absolute;
  top: -7px;
  right: -8px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 9px;
  background: #17211c;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.hazard-marker-picto--earthquake {
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--marker-color);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--marker-color) 45%, transparent);
}
.hazard-marker-picto--earthquake svg { width: 72%; height: 72%; fill: none; stroke: #fff; stroke-width: 2.8; }
.hazard-picto-shell:hover .hazard-marker-picto, .hazard-picto-shell:focus .hazard-marker-picto { transform: scale(1.12); }
.wildfire-marker-picto {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--marker-color);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.7)) drop-shadow(0 2px 5px rgba(0,0,0,.28));
  transform-origin: 50% 100%;
  transition: transform 120ms ease, filter 120ms ease;
}
.wildfire-marker-picto svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: #fff;
  stroke-width: 1.8;
}
.wildfire-marker-shell:hover .wildfire-marker-picto,
.wildfire-marker-shell:focus .wildfire-marker-picto {
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.75)) drop-shadow(0 3px 7px rgba(0,0,0,.38));
  transform: scale(1.12);
}

.detail-panel { position: relative; padding: 18px; }
.detail-close { position: absolute; top: 12px; right: 12px; }
.detail-empty { min-height: 70%; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); }
.detail-empty svg { width: 28px; height: 28px; color: #8a9690; }
.detail-empty p { max-width: 210px; font-size: 12px; line-height: 1.5; }
.detail-kicker { color: var(--muted); text-transform: uppercase; font-size: 10px; font-weight: 700; }
.detail-panel h2 { margin: 7px 0 4px; font-size: 19px; }
.detail-subtitle { margin: 0 0 16px; color: var(--muted); font-size: 11px; }
.detail-actions { display: flex; gap: 6px; margin: -5px 0 14px; }
.detail-action { min-height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font-size: 9px; font-weight: 700; }
.detail-action:hover { background: var(--canvas); }
.detail-action svg { width: 14px; height: 14px; color: #4b3f75; }
.ai-detail-result p { margin: 0; color: #38433d; font-size: 10px; line-height: 1.5; }
.ai-detail-result ul { margin: 9px 0 0; padding-left: 17px; font-size: 9px; line-height: 1.5; }
.ai-detail-result a { color: var(--accent); }
.score-row { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-block: 1px solid var(--line); }
.score-value { font-size: 29px; font-weight: 750; font-variant-numeric: tabular-nums; }
.score-value span { font-size: 11px; color: var(--muted); }
.score-track { height: 7px; overflow: hidden; background: #e7ebe8; border-radius: 3px; }
.score-fill { height: 100%; background: var(--probable); }
.detail-section { padding: 15px 0; border-bottom: 1px solid var(--line); }
.detail-section h3 { margin: 0 0 9px; font-size: 12px; }
.model-note { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.ledger-table { width: 100%; border-collapse: collapse; font-size: 9px; font-variant-numeric: tabular-nums; }
.ledger-table th { padding: 5px 4px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: right; font-weight: 600; }
.ledger-table th:first-child { text-align: left; }
.ledger-table td { padding: 7px 4px; border-bottom: 1px solid #edf0ee; text-align: right; vertical-align: top; }
.ledger-table td:first-child { max-width: 145px; text-align: left; overflow-wrap: anywhere; }
.ledger-source { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.ledger-link { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.ledger-details { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.history-summary { display: flex; justify-content: space-between; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.history-chart { display: block; width: 100%; aspect-ratio: 300 / 112; background: #fafbfa; border: 1px solid var(--line); }
.history-grid { stroke: #e2e7e3; stroke-width: 1; }
.history-grid.threshold { stroke-dasharray: 3 3; }
.history-axis { stroke: #aab4ae; stroke-width: 1; }
.history-line { fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.gauge-history-line { stroke: #315f87; }
.history-label { fill: var(--muted); font: 8px Inter, ui-sans-serif, system-ui, sans-serif; }
.history-label-end { text-anchor: end; }
.history-empty { min-height: 72px; display: grid; place-content: center; padding: 10px; color: var(--muted); background: #fafbfa; border: 1px solid var(--line); text-align: center; font-size: 10px; line-height: 1.45; }
.detail-loading { min-height: 60%; display: grid; place-content: center; color: var(--muted); font-size: 11px; }
.evidence { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.evidence li { position: relative; padding-left: 14px; color: #38433d; font-size: 11px; line-height: 1.45; }
.evidence li::before { content: ""; position: absolute; left: 0; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.source-list { display: flex; flex-wrap: wrap; gap: 5px; }
.source-tag { padding: 4px 6px; border: 1px solid var(--line); border-radius: 3px; font-size: 9px; color: var(--muted); }
.demo-notice { margin-top: 14px; padding: 10px; color: #704611; background: #fff6df; border-left: 3px solid #d7a41a; font-size: 10px; line-height: 1.5; }
.empty-list { padding: 20px 8px; text-align: center; color: var(--muted); font-size: 11px; }
.aircraft-type-marker { width: 32px !important; height: 32px !important; background: transparent; border: 0; }
.aircraft-type-symbol {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--aircraft-color);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(23, 33, 28, .28);
}
.aircraft-type-symbol.candidate { border-radius: 6px; outline: 2px dashed var(--aircraft-color); outline-offset: 2px; }
.aircraft-type-symbol svg { width: 18px; height: 18px; stroke-width: 2.4; }
.aircraft-type-symbol.signal svg[data-lucide="plane"],
.aircraft-type-symbol.candidate svg[data-lucide="plane"] { transform: rotate(var(--aircraft-heading)); }

@media (max-width: 1050px) {
  .workspace, .workspace.detail-open { grid-template-columns: 280px minmax(360px, 1fr); }
  .detail-panel { display: block; position: fixed; z-index: 1002; right: 0; top: 64px; bottom: 0; width: min(360px, 92vw); box-shadow: var(--shadow); transform: translateX(105%); transition: transform .2s ease; }
  .detail-panel.open { transform: translateX(0); }
}
@media (max-width: 700px) {
  .topbar { height: 58px; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px; padding: 0 12px; }
  .brand p { display: none; }
  .brand h1 { font-size: 14px; }
  .topbar-actions { gap: 4px; }
  .site-shell-actions { justify-self: end; }
  .topbar-utilities { gap: 4px; }
  .primary-navigation { position: fixed; z-index: 1000; right: 0; bottom: 0; left: 0; height: 58px; justify-content: space-around; gap: 0; padding: 5px 8px; border-top: 1px solid var(--line); border-radius: 0; background: rgba(255,255,255,.97); box-shadow: 0 -5px 18px rgba(24,38,30,.08); }
  .primary-nav-link { min-width: 62px; min-height: 46px; flex-direction: column; justify-content: center; gap: 3px; padding: 0 6px; font-size: 9px; }
  .primary-nav-link[aria-current="page"] { color: var(--accent); background: #edf5f1; box-shadow: none; }
  .primary-nav-link svg { width: 18px; height: 18px; }
  .content-navigation { gap: 0; padding-left: 4px; }
  .content-nav-link { width: 32px; min-height: 32px; justify-content: center; padding: 0; }
  .content-nav-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .section-navigation { min-height: 40px; gap: 18px; padding: 0 14px; overflow-x: auto; }
  .section-navigation a { min-height: 40px; flex: 0 0 auto; }
  .site-footer { align-items: flex-start; padding: 12px 14px; }
  .site-footer a small { display: none; }
  body { padding-bottom: 58px; }
  .language-switcher { width: 42px; padding: 0; justify-content: center; }
  .language-switcher select { position: absolute; width: 42px; height: 32px; opacity: 0; }
  .nav-action span { display: none; }
  .nav-action { width: 32px; min-height: 32px; padding: 0; justify-content: center; }
  .mode-badge { display: none; }
  .icon-button { width: 32px; height: 32px; }
  .workspace { height: calc(100% - 116px); display: block; position: relative; }
  .sidebar { position: absolute; z-index: 700; left: 8px; right: 8px; bottom: 8px; max-height: 42%; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
  .summary { display: none; }
  .filters { padding: 8px; }
  .event-section { padding: 8px; }
  .event-list { display: flex; overflow-x: auto; }
  .event-card { min-width: 250px; }
  .map-region { height: 100%; }
  .legend { top: 10px; right: 8px; bottom: auto; left: 52px; max-width: none; }
  .leaflet-bottom { bottom: calc(42% + 12px); }
  .leaflet-control-attribution { max-width: calc(100vw - 16px); font-size: 8px; line-height: 1.3; }
  .detail-panel { top: 58px; }
}
.hazard-selector { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); }
.hazard-selector span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.hazard-selector select { width: 100%; min-width: 0; height: 34px; padding: 0 9px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 11px; }
