.test-question-card {
  background: #fff;
  border-radius: 24px;
  box-shadow:
    0 1px 2px -1px rgba(0, 0, 0, 0.05),
    0 4px 14px rgba(0, 0, 0, 0.035);
}
.test-question-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ECECEA;
  color: #2D2D2D;
  font-variant-numeric: tabular-nums;
}
.test-answer-option {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: #F1F1EF;
  color: #5F5F5F;
  text-align: left;
  transition-property: background-color, color, box-shadow, transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.test-answer-option:hover { background: #EAEAE7; }
.test-answer-option:active { transform: scale(0.96); }
.test-answer-option.selected {
  background: #E3E3DF;
  color: #2D2D2D;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.test-answer-option:focus-visible,
.test-matrix-mark:focus-visible,
.test-primary-button:focus-visible,
.test-secondary-button:focus-visible,
.test-list-card:focus-visible,
.test-course-chip:focus-visible {
  outline: 2px solid rgba(45, 45, 45, 0.35);
  outline-offset: 2px;
}
.test-answer-mark {
  width: 22px;
  height: 22px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #B9B9B4;
  background: #fff;
  transition-property: background-color, border-color;
  transition-duration: 160ms;
}
.test-answer-option.selected .test-answer-mark {
  border-color: #2D2D2D;
  background: #2D2D2D;
}
.test-matrix-scroll {
  max-width: 100%;
  overflow-x: auto;
  padding: 5px;
  border-radius: 18px;
  background: #F1F1EF;
  overscroll-behavior-inline: contain;
}
.test-matrix-table {
  width: 100%;
  min-width: 620px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 5px;
}
.test-matrix-table th {
  min-width: 124px;
  padding: 10px 9px;
  border-radius: 11px;
  background: #fff;
  color: #4F4F4B;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  text-wrap: pretty;
}
.test-matrix-table thead th:first-child {
  width: 112px;
  background: transparent;
}
.test-matrix-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 112px;
  text-align: left;
  box-shadow: 6px 0 10px rgba(241, 241, 239, 0.92);
}
.test-matrix-table td {
  height: 52px;
  padding: 4px;
  text-align: center;
}
.test-matrix-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #DEDEDA;
  color: transparent;
  transition-property: background-color, color, transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
button.test-matrix-mark:hover { background: #CACAC5; }
button.test-matrix-mark:active { transform: scale(0.96); }
.test-matrix-mark.is-positive.is-selected { background: #2E7A46; color: #fff; }
.test-matrix-mark.is-negative.is-selected { background: #C74A3E; color: #fff; }
.test-matrix-mark.is-selected {
  background: #2D2D2D;
  color: #fff;
}
.test-matrix-mark.is-correct {
  background: #2E7A46;
  color: #fff;
}
.test-matrix-mark.is-incorrect {
  background: #C74A3E;
  color: #fff;
}
.test-matrix-mark svg,
.test-matrix-mobile-choice > span svg { width: 13px; height: 13px; }
.test-matrix-mark svg > *,
.test-matrix-mobile-choice > span svg > * {
  opacity: 0;
  transform: scale(0.25);
  transform-origin: center;
  filter: blur(4px);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition-property: opacity, transform, filter, stroke-dashoffset;
  transition-duration: 260ms, 260ms, 260ms, 520ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.test-matrix-mark:is(.is-selected, .is-correct, .is-incorrect) svg > *,
.test-matrix-mobile-choice:is(.is-selected, .is-correct, .is-incorrect) > span svg > * {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  stroke-dashoffset: 0;
}
.test-matrix-mobile-list { display: none; gap: 10px; }
.test-matrix-mobile-card {
  padding: 14px;
  border-radius: 17px;
  background: #F1F1EF;
}
.test-matrix-mobile-card > strong {
  display: block;
  margin-bottom: 10px;
  color: #2D2D2D;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.45;
  text-wrap: pretty;
}
.test-matrix-mobile-options { display: grid; gap: 7px; }
.test-matrix-mobile-choice {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 13px;
  background: #fff;
  color: #5F5F5F;
  text-align: left;
  transition-property: background-color, color, box-shadow, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
button.test-matrix-mobile-choice:active { transform: scale(0.96); }
button.test-matrix-mobile-choice:focus-visible { outline: 2px solid rgba(45, 45, 45, 0.35); outline-offset: 2px; }
.test-matrix-mobile-choice > span {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 50%;
  background: #DEDEDA;
  color: transparent;
}
.test-matrix-mobile-choice b { font-size: 13px; font-weight: 600; }
.test-matrix-mobile-choice.is-selected { background: #E3E3DF; color: #2D2D2D; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.test-matrix-mobile-choice.is-selected > span { background: #2D2D2D; color: #fff; }
.test-matrix-mobile-choice.is-positive.is-selected { color: #245F36; background: #D9EEDF; box-shadow: none; }
.test-matrix-mobile-choice.is-positive.is-selected > span { background: #2E7A46; }
.test-matrix-mobile-choice.is-negative.is-selected { color: #8E3027; background: #F6DDD8; box-shadow: none; }
.test-matrix-mobile-choice.is-negative.is-selected > span { background: #C74A3E; }
.test-matrix-mobile-choice.is-correct { background: #E8F5EB; color: #245F36; }
.test-matrix-mobile-choice.is-correct > span { background: #2E7A46; color: #fff; }
.test-matrix-mobile-choice.is-incorrect { background: #FCECE9; color: #8E3027; }
.test-matrix-mobile-choice.is-incorrect > span { background: #C74A3E; color: #fff; }
.layout-mobile .test-matrix-table-view { display: none; }
.layout-mobile .test-matrix-mobile-list { display: grid; }
.test-textarea {
  width: 100%;
  min-height: 76px;
  border: 1px solid #D9D9D5;
  border-radius: 16px;
  padding: 13px 14px;
  background: #F7F7F5;
  color: #2D2D2D;
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition-property: border-color, box-shadow, background-color;
  transition-duration: 150ms;
}
.test-textarea:focus {
  border-color: #7C7C76;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45, 45, 45, 0.08);
}
.test-progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #E2E2DF;
}
.test-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: #2D2D2D;
  transition-property: width;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.test-primary-button {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: #2D2D2D;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16), 0 8px 20px rgba(0, 0, 0, 0.1);
  transition-property: background-color, box-shadow, transform, opacity;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.test-primary-button:hover { background: #3D3D3D; }
.test-primary-button:active:not(:disabled) { transform: scale(0.96); }
.test-secondary-button {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: #E7E7E4;
  color: #2D2D2D;
  transition-property: background-color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.test-secondary-button:hover { background: #DEDEDA; }
.test-secondary-button:active { transform: scale(0.96); }
.test-list-card {
  text-decoration: none;
  box-shadow:
    0 1px 2px -1px rgba(0, 0, 0, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.025);
  transition-property: box-shadow, transform, opacity;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}
.test-list-card:active { transform: scale(0.96); }
.test-list-card:disabled:not([aria-disabled="true"]) { opacity: 0.6; }
.test-list-card[aria-disabled="true"] { cursor: default; opacity: 1; }
.test-list-card[aria-disabled="true"]:active { transform: none; }
.test-draft-resume {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 8px 0 11px;
  border-radius: 12px;
  background: #EAF5EC;
  color: #3E6948;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.dark .test-draft-resume { background: #28352B; color: #9BC5A5; }
.test-course-chip {
  min-height: 40px;
  transition-property: background-color, color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.test-course-chip:active { transform: scale(0.96); }
.test-media-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}
.test-media-frame {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #F1F1EF;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}
.test-media-image-frame {
  width: fit-content;
}
.test-media-image-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 720px);
  object-fit: contain;
}
.test-media-frame figcaption {
  padding: 8px 11px 9px;
  color: #7A7A74;
  font-size: 11px;
  line-height: 1.4;
  text-wrap: pretty;
}
.test-media-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.test-media-video-native-frame {
  width: 100%;
}
.test-media-video-native-frame video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 720px);
}
.test-markdown {
  margin: 0 0 16px;
  color: #4F4F4B;
  font-size: 14px;
  line-height: 1.68;
  overflow-wrap: anywhere;
}
.test-markdown > :first-child { margin-top: 0; }
.test-markdown > :last-child { margin-bottom: 0; }
.test-markdown h1,
.test-markdown h2,
.test-markdown h3,
.test-markdown h4 {
  margin: 1.05em 0 0.45em;
  color: #2D2D2D;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-wrap: balance;
}
.test-markdown h1 { font-size: 1.55em; }
.test-markdown h2 { font-size: 1.32em; }
.test-markdown h3 { font-size: 1.14em; }
.test-markdown h4 { font-size: 1em; }
.test-markdown p { margin: 0.75em 0; text-wrap: pretty; }
.test-markdown ul,
.test-markdown ol { margin: 0.75em 0; padding-left: 1.5em; }
.test-markdown li { margin: 0.3em 0; text-wrap: pretty; }
.test-markdown blockquote {
  margin: 0.9em 0;
  padding: 11px 13px;
  border-left: 3px solid #74746E;
  border-radius: 0 12px 12px 0;
  background: #F1F1EF;
  color: #5F5F5B;
}
.test-markdown hr {
  height: 1px;
  margin: 1.15em 0;
  border: 0;
  background: #E1E1DD;
}
.test-markdown code {
  padding: 0.14em 0.38em;
  border-radius: 6px;
  background: #ECECEA;
  color: #3F3F3C;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}
.test-markdown pre {
  overflow: auto;
  margin: 0.9em 0;
  padding: 12px;
  border-radius: 12px;
  background: #252525;
  color: #F1F1EF;
}
.test-markdown pre code { padding: 0; background: transparent; color: inherit; }
.test-markdown a {
  color: #3D5C8F;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.test-markdown del { color: #8B8B85; }
.test-review-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.test-review-summary span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 11px;
  border-radius: 999px;
  background: #ECECEA;
  color: #6B6B6B;
  font-size: 12px;
  font-weight: 600;
}
.test-review-summary strong { color: #2D2D2D; }
.test-review-card { overflow: hidden; }
.test-review-number.is-correct {
  background: #E4F4E8;
  color: #25713C;
}
.test-review-number.is-incorrect {
  background: #FBE9E7;
  color: #B33A2E;
}
.test-review-points {
  display: block;
  margin-top: 6px;
  color: #8B8B85;
  font-size: 11px;
  font-weight: 650;
}
.test-review-option {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 16px;
  background: #F1F1EF;
  color: #5F5F5F;
}
.test-review-option.is-correct {
  background: #E8F5EB;
  color: #245F36;
  box-shadow: inset 0 0 0 1px rgba(37, 113, 60, 0.08);
}
.test-review-option.is-incorrect {
  background: #FCECE9;
  color: #8E3027;
  box-shadow: inset 0 0 0 1px rgba(179, 58, 46, 0.08);
}
.test-review-option-mark {
  width: 24px;
  height: 24px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid #C5C5C0;
  background: #fff;
  color: #8B8B85;
}
.test-review-option.is-correct .test-review-option-mark {
  border-color: #2E7A46;
  background: #2E7A46;
  color: #fff;
}
.test-review-option.is-incorrect .test-review-option-mark {
  border-color: #C74A3E;
  background: #C74A3E;
  color: #fff;
}
.test-review-option-text {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-wrap: pretty;
}
.test-review-option-label {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 650;
  opacity: 0.72;
}
.test-review-text-grid {
  display: grid;
  gap: 10px;
}
.test-review-text-answer {
  padding: 13px 14px;
  border-radius: 16px;
  background: #F1F1EF;
}
.test-review-text-answer.is-correct {
  background: #E8F5EB;
  color: #245F36;
  box-shadow: inset 0 0 0 1px rgba(37, 113, 60, 0.08);
}
.test-review-text-answer.is-incorrect {
  background: #FCECE9;
  color: #8E3027;
  box-shadow: inset 0 0 0 1px rgba(179, 58, 46, 0.08);
}
.test-review-text-answer span {
  display: block;
  margin-bottom: 4px;
  color: currentColor;
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.68;
}
.test-review-text-answer strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.test-review-note {
  color: #8B8B85;
  font-size: 12px;
  line-height: 1.5;
  text-wrap: pretty;
}
.layout-desktop .desktop-test-review .test-runner-scroll { padding-bottom: 40px; }
.dark .test-question-card {
  background: #1C1C1C;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}
.dark .test-question-number { background: #2A2A2A; color: #DEDEDE; }
.dark .test-answer-option { background: #252525; color: #AAA; }
.dark .test-answer-option:hover { background: #2C2C2C; }
.dark .test-answer-option.selected {
  background: #333;
  color: #DEDEDE;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.dark .test-answer-mark { border-color: #575757; background: #1C1C1C; }
.dark .test-answer-option.selected .test-answer-mark { border-color: #F0F0F0; background: #F0F0F0; color: #2D2D2D; }
.dark .test-matrix-scroll { background: #252525; }
.dark .test-matrix-table th { background: #1C1C1C; color: #C7C7C2; }
.dark .test-matrix-table thead th:first-child { background: transparent; }
.dark .test-matrix-table tbody th { box-shadow: 6px 0 10px rgba(37, 37, 37, 0.94); }
.dark .test-matrix-mark { background: #3A3A3A; }
.dark button.test-matrix-mark:hover { background: #505050; }
.dark .test-matrix-mark.is-positive.is-selected { background: #3A8A53; color: #fff; }
.dark .test-matrix-mark.is-negative.is-selected { background: #D05A4E; color: #fff; }
.dark .test-matrix-mark.is-selected { background: #F0F0F0; color: #2D2D2D; }
.dark .test-matrix-mark.is-correct { background: #2E7A46; color: #fff; }
.dark .test-matrix-mark.is-incorrect { background: #C74A3E; color: #fff; }
.dark .test-matrix-mobile-card { background: #252525; }
.dark .test-matrix-mobile-card > strong { color: #DEDEDE; }
.dark .test-matrix-mobile-choice { background: #1C1C1C; color: #AAA; }
.dark .test-matrix-mobile-choice > span { background: #3A3A3A; }
.dark .test-matrix-mobile-choice.is-selected { background: #333; color: #DEDEDE; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); }
.dark .test-matrix-mobile-choice.is-selected > span { background: #F0F0F0; color: #2D2D2D; }
.dark .test-matrix-mobile-choice.is-positive.is-selected { color: #A9DDB7; background: #183523; box-shadow: none; }
.dark .test-matrix-mobile-choice.is-positive.is-selected > span { background: #3A8A53; }
.dark .test-matrix-mobile-choice.is-negative.is-selected { color: #F0AAA3; background: #3A211F; box-shadow: none; }
.dark .test-matrix-mobile-choice.is-negative.is-selected > span { background: #D05A4E; }
.dark .test-matrix-mobile-choice.is-correct { background: #183523; color: #A9DDB7; }
.dark .test-matrix-mobile-choice.is-correct > span { background: #2E7A46; color: #fff; }
.dark .test-matrix-mobile-choice.is-incorrect { background: #3A211F; color: #F0AAA3; }
.dark .test-matrix-mobile-choice.is-incorrect > span { background: #C74A3E; color: #fff; }
.dark .test-textarea { border-color: #383838; background: #202020; color: #DEDEDE; }
.dark .test-textarea:focus { border-color: #777; background: #1C1C1C; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07); }
.dark .test-progress-track { background: #303030; }
.dark .test-progress-fill { background: #F0F0F0; }
.dark .test-primary-button { background: #F0F0F0; color: #2D2D2D; box-shadow: none; }
.dark .test-primary-button:hover { background: #FFF; }
.dark .test-secondary-button { background: #292929; color: #DEDEDE; }
.dark .test-secondary-button:hover { background: #323232; }
.dark .test-list-card { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14); }
.dark .test-media-frame { background: #252525; outline-color: rgba(255, 255, 255, 0.1); }
.dark .test-media-frame figcaption { color: #929292; }
.dark .test-markdown { color: #B7B7B7; }
.dark .test-markdown h1,
.dark .test-markdown h2,
.dark .test-markdown h3,
.dark .test-markdown h4 { color: #DEDEDE; }
.dark .test-markdown blockquote { border-left-color: #A8A8A3; background: #252525; color: #B7B7B7; }
.dark .test-markdown hr { background: #353535; }
.dark .test-markdown code { background: #292929; color: #DEDEDE; }
.dark .test-markdown a { color: #AFC8F0; }
.dark .test-review-summary span { background: #292929; color: #A7A7A7; }
.dark .test-review-summary strong { color: #DEDEDE; }
.dark .test-review-number.is-correct { background: #183523; color: #8FD3A3; }
.dark .test-review-number.is-incorrect { background: #3A211F; color: #EE9D95; }
.dark .test-review-option { background: #252525; color: #AAA; }
.dark .test-review-option.is-correct,
.dark .test-review-text-answer.is-correct {
  background: #183523;
  color: #A9DDB7;
  box-shadow: inset 0 0 0 1px rgba(143, 211, 163, 0.11);
}
.dark .test-review-option.is-incorrect,
.dark .test-review-text-answer.is-incorrect {
  background: #3A211F;
  color: #F0AAA3;
  box-shadow: inset 0 0 0 1px rgba(238, 157, 149, 0.11);
}
.dark .test-review-option-mark { border-color: #555; background: #1C1C1C; }
.dark .test-review-text-answer { background: #252525; color: #DEDEDE; }

@media (prefers-reduced-motion: reduce) {
  .test-matrix-mark,
  .test-matrix-mark svg > *,
  .test-matrix-mobile-choice,
  .test-matrix-mobile-choice > span svg > * {
    transition-duration: 0.01ms;
    transition-delay: 0ms;
  }
}
