/* 열제약 분석 — 화면 공통 스타일
   글꼴: IBM Plex Sans KR. 색: 차분한 청회색 바탕 + 상호작용은 파랑 하나, 열(熱)은 주황 단계로만. */
:root {
  --ink: #16222e;
  --ink-2: #4b5967;
  --ink-3: #7e8a96;
  --page: #eef1f4;
  --panel: #ffffff;
  --panel-2: #f7f9fa;
  --line: #d9dfe5;
  --line-soft: #e8ecf0;
  --nav: #0f2230;
  --nav-2: #1a3345;
  --nav-ink: #b9c6d2;
  --accent: #1e6bb8;
  --accent-ink: #164f8a;
  --accent-soft: #e4eef8;
  --good: #13771e;
  --good-bg: #e6f4e7;
  --warn: #8a5a00;
  --warn-bg: #fdf3dc;
  --bad: #b42d2d;
  --bad-bg: #fbe9e9;
  --run: #1e6bb8;
  --run-bg: #e4eef8;
  /* 열 단계 (288칸·로고) */
  --heat-0: #f4f6f8;
  --heat-1: #fde7d4;
  --heat-2: #f8c49c;
  --heat-3: #f09662;
  --heat-4: #e06a32;
  --heat-5: #b4471a;
  --radius: 6px;
  --font: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --shadow-pop: 0 6px 24px rgba(15, 34, 48, .14);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 14px/1.6 var(--font); letter-spacing: -0.005em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: 22px; line-height: 1.3; }
h2 { font-size: 16px; line-height: 1.4; }
h3 { font-size: 14px; }
p { margin: 0; }
.num, td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.muted { color: var(--ink-3); }
.sub { color: var(--ink-2); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- 앱 틀 ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--nav) 232px, transparent 232px); }
.side { background: var(--nav); color: var(--nav-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 12px; align-items: center; padding: 20px 20px 18px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; text-decoration: none; }
.brand-name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.brand-org { font-size: 12px; color: var(--nav-ink); }
.glyph { display: block; flex: none; }
.side nav { display: flex; flex-direction: column; padding: 8px 10px; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px; color: var(--nav-ink); font-size: 14px; }
.side nav a:hover { background: var(--nav-2); color: #fff; text-decoration: none; }
.side nav a.on { background: var(--nav-2); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--heat-3); }
.side nav svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.side-foot { margin-top: auto; padding: 16px 20px 20px; border-top: 1px solid var(--nav-2); font-size: 12px; }
.side-foot .who { color: #fff; font-size: 13px; }
.side-foot a { color: var(--nav-ink); }
.side-foot a:hover { color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 52px; display: flex; align-items: center; gap: 16px; padding: 0 28px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.crumb { font-size: 13px; color: var(--ink-3); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb b { color: var(--ink); font-weight: 600; }
.conn { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); display: inline-block; }
.conn.ok i { background: #0ca30c; }
.conn.bad i { background: var(--bad); }
.menu-btn { display: none; }
.content { padding: 24px 28px 48px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .t { flex: 1; min-width: 240px; }
.page-head p { color: var(--ink-2); margin-top: 4px; max-width: 72ch; }
.foot { color: var(--ink-3); font-size: 12px; padding: 0 28px 24px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); background: none; }
  .side { position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 50; transform: translateX(-100%); transition: transform .18s ease; }
  .side.open { transform: none; box-shadow: var(--shadow-pop); }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px 16px 40px; }
  .foot { padding: 0 16px 20px; }
  .scrim { position: fixed; inset: 0; background: rgba(15, 34, 48, .35); z-index: 40; }
}

/* ---------- 패널·구획 ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.panel + .panel, .panel + .cols, .cols + .panel, .cols + .cols, .kpis + .panel, .kpis + .cols, .filters + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.panel-head h2 { flex: 1; min-width: 160px; font-size: 15px; }
.panel-head .hint { color: var(--ink-3); font-size: 12px; }
.panel-head .btn { height: 30px; }
.panel-head .seg button { height: 26px; }
.panel-body { padding: 16px 18px; }
.panel-body.flush { padding: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cols.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .cols, .cols.even { grid-template-columns: minmax(0, 1fr); } }
.cols > .panel + .panel { margin-top: 0; }
.content > .note { margin-bottom: 16px; }

/* 지표 줄: 한 패널 안을 칸막이로 나눈다 */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.kpi { padding: 14px 18px 16px; border-left: 1px solid var(--line-soft); min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi .k { font-size: 12px; color: var(--ink-2); }
.kpi .v { font-size: 24px; font-weight: 600; line-height: 1.3; margin-top: 4px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v small { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-left: 3px; letter-spacing: 0; }
.kpi .d { font-size: 12px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 표 ---------- */
.tbl-wrap { overflow: auto; }
table.tbl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.tbl th, .tbl td { padding: 9px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; white-space: nowrap; }
.tbl thead th { position: sticky; top: 0; background: var(--panel-2); color: var(--ink-2); font-weight: 500; font-size: 12px; border-bottom: 1px solid var(--line); z-index: 1; }
.tbl thead th.sortable { cursor: pointer; user-select: none; }
.tbl thead th.sortable:hover { color: var(--ink); }
.tbl thead th .arrow { display: inline-block; width: 10px; color: var(--accent); margin-left: 2px; }
.tbl tbody tr:hover td { background: #f6f9fc; }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl tbody tr.sel td { background: var(--accent-soft); }
.tbl tbody tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.tbl td.wrap { white-space: normal; min-width: 220px; color: var(--ink-2); }
.tbl td.clip { max-width: 320px; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.tbl td .code { color: var(--ink-3); font-size: 12px; margin-left: 6px; }
.tbl tr.dim td { color: var(--ink-3); }
.tbl .unit { color: var(--ink-3); font-weight: 400; margin-left: 2px; }
.pager { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--ink-2); }
.pager .sp { flex: 1; }
.empty { padding: 36px 20px; text-align: center; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.empty .btn { margin-top: 14px; }

/* ---------- 상태 표시 (아이콘 + 글) ---------- */
.st { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--line-soft); color: var(--ink-2); }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.good { background: var(--good-bg); color: var(--good); }
.st.warn { background: var(--warn-bg); color: var(--warn); }
.st.bad { background: var(--bad-bg); color: var(--bad); }
.st.run { background: var(--run-bg); color: var(--run); }
.st.run::before { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- 입력 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 500 13px var(--font); cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: #b8c2cc; text-decoration: none; color: var(--ink); background: var(--panel-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--line-soft); }
.btn.danger { color: var(--bad); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.field .help { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
input, select, textarea { font: 13px var(--font); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; height: 34px; padding: 0 10px; min-width: 0; }
textarea { height: auto; padding: 8px 10px; }
input:hover, select:hover { border-color: #b8c2cc; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox] { width: 16px; height: 16px; padding: 0; accent-color: var(--accent); }
input.bad { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }

/* 여럿 중 하나 */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 2px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 12px; border-radius: 4px; font: 500 13px var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--ink); background: var(--panel-2); }
.seg button.on { background: var(--ink); color: #fff; }
.seg button[disabled] { opacity: .35; pointer-events: none; }

/* 필터 줄 */
.filters { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.filters .grow { flex: 1; }
.filters .field { min-width: 120px; }
.daterange { display: flex; gap: 6px; align-items: center; }
.daterange input { width: 128px; }

/* 여러 개 고르기 */
.ms { position: relative; min-width: 160px; }
.ms > button { width: 100%; height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); font: 13px var(--font); color: var(--ink); cursor: pointer; text-align: left; position: relative; max-width: 240px; }
.ms > button:hover { border-color: #b8c2cc; }
.ms > button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms > button::after { content: ""; position: absolute; right: 12px; top: 13px; width: 6px; height: 6px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); }
.ms .pop { position: absolute; z-index: 30; top: 38px; left: 0; width: 300px; max-width: 86vw; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-pop); }
.ms .pop input { width: calc(100% - 16px); margin: 8px; }
.ms .opts { max-height: 280px; overflow: auto; padding: 0 4px 6px; }
.ms label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; font-size: 13px; cursor: pointer; }
.ms label:hover { background: var(--panel-2); }
.ms label .n { margin-left: auto; color: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.ms label .c { color: var(--ink-3); font-size: 11px; }
.ms .pop-foot { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line-soft); }

/* 알림 */
.note { padding: 10px 14px; border-radius: 6px; font-size: 13px; border: 1px solid; }
.note.bad { background: var(--bad-bg); border-color: #f0c7c7; color: #7f1d1d; }
.note.warn { background: var(--warn-bg); border-color: #f1dca8; color: #6b4600; }
.note.info { background: var(--accent-soft); border-color: #c8dbef; color: var(--accent-ink); }
.loading { opacity: .45; transition: opacity .15s; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: rot .8s linear infinite; vertical-align: -2px; }
@keyframes rot { to { transform: rotate(360deg); } }

/* 정의 목록 */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 7px 18px; font-size: 13px; margin: 0; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* 목록 */
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: 10px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 그래프 상자: 축 글자까지 포함한 높이 */
.chart { width: 100%; height: 340px; }
.chart.tall { height: 420px; }
.chart.short { height: 260px; }
/* 288칸은 칸 안에 숫자를 쓰므로 좁은 화면에서는 가로로 밀어 본다 */
.hscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hscroll > .heat288 { min-width: 860px; }

/* ---------- 개요: 자료 범위 ---------- */
.span-axis, .span-row { display: grid; grid-template-columns: minmax(150px, 230px) 1fr 92px; gap: 14px; align-items: center; padding: 0 18px; }
.span-axis { height: 30px; font-size: 11px; color: var(--ink-3); border-bottom: 1px solid var(--line-soft); }
.span-axis .ticks { position: relative; height: 100%; }
.span-axis .ticks span { position: absolute; top: 8px; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.span-group { padding: 10px 18px 4px; font-size: 12px; color: var(--ink-2); font-weight: 600; background: var(--panel-2); border-bottom: 1px solid var(--line-soft); }
.span-row { height: 34px; border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; font-size: 13px; }
.span-row:hover { background: #f6f9fc; text-decoration: none; color: var(--ink); }
.span-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.span-row .track { position: relative; height: 10px; background: repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px calc(100% / var(--years, 16))); border-radius: 2px; }
.span-row .bar { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 3px; min-width: 3px; }
.span-row .bar.static { background: var(--ink-3); }
.span-row .rows { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 12px; }
@media (max-width: 700px) {
  .span-axis, .span-row { grid-template-columns: 120px 1fr 64px; gap: 8px; padding: 0 12px; }
}

/* ---------- 자료 탐색 ---------- */
.explore { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 16px; align-items: start; }
.catalog { position: sticky; top: 68px; max-height: calc(100vh - 84px); overflow: auto; }
.catalog .grp { padding: 12px 16px 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.catalog a { display: block; padding: 7px 16px 7px 13px; border-left: 3px solid transparent; color: var(--ink); font-size: 13px; line-height: 1.4; }
.catalog a:hover { background: var(--panel-2); text-decoration: none; }
.catalog a.on { background: var(--accent-soft); border-left-color: var(--accent); }
.catalog a small { display: block; color: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.ds-head { padding: 16px 18px; display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.ds-head .t { flex: 1; min-width: 240px; }
.ds-head h2 { font-size: 18px; }
.ds-head p { color: var(--ink-2); margin-top: 4px; font-size: 13px; max-width: 80ch; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.facts b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-top: 1px solid var(--line-soft); }
.stats div { padding: 10px 18px; border-left: 1px solid var(--line-soft); }
.stats div:first-child { border-left: 0; }
.stats span { display: block; font-size: 12px; color: var(--ink-3); }
.stats b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .explore { grid-template-columns: minmax(0, 1fr); } .catalog { position: static; max-height: 300px; } }

/* ---------- 결과 ---------- */
.legend-ramp { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.legend-ramp i { display: inline-block; width: 120px; height: 8px; border-radius: 2px; }
.formula { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.formula b { color: var(--ink); font-weight: 600; }
.cmp td .bar { display: inline-block; height: 6px; background: var(--heat-4); border-radius: 0 3px 3px 0; vertical-align: middle; margin-left: 8px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 9px 18px; border-bottom: 1px solid var(--line-soft); font-size: 13px; align-items: baseline; }
.checks li:last-child { border-bottom: 0; }
.checks .d { color: var(--ink-3); font-size: 12px; display: block; }
.progress { height: 4px; background: var(--line-soft); border-radius: 2px; overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .4s ease; }

/* ---------- 분석 실행 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px 20px; }
.plant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.plant-pick { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; background: var(--panel); }
.plant-pick:hover { border-color: #b8c2cc; }
.plant-pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.plant-pick b { font-weight: 600; font-size: 13px; display: block; }
.plant-pick small { color: var(--ink-3); font-size: 12px; }
.actionbar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--panel); border-radius: var(--radius); flex-wrap: wrap; }
.actionbar .grow { flex: 1; color: var(--ink-2); font-size: 13px; }
pre.json { margin: 0; padding: 14px 18px; background: var(--panel-2); font-size: 12px; overflow: auto; max-height: 360px; border-top: 1px solid var(--line-soft); }

/* ---------- 로그인 ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); background: var(--panel); }
.login-art { background: var(--nav); color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; gap: 48px; }
.login-art h1 { font-size: 30px; line-height: 1.35; max-width: 24ch; }
.login-art p { color: var(--nav-ink); margin-top: 12px; max-width: 46ch; }
.login-art .grid288 { width: 100%; max-width: 560px; }
.login-art .axis { display: flex; justify-content: space-between; color: var(--nav-ink); font-size: 11px; max-width: 560px; margin-top: 6px; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-form form { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 16px; }
.login-form h2 { font-size: 20px; }
.login-form input { height: 42px; font-size: 14px; }
.login-form .btn { height: 42px; font-size: 14px; }
@media (max-width: 860px) {
  .login-page { grid-template-columns: 1fr; }
  .login-art { padding: 32px 24px; }
  .login-art h1 { font-size: 24px; }
}

/* 알고리즘 설명 */
.algo-info { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 6px; padding: 12px 14px; font-size: 13px; }
.algo-info:empty { display: none; }
.algo-info .ttl { margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.algo-info .ttl b { font-weight: 600; color: var(--ink); }
.algo-info .lead { color: var(--ink); line-height: 1.65; }
.algo-info .sub { margin-top: 6px; }
.algo-info details { margin-top: 8px; }
.algo-info summary { cursor: pointer; color: var(--accent); font-size: 12px; padding: 2px 0; }
.algo-info h3 { font-size: 12px; color: var(--ink-2); margin: 12px 0 4px; font-weight: 600; }
.algo-info ol, .algo-info ul { margin: 0; padding-left: 20px; color: var(--ink-2); line-height: 1.6; }
.algo-info li + li { margin-top: 3px; }
/* 대표 표시 */
.tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; background: var(--accent-soft); color: var(--accent-ink); margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.seq { font-weight: 600; font-variant-numeric: tabular-nums; }
.tbl.ov td { padding-top: 6px; padding-bottom: 6px; }
.tbl.ov input { height: 30px; }
.tbl.ov input::placeholder { color: #9aa6b2; }
.tbl.ov input.edited { border-color: #d9a22b; background: var(--warn-bg); }
