/* NAVLE practice exam simulator.
   Deliberately flat and institutional: no gradients, no rounded cards, no shadows.
   Matches the ICVA / starttest.com self-assessment interface. */

:root {
  --navy: #23386b;
  --navy-dark: #1f3864;
  --accent: #4e7ec1;
  --hdr-dim: #a9bce0;
  --btn: #5b6e9e;
  --btn-hover: #7386b6;
  --rule: #c8ccd4;
  --ink: #111111;
  --green: #167a3c;
  --green-bg: #e7f4ec;
  --red: #b3261e;
  --red-bg: #fbeceb;
  --amber: #b5730a;
  --amber-bg: #fdf4e3;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Helvetica, Arial, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a { color: #1a4f9c; }

/* ------------------------------------------------------------------ header */

.exam-header {
  background: var(--navy);
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  padding: 9px 14px 8px;
  min-height: 56px;
}
.hdr-left { flex: 0 0 26%; font-size: 13px; line-height: 1.35; }
.hdr-center { flex: 1 1 auto; text-align: center; font-size: 14px; line-height: 1.45; }
.hdr-right { flex: 0 0 26%; text-align: right; font-size: 13px; line-height: 1.35; }

.hdr-left .item-label,
.hdr-right .time-label { color: var(--hdr-dim); font-weight: bold; }
.hdr-center div { font-weight: bold; }
.hdr-right .time-value { font-weight: bold; font-size: 14px; }
.hdr-right .time-value.low { color: #ffd0cc; }

.mark-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
  font-size: 13px;
}
.mark-wrap input { width: 14px; height: 14px; margin: 0; cursor: pointer; }

.accent-strip { height: 5px; background: var(--accent); }

/* -------------------------------------------------------------------- body */

.exam-body {
  padding: 26px 34px 96px;
  max-width: 1500px;
}

.q-image-wrap { text-align: center; margin: 4px 0 26px; }
.q-image-wrap img {
  /* Cap HEIGHT as well as width. A tall or square figure constrained only by width
     pushes the stem and all five options below the fold, which the real exam never
     does: there the graphic, stem and options are visible together. */
  max-width: min(700px, 100%);
  max-height: 46vh;
  width: auto;
  height: auto;
  border: 1px solid #ddd;
}
.q-image-missing {
  display: inline-block;
  width: 700px;
  max-width: 100%;
  padding: 40px 12px;
  border: 1px dashed #bbb;
  color: #777;
  font-size: 13px;
}

.q-row { display: flex; align-items: flex-start; gap: 10px; }
.q-num { flex: 0 0 34px; text-align: right; font-size: 16px; line-height: 1.55; padding-top: 1px; }
.q-stem { flex: 1 1 auto; font-size: 16px; line-height: 1.55; }

.options { margin: 22px 0 0 44px; padding: 0; list-style: none; }
.options li { margin: 0; }
.opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 8px 7px 0;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.5;
}
.opt:hover { background: #f2f5fa; }
.opt input { margin: 3px 0 0; width: 16px; height: 16px; flex: 0 0 auto; cursor: pointer; }
.opt .letter { flex: 0 0 30px; }
.opt.selected { background: #eaf0fa; }

/* ------------------------------------------------------------------ footer */

.exam-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  min-height: 64px;
  z-index: 40;
}
.foot-group { display: flex; gap: 26px; }
.foot-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
}
.foot-btn:disabled { opacity: 0.35; cursor: default; }
.foot-btn .glyph {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--btn);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}
.foot-btn:not(:disabled):hover .glyph { background: var(--btn-hover); }
.foot-brand { font-size: 11px; color: var(--hdr-dim); letter-spacing: 0.5px; text-align: center; }

/* ------------------------------------------------------------------- modal */

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 48, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal {
  background: #ffffff;
  border: 1px solid #7c8aa8;
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}
.modal.narrow { max-width: 420px; }
.modal-head {
  background: var(--navy);
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
  padding: 10px 14px;
}
.modal-body { padding: 18px; overflow: auto; font-size: 14px; line-height: 1.55; }
.modal-foot {
  border-top: 1px solid var(--rule);
  padding: 12px 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  padding: 8px 16px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #ffffff;
  cursor: pointer;
}
.btn:hover { background: #2d4682; }
.btn.secondary { background: #ffffff; color: var(--navy); }
.btn.secondary:hover { background: #eef2f9; }
.btn.danger { background: var(--red); border-color: var(--red); }
.btn.danger:hover { background: #8f1e17; }

/* ------------------------------------------------------ google sign-in button */

/* Follows Google's published Sign in with Google button spec: 40px tall, white
   surface, 1px #747775 border, 4px radius, Roboto Medium 14px, 18px logo.
   Deliberately does NOT use .btn - that class would fight every property here. */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding: 0 12px;
  background-color: #ffffff;
  border: 1px solid #747775;
  border-radius: 4px;
  color: #1f1f1f;
  font-family: "Roboto", "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
/* Approximates Google's 8% / 12% state layers. */
.btn-google:hover {
  background-color: #f7f8f8;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}
.btn-google:active { background-color: #eef0f1; }
.btn-google:focus-visible { outline: 2px solid #0b57d0; outline-offset: 2px; }
.btn-google .g-logo {
  width: 18px;
  height: 18px;
  flex: none;
  display: block;
}
.btn-google .g-text { line-height: 1; }

.or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 4px;
  color: #5a6272;
  font-size: 12px;
}
.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--rule);
}

/* -------------------------------------------------------------- review grid */

.review-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; font-size: 12px; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-swatch { width: 18px; height: 18px; border: 1px solid #8a93a6; display: inline-block; }
.legend-swatch.answered { background: var(--navy); border-color: var(--navy); }
.legend-swatch.unanswered { background: #ffffff; }
.legend-swatch.marked { background: #ffffff; border-color: var(--amber); border-width: 3px; }

.review-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
@media (max-width: 640px) { .review-grid { grid-template-columns: repeat(6, 1fr); } }
.rv {
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  padding: 9px 0;
  border: 1px solid #8a93a6;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  position: relative;
}
.rv.answered { background: var(--navy); color: #ffffff; border-color: var(--navy); }
.rv.marked { border: 3px solid var(--amber); }
.rv.current { outline: 3px solid var(--accent); outline-offset: -1px; }
.rv:hover { filter: brightness(1.12); }

/* -------------------------------------------------------------- calculator */

.calc { width: 250px; margin: 0 auto; }
.calc-display {
  border: 1px solid #8a93a6;
  background: #f7f8fa;
  padding: 12px 10px;
  font-size: 22px;
  text-align: right;
  font-family: "Courier New", Courier, monospace;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 8px;
}
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.calc-grid button {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 0;
  border: 1px solid #8a93a6;
  background: #ffffff;
  cursor: pointer;
}
.calc-grid button:hover { background: #eef2f9; }
.calc-grid button.op { background: #e5eaf3; }
.calc-grid button.eq { background: var(--navy); color: #ffffff; border-color: var(--navy); }
.calc-grid button.wide { grid-column: span 2; }

/* --------------------------------------------------------------- start page */

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.page-header {
  background: var(--navy);
  color: #ffffff;
  padding: 20px 24px;
  margin-bottom: 0;
}
.page-header h1 { margin: 0; font-size: 22px; }
.page-header .sub { color: var(--hdr-dim); font-size: 13px; margin-top: 4px; }
.page-inner { max-width: 900px; margin: 0 auto; }

h2 { font-size: 17px; margin: 30px 0 10px; }
h3 { font-size: 15px; margin: 22px 0 8px; }
p, li { font-size: 15px; line-height: 1.6; }

.panel { border: 1px solid var(--rule); padding: 16px 18px; margin: 16px 0; }
.panel.note { background: #f6f8fc; }
.panel.warn { background: var(--amber-bg); border-color: #e0c48a; }

.kv { display: flex; flex-wrap: wrap; gap: 26px; margin: 10px 0; }
.kv div { font-size: 14px; }
.kv .k { color: #555; display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.kv .v { font-weight: bold; font-size: 17px; }

/* ------------------------------------------------------------------ results */

.score-head {
  border: 1px solid var(--rule);
  border-top: 6px solid var(--navy);
  padding: 20px 22px;
  margin: 20px 0;
}
.score-big { font-size: 46px; font-weight: bold; line-height: 1; }
.score-sub { font-size: 15px; margin-top: 6px; color: #333; }
.band-tag {
  display: inline-block;
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 10px;
}

table.bd { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
table.bd th, table.bd td {
  border-bottom: 1px solid var(--rule);
  padding: 7px 8px;
  font-size: 14px;
  text-align: left;
  vertical-align: middle;
}
table.bd th { background: #eef1f7; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
table.bd td.num, table.bd th.num { text-align: right; white-space: nowrap; }
.bar { background: #e6e9ef; height: 12px; width: 100%; min-width: 90px; display: block; }
.bar > span { display: block; height: 100%; background: var(--navy); }
.bar.weak > span { background: var(--red); }
.bar.mid > span { background: var(--amber); }
.bar.good > span { background: var(--green); }

.qcard { border: 1px solid var(--rule); border-left: 5px solid var(--red); padding: 16px 18px; margin: 16px 0; }
.qcard.right { border-left-color: var(--green); }
.qcard.blank { border-left-color: var(--amber); }
.qcard .meta { font-size: 12px; color: #555; margin-bottom: 8px; }
.qcard .meta span { margin-right: 14px; }
.qcard .stem { font-size: 15px; line-height: 1.6; margin: 8px 0 12px; }
.qcard img { max-width: min(620px, 100%); max-height: 40vh; width: auto; height: auto; border: 1px solid #ddd; margin-bottom: 12px; }
.qcard ol { list-style: none; margin: 0; padding: 0; }
.qcard ol li { padding: 6px 10px; font-size: 15px; border: 1px solid transparent; }
.qcard ol li.correct { background: var(--green-bg); border-color: #a8d5bb; }
.qcard ol li.chosen { background: var(--red-bg); border-color: #eab6b2; }
.qcard ol li .tag { font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; margin-left: 10px; }
.qcard ol li.correct .tag { color: var(--green); }
.qcard ol li.chosen .tag { color: var(--red); }
.why {
  background: var(--red-bg);
  border-left: 4px solid var(--red);
  padding: 10px 12px;
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.6;
}
.why b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--red); margin-bottom: 4px; }
.expl { background: #f6f8fc; border-left: 4px solid var(--navy); padding: 10px 12px; margin: 12px 0 0; font-size: 15px; line-height: 1.6; }
.expl b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--navy); margin-bottom: 4px; }
.srcline { font-size: 13px; margin-top: 10px; }

details.fold { border: 1px solid var(--rule); margin: 16px 0; }
details.fold > summary {
  cursor: pointer;
  padding: 12px 16px;
  background: #eef1f7;
  font-weight: bold;
  font-size: 15px;
}
details.fold > div { padding: 4px 16px 12px; }

.muted { color: #666; font-size: 13px; }
.loading { padding: 40px 0; color: #666; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }

/* -------------------------------------------------------------------- print */

@media print {
  .noprint, .exam-footer, .toolbar { display: none !important; }
  body { font-size: 11pt; }
  .page { max-width: none; padding: 0; }
  .page-header { background: none; color: #000; border-bottom: 2px solid #000; padding: 0 0 8px; }
  .page-header .sub { color: #333; }
  .qcard { break-inside: avoid; page-break-inside: avoid; border-left-width: 3px; }
  details.fold > div { display: block !important; }
  details.fold { break-inside: auto; }
  .bar > span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table.bd th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a[href]:after { content: ""; }
}

/* ------------------------------------------------- highlighter + eliminate */

/* Regions the highlighter can paint. Text selection is the interaction, so keep
   the cursor a text caret over them even though the surrounding page is not. */
[data-hl] { cursor: text; }

mark.hl {
  background: #ffe66b;
  color: inherit;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 0 0 1px #f0cf3d inset;
}
mark.hl:hover { background: #ffd83a; }

/* An eliminated option stays fully clickable and selectable. The strike is a
   note to self, not a lockout, so it must not look or behave disabled. */
.opt.eliminated .letter,
.opt.eliminated .opt-text {
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  color: #7c8190;
}
.opt.eliminated.selected .letter,
.opt.eliminated.selected .opt-text { color: var(--ink); }

.opt-text { flex: 1 1 auto; }
.opt:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.q-tools { margin: 26px 0 0 44px; }

.linkbtn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: #1a4f9c;
  text-decoration: underline;
  cursor: pointer;
}
.linkbtn:hover { color: var(--navy); }

/* --------------------------------------------------------- stem data tables */

.q-table-wrap { margin: 18px 0 0 44px; overflow-x: auto; }
.q-table {
  border-collapse: collapse;
  font-size: 14px;
  min-width: 320px;
}
.q-table caption {
  text-align: left;
  font-weight: bold;
  font-size: 14px;
  padding-bottom: 6px;
}
.q-table th, .q-table td {
  border: 1px solid var(--rule);
  padding: 5px 12px;
  text-align: left;
  white-space: nowrap;
}
.q-table th { background: #eef1f6; font-weight: bold; }
.q-table-leadin { font-size: 16px; line-height: 1.55; margin-top: 14px; }
.q-table-note { font-size: 13px; color: #555; margin-top: 6px; }

/* ------------------------------------------------------------ sign-in form */

.narrow-page { max-width: 480px; }

.tabs { display: flex; border-bottom: 1px solid var(--rule); margin: 22px 0 20px; }
.tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 9px 16px;
  font: inherit;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  margin-bottom: -1px;
}
.tab.active { color: var(--navy); border-bottom-color: var(--navy); font-weight: bold; }

.field { display: block; margin: 0 0 16px; }
.field-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #555;
  margin-bottom: 5px;
}
.field input {
  width: 100%;
  padding: 9px 10px;
  font: inherit;
  font-size: 15px;
  border: 1px solid var(--rule);
  background: #fff;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.field-hint { display: block; font-size: 12px; color: #666; margin-top: 5px; }

.who {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--hdr-dim);
}
.who-name { color: #fff; font-weight: bold; }
.who .linkbtn { color: var(--hdr-dim); }
.who .linkbtn:hover { color: #fff; }

/* --------------------------------------------------------- block dashboard */

.form-panel { background: #f6f8fc; }
.form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-head h2 { margin: 0; }
.form-sub { font-size: 14px; color: #555; }

.progress-bar { background: #dde2eb; height: 10px; width: 100%; margin-top: 14px; }
.progress-fill { background: var(--navy); height: 100%; transition: width 0.3s; }

.block-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
@media (max-width: 700px) { .block-grid { grid-template-columns: repeat(2, 1fr); } }

.block-card {
  border: 1px solid var(--rule);
  padding: 14px 16px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
}
.block-num { font-weight: bold; font-size: 15px; margin-bottom: 4px; }
.block-score { font-size: 26px; font-weight: bold; line-height: 1.1; }
.block-meta { font-size: 12px; color: #555; }
.block-action { margin-top: auto; padding-top: 10px; }

.block-card.done { border-left: 5px solid var(--green); }
.block-card.next { border-left: 5px solid var(--navy); background: #f6f8fc; }
.block-card.locked, .block-card.waiting { border-left: 5px solid #d8dce3; color: #888; }
.block-card.locked .block-num, .block-card.waiting .block-num { color: #888; }

/* ------------------------------------------------------ free / paid tiering
   The tier is stamped onto <body> at build time by scripts/build_free.py, not
   set by script after the progress fetch, so the correct copy is painted on the
   first frame and the wrong one never flashes. Default (no attribute) is paid. */
body:not([data-tier="free"]) .tier-free { display: none; }
body[data-tier="free"] .tier-paid { display: none; }

.block-card.members-only { background: #fafbfc; justify-content: flex-start; }
.block-lock { font-size: 22px; line-height: 1.4; filter: grayscale(1); opacity: 0.55; }

.panel.upgrade {
  background: #f6f8fc;
  border-left: 5px solid var(--navy);
}

.btn.small { padding: 6px 12px; font-size: 13px; }
a.btn { text-decoration: none; display: inline-block; }

/* ------------------------------------------- results: strikes + difficulty */

/* Mirrors what she crossed out during the exam. Kept legible: the point is to
   notice when she eliminated the correct answer, not to hide the text. */
.qcard ol li.struck .opt-body {
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}
.qcard ol li .tag.elim { color: var(--amber); }

.diff-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 7px;
  border: 1px solid currentColor;
}
.diff-tag.harder { color: var(--amber); }
.diff-tag.very-hard { color: var(--red); }

.qcard .stem mark.hl,
.qcard .q-table mark.hl { box-shadow: none; cursor: default; }
.qcard .q-table-wrap { margin-left: 0; }

@media print {
  mark.hl { background: #ffe66b !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ----------------------------------------------------- sample preview page */

.sample-card { background: #fff; }
.sample-card .meta {
  font-size: 12px;
  color: #555;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.sample-card .q-row { margin-top: 4px; }
.sample-card .answer { margin-top: 16px; }
.sample-card .why ul { padding-left: 18px; }
.sample-card .why li { font-size: 14px; }
.diff-tag.std { color: #667085; }

/* ------------------------------------------------------------------ admin dashboard
   Same flat institutional language as the exam: no shadows, no rounded cards. The
   dashboard is dense on purpose — it is read on a desktop, next to the question bank. */

.wide-page { max-width: 1500px; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}
.tile { border: 1px solid var(--rule); border-left: 5px solid var(--navy); padding: 12px 14px; }
.tile-k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #555; }
.tile-v { font-size: 28px; font-weight: bold; line-height: 1.15; margin: 2px 0; }
.tile-s { font-size: 12px; color: #555; }

.pill { font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; padding: 2px 7px; border: 1px solid var(--rule); }
.pill-paid { background: var(--green-bg); border-color: #9dc6ad; }
.pill-free { background: #eef1f7; }

.st-stall { color: var(--amber); font-weight: bold; }
.st-cold { color: var(--red); font-weight: bold; }
.st-done { color: var(--green); font-weight: bold; }
.st-ok { color: #444; }

/* A statistic under the sample-size threshold. Greyed rather than hidden: the
   coverage is worth seeing, the percentage is not worth believing yet. */
.thin, td.thin, td.num.thin { color: #a0a4ac; }
.thin .bar > span { background: #c3c7cf; }

table.bd.items td { font-size: 12px; vertical-align: top; }
table.bd.items td.mono { font-family: Consolas, "Courier New", monospace; white-space: nowrap; }
table.bd.items td.stem { color: #444; min-width: 320px; max-width: 520px; }
table.bd.items td.opts { white-space: nowrap; font-family: Consolas, "Courier New", monospace; }
/* NOT `.opt`: that class already belongs to the exam runner's answer choices,
   where it is `display: flex`. Reusing the name here put every option count on
   its own line and made each item row ~150px tall. */
.optct { color: #666; display: inline; }
.optct.key { color: var(--green); font-weight: bold; }
.flag {
  display: inline-block;
  background: var(--red-bg);
  border: 1px solid #e0a9a4;
  color: var(--red);
  font-size: 11px;
  padding: 1px 6px;
  margin: 1px 0;
  white-space: nowrap;
}
td.flags { min-width: 140px; }
