/* 독립 기술검증 성적서 샘플 · 모눈종이 + 잉크 블루 + 도장 빨강 */
:root {
  --bg: #F7F5EE;
  --grid: #ECE8DD;
  --grid-major: #E2DDCF;
  --surface: #FFFEFA;
  --text: #1D2433;
  --muted: #5F6678;
  --line: #CFCABB;
  --primary: #233A8B;
  --accent: #C8102E;
  --ok: #2C7A4B;
  --warn: #9C6514;
  --danger: #C8102E;
  --ink: #1D2433;
  --tint-primary: #E9ECF6;
  --tint-accent: #FBEAEC;
  --tint-ok: #E7F2EB;
  --tint-warn: #F7EEDD;
  --serif: "Hahmlet", "Pretendard Variable", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body.vf {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  word-break: keep-all;
  overflow-wrap: anywhere;
  padding-bottom: 72px;
}
a { color: var(--primary); }
button { font: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.vf-mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -0.01em; white-space: nowrap; }
.vf-code { font-family: var(--mono); font-size: 0.92em; white-space: nowrap; padding: 0 4px; background: var(--bg); border: 1px solid var(--line); }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ── 헤더 ─────────────────────────────── */
.vf-header {
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
}
.vf-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.vf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.vf-brand__mark { color: var(--primary); transform: rotate(-6deg); flex: none; }
.vf-brand__text { display: inline-flex; align-items: baseline; gap: 8px; }
.vf-brand__name { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.vf-brand__tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 0 6px;
  line-height: 20px;
}
.vf-nav { display: flex; justify-content: center; gap: 4px; }
.vf-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.vf-nav__link:hover { color: var(--ink); }
.vf-nav__link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--primary); }
.vf-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.vf-reset:hover { background: var(--ink); color: var(--surface); }

/* ── 본문 틀 ─────────────────────────── */
.vf-main {
  max-width: 920px;
  margin: 0 auto;
  overflow-x: clip;
  overflow-clip-margin: 8px;
  padding: 40px 24px 24px;
  display: grid;
  gap: 48px;
}
.vf-paper {
  background: var(--surface);
  border: 2px solid var(--ink);
}
.vf-h1 { font-family: var(--serif); font-weight: 800; font-size: 30px; line-height: 1.3; letter-spacing: -0.03em; }
.vf-h2 { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.4; letter-spacing: -0.02em; }
.vf-lead { font-size: 16px; color: var(--muted); margin-top: 6px; }
.vf-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
.vf-tag {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  padding: 0 6px;
  border: 1.5px solid currentColor;
}
.vf-tag--sample { color: var(--accent); background: var(--tint-accent); }

.vf-block { display: grid; gap: 18px; scroll-margin-top: 24px; }
.vf-block__head { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.vf-block__desc { color: var(--muted); font-size: 15px; }

/* ── 표지 ───────────────────────────── */
.vf-cover {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "head seal" "meta meta";
  position: relative;
}
.vf-cover__head { grid-area: head; padding: 28px 28px 24px; }
.vf-cover__note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}
.vf-cover__seal { grid-area: seal; padding: 24px 32px 0 0; display: flex; align-items: flex-start; }
.vf-seal {
  width: 124px;
  height: 124px;
  border: 4px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  display: grid;
  place-content: center;
  justify-items: center;
  transform: rotate(-6deg);
  position: relative;
  text-align: center;
  line-height: 1.1;
}
.vf-seal::after { content: ""; position: absolute; inset: 6px; border: 1.5px solid var(--accent); border-radius: 50%; }
.vf-seal__top, .vf-seal__sub { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.vf-seal__main { font-family: var(--serif); font-weight: 800; font-size: 32px; letter-spacing: 0.04em; margin: 4px 0; }
.vf-meta {
  grid-area: meta;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 2px solid var(--ink);
}
.vf-meta__cell { padding: 12px 28px; border-bottom: 1px solid var(--line); }
.vf-meta__cell:nth-child(odd) { border-right: 1px solid var(--line); }
.vf-meta__cell:nth-last-child(-n+2) { border-bottom: 0; }
.vf-meta dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.vf-meta dd { font-size: 15px; font-weight: 500; }

/* ── 판정 요약 ───────────────────────── */
.vf-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--surface);
  margin-top: -16px;
}
.vf-count { padding: 14px 20px 12px; display: grid; gap: 2px; border-right: 1px solid var(--line); }
.vf-count:nth-child(4) { border-right: 0; }
.vf-count__num { font-family: var(--mono); font-weight: 600; font-size: 30px; line-height: 1.1; }
.vf-count__label { font-size: 14px; font-weight: 700; }
.vf-count--pass { color: var(--ok); }
.vf-count--cond { color: var(--primary); }
.vf-count--recheck { color: var(--warn); }
.vf-count--fail { color: var(--accent); }
.vf-summary__foot {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding: 6px 20px;
  font-size: 13px;
  color: var(--muted);
}

/* ── 일정 ───────────────────────────── */
.vf-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}
.vf-timeline::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--ink);
}
.vf-timeline__step { position: relative; display: grid; gap: 2px; padding-right: 16px; }
.vf-timeline__marker {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 600;
  background: var(--surface);
  border: 2px solid var(--ink);
  margin-bottom: 10px;
  position: relative;
}
.vf-timeline__step--done .vf-timeline__marker { background: var(--ink); color: var(--surface); }
.vf-timeline__step--now .vf-timeline__marker { border-color: var(--accent); color: var(--accent); outline: 2px solid var(--accent); outline-offset: 3px; }
.vf-timeline__when { font-size: 14px; color: var(--muted); font-weight: 600; }
.vf-timeline__title { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.35; }
.vf-timeline__note { font-size: 14px; color: var(--muted); }
.vf-timeline__state {
  justify-self: start;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 0 6px;
  border: 1.5px solid currentColor;
}
.vf-timeline__step--done .vf-timeline__state { color: var(--ink); }
.vf-timeline__step--now .vf-timeline__state { color: var(--accent); background: var(--tint-accent); }
.vf-timeline__step--next .vf-timeline__state { color: var(--muted); border-style: dashed; }

/* ── 도장 (시그니처) ──────────────────── */
.vf-stamp {
  --c: var(--ok);
  --s: 92px;
  position: relative;
  display: inline-grid;
  place-content: center;
  justify-items: center;
  gap: 1px;
  width: var(--s);
  height: var(--s);
  flex: none;
  border: 3px solid var(--c);
  border-radius: 50%;
  color: var(--c);
  transform: rotate(-6deg);
  text-align: center;
  line-height: 1.08;
  background: transparent;
}
.vf-stamp::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.2px solid var(--c);
  border-radius: 50%;
  pointer-events: none;
}
.vf-stamp__top, .vf-stamp__sub {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.vf-stamp__label { display: grid; font-family: var(--serif); font-weight: 800; font-size: 18px; letter-spacing: 0.02em; }
.vf-stamp__label span + span { margin-top: 1px; }
.vf-stamp--sm { --s: 76px; }
.vf-stamp--sm .vf-stamp__label { font-size: 15px; }
.vf-stamp--sm .vf-stamp__top, .vf-stamp--sm .vf-stamp__sub { font-size: 9.5px; }
.vf-stamp--pass, .vf-stamp--repass { --c: var(--ok); }
.vf-stamp--cond, .vf-stamp--advise { --c: var(--primary); }
.vf-stamp--recheck { --c: var(--warn); }
.vf-stamp--fail, .vf-stamp--request { --c: var(--accent); }
.vf-stamp--fail .vf-stamp__label {
  background: var(--accent);
  color: var(--surface);
  padding: 0 8px;
  margin: 2px 0;
}
.vf-stamp.is-press { animation: vf-press 420ms cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes vf-press {
  0% { transform: rotate(-12deg) scale(1.3); opacity: 0; }
  60% { transform: rotate(-5deg) scale(0.94); opacity: 1; }
  100% { transform: rotate(-6deg) scale(1); opacity: 1; }
}

/* ── 검증 항목 표 ─────────────────────── */
.vf-table { background: var(--surface); border: 2px solid var(--ink); }
.vf-table__head, .vf-row {
  display: grid;
  grid-template-columns: 56px 1fr 168px 156px;
  align-items: center;
}
.vf-table__head {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
  background: var(--bg);
}
.vf-table__head > span { padding: 10px 16px; }
.vf-table__head > span:nth-child(3), .vf-table__head > span:nth-child(4) { text-align: center; }
.vf-row { border-bottom: 1px solid var(--line); min-height: 124px; }
.vf-row:last-child { border-bottom: 0; }
.vf-row > * { padding: 14px 16px; }
.vf-row__no { align-self: stretch; padding-top: 18px; font-size: 15px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); }
.vf-row__title { font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.4; }
.vf-row__method { font-size: 14px; color: var(--muted); margin-top: 4px; }
.vf-row__self { align-self: stretch; display: grid; place-items: center; border-left: 1px dashed var(--line); }
.vf-self { display: grid; justify-items: center; gap: 2px; text-align: center; }
.vf-self__label { display: none; }
.vf-self__value {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 2px 10px;
  border-bottom: 1px solid var(--muted);
  color: var(--text);
}
.vf-self__src { font-size: 12px; color: var(--muted); }
.vf-row__check {
  align-self: stretch;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border-left: 1px solid var(--line);
  background: linear-gradient(var(--surface), var(--surface));
}
.vf-row__check-label { display: none; }
.vf-row__ref {
  display: inline-flex;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
  border-bottom: 1px solid currentColor;
  line-height: 1.4;
}
.vf-row[data-verdict="fail"] .vf-row__check { background: var(--tint-accent); }
.vf-row[data-verdict="recheck"] .vf-row__check { background: var(--tint-warn); }
.vf-row[data-verdict="cond"] .vf-row__check { background: var(--tint-primary); }

/* ── 범위 토글 ───────────────────────── */
.vf-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--ink);
  background: var(--surface);
}
.vf-toggle__opt {
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 14px 18px;
  min-height: 64px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.vf-toggle__opt + .vf-toggle__opt { border-left: 2px solid var(--ink); }
.vf-toggle__opt[aria-pressed="true"] { background: var(--primary); color: #fff; }
.vf-toggle__opt[aria-pressed="true"] .vf-toggle__price { color: #D9DFF2; }
.vf-toggle__name { font-family: var(--serif); font-weight: 700; font-size: 17px; }
.vf-toggle__price { font-size: 14px; color: var(--muted); }
.vf-scope__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vf-scope__col { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--ink); }
.vf-scope__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.vf-scope__count { font-size: 14px; color: var(--muted); }
.vf-scope__item {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.vf-scope__item:last-child { border-bottom: 0; }
.vf-scope__state { font-size: 13px; font-weight: 700; color: var(--ok); white-space: nowrap; }
.vf-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  display: inline-grid;
  place-items: center;
  background: var(--surface);
}
.vf-scope__item.is-on .vf-check, .vf-check--on, [data-plan="b"] .vf-scope__item--b .vf-check { background: var(--ink); }
.vf-scope__item.is-on .vf-check::after, .vf-check--on::after, [data-plan="b"] .vf-scope__item--b .vf-check::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--surface);
  border-bottom: 2px solid var(--surface);
  transform: rotate(-45deg) translate(1px, -1px);
}
[data-plan="a"] .vf-scope__item--b { color: var(--muted); background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(29, 36, 51, 0.035) 6px 7px); }
[data-plan="a"] .vf-scope__item--b .vf-check { border-style: dashed; border-color: var(--muted); }
[data-plan="a"] .vf-scope__item--b .vf-scope__state { color: var(--muted); font-weight: 600; }
[data-plan="a"] .vf-only-b, [data-plan="b"] .vf-only-a { display: none; }
.vf-scope__total {
  font-size: 15px;
  padding: 10px 16px;
  background: var(--surface);
  border-left: 4px solid var(--primary);
}
.vf-out {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 12px 16px;
  border: 1px dashed var(--muted);
}
.vf-out__title { font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; line-height: 1.7; }
.vf-out__list { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--muted); }
.vf-out__list li::before { content: "×"; font-family: var(--mono); margin-right: 6px; }

/* ── 결함 화면 ───────────────────────── */
.vf-pagehead { display: grid; gap: 4px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); position: relative; }
.vf-tally {
  margin-top: 14px;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: var(--surface);
  border: 2px solid var(--ink);
}
.vf-tally__label { font-size: 14px; font-weight: 700; }
.vf-tally__num { font-size: 18px; color: var(--muted); }
.vf-tally__num b { color: var(--ok); font-size: 22px; }

.vf-defects { display: grid; gap: 16px; margin-top: -24px; }
.vf-defect { background: var(--surface); border: 2px solid var(--ink); scroll-margin-top: 24px; position: relative; }
.vf-defect::before { content: ""; position: absolute; left: -2px; top: -2px; bottom: -2px; width: 6px; background: var(--accent); }
.vf-defect--mid::before { background: var(--warn); }
.vf-defect--low::before { background: var(--primary); }
.vf-defect.is-done::before { background: var(--ok); }
.vf-defect__summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto 28px;
  align-items: center;
  gap: 16px;
  padding: 16px 16px 16px 24px;
  cursor: pointer;
  min-height: 108px;
}
.vf-defect__summary::-webkit-details-marker { display: none; }
.vf-defect__heading { display: grid; gap: 6px; }
.vf-defect__tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vf-defect__id { font-weight: 600; font-size: 15px; padding: 0 6px; background: var(--ink); color: var(--surface); line-height: 22px; }
.vf-sev { font-size: 13px; font-weight: 700; padding: 0 6px; line-height: 20px; border: 1.5px solid currentColor; }
.vf-sev--high { color: var(--accent); }
.vf-sev--mid { color: var(--warn); }
.vf-sev--low { color: var(--primary); }
.vf-defect__title { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.4; }
.vf-defect__meta { font-size: 14px; color: var(--muted); }
.vf-defect__stamp { display: grid; place-items: center; width: 84px; }
.vf-defect__toggle {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--ink);
  position: relative;
}
.vf-defect__toggle::before, .vf-defect__toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.vf-defect__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .vf-defect__toggle::after { display: none; }

.vf-defect__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  padding: 20px 24px 24px;
  border-top: 2px solid var(--ink);
}
.vf-sub { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.01em; }
.vf-repro { grid-column: 1; grid-row: 1 / span 2; }
.vf-repro__steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.vf-repro__step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.vf-repro__mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.vf-repro__ok { display: none; }
.vf-repro__mark.is-checked { background: var(--ok); border-color: var(--ok); color: #fff; }
.vf-repro__mark.is-checked .vf-repro__n { display: none; }
.vf-repro__mark.is-checked .vf-repro__ok { display: block; }
.vf-compare { display: grid; gap: 0; border: 1px solid var(--line); }
.vf-compare__cell { padding: 12px 14px; font-size: 15px; }
.vf-compare__cell + .vf-compare__cell { border-top: 1px solid var(--line); }
.vf-compare__cell .vf-sub { margin-bottom: 4px; }
.vf-compare__cell--expected .vf-sub { color: var(--ok); }
.vf-compare__cell--actual { background: var(--tint-accent); }
.vf-compare__cell--actual .vf-sub { color: var(--accent); }
.is-done .vf-compare__cell--actual { background: transparent; }
.is-done .vf-compare__cell--actual p { text-decoration: line-through; text-decoration-color: rgba(29, 36, 51, 0.45); color: var(--muted); }
.vf-evidence { grid-column: 2; }
.vf-evidence__list { display: flex; flex-wrap: wrap; gap: 8px; }
.vf-evidence__slot {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "thumb name" "thumb ref";
  column-gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1.5px dashed var(--line);
  background: repeating-linear-gradient(-45deg, var(--surface) 0 6px, var(--bg) 6px 7px);
  min-width: 150px;
  flex: 1 1 150px;
}
.vf-evidence__thumb { grid-area: thumb; color: var(--muted); display: grid; }
.vf-evidence__name { grid-area: name; font-size: 14px; font-weight: 600; line-height: 1.3; }
.vf-evidence__ref { grid-area: ref; font-size: 12px; color: var(--muted); }
.vf-memo {
  grid-column: 1 / -1;
  font-size: 15px;
  padding: 12px 14px;
  background: var(--bg);
  border-left: 3px solid var(--primary);
}
.vf-memo__label { font-weight: 700; color: var(--primary); margin-right: 8px; font-size: 14px; }
.vf-defect__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.vf-defect__dates { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.vf-defect__dates dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.vf-defect__dates dd { font-size: 15px; }
.vf-recheck-result {
  grid-column: 1 / -1;
  font-size: 15px;
  padding: 12px 14px;
  background: var(--tint-ok);
  border-left: 3px solid var(--ok);
}
.vf-recheck-result b { color: var(--ok); margin-right: 6px; }

.vf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid var(--ink);
  cursor: pointer;
}
.vf-btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.vf-btn--primary:hover { background: #1A2C6C; }
.vf-btn--primary:disabled { background: var(--surface); color: var(--ok); border-color: var(--ok); cursor: default; }
.vf-btn--ghost { background: var(--surface); color: var(--ink); }
.vf-btn--ghost:hover { background: var(--ink); color: var(--surface); }

/* 일관성 표 */
.vf-ctable { background: var(--surface); border: 2px solid var(--ink); }
.vf-ctable__head, .vf-crow {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.4fr;
  align-items: center;
}
.vf-ctable__head { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--bg); border-bottom: 2px solid var(--ink); }
.vf-ctable__head > span, .vf-crow > span { padding: 12px 16px; }
.vf-crow { border-bottom: 1px solid var(--line); }
.vf-crow:last-child { border-bottom: 0; }
.vf-crow__field { font-weight: 700; font-family: var(--serif); }
.vf-crow__k { display: none; }
.vf-cell {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.vf-cell--bad { border: 2px solid var(--accent); color: var(--accent); background: var(--tint-accent); font-weight: 600; }
.vf-crow--bad:not(.is-after) { background: linear-gradient(90deg, var(--tint-accent), transparent 70%); }
.vf-mark {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 8px;
  border: 1.5px solid currentColor;
  text-decoration: none;
  line-height: 1.4;
}
.vf-mark--ok { color: var(--ok); }
.vf-mark--bad { color: var(--accent); background: var(--surface); }
.vf-mark--info { color: var(--primary); }
.vf-footnote { font-size: 14px; color: var(--muted); padding-left: 10px; border-left: 2px solid var(--line); }

/* ── 발주자용 정리 ───────────────────── */
.vf-plainlist { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: -24px; scroll-margin-top: 24px; }
.vf-plain {
  background: var(--surface);
  border: 2px solid var(--ink);
  padding: 18px 20px 16px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.vf-plain__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vf-plain__id { font-weight: 600; font-size: 14px; padding: 0 6px; background: var(--ink); color: var(--surface); line-height: 22px; }
.vf-plain__status { margin-left: auto; }
.vf-plain__status .vf-mark { font-size: 13px; padding: 0 6px; }
.vf-plain__title { font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.4; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.vf-qa { display: grid; gap: 10px; }
.vf-qa__row { display: grid; gap: 2px; }
.vf-qa dt { font-size: 14px; font-weight: 700; color: var(--primary); }
.vf-qa dd { font-size: 15px; line-height: 1.6; }
.vf-qa__row--ask { padding: 10px 12px; background: var(--tint-primary); border-left: 3px solid var(--primary); }
.vf-plain__more { justify-self: start; font-size: 14px; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.vf-plain.is-after { border-color: var(--ok); }

.vf-final { display: grid; gap: 20px; }
.vf-final__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.vf-a4-wrap { display: grid; gap: 12px; justify-items: start; }
.vf-a4 {
  position: relative;
  width: 100%;
  aspect-ratio: 210 / 297;
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line), 6px 6px 0 rgba(29, 36, 51, 0.08);
  padding: 44px 44px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
  scroll-margin-top: 24px;
}
.vf-a4__water {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 150px;
  color: var(--accent);
  opacity: 0.06;
  transform: rotate(-24deg);
  pointer-events: none;
  letter-spacing: 0.1em;
}
.vf-a4__head { text-align: center; padding-bottom: 16px; border-bottom: 3px double var(--ink); }
.vf-a4__no { font-size: 12px; color: var(--muted); }
.vf-a4__title { font-family: var(--serif); font-size: 24px; font-weight: 800; letter-spacing: 0.02em; margin: 6px 0 4px; }
.vf-a4__target { font-size: 13px; color: var(--muted); }
.vf-a4__sec { display: grid; gap: 10px; position: relative; }
.vf-a4__h { font-family: var(--serif); font-size: 16px; font-weight: 700; }
.vf-a4__verdict { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; font-size: 14px; line-height: 1.65; }
.vf-a4__stamp { display: grid; }
.vf-a4__p { font-size: 13.5px; line-height: 1.7; color: #3A4152; }
.vf-prio { border-top: 2px solid var(--ink); }
.vf-prio__row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.vf-prio__rank { width: 24px; height: 24px; display: grid; place-items: center; border: 1.5px solid var(--ink); font-size: 13px; font-weight: 600; }
.vf-prio__ref { font-size: 12px; color: var(--muted); margin-left: 4px; }
.vf-prio__when { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.vf-prio__row:nth-child(n+4) .vf-prio__when { color: var(--muted); font-weight: 600; }
.vf-prio__row.is-after .vf-prio__text { text-decoration: line-through; text-decoration-color: rgba(29, 36, 51, 0.4); color: var(--muted); }
.vf-prio__row.is-after .vf-prio__when { color: var(--ok); }
.vf-a4__sign {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.vf-a4__line { width: 140px; border-bottom: 1px solid var(--ink); height: 20px; }

.vf-indep {
  background: var(--surface);
  border: 2px solid var(--primary);
  outline: 1px solid var(--primary);
  outline-offset: 4px;
  padding: 20px;
  display: grid;
  gap: 12px;
  margin: 5px;
  scroll-margin-top: 24px;
}
.vf-indep__title { font-family: var(--serif); font-size: 20px; font-weight: 800; color: var(--primary); }
.vf-indep__lead { font-size: 14px; color: var(--muted); }
.vf-indep__list { display: grid; gap: 12px; }
.vf-indep__item { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 15px; line-height: 1.5; }
.vf-indep__item .vf-check { margin-top: 2px; background: var(--primary); border-color: var(--primary); }
.vf-indep__note { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

/* ── 공고 대응표 ─────────────────────── */
.vf-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  background: var(--ink);
  color: var(--surface);
  border: 2px solid var(--ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(35, 58, 139, 0.35);
}
.vf-fab:hover { background: var(--primary); border-color: var(--primary); }
.vf-sheet {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  inset: 0;
  color: var(--text);
}
.vf-sheet::backdrop { background: rgba(29, 36, 51, 0.45); }
.vf-sheet__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: var(--surface);
  border-left: 2px solid var(--ink);
  padding: 24px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 12px;
}
.vf-sheet__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.vf-sheet__title { font-family: var(--serif); font-size: 20px; font-weight: 800; }
.vf-sheet__close { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); background: transparent; font-weight: 600; cursor: pointer; }
.vf-sheet__lead { font-size: 14px; color: var(--muted); }
.vf-sheet__list { display: grid; }
.vf-sheet__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-areas: "no need" "no link";
  gap: 4px 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.vf-sheet__no { grid-area: no; font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 2px; }
.vf-sheet__need { grid-area: need; font-size: 15px; font-weight: 600; }
.vf-sheet__link { grid-area: link; font-size: 14px; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; justify-self: start; }

/* ── 공통 안내 ───────────────────────── */
.demo-notice {
  max-width: 920px;
  margin: 56px auto 0;
  padding: 8px 24px;
  min-height: 28px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

/* ── 모바일 ─────────────────────────── */
@media (max-width: 760px) {
  .vf-header__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand reset" "nav nav";
    gap: 0 12px;
    padding: 0 16px;
    min-height: 0;
  }
  .vf-brand { grid-area: brand; min-height: 56px; }
  .vf-brand__name { font-size: 16px; }
  .vf-brand__mark { width: 28px; height: 28px; }
  .vf-reset { grid-area: reset; min-height: 44px; padding: 0 10px; font-size: 13px; }
  .vf-nav { grid-area: nav; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 -16px; border-top: 1px solid var(--line); }
  .vf-nav__link { justify-content: center; padding: 0 4px; font-size: 14px; min-height: 46px; }

  .vf-main { padding: 24px 16px 16px; gap: 40px; }
  .vf-h1 { font-size: 26px; }

  .vf-cover { grid-template-columns: 1fr; grid-template-areas: "head" "meta"; }
  .vf-cover__head { padding: 20px 18px 18px; padding-right: 104px; }
  .vf-cover__seal { position: absolute; top: 14px; right: 12px; padding: 0; }
  .vf-seal { width: 84px; height: 84px; border-width: 3px; }
  .vf-seal__main { font-size: 22px; margin: 2px 0; }
  .vf-seal__top { font-size: 8.5px; }
  .vf-seal__sub { display: none; }
  .vf-meta { grid-template-columns: 1fr; }
  .vf-meta__cell { padding: 10px 18px; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .vf-meta__cell:last-child { border-bottom: 0 !important; }

  .vf-summary { grid-template-columns: repeat(2, 1fr); }
  .vf-count { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .vf-count:nth-child(2) { border-right: 0; }
  .vf-count:nth-child(3), .vf-count:nth-child(4) { border-bottom: 0; }

  .vf-timeline { grid-template-columns: 1fr; gap: 18px; }
  .vf-timeline::before { top: 18px; bottom: 18px; left: 17px; right: auto; width: 2px; height: auto; }
  .vf-timeline__step { grid-template-columns: 36px 1fr; column-gap: 14px; padding-right: 0; }
  .vf-timeline__marker { grid-row: 1 / span 4; margin: 0; }
  .vf-timeline__state { grid-column: 2; }

  .vf-table { border: 0; background: transparent; display: grid; gap: 12px; }
  .vf-table__head { display: none; }
  .vf-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "main main" "self check";
    background: var(--surface);
    border: 2px solid var(--ink) !important;
    min-height: 0;
    position: relative;
  }
  .vf-row > * { padding: 12px 14px; }
  .vf-row__no {
    position: absolute;
    top: 0;
    right: 0;
    border: 0;
    padding: 6px 10px;
    font-size: 13px;
    background: var(--bg);
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .vf-row__main { grid-area: main; padding-right: 48px; border-bottom: 1px solid var(--line); }
  .vf-row__self { grid-area: self; border-left: 0; border-right: 1px dashed var(--line); align-content: center; }
  .vf-self__label, .vf-row__check-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
  .vf-row__check { grid-area: check; border-left: 0; padding: 12px 8px 14px; }
  .vf-row__check-label { margin-bottom: 0; }

  .vf-toggle { grid-template-columns: 1fr; }
  .vf-toggle__opt + .vf-toggle__opt { border-left: 0; border-top: 2px solid var(--ink); }
  .vf-scope__grid { grid-template-columns: 1fr; gap: 12px; }
  .vf-out { grid-template-columns: 1fr; gap: 6px; }
  .vf-out__list { display: grid; gap: 4px; }

  .vf-defects, .vf-plainlist { margin-top: -16px; }
  .vf-defect__summary { grid-template-columns: 1fr auto; grid-template-areas: "head stamp" "head toggle"; gap: 8px 10px; padding: 14px 12px 14px 20px; align-items: start; }
  .vf-defect__heading { grid-area: head; }
  .vf-defect__stamp { grid-area: stamp; width: 76px; }
  .vf-defect__toggle { grid-area: toggle; justify-self: end; align-self: end; width: 32px; height: 32px; }
  .vf-defect__title { font-size: 17px; }
  .vf-defect__body { grid-template-columns: 1fr; padding: 16px 16px 18px 20px; gap: 18px; }
  .vf-repro, .vf-evidence { grid-column: 1; grid-row: auto; }
  .vf-defect__foot { flex-direction: column; align-items: stretch; }
  .vf-defect__foot .vf-btn { width: 100%; }

  .vf-ctable { border: 0; background: transparent; display: grid; gap: 10px; }
  .vf-ctable__head { display: none; }
  .vf-crow {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: "field field field" "a b c" "judge judge judge";
    background: var(--surface);
    border: 2px solid var(--ink) !important;
  }
  .vf-crow > span { padding: 10px 12px; }
  .vf-crow__field { grid-area: field; border-bottom: 1px solid var(--line); }
  .vf-crow__val { display: grid; gap: 4px; justify-items: start; }
  .vf-crow__k { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
  .vf-crow__judge { grid-area: judge; border-top: 1px solid var(--line); }

  .vf-plainlist { grid-template-columns: 1fr; }
  .vf-final__grid { grid-template-columns: 1fr; gap: 28px; }
  .vf-a4 { padding: 24px 20px 20px; gap: 16px; aspect-ratio: auto; min-height: 0; }
  .vf-a4__title { font-size: 19px; }
  .vf-a4__water { font-size: 96px; }
  .vf-a4__verdict { grid-template-columns: 1fr; justify-items: start; }
  .vf-prio__row { grid-template-columns: 28px 1fr; }
  .vf-prio__when { grid-column: 2; }

  .vf-fab { right: 16px; bottom: 16px; }
  .vf-sheet__panel { top: auto; left: 0; width: 100%; max-height: 84vh; border-left: 0; border-top: 2px solid var(--ink); padding: 20px 16px 24px; }
  .demo-notice { padding: 8px 16px; margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .vf-stamp.is-press { animation: none; }
}

@media print {
  body.vf { background: #fff; padding: 0; }
  .vf-header, .vf-mapping, .demo-notice, .vf-pagehead, .vf-plainlist, .vf-final > .vf-block__head, .vf-indep, .vf-print { display: none !important; }
  .vf-main { padding: 0; max-width: none; }
  .vf-final__grid { display: block; }
  .vf-a4 { box-shadow: none; border: 0; aspect-ratio: auto; }
}
