:root {
  --ink: #132a35;
  --ink-soft: #526773;
  --navy: #0c2d3c;
  --navy-2: #16475b;
  --paper: #f7f4ec;
  --card: #fffefb;
  --line: #dbe1df;
  --accent: #c7452f;
  --accent-dark: #9f3022;
  --gold: #d7a84c;
  --green: #28765f;
  --green-soft: #e8f4ef;
  --red-soft: #faebe7;
  --yellow-soft: #fff5d8;
  --shadow: 0 18px 50px rgba(14, 39, 49, 0.1);
  --radius: 22px;
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 8%, rgba(215, 168, 76, 0.14), transparent 28rem),
    linear-gradient(180deg, #f2f5f1 0, var(--paper) 30rem, #f7f4ec 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(199, 69, 47, 0.35);
  outline-offset: 3px;
}

.loading-shell,
.error-shell {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
}

.loading-mark,
.brand-mark {
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 30px rgba(159, 48, 34, 0.25);
}

.loading-mark {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-family: SimSun, serif;
  font-size: 30px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(24px, calc((100vw - 1240px) / 2));
  color: white;
  background: rgba(12, 45, 60, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-family: SimSun, serif;
  font-size: 22px;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0.04em;
}

.brand span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-meta {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.page {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.mode-panel,
.question-card,
.side-card,
.result-card,
.review-card {
  background: rgba(255, 254, 251, 0.95);
  border: 1px solid rgba(20, 65, 82, 0.1);
  box-shadow: var(--shadow);
}

.hero-copy {
  min-height: 320px;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 30px;
  background:
    linear-gradient(130deg, rgba(255, 254, 251, 0.98), rgba(255, 254, 251, 0.88)),
    repeating-linear-gradient(90deg, transparent 0 32px, rgba(12, 45, 60, 0.03) 33px 34px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 690px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat {
  min-width: 118px;
  padding: 14px 17px;
  background: #f3f6f3;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.stat strong {
  display: block;
  font-size: 24px;
}

.stat span {
  color: var(--ink-soft);
  font-size: 12px;
}

.mode-panel {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 30px;
}

.mode-panel h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.mode-panel > p {
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.mode-choice {
  display: grid;
  gap: 12px;
}

.mode-button {
  position: relative;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  transition: 160ms ease;
}

.mode-button:hover {
  transform: translateY(-2px);
  border-color: rgba(199, 69, 47, 0.36);
}

.mode-button.active {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 14px 28px rgba(12, 45, 60, 0.16);
}

.mode-button strong,
.mode-button span {
  display: block;
}

.mode-button strong {
  margin-bottom: 5px;
}

.mode-button span {
  color: var(--ink-soft);
  font-size: 12px;
}

.mode-button.active span {
  color: rgba(255, 255, 255, 0.66);
}

.source-note {
  margin-top: auto;
  padding-top: 24px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.launch-panel {
  justify-content: center;
}

.launch-panel > p:not(.eyebrow) {
  margin-bottom: 22px;
}

.launch-button {
  width: 100%;
  min-height: 52px;
  margin-bottom: 11px;
}

.continue-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding: 14px;
  background: #f3f6f3;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.continue-banner strong,
.continue-banner span {
  display: block;
}

.continue-banner strong {
  margin-bottom: 4px;
  font-size: 13px;
}

.continue-banner span {
  color: var(--ink-soft);
  font-size: 11px;
}

.clear-wrong-button {
  align-self: center;
  margin-top: 16px;
  padding: 5px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.workflow-section {
  margin-top: 48px;
}

.workflow-section .section-heading {
  margin-top: 0;
}

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

.workflow-grid article {
  padding: 24px;
  background: rgba(255, 254, 251, 0.9);
  border: 1px solid rgba(20, 65, 82, 0.11);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(14, 39, 49, 0.05);
}

.workflow-grid article > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.workflow-grid h3 {
  margin: 13px 0 7px;
  font-size: 18px;
}

.workflow-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 52px 0 20px;
}

.section-heading h2 {
  margin: 0 0 5px;
  font-size: 26px;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

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

.set-card {
  position: relative;
  display: flex;
  min-height: 165px;
  flex-direction: column;
  padding: 19px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 254, 251, 0.92);
  border: 1px solid rgba(20, 65, 82, 0.12);
  border-radius: 19px;
  box-shadow: 0 8px 24px rgba(14, 39, 49, 0.05);
  transition: 160ms ease;
}

.set-card:hover {
  transform: translateY(-3px);
  border-color: rgba(199, 69, 47, 0.35);
  box-shadow: 0 14px 30px rgba(14, 39, 49, 0.09);
}

.set-number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.set-card h3 {
  margin: 10px 0 5px;
  font-size: 19px;
}

.set-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.set-progress {
  margin-top: auto;
  padding-top: 18px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  background: #e8ecea;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: inherit;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 11px;
}

.pending-badge,
.category-badge,
.type-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 700;
}

.pending-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 8px;
  color: #856020;
  background: var(--yellow-soft);
  font-size: 10px;
}

.exam-page {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 70px;
}

.exam-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.question-card {
  min-width: 0;
  padding: clamp(22px, 4vw, 42px);
  border-radius: var(--radius);
}

.question-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.question-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.type-badge,
.category-badge,
.status-pill {
  padding: 7px 11px;
  font-size: 12px;
}

.category-badge.image {
  color: #8a3326;
  background: var(--red-soft);
}

.category-badge.theory {
  color: #1e654f;
  background: var(--green-soft);
}

.type-badge {
  color: var(--navy-2);
  background: #e7f0f2;
}

.score-badge {
  color: var(--ink-soft);
  font-size: 12px;
}

.flag-button {
  padding: 9px 12px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.flag-button.active {
  color: #8c661e;
  background: var(--yellow-soft);
  border-color: #ebd28f;
}

.question-title {
  margin-bottom: 25px;
  font-size: clamp(20px, 2.7vw, 28px);
  line-height: 1.65;
  white-space: pre-line;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.question-image {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 10px;
  overflow: hidden;
  background: #f4f5f1;
  border: 1px solid var(--line);
  border-radius: 15px;
  cursor: zoom-in;
}

.question-image img {
  display: block;
  width: 100%;
  max-height: 330px;
  object-fit: contain;
}

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

.option-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  width: 100%;
  padding: 15px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  transition: 140ms ease;
}

.option-card:hover:not(:disabled) {
  border-color: rgba(22, 71, 91, 0.42);
  background: #fbfcfa;
}

.option-key {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--navy-2);
  background: #edf3f3;
  border-radius: 11px;
  font-weight: 800;
}

.option-body {
  min-width: 0;
}

.option-text {
  display: block;
  padding: 6px 0 2px;
  line-height: 1.6;
  white-space: pre-line;
}

.option-card.selected {
  background: #edf5f7;
  border-color: var(--navy-2);
  box-shadow: inset 0 0 0 1px var(--navy-2);
}

.option-card.selected .option-key {
  color: white;
  background: var(--navy-2);
}

.option-card.correct {
  background: var(--green-soft);
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}

.option-card.correct .option-key {
  color: white;
  background: var(--green);
}

.option-card.wrong {
  background: var(--red-soft);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.option-card.wrong .option-key {
  color: white;
  background: var(--accent);
}

.option-card:disabled {
  cursor: default;
}

.option-card .image-grid {
  margin: 10px 0 0;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
}

.option-card .question-image {
  min-height: 120px;
}

.answer-feedback {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 16px;
  line-height: 1.7;
}

.answer-feedback.correct {
  color: #1f624e;
  background: var(--green-soft);
  border: 1px solid #b9dfcf;
}

.answer-feedback.wrong {
  color: #873124;
  background: var(--red-soft);
  border: 1px solid #edc4bb;
}

.answer-feedback.pending {
  color: #7b5a20;
  background: var(--yellow-soft);
  border: 1px solid #ecd797;
}

.answer-feedback strong {
  display: block;
  margin-bottom: 3px;
}

.question-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.action-group {
  display: flex;
  gap: 10px;
}

.button {
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 700;
}

.button-primary {
  color: white;
  background: var(--accent);
  box-shadow: 0 9px 20px rgba(199, 69, 47, 0.2);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.button-ghost {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

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

.side-card {
  position: sticky;
  top: 92px;
  padding: 22px;
  border-radius: var(--radius);
}

.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.side-head h2 {
  margin: 0;
  font-size: 18px;
}

.timer {
  padding: 7px 9px;
  color: var(--navy-2);
  background: #edf3f3;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 800;
}

.exam-progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.category-progress,
.result-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.category-progress span,
.result-breakdown span {
  padding: 6px 9px;
  color: var(--ink-soft);
  background: #f3f6f3;
  border-radius: 9px;
  font-size: 11px;
}

.question-nav {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  margin: 22px 0;
}

.nav-number {
  aspect-ratio: 1;
  padding: 0;
  color: var(--ink-soft);
  background: #f5f6f3;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
}

.nav-number.answered {
  color: white;
  background: var(--navy-2);
  border-color: var(--navy-2);
}

.nav-number.current {
  box-shadow: 0 0 0 3px rgba(199, 69, 47, 0.22);
  border-color: var(--accent);
}

.nav-number.flagged::after {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  margin: -6px auto 0;
  background: var(--gold);
  border-radius: 50%;
}

.side-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 13px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 11px;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  background: var(--navy-2);
  border-radius: 50%;
}

.legend-dot.flagged {
  background: var(--gold);
}

.submit-wide {
  width: 100%;
}

.result-wrap {
  width: min(1020px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 74px;
}

.result-card {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: clamp(26px, 5vw, 48px);
  border-radius: 28px;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 210px;
  height: 210px;
  margin: auto;
  background: conic-gradient(var(--accent) var(--score-angle), #e9ece8 0);
  border-radius: 50%;
}

.score-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 166px;
  height: 166px;
  background: var(--card);
  border-radius: 50%;
}

.score-value {
  z-index: 1;
  grid-area: 1 / 1;
  text-align: center;
}

.score-value strong {
  display: block;
  font-size: 54px;
  line-height: 1;
}

.score-value span {
  color: var(--ink-soft);
  font-size: 12px;
}

.result-copy h1 {
  margin-bottom: 9px;
  font-size: clamp(30px, 4vw, 44px);
}

.result-copy > p {
  color: var(--ink-soft);
  line-height: 1.75;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 23px 0;
}

.result-stat {
  padding: 14px;
  background: #f4f6f3;
  border-radius: 14px;
  text-align: center;
}

.result-stat strong,
.result-stat span {
  display: block;
}

.result-stat strong {
  font-size: 23px;
}

.result-stat span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-breakdown {
  margin: -10px 0 22px;
}

.review-section {
  margin-top: 30px;
}

.review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.review-toolbar h2 {
  margin: 0;
}

.filter-row {
  display: flex;
  gap: 7px;
}

.filter-button {
  padding: 8px 12px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.filter-button.active {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}

.review-list {
  display: grid;
  gap: 14px;
}

.review-card {
  padding: 22px;
  border-radius: 18px;
}

.review-card h3 {
  margin: 9px 0 12px;
  font-size: 17px;
  line-height: 1.6;
}

.review-question-kind {
  display: inline-block;
  margin-left: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.review-card p {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 13px;
}

.review-details {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.review-details summary {
  padding: 14px 0 2px;
  color: var(--navy-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.review-options {
  margin-top: 14px;
}

.status-pill.correct {
  color: #1e654f;
  background: var(--green-soft);
}

.status-pill.wrong {
  color: #8a3326;
  background: var(--red-soft);
}

.status-pill.pending {
  color: #805d1d;
  background: var(--yellow-soft);
}

.image-dialog {
  width: min(94vw, 1100px);
  max-height: 92vh;
  padding: 18px;
  overflow: auto;
  background: #10171a;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.image-dialog::backdrop {
  background: rgba(4, 12, 16, 0.82);
  backdrop-filter: blur(6px);
}

.image-dialog img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.image-dialog p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  font-size: 12px;
}

.dialog-close {
  position: sticky;
  top: 0;
  z-index: 1;
  float: right;
  width: 38px;
  height: 38px;
  margin: 0 0 -38px;
  color: white;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-size: 23px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: min(380px, calc(100% - 44px));
  padding: 13px 17px;
  color: white;
  background: var(--navy);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.empty-review {
  padding: 34px;
  color: var(--ink-soft);
  text-align: center;
  background: rgba(255, 254, 251, 0.75);
  border: 1px dashed var(--line);
  border-radius: 18px;
}

@media (max-width: 1050px) {
  .set-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .hero,
  .exam-layout,
  .result-card {
    grid-template-columns: 1fr;
  }

  .mode-panel {
    min-height: 0;
  }

  .source-note {
    margin-top: 20px;
  }

  .side-card {
    position: static;
    grid-row: 1;
  }

  .question-nav {
    grid-template-columns: repeat(15, 34px);
    overflow-x: auto;
    padding-bottom: 7px;
  }

  .nav-number {
    width: 34px;
  }

  .result-copy {
    text-align: center;
  }

  .result-actions {
    justify-content: center;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 12px 16px;
  }

  .header-meta {
    display: none;
  }

  .brand span {
    display: none;
  }

  .page,
  .exam-page,
  .result-wrap {
    width: min(100% - 24px, 1240px);
    padding-top: 22px;
  }

  .hero-copy,
  .mode-panel {
    border-radius: 22px;
  }

  .hero-copy {
    min-height: 0;
    padding: 28px 22px;
  }

  h1 {
    font-size: 36px;
  }

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

  .set-card {
    min-height: 150px;
    padding: 16px;
  }

  .question-card,
  .side-card,
  .review-card {
    border-radius: 17px;
  }

  .question-card {
    padding: 20px 16px;
  }

  .question-actions,
  .review-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .question-actions .action-group,
  .question-actions .button {
    flex: 1;
  }

  .result-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-row {
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
