/* 산업통계표 살펴보기. 차분한 카드 대시보드(밝은 회색 바탕, 흰 카드, 짙은 청록 주색). 계속 도는 장식 움직임 없음 */
:root {
  color-scheme: light;
  --bg: #eef1f0; --surface: #ffffff; --surface2: #f4f6f5; --surface3: #e9eeec;
  --line: #e2e7e5; --line2: #cdd5d2; --grid: #edf1ef;
  --ink: #15211e; --ink2: #4b5855; --ink3: #7a8784;
  --primary: #1f4d45; --primary-2: #2a6458; --primary-ink: #ffffff; --primary-soft: #e3eeeb;
  --hero: #1f4d45; --hero-2: #275b51; --hero-ink: #ffffff; --hero-ink2: rgba(255, 255, 255, .74); --hero-line: rgba(255, 255, 255, .26);
  --mustard: #e2a82b; --mustard-soft: #fbf1d9; --mustard-ink: #7a5605;
  --up: #1d8a4f; --up-soft: #e2f4e8; --down: #c84a45; --down-soft: #fbe6e4;
  --focus: #2a6458;
  --s1: #1f6b5d; --s2: #c08a0e; --s3: #4fae74; --s4: #6a82c6;
  --heat-neg: #df7b6f; --heat-mid: #f1f4f3; --heat-pos: #2a6b5e;
  --shadow: 0 1px 2px rgba(21, 33, 30, .04), 0 6px 18px rgba(21, 33, 30, .06);
  --shadow-hi: 0 2px 4px rgba(21, 33, 30, .05), 0 12px 28px rgba(21, 33, 30, .10);
  --r: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1413; --surface: #151f1d; --surface2: #1b2725; --surface3: #22302d;
    --line: #26332f; --line2: #354540; --grid: #212d2a;
    --ink: #e7eeec; --ink2: #b3c0bc; --ink3: #82918d;
    --primary: #3d9483; --primary-2: #4aa392; --primary-ink: #ffffff; --primary-soft: #1b302c;
    --hero: #173c36; --hero-2: #1d4740; --hero-ink: #f2f7f5; --hero-ink2: rgba(242, 247, 245, .72); --hero-line: rgba(242, 247, 245, .22);
    --mustard: #e8b53a; --mustard-soft: #33290f; --mustard-ink: #f0c867;
    --up: #6fcf95; --up-soft: #17321f; --down: #f08a80; --down-soft: #3a1e1c;
    --focus: #7fd1c0;
    --s1: #4fb3a1; --s2: #e2ac34; --s3: #7acc97; --s4: #93a7e2;
    --heat-neg: #c9655b; --heat-mid: #1f2b28; --heat-pos: #4fb3a1;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px rgba(0, 0, 0, .26);
    --shadow-hi: 0 2px 4px rgba(0, 0, 0, .34), 0 14px 32px rgba(0, 0, 0, .36);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1413; --surface: #151f1d; --surface2: #1b2725; --surface3: #22302d;
  --line: #26332f; --line2: #354540; --grid: #212d2a;
  --ink: #e7eeec; --ink2: #b3c0bc; --ink3: #82918d;
  --primary: #3d9483; --primary-2: #4aa392; --primary-ink: #ffffff; --primary-soft: #1b302c;
  --hero: #173c36; --hero-2: #1d4740; --hero-ink: #f2f7f5; --hero-ink2: rgba(242, 247, 245, .72); --hero-line: rgba(242, 247, 245, .22);
  --mustard: #e8b53a; --mustard-soft: #33290f; --mustard-ink: #f0c867;
  --up: #6fcf95; --up-soft: #17321f; --down: #f08a80; --down-soft: #3a1e1c;
  --focus: #7fd1c0;
  --s1: #4fb3a1; --s2: #e2ac34; --s3: #7acc97; --s4: #93a7e2;
  --heat-neg: #c9655b; --heat-mid: #1f2b28; --heat-pos: #4fb3a1;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px rgba(0, 0, 0, .26);
  --shadow-hi: 0 2px 4px rgba(0, 0, 0, .34), 0 14px 32px rgba(0, 0, 0, .36);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; font-size: 14px; line-height: 1.55; overflow-x: hidden; word-break: keep-all; overflow-wrap: anywhere; min-height: 100vh; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 6px 10px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h2 { font-size: 15.5px; margin: 0; letter-spacing: -0.2px; font-weight: 650; }
h3 { font-size: 13.5px; margin: 0 0 6px; }
.sub { font-weight: 400; color: var(--ink3); font-size: 12.5px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* 앱 머리 */
.appbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.appbar-in { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; gap: 10px; align-items: center; min-width: 0; }
.logo { width: 36px; height: 36px; flex: none; }
.logo-bg { fill: var(--hero); }
.logo-l { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.logo-d { fill: var(--mustard); }
.brand h1 { font-size: 17px; margin: 0; letter-spacing: -0.3px; font-weight: 700; }
.brand-sub { margin: 0; color: var(--ink3); font-size: 12.5px; }
.appbar-btns { display: flex; gap: 8px; flex: none; }

/* 단추 */
button { font: inherit; cursor: pointer; }
button.act, button.ghost, button.link, button.light, button.onteal { font-size: 13px; border-radius: 10px; padding: 8px 14px; line-height: 1.3; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background .2s, border-color .2s, color .2s, box-shadow .2s; }
button.pill { border-radius: 999px; }
button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button svg .fill { fill: currentColor; stroke: none; }
button.act { border: 1px solid var(--primary); background: var(--primary); color: var(--primary-ink); font-weight: 600; }
button.act:hover { background: var(--primary-2); border-color: var(--primary-2); }
button.ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
button.ghost:hover { border-color: var(--line2); background: var(--surface2); }
button.link { border: 1px solid transparent; background: none; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; padding-left: 4px; padding-right: 4px; }
:root[data-theme="dark"] button.link { color: var(--focus); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) button.link { color: var(--focus); } }
button.light { border: 1px solid #fff; background: #fff; color: #1f4d45; font-weight: 650; }
button.light:hover { background: #eef6f3; }
button.onteal { border: 1px solid var(--hero-line); background: transparent; color: var(--hero-ink); }
button.onteal:hover { background: rgba(255, 255, 255, .08); }
button.sm { font-size: 12.5px; padding: 6px 12px; }
button.round { width: 38px; height: 38px; padding: 0; border-radius: 50%; }
#btn-tour { height: 38px; }
button.round .i-moon { fill: currentColor; stroke: none; }
button.round .i-sun { display: none; }
button.round[aria-pressed="true"] .i-moon { display: none; }
button.round[aria-pressed="true"] .i-sun { display: block; }
button:disabled { opacity: .45; cursor: default; }
.wide-btn { width: 100%; padding-top: 11px !important; padding-bottom: 11px !important; font-size: 14px !important; }
.hero :focus-visible { outline-color: #fff; }
.row-btns { display: flex; gap: 8px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.row-btns.end { justify-content: flex-end; }
.msg { color: var(--ink2); font-size: 12px; margin: 8px 0 0; }
.msg:empty { display: none; }
.row-btns .msg { margin: 0; }
.hint { color: var(--ink2); font-size: 12.5px; margin: 0 0 10px; }
.note { color: var(--ink3); font-size: 12px; margin: 8px 0 0; }
.note:empty { display: none; }
.small { font-size: 12px; color: var(--ink3); }

/* 판: 카드 격자 */
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; align-items: start; grid-auto-flow: row dense; padding-top: 18px; padding-bottom: 24px; }
.card { position: relative; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px 20px; min-width: 0; grid-column: span 12; transition: box-shadow .25s ease, transform .25s ease; }
.card:hover { box-shadow: var(--shadow-hi); transform: translateY(-2px); }
.card.hero:hover { transform: none; }
.c-hero { grid-column: span 8; }
.c-meta { grid-column: span 4; }
.kpis { grid-column: span 12; }
.c-items { grid-column: span 4; }
.c-trend { grid-column: span 8; }
.c-period { grid-column: span 3; }
.c-growth { grid-column: span 5; }
.c-sentence { grid-column: span 4; }
.c-multi { grid-column: span 12; }
.c-heat { grid-column: span 5; }
.c-raw { grid-column: span 7; }
.card.wide { grid-column: 1 / -1; }
.card-h { display: flex; align-items: center; gap: 8px 10px; margin: 0 0 12px; min-width: 0; flex-wrap: wrap; }
.card-h h2 { flex: none; }
.card-h .sub { flex: 1 1 160px; min-width: 0; }
.card-act { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink2); display: inline-grid; place-items: center; padding: 0; flex: none; transition: background .2s, color .2s, border-color .2s, transform .3s ease; }
.card-act:hover { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.card-act[aria-pressed="true"] { transform: rotate(180deg); }
.card-act svg { width: 15px; height: 15px; stroke-width: 1.9; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink2); background: var(--surface2); border-radius: 999px; padding: 3px 10px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tag:empty { display: none; }
.tag.soft { background: var(--primary-soft); color: var(--primary); }
.card-h .tag { margin-left: auto; }
.card-h .tag + .card-act { margin-left: 0; }

/* 큰 머리 카드 (청록) */
.hero { background: linear-gradient(140deg, var(--hero) 0%, var(--hero-2) 100%); color: var(--hero-ink); overflow: hidden; padding: 22px 24px 20px; }
.hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid var(--hero-line); pointer-events: none; }
.hero::before { content: ""; position: absolute; right: 30px; top: -20px; width: 140px; height: 140px; border-radius: 50%; border: 1px solid var(--hero-line); pointer-events: none; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.eyebrow { font-size: 12.5px; color: var(--hero-ink2); }
.mock-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #4a3505; background: #f6d98d; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.mock-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9a6b06; }
.mock-pill[hidden] { display: none; }
.hero-title { font-size: 26px; letter-spacing: -0.6px; margin: 8px 0 2px; font-weight: 700; line-height: 1.3; position: relative; z-index: 1; }
.hero-sub { margin: 0; color: var(--hero-ink2); font-size: 13px; position: relative; z-index: 1; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 12px; margin-top: 16px; align-items: stretch; position: relative; z-index: 1; }
.hero-btns { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.drop { border: 1.5px dashed var(--hero-line); border-radius: 14px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; cursor: pointer; background: rgba(255, 255, 255, .06); transition: border-color .25s, background .25s, box-shadow .3s; color: var(--hero-ink); }
.drop:hover, .drop.over { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .12); }
.drop.attn { border-color: #fff; border-style: solid; background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 3px rgba(246, 217, 141, .55); }
.drop-ic { width: 40px; height: 40px; flex: none; color: #f6d98d; }
.drop-t b { display: block; font-size: 14px; }
.drop-t span { display: block; color: var(--hero-ink2); font-size: 12.5px; margin-top: 2px; }
.local { display: flex; gap: 6px; align-items: flex-start; color: var(--hero-ink2); font-size: 12px; margin: 12px 0 0; position: relative; z-index: 1; }
.local svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.file-msg { font-size: 12.5px; color: var(--hero-ink); background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 8px 12px; margin-top: 10px; white-space: pre-line; position: relative; z-index: 1; }
.file-msg:empty { display: none; }
.file-msg.err { background: #fbe6e4; color: #8f2620; }

/* 표 정보 카드 */
.meta-wrap { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: center; }
.gauge svg { display: block; width: 100%; height: auto; }
.gauge .g-track { fill: var(--surface3); }
.gauge .g-val { fill: var(--primary); }
.gauge .g-num { fill: var(--ink); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gauge .g-lab { fill: var(--ink3); font-size: 10.5px; }
.meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; margin: 0; font-size: 12.5px; }
.meta dt { color: var(--ink3); }
.meta dd { margin: 0; min-width: 0; }
.cmmt { margin-top: 12px; font-size: 13px; border-top: 1px solid var(--line); padding-top: 10px; }
.cmmt summary { cursor: pointer; color: var(--ink2); font-weight: 600; }
.cmmt .form { margin-top: 10px; }
.ta-l { display: block; color: var(--ink2); font-size: 12.5px; margin: 10px 0 4px; }
textarea, input[type=text], input[type=search], input[type=date], select { font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); color: var(--ink); min-width: 0; max-width: 100%; transition: border-color .2s, box-shadow .2s, background .2s; }
textarea:focus, input:focus, select:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); outline: none; }
textarea { width: 100%; resize: vertical; font-size: 12.5px; }

/* 핵심 값 타일 */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kpis:empty { display: none; }
.kpi { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px 14px; min-width: 0; transition: box-shadow .25s ease, transform .25s ease; }
.kpi:hover { box-shadow: var(--shadow-hi); transform: translateY(-2px); }
.kpi-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink2); min-width: 0; }
.kpi-h i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.kpi-h span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-ic { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--mustard-soft); color: var(--mustard-ink); }
.kpi-ic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kpi-v { display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; margin-top: 8px; }
.kpi-n { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-n small { font-size: 13px; font-weight: 500; color: var(--ink2); letter-spacing: 0; margin-left: 1px; }
.chip-d { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 650; border-radius: 999px; padding: 2px 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip-d svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip-d.up { color: var(--up); background: var(--up-soft); }
.chip-d.down { color: var(--down); background: var(--down-soft); }
.chip-d.flat { color: var(--ink2); background: var(--surface2); }
.kpi-s { font-size: 11.5px; color: var(--ink3); margin-top: 4px; }

/* 항목 */
.item-tools { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.search { position: relative; flex: 1 1 200px; min-width: 0; }
.search svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); fill: none; stroke: var(--ink3); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; padding-left: 32px; border-radius: 999px; }
.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink2); cursor: pointer; }
.chk input { accent-color: var(--primary); }
.groups { display: flex; flex-direction: column; gap: 12px; }
.group { min-width: 0; max-width: 100%; }
.gname { font-size: 11.5px; color: var(--ink3); margin-bottom: 6px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; text-align: left; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--line2); background: var(--surface2); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink3); flex: none; }
.chip[aria-pressed="true"] { border-color: transparent; font-weight: 600; background: var(--primary-soft); color: var(--ink); }
.chip[aria-pressed="true"] .dot { border: none; }
.chip .u { color: var(--ink3); font-weight: 400; font-size: 11px; }
.empty-items { color: var(--ink3); font-size: 13px; }

/* 기간 */
.years { display: flex; gap: 8px; align-items: center; color: var(--ink2); font-size: 13px; flex-wrap: wrap; }
.timeline { margin-top: 16px; }
.timeline svg { display: block; width: 100%; height: auto; overflow: visible; }
.tl-track { fill: var(--surface2); }
.tl-sel { fill: var(--primary); }
.tl-tick { fill: var(--ink3); }
.tl-tick.on { fill: #fff; }
.tl-lab { fill: var(--ink2); font-size: 11px; font-weight: 600; }

/* 그림 */
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink2); margin: 2px 0 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart { position: relative; min-width: 0; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart .empty { color: var(--ink3); font-size: 12.5px; padding: 18px 0; }
.chart .gl { stroke: var(--grid); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .tk { fill: var(--ink3); font-size: 11px; }
.chart .base { stroke: var(--ink3); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .zero { stroke: var(--line2); stroke-width: 1; }
.chart .ln { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart .ar { stroke: none; }
.chart .pt { stroke: var(--surface); stroke-width: 2; transition: r .2s ease, stroke-width .2s ease; }
.chart .pt.hot { stroke-width: 3; r: 6.5px; }
.chart .dl { fill: var(--ink); font-size: 12px; font-weight: 600; }
.chart .guide { stroke: var(--primary); stroke-opacity: .08; stroke-width: 22; stroke-linecap: round; }
.chart .bar-l { fill: var(--ink); font-size: 12px; }
.chart .bar-v { fill: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 650; }
.chart .bar-track { fill: var(--surface2); }
.heat svg text { fill: var(--ink2); font-size: 11px; }
.heat .hc { stroke: var(--surface); stroke-width: 2; }
.heat .hc.hot { stroke: var(--ink); stroke-width: 1.5; }
.heat .hv { font-size: 10px; font-variant-numeric: tabular-nums; pointer-events: none; }
.heat-lg { display: flex; align-items: center; gap: 4px; justify-content: flex-end; font-size: 11.5px; color: var(--ink3); margin-top: 8px; }
.heat-lg i { width: 22px; height: 10px; border-radius: 3px; display: inline-block; }
.heat-lg .hl-neg { background: var(--heat-neg); } .heat-lg .hl-mid { background: var(--heat-mid); border: 1px solid var(--line); } .heat-lg .hl-pos { background: var(--heat-pos); }
.heat-lg span:first-child { margin-right: 4px; } .heat-lg span:last-child { margin-left: 4px; }

/* 말풍선 */
.tip { position: absolute; pointer-events: none; background: var(--surface); color: var(--ink); border-radius: 12px; padding: 8px 11px; font-size: 12px; box-shadow: var(--shadow-hi); border: 1px solid var(--line); white-space: nowrap; display: none; z-index: 40; max-width: calc(100vw - 16px); }
.tip.bubble { background: var(--hero); color: var(--hero-ink); border-color: transparent; }
.tip.bubble::after { content: ""; position: absolute; left: var(--cx, 50%); bottom: -6px; width: 12px; height: 12px; background: var(--hero); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.tip.bubble.below::after { bottom: auto; top: -6px; }
.tip b { display: block; margin-bottom: 3px; }
.tip .row { display: flex; align-items: center; gap: 6px; color: var(--ink2); }
.tip.bubble .row { color: var(--hero-ink2); }
.tip .row i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
.tip .row em { font-style: normal; color: inherit; margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; font-weight: 650; }
.tip.bubble .row em { color: var(--hero-ink); }
.tip:not(.bubble) .row em { color: var(--ink); }

.multi { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mini { background: var(--surface2); border-radius: 12px; padding: 12px 14px 8px; min-width: 0; }
.mini h3 { display: flex; align-items: center; gap: 6px; margin: 0; flex-wrap: wrap; }
.mini h3 i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mini .src { font-size: 11.5px; color: var(--ink3); margin: 0 0 4px; }

/* 표 */
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12.5px; font-variant-numeric: tabular-nums; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 8px; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; white-space: normal; min-width: 7em; }
thead th { color: var(--ink3); font-weight: 600; font-size: 11.5px; background: var(--surface2); border-bottom: none; }
thead th:first-child { border-radius: 10px 0 0 10px; }
thead th:last-child { border-radius: 0 10px 10px 0; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: var(--surface2); }
tbody th { font-weight: 600; }
td .sw { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.ptag { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: var(--surface2); color: var(--ink2); margin-left: 6px; white-space: nowrap; }
.ptag.up { color: var(--up); background: var(--up-soft); margin: 0; }
.ptag.down { color: var(--down); background: var(--down-soft); margin: 0; }
.tablewrap { overflow-x: auto; max-width: 100%; margin-top: 10px; }
.form { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; align-items: center; font-size: 13px; }
.form label { color: var(--ink2); }
.form input[type=text], .form select { width: 100%; }
.form .years select { width: auto; }
.out { margin: 14px 0 12px; border-left: 3px solid var(--mustard); background: var(--surface2); border-radius: 4px 12px 12px 4px; padding: 12px 14px; font-size: 14px; line-height: 1.75; min-height: 74px; transition: background .4s ease; }

/* 원자료 */
#sec-raw summary { cursor: pointer; list-style: none; margin: 0; }
#sec-raw details[open] summary { margin-bottom: 4px; }
#sec-raw summary::-webkit-details-marker { display: none; }
.chev { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink2); flex: none; transition: transform .3s ease; }
.chev svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
#sec-raw details[open] .chev { transform: rotate(180deg); }

.foot { color: var(--ink3); font-size: 12px; line-height: 1.65; padding-top: 4px; padding-bottom: 36px; }
.foot p { margin: 4px 0; }

/* 둘러보기 */
.tour { position: fixed; inset: 0; z-index: 60; }
.tour[hidden] { display: none; }
.tour-hole { position: fixed; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(10, 22, 19, .55); transition: left .35s ease, top .35s ease, width .35s ease, height .35s ease; pointer-events: none; outline: 2px solid #f6d98d; outline-offset: 2px; }
.tour-pop { position: fixed; width: min(380px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); border-radius: 16px; padding: 16px 18px 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, .24); transition: top .35s ease, left .35s ease; }
.tour-pop:focus { outline: none; }
.tour-top { display: flex; align-items: center; gap: 10px; }
.tour-step { font-size: 12px; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 1px 9px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tour-dots { display: inline-flex; gap: 4px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line2); transition: width .3s ease, background .3s ease; }
.tour-dots i.on { width: 16px; background: var(--primary); }
.tour-title { margin: 10px 0 0; font-size: 15.5px; font-weight: 650; line-height: 1.45; }
.tour-btns { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.tour-btns .sp { flex: 1; }
#tour-skip { color: var(--ink3); text-decoration: none; }
#tour-skip:hover { color: var(--ink); }

/* 실제 자료 넣는 방법 */
dialog.howto { border: none; border-radius: 20px; padding: 0; background: var(--surface); color: var(--ink); width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 40px); box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
dialog.howto[open] { animation: fadein .25s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
dialog.howto::backdrop { background: rgba(10, 22, 19, .5); }
.howto-in { padding: 20px 22px 18px; }
.howto-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.howto-head h2 { font-size: 17px; margin: 0; }
.steps { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 12px 0 12px 40px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 700; display: grid; place-items: center; font-size: 12.5px; }
.steps p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink2); }
.st-t { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ok { font-size: 11px; font-weight: 600; color: var(--up); background: var(--up-soft); border-radius: 999px; padding: 1px 8px; }
kbd { font: inherit; font-size: 12.5px; background: var(--surface2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0 5px; color: var(--ink); white-space: nowrap; }
.sch { display: block; width: 100%; max-width: 420px; height: auto; margin-top: 8px; }
.sch text { font-family: inherit; font-size: 10.5px; }
.s-bar { fill: var(--primary-soft); stroke: var(--line); }
.s-box { fill: var(--surface2); stroke: var(--line); }
.s-box2 { fill: var(--surface); stroke: var(--line); }
.s-hi { fill: var(--surface); stroke: var(--primary); stroke-width: 2; }
.s-act { fill: var(--primary); }
.s-fold { fill: var(--mustard); }
.s-on { fill: var(--primary); }
.s-off { fill: var(--surface); stroke: var(--ink3); }
.s-t { fill: var(--ink); }
.s-t2 { fill: var(--ink2); }
.s-t3 { fill: var(--primary); font-weight: 700; }
.s-t4 { fill: var(--primary-ink); font-weight: 700; }

@media (max-width: 1100px) {
  .c-hero { grid-column: span 7; } .c-meta { grid-column: span 5; }
  .c-items { grid-column: span 5; } .c-trend { grid-column: span 7; }
  .c-period, .c-growth { grid-column: span 6; }
  .c-sentence, .c-heat, .c-raw { grid-column: span 12; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .board > .card, .board > .kpis { grid-column: 1 / -1; }
  .card-act { display: none; }
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  .hero-btns { flex-direction: row; }
}
@media (max-width: 560px) {
  .board { gap: 14px; padding-top: 14px; }
  .kpis { gap: 12px; }
  .card { padding: 16px 16px 18px; }
  .hero { padding: 18px 16px 16px; }
  .hero::before, .hero::after { display: none; }
  .hero-title { font-size: 21px; }
  .hero-btns { flex-direction: column; }
  .brand-sub { display: none; }
  .brand h1 { font-size: 16px; }
  .logo { width: 32px; height: 32px; }
  #btn-tour .btn-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #btn-tour { width: 38px; padding: 0; }
  .kpi { padding: 12px 12px; }
  .kpi-n { font-size: 19px; }
  .kpi-n small { font-size: 11.5px; }
  .kpi-ic { display: none; }
  .meta-wrap { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .form { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .form label { margin-top: 6px; }
  .drop { padding: 12px 12px; }
  .howto-in { padding: 16px 14px; }
  .steps li { padding-left: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card:hover, .kpi:hover { transform: none; }
}
