/* go-exam — design tokens and base rules.
   Pico variables are mapped from the --ge-* tokens, never the reverse. */

:root {
  --ge-paper: #fbfaf7;
  --ge-surface: #ffffff;
  --ge-ink: #1c2430;
  --ge-muted: #5b6573;
  --ge-rule: #d9d5cc;
  --ge-accent: #1f4fa3;
  --ge-accent-soft: #eef3fb;
  --ge-ok: #1d6b3a;
  --ge-ok-bg: #e7f3ea;
  --ge-warn: #8a5300;
  --ge-warn-bg: #fff3d6;
  --ge-danger: #a12622;
  --ge-danger-bg: #fbe9e7;

  --ge-font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ge-font-paper: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ge-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --ge-space-1: 4px;
  --ge-space-2: 8px;
  --ge-space-3: 12px;
  --ge-space-4: 16px;
  --ge-space-5: 24px;
  --ge-space-6: 32px;
  --ge-radius: 6px;
  --ge-touch: 44px;
  --ge-bubble-size: 32px;
  --ge-transition: 150ms ease-in-out;
}

/* Higher specificity than Pico's light-theme selector, so these win. */
:root[data-theme="light"] {
  --pico-font-family: var(--ge-font-ui);
  --pico-font-family-sans-serif: var(--ge-font-ui);
  --pico-font-family-monospace: var(--ge-font-mono);
  --pico-background-color: var(--ge-paper);
  --pico-color: var(--ge-ink);
  --pico-h1-color: var(--ge-ink);
  --pico-h2-color: var(--ge-ink);
  --pico-h3-color: var(--ge-ink);
  --pico-h4-color: var(--ge-ink);
  --pico-h5-color: var(--ge-ink);
  --pico-h6-color: var(--ge-ink);
  --pico-muted-color: var(--ge-muted);
  --pico-muted-border-color: var(--ge-rule);
  --pico-border-radius: var(--ge-radius);
  --pico-primary: var(--ge-accent);
  --pico-primary-background: var(--ge-accent);
  --pico-primary-border: var(--ge-accent);
  --pico-primary-underline: var(--ge-accent);
  --pico-primary-hover: var(--ge-ink);
  --pico-primary-hover-background: var(--ge-ink);
  --pico-primary-hover-border: var(--ge-ink);
  --pico-primary-hover-underline: var(--ge-ink);
  --pico-primary-inverse: var(--ge-surface);
  --pico-secondary-background: var(--ge-surface);
  --pico-secondary-border: var(--ge-rule);
  --pico-secondary-inverse: var(--ge-ink);
  --pico-secondary-hover-background: var(--ge-accent-soft);
  --pico-secondary-hover-border: var(--ge-accent);
  --pico-secondary-hover: var(--ge-ink);
  --pico-card-background-color: var(--ge-surface);
  --pico-card-sectioning-background-color: var(--ge-surface);
  --pico-card-box-shadow: none;
  --pico-box-shadow: none;
  --pico-dropdown-background-color: var(--ge-surface);
  --pico-form-element-background-color: var(--ge-surface);
  --pico-form-element-border-color: var(--ge-rule);
  --pico-form-element-active-border-color: var(--ge-accent);
  --pico-form-element-focus-color: var(--ge-accent);
  --pico-form-element-invalid-border-color: var(--ge-danger);
  --pico-form-element-valid-border-color: var(--ge-rule);
  --pico-table-border-color: var(--ge-rule);
  --pico-table-row-stripped-background-color: var(--ge-paper);
  --pico-code-background-color: var(--ge-paper);
  --pico-code-color: var(--ge-ink);
  --pico-del-color: var(--ge-danger);
  --pico-ins-color: var(--ge-ok);
  --pico-outline-width: 0px; /* focus is shown by the :focus-visible outline below */
  --pico-transition: var(--ge-transition);
}

body {
  background: var(--ge-paper);
  color: var(--ge-ink);
  font-family: var(--ge-font-ui);
}

/* The "paper" voice: question and option text. */
.paper,
.question-body,
.option-body {
  font-family: var(--ge-font-paper);
  font-size: 1.125rem;
  line-height: 1.6;
}

.numeric,
.tabular,
#timer,
#score,
td,
th {
  font-variant-numeric: tabular-nums;
}

code,
kbd,
pre,
samp {
  font-family: var(--ge-font-mono);
}

pre {
  overflow-x: auto;
}

img {
  max-width: 100%;
  height: auto;
}

.narrow {
  max-width: 28rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Focus: one ring everywhere. */
:focus-visible {
  outline: 3px solid var(--ge-accent);
  outline-offset: 2px;
}

/* The answer-sheet bubble: empty outline = open, filled ink = answered/picked. */
.bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--ge-bubble-size);
  height: var(--ge-bubble-size);
  border: 2px solid var(--ge-rule);
  border-radius: 50%;
  background: var(--ge-surface);
  color: var(--ge-ink);
  font-family: var(--ge-font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-decoration: none;
  transition: background-color var(--ge-transition), border-color var(--ge-transition), color var(--ge-transition);
}

.bubble[data-answered="true"],
.bubble.filled {
  background: var(--ge-accent);
  border-color: var(--ge-accent);
  color: var(--ge-surface);
}

/* Status badges always carry text; colour only reinforces it. */
.badge {
  display: inline-block;
  padding: 2px var(--ge-space-2);
  border: 1px solid var(--ge-rule);
  border-radius: var(--ge-radius);
  background: var(--ge-surface);
  color: var(--ge-ink);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-ok {
  background: var(--ge-ok-bg);
  border-color: var(--ge-ok);
  color: var(--ge-ok);
}

.badge-warn {
  background: var(--ge-warn-bg);
  border-color: var(--ge-warn);
  color: var(--ge-warn);
}

.badge-danger {
  background: var(--ge-danger-bg);
  border-color: var(--ge-danger);
  color: var(--ge-danger);
}

.badge-muted {
  color: var(--ge-muted);
}

/* Teacher pages: header, content width, login column, tables. */
.admin-header {
  background: var(--ge-surface);
  border-bottom: 1px solid var(--ge-rule);
  margin-bottom: var(--ge-space-5);
}

.admin-header nav {
  max-width: 1100px;
  align-items: center;
}

.admin-header nav li {
  padding-top: var(--ge-space-2);
  padding-bottom: var(--ge-space-2);
}

.wordmark {
  color: var(--ge-ink);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.logout-form {
  margin: 0;
}

.logout-form button {
  margin: 0;
  min-height: var(--ge-touch);
  padding: var(--ge-space-2) var(--ge-space-4);
}

main.admin {
  max-width: 1100px;
}

main.login {
  padding-top: var(--ge-space-6);
}

main.login button[type="submit"] {
  width: 100%;
  min-height: var(--ge-touch);
}

.alert {
  margin-bottom: var(--ge-space-4);
  padding: var(--ge-space-3) var(--ge-space-4);
  border: 1px solid var(--ge-danger);
  border-radius: var(--ge-radius);
  background: var(--ge-danger-bg);
  color: var(--ge-danger);
  font-weight: 600;
}

.overflow-auto table {
  background: var(--ge-surface);
  margin-bottom: 0;
}

table th {
  color: var(--ge-muted);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.empty {
  color: var(--ge-muted);
}

/* Exams list: import form, format help, row actions. */
.import {
  margin-bottom: var(--ge-space-5);
}

.upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ge-space-3);
  align-items: center;
}

.upload-row input[type="file"] {
  flex: 1 1 16rem;
  margin: 0;
}

.upload-row button,
#replace-form button {
  margin: 0;
  min-height: var(--ge-touch);
}

.format-help {
  margin-top: var(--ge-space-4);
  padding: var(--ge-space-3) var(--ge-space-4);
  border: 1px solid var(--ge-rule);
  border-radius: var(--ge-radius);
  background: var(--ge-surface);
}

.format-help summary {
  font-weight: 600;
}

.format-help pre {
  padding: var(--ge-space-3);
  border: 1px solid var(--ge-rule);
  border-radius: var(--ge-radius);
  background: var(--ge-paper);
  font-size: 0.875rem;
  line-height: 1.5;
}

.format-help ul {
  margin-bottom: 0;
}

.row-actions {
  white-space: nowrap;
}

.row-actions form {
  display: inline-block;
  margin: 0 var(--ge-space-3) 0 0;
}

.row-actions button {
  margin: 0;
  padding: var(--ge-space-1) var(--ge-space-3);
  min-height: var(--ge-touch);
}

.row-actions a {
  display: inline-block;
  margin-right: var(--ge-space-3);
  padding: var(--ge-space-2) 0;
}

/* Exam detail: heading, actions, settings, replace form, preview. */
.back {
  margin-bottom: var(--ge-space-3);
  font-size: 0.875rem;
}

.exam-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ge-space-3);
  align-items: center;
  margin-bottom: var(--ge-space-4);
}

.exam-head h1 {
  margin: 0;
}

.exam-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ge-space-3);
  align-items: center;
  margin-bottom: var(--ge-space-5);
}

.exam-actions form {
  margin: 0;
}

.exam-actions button,
.exam-actions [role="button"] {
  margin: 0;
  min-height: var(--ge-touch);
}

.settings {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--ge-space-2) var(--ge-space-4);
  margin-bottom: var(--ge-space-5);
}

.settings dt {
  color: var(--ge-muted);
  font-weight: 600;
}

.settings dd {
  margin: 0;
}

.replace {
  margin-bottom: var(--ge-space-6);
}

.frozen-notice {
  padding: var(--ge-space-3) var(--ge-space-4);
  border: 1px solid var(--ge-warn);
  border-radius: var(--ge-radius);
  background: var(--ge-warn-bg);
  color: var(--ge-warn);
  font-weight: 600;
}

.preview-question {
  margin-bottom: var(--ge-space-5);
  padding: var(--ge-space-4);
  border: 1px solid var(--ge-rule);
  border-radius: var(--ge-radius);
  background: var(--ge-surface);
}

.eyebrow {
  margin-bottom: var(--ge-space-2);
  color: var(--ge-muted);
  font-size: 0.875rem;
}

.preview-options {
  margin: var(--ge-space-3) 0 0;
  padding-left: var(--ge-space-5);
  list-style-type: upper-alpha;
}

.preview-options li {
  margin-bottom: var(--ge-space-2);
  padding: var(--ge-space-2) var(--ge-space-3);
  border: 1px solid var(--ge-rule);
  border-radius: var(--ge-radius);
}

.preview-options li[data-correct="true"] {
  border-color: var(--ge-ok);
  background: var(--ge-ok-bg);
}

.question-body > :last-child,
.option-body > :last-child {
  margin-bottom: 0;
}

.correct-mark {
  display: inline-block;
  margin-top: var(--ge-space-1);
  color: var(--ge-ok);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Results: attempts table, attempt detail, delete confirmation. */
.results-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ge-space-3);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--ge-space-2);
}

.results-bar .counts {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.results-bar [role="button"] {
  margin: 0;
  min-height: var(--ge-touch);
}

.zone-note {
  margin-bottom: var(--ge-space-3);
  color: var(--ge-muted);
  font-size: 0.875rem;
}

.sort-link {
  display: inline-block;
  padding: var(--ge-space-2) 0;
  color: inherit;
}

th[aria-sort] {
  color: var(--ge-ink);
}

.resume-code {
  padding: 2px var(--ge-space-1);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Dense attempts table: dates, times and scores never break mid-value, and
   tighter cells keep all eight columns inside the 1100 px column at 1280 px. */
#attempts th,
#attempts td {
  padding-inline: var(--ge-space-2);
}

#attempts td {
  font-size: 0.875rem;
}

#attempts td.numeric {
  white-space: nowrap;
}

.row-actions a:last-child {
  margin-right: 0;
}

.row-actions .danger-link {
  color: var(--ge-danger);
}

.detail-question {
  margin-bottom: var(--ge-space-5);
  padding: var(--ge-space-4);
  border: 1px solid var(--ge-rule);
  border-radius: var(--ge-radius);
  background: var(--ge-surface);
}

.detail-options li[data-picked="true"][data-correct="false"] {
  border-color: var(--ge-danger);
  background: var(--ge-danger-bg);
}

.detail-options li[data-picked="true"] {
  border-width: 2px;
}

.option-marks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ge-space-3);
  margin: var(--ge-space-1) 0 0;
}

.option-marks .correct-mark {
  margin-top: 0;
}

.pick-mark {
  font-size: 0.875rem;
  font-weight: 600;
}

.detail-options li[data-correct="false"] .pick-mark {
  color: var(--ge-danger);
}

.no-answer {
  color: var(--ge-danger);
  font-weight: 600;
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ge-space-3);
  align-items: center;
}

.confirm-actions form {
  margin: 0;
}

.confirm-actions button,
.confirm-actions [role="button"] {
  margin: 0;
  min-height: var(--ge-touch);
}

.danger-button {
  border-color: var(--ge-danger);
  background: var(--ge-danger);
  color: var(--ge-surface);
}

/* Student: landing. */
main.landing {
  padding-top: var(--ge-space-6);
  padding-bottom: var(--ge-space-6);
}

.landing-title {
  margin-bottom: var(--ge-space-4);
}

#start-form button,
#resume-form button {
  width: 100%;
  min-height: var(--ge-touch);
  margin-bottom: 0;
}

.landing-note {
  margin-top: var(--ge-space-3);
  color: var(--ge-muted);
  font-size: 0.9375rem;
}

.no-exam {
  margin-bottom: var(--ge-space-5);
}

.last-result {
  margin: var(--ge-space-4) 0;
  font-weight: 600;
}

.resume {
  margin-top: var(--ge-space-5);
  padding: var(--ge-space-3) var(--ge-space-4);
  border: 1px solid var(--ge-rule);
  border-radius: var(--ge-radius);
  background: var(--ge-surface);
}

.resume summary {
  font-weight: 600;
}

#code {
  font-family: var(--ge-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Student: exam page. Designed at 412 px, then a two-column layout from 992 px. */
.exam-header,
#exam {
  --ge-column: 720px;
}

/* Pico pads body > header/main; the exam bar sits flush under the header. */
.exam-header {
  padding: 0;
  background: var(--ge-surface);
}

#exam {
  padding-top: 0;
}

.exam-header-inner,
.exam-layout {
  max-width: var(--ge-column);
  margin: 0 auto;
  padding: 0 var(--ge-space-4);
}

.exam-header-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ge-space-1) var(--ge-space-4);
  align-items: baseline;
  justify-content: space-between;
  padding-top: var(--ge-space-3);
  padding-bottom: var(--ge-space-2);
}

.exam-title {
  margin: 0;
  font-size: 1.125rem;
}

.student-name {
  margin: 0;
  color: var(--ge-muted);
  font-size: 0.875rem;
}

/* Sticky top bar: timer, save state, navigator toggle — one 56 px row. */
.exam-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: var(--ge-space-3);
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 max(var(--ge-space-4), calc((100% - var(--ge-column)) / 2 + var(--ge-space-4)));
  border-top: 1px solid var(--ge-rule);
  border-bottom: 1px solid var(--ge-rule);
  background: var(--ge-surface);
}

.timer-box {
  flex: none;
  margin: 0;
}

#timer {
  display: inline-block;
  min-width: 4.5ch;
  padding: var(--ge-space-1) var(--ge-space-2);
  border: 1px solid transparent;
  border-radius: var(--ge-radius);
  color: var(--ge-ink);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  transition: background-color var(--ge-transition), border-color var(--ge-transition), color var(--ge-transition);
}

#timer[data-level="warn"] {
  border-color: var(--ge-warn);
  background: var(--ge-warn-bg);
  color: var(--ge-warn);
}

#timer[data-level="danger"] {
  border-color: var(--ge-danger);
  background: var(--ge-danger-bg);
  color: var(--ge-danger);
}

#save-state {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}

#save-state[data-state="saved"] {
  color: var(--ge-ok);
}

#save-state[data-state="saving"] {
  color: var(--ge-muted);
}

#save-state[data-state="error"] {
  color: var(--ge-danger);
}

#nav-toggle {
  flex: none;
  width: auto;
  min-height: var(--ge-touch);
  margin: 0;
  padding: 0 var(--ge-space-3);
}

.banner {
  max-width: 720px;
  margin: var(--ge-space-3) auto;
  padding: var(--ge-space-3) var(--ge-space-4);
  border: 1px solid var(--ge-rule);
  border-radius: var(--ge-radius);
  font-weight: 600;
}

.banner-danger {
  border-color: var(--ge-danger);
  background: var(--ge-danger-bg);
  color: var(--ge-danger);
}

.banner-warn {
  border-color: var(--ge-warn);
  background: var(--ge-warn-bg);
  color: var(--ge-warn);
}

/* Pico lays out nav as a flex row; the navigator is a block with a grid. */
#question-nav {
  display: block;
  margin: var(--ge-space-4) 0;
  padding: var(--ge-space-3);
  border: 1px solid var(--ge-rule);
  border-radius: var(--ge-radius);
  background: var(--ge-surface);
}

#answered-count {
  margin-bottom: var(--ge-space-2);
  font-size: 0.875rem;
  font-weight: 600;
}

/* The id outranks Pico's negative nav ol margins, which pushed bubbles past the box. */
#question-nav .nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--ge-touch), 1fr));
  gap: var(--ge-space-2) var(--ge-space-1);
  margin: 0;
  padding: 0;
}

.nav-grid li {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-grid .bubble {
  --ge-bubble-size: 40px;
  position: relative;
}

/* 44 px hit area around the 40 px bubble. */
.nav-grid .bubble::after {
  content: "";
  position: absolute;
  inset: -4px;
}

/* Without exam.js the navigator stays open; with it, the phone panel opens
   from the toggle and sits under the top bar. */
@media (max-width: 991.98px) {
  html.js #question-nav[data-open="false"] {
    display: none;
  }

  html.js #question-nav[data-open="true"] {
    position: sticky;
    top: 56px;
    z-index: 9;
    max-height: calc(100vh - 56px);
    margin-top: 0;
    overflow-y: auto;
    border-top: 0;
    border-radius: 0 0 var(--ge-radius) var(--ge-radius);
  }
}

/* Questions. */
.question {
  scroll-margin-top: calc(56px + var(--ge-space-2));
  margin: var(--ge-space-4) 0 var(--ge-space-5);
  padding: var(--ge-space-4);
  border: 1px solid var(--ge-rule);
  border-radius: var(--ge-radius);
  background: var(--ge-surface);
}

.question-head {
  display: flex;
  gap: var(--ge-space-3);
  align-items: baseline;
  justify-content: space-between;
}

.question-head .eyebrow {
  margin: 0 0 var(--ge-space-2);
}

.q-state {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.q-state[data-state="saved"] {
  color: var(--ge-ok);
}

.q-state[data-state="saving"] {
  color: var(--ge-muted);
}

.q-state[data-state="error"] {
  color: var(--ge-danger);
}

.options {
  margin: var(--ge-space-4) 0 0;
  padding: 0;
  border: 0;
}

/* .options raises specificity above Pico's fit-content radio labels. */
.options .option {
  position: relative;
  display: flex;
  gap: var(--ge-space-3);
  align-items: center;
  width: 100%;
  min-height: 48px;
  margin: 0 0 var(--ge-space-2);
  padding: var(--ge-space-2) var(--ge-space-3);
  border: 1px solid var(--ge-rule);
  border-radius: var(--ge-radius);
  background: var(--ge-surface);
  cursor: pointer;
  transition: background-color var(--ge-transition), border-color var(--ge-transition);
}

/* The native radio stays focusable and announced, but is not drawn. */
.option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.option:has(input:checked) {
  padding: calc(var(--ge-space-2) - 1px) calc(var(--ge-space-3) - 1px);
  border: 2px solid var(--ge-accent);
  background: var(--ge-accent-soft);
}

.option:has(input:checked) .bubble {
  border-color: var(--ge-accent);
  background: var(--ge-accent);
  color: var(--ge-surface);
}

.option:has(input:focus-visible) {
  outline: 3px solid var(--ge-accent);
  outline-offset: 2px;
}

.option:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.7;
}

.exam-footer {
  margin-top: var(--ge-space-6);
  padding: var(--ge-space-4) 0 var(--ge-space-6);
  border-top: 1px solid var(--ge-rule);
}

.answered-summary {
  font-weight: 600;
}

#submit-open {
  width: 100%;
  min-height: var(--ge-touch);
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ge-space-3);
  justify-content: flex-end;
}

/* The id outranks Pico's full-width submit button and its footer button margin. */
#submit-dialog .dialog-actions button {
  flex: 1 1 auto;
  width: auto;
  min-height: var(--ge-touch);
  margin: 0;
}

@media (min-width: 992px) {
  .exam-header,
  #exam {
    --ge-column: calc(220px + var(--ge-space-6) + 720px);
  }

  .banner {
    max-width: var(--ge-column);
  }

  .exam-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 720px);
    gap: var(--ge-space-6);
    align-items: start;
  }

  #question-nav {
    position: sticky;
    top: calc(56px + var(--ge-space-4));
    max-height: calc(100vh - 56px - var(--ge-space-5));
    overflow-y: auto;
  }

  #nav-toggle {
    display: none;
  }

  #submit-open {
    width: auto;
  }
}

/* Student: result. */
main.result {
  max-width: 720px;
  padding-top: var(--ge-space-6);
  padding-bottom: var(--ge-space-6);
}

.result-meta {
  color: var(--ge-muted);
}

.result-recorded {
  font-size: 1.125rem;
}

.score-block {
  margin: var(--ge-space-5) 0;
  padding: var(--ge-space-4) var(--ge-space-5);
  border: 1px solid var(--ge-rule);
  border-radius: var(--ge-radius);
  background: var(--ge-surface);
  text-align: center;
}

#score {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
}

.score-caption {
  margin: 0;
  color: var(--ge-muted);
}

.review-question {
  margin: var(--ge-space-4) 0 var(--ge-space-5);
  padding: var(--ge-space-4);
  border: 1px solid var(--ge-rule);
  border-radius: var(--ge-radius);
  background: var(--ge-surface);
}

.no-answer {
  margin: var(--ge-space-3) 0 0;
  color: var(--ge-muted);
  font-weight: 600;
}

.review-options {
  margin: var(--ge-space-4) 0 0;
  padding: 0;
}

.review-option {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ge-space-2) var(--ge-space-3);
  align-items: center;
  min-height: 48px;
  margin: 0 0 var(--ge-space-2);
  padding: var(--ge-space-2) var(--ge-space-3);
  border: 1px solid var(--ge-rule);
  border-radius: var(--ge-radius);
  background: var(--ge-surface);
  list-style: none;
}

.review-option .option-body {
  flex: 1 1 12rem;
}

.review-option[data-picked="true"] .bubble {
  border-color: var(--ge-accent);
  background: var(--ge-accent);
  color: var(--ge-surface);
}

.review-option[data-correct="true"] {
  border-color: var(--ge-ok);
  background: var(--ge-ok-bg);
}

.review-option[data-picked="true"][data-correct="false"] {
  border-color: var(--ge-danger);
  background: var(--ge-danger-bg);
}

.review-mark {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.review-option[data-correct="true"] .review-mark {
  color: var(--ge-ok);
}

.review-option[data-picked="true"][data-correct="false"] .review-mark {
  color: var(--ge-danger);
}

@media (prefers-reduced-motion: reduce) {
  :root[data-theme="light"] {
    --pico-transition: 0s;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
