/* 공공데이터 수집 포탈 관리 화면 — kepcoflex powerflex_head manage.css 를 바탕으로 함. JS 라이브러리 없이 동작 */
:root {
  --bg: #f4f6f8; --surface: #fff; --line: #d9dee5; --line-soft: #e8ecf1; --ink: #1d2733; --muted: #66717f; --faint: #8b95a2;
  --accent: #1f5f8b; --accent-d: #173f5c; --accent-l: #e6eff7; --ok: #1f8a4c; --ok-bg: #e4f4ea; --warn: #a86b00; --warn-bg: #fbf0d9; --bad: #c0392b; --bad-bg: #fbe5e2;
  --side: #1b2a3a;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.55 "Malgun Gothic", "Pretendard", system-ui, sans-serif; }
code { font: 12px Consolas, monospace; background: #eef1f5; padding: 1px 4px; border-radius: 3px; }
a { color: var(--accent); }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
h3 { margin: 0 0 8px; }
.muted { color: var(--muted); } .warn { color: var(--warn); } .ok { color: var(--ok); } .bad { color: var(--bad); }
.grow { flex: 1; }

.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { background: var(--side); color: #d8e1ea; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { padding: 18px 16px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-title { font-weight: 700; font-size: 16px; color: #fff; }
.brand-sub { font-size: 12px; color: #9fb0c1; }
.side nav { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.nav-group { font-size: 11px; color: #8b9bac; margin: 10px 8px 2px; letter-spacing: .06em; }
.side .nav { display: block; color: #d8e1ea; text-decoration: none; padding: 7px 10px; border-radius: 6px; font-size: 13.5px; }
.side .nav:hover { background: rgba(255,255,255,.08); }
.side .nav.active { background: var(--accent); color: #fff; }
.side-foot { margin-top: auto; padding: 8px; border-top: 1px solid rgba(255,255,255,.08); }
.main { padding: 24px 28px 60px; min-width: 0; }

.plain { min-height: 100vh; display: grid; place-items: center; }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px 32px; width: 380px; }
.login-card h1 { font-size: 18px; }
.login-card label { display: block; margin: 14px 0 4px; font-weight: 600; }
.login-card input { width: 100%; }
.login-card button { margin-top: 14px; width: 100%; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin: 14px 0; }
.row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 10px; }
.row.end { justify-content: flex-end; }
.row label, .cascade label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); }
.row label.wide { flex: 1 1 420px; }
.row label.chk { flex-direction: row; align-items: center; gap: 6px; color: var(--ink); padding-bottom: 6px; }
.cascade { display: flex; gap: 12px; flex-wrap: wrap; }
input, select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); min-width: 140px; }
input.w-sm { min-width: 90px; width: 90px; }
input[type=checkbox] { min-width: 0; width: auto; padding: 0; } /* 체크박스는 위 min-width 140px 를 받지 않게 — 체크박스와 글자 사이가 벌어지던 문제(서버 로그 대상 선택 등) */
input.filter { min-width: 260px; }
select.sel-sm { min-width: 70px; }
.btn { font: inherit; padding: 7px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { background: var(--accent-l); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; } .btn-primary:hover { background: var(--accent-d); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-sm { padding: 3px 9px; font-size: 12.5px; }
.links { display: flex; gap: 10px; margin-top: 16px; }

.alert { padding: 10px 14px; border-radius: 6px; margin: 10px 0; }
.alert-ok { background: var(--ok-bg); color: var(--ok); } .alert-bad { background: var(--bad-bg); color: var(--bad); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: #eef1f5; color: var(--muted); }
.t-ok { background: var(--ok-bg); color: var(--ok); } .t-warn { background: var(--warn-bg); color: var(--warn); } .t-bad { background: var(--bad-bg); color: var(--bad); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.card-k { font-size: 12px; color: var(--muted); } .card-v { font-size: 22px; font-weight: 700; margin: 2px 0; } .card-s { font-size: 12px; color: var(--faint); }

.tabs { display: flex; gap: 4px; align-items: center; border-bottom: 1px solid var(--line); margin: 6px 0 12px; }
.tab { font: inherit; background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; cursor: pointer; color: var(--muted); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.tabs label.chk { margin-left: auto; display: flex; gap: 6px; align-items: center; font-size: 12.5px; }
.tabs label { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); margin-left: 10px; }

.table-tools { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.table-wrap { overflow: auto; max-height: 70vh; border: 1px solid var(--line); border-radius: 6px; }
table.grid { border-collapse: collapse; width: 100%; font-size: 13px; }
table.grid th { position: sticky; top: 0; background: #eef1f5; text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; }
table.grid th.sorted { color: var(--accent); }
table.grid td { padding: 6px 10px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
table.grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
/* 세로 칸선 — 머리글과 값이 어느 칸인지 바로 보이게 */
table.grid th, table.grid td { border-right: 1px solid var(--line-soft); }
table.grid th { border-right-color: #dde3ea; }
table.grid th:last-child, table.grid td:last-child { border-right: none; }
table.grid th.num { text-align: right; }
table.grid th.center, table.grid td.center { text-align: center; font-variant-numeric: tabular-nums; }
table.grid td.err { color: var(--bad); max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
table.grid tr.clickable:hover { background: var(--accent-l); cursor: pointer; }
.caret { font-size: 10px; margin-left: 3px; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 10px 0; }
.empty { color: var(--faint); padding: 18px; text-align: center; border: 1px dashed var(--line); border-radius: 6px; }

.running { padding: 12px; background: var(--warn-bg); color: var(--warn); border-radius: 6px; display: flex; gap: 10px; align-items: center; }
.spin { width: 14px; height: 14px; border: 2px solid var(--warn); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.preview { margin: 10px 0; padding: 10px 12px; background: var(--accent-l); border-radius: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-top: 10px; }
.month { font: inherit; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 6px 2px; cursor: pointer; display: flex; flex-direction: column; align-items: center; color: var(--faint); }
.month small { font-size: 11px; }
.month.has { color: var(--ink); background: #f3f6fa; } .month.ok { border-color: var(--ok); color: var(--ok); } .month.cur { outline: 2px solid var(--accent); }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: grid; place-items: center; z-index: 50; }
.modal { background: #fff; border-radius: 10px; padding: 20px 24px; width: 440px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.modal.wide { width: min(780px, 94vw); max-height: 86vh; overflow: auto; }
.modal.wide h3 { margin-top: 0; }
.modal.wide h4 { margin: 16px 0 6px; font-size: 14px; }
.modal.wide p, .modal.wide li { font-size: 13.5px; line-height: 1.6; }
.modal.wide ul { margin: 4px 0; padding-left: 20px; }
.modal.wide table.grid { margin: 6px 0; }
.modal.wide .formula { background: var(--accent-l); border-radius: 6px; padding: 8px 12px; font-size: 14px; margin: 6px 0; }
.modal.wide tr.now td { background: var(--accent-l); font-weight: 600; }
.modal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.modal-head h3 { margin: 0; }
.modal-head .grow { flex: 1; }
.info-btn { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--accent, #2a6df4);
    color: var(--accent, #2a6df4); background: #fff; font: italic 700 13px/1 Georgia, serif; cursor: pointer; vertical-align: middle; margin-left: 6px; padding: 0; }
.info-btn:hover { background: var(--accent, #2a6df4); color: #fff; }

.preview-box { margin-top: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.preview-box .table-wrap { max-height: 260px; margin: 8px 0; }
.result { margin-top: 10px; padding: 10px 12px; background: var(--accent-l); border-radius: 6px; }
.result details ul { max-height: 240px; overflow: auto; font-size: 12.5px; }
label.file input { min-width: 320px; }

.diff { margin: 8px 0; padding: 8px 12px; background: var(--warn-bg); border-radius: 6px; font-size: 13px; }
.cov { margin: 8px 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 4px 20px; }
.cov-row { display: grid; grid-template-columns: 1fr 110px 50px; align-items: center; gap: 8px; font-size: 12.5px; }
.cov-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cov-bar { height: 8px; background: #e8ecf1; border-radius: 4px; overflow: hidden; } .cov-bar i { display: block; height: 100%; background: var(--accent); }
.cov-n { text-align: right; font-variant-numeric: tabular-nums; }

/* 차트(Plotly, wwwroot/js/charts.js) */
.plot { width: 100%; margin: 8px 0 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; }

table.grid td.log-text { white-space: pre-wrap; word-break: break-word; font: 12px/1.45 Consolas, monospace; min-width: 420px; }
pre.log { background: #10161d; color: #cfd8e3; font: 12px/1.45 Consolas, monospace; padding: 12px; border-radius: 6px; max-height: 420px; overflow: auto; white-space: pre-wrap; }

/* API 문서(/manage/api) — Scalar iframe 을 본문 남은 높이에 꽉 채운다 (제목·안내 줄 + .main 위아래 여백만큼 뺀 값) */
.api-frame { display: block; width: 100%; height: calc(100vh - 180px); min-height: 480px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-top: 10px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; } .main { padding: 16px; } .months { grid-template-columns: repeat(6, 1fr); }
  .api-frame { height: 80vh; }
}

/* ── 공공데이터 포탈 추가분 ───────────────────────────── */
.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.page-head .grow { flex: 1; }
.sub { margin: 0 0 6px; }
.card.h-ok { border-top: 3px solid var(--ok); } .card.h-warn { border-top: 3px solid var(--warn); } .card.h-bad { border-top: 3px solid var(--bad); }
.card.h-off { border-top: 3px solid var(--line); opacity: .75; } .card.h-wait { border-top: 3px solid var(--accent); }
.card .card-t { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.card .card-t b { font-size: 14px; }
.card .card-m { font-size: 12px; color: var(--muted); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.t-info { background: var(--accent-l); color: var(--accent); }
.keybox { margin: 10px 0; padding: 12px 14px; border: 1px solid var(--ok); background: var(--ok-bg); border-radius: 8px; }
.keybox code { font-size: 13px; background: #fff; padding: 6px 8px; display: block; margin: 6px 0; word-break: break-all; user-select: all; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 4px 12px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
pre.code { background: #10161d; color: #cfd8e3; font: 12px/1.5 Consolas, monospace; padding: 10px 12px; border-radius: 6px; overflow: auto; white-space: pre; }
.side-foot .muted { font-size: 11.5px; color: #8b9bac; padding: 4px 10px; }
table.grid td.wrap { white-space: normal; min-width: 260px; word-break: break-word; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
input.w-xs { min-width: 60px; width: 70px; }

/* 가로 표(SMP 시간별) — 시간 머리글은 옅은 파랑, 왼쪽 구분 열은 고정 */
table.hgrid { font-size: 12.5px; table-layout: fixed; min-width: 1040px; }
table.hgrid th.rowhead:first-child { width: 48px; }
table.hgrid th { cursor: default; text-align: center; }
table.hgrid th, table.hgrid td { padding: 6px 5px; }
table.hgrid th.hour { background: var(--accent-l); color: var(--accent-d); font-weight: 600; }
h2 .sub-note { font-size: 12.5px; font-weight: 400; }
h2 .btn { font-weight: 400; }
table.hgrid th.rowhead { position: sticky; left: 0; z-index: 2; background: #eef1f5; text-align: left; border-right: 1px solid var(--line); }
table.hgrid tbody th.rowhead { z-index: 1; background: #f7f9fb; font-weight: 600; border-bottom: 1px solid var(--line-soft); padding: 6px 10px; }
.timeline-head { font-size: 12.5px; margin: 10px 0 -2px; }
/* 장소 지도(Leaflet) */
.map { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #eef1f5; z-index: 0; }
.map-notice { font-size: 12.5px; margin: -4px 0 6px; color: var(--warn); }

/* ── 기상 요약(아이폰 날씨 앱 구성 참고, 밝은 테마) ───────────────────────── */
.wx-places { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.wx-places button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 14px; font: inherit; cursor: pointer; color: var(--ink); }
.wx-places button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.wx-hero { display: flex; align-items: center; gap: 22px; padding: 22px 26px; border-radius: 14px; color: #fff; margin-bottom: 14px; }
.wx-hero.day { background: linear-gradient(135deg, #3f86cf 0%, #6fb1e8 60%, #9fd0f2 100%); }
.wx-hero.night { background: linear-gradient(135deg, #18233a 0%, #26395c 60%, #3a557f 100%); }
.wx-hero-icon { background: rgba(255,255,255,.18); border-radius: 50%; width: 96px; height: 96px; display: grid; place-items: center; flex: none; }
.wx-hero-main { flex: 1; min-width: 0; }
.wx-place { font-size: 20px; font-weight: 700; }
.wx-place span { font-size: 12.5px; font-weight: 400; opacity: .75; margin-left: 4px; }
.wx-temp { font-size: 56px; font-weight: 300; line-height: 1.05; letter-spacing: -1px; }
.wx-cond { font-size: 17px; opacity: .92; }
.wx-hl { font-size: 13.5px; opacity: .85; margin-top: 2px; }
.wx-hero-side { display: grid; grid-template-columns: auto auto; gap: 4px 18px; font-size: 13.5px; align-self: stretch; align-content: center; }
.wx-hero-side span { opacity: .78; margin-right: 8px; }
.wx-hero-side .wx-src { grid-column: 1 / -1; font-size: 11.5px; opacity: .7; margin-top: 6px; }

.wx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.wx-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.wx-card.wx-wide { grid-column: 1 / -1; }
.wx-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.wx-card-head b { font-size: 15px; margin-right: 8px; }
.wx-card-head .muted { font-size: 12.5px; }
.wx-tabs { display: inline-flex; background: #eef1f5; border-radius: 999px; padding: 3px; }
.wx-tabs button { border: 0; background: none; padding: 4px 14px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; color: var(--muted); }
.wx-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); font-weight: 600; }

.wx-hours { display: flex; overflow-x: auto; padding-bottom: 6px; }
.wx-hour { flex: 0 0 68px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; border-right: 1px dashed var(--line-soft); }
.wx-hour:last-child { border-right: 0; }
.wx-hour.midnight { border-left: 1px solid var(--line); }
.wx-h-time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.wx-h-val { font-size: 16px; font-weight: 600; }
.wx-h-val.rain, .wx-d-icon .rain { color: #2f7fd1; }
.wx-h-val.dim, .wx-d-icon .dim { color: var(--faint); font-weight: 400; }
.wx-h-pop { font-size: 11.5px; color: #2f7fd1; min-height: 15px; font-weight: 600; }
.wx-h-sub { font-size: 11px; color: var(--muted); min-height: 14px; text-align: center; }
.wx-h-arrow { font-size: 18px; color: #2f8fa8; line-height: 1; }
.wx-bar { position: relative; width: 26px; height: 64px; background: #eef1f5; border-radius: 6px; overflow: hidden; }
.wx-bar i { position: absolute; left: 0; right: 0; bottom: 0; background: #b9d8f5; }
.wx-bar b { position: absolute; left: 7px; right: 7px; bottom: 0; background: #2f7fd1; border-radius: 3px 3px 0 0; }

.wx-days { display: flex; flex-direction: column; }
.wx-day { display: grid; grid-template-columns: 74px 70px 44px minmax(120px, 1fr) 44px minmax(150px, 0.8fr); align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line-soft); }
.wx-day:last-child { border-bottom: 0; }
.wx-d-name { font-weight: 600; }
.wx-d-icon { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.wx-d-min { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.wx-d-max { font-weight: 600; font-variant-numeric: tabular-nums; }
.wx-d-extra { font-size: 12px; color: var(--muted); text-align: right; }
.wx-range { position: relative; height: 6px; background: #e8ecf1; border-radius: 3px; }
.wx-range i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.wx-range em { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }

.wx-kv { display: grid; grid-template-columns: auto 1fr; margin: 0; flex: 1; }
.wx-kv dt { color: var(--muted); padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.wx-kv dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line-soft); text-align: right; font-weight: 600; font-size: 13.5px; }
.wx-wind, .wx-moon { display: flex; align-items: center; gap: 16px; }
.wx-big { font-size: 30px; font-weight: 600; line-height: 1.1; }
.wx-sun-line { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.wx-note { font-size: 11.5px; margin-top: 8px; }

.wind-dial .wd-ring { fill: #f4f7fa; stroke: #dde3ea; }
.wind-dial .wd-tick { stroke: #c3cad3; stroke-width: 1; }
.wind-dial .wd-tick.major { stroke: #8b95a2; stroke-width: 2; }
.wind-dial .wd-cardinal { font-size: 15px; fill: var(--muted); text-anchor: middle; dominant-baseline: middle; }
.wind-dial .wd-arrow { stroke: #2f8fa8; stroke-width: 3; stroke-linecap: round; }
.wind-dial .wd-head { fill: #2f8fa8; }
.wind-dial .wd-tail { fill: #fff; stroke: #2f8fa8; stroke-width: 3; }
.wind-dial .wd-speed { font-size: 30px; font-weight: 700; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }
.wind-dial .wd-unit { font-size: 13px; fill: var(--muted); text-anchor: middle; }

.sun-arc { width: 100%; height: auto; display: block; border-radius: 8px; margin-top: 8px; }
.sun-arc .sa-grid { stroke: #c9d2dc; stroke-dasharray: 4 5; stroke-width: 1.5; }
.sun-arc .sa-horizon { stroke: #8b95a2; stroke-width: 2.5; }
.sun-arc .sa-curve-day { fill: none; stroke: #f2a93b; stroke-width: 6; stroke-linecap: round; }
.sun-arc .sa-curve-night { fill: none; stroke: #aab4c0; stroke-width: 5; stroke-linecap: round; }
.sun-arc .sa-rise { fill: #f2a93b; stroke: #fff; stroke-width: 2; }
.sun-arc .sa-twilight { fill: #8b95a2; stroke: #fff; stroke-width: 2; }
.sun-arc .sa-now { fill: #fff; stroke: #1d2733; stroke-width: 3; }
.sa-axis { display: flex; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.sa-axis span { flex: 1; }

@media (max-width: 1100px) { .wx-grid { grid-template-columns: 1fr; } .wx-day { grid-template-columns: 60px 60px 40px 1fr 40px; } .wx-d-extra { display: none; } .wx-hero { flex-wrap: wrap; } }
.section-title { font-size: 16px; margin: 18px 0 8px; }
.sd-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.sd-head { margin-bottom: 4px; }
.sd-list { margin-top: 12px; }
.sd-list small, .wx-kv small { color: var(--faint); font-size: 11.5px; margin-left: 4px; }
.sd-moon-glyph { display: grid; place-items: center; margin: 4px 0 10px; }
@media (max-width: 1100px) { .sd-grid { grid-template-columns: 1fr; } }
/* 시간별 띠 — 지난 시간은 옅게, 지금은 테두리·배경으로 강조 */
.wx-hour.past { opacity: .55; }
.wx-hour.now { background: var(--accent-l); border: 2px solid var(--accent); border-radius: 10px; margin: 0 4px; }
.wx-hour.now .wx-h-time { color: var(--accent-d); font-weight: 700; }
.wx-hour.now .wx-h-val { color: var(--accent-d); }
/* 일별 — 지난 날은 옅게, 오늘은 강조, 자료 없는 날은 한 줄 안내 */
.wx-d-name small { display: block; font-size: 11px; font-weight: 400; color: var(--faint); }
.wx-day.past { opacity: .62; }
.wx-day.today { background: var(--accent-l); border-radius: 8px; border-bottom-color: transparent; }
.wx-day.today .wx-d-name { color: var(--accent-d); }
.wx-d-none { grid-column: 2 / -1; color: var(--faint); font-size: 13px; }
.wx-d-none small { font-size: 11.5px; }
.wx-d-noicon { display: inline-block; width: 28px; text-align: center; color: var(--faint); }
.wx-src-tag { display: inline-block; font-size: 10.5px; padding: 0 6px; border-radius: 8px; background: #eef1f5; color: var(--muted); margin-right: 6px; }

/* 태양계 3D */
.solar { background: #05070d; border-radius: 12px; overflow: hidden; color: #e8edf3; min-height: 300px; }
.solar .muted { color: #8b95a2; }
.sol-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #0c1220; border-bottom: 1px solid #1c2638; font-size: 13.5px; flex-wrap: wrap; }
.sol-bar .sol-time { font-size: 15px; font-variant-numeric: tabular-nums; }
.sol-bar select, .sol-bar input { background: #142036; color: #e8edf3; border: 1px solid #2a3a55; border-radius: 6px; padding: 3px 6px; font: inherit; }
.sol-bar .btn { background: #142036; color: #e8edf3; border-color: #2a3a55; }
.sol-views { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #1c2638; }
.sol-view { position: relative; background: #05070d; }
.sol-view canvas { display: block; width: 100%; height: 480px; }
.sol-cap { position: absolute; left: 10px; bottom: 8px; font-size: 11.5px; color: #9fb0c6; background: rgba(5,7,13,.6); padding: 2px 8px; border-radius: 6px; pointer-events: none; }
.sol-info { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 10px 14px; font-size: 13px; background: #0c1220; border-top: 1px solid #1c2638; }
.sol-info b { color: #ffd75e; }
.card-v small { font-size: 12px; font-weight: 400; color: var(--muted); }
tr.term-next td { background: var(--accent-l); }
tr.term-past td { color: var(--faint); }
@media (max-width: 1100px) { .sol-views { grid-template-columns: 1fr; } .sol-view canvas { height: 380px; } }
.sub-h { font-size: 14px; margin: 14px 0 6px; display: flex; align-items: center; gap: 10px; }

/* 태양광 예측 */
.pv-day-main { display: flex; align-items: center; gap: 10px; margin: 2px 0 4px; }
.pv-day.today { border-color: var(--accent); background: var(--accent-l); }
.pv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.pv-grid .panel { margin-bottom: 14px; }
.pv-metrics { display: flex; gap: 12px; margin-bottom: 8px; }
.pv-metrics > div { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.pv-metrics span { display: block; font-size: 12.5px; color: var(--muted); }
.pv-metrics b { font-size: 24px; }
.pv-metrics small { display: block; font-size: 11.5px; color: var(--faint); }
@media (max-width: 1100px) { .pv-grid { grid-template-columns: 1fr; } }
.pv-src { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.pv-src b { color: var(--ink); font-weight: 600; }
tr.pv-ens td { background: var(--accent-l); }
