:root {
  --bg: #0e1319; --bg2: #151c24; --bg3: #1d2630; --line: #2a3542; --fg: #e3e9ef; --muted: #8a97a6;
  --accent: #39b8e6; --ok: #3fb950; --warn: #e3a32b; --crit: #ef5350; --info: #6aa3ff;
  --scene: #10161d;
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", system-ui, sans-serif;
}
:root[data-theme="light"] {
  --bg: #f3f5f8; --bg2: #ffffff; --bg3: #eef1f5; --line: #d5dbe3; --fg: #18212b; --muted: #627083;
  --accent: #0b84c6; --scene: #dfe5ec;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 14px/1.45 var(--font); }
button, select, input { font: inherit; color: inherit; }
button, select { background: var(--bg3); border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px; cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: not-allowed; }
input { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 4px 7px; width: 84px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

#top { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--bg2); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; white-space: nowrap; }
#crumbs { display: flex; gap: 6px; color: var(--muted); white-space: nowrap; overflow: hidden; }
#crumbs a { color: var(--muted); text-decoration: none; }
#crumbs a:hover { color: var(--accent); }
#crumbs b { color: var(--fg); font-weight: 600; }
.spacer { flex: 1; }
#simbar { display: flex; align-items: center; gap: 8px; }
.navlink { color: var(--muted); text-decoration: none; padding: 3px 8px; border-radius: 6px; }
.navlink:hover, .navlink.on { color: var(--fg); background: var(--bg3); }
.srcTag { font-size: 12px; padding: 2px 8px; border-radius: 10px; border: 1px dashed var(--warn); color: var(--warn); white-space: nowrap; }
.srcTag.real { border-style: solid; border-color: var(--ok); color: var(--ok); }
#helpBtn { width: 30px; padding: 4px 0; font-weight: 700; }
input[type="date"] { width: auto; }
.badge { font-weight: 700; }
.badge.CHG { color: #8fd3ff; } .badge.DIS { color: #b6a8ff; } .badge.SIM { color: #ffd479; } .badge.CHILL { color: #ffa48c; }
#clock { font-variant-numeric: tabular-nums; color: var(--muted); }

main { position: absolute; inset: 48px 0 0 0; }
.view { position: absolute; inset: 0; }

/* L0 지점 선택 · 보고서 */
#sites, #reports, #whatif { overflow: auto; padding: 22px clamp(16px, 4vw, 40px) 40px; }
#sites h1, #reports h1, #whatif h1 { font-size: 20px; margin: 0 0 4px; }
#sites .lead, #reports .lead, #whatif .lead { color: var(--muted); margin: 0 0 18px; max-width: 900px; }
.rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rcard { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.rcard h3 { margin: 0 0 6px; font-size: 15px; }
.rcard dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 8px 0; font-size: 13px; }
.rcard dt { color: var(--muted); } .rcard dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.rcard .act { display: flex; gap: 6px; flex-wrap: wrap; }
.rcard .act a { color: var(--accent); text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; }
.region { margin-bottom: 18px; }
.region h2 { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0 0 8px; letter-spacing: .02em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; min-height: 76px; }
.card.twin { cursor: pointer; border-color: var(--accent); grid-column: span 2; }
.card.twin:hover { box-shadow: 0 0 0 2px var(--accent) inset; }
.card .nm { font-weight: 600; }
.card .st { margin-top: 6px; font-size: 13px; color: var(--muted); }
.card.wait { opacity: .6; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; background: var(--muted); vertical-align: middle; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.crit { background: var(--crit); }

/* 3D 스테이지 */
#c { width: 100%; height: 100%; display: block; }
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lbl { position: absolute; transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer; white-space: nowrap;
  background: color-mix(in srgb, var(--bg2) 88%, transparent); border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 7px; font-size: 12px; line-height: 1.3; }
.lbl small { color: var(--muted); }
.lbl.alarm { border-color: var(--crit); box-shadow: 0 0 0 1px var(--crit); }
.lbl.sel { border-color: var(--accent); }
.lbl.pin { font-size: 13px; padding: 5px 10px; border-color: #ff9a3c; }
#loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: var(--scene); }
main { --sl: 0px; }
main.sideOpen { --sl: 300px; }
#hint { position: absolute; left: calc(52px + var(--sl)); top: 12px; color: var(--muted); font-size: 13px; pointer-events: none; }
#legend { position: absolute; left: calc(14px + var(--sl)); bottom: 12px; display: flex; gap: 12px; font-size: 12px; color: var(--muted);
  background: color-mix(in srgb, var(--bg2) 80%, transparent); padding: 4px 9px; border-radius: 6px; }
#legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
#feed { position: absolute; left: calc(14px + var(--sl)); bottom: 44px; width: min(380px, calc(100% - 28px - var(--sl))); max-height: 38%; overflow: auto;
  background: color-mix(in srgb, var(--bg2) 92%, transparent); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
#feed h3 { margin: 0 0 6px; font-size: 13px; }
#feed ul { list-style: none; margin: 0; padding: 0; }
#feed li { padding: 6px 4px; border-top: 1px solid var(--line); cursor: pointer; font-size: 13px; }
#feed li:first-child { border-top: 0; }
#feed li .ev { color: var(--muted); font-size: 12px; }
#feed .empty { color: var(--muted); cursor: default; }

/* 왼쪽 패널: 운영 제어 · 시점 가이드 */
#side { position: absolute; top: 0; left: 0; bottom: 0; z-index: 4; display: flex; pointer-events: none; }
#side .sideBody { width: 272px; overflow: auto; background: var(--bg2); border-right: 1px solid var(--line); padding: 10px 12px 24px; pointer-events: auto; }
#side.collapsed .sideBody { display: none; }
#sideToggle { pointer-events: auto; align-self: flex-start; margin: 10px 0 0 6px; padding: 6px 7px; order: 2; }
#side section + section { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 10px; }
#side h4 { margin: 2px 0 8px; font-size: 13px; }
#side label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; margin-top: 8px; }
#side label select { max-width: 160px; }
#side label.chk { justify-content: flex-start; margin-top: 10px; gap: 6px; }
#side label.chk input { width: auto; margin: 0; }
#side input[type="date"] { margin-top: 6px; width: 100%; }
#side .desc { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
#minimap { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; display: block; }
#minimap .room { fill: none; stroke: var(--muted); stroke-width: .4; }
#minimap .eq { fill: var(--bg3); stroke: var(--muted); stroke-width: .25; cursor: pointer; }
#minimap .eq:hover { fill: color-mix(in srgb, var(--accent) 30%, var(--bg3)); }
#minimap .eq.run { stroke: var(--ok); } #minimap .eq.alarm { fill: color-mix(in srgb, var(--crit) 45%, var(--bg3)); }
#minimap .eq.sel { stroke: var(--accent); stroke-width: .7; }
#minimap .pipe { fill: none; stroke-width: .35; opacity: .7; }
#minimap .cam { fill: var(--accent); }
#minimap .fov { fill: var(--accent); opacity: .15; }
#minimap text { font-size: 2.3px; fill: var(--muted); pointer-events: none; }
.views { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.views button { font-size: 12px; padding: 4px 0; }
.views button.on { border-color: var(--accent); color: var(--accent); }
#eqList { margin-top: 8px; font-size: 12.5px; }
#eqList .grp { color: var(--muted); font-size: 11.5px; margin: 8px 0 3px; }
#eqList button { display: flex; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 3px 4px; border-radius: 5px; }
#eqList button:hover, #eqList button.sel { background: var(--bg3); }
#eqList button small { margin-left: auto; color: var(--muted); }

/* 기능 설명 */
#help { position: fixed; inset: 0; z-index: 20; background: rgb(0 0 0 / .45); display: grid; place-items: center; padding: 16px; }
.helpBox { position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; max-width: 720px; max-height: 86vh; overflow: auto; padding: 18px 22px; font-size: 14px; }
.helpBox h2 { margin: 0 0 6px; font-size: 18px; } .helpBox h3 { margin: 14px 0 4px; font-size: 14px; color: var(--accent); }
.helpBox ol, .helpBox ul { padding-left: 20px; margin: 4px 0; } .helpBox li { margin: 3px 0; }
#helpClose { position: absolute; top: 12px; right: 12px; }

/* L3 설비 패널 */
#panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg2); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; z-index: 4; }
#panel > header { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 14px 6px; }
#pTitle { font-size: 16px; font-weight: 700; }
#pSub { font-size: 12px; }
#pState { padding: 0 14px 8px; font-size: 13px; }
#pTabs { display: flex; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--line); }
#pTabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 7px 9px; color: var(--muted); }
#pTabs button.on { color: var(--fg); border-bottom-color: var(--accent); }
#pBody { flex: 1; overflow: auto; padding: 10px 14px 20px; }
#pBody h4 { margin: 14px 0 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
table.vals { width: 100%; border-collapse: collapse; font-size: 13px; }
table.vals td { padding: 4px 2px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.vals tr.row { cursor: pointer; }
table.vals tr.row:hover td, table.vals tr.on td { background: var(--bg3); }
table.vals td.v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.vals .tid { color: var(--muted); font-size: 11px; }
canvas.trend { width: 100%; height: 120px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; display: block; }
.tier { font-size: 11px; padding: 1px 6px; border-radius: 9px; border: 1px solid var(--line); color: var(--muted); }
.tier.auto_candidate { border-color: var(--ok); color: var(--ok); }
.tier.approval { border-color: var(--warn); color: var(--warn); }
.ctl { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 7px 0; border-bottom: 1px solid var(--line); align-items: center; }
.ctl .act { display: flex; gap: 5px; align-items: center; justify-content: flex-end; }
.cmd { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; font-size: 13px; }
.cmd.pending { border-color: var(--warn); } .cmd.done { border-color: var(--ok); } .cmd.rejected, .cmd.denied { border-color: var(--crit); }
.cmd .act { margin-top: 5px; display: flex; gap: 6px; }
.item { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.item .ev { color: var(--muted); font-size: 12px; }
.sev-crit { color: var(--crit); } .sev-warn { color: var(--warn); } .sev-info { color: var(--info); }
.note { font-size: 12px; color: var(--muted); background: var(--bg3); border-radius: 8px; padding: 7px 9px; margin: 8px 0; }

@media (max-width: 760px) {
  #clock, #legend, .srcTag { display: none; }
  main.sideOpen { --sl: 0px; }
  #side .sideBody { width: min(272px, 80vw); }
  #top { gap: 6px; padding: 0 8px; }
  #crumbs { display: none; }
  #panel { top: auto; height: 62%; width: 100%; border-left: 0; border-top: 1px solid var(--line); }
  #feed { max-height: 26%; }
  .card.twin { grid-column: span 1; }
}

/* 절감 시뮬레이션 */
:root { --wi-d: #8a97a6; --wi-act: #e3a32b; --wi-ai: #39b8e6; }
.wi { display: grid; grid-template-columns: 290px 1fr; gap: 14px; align-items: start; }
.wiCtl { position: sticky; top: 0; display: grid; gap: 4px; }
.wiCtl label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; margin-top: 8px; }
.wiCtl label select { max-width: 170px; } .wiCtl input[type="range"] { flex: 1; }
.wiCtl label.chk { justify-content: flex-start; } .wiCtl label.chk input { width: auto; }
.wiCtl .desc { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.wiBtns { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; } .wiBtns button { flex: 1; }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.wiMain .kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; margin-bottom: 12px; }
.wiMain .kpi { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 12px; }
.wiMain .kpi b { display: block; font-size: 16px; margin: 2px 0; font-variant-numeric: tabular-nums; }
.wiDayHead { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; margin-bottom: 4px; font-size: 13px; }
.lg { font-size: 12px; color: var(--muted); } .lg span { margin-right: 12px; white-space: nowrap; }
.lg i { display: inline-block; width: 14px; height: 6px; margin-right: 4px; vertical-align: middle; border-radius: 2px; }
.lg i.dash { height: 0; border-top: 2px dashed; border-radius: 0; }
#wiChart { width: 100%; height: auto; display: block; } #wiChart .grid { stroke: var(--line); } #wiChart .ax { font-size: 11px; fill: var(--muted); }
.cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 3px; margin-top: 8px; }
.cal button { padding: 4px 0; font-size: 11px; border-radius: 4px; border: 1px solid var(--line); }
#wiTable { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
#wiTable td, #wiTable th { border-bottom: 1px solid var(--line); padding: 5px 6px; text-align: right; } #wiTable td:first-child, #wiTable th:first-child { text-align: left; }
.wrap { overflow-x: auto; }
@media (max-width: 860px) { .wi { grid-template-columns: 1fr; } .wiCtl { position: static; } }

/* 로그인 */
body.loginPage { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.loginBox { width: min(340px, 100%); background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: grid; gap: 12px; }
.loginBox h1 { margin: 0; font-size: 20px; } .loginBox p { margin: 0; }
.loginBox label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.loginBox input { width: 100%; padding: 8px 10px; font-size: 14px; }
.loginBox button { padding: 9px; font-weight: 700; background: var(--accent); color: #fff; border-color: var(--accent); }
.err { color: var(--crit); font-size: 13px; min-height: 1em; }
#userBox { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }

/* AI 운영 */
#ops { overflow: auto; padding: 22px clamp(16px, 4vw, 40px) 40px; }
#ops h1 { font-size: 20px; margin: 0; } #ops h2 { font-size: 16px; margin: 26px 0 8px; } #ops .lead { color: var(--muted); max-width: 980px; }
.opsHead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.opsNav { display: flex; gap: 6px; } .opsNav select { max-width: 280px; }
.badge2 { font-size: 12px; font-weight: 500; border: 1px solid var(--warn); color: var(--warn); border-radius: 10px; padding: 2px 8px; vertical-align: middle; }
.opsGrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.opsItem .opsTop { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.opsItem .opsTop > div:first-child { display: grid; } .opsItem .opsTop b { font-size: 17px; margin: 2px 0; }
.opsAct { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.state { font-size: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 2px 8px; color: var(--muted); }
.state.ok { border-color: var(--ok); color: var(--ok); } .state.hold { border-color: var(--warn); color: var(--warn); }
.why { margin-top: 8px; font-size: 13px; background: var(--bg3); border-radius: 8px; padding: 8px 10px; }
.why ol { margin: 4px 0; padding-left: 20px; } .why li { margin: 3px 0; } .basis { font-size: 12px; margin-top: 4px; }
.opsChart { width: 100%; height: auto; display: block; margin-top: 6px; } .opsChart .ax { font-size: 11px; fill: var(--muted); }
table.kv { width: 100%; font-size: 13px; border-collapse: collapse; } table.kv td { padding: 5px 4px; border-bottom: 1px solid var(--line); } table.kv td:last-child { text-align: right; }
.opsIns { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.opsIns .card p { margin: 6px 0; font-size: 13px; } .tag { font-size: 11.5px; color: var(--accent); }
table.needs { width: 100%; border-collapse: collapse; font-size: 13px; } table.needs td, table.needs th { border-bottom: 1px solid var(--line); padding: 6px; text-align: left; vertical-align: top; }
#sideOps .val { font-size: 15px; font-weight: 700; } #sideOps a { color: var(--accent); }
@media (max-width: 900px) { .opsGrid { grid-template-columns: 1fr; } }

/* 자연어 지시 */
.nlBox { background: var(--bg3); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 10px; font-size: 13px; }
.nlRow { display: flex; gap: 6px; margin-top: 6px; } .nlRow input { flex: 1; width: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chip { font-size: 11.5px; padding: 2px 8px; border-radius: 12px; }
.nlAct { display: flex; justify-content: space-between; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding: 7px 0; }
.nlAct button { white-space: nowrap; }
.nlBox .desc { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }
#ops a { color: var(--accent); }

/* 통합 관제 홈 */
:root { --s1: #3987e5; --s2: #d95926; }
:root[data-theme="light"] { --s1: #2a78d6; --s2: #eb6834; }
.homeHead h1 { margin: 0; }
.kpiRow { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 14px 0; }
.kpiT { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.kpiT span { font-size: 12px; color: var(--muted); } .kpiT b { font-size: 22px; font-variant-numeric: tabular-nums; } .kpiT small { font-size: 11.5px; color: var(--muted); }
.kpiT.alert { border-color: var(--crit); } .kpiT.alert b { color: var(--crit); }
.homeGrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; margin-bottom: 12px; }
.homeGrid .wide { grid-column: 1 / -1; }
#sites .card { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.secH { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px; }
.secH b { font-size: 14px; } .secH a { color: var(--accent); }
.cartogram { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 64px); gap: 6px; max-width: 420px; }
.rg { display: grid; align-content: center; gap: 2px; text-align: left; padding: 6px 10px; border-radius: 8px; background: var(--bg3); border: 1px solid var(--line); color: var(--muted); }
.rg b { color: var(--fg); font-size: 13px; } .rg span { font-size: 11.5px; }
.rg.has { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--bg3)); }
.rg.al { box-shadow: inset 0 0 0 2px var(--crit); } .rg.on { outline: 2px solid var(--fg); }
.lgd { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.lgd i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -2px; background: var(--bg3); border: 1px solid var(--line); }
.lgd i.has { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 30%, var(--bg3)); } .lgd i.al { box-shadow: inset 0 0 0 2px var(--crit); }
.lgd i.s1 { background: var(--s1); border: 0; } .lgd i.s2 { background: var(--s2); border: 0; }
.secH .lgd { margin: 0; }
.watch { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.watch a { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; color: var(--fg); padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line); }
.watch a:hover { border-color: var(--accent); }
.watch small { display: block; color: var(--muted); font-size: 12px; }
.watch .sv { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; white-space: nowrap; border: 1px solid; }
.watch .crit .sv { color: var(--crit); } .watch .warn .sv { color: var(--warn); } .watch .info .sv { color: var(--info); }
.viz { width: 100%; height: auto; display: block; } .viz .grid { stroke: var(--line); } .viz .ax { font-size: 11px; fill: var(--muted); }
.viz .s1 { fill: var(--s1); } .viz .s2 { fill: var(--s2); } .viz .hit { fill: transparent; }
.viz .hit:hover { fill: color-mix(in srgb, var(--fg) 6%, transparent); }
.vizTip { position: fixed; z-index: 30; pointer-events: none; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 12px; box-shadow: 0 4px 14px rgb(0 0 0 / .25); }
details.tbl { margin-top: 6px; font-size: 13px; } details.tbl summary { cursor: pointer; color: var(--muted); }
details.tbl table, .siteTbl { width: 100%; border-collapse: collapse; font-size: 13px; }
details.tbl td, details.tbl th, .siteTbl td, .siteTbl th { border-bottom: 1px solid var(--line); padding: 6px; text-align: right; white-space: nowrap; }
details.tbl td:first-child, details.tbl th:first-child, .siteTbl td:nth-child(-n+3), .siteTbl th:nth-child(-n+3) { text-align: left; }
.siteTbl th { color: var(--muted); font-weight: 600; font-size: 12px; }
.siteTbl td small { display: block; color: var(--muted); font-size: 11px; }
.siteTbl tr.wait td { color: var(--muted); padding: 4px 6px; font-size: 12.5px; } .siteTbl tr.wait b { font-weight: 500; }
.siteTbl tr.twin td { padding: 9px 6px; }
.siteTbl td.act { display: flex; gap: 6px; justify-content: flex-end; }
.siteTbl td.act a { color: var(--accent); text-decoration: none; font-size: 12.5px; }
.siteTbl a.btn { border: 1px solid var(--accent); border-radius: 6px; padding: 2px 9px; }
.spark { width: 120px; height: 28px; } .spark polyline { fill: none; stroke: var(--s2); stroke-width: 2; } .spark circle { fill: var(--s2); }
.note2 { font-size: 12px; margin-top: 10px; }
@media (max-width: 860px) { .homeGrid { grid-template-columns: 1fr; } }
.viz .lbl { fill: var(--fg); }

/* 지점 지도 */
.homeGrid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.mapWrap { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.krmap { flex: none; height: auto; display: block; }
.size-s .krmap { width: 200px; } .size-m .krmap { width: 300px; } .size-l .krmap { width: 440px; }
.krmap .prov { fill: var(--bg3); stroke: var(--bg2); stroke-width: 1.2; }
.krmap .prov.has { fill: color-mix(in srgb, var(--accent) 12%, var(--bg3)); cursor: pointer; }
.krmap .prov.twin { fill: color-mix(in srgb, var(--accent) 28%, var(--bg3)); }
.krmap .prov.has:hover { fill: color-mix(in srgb, var(--accent) 38%, var(--bg3)); }
.krmap .prov.sel { stroke: var(--fg); stroke-width: 2.4; }
.krmap .pvl { font-size: 11px; fill: var(--muted); pointer-events: none; }
.size-s .krmap .pvl { font-size: 14px; } .size-l .krmap .pvl { font-size: 9px; }
.krmap .mk { fill: var(--muted); stroke: var(--bg2); stroke-width: 1; cursor: pointer; }
.krmap .mkT { cursor: pointer; } .krmap .mkT circle { fill: var(--accent); stroke: var(--bg2); stroke-width: 2; }
.krmap .mkT .ring { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .6; animation: mkPulse 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.krmap .mkT.al circle { fill: var(--crit); } .krmap .mkT.al .ring { stroke: var(--crit); }
.krmap .mkT text { font-size: 13px; font-weight: 700; fill: var(--fg); paint-order: stroke; stroke: var(--bg2); stroke-width: 3px; }
@keyframes mkPulse { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .krmap .mkT .ring { animation: none; } }
.rgPanel { flex: 1; min-width: 220px; font-size: 13px; display: grid; gap: 6px; align-content: start; }
.pH { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pS { display: flex; justify-content: space-between; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.pS.twin { border-color: var(--accent); } .pS small { color: var(--muted); }
.pAct { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .pAct a { color: var(--accent); text-decoration: none; font-size: 12.5px; }
.pAct a.btn { border: 1px solid var(--accent); border-radius: 6px; padding: 2px 9px; }
.pR { display: flex; flex-wrap: wrap; gap: 4px; } .pR button { font-size: 12px; padding: 3px 8px; } .pR small { color: var(--muted); }
button.lnk { border: 0; background: none; color: var(--accent); padding: 0 4px; }
.sizeSel { margin-left: auto; display: inline-flex; } .sizeSel button { font-size: 12px; padding: 2px 9px; border-radius: 0; }
.sizeSel button:first-child { border-radius: 6px 0 0 6px; } .sizeSel button:last-child { border-radius: 0 6px 6px 0; }
.sizeSel button.on { border-color: var(--accent); color: var(--accent); }
.lgd i.mkl { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); border: 0; }
.lgd i.mkt { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 0; }
