/* ============================================================
   RAYBRIDGE — 방사선 산업 해외 바이어 매칭 「상사 원장(商社 元帳)」
   C안 심사 확정(2026-07-19): 협회 날인 문서가 서비스의 본질 —
   종이 기층·먹 조판·괘선 표·주인(朱印)은 활성 전용, kbar 남색은 플랫폼 혈통.
   차트는 잉크-온-페이퍼 문법: 스틸네이비·주인·녹먹·갈먹 (형광·네온 금지)
   상태색 위계 — 긍정/완료 녹먹 · 경고/기한 주인 · 진행 스틸네이비 · 대기 갈먹
   ============================================================ */

:root {
  /* 상사 원장 토큰 — 종이·먹·괘선·주인 */
  --bg: #F7F4EC;         /* 종이(대장 바탕) */
  --surface: #FFFDF8;    /* 시트(기입면) */
  --surface2: #F1EDE1;
  --surface3: #E9E4D5;
  --line: #D8D2C4;       /* 괘선 */
  --line-strong: #B9B19E;

  --ink: #22201C;        /* 먹 */
  --ink2: #57503F;       /* 갈먹(보조 서술·마이크로 라벨) */
  --ink3: #6E6754;       /* 갈먹 연함 — 종이 위 5.1:1 */

  --knavy: #0F2A4D;      /* kbar — KARA 플랫폼 혈통(유지) */
  --knavy2: #14365E;
  --navy: #3A5A80;       /* 스틸 네이비 — 진행·링크 */

  --amber: #A63A2B;          /* 주인(朱印) — 활성·경고 전용 */
  --amber-text: #A63A2B;     /* 종이 위 5.8:1 */
  --amber-dim: rgba(166, 58, 43, 0.08);
  --cyan: #3A5A80;           /* 구 관제 신호색 → 스틸 네이비로 수렴 */
  --green-text: #2F5E3E;     /* 녹먹 — 긍정·완료 */
  --green-dim: rgba(47, 94, 62, 0.10);

  /* 차트 — 잉크-온-페이퍼 (형광 금지) */
  --ch-cyan: #3A5A80;    /* 스틸 네이비(기본 계열) */
  --ch-amber: #A63A2B;   /* 주인(강조 계열) */
  --ch-green: #4C6B50;   /* 녹먹 */
  --ch-violet: #57503F;  /* 갈먹 */

  --font-display: "Pretendard Variable", "Pretendard", "Malgun Gothic", sans-serif;
  --font-body: "Pretendard Variable", "Pretendard", "Malgun Gothic", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Consolas", monospace;

  --radius: 0;           /* 원장 조판 — 모서리 각 */
  --radius-lg: 0;
  --maxw: 1240px;
}

/* 관제 패널 — C안 전환: 다크 콘솔 폐지, 전면 잉크-온-페이퍼(루트 토큰 상속) */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(255, 176, 32, 0.35); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 유틸 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--font-mono); }
.amber { color: var(--amber-text); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.atmosphere, .grain { display: none; } /* 라이트 모드 — 배경 질감 제거 */

/* ---------- K design 공통 요소 ---------- */
.kbar { position: sticky; top: 0; z-index: 1000; background: var(--knavy); border-top: 3px solid #8FA8C8; border-bottom: 1px solid var(--knavy2); }
.kbar-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px;
}
.kbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.kbar-k {
  width: 33px; height: 33px; border: 1.5px solid rgba(255,255,255,0.95); color: #fff;
  font-family: var(--font-mono); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.kbar-l1 { display: block; font-family: var(--font-mono); font-weight: 600; font-size: 14px; letter-spacing: 0.03em; color: #fff; line-height: 1.3; }
.kbar-l2 { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: #8FA8C8; text-transform: uppercase; }
.kbar-nav { display: flex; gap: 4px; }
.kbar-nav a { color: #8FA8C8; text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 11px; transition: color 0.15s; }
.kbar-nav a:hover { color: #fff; }
.kbar-nav a.on { color: #fff; border-bottom: 2px solid var(--amber); }

.label-box {
  display: inline-block; background: #000; color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 11px;
  padding: 3px 8px; border-radius: 0; line-height: 1.4; vertical-align: middle;
}
.meta-id { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.05em; color: var(--ink3); }

/* ---------- 상단 이동줄 ---------- */
.nav {
  position: sticky; top: 60px; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transform: translateZ(0);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 60px; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 8px; }
/* 상단 통일: 서비스 자체 브랜드 로고 제거(상단 AI:Radi 바와 중복) — 앵커 내비만 슬림 유지 */
.nav .logo { display: none; }
.logo svg { width: 26px; height: 26px; }
.logo-word { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: 0.06em; color: var(--ink); }
.logo-word b { color: var(--amber-text); font-weight: 800; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a { color: var(--ink2); text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: var(--radius); transition: all 0.18s; }
.nav-links a:hover { color: var(--ink); background: var(--surface2); }
.nav-cta {
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  color: var(--surface); background: var(--amber); text-decoration: none;
  padding: 9px 18px; transition: all 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 2px 10px rgba(166, 58, 43, 0.35); }

/* ---------- 첫 화면 ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.radar { position: absolute; top: 50%; right: -240px; transform: translateY(-50%); width: 860px; height: 860px; pointer-events: none; opacity: 0.75; }
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(20, 54, 94, 0.07), transparent 24%);
  animation: sweep 9s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-id { position: absolute; top: -56px; right: 0; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--navy); margin-bottom: 22px;
  padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 2px;
  background: var(--surface);
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(38px, 4.6vw, 56px); line-height: 1.16; letter-spacing: -0.02em;
  margin-bottom: 22px; color: var(--ink);
}
h1 .glow-amber { color: var(--amber-text); text-shadow: 0 0 28px rgba(255, 176, 32, 0.35); }
.hero-sub { font-size: 17px; color: var(--ink2); max-width: 560px; margin-bottom: 34px; }
.hero-sub b { color: var(--ink); font-weight: 700; }

.hero-ctas { display: flex; gap: 14px; margin-bottom: 44px; flex-wrap: wrap; }
.btn-primary {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--surface); background: var(--ink); text-decoration: none;
  padding: 14px 28px; border: 1.5px solid var(--ink); cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: #000; }
.btn-ghost {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--ink); background: transparent; text-decoration: none;
  padding: 14px 28px; border: 1.5px solid var(--ink);
  transition: background 0.15s;
}
.btn-ghost:hover { background: var(--bg); }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hstat .v { font-family: var(--font-mono); font-size: 26px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hstat .v em { font-style: normal; color: var(--amber-text); }
.hstat .k { font-size: 12px; color: var(--ink3); margin-top: 2px; }

/* ── 관제 화면 ①: 성사 흐름 패널 (다크 콘솔 — 독창성 포인트) ── */
.funnel-panel {
  position: relative;
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(216, 210, 196, 0.5) 27px 28px),
    var(--surface);
  border: 1px solid var(--line); border-top: 2.5px solid var(--ink);
  padding: 28px 26px 22px;
  color: var(--ink);
}
.funnel-panel::before { content: none; }
.funnel-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.funnel-title .t { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink3); }
.funnel-title .live { font-family: var(--font-mono); font-size: 10.5px; color: var(--green-text); display: inline-flex; align-items: center; gap: 6px; }
.funnel-title .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-text); animation: pulse 1.6s ease-in-out infinite; }
.fstage { display: grid; grid-template-columns: 118px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.fstage:last-child { border-bottom: none; }
.fstage .s { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--cyan); }
.fstage .s small { display: block; color: var(--ink3); letter-spacing: 0; font-size: 10.5px; margin-top: 1px; }
.fstage .bar-track { height: 7px; background: rgba(34, 32, 28, 0.07); overflow: hidden; }
.fstage .bar-fill { height: 100%; width: 0; background: var(--navy); transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.fstage:nth-child(6) .bar-fill { background: var(--amber); }
.fstage .v { font-family: var(--font-mono); font-size: 19px; font-weight: 600; text-align: right; min-width: 74px; font-variant-numeric: tabular-nums; color: var(--ink); }
.fstage:nth-child(6) .v { color: var(--amber-text); }
.funnel-note { margin-top: 14px; font-size: 11.5px; color: var(--ink3); }

/* ---------- 절 공통 ---------- */
section { padding: 78px 0; }
.sec-head { margin-bottom: 40px; }
.sec-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--ink2); margin-bottom: 12px; text-transform: uppercase; font-weight: 600;
}
.sec-eyebrow .k-ko { color: var(--ink2); letter-spacing: 0.02em; margin-left: 8px; }
h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
.sec-desc { margin-top: 12px; color: var(--ink2); max-width: 680px; }
.sec-desc b { color: var(--ink); }

/* ---------- 문제 제기 ---------- */
.problems { padding: 0 0 10px; }
.prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prob { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; }
.prob:hover { border-color: var(--line-strong); }
.prob .no { font-family: var(--font-mono); font-size: 11px; color: var(--amber-text); letter-spacing: 0.08em; }
.prob h3 { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; margin: 8px 0 6px; }
.prob p { font-size: 13px; color: var(--ink2); line-height: 1.6; }

/* ---------- 이용 절차 ---------- */
.howit { padding: 66px 0 6px; }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 20px 16px; }
.step::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--ink3); font-size: 15px; z-index: 1; }
.step:last-child::after { display: none; }
.step-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.step h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 12.5px; color: var(--ink2); line-height: 1.6; min-height: 60px; }
.step-time { font-family: var(--font-mono); font-size: 11px; color: var(--navy); margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 9px; }

/* ---------- 카드 공통 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.card-title h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.card-src { font-size: 11px; color: var(--ink3); margin-bottom: 18px; }

/* ── 관제 화면 ②: 매칭 지도 (다크 콘솔 — 독창성 포인트) ── */
.bridge-card {
  padding: 22px 26px 18px;
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(216, 210, 196, 0.5) 27px 28px),
    var(--surface);
  border: 1px solid var(--line); border-top: 2.5px solid var(--ink);
  color: var(--ink);
}
.bridge-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.bridge-head .card-src { margin-bottom: 0; }
.bridge-legend { display: flex; gap: 12px 14px; flex-wrap: wrap; }
.lg-item { font-size: 11.5px; color: var(--ink2); display: inline-flex; align-items: center; gap: 6px; }
.lg-item i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex-shrink: 0; }
.bridge-viz { overflow-x: auto; }
.bridge-viz svg { display: block; width: 100%; min-width: 760px; height: auto; }
.bcol-head { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; fill: var(--ink3); }
.flow { opacity: 0.34; transition: opacity 0.2s; cursor: pointer; }
.flow:hover { opacity: 0.85; }
.flow.dim { opacity: 0.06; }
.flow-pulse { opacity: 0.9; stroke-dasharray: 3 90; pointer-events: none; animation: flowdash 3s linear infinite; }
.flow-pulse.dim { opacity: 0.05; }
@keyframes flowdash { to { stroke-dashoffset: -93; } }
.bnode { outline: none; }
.bnode:focus-visible rect { stroke: var(--cyan); stroke-width: 1.5; }
.bg-label { font-family: var(--font-body); font-size: 13px; font-weight: 700; fill: var(--ink); }
.bg-meta { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink3); }
.bm-label { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; fill: var(--ink2); }
.bm-label.hl { fill: var(--ink); font-weight: 800; }
.bm-val { font-family: var(--font-mono); font-size: 11px; fill: var(--ink3); font-variant-numeric: tabular-nums; }
.bm-tag { font-family: var(--font-mono); font-size: 10px; fill: var(--amber-text); }

/* ---------- 도표 (라이트 카드 내부) ---------- */
.chart { width: 100%; overflow-x: auto; }
.chart svg { display: block; width: 100%; min-width: 480px; height: auto; }
.chart .bar { cursor: pointer; outline: none; }
.chart .bar:focus-visible .bar-bg { stroke: var(--navy); stroke-width: 1.5; }
.chart .bar-bg { fill: rgba(28, 25, 23, 0.045); }
.chart .bar-rect { fill: var(--ch-cyan); transition: fill 0.15s; }
.chart .bar-rect.hl { fill: var(--ch-amber); }
.chart .bar:hover .bar-rect { fill: #2E4A6B; }
.chart .bar:hover .bar-rect.hl { fill: #8A2F23; }
.chart .lbl { font-family: var(--font-body); font-size: 12.5px; fill: var(--ink2); font-weight: 600; }
.chart .lbl.hl { fill: var(--ink); font-weight: 800; }
.chart .val { font-family: var(--font-mono); font-size: 12px; fill: var(--ink); font-variant-numeric: tabular-nums; }
.chart .val.hl { fill: var(--ink); font-weight: 700; }

.tooltip {
  position: fixed; z-index: 200; pointer-events: none; opacity: 0;
  background: var(--ink); border: 1px solid rgba(216, 210, 196, 0.4);
  padding: 10px 13px; font-size: 12.5px; color: #F7F4EC;
  box-shadow: 0 8px 24px rgba(34, 32, 28, 0.3);
  transition: opacity 0.12s; max-width: 260px;
}
.tooltip .tt-k { color: #BDB4A0; font-size: 11px; }
.tooltip .tt-v { font-family: var(--font-mono); font-size: 15px; font-weight: 600; }

/* ---------- 품목 플래시 카드 ---------- */
.hs-bar { padding: 18px 26px 20px; }
.hs-toggle-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.fcard { position: relative; perspective: 720px; height: 122px; background: transparent; border: none; padding: 0; cursor: pointer; font-family: var(--font-body); text-align: left; outline: none; }
.fcard-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.55s cubic-bezier(0.3, 0.9, 0.4, 1); }
@media (hover: hover) {
  .fcard:not(.clicked):hover .fcard-inner { transform: rotateY(180deg); }
}
.fcard:focus-visible .fcard-inner,
.fcard.flipped .fcard-inner { transform: rotateY(180deg); }
.fcard-front, .fcard-back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; border-radius: var(--radius); padding: 11px 13px;
  background: var(--surface); border: 1px solid var(--line-strong);
}
.fcard-front .fhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.fcard-front .fcode { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; color: var(--ink3); }
.fcard-front b { font-size: 12.5px; color: var(--ink); font-weight: 700; line-height: 1.3; }
.fcard-front small { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink3); }
.fcard-front .fv { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--ink); }
.fcard-front .fk { font-size: 10px; color: var(--ink3); }
.fcard-back { transform: rotateY(180deg); background: var(--surface2); border-color: var(--navy); gap: 3px; }
.fcard-back .fb-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.fcard-back .fb-row small { font-size: 9.5px; color: var(--ink3); }
.fcard-back .fb-row b { font-size: 12px; color: var(--ink); }
.fcard-back .fb-hook { font-size: 10px; color: var(--ink2); line-height: 1.4; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fcard-back .fb-cta { margin-top: auto; font-size: 10px; font-weight: 700; color: var(--navy); }
.fcard.on .fcard-front, .fcard.on .fcard-back { border-color: var(--amber); box-shadow: 0 2px 12px rgba(255, 176, 32, 0.25); }
.fcard.on .fcard-front b { color: var(--amber-text); }
.hs-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; color: var(--ink2); }
.dl-btn {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 12px;
  color: #fff; background: var(--navy); text-decoration: none;
  padding: 8px 14px; border-radius: 2px; transition: all 0.18s; white-space: nowrap;
}
.dl-btn::before { content: "↓ "; font-family: var(--font-mono); }
.dl-btn:hover { background: var(--knavy2); }
#hs-desc { color: var(--ink3); font-size: 12px; }

.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.market-grid .span2 { grid-column: 1 / -1; }

/* ---------- 의료 세부품목 상세 ---------- */
.hs-detail { padding: 22px 26px; border-color: var(--navy); }
.hsd-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; }
.hsd-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink3); margin-bottom: 9px; }
.hsd-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.hsd-equip {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--ink);
  background: var(--surface2); border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 6px 12px; cursor: pointer; transition: all 0.16s;
}
.hsd-equip:hover { border-color: var(--navy); color: var(--navy); }
.hsd-equip.on { border-color: var(--navy); background: rgba(46, 90, 140, 0.08); color: var(--navy); }
.hsd-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: 11px; padding: 10px 13px; font-size: 12.5px; color: var(--ink2);
  background: rgba(46, 90, 140, 0.06); border: 1px solid rgba(46, 90, 140, 0.3); border-radius: var(--radius);
  animation: linkin 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes linkin { from { opacity: 0; transform: translateY(-6px); } }
.hsd-link b { color: var(--ink); }
.hsd-golink {
  font-family: var(--font-display); font-size: 12px; font-weight: 700; color: #fff;
  background: var(--navy); border: none; border-radius: 2px; padding: 7px 13px; cursor: pointer;
  transition: all 0.18s;
}
.hsd-golink:hover { background: var(--knavy2); }
.hsd-buyers { font-size: 13.5px; color: var(--ink2); }
.hsd-insight {
  margin-top: 16px; font-size: 13px; color: var(--ink);
  background: var(--amber-dim); border: 1px solid rgba(255, 176, 32, 0.4);
  border-radius: var(--radius); padding: 11px 14px; line-height: 1.6;
}
.hsd-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.donut { width: 88px; height: 88px; flex-shrink: 0; }
.donut .dbg { fill: none; stroke: var(--line); stroke-width: 8; }
.donut .dfg { fill: none; stroke: var(--ch-amber); stroke-width: 8; stroke-linecap: round; }
.donut .dfg.good { stroke: var(--ch-green); }
.donut .dtx { fill: var(--ink); font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.hsd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; }
.hsd-stats > div { background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px 9px; }
.hsd-stats b { display: block; font-size: 19px; font-weight: 600; }
.hsd-stats b.good { color: var(--green-text); }
.hsd-stats small { font-size: 11px; color: var(--ink3); }
.hsd-row { display: grid; grid-template-columns: 74px 1fr 74px; gap: 10px; align-items: center; padding: 4px 0; }
.hsd-row .c { font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.hsd-row.hl .c { color: var(--ink); font-weight: 800; }
.hsd-row .track { height: 9px; background: rgba(28, 25, 23, 0.05); border-radius: 5px; overflow: hidden; display: block; }
.hsd-row .track i { display: block; height: 100%; border-radius: 5px; background: var(--ch-cyan); }
.hsd-row.hl .track i { background: var(--ch-amber); }
.hsd-row .v { font-size: 12px; text-align: right; }

/* 시범 시장 강조 */
.callout {
  border: 1px solid rgba(255, 176, 32, 0.5); background: var(--amber-dim);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px;
  display: flex; gap: 12px; align-items: flex-start;
}
.callout p { font-size: 13.5px; color: var(--ink); }
.callout b { color: var(--amber-text); }
.vn-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; }
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scard { background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px 15px; }
.scard .v { font-family: var(--font-mono); font-size: 25px; font-weight: 600; font-variant-numeric: tabular-nums; }
.scard .v em { font-style: normal; font-size: 15px; color: var(--green-text); margin-left: 4px; } /* 숫자·단위 간격 */
.scard .k { font-size: 12px; color: var(--ink3); margin-top: 3px; line-height: 1.45; }
.scard.hero-card { grid-column: 1 / -1; border-color: var(--navy); background: rgba(46, 90, 140, 0.05); }

/* ---------- 바이어 표 ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filters input[type="search"] {
  flex: 1; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--ink); font-family: var(--font-body); font-size: 13.5px;
  padding: 10px 14px; outline: none; transition: border-color 0.18s;
}
.filters input[type="search"]:focus { border-color: var(--navy); }
.filters select {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--ink); font-family: var(--font-body); font-size: 13px;
  padding: 10px 12px; outline: none; cursor: pointer;
}
.filters select:focus-visible { border-color: var(--navy); }
tbody tr:focus-visible { outline: 1.5px solid var(--navy); outline-offset: -1.5px; }
.gate-item:focus-visible { outline: 1.5px solid var(--navy); outline-offset: 2px; border-radius: var(--radius); }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 12px; font-weight: 600; color: var(--ink2);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 7px 14px; cursor: pointer; transition: all 0.15s;
}
.chip.on { color: #1C1917; background: var(--amber); border-color: var(--amber); font-weight: 700; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.table-scroll { overflow-x: auto; max-height: 520px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--surface2); color: var(--ink3);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; font-weight: 500;
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { cursor: pointer; transition: background 0.12s; }
tbody tr:hover { background: var(--bg); }
tbody tr.active { background: rgba(46, 90, 140, 0.06); }
td .nm { font-weight: 700; color: var(--ink); white-space: nowrap; }
td .co { color: var(--ink2); }
td .ti { color: var(--ink3); font-size: 12px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 2px; padding: 3px 8px; white-space: nowrap; }
.badge.rel-상 { color: var(--ink); background: rgba(34, 32, 28, 0.09); font-weight: 800; }
.badge.rel-중 { color: var(--navy); background: rgba(46, 90, 140, 0.09); }
.badge.rel-하 { color: var(--ink3); background: var(--surface2); }
.badge.vf { color: var(--green-text); background: var(--green-dim); }
.badge.cc { color: var(--ink2); background: var(--surface2); font-family: var(--font-mono); }
.tbl-foot { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 12px; color: var(--ink3); border-top: 1px solid var(--line); flex-wrap: wrap; gap: 8px; }

.buyers-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.detail-panel {
  position: sticky; top: 144px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 24px; min-height: 320px;
}
.detail-empty { color: var(--ink3); font-size: 13px; text-align: center; padding: 90px 12px; }
.dp-name { font-family: var(--font-display); font-size: 19px; font-weight: 800; }
.dp-title { color: var(--ink2); font-size: 13px; margin: 2px 0 12px; }
.dp-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.dp-field { margin-bottom: 13px; }
.dp-field .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--ink3); margin-bottom: 3px; }
.dp-field .v { font-size: 13.5px; color: var(--ink); }
.dp-email {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--green-text);
  background: var(--green-dim); border: 1px solid rgba(22, 101, 52, 0.25);
  padding: 9px 12px; border-radius: var(--radius); word-break: break-all;
}
.dp-mask-note { font-size: 11px; color: var(--ink3); margin-top: 6px; }
.copy-btn {
  margin-left: auto; flex-shrink: 0;
  font-size: 11px; font-weight: 700; color: var(--ink2);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 4px 10px; cursor: pointer; transition: all 0.15s;
}
.copy-btn:hover { color: var(--ink); border-color: var(--ink3); }
.copy-btn.done { color: var(--green-text); border-color: var(--green-text); }
.dp-cta {
  display: block; text-align: center; margin-top: 18px;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  color: var(--navy); background: rgba(46, 90, 140, 0.07); border: 1px solid rgba(46, 90, 140, 0.35);
  padding: 11px; border-radius: var(--radius); text-decoration: none; transition: all 0.18s;
}
.dp-cta:hover { background: rgba(46, 90, 140, 0.13); }

/* ---------- 바이어 접촉 ---------- */
.persona-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.ptab {
  font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink2);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 13px 20px; cursor: pointer; transition: all 0.18s;
}
.ptab:hover { border-color: var(--ink3); }
.ptab.on { color: var(--ink); border-color: var(--amber); background: var(--amber-dim); }

.outreach-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; align-items: start; }
.timeline { position: relative; padding-left: 4px; }
.tl-item {
  display: grid; grid-template-columns: 52px 34px 1fr; gap: 0 10px; align-items: flex-start;
  position: relative; padding: 4px 4px 22px; cursor: pointer; border-radius: var(--radius);
  transition: background 0.15s; outline: none;
}
.tl-item:hover, .tl-item:focus-visible { background: var(--surface2); }
.tl-item:last-child { padding-bottom: 4px; }
.tl-item::before { content: ""; position: absolute; left: 72px; top: 34px; bottom: -2px; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-day { font-family: var(--font-mono); font-size: 11px; color: var(--ink3); padding-top: 7px; text-align: right; }
.tl-ic {
  width: 32px; height: 32px; border-radius: 50%; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em; color: var(--ink2);
  background: var(--surface); border: 1px solid var(--line-strong);
}
.tl-item.on .tl-ic { border-color: var(--amber); color: var(--amber-text); background: var(--amber-dim); }
.tl-item.on .tl-body .t { color: var(--amber-text); }
.tl-body .t { font-weight: 700; font-size: 13.5px; }
.tl-body .n { font-size: 12px; color: var(--ink2); margin-top: 1px; }

.bench-chips { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.bchip {
  font-size: 12.5px; color: var(--ink2);
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--navy);
  border-radius: var(--radius); padding: 9px 13px;
}
.bchip b { color: var(--navy); font-family: var(--font-mono); }

.template-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.template-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface2);
  flex-wrap: wrap;
}
.template-head .subj { font-size: 13px; }
.template-head .subj .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--ink3); display: block; margin-bottom: 2px; }
.tpl-warn { font-size: 11.5px; color: var(--ink2); padding: 8px 20px; background: var(--amber-dim); border-bottom: 1px solid rgba(255, 176, 32, 0.35); }
.tpl-linked {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 20px; font-size: 12.5px; color: var(--ink2);
  background: rgba(46, 90, 140, 0.06); border-bottom: 1px solid rgba(46, 90, 140, 0.2);
}
.tpl-linked b { color: var(--navy); }
.tpl-linked button {
  margin-left: auto; font-size: 11px; color: var(--ink3);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 3px 9px; cursor: pointer; transition: all 0.15s;
}
.tpl-linked button:hover { color: var(--ink); border-color: var(--ink3); }
.template-body {
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.75; color: var(--ink2);
  padding: 20px 22px; white-space: pre-wrap; max-height: 420px; overflow-y: auto;
  background: var(--bg);
}
.template-body .var { color: var(--amber-text); font-weight: 600; }
.template-body .var.filled { color: var(--navy); background: rgba(46, 90, 140, 0.1); border-radius: 2px; padding: 0 4px; font-weight: 600; }
.persona-angle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.pa-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.pa-box .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--ink3); margin-bottom: 5px; }
.pa-box .v { font-size: 13px; color: var(--ink); line-height: 1.55; }

/* ---------- 상담 계산기 ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: stretch; }
.calc-controls { display: flex; flex-direction: column; gap: 24px; }
.ctl-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink3); margin-bottom: 10px; }
.slider-row { display: flex; align-items: center; gap: 18px; }
input[type="range"] {
  flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--amber) var(--fill, 33%), var(--line) var(--fill, 33%));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--amber); cursor: pointer; border: 3px solid #fff;
  box-shadow: 0 0 0 1.5px var(--amber), 0 2px 8px rgba(255, 176, 32, 0.4);
}
.slider-val { font-family: var(--font-mono); font-size: 26px; font-weight: 600; min-width: 92px; text-align: right; font-variant-numeric: tabular-nums; }
.slider-val small { font-size: 12px; color: var(--ink3); font-weight: 400; }

.quality-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qbtn {
  text-align: left; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 14px 15px; cursor: pointer; transition: all 0.18s; color: var(--ink2);
  font-family: var(--font-body);
}
.qbtn .t { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--ink); display: block; margin-bottom: 3px; }
.qbtn .d { font-size: 11px; line-height: 1.5; display: block; }
.qbtn.on { border-color: var(--amber); background: var(--amber-dim); }
.qbtn.on .t { color: var(--amber-text); }
.calc-note { font-size: 12px; color: var(--ink3); line-height: 1.7; }
.calc-note b { color: var(--ink2); }

.calc-results {
  background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 4px;
}
.cres { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.cres:last-of-type { border-bottom: none; }
.cres .k { font-size: 13.5px; color: var(--ink2); }
.cres .k small { display: block; font-size: 11px; color: var(--ink3); }
.cres .v { font-family: var(--font-mono); font-size: 27px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cres.final { border-top: 2px solid rgba(255, 176, 32, 0.5); margin-top: 6px; padding-top: 18px; }
.cres.final .v { font-size: 40px; color: var(--amber-text); }
.cres.final .k { color: var(--ink); font-weight: 700; font-size: 15px; }

/* ---------- 즉시 매칭 진단 ---------- */
.match-preview { border-color: rgba(255, 176, 32, 0.55); }
.mp-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink3); margin-bottom: 8px; }
.mp-markets { display: flex; flex-direction: column; gap: 7px; margin-bottom: 13px; }
.mp-m {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 13px; font-size: 13.5px;
}
.mp-m.hl { border-color: rgba(255, 176, 32, 0.6); background: var(--amber-dim); }
.mp-m .rank {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--navy);
  width: 18px; height: 18px; border: 1px solid rgba(46, 90, 140, 0.45); border-radius: 2px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mp-m .c { font-weight: 700; }
.mp-m .v { margin-left: auto; font-size: 13px; }
.mp-m .note { font-size: 11px; color: var(--ink3); }
.mp-insight {
  font-size: 12.5px; color: var(--ink); line-height: 1.6;
  background: rgba(46, 90, 140, 0.06); border: 1px solid rgba(46, 90, 140, 0.25);
  border-radius: var(--radius); padding: 10px 13px; margin-bottom: 13px;
}
.mp-perf { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 2px; border-top: 1px dashed var(--line); }
.mp-perf b { font-size: 16px; color: var(--amber-text); }
.match-preview .dp-cta { margin-top: 12px; }

/* ---------- 명단 견본 ---------- */
.sample-card { border-color: rgba(22, 101, 52, 0.35); }
.sample-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; margin: 6px 0 12px; }
.sample-row > div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding: 6px 0; }
.sample-row .sk { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; color: var(--ink3); }
.sample-row .sv { font-size: 12px; color: var(--ink); font-family: var(--font-mono); }
.sample-note { font-size: 11.5px; color: var(--ink3); line-height: 1.7; }

/* ---------- 신청 폼 ---------- */
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 30px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink2); margin-bottom: 7px; }
.form-field input, .form-field select {
  width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--ink); font-family: var(--font-body); font-size: 14px;
  padding: 12px 14px; outline: none; transition: border-color 0.18s;
}
.form-field input:focus, .form-field select:focus { border-color: var(--navy); }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-notice { font-size: 11.5px; color: var(--ink3); line-height: 1.7; margin-bottom: 16px; border-left: 3px solid var(--line-strong); padding-left: 12px; }
.market-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mchip {
  font-size: 12.5px; font-weight: 600; color: var(--ink2);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 8px 14px; cursor: pointer; transition: all 0.15s;
}
.mchip.on { color: #fff; background: var(--navy); border-color: var(--navy); font-weight: 700; }
.mchip em { font-style: normal; font-family: var(--font-mono); font-size: 9.5px; color: var(--ink3); margin-left: 5px; }
.mchip.on em { color: rgba(255, 255, 255, 0.75); }

.mock-wrap { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px dashed var(--line-strong); }
.mock-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-btn {
  text-align: left; background: var(--surface2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 13px; cursor: pointer;
  font-family: var(--font-body); color: var(--ink2); transition: all 0.16s;
  display: flex; flex-direction: column; gap: 5px;
}
.mock-btn:hover { border-color: var(--line-strong); }
.mock-btn.on { border-color: var(--navy); background: rgba(46, 90, 140, 0.07); }
.mock-btn .mhead { display: flex; justify-content: space-between; align-items: center; }
.mock-btn b { font-size: 12.5px; color: var(--ink); font-weight: 700; line-height: 1.35; }
.mock-btn small { font-size: 11px; color: var(--ink3); line-height: 1.45; }

.gate-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.gate-item { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.gate-item:last-of-type { border-bottom: none; }
.gate-check {
  width: 22px; height: 22px; border-radius: 2px; flex-shrink: 0;
  border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: transparent; transition: all 0.15s;
}
.gate-item.on .gate-check { background: var(--green-text); border-color: var(--green-text); color: #fff; font-weight: 800; }
.gate-item .gt { font-size: 13.5px; }
.gate-item .gt small { display: block; color: var(--ink3); font-size: 11.5px; }
.gate-result { margin-top: 18px; border-radius: var(--radius); padding: 15px 18px; font-size: 13.5px; font-weight: 600; }
.gate-result.ok { background: var(--green-dim); border: 1px solid rgba(22, 101, 52, 0.3); color: var(--green-text); }
.gate-result.warn { background: var(--amber-dim); border: 1px solid rgba(255, 176, 32, 0.45); color: var(--amber-text); }
.apply-success { text-align: center; padding: 60px 20px; }
.apply-success .big { margin-bottom: 12px; }
.apply-success h3 { font-family: var(--font-display); font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.apply-success p { color: var(--ink2); font-size: 13.5px; }

/* ---------- 하단 ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; margin-top: 40px; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.foot-sources h4 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink3); margin-bottom: 12px; font-weight: 500; }
.foot-sources ul { list-style: none; }
.foot-sources li { font-size: 12px; color: var(--ink3); padding: 3px 0; line-height: 1.6; }
.foot-sources li b { color: var(--ink2); font-weight: 600; }
.foot-brand .logo-word { font-size: 19px; }
.foot-brand p { font-size: 12.5px; color: var(--ink3); margin-top: 10px; max-width: 380px; line-height: 1.7; }
.foot-note { margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--ink3); line-height: 1.8; }

/* ---------- 등장 효과 ---------- */
/* 편집디자인 격상(2026-07-20): 스크롤 페이드인(opacity 0 + translateY) 제거 — 인쇄물처럼
   콘텐츠는 처음부터 선명하게. fade-up 모션은 'AI 랜딩' 인상의 주원인이라 정적으로 전환한다. */
.reveal, .reveal.in { opacity: 1; transform: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .radar { display: none; }
  .prob-grid { grid-template-columns: 1fr 1fr; }
  .step-grid { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .sample-row { grid-template-columns: 1fr; }
  .form-row2 { grid-template-columns: 1fr; }
  .market-grid, .vn-grid, .outreach-grid, .calc-grid, .apply-grid { grid-template-columns: 1fr; }
  .hsd-grid { grid-template-columns: 1fr; }
  .hs-toggle-row { grid-template-columns: repeat(3, 1fr); }
  .buyers-layout { grid-template-columns: 1fr; }
  .detail-panel { position: static; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .prob-grid { grid-template-columns: 1fr; }
  .nav-links { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; font-size: 12.5px; padding: 6px 9px; }
  .nav-inner { gap: 12px; }
  .quality-btns { grid-template-columns: 1fr; }
  .hs-toggle-row { grid-template-columns: repeat(2, 1fr); }
  .hsd-hero { flex-direction: column; align-items: flex-start; }
  .mock-btns { grid-template-columns: 1fr; }
  .kbar-nav { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .kbar-nav::-webkit-scrollbar { display: none; }
  .kbar-nav a { padding: 6px 7px; font-size: 12px; white-space: nowrap; }
  .kbar-l1 { font-size: 11px; }
  .kbar-l2 { display: none; }
  .step-grid { grid-template-columns: 1fr; }
  .persona-angle { grid-template-columns: 1fr; }
  section { padding: 58px 0; }
  .stat-cards { grid-template-columns: 1fr; }
}

/* ── 디자인 2.0 마감 폴리시 (2026-07-10) ── */
.btn-primary,.btn-ghost,.nav-cta{transition:transform .16s ease, box-shadow .16s ease, background .16s ease}
.btn-primary:hover,.nav-cta:hover{transform:translateY(-2px)}
.btn-ghost:hover{transform:translateY(-1px)}
a:focus-visible,button:focus-visible{outline:2px solid var(--amber);outline-offset:2px}
.hstat{transition:transform .18s ease}
.hstat:hover{transform:translateY(-2px)}
.step{transition:border-color .18s ease}
.step:hover{border-color:var(--amber)}


/* ── K바 반응형 보강(2026-07-15): 창 축소 시 브랜드 줄바꿈 깨짐 방지 ──
   브랜드는 nowrap 고정, 메뉴는 남는 폭에서 가로 스크롤(스크롤바 숨김) */
.kbar-brand{flex-shrink:0}
.kbar-l1{white-space:nowrap}
.kbar-nav{flex:1 1 auto;min-width:0;overflow-x:auto;justify-content:flex-end;scrollbar-width:none}
.kbar-nav::-webkit-scrollbar{display:none}
@media(max-width:1200px){.kbar-nav a{padding:8px 9px;font-size:12.5px}}
@media(max-width:1050px){.kbar-l2{display:none}.kbar-visits{display:none}}

/* ============================================================
   2026-07-19 재구축 — 「거래 서류철」 증축 블록
   RadCareer 「검교정 성적서」의 형제 문법: 문서 띠·국문 마이크로 라벨·
   괘선 표·근거 각주·접수번호. 앰버는 행동·활성 전용으로 절제.
   ============================================================ */

/* ── 문서 띠 ── */
.docbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: var(--maxw); margin: 0 auto; padding: 8px 28px;
  border-bottom: 1px solid var(--line);
}
.doclabel { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .07em; color: var(--ink2); white-space: nowrap; }
.docmeta { font-family: var(--font-mono); font-size: 11px; color: var(--ink3); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── 히어로 — 문서 첫 장(레이더 폐지 · 원장 패널) ── */
.hero { padding: 64px 0 56px; overflow: visible; }
.hero-grid { grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr); gap: 48px; align-items: start; }
.hero h1 { font-size: clamp(38px, 4.4vw, 54px); line-height: 1.16; letter-spacing: -0.03em; margin-bottom: 18px; }
.hero-sub { margin-bottom: 26px; }
.hero-ctas { margin-bottom: 30px; }
.hero-facts { display: flex; gap: 0; border-top: 1px solid var(--line); padding-top: 14px; flex-wrap: wrap; }
.hfact { padding-right: 24px; margin-right: 24px; border-right: 1px solid var(--line); }
.hfact:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hfact .v { font-size: 15px; font-weight: 800; color: var(--ink); }
.hfact .k { font-size: 12px; color: var(--ink3); margin-top: 1px; }

/* 등록부 원장 패널 — 서류철 첫 장 */
.ledger-panel { background: var(--surface); border: 1px solid var(--line-strong); border-top: 2px solid var(--ink); }
.ledger-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 12px 16px 10px; border-bottom: 1.5px solid var(--line-strong); background: var(--surface2);
}
.ledger-head b { font-size: 14px; font-weight: 800; }
.ledger-head .mono { font-size: 11px; color: var(--ink3); font-family: var(--font-mono); }
.ledger-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ledger-table th {
  text-align: left; font-family: var(--font-mono); font-weight: 600; font-size: 11px;
  letter-spacing: .05em; color: var(--ink2); padding: 8px 12px; border-bottom: 1px solid var(--line-strong);
  background: var(--surface2);
}
.ledger-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ledger-table .src { font-size: 11.5px; color: var(--ink3); font-family: var(--font-mono); word-break: keep-all; }
.ledger-table .tr, .ledger-table th.tr { text-align: right; }
.ledger-table .sum td { border-bottom: none; border-top: 2px solid var(--ink); font-weight: 800; background: var(--surface2); }
.ledger-tiers { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 16px 4px; }
.ledger-foot { padding: 8px 16px 14px; font-size: 12.5px; color: var(--ink2); }
.ledger-foot .fn-line { display: block; margin-top: 6px; font-size: 11.5px; color: var(--ink3); }

/* 국가·계층 칩 */
.cc-chip {
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  border: 1px solid var(--line-strong); padding: 1px 6px; margin-right: 4px; color: var(--ink2);
  vertical-align: 1px;
}
.tier-chip {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px;
  border: 1px solid var(--line-strong); color: var(--ink2); background: var(--surface);
  white-space: nowrap;
}
.tier-chip.t1 { border-color: var(--amber-text); color: var(--amber-text); background: var(--amber-dim); }
.tier-chip.t2 { border-color: var(--line-strong); color: var(--ink2); }
.tier-chip.t3 { border-color: var(--line); color: var(--ink3); }

/* ── 매칭 체험기 ── */
.match-widget { background: var(--surface); border: 1px solid var(--line-strong); border-top: 2px solid var(--ink); padding: 20px 22px 22px; }
.mw-controls { display: flex; gap: 22px; align-items: flex-end; flex-wrap: wrap; }
.mw-group { display: flex; flex-direction: column; gap: 7px; }
.mw-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--ink2); }
.mw-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.mseg {
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink2);
  padding: 8px 14px; border-radius: var(--radius); transition: all .15s;
}
.mseg:hover { border-color: var(--amber-text); color: var(--amber-text); }
.mseg.on { background: var(--knavy); border-color: var(--knavy); color: #fff; }
.mseg:focus-visible, .mw-run:focus-visible { outline: 2px solid var(--amber-text); outline-offset: 2px; }
.mw-run { margin-left: auto; }
.mw-srcline { font-family: var(--font-mono); font-size: 11px; color: var(--ink3); margin-top: 10px; padding-bottom: 4px; }
.mw-empty { padding: 34px 10px; text-align: center; color: var(--ink2); font-size: 14.5px; border: 1px dashed var(--line-strong); margin-top: 14px; }
.mw-empty small { color: var(--ink3); }
.mw-summary { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 16px 0 10px; font-size: 14.5px; }
.mw-note { margin-left: auto; font-size: 11.5px; color: var(--ink3); font-family: var(--font-mono); }
.mw-warn {
  border: 1px solid rgba(180, 83, 9, .45); border-left: 4px solid var(--amber-text);
  background: var(--amber-dim); color: var(--ink); font-size: 13px; line-height: 1.6;
  padding: 10px 14px; margin: 0 0 10px;
}
.mw-rows { border-top: 2px solid var(--ink); }
.mw-row {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 96px;
  gap: 6px 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line);
}
.mw-rank { font-size: 15px; font-weight: 700; color: var(--ink3); text-align: center; }
.mw-firm-id { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mw-firm-id .mono { font-family: var(--font-mono); font-weight: 700; font-size: 13.5px; letter-spacing: .02em; }
.mw-city { font-size: 12px; color: var(--ink3); }
.mw-reasons { font-size: 12.5px; color: var(--ink2); margin-top: 3px; }
.mw-row-warn { font-size: 12px; color: var(--amber-text); font-weight: 600; margin-top: 4px; }
.mw-score { text-align: right; }
.mw-score .v { font-size: 21px; font-weight: 700; font-family: var(--font-mono); line-height: 1; }
.mw-score .k { font-size: 10.5px; color: var(--ink3); font-family: var(--font-mono); }
.mw-score-bar { height: 3px; background: var(--surface3); margin-top: 6px; }
.mw-score-bar i { display: block; height: 100%; background: var(--amber-text); }
.mw-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 2px 2px; font-size: 13.5px; color: var(--ink2);
}
.mw-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── 배점표·등록부 표 ── */
.score-open { margin-top: 26px; }
.score-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.score-head h3 { font-size: 17px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-top: 2px solid var(--ink); background: var(--surface); }
.score-table, .reg-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.score-table th, .reg-table th {
  text-align: left; font-family: var(--font-mono); font-weight: 600; font-size: 11px; letter-spacing: .05em;
  color: var(--ink2); padding: 8px 12px; border-bottom: 1.5px solid var(--line-strong); background: var(--surface2);
}
.score-table td, .reg-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.score-table tr:last-child td, .reg-table tr:last-child td { border-bottom: none; }
.score-table .tr, .reg-table .tr, th.tr { text-align: right; }
.fn { font-size: 12px; color: var(--ink3); line-height: 1.65; padding-top: 8px; }
.fn b { color: var(--ink2); }

/* 등록부 자산 */
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.reg-table .bar-cell { width: 34%; min-width: 90px; }
.reg-table .bar-cell i { display: block; height: 8px; width: var(--w, 0%); background: var(--knavy); min-width: 3px; }
.reg-table.diff td, .reg-table.diff th { font-size: 12.5px; line-height: 1.55; }
.reg-table.diff th.k { font-weight: 700; color: var(--ink); white-space: nowrap; text-align: left; }
.reg-table.diff small { color: var(--ink3); display: block; }
.warn-t { color: var(--amber-text); }
.callout.warn { border-left: 4px solid var(--amber-text); background: var(--amber-dim); }

/* ── 모바일 보정(재구축) ── */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .reg-grid { grid-template-columns: minmax(0, 1fr); }
  .ledger-panel { min-width: 0; }
  .ledger-table .src { white-space: normal; word-break: break-all; }
}
@media (max-width: 620px) {
  .docbar { padding: 7px 16px; }
  .docbar .docmeta { display: none; }
  .hero { padding: 40px 0 40px; }
  .hero h1 { font-size: 32px; }
  .hero-facts { flex-direction: column; gap: 10px; }
  .hfact { border-right: none; padding-right: 0; margin-right: 0; }
  .mw-controls { align-items: stretch; flex-direction: column; }
  .mw-run { margin-left: 0; width: 100%; }
  .mw-note { margin-left: 0; }
  .mw-row { grid-template-columns: 24px minmax(0, 1fr); }
  .mw-score { grid-column: 2; text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .mw-score-bar { flex: 1; align-self: center; }
  .ledger-table .src { font-size: 11px; }
}

/* ── 모바일 내비 오버플로 수리(기존 배포부터 있던 +172px 원인) ── */
@media (max-width: 720px) {
  .kbar-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; scrollbar-width: none; }
  .kbar-nav::-webkit-scrollbar { display: none; }
  .nav-inner { gap: 12px; }
  .nav-links { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
}
@media (max-width: 620px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-primary, .hero-ctas .btn-ghost { white-space: normal; text-align: center; width: 100%; }
  .mw-cta-btns { width: 100%; }
  .mw-cta-btns .btn-primary, .mw-cta-btns .btn-ghost { white-space: normal; text-align: center; flex: 1; }
}

@media (max-width: 720px) {
  .kbar-in { min-width: 0; }
  .kbar-nav { min-width: 0; flex: 1 1 0; }
  .kbar-brand { flex: none; }
  .nav-links { min-width: 0; }
}

/* HS 토글 플립카드 — 모바일 줄바꿈(문서 폭 +172px 원인 수리) */
@media (max-width: 720px) {
  .hs-toggle-row { flex-wrap: wrap; }
  .hs-toggle-row .fcard { flex: 1 1 46%; min-width: 150px; }
}

/* HS 플립카드 그리드 — 콘텐츠 min-width가 열 폭을 강제하던 문제(+172px) */
.hs-toggle-row .fcard { min-width: 0; }
.hs-toggle-row .fcard-inner, .hs-toggle-row .fcard-front, .hs-toggle-row .fcard-back { min-width: 0; max-width: 100%; }
@media (max-width: 720px) {
  .fcard .fhead, .fcard .fcode, .fcard .fk { white-space: normal; }
}

/* 시장 카드·원장 표 — 그리드 min-content 수축 허용(모든 폭 오버플로 근절) */
.market-grid > .card { min-width: 0; }
.vn-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.vn-grid > * { min-width: 0; }
.ledger-panel { min-width: 0; }
.ledger-table .src { white-space: normal; word-break: break-all; }
.hero-grid > * { min-width: 0; }

/* 등록부 통계 표 — 모바일 가로 스크롤 컨테이너 */
#brand-map, #id-share { overflow-x: auto; }
#brand-map table, #id-share table { min-width: 420px; }
.mw-out { min-width: 0; }

/* ── C안 「상사 원장」 구조 표지 (2026-07-19) ── */
.docpage { font-family: var(--font-mono); letter-spacing: .14em; color: var(--ink2); white-space: nowrap; margin-left: 10px; }
@media (max-width: 720px) {
  .docbar { flex-wrap: wrap; row-gap: 2px; }
  .doclabel, .docmeta { white-space: normal; }
}
.ledger-foot.with-seal { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.seal-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.seal {
  width: 56px; height: 56px; border: 2.5px solid var(--amber); color: var(--amber);
  display: grid; grid-template-columns: 1fr 1fr; place-items: center;
  font-weight: 800; font-size: 16px; line-height: 1; padding: 5px; gap: 1px;
  transform: rotate(-2.5deg); opacity: .92;
}
.seal-cap { font-size: 10px; color: var(--ink3); letter-spacing: .08em; }

/* ── 증빙 사진 대지(貼付) — 원장에 붙인 현장 증빙 문법 (2026-07-19) ── */
.evi { margin: 0; background: var(--surface); border: 1px solid var(--line); padding: 10px 10px 8px; }
.evi img { display: block; width: 100%; height: auto; filter: sepia(.05) saturate(.94); }
.evi figcaption { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--ink2); }
.evi figcaption .no { color: var(--ink3); white-space: nowrap; }
.evi-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 720px) { .evi-pair { grid-template-columns: 1fr; } }

/* ── 구조 개편(2026-07-19): 스킵 링크·보조 시맨틱·신청 요약 스트립 ── */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--ink); color: var(--surface); padding: 10px 18px; font-weight: 700; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.problems .sec-head { margin-bottom: 24px; }
.apply-strip { font-size: 14px; line-height: 2; margin: 10px 0 2px; }
.apply-strip .fn { font-size: 11.5px; color: var(--ink3); margin-left: 3px; }
.apply-strip-fn { font-size: 12px; color: var(--ink3); margin-bottom: 4px; }

/* ── 본편/별책 분리(2026-07-19): 브리핑 요약·차례·내비 구분선 ── */
.nav-sep { width: 1px; height: 16px; background: var(--line-strong); margin: 0 4px; flex: none; align-self: center; }
.brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.brief-card { display: block; color: inherit; text-decoration: none; transition: border-color .15s; }
.brief-card:hover { border-color: var(--ink); }
.brief-facts { list-style: none; padding: 0; margin: 6px 0 12px; }
.brief-facts li { font-size: 13.5px; line-height: 1.7; padding: 7px 0 7px 2px; border-bottom: 1px solid var(--line); }
.brief-facts li:last-child { border-bottom: none; }
.brief-more { font-weight: 700; font-size: 13.5px; color: var(--navy); }
.brief-card:hover .brief-more { color: var(--ink); }
.brief-foot { font-size: 12.5px; color: var(--ink2); margin-top: 14px; }
.mkt-head { padding: 40px 0 8px; }
.mkt-head + section { padding-top: 44px; }

/* ── 元帳 표지(masthead) — 과감한 재구성(2026-07-20): 얇은 표제 → 대형 원장 표지.
   두꺼운 먹 괘선 + 朱印 別冊 인장 + 초대형 표제 + 괘선 색인(§1~§4 2열). ── */
.cover-rule { height: 5px; background: var(--ink); margin-bottom: 20px; }
.cover-kicker { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.cover-seal { font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: .32em;
  color: var(--surface); background: var(--amber); padding: 6px 11px 6px 15px; }
.cover-kicker-t { font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; color: var(--ink2); }
.cover-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 8.5vw, 92px);
  line-height: 0.96; letter-spacing: -0.035em; color: var(--ink); margin: 0;
  border-left: 0; padding-left: 0; }   /* 표제엔 섹션 h2 좌측 괘선(navy) 미적용 */
.cover-sub { margin: 24px 0 0; max-width: 640px; font-size: 15.5px; color: var(--ink2); line-height: 1.75; }
.cover-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 34px; border-top: 2px solid var(--ink); }
.cover-index a { display: flex; align-items: center; gap: 12px; padding: 15px 6px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15.5px; transition: background .15s ease; }
.cover-index a:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 20px; }
.cover-index a:nth-child(even) { padding-left: 22px; }
.cover-index a:hover { background: var(--surface); }
.cover-index .ci-no { font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--amber-text); min-width: 26px; }
.cover-index .ci-t { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 700px) {
  .cover-index { grid-template-columns: 1fr; }
  .cover-index a:nth-child(odd) { border-right: 0; padding-right: 6px; }
  .cover-index a:nth-child(even) { padding-left: 6px; }
}

.mkt-toc { display: flex; gap: 8px; flex-wrap: wrap; }
.mkt-toc a {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font-size: 13px; font-weight: 700; color: var(--ink2);
  border: 1px solid var(--line-strong); background: var(--surface); padding: 8px 14px;
}
.mkt-toc a:hover { border-color: var(--ink); color: var(--ink); }
.foot-links { margin-top: 10px; font-size: 12.5px; }
.foot-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .brief-grid { grid-template-columns: 1fr; } .nav-sep { display: none; } }

/* ── 분권 검증 반영(2026-07-19): 앵커 착지·현 위치 표시·모바일 진입로 ── */
[id] { scroll-margin-top: 132px; }                     /* kbar+nav 고정 크롬 아래로 착지 */
@media (max-width: 720px) { [id] { scroll-margin-top: 110px; } }
.nav-links a.on, .nav-links a[aria-current="page"] {
  color: var(--ink); font-weight: 800; box-shadow: inset 0 -2px 0 var(--amber);
}
@media (max-width: 720px) {
  /* 본편 앵커는 모바일에서 숨겨 역할 링크(브리핑·쇼케이스·포털·콘솔)를 화면 안에 확보 */
  .nav-links a[href^="#"], .nav-links a[href^="./#"] { display: none; }
  /* 이용 링크(포털·콘솔)를 앞으로 — 진입로가 첫 화면 폭 안에 들어오게 */
  .nav-links a[href="my.html"] { order: -2; }
  .nav-links a[href="admin/"] { order: -1; }
  .nav-links {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent);
  }
}

/* ── 점수 산출 명세(후보별 계산서 — 2026-07-20) ── */
.mw-bd { margin-top: 8px; }
.mw-bd summary {
  cursor: pointer; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--navy); list-style: none; display: inline-flex; align-items: center; gap: 5px;
}
.mw-bd summary::before { content: "▸"; font-size: 10px; transition: transform .15s; }
.mw-bd[open] summary::before { transform: rotate(90deg); }
.mw-bd summary::-webkit-details-marker { display: none; }
.mw-bd summary:hover { color: var(--ink); }
.mw-bd table { width: 100%; border-collapse: collapse; margin-top: 7px; font-size: 12px; background: var(--surface); }
.mw-bd th, .mw-bd td { padding: 5px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.mw-bd thead th {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; font-weight: 600;
  color: var(--ink2); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--surface2);
}
.mw-bd tbody th[scope="row"] { font-weight: 600; color: var(--ink2); white-space: nowrap; width: 118px; }
.mw-bd td.num, .mw-bd th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mw-bd td:last-child { color: var(--ink2); }
.mw-bd tr.sum th, .mw-bd tr.sum td { border-top: 1.5px solid var(--ink); border-bottom: 2px solid var(--ink); font-weight: 800; color: var(--ink); }
@media (max-width: 720px) { .mw-bd td:last-child { font-size: 11px; } .mw-bd tbody th[scope="row"] { width: auto; } }
