:root {
  color-scheme: light;
  --page: #f3f3f1;
  --panel: #ffffff;
  --field: #fbfbfa;
  --text: #1d1d1f;
  --heading: #111114;
  --muted: #6e6e76;
  --subtle: #8b909a;
  --line: #e8e8e3;
  --strong-line: #d4d4ce;
  --accent: #1d1d1f;
  --accent-dark: #000000;
  --blue: #1769aa;
  --blue-dark: #0f4d80;
  --blue-ring: #79b7ff;
  --chrome: #ffffff;
  --tool: #eeeeef;
  --soft: #f5f6f8;
  --ring: rgba(29, 29, 31, 0.3);
  --correct-bg: #eef6f0;
  --correct-line: #5a9e6f;
  --correct-text: #2c6b41;
  --wrong-bg: #fbeeec;
  --wrong-line: #cf6457;
  --wrong-text: #9a342b;
  --shadow: 0 16px 40px rgb(20 24 32 / 10%);
  --header-height: 82px;
  --desktop-dock-height: 91px;
}

body[data-ui-mode="bluebook"] {
  --page: #ffffff;
  --chrome: #e9f1fc;
  --chrome-strong: #dce8f7;
  --blue: #3154d4;
  --blue-dark: #243fb2;
  --accent: #3154d4;
  --accent-dark: #243fb2;
  --text: #24262b;
  --heading: #17191d;
  --muted: #5f6470;
  --line: #d5d8df;
  --strong-line: #787d86;
  --correct-bg: #eef8f2;
  --correct-line: #4f9662;
  --correct-text: #2d6a3d;
  --wrong-bg: #fff1ef;
  --wrong-line: #c75245;
  --wrong-text: #92352d;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

button,
input {
  font: inherit;
}

button {
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0 18px;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

button:focus-visible,
.choice:focus-within,
.question-pill:focus-visible,
.strike-button:focus-visible {
  outline: 3px solid var(--blue-ring);
  outline-offset: 3px;
}

body[data-ui-mode="classic"] button:focus-visible,
body[data-ui-mode="classic"] .question-pill:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 0;
  box-shadow: 0 0 0 3px var(--ring);
}

body[data-ui-mode="classic"] .choice:focus-within {
  outline: none;
}

body[data-ui-mode="classic"] .choice:has(input:focus-visible) {
  box-shadow: 0 0 0 3px var(--ring);
}

body[data-ui-mode="classic"] .choice.selected:has(input:focus-visible) {
  box-shadow:
    inset 0 0 0 1px var(--accent),
    0 0 0 3px var(--ring);
}

button.secondary {
  background: var(--panel);
  color: var(--text);
  border-color: var(--strong-line);
}

button.secondary:hover {
  background: #f1f1ee;
  border-color: #b9b9b1;
}

.exam-shell {
  min-height: 100vh;
  background: var(--page);
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 0 28px;
}

.header-left {
  min-width: 0;
}

.header-left h1 {
  margin: 0;
  max-width: 940px;
  padding: 20px 0;
  font-size: clamp(1.02rem, 1.8vw, 1.26rem);
  font-weight: 650;
  line-height: 1.3;
}

body[data-ui-mode="classic"] .header-left h1 {
  color: var(--heading);
  letter-spacing: -0.014em;
}

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

.ui-mode-toggle,
.reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  white-space: nowrap;
}

.ui-mode-toggle {
  gap: 8px;
}

.reset-button.secondary {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding-inline: 10px;
}

.reset-button.secondary:hover {
  border-color: var(--line);
  background: var(--soft);
  color: var(--text);
}

.page {
  width: min(800px, 100%);
  margin: 0 auto;
  padding: 34px 24px 136px;
}

.quiz-meta,
.question-heading,
.actions,
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.question-heading {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

body[data-ui-mode="classic"] .quiz-meta {
  margin-bottom: 14px;
}

.exam-workspace {
  display: block;
  min-height: auto;
  border: 0;
  background: transparent;
}

.prompt-pane {
  display: block;
  padding: 0;
}

.prompt-content {
  max-width: none;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: var(--panel);
  padding: 24px 26px 0;
}

body[data-ui-mode="classic"] .prompt-content {
  display: flow-root;
}

#chapter-label,
#section-label {
  color: var(--text);
  font-weight: 650;
}

body[data-ui-mode="classic"] #chapter-label {
  color: var(--heading);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

body[data-ui-mode="classic"] #section-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#question-count,
#question-mode {
  color: var(--muted);
  font-weight: 650;
  text-align: right;
}

body[data-ui-mode="classic"] #question-count {
  font-weight: 500;
}

body[data-ui-mode="classic"] #question-mode {
  display: none;
}

.progress-track {
  height: 8px;
  margin: 12px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e6e1;
}

body[data-ui-mode="classic"] .progress-track {
  height: 6px;
  margin: 0 0 16px;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 160ms ease;
}

.workspace-divider,
.answer-toolbar,
.answer-instructions,
.dashboard-eyebrow,
.practice-info,
.choice-letter,
.strike-button {
  display: none;
}

.question-panel {
  display: block;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: var(--panel);
  padding: 0 26px 24px;
}

body[data-ui-mode="classic"] .question-panel {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

body[data-ui-mode="classic"] .answer-instructions {
  display: block;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.question-text {
  margin: 18px 0 22px;
  color: var(--text);
  font-size: 0.99rem;
  line-height: 1.62;
}

.question-text p {
  margin: 0 0 1em;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.question-text p:last-child {
  margin-bottom: 0;
}

.code-block {
  margin: 0 0 1.1em;
  max-width: 100%;
  overflow-x: auto;
  color: inherit;
  font: inherit;
  white-space: pre-wrap;
}

body[data-ui-mode="classic"] .code-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f4;
  color: #25272c;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 0.875rem;
  line-height: 1.55;
  padding: 14px 16px;
  white-space: pre;
}

body[data-ui-mode="classic"] .question-text > .code-block:last-child {
  margin-bottom: 0;
}

.choices {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-row {
  display: block;
}

.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: start;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
  cursor: pointer;
  padding: 13px 16px;
  transition:
    border-color 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

.choice:hover {
  border-color: var(--strong-line);
  background: #ffffff;
}

.choice.locked,
.choice.locked:hover {
  cursor: default;
}

.choice input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.choice-prefix {
  display: inline;
  font-weight: 650;
  color: var(--heading);
}

.choice-text {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
  font: inherit;
}

body[data-ui-mode="classic"] .choice-text {
  font-size: 0.96rem;
  line-height: 1.5;
}

.choice.selected {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.choice.correct {
  border-color: var(--correct-line);
  background: var(--correct-bg);
}

body[data-ui-mode="classic"] .choice.correct {
  box-shadow: inset 0 0 0 1px var(--correct-line);
}

.choice.wrong {
  border-color: var(--wrong-line);
  background: var(--wrong-bg);
}

body[data-ui-mode="classic"] .choice.wrong {
  box-shadow: inset 0 0 0 1px var(--wrong-line);
}

.feedback {
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-weight: 650;
}

body[data-ui-mode="classic"] .feedback {
  margin-top: 18px;
  padding-top: 16px;
  font-size: 0.95rem;
  font-weight: 600;
}

.feedback.correct {
  color: var(--correct-text);
}

.feedback.wrong {
  color: var(--wrong-text);
}

.inline-actions-mount {
  margin-top: 18px;
}

.actions {
  margin-top: 0;
  justify-content: flex-end;
  gap: 10px;
}

body[data-ui-mode="classic"] .actions #previous-button {
  margin-right: auto;
}

body[data-ui-mode="classic"] .actions button {
  min-width: 104px;
}

.dashboard-view {
  width: 100%;
}

.dashboard-header {
  margin-bottom: 22px;
}

.dashboard-header h2,
.summary-section h3 {
  margin: 0;
}

body[data-ui-mode="classic"] .dashboard-header h2 {
  color: var(--heading);
  font-size: 1.6rem;
  letter-spacing: -0.015em;
}

body[data-ui-mode="classic"] .summary-section h3 {
  color: var(--heading);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat,
.chapter-row,
.missed-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

body[data-ui-mode="classic"] .stat,
body[data-ui-mode="classic"] .chapter-row,
body[data-ui-mode="classic"] .missed-item {
  border-radius: 12px;
}

.stat {
  padding: 16px 18px;
}

.stat-value {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
}

body[data-ui-mode="classic"] .stat-value {
  color: var(--heading);
  letter-spacing: -0.02em;
}

.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
}

body[data-ui-mode="classic"] .stat-label {
  font-weight: 500;
}

.summary-section {
  margin-top: 26px;
}

.chapter-summary,
.missed-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.chapter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 16px;
}

.chapter-score {
  color: var(--muted);
  font-weight: 600;
}

.missed-item {
  padding: 16px 18px;
}

.missed-item strong {
  display: block;
  margin-bottom: 6px;
}

body[data-ui-mode="classic"] .missed-item strong {
  color: var(--heading);
}

.missed-item p {
  margin: 6px 0;
}

body[data-ui-mode="classic"] .missed-item p {
  color: var(--muted);
}

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

.jump-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgb(17 17 20 / 18%);
}

.jump-dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 -6px 20px rgb(17 17 20 / 5%);
}

body[data-ui-mode="classic"] .jump-dock {
  backdrop-filter: blur(8px);
}

body[data-ui-mode="classic"] .jump-bar {
  justify-content: center;
}

body[data-ui-mode="classic"] .dock-actions-mount {
  display: none;
}

.jump-bar,
.jump-panel {
  width: min(800px, calc(100% - 28px));
  margin: 0 auto;
}

.jump-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 64px;
}

.question-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--strong-line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 0 16px;
}

.question-pill:hover {
  background: #f1f1ee;
  border-color: #b9b9b1;
  color: var(--text);
}

#jump-current {
  color: var(--muted);
  font-weight: 500;
}

#jump-toggle-label {
  color: var(--text);
  font-size: inherit;
  font-weight: 650;
}

body[data-ui-mode="classic"] #jump-toggle-label {
  color: var(--heading);
}

.jump-panel {
  max-height: min(58vh, 520px);
  overflow: auto;
  padding: 18px 0 10px;
}

.jump-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

body[data-ui-mode="classic"] .jump-panel-header strong {
  color: var(--heading);
}

.jump-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 8px;
}

.jump-chapter {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

body[data-ui-mode="classic"] .jump-chapter {
  margin: 14px 0 2px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jump-chapter:first-child {
  margin-top: 0;
}

.jump-question {
  min-height: 38px;
  border-color: var(--strong-line);
  background: var(--panel);
  color: var(--text);
  padding: 0;
  font-size: 0.9rem;
}

.jump-question:hover {
  border-color: var(--accent);
  background: #f3f3f1;
  color: var(--text);
}

.jump-question.current {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.jump-question.answered {
  border-color: #c4c4bd;
  background: #eeeee9;
}

.jump-question.correct {
  border-color: var(--correct-line);
  background: var(--correct-bg);
  color: var(--text);
}

.jump-question.wrong {
  border-color: var(--wrong-line);
  background: var(--wrong-bg);
  color: var(--text);
}

.jump-question.current.correct,
.jump-question.current.wrong,
.jump-question.current.answered {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

body[data-ui-mode="bluebook"] {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-ui-mode="bluebook"] button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  padding: 0 24px;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease;
}

body[data-ui-mode="bluebook"] button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

body[data-ui-mode="bluebook"] button.secondary {
  background: #ffffff;
  color: var(--blue);
  border-color: var(--blue);
}

body[data-ui-mode="bluebook"] button.secondary:hover {
  background: #eff5ff;
  border-color: var(--blue-dark);
  color: var(--blue-dark);
}

body[data-ui-mode="bluebook"] .site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 18px 42px 16px;
  background: var(--chrome);
  border-bottom: 3px solid #111111;
}

body[data-ui-mode="bluebook"] .header-left h1 {
  max-width: none;
  padding: 0;
  color: var(--heading);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.15;
}

body[data-ui-mode="bluebook"] .ui-mode-toggle {
  min-height: 42px;
  border-radius: 8px;
  padding-inline: 16px;
}

body[data-ui-mode="bluebook"] .reset-button.secondary {
  min-height: 42px;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding-inline: 12px;
  font-size: 0.94rem;
}

body[data-ui-mode="bluebook"] .reset-button.secondary:hover {
  border-color: #cbd6e6;
  background: #f5f8fd;
  color: var(--heading);
}

body[data-ui-mode="bluebook"] .page {
  width: auto;
  margin: 0;
  padding: 0 0 var(--desktop-dock-height);
}

body[data-ui-mode="bluebook"] .quiz-view {
  min-height: calc(100vh - var(--header-height) - var(--desktop-dock-height));
}

body[data-ui-mode="bluebook"] .exam-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
  min-height: calc(100vh - var(--header-height) - var(--desktop-dock-height));
  border-top: 3px dashed #111111;
  border-bottom: 3px dashed #111111;
  background: #ffffff;
}

body[data-ui-mode="bluebook"] .prompt-pane,
body[data-ui-mode="bluebook"] .question-panel {
  min-width: 0;
  padding: clamp(28px, 4vw, 54px) clamp(28px, 4.8vw, 72px);
}

body[data-ui-mode="bluebook"] .prompt-pane {
  display: flex;
  flex-direction: column;
}

body[data-ui-mode="bluebook"] .prompt-content {
  max-width: 760px;
  border: 0;
  border-radius: 0;
  padding: 0;
}

body[data-ui-mode="bluebook"] .quiz-meta,
body[data-ui-mode="bluebook"] .question-heading {
  gap: 16px;
  font-size: 0.95rem;
  font-weight: 750;
}

body[data-ui-mode="bluebook"] #chapter-label,
body[data-ui-mode="bluebook"] #section-label {
  color: var(--heading);
  font-weight: 800;
}

body[data-ui-mode="bluebook"] #question-count,
body[data-ui-mode="bluebook"] #question-mode {
  font-weight: 700;
}

body[data-ui-mode="bluebook"] .progress-track {
  margin: 16px 0 38px;
  background: #e2e5ea;
}

body[data-ui-mode="bluebook"] .progress-fill {
  background: var(--blue);
}

body[data-ui-mode="bluebook"] .workspace-divider {
  display: block;
  background: #777b82;
  margin-bottom: -3px;
}

body[data-ui-mode="bluebook"] .question-panel {
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

body[data-ui-mode="bluebook"] .question-text {
  margin-top: 34px;
  color: #26272b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.13rem, 1.4vw, 1.38rem);
  font-weight: 500;
  line-height: 1.52;
}

body[data-ui-mode="bluebook"] .question-text p {
  margin: 0 0 22px;
}

body[data-ui-mode="bluebook"] .code-block {
  margin: 22px 0;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #d8dbe2;
  border-radius: 7px;
  background: #f7f8fa;
  color: #1d232c;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Monaco, monospace;
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  line-height: 1.55;
  padding: 18px 20px;
  white-space: pre;
}

body[data-ui-mode="bluebook"] .answer-toolbar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 22px;
  border-bottom: 3px dashed #111111;
  background: var(--tool);
}

body[data-ui-mode="bluebook"] .question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 48px;
  background: #202124;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
}

body[data-ui-mode="bluebook"] .mark-button {
  justify-self: start;
  gap: 10px;
  min-height: 44px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  padding: 0 10px;
  font-size: 1rem;
  font-weight: 650;
}

body[data-ui-mode="bluebook"] .mark-button:hover {
  background: transparent;
  color: #000000;
}

body[data-ui-mode="bluebook"] .bookmark-icon {
  width: 18px;
  height: 24px;
  flex: 0 0 auto;
  display: block;
  overflow: visible;
}

body[data-ui-mode="bluebook"] .mark-button.marked {
  color: var(--blue);
}

body[data-ui-mode="bluebook"] .answer-instructions {
  display: block;
  margin: 0 0 22px;
  color: #202124;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.45vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
}

body[data-ui-mode="bluebook"] .choices {
  gap: 17px;
}

body[data-ui-mode="bluebook"] .choice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 16px;
}

body[data-ui-mode="bluebook"] .choice {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 66px;
  border: 2px solid #74777d;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px 22px 12px 16px;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

body[data-ui-mode="bluebook"] .choice:hover {
  border-color: #22252b;
  background: #fbfcff;
}

body[data-ui-mode="bluebook"] .choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body[data-ui-mode="bluebook"] .choice-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid #5c6068;
  border-radius: 50%;
  color: #42464f;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1;
}

body[data-ui-mode="bluebook"] .choice-prefix {
  display: none;
}

body[data-ui-mode="bluebook"] .choice-text {
  color: #25272c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.25vw, 1.24rem);
  line-height: 1.42;
}

body[data-ui-mode="bluebook"] .strike-button {
  position: relative;
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #333741;
  padding: 0;
  font-size: 1rem;
  font-weight: 850;
}

body[data-ui-mode="bluebook"] .strike-button:hover {
  background: #eef2f8;
  color: #111318;
}

body[data-ui-mode="bluebook"] .strike-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 50%;
  line-height: 1;
}

body[data-ui-mode="bluebook"] .strike-button::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
}

body[data-ui-mode="bluebook"] .strike-button[aria-pressed="true"] {
  color: var(--blue);
}

body[data-ui-mode="bluebook"] .choice-row.eliminated .choice {
  border-color: #a8adb6;
  background: #f2f4f7;
}

body[data-ui-mode="bluebook"] .choice-row.eliminated .choice-letter,
body[data-ui-mode="bluebook"] .choice-row.eliminated .choice-text {
  opacity: 0.55;
}

body[data-ui-mode="bluebook"] .choice-row.eliminated .choice-text {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

body[data-ui-mode="bluebook"] .choice.selected {
  border-color: var(--blue);
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 6px var(--blue-ring);
}

body[data-ui-mode="bluebook"] .choice.selected .choice-letter {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

body[data-ui-mode="bluebook"] .choice.correct {
  border-color: var(--correct-line);
  background: var(--correct-bg);
  box-shadow: inset 0 0 0 1px rgb(79 150 98 / 22%);
}

body[data-ui-mode="bluebook"] .choice.correct .choice-letter {
  border-color: var(--correct-line);
  background: var(--correct-line);
  color: #ffffff;
}

body[data-ui-mode="bluebook"] .choice.wrong {
  border-color: var(--wrong-line);
  background: var(--wrong-bg);
}

body[data-ui-mode="bluebook"] .choice.wrong .choice-letter {
  border-color: var(--wrong-line);
  background: var(--wrong-line);
  color: #ffffff;
}

body[data-ui-mode="bluebook"] .choice.wrong .choice-text {
  color: var(--wrong-text);
}

body[data-ui-mode="bluebook"] .feedback {
  margin: 24px 0 0;
  padding-top: 18px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

body[data-ui-mode="bluebook"] .dashboard-view {
  width: min(1120px, calc(100% - 48px));
  margin: 36px auto 0;
  padding-bottom: 36px;
}

body[data-ui-mode="bluebook"] .dashboard-header {
  gap: 18px;
  margin-bottom: 24px;
}

body[data-ui-mode="bluebook"] .dashboard-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

body[data-ui-mode="bluebook"] .dashboard-header h2,
body[data-ui-mode="bluebook"] .summary-section h3 {
  color: var(--heading);
}

body[data-ui-mode="bluebook"] .dashboard-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.1;
}

body[data-ui-mode="bluebook"] .stats {
  gap: 14px;
}

body[data-ui-mode="bluebook"] .stat,
body[data-ui-mode="bluebook"] .chapter-row,
body[data-ui-mode="bluebook"] .missed-item {
  background: #ffffff;
  box-shadow: 0 12px 32px rgb(20 24 32 / 7%);
}

body[data-ui-mode="bluebook"] .stat {
  padding: 20px;
}

body[data-ui-mode="bluebook"] .stat-value {
  color: var(--heading);
  font-size: 1.9rem;
  font-weight: 850;
}

body[data-ui-mode="bluebook"] .stat-label {
  font-weight: 700;
}

body[data-ui-mode="bluebook"] .summary-section {
  margin-top: 28px;
}

body[data-ui-mode="bluebook"] .chapter-summary,
body[data-ui-mode="bluebook"] .missed-list {
  margin-top: 12px;
}

body[data-ui-mode="bluebook"] .chapter-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 15px 17px;
}

body[data-ui-mode="bluebook"] .chapter-score {
  font-weight: 750;
}

body[data-ui-mode="bluebook"] .missed-item {
  padding: 17px;
}

body[data-ui-mode="bluebook"] .jump-backdrop {
  background: rgb(0 0 0 / 14%);
}

body[data-ui-mode="bluebook"] .jump-dock {
  border-top: 1px solid #d2dcec;
  background: var(--chrome);
  box-shadow: 0 -8px 28px rgb(24 29 43 / 12%);
}

body[data-ui-mode="bluebook"] .jump-bar,
body[data-ui-mode="bluebook"] .jump-panel {
  width: min(1880px, calc(100% - 84px));
}

body[data-ui-mode="bluebook"] .jump-bar {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(280px, 1fr);
  justify-content: stretch;
  gap: 18px;
  min-height: 90px;
}

body[data-ui-mode="bluebook"] .practice-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: max-content;
}

body[data-ui-mode="bluebook"] .practice-info-trigger {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  border: 2px solid #242424;
  border-radius: 50%;
  background: #ffffff;
  color: #242424;
  padding: 0;
  box-shadow: none;
  font-size: 1.05rem;
  font-weight: 850;
}

body[data-ui-mode="bluebook"] .practice-info-trigger:hover,
body[data-ui-mode="bluebook"] .practice-info-trigger:focus-visible {
  border-color: #111111;
  background: #f3f6fb;
  color: #111111;
}

body[data-ui-mode="bluebook"] .practice-info-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  z-index: 40;
  width: min(420px, calc(100vw - 84px));
  border: 1px solid #242424;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgb(24 29 43 / 18%);
  color: #20242b;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  visibility: hidden;
  transition:
    opacity 120ms ease,
    transform 120ms ease,
    visibility 120ms ease;
}

body[data-ui-mode="bluebook"] .practice-info:hover .practice-info-tooltip,
body[data-ui-mode="bluebook"] .practice-info:focus-within .practice-info-tooltip {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

body[data-ui-mode="bluebook"] .question-pill {
  gap: 10px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: #242424;
  color: #ffffff;
  padding: 0 18px 0 20px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 22%);
}

body[data-ui-mode="bluebook"] .question-pill:hover {
  background: #111111;
  color: #ffffff;
}

body[data-ui-mode="bluebook"] #jump-current {
  color: #ffffff;
  font-weight: 850;
}

body[data-ui-mode="bluebook"] #jump-toggle-label {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: #ffffff;
  font-size: 0;
  transform: rotate(225deg) translate(-1px, -1px);
}

body[data-ui-mode="bluebook"] .question-pill[aria-expanded="true"] #jump-toggle-label {
  transform: rotate(45deg) translate(-2px, -2px);
}

body[data-ui-mode="bluebook"] .dock-actions-mount {
  display: flex;
  justify-content: flex-end;
}

body[data-ui-mode="bluebook"] .inline-actions-mount {
  display: none;
}

body[data-ui-mode="bluebook"] .actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

body[data-ui-mode="bluebook"] .actions button {
  min-width: 112px;
}

body[data-ui-mode="bluebook"] #check-button {
  min-width: 142px;
}

body[data-ui-mode="bluebook"] .jump-panel {
  max-height: min(62vh, 590px);
  overflow: auto;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 22px 24px 18px;
}

body[data-ui-mode="bluebook"] .jump-panel-header {
  margin-bottom: 16px;
  font-weight: 700;
}

body[data-ui-mode="bluebook"] .jump-panel-header strong {
  color: var(--heading);
  font-size: 1.05rem;
}

body[data-ui-mode="bluebook"] .jump-chapter {
  margin: 15px 0 2px;
  font-size: 0.88rem;
  font-weight: 850;
}

body[data-ui-mode="bluebook"] .jump-question {
  position: relative;
  min-height: 40px;
  border-color: var(--strong-line);
  border-radius: 6px;
}

body[data-ui-mode="bluebook"] .jump-question:hover {
  border-color: var(--blue);
  background: #eef5ff;
}

body[data-ui-mode="bluebook"] .jump-question.current {
  border-color: var(--blue);
  background: var(--blue);
}

body[data-ui-mode="bluebook"] .jump-question.answered {
  border-color: #9aa2b0;
  background: #eff2f7;
}

body[data-ui-mode="bluebook"] .jump-question.marked::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 5px;
  width: 8px;
  height: 12px;
  background: #f1b934;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}

body[data-ui-mode="bluebook"] .jump-question.wrong {
  color: var(--wrong-text);
}

body[data-ui-mode="bluebook"] .jump-question.current.correct,
body[data-ui-mode="bluebook"] .jump-question.current.wrong,
body[data-ui-mode="bluebook"] .jump-question.current.answered {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 18px 16px;
  }

  .header-left h1 {
    padding: 18px 0 0;
  }

  .header-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: stretch;
  }

  .ui-mode-toggle {
    width: 100%;
  }

  .page {
    padding-inline: 16px;
    padding-bottom: 132px;
  }

  .prompt-content {
    padding: 20px 18px 0;
  }

  .question-panel {
    padding: 0 18px 20px;
  }

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

  body[data-ui-mode="classic"] .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-ui-mode="classic"] .actions button {
    width: 100%;
    min-width: 0;
  }

  body[data-ui-mode="classic"] .actions #previous-button {
    margin-right: 0;
  }

  .chapter-row {
    grid-template-columns: 1fr;
  }

  .jump-bar,
  .jump-panel {
    width: calc(100% - 24px);
  }

  .jump-panel {
    max-height: 64vh;
  }

  .jump-grid {
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  }
}

@media (max-width: 1080px) {
  body[data-ui-mode="bluebook"] .site-header {
    padding-inline: 26px;
  }

  body[data-ui-mode="bluebook"] .prompt-pane,
  body[data-ui-mode="bluebook"] .question-panel {
    padding-inline: clamp(22px, 3vw, 38px);
  }

  body[data-ui-mode="bluebook"] .jump-bar,
  body[data-ui-mode="bluebook"] .jump-panel {
    width: calc(100% - 42px);
  }
}

@media (max-width: 900px) {
  body[data-ui-mode="bluebook"] .site-header {
    min-height: 82px;
  }

  body[data-ui-mode="bluebook"] .exam-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-ui-mode="bluebook"] .workspace-divider {
    display: none;
  }

  body[data-ui-mode="bluebook"] .prompt-pane {
    border-bottom: 2px solid var(--line);
  }

  body[data-ui-mode="bluebook"] .question-panel {
    padding-top: 26px;
  }

  body[data-ui-mode="bluebook"] .jump-bar {
    grid-template-columns: 1fr auto;
  }

  body[data-ui-mode="bluebook"] .practice-info {
    display: none;
  }

  body[data-ui-mode="bluebook"] .actions {
    gap: 10px;
  }

  body[data-ui-mode="bluebook"] .actions button {
    min-width: 96px;
    padding-inline: 18px;
  }

  body[data-ui-mode="bluebook"] #check-button {
    min-width: 124px;
  }
}

@media (max-width: 680px) {
  body[data-ui-mode="bluebook"] .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px 18px 12px;
  }

  body[data-ui-mode="bluebook"] .header-left h1 {
    padding: 0;
  }

  body[data-ui-mode="bluebook"] .ui-mode-toggle {
    width: auto;
    min-height: 40px;
    padding-inline: 12px;
  }

  body[data-ui-mode="bluebook"] .page {
    padding-bottom: 156px;
  }

  body[data-ui-mode="bluebook"] .quiz-view,
  body[data-ui-mode="bluebook"] .exam-workspace {
    min-height: auto;
  }

  body[data-ui-mode="bluebook"] .prompt-pane,
  body[data-ui-mode="bluebook"] .question-panel {
    padding: 22px 18px;
  }

  body[data-ui-mode="bluebook"] .quiz-meta,
  body[data-ui-mode="bluebook"] .question-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  body[data-ui-mode="bluebook"] #question-count,
  body[data-ui-mode="bluebook"] #question-mode {
    text-align: left;
  }

  body[data-ui-mode="bluebook"] .progress-track {
    margin-bottom: 24px;
  }

  body[data-ui-mode="bluebook"] .question-text {
    margin-top: 22px;
    font-size: 1.06rem;
  }

  body[data-ui-mode="bluebook"] .answer-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body[data-ui-mode="bluebook"] .mark-button {
    min-width: 0;
    font-size: 0.9rem;
  }

  body[data-ui-mode="bluebook"] .choice-row {
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 8px;
  }

  body[data-ui-mode="bluebook"] .choice {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    min-height: 60px;
    padding: 12px 15px 12px 12px;
  }

  body[data-ui-mode="bluebook"] .choice-letter {
    width: 30px;
    height: 30px;
    font-size: 0.98rem;
  }

  body[data-ui-mode="bluebook"] .choice-text {
    font-size: 1rem;
  }

  body[data-ui-mode="bluebook"] .dashboard-view {
    width: calc(100% - 32px);
    margin-top: 24px;
  }

  body[data-ui-mode="bluebook"] .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-ui-mode="bluebook"] .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-ui-mode="bluebook"] .chapter-row {
    grid-template-columns: 1fr;
  }

  body[data-ui-mode="bluebook"] .jump-bar,
  body[data-ui-mode="bluebook"] .jump-panel {
    width: calc(100% - 24px);
  }

  body[data-ui-mode="bluebook"] .jump-bar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  body[data-ui-mode="bluebook"] .question-pill {
    justify-self: center;
    min-height: 44px;
  }

  body[data-ui-mode="bluebook"] .actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    width: 100%;
  }

  body[data-ui-mode="bluebook"] .actions button,
  body[data-ui-mode="bluebook"] #check-button {
    min-width: 0;
    width: 100%;
    padding-inline: 10px;
  }

  body[data-ui-mode="bluebook"] .jump-panel {
    max-height: 56vh;
    padding: 18px 14px 14px;
  }

  body[data-ui-mode="bluebook"] .jump-grid {
    grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  }
}

@media (max-width: 420px) {
  body[data-ui-mode="bluebook"] .actions {
    grid-template-columns: 1fr;
  }

  body[data-ui-mode="bluebook"] .page {
    padding-bottom: 226px;
  }
}
