/* 플랫폼 화면 배치와 부품. 색·글자는 tokens.css 의 변수만 쓴다. */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { position: relative; overflow: hidden; color: var(--ink); font: var(--fw-body) var(--fs-body)/1.45 var(--font); }
button, input, select { font: inherit; color: inherit; }
h2, h3, p, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
#map { position: absolute; inset: 0; }

.glass { position: absolute; z-index: 2; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
@media (prefers-reduced-transparency: reduce) { .glass { background: #111a24; backdrop-filter: none; } }

/* 왼쪽 메뉴 */
.menu { top: 0; bottom: 0; left: 0; width: var(--menu-width); border-radius: 0; border-width: 0 1px 0 0; overflow-y: auto; background: var(--glass-menu); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); }
.brand > i { font-size: 28px; color: var(--accent); }
.brand strong { display: block; font-size: var(--fs-brand); font-weight: var(--fw-brand); }
summary { display: flex; align-items: center; gap: var(--space-2); list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary .caret { margin-left: auto; color: var(--ink-faint); transition: transform 150ms ease; }
details[open] > summary .caret { transform: rotate(180deg); }
.top { margin: 0 var(--space-2) 6px; }
.top > summary { height: 44px; padding: 0 var(--space-3); border-radius: var(--radius); background: var(--glass-3); font-size: var(--fs-menu-top); font-weight: var(--fw-menu-top); }
.top > summary > i:first-child { font-size: 20px; }
.sub { margin: var(--space-2) 0 0 var(--space-2); }
.sub > summary { height: 38px; padding: 0 var(--space-3); border-radius: var(--radius); background: var(--glass-2); color: var(--ink-soft);
  font-size: var(--fs-menu-sub); font-weight: var(--fw-menu-sub); }
.row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-3) 0 var(--space-4);
  border-radius: var(--radius); font-size: var(--fs-row); font-weight: var(--fw-row); cursor: pointer; }
.row:hover { background: var(--glass-2); }
.row.sub { min-height: 32px; padding-left: calc(var(--space-4) + 22px); color: var(--ink-soft); font-size: var(--fs-chip); }
.switch:disabled { opacity: 0.35; cursor: default; }
.row.slide { grid-template-columns: 22px auto 1fr 44px; cursor: default; }
.row.slide b { text-align: right; font: 600 var(--fs-note) var(--font-num); font-variant-numeric: tabular-nums; }
.slider { width: 100%; min-width: 0; accent-color: #1c7ed6; }
.sw { justify-self: center; width: 18px; }
.sw.line { height: 0; border-top: 3px solid currentColor; }
.sw.dot { width: 11px; height: 11px; border: 2.5px solid currentColor; border-radius: 50%; background: #fff; }
.sw.disc { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: currentColor; }
.sw.fill { height: 11px; border: 1.5px solid currentColor; border-radius: 2px; }
.sw-icon { display: block; justify-self: center; flex: none; }
.row-name { display: flex; align-items: center; gap: 4px; min-width: 0; }
.empty { margin: var(--space-2) var(--space-4); color: var(--ink-faint); font-size: var(--fs-note); }
/* 스위치 */
.switch { appearance: none; position: relative; width: 34px; height: 18px; margin: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.85); cursor: pointer; transition: background 150ms ease; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #6b7b8a; transition: transform 150ms ease, background 150ms ease; }
.switch:checked { background: #dbeeff; }
.switch:checked::after { transform: translateX(16px); background: #1c7ed6; }

/* 메뉴 안의 도구(네트워크) */
.tool { margin: var(--space-2) var(--space-2) 0 var(--space-4); }
.find { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2); }
.find input { min-width: 0; height: 36px; padding: 0 var(--space-2); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(9, 15, 22, 0.6); font-family: var(--font-num); }
.btn { height: 36px; padding: 0 var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass-3); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.msg { margin-top: var(--space-1); color: var(--ink-soft); font-size: var(--fs-note); }
.msg:empty { display: none; }
table { width: 100%; border-collapse: collapse; font-family: var(--font-num); font-variant-numeric: tabular-nums; }
th, td { padding: 7px var(--space-2); text-align: right; font-weight: 400; }
th:first-child, td:first-child { text-align: left; }
thead th { color: var(--ink-faint); font: var(--fw-th) var(--fs-th) var(--font); background: var(--glass-2); }
tbody tr + tr { border-top: 1px solid var(--line); }

/* 떠 있는 정보 창: 왼쪽 메뉴를 피해 아래쪽에 넓게 뜬다 */
.window { left: calc(var(--menu-width) + var(--space-4)); right: var(--space-4); bottom: var(--space-4); max-width: var(--window-width); margin-left: auto;
  max-height: calc(100% - 3 * var(--space-4) - var(--locbar-height, 0px)); overflow-y: auto; }   /* 위로 길어져도 위치 표시 줄 아래에서 멈춘다 */
.window > header { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.window h2 { padding-left: var(--space-2); border-left: 3px solid var(--accent); font-size: var(--fs-win-title); font-weight: var(--fw-win-title); white-space: nowrap; }
.window > header button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: none; cursor: pointer; }
.window > header button:hover { border-color: var(--accent); }
#window-min, #supply-min { margin-left: auto; }
.tag { padding: 2px var(--space-2); border-radius: var(--radius); background: var(--down); color: #1a0d02; font-size: var(--fs-note); font-weight: 600; white-space: nowrap; }
.window.is-min .panes { display: none; }
.window.is-min > header { border-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.crumbs li, .route li { padding: 3px var(--space-2); border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass-2);
  font-size: var(--fs-chip); font-weight: var(--fw-chip); white-space: nowrap; }
.crumbs span, .route span { margin-right: 6px; color: var(--ink-faint); font-size: var(--fs-note); font-weight: 400; }
.crumbs .is-on, .route .is-on { border-color: var(--accent); }
.panes { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-4); align-items: stretch; }
.pane { min-width: 0; padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--pane); }
.pane-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-2); }
.pane h3 { font-size: var(--fs-pane-title); font-weight: var(--fw-pane-title); }
.hint { margin-left: 4px; color: var(--ink-faint); font-size: 0.95em; vertical-align: -1px; cursor: help; }
.pane small { color: var(--ink-faint); font-size: var(--fs-note); }
.pane h4 { margin: var(--space-3) 0 var(--space-2); color: var(--ink-soft); font-size: var(--fs-th); font-weight: var(--fw-th); }
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.totals div { padding: var(--space-2) var(--space-3); border-radius: var(--radius); background: var(--glass-2); }
.totals span { display: block; color: var(--ink-faint); font-size: var(--fs-note); }
.totals b { font: var(--fw-big) var(--fs-big)/1.2 var(--font-num); font-variant-numeric: tabular-nums; }
.totals small { margin-left: 3px; color: var(--ink-soft); font-size: var(--fs-note); font-weight: 400; }
/* 물 흐름 경로: 이름표 사이에 화살표 */
.route { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) 0; margin: 0; padding: 0; list-style: none; }
.route li + li { position: relative; margin-left: 34px; }
.route li + li::before { content: "\2192"; position: absolute; left: -26px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 400; }
/* 네트워크 모식도: 지도 아래쪽에 가로로 길게 뜨는 띠 창 */
.btn:disabled { opacity: 0.45; cursor: default; }
.strip { bottom: var(--space-4); left: calc(var(--menu-width) + var(--space-4)); right: var(--space-4); }
/* 모식도가 아래에 열려 있으면 정보 창은 그 위에 올라앉는다 */
body.has-strip .window { bottom: calc(var(--strip-height) + 2 * var(--space-4)); max-height: calc(100% - var(--strip-height) - 4 * var(--space-4) - var(--locbar-height, 0px)); }
.strip > header { display: flex; align-items: baseline; gap: var(--space-3); padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--line); }
.strip h2 { padding-left: var(--space-2); border-left: 3px solid var(--accent); font-size: var(--fs-pane-title); font-weight: var(--fw-pane-title); white-space: nowrap; }
.strip strong { font-size: var(--fs-chip); font-weight: var(--fw-chip); white-space: nowrap; }
#strip-readout { flex: 1; min-width: 0; overflow: hidden; color: var(--ink-soft); font-size: var(--fs-note); text-overflow: ellipsis; white-space: nowrap; }
.strip > header button { align-self: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: none; cursor: pointer; }
.strip-svg { display: block; cursor: ew-resize; touch-action: none; user-select: none; }
.s-main { stroke: var(--down); stroke-width: 6; stroke-linecap: round; }
.s-main.alt { stroke: #ffa94d; }
.s-up { stroke: var(--up); stroke-width: 6; stroke-linecap: round; }   /* 고른 지점의 상류 쪽 한 줄기 */
.s-up.alt { stroke: color-mix(in srgb, var(--up) 55%, var(--ink)); }
.s-tick { stroke: var(--ink-faint); stroke-width: 1; }
.s-join { stroke: var(--ink-faint); stroke-width: 2; cursor: pointer; }
.s-join.named { stroke: var(--accent); }
.s-join:hover { stroke: #fff; stroke-width: 3; }
.s-label { fill: var(--ink); font: var(--fs-note) var(--font); cursor: pointer; }
.s-label:hover { fill: var(--accent); }
.s-reach { fill: var(--ink-soft); font: 600 var(--fs-note) var(--font); pointer-events: none; }
.s-axis { fill: var(--ink-faint); font: 12px var(--font-num); pointer-events: none; }
.s-fac { stroke: #fff; stroke-width: 1.5; cursor: pointer; }
.s-fac:hover { stroke-width: 3; }
.s-here { fill: var(--down); stroke: #fff; stroke-width: 2.5; pointer-events: none; }
.s-cursor { stroke: #fff; stroke-width: 1.5; stroke-dasharray: 4 3; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.key { display: inline-flex; gap: var(--space-3); color: var(--ink-soft); font-size: var(--fs-note); }
.key i { display: inline-block; width: 20px; margin-right: 6px; border-top: 4px solid; vertical-align: middle; }
.key .down { border-color: var(--down); }
.key .up { border-color: var(--up); }
.raw { margin-top: var(--space-3); border-top: 1px solid var(--line); padding-top: var(--space-2); }
.raw > summary { color: var(--ink-soft); font-size: var(--fs-th); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-4); margin-top: var(--space-2); }
.facts dt { color: var(--ink-soft); }
.facts dd { text-align: right; font-family: var(--font-num); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.modes { display: flex; gap: var(--space-1); margin-bottom: var(--space-2); padding: 3px; border-radius: var(--radius); background: var(--glass-2); }
.mode { flex: 1; height: 32px; border: 0; border-radius: 6px; background: none; color: var(--ink-soft); cursor: pointer; }
.mode:hover { color: var(--ink); }
.mode.is-on { background: var(--accent); color: #08131d; font-weight: 600; }
.picks { display: flex; gap: var(--space-2); margin-bottom: var(--space-2); }
.picks #wq-station { flex: 1.6; }
.picks #wq-item { flex: 1; }
.picks .btn { font-size: var(--fs-chip); }
.picks select { min-width: 0; height: 36px; padding: 0 var(--space-2); border: 1px solid var(--line); border-radius: var(--radius); background: #111a24; }
.chart { display: block; width: 100%; height: auto; }
.chart-axis { fill: var(--ink-faint); font: 10px var(--font-num); }
.galsu-now { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); color: var(--ink-soft); font-size: var(--fs-chip); }
.galsu-now b { padding: 2px var(--space-3); border-radius: 999px; color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.galsu-now span { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.galsu-band { display: block; }
.galsu-tick { stroke: var(--ink-faint); stroke-width: 1; }
.pane h4 small { margin-left: 6px; font-weight: 400; }
.chart-mean { stroke: var(--up); stroke-width: 1; stroke-dasharray: 4 3; }
.period { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); color: var(--ink-soft); }
.period input { min-width: 0; flex: 1; height: 34px; padding: 0 var(--space-2); border: 1px solid var(--line); border-radius: var(--radius); background: #111a24;
  font: var(--fs-chip) var(--font-num); color-scheme: dark; }
.period .btn { height: 34px; font-size: var(--fs-chip); }
.chart-marked { fill: none; stroke: #ffa94d; stroke-width: 1.2; }
.chart-readout { margin: 0 0 var(--space-2); color: var(--ink-soft); font: var(--fs-note) var(--font-num); font-variant-numeric: tabular-nums; }
/* 갈수예보지점 정보(galsu.js): 기준유량 선이 있는 유량 그래프는 평균선을 그리지 않는다(점선이 겹쳐 헷갈림). 상류 시설은 보라, 하류 지점은 주황 */
#galsu-chart .chart-mean { display: none; }
#galsu-card .scroll { max-height: 220px; overflow-y: auto; }
.stage-tag { display: inline-block; padding: 0 var(--space-2); border-radius: 999px; color: #fff; font: 600 var(--fs-note) var(--font); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.ring { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 2.5px solid; border-radius: 50%; vertical-align: -1px; }
.ring.up, .chip.up { border-color: var(--up); }
.ring.down, .chip.down { border-color: var(--down); }
.chip:disabled { opacity: 0.45; cursor: default; }
.chip .km { color: var(--ink-soft); font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.related { display: grid; grid-template-columns: 9.5em 1fr; gap: var(--space-2); align-items: start; padding: var(--space-1) 0; }
.related + .related { border-top: 1px solid var(--line); }
.related > b { padding-top: 3px; color: var(--ink-soft); font-size: var(--fs-th); font-weight: var(--fw-th); }

/* 급수 계통 창: 가운데 연결도를 넓게 */
.panes.supply { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 0.9fr); }
#facility-supply { margin-top: var(--space-2); }
.diagram { display: block; user-select: none; }
.d-head { fill: var(--ink-faint); font: var(--fw-th) var(--fs-th) var(--font); }
.d-link { fill: none; stroke: var(--ink-faint); stroke-width: 1.2; opacity: 0.55; }
.d-link.is-down { stroke: var(--down); stroke-width: 1.6; opacity: 0.9; }
.d-link.is-up { stroke: var(--up); stroke-width: 1.6; opacity: 0.9; }
.d-node { cursor: pointer; }
.d-node rect { fill: var(--glass-2); stroke: var(--line); }
.d-node text { fill: var(--ink); font: var(--fs-th) var(--font); pointer-events: none; }
.d-node:hover rect, .d-node:focus-visible rect { stroke: var(--accent); }
.d-node:focus-visible { outline: none; }
.d-node.is-up rect { fill: rgba(177, 151, 252, 0.18); stroke: var(--up); }
.d-node.is-down rect { fill: rgba(255, 122, 26, 0.14); stroke: var(--down); }
.d-node.is-on rect { fill: var(--down); stroke: var(--down); }
.d-node.is-on text { fill: #1a0d02; font-weight: 600; }
.d-more { fill: var(--ink-faint); font: var(--fs-note) var(--font); }
.chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; max-height: 300px; overflow-y: auto; }
.chip { padding: 3px var(--space-2); border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass-2); font-size: var(--fs-th); cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip.still { cursor: default; }
.chip.still:hover { border-color: var(--line); }
/* 정수장별 목록 */
.chips.by-plant { display: block; }
.plant-card { padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass-2); }
.plant-card + .plant-card { margin-top: var(--space-2); }
.plant-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); margin-bottom: 6px; }
.plant-head b { font: 600 var(--fs-chip) var(--font-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plant-name { padding: 0; border: 0; background: none; font-weight: 600; text-align: left; cursor: pointer; }
.plant-name:hover { color: var(--accent); }
.plant-card .chips { max-height: none; overflow: visible; }
.more { align-self: center; color: var(--ink-faint); font-size: var(--fs-note); }
.chip.is-on { border-color: var(--down); background: var(--down); color: #1a0d02; font-weight: 600; }

/* 수계 모식도 창: 떠 있는 창. 처음에는 오른쪽에 위아래로 길게 뜨고(위치 표시 줄 아래), 머리줄을 끌어 옮긴다.
   다른 창(정보·띠·급수 계통·분석)의 자리와 너비는 바꾸지 않고, 겹치면 늘 그 위에 뜬다(z-index 3) */
.diagram-panel { z-index: 3; top: calc(2 * var(--space-4) + var(--locbar-height, 0px)); right: var(--space-4); bottom: var(--space-4); width: var(--diagram-width);
  display: flex; flex-direction: column; }
.diagram-panel > header { display: flex; align-items: baseline; gap: var(--space-3); padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--line);
  cursor: move; touch-action: none; user-select: none; }
.diagram-panel h2 { padding-left: var(--space-2); border-left: 3px solid var(--accent); font-size: var(--fs-pane-title); font-weight: var(--fw-pane-title); white-space: nowrap; }
.diagram-panel strong { flex: 1; min-width: 0; overflow: hidden; font-size: var(--fs-note); font-weight: 600; color: var(--ink-soft); text-overflow: ellipsis; white-space: nowrap; }
.diagram-panel > header button { align-self: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: none; cursor: pointer; }
.diagram-kinds { display: flex; flex-wrap: wrap; gap: 6px; padding: var(--space-2) var(--space-4) 0; }
.kind { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 var(--space-2); border: 1px solid var(--line); border-radius: var(--radius);
  background: none; color: var(--ink-faint); font-size: var(--fs-note); cursor: pointer; }
.kind[aria-pressed="true"] { border-color: var(--accent); background: var(--glass-2); color: var(--ink); }
.kind:not([aria-pressed="true"]) > :first-child { opacity: 0.4; }
.diagram-readout { min-height: 1.45em; padding: var(--space-1) var(--space-4); color: var(--ink-soft); font: var(--fs-note) var(--font-num); font-variant-numeric: tabular-nums; }
#diagram-plot { flex: 1; min-height: 0; overflow-y: auto; }
.diagram-svg { display: block; user-select: none; }
.g-main { stroke: var(--accent); stroke-width: 5; stroke-linecap: round; pointer-events: none; }
.g-branch { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; opacity: 0.75; pointer-events: none; }
.g-main.is-down, .g-branch.is-down { stroke: var(--down); opacity: 1; }
.g-main.is-up, .g-branch.is-up { stroke: var(--up); opacity: 1; }
.g-stub { stroke: var(--ink-faint); stroke-width: 1.5; stroke-dasharray: 3 3; pointer-events: none; }
.g-hit { fill: none; stroke: transparent; stroke-width: 16; stroke-linejoin: round; cursor: pointer; }
.g-tick { stroke: var(--ink-faint); stroke-width: 1; }
.g-axis { fill: var(--ink-faint); font: var(--fs-note) var(--font-num); pointer-events: none; }
.g-name { fill: var(--ink); font: 600 var(--fs-th) var(--font); pointer-events: none; }
.g-label { fill: var(--ink-soft); font: var(--fs-note) var(--font); pointer-events: none; }
.g-name, .g-label { paint-order: stroke; stroke: var(--glass); stroke-width: 4px; stroke-linejoin: round; }   /* 줄 위에 걸쳐도 글자가 읽히게 */
.g-fac { cursor: pointer; }
.g-galsu { stroke: var(--ink); stroke-width: 2; }
.g-fac:hover { filter: brightness(1.25); }
.g-here { fill: none; stroke: var(--down); stroke-width: 3; pointer-events: none; }

/* 지도 위 시설에 마우스를 올리면 뜨는 작은 카드 */
.hover-card { pointer-events: none; z-index: 3; }
.hover-card .maplibregl-popup-content { min-width: 260px; max-width: 520px; padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius);
  background: #111a24; color: var(--ink); box-shadow: var(--shadow); font: var(--fw-body) var(--fs-body)/1.45 var(--font); }
.hover-card .maplibregl-popup-tip { display: none; }
.hover-card strong { display: block; margin: var(--space-1) 0 var(--space-2); font-size: var(--fs-pane-title); font-weight: var(--fw-pane-title); }
.hover-card .facts { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.badge { display: inline-block; padding: 2px var(--space-2); border-radius: 999px; background: var(--glass-3); color: var(--ink-soft); font-size: var(--fs-note); font-weight: 600; }
/* 위치 표시 줄: 지도 오른쪽 위 */
.locbar { top: var(--space-4); right: var(--space-4); display: flex; align-items: center; padding: var(--space-2) var(--space-1); font-size: var(--fs-chip); white-space: nowrap; }
.locbar > span { display: inline-flex; align-items: center; gap: 6px; padding: 0 var(--space-3); color: var(--accent); font-size: var(--fs-note); font-weight: 600; }
.locbar > span + span { border-left: 1px solid var(--line); }
.locbar b { color: var(--ink); font: 600 var(--fs-chip) var(--font-num); font-variant-numeric: tabular-nums; }
.locbar #loc-name { font-family: var(--font); }
.locbar i { color: var(--ink); font-size: 18px; }

.status { top: var(--space-4); left: calc(var(--menu-width) + var(--space-4)); padding: var(--space-1) var(--space-3); font-size: var(--fs-note); }
.status:empty { display: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* 분석 창(analysis.js): 왼쪽 목록, 오른쪽 고른 지점. 목록 줄을 누르면 그 지점을 고른다 */
#analysis-min { margin-left: auto; }
.panes.analysis { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.panes.analysis[data-kind="tmdl"] { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }   /* 총량 순위 표는 칸이 많다. 머리글이 한 줄에 들어가는 너비 */
.panes.analysis[data-kind="tmdl"] .analysis-list thead th { white-space: nowrap; }
.analysis-list td { white-space: nowrap; }
.analysis-list thead th { font-size: var(--fs-note); }
.analysis-list td.name { white-space: nowrap; }
table.grades th, table.grades td { text-align: center; }
table.grades th:first-child, table.grades td.name { text-align: left; }
.analysis-list { max-height: 320px; margin-top: var(--space-2); overflow-y: auto; }
.analysis-list thead th { position: sticky; top: 0; background: var(--glass); }
.analysis-list tbody tr[data-code] { cursor: pointer; }
.analysis-list tbody tr[data-code]:hover, .analysis-list tbody tr.is-on { background: var(--glass-3); }
.analysis-list tbody tr.is-on td:first-child { box-shadow: inset 3px 0 0 var(--down); }
.analysis-list td.name { font-family: var(--font); text-align: left; }
.analysis-list td small { margin-left: 4px; color: var(--ink-faint); font-size: var(--fs-note); }
.grade { display: inline-block; min-width: 24px; padding: 0 6px; border-radius: 999px; background: var(--glass-3); color: #fff; text-align: center;
  font: 700 var(--fs-note) var(--font-num); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
#analysis-controls .picks { margin-bottom: 0; }
#analysis-controls .picks select { flex: 1; }
