@import url("/static/fonts/pretendard.css");

/* 웍스AI 거래처 레이더 — 공통 디자인 토큰과 부품(형제 앱 동시통역·미팅·코드리뷰와 같은 틀).
   앱 껍데기(머리글·버튼·입력·카드·안내 화면)는 형제 앱 규격, 리포트 본문은 인쇄된 심사 보고서 문법(가는 선·표 중심)을 그대로 지킨다.
   상자 앞·위 색 줄과 장식용 동심원은 쓰지 않는다. 그림자는 떠 있는 것(계정 메뉴·토스트)에만. 앱 색(청록)은 마크와 --brand 에만. */
:root {
  --ink: #101426; --ink-2: #3a4159; --ink-3: #6c738a; --ink-4: #9aa0b4;
  --bg: #ffffff; --bg-2: #f4f5f9; --bg-3: #e9ebf2; --line: #dfe2ec; --line-2: #c9cedd; --line-3: #eceef4;
  --brand: #0b6378; --brand-ink: #084e5f; --brand-soft: #e2f0f3; --brand-text: #0b6378;
  --band: #0f1e2b;
  --stop: #b42318; --alert: #d4561a; --watch: #c68a00; --good: #1c8a4a; --none: #c5cdd3;
  --stop-ink: #7c1d14; --watch-ink: #855c00; --good-ink: #0f5a2f;
  --stop-soft: #fbe7e5; --watch-soft: #fdf6e3;
  --r-s: 8px; --r-m: 12px; --r-l: 18px; --r-xl: 26px;
  --shadow: 0 12px 40px rgba(16, 20, 38, .16), 0 2px 8px rgba(16, 20, 38, .08);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  /* 리포트 본문(인쇄 보고서 문법)이 쓰는 이름 — 위 토큰을 가리킨다(어두운 화면에서도 같이 바뀌게) */
  --muted: var(--ink-3); --rule: var(--line); --rule-2: var(--line-3); --paper: var(--bg-2); --surface: var(--bg);
  --r: 4px; --r-lg: 6px;
  color-scheme: light;
}
[data-theme="dark"] {
  --ink: #f2f4fb; --ink-2: #c5cade; --ink-3: #8f96b0; --ink-4: #646b85;
  --bg: #0d1020; --bg-2: #161a2e; --bg-3: #1f243c; --line: #2a3050; --line-2: #3a4168; --line-3: #20253d;
  --brand: #177d93; --brand-ink: #1b8ea7; --brand-soft: #12303a; --brand-text: #6fcbdd;
  --band: #111a2b;
  --stop: #ff6b5e; --alert: #ff8a4c; --watch: #e2b04a; --good: #4cc38a; --none: #5a6178;
  --stop-ink: #ffb4ab; --watch-ink: #e9c46a; --good-ink: #6fd3a0;
  --stop-soft: #3a1a1c; --watch-soft: #2f2712;
  --shadow: 0 16px 48px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg);
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
.num, td.num, th.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
a { color: var(--brand-text); text-underline-offset: 3px; }
h1, h2, h3, h4 { letter-spacing: -.02em; line-height: 1.3; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
svg { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-m);
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none;
  white-space: nowrap; transition: background .12s, border-color .12s, transform .06s; }
.btn:hover { background: var(--bg-2); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 14px 24px; font-size: 17px; border-radius: 14px; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn svg { width: 18px; height: 18px; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 0; background: transparent; color: var(--ink-2); flex: none; }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
/* 기준 앱(통역)과 같게 — 누르면 갈 쪽을 보인다: 밝을 때 달, 어두울 때 해 */
.theme-ico .sun { display: none; }
[data-theme="dark"] .theme-ico .moon { display: none; }
[data-theme="dark"] .theme-ico .sun { display: block; }

/* ── 입력 ── */
.input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-m); border: 1px solid var(--line-2); background: var(--bg); font-size: 16px;
  -webkit-appearance: none; appearance: none; }
.input:focus { outline: 0; border-color: var(--brand-text); }
.input:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 26%, transparent); outline-offset: 0; }
.input::placeholder { color: var(--ink-4); }

/* ── 머리글(형제 앱 공통 GNB) ── */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; flex: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand em { font-style: normal; }
.top-sp { flex: 1; }
.top-nav { display: flex; gap: 4px; min-width: 0; }
.top-nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.top-nav a:hover { background: var(--bg-2); color: var(--ink); }
.top-nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.top-end { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.top-end .btn-sm { padding: 6px 12px; }
.menu-btn, .top-menu { display: none; }

/* 계정 메뉴 · 메뉴(로그아웃 휴대폰) — 떠 있는 판이라 그림자 */
.acct { position: relative; flex: none; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px solid var(--line-2);
  background: var(--bg); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.acct-btn:hover, .acct-btn[aria-expanded="true"] { background: var(--bg-2); color: var(--ink); }
.acct-btn svg { width: 16px; height: 16px; flex: none; }
.acct-av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); font-weight: 800; font-size: 14px; flex: none; }
.acct-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: min(280px, calc(100vw - 32px)); padding: 8px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); display: grid; gap: 2px; text-align: left; }
.acct-who { display: grid; gap: 2px; padding: 10px 14px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.acct-who b { color: var(--ink); font-weight: 750; font-size: 16px; overflow-wrap: anywhere; }
.acct-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-label { font-size: 12.5px; color: var(--ink-3); }
.acct-item { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 10px 14px; border: 0; border-radius: var(--r-m); background: transparent;
  color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.3; text-decoration: none; text-align: left; }
.acct-item:hover { background: var(--bg-2); }
.acct-item[disabled] { opacity: .6; cursor: progress; }

/* 로그인 직후 안내 줄 — 옅은 바탕 한 줄(색 줄 없음) */
.signed-note { background: var(--brand-soft); border-bottom: 1px solid var(--line); }
.signed-in { max-width: 1160px; margin: 0 auto; padding: 6px 12px 6px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ink); }
.signed-in a { font-weight: 700; }

/* 바닥글 */
.foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 40px 0 56px; color: var(--ink-3); font-size: 14px; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot h4 { font-size: 14px; color: var(--ink); margin: 0 0 10px; }
.foot p { margin: 0; line-height: 1.7; max-width: 52ch; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: inherit; text-decoration: none; } .foot a:hover { color: var(--ink); }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); font-size: 16px; margin-bottom: 8px; }
.foot-brand svg { width: 24px; height: 24px; }
.foot-base { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 20px; }
.page-report .foot, .page-app .foot { margin-top: 64px; }

/* 토스트 — 떠 있는 것이라 그림자 */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg); padding: 12px 18px;
  border-radius: 14px; font-size: 15px; font-weight: 500; max-width: calc(100vw - 32px); box-shadow: var(--shadow); }

/* ── 앱 첫 화면(회사 찾기) ── */
.app-home { padding-top: 40px; }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.home-head h1 { margin: 0; font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.25; }
.home-lead { margin: 10px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.7; max-width: 62ch; }
.tour-open { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px 6px 10px; border-radius: 99px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.tour-open:hover { background: var(--bg-2); color: var(--ink); }
.tour-open svg { width: 16px; height: 16px; color: var(--brand-text); }
/* 1분 체험 보이기 — 서버가 data-tour 로 처음 상태를 정하고(리포트 0건이면 open), 닫은 사람은 boot.js 가 html.tour-closed 를 붙인다 */
.app-home[data-tour="closed"] .tour { display: none; }
.tour-closed .app-home .tour { display: none; }
.app-home[data-tour="open"] .tour-open { display: none; }
.tour-closed .app-home .tour-open { display: inline-flex; }

.search { display: flex; align-items: center; gap: 8px; margin-top: 28px; max-width: 780px; min-height: 62px; padding: 6px 6px 6px 18px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-l); background: var(--bg); }
.search:focus-within { border-color: var(--brand-text); outline: 3px solid color-mix(in srgb, var(--brand) 22%, transparent); outline-offset: 0; }
.search > svg { width: 22px; height: 22px; color: var(--ink-3); flex: none; }
.search input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; font-size: 18px; font-weight: 500; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--ink-4); font-weight: 400; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input:focus-visible { outline: 0; }
.search .btn { min-height: 48px; padding: 10px 24px; font-size: 16px; }
.search-hint { color: var(--ink-3); font-size: 14px; margin: 10px 0 0; }
.search-hint b { color: var(--ink-2); font-weight: 600; }
/* 「이렇게 나와요 → 예시 리포트 보기」 — 입력칸 바로 밑, 무엇이 나오는지 먼저 보게 */
.ex-link { display: flex; align-items: center; gap: 14px; max-width: 780px; margin-top: 14px; padding: 14px 18px; border-radius: var(--r-m); background: var(--bg-2);
  color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.ex-link:hover { border-color: var(--line-2); }
.ex-link .ex-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--bg); color: var(--brand-text); flex: none; }
.ex-link .ex-ico svg { width: 22px; height: 22px; }
.ex-link .ex-t { display: grid; gap: 1px; min-width: 0; flex: 1; }
.ex-link .ex-t small { font-size: 13px; font-weight: 700; color: var(--brand-text); }
.ex-link .ex-t b { font-size: 16.5px; font-weight: 700; }
.ex-link .ex-t span { font-size: 14px; color: var(--ink-3); }
.ex-link > svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }

.results { margin-top: 22px; max-width: 900px; }
.results-head { color: var(--ink-2); font-size: 14.5px; margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.results-head .results-cost { display: block; margin-top: 4px; color: var(--ink-3); font-size: 13.5px; }
.cand { display: flex; gap: 16px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 16px 4px; }
.cand:hover { background: var(--bg-2); }
.cand-name { font-weight: 700; font-size: 17px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.cand-sub { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--ink-2); font-size: 14px; margin-top: 3px; }
.cand-sub .addr { color: var(--ink-3); }
.cand .btn { min-height: 40px; padding: 8px 16px; font-size: 14.5px; border-radius: 10px; flex: none; }
.chip { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); line-height: 1.5; }
.chip-dim { color: var(--ink-3); }
.chip-key { border-color: color-mix(in srgb, var(--watch) 55%, var(--line)); color: var(--watch-ink); }
.chip-closed { border-color: color-mix(in srgb, var(--stop) 45%, var(--line)); color: var(--stop); }
.notice-inline { border-radius: var(--r-m); background: var(--bg-2); padding: 14px 16px; color: var(--ink-2); margin-top: 4px; }
.notice-inline.err { background: var(--stop-soft); color: var(--stop-ink); margin-bottom: 8px; }

.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; margin-top: 56px; }
.h2 { font-size: 19px; font-weight: 750; margin: 0 0 8px; }
.recent .row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; min-height: 56px; padding: 10px 4px;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.recent .row:first-child { border-top: 1px solid var(--line); }
.recent .row:hover { background: var(--bg-2); }
.recent .nm { font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent .nm small { color: var(--ink-3); font-weight: 500; margin-left: 8px; }
.recent .when { color: var(--ink-3); font-size: 13px; }
.tier-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tier-pill svg { flex: none; }
.dots { font-size: 13.5px; color: var(--ink-3); }
.empty { padding: 22px 18px; color: var(--ink-2); border-radius: var(--r-m); background: var(--bg-2); }
.empty b { display: block; color: var(--ink); margin-bottom: 4px; }
.what { border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px 22px 18px; align-self: start; }
.what ol { list-style: none; margin: 4px 0 0; padding: 0; counter-reset: w; }
.what li { counter-increment: w; padding: 9px 0 9px 28px; border-top: 1px solid var(--line-3); display: grid; gap: 1px; position: relative; }
.what li:first-child { border-top: 0; }
.what li::before { content: counter(w); position: absolute; left: 0; top: 9px; color: var(--ink-3); font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.what li b { color: var(--ink); font-size: 15px; }
.what li span { font-size: 13.5px; color: var(--ink-2); }
.what .cost { font-size: 13.5px; color: var(--ink-2); margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.what .note { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }

/* ── 진행 화면 — 지금 무엇을 모으는지 ── */
.scan { padding-top: 48px; }
.scan-card { max-width: 760px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px 32px 26px; }
.scan-k { margin: 0; font-size: 14px; font-weight: 700; color: var(--brand-text); }
.scan-card h1 { margin: 4px 0 0; font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.03em; }
#scan-msg { margin: 6px 0 0; color: var(--ink-2); }
.scan-bar { height: 8px; border-radius: 99px; background: var(--bg-3); overflow: hidden; margin-top: 22px; }
.scan-bar i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width .4s ease-out; }
.scan-count { margin: 8px 0 0; font-size: 14px; color: var(--ink-3); }
.scan-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.scan-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.scan-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line-3); }
.scan-list li > i { width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--brand-text); position: relative; }
.scan-list li b { display: block; font-size: 15.5px; font-weight: 650; }
.scan-list li span { display: block; font-size: 13.5px; color: var(--ink-3); }
.scan-list li em { font-style: normal; font-size: 13.5px; color: var(--ink-3); white-space: nowrap; margin-top: 2px; }
@media (prefers-reduced-motion: no-preference) { .scan-list li:not(.on):not(.empty):not(.err):not(.late) > i { animation: spin 1s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-list li.on > i { background: var(--brand); border-color: var(--brand); }
.scan-list li.on > i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.scan-list li.on em { color: var(--good-ink); }
.scan-list li.empty > i, .scan-list li.late > i { border-color: var(--line-2); background: var(--bg-3); }
.scan-list li.err > i { border-color: var(--alert); }
.scan-list li.err em { color: var(--alert); }
.scan-note { margin: 16px 0 0; font-size: 13.5px; color: var(--ink-3); }

/* ── 리포트: 상단 막대 · 목차 ── */
.page-report { background: var(--bg); }
.rbar { position: sticky; top: 64px; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.rbar-in { max-width: 1160px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; gap: 10px; }
.rbar-sp { flex: 1; }
.rbar-demo { background: color-mix(in srgb, var(--watch-soft) 94%, transparent); }
.demo-flag { font-size: 14px; font-weight: 600; color: var(--watch-ink); }
.rbar-meta { color: var(--muted); font-size: 13.5px; }
.df-short { display: none; }
.report { max-width: none; margin: 0; padding: 0 0 24px; position: relative; }
.report > .terms, .report > .r-grid, .report > .legal { max-width: 1160px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.r-grid { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 40px; align-items: start; }
.r-main { min-width: 0; }
.toc { position: sticky; top: 134px; margin-top: 30px; display: flex; flex-direction: column; gap: 0; }
.toc a { display: flex; gap: 8px; align-items: center; color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 6px 0; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.toc-sp { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--rule); flex: none; }
.toc a.on { color: var(--ink); font-weight: 700; }

/* ── 결론 밴드(남색 한 장, 장식 없음 — 어두운 화면에서도 남색) ── */
.band { background: var(--band); color: #dbe6ec; margin: 0; padding: 34px max(24px, calc((100% - 1112px) / 2)) 38px; }
[data-theme="dark"] .band { border-bottom: 1px solid var(--line); }
.band-in { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: center; }
.band-kicker { margin: 0 0 6px; font-size: 13.5px; color: #8fa6b3; }
.co { color: #fff; font-size: 30px; font-weight: 750; letter-spacing: -.035em; margin: 0; }
.chips { margin: 8px 0 0; font-size: 14px; color: #a9bcc7; }
.chips span { display: inline; }
.chips span + span::before { content: " · "; color: #5f7787; }
.verdict { margin: 24px 0 0; }
.v-tag { margin: 0; font-size: 13.5px; color: #8fa6b3; font-weight: 600; }
.v-title { margin: 2px 0 6px; color: #fff; font-size: 34px; font-weight: 750; letter-spacing: -.04em; line-height: 1.2; }
.v-line { margin: 0; font-size: 16px; color: #c9d7df; max-width: 60ch; }
.band-top { list-style: none; margin: 20px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 7px; }
.band-top li { display: grid; grid-template-columns: 18px 104px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; }
.band-top li svg { margin-top: 2px; }
.band-top li b { color: #fff; font-weight: 650; }
.band-top li span { color: #c9d7df; }
.band-r { text-align: center; }
.band-r .dial { width: 100%; max-width: 340px; }
.legend { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; font-size: 13px; color: #a9bcc7; }
.legend li { display: inline-flex; gap: 5px; align-items: center; }
.legend b { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .band .dial .seg { animation: segIn .5s ease-out both; animation-delay: calc(var(--i) * 50ms + 100ms); }
  @keyframes segIn { from { opacity: 0; } to { opacity: 1; } }
}

/* ── 권장 조건(밴드 바로 아래, 두 단) ── */
.terms { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; padding: 30px 0 6px; border-bottom: 1px solid var(--rule); }
.terms h3 { margin: 0; font-size: 18px; font-weight: 700; }
.terms-sub { margin: 2px 0 12px; color: var(--muted); font-size: 13.5px; }
.terms ol { margin: 0; padding: 0; list-style: none; counter-reset: t; border-top: 1px solid var(--ink); }
.terms li { counter-increment: t; position: relative; padding: 10px 0 10px 26px; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--rule-2); }
.terms li::before { content: counter(t); position: absolute; left: 0; top: 11px; color: var(--muted); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.terms li small { display: block; font-weight: 400; color: var(--ink-2); font-size: 13px; margin-top: 1px; }
.terms-note { grid-column: 1 / -1; margin: 0; padding: 12px 0 14px; color: var(--muted); font-size: 13px; }

/* ── 섹션 공통(선으로만 구획) ── */
.sec { margin-top: 52px; padding-top: 14px; border-top: 2px solid var(--ink); }
.sec-h { margin: 0 0 18px; font-size: 22px; font-weight: 750; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.sec-h small { font-size: 14.5px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.sub-h { margin: 26px 0 10px; font-size: 16px; font-weight: 700; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.sub-h small { font-weight: 400; color: var(--muted); font-size: 13.5px; margin-left: 6px; }
.src { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.basis { color: var(--ink-2); font-size: 14px; margin: -8px 0 14px; }
.hint { color: var(--ink-2); font-size: 13.5px; margin: 8px 0 0; }
.empty-line { color: var(--ink-2); padding: 12px 0; margin: 0; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.clean { color: var(--good-ink); padding: 12px 0; margin: 10px 0 0; font-weight: 550; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.panel { margin: 0; min-width: 0; }
.panel .sub-h { margin-top: 0; }
figure { margin: 0; }
figcaption { font-size: 14px; font-weight: 650; color: var(--ink-2); margin-bottom: 4px; }
.chart-empty { color: var(--muted); font-size: 13.5px; padding: 30px 0; text-align: center; }
.chart-wide { overflow-x: auto; }
.ch-m { display: none; }
.ch-w svg { display: block; width: 100%; height: auto; }      /* 넓은 화면용 그림: 가장 좁은 칸에서 원래 크기(글자 12px) → 넓으면 조금 키우되 상한 */
.ch-w svg.timeline { max-width: 920px; }
.ch-w svg.bars { max-width: 240px; }
.ch-w :is(svg.meter, svg.days, svg.line, svg.hbars) { max-width: 520px; }
.band-r :is(.ch-w, .ch-m) svg { margin: 0 auto; }
.tl-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.tbl-scroll { overflow-x: auto; }
.pill { display: inline; font-size: 13px; color: var(--ink-2); white-space: nowrap; font-weight: 500; }
.pill-open, .pill-alert { color: var(--stop); font-weight: 650; }
.pill-watch { color: var(--watch-ink); font-weight: 600; }

/* 지난 조회 · 메모 */
.diff-list, .memo ul { list-style: none; margin: 0; padding: 0; }
.diff-list li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--rule-2); }
.diff-list svg { margin-top: 3px; flex: none; }
.memo-head { font-size: 19px; font-weight: 700; margin: 0 0 12px; }
.memo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.memo h3 { font-size: 14px; color: var(--ink-2); margin: 0 0 4px; font-weight: 650; }
.memo li { padding: 7px 0 7px 14px; position: relative; border-top: 1px solid var(--rule-2); }
.memo li:first-child { border-top: 0; }
.memo li::before { content: "–"; position: absolute; left: 0; top: 7px; color: var(--muted); }
.memo .checks li::before { content: "□"; font-size: 11px; top: 10px; }

/* 8가지 점검 — 표(상자·색 줄 없음) */
.dims { display: block; border-top: 1px solid var(--ink); }
.dim { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 2px 28px; padding: 14px 0 12px; border-bottom: 1px solid var(--rule); }
.dim header { grid-row: 1 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.dim header svg { margin-bottom: 2px; }
.dim header b { font-size: 16px; }
.dim-lv { margin: 0; font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.dim-stop .dim-lv { color: var(--stop); } .dim-alert .dim-lv { color: var(--alert); }
.dim-watch .dim-lv { color: var(--watch-ink); } .dim-good .dim-lv { color: var(--good); }
.dim-head { margin: 0 0 3px; font-weight: 700; grid-column: 2; }
.dim ul { grid-column: 2; margin: 0; padding-left: 16px; color: var(--ink-2); font-size: 14px; }
.dim li { margin: 1px 0; }
.dim .src { grid-column: 2; margin-top: 5px; }

/* 연체·체납·법원 기록 */
table.mini { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 6px; }
table.mini td { padding: 4px 4px; border-top: 1px solid var(--rule-2); }
.ev-groups { display: grid; gap: 18px; margin-top: 12px; }
.ev-group h4 { margin: 0 0 4px; font-size: 15px; display: flex; gap: 8px; align-items: baseline; }
.ev-group h4 span { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.ev-group h4 em { font-style: normal; color: var(--stop); font-size: 13px; font-weight: 650; }

/* 신용 위치 */
.st-card { padding: 22px 0 18px; border-top: 1px solid var(--rule); }
.st-card:first-of-type { border-top: 0; padding-top: 4px; }
.st-kicker { margin: 0; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.st-kicker span { font-weight: 400; color: var(--muted); }
.st-word { margin: 2px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1.25; }
.st-word small { font-size: 15.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-right: 12px; }
.st-word em { font-style: normal; font-size: 14.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 12px; }
.st-bar { margin-top: 10px; }
.st-bar svg { display: block; width: 100%; height: auto; }
.st-bar-cash svg { max-width: 560px; }
.st-axis { display: none; justify-content: space-between; margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.st-src { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.st-bonds { margin-top: 6px; }
.st-bonds ul { list-style: none; margin: 0; padding: 0; }
.st-bonds li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) 220px auto; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule-2); font-size: 14.5px; }
.st-bonds li b { font-weight: 650; }
.st-b-k { color: var(--ink-2); }
.st-b-bar svg { display: block; width: 100%; height: auto; }
.st-bonds li em { font-style: normal; color: var(--muted); font-size: 13px; }

/* 표 */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { padding: 8px 8px; border-top: 1px solid var(--rule-2); text-align: right; vertical-align: top; }
table.t td.num, table.t th.num { white-space: nowrap; }
table.t th:first-child, table.t td:first-child { text-align: left; padding-left: 0; }
table.t thead th { border-top: 0; border-bottom: 1px solid var(--ink); color: var(--ink-2); font-weight: 650; font-size: 13px; }
table.t td.l, table.t th.l { text-align: left; }
table.t td.neg { color: var(--stop); }
table.t td.note { color: var(--muted); font-size: 12.5px; min-width: 200px; }
table.t.fin td:first-child { white-space: nowrap; font-weight: 600; }
table.ev td.d { white-space: nowrap; color: var(--ink-2); width: 96px; text-align: left; }
table.ev td small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
table.ev td.st { width: 120px; }
.fin-notes { display: none; }

/* 재무 */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 18px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.kpi { padding: 12px 16px 12px 0; }
.kpi + .kpi { padding-left: 16px; border-left: 1px solid var(--rule-2); }
.kpi p { margin: 0; font-size: 13px; color: var(--ink-2); }
.kpi b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.kpi small { color: var(--ink-2); font-size: 13px; }
.kpi-neg b { color: var(--stop); }
.smalls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin-bottom: 18px; }
.smalls figure { min-width: 0; }
.insider { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.ins { padding: 10px 0 12px; border-top: 1px solid var(--ink); }
.ins-flag { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--watch-ink); margin-left: 4px; }   /* 색 줄 대신 작은 라벨 */
.ins p { margin: 0; font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.ins b { display: block; font-size: 20px; font-weight: 700; margin: 2px 0; }
.ins small { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.ins span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* 사람 */
.people { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.people li { break-inside: avoid; padding: 6px 0; border-top: 1px solid var(--rule-2); display: flex; gap: 8px; }
.people li span { color: var(--muted); font-size: 13.5px; }

/* 뉴스 */
.feed-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.feed-head p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.filter { display: inline-flex; gap: 14px; }
.filter button { border: 0; background: transparent; font-weight: 600; font-size: 13.5px; padding: 4px 0; color: var(--muted); border-bottom: 2px solid transparent; }
.filter button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 12px 0; border-top: 1px solid var(--rule-2); }
.feed li a, .feed li > b { font-weight: 650; color: var(--ink); text-decoration: none; font-size: 15.5px; }
.feed li a:hover { text-decoration: underline; }
.feed-meta { margin: 0 0 2px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.feed-meta svg { margin-left: 6px; }
.flag-alert, .flag-stop { color: var(--alert); } .flag-watch { color: var(--watch-ink); }
.feed-sum { margin: 3px 0 0; color: var(--ink-2); font-size: 14px; }
.more { margin-top: 8px; }
.disc { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.disc li { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--rule-2); }
.disc li > span:first-child { color: var(--muted); width: 92px; flex: none; }

/* 기본 정보 */
.overview { white-space: pre-line; color: var(--ink-2); margin: 0 0 14px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule-2); }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-size: 14.5px; }
.prov { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 18px; }
.prov li { font-size: 13.5px; display: inline-flex; gap: 6px; color: var(--ink-2); }
.prov li span { color: var(--muted); }
.prov .p-ok span { color: var(--good); font-weight: 600; } .prov .p-error span { color: var(--alert); font-weight: 600; } .prov .p-late span { color: var(--ink-3); font-weight: 600; }

/* 유의사항(리포트 맨 끝) */
.legal { margin-top: 60px; padding-top: 14px; border-top: 2px solid var(--ink); color: var(--ink-2); font-size: 13px; line-height: 1.7; }
.legal h2 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.legal-lead { margin: 0 0 12px; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--ink); font-size: 14px; font-weight: 650; }
.legal ol { margin: 0; padding-left: 20px; }
.legal li { margin: 0 0 7px; padding-left: 2px; }
.legal li b { color: var(--ink); font-weight: 650; }
.legal-end { margin: 12px 0 0; color: var(--muted); }

/* ── 어두운 화면의 리포트 그림(서버 SVG) — 그림 속성의 고정 색을 CSS 로 덮는다(PDF 는 언제나 밝은 화면이라 손대지 않음) ──
   대상: 막대·미터·결제 기간·타임라인·선·주주 막대·신용 위치 막대. 결론 다이얼(남색 밴드 위)과 상태 원(badge)은 그대로. */
[data-theme="dark"] :is(svg.bars, svg.meter, svg.days, svg.timeline, svg.line, svg.hbars, svg.st-svg) [fill="#0f1e2b"]:not(.on-bar) { fill: var(--ink); }
[data-theme="dark"] :is(svg.bars, svg.meter, svg.days, svg.timeline, svg.line, svg.hbars) [fill="#4a5966"] { fill: var(--ink-2); }
[data-theme="dark"] :is(svg.bars, svg.meter, svg.days, svg.timeline, svg.line, svg.hbars) [stroke="#4a5966"] { stroke: var(--ink-3); }
[data-theme="dark"] :is(svg.bars, svg.meter, svg.days, svg.timeline, svg.line, svg.hbars, svg.st-svg) [fill="#8794a0"] { fill: var(--ink-3); }
[data-theme="dark"] :is(svg.bars, svg.meter, svg.days, svg.timeline, svg.line, svg.hbars) [stroke="#e1e6ea"] { stroke: var(--line); }
[data-theme="dark"] :is(svg.meter, svg.timeline, svg.line) [stroke="#fff"] { stroke: var(--bg); }
[data-theme="dark"] svg.timeline circle[fill="#fff"] { fill: var(--bg); }
[data-theme="dark"] svg.timeline [stroke="#eef2f4"] { stroke: var(--bg-3); }
[data-theme="dark"] :is(svg.bars, svg.days, svg.line, svg.hbars) [fill="#0b6378"] { fill: #3aa3bb; }
[data-theme="dark"] :is(svg.line) [stroke="#0b6378"] { stroke: #4fb6cd; }
[data-theme="dark"] svg.hbars [fill="#9cc7d3"] { fill: #2d6878; }
[data-theme="dark"] svg.meter [fill="#f6d9cf"] { fill: #4a2620; }
[data-theme="dark"] svg.meter [fill="#f8ecc9"] { fill: #463a1a; }
[data-theme="dark"] svg.meter [fill="#e2f1e7"] { fill: #1c3b2a; }
[data-theme="dark"] svg.st-svg [fill="#0b6378"] { fill: #4fb6cd; }
[data-theme="dark"] svg.st-svg [fill="#9fc6d2"] { fill: #2f6f80; }
[data-theme="dark"] svg.st-svg [fill="#e4e9ed"] { fill: var(--bg-3); }

/* ── 안내 화면(로그인 오류·웍스AI에서 열기·없는 주소·리포트 실패) — 가운데 안내 창 ── */
.notice-page { min-height: calc(100vh - 64px - 240px); display: grid; place-items: center; padding: 48px 16px; text-align: center; }
.notice-card { width: 100%; max-width: 480px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg); padding: 36px 32px 30px; }
.notice-card > svg { width: 52px; height: 52px; }
.notice-card h1 { font-size: 24px; font-weight: 800; letter-spacing: -.025em; margin: 16px 0 8px; }
.notice-card p { color: var(--ink-2); margin: 0; }
.notice-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.notice-sub { margin-top: 18px !important; font-size: 14px; color: var(--ink-3) !important; }
.notice-sub a { color: var(--ink-2); }
.preview-form { display: grid; gap: 8px; margin-top: 22px; text-align: left; }

/* ── 반응형 ── */
@media (max-width: 1120px) {
  .r-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .top.has-user .acct-name, .top.has-user .brand em { display: none; }
}
@media (max-width: 960px) {
  .top.has-user .top-nav .opt { display: none; }
  .top:not(.has-user) .brand em { display: none; }
  .top-in { gap: 18px; }
}
@media (max-width: 900px) {
  .band-in { grid-template-columns: minmax(0, 1fr); }
  .band-r { order: -1; }
  .band-r .dial { max-width: 300px; }
  .terms { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .two, .memo-cols, .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dim { grid-template-columns: minmax(0, 1fr); }
  .dim header { grid-row: auto; flex-direction: row; align-items: center; gap: 8px; }
  .dim-head, .dim ul, .dim .src { grid-column: 1; }
  .kpis, .smalls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smalls { row-gap: 18px; }
  .two > .panel + .panel { margin-top: 28px; }        /* 한 줄로 쌓인 두 그림(자본 상태·결제 성향, 인원·급여) 사이 숨 */
  .kpi:nth-child(3) { padding-left: 0; border-left: 0; }
  .insider { grid-template-columns: minmax(0, 1fr); }
  .home-cols { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
/* 신용 위치 막대: 막대 칸이 760px 보다 좁으면 막대 글자가 12px 밑 → 숨기고 위의 큰 글자·아래 HTML 눈금이 대신한다 */
@media (max-width: 820px) {
  .st-axis { display: flex; }
  .st-bar-cash + .st-axis { max-width: 560px; }
  .st-lab { display: none; }
}
@media (max-width: 760px) {
  /* 차트: 휴대폰용 그림(320 폭에서 원래 크기 = 글자 12px 이상)으로 바꾼다 */
  .ch-w { display: none; }
  .ch-m { display: block; }
  .ch-m svg { display: block; width: 100%; max-width: 420px; height: auto; }
  .smalls .ch-m svg { max-width: 200px; }
  .wrap, .rbar-in { padding-left: 16px; padding-right: 16px; }
  .top-in { padding: 0 16px; gap: 10px; }
  .top-nav .opt { display: none; }
  .top-nav a { padding: 8px; }
  .top:not(.has-user) .menu-btn { display: inline-grid; }
  .top:not(.has-user) .top-menu { display: block; }
  .top:not(.has-user) .top-nav { display: none; }
  .acct-btn > svg { display: none; }
  .acct-btn { padding: 4px; }
  .top-end { gap: 6px; }
  .signed-in { padding-left: 16px; font-size: 14.5px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > div:first-child { grid-column: 1 / -1; }
  .report > .terms, .report > .r-grid, .report > .legal { padding-left: 16px; padding-right: 16px; }
  .band { padding: 24px 16px 28px; }
  .scan-card { padding: 22px 18px 18px; border-radius: var(--r-l); }
  .scan-list li { grid-template-columns: 22px minmax(0, 1fr); }
  .scan-list li em { grid-column: 2; margin-top: 0; }
}
@media (max-width: 600px) {
  .top.has-user .top-nav { display: none; }
}
@media (max-width: 560px) {
  .notice-card { padding: 28px 18px 24px; }
  .notice-actions { flex-direction: column; }
  .notice-actions .btn { width: 100%; }
  .co { font-size: 25px; }
  .v-title { font-size: 27px; }
  .band-top li { grid-template-columns: 18px minmax(0, 1fr); }
  .band-top li span { grid-column: 2; }
  .sec { margin-top: 40px; }
  .sec-h { font-size: 20px; }
  .home-lead { font-size: 16px; }
  .search { padding-left: 14px; min-height: 56px; }
  .search input { font-size: 16.5px; }
  .search .btn { padding: 10px 16px; }
  .cand { flex-direction: column; align-items: stretch; gap: 10px; }
  .cand .btn { width: 100%; }
  .rbar-meta { display: none; }
  /* 휴대폰: 상단 막대는 고정하지 않고(머리글만 고정) 한 줄로 — 예시 안내는 짧은 문구, 「시작하기」는 머리글에 있으니 뺀다 */
  .rbar { position: static; }
  .rbar-in { gap: 8px; }
  .demo-flag { flex: 1 1 auto; min-width: 0; font-size: 13.5px; }
  .df-full, .rbar-start { display: none; }
  .df-short { display: inline; }
  .people { columns: 1; }
  .facts div { grid-template-columns: 96px minmax(0, 1fr); }
  .recent .row { grid-template-columns: minmax(0, 1fr) auto; }
  .recent .when { display: none; }
  /* 지급 능력: 「뜻」 칸은 표에서 빼고 아래 목록으로 */
  table.t.fin .note { display: none; }
  .fin-notes { display: block; margin: 18px 0 0; font-size: 13.5px; }
  .fin-notes p { margin: 0 0 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
  .fin-notes dl { margin: 0; }
  .fin-notes div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--rule-2); }
  .fin-notes dt { color: var(--ink-2); font-weight: 600; }
  .fin-notes dd { margin: 0; color: var(--muted); }
  /* 기록·관계회사·조달 표: 한 행을 두 줄 카드로 쌓아 내용이 전체 폭을 쓴다(선만 · 그림자·색 줄 없음 · PDF 는 표 그대로) */
  table.stack, table.stack tbody { display: block; width: 100%; }
  table.stack thead { display: none; }
  table.stack tr { display: grid; column-gap: 12px; row-gap: 3px; padding: 10px 0; border-top: 1px solid var(--rule-2); align-items: baseline; }
  table.t.stack td { display: block; padding: 0; border-top: 0; text-align: left; width: auto; min-width: 0; }
  .sub-h + .tbl-scroll table.stack tr:first-child { border-top: 0; padding-top: 4px; }   /* 소제목 밑줄과 겹선 방지 */
  table.ev tr { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "d a s" "l l l"; }
  table.ev td.d { grid-area: d; font-size: 13.5px; }
  table.ev td.amt { grid-area: a; font-size: 13.5px; }
  table.t.ev td.st { grid-area: s; text-align: right; }
  table.ev td.st .pill { white-space: normal; }
  table.ev td.l { grid-area: l; margin-top: 2px; }
  table.rel tr { column-gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "n n n f" "r r r r" "k1 k2 k3 k4"; }
  table.rel td.nm { grid-area: n; font-weight: 600; }
  table.t.rel td.fl { grid-area: f; text-align: right; }
  table.rel td.ar { grid-area: r; font-size: 13px; }
  table.rel td.ar:empty { display: none; }
  table.rel td:nth-child(3) { grid-area: k1; } table.rel td:nth-child(4) { grid-area: k2; }
  table.rel td:nth-child(5) { grid-area: k3; } table.rel td:nth-child(6) { grid-area: k4; }
  table.rel td.kv { margin-top: 4px; font-size: 13.5px; }
  table.rel td.kv::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
  table.proc tr { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "d a ." "t t t" "g g g"; }
  table.proc td.pd { grid-area: d; font-size: 13.5px; color: var(--ink-2); }
  table.proc td.pa { grid-area: a; font-size: 13.5px; }
  table.proc td.pt { grid-area: t; margin-top: 2px; }
  table.proc td.pg { grid-area: g; font-size: 13px; }
  .st-axis { display: flex; }
  .st-bar-cash + .st-axis { max-width: 100%; }
  .st-word { font-size: 26px; }
  .st-word small { display: block; margin: 0 0 2px; }
  .st-bonds li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .st-b-bar, .st-bonds li em { grid-column: 1 / -1; }
  .ex-link .ex-t span { display: none; }
}
@media (max-width: 520px) {
  .top.has-user .brand > span { display: none; }
  .top:not(.has-user) .brand em { display: none; }
}
@media (max-width: 400px) {
  .top:not(.has-user) .brand > span { display: none; }
}
/* 아주 좁은 폭(320) — 소개 화면의 로그인 머리글은 [마크][웍스AI로 이동][앱 열기][계정]만(테마는 계정 메뉴 안) */
@media (max-width: 380px) {
  /* 머리글 좌우 여백은 본문(.wrap·.rbar-in 16px)과 같게 둔다 — 시작선이 어긋나지 않게. 대신 버튼 사이를 조금 좁힌다 */
  .top-in { gap: 8px; }
  .top-end { gap: 5px; }
  .top.has-open .theme-ico { display: none; }
}
.acct-theme { display: none; }
@media (max-width: 380px) { .top.has-open .acct-theme { display: flex; } }
