:root{--bg: #f8fafc;--panel: #ffffff;--border: #e2e8f0;--text: #0f172a;--muted: #475569;--accent: #0f172a;--blue: #2563eb}*{box-sizing:border-box}html,body{margin:0;padding:0;height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Inter,sans-serif;color:var(--text);background:var(--bg)}.app{display:flex;height:100vh;width:100vw;overflow:hidden}.sidebar{width:375px;min-width:320px;max-width:420px;background:var(--panel);border-right:1px solid var(--border);display:flex;flex-direction:column;z-index:1000;box-shadow:2px 0 12px #0f172a0f}.sidebar.collapsed{display:none}.header{padding:16px 18px 12px;border-bottom:1px solid var(--border);background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff}.header-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.header h1{margin:0 0 4px;font-size:16px;font-weight:700;letter-spacing:-.01em}.header p{margin:0;font-size:12px;color:#cbd5e1}.basemap-pill{font-size:10.5px;font-weight:600;padding:3px 8px;border-radius:999px;background:#ffffff24;color:#e2e8f0;white-space:nowrap}.tabs{display:flex;border-bottom:1px solid var(--border);background:#f1f5f9}.tab-btn{flex:1;border:none;background:transparent;padding:9px 10px;font-size:12px;font-weight:600;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent}.tab-btn.active{color:var(--text);background:#fff;border-bottom-color:var(--blue)}.tab-panel{flex:1;overflow-y:auto;padding:14px 16px;display:none}.tab-panel.active{display:block}.stats-bar{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}.stat-card{background:#f8fafc;border:1px solid var(--border);border-radius:8px;padding:8px 10px}.stat-val{font-size:18px;font-weight:700;color:var(--text);line-height:1.2}.stat-lbl{font-size:11px;color:var(--muted)}.field{margin-bottom:12px}.field label{display:block;font-size:11px;font-weight:700;color:var(--muted);margin-bottom:5px}.field input[type=text],.field select{width:100%;padding:8px 10px;border:1px solid #cbd5e1;border-radius:6px;font-size:13px;background:#fff;color:var(--text)}.field input[type=text]:focus,.field select:focus{outline:2px solid rgba(37,99,235,.25);border-color:var(--blue)}.cat-list{display:flex;flex-direction:column;gap:6px}.cat-item{display:flex;align-items:center;justify-content:space-between;padding:6px 8px;border:1px solid var(--border);border-radius:6px;cursor:pointer;font-size:12.5px;user-select:none;transition:background .12s}.cat-item:hover{background:#f8fafc}.cat-left{display:flex;align-items:center;gap:8px}.dot{width:11px;height:11px;border-radius:50%;flex-shrink:0;border:1.5px solid rgba(255,255,255,.9);box-shadow:0 0 0 1px #0f172a2e}.cat-count{font-size:11px;font-weight:600;color:var(--muted);background:#f1f5f9;padding:2px 6px;border-radius:999px}.toggle-row{display:flex;align-items:center;gap:8px;font-size:12.5px;margin-bottom:7px;cursor:pointer}.actions{padding:12px 16px;border-top:1px solid var(--border);display:flex;gap:8px;background:#fff}.btn{flex:1;padding:9px 10px;border-radius:6px;font-size:12.5px;font-weight:600;cursor:pointer;border:1px solid #cbd5e1;background:#fff;color:var(--text)}.btn:hover{background:#f1f5f9}.btn-primary{background:#2563eb;border-color:#2563eb;color:#fff}.btn-primary:hover{background:#1d4ed8}.map-wrap{flex:1;position:relative}#map{width:100%;height:100%}.sidebar-toggle{position:absolute;top:12px;left:54px;z-index:900;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:7px 11px;font-size:12px;font-weight:600;cursor:pointer;box-shadow:0 2px 8px #0f172a1f}.list-item{padding:10px;border:1px solid var(--border);border-radius:8px;margin-bottom:8px;cursor:pointer;background:#fff}.list-item:hover{border-color:#93c5fd;background:#f8fafc}.list-title{font-size:13px;font-weight:700;margin-bottom:3px}.list-meta{font-size:11.5px;color:var(--muted);line-height:1.4}.list-notice{font-size:11.5px;color:var(--muted);margin-bottom:8px}.popup-box{font-family:inherit;min-width:240px;max-width:310px;font-size:12.5px;line-height:1.45}.popup-title{font-size:14px;font-weight:700;margin:0 0 6px;color:#0f172a}.badge-row{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px}.badge{display:inline-block;padding:2px 7px;border-radius:999px;font-size:10.5px;font-weight:600;color:#fff}.badge-gray{background:#e2e8f0;color:#334155}.badge-high{background:#dcfce7;color:#166534}.badge-med{background:#fef3c7;color:#92400e}.popup-row{margin-bottom:4px;color:#334155}.popup-row strong{color:#0f172a}.popup-links{margin-top:8px;padding-top:7px;border-top:1px solid #e2e8f0;display:flex;gap:10px;flex-wrap:wrap}.popup-links a{color:#2563eb;font-weight:600;text-decoration:none;font-size:12px}.popup-links a:hover{text-decoration:underline}@media(max-width:760px){.sidebar{position:absolute;left:0;top:0;bottom:0;width:88vw}}
