.exam-shell {
  max-width: 860px;
  margin: 0 auto 22px;
  padding: clamp(16px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfdfe;
  color: var(--ink);
}
.exam-launch, .exam-actions, .exam-exit {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.exam-launch {
  justify-content: space-between;
}
.exam-launch > div:first-child {
  max-width: 42ch;
}
.exam-heading {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.2vw, 29px);
  line-height: 1.35;
  letter-spacing: -.035em;
}
.exam-heading, .exam-review-title {
  scroll-margin-top: 80px;
}
.exam-description, .exam-status, .exam-review p {
  font-size: 14px;
  line-height: 1.6;
}
.exam-description, .exam-meta {
  color: var(--muted);
}
.exam-description, .exam-status {
  margin: 5px 0 0;
}
.exam-primary, .exam-link {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}
.exam-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.exam-link {
  border-color: var(--line);
  color: var(--blue);
  background: #fff;
}
.exam-primary:disabled {
  opacity: .48;
}
.exam-bar {
  position: sticky;
  z-index: 5;
  top: 0;
  margin-bottom: 14px;
  background: #fbfdfe;
  border-bottom: 1px solid var(--line);
}
.exam-bar-line, .exam-clock {
  display: flex;
  align-items: center;
  gap: 12px;
}
.exam-bar-line {
  min-height: 56px;
  justify-content: space-between;
}
.exam-clock {
  font-variant-numeric: tabular-nums;
}
.exam-progress {
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.exam-time {
  font-size: 20px;
  min-width: 5ch;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.exam-map .theory-disclosure {
  padding-inline: 12px;
}
.exam-numbers {
  position: absolute;
  inset: 100% 0 auto;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  max-height: 55dvh;
  overflow: auto;
  padding: 12px;
  background: #fbfdfe;
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 24px #16344a26;
}
.exam-numbers button {
  padding: 0;
  min-height: 44px;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.exam-numbers button[aria-current=step] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}
.exam-numbers button:disabled {
  background: #dfe9ec;
  color: #506d78;
}
.exam-meta {
  margin: 0 0 6px;
  font-size: 12px;
}
.exam-image {
  display: block;
  width: min(100%, 650px);
  max-height: 340px;
  object-fit: contain;
  object-position: left center;
  margin: 14px 0;
  border-radius: 8px;
}
.exam-form fieldset {
  margin: 18px 0;
  display: grid;
  gap: 8px;
}
.exam-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}
.exam-option:has(input:checked) {
  border-color: var(--blue);
  background: #eef5f8;
}
.exam-option input {
  margin: 4px 0 0;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.exam-exit {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.exam-exit p {
  margin: 0;
  font-size: 13px;
}
.exam-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 20px 0;
}
.exam-summary > div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f1f6f8;
}
.exam-summary dt {
  font-size: 12px;
  color: var(--muted);
}
.exam-summary dd {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.exam-review-title {
  margin: 24px 0 12px;
}
.exam-review {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.exam-review summary {
  padding: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}
.exam-review > :not(summary) {
  margin-inline: 12px;
}
.exam-review > :last-child:not(summary) {
  margin-bottom: 12px;
}
.exam-review-question, .exam-right {
  font-weight: 650;
}
.exam-review p {
  margin-bottom: 10px;
}
.exam-review .exam-image {
  max-width: calc(100% - 24px);
}
.exam-source {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
}
@media (hover: hover) and (pointer: fine) {
  .exam-primary:enabled:hover {
    background: #174968;
  }
  .exam-option:has(input:enabled:not(:checked)):hover {
    border-color: #92b4c7;
  }
  .exam-link:enabled:hover, .exam-numbers button:enabled:hover:not([aria-current=step]) {
    background: #e1edf2;
  }
}
@media (max-width: 600px) {
  .exam-shell {
    border-radius: 16px;
  }
  .exam-numbers {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .exam-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}
