:root {
  --bg: #f3f5f6;
  --panel: #ffffff;
  --text: #15191e;
  --muted: #68727d;
  --line: #dce2e7;
  --live: #c61d24;
  --fresh: #e86722;
  --recent: #d89a12;
  --older: #697684;
  --wind: #195f8f;
  --shadow: 0 8px 28px rgba(24, 31, 39, .10);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; padding: 22px 28px 18px; background: #11151a; color: #fff; }
.eyebrow { font-size: 11px; letter-spacing: .13em; font-weight: 800; color: #ffb4b4; }
h1 { margin: 4px 0 4px; font-size: clamp(28px, 4vw, 46px); line-height: 1; }
.topbar p { margin: 0; color: #c8ced5; }
.top-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 210px; }
.button { border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 750; cursor: pointer; background: #fff; color: #11151a; }
.button:hover { transform: translateY(-1px); }
.updated { color: #aeb7c1; font-size: 12px; text-align: right; }
.notice { padding: 10px 28px; font-size: 13px; background: #fff3cd; border-bottom: 1px solid #efd985; line-height: 1.4; }
.layout { display: grid; grid-template-columns: 265px minmax(0, 1fr); gap: 16px; padding: 16px 18px 0; }
.sidebar { display: flex; flex-direction: column; gap: 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 2px 8px rgba(24,31,39,.04); }
.panel h2 { font-size: 14px; margin: 0 0 10px; }
.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel-title-row h2 { margin-bottom: 8px; }
.panel-hint { margin: -2px 0 10px; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.check { display: block; font-size: 14px; margin: 8px 0; }
.check input { margin-right: 7px; }
.wind-toggle { padding-top: 8px; margin-top: 10px; border-top: 1px solid var(--line); font-weight: 400; }
.weather-badge { border: 1px solid #b8c9d5; color: #3d6178; border-radius: 999px; padding: 2px 6px; font-size: 10px; font-weight: 800; }
.wind-status { font-size: 12px; line-height: 1.4; }
.wind-status span { color: var(--muted); }
.wind-updated { color: var(--muted); font-size: 10.5px; margin: 5px 0 10px; }
.legend > div { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 8px 0; }
.dot { width: 13px; height: 13px; border-radius: 50%; display: inline-block; border: 2px solid white; box-shadow: 0 0 0 1px rgba(0,0,0,.18); flex: 0 0 auto; }
.dot.live { background: var(--live); animation: pulse 1.4s infinite; }
.dot.fresh { background: var(--fresh); }
.dot.recent { background: var(--recent); }
.dot.older { background: var(--older); }
.legend-wind { display: inline-flex; width: 34px; align-items: center; gap: 1px; color: var(--wind); font-weight: 800; font-size: 16px; }
.legend-wind b { font-size: 10px; }
.source-panel p { margin: 8px 0; color: #49515b; font-size: 12px; line-height: 1.4; }
.source-mode { margin-top: 10px; font-size: 12px; color: var(--muted); }
.map-wrap { position: relative; min-height: 680px; background: #d9dde2; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
#map { width: 100%; height: 100%; min-height: 680px; }
.map-overlay { position: absolute; z-index: 800; left: 14px; bottom: 14px; background: rgba(17,21,26,.88); color: #fff; padding: 8px 10px; border-radius: 9px; font-size: 12px; display: flex; gap: 7px; pointer-events: none; }
.map-tools { position: absolute; z-index: 800; left: 12px; top: 12px; }
.map-tools button { background: #fff; border: 1px solid #cbd2d8; border-radius: 8px; padding: 7px 10px; font-weight: 700; color: #26323d; box-shadow: 0 2px 8px rgba(0,0,0,.12); cursor: pointer; }
.map-error { position: absolute; z-index: 1000; inset: 18px 18px auto 18px; background: #fff; border: 1px solid #e1a7a7; border-radius: 12px; padding: 12px; color: #8c1c1c; }
.hidden { display: none; }
.fire-marker { width: 30px; height: 30px; border-radius: 50% 50% 50% 10%; transform: rotate(-45deg); display: grid; place-items: center; border: 2px solid white; box-shadow: 0 3px 10px rgba(0,0,0,.32); }
.fire-marker > span { transform: rotate(45deg); font-size: 15px; }
.fire-marker.live { animation: markerPulse 1.25s infinite; }
.fire-marker.moderate { width: 34px; height: 34px; }
.fire-marker.major { width: 39px; height: 39px; border-width: 3px; }
.leaflet-tooltip.fire-tip, .leaflet-tooltip.wind-tip { padding: 8px 10px; border: 0; border-radius: 9px; box-shadow: var(--shadow); line-height: 1.35; }
.leaflet-tooltip.wind-tip { color: #173b54; }
.tip-note { color: var(--muted); font-size: 10px; }
.wind-marker { display: flex; align-items: center; justify-content: center; gap: 2px; width: 68px; height: 44px; color: var(--wind); text-shadow: 0 1px 2px rgba(255,255,255,.95); filter: drop-shadow(0 1px 1px rgba(255,255,255,.9)); }
.wind-arrow { display: inline-block; font-size: 25px; line-height: 1; transform-origin: center; scale: var(--wind-scale); font-weight: 900; }
.wind-speed { font-size: 13px; font-weight: 900; background: rgba(255,255,255,.82); border-radius: 5px; padding: 1px 3px; }
.wind-unit { font-size: 8px; font-weight: 800; align-self: flex-end; margin-bottom: 8px; }
.popup h3 { margin: 0 0 7px; font-size: 16px; }
.popup-grid { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; font-size: 12px; margin-bottom: 10px; }
.popup-grid .label { color: var(--muted); }
.badge { display: inline-block; padding: 3px 7px; border-radius: 999px; font-weight: 800; font-size: 11px; }
.badge.live { background: #fde7e8; color: #a30f16; }
.badge.closed { background: #edf0f3; color: #44505c; }
.popup-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.popup-actions a, .popup-actions button { appearance: none; border: 1px solid #ccd2d8; background: white; color: #1d2935; text-decoration: none; padding: 6px 8px; border-radius: 7px; font: inherit; cursor: pointer; }
.incident-photo { margin: -2px -2px 10px; }
.incident-photo img { display: block; width: 100%; max-height: 190px; object-fit: cover; border-radius: 10px; background: #eceff2; }
.incident-photo figcaption { margin-top: 5px; color: var(--muted); font-size: 9.5px; line-height: 1.25; }
.operational-note { margin: 8px 0 10px; padding: 7px 9px; border-radius: 8px; background: #f4f6f8; font-size: 11.5px; line-height: 1.35; }
.wind-callout { display: flex; align-items: center; gap: 10px; margin: 9px 0 11px; padding: 9px 10px; border: 1px solid #c7dbe8; border-radius: 9px; background: #f2f8fb; color: #183e57; font-size: 11.5px; line-height: 1.35; }
.popup-wind-arrow { display: inline-block; flex: 0 0 auto; font-size: 30px; line-height: 1; color: var(--wind); }
.wind-callout small { color: #5f788a; }
.wind-explainer { margin: 14px 18px 0; border: 1px solid #c7dbe8; border-radius: 12px; background: #f3f9fc; padding: 10px 13px; color: #24485e; font-size: 12px; line-height: 1.45; }
.list-section { padding: 18px; }
.list-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.list-heading h2 { font-size: 18px; margin-bottom: 4px; }
#windowNote { color: var(--muted); font-size: 12px; }
#totalCount { color: var(--muted); font-size: 12px; }
.incident-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 14px; }
.incident-card { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 14px; cursor: pointer; }
.incident-card:hover { box-shadow: 0 5px 18px rgba(24,31,39,.09); }
.incident-card h3 { margin: 6px 0; font-size: 15px; }
.incident-card p { margin: 3px 0; font-size: 12.5px; color: #515b66; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.age-label { color: var(--muted); font-size: 11px; }
.approx { font-style: italic; }
.card-wind { margin-top: 8px !important; padding-top: 7px; border-top: 1px solid #e1ebf0; color: #1d587f !important; }
.footer { padding: 0 18px 22px; color: var(--muted); font-size: 10.5px; line-height: 1.4; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 0 0 0 rgba(198,29,36,.45); } 50% { box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 0 0 7px rgba(198,29,36,0); } }
@keyframes markerPulse { 0%,100% { box-shadow: 0 3px 10px rgba(0,0,0,.32), 0 0 0 0 rgba(198,29,36,.45); } 50% { box-shadow: 0 3px 10px rgba(0,0,0,.32), 0 0 0 13px rgba(198,29,36,0); } }
@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; padding: 18px; }
  .top-actions { align-items: flex-start; }
  .notice { padding: 10px 18px; }
  .layout { display: flex; flex-direction: column; padding: 10px; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .wind-panel, .source-panel { grid-column: 1 / -1; }
  .map-wrap, #map { min-height: 64vh; }
  .map-overlay { right: 10px; left: 10px; flex-wrap: wrap; }
  .wind-explainer { margin: 10px; }
  .list-section { padding: 12px; }
  .list-heading { flex-direction: column; }
}

/* v0.4 interface additions */
.brand-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.version-badge { display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.10); color: #fff; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 850; letter-spacing: .04em; }

/* Make the weather layer visually obvious against a busy road map. */
.wind-marker { display: flex; align-items: center; justify-content: center; gap: 6px; width: 96px; height: 60px; color: #124d75; text-shadow: none; filter: none; background: rgba(255,255,255,.92); border: 2px solid rgba(25,95,143,.72); border-radius: 15px; box-shadow: 0 3px 12px rgba(24,31,39,.24); }
.wind-arrow-disc { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 50%; background: #e9f5fb; border: 2px solid #195f8f; }
.wind-arrow { display: inline-block; font-size: 33px; line-height: 1; transform-origin: center; scale: var(--wind-scale); font-weight: 950; color: #0f507c; }
.wind-reading { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; min-width: 35px; }
.wind-speed { font-size: 18px; font-weight: 950; color: #0d3652; background: transparent; border-radius: 0; padding: 0; }
.wind-unit { font-size: 10px; font-weight: 850; margin-top: 3px; color: #315b76; align-self: auto; margin-bottom: 0; }
.legend-wind { width: 44px; font-size: 21px; }
.legend-wind b { font-size: 12px; }

/* Incident details are a bounded floating window instead of an unbounded Leaflet popup. */
.incident-panel { position: absolute; z-index: 1200; display: flex; flex-direction: column; width: 460px; height: 620px; min-width: 300px; min-height: 220px; max-width: calc(100% - 20px); max-height: calc(100% - 20px); overflow: hidden; background: #fff; border: 1px solid #aeb8c1; border-radius: 14px; box-shadow: 0 14px 44px rgba(15,23,31,.28); }
.incident-panel.hidden { display: none; }
.incident-panel-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 10px 10px 14px; background: #11151a; color: #fff; border-bottom: 1px solid #303943; cursor: move; user-select: none; touch-action: none; }
.incident-panel-header > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.incident-panel-header strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.incident-panel-kicker { color: #aeb7c1; font-size: 9px; font-weight: 850; letter-spacing: .11em; }
.incident-panel-close { flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.34); border-radius: 9px; background: rgba(255,255,255,.10); color: #fff; font: 700 28px/30px Arial, sans-serif; cursor: pointer; }
.incident-panel-close:hover { background: rgba(255,255,255,.22); }
.incident-panel-content { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 14px; }
.incident-panel-content .popup h3 { padding-right: 4px; }
.incident-panel-content .incident-photo img { max-height: 245px; }

.resize-handle { position: absolute; z-index: 4; touch-action: none; }
.resize-n, .resize-s { left: 14px; right: 14px; height: 9px; }
.resize-e, .resize-w { top: 14px; bottom: 14px; width: 9px; }
.resize-n { top: 0; cursor: n-resize; }
.resize-s { bottom: 0; cursor: s-resize; }
.resize-e { right: 0; cursor: e-resize; }
.resize-w { left: 0; cursor: w-resize; }
.resize-ne, .resize-se, .resize-sw, .resize-nw { width: 16px; height: 16px; }
.resize-ne { top: 0; right: 0; cursor: ne-resize; }
.resize-se { right: 0; bottom: 0; cursor: se-resize; }
.resize-sw { left: 0; bottom: 0; cursor: sw-resize; }
.resize-nw { left: 0; top: 0; cursor: nw-resize; }

@media (max-width: 760px) {
  .incident-panel { min-width: 0; min-height: 180px; border-radius: 12px; }
  .incident-panel-header { cursor: default; }
  .incident-panel-content { padding: 11px; }
  .wind-marker { width: 88px; height: 56px; gap: 5px; }
  .wind-arrow-disc { width: 38px; height: 38px; flex-basis: 38px; }
  .wind-arrow { font-size: 29px; }
  .wind-speed { font-size: 16px; }
}

/* Fire category pictograms inside fire markers. */
.fire-marker > .fire-type-icon {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  color: #fff;
  font-size: 0;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.28));
}
.fire-marker > .fire-type-icon svg { width: 18px; height: 18px; display: block; }
.fire-marker.moderate > .fire-type-icon svg { width: 20px; height: 20px; }
.fire-marker.major > .fire-type-icon svg { width: 22px; height: 22px; }

/* The speed stays upright in a compact circle; a solid downwind arrow is joined behind it. */
.wind-marker {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  color: #124d75;
}
.wind-speed-disc {
  position: relative;
  z-index: 2;
  width: 39px;
  height: 39px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  border: 2px solid rgba(18,77,117,.82);
  box-shadow: 0 2px 7px rgba(19,42,58,.18);
  line-height: .92;
}
.wind-speed { font-size: 15px; font-weight: 950; color: #123f5e; background: transparent; padding: 0; }
.wind-unit { font-size: 7px; font-weight: 900; color: #315b76; margin: 2px 0 0; align-self: auto; }
.wind-vector {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--wind-dir));
  transform-origin: 0 0;
}
.wind-vector::before {
  content: '';
  position: absolute;
  left: -2.5px;
  top: -34px;
  width: 5px;
  height: 35px;
  border-radius: 4px;
  background: #155d8a;
  box-shadow: 0 1px 2px rgba(255,255,255,.9);
}
.wind-vector::after {
  content: '';
  position: absolute;
  left: -8px;
  top: -43px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 13px solid #155d8a;
}
.legend-wind-v5 { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; margin-right: 2px; vertical-align: middle; }
.legend-wind-v5 .wind-speed-disc { width: 28px; height: 28px; border-width: 1.5px; }
.legend-wind-v5 .wind-speed { font-size: 11px; }
.legend-wind-v5 .wind-unit { font-size: 5px; }
.legend-wind-v5 .wind-vector::before { top: -27px; height: 28px; width: 4px; left: -2px; }
.legend-wind-v5 .wind-vector::after { top: -33px; left: -6px; border-left-width: 6px; border-right-width: 6px; border-bottom-width: 10px; }

.fire-type-key { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: 8px; }
.fire-type-key > div { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; }
.type-key-icon { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); background: #6c7785; color: #fff; border: 1.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.24); }
.type-key-icon > span { transform: rotate(45deg); display: grid; place-items: center; }
.type-key-icon svg { width: 15px; height: 15px; display: block; }
.type-key-label { font-size: 12px; color: #34414d; line-height: 1.25; font-weight: 650; }

@media (max-width: 760px) {
  .wind-marker { width: 68px; height: 68px; }
  .wind-speed-disc { width: 36px; height: 36px; }
  .wind-speed { font-size: 14px; }
  .wind-vector::before { top: -31px; height: 32px; }
  .wind-vector::after { top: -39px; }
}
.key-subheading { margin: 12px 0 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }


/* v0.6: clearer category list and collision-aware map layers. */
.fire-type-key > div + div { padding-top: 2px; }
.leaflet-pane.leaflet-fireConnectorPane-pane { pointer-events: none; }

/* v0.7: reliability/status UI and a strict non-colliding vertical fire-type key. */
.status-strip {
  display: grid;
  grid-template-columns: 150px 130px 150px minmax(310px, 1fr);
  gap: 10px;
  padding: 12px 18px 0;
}
.status-metric,
.source-check-card {
  min-height: 62px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.status-metric { display: flex; flex-direction: column; justify-content: center; }
.status-metric span { color: var(--muted); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.status-metric strong { margin-top: 2px; font-size: 22px; line-height: 1; }
.status-metric small { margin-top: 3px; color: var(--muted); font-size: 9.5px; }
.source-check-card { display: flex; align-items: center; gap: 10px; }
.source-check-card > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.source-check-card strong { font-size: 12.5px; }
.source-check-card span:not(.source-check-dot) { color: var(--muted); font-size: 10.5px; line-height: 1.3; }
.source-check-dot { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; background: #8a96a2; box-shadow: 0 0 0 4px rgba(138,150,162,.12); }
.source-check-card.checking .source-check-dot { background: #d89a12; animation: pulseStatus 1.2s infinite; }
.source-check-card.live .source-check-dot { background: #23834a; box-shadow: 0 0 0 4px rgba(35,131,74,.12); }
.source-check-card.degraded .source-check-dot { background: #d66c18; box-shadow: 0 0 0 4px rgba(214,108,24,.13); }
.source-check-card.unavailable .source-check-dot { background: #b3212b; box-shadow: 0 0 0 4px rgba(179,33,43,.12); }
@keyframes pulseStatus { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* Important: v0.6's generic .legend > div rule was more specific than .fire-type-key.
   v0.7 uses explicit row classes so the category list can never collapse horizontally. */
.legend > .legend-row { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 8px 0; }
.legend > .fire-type-key {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  margin: 7px 0 12px;
}
.legend > .fire-type-key > .fire-type-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 2px 0;
  font-size: 12px;
}
.legend > .fire-type-key > .fire-type-row + .fire-type-row { padding-top: 2px; }
.legend .type-key-label { min-width: 0; white-space: normal; overflow-wrap: normal; word-break: normal; }
.legend-wind-row { min-height: 44px; }

.trust-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 7px 0 9px; }
.trust-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 7px; font-size: 9.5px; font-weight: 900; letter-spacing: .04em; }
.trust-badge.official { background: #e7f4eb; color: #176a38; border: 1px solid #b8dfc4; }
.trust-source { color: #4e5c68; font-size: 10.5px; font-weight: 700; }
.card-trust { margin-top: 7px; }
.coverage-note { margin-top: 8px; padding: 7px 8px; border-radius: 8px; background: #f4f6f8; color: #596570; font-size: 10.5px; line-height: 1.35; }

@media (max-width: 980px) {
  .status-strip { grid-template-columns: repeat(3, 1fr); }
  .source-check-card { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .status-strip { grid-template-columns: 1fr 1fr; padding: 10px 10px 0; }
  .status-metric:nth-child(3) { grid-column: 1 / -1; }
  .source-check-card { grid-column: 1 / -1; }
}
.retained-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 7px; font-size: 9px; font-weight: 900; letter-spacing: .04em; background: #eef1f4; color: #56616c; border: 1px solid #d5dbe0; }

/* v0.7.1: related news & media. Keep third-party reporting visually separate from official ECFRS facts. */
.related-news-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid #dfe5ea;
}
.related-news-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.related-news-heading h3 { margin: 2px 0 0; font-size: 15px; }
.section-kicker { display: block; color: #68727d; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.related-count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef1f4;
  color: #45515d;
  font-size: 11px;
  font-weight: 900;
}
.related-news-warning {
  margin: 0 0 10px;
  padding: 8px 9px;
  border: 1px solid #e3d5aa;
  border-radius: 8px;
  background: #fff9e8;
  color: #5a4a20;
  font-size: 10.5px;
  line-height: 1.4;
}
.related-news-card {
  overflow: hidden;
  margin: 9px 0;
  border: 1px solid #d9e0e6;
  border-radius: 10px;
  background: #fff;
}
.news-preview-image { display: block; border-bottom: 1px solid #e1e6ea; background: #eef1f4; }
.news-preview-image img { display: block; width: 100%; max-height: 180px; object-fit: cover; }
.related-news-body { padding: 10px; }
.related-news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.third-party-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 6px;
  background: #eef1f4;
  border: 1px solid #d7dde2;
  color: #4c5965;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .04em;
}
.news-publisher { color: #293643; font-size: 10px; font-weight: 850; }
.news-confidence { color: #6e7882; font-size: 8.5px; font-weight: 800; margin-left: auto; }
.related-news-card h4 { margin: 0 0 5px; font-size: 13px; line-height: 1.28; }
.related-news-card p { margin: 0 0 8px; color: #505c67; font-size: 10.8px; line-height: 1.42; }
.news-read-link { color: #155d8a; font-size: 10.5px; font-weight: 850; text-decoration: none; }
.news-read-link:hover { text-decoration: underline; }
.related-news-rights { margin: 7px 0 0; color: #7a848e; font-size: 9px; line-height: 1.35; }
.official-actions { margin-top: 9px; }
.card-related-news {
  display: inline-flex;
  align-items: center;
  margin: 0 0 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef4f8;
  color: #315a75;
  font-size: 9.5px;
  font-weight: 800;
}

/* v0.7.2 — consistent official update and related-news presentation. */
.official-update-section {
  margin: 12px 0;
  padding: 11px 12px;
  border: 1px solid #bfd5c6;
  border-left: 4px solid #237a3b;
  border-radius: 10px;
  background: #f6fbf7;
}
.official-update-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.official-update-heading .section-kicker { color: #226837; }
.official-update-heading strong { font-size: 12px; color: #254d31; }
.official-update-time { margin-top: 3px; color: #587162; font-size: 11px; }
.official-update-section p { margin: 8px 0 0; color: #263e2d; font-size: 12.5px; line-height: 1.45; }
.empty-related-news { opacity: .94; }
.card-official-update { margin-top: 9px; padding: 9px 10px; border-radius: 9px; background: #f6f8f9; border: 1px solid #dfe6e9; }
.card-official-update-time { color: #496071; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .025em; }
.card-official-update p { margin: 5px 0 0; color: #36444f; font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* v0.7.3 — NASA FIRMS + related-news search status */
.firms-panel { border-top: 3px solid #7357a5; }
.firms-status { font-size: 12px; line-height: 1.45; color: #39424d; }
.firms-status strong { display: block; color: #272f38; }
.satellite-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 22px; padding: 0 7px; border-radius: 999px;
  background: #ede8f8; color: #5b438c; font-weight: 800; font-size: 10px; letter-spacing: .04em;
}
.firms-key {
  width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 24px; font-size: 14px; font-weight: 900; box-sizing: border-box;
}
.firms-key.unmatched { background: #6a4c93; color: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px #6a4c93; }
.firms-key.matched { background: #fff; color: #6a4c93; border: 3px solid #6a4c93; }
.firms-marker-wrap { width: 38px; height: 38px; position: relative; display: grid; place-items: center; }
.firms-marker {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: 15px; line-height: 1; box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.firms-marker.unmatched { background: #6a4c93; color: #fff; border: 3px solid #fff; }
.firms-marker.matched { background: rgba(255,255,255,.95); color: #6a4c93; border: 4px solid #6a4c93; font-size: 18px; }
.firms-marker-count {
  position: absolute; right: -2px; top: -3px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: #242b33; color: #fff; font-size: 9px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; border: 1px solid #fff;
}
.firms-tip { max-width: 300px; }
.firms-evidence {
  margin: 10px 0; border: 1px solid #d9cfeb; border-left: 4px solid #6a4c93;
  border-radius: 8px; padding: 10px; background: #f8f5fc; color: #34313b;
}
.firms-evidence .section-kicker { color: #5b438c; }
.firms-evidence p { margin: 6px 0 0; font-size: 11px; line-height: 1.45; }
.firms-warning {
  margin: 8px 0; padding: 9px 10px; border-radius: 7px; background: #f3eff9; color: #504564;
  font-size: 10.5px; line-height: 1.4;
}
.news-search-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 8px 0; padding: 8px 9px; border-radius: 7px; background: #f6f7f8;
  color: #4d5863; font-size: 10px; line-height: 1.4;
}
.news-search-status.searching { background: #fff6dd; color: #72510a; }
.news-search-dot { width: 8px; height: 8px; border-radius: 50%; background: #80909d; flex: 0 0 8px; }
.news-search-status.searching .news-search-dot { background: #d39213; animation: newsPulse 1.1s ease-in-out infinite; }
@keyframes newsPulse { 50% { transform: scale(1.55); opacity: .55; } }
.news-refresh-button {
  margin-left: auto; border: 1px solid #c6cdd4; background: #fff; border-radius: 6px; padding: 5px 8px;
  color: #303b45; font-size: 10px; font-weight: 700; cursor: pointer;
}
.news-refresh-button:disabled { opacity: .55; cursor: wait; }
.card-news-status { margin: 6px 0; color: #68737d; font-size: 10px; }

/* v0.7.51 — Fire Radar brand, news search headline status and FIRMS persistence context. */
.sr-only { 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; }
.topbar {
  align-items: center;
  padding: 12px 28px 11px;
  background: #fff;
  color: #0b2344;
  border-bottom: 1px solid #dce2e7;
}
.brand-block { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-logo { display: block; width: clamp(230px, 25vw, 370px); height: auto; max-height: 104px; object-fit: contain; object-position: left center; flex: 0 1 auto; }
.brand-copy { min-width: 0; }
.brand-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.coverage-chip { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: #eef4fa; border: 1px solid #cbd9e6; color: #244968; font-size: 11px; font-weight: 850; letter-spacing: .02em; }
.coverage-chip-link { text-decoration:none; cursor:pointer; transition:background .15s ease,border-color .15s ease,box-shadow .15s ease; }
.coverage-chip-link:hover { background:#e2edf6; border-color:#afc5d7; }
.coverage-chip-link:focus-visible { outline:2px solid #245d86; outline-offset:2px; }
.version-badge { border-color: #ccd6df; background: #f4f6f8; color: #465463; }
.topbar p { color: #5f6c78; font-size: 13px; }
.top-actions { min-width: 230px; }
.button { background: #0c2b52; color: #fff; box-shadow: 0 2px 6px rgba(12,43,82,.15); }
.updated { color: #66727e; }

.status-strip { grid-template-columns: 150px 150px 170px minmax(240px, 1fr) minmax(260px, 1.15fr); }
.news-summary-card {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.news-summary-card > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.news-summary-card strong { font-size: 12.5px; }
.news-summary-card span:not(.news-summary-dot) { color: var(--muted); font-size: 10.5px; line-height: 1.3; }
.news-summary-dot { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; background: #80909d; box-shadow: 0 0 0 4px rgba(128,144,157,.12); }
.news-summary-card.checking .news-summary-dot { background: #d39213; animation: pulseStatus 1.2s infinite; }
.news-summary-card.good .news-summary-dot { background: #23834a; box-shadow: 0 0 0 4px rgba(35,131,74,.12); }
.news-summary-card.partial .news-summary-dot { background: #4e78a6; box-shadow: 0 0 0 4px rgba(78,120,166,.12); }
.news-summary-card.error .news-summary-dot { background: #b3212b; box-shadow: 0 0 0 4px rgba(179,33,43,.12); }

.firms-key.repeated { background: #fff; color: #5f4b87; border: 2px solid #8b77b1; box-shadow: 0 0 0 1px #ded7eb; }
.firms-key.persistent { background: #5b6470; color: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px #5b6470; font-size: 10px; }
.firms-marker.repeated { background: #fff; color: #614d89; border: 3px solid #8c77b3; }
.firms-marker.persistent { background: #5b6470; color: #fff; border: 3px solid #fff; font-size: 11px; }
.firms-warning.persistent { background: #f1f2f3; border: 1px solid #d4d8dc; color: #48515b; }

@media (max-width: 1180px) {
  .status-strip { grid-template-columns: repeat(3, 1fr); }
  .news-summary-card, .source-check-card { grid-column: span 3; }
}
@media (max-width: 760px) {
  .topbar { padding: 12px 18px; align-items: flex-start; }
  .brand-block { flex-direction: column; align-items: flex-start; gap: 4px; }
  .brand-logo { width: min(360px, 88vw); max-height: none; }
  .brand-copy { margin-top: -4px; }
  .status-strip { grid-template-columns: 1fr 1fr; }
  .status-metric:nth-child(3) { grid-column: 1 / -1; }
  .news-summary-card, .source-check-card { grid-column: 1 / -1; }
}

/* v0.7.51 — final Essex-focused UI polish before multi-authority work. */
.ongoing-metric {
  background: #fff0f1;
  border-color: #efb7bb;
  box-shadow: inset 4px 0 0 #c61d24;
}
.ongoing-metric span { color: #9d2027; }
.ongoing-metric strong { color: #a90f17; }
.wind-toggle,
.firms-toggle { font-weight: 400; }
.panel-title-actions { display: flex; align-items: center; gap: 7px; }
.help-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 2px 3px;
  color: #315f82;
  font: inherit;
  font-size: 10.5px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.help-link:hover { color: #153f60; }
.news-confidence {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 6px;
  border: 1px solid transparent;
  font-size: 8.5px;
  font-weight: 900;
  margin-left: auto;
}
.news-confidence.high { background: #e7f5eb; border-color: #b8dfc4; color: #176a38; }
.news-confidence.medium { background: #fff3d8; border-color: #e8cb84; color: #805700; }
/* A repeated unmatched anomaly is deliberately noticeable, but remains circular and
   visually distinct from the pin-shaped official fire marker. */
.firms-key.repeated {
  background: #cf2632;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #cf2632, 0 0 0 5px rgba(207,38,50,.12);
}
.firms-marker.repeated {
  width: 32px;
  height: 32px;
  background: #cf2632;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #cf2632, 0 2px 8px rgba(88,12,19,.35);
  font-size: 18px;
}
/* Persistent/non-fire candidates remain in the internal FIRMS history but are not
   rendered as permanent map markers in v0.7.51. */
.firms-marker.persistent,
.firms-key.persistent { display: none !important; }
.satellite-filter-note {
  margin: 7px 20px 0;
  color: #68727d;
  font-size: 10.5px;
  line-height: 1.45;
}
.help-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid #cfd7df;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  color: #1d2730;
  box-shadow: 0 20px 60px rgba(13,25,38,.25);
}
.help-dialog::backdrop { background: rgba(15,23,32,.40); }
.help-dialog-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.help-dialog-head h2 { margin: 2px 0 0; font-size: 18px; }
.help-dialog-close {
  appearance: none;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  border: 1px solid #cfd6dc;
  background: #f5f7f8;
  color: #29343e;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.help-dialog > p { color: #4c5965; font-size: 12.5px; line-height: 1.5; }
.help-symbol-list { display: grid; gap: 7px; }
.help-symbol-list > div {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid #edf0f2;
}
.help-symbol-list > div:last-child { border-bottom: 0; }
.help-symbol-list p { margin: 0; color: #4d5964; font-size: 11.5px; line-height: 1.4; }
.help-symbol-list p strong { color: #202a33; }
.help-note { margin: 12px 0 0; padding: 9px 10px; border-radius: 8px; background: #f4f6f8; }

@media (max-width: 560px) {
  .ongoing-metric { grid-column: auto; }
  .satellite-filter-note { margin: 7px 12px 0; }
}

/* v0.7.51 — final Essex UI/shareability patch. */
.filter-panel { border-top: 3px solid #3b9b67; }
.severity-panel { border-top: 3px solid #c94a52; }
.wind-panel { border-top: 3px solid #3e82ba; }
.firms-panel { border-top: 3px solid #7357a5; }
.legend-panel { border-top: 3px solid #d69a2d; }
.source-panel { border-top: 3px solid #3e7780; }

.incident-card.ongoing-card {
  background: #fff1f2;
  border-color: #efb7bb;
  box-shadow: inset 4px 0 0 #c61d24;
}
.incident-card.ongoing-card:hover { box-shadow: inset 4px 0 0 #c61d24, 0 5px 18px rgba(24,31,39,.09); }

.share-incident-button {
  font-weight: 800 !important;
  border-color: #b9c8d5 !important;
  background: #f4f8fb !important;
  color: #214f70 !important;
}
.share-incident-button:hover { background: #eaf2f8 !important; }

/* v0.8.8 multi-authority coverage */
.filter-select-label{display:grid;gap:5px;margin:8px 0 12px;font-size:.86rem;font-weight:700;color:#334155}
.filter-select-label select{width:100%;border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:8px 10px;font:inherit;font-weight:500;color:#0f172a}
.coverage-source-list{display:grid;gap:9px;margin:8px 0 10px}
.coverage-source-row{display:grid;grid-template-columns:10px 1fr;gap:8px;align-items:start;padding:7px 0;border-bottom:1px solid #e7edf3}
.coverage-source-row:last-child{border-bottom:0}
.coverage-source-dot{width:9px;height:9px;border-radius:50%;margin-top:5px;background:#94a3b8}
.coverage-source-row.ok .coverage-source-dot{background:#15803d}.coverage-source-row.error .coverage-source-dot{background:#b91c1c}.coverage-source-row.pending .coverage-source-dot{background:#d97706}
.coverage-source-row strong,.coverage-source-row span,.coverage-source-row small{display:block}.coverage-source-row span{font-size:.79rem;margin-top:2px}.coverage-source-row small{font-size:.73rem;color:#64748b;margin-top:3px;line-height:1.35}
.fire-cluster{width:48px;height:48px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#25364a;color:#fff;border:3px solid #fff;box-shadow:0 1px 5px rgba(15,23,42,.35);line-height:1}
.fire-cluster.ongoing{background:#c61d24}
.fire-cluster strong{font-size:1rem}.fire-cluster span{font-size:.58rem;text-transform:uppercase;letter-spacing:.04em;margin-top:2px}
@media(max-width:700px){.coverage-chip{white-space:normal;text-align:center}.filter-select-label select{font-size:16px}}

/* v0.8.8 dashboard simplification, fixed map height and secondary pages. */
.site-nav { display:flex; flex-wrap:wrap; gap:7px; margin-top:8px; }
.site-nav a { display:inline-flex; align-items:center; padding:5px 9px; border-radius:999px; border:1px solid #d3dde6; background:#fff; color:#244968; text-decoration:none; font-size:11px; font-weight:800; }
.site-nav a:hover, .site-nav a.active { background:#e9f1f8; border-color:#b8ccdc; }
.panel-link { color:#145f8b; font-weight:800; text-decoration:none; }
.panel-link:hover { text-decoration:underline; }

/* Keep the live map useful without letting it dominate page scrolling. */
.map-wrap { height: min(58vh, 600px); min-height: 500px; }
#map { height:100%; min-height:0; }
.map-tools { display:flex; gap:6px; flex-wrap:wrap; }

.ongoing-metric.loading strong { color:#9a5b10; }
.ongoing-metric.loading { position:relative; overflow:hidden; }
.ongoing-metric.loading::after { content:''; position:absolute; right:12px; top:12px; width:14px; height:14px; border:2px solid rgba(173,90,22,.20); border-top-color:#b35c18; border-radius:50%; animation:ongoingSpin .8s linear infinite; }
@keyframes ongoingSpin { to { transform:rotate(360deg); } }

.authority-incident-groups { display:grid; gap:18px; margin-top:14px; }
.authority-incident-group { border-top:1px solid #dce4eb; padding-top:14px; }
.authority-incident-group:first-child { border-top:0; padding-top:0; }
.authority-group-heading { display:flex; justify-content:space-between; gap:16px; align-items:end; margin-bottom:9px; }
.authority-group-heading h3 { margin:2px 0 0; font-size:17px; }
.authority-group-kicker { display:block; color:#687785; font-size:10px; text-transform:uppercase; letter-spacing:.07em; font-weight:900; }
.authority-group-counts { text-align:right; display:flex; flex-direction:column; }
.authority-group-counts strong { font-size:20px; line-height:1; }
.authority-group-counts span { color:#66727e; font-size:10px; margin-top:3px; }
.authority-preview-list { grid-template-columns:repeat(3,minmax(0,1fr)); }
.compact-incident-card { min-width:0; }
.compact-incident-card .card-official-update p { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.authority-more { margin-top:8px; text-align:right; }
.authority-more a, .browse-history-cta a { color:#145f8b; font-weight:800; text-decoration:none; }
.authority-more a:hover, .browse-history-cta a:hover { text-decoration:underline; }
.browse-history-cta { margin-top:16px; padding:12px 14px; border-radius:10px; background:#eef4f8; text-align:center; }

.page-shell { max-width:1180px; margin:0 auto; padding:18px; }
.page-hero { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; margin-bottom:16px; }
.page-hero h1 { margin:0 0 5px; font-size:26px; }
.page-hero p { margin:0; color:#5e6b77; max-width:760px; }
.page-card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px; box-shadow:0 4px 18px rgba(24,31,39,.05); margin-bottom:14px; }
.page-warning { border-left:5px solid #c65a20; background:#fff7f1; }
.page-controls { display:grid; grid-template-columns:repeat(2,minmax(180px,280px)); gap:12px; align-items:end; }
.page-controls label { display:flex; flex-direction:column; gap:5px; font-size:12px; font-weight:800; }
.page-controls select { width:100%; border:1px solid #cbd6df; border-radius:9px; padding:9px 10px; background:#fff; font:inherit; }
.history-summary { color:#5e6b77; font-size:12px; margin:10px 0 0; }
.history-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:12px; }
.history-card { background:#fff; border:1px solid #dce4ea; border-radius:12px; padding:13px; }
.history-card.ongoing { border-left:4px solid #c61d24; background:#fff5f5; }
.history-card h3 { margin:8px 0 6px; font-size:15px; }
.history-card p { margin:5px 0; font-size:12px; line-height:1.4; }
.history-card .history-meta { color:#64717c; font-size:11px; }
.history-card a { color:#145f8b; font-weight:800; }

.source-page-list { display:grid; gap:12px; }
.source-detail-card { background:#fff; border:1px solid #dbe4eb; border-radius:12px; padding:15px; }
.source-detail-head { display:flex; justify-content:space-between; align-items:start; gap:12px; }
.source-detail-head h2 { margin:0; font-size:17px; }
.source-service-area { color:#62707c; font-size:12px; margin-top:3px; }
.source-health-pill { border-radius:999px; padding:4px 8px; font-size:10px; font-weight:900; white-space:nowrap; background:#eef1f4; color:#56616c; }
.source-health-pill.ok { background:#e7f4eb; color:#176a38; }
.source-health-pill.warn { background:#fff4de; color:#8b5d09; }
.source-health-pill.error { background:#fbe9eb; color:#9f2630; }
.source-detail-card p { margin:8px 0 0; font-size:12px; line-height:1.45; }
.source-detail-card a { color:#145f8b; font-weight:800; }
.coverage-mode { display:inline-flex; margin-top:8px; font-size:10px; font-weight:850; color:#445361; background:#eef2f5; border-radius:999px; padding:4px 7px; }

@media (max-width:900px) {
  .authority-preview-list { grid-template-columns:1fr; }
  .map-wrap { height:540px; min-height:440px; }
  .page-controls { grid-template-columns:1fr; }
}
@media (max-width:560px) {
  .map-wrap { height:480px; min-height:420px; }
  .authority-group-heading, .page-hero { flex-direction:column; align-items:flex-start; }
  .authority-group-counts { text-align:left; }
}

/* v0.8.8 — tighter live-page flow. The sidebar contains only active controls/status;
   the map key and data notes now follow the map instead of making the grid row tall. */
.layout { align-items: start; }
.map-wrap { height: clamp(540px, 64vh, 680px); min-height: 540px; }
.below-map-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr);
  gap: 14px;
  margin: 14px 18px 0;
  align-items: start;
}
.below-map-panels .panel { height: auto; }
.below-map-panels .legend-panel { margin: 0; }
.below-map-panels .source-panel { margin: 0; }

@media (max-width: 900px) {
  .map-wrap { height: 560px; min-height: 500px; }
  .below-map-panels { grid-template-columns: 1fr; margin: 12px 10px 0; }
}
@media (max-width: 560px) {
  .map-wrap { height: 500px; min-height: 440px; }
  .below-map-panels { margin: 10px 10px 0; }
}

/* v0.8.8 — full-width map with a single consistent control/information band below.
   There is deliberately no permanent left sidebar. */
.layout {
  display: block;
  padding: 16px 18px 0;
}
.map-wrap {
  width: 100%;
  height: clamp(520px, 62vh, 660px);
  min-height: 520px;
}
#map { min-height: 0; height: 100%; }
.below-map-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 18px 0;
  align-items: stretch;
}
.below-map-panels .panel { margin: 0; min-width: 0; height: auto; }
.below-map-panels .filter-panel,
.below-map-panels .severity-panel,
.below-map-panels .wind-panel,
.below-map-panels .firms-panel,
.below-map-panels .legend-panel,
.below-map-panels .source-panel { width: auto; }

@media (max-width: 1100px) {
  .below-map-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .layout { padding: 10px 10px 0; }
  .map-wrap { height: 500px; min-height: 440px; }
  .below-map-panels { grid-template-columns: 1fr; margin: 10px 10px 0; }
}

/* v0.8.8 streamlined homepage + refreshed production-style UI */
.single-column-layout { display:block; padding: 12px 18px 0; }
.map-wrap { min-height: clamp(520px, 62vh, 660px); }
#map { min-height: clamp(520px, 62vh, 660px); }
.horizontal-filter-bar {
  margin: 14px 18px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  box-shadow: 0 4px 16px rgba(24,31,39,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-chip-group { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.filter-chip {
  display:inline-flex; align-items:center; gap:8px; min-height:40px;
  padding: 8px 12px; border:1px solid #d4dce4; border-radius: 999px; background:#fff;
  font-size:13px; font-weight:700; color:#25303b;
}
.filter-chip input { margin:0; }
.filter-select-label select {
  border:0; background:transparent; font:inherit; color:inherit; outline:none; min-width:140px;
}
.severity-chip-group { border-radius: 14px; padding-right: 10px; }
.severity-chip-group > span { font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:#6d7884; }
.severity-chip-group .check { margin:0; font-size:13px; }
.filter-reset-button {
  border:1px solid #c7d4df; background:#eef5fb; color:#204865; border-radius:999px; padding: 9px 14px; font-weight:800; cursor:pointer;
}
.filter-links { display:flex; gap:14px; flex-wrap:wrap; font-size:12px; }
.filter-links a, .panel-link { color:#1d5a86; text-decoration:none; font-weight:700; }
.filter-links a:hover, .panel-link:hover { text-decoration:underline; }
.dashboard-mini-panels {
  display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; margin: 12px 18px 0;
}
.compact-panel { min-height: 100%; }
.source-panel.compact-panel p { margin: 6px 0; }
.page-main { max-width: 980px; margin: 20px auto; padding: 0 18px; }
.prose-panel { padding: 22px; }
.prose-panel h1 { margin-top:0; font-size: 30px; }
.prose-panel h2 { margin-top: 24px; margin-bottom: 8px; font-size: 20px; }
.prose-panel p, .prose-panel li { font-size: 14px; line-height: 1.6; color: #334150; }
.compact-topbar { padding-bottom: 20px; }

/* Production-style cards and authority groups */
.authority-incident-groups { display:grid; gap:16px; margin-top:16px; }
.authority-incident-group {
  background:#fff; border:1px solid var(--line); border-radius: 18px; padding:16px; box-shadow:0 6px 24px rgba(24,31,39,.05);
}
.authority-group-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom: 12px; }
.authority-group-kicker { display:inline-flex; padding:4px 8px; border-radius:999px; background:#eef5fb; color:#28536f; font-size:11px; font-weight:800; letter-spacing:.05em; }
.authority-group-heading h3 { margin:6px 0 0; font-size:20px; }
.authority-group-counts { text-align:right; color:#66727d; }
.authority-group-counts strong { display:block; color:#17202a; font-size:22px; }
.authority-preview-list { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.incident-card {
  border-radius: 18px; padding: 15px 15px 14px; background: linear-gradient(180deg, #ffffff, #fbfcfe);
  box-shadow: 0 8px 22px rgba(24,31,39,.06); transition: transform .16s ease, box-shadow .16s ease;
}
.incident-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(24,31,39,.10); }
.ongoing-card { border: 1px solid #f0c4c7; background: linear-gradient(180deg, #fff, #fff7f7); }
.precision-line { margin-top:6px !important; color:#47505a !important; }
.precision-chip {
  display:inline-flex; align-items:center; gap:6px; padding:3px 8px; border-radius:999px; font-size:11px; font-weight:800;
  border:1px solid transparent;
}
.precision-chip.street { background:#e8f6ec; color:#1f6a34; border-color:#bfe0c8; }
.precision-chip.locality { background:#eef4fb; color:#235279; border-color:#c8d8eb; }
.precision-chip.approx { background:#fff4df; color:#8a5a00; border-color:#eed39a; }

/* 3D-cartoon style markers */
.fire-marker {
  position: relative;
  width: 34px; height: 34px; border-radius: 50% 50% 50% 14%; transform: rotate(-45deg);
  background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.96), rgba(255,255,255,.08) 30%), linear-gradient(180deg, rgba(255,255,255,.16), rgba(0,0,0,.08));
  border: 2px solid #fff; box-shadow: 0 10px 18px rgba(0,0,0,.25), inset 0 -4px 8px rgba(0,0,0,.15);
}
.fire-marker.moderate { width: 38px; height: 38px; }
.fire-marker.major { width: 43px; height: 43px; border-width: 3px; }
.fire-marker > .fire-type-icon { width:20px; height:20px; transform: rotate(45deg); }
.fire-marker > .fire-type-icon svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.fire-marker .precision-ring {
  position:absolute; inset:-6px; border-radius:50% 50% 50% 14%; border: 2px solid rgba(255,255,255,.0); transform: none; pointer-events:none;
}
.fire-marker.precision-street .precision-ring { inset:-4px; border-color: rgba(65, 179, 98, .85); }
.fire-marker.precision-locality .precision-ring { inset:-7px; border-color: rgba(50, 110, 173, .55); border-style:dashed; }
.fire-marker.precision-approx .precision-ring { inset:-10px; border-color: rgba(214, 153, 31, .50); border-style:dotted; }
.fire-cluster { background:#203243; color:#fff; border-radius:50%; width:58px; height:58px; display:grid; place-items:center; border:3px solid #fff; box-shadow:0 8px 18px rgba(0,0,0,.24); text-align:center; }
.fire-cluster strong { display:block; font-size:20px; line-height:1; }
.fire-cluster span { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.fire-cluster.ongoing { background:#b82228; }

/* clearer tooltip and small status panels */
.leaflet-tooltip.fire-tip, .leaflet-tooltip.wind-tip, .leaflet-tooltip.firms-tip { border-radius: 12px; }
.map-overlay { border-radius: 12px; }
.browse-history-cta { margin-top: 14px; }
.browse-history-cta a, .authority-more a { color:#1d5a86; text-decoration:none; font-weight:800; }
.browse-history-cta a:hover, .authority-more a:hover { text-decoration:underline; }

@media (max-width: 980px) {
  .dashboard-mini-panels { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .single-column-layout { padding: 10px; }
  .horizontal-filter-bar { margin: 10px; }
  .dashboard-mini-panels { margin: 10px; }
  .filter-chip-group { gap:8px; }
  .filter-chip { width: 100%; justify-content: space-between; border-radius: 14px; }
  .severity-chip-group { width: 100%; flex-wrap:wrap; justify-content:flex-start; }
  .filter-links { width:100%; }
}

/* v0.8.8 approved Option-1 iconography: real 3D/cartoon assets */
.fire-marker {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  transform: none !important;
  background: linear-gradient(180deg,#fff,#f6f8fb) !important;
  border: 4px solid var(--status-color, #6c7785) !important;
  box-shadow: 0 7px 16px rgba(0,0,0,.24), inset 0 0 0 2px rgba(255,255,255,.85) !important;
  display:grid;
  place-items:center;
}
.fire-marker.moderate { width: 48px !important; height:48px !important; }
.fire-marker.major { width: 52px !important; height:52px !important; }
.fire-marker > .fire-type-icon {
  transform:none !important;
  width: 36px !important;
  height: 36px !important;
  display:grid;
  place-items:center;
  filter:none !important;
}
.fire-marker.moderate > .fire-type-icon { width:38px !important; height:38px !important; }
.fire-marker.major > .fire-type-icon { width:41px !important; height:41px !important; }
.fire-cartoon-icon { width:100%; height:100%; object-fit:contain; display:block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.18)); }
.fire-marker .precision-ring { border-radius:50% !important; transform:none !important; }
.fire-marker.live { animation: markerPulseV852 1.35s infinite; }
@keyframes markerPulseV852 {
  0%,100% { box-shadow:0 7px 16px rgba(0,0,0,.24),0 0 0 0 rgba(198,29,36,.35); }
  50% { box-shadow:0 7px 16px rgba(0,0,0,.24),0 0 0 13px rgba(198,29,36,0); }
}
.card-title-row { display:flex; align-items:flex-start; gap:14px; margin:9px 0 2px; }
.card-title-row h3 { margin:3px 0 0; line-height:1.3; }
.card-type-icon { width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center; margin-right:2px; }
.popup-title-row { display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.popup-title-row h3 { margin:0; }
.popup-type-icon { width:48px; height:48px; flex:0 0 48px; display:grid; place-items:center; }
.how-icon-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:12px; margin:12px 0 20px; }
.how-icon-grid > div { display:flex; align-items:center; gap:10px; border:1px solid var(--line); border-radius:14px; padding:10px; background:#fff; font-weight:800; color:#34414d; }
.how-icon-grid img { width:50px; height:50px; object-fit:contain; filter:drop-shadow(0 3px 3px rgba(0,0,0,.16)); }
.secondary-summary { border-color:#e2c891 !important; background:#fffaf0 !important; }

/* v0.8.8 brand/home affordance */
.brand-home-link { display:inline-flex; align-items:center; border-radius:12px; text-decoration:none; }
.brand-home-link:focus-visible { outline:3px solid #65b9ef; outline-offset:4px; }
.brand-home-link .brand-logo { transition: transform .16s ease, filter .16s ease; }
.brand-home-link:hover .brand-logo { transform: translateY(-1px); filter: brightness(1.04); }

/* v0.8.8 source transparency and feed-quality scoring */
.source-detail-card { border-radius: 18px; padding: 18px; box-shadow: 0 7px 24px rgba(24,31,39,.05); }
.source-detail-head { align-items:center; }
.source-title-wrap { min-width:0; }
.official-source-title { display:flex; align-items:center; gap:9px; }
.official-source-title h2 { margin:0; }
.official-green-tick { width:24px; height:24px; border-radius:50%; display:inline-grid; place-items:center; flex:0 0 24px; background:#e7f6eb; color:#19733a; border:1px solid #b9dec5; font-weight:950; }
.source-score { width:74px; height:74px; flex:0 0 74px; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; border:5px solid currentColor; background:#fff; box-shadow:0 4px 12px rgba(0,0,0,.08); }
.source-score strong { font-size:20px; line-height:1; }
.source-score span { font-size:9px; font-weight:850; text-transform:uppercase; letter-spacing:.06em; margin-top:3px; }
.source-score.good,.mini-score.good { color:#1c7b3e; }
.source-score.medium,.mini-score.medium { color:#a66c00; }
.source-score.low,.mini-score.low { color:#b12d35; }
.source-health-row { margin-top:9px; }
.source-classification-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin-top:13px; }
.source-classification-grid > div { border:1px solid #dfe6ec; border-radius:12px; padding:10px; background:#f8fafc; }
.source-classification-grid span { display:block; color:#74808b; text-transform:uppercase; letter-spacing:.06em; font-size:9px; font-weight:850; margin-bottom:4px; }
.source-classification-grid strong { display:block; color:#26333e; font-size:11.5px; line-height:1.35; }
.news-source-block { margin-top:14px; border-top:1px solid #e3e8ed; padding-top:12px; }
.news-source-block h3 { margin:0 0 5px; font-size:13px; }
.news-source-explainer { color:#63707b; }
.news-source-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.news-source-tag { display:inline-flex; padding:5px 8px; border-radius:999px; background:#eef3f7; color:#344956; border:1px solid #d9e2e8; font-size:10.5px; font-weight:750; }
.news-source-tag.bbc { background:#f3f3f3; color:#151515; border-color:#cfcfcf; }
.source-specific-note { background:#f6f8fa; border-left:3px solid #66859a; padding:9px 10px; border-radius:8px; }
.score-legend { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:14px; }
.score-legend > div { border:1px solid #dfe5ea; border-radius:14px; padding:13px; background:#fafcfd; }
.score-legend strong { display:block; margin:7px 0 4px; font-size:13px; }
.score-legend p { margin:0; color:#64717c; font-size:11.5px; line-height:1.4; }
.mini-score { width:52px; height:52px; border-radius:50%; display:grid; place-items:center; border:4px solid currentColor; font-weight:900; background:#fff; }
@media(max-width:900px){.source-classification-grid{grid-template-columns:1fr 1fr}.score-legend{grid-template-columns:1fr}}
@media(max-width:600px){.source-detail-head{align-items:flex-start}.source-score{width:62px;height:62px;flex-basis:62px}.source-score strong{font-size:17px}.source-classification-grid{grid-template-columns:1fr}}

/* v0.8.8 honest grouping for shared low-precision coordinates */
.fire-cluster.approximate { background:#72520c; border-color:#fff6df; outline:2px dashed rgba(210,151,26,.78); outline-offset:2px; }
.fire-cluster.approximate.ongoing { background:#a62a2f; outline-color:rgba(210,151,26,.88); }
.approximate-cluster-popup > p { color:#53606b; font-size:12.5px; line-height:1.5; }
.approximate-cluster-list { display:grid; gap:8px; margin-top:12px; }
.approximate-cluster-list button { text-align:left; border:1px solid #d8e0e6; background:#fff; border-radius:12px; padding:10px 11px; cursor:pointer; color:#1d2935; }
.approximate-cluster-list button:hover { background:#f4f8fb; border-color:#b9ccd9; }
.approximate-cluster-list strong { display:block; font-size:12.5px; }
.approximate-cluster-list span { display:block; margin-top:3px; color:#66727d; font-size:11px; }

/* v0.8.8 review-cycle additions */
.brand-home-link { background:#fff !important; padding:2px; overflow:hidden; }
.brand-home-link .brand-logo { background:#fff !important; }
.brand-home-link:hover { background:#fff !important; box-shadow:0 4px 14px rgba(0,0,0,.10); }

.clickable-summary { cursor:pointer; text-align:left; font:inherit; }
.clickable-summary:hover { box-shadow:0 7px 20px rgba(151,24,31,.14); transform:translateY(-1px); }
.clickable-summary:focus-visible { outline:3px solid #e79aa0; outline-offset:2px; }

.map-tools { display:flex; gap:7px; align-items:center; flex-wrap:wrap; max-width:calc(100% - 90px); }
.authority-jump-label { display:flex; align-items:center; gap:6px; background:#fff; border:1px solid #cbd2d8; border-radius:8px; padding:5px 7px 5px 9px; font-size:11px; font-weight:800; color:#26323d; box-shadow:0 2px 8px rgba(0,0,0,.12); }
.authority-jump-label select { border:0; outline:none; background:#f6f8fa; border-radius:6px; padding:3px 5px; max-width:230px; color:#26323d; font:inherit; }

.ongoing-summary-group { background:linear-gradient(180deg,#fff,#fff8f8); border:1px solid #efc8cb; border-radius:18px; padding:16px; box-shadow:0 7px 26px rgba(151,24,31,.07); scroll-margin-top:18px; }
.ongoing-summary-group .authority-group-kicker.priority { background:#fde7e8; color:#a3141b; }
.priority-heading p { margin:5px 0 0; color:#6b747c; font-size:11.5px; line-height:1.4; }
.ongoing-incident-list { grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
.no-ongoing-copy { margin:8px 0 2px; color:#66727d; font-size:13px; }
.summary-highlight { animation:incidentSummaryHighlight 1.5s ease; }
@keyframes incidentSummaryHighlight { 0%,100%{box-shadow:0 7px 26px rgba(151,24,31,.07)} 35%{box-shadow:0 0 0 5px rgba(198,29,36,.14),0 8px 28px rgba(151,24,31,.14)} }

.firms-status > span { display:block; margin-top:3px; color:#66727d; }
.firms-sensor-row { display:flex; gap:5px; flex-wrap:wrap; margin-top:8px; }
.firms-sensor { display:inline-flex; align-items:center; gap:4px; border-radius:999px; padding:4px 7px; font-size:9.5px; font-weight:750; border:1px solid #d4dce3; background:#f7f9fb; color:#44515d; }
.firms-sensor.live { background:#eaf6ed; color:#21653a; border-color:#bedfc8; }
.firms-sensor.unavailable { background:#fff0e8; color:#8d4518; border-color:#efc9ae; }

.badge.closed { max-width:100%; white-space:normal; line-height:1.25; }

@media(max-width:760px){
  .map-tools{max-width:calc(100% - 55px)}
  .authority-jump-label{width:100%;justify-content:space-between}
  .authority-jump-label select{max-width:65%}
}
.source-quirks { margin:10px 0; padding:10px 12px; border-radius:12px; background:#f7f9fb; border:1px solid #e1e6ea; color:#4d5964; font-size:11.5px; }
.source-quirks strong { color:#2a3640; }
.source-quirks ul { margin:7px 0 0 18px; padding:0; }
.source-quirks li { margin:4px 0; line-height:1.4; }

/* v0.8.9.4 trustworthy three-state fire status */
.badge.monitoring { background:#fff1cf; color:#7a5300; }
.fire-marker.monitoring { box-shadow:0 0 0 3px rgba(210,138,0,.18); }
.incident-card.monitoring-card { border-color:#edd6a2; background:linear-gradient(180deg,#fff,#fffaf0); }
.monitoring-summary-group { background:linear-gradient(180deg,#fff,#fffaf0); border:1px solid #ead29a; border-radius:18px; padding:16px; box-shadow:0 7px 24px rgba(133,91,0,.06); margin-top:14px; }
.monitoring-summary-group .authority-group-kicker.monitoring { background:#fff0c9; color:#765100; }
.monitoring-heading p { margin:5px 0 0; color:#6b747c; font-size:11.5px; line-height:1.4; }

/* v0.8.9.4 final local-review polish */
.updated { display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.updated strong { color:#31404d; font-size:12px; }
.updated span { color:#6b7782; font-size:10.5px; }

/* Give the map more of the desktop viewport while retaining sensible mobile limits. */
.single-column-layout .map-wrap,
.single-column-layout #map { height:clamp(620px,72vh,800px); min-height:620px; }

.status-strip { grid-template-columns:150px 190px minmax(300px,1.2fr) minmax(280px,1fr); }
.monitoring-metric { border-left:4px solid #d28a00; }
.monitoring-metric:hover { box-shadow:0 7px 20px rgba(174,113,0,.13); transform:translateY(-1px); }

.map-tools button { border:1px solid #cbd2d8; border-radius:8px; background:#fff; color:#26323d; padding:7px 10px; font-size:11px; font-weight:800; box-shadow:0 2px 8px rgba(0,0,0,.12); cursor:pointer; }
.map-tools button:hover { background:#f3f7fa; }
#myAreaButton { border-color:#9fc7a9; background:#edf8f0; color:#205f32; }
#saveAreaButton { border-color:#b7cde0; background:#f3f8fc; color:#1e5479; }

.compact-status-legend { display:flex; flex-wrap:wrap; gap:8px 12px; margin:9px 0 5px; font-size:10.5px; color:#4d5a66; font-weight:750; }
.compact-status-legend span { display:inline-flex; align-items:center; gap:5px; }
.status-dot { width:9px; height:9px; border-radius:50%; display:inline-block; box-shadow:0 0 0 2px rgba(0,0,0,.06); }
.status-dot.active { background:#c61d24; }
.status-dot.monitoring { background:#d28a00; }
.status-dot.closed { background:#7b8792; }

.browse-history-cta { background:transparent; padding:0; margin-top:16px; }
.browse-history-cta .history-button { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:10px 18px; border-radius:10px; background:#173f5c; border:1px solid #173f5c; color:#fff; text-decoration:none; font-weight:850; box-shadow:0 4px 12px rgba(23,63,92,.16); }
.browse-history-cta .history-button:hover { background:#0f334d; text-decoration:none; }

#monitoringIncidentsSection { scroll-margin-top:18px; }

@media(max-width:1000px){
  .status-strip { grid-template-columns:1fr 1fr; }
  .source-check-card,.news-summary-card { grid-column:auto; }
  .single-column-layout .map-wrap,.single-column-layout #map { height:620px; min-height:560px; }
}
@media(max-width:620px){
  .status-strip { grid-template-columns:1fr 1fr; }
  .source-check-card,.news-summary-card { grid-column:1 / -1; }
  .single-column-layout .map-wrap,.single-column-layout #map { height:520px; min-height:460px; }
  .updated { align-items:flex-start; text-align:left; }
}

/* About page */
.about-panel { max-width: 900px; margin: 0 auto; }
.about-signoff { margin-top: 28px !important; font-weight: 900; color: #17202a !important; }

/* v0.8.9.4 working branch — history is an intentional search rather than an automatic archive dump. */
.history-filter-grid {
  display:grid;
  grid-template-columns:minmax(220px,.8fr) minmax(500px,1.65fr) minmax(300px,1fr);
  gap:16px;
  align-items:end;
}
.history-filter, .history-date-range label {
  display:flex;
  flex-direction:column;
  gap:5px;
  font-size:12px;
  font-weight:800;
}
.history-filter select, .history-date-range select {
  width:100%;
  border:1px solid #cbd6df;
  border-radius:9px;
  padding:9px 10px;
  background:#fff;
  font:inherit;
}
.history-date-range, .history-severity-filter {
  margin:0;
  min-width:0;
  border:1px solid #d8e1e8;
  border-radius:12px;
  padding:10px 12px 12px;
}
.history-date-range legend, .history-severity-filter legend {
  padding:0 5px;
  font-size:12px;
  font-weight:900;
  color:#283744;
}
.date-range-row { display:flex; align-items:flex-end; gap:10px; }
.date-range-group { display:grid; grid-template-columns:minmax(120px,1fr) minmax(86px,.65fr); gap:8px; flex:1 1 0; position:relative; padding-top:16px; }
.date-range-label { position:absolute; top:0; left:0; color:#60707e; font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.05em; }
.date-range-separator { color:#6a7783; font-size:11px; font-weight:850; padding-bottom:11px; }
.history-severity-filter { grid-column:1 / span 2; align-self:stretch; }
.history-severity-options { display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center; min-height:38px; }
.history-severity-options label { display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:850; cursor:pointer; }
.history-severity-options input { width:16px; height:16px; accent-color:#173f5c; }
.history-sort { grid-column:3; }
.history-search-actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:16px; padding-top:14px; border-top:1px solid #e4eaef; }
.pill-action {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 18px;
  border:1px solid #173f5c;
  border-radius:999px;
  background:#173f5c;
  color:#fff;
  font:inherit;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 3px 10px rgba(23,63,92,.14);
}
.pill-action:hover { background:#0f334d; }
.pill-action:focus-visible { outline:3px solid rgba(49,127,177,.28); outline-offset:2px; }
.history-search-actions .history-summary { margin:0; }
.history-empty-result { grid-column:1 / -1; }

@media (max-width:1050px) {
  .history-filter-grid { grid-template-columns:1fr 1fr; }
  .history-date-range { grid-column:1 / -1; }
  .history-severity-filter { grid-column:1; }
  .history-sort { grid-column:2; }
}
@media (max-width:700px) {
  .history-filter-grid { grid-template-columns:1fr; }
  .history-date-range, .history-severity-filter, .history-sort { grid-column:1; }
  .date-range-row { align-items:stretch; flex-direction:column; gap:8px; }
  .date-range-separator { padding:0; align-self:flex-start; }
  .date-range-group { width:100%; }
  .history-search-actions { align-items:stretch; }
  .pill-action { width:100%; }
}

.history-title-link { color: inherit; text-decoration: none; }
.history-title-link:hover, .history-title-link:focus-visible { color: #005a86; text-decoration: underline; text-underline-offset: 2px; }
