/* IAI보험인정지수 — FIRI / McKinsey 스타일
   진한 남색 #1a365d · 민트 #2dd4bf · 오렌지 #f97316 */

:root {
  --navy: #1a365d;
  --navy-900: #12253f;
  --navy-700: #24476f;
  --mint: #2dd4bf;
  --mint-dark: #0f766e;
  --mint-soft: #e6fbf8;
  --orange: #f97316;
  --orange-soft: #fff4e8;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e2e8f0;
  --line-strong: #cfd8e3;
  --bg: #f4f6f9;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(18, 37, 63, .08);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "맑은 고딕", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- 상단 바 ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 38px; width: auto; display: block; }
.brand .divider { width: 1px; height: 26px; background: var(--line-strong); }
.brand .product { font-weight: 800; color: var(--navy); letter-spacing: -.01em; font-size: 17px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a, .nav button.linklike {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-700);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.nav a:hover, .nav button.linklike:hover { background: var(--mint-soft); text-decoration: none; }
.nav a.active { background: var(--navy); color: #fff; }

/* ---------- 공통 요소 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge.demo { background: var(--orange-soft); color: #9a3412; border: 1px solid #fed7aa; }
.badge.live { background: var(--mint-soft); color: var(--mint-dark); border: 1px solid #99f6e4; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--navy-700); text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(26, 54, 93, .18); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn.primary { background: linear-gradient(135deg, var(--navy), #24507f); }
.btn.accent { background: var(--orange); }
.btn.accent:hover { background: #ea580c; }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--mint-soft); border-color: var(--mint); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.mint { background: var(--mint-dark); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

h1, h2, h3, h4 { color: var(--navy); line-height: 1.3; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.tiny { font-size: 12px; }

/* ---------- 홈 히어로 ---------- */
.hero {
  background:
    radial-gradient(1100px 380px at 85% -30%, rgba(45, 212, 191, .28), transparent 60%),
    radial-gradient(700px 320px at 8% 120%, rgba(249, 115, 22, .16), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy) 55%, #20456f);
  color: #fff;
  padding: 58px 0 46px;
  margin-bottom: 34px;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: .18em;
  font-weight: 700;
  color: var(--mint);
  border: 1px solid rgba(45, 212, 191, .5);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); margin: 0 0 12px; font-weight: 800; }
.hero h1 .thin { font-weight: 400; color: #c7d2e0; }
.hero p.lead { max-width: 720px; margin: 0; color: #d7e0ec; font-size: 17px; }
.hero .hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- 홈 본문 ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 26px; align-items: start; }

.panel { padding: 26px 26px 30px; }
.panel h2 { font-size: 21px; margin: 0 0 4px; }
.panel .sub { color: var(--muted); font-size: 14px; margin: 0 0 20px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 7px; color: var(--navy); }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 4px; }
input[type="text"], input[type="password"], input[type="date"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, .18);
}
textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.type-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
}
.type-option:hover { border-color: var(--mint); }
.type-option input { margin-top: 4px; accent-color: var(--mint-dark); }
.type-option strong { display: block; font-size: 14.5px; color: var(--navy); }
.type-option span { font-size: 12.5px; color: var(--muted); }
.type-option:has(input:checked) { border-color: var(--mint-dark); background: var(--mint-soft); }

.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.form-actions .btn.primary { min-width: 220px; font-size: 17px; padding: 15px 26px; }

.notice-box {
  border-left: 4px solid var(--mint);
  background: var(--mint-soft);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: #134e4a;
}
.error-box {
  border-left: 4px solid var(--orange);
  background: var(--orange-soft);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  color: #9a3412;
  font-weight: 600;
  margin-bottom: 18px;
}

.side-card { padding: 22px 22px 24px; }
.side-card + .side-card { margin-top: 20px; }
.side-card h3 { font-size: 16.5px; margin: 0 0 14px; }
.area-list { list-style: none; padding: 0; margin: 0; }
.area-list li { margin-bottom: 13px; }
.area-list .row { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 5px; }
.area-list .row b { color: var(--navy); }
.area-list .bar { height: 7px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.area-list .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--mint-dark)); border-radius: 99px; }

.grade-mini { display: flex; flex-wrap: wrap; gap: 6px; }
.grade-mini span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  background: #eef2f7;
  border-radius: 6px;
  padding: 3px 8px;
}
.grade-mini span.hi { background: var(--navy); color: #fff; }

.recent { margin-top: 34px; }
.recent h2 { font-size: 20px; margin-bottom: 14px; }
.report-list { display: grid; gap: 12px; }
.report-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .15s, transform .15s;
}
.report-item:hover { border-color: var(--mint); transform: translateY(-1px); text-decoration: none; }
.report-item .info { min-width: 0; }
.report-item .title { font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-item .meta { font-size: 13px; color: var(--muted); }
.report-item .score { margin-left: auto; text-align: right; flex: 0 0 auto; }
.report-item .score b { font-size: 22px; color: var(--orange); }
.report-item .score span { display: block; font-size: 12px; color: var(--muted); }

/* ---------- 보고서 ---------- */
.report-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 0 10px;
}
.report-toolbar .spacer { flex: 1; }

.sheet {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(18, 37, 63, .10);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 40px;
}
.sheet-inner { padding: 0 0 40px; }

.rpt-header {
  background: linear-gradient(135deg, var(--navy-900), var(--navy));
  color: #fff;
  padding: 26px 34px 24px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}
.rpt-header .logo-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rpt-header .logo-card img { width: 100%; height: auto; display: block; }
.rpt-header .titles { min-width: 0; }
.rpt-header .kicker { font-size: 12px; letter-spacing: .16em; color: var(--mint); font-weight: 700; }
.rpt-header h1 { color: #fff; font-size: 27px; margin: 6px 0 8px; font-weight: 800; }
.rpt-header .rule { height: 3px; width: 100%; background: linear-gradient(90deg, var(--mint), rgba(45,212,191,0)); border-radius: 99px; margin: 8px 0 10px; }
.rpt-header .product { font-size: 16px; color: #e4ebf4; }
.rpt-header .date { font-size: 13px; color: #aebccd; margin-top: 4px; }

.rpt-body { padding: 30px 34px 0; }

.sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  margin: 34px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}
.sec-title::before { content: ""; width: 5px; height: 20px; background: var(--mint); border-radius: 2px; }
.sec-title .aside { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted); }

.overview-list { list-style: none; padding: 0; margin: 0; }
.overview-list li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.overview-list li b { color: var(--navy); }
.overview-list li:last-child { border-bottom: 0; }

table.rpt {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
table.rpt th, table.rpt td { border: 1px solid var(--line); padding: 11px 12px; }
table.rpt thead th { background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; text-align: center; }
table.rpt tbody tr:nth-child(even) td { background: #f7f9fc; }
table.rpt td.center, table.rpt th.center { text-align: center; }
table.rpt td.num { text-align: center; font-variant-numeric: tabular-nums; }
table.rpt tr.total td { background: var(--mint-soft) !important; font-weight: 800; color: var(--navy); border-top: 2px solid var(--mint); }
table.rpt tr.total td.big { color: var(--orange); font-size: 18px; }
table.rpt tr.current td { background: var(--mint-soft) !important; font-weight: 800; color: var(--navy); }
table.rpt tr.current td:first-child { color: var(--orange); }
table.rpt.compact { font-size: 13px; }
table.rpt.compact th, table.rpt.compact td { padding: 7px 8px; }

.table-note { font-size: 12.5px; color: var(--muted); margin-top: 7px; }

.conclusion {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
}
.conclusion .big-score { text-align: center; border-right: 1px solid var(--line); }
.conclusion .big-score .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.conclusion .big-score .value { font-size: 54px; font-weight: 800; color: var(--orange); line-height: 1.05; letter-spacing: -.02em; }
.conclusion .big-score .value small { font-size: 18px; color: var(--navy); font-weight: 700; margin-left: 4px; }
.conclusion .big-score .grade { margin-top: 6px; font-size: 15px; font-weight: 800; color: var(--navy); }

.gradebar { margin: 6px 0 10px; }
.gradebar .labels, .gradebar .segs, .gradebar .marks { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.gradebar .labels span { text-align: center; font-size: 11.5px; color: var(--muted); font-weight: 700; padding-bottom: 4px; }
.gradebar .labels span.current { color: var(--orange); }
.gradebar .segs span { height: 16px; border-radius: 3px; background: #e8edf3; }
.gradebar .segs span.filled { background: linear-gradient(90deg, #7ee8db, var(--mint)); }
.gradebar .segs span.current { background: var(--orange); }
.gradebar .marks span { text-align: center; font-size: 12px; color: transparent; }
.gradebar .marks span.current { color: var(--orange); }
.gradebar .caption { text-align: center; font-size: 12px; color: var(--orange); font-weight: 700; margin-top: -2px; }

.summary-quote {
  border-left: 4px solid var(--mint);
  background: #f7fafc;
  padding: 13px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 14.5px;
  color: #334155;
  margin-top: 16px;
}

.area-box {
  border: 1px solid var(--line);
  border-left: 4px solid var(--mint);
  border-radius: 0 10px 10px 0;
  padding: 18px 20px;
  margin-bottom: 14px;
  background: #fcfdff;
}
.area-box h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font-size: 17px; }
.area-box h3 .score { font-size: 14px; color: var(--orange); font-weight: 800; }
.area-box ul { margin: 0; padding-left: 18px; }
.area-box li { margin-bottom: 5px; font-size: 14.5px; }
.area-box .finding { margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14.5px; color: #374151; }
.area-box .finding b { color: var(--navy); }

.impl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.impl-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: #fff; }
.impl-card h4 { margin: 0 0 10px; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.impl-card.strengths h4 { color: var(--mint-dark); }
.impl-card.improvements h4 { color: #c2410c; }
.impl-card.recommend h4 { color: var(--navy); }
.impl-card ul { margin: 0; padding-left: 17px; }
.impl-card li { font-size: 14px; margin-bottom: 6px; }

.legal { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 6px; }
.legal h2 { font-size: 16px; margin: 18px 0 10px; }
.legal h3 { font-size: 14px; color: var(--navy); margin: 16px 0 6px; }
.legal p { font-size: 13px; color: #374151; margin: 0 0 7px; }
.legal ul { margin: 0 0 8px; padding-left: 18px; }
.legal li { font-size: 13px; color: #374151; margin-bottom: 2px; }

.institution { text-align: center; margin: 34px 0 8px; padding-top: 22px; border-top: 3px solid var(--mint); }
.institution img { width: 200px; max-width: 55%; height: auto; margin-bottom: 10px; }
.institution .line { font-weight: 800; color: var(--navy); font-size: 15px; }
.institution .sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.demo-ribbon {
  background: var(--orange-soft);
  border-bottom: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 34px;
}

/* ---------- 별지 ---------- */
.appendix { border-top: 2px solid var(--navy); margin-top: 42px; padding-top: 26px; }
.appendix .ap-head { text-align: center; margin-bottom: 18px; }
.appendix .ap-head .kicker { letter-spacing: .3em; font-size: 12px; color: var(--mint-dark); font-weight: 700; }
.appendix .ap-head h2 { font-size: 21px; margin: 4px 0 8px; }
.appendix .meta { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0; margin-bottom: 20px; }
.appendix h3 { font-size: 15.5px; margin: 26px 0 10px; padding: 7px 0 7px 12px; border-left: 4px solid var(--mint); background: #f7fafc; }
.appendix .url { font-size: 11.5px; color: var(--muted); word-break: break-all; }
.appendix .pill { display: inline-block; background: #eef2f7; border-radius: 6px; padding: 1px 7px; font-size: 12px; color: var(--navy); font-weight: 700; margin: 0 4px 4px 0; }

/* ---------- 안내/메시지 페이지 ---------- */
.center-card { max-width: 620px; margin: 70px auto; padding: 40px; text-align: center; }
.center-card h1 { font-size: 24px; margin-bottom: 10px; }

/* ---------- 관리자 ---------- */
.admin-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 26px 0 18px; }
.admin-head h1 { font-size: 24px; margin: 0; }
.admin-head .spacer { flex: 1; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs button {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}
.tabs button.active { color: var(--navy); border-bottom-color: var(--mint); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.editor-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.editor-toolbar .spacer { flex: 1; }
textarea.policy-editor {
  width: 100%;
  min-height: 560px;
  font-family: "D2Coding", "Consolas", "Menlo", monospace;
  font-size: 14px;
  line-height: 1.7;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fbfcfe;
  tab-size: 2;
}
.guide { font-size: 14px; }
.guide code, code {
  background: #eef2f7;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 13px;
  font-family: "D2Coding", Consolas, monospace;
}
.guide ul { padding-left: 20px; }
.guide li { margin-bottom: 5px; }
pre.md {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  font-family: inherit;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
  max-height: 720px;
  overflow: auto;
}
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv th, .kv td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.kv th { color: var(--navy); background: #f7f9fc; font-weight: 700; }
.kv td.num { text-align: right; font-variant-numeric: tabular-nums; }
.alert { padding: 13px 16px; border-radius: 10px; margin-bottom: 14px; font-size: 14.5px; }
.alert.ok { background: var(--mint-soft); color: #115e59; border: 1px solid #99f6e4; }
.alert.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }

/* ---------- 분석 중 오버레이 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 37, 63, .55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.overlay.show { display: flex; }
.overlay .box { background: #fff; border-radius: 16px; padding: 32px 34px; width: min(520px, 100%); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.overlay h3 { margin: 0 0 6px; font-size: 20px; }
.overlay .steps { list-style: none; padding: 0; margin: 18px 0 0; }
.overlay .steps li { display: flex; gap: 10px; align-items: center; padding: 8px 0; color: var(--muted); font-size: 15px; }
.overlay .steps li .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: transparent; flex: 0 0 auto; }
.overlay .steps li.active { color: var(--navy); font-weight: 700; }
.overlay .steps li.active .dot { border-color: var(--orange); border-top-color: transparent; animation: spin 1s linear infinite; }
.overlay .steps li.done { color: var(--mint-dark); }
.overlay .steps li.done .dot { background: var(--mint); border-color: var(--mint); color: #fff; }
.overlay .progress { height: 8px; background: #eef2f7; border-radius: 99px; overflow: hidden; margin-top: 18px; }
.overlay .progress span { display: block; height: 100%; width: 8%; background: linear-gradient(90deg, var(--mint), var(--orange)); border-radius: 99px; transition: width .5s ease; }
.overlay .error { display: none; margin-top: 16px; }
.overlay .error.show { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 푸터 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 26px 0 34px;
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.site-footer .right { margin-left: auto; display: flex; gap: 16px; }

/* ---------- 인쇄 ---------- */
@media print {
  body { background: #fff; font-size: 10.5pt; }
  .site-header, .site-footer, .report-toolbar, .overlay { display: none !important; }
  .wrap { width: 100%; }
  .sheet { border: 0; box-shadow: none; margin: 0; border-radius: 0; }
  .rpt-body, .rpt-header { padding-left: 0; padding-right: 0; }
  .rpt-header { padding: 16px 18px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .area-box, .impl-card, .conclusion { break-inside: avoid; }
  .appendix { break-before: page; }
  .legal { break-before: page; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .rpt-header { grid-template-columns: 1fr; }
  .rpt-header .logo-card { max-width: 240px; }
  .conclusion { grid-template-columns: 1fr; }
  .conclusion .big-score { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .impl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { width: calc(100% - 24px); }
  .panel, .rpt-body { padding-left: 16px; padding-right: 16px; }
  .rpt-header { padding: 18px; }
  .grid-2, .type-grid { grid-template-columns: 1fr; }
  .overview-list li { grid-template-columns: 88px 1fr; }
  .site-header .wrap { gap: 10px; min-height: 60px; flex-wrap: wrap; padding: 8px 0; }
  .nav { width: 100%; overflow-x: auto; }
  table.rpt { font-size: 13px; }
  table.rpt th, table.rpt td { padding: 7px 6px; }
  .report-item { flex-wrap: wrap; }
  .report-item .score { margin-left: 0; }
}
