
:root{
  --bg:#0b1020; --panel:#111834; --muted:#aab2d5; --accent:#6ea8fe; --good:#1fcb4f; --danger:#ff5d73; --border:#233056;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;background:var(--bg);color:#eaf0ff}
a{color:var(--accent);text-decoration:none} a:hover{text-decoration:underline}
.header{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--border);background:#0d1430;position:sticky;top:0;z-index:10;}
.header .title{font-size:18px;font-weight:700;letter-spacing:.3px}
.header nav{margin-left:auto;display:flex;gap:10px;flex-wrap:wrap}
.header nav a{padding:8px 12px;border:1px solid var(--border);border-radius:10px;background:#0f1738;}
.layout{display:grid;grid-template-columns:340px 1fr;height:calc(100% - 58px)}
.sidebar{border-right:1px solid var(--border);padding:14px;background:var(--panel);overflow:auto}
.sidebar h3{margin:8px 0 10px 0;font-size:14px;color:#c7d2ff}
.sidebar .card{border:1px solid var(--border);background:#0c1431;border-radius:14px;padding:12px;margin-bottom:12px}
.sidebar .muted{color:var(--muted);font-size:12px}
.sidebar .list{display:flex;flex-direction:column;gap:6px}
.pill{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--border);background:#0c1431;border-radius:999px;padding:8px 10px;font-size:13px;opacity:0;transform:translateY(6px);animation:fadeIn .2s ease-out forwards}
.pill .dot{width:14px;height:14px;border-radius:999px;border:2px solid rgba(255,255,255,.15)}
.controls .row{display:flex;gap:10px;align-items:center;margin-bottom:8px}
.controls label{font-size:12px;color:#c7d2ff}
.controls input[type="text"], .controls select, .controls input[type="number"]{width:100%;padding:8px 10px;border-radius:10px;border:1px solid var(--border);background:#0d1430;color:#eaf0ff}
.controls input[type="color"]{width:42px;height:34px;border-radius:8px;border:1px solid var(--border);background:#0d1430;padding:2px}
.controls input[type="range"]{width:100%}
.controls button{width:100%;padding:10px 12px;border-radius:12px;border:1px solid var(--border);background:linear-gradient(180deg,#12215a,#0e1a45);color:#eaf0ff;font-weight:600;cursor:pointer;transition:transform .06s ease}
.controls button:active{transform:scale(.98)}
.controls .danger{background:linear-gradient(180deg,#702333,#571827);border-color:#7a2a3b}
#map{width:100%;height:100%}
.legend{display:flex;flex-direction:column;gap:6px}
.legend .item{display:flex;align-items:center;gap:8px;font-size:13px}
.legend .swatch{width:14px;height:14px;border-radius:4px;border:1px solid rgba(255,255,255,.2)}
.footer-note{font-size:11px;color:#98a2c4;margin-top:10px}
hr{border:none;border-top:1px solid var(--border);margin:12px 0}
table.data{width:100%;border-collapse:collapse;font-size:13px}
table.data th,table.data td{border:1px solid var(--border);padding:8px;text-align:left;vertical-align:top}
table.data th{background:#0e1738;color:#eaf0ff}
table.data tr:nth-child(even){background:#0c1431}
.swatch-inline{display:inline-block;width:14px;height:14px;border-radius:4px;border:1px solid rgba(255,255,255,.2);margin-right:6px;vertical-align:middle}
.badge{display:inline-block;padding:3px 8px;border:1px solid var(--border);border-radius:999px;background:#0e1738;font-size:12px}
@keyframes fadeIn{to{opacity:1;transform:none}}
