/* CORE — layout: single centered column (max 760px) for the test, wider (960px) report sheet that prints to A4 */
:root {
  --bg: #F3F5F9;
  --surface: #FFFFFF;
  --ink: #141C2E;
  --muted: #586174;
  --line: #DCE1EA;
  --accent: #1F3F99;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6ECFA;
  --stamp: #D4572A;
  --good: #1B7A4B; --good-soft: #E2F3EA;
  --mid: #9A6A10; --mid-soft: #FBF0D9;
  --low: #B23A3A; --low-soft: #F9E4E4;
  --f-display: 'IBM Plex Sans KR', 'Noto Sans KR', system-ui, sans-serif;
  --f-body: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: 10px;
  --s1: #1F8A7A; --s2: #1E7FA6; --s3: #2B63B4; --s4: #3A4FB0; --s5: #5545A6; --s6: #6B3F99;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1420; --surface: #171E2D; --ink: #E7EBF3; --muted: #A2ABBD; --line: #2B3447;
    --accent: #8FA9F2; --accent-ink: #0F1420; --accent-soft: #1F2A45; --stamp: #F08A5D;
    --good: #5CC98F; --good-soft: #173225; --mid: #E3B45A; --mid-soft: #33290F; --low: #F08B8B; --low-soft: #3A1C1C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1420; --surface: #171E2D; --ink: #E7EBF3; --muted: #A2ABBD; --line: #2B3447;
  --accent: #8FA9F2; --accent-ink: #0F1420; --accent-soft: #1F2A45; --stamp: #F08A5D;
  --good: #5CC98F; --good-soft: #173225; --mid: #E3B45A; --mid-soft: #33290F; --low: #F08B8B; --low-soft: #3A1C1C;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.6; }
.wrap { max-width: 760px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.mark { font-family: var(--f-mono); font-weight: 600; letter-spacing: .18em; color: var(--accent); font-size: 18px; }
.brand-sub { font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.count { font-family: var(--f-mono); font-weight: 600; font-size: 18px; }
.count small { color: var(--muted); font-size: 13px; }
.prog { height: 4px; background: var(--line); }
.prog span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.main { padding-block: 28px 64px; display: flex; flex-direction: column; gap: 20px; }
.foot { color: var(--muted); font-size: 12px; padding-block: 0 32px; }

h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; line-height: 1.3; margin: 0; }
.h2 { font-size: 24px; font-weight: 700; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--accent); }
.pn { color: var(--muted); font-family: var(--f-mono); margin-left: 6px; }
.hint { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.lede { color: var(--muted); max-width: 60ch; margin: 0; }

.hero { display: flex; flex-direction: column; gap: 14px; padding-block: 12px; }
.hero h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 700; }
.facts { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { display: flex; align-items: baseline; gap: 4px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.facts b { font-family: var(--f-mono); font-size: 20px; }
.facts span { color: var(--muted); font-size: 14px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.card.soft { background: var(--accent-soft); border-color: transparent; }
.card p { margin: 0; }
.lbl { font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.row input { flex: 1 1 180px; }
input, select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; min-height: 44px; }
input:focus-visible, select:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input.short { max-width: 240px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; min-height: 20px; margin-top: 4px; }
.err { color: var(--low); font-weight: 600; font-size: 14px; margin: 0; }
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv th { text-align: left; width: 96px; color: var(--muted); font-weight: 600; vertical-align: top; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.kv td { padding: 8px 0; border-bottom: 1px solid var(--line); }

.btn { font: inherit; font-weight: 600; min-height: 44px; padding: 10px 20px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.pagehead { display: flex; flex-direction: column; gap: 6px; }
.items { display: flex; flex-direction: column; gap: 14px; }
.item { margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 16px; min-width: 0; }
.item.miss { border-color: var(--low); box-shadow: 0 0 0 1px var(--low); }
.q { margin: 0 0 12px; font-weight: 500; display: flex; gap: 10px; }
.qn { font-family: var(--f-mono); color: var(--muted); font-size: 13px; padding-top: 3px; min-width: 2.2em; }
.likert { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.likert label, .choices label { cursor: pointer; }
.likert label, .choices label { position: relative; }
.likert input, .choices input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.likert span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; min-height: 64px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.likert b { font-family: var(--f-mono); font-size: 16px; }
.likert i { font-style: normal; font-size: 11.5px; color: var(--muted); line-height: 1.3; word-break: keep-all; }
.likert input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.likert input:checked + span i { color: var(--accent-ink); }
.likert input:focus-visible + span, .choices input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.choices { display: flex; flex-direction: column; gap: 6px; }
.choices span { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; word-break: keep-all; }
.choices em { font-style: normal; font-family: var(--f-mono); font-weight: 600; color: var(--accent); min-width: 2em; }
.choices input:checked + span { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
.sticky-nav { position: sticky; bottom: 0; background: var(--bg); padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
@media (max-width: 480px) { .likert i { font-size: 10.5px; } .likert span { padding: 6px 2px; } }

/* 결과지 */
.report { display: flex; flex-direction: column; gap: 22px; }
.main:has(.report) { max-width: 960px; }
.rp-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-end; border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.rp-name { font-size: 30px; font-weight: 700; }
.rp-name small { font-size: 16px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.meta { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.notice { margin: 0; padding: 10px 14px; border-radius: 8px; background: var(--accent-soft); font-size: 14px; }
.notice.warn { background: var(--mid-soft); }
.sum { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .sum { grid-template-columns: 1fr; } }
.sum > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.lbl2 { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.score b { font-family: var(--f-mono); font-size: 52px; line-height: 1.1; color: var(--accent); }
.score .of { color: var(--muted); font-family: var(--f-mono); }
.badge-box b { font-family: var(--f-display); font-size: 26px; }
.badge-box span:last-child { color: var(--muted); font-size: 14px; }
.cg { font-family: var(--f-mono) !important; }
.blk { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.blk h3 { font-size: 17px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.blk.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.blk.two > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (max-width: 720px) { .blk.two { grid-template-columns: minmax(0, 1fr); } }
.bands, .dom { width: 100%; border-collapse: collapse; font-size: 14px; }
.bands th, .bands td, .dom th, .dom td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.bands th { font-family: var(--f-mono); width: 36px; }
.bands .desc { color: var(--muted); }
.bands tr.me { background: var(--accent-soft); }
.bands tr.me th { color: var(--accent); }
.bands .you { font-weight: 700; color: var(--stamp); white-space: nowrap; font-size: 13px; }
@media (max-width: 560px) { .bands .desc { display: none; } }
.dom th { font-size: 12px; color: var(--muted); font-weight: 600; }
.bar { position: relative; display: block; height: 8px; background: var(--line); border-radius: 4px; min-width: 60px; }
.bar > span { position: absolute; inset: 0 auto 0 0; border-radius: 4px; }
.bar > i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--stamp); }
.b-good { background: var(--good); } .b-mid { background: var(--mid); } .b-low { background: var(--low); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); } .pill.mid { background: var(--mid-soft); color: var(--mid); } .pill.low { background: var(--low-soft); color: var(--low); }
.radar { width: 100%; max-width: 420px; height: auto; align-self: center; }
.r-ring { fill: none; stroke: var(--line); stroke-width: 1; } .r-ring.outer { stroke-width: 1.5; }
.r-ax { stroke: var(--line); }
.r-line { fill: none; stroke: var(--stamp); stroke-width: 2; stroke-dasharray: 5 4; }
.r-me { fill: var(--accent); fill-opacity: .18; stroke: var(--accent); stroke-width: 2.5; }
.r-dot { fill: var(--accent); }
.r-lb { fill: var(--ink); font-size: 12px; font-family: var(--f-body); font-weight: 600; }
.r-val { fill: var(--accent); font-size: 11px; font-family: var(--f-mono); font-weight: 600; }
.legend { margin: 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; justify-content: center; flex-wrap: wrap; }
.lg-me, .lg-line { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--accent); }
.lg-line { border-top: 2px dashed var(--stamp); margin-left: 10px; }
.langbox { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.langbox p { margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; background: var(--surface); }
.langbox b { font-size: 20px; }
.langbox small { color: var(--muted); font-size: 12px; }
.ctry { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.ctry li { display: grid; grid-template-columns: 44px 128px minmax(60px, 1fr) 30px 72px; grid-template-areas: "code cn bar fit st" ". note note note note"; gap: 2px 10px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ctry li.c-1, .ctry li.c-2 { background: var(--accent-soft); }
.ctry .code { grid-area: code; color: var(--muted); font-size: 12px; font-weight: 600; }
.ctry .cn { grid-area: cn; font-weight: 600; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.ctry .cn em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 0 4px; }
.ctry .cn em.rec { color: var(--stamp); border-color: var(--stamp); }
.ctry .bar { grid-area: bar; } .ctry .fit { grid-area: fit; text-align: right; font-weight: 600; } .ctry .pill { grid-area: st; justify-self: start; }
.ctry .note { grid-area: note; color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) { .ctry li { grid-template-columns: 40px minmax(0, 1fr) 30px 64px; grid-template-areas: "code cn fit st" ". bar bar bar" ". note note note"; } }
.sw { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sw li { padding: 12px 14px; border-radius: 8px; background: var(--good-soft); display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.sw.low li { background: var(--low-soft); }
.sw b { font-family: var(--f-display); font-size: 15px; }
.rx { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); max-width: 70ch; }
.draft { font-size: 12px; font-weight: 600; color: var(--stamp); border: 1px dashed var(--stamp); border-radius: 4px; padding: 0 6px; }
.map { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.map > li { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.mm { font-weight: 700; color: var(--accent); font-size: 18px; min-width: 2em; }
.map ul { margin: 6px 0; padding-left: 18px; font-size: 14px; }
.kpi { margin: 0; font-size: 13px; font-weight: 600; color: var(--stamp); }
.qs { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.disc { margin: 0; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

.chart-box { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); min-width: 0; }
.chart-t { margin: 0; font-weight: 700; font-family: var(--f-display); font-size: 14px; }
.scroll-x { overflow-x: auto; }
.gantt { width: 100%; min-width: 640px; height: auto; display: block; }
.curve { width: 100%; height: auto; display: block; }
.g-head { fill: var(--accent); } .g-head.alt { fill: var(--accent); opacity: .85; }
.g-ht { fill: var(--accent-ink); font: 700 12px var(--f-mono); } .g-hs { fill: var(--accent-ink); font: 500 11px var(--f-body); }
.g-grid { stroke: var(--line); } .g-row { stroke: var(--line); }
.g-lb { fill: var(--ink); font: 600 12px var(--f-body); }
.g-prep { fill: var(--muted); fill-opacity: .55; } .g-act { fill: var(--accent); }
.g-ev { fill: var(--mid-soft); stroke: var(--mid); } .g-et { fill: var(--ink); font: 600 10.5px var(--f-body); }
.g-ms { fill: var(--stamp); } .g-mt { fill: var(--ink); font: 500 10.5px var(--f-body); }
.c-grid { stroke: var(--line); } .c-60 { stroke: var(--stamp); stroke-width: 1.5; stroke-dasharray: 6 4; } .c-80 { stroke: var(--good); stroke-width: 1.2; stroke-dasharray: 3 4; }
.c-60t { fill: var(--stamp); font: 600 11px var(--f-body); } .c-80t { fill: var(--good); font: 600 11px var(--f-body); }
.c-ax { fill: var(--muted); font: 500 11px var(--f-mono); }
.c-area { fill: var(--accent); fill-opacity: .08; } .c-line { fill: none; stroke: var(--accent); stroke-width: 3; }
.c-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; } .c-dot.now { fill: var(--stamp); }
.c-lb { fill: var(--ink); font: 600 11.5px var(--f-body); } .c-big { fill: var(--accent); font: 700 13px var(--f-body); }
.lg-prep, .lg-act, .lg-ms { display: inline-block; width: 18px; height: 8px; border-radius: 2px; background: var(--muted); opacity: .55; }
.lg-act { background: var(--accent); opacity: 1; margin-left: 10px; } .lg-ms { width: 9px; height: 9px; background: var(--stamp); transform: rotate(45deg); opacity: 1; margin-left: 10px; border-radius: 0; }
.mm small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }

/* 계단형 단계: M1(낮은 계단) → M6(높은 계단) */
.stairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: start; }
.st { display: flex; flex-direction: column; min-width: 0; position: relative; }
.st-1 { margin-top: 150px; } .st-2 { margin-top: 120px; } .st-3 { margin-top: 90px; } .st-4 { margin-top: 60px; } .st-5 { margin-top: 30px; } .st-6 { margin-top: 0; }
.st-h { color: #fff; padding: 8px 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.st-h .num { font-weight: 700; font-size: 15px; } .st-h small { font-size: 11px; opacity: .9; } .st-h b { flex-basis: 100%; font-family: var(--f-display); font-size: 14px; line-height: 1.3; }
.st-b { border-left: 3px solid; padding: 8px 0 8px 10px; font-size: 12.5px; }
.st-b ul { margin: 0 0 6px; padding-left: 16px; } .st-b .kpi { font-size: 12px; }
.st-1 .st-h { background: var(--s1); } .st-1 .st-b { border-color: var(--s1); }
.st-2 .st-h { background: var(--s2); } .st-2 .st-b { border-color: var(--s2); }
.st-3 .st-h { background: var(--s3); } .st-3 .st-b { border-color: var(--s3); }
.st-4 .st-h { background: var(--s4); } .st-4 .st-b { border-color: var(--s4); }
.st-5 .st-h { background: var(--s5); } .st-5 .st-b { border-color: var(--s5); }
.st-6 .st-h { background: var(--s6); } .st-6 .st-b { border-color: var(--s6); }
.st:not(:last-child)::after { content: "↗"; position: absolute; right: -12px; top: -22px; font-size: 18px; color: var(--muted); }
@media (max-width: 760px) {
  .stairs { grid-template-columns: minmax(0, 1fr); }
  .st-1, .st-2, .st-3, .st-4, .st-5, .st-6 { margin-top: 0; }
  .st:not(:last-child)::after { content: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

@media print {
  @page { size: A4; margin: 12mm; }
  :root { --bg: #fff; --surface: #fff; --ink: #111; --muted: #444; --line: #ccc; --accent: #1F3F99; --accent-soft: #EEF2FB; color-scheme: light; }
  body { font-size: 12px; background: #fff; }
  .top, .foot, .no-print, .notice:not(.warn) { display: none !important; }
  .main { padding: 0; max-width: none; }
  .sum, .map > li, .ctry li, .bands, .dom, .radar, .sw li, .langbox { break-inside: avoid; }
  .blk h3 { break-after: avoid; }
  .chart-box { break-inside: avoid; }
  .stairs { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 6px; }
  .st-b { font-size: 10px; } .st-h b { font-size: 11.5px; } .st-1 { margin-top: 120px !important; } .st-2 { margin-top: 96px !important; } .st-3 { margin-top: 72px !important; } .st-4 { margin-top: 48px !important; } .st-5 { margin-top: 24px !important; }
  .gantt { min-width: 0; }
  .blk.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .score b { font-size: 40px; }
}
.kv b.em { color: var(--accent, #c2410c); text-decoration: underline; text-underline-offset: 3px; }
.check + .check { margin-top: 10px; }
.consent .h3 { font-size: 1rem; margin: 22px 0 8px; }
.consent table.grid { width: 100%; border-collapse: collapse; font-size: .92rem; }
.consent table.grid th, .consent table.grid td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; vertical-align: middle; }
.consent table.grid th { background: var(--accent-soft); font-weight: 600; }
.consent .yn { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 10px 0 4px; }
.consent .yn label { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.consent .yn span { flex: 1 1 260px; }
.consent table.kv.small { margin-top: 18px; font-size: .9rem; }
.consent .to { margin-right: auto; font-weight: 600; align-self: center; }
.consent .yn input { width: 18px; height: 18px; min-height: 18px; flex: none; margin: 0; }
.consent .yn label { white-space: nowrap; }
.consent table.grid { min-width: 520px; }
@media (max-width: 600px) {
  .consent table.grid { min-width: 0; }
  .consent table.grid thead { display: none; }
  .consent table.grid tr, .consent table.grid td { display: block; }
  .consent table.grid td { text-align: left; border-top: none; }
  .consent table.grid tr td:first-child { border-top: 1px solid var(--line); }
  .consent table.grid td::before { content: attr(data-l); display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
}
.consent .hint.warn { color: var(--stamp); font-weight: 600; }
.notice.keep { border-left: 4px solid var(--stamp); padding-left: 12px; }
.draft-stamp { border: 1.5px dashed var(--stamp); color: var(--stamp); border-radius: 8px; padding: 8px 12px; font-weight: 600; margin: 0 0 12px; }
.consent .info { background: var(--accent-soft); border-radius: 8px; padding: 12px 16px; margin: 12px 0; font-size: .92rem; }
.consent .info ul { margin: 4px 0 10px; padding-left: 18px; }
.consent .info p { margin: 6px 0; }
.progs { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; break-inside: avoid; }
.progs h4 { margin: 0 0 6px; font-size: .98rem; }
.progs ul { margin: 0; padding-left: 18px; }
.progs li { margin: 6px 0; line-height: 1.45; }
.progs .why { display: inline-block; font-size: .78rem; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 0 8px; margin-left: 4px; }
.progs small { color: var(--muted); }
/* 무료 호스팅 화면 아래 배지가 버튼을 가리지 않도록 여백 */
.foot { padding-bottom: 72px; }
/* 동의서 1번 표: 2열 3행(항목명 | 내용), 휴대폰에서도 2열 유지 */
.consent table.kv2 { min-width: 0; }
.consent table.kv2 th { width: 30%; text-align: center; white-space: nowrap; }
.consent table.kv2 td { text-align: left; }
@media (max-width: 600px) {
  .consent table.kv2 tr { display: table-row; }
  .consent table.kv2 th, .consent table.kv2 td { display: table-cell; border-top: 1px solid var(--line); }
  .consent table.kv2 th { width: 28%; padding: 8px 6px; font-size: .88rem; white-space: normal; }
}
.consent table.kv2 td::before { content: none; display: none; }
/* 동의서 2번 표: 4열 2행(머리줄 + 내용), 휴대폰에서도 가로 표 유지 */
.consent table.row4 { min-width: 0; table-layout: fixed; }
@media (max-width: 600px) {
  .consent table.row4 thead { display: table-header-group; }
  .consent table.row4 tr { display: table-row; }
  .consent table.row4 th, .consent table.row4 td { display: table-cell; border-top: 1px solid var(--line); padding: 7px 4px; font-size: .8rem; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
  .consent table.row4 td::before { content: none; display: none; }
}
.req { display: inline-block; font-size: .75rem; color: #fff; background: var(--stamp); border-radius: 999px; padding: 1px 8px; vertical-align: middle; margin-left: 6px; }
.steps-s { margin: 10px 0 14px; padding-left: 20px; line-height: 1.6; }
#f-h input[type=file], #f-hs input[type=file] { display: block; margin: 6px 0; font-size: .95rem; max-width: 100%; }
.req { display: inline-block; font-size: .75rem; color: #fff; background: var(--stamp); border-radius: 999px; padding: 2px 8px; vertical-align: middle; margin-left: 6px; }
.steps-s { margin: 10px 0 14px; padding-left: 20px; line-height: 1.6; }
#h-file, #hs-file { display: block; width: 100%; margin: 6px 0; padding: 10px; border: 1px dashed var(--line); border-radius: 8px; background: var(--accent-soft); }
.fund-all { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.fund-all summary { cursor: pointer; color: var(--accent); }
.fund-t { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .9rem; }
.fund-t th, .fund-t td { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: right; }
.fund-t th:first-child, .fund-t td:first-child { text-align: left; }
.fund-t small { color: var(--muted); }
.fund-t tr.me td { background: var(--accent-soft); font-weight: 700; }
/* 해일로 실시 여부 질문 */
.hq { border: 0; padding: 0; margin: 0 0 4px; min-width: 0; }
.hq legend { padding: 0; margin-bottom: 8px; }
#h-no { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
#h-no[hidden] { display: none; }
#h-no a.btn { display: inline-block; text-decoration: none; }
/* 나의 위치(해일로 방식 비교 막대) */
.pos-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.pos { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); min-width: 0; break-inside: avoid; }
.pos h4 { margin: 0; font-size: 16px; }
.tagc { display: inline-block; font-size: 12px; font-weight: 700; color: var(--surface); background: var(--accent); border-radius: 999px; padding: 1px 9px; margin-right: 4px; vertical-align: 2px; }
.pos-msg { margin: 0; font-size: 14px; line-height: 1.7; }
.pos-msg .up { color: var(--good); } .pos-msg .dn { color: var(--low); }
.pos-charts { display: flex; gap: 12px; flex-wrap: wrap; }
.pb { flex: 1 1 120px; background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pb-t { margin: 0; font-size: 12.5px; font-weight: 700; }
.pb-plot { display: flex; justify-content: center; gap: 18px; height: 110px; align-items: flex-end; border-bottom: 1px solid var(--line); }
.pb-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; width: 40px; position: relative; padding-bottom: 18px; }
.pb-bar { width: 32px; border-radius: 4px 4px 0 0; display: block; }
.pb-bar.goal { background: var(--accent); } .pb-bar.me { background: var(--mid); } .pb-bar.ok { background: var(--good); }
.pb-v { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.pb-x { position: absolute; bottom: 0; font-size: 12px; color: var(--muted); }
.gauge { position: relative; height: 12px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 30px; }
.gauge .g-fill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; }
.gauge i { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); }
.g-n { margin: 0; font-size: 22px; font-weight: 900; } .g-n small { font-size: 12px; font-weight: 400; }
.pos-jobs { display: flex; flex-direction: column; gap: 6px; }
.pos-jobs a.btn { text-decoration: none; text-align: center; }
@media print { .pos-jobs a.btn { display: none; } }
/* 상담군 보완 과제 · 추천 국가 표 (2026-11-21) */
.gapbox { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); break-inside: avoid; }
.gap-h { margin: 0 0 8px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.gapt, .reco { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.gapt th, .gapt td, .reco th, .reco td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.gapt th, .reco th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.gapt small { color: var(--muted); }
.ctry .cn em.rk { border: 0; padding: 0; color: var(--muted); font-weight: 600; }
.reco-h { margin: 18px 0 6px; font-size: 15px; } .reco-h small { color: var(--muted); font-weight: 400; font-size: 12.5px; margin-left: 6px; }
.reco tr.mine { background: var(--accent-soft); }
.reco td em { font-style: normal; font-size: 12px; color: var(--accent); font-weight: 700; }
.reco td.num, .reco th.num { width: 56px; }
@media (max-width: 560px) { .gapt td:last-child, .gapt th:last-child { display: none; } }
.sw li { line-height: 1.65; gap: 6px; break-inside: avoid; }
.st-b .kpi { border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 4px; }
.st-b .kpi b { display: block; font-size: 12px; letter-spacing: .5px; color: var(--stamp); }
.st-b .kpi ul { margin: 2px 0 0; padding-left: 0; list-style: none; }
.st-b .kpi li { font-size: 12px; font-weight: 600; color: var(--stamp); }
.st-b .kpi li::before { content: '- '; }
.bands td.num { white-space: nowrap; }
.progs .pcat { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 0 6px; margin-right: 2px; vertical-align: 1px; }

/* 국가별 해외취업 유형(중간관리자형 등) */
.track { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 6px; font-size: 13.5px; line-height: 1.65; }
.track p { margin: 2px 0; }
.track-t { font-weight: 700; }

/* 기업 유형별 진입 경로(한상기업·한국 대기업 현지법인·글로벌 기업) */
.emp { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.emp-c { border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 13px; line-height: 1.6; background: var(--surface); }
.emp-c.first { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.emp-c b { display: block; font-size: 15px; margin-top: 4px; }
.emp-c small { color: var(--muted); }
.emp-c p { margin: 6px 0 0; }
.emp-c .k { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.emp-why { font-weight: 600; }
.emp-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.emp-path { margin: 10px 0 0; font-weight: 700; font-size: 13.5px; }
.emp-path span { font-weight: 400; color: var(--muted); }
@media print { .emp { grid-template-columns: repeat(3, 1fr); } .emp-c { break-inside: avoid; } }

/* ── 세계지도 배경 (2026-11-21): 한국에서 18개 진단 국가로 이어지는 지도. 화면 뒤에 고정, 인쇄·PDF 결과지에는 나오지 않음 ── */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("worldmap-light.svg") center 58% / min(1600px, 125vw) auto no-repeat;
  opacity: .85;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::after { background-image: url("worldmap-dark.svg"); } }
:root[data-theme="dark"] body::after { background-image: url("worldmap-dark.svg"); }
@media (max-width: 640px) { body::after { background-size: 250vw auto; background-position: 78% 42%; opacity: .75; } }
@media print { body::after { display: none; } }

/* ── 첫 화면 이동 (2026-11-23): 로고 = 첫 화면 링크, 동의서·기본정보 '이전' 버튼은 왼쪽 끝 ── */
a.brand { color: inherit; text-decoration: none; border-radius: 6px; }
a.brand:hover .brand-sub { text-decoration: underline; text-underline-offset: 3px; }
a.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#c-back, #p-back { margin-right: auto; }
@media print { a.brand { pointer-events: none; } }

/* ───────── PDF 파일 만들기용 틀 (pdf.js, 2026-11-24) — 인쇄 규칙과 같은 모양, 폭 760px 고정 ───────── */
body.pdf-mode { background: #fff; margin: 0; font-size: 14px; }
body.pdf-mode::before { content: none; }
.pdf-mode .pdf-main { max-width: none; padding: 0; margin: 0; width: 760px; }
.pdf-mode .no-print, .pdf-mode .notice:not(.warn):not(.pdf-keep), .pdf-mode .top, .pdf-mode .foot { display: none !important; }
.pdf-mode .scroll-x { overflow: visible; }
.pdf-mode .gantt { min-width: 0; }
.pdf-mode .stairs { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 6px; }
.pdf-mode .st-b { font-size: 10.5px; } .pdf-mode .st-h b { font-size: 12px; }
.pdf-mode .st-1 { margin-top: 120px !important; } .pdf-mode .st-2 { margin-top: 96px !important; } .pdf-mode .st-3 { margin-top: 72px !important; } .pdf-mode .st-4 { margin-top: 48px !important; } .pdf-mode .st-5 { margin-top: 24px !important; }
.pdf-mode .st:not(:last-child)::after { content: none; }
.pdf-mode .score b { font-size: 44px; }
.pdf-mode .report { gap: 16px; }
.pdf-mode details { display: block; } .pdf-mode details > summary { list-style: none; }

/* 결과지 저장 상태 상자 */
.savebox { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 2px solid var(--accent); border-radius: 12px; background: var(--surface); }
.savebox .row { gap: 8px; flex-wrap: wrap; }
.savebox .st-line { margin: 0; font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
.savebox .st-line b { white-space: nowrap; }
.st-ok { color: var(--good); } .st-wait { color: var(--mid); } .st-bad { color: var(--low); }
.inapp { border: 2px solid var(--stamp); border-radius: 12px; padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.inapp p { margin: 0; }
.inapp a.btn { text-decoration: none; text-align: center; }

/* ───────── 관리자(컨설팅) 화면 ───────── */
.main:has(.adm) { max-width: 1100px; }
.adm { display: flex; flex-direction: column; gap: 16px; }
.adm-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.adm-stats { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.adm-stats li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--surface); font-size: 14px; }
.adm-stats b { font-family: var(--f-mono); }
.adm-list { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
.adm-list th, .adm-list td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.adm-list th { font-size: 12.5px; color: var(--muted); font-weight: 600; position: sticky; top: 0; background: var(--surface); }
.adm-list tr.off td { color: var(--muted); }
.adm-list .btn { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.adm-tag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.adm-tag.ok { background: var(--good-soft); color: var(--good); } .adm-tag.mid { background: var(--mid-soft); color: var(--mid); } .adm-tag.no { background: var(--line); color: var(--muted); }
.adm-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-filter input { max-width: 260px; }
.adm-step { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.adm-step h3 { margin: 0; font-size: 17px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.adm-step h3 .n { font-family: var(--f-mono); color: var(--accent); }
.adm-step.locked { opacity: .55; }
.adm-links { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-links a.btn { text-decoration: none; }
.adm textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; min-height: 72px; resize: vertical; }
.adm .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.adm .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .adm .grid3, .adm .grid2 { grid-template-columns: minmax(0, 1fr); } .adm-list .hide-m { display: none; } }
.adm-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .adm-months { grid-template-columns: minmax(0, 1fr); } }
.adm-month { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.adm-month .mh { font-family: var(--f-mono); font-weight: 700; color: var(--accent); font-size: 13px; }
.adm-prog label { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.adm-prog input { width: 18px; height: 18px; min-height: 18px; flex: none; margin-top: 3px; }
.adm-judge { display: flex; gap: 10px; flex-wrap: wrap; }
.adm-judge label { display: flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-weight: 600; cursor: pointer; }
.adm-judge input { width: 18px; height: 18px; min-height: 18px; margin: 0; }
.adm details.rp-view > summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 6px 0; }
.adm .msg { margin: 0; font-size: 14px; font-weight: 600; }
.adm .sticky-act { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; z-index: 3; }

/* 커리어 로드맵(컨설팅 확정본) 문서 */
.roadmap-doc .rd-goal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.roadmap-doc .rd-goal > div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.roadmap-doc .rd-goal b { font-family: var(--f-display); font-size: 17px; line-height: 1.35; word-break: keep-all; }
@media (max-width: 640px) { .roadmap-doc .rd-goal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.roadmap-doc .rd-note { margin: 0; padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 6px; white-space: pre-line; line-height: 1.7; }
.roadmap-doc .rd-pri { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: p; }
.roadmap-doc .rd-pri li { counter-increment: p; display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.roadmap-doc .rd-pri li::before { content: counter(p); font-family: var(--f-mono); font-weight: 700; color: #fff; background: var(--stamp); border-radius: 999px; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.roadmap-doc .rd-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.roadmap-doc .rd-path li { border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 8px; padding: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.roadmap-doc .rd-path li:nth-child(2) { border-top-color: var(--s4); } .roadmap-doc .rd-path li:nth-child(3) { border-top-color: var(--stamp); }
.roadmap-doc .rd-path small { color: var(--muted); font-family: var(--f-mono); font-weight: 600; }
.roadmap-doc .rd-path b { font-family: var(--f-display); font-size: 15px; }
@media (max-width: 640px) { .roadmap-doc .rd-path { grid-template-columns: minmax(0, 1fr); } }
.roadmap-doc .rd-months { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.roadmap-doc .rd-m { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 0.7fr); gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.roadmap-doc .rd-mh { font-size: 12px; color: var(--muted); font-weight: 600; padding-block: 6px; }
.roadmap-doc .rd-when { font-family: var(--f-mono); font-weight: 700; color: var(--accent); display: flex; flex-direction: column; }
.roadmap-doc .rd-when small { font-weight: 500; color: var(--muted); }
.roadmap-doc .rd-m ul { margin: 4px 0 0; padding-left: 16px; }
.roadmap-doc .rd-m .kpi-c { color: var(--stamp); font-weight: 600; margin: 0; }
@media (max-width: 640px) { .roadmap-doc .rd-m { grid-template-columns: minmax(0, 1fr); gap: 4px; } .roadmap-doc .rd-mh { display: none; } }
.pdf-mode .roadmap-doc .rd-m { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 0.7fr); }
.roadmap-doc .rd-sign { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; font-size: 13.5px; color: var(--muted); }
.roadmap-doc .rd-sign b { color: var(--ink); }
.roadmap-doc .rd-cmp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
@media (max-width: 640px) { .roadmap-doc .rd-cmp { grid-template-columns: minmax(0, 1fr); } }
.pdf-mode .roadmap-doc .rd-goal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pdf-mode .roadmap-doc .rd-path { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pdf-mode .roadmap-doc .rd-cmp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* html2canvas는 안쪽 그림자(inset box-shadow)를 상자 전체 색으로 칠함 → PDF에서는 테두리로 대신 */
.pdf-mode * { box-shadow: none !important; }
.pdf-mode .emp-c.first { border: 2px solid var(--accent); }
.pdf-mode .emp { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 긴 사업 주소(예: OKTA 주소)가 휴대폰 화면 밖으로 밀리지 않게 (2026-11-24 시험에서 발견) */
.progs small, .progs a { overflow-wrap: anywhere; word-break: break-word; }
/* 저장 상자 줄 정렬: 휴대폰에서 항목명이 쪼개지지 않게 */
.savebox .st-line { display: grid; grid-template-columns: 5.6em auto minmax(0, 1fr); column-gap: 8px; align-items: baseline; }
.savebox .st-line > span:first-child { white-space: nowrap; font-weight: 600; color: var(--muted); }
@media (max-width: 560px) { .savebox .st-line { grid-template-columns: 5.6em minmax(0, 1fr); } .savebox .st-line > span:last-child { grid-column: 2; } }
