/* 색·서체·모서리는 크몽 AX 운영 사이트 실측값(artifacts/comparing-260917/site-design). 구조도 색은 _구조도_표준.md */
:root {
  color-scheme: light;
  --ink: #1d1d1f; --ink-2: #3f414d; --sub: #666977; --muted: #b9bbc6;
  --surface: #fff; --surface-2: #fafafc; --surface-3: #f5f5f7; --surface-4: #f2f3f7;
  --line: #e4e5ed; --line-2: #d5d7e0;
  --accent: #a5ff1f; --accent-hover: #b8ff4d; --accent-soft: #f0ffdb; --accent-line: #7cc000; --accent-text: #3f6200;
  --focus: #116ad4; --dark: #0c1220;
  --ai: #c2410c; --ai-bg: #fff4ec; --ai-ink: #9a3412;
  --rule: #1d4ed8; --rule-bg: #eef3ff; --rule-ink: #1e3a8a;
  --approve: #b91c1c; --approve-bg: #fff1f1; --approve-ink: #991b1b;
  --warn-bg: #fff7e6; --warn-line: #f0b44c; --warn-ink: #7a4a00;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 10px 30px -22px rgb(12 18 32 / .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("/fonts/Pretendard-Regular.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-display: swap; src: url("/fonts/Pretendard-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-display: swap; src: url("/fonts/Pretendard-Bold.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 800; font-display: swap; src: url("/fonts/Pretendard-ExtraBold.woff2") format("woff2"); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface-2); color: var(--ink); font: 15px/1.6 "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:is(button, a, input, select, label.opt, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; letter-spacing: -.01em; }
.brand small { font-weight: 500; color: var(--sub); margin-left: 6px; }
.wrap { max-width: 880px; margin: 0 auto; padding: 28px 16px 72px; }
.wrap.wide { max-width: 1180px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 600; text-decoration: none; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #33343a; }
.btn.lime { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.lime:hover { background: var(--accent-hover); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.danger { color: var(--approve-ink); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 16px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--accent-text); }
.title { font-size: 28px; line-height: 1.3; letter-spacing: -.02em; margin: 6px 0 10px; }
.lead { color: var(--ink-2); }
.muted { color: var(--sub); font-size: 14px; }
.sec-title { font-size: 19px; letter-spacing: -.01em; margin-bottom: 4px; }
.sec-sub { color: var(--sub); font-size: 14px; margin-bottom: 16px; }

/* 설문 */
.progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 0 0 8px; }
.progress span { height: 6px; border-radius: 3px; background: var(--line); }
.progress span.on { background: var(--ink); }
.progress-text { font-size: 13px; color: var(--sub); margin-bottom: 20px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 600; margin-bottom: 6px; }
.field input[type=text], .field select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); }
.q { padding: 20px 0; border-top: 1px solid var(--line); }
.q:first-of-type { border-top: 0; padding-top: 4px; }
.q-head { display: flex; gap: 10px; margin-bottom: 12px; }
.q-no { flex: none; min-width: 28px; font-weight: 700; color: var(--sub); font-size: 14px; padding-top: 1px; }
.q-text { font-weight: 600; }
.q-hint { display: block; font-weight: 400; font-size: 13px; color: var(--sub); margin-top: 2px; }
.opts { display: grid; gap: 8px; padding-left: 38px; }
.opts.likert { grid-template-columns: repeat(5, 1fr); }
label.opt { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.opts.likert label.opt { justify-content: center; text-align: center; font-size: 14px; padding: 8px 6px; }
label.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.opt:hover { border-color: var(--ink-2); }
label.opt:has(input:checked) { border-color: var(--ink); background: var(--accent-soft); font-weight: 600; box-shadow: inset 0 0 0 1px var(--ink); }
label.opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.opts:not(.likert) label.opt::before { content: ""; flex: none; width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 50%; background: var(--surface); }
.opts.multi label.opt::before { border-radius: 4px; }
.opts:not(.likert) label.opt:has(input:checked)::before { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 0 4px, transparent 5px); }
.opts.multi label.opt:has(input:checked)::before { background: var(--ink); box-shadow: inset 0 0 0 3px var(--accent-soft); }
.q.missing .q-text { color: var(--approve-ink); }
.q.missing .q-text::after { content: " · 답해 주세요"; font-weight: 600; font-size: 13px; }
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 8px 0 4px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.consent-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 10px 0; background: var(--surface-2); }
.consent-box .consent { margin: 0; }
.consent-detail { margin: 8px 0 0 30px; padding: 0; list-style: none; font-size: 13px; color: var(--sub); }
.consent-detail li + li { margin-top: 2px; }
.consent-detail a { color: var(--ink); text-underline-offset: 3px; }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--approve-bg); color: var(--approve-ink); font-size: 14px; margin-top: 12px; }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; }
.notice + .notice { margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }
.facts div { background: var(--surface-3); border-radius: var(--radius-sm); padding: 12px; }
.facts b { display: block; font-size: 15px; }
.facts span { font-size: 13px; color: var(--sub); }
.state { text-align: center; padding: 48px 16px; color: var(--sub); }
.state b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.spinner { width: 28px; height: 28px; margin: 0 auto 12px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 리포트 */
.score-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 16px; align-items: stretch; }
.score-box { background: var(--surface-3); border-radius: var(--radius-sm); padding: 16px; }
.score-box .k { font-size: 13px; color: var(--sub); font-weight: 600; }
.score-box .v { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.score-box .v small { font-size: 16px; font-weight: 600; color: var(--sub); margin-left: 2px; }
.score-box .d { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 40px; gap: 10px; align-items: center; padding: 6px 0; }
.bar-label { font-size: 14px; font-weight: 600; }
.bar-track { height: 10px; background: var(--surface-3); border-radius: 5px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--ink-2); border-radius: 5px; }
.bar-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-note { grid-column: 2 / -1; font-size: 13px; color: var(--sub); margin-top: -4px; }
.actions { margin: 0; padding: 0; list-style: none; counter-reset: a; }
.actions li { counter-increment: a; position: relative; padding: 10px 0 10px 40px; border-top: 1px solid var(--line); }
.actions li:first-child { border-top: 0; }
.actions li::before { content: counter(a); position: absolute; left: 0; top: 9px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 800; font-size: 14px; display: grid; place-items: center; }

.summary { margin: 0; padding: 0; list-style: none; }
.summary li { padding: 8px 0; border-top: 1px solid var(--line); }
.summary li:first-child { border-top: 0; }

/* AS-IS → TO-BE 구조도 */
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 0 0 12px; font-size: 13px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend .tok { width: 22px; height: 22px; }
.legend .tok .ic { width: 12px; height: 12px; }
.flow { margin: 0; padding: 20px 0; border-top: 1px solid var(--line); }
.flow:first-of-type { border-top: 0; }
.flow figcaption { font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.flow-role { color: var(--accent-text); }
/* AS-IS → 바뀌는 점 → TO-BE 세 칸 그림 */
.fx { display: grid; grid-template-columns: 1fr 28px minmax(224px, .8fr) 28px 1fr; align-items: stretch; }
.fx-col, .fx-gap { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0 0 12px; overflow: hidden; background: var(--surface); }
.fx-h { font-size: 13px; font-weight: 800; padding: 9px 14px; margin-bottom: 10px; color: #fff; background: var(--ink-2); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fx-col.asis { border-color: var(--line-2); }
.fx-col.tobe { border-color: var(--ink); }
.fx-col.tobe .fx-h { background: var(--ink); }
.fx-gap { border-color: var(--accent-line); background: var(--accent-soft); text-align: center; }
.fx-gap .fx-h { background: var(--accent); color: var(--ink); }
.fx-lead { display: flex; align-items: center; gap: 8px; padding: 0 14px 8px; font-size: 13px; color: var(--ink-2); }
.fx-lead .ic { width: 22px; height: 22px; color: var(--sub); flex: none; }
.fx-steps { list-style: none; margin: 0; padding: 0 10px; display: grid; gap: 6px; }
.fx-steps li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; line-height: 1.35; padding: 6px 8px; border-radius: var(--radius-sm); background: var(--surface-3); color: var(--ink-2); }
.fx-ic { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--surface); color: var(--sub); }
.fx-ic .ic { width: 16px; height: 16px; }
.fx-steps li.rule { background: var(--rule-bg); color: var(--rule-ink); }
.fx-steps li.rule .fx-ic { background: var(--rule); color: #fff; }
.fx-steps li.ai { background: var(--ai-bg); color: var(--ai-ink); }
.fx-steps li.ai .fx-ic { background: var(--ai); color: #fff; }
.fx-steps li.approve { background: var(--approve-bg); color: var(--approve-ink); font-weight: 700; }
.fx-steps li.approve .fx-ic { background: var(--approve); color: #fff; }
.fx-arrow { align-self: center; justify-self: center; width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 11px solid var(--ink-2); }
.fx-rl { font-size: 12px; font-weight: 700; color: var(--sub); margin: 4px 0 6px; }
.fx-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; padding: 0 10px; }
.tok { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tok .ic { width: 15px; height: 15px; }
.tok.manual { background: var(--surface); color: var(--sub); border: 1.5px solid var(--muted); }
.tok.rule { background: var(--rule); }
.tok.ai { background: var(--ai); }
.tok.approve { background: var(--approve); }
.fx-down { display: block; width: 0; height: 0; margin: 10px auto 2px; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 9px solid var(--ink-2); }
.fx-sum { margin: 14px 10px 0; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface); font-size: 13px; color: var(--ink-2); }
.fx-sum b { color: var(--ink); font-weight: 800; white-space: nowrap; }
.fx-t { flex: 1; }
.fx-tag { flex: none; font-style: normal; font-size: 11.5px; font-weight: 700; opacity: .85; }
.fx-out { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-3); font-size: 14px; }
.fx-out .ic { width: 20px; height: 20px; color: var(--approve); flex: none; }
.fx-out span { color: var(--sub); }
.fx-out span b { margin-left: 10px; color: var(--ink); }

/* 관리자 */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar select { min-height: 44px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); max-width: 100%; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0 16px; }
.tabs button { min-height: 44px; padding: 0 16px; border: 0; background: none; border-bottom: 2px solid transparent; cursor: pointer; font-weight: 600; color: var(--sub); }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.kpi .k { font-size: 13px; color: var(--sub); font-weight: 600; }
.kpi .v { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12px; color: var(--sub); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.two > .card { margin: 0; }
/* 두 칸 묶음 바로 뒤 카드도 카드끼리와 같은 간격 */
.two + .card, .two + .two { margin-top: 16px; }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { font-size: 12px; color: var(--sub); font-weight: 700; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.heat { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
td.masked { color: var(--sub); text-align: center; font-size: 12px; }
.dist-row { display: grid; grid-template-columns: 150px 1fr 96px; gap: 10px; align-items: center; padding: 5px 0; font-size: 14px; }
.dist-row .bar-track { height: 12px; }
.dist-row .bar-fill { background: var(--ink-2); }
.dist-row.hl .bar-fill { background: var(--accent-line); }
.dist-row .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.linkbox { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--surface-3); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; margin-top: 12px; }
.linkbox code { word-break: break-all; }
dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(24 24 27 / .45); }
.dlg-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dlg-body { padding: 16px; }
.hidden { display: none !important; }

@media (max-width: 760px) {
  .title { font-size: 24px; }
  .card { padding: 18px; }
  .opts { padding-left: 0; }
  .opts.likert { grid-template-columns: 1fr; }
  .opts.likert label.opt { justify-content: flex-start; }
  .score-grid { grid-template-columns: 1fr 1fr; }
  .score-grid .ladder-box { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr; }
  .fx { grid-template-columns: 1fr; gap: 0; }
  .fx-arrow { transform: rotate(90deg); margin: 6px 0; }
  .dist-row { grid-template-columns: 104px 1fr 84px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
/* 인쇄 규칙은 파일 맨 끝 "보고서 인쇄" 절에 모았다(모바일 배치보다 뒤에 와야 이긴다) */

/* ---------- 몰입형 설문: 한 화면 한 문항 ----------
   Mews Progress Indicator(완료 체크 · 현재 번호 · 남은 점) + Selection Card Group(표시 점 + 제목 카드) 패턴을 크몽 색으로 */
body.focus-mode { background: var(--surface); }
body.focus-mode .top { border-bottom: 0; }
.focus { min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); display: flex; flex-direction: column; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); padding: 0; margin: 0 auto; max-width: 760px; width: 100%; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--sub); text-align: center; }
.steps li::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.now::before { background: var(--ink); }
.steps .dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-2); font-size: 12px; font-weight: 800; color: transparent; }
.steps li.done .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps li.done .dot::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.steps li.now .dot { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.steps li.now { color: var(--ink); font-weight: 700; }
.count-bar { max-width: 760px; width: 100%; margin: 18px auto 0; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.count-bar .track { flex: 1; height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.count-bar .fill { display: block; height: 100%; background: var(--accent); box-shadow: inset 0 0 0 1px rgb(29 29 31 / .08); border-radius: 2px; transition: width .3s var(--ease); }
.stage { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 760px; width: 100%; margin: 0 auto; padding: 40px 0 24px; }
.stage.enter { animation: qin .28s var(--ease); }
@keyframes qin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.q-eyebrow { font-size: 13px; font-weight: 700; color: var(--accent-text); margin-bottom: 10px; }
.q-title { font-size: 26px; line-height: 1.4; letter-spacing: -.02em; font-weight: 700; outline: none; }
.q-help { color: var(--sub); font-size: 14px; margin-top: 8px; }
.choices { display: grid; gap: 10px; margin-top: 28px; }
.choice { position: relative; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--line-2); background: var(--surface-2); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .ind { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); display: grid; place-items: center; }
.choices.multi .choice .ind { border-radius: 6px; }
.choice .txt { flex: 1; font-size: 16px; line-height: 1.45; }
.choice .key { flex: none; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--sub); font-size: 12px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--ink); }
.choice:has(input:checked) .ind { border-color: var(--ink); background: var(--ink); }
.choice:has(input:checked) .ind::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.choices.multi .choice:has(input:checked) .ind::after { width: 9px; height: 5px; border-radius: 0; background: none; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-1px) rotate(-45deg); }
.choice:has(input:checked) .key { border-color: var(--ink); color: var(--ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.focus-foot { position: sticky; bottom: 0; background: linear-gradient(to top, var(--surface) 70%, rgb(255 255 255 / 0)); padding: 16px 0 20px; }
.focus-foot .inner { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.focus-foot .kbd-hint { flex: 1; text-align: center; font-size: 12px; color: var(--sub); }
.focus-foot kbd { font: inherit; font-weight: 700; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--ink-2); }
.focus-foot .btn { min-width: 112px; }
.review { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.review li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.review li span { color: var(--sub); font-size: 14px; font-variant-numeric: tabular-nums; }
.year-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.year-cards .choice { min-height: 52px; }
@media (max-width: 760px) {
  .steps li .lbl { display: none; }
  .steps li.now .lbl { display: block; position: absolute; top: 30px; white-space: nowrap; }
  .steps { margin-bottom: 18px; }
  .q-title { font-size: 21px; }
  .stage { padding: 24px 0 16px; justify-content: flex-start; }
  .focus-foot .kbd-hint { display: none; }
  .choice .key { display: none; }
  .focus-foot .inner { justify-content: space-between; }
  .year-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .stage.enter { animation: none; } .count-bar .fill, .choice { transition: none; } }

/* ---------- 결과 화면 ---------- 짙은 남색 히어로는 크몽 운영 사이트 하단 상담 영역(#0C1220)에서 */
.hero { background: var(--dark); color: #fff; border-radius: 16px; padding: 32px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hero-top { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.hero-meta { font-size: 13px; color: #a3aab9; }
.hero-name { font-size: 30px; letter-spacing: -.02em; line-height: 1.3; margin-top: 6px; }
.hero-sum { margin-top: 10px; color: #c9ceda; max-width: 520px; }
.hs-k { font-size: 13px; color: #a3aab9; font-weight: 600; }
.hero-score { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ring { width: 150px; height: 150px; }
.ring-track { fill: none; stroke: #222a3b; stroke-width: 12; }
.ring-val { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; }
.ring-num { fill: #fff; font-size: 44px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring-max { fill: #a3aab9; font-size: 13px; font-weight: 600; }
.hero-stage { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 14px 6px 8px; border-radius: 999px; background: #1a2233; color: #c9ceda; font-size: 14px; }
.hero-stage b { color: var(--accent); font-size: 16px; }
.hs-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; }
.hs-ic .ic { width: 16px; height: 16px; }
.hn-mark { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; display: grid; place-items: center; }
li.ok .hn-mark { background: var(--ink); border-color: var(--ink); }
li.ok .hn-mark::after { content: ""; width: 7px; height: 4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-1px) rotate(-45deg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero + .card { margin-top: 16px; }
.sec-head { margin-bottom: 18px; }
.dim-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
.dim-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.dim-name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dim-v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dim .bar-track { display: block; height: 8px; }
.dim .bar-fill { background: var(--ink-2); }
.dim .bar-fill.hi { background: var(--ink); }
.dim-note { font-size: 13px; color: var(--sub); margin-top: 6px; }
.tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; }
.tag.strong { background: var(--accent-soft); color: var(--accent-text); border: 1px solid #cdeea0; }
.tag.weak { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid #f3d29b; }
.side-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.side-stats > div { background: var(--surface-3); border-radius: var(--radius-sm); padding: 14px 16px; }
.side-stats .k { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.side-stats .v { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.side-stats .d { font-size: 12px; color: var(--sub); white-space: pre-line; }
.muted.small { font-size: 13px; margin-top: 10px; }
/* 지금 해 볼 일: 한 줄 가로 상자 */
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo li { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; background: var(--surface); }
.todo-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: var(--ink); background: var(--accent); font-variant-numeric: tabular-nums; }
.todo p { font-size: 15px; line-height: 1.5; }
.dim-note, .side-stats .d, .sp-d, .todo p, .sec-sub, .hero-sum { text-wrap: pretty; }
@media (max-width: 760px) {
  .hero { padding: 22px 18px; border-radius: 12px; }
  .hero-top { grid-template-columns: 1fr; gap: 16px; }
  .hero-score { align-items: flex-start; }
  .ring { width: 124px; height: 124px; }
  .hero-name { font-size: 24px; }
  .dim-list { grid-template-columns: 1fr; }
  .side-stats { grid-template-columns: 1fr; }
  .todo li { align-items: flex-start; padding: 12px 14px; }
}

/* 체험판 상단 띠 */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-4); font-size: 13px; color: var(--ink-2); }
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; }


.part-title { font-size: 15px; font-weight: 800; color: var(--sub); margin: 32px 0 12px; padding-top: 16px; border-top: 2px solid var(--ink); }

/* ---------- 그래프 (charts.js) ---------- 단색: 잉크 선 + 라임 면. 여러 계열을 겹치지 않아 범례 없이 제목이 계열을 말한다 */
.ic { display: block; }
.dim-wrap { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 24px 36px; align-items: center; }
.dim-wrap .dim-list { grid-template-columns: 1fr; gap: 14px; }
.radar { width: 100%; height: auto; display: block; overflow: visible; }
.rd-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.rd-grid.out { stroke: var(--line-2); }
.rd-axis { stroke: var(--line); stroke-width: 1; }
.rd-tick { fill: var(--muted); font-size: 10px; }
.rd-area { fill: var(--accent); fill-opacity: .5; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.rd-ref { fill: none; stroke: var(--sub); stroke-width: 1.5; stroke-dasharray: 4 4; }
.rd-dot { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.rd-label { fill: var(--ink-2); font-size: 13px; font-weight: 600; }
.rd-val { fill: var(--ink); font-size: 16px; font-weight: 800; }
.chart-box { margin: 4px 0 8px; }
.chart-box.sm { max-width: 360px; margin: 0 auto; }
.dcurve { width: 100%; height: auto; display: block; }
.dc-zone.z0, .dc-zone.z2 { fill: var(--surface-2); }
.dc-zone.z1, .dc-zone.z3 { fill: var(--surface-3); }
.dc-zl { fill: var(--sub); font-size: 12px; font-weight: 700; }
.dc-base { stroke: var(--line-2); }
.dc-area { fill: var(--accent); fill-opacity: .45; }
.dc-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.dc-rug { stroke: var(--ink-2); stroke-width: 1.5; }
.dc-mean { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; }
.dc-pin { fill: var(--ink); }
.dc-pin-t { fill: #fff; font-size: 12px; font-weight: 700; }
.dc-me { stroke: var(--accent-line); stroke-width: 2.5; }
.dc-pin.me { fill: var(--accent); }
.dc-pin-t.me { fill: var(--ink); }
/* 비슷한 사람과 비교 */
.cmp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin: 4px 0 14px; }
.cmp-top { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.cmp-top em { font-style: normal; background: var(--accent); padding: 0 6px; border-radius: 4px; }
.cmp-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; }
.cmp-legend { display: flex; gap: 14px; justify-content: center; font-size: 12.5px; color: var(--sub); list-style: none; padding: 0; margin: 0; }
.cmp-legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--ink); vertical-align: middle; margin-right: 6px; }
.cmp-legend i.ref { border-top: 2px dashed var(--sub); }
.cmp-diff { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cmp-diff li { background: var(--surface-3); border-radius: var(--radius-sm); padding: 10px; text-align: center; font-size: 12.5px; color: var(--sub); }
.cmp-diff b { display: block; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cmp-diff-h { margin: 14px 0 0; font-size: 13px; color: var(--sub); }
/* PDF 저장: 리포트의 유일한 라임 버튼. 작게, 종합 점수 아래 "종합 점수" 글자 줄(바닥선)에 맞춘다 (26.10.15 줄임) */
.hero-side { display: flex; align-items: flex-end; gap: 20px; }
.hero-cta { gap: 6px; font-weight: 700; white-space: nowrap; }
.hero-cta .ic { width: 16px; height: 16px; }
.hero-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 760px) {
  .hero-side { flex-direction: row-reverse; justify-content: space-between; }
  .btn.hero-cta { min-height: 44px; }
}

/* 위 기본값보다 뒤에 있어야 모바일에서 덮어쓴다 */
@media (max-width: 760px) {
  .cmp-wrap { grid-template-columns: 1fr; gap: 8px; }
  .cmp-top { font-size: 22px; }
  .cmp-diff { grid-template-columns: 1fr; gap: 0; background: var(--surface-3); border-radius: var(--radius-sm); padding: 4px 12px; }
  .cmp-diff li { display: flex; justify-content: space-between; align-items: center; background: none; padding: 9px 0; text-align: left; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
  .cmp-diff li:last-child { border-bottom: 0; }
  .cmp-diff b { display: inline; }
}
.dc-tick { fill: var(--sub); font-size: 11px; font-variant-numeric: tabular-nums; }
/* 단계 띠: 단계가 높을수록 진한 한 가지 색 */
.sstack { display: flex; gap: 2px; height: 34px; border-radius: 6px; overflow: hidden; }
.sstack.thin { height: 20px; border-radius: 4px; flex: 1; }
.ss { display: flex; align-items: center; justify-content: center; min-width: 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ss.s1 { background: var(--line); color: var(--ink); }
.ss.s2 { background: var(--muted); color: var(--ink); }
.ss.s3 { background: var(--sub); color: #fff; }
.ss.s4 { background: var(--ink); color: var(--accent); }
.ss-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.ss-legend li { display: flex; align-items: center; gap: 6px; }
.ss-legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.gstages { display: grid; gap: 8px; margin-top: 14px; }
.gs-row { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; font-size: 14px; }
.gs-row .masked { font-size: 12px; color: var(--sub); }
.gs-n { text-align: right; color: var(--sub); font-size: 13px; font-variant-numeric: tabular-nums; }
.gs-gap { height: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.side-bars { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.side-bars .bar-row { grid-template-columns: 100px 1fr 40px; }
.fuse { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fuse li { display: grid; grid-template-columns: 28px 118px 1fr 42px 44px; gap: 10px; align-items: center; font-size: 14px; }
.fu-ic { width: 28px; height: 28px; border-radius: 8px; background: var(--surface-3); display: grid; place-items: center; color: var(--ink-2); }
.fu-ic .ic { width: 16px; height: 16px; }
.fu-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.sub-title { font-size: 15px; font-weight: 800; margin: 28px 0 12px; }

/* 내 위치: 4단계 그림 길 */
.spath { list-style: none; margin: 8px 0 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.spath li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; color: var(--sub); }
.spath li::before { content: ""; position: absolute; top: 31px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.spath li:first-child::before { display: none; }
.spath li.done::before, .spath li.now::before { background: var(--ink); }
.sp-ic { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px dashed var(--line-2); color: var(--muted); }
.sp-ic .ic { width: 28px; height: 28px; }
.spath li.done .sp-ic { border: 2px solid var(--ink); color: var(--ink); background: var(--accent-soft); }
.spath li.now .sp-ic { border: 0; background: var(--ink); color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.spath b { font-size: 15px; color: var(--ink-2); }
.spath li.now b { color: var(--ink); font-size: 16px; }
.sp-d { font-size: 12.5px; line-height: 1.4; max-width: 170px; }
.sp-me { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); z-index: 2; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.sp-me::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border-top: 6px solid var(--accent); border-left: 5px solid transparent; border-right: 5px solid transparent; }
.snext { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-3); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.snext p { font-size: 14px; }
.snext ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.snext li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.snext li em { font-style: normal; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
/* 써 본 기능 그림 칸 */
.ftiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.ftiles li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 6px 12px; border-radius: var(--radius); border: 1.5px solid var(--line); }
.ftiles li.on { border-color: var(--ink); }
.ftiles li.off { border-style: dashed; color: var(--muted); }
.ft-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.ft-ic .ic { width: 22px; height: 22px; }
.ftiles li.on .ft-ic { background: var(--ink); color: var(--accent); }
.ftiles b { font-size: 13px; line-height: 1.3; min-height: 34px; display: flex; align-items: center; }
.ftiles li.off b { color: var(--sub); font-weight: 600; }
.ft-dots { display: inline-flex; gap: 3px; }
.ft-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.ft-dots i.f { background: var(--ink); }
.ft-l { font-size: 12px; color: var(--sub); }
@media (max-width: 960px) { .ftiles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) {
  .dim-wrap { grid-template-columns: 1fr; }
  .spath { grid-template-columns: repeat(4, 1fr); gap: 2px; }
  .sp-ic { width: 48px; height: 48px; }
  .sp-ic .ic { width: 22px; height: 22px; }
  .spath li::before { top: 23px; }
  .sp-d { display: none; }
  .spath b { font-size: 13px; }
  .ftiles { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .ftiles li { padding: 10px 4px; gap: 4px; }
  .ftiles b { font-size: 12px; min-height: 32px; }
  .ft-ic { width: 34px; height: 34px; }
  .fuse li { grid-template-columns: 28px 1fr 42px 40px; }
  .fuse li .bar-track { grid-column: 2 / -1; grid-row: 2; }
  .gs-row { grid-template-columns: 76px 1fr 36px; font-size: 13px; }
}

/* ---------- 조직 진단 신청 · 처리방침 · 바닥글 (26.10.15) ---------- */
.apply-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; }
.apply-cta .sec-sub { margin-bottom: 0; max-width: 520px; }
.apply-cta .btn { flex: none; }
.field input[type=email], .field input[type=tel], .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); font: inherit; color: inherit; }
.field textarea { min-height: 110px; resize: vertical; }
.field .opt-hint { font-weight: 400; color: var(--sub); font-size: 13px; margin-left: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent a, .muted a, .foot a { color: var(--ink); text-underline-offset: 3px; }
.foot { max-width: 880px; margin: 0 auto; padding: 0 16px 40px; font-size: 13px; color: var(--sub); display: flex; flex-wrap: wrap; gap: 6px 14px; }
body.focus-mode .foot { display: none; }
.doc h2 { font-size: 17px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 20px; margin: 6px 0; }
.doc table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.doc th:first-child { width: 30%; }
.doc th, .doc td { white-space: normal; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface-3); }
.tbd { background: var(--warn-bg); color: var(--warn-ink); padding: 0 4px; border-radius: 4px; }
.admin-nav { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-nav button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-weight: 600; }
.admin-nav button[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.admin-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.admin-who { font-size: 13px; color: var(--sub); margin-right: 4px; }
.app-row td { white-space: normal; vertical-align: top; }
.app-row td:nth-child(1), .app-row td:nth-child(4) { white-space: nowrap; }
.app-row td:nth-child(2) { min-width: 120px; }
.app-row td:nth-child(3) { min-width: 180px; overflow-wrap: anywhere; }
.app-row td:nth-child(5) { min-width: 120px; max-width: 260px; }
.app-row td .btn { margin: 2px 4px 2px 0; white-space: nowrap; }
.app-row select { min-height: 36px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); padding: 0 8px; }
.funnel-bar { display: inline-block; height: 10px; border-radius: 0 4px 4px 0; background: var(--ink); vertical-align: middle; margin-right: 8px; }
@media (max-width: 760px) {
  .apply-cta { flex-direction: column; align-items: stretch; }
  .field-row { grid-template-columns: 1fr; }
}

/* 진단 기록 · 다시 진단하기 (26.10.15) */
.history .hist-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.hist-one { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.hist-one .sec-sub { margin-bottom: 0; max-width: 560px; }
.hist-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hist-list li { display: grid; grid-template-columns: 140px 120px 1fr 40px 64px; gap: 12px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); }
.hist-list li.now { background: var(--accent-soft); }
.hist-list a { font-weight: 600; text-underline-offset: 3px; }
.hist-stage { font-size: 13px; color: var(--sub); }
.hist-t { font-weight: 400; font-size: 13px; color: var(--sub); }
.hist-v { text-align: right; font-variant-numeric: tabular-nums; }
.hist-d { font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.intro-apply { margin: 14px 0 0; font-size: 14px; color: var(--sub); }
.intro-apply a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.intro-apply + .card { margin-top: 16px; }
.past-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.past-list a { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; min-height: 44px; }
.past-list a:hover { border-color: var(--ink-2); }
.past-list .muted { margin-left: auto; font-size: 13px; }
@media (max-width: 760px) {
  .history .hist-head, .hist-one { flex-direction: column; align-items: stretch; }
  .hist-list li { grid-template-columns: 1fr auto auto; grid-template-areas: "date v d" "stage stage stage" "bar bar bar"; row-gap: 4px; }
  .hist-list li > a { grid-area: date; } .hist-stage { grid-area: stage; } .hist-list .bar-track { grid-area: bar; } .hist-v { grid-area: v; } .hist-d { grid-area: d; }
}

/* 신청서 버튼 묶음 · 결과 예시 페이지 (26.10.15) */
.nav-r { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sample-head .notice { margin: 4px 0 4px; }
.sample-head .tabs { margin: 16px 0 12px; }
.sample-body { margin-top: 16px; }
@media (max-width: 760px) {
  #af .nav { flex-direction: column-reverse; align-items: stretch; }
  #af .nav-r .btn { flex: 1; }
  .tab-sub { display: none; }
}

/* 조직 리포트 결론 (26.10.15): 히어로와 같은 짙은 남색으로 리포트를 닫고 라임 CTA 하나 */
.conclusion { margin-top: 24px; background: var(--dark); color: #fff; border-radius: 16px; padding: 32px; -webkit-print-color-adjust: exact; print-color-adjust: exact; break-inside: avoid; }
.cc-k { font-size: 13px; font-weight: 700; color: var(--accent); }
.cc-h { font-size: 24px; line-height: 1.35; letter-spacing: -.02em; margin-top: 8px; text-wrap: balance; }
.cc-now { margin-top: 14px; color: #e4e7ee; }
/* 줄 끝에 한 단어만 남지 않게(pretty), 한 줄이 너무 길지 않게 폭을 둔다 */
.cc-now, .cc-why { max-width: 46em; text-wrap: pretty; }
.cc-h { max-width: 30em; }
.cc-why { margin-top: 8px; color: #c9ceda; }
.cc-now b, .cc-why b { color: #fff; }
.cc-steps { list-style: none; counter-reset: cc; margin: 20px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cc-steps li { counter-increment: cc; background: #1a2233; border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.cc-steps li::before { content: counter(cc); width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.cc-steps span { font-size: 13px; color: #a3aab9; }
@media (max-width: 760px) {
  .conclusion { padding: 24px 18px; border-radius: 12px; }
  .cc-h { font-size: 20px; }
  .cc-steps { grid-template-columns: 1fr; }
  .conclusion .btn { width: 100%; }
}

/* 회사(조직) 이름·지역 (26.10.15, 지역 26.10.19) */
.field-l { display: block; font-weight: 600; margin-bottom: 6px; }
.field-hint { font-size: 13px; color: var(--sub); margin-top: 6px; }
.org-region { display: block; margin-top: 12px; }
.org-field input[type=text] { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); }
.org-chip { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-height: 46px; padding: 6px 6px 6px 12px; border: 1px solid var(--ink); border-radius: var(--radius-sm); background: var(--accent-soft); }

/* 개인 상세 리포트 잠금 (26.10.15): 잠긴 내용을 목록으로 먼저 보여 주고 문의로 잇는다 */
.locked { border-style: dashed; }
.lk-head { display: flex; gap: 14px; align-items: flex-start; }
.lk-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--accent); display: grid; place-items: center; }
.lk-ic .ic { width: 20px; height: 20px; }
.lk-list { list-style: none; margin: 4px 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lk-list li { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-3); }
.lk-li-ic { grid-row: span 2; color: var(--sub); }
.lk-li-ic .ic { width: 20px; height: 20px; }
.lk-list span:not(.lk-li-ic) { font-size: 13px; color: var(--sub); }
.lk-cta { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .lk-list { grid-template-columns: 1fr; }
  .lk-cta .btn { flex: 1 1 100%; }
}

/* 크몽 AX 안에 끼워 보일 때 (26.10.15): 크몽 AX 페이지의 한 부분처럼 보이게 한다.
   머리줄·바닥글은 바깥 페이지가 갖고, 폭과 왼쪽 끝은 바깥 본문에 맞추고, 배경은 비운다.
   문항 화면의 최소 높이(100vh)는 iframe 높이를 다시 키우는 고리가 되므로 끈다. */
.embedded .top, .embedded .foot { display: none; }
.embedded body, .embedded body.focus-mode { background: transparent; }
.embedded .wrap { max-width: none; padding: 0 0 8px; }
.embedded .focus { min-height: 0; }
.embedded .focus-foot { background: none; }
.intro-embed .facts { margin-top: 0; }

/* 유료 표시 (26.10.15): 제목 옆 작은 잉크 표. 무료 항목에는 표시를 달지 않는다 */
.paid { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 8px; border-radius: 4px; background: var(--ink); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.cmp-co { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cmp-co > div { background: var(--surface-3); border-radius: var(--radius-sm); padding: 14px; }
.cmp-co .k { font-size: 13px; color: var(--sub); }
.cmp-co .v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* 본문 문단 전반: 마지막 줄에 한 단어만 떨어지지 않게 */
.card p, .hero p, .notice, .lk-list span, .cc-steps span { text-wrap: pretty; }
.title, .sec-title, .q-title, .hero-name { text-wrap: balance; }

/* 관리자 안내 (26.10.15): 무엇을 누르면 무엇이 생기고 누구에게 가는지 순서로 적는다 */
.howto { margin: 4px 0 16px; padding: 0; list-style: none; counter-reset: ht; display: grid; gap: 6px; }
.howto li { counter-increment: ht; display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; font-size: 14px; color: var(--ink-2); text-wrap: pretty; }
.howto li::before { content: counter(ht); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--accent); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.howto b { display: block; color: var(--ink); }
.mk-link { margin-top: 12px; }
.mk-link summary { list-style: none; cursor: pointer; display: inline-flex; }
.mk-link summary::-webkit-details-marker { display: none; }
.mk-link[open] summary { background: var(--ink); color: #fff; border-color: var(--ink); }
.field-inline { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--sub); }
.field-inline select { min-height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); padding: 0 10px; }
.mk-link .toolbar { align-items: flex-end; flex-wrap: wrap; }
.copy-msg { margin-top: 8px; font-size: 13px; color: var(--accent-text); }

/* 교육 커리큘럼 (결과 예시 탭, 26.10.15) */
.cur-time { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.cur-time > li { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.ct-h { display: flex; gap: 12px; align-items: center; }
.ct-n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--accent); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.ct-w { font-size: 12.5px; color: var(--sub); font-weight: 600; }
.ct-h h3 { font-size: 16px; letter-spacing: -.01em; }
.cur-time ul, .cur-list { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.ct-out { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); background: var(--surface-3); border-radius: 6px; padding: 8px 12px; }
.ct-out b { margin-right: 8px; color: var(--ink); }
.cur-tbl td, .cur-tbl th { white-space: normal; vertical-align: top; }
.cur-tbl td:first-child { font-weight: 600; white-space: nowrap; }

/* 조직 리포트 결론: 떠 있는 CTA 카드 (26.10.15). 인쇄·끼워 보기에서는 리포트 끝 상자(.cc-inline)로 */
.cc-inline { display: none; }
.embedded .cc-inline { display: block; }
.embedded .cc-float { display: none; }
@media print { .cc-inline { display: block !important; } }
.cc-float { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 380px; max-height: calc(100vh - 48px); overflow: auto; background: var(--dark); color: #fff; border-radius: 14px; padding: 16px 18px 18px; box-shadow: 0 18px 40px -12px rgb(12 18 32 / .55); }
.ccf-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ccf-min { min-height: 32px; padding: 0 10px; border: 1px solid rgb(255 255 255 / .2); border-radius: 6px; background: none; color: #c9ceda; font-size: 12.5px; cursor: pointer; }
.ccf-min:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ccf-more { display: none; }
.cc-float.min .ccf-body { display: none; }
.cc-float.min .ccf-less { display: none; }
.cc-float.min .ccf-more { display: inline; }
.cc-float.min { width: auto; padding: 10px 12px 10px 16px; }
.cc-float.min .ccf-top { gap: 14px; }
.ccf-h { margin-top: 8px; font-size: 17px; font-weight: 800; line-height: 1.4; letter-spacing: -.01em; text-wrap: balance; }
.cc-float .cc-now { margin-top: 8px; font-size: 13.5px; }
.ccf-more-box { margin: 10px 0 14px; font-size: 13.5px; }
.ccf-more-box summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.ccf-more-box .cc-steps { grid-template-columns: 1fr; margin: 12px 0 0; }
.cc-float .cc-now + .btn { margin-top: 14px; }
.cc-float .btn { width: 100%; }
@media (max-width: 760px) {
  .cc-float { left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 60vh; }
  .cc-float .cc-now { display: none; }
  .ccf-h { font-size: 15.5px; }
  .ccf-more-box { margin: 6px 0 10px; }
  .cc-float.min { left: auto; }
}

/* 계정 발급 칸·기준 (26.10.15) */
.grant { min-width: 180px; white-space: normal; }
.grant .chk { display: flex; gap: 6px; align-items: center; min-height: 32px; font-size: 13px; }
.grant .chk input { width: 18px; height: 18px; }
.ok-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 12.5px; }
.warn-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--approve-bg); color: var(--approve-ink); font-weight: 700; font-size: 12.5px; margin-bottom: 4px; }
.grant-rule { margin: 0 0 14px; }
.grant-rule summary { cursor: pointer; font-weight: 700; min-height: 36px; display: flex; align-items: center; }

/* 상세 리포트 신청 (26.10.15) */
.lk-form { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.lk-form .field input[type=email], .lk-form .field input[type=tel] { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.lk-done { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--ink-2); font-size: 14px; margin-bottom: 10px; }
.lk-done .ic { flex: none; width: 18px; height: 18px; color: var(--accent-text); margin-top: 2px; }
.lk-done b { color: var(--ink); margin-right: 4px; }

/* 회사 링크 만들기 · 별칭/합치기 버튼은 한 줄, 펼친 칸은 아래 (26.10.15) */
.tool-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tool-row [aria-expanded="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
/* 버튼 위에 마우스를 올리거나 키보드로 고르면 한 줄 설명 */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; white-space: nowrap; padding: 6px 10px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.4; pointer-events: none; }
@media (max-width: 640px) { [data-tip]:hover::after, [data-tip]:focus-visible::after { white-space: normal; width: max-content; max-width: calc(100vw - 48px); } }
.tool-panel { margin-top: 4px; }

/* ---------- 보고서 인쇄 (26.10.16) ----------
   브라우저 인쇄·PDF 저장을 A4 보고서로. 화면을 축소해 찍는 게 아니라 인쇄용 배치를 따로 둔다.
   A4 본문 폭은 약 690px라 화면의 모바일 배치(760px 이하)가 걸린다. 그래서 이 절을 파일 맨 끝에 두고 필요한 배치를 다시 정한다.
   원칙: 그래프·표 줄·구조도·할 일 같은 블록은 페이지 경계에서 쪼개지 않는다. 큰 카드는 쪼개질 수 있게 두고 안의 블록을 지킨다.
   조직 리포트는 큰 단락(part-title)마다 새 페이지에서 시작한다. */
@page {
  size: A4;
  margin: 14mm 12mm 13mm;
  @top-left { content: "크몽 AX · AI 역량 진단 리포트"; font: 600 8.5pt "Pretendard", sans-serif; color: #8a8d99; }
  @bottom-right { content: counter(page) " / " counter(pages); font: 600 8.5pt "Pretendard", sans-serif; color: #8a8d99; }
}
@media print {
  html, body { background: #fff !important; }
  body { font-size: 11.5px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* 화면 전용: 머리줄·메뉴·버튼·떠 있는 카드·유료 상자·신청 칸 */
  .top, .foot, .admin-nav, .tabs, .toolbar, .tool-row, .tool-panel, .linkbox, .no-print, .cc-float, .share-bar, .intro-apply,
  .hero-cta, .apply-cta, .locked, .lk-cta, .lk-form, .ccf-min, .sample-head .tabs, details > summary { display: none !important; }
  .wrap, .wrap.wide { max-width: none; padding: 0; margin: 0; }
  /* 화면 크기 그대로면 그래프 하나가 남은 자리에 안 들어가 다음 페이지로 밀린다. 전체를 줄여 한 페이지에 더 담는다 */
  #app { zoom: .86; }
  .dist, .sec-head, .sec-sub { break-after: avoid; }
  /* 관리자 화면의 회사 고르기 카드·안내 문장은 보고서가 아니다 */
  #app > .card:has(#co), #app > .muted, #app > .notice { display: none !important; }
  /* 카드는 페이지 끝에서 나뉠 수 있다(통째로 넘기면 앞 페이지가 비었다). 대신 카드 안의 그래프·행·상자는 아래 목록에서 통째로 넘긴다.
     쪼개진 양쪽에 테두리·여백을 다시 그린다 */
  .card { border: 1px solid #e4e5ed; box-shadow: none; padding: 12px 14px; break-inside: auto; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  /* 업무 구조도가 여러 개 든 카드는 한 페이지보다 길어 쪼개진다. 테두리를 빼서 빈 꼬리 상자가 남지 않게 한다 */
  .card:has(figure.flow) { border: 0; padding: 0; break-inside: auto; }
  .card + .card, .two, .two + .card, .kpis { margin-top: 8px; }
  .sec-title { font-size: 14px; }
  .title { font-size: 18px; }
  .sec-head, .sec-title, .sub-title, .part-title, .cmp-head, .cmp-diff-h, h2, h3 { break-after: avoid; }
  /* 쪼개지면 안 되는 블록 */
  .hero, .kpis, .kpi, .dim, .dim-wrap, .side-stats, .chart-box, .cmp-wrap, .cmp-diff, .cmp-co, .spath, .ftiles li, .todo li,
  figure.flow, .fx, .fx-out, .legend, .hist-list li, .gs-row, .bars li, .bar-row, tr, .dist, .fuse li, .summary li, .conclusion, .cc-steps,
  .cur-time > li, .ct-out, .notice, .state, .lk-list { break-inside: avoid; }
  /* 조직 리포트 큰 단락: 한 단락이 남은 자리에 다 들어가지 않으므로 다른 단락과 한 페이지에 섞지 않는다.
     첫 단락은 핵심 요약 바로 아래(표지 페이지를 비우지 않게), 둘째 단락부터와 결론은 새 페이지. 단락 안에서는 카드를 이어서 나눈다 */
  .part-title { margin-top: 14px; padding-top: 0; }
  .part ~ .part, .part ~ .cc-inline { break-before: page; }
  .part ~ .part > .part-title { margin-top: 0; }
  /* 히어로는 표지처럼 */
  .hero { padding: 16px 20px; border-radius: 12px; }
  .hero-top { grid-template-columns: 1fr auto; }
  .hero-side { flex-direction: row; }
  .ring { width: 96px; height: 96px; }
  .hero-name { font-size: 21px; }
  /* 모바일 배치 대신 A4에 맞는 배치 */
  .two { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpis { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .dim-wrap { grid-template-columns: 260px 1fr; gap: 12px 20px; }
  .dim-wrap .dim-chart svg, .chart-box svg { max-width: 100%; height: auto; }
  .cmp-wrap { grid-template-columns: 1.3fr 1fr; gap: 12px; }
  .cmp-diff { grid-template-columns: repeat(5, 1fr); }
  .cmp-top { font-size: 22px; }
  .ftiles { grid-template-columns: repeat(4, 1fr); }
  .spath { grid-template-columns: repeat(4, 1fr); }
  .fx { grid-template-columns: 1fr 16px minmax(150px, .8fr) 16px 1fr; font-size: 11px; }
  .fx .fx-arrow { display: block; }
  .hist-list li { grid-template-columns: 140px 110px 1fr 40px 60px; }
  .lk-list, .cc-steps { grid-template-columns: repeat(3, 1fr); }
  table { font-size: 11px; }
  th, td { padding: 6px 6px; }
  .tbl-wrap { overflow: visible; }
  /* 결론은 리포트 끝 상자로, 새 페이지에서 */
  .cc-inline { display: block !important; margin-top: 10px; }
  .part ~ .cc-inline { margin-top: 0; }
  .conclusion { padding: 16px 20px; }
  .conclusion .cc-steps { grid-template-columns: repeat(3, 1fr); }
  a[href]::after { content: none !important; }
}
