/* Reble 여론 예측 — 다시 짠 화면의 모양 한 벌(survey_next.css). next_site.py 가 화면마다 그대로 넣는다.
   바탕은 밝은 장과 검은 장을 번갈아, 한 화면에 이야기 하나. 글꼴은 그 기기의 기본 고딕(내려받는 글꼴 없음).
   색은 장마다 --ink / --bg 를 바꿔 끼운다(data-tone). 이름이 흔한 것(.val .sub .name …)은 늘 부모와 함께 적는다 —
   주제 화면에는 예전 계산기의 이름들이 함께 살기 때문이다(그쪽은 맨 아래 「예전 계산기를 새 모양으로」). */
:root {
  --ink: #1d1d1f; --ink2: #6e6e73; --ink3: #86868b; --line: #d2d2d7; --bg: #ffffff; --card: #f5f5f7;
  --accent: #d6204e; --link: #c81e4c; --grad: linear-gradient(100deg, #d6204e, #ef6a3a);
  --pos: #0f9d8a; --neg: #e8590c; --blue: #1c50b6; --red: #e61e2b;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
}
[data-tone="dark"] { --ink: #f5f5f7; --ink2: #a1a1a6; --ink3: #86868b; --line: #424245; --bg: #000000; --card: #161617; --link: #ff6a88;
  --grad: linear-gradient(100deg, #ff6a88, #ff9a5a 55%, #ffc35c); }
[data-tone="gray"] { --bg: #f5f5f7; --card: #ffffff; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: #1d1d1f; font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.num, .rows, .tl, .cal { font-variant-numeric: tabular-nums; }
.w { max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.w.wide { max-width: 1284px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 맨 위 줄(Reble.ai 전체 메뉴) */
.gnav { background: #f5f5f7; color: #1d1d1f; font-size: 12px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.gnav .in { max-width: 1024px; margin: 0 auto; padding: 0 22px; height: 44px; display: flex; align-items: center; gap: 28px; }
.gnav .logo { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin-right: auto; white-space: nowrap; flex: none; }
.gnav .logo i { font-style: normal; color: var(--accent); }
.gnav a.gn { color: #1d1d1f; opacity: .8; white-space: nowrap; }
.gnav a.gn:hover { opacity: 1; }

/* ── 이 서비스의 메뉴(화면 위에 붙어 다닌다) */
.lnav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .82); color: #1d1d1f; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .14); transition: background-color .35s ease, color .35s ease, border-color .35s ease; }
.lnav.dark { background: rgba(22, 22, 23, .82); color: #f5f5f7; border-bottom-color: rgba(255, 255, 255, .2); }
.lnav .in { max-width: 1024px; margin: 0 auto; padding: 0 22px; min-height: 52px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.lnav .name { font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin-right: auto; padding: 10px 0; }
.lnav .links { display: flex; gap: 26px; align-items: center; }
.lnav a.l { font-size: 12px; opacity: .78; padding: 18px 0 16px; border-bottom: 1px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.lnav a.l:hover { opacity: 1; }
.lnav a.l[aria-current="page"] { opacity: 1; border-bottom-color: currentColor; }
.cta { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 980px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; }
.cta:hover { filter: brightness(1.08); }
.cta.lg { height: 44px; padding: 0 24px; font-size: 17px; }
.cta.line { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cta.line:hover { background: var(--ink); color: var(--bg); filter: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.more { color: var(--link); font-size: 17px; white-space: nowrap; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.more::after { content: " ›"; }

/* ── 띠 한 줄(지난 채점) */
.ribbon { background: #f5f5f7; color: #1d1d1f; font-size: 14px; text-align: center; padding: 12px 22px; }
.ribbon .more { font-size: 14px; margin-left: 6px; }

/* ── 장 */
.sec { background: var(--bg); color: var(--ink); padding: clamp(84px, 11vw, 160px) 0; position: relative; }
.sec.tight { padding: clamp(56px, 7vw, 96px) 0; }
.eyebrow { margin: 0; font-size: clamp(17px, 1.9vw, 24px); font-weight: 600; letter-spacing: -.015em; }
.hl { margin: 10px 0 0; font-size: clamp(34px, 6.3vw, 80px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.hl.m { font-size: clamp(30px, 4.6vw, 56px); }
.copy { margin: 28px 0 0; max-width: 880px; font-size: clamp(19px, 2.25vw, 28px); line-height: 1.38; font-weight: 600; letter-spacing: -.018em; color: var(--ink3); }
.copy b { color: var(--ink); font-weight: 600; }
.copy sup, .fnr { font-size: .5em; font-weight: 500; vertical-align: super; line-height: 0; color: var(--ink2); letter-spacing: 0; }
.hl sup, .hero h1 sup { font-size: 17px; font-weight: 500; letter-spacing: 0; line-height: 0; vertical-align: top; position: relative; top: 1.1em; margin-left: 3px; color: var(--ink2); }
.center { text-align: center; }
.center .copy { margin-left: auto; margin-right: auto; }
.gt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.acts { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 30px; }
.center .acts { justify-content: center; }

/* ── 첫 장(주인공) */
.hero { padding: clamp(40px, 5.2vw, 72px) 0 clamp(64px, 8vw, 112px); text-align: center; }
.hero h1 { margin: 0 auto; max-width: 1100px; padding: 0 22px; font-size: clamp(46px, 9.6vw, 116px); line-height: 1.05; font-weight: 700; letter-spacing: -.045em; text-wrap: balance; }
.hero .fig { max-width: 1284px; margin: clamp(18px, 2.6vw, 36px) auto 0; padding: 0 22px; }
.hero .sub { margin: clamp(22px, 3vw, 40px) auto 0; max-width: 820px; padding: 0 22px; font-size: clamp(21px, 2.7vw, 32px); line-height: 1.24; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.hero .meta { margin: 14px auto 0; padding: 0 22px; font-size: 17px; color: var(--ink2); }
.hero .acts { justify-content: center; }
.hero.inner { padding-bottom: clamp(36px, 5vw, 64px); }
.hero.inner h1 { font-size: clamp(40px, 7.6vw, 96px); }

/* ── 그림 */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); }
.tip { position: absolute; z-index: 3; top: 0; left: 0; pointer-events: none; min-width: 150px; max-width: 240px; background: #fff; color: #1d1d1f; border-radius: 12px; padding: 10px 12px; font-size: 12px; line-height: 1.5;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .06); opacity: 0; transition: opacity .12s; text-align: left; }
.tip.on { opacity: 1; }
.tip b { display: block; font-size: 13px; font-weight: 600; }
.tip .r { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.tip .r i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tip .r span { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.cap { margin: 14px 0 0; font-size: 12px; color: var(--ink2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; font-size: 14px; color: var(--ink2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

/* ── 검은 장의 숫자 넷 */
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 24px; margin-top: clamp(48px, 6vw, 84px); text-align: center; }
.tp h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink2); }
h2.eyebrow { line-height: 1.47; }
.tp .ln { margin-top: 18px; }
.tp .ln span { display: block; font-size: 14px; color: var(--ink2); }
.tp .ln b { display: inline-block; font-size: clamp(40px, 4.7vw, 60px); line-height: 1.12; font-weight: 700; letter-spacing: -.04em; }
.tp .ln b i, .big i { font-style: normal; font-size: .58em; letter-spacing: -.02em; margin-left: .04em; }
.tp .d { margin: 18px 0 8px; font-size: 14px; color: var(--ink3); }
.tp .more { font-size: 14px; }

/* ── 가는 막대 */
.bars { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: clamp(30px, 4vw, 48px); }
.barh { margin: 0 0 4px; font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -.02em; }
.barh small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--ink2); letter-spacing: -.01em; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; align-items: center; }
.bar .fill { height: 10px; border-radius: 5px; background: var(--grad); width: var(--w); transform-origin: left center; }
.js .rv .bar .fill, .js .bar.rv .fill { transform: scaleX(0); transition: transform 1.3s cubic-bezier(.16, .7, .1, 1) .15s; }
.js .rv.in .bar .fill, .js .bar.rv.in .fill { transform: none; }
.bar .lab { grid-column: 1; margin-top: 12px; font-size: clamp(17px, 1.9vw, 21px); font-weight: 600; letter-spacing: -.02em; }
.bar .lab small { display: block; font-size: 14px; font-weight: 400; color: var(--ink2); margin-top: 2px; letter-spacing: -.01em; }
.bar .val { grid-column: 2; grid-row: 1 / span 2; font-size: clamp(36px, 4.6vw, 56px); font-weight: 700; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.bar .val i { font-style: normal; font-size: .5em; letter-spacing: -.02em; margin-left: .06em; }
.bar.old .fill { background: #aeaeb2; }
.bar.old .val { color: var(--ink2); }

/* ── 둥근 칸 */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(36px, 5vw, 60px); }
.tiles.two { grid-template-columns: repeat(2, 1fr); }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tile { background: var(--card); border-radius: 28px; padding: clamp(24px, 3vw, 36px); min-width: 0; display: flex; flex-direction: column; }
.tile .k { font-size: 14px; font-weight: 600; color: var(--ink2); }
.tile .big { margin: 10px 0 8px; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.tile .big.s { font-size: clamp(28px, 3vw, 36px); white-space: normal; }
.tile p { margin: 0; font-size: 17px; line-height: 1.4; color: var(--ink2); font-weight: 500; }
.tile p b { color: var(--ink); font-weight: 600; }
.tile .tf { margin-top: auto; padding-top: 18px; font-size: 12px; line-height: 1.5; color: var(--ink2); }
a.tile { transition: transform .3s ease; }
a.tile:hover { transform: scale(1.015); }
a.tile h3 { margin: 0 0 8px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.03em; }
a.tile .more { margin-top: auto; padding-top: 22px; }

/* ── 범위 한 줄 */
.rng { margin-top: 14px; }
.rng .t { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--ink2); }
.rng .t b { font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; margin-left: auto; white-space: nowrap; }
.rng .b { position: relative; height: 8px; border-radius: 4px; background: rgba(127, 127, 127, .16); margin-top: 8px; }
.rng .b i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--c); opacity: .38; }
.rng .b u { position: absolute; top: -3px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--card); }

/* ── 큰 글자 탭 */
.tabs { display: flex; gap: clamp(22px, 4.4vw, 60px); border-bottom: 1px solid var(--line); margin-top: clamp(36px, 5vw, 60px); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { all: unset; cursor: pointer; flex: none; padding: 0 0 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-family: inherit; font-size: clamp(19px, 2.5vw, 28px); font-weight: 600; letter-spacing: -.025em; color: var(--ink2); white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.tabs.sm button { font-size: clamp(17px, 2vw, 21px); }
.panel[hidden] { display: none; }
.panel .meta { margin: 18px 0 0; font-size: 14px; color: var(--ink2); }

/* ── 표(줄 사이를 넓게) */
.tw { overflow-x: auto; margin-top: clamp(28px, 4vw, 44px); -webkit-overflow-scrolling: touch; }
.rows { width: 100%; border-collapse: collapse; min-width: 560px; }
.rows th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink2); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rows td { padding: 17px 12px 17px 0; border-bottom: 1px solid var(--line); font-size: 17px; vertical-align: top; white-space: nowrap; }
.rows td small { display: block; font-size: 12px; color: var(--ink2); margin-top: 2px; }
.rows td b { font-weight: 700; }
.rows td .ar { color: var(--ink2); margin: 0 3px; }
.rows tr.x { display: none; }
.rows.open tr.x { display: table-row; }
.tgl { all: unset; cursor: pointer; margin-top: 22px; color: var(--link); font-size: 17px; font-family: inherit; }
.tgl:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── 숫자가 큰 걸음(방법) */
.steps { margin-top: clamp(20px, 3vw, 40px); }
.step { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(200px, 300px); gap: 12px 32px; align-items: start; padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step .n { font-size: clamp(56px, 7vw, 96px); line-height: .9; font-weight: 700; letter-spacing: -.05em; }
.step h2, .step h3 { margin: 0; font-size: clamp(28px, 3.8vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -.035em; }
.step p { margin: 14px 0 0; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.42; font-weight: 600; color: var(--ink2); letter-spacing: -.015em; }
.step p b { color: var(--ink); font-weight: 600; }
.step .f { text-align: right; }
.step .f b { display: block; font-size: clamp(28px, 3.3vw, 40px); line-height: 1.05; font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.step .f span { display: block; margin-top: 6px; font-size: 14px; color: var(--ink2); }

/* ── 하루의 순서 */
.tl { list-style: none; margin: clamp(36px, 5vw, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; }
.tl li { position: relative; padding: 26px 12px 0 0; border-top: 1px solid var(--line); min-width: 0; }
.tl li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.tl li.due::before { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink3); }
.tl li.skip::before { background: var(--ink3); }
.tl .t { font-size: 21px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.tl .n { margin-top: 4px; font-size: 14px; font-weight: 600; }
.tl .who { font-size: 12px; color: var(--ink2); margin-top: 2px; }
.tl .s { font-size: 12px; color: var(--ink2); margin-top: 8px; }
.tl li.due .t, .tl li.due .n { color: var(--ink2); }

/* ── 달력 */
.cal { margin-top: clamp(32px, 4vw, 52px); display: grid; grid-template-columns: repeat(7, 46px); gap: 8px; justify-content: start; }
.cal .h { font-size: 12px; color: var(--ink2); text-align: center; }
.cal .c { height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; position: relative; cursor: default; }
.cal .c.new { background: var(--ink); color: var(--bg); }
.cal .c.none { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink2); }
.cal .c.held { background: repeating-linear-gradient(135deg, rgba(127, 127, 127, .2) 0 3px, transparent 3px 7px); color: var(--ink2); font-weight: 500; }
.cal .c.today { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.cal .c.m { font-size: 12px; letter-spacing: -.03em; }
.callg { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 14px; color: var(--ink2); }
.callg span { display: inline-flex; align-items: center; gap: 8px; }
.callg i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.callg i.new { background: var(--ink); }
.callg i.none { box-shadow: inset 0 0 0 1.5px var(--line); }
.callg i.held { background: repeating-linear-gradient(135deg, rgba(127, 127, 127, .4) 0 2px, transparent 2px 5px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 64px; align-items: end; }

/* ── 에이전트 셋(나란히) */
.cmp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin-top: clamp(40px, 5vw, 72px); }
.cmp > div { border-top: 1px solid var(--line); padding-top: 26px; min-width: 0; }
.cmp h2, .cmp h3 { margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.cmp .e { margin-top: 6px; font-size: 14px; color: var(--ink2); }
.cmp p { margin: 20px 0 0; font-size: 19px; line-height: 1.4; font-weight: 600; letter-spacing: -.015em; }
.cmp dl { margin: 22px 0 0; font-size: 14px; line-height: 1.5; }
.cmp dt { color: var(--ink2); margin-top: 14px; }
.cmp dd { margin: 2px 0 0; }
.st { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }

/* ── 오늘 한 일(줄) */
.feed { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 64px 92px minmax(0, 1fr); gap: 0 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.feed .t { font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.feed .who { font-size: 14px; color: var(--ink2); padding-top: 2px; }
.feed li.x { display: none; }
.feed.open li.x { display: grid; }

/* ── 더 깊이 보기(줄) · 접어 둔 것 */
.deep { list-style: none; margin: clamp(24px, 3vw, 36px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.deep li { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.deep li span { margin-left: auto; font-size: 14px; font-weight: 400; color: var(--ink2); text-align: right; }
.deep li::after { content: "›"; color: var(--ink3); font-weight: 400; }
details.fold { margin-top: clamp(24px, 3vw, 36px); border-radius: 28px; background: var(--card); }
details.fold summary { cursor: pointer; list-style: none; padding: 24px 30px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 14px; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::before { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 21px; font-weight: 400; line-height: 1; transition: transform .25s; }
details.fold[open] summary::before { transform: rotate(45deg); }
details.fold summary .o, details.fold[open] summary .c { display: none; }
details.fold[open] summary .o { display: inline; }
details.fold .in { padding: 0 30px 28px 74px; font-size: 17px; color: var(--ink2); }
details.fold .in ul { margin: 0; padding: 0 0 0 18px; }
details.fold .in li { margin: 4px 0; }

/* ── 작은 글(각주) · 바닥 */
.fn { background: #f5f5f7; color: #6e6e73; font-size: 12px; line-height: 1.5; padding: 22px 0 8px; }
.fn ol { margin: 0; padding: 0 0 16px 18px; border-bottom: 1px solid #d2d2d7; }
.fn li { margin: 4px 0; }
.foot { background: #f5f5f7; color: #6e6e73; font-size: 12px; padding: 14px 0 34px; }
.foot .in { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: #424245; }
.foot a:hover { text-decoration: underline; }
.foot .c { margin-left: auto; }

/* ── 화면에 들어올 때 */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.16, .7, .1, 1); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .08s; } .js .rv.d2 { transition-delay: .16s; } .js .rv.d3 { transition-delay: .24s; }

/* ── 좁은 화면 */
@media (max-width: 1000px) {
  .cols { grid-template-columns: repeat(2, 1fr); }
  .tiles.four { grid-template-columns: repeat(2, 1fr); }
  .tl { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 0; }
  .step { grid-template-columns: 72px minmax(0, 1fr); }
  .step .f { grid-column: 2; text-align: left; }
}
@media (max-width: 734px) {
  .gnav .in { gap: 16px; overflow-x: auto; scrollbar-width: none; }
  .gnav .in::-webkit-scrollbar { display: none; }
  .lnav .in { gap: 0 14px; }
  .lnav .name { font-size: 19px; }
  .lnav .links { order: 3; flex: 0 0 100%; gap: 22px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid rgba(127, 127, 127, .22); }
  .lnav .links::-webkit-scrollbar { display: none; }
  .lnav a.l { font-size: 13px; padding: 11px 0 10px; }
  .tiles, .tiles.two, .tiles.four, .cmp { grid-template-columns: 1fr; }
  .cmp { gap: 44px; }
  .cols { grid-template-columns: 1fr; gap: 52px; }
  .tl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .cal { grid-template-columns: repeat(7, 38px); gap: 14px 6px; }
  .cal .c { height: 38px; font-size: 13px; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .step .f { grid-column: 1; margin-top: 10px; }
  .feed li { grid-template-columns: 56px minmax(0, 1fr); }
  .feed .who { grid-column: 2; grid-row: 2; }
  .feed .x2 { grid-column: 2; }
  .bar { column-gap: 16px; }
  details.fold .in { padding-left: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv .bar .fill, .js .bar.rv .fill { opacity: 1; transform: none; transition: none; }
  .lnav, a.tile { transition: none; }
}

/* ── 예측 화면: 큰 숫자 · 작은 제목 · 표로 보기 · 되짚기 그림 셋 */
.bignums { display: flex; flex-wrap: wrap; gap: 14px clamp(28px, 6vw, 96px); margin-top: clamp(36px, 5vw, 64px); }
.bignums span { display: flex; align-items: center; gap: 9px; font-size: clamp(17px, 1.9vw, 24px); font-weight: 600; color: var(--ink2); letter-spacing: -.015em; }
.bignums span u { width: 11px; height: 11px; border-radius: 50%; background: var(--c); flex: none; }
.bignums b { display: block; font-size: clamp(64px, 12.4vw, 156px); line-height: 1; font-weight: 700; letter-spacing: -.06em; margin-left: -.04em; }
.bignums.n3 b { font-size: clamp(52px, 9.4vw, 116px); }
.bignums b i { font-style: normal; font-size: .5em; letter-spacing: -.02em; margin-left: .03em; }
.meta2 { margin: 20px 0 clamp(28px, 4vw, 48px); font-size: 17px; color: var(--ink2); }
.h3 { margin: clamp(64px, 8vw, 110px) 0 0; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.h3 + .lede { margin: 12px 0 0; font-size: 17px; color: var(--ink2); max-width: 760px; }
details.tbl { margin-top: 12px; font-size: 14px; }
details.tbl summary { cursor: pointer; color: var(--link); width: fit-content; }
details.tbl .rows { min-width: 420px; margin-top: 10px; }
details.tbl .rows td { font-size: 14px; padding: 10px 12px 10px 0; }
.wf3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(36px, 5vw, 60px); }
.wf3 .tile { padding: 26px 24px 20px; }
.wf3 .tile h3 { margin: 0 0 10px; font-size: 21px; font-weight: 700; letter-spacing: -.025em; }
.keyln { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: 14px; color: var(--ink2); }
.keyln span { display: inline-flex; align-items: center; gap: 8px; }
.keyln i { display: inline-block; }
.keyln i.band { width: 22px; height: 12px; border-radius: 3px; background: rgba(29, 29, 31, .12); }
.keyln i.ln { width: 22px; height: 0; border-top: 2px solid #1d1d1f; }
.keyln i.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.hero.inner.left { text-align: left; }
.hero.inner.left h1 { margin: 10px 0 0; padding: 0; max-width: none; }
.hero.inner.left .sub, .hero.inner.left .meta { margin-left: 0; padding: 0; }
.topic[hidden] { display: none; }
@media (max-width: 1000px) { .wf3 { grid-template-columns: 1fr; } }
@media (max-width: 734px) { .deep li { flex-wrap: wrap; } .deep li span { flex-basis: 100%; margin-left: 0; text-align: left; order: 3; } }

/* ── 시험 주소 알림(바꾸기 전까지만) */
.stg { background: #1d1d1f; color: #f5f5f7; font-size: 12px; text-align: center; padding: 8px 22px; }
.stg a { color: #f5f5f7; text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; }

/* ── 주제 넷을 오가는 큰 글자 탭(링크) · 조절판을 바꿨을 때의 알림 */
.tabs a { flex: none; padding: 0 0 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: clamp(19px, 2.5vw, 28px); font-weight: 600; letter-spacing: -.025em; color: var(--ink2); white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.chg { display: none; margin: 14px 0 0; padding: 10px 16px; border-radius: 14px; background: var(--card); font-size: 14px; color: var(--ink2); width: fit-content; }
.chg.on { display: block; }
.chg button { all: unset; cursor: pointer; color: var(--link); margin-left: 8px; }
.chg button:hover { text-decoration: underline; text-underline-offset: 3px; }
.ended { margin: 22px 0 0; padding: 14px 18px; border-radius: 16px; background: var(--card); font-size: 14px; color: var(--ink2); }

/* ── 상태 글(색만으로 말하지 않는다 — 늘 기호와 낱말) */
.stt { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; white-space: nowrap; }
.stt.warn::before { content: "△"; } .stt.ok::before { content: "✓"; } .stt.bad::before { content: "✕"; } .stt.wait::before { content: "○"; } .stt.skip::before { content: "–"; }

/* ── 작은 줄 목록(감사가 찾은 것 · 선례 · 제안 · 결정) */
.items { list-style: none; margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.items > li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.items .h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.items .h small { font-size: 12px; font-weight: 400; color: var(--ink2); letter-spacing: 0; }
.items p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink2); max-width: 880px; }
.items li.x { display: none; }
.items.open li.x { display: block; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.statline { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 26px 0 0; font-size: 17px; color: var(--ink2); }
.statline b { color: var(--ink); font-weight: 700; margin-left: 4px; }
.statline span { white-space: nowrap; }

/* ── 긴 문서(전체 문서 · 파이프라인): 예전 문서의 본문을 그대로 받아 새 활자로 */
.doc { max-width: 820px; margin: 0 auto; padding: 0 22px; font-size: 17px; line-height: 1.7; color: #424245; }
.doc > .subtitle { font-size: 19px; line-height: 1.5; color: var(--ink2); margin: 0 0 8px; font-weight: 500; }
.doc h2 { margin: 72px 0 14px; padding-top: 36px; border-top: 1px solid var(--line); font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -.03em; color: var(--ink); scroll-margin-top: 72px; }
.doc h3 { margin: 40px 0 10px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.doc p { margin: 14px 0; }
.doc li { margin: 6px 0; }
.doc strong, .doc b { color: var(--ink); font-weight: 600; }
.doc a { color: var(--link); }
.doc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.doc code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86em; background: #f5f5f7; border-radius: 6px; padding: 2px 6px; color: var(--ink); }
.doc .formula { margin: 18px 0; padding: 18px 22px; border-radius: 18px; background: #f5f5f7; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; line-height: 1.7; color: var(--ink); overflow-x: auto; white-space: pre-wrap; }
.doc .callout { margin: 20px 0; padding: 20px 24px; border-radius: 18px; background: #f5f5f7; font-size: 15px; line-height: 1.65; color: #424245; border: 0; }
.doc .callout strong:first-child { display: inline-block; margin-bottom: 2px; }
.doc .toc { margin: 36px 0 0; padding: 26px 30px; border-radius: 28px; background: #f5f5f7; font-size: 17px; }
.doc .toc strong { font-size: 14px; color: var(--ink2); }
.doc .toc ol { margin: 10px 0 0 20px; padding: 0; }
.doc .toc a { color: var(--ink); line-height: 1.9; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.doc th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink2); padding: 0 12px 8px 0; border-bottom: 1px solid var(--line); background: none; }
.doc td { padding: 11px 12px 11px 0; border-bottom: 1px solid #e8e8ed; vertical-align: top; }
.doc td.num, .doc th.num, .doc .num { text-align: right; }
.doc td.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; white-space: nowrap; color: var(--ink); }
.doc td .sub2 { display: block; font-size: 12px; color: var(--ink2); }
.doc .tblwrap { overflow-x: auto; }
.doc .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 30px 0 8px; }
.doc .stat { background: #f5f5f7; border-radius: 20px; padding: 18px 20px 16px; border: 0; }
.doc .stat .k { font-size: 12px; font-weight: 600; color: var(--ink2); letter-spacing: 0; }
.doc .stat .v { font-size: 28px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.doc .stat .d { font-size: 12px; color: var(--ink2); margin-top: 2px; }
.doc .st { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 980px; white-space: nowrap; background: #f5f5f7; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.doc .st.manual, .doc .st.wait { color: var(--ink2); }
.doc .footer { display: none; }

/* ── 예전 계산기를 새 모양으로(주제 화면의 「직접 바꿔 보기」 · 「더 깊이」) — 계산과 이름은 그대로, 옷만 갈아입힌다 */
.nxl { font-size: 14px; line-height: 1.5; }
.nxl h2 { margin: 0 0 14px; padding: 0; border: 0; font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.nxl h2 span { letter-spacing: 0; }
.nxl h3 { margin: 22px 0 10px; font-size: 17px; font-weight: 700; letter-spacing: -.015em; color: var(--ink) !important; }
.nxl h3 span { color: var(--ink2) !important; }
.nxl .grid { display: grid; gap: 20px; }
.nxl .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nxl .card { background: var(--card); border-radius: 28px; padding: clamp(20px, 2.6vw, 30px); min-width: 0; margin-bottom: 20px; }
.nxl .grid > .card { margin-bottom: 0; }
details.fold .nxl { --card: #f5f5f7; }
.nxl .card.dark, .nxl .hero-card { background: #000; color: #f5f5f7; border-radius: 28px; padding: clamp(20px, 2.6vw, 30px); min-width: 0; }
.nxl .card.dark h2, .nxl .hero-head h2 { color: #f5f5f7; }
.nxl .card.dark .info, .nxl .card.dark .subhead { color: #a1a1a6; }
.nxl .card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.nxl .card-head h2 { margin: 0; }
.nxl .info { font-size: 14px; line-height: 1.6; color: var(--ink2); margin: 8px 0; }
.nxl .info strong { color: var(--ink); font-weight: 600; }
.nxl #ctrlSummary strong, .nxl #ctrlSummary span { color: var(--ink) !important; }
.nxl .card.dark .info strong { color: #f5f5f7; }
.nxl canvas { display: block; }
.nxl table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.nxl th, .nxl td { padding: 9px 12px 9px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.nxl th { font-size: 12px; font-weight: 600; color: var(--ink2); background: none; }
.nxl td.num, .nxl th.num { text-align: right; padding-left: 12px; padding-right: 14px; }
.nxl td.num:last-child, .nxl th.num:last-child { padding-right: 0; }
.nxl select { font: inherit; font-size: 14px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px !important; }
.nxl details > summary { cursor: pointer; }
.nxl code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; background: rgba(127, 127, 127, .14); border-radius: 5px; padding: 1px 5px; color: var(--ink); }
.nxl .card.dark code { color: #f5f5f7; }

/* 맨 위 한 줄 · 보정 단추 */
.nxl .fc-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 20px; font-size: 14px; color: var(--ink2); }
.nxl .fc-strip .tgt { font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.nxl .fc-strip .chip { background: var(--card) !important; color: var(--ink); border-radius: 980px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.nxl .fc-strip .sub { font-size: 13px; }
.nxl .calib-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 14px; border-radius: 980px; box-shadow: inset 0 0 0 1px var(--ink3); font-size: 13px; font-weight: 600; color: var(--ink); }
.nxl .calib-btn .calib-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink3); }
.nxl .calib-btn.active .calib-dot { background: var(--ink); box-shadow: none; }
.nxl .calib-btn .calib-state { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 980px; background: var(--card); color: var(--ink2); letter-spacing: .04em; }
.nxl .calib-btn.active .calib-state { background: var(--ink); color: var(--bg); }
.nxl .calib-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nxl .labrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 18px; }
.nxl .labrow .subtitle { margin: 0; font-size: 14px; color: var(--ink2); }

/* 결과 칸(검은 칸 둘) */
.nxl .hero-grid { display: grid; gap: 20px; grid-template-columns: 1.4fr .85fr; margin-bottom: 20px; }
.nxl .hero-card.sim::after { display: none; }
.nxl .hero-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.nxl .hero-head h2 { margin: 0; }
.nxl .hero-head h2 .runs-count { color: #a1a1a6; font-weight: 400; font-size: 14px; margin-left: 4px; }
.nxl .hero-head .hero-sub { color: #a1a1a6; font-size: 12px; }
.nxl .hero-chart { position: relative; height: 360px; }
.nxl .meters { display: flex; flex-direction: column; gap: 12px; }
.nxl .meter-row { display: grid; grid-template-columns: 96px 1fr 84px; gap: 14px; align-items: center; }
.nxl .meter-row .cand-label .name { font-size: 15px !important; font-weight: 600; color: #f5f5f7; }
.nxl .meter-row .cand-label .party { font-size: 11px; color: #a1a1a6; margin-top: 2px; }
.nxl .meter-bar { position: relative; height: 10px; background: #2c2c2e; border-radius: 5px; overflow: hidden; }
.nxl .meter-bar-fill { position: absolute; top: 0; left: 0; bottom: 0; border-radius: 5px; transition: width .6s cubic-bezier(.4, 0, .2, 1); }
.nxl .meter-val { text-align: right; font-variant-numeric: tabular-nums; }
.nxl .meter-val .mean { font-size: 19px; font-weight: 700; color: #f5f5f7; letter-spacing: -.02em; }
.nxl .meter-val .ci, .nxl .now-small { font-size: 11px; color: #a1a1a6; margin-top: 1px; }
.nxl .cov-badge { display: inline-block; background: #2c2c2e; color: #a1a1a6; font-size: 10px; font-weight: 600; border-radius: 8px; padding: 1px 6px; margin-left: 5px; vertical-align: middle; }
.nxl .winprob-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid #2c2c2e; }
.nxl .section-title { color: #a1a1a6; font-size: 12px; margin-bottom: 10px; font-weight: 600; }
.nxl .winprob-row { display: grid; grid-template-columns: 84px 1fr 60px; gap: 10px; align-items: center; padding: 4px 0; font-size: 13px; }
.nxl .winprob-row .cand { color: #d1d1d6; }
.nxl .winprob-bar { height: 6px; background: #2c2c2e; border-radius: 3px; overflow: hidden; }
.nxl .winprob-bar-fill { height: 100%; border-radius: 3px; transition: width .5s ease; }
.nxl .winprob-row .val { text-align: right; color: #f5f5f7; font-weight: 600; font-variant-numeric: tabular-nums; }
.nxl .hero-footer { margin-top: 14px; padding-top: 14px; border-top: 1px solid #2c2c2e; font-size: 12px; color: #a1a1a6; line-height: 1.6; }
.nxl .hero-footer .tag-warn, .nxl .hero-footer .stat { color: #f5f5f7; font-weight: 600; }
.nxl .hero-footer .wins { margin-top: 6px; font-size: 12px; color: #d1d1d6; }

/* 숫자 칸(색 바탕을 걷어 낸다 — 이름이 곧 구분) */
.nxl #kpiGrid { margin-bottom: 20px; }
.nxl .kpi { background: var(--card) !important; color: var(--ink); border-radius: 28px; padding: 24px 26px; min-width: 0; }
.nxl .kpi .label { font-size: 14px; font-weight: 600; color: var(--ink2); }
.nxl .kpi .value { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.04em; margin-top: 6px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.nxl .kpi .sub { font-size: 13px; color: var(--ink2); margin-top: 8px; }
.nxl .kpi .sub2 { font-size: 12px; color: var(--ink2); margin-top: 3px; }
.nxl .winner-banner { margin: 0 0 20px; padding: 18px 24px; border-radius: 20px; background: var(--card) !important; color: var(--ink) !important; border: 0 !important; font-size: 17px; font-weight: 500; }
.nxl .winner-banner strong { font-weight: 700; }

/* 조절판 */
.nxl .control-row { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.nxl .control-row label { flex: 0 0 210px; font-size: 14px; font-weight: 500; }
.nxl .control-row input[type=range] { flex: 1; min-width: 0; accent-color: var(--ink); }
.nxl .control-row .val { flex: 0 0 60px; text-align: right; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nxl .btn-group { display: flex; gap: 6px; flex: 1; }
.nxl .btn-group button, .nxl .scope-group button { flex: 1; padding: 7px 10px; font: inherit; font-size: 13px; font-weight: 500; background: none; color: var(--ink2); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 980px; cursor: pointer; white-space: nowrap; }
.nxl .scope-group { display: flex; gap: 6px; flex: 1; }
.nxl .btn-group button.active, .nxl .scope-group button.active { background: var(--ink); color: var(--bg); box-shadow: none; }
.nxl .ctrl-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 10px 0; }
.nxl .ctrl-check input { accent-color: var(--ink); width: 16px; height: 16px; }
.nxl button.action, .nxl .play-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; height: 36px; padding: 0 18px; border-radius: 980px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; }
.nxl button.action:hover, .nxl .play-btn:hover { opacity: .86; }
.nxl button.action:focus-visible, .nxl .play-btn:focus-visible, .nxl .step-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nxl .step-btn { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--ink); }
.nxl .playback-card { background: var(--card); border-radius: 28px; padding: 18px 24px; margin-bottom: 20px; }
.nxl .playback-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nxl .playback-label { font-size: 14px; font-weight: 600; flex-shrink: 0; }
.nxl .playback-info { font-size: 13px; color: var(--ink2); white-space: nowrap; }
.nxl .playback-info .accent { color: var(--ink); font-weight: 700; }
.nxl .playback-info .date-tag { background: var(--bg); padding: 2px 8px; border-radius: 6px; font-weight: 600; color: var(--ink); }
.nxl .playback-slider { flex: 1; min-width: 200px; max-width: 420px; }
.nxl .playback-slider input[type=range] { width: 100%; accent-color: var(--ink); }
.nxl .param-label { display: flex; align-items: center; gap: 6px; }
.nxl .param-info { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink3); color: var(--ink2); font-size: 11px; font-weight: 600; cursor: help; flex-shrink: 0; }
.nxl .param-tooltip { position: absolute; z-index: 30; bottom: calc(100% + 12px); left: -12px; width: min(360px, 78vw); padding: 18px 20px; background: #1d1d1f; color: #f5f5f7; border-radius: 16px; font-size: 13px; font-weight: 400; line-height: 1.6; box-shadow: 0 12px 32px rgba(0, 0, 0, .28); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; pointer-events: none; text-align: left; }
.nxl .param-info:hover .param-tooltip, .nxl .param-info:focus .param-tooltip { opacity: 1; visibility: visible; pointer-events: auto; }
.nxl .param-tooltip h4 { margin: 0 0 8px; font-size: 14px; color: #fff; }
.nxl .param-tooltip p { margin: 6px 0; }
.nxl .param-tooltip strong { color: #fff; }
.nxl .param-tooltip code { background: rgba(255, 255, 255, .12); }
.nxl .param-tooltip table { margin: 10px 0; font-size: 12px; }
.nxl .param-tooltip th, .nxl .param-tooltip td { padding: 5px 6px; text-align: center; border-bottom: 1px solid #3a3a3c; color: #f5f5f7; }
.nxl .param-tooltip th { color: #a1a1a6; }
.nxl .param-tooltip .highlight { color: #fff; font-weight: 700; }
.nxl .param-tooltip .dim { color: #8e8e93; }
.nxl .param-tooltip .note { margin-top: 10px; padding-top: 10px; border-top: 1px solid #3a3a3c; color: #a1a1a6; font-size: 12px; }

/* 큰 글자 탭 여섯(예전의 탭을 그대로) */
.nxl .tab-bar { display: flex; gap: clamp(20px, 3.6vw, 48px); border-bottom: 1px solid var(--line); margin: clamp(28px, 4vw, 44px) 0 clamp(24px, 3vw, 36px); overflow-x: auto; scrollbar-width: none; }
.nxl .tab-bar::-webkit-scrollbar { display: none; }
.nxl .tab-bar button { all: unset; cursor: pointer; flex: none; padding: 0 0 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: clamp(17px, 2.1vw, 24px); font-weight: 600; letter-spacing: -.025em; color: var(--ink2); white-space: nowrap; }
.nxl .tab-bar button:hover { color: var(--ink); }
.nxl .tab-bar button.active { color: var(--ink); border-bottom-color: var(--ink); }
.nxl .tab-bar button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.nxl .tab-content { display: none; }
.nxl .tab-content.active { display: block; }

/* 작은 표시들 */
.nxl .pill, .nxl .flag-pill, .nxl .tier-badge { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 980px; padding: 1px 8px; margin-left: 5px; vertical-align: middle; background: rgba(127, 127, 127, .14) !important; color: var(--ink) !important; }
.nxl td > .pill { margin-left: 0; }
.nxl .he-note { font-size: 14px; color: var(--ink2); margin-top: 10px; line-height: 1.6; }
.nxl .tblwrap { overflow-x: auto; }
.nxl details.card > summary { font-size: 19px !important; font-weight: 700 !important; letter-spacing: -.02em; list-style: none; display: flex; align-items: center; gap: 12px; }
.nxl details.card > summary::-webkit-details-marker { display: none; }
.nxl details.card > summary::before { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 19px; font-weight: 400; line-height: 1; transition: transform .25s; }
.nxl details.card[open] > summary::before { transform: rotate(45deg); }
.nxl #modelDesc { font-size: 15px !important; line-height: 1.75 !important; color: #424245 !important; }
.nxl #modelDesc strong { color: var(--ink); }

@media (max-width: 1000px) { .nxl .hero-grid { grid-template-columns: 1fr; } .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 734px) {
  .nxl .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .nxl select { max-width: 100%; min-width: 0; }
  .nxl .control-row > * { min-width: 0; }
  .nxl #kpiGrid { grid-template-columns: 1fr 1fr !important; }
  .nxl .control-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .nxl .control-row label { flex: none; width: 100%; }
  .nxl .control-row .val { flex: none; text-align: left; }
  .nxl .btn-group { flex-wrap: wrap; }
  .nxl .btn-group button { flex: 1 1 40%; }
  .nxl .meter-row { grid-template-columns: 72px 1fr 64px; gap: 8px; }
  .nxl .winprob-row { grid-template-columns: 64px 1fr 52px; }
  .nxl .hero-chart { height: 300px; }
  .nxl .playback-slider { min-width: 100%; order: 10; }
  /* 좁은 화면에서는 설명 풍선이 화면 밖으로 나간다 — 화면 아래에 붙여 띄운다 */
  .nxl .param-tooltip { position: fixed; left: 16px; right: 16px; bottom: 16px; top: auto; width: auto; z-index: 60; }
  .doc { font-size: 16px; }
  .doc h2 { margin-top: 52px; padding-top: 28px; }
}

/* ── 예전 화면이 글자에 직접 칠한 색: 밝은 칸에서는 바탕과의 대비가 4.5 를 넘는 값으로 바꿔 끼운다(뜻은 그대로 — 초록은 초록, 주황은 주황) */
.nxl .card:not(.dark) [style*="color:#6b7c93"], .nxl .card:not(.dark) [style*="color:#8b949e"], .nxl .card:not(.dark) [style*="color:#8494ab"], .nxl .card:not(.dark) [style*="color:#7d8ca3"],
.nxl .card:not(.dark) [style*="color:#868e96"], .nxl .card:not(.dark) [style*="color:#95a5a6"], .doc [style*="color:#6b7c93"], .doc [style*="color:#8b949e"], .doc [style*="color:#8494ab"],
.doc [style*="color:#7d8ca3"], .doc [style*="color:#868e96"], .doc [style*="color:#95a5a6"] { color: var(--ink2) !important; }
.nxl .card:not(.dark) [style*="color:#2b8a3e"], .doc [style*="color:#2b8a3e"] { color: #1f6b2f !important; }
.nxl .card:not(.dark) [style*="color:#e8590c"], .doc [style*="color:#e8590c"] { color: #a63f09 !important; }
.nxl [style*="color:#ff039d"], .doc [style*="color:#ff039d"] { color: var(--ink) !important; }
.nxl .card:not(.dark) [style*="color:#1c50b6"] { color: var(--link) !important; }
.nxl .card:not(.dark) strong[style*="color"], .nxl .card:not(.dark) b[style*="color"] { color: var(--ink) !important; }
.nxl .card:not(.dark) small { color: var(--ink2) !important; }
/* 합성패널의 권역 × 이념 표: 칸마다 짙기가 다른 파란 바탕이라, 그 위의 글자는 모두 먹색으로(작은 표본 수 글자까지) */
.nxl #pnHeat td, .nxl #pnHeat td * { color: var(--ink) !important; }
