:root{
  --bg:#0c121c;
  --panel:#111a27;
  --panel2:#0f1724;
  --text:#e8f0ff;
  --muted:#9fb2d6;
  --accent:#78c9ff;
  --accent2:#5fe0c6;
  --danger:#ff6b6b;
  --line:rgba(255,255,255,0.08);
  --shadow:0 10px 25px rgba(0,0,0,0.35);
  --radius:16px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
  background:radial-gradient(1200px 800px at 20% 0%, rgba(120,201,255,0.12), transparent 55%),
             radial-gradient(1000px 700px at 80% 10%, rgba(95,224,198,0.10), transparent 50%),
             var(--bg);
  color:var(--text);
}

a{color:inherit}

#app{min-height:100%; display:flex; flex-direction:column}

.topbar{
  position:sticky; top:0; z-index:10;
  background:rgba(12,18,28,0.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar .inner{
  max-width:1100px;
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{
  display:flex; align-items:center; gap:10px;
}
.logo{
  width:34px; height:34px; border-radius:12px;
  background:linear-gradient(135deg, rgba(120,201,255,0.35), rgba(95,224,198,0.28));
  border:1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
  display:flex; align-items:center; justify-content:center;
  font-weight:800;
}
.brand h1{font-size:15px; margin:0; letter-spacing:0.2px}
.brand .sub{font-size:12px; color:var(--muted)}

.container{
  max-width:1100px;
  width:100%;
  margin:0 auto;
  padding:18px 16px 28px;
}

.card{
  background:linear-gradient(180deg, rgba(17,26,39,0.92), rgba(15,23,36,0.92));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
}

.card .hd{
  padding:16px 16px 0;
}
.card .hd h2{
  margin:0 0 6px;
  font-size:16px;
}
.card .hd p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.card .bd{padding:16px}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}

@media (min-width: 920px){
  .grid.two{
    grid-template-columns: 360px 1fr;
    align-items:start;
  }
}

.btnrow{display:flex; flex-wrap:wrap; gap:10px}

button, .btn{
  appearance:none;
  border:none;
  cursor:pointer;
  border-radius:14px;
  padding:12px 14px;
  font-weight:650;
  background:rgba(255,255,255,0.08);
  color:var(--text);
  border:1px solid rgba(255,255,255,0.10);
  transition: transform 0.06s ease, background 0.2s ease, border-color 0.2s ease;
  user-select:none;
}
button:hover{background:rgba(255,255,255,0.11)}
button:active{transform:scale(0.99)}

.btn-primary{
  background:linear-gradient(135deg, rgba(120,201,255,0.35), rgba(120,201,255,0.18));
  border-color: rgba(120,201,255,0.35);
}
.btn-primary:hover{background:linear-gradient(135deg, rgba(120,201,255,0.45), rgba(120,201,255,0.22))}

.btn-ghost{background:transparent}
.btn-danger{background:rgba(255,107,107,0.14); border-color:rgba(255,107,107,0.28)}

input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(10,15,24,0.55);
  color:var(--text);
  outline:none;
}
textarea{min-height:180px; resize:vertical; line-height:1.35}
label{display:block; font-size:12px; color:var(--muted); margin:10px 0 6px}

.pill{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.06);
  color:var(--muted);
  font-size:12px;
}

.notice{
  font-size:12px;
  color:var(--muted);
  border-left:3px solid rgba(120,201,255,0.6);
  padding:10px 12px;
  background:rgba(120,201,255,0.06);
  border-radius:12px;
}

.list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.item{
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.04);
  border-radius:14px;
  padding:10px 10px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.item .t{
  font-size:13px;
  line-height:1.25;
}
.item .s{
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
}
.item .right{display:flex; gap:8px; align-items:center}

.badge{
  font-size:12px;
  padding:5px 8px;
  border-radius:999px;
  background:rgba(95,224,198,0.10);
  border:1px solid rgba(95,224,198,0.25);
  color:rgba(224,255,250,0.92);
  white-space:nowrap;
}
.badge.gray{background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.12); color:var(--muted)}

hr{border:none; border-top:1px solid var(--line); margin:14px 0}

#map{
  width:100%;
  height: 60vh;
  min-height: 420px;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.10);
}

.small{font-size:12px; color:var(--muted)}

.kpi{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.kpi .pill{background:rgba(255,255,255,0.04)}

.hidden{display:none !important}

.mapbar{
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.mapbar .left{flex:1; min-width:0}
.mapbar .right{flex:0}

.footer{
  margin:16px 0 0;
  text-align:center;
  font-size:12px;
  color:rgba(159,178,214,0.7);
}

/* Leaflet small theming */
.leaflet-control-attribution{
  background:rgba(12,18,28,0.65) !important;
  color:rgba(159,178,214,0.75) !important;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.08);
}
.leaflet-control-zoom a{
  background:rgba(17,26,39,0.85) !important;
  color:var(--text) !important;
  border-color: rgba(255,255,255,0.10) !important;
}
