:root {
  --exam-ink: #17201f;
  --exam-muted: #5b6764;
  --exam-line: #dce7e5;
  --exam-bg: #f5f8f7;
  --exam-paper: #ffffff;
  --exam-teal: #0f766e;
  --exam-teal-dark: #0a4f49;
  --exam-red: #c2413b;
  --exam-blue: #2563a8;
  --exam-amber: #b97912;
  --exam-violet: #6952a3;
}

body.exam-page {
  margin: 0;
  color: var(--exam-ink);
  background: var(--exam-bg);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
}

.exam-solution * {
  box-sizing: border-box;
}

.exam-solution a {
  color: inherit;
}

.exam-shell {
  min-height: 100vh;
}

.exam-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 16px 56px;
  color: var(--exam-ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--exam-line);
  backdrop-filter: blur(14px);
}

.exam-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--exam-ink);
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}

.exam-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: transparent;
  border: 0;
}

.exam-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-size: 0.96rem;
  font-weight: 700;
}

.exam-nav a {
  color: inherit;
  text-decoration: none;
}

.exam-nav a:hover,
.exam-nav a[aria-current="page"] {
  color: var(--exam-amber);
}

.exam-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 11px;
  color: var(--exam-muted);
  background: #ffffff;
  border: 1px solid var(--exam-line);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.exam-chip.is-strong {
  color: #ffffff;
  background: var(--exam-teal);
  border-color: var(--exam-teal);
}

.exam-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.exam-main.is-wide {
  width: min(1360px, calc(100% - 32px));
}

.exam-hero {
  min-height: auto;
  display: grid;
  align-items: start;
  padding: 28px 0 48px;
}

.exam-hero-inner {
  max-width: 860px;
}

.exam-eyebrow {
  margin: 0 0 12px;
  color: var(--exam-amber);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
}

.exam-hero h1,
.exam-page-title h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.exam-hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--exam-muted);
  font-size: 1.18rem;
  line-height: 1.8;
}

.exam-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.exam-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  color: var(--exam-ink);
  background: #ffffff;
  border: 1px solid var(--exam-line);
  border-radius: 6px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.exam-button.primary {
  color: #ffffff;
  background: var(--exam-teal);
  border-color: var(--exam-teal);
}

.exam-button.danger {
  color: #ffffff;
  background: var(--exam-red);
  border-color: var(--exam-red);
}

.exam-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.exam-section {
  padding: 38px 0;
  border-top: 1px solid var(--exam-line);
}

.exam-section h2,
.exam-panel h2,
.exam-panel h3 {
  margin: 0 0 14px;
  letter-spacing: 0;
}

.exam-job-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.exam-artifact-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.exam-artifact-step {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--exam-line);
  border-radius: 8px;
}

.exam-artifact-step.is-generated {
  border-color: rgba(15, 118, 110, 0.34);
}

.exam-artifact-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  background: #f8fbfa;
  border-bottom: 1px solid var(--exam-line);
}

.exam-artifact-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.exam-artifact-image-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.exam-artifact-image-button:focus-visible {
  outline: 3px solid rgba(37, 99, 168, 0.68);
  outline-offset: -3px;
}

.exam-module-step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.exam-module-step {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(130px, auto) auto;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--exam-line);
  border-radius: 8px;
}

.exam-module-step span {
  color: var(--exam-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.exam-module-step p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--exam-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.exam-download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.exam-json-preview {
  margin: 10px 0;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--exam-line);
  border-radius: 8px;
}

.exam-json-preview summary {
  cursor: pointer;
  font-weight: 900;
}

.exam-json-preview pre {
  max-height: 320px;
  overflow: auto;
  margin: 12px 0 0;
  color: #1f2937;
  white-space: pre-wrap;
}

.exam-checkline {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 10px;
  color: var(--exam-muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

.exam-checkline input {
  margin-top: 4px;
}

.exam-artifact-stage-note {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 8px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.76);
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: right;
}

.exam-artifact-figure figcaption,
.exam-artifact-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  background: var(--exam-teal);
  border-radius: 999px;
  font-weight: 900;
}

.exam-artifact-figure figcaption {
  position: absolute;
  top: 10px;
  left: 10px;
  margin: 0;
  box-shadow: 0 6px 16px rgba(23, 32, 31, 0.14);
}

.exam-artifact-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--exam-muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.exam-artifact-step.is-pending .exam-artifact-figure figcaption,
.exam-artifact-step.is-pending .exam-artifact-order {
  color: var(--exam-muted);
  background: #e8efed;
}

.exam-artifact-copy {
  min-width: 0;
  padding: 13px;
}

.exam-artifact-step h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.exam-artifact-step p {
  margin: 0;
  color: var(--exam-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.exam-artifact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--exam-muted);
  font-size: 0.82rem;
}

.exam-lead {
  max-width: 760px;
  color: var(--exam-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.research-cover {
  display: grid;
  gap: 22px;
  padding: 26px 0 42px;
}

.research-cover-copy {
  max-width: 940px;
}

.research-cover h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.research-cover-copy p:not(.exam-eyebrow) {
  max-width: 860px;
  margin: 18px 0 0;
  color: var(--exam-muted);
  font-size: 1rem;
  line-height: 1.72;
}

.research-diagram {
  width: 100%;
  display: block;
  background: #ffffff;
  border: 1px solid var(--exam-line);
  border-radius: 8px;
}

.research-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.research-summary-grid article {
  min-height: 132px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--exam-line);
  border-radius: 8px;
}

.research-summary-grid strong,
.research-summary-grid span {
  display: block;
}

.research-summary-grid strong {
  margin-bottom: 10px;
  color: var(--exam-teal-dark);
  font-size: 0.98rem;
}

.research-summary-grid span {
  color: var(--exam-muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

.research-example-showcase {
  display: grid;
  gap: 16px;
  padding: 24px 0 6px;
  border-top: 1px solid var(--exam-line);
}

.research-example-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.research-example-heading h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.research-example-heading p:not(.exam-eyebrow) {
  max-width: 520px;
  margin: 0;
  color: var(--exam-muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

.research-example-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.research-example-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--exam-line);
  border-radius: 8px;
}

.research-example-image {
  aspect-ratio: 3 / 4;
  background: #f8fbfa;
  border-bottom: 1px solid var(--exam-line);
}

.research-example-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.research-example-card figcaption {
  display: grid;
  gap: 7px;
  padding: 12px 13px 14px;
}

.research-example-card figcaption span {
  width: fit-content;
  padding: 3px 7px;
  color: #ffffff;
  background: var(--exam-teal);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
}

.research-example-card figcaption strong {
  color: var(--exam-teal-dark);
  font-size: 0.96rem;
  line-height: 1.35;
}

.research-example-card figcaption p {
  margin: 0;
  color: var(--exam-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.research-report {
  padding: 26px 28px 42px;
  background: #ffffff;
  border: 1px solid var(--exam-line);
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.72;
}

.research-report[hidden] {
  display: none;
}

.research-report-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--exam-line);
}

.research-report h2 {
  margin: 0;
  font-size: 1.55rem;
}

.research-report h3 {
  margin: 30px 0 10px;
  font-size: 1rem;
  line-height: 1.38;
}

.research-report p {
  margin: 9px 0;
  color: #2f3b39;
}

.research-report ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

.research-report li {
  margin: 6px 0;
}

.research-table-wrap {
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid var(--exam-line);
  border-radius: 8px;
}

.research-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: #ffffff;
}

.research-table th,
.research-table td {
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--exam-line);
}

.research-table th {
  color: var(--exam-teal-dark);
  background: #edf7f5;
  font-size: 0.78rem;
}

.research-roadmap {
  display: grid;
  gap: 8px;
}

.research-roadmap div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 10px 12px;
  background: #f5f8f7;
  border: 1px solid var(--exam-line);
  border-radius: 8px;
}

.research-roadmap strong {
  color: var(--exam-teal-dark);
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.exam-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.exam-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.exam-panel,
.exam-stat,
.exam-table-wrap,
.exam-form {
  background: var(--exam-paper);
  border: 1px solid var(--exam-line);
  border-radius: 8px;
}

.exam-panel,
.exam-form {
  padding: 20px;
}

.exam-stat {
  padding: 18px;
}

.exam-stat strong {
  display: block;
  color: var(--exam-teal-dark);
  font-size: 1.8rem;
  line-height: 1;
}

.exam-stat span {
  display: block;
  margin-top: 8px;
  color: var(--exam-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.exam-page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.exam-form {
  display: grid;
  gap: 14px;
}

.exam-form-help {
  padding: 11px 12px;
  color: #164c84;
  background: #edf5ff;
  border: 1px solid #bdd4f4;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.55;
}

.exam-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.exam-field {
  display: grid;
  gap: 6px;
}

.exam-field label {
  color: var(--exam-muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.exam-field input,
.exam-field select,
.exam-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  color: var(--exam-ink);
  background: #ffffff;
  border: 1px solid var(--exam-line);
  border-radius: 6px;
  font: inherit;
}

.exam-field textarea {
  min-height: 96px;
  resize: vertical;
}

.exam-analysis-meta {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  background: #f8fbfa;
  border: 1px solid var(--exam-line);
  border-radius: 8px;
}

.exam-analysis-meta p,
.exam-analysis-meta small {
  margin: 0;
  color: var(--exam-muted);
  line-height: 1.58;
}

.exam-analysis-meta p {
  font-size: 0.92rem;
  font-weight: 800;
}

.exam-analysis-meta small {
  font-size: 0.82rem;
}

.exam-analysis-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.exam-analysis-meta-grid div {
  min-width: 0;
  padding: 11px;
  background: #ffffff;
  border: 1px solid var(--exam-line);
  border-radius: 8px;
}

.exam-analysis-meta-grid span,
.exam-analysis-meta-grid strong,
.exam-analysis-meta-grid em {
  display: block;
}

.exam-analysis-meta-grid span {
  color: var(--exam-muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.exam-analysis-meta-grid strong {
  margin-top: 5px;
  color: var(--exam-ink);
  font-size: 0.98rem;
  line-height: 1.35;
}

.exam-analysis-meta-grid em {
  margin-top: 5px;
  color: var(--exam-teal-dark);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.exam-table-wrap {
  overflow-x: auto;
}

.exam-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.exam-table th,
.exam-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--exam-line);
  vertical-align: top;
}

.exam-table th {
  color: var(--exam-muted);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.exam-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.exam-pill.ok {
  color: #075046;
  background: #dff7ef;
}

.exam-pill.warn {
  color: #825508;
  background: #fff0c8;
}

.exam-pill.bad {
  color: #8b1f1b;
  background: #ffe2df;
}

.exam-pill.info {
  color: #164c84;
  background: #dfecff;
}

.exam-artifact-ref-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 260px;
}

.exam-artifact-ref {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid var(--exam-line);
  background: #ffffff;
  color: var(--exam-text);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.exam-artifact-ref.image {
  border-color: rgba(37, 99, 168, 0.22);
  background: #eef6ff;
  color: #1d4f86;
}

.exam-artifact-ref.file {
  border-color: rgba(7, 80, 70, 0.22);
  background: #eefaf6;
  color: #075046;
}

.exam-artifact-ref.missing,
.exam-artifact-ref.expired {
  background: #f6f7f9;
  color: var(--exam-muted);
  cursor: default;
}

.exam-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.exam-tab {
  min-height: 38px;
  padding: 8px 11px;
  color: var(--exam-muted);
  background: #ffffff;
  border: 1px solid var(--exam-line);
  border-radius: 6px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.exam-tab.is-active {
  color: #ffffff;
  background: var(--exam-blue);
  border-color: var(--exam-blue);
}

.exam-alert {
  padding: 12px 14px;
  color: #6f3f00;
  background: #fff4d9;
  border: 1px solid #f2d285;
  border-radius: 8px;
  font-weight: 800;
}

.exam-kv-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.exam-kv-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.exam-kv-list dt {
  color: #667085;
  font-size: 12px;
}

.exam-kv-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #202733;
  font-size: 12px;
}

.exam-question-evidence {
  min-width: 0;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--exam-line);
  border-radius: 8px;
}

.exam-question-evidence .exam-artifact-figure {
  margin: 12px 0;
}

.exam-error {
  padding: 12px 14px;
  color: #84201b;
  background: #ffe7e5;
  border: 1px solid #f1aba6;
  border-radius: 8px;
  font-weight: 800;
}

.exam-success {
  padding: 12px 14px;
  color: #075046;
  background: #e3f8f1;
  border: 1px solid #9ddac9;
  border-radius: 8px;
  font-weight: 800;
}

.exam-doc-list {
  display: grid;
  gap: 12px;
}

.exam-doc-body {
  margin-top: 16px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--exam-line);
  border-radius: 8px;
  line-height: 1.75;
}

.exam-doc-body pre {
  overflow: auto;
  padding: 14px;
  background: #111817;
  color: #f1f8f7;
  border-radius: 6px;
}

.exam-muted {
  color: var(--exam-muted);
}

.exam-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 0.58fr);
  gap: 16px;
  align-items: start;
}

.exam-log-box {
  max-height: 420px;
  overflow: auto;
  padding: 12px;
  background: #111817;
  color: #e7f4f2;
  border-radius: 8px;
  font-size: 0.86rem;
  white-space: pre-wrap;
}

.exam-history-stack {
  display: grid;
  gap: 14px;
}

.exam-history-record {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--exam-line);
  border-radius: 8px;
}

.exam-history-field {
  display: grid;
  grid-template-columns: minmax(120px, 0.22fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf4f2;
}

.exam-history-field:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.exam-history-field strong {
  color: var(--exam-teal-dark);
  font-size: 0.82rem;
}

.exam-history-field span {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--exam-ink);
  font-size: 0.86rem;
  line-height: 1.55;
}

.exam-analysis-modal[hidden] {
  display: none;
}

.exam-analysis-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.exam-analysis-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 18, 0.66);
}

.exam-analysis-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(100%, 520px);
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--exam-line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.exam-analysis-modal-dialog h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.exam-analysis-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #d7e6e3;
  border-top-color: var(--exam-teal);
  border-radius: 999px;
  animation: exam-spin 0.9s linear infinite;
}

.exam-analysis-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #f5f8f7;
  border: 1px solid var(--exam-line);
  border-radius: 8px;
  font-weight: 900;
}

.exam-analysis-current strong {
  color: var(--exam-teal-dark);
  white-space: nowrap;
}

.exam-analysis-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exam-analysis-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--exam-muted);
  background: #ffffff;
  border: 1px solid var(--exam-line);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
}

.exam-analysis-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--exam-muted);
  background: #eef4f2;
  border-radius: 999px;
  font-size: 0.78rem;
}

.exam-analysis-steps li.is-active {
  color: var(--exam-teal-dark);
  border-color: var(--exam-teal);
}

.exam-analysis-steps li.is-active span {
  color: #ffffff;
  background: var(--exam-teal);
}

.exam-analysis-steps li.is-done {
  color: var(--exam-ink);
  background: #f7fbfa;
}

.exam-analysis-modal-open {
  overflow: hidden;
}

@keyframes exam-spin {
  to {
    transform: rotate(360deg);
  }
}

.exam-image-viewer[hidden] {
  display: none;
}

.exam-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.exam-image-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 18, 0.72);
}

.exam-image-viewer-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 1320px);
  max-height: calc(100vh - 36px);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--exam-line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.exam-image-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--exam-line);
}

.exam-image-viewer-header strong {
  min-width: 0;
  overflow: hidden;
  color: var(--exam-teal-dark);
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exam-image-viewer-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
}

.exam-image-viewer-actions .exam-button {
  width: auto;
}

.exam-image-viewer-canvas {
  overflow: auto;
  padding: 18px;
  background: #eef4f2;
}

.exam-image-viewer-img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(23, 32, 31, 0.18);
}

.exam-image-viewer-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .exam-grid,
  .exam-grid.two,
  .exam-grid.four,
  .exam-split,
  .exam-form-row,
  .exam-analysis-meta-grid {
    grid-template-columns: 1fr;
  }

  .research-summary-grid {
    grid-template-columns: 1fr;
  }

  .research-example-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .research-example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exam-artifact-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exam-history-field {
    grid-template-columns: 1fr;
  }

  .exam-topbar,
  .exam-page-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .exam-main,
  .exam-main.is-wide {
    width: min(100% - 24px, 1180px);
  }

  .exam-hero {
    min-height: auto;
    padding-top: 42px;
  }

  .exam-actions,
  .exam-nav {
    width: 100%;
  }

  .exam-button,
  .exam-nav a {
    width: 100%;
  }

  .research-report {
    padding: 20px 16px 32px;
    font-size: 0.82rem;
  }

  .research-roadmap div {
    grid-template-columns: 1fr;
  }

  .research-example-grid {
    grid-template-columns: 1fr;
  }

  .exam-artifact-timeline {
    grid-template-columns: 1fr;
  }
}
