/* ═══════════ 검사 화면 공통 스타일 (1부·2부 문항 화면 part1/index.html, part2/index.html) ═══════════
   여기 있는 것: 진행 표시줄, 검사 안내 상자, 문항 카드, 제출 버튼.
   선택지(.opts .opt …) 모양은 1부와 2부가 달라서 각 페이지의 <style>에 있다. */
html { scroll-behavior: smooth; }
.part-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.part-tag::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1.5px;
  background: var(--gold);
}
.sticky-prog {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg2);
  border-bottom: 1px solid var(--border2);
}
.prog-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 48px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.prog-lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  white-space: nowrap;
  text-transform: uppercase;
}
.prog-track {
  flex: 1;
  height: 2px;
  background: var(--border2);
}
.prog-fill {
  height: 100%;
  background: var(--ink);
  transition: width 0.4s cubic-bezier(0.16,1,0.3,1);
  width: 0%;
}
.prog-n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  min-width: 44px;
  text-align: right;
}
.main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 48px 80px;
}
.test-info {
  margin: 40px 0 28px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.test-info-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
}
.test-info-head .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.test-info-head .tag::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--ink-dim);
  margin-right: 8px;
  vertical-align: middle;
}
.test-info-body {
  padding: 24px 28px 26px;
}
.test-info-body .framework {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.test-info-body p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-mid);
  margin-bottom: 12px;
}
.test-info-body p:last-child { margin-bottom: 0; }
.test-info-body strong {
  color: var(--ink);
  font-weight: 700;
}
.notice strong { color: var(--gold); font-weight: 700; }
.qcard {
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.qcard:hover {
  border-color: var(--border2);
  box-shadow: 0 2px 12px rgba(28,25,20,0.07);
}
.qcard.answered { border-color: var(--border2); }
.qcard.unanswered {
  border-color: var(--M) !important;
  animation: shake 0.32s ease;
}
@keyframes shake {
  0%,100%{transform:translateX(0)}
  25%{transform:translateX(-5px)}
  75%{transform:translateX(5px)}
}
.q-head {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}
.q-num {
  width: 52px;
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 22px;
}
.q-num span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}
.q-text {
  padding: 20px 24px 22px;
  flex: 1;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 500;
}
.opt:last-child { border-right: none; }
.opt:hover { background: var(--bg); }
.opt.selected { background: var(--ink); }
.submit-area {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.submit-btn {
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 17px 56px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.submit-btn:hover:not(:disabled) { opacity: 0.8; transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.22; cursor: not-allowed; transform: none; }
.submit-hint {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.05em;
  text-align: center;
}
.submit-hint.ready { color: var(--F); }

@media (max-width:640px){
  .prog-inner,.main{ padding-left:16px; padding-right:16px; }
  .test-info-body{ padding: 20px 22px 22px; }
}
