/* MUSTANG PIT-STOP — 계기판 디자인 시스템 (정본: design-ref/07, variant 추출) */
@font-face { font-family: 'Paperlogy'; font-weight: 100; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-1Thin.woff2') format('woff2'); }
@font-face { font-family: 'Paperlogy'; font-weight: 200; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-2ExtraLight.woff2') format('woff2'); }
@font-face { font-family: 'Paperlogy'; font-weight: 300; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-3Light.woff2') format('woff2'); }
@font-face { font-family: 'Paperlogy'; font-weight: 400; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2'); }
@font-face { font-family: 'Paperlogy'; font-weight: 500; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2') format('woff2'); }
@font-face { font-family: 'Paperlogy'; font-weight: 600; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Paperlogy'; font-weight: 700; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2'); }
@font-face { font-family: 'Paperlogy'; font-weight: 800; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'Paperlogy'; font-weight: 900; font-display: swap; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-9Black.woff2') format('woff2'); }
:root {
  /* 페이퍼 틸 — 라이트 모드 (2026-08-25 다크 → 라이트 전환) */
  --bg-midnight: #F6F8F8;
  --panel-bg: #FFFFFF;
  --border-teal: rgba(11, 105, 114, 0.35);
  --border-teal-dim: rgba(11, 105, 114, 0.16);
  --border-teal-bright: rgba(11, 105, 114, 0.75);
  --text-strong: #17272B;
  --text-teal: #0B6972;
  --text-body: #3A474B;
  --text-dim: #7C8B8E;
  --signal-red: #D93025;
  --signal-red-glow: rgba(217, 48, 37, 0.12);
  --gold: #CA8A04;
  --good: #1E8E3E;
  --accent-glow: rgba(11, 105, 114, 0.04);
  --font-main: 'Paperlogy', 'IBM Plex Sans KR', -apple-system, 'Malgun Gothic', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'Paperlogy', Consolas, monospace;
  --chart-teal: #0D9488;
  --chart-teal-deep: #0F766E;
  --sidebar-width: 220px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-midnight);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(11, 105, 114, 0.02) 0%, transparent 80%),
    radial-gradient(rgba(11, 105, 114, 0.1) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px;
  color: var(--text-body);
  font-family: var(--font-main);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ── 앱 프레임 ── */
.app-container { display: flex; min-height: 100vh; }
aside {
  width: var(--sidebar-width);
  border-right: 1px solid var(--border-teal);
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; height: 100vh; z-index: 100;
  flex-shrink: 0;
}
.brand { padding: 22px 24px; border-bottom: 1px solid var(--border-teal); display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 12px; height: 12px; border: 1px solid var(--text-teal); transform: rotate(45deg); flex-shrink: 0; }
.brand-name { font-family: var(--font-mono); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-teal); }
nav { padding: 18px 0; flex-grow: 1; }
.nav-item {
  padding: 10px 24px; display: flex; align-items: center; gap: 12px;
  color: var(--text-dim); text-decoration: none;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; font-weight: 500;
  transition: all 0.2s; position: relative;
}
.nav-item:hover, .nav-item.active { color: var(--text-teal); background: var(--accent-glow); }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 25%; height: 50%; width: 2px;
  background: var(--text-teal); box-shadow: 0 0 8px var(--text-teal);
}
.side-foot { padding: 18px 24px; border-top: 1px solid var(--border-teal); font-size: 9px; color: var(--text-dim); font-family: var(--font-mono); line-height: 1.7; }

main { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; }
header.topbar {
  height: 56px; border-bottom: 1px solid var(--border-teal);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(5px);
  position: sticky; top: 0; z-index: 90; gap: 12px;
}
.account-switcher {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--border-teal); background: rgba(11, 105, 114, 0.05);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-teal); white-space: nowrap;
}
.plan-chip { font-family: var(--font-mono); font-size: 9px; padding: 1px 7px; border: 1px solid currentColor; text-transform: uppercase; }
.tier-apex { color: var(--signal-red); }
.tier-growth { color: var(--text-teal); }
.tier-lite { color: var(--text-dim); }
.tier-one { color: #8A8F98; }
.date-picker { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); white-space: nowrap; }
.demo-chip { font-family: var(--font-mono); font-size: 9px; color: var(--gold); border: 1px dashed var(--gold); padding: 2px 7px; white-space: nowrap; }

/* ── 그리드·카드 ── */
.content-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; padding: 24px 28px 80px; }
.section-anchor { grid-column: span 12; scroll-margin-top: 70px; }
.card { background: var(--panel-bg); border: 1px solid var(--border-teal); position: relative; backdrop-filter: blur(8px); }
.card::before, .card::after { content: ''; position: absolute; width: 4px; height: 4px; border: 1px solid var(--border-teal-bright); }
.card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.card-header { padding: 12px 16px; border-bottom: 1px solid var(--border-teal); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-title { font-family: var(--font-mono); font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--text-strong); letter-spacing: 0.06em; }
.card-note { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); }
.card-body { padding: 16px; }
.spanfull { grid-column: span 12; }
.span8 { grid-column: span 8; }
.span6 { grid-column: span 6; }
.span4 { grid-column: span 4; }
@media (max-width: 1100px) { .span8, .span6, .span4 { grid-column: span 12; } }

/* ── KPI ── */
.kpi-row { grid-column: span 12; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
.kpi-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.kpi-label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--chart-teal-deep); font-family: var(--font-mono); letter-spacing: 0.06em; }
.kpi-value { font-family: var(--font-main); font-size: 27px; font-weight: 800; color: var(--text-strong); white-space: nowrap; letter-spacing: 0.01em; }
.delta { font-size: 10px; font-family: var(--font-mono); display: flex; align-items: center; gap: 4px; }
.delta.positive { color: var(--text-teal); }
.delta.good { color: var(--good); }
.delta.negative { color: var(--signal-red); text-shadow: 0 0 5px var(--signal-red-glow); }
.delta.warn { color: var(--gold); }

/* ── 핵심 지표 레이어 ── */
.kpi-row.k8 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .kpi-row.k8 { grid-template-columns: repeat(2, 1fr); } }
.kpi-note { font-size: 11px; color: var(--text-dim); margin-top: 6px; line-height: 1.5; word-break: keep-all; }
.delta.nt-d { color: var(--text-dim); }
.mtabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 16px 0; }
.mtab { background: transparent; border: 1px solid var(--border-teal-dim); color: var(--text-dim); font-family: var(--font-mono); font-size: 11px; padding: 5px 13px; cursor: pointer; transition: all 0.15s; }
.mtab:hover { color: var(--text-teal); border-color: var(--border-teal); }
.mtab.on { color: var(--bg-midnight); background: var(--text-teal); border-color: var(--text-teal); font-weight: 700; }
.mnote { padding: 0 16px 14px; font-size: 12.5px; color: var(--text-body); word-break: keep-all; }
.mnote b { color: var(--text-teal); }
.rangebar { grid-column: span 12; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.range-inputs { display: inline-flex; gap: 6px; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); margin-left: 6px; }
.range-inputs input[type=date] { background: transparent; border: 1px solid var(--border-teal-dim); color: var(--text-teal); font-family: var(--font-mono); font-size: 11px; padding: 4px 8px; color-scheme: dark; }
.range-inputs input[type=date]:focus { outline: none; border-color: var(--text-teal); }

/* ── 소재 갤러리 ── */
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 16px; }
.cr-card { border: 1px solid var(--border-teal-dim); background: rgba(11, 105, 114, 0.02); }
.cr-thumb { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; background: #10161A; }
.cr-none { display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-family: var(--font-mono); font-size: 10px; text-align: center; line-height: 1.6; }
.cr-meta { padding: 9px 10px; }
.cr-name { font-size: 11px; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.cr-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; font-size: 9.5px; font-family: var(--font-mono); color: var(--text-dim); }
.cr-stats b { color: var(--text-teal); font-weight: 500; }

/* ── 차트 (pitstop.js 클래스 리스킨) ── */
.chartwrap { overflow-x: auto; padding: 8px 16px 16px; }
svg.ps { display: block; width: 100%; height: auto; overflow: visible; }
.gridline { stroke: rgba(11, 105, 114, 0.1); stroke-width: 1; }
.axis { font-size: 10px; fill: var(--text-dim); font-family: var(--font-mono); }
.dlabel { font-size: 10.5px; fill: var(--chart-teal-deep); font-family: var(--font-mono); font-weight: 700; }
.capline { stroke: #E5484D; stroke-width: 1.3; stroke-dasharray: 5 5; }
.caplabel { font-size: 10px; fill: var(--signal-red); font-family: var(--font-mono); font-weight: 700; }
.bar { fill: rgba(13, 148, 136, 0.65); }
.bar:hover { fill: var(--chart-teal); }
.capband { fill: #E5484D; opacity: 0.045; }
.avgline { stroke: var(--text-dim); stroke-dasharray: 4 4; stroke-width: 1.2; }
.data-line { stroke: var(--chart-teal); stroke-width: 2.2; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.area-fill { fill: url(#psgrad); }
.pt-dot { fill: #E5484D; stroke: #fff; stroke-width: 1.5; }
.pt-hover { fill: #fff; stroke: var(--chart-teal); stroke-width: 2; pointer-events: none; }
.hit { fill: transparent; }
#tt {
  position: fixed; pointer-events: none; z-index: 500; white-space: nowrap;
  background: var(--bg-midnight); color: var(--text-teal);
  border: 1px solid var(--border-teal-bright);
  font-family: var(--font-mono); font-size: 11px; padding: 5px 9px;
  opacity: 0; transition: opacity 0.12s;
}

/* ── 시나리오(착지 예측) ── */
.forecast-comparison { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.scenario { padding: 12px 14px; border: 1px solid var(--border-teal); background: rgba(11, 105, 114, 0.03); }
.scenario.em { border-color: var(--text-teal); box-shadow: inset 0 0 12px rgba(11, 105, 114, 0.06); }
.scenario-name { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); margin-bottom: 6px; text-transform: uppercase; }
.scenario-value { font-family: var(--font-mono); font-size: 20px; color: var(--text-strong); }
.scenario-sub { font-size: 10.5px; font-family: var(--font-mono); margin-top: 4px; color: var(--text-dim); }

/* ── 테이블 ── */
.tblwrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; padding: 11px 16px; color: var(--text-dim); text-transform: uppercase; font-size: 10px; font-family: var(--font-mono); border-bottom: 1px solid var(--border-teal); white-space: nowrap; }
td { padding: 11px 16px; border-bottom: 1px solid rgba(11, 105, 114, 0.1); vertical-align: top; }
tr:last-child td { border-bottom: none; }
td.r, th.r { text-align: right; white-space: nowrap; }
.status-pill { display: inline-block; padding: 2px 8px; border: 1px solid currentColor; font-size: 9px; font-family: var(--font-mono); text-transform: uppercase; white-space: nowrap; }
.status-pill.scale { color: var(--good); }
.status-pill.watch { color: var(--gold); }
.status-pill.fix { color: var(--signal-red); box-shadow: inset 0 0 4px var(--signal-red-glow); }

/* ── AI 진단 패널 ── */
.diagnosis-flow { padding: 18px 20px; display: flex; flex-direction: column; gap: 18px; }
.step { display: flex; gap: 16px; }
.step-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); width: 92px; flex-shrink: 0; padding-top: 2px; text-transform: uppercase; }
.step-content { flex-grow: 1; font-size: 13px; color: var(--text-body); word-break: keep-all; }
.step-content b { color: var(--text-strong); }
.evidence-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(11, 105, 114, 0.08); border: 1px solid var(--border-teal);
  padding: 2px 8px; font-size: 10px; font-family: var(--font-mono);
  margin: 6px 6px 0 0; color: var(--text-teal);
}
.evidence-chip::before { content: ''; width: 4px; height: 4px; background: var(--text-teal); }
.evidence-chip.confirmed { border-color: var(--good); color: var(--good); }
.evidence-chip.confirmed::before { background: var(--good); }
@media (max-width: 700px) { .step { flex-direction: column; gap: 4px; } .step-label { width: auto; } }

/* ── ASK AI (사전계산 Q&A) ── */
.qa { border: 1px solid var(--border-teal); background: var(--panel-bg); margin-bottom: 10px; }
.qa summary { list-style: none; cursor: pointer; padding: 13px 16px; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--text-strong); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .qic { color: var(--text-teal); font-family: var(--font-mono); font-size: 11px; flex-shrink: 0; }
.qa summary .fresh { margin-left: auto; font-family: var(--font-mono); font-size: 9px; color: var(--text-dim); white-space: nowrap; font-weight: 400; }
.qa[open] summary { border-bottom: 1px solid var(--border-teal-dim); }
.qa .a { padding: 13px 16px; font-size: 12.8px; color: var(--text-body); word-break: keep-all; }
.qa .a b { color: var(--text-strong); }
.qa .a .act { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text-teal); }

/* ── 경보 ── */
.alert-inline { border: 1px solid var(--signal-red); background: rgba(217, 48, 37, 0.05); padding: 13px 16px; display: flex; gap: 12px; grid-column: span 12; }
.alert-inline.ok { border-color: var(--good); background: rgba(18, 194, 129, 0.05); }
.alert-inline.info { border-color: var(--border-teal); background: rgba(11, 105, 114, 0.04); }
.alert-inline .ic { font-family: var(--font-mono); font-weight: 700; color: var(--signal-red); }
.alert-inline.ok .ic { color: var(--good); }
.alert-inline.info .ic { color: var(--text-teal); }
.alert-inline .t { font-weight: 700; font-size: 13px; color: var(--text-strong); margin-bottom: 2px; }
.alert-inline p { font-size: 12.5px; color: var(--text-body); word-break: keep-all; }

/* ── 보관함 ── */
.arch { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-bottom: 1px solid rgba(11, 105, 114, 0.1); }
.arch:last-child { border-bottom: none; }
.arch .dt { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); width: 64px; flex-shrink: 0; }
.arch .nm { font-size: 13px; }
.arch .st { margin-left: auto; font-family: var(--font-mono); font-size: 10px; white-space: nowrap; }
.st.now { color: var(--text-teal); }
.st.plan { color: var(--text-dim); }
.st.new { color: var(--gold); }
a.arch { text-decoration: none; color: inherit; transition: background 0.15s; }
a.arch:hover { background: var(--accent-glow); }
a.arch .nm { color: var(--text-body); }
a.arch:hover .nm { color: var(--text-strong); }

/* ── 헬스 스코어 (LITE) ── */
.score-wrap { display: flex; align-items: center; gap: 28px; padding: 20px; flex-wrap: wrap; }
.scorenum { font-family: var(--font-mono); font-size: 52px; font-weight: 300; color: var(--text-strong); line-height: 1; }
.scorenum small { font-size: 18px; color: var(--text-dim); }
.scorebars { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 10px; }
.sb { display: flex; align-items: center; gap: 12px; font-size: 11px; font-family: var(--font-mono); }
.sb .n { width: 120px; color: var(--text-dim); white-space: nowrap; }
.sb .trk { flex: 1; height: 6px; background: rgba(11, 105, 114, 0.08); }
.sb .fil { height: 100%; background: var(--text-teal); box-shadow: 0 0 6px rgba(11, 105, 114, 0.4); }
.sb .fil.w { background: var(--gold); box-shadow: 0 0 6px rgba(235, 203, 139, 0.4); }
.sb .vv { width: 48px; text-align: right; color: var(--text-dim); }

/* ── 캠페인 카드 (딥다이브) ── */
.camp-cards { grid-column: span 12; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.camp { padding: 16px 18px; }
.camp .cl { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; text-transform: uppercase; }
.camp .cv { font-family: var(--font-mono); font-size: 19px; color: var(--text-strong); }
.camp .cs { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); margin-top: 2px; }
.camp .cd { font-size: 12px; color: var(--text-body); margin-top: 10px; word-break: keep-all; }

/* ── 문단/텍스트 ── */
.prose { padding: 16px; font-size: 13px; color: var(--text-body); word-break: keep-all; }
.prose b { color: var(--text-strong); }
.footnote { grid-column: span 12; font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); line-height: 1.8; padding-top: 8px; border-top: 1px solid var(--border-teal-dim); }
.upsell { grid-column: span 12; border: 1px dashed var(--border-teal); padding: 14px 18px; font-size: 12.5px; color: var(--text-dim); }
.upsell b { color: var(--text-teal); }

/* ── 리포트 상세 페이지 ── */
.report-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 70px; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 16px; align-items: start; }
.report-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.report-main .card { margin-bottom: 0; }
.rsec { scroll-margin-top: 16px; }
.report-toc { position: sticky; top: 20px; }
.report-toc .toc-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--text-dim); padding: 4px 10px 10px; }
.report-toc a { display: block; padding: 7px 10px; font-size: 12px; color: var(--text-dim); border-left: 2px solid var(--border-teal-dim); text-decoration: none; line-height: 1.5; word-break: keep-all; }
.report-toc a:hover { color: var(--text-teal); border-left-color: var(--text-teal); background: rgba(11, 105, 114, 0.04); }
@media (max-width: 1000px) { .report-grid { grid-template-columns: 1fr; } .report-toc { display: none; } }
.report-prose { padding: 12px 28px 32px; font-size: 14.5px; color: var(--text-body); word-break: keep-all; }
.report-prose h2 { font-size: 17px; color: var(--text-teal); font-weight: 700; margin: 40px 0 16px; padding: 10px 0 10px 12px; border-left: 3px solid var(--text-teal); border-bottom: 1px solid var(--border-teal-dim); background: rgba(11, 105, 114, 0.03); }
.report-prose h2:first-child { margin-top: 8px; }
.report-prose h3 { font-size: 15px; color: var(--text-strong); font-weight: 700; margin: 30px 0 12px; }
.report-prose h4 { font-size: 13.5px; color: var(--text-teal); font-weight: 600; margin: 22px 0 10px; }
.report-prose p { margin: 14px 0; line-height: 1.9; }
.report-prose strong { color: var(--text-strong); }
.report-prose ul, .report-prose ol { margin: 14px 0 14px 22px; }
.report-prose li { margin-bottom: 10px; line-height: 1.85; }
.report-prose li > ul, .report-prose li > ol { margin: 8px 0 8px 18px; }
.report-prose .tblwrap { overflow-x: auto; margin: 18px 0; }
.report-prose table { width: 100%; margin: 0; font-size: 12.5px; }
.report-prose table td, .report-prose table th { white-space: normal; min-width: 64px; padding: 12px 14px; line-height: 1.65; }
.report-prose blockquote { border-left: 2px solid var(--border-teal); background: rgba(11, 105, 114, 0.04); padding: 12px 16px; margin: 16px 0; color: var(--text-dim); font-size: 13px; line-height: 1.8; }
.report-prose blockquote p { margin: 6px 0; }
.report-prose hr { border: none; border-top: 1px solid var(--border-teal-dim); margin: 32px 0; }
.report-prose code { font-family: var(--font-mono); font-size: 12px; background: rgba(11, 105, 114, 0.08); border: 1px solid var(--border-teal-dim); padding: 1px 6px; color: var(--text-teal); word-break: break-all; }
.report-prose a { color: var(--text-teal); }

/* ── 리포트 비주얼 블록 ── */
.viz-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.viz-stat { border: 1px solid var(--border-teal-dim); background: rgba(11, 105, 114, 0.03); padding: 12px 14px; }
.viz-stat .vs-l { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); letter-spacing: 0.08em; margin-bottom: 6px; }
.viz-stat .vs-v { font-size: 19px; font-weight: 800; color: var(--text-strong); word-break: keep-all; }
.viz-stat .vs-s { font-size: 11px; margin-top: 4px; word-break: keep-all; }
.viz-bars { margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.viz-bars .vb { display: flex; align-items: center; gap: 10px; }
.viz-bars .vbl { flex: 0 0 220px; font-size: 12px; color: var(--text-body); word-break: keep-all; text-align: right; line-height: 1.4; }
.viz-bars .vbt { flex: 1; height: 14px; background: rgba(11, 105, 114, 0.06); border: 1px solid var(--border-teal-dim); }
.viz-bars .vbf { height: 100%; background: linear-gradient(90deg, rgba(11, 105, 114, 0.25), rgba(11, 105, 114, 0.75)); }
.viz-bars .vbf.red { background: linear-gradient(90deg, rgba(217, 48, 37, 0.25), rgba(217, 48, 37, 0.7)); }
.viz-bars .vbv { flex: 0 0 130px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-teal); }
.viz-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 12px; margin: 16px 0; }
.viz-thumb { margin: 0; }
.viz-thumb img, .viz-thumb .noprev { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border: 1px solid var(--border-teal-dim); display: block; }
.viz-thumb .noprev { display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--font-mono); font-size: 9px; color: var(--text-dim); background: rgba(11, 105, 114, 0.04); }
.viz-thumb figcaption { margin-top: 6px; }
.viz-thumb figcaption b { display: block; font-size: 11px; color: var(--text-strong); word-break: break-all; line-height: 1.4; font-weight: 700; }
.viz-thumb figcaption span { font-size: 10.5px; color: var(--text-dim); }
@media (max-width: 700px) { .viz-bars .vbl { flex-basis: 110px; } .viz-bars .vbv { flex-basis: 90px; } }
.viz-headline { font-size: 15px; font-weight: 800; color: var(--text-strong); margin: 14px 0 4px; word-break: keep-all; }
.viz-ring { display: flex; align-items: center; gap: 20px; margin: 16px 0; }
.viz-ring .vr-side b { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text-strong); letter-spacing: 0.06em; margin-bottom: 4px; }
.viz-ring .vr-side span { font-size: 12.5px; color: var(--text-body); word-break: keep-all; line-height: 1.6; }
.viz-dist { margin: 16px 0; }
.viz-dist .vd-bar { display: flex; gap: 2px; height: 30px; }
.viz-dist .vd-seg { display: flex; align-items: center; justify-content: center; min-width: 0; border-radius: 2px; }
.viz-dist .vd-seg span { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; padding: 0 4px; }
.viz-dist .vd-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.viz-dist .vd-leg { font-size: 11px; color: var(--text-body); display: inline-flex; align-items: center; gap: 5px; }
.viz-dist .vd-leg i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* ── 게이트(index) ── */
.gate { max-width: 560px; margin: 0 auto; padding: 90px 20px; }
.gate-list { border: 1px solid var(--border-teal); background: var(--panel-bg); }
.gate-row { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-bottom: 1px solid rgba(11, 105, 114, 0.1); text-decoration: none; color: var(--text-body); transition: background 0.15s; }
.gate-row:hover { background: var(--accent-glow); }
.gate-row:last-child { border-bottom: none; }
.gate-row .gt { font-family: var(--font-mono); font-size: 10px; width: 70px; flex-shrink: 0; }

/* ── 모바일 ── */
@media (max-width: 860px) {
  .app-container { flex-direction: column; }
  aside { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; overflow-x: auto; }
  .brand { border-bottom: none; border-right: 1px solid var(--border-teal); }
  nav { display: flex; padding: 0; }
  .nav-item { padding: 14px 12px; white-space: nowrap; }
  .side-foot { display: none; }
  .content-grid { padding: 16px 14px 60px; }
  header.topbar { padding: 0 14px; overflow-x: auto; }
}
