/* ════════════════════════════════════════════════════════
   Align Judge — 디자인 시스템
   브랜드: Pretendard + Toss 블루(#3182F6) · 라이트 에디토리얼 / 다크 프리미엄
   (yeohaenghage.kr 블로그 · yeohaenghage.com 서비스 톤 매칭)
   ════════════════════════════════════════════════════════ */
@font-face {
  font-family: "Pretendard Variable";
  src: url("vendor/pretendard/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920; font-style: normal; font-display: swap;
}
:root {
  /* 라이트(블로그 톤) */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #eef1f5;
  --border: #eaecef;
  --border-strong: #dbdee3;
  --text: #191f28;
  --text-dim: #4e5968;
  --text-faint: #8b95a1;
  --accent: #3182f6;
  --accent-hover: #1b64da;
  --accent-soft: #eef4ff;
  --accent-ring: rgba(49, 130, 246, .22);
  /* 진영 색 — 파랑=출제·설계(방어), 코랄=돌파(공격). --defend는 기본 accent와 동일. */
  --defend: #3182f6;
  --attack: #ec5850;
  --attack-hover: #d43b34;
  --attack-soft: #fdecea;
  --attack-ring: rgba(236, 88, 80, .22);
  --glow: transparent;
  --shadow-sm: 0 1px 2px rgba(23, 27, 33, .04);
  --shadow: 0 1px 3px rgba(23, 27, 33, .05), 0 10px 30px -14px rgba(23, 27, 33, .12);
  --shadow-lg: 0 16px 48px -16px rgba(23, 27, 33, .16);
  --r-sm: 10px; --r: 14px; --r-lg: 20px;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "JetBrains Mono", "Consolas", monospace;
  --sans: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --v-ac: #12a150;  --v-ac-bg: #e7f7ee;
  --v-wa: #e5484d;  --v-wa-bg: #fdeced;
  --v-tle: #d17b0a; --v-tle-bg: #fbf1de;
  --v-mle: #b25fb0; --v-mle-bg: #f8eaf7;
  --v-re: #e5484d;  --v-re-bg: #fdeced;
  --v-ce: #6b5ce0;  --v-ce-bg: #edeafb;
  --v-ole: #d17b0a; --v-ole-bg: #fbf1de;
  --v-ie: #6b7684;  --v-ie-bg: #eef1f5;
  --v-pending: #6b7684; --v-pending-bg: #eef1f5;
}
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }

/* 다크(서비스 프리미엄 톤): 딥 배경 + 따뜻한 오프화이트 + 글래시 하이라인 */
:root[data-theme="dark"] {
  --bg: #0b0d10;
  --surface: #16181d;
  --surface-2: #1c1f26;
  --surface-3: #242833;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #e8e6e1;
  --text-dim: #a7a29a;
  --text-faint: #726d64;
  --accent: #4b93ff;
  --accent-hover: #6aa6ff;
  --accent-soft: rgba(75, 147, 255, .13);
  --accent-ring: rgba(75, 147, 255, .3);
  --defend: #4b93ff;
  --attack: #ff7a70;
  --attack-hover: #ff958c;
  --attack-soft: rgba(255, 122, 112, .13);
  --attack-ring: rgba(255, 122, 112, .3);
  --glow: rgba(214, 131, 40, .10);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 16px 40px -18px rgba(0, 0, 0, .7);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .8);

  --v-ac: #4cd08a;  --v-ac-bg: rgba(76, 208, 138, .13);
  --v-wa: #f36f73;  --v-wa-bg: rgba(243, 111, 115, .13);
  --v-tle: #e2a94b; --v-tle-bg: rgba(226, 169, 75, .13);
  --v-mle: #d98cd6; --v-mle-bg: rgba(217, 140, 214, .13);
  --v-re: #f36f73;  --v-re-bg: rgba(243, 111, 115, .13);
  --v-ce: #a99bf2;  --v-ce-bg: rgba(169, 155, 242, .13);
  --v-ole: #e2a94b; --v-ole-bg: rgba(226, 169, 75, .13);
  --v-ie: #9aa1ac;  --v-ie-bg: rgba(154, 161, 172, .12);
  --v-pending: #9aa1ac; --v-pending-bg: rgba(154, 161, 172, .12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d10; --surface: #16181d; --surface-2: #1c1f26; --surface-3: #242833;
    --border: rgba(255,255,255,.09); --border-strong: rgba(255,255,255,.16);
    --text: #e8e6e1; --text-dim: #a7a29a; --text-faint: #726d64;
    --accent: #4b93ff; --accent-hover: #6aa6ff; --accent-soft: rgba(75,147,255,.13); --accent-ring: rgba(75,147,255,.3);
    --defend: #4b93ff; --attack: #ff7a70; --attack-hover: #ff958c; --attack-soft: rgba(255,122,112,.13); --attack-ring: rgba(255,122,112,.3);
    --glow: rgba(214,131,40,.10);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 3px rgba(0,0,0,.5), 0 16px 40px -18px rgba(0,0,0,.7);
    --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.8);
    --v-ac: #4cd08a; --v-ac-bg: rgba(76,208,138,.13); --v-wa: #f36f73; --v-wa-bg: rgba(243,111,115,.13);
    --v-tle: #e2a94b; --v-tle-bg: rgba(226,169,75,.13); --v-mle: #d98cd6; --v-mle-bg: rgba(217,140,214,.13);
    --v-re: #f36f73; --v-re-bg: rgba(243,111,115,.13); --v-ce: #a99bf2; --v-ce-bg: rgba(169,155,242,.13);
    --v-ole: #e2a94b; --v-ole-bg: rgba(226,169,75,.13); --v-ie: #9aa1ac; --v-ie-bg: rgba(154,161,172,.12);
    --v-pending: #9aa1ac; --v-pending-bg: rgba(154,161,172,.12);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* 스크롤바 자리 항상 확보 → 페이지 이동/토글 시 폭 변화(흔들림) 방지. */
html { scroll-behavior: smooth; overflow-y: scroll; }
body {
  background: radial-gradient(1200px 640px at 18% -8%, var(--glow), transparent 62%), var(--bg);
  background-attachment: fixed;
  color: var(--text); font-family: var(--sans);
  font-size: 15px; line-height: 1.6; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
/* 마우스를 올려도 밑줄을 긋지 않는다(세션28, 사용자 지시 — 링크로 만든 버튼 · 카드 · 칩에 밑줄이 생겼다).
   밑줄은 **글 본문 속 링크**(markdown() 결과가 들어가는 자리)에만 남긴다 — 본문을 그리는 자리를 새로 만들면 여기에 더한다.
   글자처럼 보이는 눌리는 요소(핸들 등)는 밑줄 대신 강조색으로 바꾼다. */
.md a:hover, .statement a:hover, .qa-body a:hover, .qa-answer-b a:hover, .rd-desc a:hover { text-decoration: underline; }
/* 핸들 링크: 프로필로 이동하되 평상시엔 일반 텍스트색 유지(파랗게 칠하지 않음), hover 때만 강조색(밑줄 없음 — 세션28) */
.uhandle { color: inherit; text-decoration: none; }
.uhandle:hover { color: var(--accent); }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent-ring); }

/* eyebrow(소제목 라벨) — 레퍼런스의 대문자 트래킹 라벨 */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px; }

/* ── 상단바 ─────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 60px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-name { font-size: 16px; letter-spacing: -.02em; }
.topnav { display: flex; gap: 4px; margin-left: 4px; }
.topnav a {
  position: relative; color: var(--text-dim); font-weight: 500; font-size: 14.5px;
  padding: 8px 12px; border-radius: var(--r-sm); transition: color .12s, background .12s;
}
.topnav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.topnav a.active { color: var(--accent); }
.topnav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.icon-btn {
  margin-left: auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); transition: all .12s;
}
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }

/* ── 레이아웃 ───────────────────────────────────────────── */
.app { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 32px 24px 64px; }
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 24px; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.footer-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 32px; flex-wrap: wrap; }
.footer-brand { font-weight: 600; color: var(--text-dim); font-size: 13px; }
.footer-note { color: var(--text-faint); font-size: 12.5px; margin-top: 3px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; }
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-links b { color: var(--text); font-weight: 700; }
.footer-copy { color: var(--text-faint); font-size: 12px; }

/* 이용약관 · 개인정보 처리방침(세션30 — 본문은 legal.js) */
.legal { padding: 12px 28px 28px; max-width: 860px; }
.legal-intro { font-size: 14px; line-height: 1.8; color: var(--text-dim); margin: 12px 0 18px; }
.legal-toc { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 8px; }
.legal-toc-h { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 24px; }
.legal-toc li { font-size: 13px; line-height: 1.9; }
.legal-toc .link-btn { font-weight: 500; text-align: left; }
.legal-chapter { font-size: 16px; margin: 28px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.legal h3 { font-size: 15px; margin: 22px 0 8px; letter-spacing: -0.01em; }
.legal p { font-size: 14px; line-height: 1.8; color: var(--text-dim); margin: 6px 0; }
.legal-sub { margin: 4px 0 8px; padding-left: 20px; }
.legal-sub li { font-size: 14px; line-height: 1.75; color: var(--text-dim); margin: 3px 0; }
.legal b { color: var(--text); }
.legal-todo { background: color-mix(in srgb, #f5c542 35%, transparent); color: var(--text); border-radius: 3px; padding: 0 2px; }
@media (max-width: 640px) { .legal { padding: 8px 16px 20px; } .legal-toc ol { columns: 1; } }
.legal-draft { display: inline-block; vertical-align: middle; font-size: 12px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; color: var(--text-dim); background: var(--surface-3); letter-spacing: 0; }

/* ── 공용 ───────────────────────────────────────────────── */
.crumbs { font-size: 13px; color: var(--text-faint); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--text-dim); }
.crumbs .sep { opacity: .5; }
.page-head { margin-bottom: 26px; }
.page-title { font-size: 27px; font-weight: 760; letter-spacing: -.025em; margin: 0 0 6px; line-height: 1.2; }
.page-sub { color: var(--text-dim); font-size: 14.5px; }
.muted { color: var(--text-dim); }

.state { padding: 56px 16px; text-align: center; color: var(--text-dim); font-size: 14.5px; }
.state.err { color: var(--v-wa); }
.spinner { width: 18px; height: 18px; border: 2.5px solid var(--border-strong); border-top-color: var(--accent);
  border-radius: 50%; display: inline-block; vertical-align: -4px; margin-right: 9px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 48px 20px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--r);
  color: var(--text-faint); background: var(--surface); }

/* ── 메인 랜딩(#/) ───────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
  padding: 40px 0 48px; }
.hero-copy { min-width: 0; }
.hero-title { font-size: 40px; line-height: 1.18; font-weight: 800; letter-spacing: -.035em; margin: 12px 0 0;
  color: var(--text); }
.hl-grad { background: linear-gradient(120deg, var(--accent), #7c6be0); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hl-defend { color: var(--defend); font-weight: 800; }
.hl-attack { color: var(--attack); font-weight: 800; }
.hero-sub { margin: 18px 0 0; font-size: 16.5px; line-height: 1.65; color: var(--text-dim); max-width: 34em; }
.hero-sub b { color: var(--text); font-weight: 700; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-art { min-width: 0; }
.hero-viz { width: 100%; height: auto; display: block; }
/* 두 진영 충돌 비주얼 */
.hv-b-edge { stroke: var(--defend); stroke-width: 1.3; opacity: .35; }
.hv-c-edge { stroke: var(--attack); stroke-width: 1.3; opacity: .35; }
.hv-b-node, .hv-b-tip { fill: var(--surface); stroke: var(--defend); }
.hv-c-node, .hv-c-tip { fill: var(--surface); stroke: var(--attack); }
.hv-b-node, .hv-c-node { stroke-width: 2.6; animation: hvPulse 2.8s ease-in-out infinite; }
.hv-b-tip { stroke-width: 3.6; filter: drop-shadow(0 0 8px var(--defend)); }
.hv-c-tip { stroke-width: 3.6; filter: drop-shadow(0 0 8px var(--attack)); }
.hv-conn { stroke-width: 2.4; stroke-linecap: round; }
.hv-b-conn { stroke: var(--defend); }
.hv-c-conn { stroke: var(--attack); }
.hv-seam { stroke-width: 2.4; opacity: .85; animation: hvSeam 2.4s ease-in-out infinite; }
.hv-halo { opacity: .28; animation: hvPulse 2.2s ease-in-out infinite; }
.hv-core { filter: drop-shadow(0 0 9px var(--attack)); }
.hv-spark { animation: hvFloat 5.5s ease-in-out infinite; }
.hv-b-spark { fill: var(--defend); opacity: .55; }
.hv-c-spark { fill: var(--attack); opacity: .55; }
.hv-b-node, .hv-c-node, .hv-spark, .hv-halo { transform-box: fill-box; transform-origin: center; }
@keyframes hvPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.16); } }
@keyframes hvFloat { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-6px); opacity: .85; } }
@keyframes hvSeam { 0%, 100% { opacity: .5; } 50% { opacity: .95; } }
@media (prefers-reduced-motion: reduce) { .hv-b-node, .hv-c-node, .hv-spark, .hv-halo, .hv-seam { animation: none; } }
/* 가치 카드 3열 (진영 색 강조) */
.value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 40px; }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 22px;
  border-top: 3px solid var(--border-strong); }
.value-card.vc-defend { border-top-color: var(--defend); }
.value-card.vc-attack { border-top-color: var(--attack); }
.vc-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.value-card.vc-attack .vc-tag { color: var(--attack); }
.value-card.vc-defend .vc-tag { color: var(--defend); }
.vc-title { font-size: 16.5px; font-weight: 700; color: var(--text); margin: 8px 0 8px; letter-spacing: -.01em; line-height: 1.35; }
.vc-body { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--text-dim); }
.vc-body b { color: var(--text); font-weight: 700; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding: 24px 0 32px; }
  .hero-art { order: -1; max-width: 460px; }
  .hero-title { font-size: 32px; }
  .value-row { grid-template-columns: 1fr; }
}

.tag { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; padding: 3px 9px;
  border-radius: 999px; background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); white-space: nowrap; }
.tag.src { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.tag.year { font-variant-numeric: tabular-nums; }

/* ── 대회 카드 그리드 ───────────────────────────────────── */
.grid { display: grid; gap: 16px; }
.grid.contests,
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* 문제 지문의 공개 자료 다운로드 링크 */
.statement a.dl-link { font-weight: 700; }
.statement a.dl-link::after { content: " ↓"; font-weight: 400; }
.card {
  display: flex; flex-direction: column; gap: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 22px;
  box-shadow: var(--shadow-sm); transition: border-color .14s, transform .14s, box-shadow .14s;
}
.card:hover { text-decoration: none; border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-title { font-size: 18px; font-weight: 700; color: var(--text); margin: 0; letter-spacing: -.02em; line-height: 1.3; }
.card-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.card-desc { color: var(--text-dim); font-size: 13.5px; margin: -4px 0 0; line-height: 1.5; }
.card-stats { display: flex; gap: 22px; padding-top: 14px; border-top: 1px solid var(--border); }

/* 연도 목록(출처 상세) */
.year-list { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.year-card { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px 20px; box-shadow: var(--shadow-sm); transition: border-color .14s, transform .14s, box-shadow .14s; }
.year-card:hover { text-decoration: none; border-color: var(--border-strong); transform: translateX(3px); box-shadow: var(--shadow); }
.year-label { font-size: 17px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.year-meta { color: var(--text-dim); font-size: 13px; }
.year-arrow { margin-left: auto; color: var(--text-faint); font-size: 20px; line-height: 1; }
.stat { display: flex; flex-direction: column; gap: 1px; }
.stat b { font-size: 19px; font-weight: 720; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11.5px; color: var(--text-faint); font-weight: 500; }

/* ── 테이블(문제/제출) ──────────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.tbl th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint);
  font-weight: 600; background: var(--surface-2); }
.tbl tbody tr { transition: background .1s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl td.ord, .tbl td.num { font-variant-numeric: tabular-nums; color: var(--text-dim); white-space: nowrap; }
.tbl td.ord { width: 52px; color: var(--text-faint); }
.tbl td.main a { font-weight: 600; color: var(--text); }
.tbl td.main a:hover { color: var(--accent); }
.tbl td.sub { color: var(--text-dim); font-size: 13.5px; }

.status-pill { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.status-on { background: var(--v-ac-bg); color: var(--v-ac); }
.status-off { background: var(--v-ie-bg); color: var(--v-ie); }
.status-nodata { background: var(--v-tle-bg); color: var(--v-tle); }

/* ── 문제 상세 ──────────────────────────────────────────── */
.problem-head { margin-bottom: 20px; }
.limits { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.limit { font-size: 12.5px; color: var(--text-dim); background: var(--surface); border: 1px solid var(--border);
  border-radius: 9px; padding: 5px 11px; display: inline-flex; gap: 6px; align-items: center; }
.limit b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
/* 문제 헤더의 상태 배지는 **옆의 제한 칩과 같은 규격**이어야 한다(세션24, 사용자 지적 — 혼자 작고 둥글어 줄이 어긋나 보였다).
   ⚠️ `.status-pill` 은 목록·드로어에서도 쓰는 공용 알약이라 전역으로 바꾸지 않는다 — 이 줄(.limits) 안에서만 맞춘다.
   ⚠️ 투명이라도 **테두리 1px 을 넣어야** 옆 칩과 높이가 같아진다(.limit 이 테두리를 갖는다). */
.limits .status-pill { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 9px;
  display: inline-flex; align-items: center;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent); }

/* 탭 */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tab {
  appearance: none; border: none; background: none; color: var(--text-dim);
  font-size: 14.5px; font-weight: 550; padding: 11px 16px; border-radius: var(--r-sm) var(--r-sm) 0 0;
  position: relative; white-space: nowrap; transition: color .12s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); }
.tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px;   /* -1px 이면 탭 줄이 1px 넘쳐 윈도우에서 스크롤 화살표가 생긴다(세션28) */
  background: var(--accent); border-radius: 2px; }
.tab .count { font-size: 11.5px; color: var(--text-faint); margin-left: 6px; font-variant-numeric: tabular-nums; }
.tabpane { animation: fade .18s ease; }
.tabpane[hidden] { display: none; }   /* .help(display:grid)가 [hidden]을 덮어쓰지 않도록 */
@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* 원문/한국어 토글 (명세 우측 상단) */
.lang-toggle { float: right; display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 4px 16px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; }
.lang-toggle button { appearance: none; border: none; background: none; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-dim);
  padding: 5px 13px; border-radius: 999px; transition: all .12s; }
.lang-toggle button:hover { color: var(--text); }
.lang-toggle button.active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }

/* 명세 렌더 */
.statement { font-size: 15px; line-height: 1.75; max-width: 760px; overflow-wrap: break-word; }
.statement > :first-child { margin-top: 0; }
.statement h1 { font-size: 22px; margin: 0 0 16px; letter-spacing: -.02em; }
.statement h2 { font-size: 15px; font-weight: 700; margin: 34px 0 12px; padding-bottom: 9px;
  border-bottom: 1px solid var(--border); letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
.statement h2::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: var(--accent); flex: none; }
.statement h3 { font-size: 15px; margin: 20px 0 8px; }
.statement p { margin: 11px 0; }
.statement ul, .statement ol { margin: 10px 0; padding-left: 24px; }
.statement li { margin: 4px 0; }
.statement code { font-family: var(--mono); font-size: .88em; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 5px; padding: 1.5px 5px; }
.statement pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; overflow-x: auto; margin: 12px 0; }
.statement pre code { background: none; border: none; padding: 0; font-size: 13px; line-height: 1.6; }
.statement blockquote { margin: 12px 0; padding: 4px 16px; border-left: 3px solid var(--border-strong); color: var(--text-dim); }
.statement table { border-collapse: collapse; margin: 12px 0; }
.statement th, .statement td { border: 1px solid var(--border); padding: 6px 12px; }
.statement .katex { font-size: 1.05em; }
.statement .katex-display { margin: 16px 0; overflow-x: auto; overflow-y: hidden; padding: 2px 0; }

/* 예제 카드 (PDF에서 파싱한 구조화 예제) */
.samples { margin-top: 36px; max-width: 760px; }
.samples-h { font-size: 15px; font-weight: 700; margin: 0 0 16px; padding-bottom: 9px;
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 9px; letter-spacing: -.01em; }
.samples-h::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: var(--accent); flex: none; }
.example { margin-bottom: 20px; }
.ex-title { font-size: 13px; font-weight: 700; color: var(--text-dim); margin-bottom: 9px; }
.ex-io { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.io { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.io-head { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px 7px 13px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.io-head span { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.copy-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  border-radius: 7px; font-size: 11.5px; font-weight: 600; padding: 3px 10px; cursor: pointer; transition: all .12s; }
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.done { color: var(--v-ac); border-color: var(--v-ac); }
.io-body { margin: 0; padding: 12px 14px; font-family: var(--mono); font-size: 12.5px; line-height: 1.55;
  white-space: pre; overflow-x: auto; color: var(--text); max-height: 320px; }
.ex-note { margin-top: 8px; font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }
.ex-note b { color: var(--text); font-weight: 600; margin-right: 4px; }
@media (max-width: 640px) { .ex-io { grid-template-columns: 1fr; } }

/* PDF 임시 카드 */
.pdf-fallback { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2);
  padding: 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; max-width: 620px; }
.pdf-fallback .pf-icon { font-size: 26px; }
.pdf-fallback h3 { margin: 0; font-size: 16px; }
.pdf-fallback p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* ── 에디터 ─────────────────────────────────────────────── */
.submit-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.field-label { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.select {
  font-family: var(--sans); font-size: 13.5px; padding: 7px 30px 7px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23949aa6' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--text); appearance: none; cursor: pointer;
}
.select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.editor { display: grid; grid-template-columns: auto 1fr; font-family: var(--mono); font-size: 13.5px; line-height: 1.6;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.editor:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.gutter { padding: 14px 10px 14px 0; text-align: right; color: var(--text-faint); background: var(--surface-2);
  border-right: 1px solid var(--border); user-select: none; overflow: hidden; min-width: 46px; white-space: pre; font-variant-numeric: tabular-nums; }
.code-input { font-family: var(--mono); font-size: 13.5px; line-height: 1.6; padding: 14px 16px; border: none; outline: none;
  resize: vertical; background: transparent; color: var(--text); min-height: 420px; white-space: pre; overflow-wrap: normal; tab-size: 4; }
.code-input::placeholder { color: var(--text-faint); }

.submit-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.btn { border: none; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; padding: 10px 22px; transition: all .12s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: .5; cursor: default; }
/* 변형(btn-lg/btn-ghost)은 반드시 기본 .btn 뒤에 와야 함 — 앞에 두면 .btn의 border/padding이 덮어써
   랜딩 CTA가 밋밋해진다(세션12에 발견한 잠복 버그). */
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 12px; display: inline-flex; align-items: center; gap: 7px; }
.btn-lg span { transition: transform .16s; }
.btn-primary.btn-lg:hover span { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.hint { color: var(--text-faint); font-size: 12.5px; }
/* 정답 시 코드 공개 체크 */
.pub-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim);
  cursor: pointer; user-select: none; }
.pub-check input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
.pub-check:hover { color: var(--text); }
kbd { font-family: var(--mono); font-size: 11px; background: var(--surface-2); border: 1px solid var(--border);
  border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; color: var(--text-dim); }

/* ── 결과 ───────────────────────────────────────────────── */
.result { margin-top: 18px; border-radius: var(--r); border: 1px solid var(--border); padding: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.result[hidden] { display: none; }
.result-live { display: flex; align-items: center; gap: 11px; color: var(--text-dim); font-size: 14.5px; }
.progress { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 14px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #7c6be0);
  width: 0; transition: width .25s ease; border-radius: 999px; }
.result-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.verdict { display: inline-flex; align-items: center; font-weight: 700; font-size: 15px; padding: 6px 14px; border-radius: 9px; letter-spacing: -.01em; }
.verdict.v-ac { background: var(--v-ac-bg); color: var(--v-ac); }
.verdict.v-wa { background: var(--v-wa-bg); color: var(--v-wa); }
/* 역량평가 부분점수(만점 아님) — 정답 초록과 구분되는 중립 호박색 */
.verdict.v-partial { background: color-mix(in srgb, #f59e0b 14%, transparent); color: #b45309; }
[data-theme="dark"] .verdict.v-partial { color: #fbbf24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .verdict.v-partial { color: #fbbf24; } }
.verdict.v-tle { background: var(--v-tle-bg); color: var(--v-tle); }
.verdict.v-mle { background: var(--v-mle-bg); color: var(--v-mle); }
.verdict.v-re { background: var(--v-re-bg); color: var(--v-re); }
.verdict.v-ce { background: var(--v-ce-bg); color: var(--v-ce); }
.verdict.v-ole { background: var(--v-ole-bg); color: var(--v-ole); }
.verdict.v-ie { background: var(--v-ie-bg); color: var(--v-ie); }
.verdict.v-pending { background: var(--v-pending-bg); color: var(--v-pending); }
.result-meta { color: var(--text-dim); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-variant-numeric: tabular-nums; }
.result-meta .dot { opacity: .4; }
.ce-msg { margin-top: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 12px 14px; font-family: var(--mono); font-size: 12.5px; white-space: pre-wrap; overflow-x: auto; max-height: 280px; color: var(--v-ce); }

.notice { border-radius: var(--r); padding: 16px 18px; font-size: 14.5px; border: 1px solid var(--border); }
.notice.nodata { background: var(--v-tle-bg); color: var(--v-tle); border-color: transparent; }
.notice.off { background: var(--v-ie-bg); color: var(--v-ie); border-color: transparent; }

/* 채점현황 표 (칸 분리) */
.verdict.sm { font-size: 12.5px; padding: 3px 10px; }
.tbl.subs td { padding: 12px 16px; }
.tbl.subs td.c-lang { color: var(--text-dim); }
.tbl.subs td.c-ts { color: var(--text-faint); }
.tbl.subs td.c-prob a { font-weight: 600; color: var(--text); }
.tbl.subs td.c-prob a:hover { color: var(--accent); }
/* 클릭 대상은 행 전체가 아니라 언어 칸(코드) / 결과 칸(CE·RE 사유)만 */
.c-lang.has-code, .c-verdict.has-msg { cursor: pointer; }
.c-verdict.has-msg .verdict { border-bottom: 1px dotted currentColor; }
/* 코드 열람 가능한 제출: 언어 칸을 상시 링크색(파랑)으로 → 마우스 없이도 '눌러서 코드 보기' 어포던스 노출 */
.c-lang.has-code { color: var(--accent); font-weight: 600; }
.c-lang.has-code:hover { color: var(--accent-hover); }
.code-ico { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 5px;
  color: var(--accent); transition: color .12s, transform .12s; }
.c-lang.has-code:hover .code-ico { color: var(--accent-hover); transform: translateY(-1px); }
/* 채점 상세가 있는 제출: 결과 칸에 ⓘ — 코드 열람의 </> 와 같은 어포던스(세션20).
   점수 칸은 문제 유형에 따라 눌러도 아무 일이 없어서, 어느 행이 눌리는지 보이지 않았다.
   ⚠️ 색은 결과 칩(v-ac/v-partial 등)과 경쟁하지 않게 --text-faint 로 두고 hover 에서만 강조한다. */
.msg-ico { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 5px;
  color: var(--text-faint); transition: color .12s, transform .12s; }
.c-verdict.has-msg:hover .msg-ico { color: var(--accent); transform: translateY(-1px); }
.judging { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 13.5px; font-weight: 500; }
.dotpulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .3; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.1); } }
/* 행 클릭 상세(에러 사유 + 코드) */
.sub-detail td { padding: 0 !important; background: var(--surface-2); cursor: default; }
.sub-detail .sd-wrap { padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.sub-detail .state { padding: 18px; }
.sd-block { display: flex; flex-direction: column; gap: 8px; }
.sd-label { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-faint); }
.sd-label.sd-err { color: var(--v-ce); }
.sd-lang { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--text-dim);
  background: var(--surface-3); padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.sd-copy { margin-left: auto; cursor: pointer; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-dim); border-radius: 6px; padding: 3px 10px; font-size: 11.5px; font-weight: 600; }
.sd-copy:hover { border-color: var(--accent); color: var(--accent); }
.sd-block .ce-msg, .code-view { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 12px 14px; font-family: var(--mono); font-size: 12.5px; white-space: pre; overflow: auto; max-height: 380px; }
/* 코드 열람 = 읽기전용 textarea(깜빡이는 커서 + Ctrl+A 코드만 선택, 편집 불가) */
textarea.code-view { display: block; width: 100%; box-sizing: border-box; resize: none; line-height: 1.55;
  color: var(--text); tab-size: 4; cursor: text; }
textarea.code-view:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.code-view { color: var(--text); white-space: pre; tab-size: 4; }
.sd-hint { font-size: 13px; color: var(--text-dim); }

/* 제출 에러 */
.submit-err { margin-top: 12px; color: var(--v-wa); font-size: 13.5px; }
.submit-err[hidden] { display: none; }

/* ── 반응형 ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .app { padding: 22px 16px 48px; }
  .topbar-inner { padding: 0 16px; gap: 14px; }
  .topnav a { padding: 8px 9px; font-size: 14px; }
  /* 좁은 화면(375px 등)에서 탭 글자가 세로로 쪼개지던 흠(세션25 이전부터) — 탭은 줄바꿈하지 않고 **가로로 밀어 본다**. */
  .topnav { flex: 1 1 auto; min-width: 0; margin-left: 0; gap: 0; align-self: stretch; align-items: center;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { flex: none; white-space: nowrap; }
  .topbar-right { flex: none; gap: 8px; }
  /* 로고가 없어 이름 글자가 곧 상단 표시다 — 좁은 화면에서도 숨기지 않고 줄지 않게. */
  .brand { flex: none; }
  .page-title { font-size: 23px; }
  .tbl th { top: 60px; }
}

/* ── AI 아레나(휴리스틱): 점수 배지 · 리더보드 ───────────── */
.score-badge {
  display: inline-flex; align-items: center; margin-left: 8px;
  font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums;
  padding: 3px 9px; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent);
}
/* 리더보드 하위 서브탭([순위 | 통계]) — 메인 탭보다 가벼운 세그먼트 스타일 */
.lb-subtabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.lb-subtab { border: none; background: none; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--text-dim); padding: 6px 16px; border-radius: 7px; transition: background .12s, color .12s; }
.lb-subtab:hover { color: var(--text); }
.lb-subtab.active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.08)); }
.board-note { color: var(--text-faint); font-size: 13.5px; margin: 2px 0 14px; }
.board-note b { color: var(--accent); font-weight: 700; }
/* ── 성취도 게이지(리더보드) ── 색은 아래 .t-* 에서만 바꾸면 됨(유지보수 단일 지점) */
.lb-normcell { white-space: nowrap; }
.lb-gauge { display: inline-flex; align-items: center; gap: 10px; }
.g-track { position: relative; height: 24px; border-radius: 7px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border); flex: 0 0 auto; }
.g-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; display: flex; align-items: center;
  justify-content: flex-end; padding-right: 9px; color: #fff; font-weight: 800; font-size: 12.5px;
  font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0,0,0,.35); overflow: hidden; }
.lb-pct-na { color: var(--text-faint); }
/* 색 구간(사용자 지정). 여기 색만 바꾸면 전체 반영. 경계값은 app.js ACHIEVEMENT.tiers */
.t-gray   { background: #9aa4b2; }
.t-green  { background: #22c55e; }
.t-gold   { background: #f2b01e; }
.t-purple { background: #9333ea; box-shadow: 0 0 10px rgba(147,51,234,.45); }
.t-red    { background: #ef4444; box-shadow: 0 0 12px rgba(239,68,68,.5); }
.t-black  { background: #16181f; box-shadow: 0 0 12px rgba(0,0,0,.5); }
/* 최상위 특별 구간: 은은한 홀로그램(느린 그라데이션, 약한 발광 — 눈부심 없이) */
.t-special { background: linear-gradient(90deg, #7c5cff, #4b93ff, #22c3c3, #7c5cff);
  background-size: 300% 100%; animation: holo 7s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(124,92,255,.32); }
@media (prefers-reduced-motion: reduce) { .t-special { animation: none; } }
@keyframes holo { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ── 통계 탭(B-3): 프론티어 곡선 + 성취도 분포 + 내 백분위 ── */
.stats-wrap { display: flex; flex-direction: column; gap: 18px; }
/* 내 위치 배너 */
.stats-me { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--accent-soft), transparent); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px 20px; }
.stats-me.guest { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--surface-2); }
.sm-left { display: flex; flex-direction: column; gap: 2px; }
.sm-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.sm-pct { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.sm-right { display: flex; align-items: center; gap: 12px; }
.sm-ach { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; display: inline-flex; align-items: center;
  justify-content: center; color: #fff; font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.sm-sub { font-size: 12.5px; color: var(--text-dim); }
/* KPI 타일 */
.stats-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px 18px; }
.kpi-val { font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-label { font-size: 12px; color: var(--text-faint); font-weight: 500; }
/* 차트 카드 */
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; }
.chart-head h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.chart-sub { margin: 0 0 12px; font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
/* 프론티어 SVG */
.chart-svg-wrap { width: 100%; max-width: 840px; margin: 0 auto; overflow-x: auto; }
.cx { width: 100%; height: auto; display: block; }
.cx-line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.cx-area { fill: var(--accent); opacity: .07; }
.cx-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.cx-ref { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 4 4; }
.cx-reflab { fill: var(--text-faint); font-size: 10.5px; font-weight: 600; }
.cx-ax { fill: var(--text-faint); font-size: 10.5px; font-variant-numeric: tabular-nums; }
/* 히스토그램(HTML 막대) */
.hist { padding-top: 6px; }
.hist-bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding: 0 2px;
  border-bottom: 1px solid var(--border-strong); }
.hb-col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  height: 100%; position: relative; min-width: 0; }
.hb-col.is-mine { background: var(--accent-soft); border-radius: 6px 6px 0 0; box-shadow: inset 0 0 0 1px var(--accent-ring); }
.hb-count { font-size: 10.5px; font-weight: 700; color: var(--text-dim); margin-bottom: 3px; min-height: 13px;
  font-variant-numeric: tabular-nums; }
.hb-bar { width: 100%; max-width: 34px; border-radius: 4px 4px 0 0; transition: height .3s ease; }
.hb-bar.empty { background: transparent; }
.hist-axis { position: relative; height: 20px; margin-top: 5px; }
.hb-tick { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: var(--text-faint);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.hb-tick.hb-tick-key { color: var(--text-dim); font-weight: 700; }
@media (max-width: 640px) {
  .stats-kpis { grid-template-columns: repeat(2, 1fr); }
}
/* 노트 강조·링크 */
.hl { font-weight: 800; color: var(--accent); }
.board-more { font-weight: 600; white-space: nowrap; }
/* 성취도 공식(KaTeX) */
.help-formula { margin: 14px 0; padding: 14px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; text-align: center; overflow-x: auto; }
/* 리더보드 AI 원샷 기준선 행 */
tr.lb-baseline td {
  font-size: 12.5px; color: var(--text-dim); text-align: center;
  background: var(--surface-2); padding: 9px 14px;
  border-top: 2px dashed var(--accent); border-bottom: 2px dashed var(--accent);
}
tr.lb-baseline b { color: var(--accent); font-weight: 800; }
.lb-bl-note { color: var(--text-faint); }
.lb-baseline-line {
  font-size: 13px; color: var(--text-dim); padding: 12px 14px; margin-bottom: 14px;
  border: 2px dashed var(--accent); border-radius: 10px; background: var(--surface-2); text-align: center;
}
.lb-baseline-line b { color: var(--accent); font-weight: 800; }

/* ── 능력 축 태그 ─────────────────────────────────────────────
   색은 JS(AXES)가 인라인 --axis로 흘려보낸다 → **축을 추가해도 이 CSS는 안 건드린다.**
   축 정의는 frontend/app.js의 AXES 한 곳이 소유(DECISIONS 68). */
.axis-tag {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  color: var(--axis, var(--text-dim));
  background: color-mix(in srgb, var(--axis, var(--border)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--axis, var(--border)) 26%, transparent);
}
[data-theme="dark"] .axis-tag { color: color-mix(in srgb, var(--axis) 62%, white); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .axis-tag { color: color-mix(in srgb, var(--axis) 62%, white); }
}
.card-axes, .limits .axis-tag { display: inline-flex; gap: 5px; flex-wrap: wrap; }
/* AI 연습 목록 카테고리 필터 칩 */
.ai-cat-filter { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.cat-chip {
  font: inherit; font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--text-dim); border: 1px solid var(--border);
}
.cat-chip:hover { color: var(--text); border-color: var(--border-strong); }
.cat-chip.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-top .card-axes { flex: none; margin-top: 2px; }
/* 채점현황 문제 제목 말줄임 */
.subs .c-prob { max-width: 340px; }
.subs .c-prob a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl.board td.score { font-variant-numeric: tabular-nums; }
.tbl.board td.score b { font-size: 15.5px; color: var(--text); }
.rank {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 6px; border-radius: 7px;
  font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums;
  background: var(--surface-3); color: var(--text-dim);
}
.rank.rank-1 { background: linear-gradient(135deg, #ffd970, #f2b01e); color: #4a3500; animation: rankPulse 2.2s ease-in-out infinite; }
.rank.rank-2 { background: linear-gradient(135deg, #e2e6ea, #b9c0c7); color: #33393f; }
.rank.rank-3 { background: linear-gradient(135deg, #e6b891, #cf9463); color: #4a2c12; }
@keyframes rankPulse { 0%, 100% { box-shadow: 0 0 0 rgba(242,176,30,0); } 50% { box-shadow: 0 0 13px rgba(242,176,30,.65); } }

/* 상위권 행 강조 — 한 줄 전체 균일 틴트 + 좌측 accent bar + 1위 금빛 shimmer */
.lb-row.lb-top1 td { background: rgba(242,176,30,.10); }
.lb-row.lb-top2 td { background: rgba(150,160,172,.10); }
.lb-row.lb-top3 td { background: rgba(207,148,99,.11); }
.lb-row.lb-top1:hover td { background: rgba(242,176,30,.15); }
.lb-row.lb-top2:hover td { background: rgba(150,160,172,.15); }
.lb-row.lb-top3:hover td { background: rgba(207,148,99,.16); }
.lb-row.lb-top1 td:first-child { box-shadow: inset 3px 0 0 #f2b01e; }
.lb-row.lb-top2 td:first-child { box-shadow: inset 3px 0 0 #aab2bb; }
.lb-row.lb-top3 td:first-child { box-shadow: inset 3px 0 0 #cf9463; }
/* 1·2·3위 점수 숫자 = 등수 색(금/은/동)으로 흐르는 반짝이 스윕 */
.lb-top1 .score b, .lb-top2 .score b, .lb-top3 .score b {
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: lbShimmer 2.6s linear infinite;
}
.lb-top1 .score b { background-image: linear-gradient(100deg, #cf8f10 0%, #ffe390 18%, #cf8f10 38%, #cf8f10 100%); }
.lb-top2 .score b { background-image: linear-gradient(100deg, #7f8791 0%, #eef2f6 18%, #7f8791 38%, #7f8791 100%); }
.lb-top3 .score b { background-image: linear-gradient(100deg, #a65f30 0%, #f0c193 18%, #a65f30 38%, #a65f30 100%); }
@keyframes lbShimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .rank.rank-1, .lb-top1 .score b, .lb-top2 .score b, .lb-top3 .score b { animation: none; }
  .lb-top1 .score b { -webkit-text-fill-color: #c8890c; color: #c8890c; }
  .lb-top2 .score b { -webkit-text-fill-color: #7f8791; color: #7f8791; }
  .lb-top3 .score b { -webkit-text-fill-color: #a65f30; color: #a65f30; }
}
.c-handle { font-weight: 600; }
.c-handle .anon { color: var(--text-faint); font-weight: 400; }

/* 제출바 핸들 입력 */
.handle-input {
  height: 34px; padding: 0 11px; width: 140px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 14px;
}
.handle-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.handle-hint { color: var(--text-faint); }

/* 도움말 페이지 */
.help { display: grid; gap: 18px; }
.help-sec { padding: 22px 24px; }
.help-sec h2 { font-size: 17px; margin: 0 0 12px; letter-spacing: -.01em; }
.help-sec ul { margin: 0; padding-left: 20px; line-height: 1.75; color: var(--text-dim); }
.help-sec li { margin: 5px 0; }
.mono, .help-tbl td.mono { font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace; font-size: 12.5px; }
.help-note { color: var(--text-faint); font-size: 13.5px; margin: 12px 0 0; line-height: 1.6; }
/* 기여 탭 — 최우선 조건 강조 + 연락처 */
.help-note.contrib-warn { color: var(--text); background: var(--accent-soft); border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0; padding: 12px 14px; font-size: 14px; }
.contrib-contact { margin: 6px 0 0; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.contrib-contact .cc-label { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-faint); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }
.contrib-contact a { font-weight: 600; }
.help-ex { margin-top: 16px; }
.help-ex-lang { font-weight: 700; font-size: 13.5px; color: var(--accent); margin-bottom: 6px; }
.help-code {
  margin: 0; padding: 14px 16px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px; overflow-x: auto;
}
.help-code code {
  font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace;
  font-size: 12.5px; line-height: 1.55; color: var(--text); white-space: pre;
}

/* 계정(로그인/가입) */
/* 기여/제안 포탈(페이지 헤더 우측) — 박스 없는 플레인 텍스트 링크 */
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-head-row .ph-left { min-width: 0; }
.portal-link { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600;
  color: var(--accent); white-space: nowrap; transition: color .14s; }
.portal-link span { transition: transform .16s; }
.portal-link:hover { text-decoration: none; color: var(--accent-hover); }
.portal-link:hover span { transform: translateX(3px); }
@media (max-width: 640px) { .page-head-row { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* 진영 색 스코핑 — 이 래퍼 안에선 accent가 코랄(공격)로 반전 */
.faction-attack {
  --accent: var(--attack); --accent-hover: var(--attack-hover);
  --accent-soft: var(--attack-soft); --accent-ring: var(--attack-ring);
}

/* AI 모드 토글(아레나 / 연습 세션) */
.mode-toggle { display: inline-flex; gap: 6px; padding: 5px; margin: 4px 0 24px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 14px; }
.mode-opt { display: flex; flex-direction: column; gap: 1px; padding: 8px 18px; border-radius: 10px;
  color: var(--text-dim); border: 1px solid transparent; transition: all .14s; }
.mode-opt b { font-size: 14px; font-weight: 700; }
.mode-opt span { font-size: 11.5px; color: var(--text-faint); }
.mode-opt:hover { color: var(--text); text-decoration: none; background: var(--surface); }
.mode-opt.active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm);
  border: 1px solid var(--accent-ring); }
.mode-opt.active b { color: var(--accent); }
.mode-opt.active span { color: var(--text-dim); }

/* AI 아레나 티저(표면 세팅) */
.arena-teaser { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg);
  background:
    radial-gradient(560px 280px at 88% -10%, var(--accent-soft), transparent 70%),
    var(--surface); padding: 40px 40px 44px; }
.at-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 6px 13px; }
.at-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-ring); animation: atPing 1.8s ease-out infinite; }
@keyframes atPing { 0% { box-shadow: 0 0 0 0 var(--accent-ring); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.at-title { font-size: 25px; font-weight: 800; letter-spacing: -.025em; margin: 16px 0 10px; color: var(--text); max-width: 20em; }
.at-lead { font-size: 15.5px; line-height: 1.65; color: var(--text-dim); max-width: 40em; margin: 0; }
.at-lead b { color: var(--text); }
.at-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 0; max-width: 640px; }
.at-step { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.at-step .n { font-size: 12px; font-weight: 800; color: var(--accent); }
.at-step .t { font-size: 14.5px; font-weight: 700; color: var(--text); margin: 6px 0 3px; }
.at-step .d { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.at-foot { margin: 26px 0 0; font-size: 13.5px; color: var(--text-dim); }
.at-foot b { color: var(--text); }
@media (max-width: 640px) { .at-steps { grid-template-columns: 1fr; } .arena-teaser { padding: 28px 22px; } }
.topbar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-auth {
  color: var(--text-dim); font-weight: 600; font-size: 14px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-strong);
  transition: color .12s, border-color .12s, background .12s; white-space: nowrap;
}
.nav-auth:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.nav-auth.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
/* 로그인/가입 — 중앙 단일 카드 */
.auth-wrap { max-width: 420px; margin: 24px auto 0; }
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-badge {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  color: #fff; font-weight: 800; font-size: 22px; background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  box-shadow: 0 6px 18px var(--accent-ring);
}
.auth-brand-name { font-weight: 800; font-size: 20px; margin-top: 12px; letter-spacing: -.02em; }
.auth-tag { color: var(--text-faint); font-size: 13.5px; margin-top: 5px; }
.auth-panel { padding: 26px 26px 20px; }
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-3); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.auth-tab { position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer;
  padding: 9px 0; font-size: 14px; font-weight: 700; color: var(--text-faint); border-radius: 7px; transition: color .15s; }
.auth-tab.active { color: var(--text); }
.auth-tab-ink { position: absolute; z-index: 0; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px);
  background: var(--surface); border-radius: 7px; box-shadow: 0 1px 4px rgba(0,0,0,.10); transition: transform .22s cubic-bezier(.4,.1,.2,1); }
.auth-label { display: block; font-size: 12.5px; color: var(--text-dim); margin: 14px 0 6px; font-weight: 600; }
.auth-input {
  display: block; width: 100%; height: 42px; padding: 0 13px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 14.5px;
}
.auth-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.auth-hint { color: var(--text-faint); font-size: 12.5px; margin-top: 8px; height: 16px; white-space: nowrap; overflow: hidden; }
.auth-submit { width: 100%; justify-content: center; margin-top: 14px; height: 44px; font-size: 15px; }
.auth-submit.loading { opacity: .7; pointer-events: none; }
.auth-err { color: var(--v-wa); font-size: 13px; margin-top: 12px; text-align: center; }
.auth-foot { color: var(--text-faint); font-size: 12.5px; line-height: 1.6; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.auth-foot a { color: var(--text-dim); text-decoration: underline; }
/* 메일 인증(세션30) — 모드별로 칸을 hidden 으로 가른다. display 를 준 칸(탭 · 체크)도 숨겨지게. */
.auth-panel [hidden] { display: none !important; }
.auth-inline { display: flex; gap: 8px; }
.auth-inline .auth-input { flex: 1; min-width: 0; }
.auth-send { flex: 0 0 auto; padding: 0 14px; font-size: 13px; white-space: nowrap; }
.auth-send:disabled { opacity: .6; cursor: default; border-color: var(--border-strong); color: var(--text-dim); }
.auth-code { letter-spacing: 4px; font-family: var(--mono, ui-monospace, monospace); }
.auth-check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--text-dim); cursor: pointer; }
.auth-check input { width: 15px; height: 15px; accent-color: var(--accent); margin: 0; }
.auth-field-hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.auth-checks { margin-top: 6px; }
.auth-checks .auth-check { margin-top: 8px; }
.auth-check a { color: var(--text); text-decoration: underline; }
.auth-check-note { margin: 4px 0 0 23px; font-size: 12px; line-height: 1.55; color: var(--text-faint); }
.auth-info { color: var(--v-ac); font-size: 13px; margin-top: 12px; text-align: center; }
.auth-reset-head { margin-bottom: 6px; }
.auth-reset-title { font-weight: 700; font-size: 16px; }
.auth-reset-sub { color: var(--text-faint); font-size: 13px; margin-top: 4px; }
.auth-me { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.auth-avatar {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-hover));
}
.auth-who { font-weight: 700; font-size: 18px; }
.auth-role { color: var(--text-faint); font-size: 13px; margin-top: 2px; }

/* ── 내 정보(프로필) ── */
.account { max-width: 880px; margin: 8px auto 0; display: flex; flex-direction: column; gap: 18px; }
/* 프로필(세션25 개편) — 머리(아바타·핸들·면 전환) + 면 본문. 면 목록은 app.js PROFILE_FACES. */
.pf { gap: 14px; }
.pf-head { display: flex; align-items: center; gap: 14px; padding: 4px 2px 6px; }
.pf-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 22px; color: var(--accent); background: var(--accent-soft); }
.pf-who { flex: 1; min-width: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-faces { flex: none; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.pf-face { border: 0; background: transparent; color: var(--text-dim); font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 6px 16px; border-radius: 999px; cursor: pointer; transition: background .12s, color .12s; }
.pf-face:hover { color: var(--text); }
.pf-face.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); cursor: default; }
#pfBody { display: flex; flex-direction: column; gap: 14px; }
.pf-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pf-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; }
.pf-kpi-val { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.pf-kpi-label { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }
.pf-sec { padding: 18px 20px; }
.pf-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pf-sec-head h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.pf-sec-head a { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
/* 축별 성취도(세션25) — 레이더 + 범례. 축 목록·색은 app.js AXES, 눈금은 RADAR. */
.sm-ach-mini { min-width: 30px; height: 26px; padding: 0 8px; border-radius: 7px; font-size: 13px; }
.pf-sec-hint { color: var(--text-faint); font-size: 13px; cursor: help; }
.rad-wrap { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); align-items: center; gap: 28px; }
/* ⚠️ 글꼴을 명시한다 — 안 하면 전역 규칙이 모노 글꼴을 물려 한글 축 이름이 폴백으로 떨어져 자간이 벌어진다. */
.radar { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--sans); }
.radar text { font-family: var(--sans); letter-spacing: 0; }
.rad-ring { fill: none; stroke: var(--border); stroke-width: 1; }
.rad-spoke { stroke: var(--border); stroke-width: 1; }
.rad-tick { fill: var(--text-faint); font-size: 9px; font-variant-numeric: tabular-nums; }
.rad-shape { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.rad-label { fill: var(--text); font-size: 12px; font-weight: 700; }
.rad-label.is-empty { fill: var(--text-faint); font-weight: 500; }
.rad-legend { display: flex; flex-direction: column; }
.rad-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; gap: 10px; padding: 9px 8px; margin: 0 -8px;
  border-radius: 10px; color: var(--text); transition: background .12s; }
.rad-row + .rad-row { border-top: 1px solid var(--border); }
.rad-row:hover { background: var(--surface-2); text-decoration: none; }
.rad-name { font-weight: 600; }
.rad-none { justify-self: end; color: var(--text-faint); font-size: 12.5px; }
.rad-row.is-empty .rad-name { color: var(--text-faint); font-weight: 500; }
.rad-avg { justify-self: end; color: var(--text-dim); font-size: 13px; white-space: nowrap; }
.rad-avg b { color: var(--text); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; margin-left: 4px; }
.pf-prob { display: grid; align-items: center; gap: 14px; padding: 10px 8px; margin: 0 -8px; border-radius: 10px;
  color: var(--text); transition: background .12s; }
.pf-prob-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-prob + .pf-prob { border-top: 1px solid var(--border); }
.pf-prob:hover { background: var(--surface-2); text-decoration: none; }
/* 세터 면 — 번호 | 제목 | 역할 | 도전·해결 */
.pf-prob { grid-template-columns: 34px minmax(0, 1fr) auto auto; }
.pf-prob-no { color: var(--text-faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.pf-prob-roles { display: inline-flex; gap: 6px; }
.pf-role { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-dim); white-space: nowrap; }
.pf-role.is-author { background: var(--accent-soft); color: var(--accent); }
.pf-prob-stat { color: var(--text-dim); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-recent td.main a { font-weight: 600; }
.pf-when { color: var(--text-faint); white-space: nowrap; }
@media (max-width: 640px) {
  .rad-wrap { grid-template-columns: 1fr; gap: 12px; }
  .radar { max-width: 280px; margin: 0 auto; }
  .pf-prob { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .pf-prob-roles { display: none; }
}
.who-chip {
  display: inline-flex; align-items: center; font-weight: 700; font-size: 13.5px;
  padding: 5px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--accent);
}

/* 로그인 게이트(제출/채점현황 안내) */
.login-gate { text-align: center; padding: 48px 24px; }
.login-gate .lg-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-ring);
}
.login-gate p { color: var(--text-dim); margin: 0 0 20px; font-size: 15px; }

/* ── 우측 메뉴(햄버거 드롭다운) ─────────────────────────── */
.nav-auth.is-in { color: var(--text); border-color: var(--border-strong); }
.nav-menu-wrap { position: relative; }
.nav-menu {
  position: absolute; right: 0; top: calc(100% + 9px); min-width: 190px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column;
}
.nav-menu[hidden] { display: none; }
.nav-menu-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 9px 12px; border: 0; background: transparent; cursor: pointer; text-align: left;
  font-size: 14px; font-weight: 500; color: var(--text-dim); border-radius: 8px; transition: all .1s;
}
.nav-menu-item[hidden] { display: none; }   /* 클래스 display:flex가 UA [hidden]을 덮어써 로그인/관리자 전용 항목이 새던 버그 방지 */
.nav-menu-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-menu-item svg { color: var(--text-faint); flex: none; }
.nav-menu-item:hover svg { color: var(--text-dim); }
.nav-menu-sep { height: 1px; background: var(--border); margin: 5px 4px; }
.nm-danger { color: var(--v-wa); }
.nm-danger:hover { background: color-mix(in srgb, var(--v-wa) 12%, transparent); color: var(--v-wa); }

/* ── 커뮤니티 ────────────────────────────────────────────── */
.section-title { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.01em; margin: 0; }

/* 툴바: 카테고리 칩(작은 분류) + 검색 */
.cm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.cm-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.cm-chip {
  font-size: 13px; font-weight: 600; color: var(--text-dim); padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); transition: all .12s; white-space: nowrap;
}
.cm-chip:hover { color: var(--text); border-color: var(--border-strong); text-decoration: none; }
.cm-chip.active { color: #fff; background: var(--accent); border-color: var(--accent); }
/* 검색은 목록 하단 중앙(클래식 게시판 배치) */
.cm-search-bar { display: flex; justify-content: center; margin-top: 26px; }
.cm-search { position: relative; display: flex; align-items: center; width: 100%; max-width: 360px; }
.cm-search svg { position: absolute; left: 12px; color: var(--text-faint); pointer-events: none; }
.cm-search input {
  width: 100%; height: 38px; padding: 0 12px 0 36px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 14px;
}
.cm-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }

/* 번호 페이지네이션 */
.cm-pager { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 20px; flex-wrap: wrap; }
.cm-pager:empty { margin-top: 0; }
.pg-btn {
  min-width: 34px; height: 34px; padding: 0 9px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; transition: all .1s;
}
.pg-btn:hover:not(:disabled):not(.active) { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
.pg-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; cursor: default; }
.pg-btn:disabled { opacity: .38; cursor: default; }
.pg-nav { color: var(--text-faint); }
.pg-ellipsis { color: var(--text-faint); padding: 0 2px; }

/* 스레드 목록 테이블 */
.community-list td, .community-list th { padding: 12px 16px; }
.community-list th { white-space: nowrap; }
.community-list .c-th-title { width: 100%; }
.thread-link { font-weight: 600; color: var(--text); }
.thread-link:hover { color: var(--accent); }
.community-list .c-th-board a { color: var(--text-dim); font-size: 13px; white-space: nowrap; }
.community-list .c-th-author { color: var(--text-dim); font-size: 13.5px; white-space: nowrap; }
.reply-n { color: var(--accent); font-weight: 700; font-size: 13px; }
/* 문제 상세 Q&A 탭 헤더 */
.qna-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.qna-intro { color: var(--text-dim); font-size: 13.5px; line-height: 1.6; max-width: 640px; }
.qna-intro a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.pin-badge {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-ring); border-radius: 5px;
  padding: 1px 6px; margin-right: 7px; vertical-align: middle;
}
.prob-chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600;
  color: var(--text-dim); background: var(--surface-3); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 8px; vertical-align: middle; max-width: 240px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prob-chip:hover { color: var(--accent); border-color: var(--accent-ring); text-decoration: none; }
.prob-chip svg { flex: none; }
.role-tag {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  padding: 1px 6px; border-radius: 5px; margin-left: 6px; vertical-align: middle;
  border: 1px solid var(--border);
}
.rt-admin { color: var(--v-wa); background: color-mix(in srgb, var(--v-wa) 10%, transparent); border-color: color-mix(in srgb, var(--v-wa) 24%, transparent); }
.rt-setter { color: var(--defend); background: color-mix(in srgb, var(--defend) 10%, transparent); border-color: color-mix(in srgb, var(--defend) 24%, transparent); }
.more-btn { display: block; margin: 18px auto 0; }

/* 작성 폼 */
.cm-compose { padding: 22px 22px 20px; display: flex; flex-direction: column; }
.cm-label { display: block; font-size: 12.5px; color: var(--text-dim); margin: 14px 0 6px; font-weight: 600; }
.cm-label:first-child { margin-top: 0; }
.cm-label .opt { color: var(--text-faint); font-weight: 500; }
.cm-input {
  display: block; width: 100%; padding: 10px 13px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-size: 14.5px; font-family: inherit;
}
.cm-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.cm-textarea { resize: vertical; line-height: 1.6; min-height: 120px; }
select.cm-input { appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23949aa6' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 34px; }
/* 문제 고르기(검색형 — 세션28, app.js problemPicker) */
.pp { position: relative; }
.pp-picked { display: flex; align-items: center; gap: 8px; padding: 9px 8px 9px 13px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface); font-size: 14.5px; }
.pp-picked[hidden], .pp-input[hidden], .pp-menu[hidden] { display: none; }   /* 클래스 display 가 [hidden] 을 덮어 빈 칸이 보이던 버그(세션32) */
.pp-num { flex: none; color: var(--text-faint); font-weight: 600; font-variant-numeric: tabular-nums; }
.pp-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.pp-clear { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--text-faint); cursor: pointer; }
.pp-clear:hover { background: var(--surface-2); color: var(--text); }
.pp-menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 280px; overflow-y: auto; padding: 4px;
  border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.pp-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; font-size: 14px; cursor: pointer; }
.pp-opt:hover, .pp-opt.is-active { background: var(--surface-2); }
.pp-opt.is-active .pp-num { color: var(--accent); }
.pp-empty { padding: 10px; font-size: 13px; color: var(--text-faint); }
/* 코드 첨부(선택) */
.cm-code-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cm-code-head .cm-label { flex: 1; }
.cm-code-lang { flex: none; width: auto; margin-bottom: 6px; font-size: 12.5px; padding: 5px 30px 5px 10px; }
.cm-code { font-family: var(--mono, ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace); font-size: 12.5px;
  line-height: 1.5; min-height: 90px; white-space: pre; overflow-x: auto; tab-size: 2; }
.cm-err { color: var(--v-wa); font-size: 13px; margin-top: 12px; }
.cm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.cm-actions .btn { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.cm-actions .btn-primary { border-color: transparent; background: var(--accent); color: #fff; }
.cm-actions .btn-primary:hover { background: var(--accent-hover); }

/* 스레드 상세 */
.thread { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px 28px; box-shadow: var(--shadow-sm); }
.thread-head { border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 20px; }
.thread-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; margin: 0; }
.thread-prob { margin-top: 12px; }
.thread-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px;
  font-size: 13.5px; color: var(--text-faint); }
.thread-meta .tm-author { font-weight: 700; color: var(--text-dim); }
.tm-dot { color: var(--text-faint); }
.tm-actions { display: inline-flex; gap: 10px; margin-left: auto; }
.link-btn { border: 0; background: transparent; cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--text-dim); padding: 0; }
.link-btn:hover { color: var(--accent); }
.link-btn.danger:hover { color: var(--v-wa); }
.thread-body { color: var(--text); font-size: 15px; line-height: 1.75; }
.thread-body p { margin: 0 0 12px; }
.thread-body pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; overflow: auto; max-height: 440px; font-family: var(--mono); font-size: 13px; }
.thread-body code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.thread-body pre code { background: none; padding: 0; }
.thread-body ul, .thread-body ol { padding-left: 22px; margin: 0 0 12px; }
.thread-body blockquote { border-left: 3px solid var(--accent-ring); padding: 2px 0 2px 14px; color: var(--text-dim); margin: 0 0 12px; }

/* 댓글 */
.posts { margin-top: 30px; }
.posts .section-title { margin-bottom: 14px; }
.post { padding: 18px 4px; border-bottom: 1px solid var(--border); }
.post:first-child { border-top: 1px solid var(--border); }
.post-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; color: var(--text-faint); }
.post-meta .pm-author { font-weight: 700; color: var(--text-dim); }
.post-body { color: var(--text); font-size: 14.5px; line-height: 1.7; }
.post-body p { margin: 0 0 8px; }
.post-body pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; overflow: auto; max-height: 360px; font-family: var(--mono); font-size: 12.5px; }
.post-body code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.post-body pre code { background: none; padding: 0; }
/* 글 속 코드블록 — 언어 이름표 · 복사 · 문법 색(세션32, app.js mdCodeHtml). 색은 판정 색 변수를 빌려 라이트 · 다크가 저절로 맞는다.
   ⚠️ highlight.js 테마 CSS 는 넣지 않는다 — 토큰 색은 여기 한 곳. */
.md-code { gap: 6px; margin: 0 0 12px; }
.md-code pre { margin: 0; }
.hljs-comment, .hljs-quote { color: var(--text-faint); font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-doctag { color: var(--v-ce); }
.hljs-string, .hljs-regexp, .hljs-char.escape_, .hljs-template-string { color: var(--v-ac); }
.hljs-number, .hljs-literal, .hljs-symbol { color: var(--v-tle); }
.hljs-title, .hljs-title.function_, .hljs-section { color: var(--accent); }
.hljs-type, .hljs-built_in, .hljs-title.class_ { color: var(--v-mle); }
.hljs-meta, .hljs-meta .hljs-keyword { color: var(--v-wa); }
.hljs-meta .hljs-string { color: var(--v-ac); }
.hljs-attr, .hljs-variable, .hljs-params { color: var(--text); }
.reply-box { margin-top: 22px; }
.reply-box .cm-actions { margin-top: 12px; }
.edit-form { margin-top: 12px; display: flex; flex-direction: column; }
.edit-form .cm-input + .cm-input { margin-top: 10px; }
.edit-form .cm-actions { margin-top: 12px; }

/* 신고 인라인 폼 */
.report-form {
  margin-top: 14px; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface-2); display: flex; flex-direction: column; gap: 10px;
}
.report-form .rf-title { font-weight: 700; font-size: 13.5px; color: var(--text); }
.report-form .cm-actions { margin-top: 4px; }
.report-form .cm-actions .btn { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.report-form .cm-actions .btn-primary { border-color: transparent; background: var(--accent); color: #fff; }
.rf-done { color: var(--v-ac); font-weight: 600; font-size: 14px; }

/* 우측 메뉴 신고 배지 */
.nm-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--v-wa); color: #fff; font-size: 11px; font-weight: 700;
}
.cm-chip .chip-n { color: var(--text-faint); font-weight: 700; font-size: 12px; }
.cm-chip.active .chip-n { color: rgba(255,255,255,.85); }

/* 모더레이션 카드 */
.rep-card {
  border: 1px solid var(--border); border-radius: var(--r); background: var(--surface);
  padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.rep-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; margin-bottom: 10px; }
.rep-state { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); }
.rs-pending { color: var(--v-wa); background: color-mix(in srgb, var(--v-wa) 12%, transparent); border-color: color-mix(in srgb, var(--v-wa) 26%, transparent); }
.rs-reviewing { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-ring); }
.rs-resolved { color: var(--v-ac); background: color-mix(in srgb, var(--v-ac) 12%, transparent); border-color: color-mix(in srgb, var(--v-ac) 26%, transparent); }
.rs-dismissed { color: var(--text-faint); background: var(--surface-2); }
.rep-type { font-size: 12px; color: var(--text-dim); background: var(--surface-3); border-radius: 5px; padding: 1px 7px; }
.rep-reason { font-weight: 600; color: var(--text); }
.rep-when { margin-left: auto; color: var(--text-faint); }
.rep-excerpt { font-size: 14.5px; color: var(--text); margin-bottom: 6px; }
.rep-excerpt a { font-weight: 600; color: var(--text); }
.rep-excerpt a:hover { color: var(--accent); }
.rep-detail { font-size: 13.5px; color: var(--text-dim); font-style: italic; margin-bottom: 10px; }
.rep-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 10px; font-size: 12.5px; }
.rep-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-dim); cursor: pointer; font-weight: 600; }
.btn-sm:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-sm:disabled { opacity: .5; cursor: default; }
.btn-sm.btn-danger:hover:not(:disabled) { border-color: var(--v-wa); color: var(--v-wa); }

/* ── 연습 세션 문제 목록(테이블) — 문제 수가 늘어도 견디게 ─────────── */
.pr-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.pr-toolbar .ai-cat-filter { margin-bottom: 0; }
.pr-search input {
  font: inherit; font-size: 13.5px; padding: 7px 13px; border-radius: 999px; min-width: 200px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
}
.pr-search input:focus { outline: none; border-color: var(--accent); }
/* 툴바 우측 = [푼 문제 제외] + 검색. 좁은 화면에서 한 덩어리로 접히게 묶는다. */
.pr-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pr-hide { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim);
  cursor: pointer; user-select: none; white-space: nowrap; }
.pr-hide input { accent-color: var(--accent); width: 14px; height: 14px; margin: 0; cursor: pointer; }
.pr-hide:hover { color: var(--text); }
.pr-count { font-size: 12.5px; color: var(--text-faint); margin: 0 0 12px 2px; }
.tbl.problems td.p-state, .tbl.problems th.p-state { width: 34px; padding-right: 0; text-align: center; }
.p-solved { color: var(--v-ac); font-weight: 800; }
.p-tried { color: var(--text-faint); font-weight: 800; }
.tbl.problems td.main { max-width: 520px; }
.tbl.problems .p-sub { margin-top: 3px; font-size: 12.5px; line-height: 1.5; color: var(--text-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tbl.problems td.p-axes { white-space: nowrap; }
.tbl.problems td.p-axes .axis-tag { margin-right: 4px; }

/* 문제 목록의 내 점수 칸 — 값 아래에 순위(무계 점수 문제만) */
/* 내 점수 칸은 값과 순위가 세로로 겹치므로 열 전체를 가운데 정렬한다(헤더 포함). */
.tbl.problems td.p-score, .tbl.problems th.p-score { text-align: center; }
.tbl.problems .my-score { display: block; }
.tbl.problems .my-rank { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--accent); }

/* ── 설정 페이지(#/settings) ─────────────────────────────────────────
   행 하나 = [설명 | 위젯]. PREFS 배열이 늘어나도 CSS는 그대로다(세션13). */
.set-panel { padding: 18px 20px; margin-bottom: 16px; }
.set-h { font-size: 15px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--border); }
.set-row:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.set-row-text { min-width: 0; }
.set-row-label { font-size: 14px; font-weight: 600; }
.set-row-desc { margin-top: 4px; font-size: 12.5px; line-height: 1.6; color: var(--text-dim); }
.set-row-ctl { flex: 0 0 auto; }
.set-static { font-size: 14px; font-weight: 600; color: var(--text-dim); }
.set-note { margin-top: 10px; font-size: 12.5px; color: var(--text-dim); }
.set-ok { margin: 10px 0; font-size: 13px; color: var(--v-ac); }
.set-panel .auth-label { margin-top: 12px; }
.set-panel .auth-input { max-width: 320px; }
.set-panel .btn { margin-top: 14px; }
/* 위험 구역 — 되돌릴 수 없는 조작임을 색으로 못 박는다 */
.set-danger { border-color: color-mix(in srgb, var(--v-wa) 40%, var(--border)); }
.set-danger .set-h { color: var(--v-wa); }
/* 켬/끔 스위치 — 체크박스를 감춘 뒤 형제 span 을 칠한다 */
.set-switch { display: inline-block; position: relative; width: 42px; height: 24px; cursor: pointer; }
.set-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.set-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--border);
  transition: background .16s ease; }
.set-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.28); transition: transform .16s ease; }
.set-switch input:checked + span { background: var(--accent); }
.set-switch input:checked + span::after { transform: translateX(18px); }
.set-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── 운영자 콘솔(#/admin, 세션14) ───────────────────────────────────────────
   기존 토큰(--surface/--border/--v-*)만 쓴다. 새 색을 만들지 않는다 —
   운영 화면이 서비스와 다른 테마로 갈라지면 다크/라이트 검증을 두 번 해야 한다.
   레이아웃 = 좌측 레일 + 본문. 상세는 본문을 밀어내지 않는 **우측 드로어**로 띄운다. */
.adm { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .adm { grid-template-columns: 1fr; gap: 16px; } }

/* 좌측 레일 */
.adm-rail { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 860px) {
  .adm-rail { position: static; flex-direction: row; overflow-x: auto; gap: 4px;
    border-bottom: 1px solid var(--border); padding-bottom: 8px; }
  .adm-rail-head { display: none; }
}
.adm-rail-head { padding: 0 12px 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-faint); }
.adm-rail-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--text-dim); white-space: nowrap; text-decoration: none;
  transition: background .12s, color .12s; }
.adm-rail-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.adm-rail-item.active { background: var(--accent-soft); color: var(--accent); }
.adm-rail-item svg { flex: 0 0 auto; opacity: .85; }
.adm-rail-n { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px; text-align: center;
  font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--text-faint); }
.adm-rail-item.active .adm-rail-n { background: var(--surface); color: var(--accent); }
.adm-rail-n.warn { background: var(--v-wa-bg); color: var(--v-wa); }

/* 본문 헤더 */
.adm-main { min-width: 0; }
.adm-main-head { margin-bottom: 20px; }
.adm-main-head h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.adm-main-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-dim); }

/* KPI */
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 20px; }
.adm-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; }
.adm-kpi.warn { border-color: color-mix(in srgb, var(--v-wa) 34%, var(--border)); }
.adm-kpi-val { font-size: 25px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.adm-kpi.warn .adm-kpi-val { color: var(--v-wa); }
.adm-kpi-label { margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.adm-kpi-hint { margin-top: 5px; font-size: 11.5px; color: var(--text-faint); }

/* 카드 2단 */
.adm-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 18px; }
.adm-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; }
.adm-card-h { display: flex; align-items: baseline; margin: 0 0 12px; font-size: 13px; font-weight: 700; }
.adm-card-more { margin-left: auto; font-size: 12px; font-weight: 500; }
.adm-todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.adm-todo li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
  font-size: 13.5px; background: var(--surface-2); }
.adm-todo li.warn { background: var(--v-wa-bg); }
.adm-todo li span { flex: 1; }
.adm-feed { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.adm-feed li { display: flex; align-items: baseline; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.adm-feed li:last-child { border-bottom: none; }
.adm-feed time { margin-left: auto; font-size: 11.5px; color: var(--text-faint); white-space: nowrap; }
.adm-note { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r);
  padding: 12px 16px; font-size: 13px; color: var(--text-dim); }
.adm-note code { font-size: 12px; }

/* 툴바(칩 + 검색) */
.adm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.adm-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px;
  border: 1px solid transparent; background: var(--surface-2); color: var(--text-dim);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .12s, color .12s; }
.adm-chip:hover { color: var(--text); }
.adm-chip.active { background: var(--accent-soft); color: var(--accent); }
.adm-chip b { font-variant-numeric: tabular-nums; font-weight: 700; opacity: .65; }
.adm-toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.adm-search { position: relative; display: flex; align-items: center; }
.adm-search svg { position: absolute; left: 10px; color: var(--text-faint); pointer-events: none; }
.adm-search input { font: inherit; font-size: 13.5px; padding: 7px 12px 7px 30px; width: 210px;
  border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.adm-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }

/* 표 — 운영은 밀도가 생명이라 서비스 표보다 조밀하게 */
.adm-tbl-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.adm-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-tbl th { position: sticky; top: 0; z-index: 1; padding: 9px 14px; text-align: left; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint);
  background: var(--surface-2); border-bottom: 1px solid var(--border); }
.adm-tbl td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.adm-tbl tbody tr:last-child td { border-bottom: none; }
.adm-tbl tbody tr { cursor: pointer; transition: background .1s; }
.adm-tbl tbody tr:hover { background: var(--surface-2); }
.adm-tbl .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-tbl th.n { text-align: right; }
.adm-dim { color: var(--text-faint); }
.adm-cell-main b { display: block; font-weight: 600; color: var(--text); }
.adm-cell-main span { display: block; margin-top: 1px; font-size: 11.5px; color: var(--text-faint); }
.adm-sortable { cursor: pointer; user-select: none; }
.adm-sortable:hover { color: var(--text-dim); }
.adm-sortable.on { color: var(--accent); }
.adm-sortable i { display: inline-block; width: 10px; font-style: normal; }
.adm-go { width: 24px; text-align: right; color: var(--text-faint); font-size: 17px; }
.adm-tbl.compact { border: 1px solid var(--border); border-radius: 10px; margin-top: 10px; }
.adm-tbl.compact td { padding: 7px 11px; font-size: 12.5px; }
.adm-tbl.compact tbody tr { cursor: default; }

/* 상태 배지 */
.adm-state { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: var(--v-ie-bg); color: var(--v-ie); white-space: nowrap; vertical-align: middle; }
.adm-state.ps-on, .adm-state.us-active { background: var(--v-ac-bg); color: var(--v-ac); }
.adm-state.ps-off, .adm-state.us-ban { background: var(--v-wa-bg); color: var(--v-wa); }
.adm-state.us-susp { background: var(--v-ole-bg); color: var(--v-ole); }
.adm-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent); }

/* 빈 상태 · 스켈레톤 */
.adm-empty { padding: 28px; text-align: center; font-size: 13.5px; color: var(--text-faint);
  background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r); }
.adm-empty-ok { color: var(--v-ac); border-style: solid; border-color: color-mix(in srgb, var(--v-ac) 26%, var(--border)); }
.adm-skel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.adm-skel-row { height: 44px; border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, transparent 0%, var(--surface-2) 40%, var(--surface-3) 50%, var(--surface-2) 60%, transparent 100%);
  background-size: 220% 100%; animation: admShimmer 1.25s linear infinite; }
.adm-skel-row:last-child { border-bottom: none; }
@keyframes admShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .adm-skel-row { animation: none; background: var(--surface-2); } }

/* 드로어 — 목록을 가리지 않고 옆에서 나온다 */
.adm-drawer-wrap { position: fixed; inset: 0; z-index: 60; }
.adm-drawer-bg { position: absolute; inset: 0; background: rgba(15, 18, 24, .38); opacity: 0;
  transition: opacity .2s ease; }
.adm-drawer-wrap.open .adm-drawer-bg { opacity: 1; }
.adm-drawer { position: absolute; top: 0; right: 0; height: 100%; width: min(560px, 100%);
  display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: -18px 0 46px rgba(15, 18, 24, .14); transform: translateX(100%); transition: transform .22s ease; }
.adm-drawer-wrap.open .adm-drawer { transform: none; }
@media (prefers-reduced-motion: reduce) { .adm-drawer, .adm-drawer-bg { transition: none; } }
.adm-drawer-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border); }
.adm-drawer-head h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.adm-drawer-sub { margin-top: 5px; font-size: 12.5px; color: var(--text-faint); line-height: 1.7; }
.adm-drawer-sub code { font-size: 11.5px; }
.adm-x { margin-left: auto; flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px;
  border: none; border-radius: 8px; background: none; color: var(--text-faint); cursor: pointer; }
.adm-x:hover { background: var(--surface-2); color: var(--text); }
.adm-drawer-body { flex: 1; overflow-y: auto; padding: 4px 22px 28px; }
body.adm-locked { overflow: hidden; }

.adm-sec { padding: 18px 0; border-bottom: 1px solid var(--border); }
.adm-sec:last-child { border-bottom: none; }
.adm-sec h3 { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-faint); }
.adm-hint { margin: 0 0 10px; font-size: 12.5px; line-height: 1.65; color: var(--text-dim); }
.adm-ok { margin: 8px 0 0; font-size: 12.5px; color: var(--v-ac); }
.adm-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.adm-banner { padding: 11px 13px; border-radius: 9px; font-size: 12.5px; line-height: 1.7; }
.adm-banner.warn { background: var(--v-wa-bg); color: var(--v-wa); }

/* 세그먼트 컨트롤(공개 여부) */
.adm-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--surface-2); }
.adm-seg button { padding: 6px 14px; border: none; border-radius: 7px; background: none; color: var(--text-dim);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.adm-seg button:hover { color: var(--text); }
.adm-seg button.on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.09); }

.adm-input, .adm-select { font: inherit; font-size: 13.5px; padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.adm-input { flex: 1; min-width: 200px; }
.adm-input:focus, .adm-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.adm-textarea { width: 100%; min-height: 300px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
  padding: 12px 14px; border-radius: 9px; border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); resize: vertical; }
.adm-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }

.adm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.adm-stats div { padding: 10px 12px; border-radius: 9px; background: var(--surface-2); }
.adm-stats div.warn { background: var(--v-wa-bg); }
.adm-stats b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.adm-stats div.warn b { color: var(--v-wa); }
.adm-stats span { font-size: 11.5px; color: var(--text-faint); }

/* 채워진 버튼 — 콘솔의 주 조치는 시각적으로 확실해야 한다 */
.btn-solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-solid:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-solid-danger { background: var(--v-wa); border-color: var(--v-wa); color: #fff; }
.btn-solid-danger:hover:not(:disabled) { filter: brightness(1.08); color: #fff; }

/* 재채점 진행 */
.adm-prog { margin-top: 12px; }
.adm-prog-bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-bottom: 8px; }
.adm-prog-bar i { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }
.adm-prog-bar i.done { background: var(--v-ac); }

/* 확인 모달 — 되돌릴 수 없는 조치의 결과를 문장으로 먼저 보여 준다 */
.adm-modal-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.adm-modal-bg { position: absolute; inset: 0; background: rgba(15, 18, 24, .46); }
.adm-modal { position: relative; width: min(430px, 100%); padding: 22px 24px 18px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(15, 18, 24, .24); }
.adm-modal h3 { margin: 0 0 10px; font-size: 16.5px; }
.adm-modal-body { font-size: 13.5px; line-height: 1.75; color: var(--text-dim); }
.adm-modal-body p { margin: 0 0 8px; }
.adm-modal-reason { padding: 8px 11px; border-radius: 8px; background: var(--surface-2); color: var(--text); }
.adm-modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* 토스트 */
.adm-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column;
  gap: 8px; align-items: flex-end; pointer-events: none; }
.adm-toast { max-width: 360px; padding: 11px 15px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  color: #fff; background: #23262d; box-shadow: 0 8px 26px rgba(15, 18, 24, .22);
  animation: admToastIn .2s ease; }
.adm-toast.ok { background: var(--v-ac); }
.adm-toast.err { background: var(--v-wa); }
.adm-toast.out { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
@keyframes admToastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 신고 카드는 콘솔 안에서도 기존 스타일을 그대로 쓴다(모더레이션 흡수, 세션14) */
.adm-main .cm-chips { margin-bottom: 12px; }

/* ── 알림(세션15) ──────────────────────────────────────────────────────────
   비동기라 실시간 표시는 없다. 벨의 빨간 배지 = 라우트가 바뀔 때 갱신된 미확인 수. */
.nav-bell-wrap { position: relative; display: flex; }
.nav-bell-wrap[hidden] { display: none; }
.nav-bell { position: relative; }
.bell-badge { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 999px; background: var(--v-wa); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--bg); }
.bell-badge[hidden] { display: none; }

.notif-panel { position: absolute; right: 0; top: calc(100% + 9px); width: min(360px, calc(100vw - 32px)); z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg); overflow: hidden; }
.notif-panel[hidden] { display: none; }
.notif-head { display: flex; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--border);
  font-size: 13px; }
.notif-readall { margin-left: auto; border: none; background: none; cursor: pointer; font: inherit;
  font-size: 12px; color: var(--accent); }
.notif-readall:hover { color: var(--accent-hover); }
.notif-list { max-height: 400px; overflow-y: auto; }
.notif-item { padding: 11px 14px; border-bottom: 1px solid var(--border); cursor: default; }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--surface-2); }
/* 미확인은 왼쪽에 굵은 선 + 살짝 밝은 바탕으로 영역이 보이게(사용자 요청) */
.notif-item.unread { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.notif-text { font-size: 13px; line-height: 1.65; color: var(--text-dim); }
.notif-text a { font-weight: 600; }
.notif-item.unread .notif-text { color: var(--text); }
.notif-item time { display: block; margin-top: 4px; font-size: 11.5px; color: var(--text-faint); }
.notif-empty { padding: 30px 14px; text-align: center; font-size: 13px; color: var(--text-faint); }

/* ── 제출 코드 단독 페이지 + 공개 토글(세션15) ─────────────────────────── */
.subv-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.subv-m { font-size: 13px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
/* 코드 블록 헤더의 공개 토글 — 내 제출일 때만 그린다 */
.sd-pub { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; cursor: pointer;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-dim); }
.sd-pub:hover { color: var(--text); }
.sd-pub input { width: 13px; height: 13px; margin: 0; cursor: pointer; accent-color: var(--accent); }
.sd-pub input:disabled { cursor: progress; }
.adm-textarea-sm { min-height: 140px; font-family: inherit; font-size: 13.5px; }

/* ── 공지 행(세션17) ───────────────────────────────────────────────────────
   "고정" 배지를 붙이는 대신 **행 자체를 옅게 물들인다**(사용자 지시).
   색은 새로 만들지 않고 경고/주의 계열의 기존 토큰(--v-ole-bg)을 쓴다 — 테마 전환이 자동으로 따라온다.
   ⚠️ .tbl tbody tr:hover 보다 뒤에 오고 선택자도 더 구체적이어야 hover 에 덮이지 않는다.
   ⚠️ 토큰을 그대로 깔면 색이 너무 튄다(세션18) — surface 에 섞어 **틴트만 남긴다**.
      강조는 옅은 바탕과 제목 굵기만으로 진다 — 좌측 세로 바는 뺐다(세션19, 사용자 지시). */
.tbl tbody tr.is-notice { background: color-mix(in srgb, var(--v-ole-bg) 40%, var(--surface)); }
.tbl tbody tr.is-notice:hover { background: color-mix(in srgb, var(--v-ole-bg) 40%, var(--surface-2)); }
.tbl tbody tr.is-notice .thread-link { font-weight: 700; }

/* 콘솔의 인라인 켬/끔 토글(공지 댓글 허용 등) — 상태가 글자로 보이고 눌러서 바꾼다 */
.adm-toggle { padding: 2px 10px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-size: 11.5px; font-weight: 700;
  background: var(--v-ac-bg); color: var(--v-ac); }
.adm-toggle:hover { border-color: currentColor; }
.adm-toggle.off { background: var(--v-wa-bg); color: var(--v-wa); }
.adm-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--text-dim); }
.adm-check input { width: 14px; height: 14px; margin: 0; cursor: pointer; accent-color: var(--accent); }

/* ── 커뮤니티 모더레이션(세션18) ──────────────────────────────────────────
   새 색을 만들지 않는다 — 상태 배지는 기존 .adm-state 계열(us-susp/us-ban)을 그대로 쓴다. */
.adm-quote { margin-top: 8px; padding: 10px 13px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 13px; line-height: 1.65; color: var(--text-dim);
  white-space: pre-wrap; word-break: break-word; max-height: 240px; overflow: auto; }
.adm-posts { margin-top: 6px; max-height: 420px; overflow: auto; }
.adm-post { padding: 12px 0; border-bottom: 1px solid var(--border); }
.adm-post:last-child { border-bottom: none; }
.adm-post-meta { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-faint); }
.adm-post-meta b { color: var(--text-dim); }
.adm-post-act { margin-left: auto; display: flex; gap: 4px; }
/* 내려간 것은 흐리게 — 목록에서 한눈에 갈려야 한다 */
.adm-post.is-removed .adm-quote { opacity: .6; }
.btn-xs { padding: 3px 8px; font-size: 11.5px; border-radius: 7px; border: 1px solid transparent;
  background: transparent; color: var(--text-dim); cursor: pointer; font: inherit; font-size: 11.5px; }
.btn-xs:hover { border-color: var(--accent); color: var(--accent); }

/* 글·댓글이 내려간 상태 알림(관리자에게만 도달한다 — 그 외에는 서버가 404) */
.thread-down, .post-down { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px;
  background: var(--v-ole-bg); color: var(--v-ole); font-size: 13px; font-weight: 600; }
.post-down { margin-bottom: 8px; padding: 7px 11px; font-size: 12.5px; }
.post.is-removed .post-body { opacity: .6; }

/* ── 커뮤니티 목록 폭 고정(세션19) ────────────────────────────────────────
   제목이 길면 표를 밀어내는 대신 **말줄임**한다. colgroup 으로 폭을 못박아야
   table-layout:fixed 가 제목 칸에 남은 폭을 주고, 거기서 ellipsis 가 걸린다. */
.community-list { table-layout: fixed; }
.community-list col.cw-board  { width: 104px; }
.community-list col.cw-author { width: 146px; }
.community-list col.cw-n      { width: 66px; }
.community-list col.cw-when   { width: 92px; }
.c-th-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.c-th-line .thread-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.c-th-line .reply-n, .c-th-line .prob-chip { flex: none; }
.c-th-up .up-n { color: var(--v-ac); font-weight: 700; }
.c-th-up .zero { color: var(--text-faint); }

/* ── 추천/비추천(세션19) ─────────────────────────────────────────────────
   본문 아래 가운데. 색은 기존 판정 토큰(--v-ac / --v-wa)을 그대로 쓴다. */
.vote-bar { display: flex; justify-content: center; gap: 12px; margin: 26px 0 4px; }
.vote-bar.busy { opacity: .55; pointer-events: none; }
.vote-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-dim);
  font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all .12s; }
.vote-btn b { font-variant-numeric: tabular-nums; font-size: 14.5px; }
.vote-btn:hover:not(:disabled) { border-color: currentColor; }
.vote-btn:disabled { opacity: .5; cursor: default; }
.vote-btn.up:hover:not(:disabled), .vote-btn.up.on { color: var(--v-ac); border-color: var(--v-ac); background: var(--v-ac-bg); }
.vote-btn.down:hover:not(:disabled), .vote-btn.down.on { color: var(--v-wa); border-color: var(--v-wa); background: var(--v-wa-bg); }

/* ── 글 화면의 운영자 조치 바(세션19) ────────────────────────────────────
   운영자에게만 렌더된다. 서버는 콘솔과 같은 /admin/community/* 경로를 쓴다. */
.mod-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 22px;
  padding: 10px 14px; border: 1px dashed var(--border-strong); border-radius: var(--r);
  background: var(--surface-2); }
.mod-tag { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: var(--text-faint);
  text-transform: uppercase; margin-right: 2px; }
.mod-link { margin-left: auto; font-size: 12.5px; color: var(--text-dim); }
.post-mod { margin-left: 6px; display: inline-flex; gap: 4px; }

/* ── AI 아레나 라운드(세션21) ───────────────────────────────────────────
   기존 토큰만 쓴다(--surface/--border/--accent/--attack/--v-*). 새 색을 만들면
   다크/라이트를 두 번 검증해야 한다(유지보수 규약). */
.rd-group { margin: 0 0 34px; }
.rd-group-t { font-size: 14px; font-weight: 800; letter-spacing: .01em; color: var(--text-dim);
  margin: 0 0 12px; }

/* 진행 중·예정 라운드 = 큰 카드. 카운트다운이 주인공이라 오른쪽에 크게 둔다. */
.rd-card { display: flex; align-items: stretch; gap: 20px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px 24px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
  transition: border-color .12s, box-shadow .12s, transform .12s; }
.rd-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-1px);
  text-decoration: none; }
.rd-card:hover .rd-card-t { color: var(--accent); }
/* 진행 중 = 초록(라이브 신호). 코랄은 '공격 진영'의 색이라 상태 신호로 겹쳐 쓰면 뜻이 흐려진다. */
.rd-card.is-live { border-color: color-mix(in srgb, var(--v-ac) 55%, var(--border));
  box-shadow: var(--shadow-sm); }
.rd-card.is-live:hover { border-color: var(--v-ac); }
.rd-card-main { flex: 1; min-width: 0; }
.rd-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.rd-card-t { margin: 0 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.rd-card-s { margin: 0 0 12px; font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }
.rd-card-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--text-faint); }
.rd-mine { color: var(--text-dim); font-weight: 700; }
.rd-mine::before { content: "✓ "; color: var(--v-ac); }
.rd-when { font-size: 12.5px; color: var(--text-faint); }
.rd-card-clock { display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  padding-left: 20px; border-left: 1px solid var(--border); min-width: 132px; }
.rd-cd-label { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--text-faint);
  text-transform: uppercase; margin-bottom: 4px; }
/* ⚠️ 여기에 var(--mono) 를 쓰지 말 것 — "2일 23시간" 의 한글이 모노 폴백으로 떨어져 글꼴이 튄다.
   숫자 자리가 흔들리지 않게 하는 건 tabular-nums 하나면 충분하다. */
.rd-cd { font-size: 26px; font-weight: 800; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; color: var(--text); }
/* ⚠️ 카운트다운은 **본문 색**을 유지한다(사용자 지시) — 진행 중임은 칩과 테두리가 이미 말하고 있고,
   큰 숫자까지 초록이면 화면에서 초록이 과해진다. 상태색은 작은 신호에만 쓴다. */
.rd-cd.xl { font-size: 38px; }
.rd-cd.done { color: var(--text-faint); }

/* 상태 칩 */
.rd-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em; border: 1px solid transparent; }
.rp-live { color: var(--v-ac); background: var(--v-ac-bg);
  border-color: color-mix(in srgb, var(--v-ac) 26%, transparent); }
.rp-soon { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-ring); }
.rp-ended { color: var(--text-faint); background: var(--v-ie-bg); }
.rp-draft { color: var(--text-dim); background: transparent; border-color: var(--border-strong);
  border-style: dashed; }
.rd-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  animation: rdPulse 1.6s ease-in-out infinite; }
@keyframes rdPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .rd-dot { animation: none; } }

/* 지난 라운드 = 조용한 표 */
.tbl.rd-past td { vertical-align: top; }
.rd-past-when { color: var(--text-faint); font-size: 12.5px; white-space: nowrap; }
.rd-note { color: var(--text-dim); font-size: 13.5px; }
.rd-eyebrow-link { color: inherit; }
.rd-eyebrow-link:hover { color: var(--accent); text-decoration: none; }

/* 라운드 상세 헤더 */
.rd-head { display: flex; align-items: flex-start; gap: 28px; flex-wrap: wrap;
  margin: 6px 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.rd-head-l { flex: 1; min-width: 260px; }
.rd-head-l .page-title { margin: 6px 0 8px; }
.rd-head-r { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.rd-clock-big { text-align: right; }
.rd-times { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px;
  font-size: 13px; color: var(--text-dim); }
.rd-times b { color: var(--text-faint); font-weight: 700; margin-right: 5px; font-size: 12px; }
.rd-reg { white-space: nowrap; }
/* 신청 창이 닫힌 뒤의 내 상태 — 버튼이 아니라 표시다(누를 것이 없다) */
.rd-regstate { font-size: 13px; font-weight: 700; padding: 8px 0; color: var(--text-dim); }
.rd-regstate.on { color: var(--v-ac); }
.rd-regstate.off { color: var(--text-faint); }
.rd-desc { padding: 20px 24px; margin-bottom: 30px; }
.rd-desc > :first-child { margin-top: 0; }
.rd-desc > :last-child { margin-bottom: 0; }

/* 문제 라벨(A·B·C) — 시작 전에는 이것만 보인다 */
.rd-label { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 8px; background: var(--v-ie-bg); color: var(--text-dim);
  font-family: var(--mono); font-size: 13px; font-weight: 700; }
.rd-label-h, .rd-label-c { width: 44px; }
.tbl .rd-row { cursor: pointer; }
.tbl .rd-row:hover { background: var(--surface-2); }

/* 잠긴 편성 — ⚠️ 내용을 흉내 내지 않는다(가짜 텍스트 바는 '깨진 행'으로 읽힌다).
   문제 수만큼의 라벨 + 자물쇠 + 이유 한 줄. 빈 상태 패널의 어법으로 조용하게. */
.rd-locked { display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px; padding: 40px 24px; }
.rd-locked-ico { color: var(--text-faint); }
.rd-locked-note { margin: 0; font-size: 13px; color: var(--text-dim); max-width: 44ch; line-height: 1.6; }

@media (max-width: 720px) {
  .rd-card { flex-direction: column; gap: 16px; }
  .rd-card-clock { align-items: flex-start; padding-left: 0; padding-top: 16px;
    border-left: 0; border-top: 1px solid var(--border); }
  .rd-head-r { align-items: flex-start; width: 100%; }
  .rd-clock-big { text-align: left; }
  .rd-cd.xl { font-size: 32px; }
}

/* ── 크레딧(세션21) — 문제 하단 · 라운드 운영진. 두 자리가 같은 부품을 쓴다. */
/* 크레딧 — **역할마다 한 줄**(세션24, 사용자 지시). 라벨 열과 사람 열이 세로로 맞아야 읽힌다.
   ⚠️ 줄 수는 역할 수만큼 늘어나므로 grid 두 열로 둔다(라벨은 내용만큼, 사람은 나머지 전부). */
.cr-rows { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; align-items: baseline; }
.cr-role { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: var(--text-faint); }
.cr-people { font-size: 13px; color: var(--text-dim); }
.cr-sep { margin: 0 6px; color: var(--text-faint); }
.rd-staff { margin-top: 10px; }
.prob-credits { margin: 30px 0 6px; padding-top: 18px; border-top: 1px solid var(--border); }
/* 진행 중 라운드로 가려진 제출 행의 결과 칸 */
.in-round { color: var(--text-faint); }
/* 참가하지 않은 라운드의 문제 — 보이되 들어갈 수 없다(링크 없음) */
.c-prob-locked { color: var(--text-dim); cursor: default; }

/* ── 라운드 스코어보드(세션21 2단계) ────────────────────────────────── */
.sb-freeze { margin: 0 0 12px; padding: 12px 16px; border-radius: var(--r);
  background: var(--v-tle-bg); color: var(--v-tle); font-size: 13px; line-height: 1.6; }
.tbl.sb th, .tbl.sb td { text-align: center; }
.tbl.sb th.sb-who, .tbl.sb td.sb-who { text-align: left; }
.sb-rank { width: 48px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.sb-total { width: 78px; font-weight: 800; font-variant-numeric: tabular-nums; }
/* 내 행 고정(페이지가 넘어가도 내 성적은 위에 보인다) */
.tbl.sb tbody.sb-pin tr { border-bottom: 2px solid var(--border-strong); }
.sb-tag { margin-left: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 999px; }
.sb-cell { width: 76px; }
.sb-cell.empty { color: var(--border-strong); }
.sb-cell.got { color: var(--v-ac); font-weight: 700; }
.sb-score { display: block; font-variant-numeric: tabular-nums; }
.sb-at { display: block; font-size: 11px; font-weight: 500; color: var(--text-faint);
  font-variant-numeric: tabular-nums; }
.tbl.sb tr.sb-me { background: var(--accent-soft); }
.tbl.sb tr.sb-me .sb-rank { color: var(--accent); font-weight: 800; }
.sb-note { margin: 12px 2px 0; font-size: 12.5px; color: var(--text-faint); }

/* ── 라운드 질문(세션21) ────────────────────────────────────────────── */
/* 탭 우측 배지 — 공개된 질답 수. 알림 배지와 같은 언어(빨강)로 "새로 볼 게 있다"를 말한다. */
.tab-badge { margin-left: 6px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px;
  background: var(--v-wa); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 17px;
  display: inline-block; text-align: center; font-variant-numeric: tabular-nums; vertical-align: 1px; }
.qa-form { margin-bottom: 18px; }
.qa-form textarea, .qa-input { width: 100%; box-sizing: border-box; padding: 11px 13px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--surface);
  color: var(--text); font: inherit; font-size: 13.5px; line-height: 1.6; resize: vertical; }
.qa-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.qa-note { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }
.qa-list { display: flex; flex-direction: column; gap: 12px; }
.qa-item { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface);
  padding: 16px 18px; }
.qa-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12.5px;
  color: var(--text-faint); }
.qa-head time { margin-left: auto; }
.qa-state { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.qa-state.pub { color: var(--v-ac); background: var(--v-ac-bg); }
.qa-state.priv { color: var(--text-dim); background: var(--surface-2); border: 1px dashed var(--border-strong); }
.qa-body { font-size: 14px; line-height: 1.7; }
.qa-body > :first-child, .qa-answer-b > :first-child { margin-top: 0; }
.qa-body > :last-child, .qa-answer-b > :last-child { margin-bottom: 0; }
.qa-answer { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--surface-2); border-left: 3px solid var(--accent); }
.qa-answer-h { font-size: 11.5px; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.qa-answer-b { font-size: 13.5px; line-height: 1.7; }
.qa-pending { margin-top: 10px; font-size: 12.5px; color: var(--text-faint); }
.qa-admin { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-strong); }

/* ── 콘솔: 라운드 편집(세션21) ─────────────────────────────────────── */
.adm-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.adm-row { display: flex; align-items: flex-start; gap: 12px; }
.adm-label { flex: 0 0 108px; padding-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-dim); }
.adm-ctrl { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.adm-ctrl input:not([type=number]), .adm-ctrl textarea, .adm-ctrl select { flex: 1; min-width: 0; }
.adm-form input, .adm-form textarea, .adm-form select,
.adm-actions input, .adm-actions select {
  padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.adm-form textarea { resize: vertical; line-height: 1.6; }
.adm-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.adm-h3 { margin: 0 0 6px; font-size: 14px; font-weight: 800; }
.adm-hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0 16px; }
.adm-line { display: flex; align-items: center; gap: 10px; padding: 7px 0;
  border-bottom: 1px solid var(--border); }
.adm-line-t { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.adm-line input, .adm-line select { padding: 5px 8px; border: 1px solid var(--border-strong);
  border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; }
.adm-line .rf-label { width: 46px; text-align: center; }
.adm-line .rf-points { width: 74px; text-align: right; }
.adm-warn { color: var(--v-wa); }

/* ── 출제 플랫폼(세션22): 세터 모드 · 제안 ───────────────────
   세터 모드는 파랑(설계·방어) 진영의 색을 입는다. 새 색은 만들지 않고 --defend 에서 파생한다
   (새 색을 만들면 다크/라이트를 두 번 검증해야 한다 — 콘솔 규약과 같다). */
body.mode-setter { --accent: var(--defend); }
body.mode-setter .topbar {
  background: color-mix(in srgb, var(--defend) 7%, color-mix(in srgb, var(--surface) 90%, transparent));
  border-bottom-color: color-mix(in srgb, var(--defend) 45%, var(--border));
}
.mode-chip {
  display: inline-flex; align-items: center; margin-left: -16px; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap; color: var(--defend);
  background: color-mix(in srgb, var(--defend) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--defend) 30%, transparent);
}
.mode-chip[hidden] { display: none; }
.nm-mode { font-weight: 700; color: var(--defend); }
.ph-links { flex: none; display: flex; gap: 18px; }

.pp-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 18px; padding: 0; counter-reset: pp; }
.pp-steps li { counter-increment: pp; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.pp-steps li::before { content: counter(pp); display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 12px; }
.pp-steps li b { color: var(--text); }
.pp-form { margin-bottom: 28px; }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.pp-note { margin: 8px 0 0; font-size: 12.5px; color: var(--text-faint); }
.cm-err.pp-ok { color: var(--v-ac); }
.pp-card .rep-foot { margin-top: 8px; }
.pp-title { font-weight: 700; font-size: 15px; margin: 8px 0 4px; color: var(--text); }
.pp-grant { font-size: 12.5px; font-weight: 600; color: var(--v-ac); }

.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.st-card { padding: 16px 18px; }

.prp-pitch { max-height: 320px; overflow: auto; margin: 10px 0; }
.prp-facts { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 14px 0; font-size: 13px; }
.prp-facts dt { color: var(--text-faint); }
.prp-facts dd { margin: 0; word-break: break-word; }
.prp-who { font-size: 13px; color: var(--text-dim); }
#prp-list tr[data-pid] { cursor: pointer; }

@media (max-width: 720px) {
  .pp-steps { grid-template-columns: 1fr 1fr; }
  .pp-grid { grid-template-columns: 1fr; }
  .ph-links { flex-direction: column; gap: 6px; }
}
/* 잠긴 기능(세션22) — 극초창기엔 아레나가 티저라 아레나 제안이 잠긴다. 누를 수 없음을 모양으로 먼저 보여 준다. */
.lock-ic { flex: none; }
.cm-chip.is-locked { display: inline-flex; align-items: center; gap: 5px; opacity: .55; cursor: not-allowed; }
.portal-link.is-locked { display: inline-flex; align-items: center; gap: 5px; color: var(--text-faint); cursor: default; }
.portal-link.is-locked:hover { color: var(--text-faint); }
.cm-err.pp-ok a { font-weight: 600; }
/* ── 세터 작업실(세션22 ③) — 초안 편집기 ── 기존 토큰만 쓴다. */
.st-link { display: block; color: inherit; transition: border-color .12s; }
.st-link:hover { text-decoration: none; border-color: var(--accent); }
.df-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.df-preview { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; min-height: 220px;
  max-height: 480px; overflow: auto; background: var(--surface); }
.df-code { font-family: var(--mono); font-size: 12.5px; }
.df-axes { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; }
.df-axis { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.df-sample { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 8px; }
.df-sample .cm-label { margin-top: 0; }
.df-file { margin-top: 6px; font-size: 12.5px; color: var(--text-dim); }
.df-tests td { vertical-align: top; }
.df-head { font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-all; max-height: 4.6em; overflow: hidden; }
.df-msg-row td { border-top: 0; padding-top: 0; }
.df-msg { font-family: var(--mono); font-size: 12px; white-space: pre-wrap; color: var(--text-dim); }
.ck-view { max-height: 50vh; overflow: auto; margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--surface-2); font-family: var(--mono); font-size: 12px; white-space: pre; text-align: left; }
.adm-modal:has(.ck-view) { width: min(760px, 92vw); max-width: none; }
@media (max-width: 720px) { .df-split, .df-sample { grid-template-columns: 1fr; } }
.st-empty p { margin: 0 0 8px; }
.st-empty-cta { display: flex; gap: 8px; justify-content: center; margin-top: 14px !important; }
/* 세터 미리보기 — 실제 문제 화면을 점선 틀 안에 그린다(틀 밖의 편집기와 헷갈리지 않게). */
.df-previewbox { margin-top: 12px; padding: 18px 22px; border: 1px dashed var(--border-strong); border-radius: var(--r); }
.df-previewbox .tab[disabled] { opacity: .5; cursor: default; }
/* 점검(Polygon 방식) — 결과 표시. 기존 토큰(--v-ac/--v-wa)만 쓴다. */
.df-seg { margin-bottom: 12px; }
.df-ck { font-size: 12.5px; font-weight: 700; }
.df-ck.ok { color: var(--v-ac); }
.df-ck.bad { color: var(--v-wa); }
.df-ck-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 8px; }
.df-ck-head .btn { margin-left: auto; }
.df-samples-ck { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0; }
.df-ckerr { margin: 8px 0; }
.df-ckerr pre { max-height: 220px; overflow: auto; margin: 4px 0 0; }
.df-codebox, .df-upload { margin-top: 12px; }
.df-codebox .adm-h3, .df-upload .adm-h3 { margin-top: 0; display: flex; align-items: center; gap: 8px; }
/* ④ 심사 패널(작업 공간) · 잠긴 초안 배너 */
.ws-review { padding: 14px 18px; margin-bottom: 14px; }
.ws-review-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ws-review .rep-detail { margin-top: 8px; }
.ws-done { border-color: color-mix(in srgb, var(--v-ac) 40%, var(--border)); }

/* 심사 단계별 색 — 지금 무엇을 할 차례인지 한눈에 보이게(세션23, 사용자 지적).
   ★초록은 **완료된 것에만** 쓴다(공개됨). 그래야 초록이 "끝났다"는 뜻으로 일관된다.
   왼쪽 굵은 띠 하나로 구분한다: 내 차례(요청 가능)=파랑 · 기다리는 중(심사 중·공개 처리 중)=주황 · 완료=초록 · 그 밖(준비 중·막힘)=중립. */
.ws-review { border-left: 4px solid var(--border-strong); }
.ws-ready  { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.ws-wait   { border-left-color: var(--v-tle); background: color-mix(in srgb, var(--v-tle) 7%, var(--surface)); }
.ws-done   { border-left-color: var(--v-ac); background: color-mix(in srgb, var(--v-ac) 5%, var(--surface)); }

/* ★운영자 메모(반려·되돌림 사유) — 세터가 **가장 먼저** 봐야 할 문장이다.
   예전엔 흐린 12.5px 이탤릭 한 줄이라 눈에 안 띄었다(사용자 지적). 라벨을 달고 박스로 띄운다. */
.ws-note { margin-top: 12px; padding: 11px 13px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--v-tle) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--v-tle) 32%, transparent); }
.ws-note-h { display: block; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--v-tle); margin-bottom: 4px; }
.ws-note-b { font-size: 14px; line-height: 1.6; color: var(--text); white-space: pre-wrap; }
.df-locked { margin: 0 0 10px; }
/* 출제 가이드라인(세션22) */
.guide-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.guide-steps li { padding-left: 4px; }
/* ⚠️ 직계 자식만 — 설명 안의 굵은 글씨(<span> 속 <b>)까지 칸 너비를 먹으면 문장 사이가 벌어진다. */
.guide-steps li > b { display: inline-block; min-width: 118px; margin-right: 8px; color: var(--text); }
.guide-steps li span { color: var(--text-dim); }
.guide-h3 { font-size: 15px; margin: 18px 0 6px; }
.guide-code { margin: 8px 0 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2);
  border: 1px solid var(--border); font-family: var(--mono); font-size: 12.5px; line-height: 1.55; white-space: pre; overflow-x: auto; }
.guide-faq dt { font-weight: 700; margin-top: 10px; }
.guide-faq dd { margin: 2px 0 0; color: var(--text-dim); }
.pp-guide-link { margin: -8px 0 16px; }
/* 문제 번호(세션22) — 목록 맨 왼쪽 칸 · 문제 제목 앞 */
.tbl.problems .p-num { width: 44px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.p-num-h { margin-right: 10px; color: var(--text-faint); font-weight: 600; font-variant-numeric: tabular-nums; }
/* 지문 칸(소제목 고정, 세션22) */
.df-sec { margin-bottom: 4px; }
.df-sec-hint { margin: -2px 0 6px; }

/* 필수인데 비어 있는 입력 — 어느 칸이 문제인지 바로 보이게(세션23). */
.adm-input-bad, input.adm-input-bad {
  border-color: var(--v-wa) !important;
  background: color-mix(in srgb, var(--v-wa) 7%, transparent);
}

/* ── 출제 가이드라인: 단계 카드(세션23, 사용자 지적) ──────────────────────
   예전에는 h3 + 문단 + 코드가 끝없이 이어져 "지금 몇 단계를 읽고 있는지"가 안 보였다.
   번호 · 제목 · **어느 탭에서 하는 일인지**를 머리에 달고 본문을 들여 쓴다. */
.guide-step { border: 1px solid var(--border); border-radius: var(--r); margin: 14px 0; overflow: hidden; }
.guide-step-h { display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--border); }
.guide-step-n { flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
  display: grid; place-items: center; }
.guide-step-t { font-weight: 700; font-size: 15px; color: var(--text); }
.guide-step-w { margin-left: auto; font-size: 12px; color: var(--text-faint); }
.guide-step-b { padding: 12px 14px 14px; }
.guide-step-b > .help-note:first-child { margin-top: 0; }

/* 지문 단계의 원문 / 미리보기 전환 */
.guide-seg { margin: 0 0 10px; }
.guide-stpane[hidden] { display: none !important; }

/* 값이 아니라 "시스템이 정한다"를 알리는 자리(공개 시 문제 번호 등). */
.adm-static { font-size: 13px; color: var(--text-faint); }

/* ── 채점 데이터 갱신(세션24, DECISIONS 177) ─────────────────────────────
   ★규칙 하나: **없는 것에는 스켈레톤, 낡은 것에는 흐림 + 배지.**
   여기는 "데이터가 아직 없다"가 아니라 "있지만 낡았다"라서, 가리지 않고 보여 주되 알린다.
   색은 기존 토큰만 쓴다 — 기다리는 중 = var(--v-tle)(작업 공간의 ws-wait 와 같은 뜻). */
.data-banner { margin: 12px 0 0; padding: 11px 14px; border-radius: var(--r-sm); font-size: 13.5px; line-height: 1.6;
  color: var(--text); background: color-mix(in srgb, var(--v-tle) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--v-tle) 30%, transparent); border-left: 4px solid var(--v-tle); }
.data-banner:empty { display: none; }
/* 갱신 구간(제출이 막혀 있다)은 한 단계 더 강하게 — 기다리는 것과 막힌 것은 다른 상태다. */
.db-lock { background: color-mix(in srgb, var(--v-wa) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--v-wa) 30%, transparent); border-left-color: var(--v-wa); }

/* 아직 옛 데이터로 매긴 행 — 점수를 **흐리게**(지우지 않는다) + 옆에 이유 배지. */
.stale-score { opacity: .45; }
.stale-row .score { opacity: .55; }
.stale-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap; vertical-align: middle;
  color: var(--v-tle); background: color-mix(in srgb, var(--v-tle) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--v-tle) 34%, transparent); }

/* 제출 폼 잠금 — 버튼 비활성 + 사유 문장(스켈레톤이 아니다: 폼은 구조가 이미 보인다). */
.submit-lock { margin-top: 12px; color: var(--v-tle); font-size: 13.5px; }
.submit-lock[hidden] { display: none; }

/* 작업실 운영 탭 */
.ops-prob { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 15px; font-weight: 700; }
.ops-prob a { color: var(--text); }
.ops-meta { font-size: 12.5px; font-weight: 400; color: var(--text-faint); }
.ops-state { margin: 12px 0; padding: 11px 13px; border-radius: var(--r-sm); font-size: 13.5px; line-height: 1.6;
  border-left: 4px solid var(--border-strong); background: var(--surface-2); }
/* 단계 색은 작업 공간(ws-*)과 **같은 뜻**으로 쓴다 — 기다리는 중=주황 · 완료=초록.
   ⚠️ 두 클래스 선택자로 적는다: 한 클래스끼리는 나중에 쓴 .ops-state 의 background 가 이겨 색이 안 먹었다. */
.ops-state.ws-wait { border-left-color: var(--v-tle); background: color-mix(in srgb, var(--v-tle) 7%, var(--surface)); }
.ops-state.ws-done { border-left-color: var(--v-ac);  background: color-mix(in srgb, var(--v-ac) 5%, var(--surface)); }

/* 반영 진행 표시(세션24 후반, 사용자 요청) — 지금 어느 단계인지 + 재채점 진행률. */
.data-err { margin-top: 6px; font-size: 12.5px; color: var(--v-wa); }
/* 반영 실패 — 되돌아보게 해야 하는 상태라 무효 판정과 같은 색을 쓴다. */
.db-fail { background: color-mix(in srgb, var(--v-wa) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--v-wa) 30%, transparent); border-left-color: var(--v-wa); }
.ops-state.ws-fail { border-left-color: var(--v-wa); background: color-mix(in srgb, var(--v-wa) 7%, var(--surface)); }
.ops-step-note { font-size: 12.5px; color: var(--text-dim); }

/* 단계 목록(운영 탭) — 지나간 단계도 보이게 한다. 앞 단계는 1초도 안 걸려 그냥 두면 못 본다. */
.data-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; }
.data-steps li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-faint); }
.data-steps .ds-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); flex: none; }
/* ★색은 **시선이 가야 할 곳**을 가리킨다(사용자 지적): 끝난 단계는 물러나고(회색), 지금 도는 단계가 도드라진다.
   ⚠️ 진행 중을 **초록으로 두지 않는다** — 이 프로젝트에서 초록은 "완료"의 뜻으로 고정돼 있다
      (DECISIONS 175·176: 내 차례=파랑 · 기다리는 중=주황 · 완료=초록). 그래서 진행 중은 **파랑**이다. */
.data-steps li.done { color: var(--text-faint); }
.data-steps li.done .ds-dot { background: var(--border-strong); }
.data-steps li.todo { opacity: .55; }
.data-steps li.now { color: var(--text); font-weight: 700; }
.data-steps li.now .ds-dot { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }

/* 진행 중인 단계의 점 — **은은하게 맥동**한다(사용자 요청). "멈춰 있는 화면"과 구별되는 유일한 신호다.
   ⚠️ 기존 채점 중 표시(.dotpulse)와 달리 **크기는 그대로 두고 후광만** 번지게 한다 —
      단계 목록은 여러 줄로 배치되므로 점이 커졌다 작아지면 줄 높이가 흔들린다. */
@keyframes dsGlow {
  0%, 100% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 8%, transparent); }
}
.data-steps li.now .ds-dot { animation: dsGlow 1.6s ease-in-out infinite; }
/* 움직임을 줄여 달라고 설정한 사용자에게는 정지 상태로 보여 준다(접근성). */
@media (prefers-reduced-motion: reduce) {
  .data-steps li.now .ds-dot { animation: none; }
}
/* 배너 안에서는 단계 목록을 조금 조이게(위에 문장이 이미 있다). */
.data-banner .data-steps { margin-top: 8px; }

/* 낡은 행의 배지 — **재채점 중**(지금 돌고 있다)은 진행 중 색(파랑), **갱신 대기**는 기다림 색(주황).
   ⚠️ 색의 뜻은 프로젝트 전체와 같다: 파랑=진행 중 · 주황=기다리는 중 · 초록=완료(DECISIONS 175·176). */
.stale-badge.sb-now { color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 34%, transparent); }

/* ── 답변 채택(세션25) — 초록은 이 프로젝트에서 "완료"의 색이다(해결됨 = 완료). ── */
.solved-badge {
  display: inline-block; flex: none; font-size: 11px; font-weight: 700; color: var(--v-ac);
  background: var(--v-ac-bg); border-radius: 5px; padding: 1px 6px; margin-right: 7px; vertical-align: middle; white-space: nowrap;
}
.c-th-line .solved-badge { margin-right: 0; }
.thread-title .solved-badge { font-size: 12px; padding: 2px 8px; }
.accepted-tag { font-size: 11.5px; font-weight: 700; color: var(--v-ac); background: var(--v-ac-bg); border-radius: 5px; padding: 1px 7px; }
.post.is-accepted { background: var(--v-ac-bg); border-radius: var(--r-sm); padding-left: 14px; padding-right: 14px; }
.post-accept { display: inline-flex; margin-left: auto; }
.post-accept + .tm-actions { margin-left: 10px; }
.accept-btn:hover { color: var(--v-ac); }
/* 커뮤니티 목록의 문제 칸(세션25) — 번호만. 제목 칸의 문제 칩을 대신한다. */
.community-list col.cw-prob { width: 64px; }
.c-th-prob a { font-weight: 600; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.c-th-prob a:hover { color: var(--accent); }
.c-th-prob .zero { color: var(--text-faint); }
.c-th-line .solved-badge { margin: 0 0 0 2px; }
#post-accepted:empty { display: none; }
#post-accepted .post { margin-bottom: 10px; }

/* ── 단계 안내(세션25) — 엔진·내용은 app.js 의 Tour · TOURS. 주변을 어둡게 하고 대상만 뚫어 보인다. ── */
.tour { position: fixed; inset: 0; z-index: 1200; }
.tour-shade { position: absolute; inset: 0; background: rgba(8, 12, 20, .55); }
.tour-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(8, 12, 20, .55), 0 0 0 2px var(--accent);
  pointer-events: none; transition: top .18s ease, left .18s ease, width .18s ease, height .18s ease; }
.tour-card { position: fixed; width: min(360px, calc(100vw - 32px)); background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px 14px; box-shadow: 0 12px 36px rgba(0,0,0,.22); }
.tour.is-center .tour-card { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); }
.tour-count { font-size: 12px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.tour-title { margin: 4px 0 6px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.tour-body { font-size: 14px; line-height: 1.65; color: var(--text-dim); }
.tour-body b { color: var(--text); }
.tour-body a { color: var(--accent); font-weight: 600; }
.tour-body code { font-size: 12.5px; }
.tour-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.tour-gap { flex: 1; }
@media (prefers-reduced-motion: reduce) { .tour-hole { transition: none; } }
.df-tour-again { margin-left: 4px; color: var(--accent); }
.tour-foot .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.tour-foot .btn-primary:hover:not(:disabled) { background: var(--accent-hover); color: #fff; }

/* 레이팅 카드(세션25) — 종류 전환(연습 · 대회🔒) + 값 + 상위 %. 종류 목록은 app.js RATING_KINDS. */
.pf-kpis-solver { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.pf-rkinds { display: flex; gap: 4px; margin-bottom: 8px; }
.pf-rkind { border: 0; background: transparent; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-faint);
  padding: 3px 9px; border-radius: 999px; cursor: pointer; }
.pf-rkind.active { background: var(--surface-2); color: var(--text); cursor: default; }
.pf-rkind:disabled { cursor: not-allowed; opacity: .7; }
.pf-toppct { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0; }
@media (max-width: 640px) { .pf-kpis-solver { grid-template-columns: 1fr 1fr; } }
/* 잠금 표시 — 아이콘은 app.js lockIcon() 하나(이모지 금지). 라운드 제안의 자물쇠와 같은 모양·색. */
.pf-rkind:disabled { display: inline-flex; align-items: center; gap: 5px; color: var(--text-faint); opacity: 1; }
.df-locked .lock-ic, .sd-hint .lock-ic { vertical-align: -2px; }
/* 프로필 능력 축의 솔직한 안내(세션25) — 흐린 노란 표지판. 색은 기존 --v-tle(주황·노랑) 토큰, 아이콘은 warnIcon(). */
.pf-caveat { display: flex; align-items: flex-start; gap: 8px; margin: -2px 0 14px; padding: 8px 12px; border-radius: var(--r-sm);
  background: var(--v-tle-bg); color: var(--text-dim); font-size: 12.5px; line-height: 1.55; }
.pf-caveat .warn-ic { flex: none; margin-top: 2px; color: var(--v-tle); }

/* ── 문제 평가(세션27) — 최대 레이팅 · 원샷 기여 · 의견 탭 ── */
.tbl.problems td.p-rating, .tbl.problems th.p-rating { text-align: center; white-space: nowrap; }
.mr-val { font-variant-numeric: tabular-nums; }
.mr-default { opacity: .55; cursor: help; }       /* 난이도 미정 — 기본값으로 계산 중 */
.mr-none { color: var(--text-faint); cursor: help; }
/* 낡은 원샷 기여 표시(세션29) — 배지 옆 노란 느낌표. 아이콘은 warnIcon() 을 그대로 쓴다(이모지 금지 규약). */
.oneshot-stale { display: inline-flex; align-items: center; margin-left: 4px; vertical-align: middle; cursor: help; }
.oneshot-stale .warn-ic { color: var(--v-tle); width: 14px; height: 14px; }
.oneshot-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap; vertical-align: middle; cursor: help;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.op-summary { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 10px; }
.op-kpi { flex: 1 1 180px; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.op-k { font-size: 12.5px; color: var(--text-dim); font-weight: 600; }
.op-kpi b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.op-sub { font-size: 12px; color: var(--text-faint); }
.op-mine { padding: 16px 18px; margin: 6px 0 16px; }
.op-mine-h { font-weight: 700; margin-bottom: 10px; }
.op-levels { display: inline-flex; gap: 6px; }
.op-levels button { width: 40px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface);
  font: inherit; font-weight: 700; color: var(--text-dim); cursor: pointer; }
.op-levels button:hover { color: var(--text); border-color: var(--border-strong); }
.op-levels button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.op-comment { width: 100%; margin-top: 10px; resize: vertical; }
.op-block { margin: 6px 0 16px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface-2);
  color: var(--text-dim); font-size: 13.5px; }
.op-list { list-style: none; margin: 0; padding: 0; }
.op-list li { padding: 12px 2px; border-top: 1px solid var(--border); }
.op-list li:first-child { border-top: none; }
.op-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.op-lv { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.op-when { margin-left: auto; color: var(--text-faint); font-size: 12px; }
.op-text { margin-top: 4px; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.oneshot-ctl { display: inline-flex; align-items: center; gap: 8px; }
.oneshot-ctl .select-sm { padding-top: 5px; padding-bottom: 5px; font-size: 13px; }
.oneshot-ctl .select-sm:disabled { opacity: .55; }
.oneshot-ctl.is-off { opacity: .5; cursor: help; }
.oneshot-ctl.is-off input { cursor: help; }

/* ── 뱃지 · 업적(세션27) — 이름·아이콘은 app.js HONORS, 판정은 api/src/honors.ts ──
   ⚠️ 색 배지 금지(사용자 — "유치해 보인다"): 선 아이콘 + 글자, 강조색은 딴 것에만 옅게. */
.hn-ic { display: block; }
.hn-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 2px 14px 72px; }   /* 아바타(56) + 간격(14) 만큼 들여 핸들 아래에 맞춘다 */
.hn-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border-radius: 999px; cursor: help;
  background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; font-weight: 650; color: var(--text); }
.hn-badge-ic { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  color: var(--accent); background: var(--accent-soft); }
.hn-badge-ic .hn-ic { width: 14px; height: 14px; }
.hn-count { margin-left: -2px; font-size: 11.5px; font-weight: 700; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.hn-count::before { content: '×'; margin-right: 1px; }
.hn-achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.hn-ach { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); }
.hn-ach-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  color: var(--text-faint); background: var(--surface-2); }
.hn-ach-ic .hn-ic { width: 18px; height: 18px; }
.hn-ach.is-on .hn-ach-ic { color: var(--accent); background: var(--accent-soft); }
.hn-ach-main { flex: 1; min-width: 0; }
.hn-ach-top { display: flex; align-items: center; gap: 8px; }
.hn-ach-top b { font-size: 13.5px; font-weight: 700; color: var(--text); }
.hn-ach:not(.is-on) .hn-ach-top b { color: var(--text-dim); }
.hn-pips { display: inline-flex; gap: 3px; }
.hn-pips i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
.hn-pips i.on { background: var(--accent); }
.hn-ach-desc { margin-top: 2px; font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-bar { margin-top: 6px; height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.hn-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); opacity: .55; }
.hn-ach.is-max .hn-bar i { opacity: 1; }
.hn-ach-val { flex: none; font-size: 15px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.hn-ach-val span { font-size: 12px; font-weight: 600; color: var(--text-faint); }
@media (max-width: 600px) { .hn-badges { margin-left: 2px; } }
/* 뱃지 · 업적 모아 보기(#/honors) — 못 딴 것은 흐리게(사용자 지시). 카드 모양은 프로필 업적과 같다(honorAchCard). */
.hn-lead { margin: 4px 2px 16px; color: var(--text-dim); font-size: 14px; }
.pf-body-col { display: flex; flex-direction: column; gap: 14px; }
.hn-ach-about { margin-top: 3px; font-size: 12px; line-height: 1.5; color: var(--text-faint); }
.hn-bdg { align-items: flex-start; }
.pf-body-col.is-mine .hn-ach:not(.is-on) { opacity: .5; }
/* 단계 넘겨 보기 · 취득률(모아 보기 — 세션28) */
.hn-next { flex: none; align-self: stretch; margin: -12px -14px -12px 0; width: 34px; padding: 0; border: 0; border-left: 1px solid var(--border);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; background: transparent; color: var(--text-dim); font-size: 18px; line-height: 1; cursor: pointer; }
.hn-next:hover { background: var(--surface-2); color: var(--text); }
.hn-ach.is-browse { cursor: help; }
.hn-ach.is-browse .hn-ach-side { margin-right: 2px; }
/* 툴팁 — app.js Tip */
.tipbox { position: fixed; z-index: 1000; left: 0; top: 0; max-width: 300px; padding: 8px 11px; border-radius: 8px;
  background: var(--text); color: var(--surface); font-size: 12.5px; line-height: 1.55; white-space: pre-line; pointer-events: none;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .12s; }
.tipbox.on { opacity: 1; visibility: visible; }
.hn-ach-top b { white-space: nowrap; }
.hn-ach-side { flex: none; align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 3px; }
.hn-rate { font-size: 11.5px; font-weight: 600; color: var(--text-faint); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: help; }
.op-list li.is-hidden .op-text { opacity: .5; }
.op-meta .link-btn { margin-left: 8px; font-size: 12px; }
.hn-bdg .hn-rate { margin-left: auto; }

/* 운영자 콘솔 · 백업 탭(세션30) */
.bk-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 20px; }
.bk-status > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bk-status span { font-size: 12px; color: var(--text-faint); }
.bk-status b { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.bk-status em, .bk-row em { font-style: normal; font-weight: 400; font-size: 12px; }
.bk-status svg { vertical-align: -2px; color: var(--v-ole); }
.bk-set { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.bk-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.bk-row > span { width: 72px; color: var(--text-dim); font-weight: 600; }
.bk-num { width: 80px; }

