/* =========================================================
   모의 경찰조사 — 디자인
   색을 바꾸고 싶으면 아래 :root 안의 값만 바꾸면 됩니다.
   ========================================================= */
:root {
  --navy: #0f1f3d;        /* 포인트 색 (다크네이비) */
  --navy-soft: #24375c;
  --ink: #14181f;         /* 본문 글자 */
  --ink-sub: #555d6b;     /* 보조 글자 */
  --line: #e3e6ec;        /* 구분선 */
  --tint: #f6f7f9;        /* 옅은 배경 */
  --white: #ffffff;
  --radius: 6px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap.narrow { max-width: 760px; }

/* ---------- 맨 위 메뉴 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
.brand-text small { font-size: 12px; color: var(--ink-sub); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-sub);
  border-radius: var(--radius);
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--navy); }
.main-nav a.is-active { font-weight: 700; }
.main-nav .nav-cta {
  margin-left: 8px;
  padding: 10px 18px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}
.main-nav .nav-cta:hover,
.main-nav .nav-cta.is-active { background: var(--navy-soft); color: var(--white); }

.menu-toggle {
  display: none;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

/* ---------- 진술 원칙 띠 ---------- */
.principle-bar {
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  line-height: 1.55;
}
.principle-bar .wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.principle-label {
  flex: none;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
}

/* ---------- 공통 글자 ---------- */
.eyebrow {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy-soft);
}
h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--navy);
}
h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--navy);
}
h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.lead { font-size: 17px; color: var(--ink-sub); }
.page-title { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 24px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-soft); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn-outline:hover { background: var(--tint); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* ---------- 소개: 첫 영역 ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
  padding-top: 80px;
  padding-bottom: 80px;
}
.hero .lead { margin-top: 24px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-sub); }

.sample-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
}
.sample-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-sub);
}
.sample-q {
  margin: 18px 0 24px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.sample-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.sample-label { font-size: 13px; font-weight: 700; color: var(--ink-sub); }
.sample-line { height: 10px; background: var(--tint); border-radius: 3px; }
.sample-line.short { width: 60%; }
.sample-fixed { font-size: 15px; font-weight: 600; color: var(--ink); }

/* ---------- 구역 ---------- */
.section { padding: 80px 0; }
.section-tint { background: var(--tint); }
.section h2 { margin-bottom: 40px; }

/* 사용 방법 4단계 */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--navy);
}
.steps li {
  padding: 28px 24px 8px 0;
  border-right: 1px solid var(--line);
}
.steps li + li { padding-left: 24px; }
.steps li:last-child { border-right: 0; padding-right: 0; }
.step-no {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy-soft);
}
.steps h3 { margin-bottom: 10px; }
.steps p { font-size: 15px; color: var(--ink-sub); }

/* 원칙 카드 3개 */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card h3 { margin-bottom: 12px; color: var(--navy); }
.card p { font-size: 15px; color: var(--ink-sub); }

/* 조사 당일 안내 소개 */
.guide-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.guide-teaser h2 { margin-bottom: 16px; }
.guide-teaser .lead { max-width: 36em; }
.guide-teaser .btn { flex: none; }

/* 아직 만들지 않은 화면 표시 */
.placeholder-box {
  margin-bottom: 24px;
  padding: 40px 24px;
  text-align: center;
  color: var(--ink-sub);
  background: var(--tint);
  border: 1px dashed #c9ced8;
  border-radius: var(--radius);
}

/* ---------- 맨 아래 ---------- */
.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.footer-firm {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--ink);
}
.footer-firm span { color: var(--ink-sub); }
.footer-note { max-width: 62em; font-size: 13px; color: var(--ink-sub); }

/* =========================================================
   태블릿 (가로 960px 이하)
   ========================================================= */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
  .sample-card { max-width: 520px; }
  .section { padding: 64px 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
  .steps li:nth-child(2n) { border-right: 0; padding-right: 0; }
  .steps li:nth-child(2n+1) { padding-left: 0; }
  .steps li:nth-last-child(-n+2) { border-bottom: 0; }
  .cards-3 { grid-template-columns: 1fr; }
  .guide-teaser { flex-direction: column; align-items: flex-start; gap: 28px; }
}

/* =========================================================
   휴대폰 (가로 640px 이하)
   ========================================================= */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .header-inner { min-height: 60px; flex-wrap: wrap; }
  .menu-toggle { display: inline-block; }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 4px 0 16px;
    gap: 4px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 4px; font-size: 16px; }
  .main-nav .nav-cta { margin: 8px 0 0; padding: 14px; text-align: center; }

  .principle-bar { font-size: 13px; }
  .principle-bar .wrap { flex-direction: column; align-items: flex-start; gap: 6px; }

  .hero-inner { padding-top: 40px; padding-bottom: 48px; }
  h1 br, h2 br { display: none; }
  .lead { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .sample-card { padding: 22px; }
  .sample-q { font-size: 18px; }

  .section { padding: 52px 0; }
  .section h2 { margin-bottom: 28px; }
  .steps { grid-template-columns: 1fr; }
  .steps li,
  .steps li + li,
  .steps li:nth-child(2n) { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps li:last-child { border-bottom: 0; padding-bottom: 0; }
  .card { padding: 22px; }
  .guide-teaser .btn { width: 100%; }
}

/* 인쇄할 때는 메뉴를 숨깁니다 */
@media print {
  .site-header, .menu-toggle { display: none; }
}

/* =========================================================
   준비 화면 (입력 양식)
   ========================================================= */
.page-lead { margin: -8px 0 40px; }

.form-block {
  margin: 0 0 28px;
  padding: 28px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form-block legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  margin-left: -8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.form-block legend small,
.field label small {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-sub);
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.form-block legend small.req { color: var(--white); background: var(--navy); border-color: var(--navy); }
.block-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 14px;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
}
.help { font-size: 14px; color: var(--ink-sub); }
.form-block > .help { margin-bottom: 20px; }

.field { margin-top: 20px; min-width: 0; }
.field > label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}
.field .help { margin-top: 6px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

input[type="text"], input[type="password"], input[type="date"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #c9ced8;
  border-radius: var(--radius);
}
textarea { resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}
::placeholder { color: #9aa1ad; }

/* 기록 넣기 */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 16px;
  text-align: center;
  background: var(--tint);
  border: 1px dashed #aeb5c2;
  border-radius: var(--radius);
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--navy); background: #eef1f6; }
.dropzone:focus-within { outline: 2px solid var(--navy); outline-offset: 2px; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone strong { font-size: 16px; color: var(--navy); }
.dropzone span { font-size: 14px; color: var(--ink-sub); }

.doc-list { margin-top: 12px; }
.doc-item {
  display: grid;
  grid-template-columns: 1fr 180px auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.doc-info { min-width: 0; }
.doc-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-status { font-size: 13px; color: var(--ink-sub); }
.doc-status.warn { color: #8a4b00; }
.doc-item select { min-height: 40px; padding: 6px 10px; font-size: 14px; }
.doc-remove {
  min-height: 40px;
  padding: 6px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink-sub);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.doc-remove:hover { color: var(--navy); border-color: var(--navy); }

/* 입장 선택 */
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-card { position: relative; display: block; cursor: pointer; }
.role-card input { position: absolute; opacity: 0; }
.role-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 20px;
  border: 1px solid #c9ced8;
  border-radius: var(--radius);
}
.role-body strong { font-size: 19px; color: var(--navy); }
.role-body span { font-size: 14px; color: var(--ink-sub); }
.role-card input:checked + .role-body {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
  background: #f3f5f9;
}
.role-card input:focus-visible + .role-body { outline: 2px solid var(--navy); outline-offset: 2px; }

.confirm-box {
  margin-top: 16px;
  padding: 18px 20px;
  background: var(--tint);
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.confirm-box p:first-child { font-weight: 600; }
.confirm-box .help { margin-top: 8px; }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-weight: 600;
  cursor: pointer;
}
.check.small { font-size: 14px; font-weight: 500; color: var(--ink-sub); }
.check input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }

/* 날짜·금액 */
.date-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.date-row input { width: auto; flex: 1 1 160px; max-width: 220px; }
.date-sep { font-size: 14px; color: var(--ink-sub); }
.amount-row { display: flex; align-items: center; gap: 10px; max-width: 320px; }
.amount-row input { text-align: right; font-variant-numeric: tabular-nums; }

/* 기록에서 찾은 후보 */
.suggest {
  margin-top: 12px;
  padding: 12px 14px;
  font-size: 14px;
  background: var(--tint);
  border-radius: var(--radius);
}
.suggest-title { display: block; margin-bottom: 8px; color: var(--ink-sub); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px;
  padding: 6px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid #c9ced8;
  border-radius: 999px;
  cursor: pointer;
}
.chip:hover { border-color: var(--navy); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.error { margin-top: 12px; font-size: 14px; font-weight: 600; color: #a61b1b; }

@media (max-width: 640px) {
  .form-block { padding: 20px 18px; }
  .field-pair { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .doc-item { grid-template-columns: 1fr auto; }
  .doc-info { grid-column: 1 / -1; }
  .date-row input { max-width: none; flex-basis: 100%; }
  .form-actions { flex-direction: column; align-items: stretch; }
}

/* ---------- 죄명 여러 개 선택 ---------- */
.crime-group { margin-top: 18px; }
.crime-group-title { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink-sub); }
.crime-options { display: flex; flex-wrap: wrap; gap: 8px; }
.crime-option { position: relative; cursor: pointer; }
.crime-option input { position: absolute; opacity: 0; }
.crime-option span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #c9ced8;
  border-radius: var(--radius);
}
.crime-option:hover span { border-color: var(--navy); }
.crime-option input:checked + span {
  color: var(--white);
  font-weight: 600;
  background: var(--navy);
  border-color: var(--navy);
}
.crime-option input:checked + span::before { content: "✓"; margin-right: 6px; }
.crime-option input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }

.add-row { display: flex; gap: 8px; }
.add-row .btn { flex: none; min-height: 48px; }

/* ---------- 죄명별 사실관계 카드 ---------- */
.empty-note {
  padding: 24px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-sub);
  background: var(--tint);
  border-radius: var(--radius);
}
.case-card {
  margin-top: 16px;
  padding: 4px 22px 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
}
.case-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 0;
}
.case-title { font-size: 18px; font-weight: 700; color: var(--navy); }
.case-title small { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--ink-sub); }
.case-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.link-btn {
  padding: 6px 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn.muted { color: var(--ink-sub); }

@media (max-width: 640px) {
  .case-card { padding: 2px 16px 18px; }
  .crime-option span { font-size: 14px; padding: 6px 12px; }
}

/* ---------- 질문 묶음 제목 ---------- */
.section h2.q-section {
  margin: 36px 0 0;
  padding-bottom: 10px;
  font-size: 20px;
  border-bottom: 2px solid var(--navy);
}
.q-no {
  flex: none;
  width: 28px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-soft);
  font-variant-numeric: tabular-nums;
}
.q-text { font-size: 16px; }

/* =========================================================
   모의조사 화면 (한 문항씩)
   ========================================================= */
.practice-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.practice-top .eyebrow { margin-bottom: 4px; }
.practice-count { font-size: 15px; color: var(--ink-sub); }
.practice-count strong { font-size: 22px; color: var(--navy); letter-spacing: -0.02em; }
.practice-jump { display: flex; align-items: center; gap: 8px; }
.practice-jump label { flex: none; font-size: 13px; color: var(--ink-sub); }
.practice-jump select { min-height: 40px; padding: 6px 10px; font-size: 14px; max-width: 240px; }

.progress { height: 4px; margin: 14px 0 24px; background: var(--line); border-radius: 2px; }
.progress-fill { height: 100%; background: var(--navy); border-radius: 2px; }

.question-card {
  padding: 32px 28px;
  margin-bottom: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
}
.question-tag { margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--navy-soft); }
.question-text {
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.55;
  letter-spacing: -0.02em;
}
.question-text:focus { outline: none; }

.direction-box {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 20px;
  padding: 14px 16px;
  font-size: 14px;
  background: var(--tint);
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.direction-box strong { color: var(--navy); }
.direction-box span { color: var(--ink-sub); }

.practice-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-top: 28px; }
.btn:disabled { color: #a9afba; border-color: var(--line); background: var(--tint); cursor: default; }

/* 연습 화면 맨 위: 이동 버튼과 저장 상태 */
.practice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -24px 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.save-status { font-size: 13px; color: var(--ink-sub); }
.practice-bar .save-status { flex: 1; text-align: center; }
#prepare-form > .save-status { margin-top: 12px; }

/* 소개 화면: 이어서 하기 */
.resume-box {
  margin-top: 20px;
  padding: 16px 18px;
  max-width: 34em;
  font-size: 15px;
  background: var(--tint);
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.resume-box p span { color: var(--ink-sub); }
.resume-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* =========================================================
   정리 화면
   ========================================================= */
.summary-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 24px 0; }
.summary-tools .check { margin-top: 0; }
.print-note {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-sub);
  background: var(--tint);
  border-radius: var(--radius);
}
.print-note strong { margin-right: 6px; color: var(--navy); }

.sum-item { padding: 18px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.sum-q { display: flex; gap: 14px; font-weight: 600; }
.sum-flag {
  display: inline-block;
  margin-left: 8px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  border-radius: 3px;
  vertical-align: 2px;
}
.sum-row { margin: 10px 0 0 42px; }
.sum-label { display: block; font-size: 12px; font-weight: 700; color: var(--navy-soft); }
.sum-text { font-size: 15px; white-space: pre-wrap; }
.sum-text.is-empty { color: #9aa1ad; }
.sum-item .link-btn { margin: 6px 0 0 42px; font-size: 13px; }

@media (max-width: 640px) {
  .practice-top { flex-direction: column; align-items: stretch; }
  .practice-bar { flex-wrap: wrap; margin-top: -8px; }
  .practice-bar .save-status { order: 3; flex-basis: 100%; text-align: left; }
  .practice-jump select { max-width: none; flex: 1; }
  .question-card { padding: 24px 20px; }
  .practice-nav { grid-template-columns: 1fr 1.6fr; }
  .practice-nav .btn { padding-left: 12px; padding-right: 12px; }
  .sum-row, .sum-item .link-btn { margin-left: 0; }
  .summary-tools .btn { width: 100%; }
}

/* =========================================================
   조사 당일 안내
   ========================================================= */
.guide-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.tabs { display: inline-flex; border: 1px solid #c9ced8; border-radius: var(--radius); overflow: hidden; }
.tab {
  min-height: 44px;
  padding: 8px 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-sub);
  background: var(--white);
  border: 0;
  cursor: pointer;
}
.tab + .tab { border-left: 1px solid #c9ced8; }
.tab.is-active { color: var(--white); background: var(--navy); }

.flow-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.flow-no {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 50%;
}
.flow-item strong { display: block; color: var(--ink); }
.flow-item p { font-size: 15px; color: var(--ink-sub); }

.right-item { padding: 20px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.right-item h3 { margin-bottom: 6px; color: var(--navy); }
.right-item p { font-size: 15px; color: var(--ink); }
.right-item .right-law { margin-top: 6px; font-size: 13px; color: var(--ink-sub); }

.guide-help { margin-top: 16px; }
.checklist { margin-top: 8px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.check-item input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); }
.check-item span { font-size: 16px; }
.check-item input:checked + span { color: var(--ink-sub); }
.guide-check-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-sub);
}

.bring { margin-top: 12px; }
.bring li { position: relative; padding: 8px 0 8px 18px; font-size: 16px; }
.bring li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 6px; height: 6px; background: var(--navy); border-radius: 50%; }
.guide-note { margin-top: 36px; }
.shared-note { margin-top: 6px; }

@media (max-width: 640px) {
  .tab { padding: 8px 18px; }
}

/* ---------- 인쇄 ---------- */
@media print {
  .site-header, .principle-bar, .site-footer, .no-print { display: none !important; }
  body { font-size: 11pt; }
  .section { padding: 0; }
  .wrap.narrow { max-width: none; padding: 0; }
  .page-title { font-size: 18pt; margin-bottom: 8px; }
  .print-note { margin-top: 12px; border: 1px solid #999; background: none; }
  .sum-text.is-empty { visibility: hidden; min-height: 3em; }
  .sum-flag { color: #000; background: none; border: 1px solid #000; }
}

/* ---------- 기록 자동 분석 결과 ---------- */
.analysis-note {
  margin-top: 16px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  background: #eef1f6;
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.auto-note {
  margin-top: 12px;
  padding: 8px 12px;
  font-size: 13px;
  color: #8a4b00;
  background: #fdf6e9;
  border-radius: var(--radius);
}
.quote-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}
.quote-title small {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-sub);
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.quote-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  margin-top: 8px;
  background: var(--tint);
  border-radius: var(--radius);
}
.quote-body { flex: 1; min-width: 0; }
.quote-src { display: block; font-size: 12px; font-weight: 700; color: var(--navy-soft); }
.quote-text { font-size: 14px; color: var(--ink); }
.quote-item .doc-remove { flex: none; min-height: 36px; }
.loose-quotes { margin-top: 16px; }

/* ---------- AI 사용 안내와 동의 ---------- */
.ai-notice {
  margin-bottom: 20px;
  padding: 18px 20px;
  font-size: 14px;
  background: #fdf6e9;
  border-left: 3px solid #b8741a;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.ai-notice-title { display: block; margin-bottom: 6px; font-size: 15px; color: #6b3a00; }
.ai-notice > p, .ai-notice > ul { color: #4a3a22; }
.ai-notice ul { margin-top: 8px; padding-left: 18px; list-style: disc; }
.ai-notice li { margin-top: 5px; }
.ai-notice .check { color: var(--ink); }
.ai-notice .help { margin-top: 8px; }
.ai-status { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--navy); }
#ai-preview { margin-top: 8px; }
#ai-payload { font-size: 13px; line-height: 1.6; background: var(--white); }
#ai-added { margin-top: 20px; }

/* ---------- 관리자 설정 ---------- */
.ai-nokey { margin-top: 12px; font-weight: 600; color: #6b3a00; }
.footer-admin { margin-top: 16px; font-size: 12px; }
.footer-admin a { color: #9aa1ad; text-underline-offset: 3px; }
.footer-admin a:hover { color: var(--navy); }
#admin .print-note { margin-top: 8px; }

/* ---------- 스캔본 'AI로 읽기' ---------- */
.scan-action { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; }
.scan-action .help { font-size: 13px; }
