:root{
  --brand:#7c3aed;
  --bg:#0b1020;
  --card:#101a33;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --line:rgba(255,255,255,.08);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", Arial;
  background: radial-gradient(1200px 600px at 30% 10%, rgba(124,58,237,.25), transparent),
              radial-gradient(1000px 500px at 80% 0%, rgba(59,130,246,.18), transparent),
              var(--bg);
  color:var(--text);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
}
.brand .title{font-weight:800; letter-spacing:.2px; font-size:16px}
.brand .subtitle{color:var(--muted); font-size:12px; margin-top:2px}
.status{display:flex; gap:8px; align-items:center; flex-wrap:wrap}

.pill{
  border:1px solid rgba(255,255,255,.16);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  color:var(--text);
  background: rgba(255,255,255,.04);
}

.grid{
  display:grid;
  grid-template-columns: 420px 420px 1fr 420px;
  gap:12px;
  padding:12px;
}
.grid.single{grid-template-columns: minmax(320px, 720px); justify-content:center}
@media (max-width:1200px){
  .grid{grid-template-columns: 1fr; }
}

.card{
  border:1px solid var(--line);
  background: rgba(16,26,51,.85);
  border-radius:16px;
  padding:14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.card h2{margin:0 0 12px; font-size:15px}
.hint{
  margin-top:10px;
  font-size:12px;
  color:var(--muted);
  line-height:1.35;
}

.row{display:flex; gap:10px; align-items:center; margin:10px 0}
.row.wrap{flex-wrap:wrap}
.lbl{min-width:60px; color:var(--muted); font-size:12px}

.inp{
  flex:1;
  min-width:200px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
}
select.inp{cursor:pointer}

.btn{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  user-select:none;
}
.btn:hover{background: rgba(255,255,255,.10)}
.btn.small{padding:8px 10px; font-size:12px; border-radius:999px}
.btn.primary{background: rgba(124,58,237,.25); border-color: rgba(124,58,237,.45)}
.btn.secondary{background: rgba(59,130,246,.18); border-color: rgba(59,130,246,.35)}
.btn.danger{background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.35)}
.btn.toggle.active{outline:2px solid rgba(124,58,237,.55)}
.btn.img{width:56px; height:56px; display:flex; align-items:center; justify-content:center; font-weight:800}

.pad{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}

.mapcard #map{
  width:100%;
  height:420px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
}

.kv{
  display:flex; gap:8px; align-items:center;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  border-radius:12px;
}
.kv span{color:var(--muted); font-size:12px}
.kv b{font-size:13px}

.log{
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:10px;
  height:220px;
  overflow:auto;
  font-size:12px;
  line-height:1.35;
  white-space:pre-wrap;
}
.log.small{height:160px}

.footer{
  padding:14px 16px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  text-align:center;
}
