:root { color-scheme: light; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #24352f; --paper: #fffef9; --border: #283e3029; --muted: #637269; }
* { box-sizing: border-box; }
body { margin: 0; }
#map { width: 100%; height: 100vh; height: 100dvh; background: #0e1a28; }
.surface { background: #fffef9f2; border: 1px solid var(--border); box-shadow: 0 2px 12px #23382a12; border-radius: 10px; }
.toolbar { position: absolute; z-index: 1000; top: max(16px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 5px; padding: 6px; }
.brand { display: flex; align-items: center; gap: 8px; padding: 0 10px; color: inherit; font-size: 15px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.brand-mark { color: #45765a; font-size: 25px; }
.local-tag { font-size: 9px; letter-spacing: .1em; color: var(--muted); font-weight: 500; }
.divider { height: 22px; border-left: 1px solid var(--border); margin: 0 5px; }
button, select { font: inherit; color: inherit; background: transparent; border: 0; border-radius: 6px; min-height: 36px; cursor: pointer; }
button { min-width: 36px; padding: 4px 9px; font-size: 22px; }
select { padding: 4px 25px 4px 9px; font-size: 13px; max-width: 145px; }
button:hover, select:hover { background: #365c3c0c; }
:focus-visible { outline: 2px solid #397350; outline-offset: 3px; }
.status { position: absolute; z-index: 1000; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); min-height: 50px; display: flex; gap: 9px; align-items: center; padding: 10px 14px; font-size: 12px; }
.dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #c18b38; }
.dot.live { background: #43835d; box-shadow: 0 0 0 3px #43835d15; }
.dot.offline { background: #a75043; }
.dot.demo { background: #6d72ad; }
#count { color: var(--muted); border-left: 1px solid var(--border); padding-left: 9px; }
#count:empty { display: none; }
#retry { font-size: 12px; min-height: 25px; text-decoration: underline; }
.details { position: absolute; z-index: 1000; top: 85px; right: 16px; width: 310px; max-height: calc(100dvh - 160px); overflow: auto; padding: 23px; font-size: 13px; line-height: 1.6; }
.close { position: absolute; top: 7px; right: 7px; }
.eyebrow { color: #6c7c6e; font-size: 10px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; padding-right: 20px; margin: 0 0 8px; }
h1 { font-size: 21px; line-height: 1.25; font-weight: 600; margin: 0 0 8px; }
.muted { color: var(--muted); margin-top: 0; }
dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; border-top: 1px solid var(--border); padding-top: 15px; margin-bottom: 0; }
dt { color: var(--muted); } dd { margin: 0; text-align: right; }
.map-note { position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); left: max(16px, env(safe-area-inset-left)); z-index: 1000; padding: 7px 10px; display: flex; gap: 12px; font-size: 10px; color: var(--muted); }
.map-note a { color: #385e46; text-underline-offset: 2px; }
.notice { position: absolute; bottom: 70px; left: 16px; right: 16px; margin: auto; width: fit-content; max-width: calc(100% - 32px); z-index: 1100; padding: 12px 16px; font-size: 12px; }
.marker-target { padding: 0; border: 0; min-width: 32px; min-height: 32px; background: none; cursor: pointer; }
.marker-target:hover { background: none; z-index: 2; }
.threat-symbol { display: grid; place-items: center; width: 32px; height: 32px; color: var(--threat-color); filter: drop-shadow(0 1px 2px #0009); position: relative; }
.threat-symbol.approx { opacity: .85; }
.threat-symbol svg { width: 28px; height: 28px; }
.threat-count { position: absolute; top: -6px; right: -8px; font-size: 9px; line-height: 15px; padding: 0 4px; background: var(--paper); color: #344439; border-radius: 8px; font-weight: 700; }
.area-label { width: max-content; max-width: 210px; color: #d2bb8d; padding: 5px 8px; font-size: 12px; line-height: 1.3; white-space: pre-line; text-align: center; text-shadow: -1px -1px #08111d, 1px -1px #08111d, -1px 1px #08111d, 1px 1px #08111d; }
.area-label.advisory { color: #b9c8d8; }
.maplibregl-ctrl-group { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.maplibregl-ctrl-group button { background: var(--paper); width: 36px; height: 36px; }
.maplibregl-ctrl-bottom-left { bottom: 70px; }
.maplibregl-ctrl-bottom-right { bottom: 15px; }
.maplibregl-ctrl-attrib { font-size: 9px; max-width: min(650px, 100vw); }
.maplibregl-ctrl-attrib a { color: #466652; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  .toolbar { top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px; gap: 2px; }
  .brand { padding: 0 7px; } .local-tag { display: none; }
  .layer-label { margin-right: auto; }
  .status { top: 69px; right: 10px; min-height: 34px; padding: 7px 10px; font-size: 11px; }
  .details { top: auto; bottom: 74px; left: 10px; right: 10px; width: auto; max-height: min(52dvh, 370px); padding: 20px; }
  .map-note { bottom: max(24px, env(safe-area-inset-bottom)); left: 10px; right: 10px; flex-wrap: wrap; gap: 3px 10px; font-size: 9px; }
  .maplibregl-ctrl-attrib { max-width: calc(100vw - 20px); }
}
