@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
}
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #f1f5f9;
  color: #1e293b;
  min-height: 100vh;
  line-height: 1.6;
}
/* 문항 풀이 화면에서는 페이지 자체는 스크롤되지 않고, 문제 영역만 내부 스크롤됨.
   일부 브라우저는 body가 아니라 html(문서 루트)을 스크롤 컨테이너로 삼으므로 둘 다 잠근다 */
html.quiz-mode, html.quiz-mode body {
  overflow: hidden;
  height: 100%;
}

/* ════════════════════════════════
   HEADER
════════════════════════════════ */
.site-header {
  background: #1e3a8a;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.header-inner {
  width: 100%;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-text { font-size: 16px; font-weight: 700; white-space: nowrap; }

/* Header actions (result.html) */
.header-actions { display: flex; gap: 8px; }

/* ── Quiz topbar + progress strip (index.html) ── */
.topbar {
  background: linear-gradient(90deg, #12224f 0%, #1b3b93 100%);
  color: #fff;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tb-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tb-title { font-size: 16px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; }
.tb-sub {
  font-size: 12px;
  color: #aebbe8;
  font-weight: 600;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.22);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tb-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.tb-autosave {
  font-size: 11.5px;
  color: #aebbe8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.tb-autosave .dot { width: 6px; height: 6px; border-radius: 50%; background: #5fd98a; flex-shrink: 0; }

.btn-submit {
  background: #fff;
  color: #1b3b93;
  border: none;
  font-weight: 800;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 9px;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.btn-submit:hover { background: #eef1fb; }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.progress-strip {
  background: #2648a8;
  padding: 9px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.progress-strip .txt { font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap; }
.progress-strip .txt b { color: #ffd98a; }
.progress-strip .track { flex: 1; height: 6px; border-radius: 100px; background: rgba(255,255,255,.22); overflow: hidden; }
.progress-strip .fill { height: 100%; border-radius: 100px; background: #fff; transition: width .25s ease; }

/* ════════════════════════════════
   LAYOUT WRAPPERS
════════════════════════════════ */
.start-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

/* ════════════════════════════════
   START SCREEN
════════════════════════════════ */
.start-card {
  background: white;
  border-radius: 20px;
  padding: 52px 48px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.09);
}
.start-badge {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: .6px;
  margin-bottom: 18px;
}
.start-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
}
.done-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 30px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.start-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 30px;
}
.start-notice {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.7;
  margin-bottom: 28px;
  text-align: center;
}
/* ════════════════════════════════
   퀴즈 화면 — 화면 전체를 고정 배치하는 앱 셸
   (헤더 아래 영역을 왼쪽 문항 목록 / 오른쪽 문제·선택지 + 하단 고정 이전·다음으로 분할.
    페이지 자체는 스크롤되지 않고 .quiz-content만 내부 스크롤됨)
════════════════════════════════ */
.quiz-shell {
  position: fixed;
  top: 96px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: stretch;
}

.quiz-content-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.quiz-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 40px 64px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.quiz-content > .q-card {
  width: 100%;
  max-width: 820px;
}

/* 하단 고정 이전/다음 내비게이션 — 왼쪽 이전 · 가운데 저장 상태 · 오른쪽 다음 */
.quiz-nav-bar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 22px 64px 32px;
}
.quiz-nav-bar > *:first-child { justify-self: start; }
.quiz-nav-bar > *:last-child { justify-self: end; }

.nav-saved-note {
  font-size: 12.5px;
  color: #9ba0b4;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.saved-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5fbe7c;
  flex-shrink: 0;
}

.btn-nav {
  font-size: 14.5px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  white-space: nowrap;
}
.btn-nav.prev { background: #fff; border: 1.5px solid #e4e7f0; color: #5c6072; }
.btn-nav.prev:hover { background: #f8f9fc; }
.btn-nav.next { background: #1b3b93; color: #fff; }
.btn-nav.next:hover { background: #12224f; }

.q-card {
  background: #fff;
  border: 1px solid #e4e7f0;
  border-radius: 20px;
  padding: 44px 48px;
}

/* ════════════════════════════════
   문항 목록 — 화면 왼쪽에 항상 고정 표시(세로 1열), 헤더 아래 전체 높이
════════════════════════════════ */
.sidebar {
  flex: 0 0 288px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border-right: 1px solid #e4e7f0;
  padding: 22px 20px 40px;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* 구형 Edge/IE */
  transition: flex-basis .18s ease;
}
.sidebar::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.sidebar.collapsed { flex-basis: 52px; padding: 22px 8px; }
.sidebar.collapsed .sb-summary,
.sidebar.collapsed .sb-legend,
.sidebar.collapsed .q-flat-grid { display: none; }
.sidebar.collapsed .sb-head { justify-content: center; }

.sb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.sb-head h4 {
  font-size: 14px;
  font-weight: 800;
  color: #171b2e;
  padding-left: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-head .collapse {
  background: none;
  border: none;
  color: #9ba0b4;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.sb-head .collapse:hover { background: #f4f6fc; color: #1b3b93; }

.sb-summary {
  font-size: 12px;
  font-weight: 600;
  color: #5c6072;
  margin-bottom: 18px;
}
.sb-summary b { color: #1b3b93; font-weight: 800; }

.sb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px dashed #e4e7f0;
}
.sb-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: #9ba0b4;
  font-weight: 700;
}
.sb-legend .sw { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; box-sizing: border-box; }
.sw.done { background: #1b3b93; }
.sw.cur { background: #fff; border: 2px solid #f5a623; }
.sw.todo { background: #f4f6fc; border: 1px solid #e4e7f0; }

.q-flat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px 12px;
}

.q-chip {
  height: 38px;
  border-radius: 9px;
  border: 1px solid #e4e7f0;
  background: #f4f6fc;
  color: #5c6072;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.q-chip:hover { border-color: #9aa7d6; color: #1b3b93; }
.q-chip.done { background: #1b3b93; border-color: #1b3b93; color: #fff; }
.q-chip.current {
  background: #fff;
  border: 2px solid #f5a623;
  color: #f5a623;
  font-weight: 800;
}

/* ════════════════════════════════
   제출 확인 팝업
════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,50,.58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}
.modal-card {
  width: 560px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 24px;
  padding: 44px 44px 36px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(15,23,50,.35);
}
.modal-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #fff3de;
  color: #b87400;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
}

.modal-title { font-size: 20px; font-weight: 800; letter-spacing: -.3px; text-align: center; color: #171b2e; margin-bottom: 10px; }
.modal-summary { font-size: 14px; font-weight: 600; color: #5c6072; text-align: center; line-height: 1.7; margin-bottom: 28px; }
.modal-summary b { color: #1b3b93; font-weight: 800; }

.modal-unanswered-box {
  background: #f4f6fc;
  border: 1px solid #e4e7f0;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 30px;
}
.modal-unanswered-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.modal-unanswered-title { font-size: 12.5px; font-weight: 800; color: #171b2e; }
.modal-unanswered-count {
  font-size: 12px;
  font-weight: 700;
  color: #b87400;
  background: #fff3de;
  padding: 4px 10px;
  border-radius: 7px;
}
.modal-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.modal-chip {
  min-width: 38px;
  height: 38px;
  padding: 0 4px;
  border-radius: 9px;
  background: #fff;
  border: 1.5px solid #f5a623;
  color: #b87400;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-actions { display: flex; gap: 10px; }
.modal-btn {
  flex: 1;
  text-align: center;
  padding: 15px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.modal-btn-ghost { background: #fff; border: 1.5px solid #e4e7f0; color: #5c6072; }
.modal-btn-primary { background: #1b3b93; color: #fff; }

.q-text {
  font-size: 21px;
  font-weight: 800;
  color: #171b2e;
  line-height: 1.6;
  letter-spacing: -.3px;
  margin-bottom: 36px;
}

/* ── Maturity options (vertical, full width) ── */
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 22px;
  background: #fff;
  border: 1.5px solid #e4e7f0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #171b2e;
  cursor: pointer;
  transition: all .15s;
}
.opt:hover { border-color: #9aa7d6; }
.opt input[type="radio"], .opt input[type="checkbox"] { display: none; }
.opt:has(input:checked) {
  border-color: #1b3b93;
  background: #f4f6fc;
  box-shadow: 0 0 0 3px rgba(27,59,147,.08);
}
.opt-marker {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: #4358ac;
  display: flex;
  align-items: center;
  justify-content: center;
}
.opt-marker.n1 { background: #c7cee3; }
.opt-marker.n2 { background: #9aa7d6; }
.opt-marker.n3 { background: #6e80c4; }
.opt-marker.n4 { background: #4358ac; }
.opt-marker.n5 { background: #1b3b93; }
.opt-text { flex: 1; }

/* 우측 선택 상태 표시 — 평소엔 빈 원, 선택 시 '선택됨 ✓' 문구로 전환 */
.opt-indicator {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #d7dae6;
}
.opt-selected-label {
  display: none;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  color: #1b3b93;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.opt:has(input:checked) .opt-indicator { display: none; }
.opt:has(input:checked) .opt-selected-label { display: inline-flex; }

/* '모름' 옵션 — 시각적으로 낮은 우선순위 */
.opt-unknown { border-style: dashed; opacity: .8; }
.opt-unknown .opt-marker { background: #f1f5f9; color: #cbd5e1; }
.opt-unknown .opt-text { color: #94a3b8; font-style: italic; }
.opt-unknown:has(input:checked) { border-color: #94a3b8; background: #f8fafc; box-shadow: none; }
.opt-unknown:has(input:checked) .opt-marker { background: #94a3b8; color: #fff; }
.opt-unknown:has(input:checked) .opt-text { color: #64748b; }

/* ── Likert options (horizontal) ── */
.likert-wrap { overflow-x: auto; }
.likert-opts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  min-width: 300px;
}
.likert-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.likert-col input[type="radio"] { display: none; }
.likert-label {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 4px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
  transition: all .15s;
}
.likert-label:hover { border-color: #a5b4fc; background: #eef2ff; color: #4338ca; }
.likert-col input:checked + .likert-label {
  border-color: #6d28d9;
  background: #ede9fe;
  color: #6d28d9;
  font-weight: 700;
}

/* ── Error message ── */
.err-msg {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  padding: 14px 18px;
  color: #b91c1c;
  font-size: 14.5px;
  font-weight: 700;
  margin-top: 18px;
}

/* ── Buttons ── */
.btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .15s;
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1;
  white-space: nowrap;
}
.btn-ghost {
  background: white;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
}
.btn-ghost:hover { background: #f8fafc; border-color: #94a3b8; }
.btn-primary { background: #1e40af; color: white; }
.btn-primary:hover { background: #1e3a8a; }
.btn-success { background: #059669; color: white; padding: 13px 36px; font-size: 15px; }
.btn-success:hover { background: #047857; }
.btn-start-main {
  background: #1e40af;
  color: white;
  padding: 15px 44px;
  font-size: 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all .2s;
  margin-top: 8px;
}
.btn-start-main:hover {
  background: #1e3a8a;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(30,64,175,.3);
}
.btn-start-main:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}
.btn-start-main:disabled:hover { transform: none; box-shadow: none; }

/* ════════════════════════════════
   LOADING / ERROR
════════════════════════════════ */
.loading-wrap {
  text-align: center;
  padding: 80px 24px;
  color: #64748b;
}
.loading-spinner {
  width: 40px; height: 40px;
  border: 4px solid #e2e8f0;
  border-top-color: #1e40af;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-wrap {
  text-align: center;
  padding: 80px 24px;
}
.error-wrap p { color: #64748b; margin-bottom: 20px; }

/* ════════════════════════════════
   RESULT PAGE — HERO
════════════════════════════════ */
.result-hero {
  padding: 24px 24px 20px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  color: white;
}
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 2px;
}
.hero-respondent {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.95);
}
.hero-team-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,.2);
  color: white;
  border: 1px solid rgba(255,255,255,.35);
}
.hero-job-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  letter-spacing: .3px;
}
.hero-job-badge.dev    { background: #ede9fe; color: #6d28d9; }
.hero-job-badge.nondev { background: #ecfdf5; color: #065f46; }
.hero-level-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}
.hero-label {
  font-size: 11px;
  font-weight: 500;
  opacity: .65;
  letter-spacing: .5px;
  margin-bottom: 2px;
}
.hero-level {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}
.hero-name { font-size: 20px; font-weight: 700; opacity: .9; }
.hero-right { flex: 1; min-width: 180px; }
.hero-score {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 2px;
}
.hero-score span { font-size: 13px; font-weight: 400; opacity: .7; }
.hero-desc { display: none; }

/* Hero level color overlays */
.hero-lv1 { background: linear-gradient(135deg, #7f1d1d, #dc2626); }
.hero-lv2 { background: linear-gradient(135deg, #7c2d12, #ea580c); }
.hero-lv3 { background: linear-gradient(135deg, #713f12, #d97706); }
.hero-lv4 { background: linear-gradient(135deg, #14532d, #16a34a); }
.hero-lv5 { background: linear-gradient(135deg, #1e3a8a, #1d4ed8); }

/* ════════════════════════════════
   RESULT PAGE — SECTIONS
════════════════════════════════ */
.sections-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.r-section {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

/* Main result wrapper */
#app {
  /* for result.html, sections are full-width with auto margin */
}

/* ── Maturity Stage Track ── */
.stage-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 4px 0 24px;
  overflow-x: auto;
  padding: 8px 0;
}
.stage-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 64px;
}
.stage-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2.5px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  transition: transform .2s;
}
.stage-step.current .stage-dot {
  width: 48px;
  height: 48px;
  box-shadow: 0 0 0 5px rgba(0,0,0,.08);
  font-size: 16px;
}
.stage-dot-inner { line-height: 1; }
.stage-lv { font-size: 11px; font-weight: 700; }
.stage-name { font-size: 11px; font-weight: 500; text-align: center; }
.stage-connector {
  flex: 1;
  min-width: 18px;
  max-width: 48px;
  height: 2px;
  background: #e2e8f0;
  margin-bottom: 28px;
}

.stage-current-card {
  border-left: 4px solid #94a3b8;
  border-radius: 0 12px 12px 0;
  background: #f8fafc;
  padding: 20px 22px;
  margin-bottom: 14px;
}
.stage-current-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.stage-current-lv {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}
.stage-current-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.7;
  max-width: 560px;
}
.stage-axmos-badge {
  flex-shrink: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid;
  line-height: 1.4;
  white-space: nowrap;
}
.stage-axmos-badge span { font-size: 11px; font-weight: 500; display: block; }
.stage-focus-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.stage-focus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stage-focus-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
}
.stage-focus-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stage-next {
  border: 1.5px dashed #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  background: #fff;
}
.stage-next-top { border-color: #bfdbfe; background: #eff6ff; }
.stage-next-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.stage-next-name {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}
.stage-next-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}

/* ── Chart ── */
.chart-wrap {
  position: relative;
  height: 320px;
  max-width: 380px;
  margin: 0 auto;
}

/* ── Cat Combined (radar top, list below) ── */
.cat-combined {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cat-radar-panel {
  width: 380px;
  height: 380px;
  margin: 0 auto;
  flex-shrink: 0;
  position: relative;
}
.cat-radar-panel canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
}
.cat-list-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.cat-row {
  border-left: 4px solid #94a3b8;
  padding: 16px 16px;
}
.cat-row:not(:nth-last-child(-n+2)) {
  border-bottom: 1px solid #f1f5f9;
}
/* 5개 항목 — 마지막 홀수 행이 혼자일 때 구분선 제거 */
.cat-row:nth-child(odd):last-child {
  border-bottom: none;
}
.cat-row-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cat-row-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cat-row-name { font-size: 14px; font-weight: 700; color: #1e293b; }
.cat-row-desc { font-size: 11px; color: #94a3b8; line-height: 1.45; max-width: 240px; }
.cat-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cat-row-score { font-size: 22px; font-weight: 800; line-height: 1; }
.cat-row-insight {
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
  margin-top: 4px;
}

/* ── Category Cards (legacy, kept for fallback) ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.cat-card {
  border: 1px solid #e2e8f0;
  border-top: 4px solid #94a3b8;
  border-radius: 12px;
  padding: 18px 20px;
}
.cat-name { font-size: 13px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.cat-desc { font-size: 11px; color: #94a3b8; line-height: 1.5; margin-bottom: 10px; }
.cat-score-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.cat-score { font-size: 30px; font-weight: 700; line-height: 1; }
.cat-lv { margin-bottom: 10px; }
.cat-insight {
  margin-top: 10px;
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
}
.cat-bar-wrap {
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.cat-bar { height: 100%; border-radius: 3px; transition: width .7s ease; }
.cat-count { font-size: 11px; color: #94a3b8; }

/* ── Level Badge ── */
.lv-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

/* ── Perspective List ── */
.persp-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.persp-row {
  border-left: 4px solid #94a3b8;
  padding: 16px 16px;
}
.persp-row:not(:nth-last-child(-n+2)) {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
  margin-bottom: 0;
}
.persp-row-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.persp-row-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.persp-row-name { font-size: 14px; font-weight: 700; color: #1e293b; }
.persp-row-desc { font-size: 11px; color: #94a3b8; line-height: 1.45; max-width: 240px; }
.persp-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.persp-row-score { font-size: 22px; font-weight: 800; line-height: 1; }
.persp-row-insight {
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
  margin-top: 4px;
}

/* ── 세부 평가기준별 분석 (축 블록) ── */
.crit-axis-block { margin-bottom: 26px; }
.crit-axis-block:last-child { margin-bottom: 0; }
.crit-axis-title {
  font-size: 13px;
  font-weight: 800;
  color: #1e40af;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 8px;
}

/* ── 인식 차이 분석 표 ── */
.table-wrap { overflow-x: auto; }
.gap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 560px;
}
.gap-table th, .gap-table td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
}
.gap-table th {
  color: #64748b;
  font-weight: 700;
  font-size: 12px;
  background: #f8fafc;
}
.gap-table td:first-child, .gap-table th:first-child { text-align: left; font-weight: 600; color: #1e293b; }
.gap-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.gap-badge.gap-ok { background: #f0fdf4; color: #16a34a; }
.gap-badge.gap-warn { background: #fff7ed; color: #ea580c; }
.gap-badge.gap-critical { background: #fef2f2; color: #dc2626; }

/* ── CROSS ── */
.cross-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.cross-score-wrap { flex-shrink: 0; }
.cross-score { font-size: 48px; font-weight: 700; line-height: 1; }
.cross-max { font-size: 14px; color: #94a3b8; margin-top: 2px; }
.cross-detail { flex: 1; }
.cross-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.65;
  margin-top: 8px;
}

/* ── Gap Analysis ── */
.gap-list { display: flex; flex-direction: column; gap: 12px; }
.gap-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
}
.gap-critical { background: #fef2f2; border: 1px solid #fecaca; }
.gap-warning  { background: #fffbeb; border: 1px solid #fde68a; }
.gap-ok       { background: #f0fdf4; border: 1px solid #bbf7d0; }
.gap-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.gap-content { flex: 1; }
.gap-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}
.gap-val {
  font-size: 16px;
  font-weight: 700;
  margin-left: 4px;
}
.gap-sub { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.gap-msg { font-size: 13px; color: #374151; line-height: 1.55; }

/* ── Open Responses ── */
.open-result-block {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
}
.open-result-q {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.6;
}
.open-result-a {
  font-size: 14px;
  color: #1e293b;
  line-height: 1.75;
  white-space: pre-wrap;
}

/* ── Result Footer ── */
.result-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 12px;
}

/* ════════════════════════════════
   WORD CLOUD
════════════════════════════════ */
.wc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.wc-item { display: flex; flex-direction: column; gap: 10px; }
.wc-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}
.wc-canvas {
  width: 100% !important;
  height: 320px !important;
  border-radius: 10px;
  background: #f8fafc;
  display: block;
}

/* ════════════════════════════════
   OPEN ANSWER AI SUMMARY
════════════════════════════════ */
.sum-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #1e40af;
}
.sum-block { margin-bottom: 20px; }
.sum-q-label {
  font-size: 13px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sum-q-label::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 14px;
  background: #1e40af;
  border-radius: 2px;
}
.sum-paragraph {
  font-size: 14px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 14px;
}
.sum-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.sum-tag {
  padding: 4px 11px;
  border-radius: 99px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #bfdbfe;
}
.sum-quote {
  font-size: 12.5px;
  color: #475569;
  background: #f8fafc;
  border-left: 3px solid #cbd5e1;
  padding: 7px 12px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 6px;
  font-style: italic;
  line-height: 1.6;
}
.sum-divider {
  border: none;
  border-top: 1px solid #f1f5f9;
  margin: 16px 0;
}

/* ════════════════════════════════
   AUDIENCE BANNER — 대상 안내
════════════════════════════════ */
.audience-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ede9fe;
  border: 1.5px solid #ddd6fe;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  text-align: left;
}
.audience-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.audience-title { font-size: 14px; font-weight: 800; color: #6d28d9; margin-bottom: 3px; }
.audience-desc { font-size: 12.5px; color: #5b21b6; line-height: 1.55; }

/* ════════════════════════════════
   CONFIRM CARD — 사전 전달된 응답자 정보 확인
════════════════════════════════ */
.confirm-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px 18px;
  margin-bottom: 10px;
  text-align: left;
}
.confirm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #eef1f6;
}
.confirm-row:last-child { border-bottom: none; }
.confirm-label {
  flex: 0 0 56px;
  font-size: 12.5px;
  font-weight: 700;
  color: #94a3b8;
}
.confirm-value { font-size: 14px; font-weight: 600; color: #1e293b; }
.confirm-hint { font-size: 12px; font-weight: 400; color: #94a3b8; }
.confirm-empty { color: #cbd5e1; font-weight: 500; font-style: italic; }
.confirm-note {
  font-size: 12px;
  color: #94a3b8;
  text-align: left;
  margin: 0 0 20px;
  line-height: 1.5;
}
.confirm-warning {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #b91c1c;
  font-weight: 600;
  text-align: left;
  line-height: 1.55;
  margin-bottom: 20px;
}

/* 직군 배지 (개발/비개발) — confirm-card 안에서도 재사용 */
.org-type-badge {
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
}
.org-type-badge.nondev { background: #ecfdf5; color: #065f46; }
.org-type-badge.dev    { background: #ede9fe; color: #6d28d9; }

/* [TEMP] 전체 문항 검수용 대상 선택 패널 — 검수 종료 후 제거 가능 */
.dev-preview-panel {
  background: #fffbeb;
  border: 1.5px dashed #f59e0b;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  text-align: left;
}
.dev-preview-title {
  font-size: 12px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 8px;
}
.dev-preview-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.dev-preview-row:last-child { margin-bottom: 0; }
.dev-preview-btn {
  font-size: 12.5px;
  font-weight: 600;
  color: #92400e;
  background: #fff;
  border: 1.5px solid #fcd34d;
  border-radius: 20px;
  padding: 5px 14px;
  cursor: pointer;
  transition: all .15s ease;
}
.dev-preview-btn:hover { background: #fef3c7; }
.dev-preview-btn.active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}

/* ════════════════════════════════
   VIEW TOGGLE (result.html)
════════════════════════════════ */
.view-toggle-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 24px 0;
}
.view-toggle {
  display: flex;
  flex-wrap: wrap;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.vt-btn {
  flex: 1 0 auto;
  padding: 9px 16px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Noto Sans KR', sans-serif;
  color: #64748b;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.vt-btn + .vt-btn { border-left: 1.5px solid #e2e8f0; }
.vt-btn.active { background: #1e40af; color: #fff; }
.vt-btn:hover:not(.active) { background: #eff6ff; color: #1e40af; }

/* ════════════════════════════════
   INDIVIDUAL RESULT CARDS
════════════════════════════════ */
.icard { padding: 20px 24px; }
.icard-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.icard-rank {
  font-size: 22px;
  font-weight: 900;
  color: #cbd5e1;
  min-width: 28px;
  text-align: center;
}
.icard-info { flex: 1; min-width: 100px; }
.icard-name { font-size: 16px; font-weight: 700; color: #1e293b; }
.icard-sub-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.icard-team-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 20px;
  border: 1px solid #94a3b8;
  background: #f1f5f9;
  color: #475569;
}
.icard-date { font-size: 12px; color: #94a3b8; }
.icard-lv-badge {
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.icard-overall {
  font-size: 24px;
  font-weight: 900;
  color: #1e40af;
  text-align: right;
  min-width: 80px;
}
.icard-overall span { font-size: 12px; font-weight: 500; color: #94a3b8; }
.icard-cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.icard-cat { text-align: center; }
.icard-cat-label { font-size: 10px; color: #94a3b8; font-weight: 500; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icard-cat-score { font-size: 16px; font-weight: 800; line-height: 1; margin-bottom: 4px; }

/* ════════════════════════════════
   TEAM VIEW CARDS
════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tcard {
  border: 1px solid #e2e8f0;
  border-top: 4px solid #94a3b8;
  border-radius: 14px;
  padding: 20px 22px;
  background: white;
}
.tcard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}
.tcard-name {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}
.tcard-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.tcard-job-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  letter-spacing: .3px;
}
.tcard-job-badge.dev    { background: #ede9fe; color: #6d28d9; }
.tcard-job-badge.nondev { background: #ecfdf5; color: #065f46; }
.tcard-count {
  font-size: 11px;
  color: #94a3b8;
}
.tcard-scores {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.tcard-overall {
  font-size: 30px;
  font-weight: 900;
  color: #1e40af;
  line-height: 1;
}
.tcard-overall-max {
  font-size: 12px;
  color: #94a3b8;
}
.tcard-cats {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
}
.tcard-cat-row {
  display: grid;
  grid-template-columns: 72px 36px 1fr;
  align-items: center;
  gap: 8px;
}
.tcard-cat-label { font-size: 11px; color: #64748b; font-weight: 500; }
.tcard-cat-score { font-size: 12px; font-weight: 700; text-align: right; }

/* ── Group Insight (팀별·조직별 카드 하단) ── */
.group-insight {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.gi-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.gi-label {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  flex-shrink: 0;
}
.gi-strong { background: #f0fdf4; color: #15803d; }
.gi-weak   { background: #fef2f2; color: #dc2626; }
.gi-cat { font-weight: 600; }
.gi-gap {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.gi-warn { color: #dc2626; font-weight: 600; }
.gi-advice {
  font-size: 11px;
  color: #475569;
  line-height: 1.55;
  background: #f8fafc;
  border-radius: 6px;
  padding: 6px 8px;
  margin-top: 2px;
}

.analysis-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1e40af;
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
}
.analysis-text {
  font-size: 14px;
  color: #334155;
  line-height: 1.8;
}
.analysis-text strong { color: #1e293b; }

.org-team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.org-team-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid;
}
.team-compare-chart-wrap {
  position: relative;
  height: 360px;
  max-width: 560px;
  margin: 0 auto;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 640px) {
  .tb-sub, .tb-autosave { display: none; }
  .start-card { padding: 32px 20px; }
  .persp-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .likert-opts { gap: 4px; }
  .cross-row { flex-direction: column; }
  .hero-level { font-size: 40px; }
  .hero-score { font-size: 18px; }
  .icard-cats { grid-template-columns: repeat(3, 1fr); }
  .view-toggle-wrap { padding: 12px 16px 0; }
  .wc-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .cat-radar-panel { width: 100%; height: 300px; }
  .cat-list-panel { grid-template-columns: 1fr; }
  .persp-list { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .cat-grid { grid-template-columns: 1fr; }
  .likert-label { font-size: 10.5px; padding: 8px 2px 10px; }
}

/* 문항 목록 — 화면이 좁으면 좌측 고정 목록 대신 상단 가로 스크롤 바로 전환 */
@media (max-width: 900px) {
  .quiz-shell { flex-direction: column; }
  .sidebar {
    flex: none;
    height: auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 12px 16px;
  }
  .sb-head { margin-bottom: 0; flex-shrink: 0; }
  .sb-summary, .sb-legend { display: none; }
  .q-flat-grid { grid-template-columns: none; grid-auto-flow: column; }
  .q-chip { width: 32px; height: 32px; }
  .quiz-content { padding: 24px 20px; }
  .quiz-nav-bar { padding: 14px 20px; }
}

/* ════════════════════════════════
   PRINT
════════════════════════════════ */
@media print {
  .no-print { display: none !important; }
  .site-header { position: static; }
  .result-hero,
  .stage-current-card,
  .stage-dot {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .r-section {
    box-shadow: none;
    border: 1px solid #e2e8f0;
    break-inside: avoid;
  }
}
