:root{--bg:#0b1220;--surface:#101a2e;--text:#e8edf7;--muted:#9fb0cf;--line:#1f2b46;--accent:#ffd60a;--accent-text:#1a1200;--ok:#4cc17f;--nodata:#7b8194;--danger:#ff7a7a;--warn-bg:#3a3320;--lit:#ffec4d;--lit-edge:#fffbd0;--dark-fill:#02040a;--safe-b:env(safe-area-inset-bottom,0px);--map-left:0px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--bg);color:var(--text);font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}#app{flex-direction:column;height:100dvh;display:flex}main{flex:1;min-height:0;position:relative}.tab{position:absolute;inset:0}.tab[hidden]{display:none}.scroll{padding:16px;overflow-y:auto}.banner{background:var(--warn-bg);padding:10px 16px;font-size:14px}#map{position:absolute;inset:0}.chip-status{z-index:500;pointer-events:none;justify-content:center;display:flex;position:absolute;top:10px;left:10px;right:10px}.chip-status span{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:999px;padding:6px 12px;font-size:13px;box-shadow:0 1px 4px #00000026}.chip-status .stale{border-color:var(--danger);color:var(--danger)}.pick-hint{z-index:600;background:var(--accent);color:var(--accent-text);text-align:center;border-radius:12px;padding:14px;font-weight:600;position:absolute;bottom:16px;left:16px;right:16px}.sheet{z-index:600;background:var(--surface);border-top:1px solid var(--line);border-radius:16px 16px 0 0;max-height:55%;padding:4px 16px 16px;position:absolute;bottom:0;left:0;right:0;overflow-y:auto;box-shadow:0 -4px 16px #0000002e}.sheet-top{align-items:flex-start;gap:8px;display:flex}.sheet-top h2{flex:1;margin:2px 0 8px;font-size:18px}.icon-btn{width:44px;height:44px;color:var(--muted);background:0 0;border:0;border-radius:50%;flex:none;justify-content:center;align-items:center;margin:-6px -10px 0 0;display:inline-flex}.sheet .lead{align-items:center;gap:8px;margin:2px 0 10px;font-weight:700;display:flex}.sheet .muted{margin:6px 0}.sheet dl{grid-template-columns:auto 1fr;gap:6px 12px;margin:0;display:grid}.sheet dt{color:var(--muted)}.sheet dd{align-items:center;gap:8px;margin:0;font-weight:600;display:flex}.sheet .note{color:var(--muted);margin:10px 0 0;font-size:14px}.dot{border-radius:50%;width:10px;height:10px;margin-right:6px;display:inline-block}nav#tabs{background:var(--surface);border-top:1px solid var(--line);padding-bottom:var(--safe-b);grid-template-columns:repeat(2,1fr);display:grid}nav#tabs button{min-height:52px;color:var(--muted);font:inherit;background:0 0;border:0;font-size:14px}nav#tabs button[aria-current=page]{color:var(--accent);box-shadow:inset 0 3px 0 var(--accent);font-weight:700}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.btn{border:1px solid var(--line);background:var(--surface);min-height:48px;color:var(--text);border-radius:12px;padding:10px 16px}.btn.primary{background:var(--accent);color:var(--accent-text);border-color:#0000;font-weight:700}.btn.danger{color:var(--danger);border-color:var(--danger)}.btn[disabled]{opacity:.55;cursor:not-allowed}.chips{flex-wrap:wrap;gap:8px;margin:8px 0 16px;display:flex}.chip{border:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--text);border-radius:999px;padding:6px 16px}.chip[aria-pressed=true]{background:var(--accent);color:var(--accent-text);border-color:#0000;font-weight:700}.big{width:100%;min-height:84px;margin-bottom:18px;font-size:22px;font-weight:600}.big.lost{color:#fff;background:#b42318;border-color:#0000}.big.back{color:#fff;background:#13794a;border-color:#0000}.row{flex-wrap:wrap;gap:8px;margin:8px 0;display:flex}.card{background:var(--surface);border:1px solid var(--line);border-radius:12px;margin-bottom:14px;padding:14px}.muted{color:var(--muted);font-size:14px}.toast{background:var(--surface);border:1px solid var(--line);border-radius:10px;margin-top:12px;padding:12px}h1{margin:0 0 12px;font-size:22px}.leaflet-container{font:inherit}.infra-pin{color:#b8860b;background:#fff8dc;border:2px solid #b8860b;border-radius:50%;place-items:center;display:grid}.infra-pin.repaired{color:#7b8194;background:#eceef3;border-color:#7b8194}.history{color:var(--muted);margin:6px 0 0;padding-left:18px;font-size:14px}.followup{margin-top:16px}.followup h2{margin:12px 0 4px;font-size:16px}.followup input[type=text]{border:1px solid var(--line);background:var(--surface);width:100%;min-height:44px;color:var(--text);font:inherit;border-radius:10px;padding:8px 12px}.ic{vertical-align:-.2em;stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:1.15em;height:1.15em}#map{left:var(--map-left);background:var(--bg)}#tab-map .leaflet-bottom{bottom:var(--card-h,0px);transition:bottom .18s ease-out}.leaflet-control-attribution{font-size:10px;color:var(--muted)!important;background:#0b1220bf!important}.leaflet-control-attribution a{color:#b8c6e3!important}.chip-btn,.round-btn,.fab{z-index:650;cursor:pointer;color:var(--text);background:#0e1526f2;border:0;justify-content:center;align-items:center;display:inline-flex;position:absolute;box-shadow:0 2px 10px #00000080}.chip-btn{top:12px;left:calc(var(--map-left) + 12px);border-radius:22px;gap:8px;height:44px;padding:0 18px;font-size:15px;font-weight:600}.chip-btn[hidden]{display:none}.chip-btn .chev{opacity:.8;font-size:12px}.round-btn{right:16px;bottom:calc(var(--card-h,72px) + 84px);border-radius:50%;width:44px;height:44px;font-size:20px;transition:bottom .18s ease-out}.fab{right:16px;bottom:calc(var(--card-h,72px) + 14px);background:var(--accent);height:56px;color:var(--accent-text);border-radius:28px;gap:8px;padding:0 20px 0 16px;font-size:16px;font-weight:700;transition:bottom .18s ease-out;box-shadow:0 4px 16px #00000080}.fab .ic{stroke-width:2.2px;width:26px;height:26px}.share-city{justify-content:center;align-items:center;gap:8px;width:100%;margin-top:10px;display:flex}.share-city .ic{width:20px;height:20px}.icon-btn.share{margin-right:0}.menu{z-index:700;top:64px;left:calc(var(--map-left) + 12px);background:var(--surface);border-radius:14px;width:236px;padding:6px;position:absolute;box-shadow:0 6px 20px #0000008c}.menu[hidden]{display:none}.menu button{width:100%;min-height:44px;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;align-items:center;gap:10px;padding:0 12px;font-size:15px;display:flex}.menu button[aria-checked=true]{background:#25314f;font-weight:700}.menu hr{border:0;border-top:1px solid var(--line);margin:4px 0}.chip-status{left:calc(var(--map-left) + 140px);top:18px}.chip-status span{background:#0e1526f2}.panel{z-index:600;background:#0e1526f7;border-radius:22px 22px 0 0;max-height:44%;padding:8px 16px 14px;position:absolute;bottom:0;left:0;right:0;overflow-y:auto;box-shadow:0 -4px 18px #00000080}.grab{width:100%;min-height:28px;color:inherit;text-align:left;touch-action:none;background:0 0;border:0;grid-template-columns:1fr auto;align-items:center;column-gap:8px;padding:6px 0 4px;display:grid}.grab-bar{background:#4a5b80;border-radius:2px;grid-column:1/-1;justify-self:center;width:38px;height:4px;margin-bottom:4px}.peek,.grab .chev{display:none}.is-min .peek{font-size:15px;font-weight:600;display:block}.is-min .grab .chev{color:var(--muted);display:inline-flex}.panel.is-min{padding-bottom:8px}.zone-card{margin-bottom:8px}.zone-title{align-items:center;gap:4px;margin:2px 0 4px;font-size:18px;display:flex}.zone-since{color:var(--muted);margin:0 0 6px;font-size:14px}.tone-lit .zone-title{color:var(--lit)}.list-title{letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin:10px 0 4px;font-size:13px}.zlist{margin:0;padding:0;list-style:none}.zlist li{border-top:1px solid #1b2742;align-items:center;gap:10px;padding:9px 0;font-size:14px;display:flex}.zlist li small{color:var(--muted);text-align:right;margin-left:auto;font-size:13px}.legend{color:var(--muted);border-top:1px solid #1b2742;margin:8px 0 0;font-size:13px}.legend summary{cursor:pointer;align-items:center;min-height:40px;list-style:none;display:flex}.legend summary::-webkit-details-marker{display:none}.legend ul{flex-wrap:wrap;gap:14px;margin:0 0 10px;padding:0;list-style:none;display:flex}.legend li{align-items:center;gap:6px;display:flex}.dot{flex:none;width:12px;height:12px;margin:0}.dot-dark{background:var(--dark-fill);border:2px solid #f2f5fb}.dot-lit{background:var(--lit);box-shadow:0 0 6px var(--lit)}.dot-probable{background:0 0;border:2px dashed #e9eef8}.dot-unknown{background:#5f6f94}.note.stale{color:var(--danger);margin:4px 0;font-size:13px}.leaflet-tile-pane{filter:brightness(1.2)saturate(.75)contrast(1.05)}.me{background:#3b82f6;border:3px solid #fff;border-radius:50%;width:18px;height:18px;box-shadow:0 0 0 6px #3b82f659}.here{background:#2563eb;border:3px solid #fff;border-radius:50%;width:14px;height:14px;box-shadow:0 0 0 5px #2563eb4d}.sheet{z-index:700;background:var(--surface)}@media (max-width:899px){.panel.is-min .panel-body,.has-sheet .panel{display:none}}@media (min-width:900px){#tab-map{--map-left:340px}.panel{border-radius:0;width:340px;max-height:none;padding-top:18px;top:0;right:auto;box-shadow:2px 0 14px #00000073}.panel .grab{display:none}.fab{bottom:28px}.round-btn{bottom:100px}.sheet{border-radius:16px;width:420px;bottom:16px;left:340px;right:auto}}.leaflet-control-zoom{border:0!important;box-shadow:0 2px 10px #00000080!important}.leaflet-control-zoom a{color:var(--text)!important;background:#0e1526f2!important;border:0!important;width:40px!important;height:40px!important;font-size:20px!important;line-height:40px!important}.leaflet-top.leaflet-right{top:8px}.brand{color:#fff;margin:0 0 14px;font-size:20px;font-weight:800;display:none}.brand .ic{color:var(--accent)}@media (min-width:900px){.brand{display:block}}.popup{z-index:900;left:12px;right:12px;bottom:calc(70px + var(--safe-b));max-width:460px;color:var(--text);background:#0e1526;border:1px solid #3a4a6b;border-radius:16px;margin:0 auto;padding:14px 16px;position:fixed;box-shadow:0 8px 28px #0009}.popup[hidden]{display:none}.install-scrim{z-index:1100;padding:16px 16px calc(16px + var(--safe-b));background:#03060eb8;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.install-scrim[hidden]{display:none}.install-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;width:100%;max-width:440px;padding:20px 18px 16px;box-shadow:0 12px 36px #0009}.install-title{margin:0 0 10px;font-size:20px;line-height:1.2}.install-list{color:var(--muted);margin:0 0 12px;padding-left:20px}.install-list li{margin:4px 0}.install-steps{background:var(--bg);border:1px solid var(--line);border-radius:12px;margin:0 0 14px;padding:10px 12px 10px 32px}.install-steps li{margin:4px 0}.install-actions{flex-direction:column;gap:8px;display:flex}.popup-title{margin:0 28px 2px 0;font-size:17px}.popup-body{color:var(--muted);margin:0 0 12px;font-size:14px}.popup-actions{gap:8px;display:flex}.popup-actions .btn{flex:1}.popup-close{width:36px;height:36px;color:var(--muted);background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;display:inline-flex;position:absolute;top:8px;right:8px}.popup-done{margin:4px 0;font-weight:600}.area-screen{z-index:2000;background:var(--bg);flex-direction:column;display:flex;position:fixed;inset:0}.area-bar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:8px;padding:10px 14px;display:flex}.area-map{flex:0 0 46vh;min-height:240px}.area-panel{padding:12px 14px calc(14px + var(--safe-b));flex:1;overflow-y:auto}.area-panel .btn{margin:4px 6px 4px 0}.area-prop{border:1px solid var(--line);border-radius:10px;gap:4px;margin:8px 0;padding:10px 12px;display:grid}.area-acts{flex-wrap:wrap;display:flex}.vtx{background:#ffd60a;border:3px solid #0b1220;border-radius:50%;width:18px;height:18px;box-shadow:0 0 0 1px #ffd60a}.back-btn{min-height:44px;color:var(--muted);font:inherit;background:0 0;border:0;align-items:center;gap:2px;margin:-8px 0 4px -8px;padding:0 12px 0 4px;font-size:15px;display:inline-flex}.danger-zone{border-top:1px solid var(--line);margin-top:32px;padding-top:16px}details.card summary{cursor:pointer;align-items:center;min-height:28px;list-style:none;display:flex}details.card summary::-webkit-details-marker{display:none}details.card[open] summary{margin-bottom:4px}
