:root{
  --bg:#0b1220;
  --card:#111a2e;
  --text:#e9eefc;
  --muted:#aab6d3;
  --line:rgba(255,255,255,.12);
  --accent:#6ee7ff;
  --accent2:#8b5cf6;
  --danger:#ff6b6b;
  --warn:#ffd166;
  --ok:#7cf7b2;
  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1120px;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(110,231,255,.25), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(139,92,246,.25), transparent 60%),
              var(--bg);
  color:var(--text);
  line-height:1.55;
}
a{color:inherit; text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding:24px}
header{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.70);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:900; letter-spacing:.2px;
}
.logo{
  width:34px; height:34px; border-radius:10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 24px rgba(110,231,255,.18);
}
.row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:12px; border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-weight:850;
  cursor:pointer;
  user-select:none;
  transition: transform .12s ease;
}
.btn.primary{
  border:0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#06101f;
}
.btn:disabled{opacity:.55; cursor:not-allowed; transform:none}
.btn:hover{transform: translateY(-1px)}
.btn.small{padding:8px 10px; border-radius:10px; font-weight:800; font-size:13px}
.select{
  padding:10px 12px; border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-weight:800;
  outline:none;
}
select option {
  background: var(--bg);
  color: var(--text);
}
.input{
  padding:10px 12px; border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  outline:none;
  min-width: 240px;
}
.card{
  background: rgba(17,26,46,.78);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
h1{margin:0 0 10px; font-size:32px; line-height:1.15}
.lead{margin:0; color:var(--muted)}
.grid{display:grid; grid-template-columns: 1fr; gap:14px; margin-top:16px;}
.section{padding:22px}
.pill{
  padding:6px 10px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--muted); font-weight:800; font-size:12px;
  white-space:nowrap;
}
.status{
  padding:12px 14px;
  border-radius:14px;
  border:1px dashed var(--line);
  color:var(--muted);
  background: rgba(255,255,255,.03);
}
.status.error{
  border-style:solid;
  border-color: rgba(255,107,107,.35);
  color:#ffb4b4;
}
.status.good{
  border-style:solid;
  border-color: rgba(124,247,178,.30);
  color:#c6ffe1;
}
.tabs{
  display:flex; gap:8px; flex-wrap:wrap;
}
.tab{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--muted);
  font-weight:900;
  cursor:pointer;
  user-select:none;
}
.tab.active{
  color:#06101f;
  border:0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.kpi{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
}
.kpi .box{
  padding:14px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.kpi .label{color:var(--muted); font-size:12px; font-weight:900}
.kpi .value{font-size:18px; font-weight:950; margin-top:6px}
.advice{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.advice .box{
  padding:14px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.advice h3{margin:0 0 8px; font-size:14px}
ul{margin:8px 0 0; padding-left:18px; color:var(--muted)}
li{margin:6px 0}
.muted{color:var(--muted)}
.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(255,255,255,.02);
}
th, td{
  padding:10px 10px;
  border-bottom:1px solid var(--line);
  font-size:14px;
  text-align:left;
  vertical-align:top;
}
th{
  color:var(--muted);
  font-weight:900;
  background: rgba(255,255,255,.03);
}
tr:last-child td{border-bottom:0}
tr.hl-rain td{
  background: linear-gradient(90deg, rgba(110,231,255,.14), transparent 70%);
}
tr.hl-snow td{
  background: linear-gradient(90deg, rgba(255,255,255,.10), transparent 70%);
}
tr.hl-thunder td{
  background: linear-gradient(90deg, rgba(255,209,102,.16), transparent 70%);
}
tr.hl-severe td{
  background: linear-gradient(90deg, rgba(255,107,107,.14), transparent 70%);
}
.weekbar{
  display:flex; gap:8px; flex-wrap:wrap;
}
.daychip{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--muted);
  font-weight:900;
  cursor:pointer;
  user-select:none;
}
.daychip.active{
  color:#06101f;
  border:0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.hint{font-size:12px; color:var(--muted)}
footer{
  margin-top:18px;
  border-top:1px solid var(--line);
  color:var(--muted);
  padding:18px 0;
  font-size:13px;
}
@media (max-width: 980px){
  .kpi{grid-template-columns: 1fr 1fr}
  .advice{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}
  h1{font-size:28px}
  .input{min-width: 200px}
}
