:root { --bg: #f3f4f6; --panel: #ffffff; --text: #1b2430; --muted: #66707e; --line: #e2e6ec; --accent: #c8102e; --ok: #1a9d55; --warn: #d89b00; --none: #8a93a0; }
@media (prefers-color-scheme: dark) { :root { --bg: #11151a; --panel: #1a2028; --text: #e6eaf0; --muted: #98a2b0; --line: #2a323d; --accent: #ff4d63; --ok: #3ccf7a; --warn: #f0b429; --none: #7a8494; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; display: flex; flex-direction: column; align-items: center; }
.test { width: 100%; text-align: center; background: #fff3cd; color: #664d03; font-size: 13px; font-weight: 600; padding: 6px 12px; }
.card { width: min(560px, 100%); margin: 16px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 16px; }
.head .brand { color: var(--accent); font-weight: 800; letter-spacing: .02em; font-size: 15px; }
.head h1 { margin: 2px 0 0; font-size: 22px; }
.state { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.state .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--none); flex: none; }
.state.ok .dot { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.state.warn .dot { background: var(--warn); }
.state-title { font-weight: 700; }
.state-sub { color: var(--muted); font-size: 14px; }
.mapbox { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
#map { height: min(52vh, 380px); background: var(--bg); }
.done { margin: 0; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.legal { margin: 0; font-size: 13px; color: var(--muted); }
.leaflet-container { font: inherit; }
