:root {
  --ink: #17252b;
  --ink-soft: #45565a;
  --muted: #5e6a6d;
  --muted-light: #62695f;
  --paper: #f5f1e8;
  --paper-deep: #ebe4d8;
  --card: #fffdf8;
  --white: #ffffff;
  --dark: #203b49;
  --dark-raised: #385d69;
  --line: #d8d0c2;
  --line-strong: #c6bbaa;
  --coral: #c64b3e;
  --coral-dark: #a93b32;
  --coral-soft: #f5dfda;
  --lime: #d8b15a;
  --lime-dark: #a67d2c;
  --lime-soft: #f3ead5;
  --blue: #4f7882;
  --blue-dark: #385d69;
  --blue-soft: #e4eff0;
  --violet: #78678a;
  --violet-soft: #eee8f1;
  --green: #3d8068;
  --green-soft: #e1efe9;
  --amber: #9a7028;
  --amber-soft: #f3ead5;
  --red: #c64b3e;
  --red-soft: #f5dfda;
  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 0 var(--line);
  --shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(23, 30, 27, .4);
  --font-display: "Space Grotesk", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body.view-lock {
  overflow: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(100, 119, 239, .38);
  outline-offset: 3px;
}

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

svg {
  display: block;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -.035em;
}

[hidden],
[inert] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  padding: 11px 15px;
  color: var(--dark);
  background: var(--lime);
  border: 2px solid var(--dark);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
  transform: translateY(-180%);
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #a5b0aa;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button[aria-busy="true"]::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.button-small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 10px;
}

.button-full {
  width: 100%;
}

.button-coral {
  color: var(--white);
  background: var(--coral);
  border-color: var(--coral);
  box-shadow: 0 7px 0 rgba(201, 67, 55, .2);
}

.button-coral:hover:not(:disabled) {
  background: #ff7567;
}

.button-lime {
  color: var(--dark);
  background: var(--lime);
  border-color: #acd756;
}

.button-lime:hover:not(:disabled) {
  background: #d5fa82;
}

.button-dark {
  color: var(--white);
  background: var(--dark);
  border-color: var(--dark);
}

.button-dark:hover:not(:disabled) {
  background: var(--dark-raised);
}

.button-dark-outline {
  color: #e4e9e6;
  background: transparent;
  border-color: #53615a;
}

.button-dark-outline:hover:not(:disabled) {
  color: var(--white);
  border-color: #87938d;
}

.button-outline {
  color: var(--ink-soft);
  background: var(--card);
  border-color: var(--line-strong);
}

.button-outline:hover:not(:disabled) {
  border-color: var(--ink-soft);
}

.button-soft {
  color: var(--ink);
  background: #e9ece5;
  border-color: #d9ded6;
}

.button-danger {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.text-button {
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--dark);
  background: var(--lime);
  border: 1px solid var(--dark);
  border-radius: 12px 12px 4px 12px;
  box-shadow: 2px 2px 0 var(--dark);
  transform: rotate(-2deg);
}

.brand-mark svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.045em;
}

.brand-name span {
  color: var(--coral-dark);
}

.origin-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 6px;
  color: #742a23;
  background: var(--coral-soft);
  border: 1px solid #f0beb6;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.origin-badge b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--coral-dark);
  border-radius: 50%;
  font-size: 8px;
}

.format-contract {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: #dce3df;
  background: var(--dark);
  border: 1px solid #34413b;
  border-radius: 12px;
}

.format-contract > span {
  flex: 0 0 auto;
  padding-right: 12px;
  color: var(--lime);
  border-right: 1px solid #4b5751;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
}

.format-contract > strong {
  font-size: 9px;
  font-weight: 800;
  line-height: 1.45;
}

.format-contract-header {
  min-height: 42px;
  padding: 7px max(24px, calc((100% - 1480px) / 2));
  border: 0;
  border-radius: 0;
  background: #131a17;
}

.format-contract-dark {
  color: #eef2ef;
  background: #111815;
}

/* Loading, setup, and error states */
.boot-view {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 28px 20px;
  background: var(--paper);
}

.boot-card {
  position: relative;
  z-index: 2;
  width: min(660px, 100%);
  display: grid;
  justify-items: start;
  padding: clamp(30px, 6vw, 58px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.boot-card .brand {
  margin-bottom: 48px;
}

.boot-kicker {
  color: var(--coral-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}

.boot-card h1 {
  max-width: 560px;
  margin: 12px 0 10px;
  font-size: clamp(29px, 5vw, 46px);
  line-height: 1.04;
}

.boot-card > p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.boot-card .format-contract {
  width: 100%;
  margin-top: 25px;
}

.boot-card .boot-origin {
  margin-top: 18px;
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 700;
}

.boot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.boot-orbit {
  position: absolute;
  border-radius: 50%;
}

.boot-orbit-one {
  width: 330px;
  height: 330px;
  right: -130px;
  top: -110px;
  background: var(--coral-soft);
}

.boot-orbit-two {
  width: 240px;
  height: 240px;
  left: -100px;
  bottom: -80px;
  background: var(--lime-soft);
}

.state-spinner {
  width: 28px;
  height: 28px;
  display: inline-block;
  margin: 24px 0 8px;
  border: 3px solid var(--line);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.state-spinner[hidden] {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.data-state,
.empty-state {
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 32px 20px;
  color: var(--muted);
  background: #f6f7f2;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.data-state .state-spinner {
  margin: 0 0 6px;
}

.data-state strong,
.empty-state h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
}

.data-state p,
.empty-state p {
  max-width: 480px;
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.empty-state > span {
  color: var(--coral);
  font-size: 30px;
  line-height: 1;
}

.compact-state {
  min-height: 150px;
}

.empty-filter {
  padding: 35px 20px;
  color: var(--muted);
  background: #f7f8f3;
  border-top: 1px solid var(--line);
  font-size: 11px;
  text-align: center;
}

/* Dashboard shell */
.dashboard-view {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(242, 243, 237, .96);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(16px);
}

.header-main {
  width: min(calc(100% - 40px), 1480px);
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.header-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  color: var(--muted);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.account-block {
  min-width: 222px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.learner-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  color: var(--dark);
  background: var(--lime);
  border: 1px solid var(--dark);
  border-radius: 11px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
}

.account-copy {
  min-width: 0;
  max-width: 108px;
  display: grid;
  gap: 1px;
}

.account-copy small {
  color: var(--muted-light);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.account-copy strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard {
  width: min(calc(100% - 40px), 1480px);
  margin: 0 auto;
  padding: 25px 0 55px;
}

#performance,
#mockLibrary {
  scroll-margin-top: 125px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .62fr);
  gap: 18px;
}

.hero-copy {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(36px, 5vw, 68px);
  color: var(--white);
  background: var(--dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-copy::before,
.hero-copy::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-copy::before {
  width: 310px;
  height: 310px;
  right: -95px;
  top: -125px;
  background: var(--coral);
}

.hero-copy::after {
  width: 175px;
  height: 175px;
  right: 165px;
  bottom: -130px;
  border: 38px solid var(--blue);
}

.hero-copy > * {
  position: relative;
  z-index: 2;
}

.hero-copy .eyebrow {
  color: var(--lime);
}

.hero-copy h1 {
  max-width: 850px;
  margin: 13px 0 17px;
  font-size: clamp(38px, 5vw, 67px);
  line-height: .99;
}

.hero-copy > p {
  max-width: 710px;
  margin: 0;
  color: #aeb8b2;
  font-size: 14px;
  line-height: 1.7;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid #3a4640;
}

.hero-facts span {
  display: grid;
  gap: 3px;
}

.hero-facts b {
  font-family: var(--font-display);
  font-size: 13px;
}

.hero-facts small {
  color: #8d9993;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.exam-card {
  min-height: 430px;
  padding: 25px;
  background: var(--lime);
  border: 1px solid #a8ce53;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.exam-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(24, 32, 29, .16);
}

.exam-card-top .eyebrow {
  color: #4f6818;
}

.exam-card-top > span:last-child {
  padding: 5px 8px;
  color: var(--white);
  background: var(--dark);
  border-radius: 6px;
  font-size: 8px;
  font-weight: 900;
}

.exam-card > h2 {
  margin: 20px 0 4px;
  font-size: 25px;
  line-height: 1.1;
}

.exam-card > p {
  margin: 0;
  color: #314d27;
  font-size: 10px;
  font-weight: 700;
}

.access-block {
  margin-top: 20px;
  padding-top: 19px;
  border-top: 1px solid rgba(24, 32, 29, .16);
}

.access-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #314d27;
  font-size: 8px;
  font-weight: 750;
}

.status-badge,
.result-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 8px;
  color: #755114;
  background: #fff1c9;
  border: 1px solid #e8ca83;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.status-badge[data-tone="success"] {
  color: #1e694a;
  background: #dff4e9;
  border-color: #9bcab3;
}

.status-badge[data-tone="error"] {
  color: #92342f;
  background: #ffe1dd;
  border-color: #e6aaa3;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
}

.price-line strong {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -.05em;
}

.price-line span {
  color: #314d27;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.access-block h3 {
  margin: 4px 0 5px;
  font-size: 16px;
}

.access-block > p {
  margin: 0;
  color: #4f621c;
  font-size: 9px;
  line-height: 1.5;
}

.access-block .free-first-link { margin-top: 9px; font-weight: 800; }
.access-block .free-first-link a { color: #3f5114; text-decoration: underline; text-underline-offset: 3px; }

.access-list {
  display: grid;
  gap: 6px;
  margin: 13px 0 15px;
  padding: 0;
  list-style: none;
}

.access-list li {
  position: relative;
  padding-left: 17px;
  color: #3f5114;
  font-size: 9px;
  font-weight: 750;
}

.access-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--coral-dark);
  font-weight: 900;
}

.access-block .payment-message {
  min-height: 27px;
  margin-top: 8px;
  color: #445711;
  font-weight: 800;
}

.access-block .payment-policy {
  display: block;
  margin-top: 8px;
  color: #5a4a1d;
  font-size: 8px;
  line-height: 1.45;
}

.phone-verify-block {
  margin-top: 13px;
}

.phone-verify-label {
  display: block;
  margin-bottom: 6px;
  color: #3f5114;
  font-size: 9px;
  font-weight: 800;
}

.phone-verify-row {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
}

.phone-verify-code-row {
  margin-top: 8px;
}

.phone-verify-prefix {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.phone-verify-row input {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 10px;
  font-family: var(--font-body);
}

.phone-verify-row .button {
  flex: 0 0 auto;
}

.access-block .phone-verify-block + .payment-message {
  margin-top: 4px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.metric-card {
  min-height: 126px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.metric-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
}

.metric-card > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.metric-card span:not(.metric-icon) {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.metric-card strong {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.045em;
}

.metric-card small {
  overflow: hidden;
  color: var(--muted-light);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-coral .metric-icon { color: #b23b31; background: var(--coral-soft); }
.metric-blue .metric-icon { color: var(--blue-dark); background: var(--blue-soft); }
.metric-lime .metric-icon { color: #527218; background: var(--lime-soft); }
.metric-violet .metric-icon { color: #6842b5; background: var(--violet-soft); }

.analytics-grid,
.result-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .7fr);
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.trend-panel,
.section-panel,
.history-panel,
.result-breakdown,
.ranked-panel {
  padding: 23px;
}

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

.panel-heading h2 {
  margin: 5px 0 0;
  font-size: 18px;
}

.data-note {
  color: var(--muted-light);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: right;
  text-transform: uppercase;
}

.chart-wrap {
  position: relative;
  min-height: 285px;
}

.trend-chart {
  width: 100%;
  height: 285px;
  overflow: visible;
}

.trend-chart .grid-line {
  stroke: #e1e4dd;
  stroke-width: 1;
}

.trend-chart .axis-label {
  fill: #89928d;
  font-family: var(--font-body);
  font-size: 10px;
}

.trend-chart .trend-area {
  fill: rgba(100, 119, 239, .08);
}

.trend-chart .trend-line {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.trend-chart .trend-point {
  fill: var(--card);
  stroke: var(--blue);
  stroke-width: 3;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: var(--muted);
  text-align: center;
}

.chart-empty span {
  color: var(--blue);
  font-size: 34px;
}

.chart-empty strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
}

.chart-empty p {
  max-width: 340px;
  margin: 0;
  font-size: 10px;
}

.section-bars,
.result-bars {
  display: grid;
  gap: 21px;
}

.section-bar-row,
.result-bars > div {
  display: grid;
  gap: 8px;
}

.section-bar-row > div:first-child,
.result-bars > div > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.section-bar-row strong,
.result-bars strong {
  font-family: var(--font-display);
  font-size: 12px;
}

.section-bar-row span,
.result-bars span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 850;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  background: #e8ebe4;
  border-radius: 99px;
}

.bar-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
  transition: width .5s ease;
}

.section-bar-row[data-section="DILR"] .bar-track i,
.result-bars > div[data-result-section="DILR"] .bar-track i { background: var(--lime-dark); }
.section-bar-row[data-section="QA"] .bar-track i,
.result-bars > div[data-result-section="QA"] .bar-track i { background: var(--coral); }

.section-bar-row small,
.result-bars small {
  color: var(--muted-light);
  font-size: 8px;
}

.history-panel {
  overflow: hidden;
}

.history-heading {
  margin-bottom: 14px;
}

.table-toolbar,
.catalog-toolbar,
.review-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding: 12px;
  background: #f4f5f0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.search-control,
.select-control {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
}

.search-control {
  min-width: 235px;
}

.search-control > span:not(.sr-only) {
  color: var(--muted-light);
  font-size: 16px;
}

.search-control input {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 10px;
}

.select-control {
  position: relative;
}

.select-control > span {
  color: var(--muted-light);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.select-control select {
  min-width: 130px;
  padding: 2px 24px 2px 2px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 10px;
  font-weight: 750;
}

.toolbar-note {
  margin-left: auto;
  color: var(--muted-light);
  font-size: 8px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.performance-table,
.ranked-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  background: var(--card);
}

.performance-table th,
.performance-table td,
.ranked-table th,
.ranked-table td {
  padding: 12px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.performance-table th,
.ranked-table th {
  color: var(--muted);
  background: #f3f4ef;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.performance-table th button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
}

.performance-table th[aria-sort="descending"] button,
.performance-table th[aria-sort="ascending"] button {
  color: var(--blue-dark);
}

.performance-table td {
  color: var(--ink-soft);
  font-size: 10px;
  white-space: nowrap;
}

.performance-table tbody tr:last-child td,
.ranked-table tbody tr:last-child td {
  border-bottom: 0;
}

.performance-table tbody tr:hover,
.ranked-table tbody tr:hover {
  background: #fafbf7;
}

.mock-cell {
  min-width: 190px;
  display: grid;
  gap: 2px;
}

.mock-cell strong {
  color: var(--ink);
  font-size: 10px;
}

.mock-cell small {
  color: var(--muted-light);
  font-size: 8px;
}

.table-status {
  display: inline-flex;
  padding: 4px 7px;
  color: #40554c;
  background: #e9eee9;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 850;
  text-transform: capitalize;
}

.table-status[data-tone="success"] { color: #226a4d; background: var(--green-soft); }
.table-status[data-tone="warning"] { color: #865b15; background: var(--amber-soft); }
.table-status[data-tone="error"] { color: #923c37; background: var(--red-soft); }

.library-section {
  margin-top: 42px;
  padding-top: 33px;
  border-top: 1px solid var(--line-strong);
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 17px;
}

.section-title-row h2 {
  margin: 6px 0 5px;
  font-size: clamp(25px, 3vw, 37px);
}

.section-title-row p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.catalog-count {
  flex: 0 0 auto;
  padding: 8px 11px;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 9px;
  font-weight: 850;
}

.catalog-toolbar {
  justify-content: flex-start;
}

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

.mock-card {
  position: relative;
  min-height: 244px;
  display: flex;
  flex-direction: column;
  padding: 19px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.mock-card::after {
  content: "";
  position: absolute;
  width: 95px;
  height: 95px;
  right: -45px;
  top: -38px;
  background: var(--blue-soft);
  border-radius: 50%;
}

.mock-card[data-access="locked"]::after {
  background: var(--paper-deep);
}

.mock-card-top,
.mock-card-meta,
.mock-card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mock-card-top span:first-child {
  color: var(--coral-dark);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.access-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  color: #7b5d1f;
  background: var(--amber-soft);
  border-radius: 99px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.access-chip[data-access="unlocked"] {
  color: #226a4d;
  background: var(--green-soft);
}

.mock-card h3 {
  position: relative;
  z-index: 1;
  margin: 30px 0 7px;
  font-size: 18px;
}

.mock-card > p {
  position: relative;
  z-index: 1;
  min-height: 37px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.mock-card-meta {
  justify-content: flex-start;
  margin-top: 15px;
  color: var(--muted-light);
  font-size: 8px;
  font-weight: 750;
}

.mock-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.mock-card-footer small {
  color: var(--muted-light);
  font-size: 8px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.pagination span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding-top: 18px;
  color: var(--muted-light);
  border-top: 1px solid var(--line);
  font-size: 8px;
}

.dashboard-footer p {
  margin: 0;
}

/* Mock runner */
.runner-view {
  min-height: 100vh;
  background: #e9ece5;
}

.runner-header {
  min-height: 102px;
  display: grid;
  grid-template-columns: auto minmax(190px, .75fr) minmax(330px, 1.25fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(20px, 3vw, 42px);
  color: var(--white);
  background: var(--dark);
  border-bottom: 1px solid #35413b;
}

.brand-light {
  color: var(--white);
}

.brand-light .brand-name span {
  color: var(--coral);
}

.runner-title-block {
  min-width: 0;
}

.runner-title-block h1 {
  margin: 3px 0 2px;
  overflow: hidden;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runner-title-block p {
  margin: 0;
  overflow: hidden;
  color: #8f9a94;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runner-timer {
  min-width: 150px;
  display: grid;
  justify-items: end;
  padding-left: 18px;
  border-left: 1px solid #3b4741;
}

.runner-timer span {
  color: #8f9a94;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
}

.runner-timer strong {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -.04em;
  line-height: 1.1;
}

.runner-timer small {
  color: #7d8983;
  font-size: 7px;
}

.runner-timer.is-urgent strong {
  color: var(--coral);
}

.runner-progress {
  padding: 9px clamp(20px, 3vw, 42px);
  color: #dbe2de;
  background: #111815;
  border-bottom: 1px solid #303c36;
}

.runner-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 5px;
  font-size: 8px;
  font-weight: 750;
}

.runner-progress-track {
  height: 4px;
  overflow: hidden;
  background: #34403a;
  border-radius: 99px;
}

.runner-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
  border-radius: inherit;
}

.runner-layout {
  min-height: calc(100vh - 134px);
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

.runner-palette {
  min-width: 0;
  padding: 19px;
  background: var(--card);
  border-right: 1px solid var(--line);
}

.palette-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.palette-heading h2 {
  margin: 4px 0 0;
  font-size: 17px;
}

.palette-close {
  display: none;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: #f0f2ec;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 20px;
}

.section-jump {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 13px;
}

.section-jump button {
  min-height: 45px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  padding: 5px;
  color: var(--muted);
  background: #f1f3ed;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
}

.section-jump button strong {
  font-size: 12px;
}

.section-jump button small {
  color: var(--muted-light);
  font-size: 7px;
}

.section-jump button.is-active {
  color: var(--white);
  background: var(--dark);
  border-color: var(--dark);
}

.palette-groups {
  max-height: calc(100vh - 390px);
  overflow-y: auto;
  padding: 2px 4px 4px 2px;
}

.palette-group {
  margin-bottom: 14px;
}

.palette-group > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}

.palette-group > div:first-child span {
  color: var(--muted-light);
  letter-spacing: 0;
}

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

.palette-number {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: #f2f3ee;
  border: 1px solid #e2e5de;
  border-radius: 7px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
}

.palette-number.is-answered {
  color: #214f3a;
  background: var(--green-soft);
  border-color: #a9d1bd;
}

.palette-number.is-review {
  color: #875b13;
  background: var(--amber-soft);
  border-color: #e7c77f;
  box-shadow: inset 0 -3px 0 var(--amber);
}

.palette-number.is-current {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 2px rgba(100, 119, 239, .2);
}

.palette-number.is-expired {
  cursor: not-allowed;
  opacity: .55;
}

.palette-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin-top: 13px;
  padding-top: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 7px;
}

.palette-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.palette-legend i {
  width: 9px;
  height: 9px;
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}

.legend-current { background: var(--blue); border-color: var(--blue) !important; }
.legend-answered { background: var(--green-soft); border-color: #9bc6b1 !important; }
.legend-review { background: var(--amber-soft); border-color: #d6ae60 !important; }
.legend-unanswered { background: #f2f3ee; }

.palette-summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 9px;
  color: var(--muted);
  background: #f0f2ec;
  border-radius: 8px;
  font-size: 8px;
}

.palette-summary b {
  color: var(--ink);
}

.question-workspace {
  min-width: 0;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 24px clamp(20px, 4vw, 58px) 38px;
}

.mobile-palette-toggle {
  display: none;
}

.runner-blocker {
  width: min(850px, 100%);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  padding: 17px;
  color: #6d2c27;
  background: var(--red-soft);
  border: 1px solid #e3aaa6;
  border-radius: 14px;
}

.runner-blocker > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: 0 0 29px;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  font-weight: 900;
}

.runner-blocker h2 {
  margin: 1px 0 4px;
  font-size: 16px;
}

.runner-blocker p {
  margin: 0;
  font-size: 10px;
  line-height: 1.55;
}

.question-card {
  width: min(850px, 100%);
  min-height: 570px;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 21px;
  border-bottom: 1px solid var(--line);
}

.question-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.question-badges span {
  padding: 5px 7px;
  color: var(--muted);
  background: #eff1eb;
  border-radius: 6px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.question-badges .section-badge {
  color: var(--white);
  background: var(--blue);
}

.question-position {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.question-copy {
  flex: 1;
  padding: clamp(24px, 4vw, 42px);
}

.question-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.question-context {
  margin-top: 20px;
  padding: 16px;
  color: var(--ink-soft);
  background: #f2f3ee;
  border-left: 4px solid var(--lime-dark);
  border-radius: 4px 11px 11px 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.context-title {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.context-table-wrap {
  max-width: 100%;
  margin-top: 12px;
  overflow-x: auto;
}

.context-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 11px;
}

.context-table td,
.context-table th {
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  text-align: left;
}

.response-form {
  margin-top: 28px;
}

.response-options {
  display: grid;
  gap: 10px;
}

.response-option {
  position: relative;
  min-height: 55px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px 14px 9px 9px;
  color: var(--ink-soft);
  background: #f7f8f3;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

.response-option:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(53, 80, 106, .18);
}

.response-option:hover {
  border-color: var(--blue);
}

.response-option:has(input:checked) {
  color: var(--ink);
  background: var(--blue-soft);
  border-color: var(--blue);
}

.response-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-letter {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
}

.response-option:has(input:checked) .option-letter {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.option-text {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.text-response {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 850;
}

.text-response textarea {
  width: 100%;
  min-height: 98px;
  padding: 13px;
  color: var(--ink);
  background: #f7f8f3;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: 0;
  resize: vertical;
  font-size: 13px;
  line-height: 1.5;
}

.text-response textarea:focus {
  border-color: var(--blue);
}

.text-response small {
  color: var(--muted-light);
  font-size: 8px;
  font-weight: 500;
}

.question-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
}

.question-nav-buttons {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

#markReviewButton.is-active {
  color: #7c5410;
  background: var(--amber-soft);
  border-color: #ddbb72;
}

.submit-panel {
  width: min(850px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 15px;
  padding: 17px 19px;
  color: var(--white);
  background: var(--dark);
  border-radius: 14px;
}

.submit-panel h2 {
  margin: 4px 0 2px;
  font-size: 16px;
}

.submit-panel p {
  margin: 0;
  color: #9aa5a0;
  font-size: 9px;
}

/* Results */
.result-view {
  min-height: 100vh;
  background: var(--paper);
}

.result-header {
  min-height: 94px;
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) minmax(330px, 1.2fr) auto;
  align-items: center;
  gap: 20px;
  padding: 12px max(22px, calc((100% - 1480px) / 2));
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.result-title-block h1 {
  margin: 3px 0 1px;
  font-size: 20px;
}

.result-title-block p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
}

.result-main {
  width: min(calc(100% - 40px), 1480px);
  margin: 0 auto;
  padding: 25px 0 60px;
}

.result-state {
  min-height: 460px;
}

.result-hero {
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(280px, .62fr) minmax(0, 1.4fr);
  overflow: hidden;
  color: var(--white);
  background: var(--dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.score-block {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 35px;
  color: var(--dark);
  background: var(--lime);
  border-right: 1px solid #a5cb50;
}

.score-block .eyebrow {
  color: #3a4d10;
}

.score-block > strong {
  font-family: var(--font-display);
  font-size: clamp(62px, 8vw, 105px);
  line-height: 1;
  letter-spacing: -.08em;
}

.score-block p {
  margin: 8px 0 0;
  color: #314d27;
  font-size: 9px;
  font-weight: 750;
}

.result-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 60px);
}

.result-summary .eyebrow {
  color: var(--coral);
}

.result-summary h2 {
  margin: 10px 0 9px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.result-summary > p {
  max-width: 700px;
  margin: 0;
  color: #a9b4ae;
  font-size: 12px;
  line-height: 1.65;
}

.result-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.result-status {
  color: #d7dfdb;
  background: #26322d;
  border-color: #46544d;
}

.result-status[data-tone="success"] {
  color: var(--lime);
  background: #263222;
  border-color: #52673a;
}

.result-status[data-tone="warning"] {
  color: #ffd8a1;
  background: #392f1f;
  border-color: #6b5933;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.result-metrics article {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 17px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.result-metrics span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.result-metrics strong {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -.04em;
}

.result-metrics small {
  color: var(--muted-light);
  font-size: 8px;
}

.ranked-list {
  min-height: 190px;
}

.ranked-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 25px;
  color: var(--muted);
  background: #f4f5f0;
  border-radius: 11px;
  text-align: center;
}

.ranked-empty strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
}

.ranked-empty p {
  max-width: 340px;
  margin: 5px 0 0;
  font-size: 9px;
  line-height: 1.5;
}

.ranked-table-wrap {
  max-height: 230px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.ranked-table {
  min-width: 520px;
}

.ranked-table td {
  color: var(--ink-soft);
  font-size: 9px;
}

.ranked-table tr.is-current {
  background: var(--lime-soft);
}

.review-section {
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
}

.review-title-row {
  align-items: flex-start;
}

.review-toolbar {
  justify-content: flex-start;
}

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

.review-card {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.review-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.review-card-meta span {
  padding: 5px 7px;
  color: var(--muted);
  background: #eef0ea;
  border-radius: 6px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.review-card h3 {
  margin: 0 0 15px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
}

.review-outcome {
  padding: 5px 8px;
  color: #6d4d12;
  background: var(--amber-soft);
  border-radius: 99px;
  font-size: 8px;
  font-weight: 900;
  text-transform: capitalize;
}

.review-outcome[data-tone="success"] {
  color: #206849;
  background: var(--green-soft);
}

.review-outcome[data-tone="error"] {
  color: #8e3632;
  background: var(--red-soft);
}

.review-responses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.review-response {
  min-width: 0;
  padding: 12px;
  background: #f4f5f0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.review-response.is-correct {
  background: var(--green-soft);
  border-color: #b5d8c5;
}

.review-response.is-selected {
  background: var(--blue-soft);
  border-color: #c4ccf8;
}

.review-response span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.review-response strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.5;
}

.review-explanation,
.review-source {
  margin: 13px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.review-explanation span,
.review-source > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted-light);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.review-explanation p,
.review-source p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.6;
}

.review-source a {
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.compact-empty {
  min-height: 160px;
}

/* Dialogs and toast */
.app-dialog {
  width: min(520px, calc(100% - 30px));
  padding: 29px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

.app-dialog::backdrop {
  background: rgba(17, 24, 21, .76);
  backdrop-filter: blur(6px);
}

.dialog-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  color: var(--white);
  background: var(--green);
  border-radius: 11px;
  font-size: 15px;
  font-weight: 900;
}

.dialog-icon-warning {
  background: var(--amber);
}

.app-dialog h2 {
  margin: 8px 0 8px;
  font-size: 27px;
}

.app-dialog > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.dialog-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0 12px;
}

.dialog-stats span {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 11px 7px;
  color: var(--muted);
  background: #f1f3ed;
  border-radius: 9px;
  font-size: 8px;
}

.dialog-stats b {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
}

.app-dialog .dialog-note {
  color: var(--muted-light);
  font-size: 9px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 23px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  width: min(390px, calc(100% - 36px));
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  color: var(--white);
  background: var(--dark);
  border: 1px solid #45524c;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.toast > span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  color: var(--dark);
  background: var(--lime);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
}

.toast p {
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.5;
}

.noscript-message {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--white);
  background: var(--dark);
  font-size: 15px;
  text-align: center;
}

/* Responsive */
@media (max-width: 1180px) {
  .header-nav a:nth-child(3) {
    display: none;
  }

  .dashboard-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  }

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

  .runner-header {
    grid-template-columns: auto minmax(170px, 1fr) auto;
  }

  .runner-header .format-contract {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    padding: 6px 10px;
  }

  .runner-header .runner-timer {
    grid-column: 3;
    grid-row: 1;
  }

  .runner-header .runner-exit {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: end;
  }

  .result-header {
    grid-template-columns: auto minmax(210px, 1fr) auto;
  }

  .result-header .format-contract {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    padding: 6px 10px;
  }

  .result-header > .button {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 920px) {
  .header-nav {
    display: none;
  }

  .account-block {
    min-width: 0;
    margin-left: auto;
  }

  .dashboard-hero,
  .analytics-grid,
  .result-analysis-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 360px;
  }

  .exam-card {
    min-height: 0;
  }

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

  .runner-header {
    grid-template-columns: auto minmax(150px, 1fr) auto;
    gap: 12px;
  }

  .runner-exit {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .runner-timer {
    min-width: 130px;
  }

  .runner-layout {
    display: block;
  }

  .runner-palette {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    width: min(340px, 88vw);
    overflow-y: auto;
    border-right: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    transform: translateX(-105%);
    transition: transform .22s ease;
  }

  .runner-palette.is-open {
    transform: translateX(0);
  }

  .palette-close {
    display: grid;
  }

  .palette-groups {
    max-height: none;
  }

  .question-workspace {
    min-height: calc(100vh - 165px);
    padding-top: 16px;
  }

  .mobile-palette-toggle {
    width: min(850px, 100%);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--ink-soft);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 850;
  }

  .result-hero {
    grid-template-columns: 1fr;
  }

  .score-block {
    border-right: 0;
    border-bottom: 1px solid #a5cb50;
  }
}

@media (max-width: 680px) {
  .header-main,
  .dashboard,
  .result-main {
    width: min(calc(100% - 24px), 1480px);
  }

  .header-main {
    min-height: 66px;
    gap: 8px;
  }

  .header-main .brand-mark {
    width: 35px;
    height: 35px;
  }

  .header-main .brand-mark svg {
    width: 25px;
    height: 25px;
  }

  .header-main .brand-name {
    font-size: 16px;
  }

  .origin-badge,
  .account-copy,
  .account-block .button {
    display: none;
  }

  .account-block {
    padding-left: 0;
    border-left: 0;
  }

  .format-contract-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding: 7px 12px;
  }

  .format-contract-header > span {
    padding: 0;
    border: 0;
  }

  .format-contract-header > strong {
    font-size: 8px;
  }

  .dashboard {
    padding-top: 12px;
  }

  .hero-copy {
    min-height: 420px;
    padding: 31px 24px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy::after {
    width: 125px;
    height: 125px;
    right: 50px;
    border-width: 25px;
  }

  .hero-facts {
    gap: 18px;
  }

  .exam-card {
    padding: 20px;
  }

  .access-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics-grid,
  .result-metrics,
  .mock-grid,
  .review-responses {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 102px;
  }

  .trend-panel,
  .section-panel,
  .history-panel,
  .result-breakdown,
  .ranked-panel {
    padding: 17px;
  }

  .panel-heading,
  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .data-note {
    text-align: left;
  }

  .chart-wrap,
  .trend-chart {
    min-height: 230px;
    height: 230px;
  }

  .table-toolbar,
  .catalog-toolbar,
  .review-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-control,
  .select-control,
  .select-control select {
    width: 100%;
  }

  .toolbar-note {
    margin-left: 0;
  }

  .section-title-row h2 {
    font-size: 30px;
  }

  .catalog-count {
    align-self: flex-start;
  }

  .mock-card {
    min-height: 225px;
  }

  .dashboard-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .runner-header {
    grid-template-columns: auto 1fr;
    padding: 11px 12px;
  }

  .runner-title-block h1 {
    font-size: 16px;
  }

  .runner-timer {
    min-width: 0;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-items: start;
    padding: 8px 0 0;
    border-top: 1px solid #3b4741;
    border-left: 0;
  }

  .runner-timer strong {
    font-size: 24px;
  }

  .runner-header .format-contract {
    grid-row: 3;
  }

  .runner-exit {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: start;
  }

  .runner-progress {
    padding: 8px 12px;
  }

  .question-workspace {
    padding: 12px 10px 28px;
  }

  .question-card {
    min-height: 540px;
    border-radius: 14px;
  }

  .question-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 13px 15px;
  }

  .question-copy {
    padding: 22px 17px;
  }

  .question-copy h2 {
    font-size: 17px;
  }

  .question-context {
    padding: 13px;
    font-size: 13px;
  }

  .response-option {
    grid-template-columns: 31px minmax(0, 1fr);
    padding: 8px;
  }

  .option-letter {
    width: 31px;
    height: 31px;
  }

  .option-text {
    font-size: 11px;
  }

  .question-footer {
    flex-wrap: wrap;
    padding: 13px;
  }

  .question-footer > .button {
    flex: 1 1 42%;
  }

  .question-nav-buttons {
    width: 100%;
    margin: 4px 0 0;
  }

  .question-nav-buttons .button {
    flex: 1;
  }

  .submit-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .result-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 11px 12px;
  }

  .result-title-block h1 {
    font-size: 16px;
  }

  .result-header .button {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .score-block {
    padding: 30px 20px;
  }

  .result-summary {
    padding: 30px 22px;
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .dialog-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============ Exam-hall runner theme (scoped to .exam-runner; original IndiaMBA styling, layout conventions follow standard computer-based test interfaces) ============ */
.exam-runner { background: #eef3f6; color: #1a1a1a; font-family: Arial, Helvetica, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
.exam-runner .eyebrow { display: none; }

/* Top dark bar */
.exam-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: linear-gradient(var(--dark-raised), var(--dark)); color: var(--paper); }
.exam-exam-title { display: flex; flex-direction: column; line-height: 1.25; }
.exam-exam-title strong { font-size: 17px; letter-spacing: .01em; }
.exam-exam-title span { font-size: 10px; color: #cfcfcf; }
.exam-top-actions { display: flex; gap: 14px; align-items: center; }
.exam-link-button { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; color: #7fb3e8; font-size: 13px; font-weight: 700; cursor: pointer; padding: 4px 2px; }
.exam-link-button:hover { text-decoration: underline; }
.exam-link-button.exam-exit { color: #f0a35e; }

/* Section tabs + profile row */
.exam-sectionbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px 0; background: #fff; border-bottom: 1px solid #d5dde3; }
.exam-runner .section-jump { display: flex; gap: 6px; margin: 0; }
.exam-runner .section-jump button { min-height: 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 13px; font-weight: 700; color: #333; background: #e8edf1; border: 1px solid #c3ccd4; border-bottom: 0; border-radius: 6px 6px 0 0; cursor: pointer; max-width: 300px; }
.exam-runner .section-jump button strong { font-size: 11.5px; line-height: 1.3; text-align: left; }
.exam-runner .section-jump button small { font-size: 10px; color: #666; }
.exam-runner .section-jump button.is-active { color: #fff; background: #35506a; border-color: #35506a; }
.exam-runner .section-jump button.is-active small { color: #dbe9ff; }
.exam-runner .section-jump button:disabled { opacity: .55; cursor: not-allowed; }
.exam-profile { display: flex; align-items: center; gap: 8px; border: 1px solid #c3ccd4; padding: 4px 10px 4px 4px; background: #fff; }
.exam-avatar { width: 38px; height: 44px; display: block; background: #dfe7ee; overflow: hidden; }
.exam-avatar svg { width: 100%; height: 100%; display: block; }
.exam-profile strong { font-size: 13px; }

/* Timer row */
.exam-timebar { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; padding: 6px 16px; background: #fff; font-size: 13px; font-weight: 700; }
.exam-timebar small { font-weight: 400; color: #757575; font-size: 10px; }
.exam-runner .runner-timer { display: none; }
.exam-progress { padding: 0 16px 6px; background: #fff; }
.exam-progress > div:first-child { display: flex; justify-content: space-between; font-size: 11px; color: #555; }
.exam-progress .runner-progress-track { height: 4px; background: #e2e7eb; border-radius: 2px; overflow: hidden; margin-top: 3px; }
.exam-progress .runner-progress-track i { display: block; height: 100%; background: #35506a; }

/* Main split layout: content left, palette right */
.exam-runner .runner-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: stretch; }
.exam-runner .question-workspace { min-width: 0; display: flex; flex-direction: column; background: #fff; border-right: 1px solid #d5dde3; }
.exam-runner .mobile-palette-toggle { display: none; }
.exam-runner .runner-blocker { margin: 12px 16px 0; }

/* Question header + marks line */
.exam-runner .question-card { border: 0; border-radius: 0; box-shadow: none; background: #fff; display: flex; flex-direction: column; min-height: 0; flex: 1; }
.exam-runner .question-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid #d5dde3; background: #f7fafc; }
.exam-runner .question-badges { display: flex; gap: 6px; align-items: center; }
.exam-runner .section-badge { background: #35506a; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 3px; }
.exam-runner #questionTypeBadge, .exam-runner #questionTopicBadge { font-size: 11px; color: #555; background: #eef1f4; padding: 3px 8px; border-radius: 3px; }
.exam-runner .question-position { font-size: 14px; font-weight: 800; }
.exam-marksline { margin: 0; padding: 8px 16px 0; font-size: 12px; text-align: right; color: #333; background: #fff; }
.exam-marksline .marks-pos { color: #1c863b; }
.exam-marksline .marks-neg { color: #d93025; }

/* Split view: passage left, question right */
.exam-runner .question-copy { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.exam-runner .question-copy:has(#questionContext[hidden]) { grid-template-columns: minmax(0, 1fr); }
.exam-runner .question-context { overflow-y: auto; padding: 14px 16px; font-size: 14px; line-height: 1.65; border-right: 1px solid #d5dde3; max-height: calc(100vh - 330px); min-height: 240px; }
.exam-runner .question-main { overflow-y: auto; padding: 14px 16px; max-height: calc(100vh - 330px); min-height: 240px; }
.exam-runner .question-copy h2 { font-size: 15px; line-height: 1.55; margin: 0 0 12px; font-weight: 700; }
.exam-runner .response-options { display: grid; gap: 10px; }
.exam-runner .response-option { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.exam-runner .response-option input { margin-top: 3px; accent-color: #35506a; }
.exam-runner .option-letter { display: none; }
.exam-runner .text-response textarea { width: 100%; border: 1px solid #9aa7b2; border-radius: 3px; padding: 8px; font-size: 14px; }
.exam-runner .question-footer { display: none; }
.exam-runner .submit-panel { margin: 12px 16px; }

/* Right palette panel */
.exam-runner .runner-palette { min-width: 0; padding: 12px; background: #eef3f6; border-right: 0; border-left: 1px solid #d5dde3; overflow-y: auto; }
.exam-runner .palette-heading h2 { font-size: 14px; }
.exam-runner .palette-close { display: none; }
.exam-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 6px; margin-bottom: 12px; font-size: 11px; color: #333; }
.exam-legend span { display: flex; align-items: center; gap: 6px; }
.exam-legend b { font-size: 12px; }
.exam-legend i { width: 22px; height: 22px; flex: none; }
.legend-answered { background: #2f6b4f; clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%); }
.legend-unanswered { background: #b23a2e; clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%); }
.legend-notvisited { background: #e4e7ea; border: 1px solid #b9c2c9; clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%); }
.legend-review { background: #6a5578; border-radius: 50%; }
.legend-answered-review { background: #6a5578; border-radius: 50%; position: relative; }
.legend-answered-review::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 9px; height: 9px; background: #2f6b4f; border-radius: 50%; border: 1px solid #fff; }
.legend-current { background: #35506a; border-radius: 50%; }
.exam-runner .palette-groups { max-height: none; overflow: visible; }
.exam-runner .palette-group > div:first-child { font-size: 12px; color: #35506a; background: #35506a; color: #fff; padding: 5px 8px; border-radius: 3px; margin-bottom: 8px; }
.exam-runner .palette-group > div:first-child span { color: #dbe9ff; }
.exam-runner .palette-numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.exam-runner .palette-number { aspect-ratio: .92; border-radius: 0; font-size: 13px; font-weight: 700; color: #333; background: #e4e7ea; border: 1px solid #b9c2c9; clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%); padding-bottom: 12%; }
.exam-runner .palette-number.is-answered { background: #2f6b4f; border-color: #2f6b4f; color: #fff; }
.exam-runner .palette-number.is-visited:not(.is-answered):not(.is-review):not(.is-answered-review) { background: #b23a2e; border-color: #b23a2e; color: #fff; }
.exam-runner .palette-number.is-review { background: #6a5578; border-color: #6a5578; color: #fff; border-radius: 50%; clip-path: none; padding-bottom: 0; }
.exam-runner .palette-number.is-answered-review { background: #6a5578; border-color: #6a5578; color: #fff; border-radius: 50%; clip-path: none; padding-bottom: 0; position: relative; }
.exam-runner .palette-number.is-answered-review::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 11px; height: 11px; background: #2f6b4f; border-radius: 50%; border: 2px solid #fff; }
.exam-runner .palette-number.is-current { outline: 3px solid #35506a; outline-offset: 1px; }
.exam-runner .palette-number.is-expired { opacity: .6; }
.exam-runner .palette-summary { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: #444; }

/* Bottom action bar */
.sectional-practice { border: 1px solid #c3ccd4; border-radius: 12px; padding: 22px; background: #f8fbfd; }
.sectional-controls { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; }
.sectional-controls > span { flex: 1 1 250px; color: #47545e; }
.sectional-controls .button, .sectional-attempt-actions .button { min-height: 46px; }
.sectional-attempt { margin-top: 22px; padding: 20px; border: 1px solid #bbc7d0; border-radius: 10px; background: white; }
.sectional-attempt-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid #d2dce3; }
.sectional-attempt-head strong { font-size: 20px; }
.sectional-attempt-head #sectionalTimer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 22px; }
.sectional-question { padding: 20px 0; font-size: 18px; line-height: 1.65; }
.sectional-question h3 { font-size: 19px; }
.sectional-attempt fieldset { display: grid; gap: 10px; border: 0; padding: 0; }
.sectional-attempt legend { font-weight: 700; margin-bottom: 10px; }
.sectional-option { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 14px; border: 1px solid #c3ccd4; border-radius: 8px; cursor: pointer; }
.sectional-option input { width: 20px; height: 20px; flex: 0 0 20px; }
.sectional-text-response { width: min(100%, 360px); min-height: 48px; padding: 10px 12px; border: 1px solid #8797a4; border-radius: 8px; }
.sectional-attempt-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.sectional-result { font-weight: 700; }
.sectional-attempt[hidden] { display: none; }
@media (max-width: 700px) { .sectional-practice { padding: 16px; } .sectional-attempt-actions { display: grid; grid-template-columns: 1fr 1fr; } .sectional-attempt-actions #sectionalSubmit { grid-column: 1 / -1; } }

/* Bottom action bar */
.exam-actionbar { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; background: #dfe9f2; border-top: 1px solid #c3ccd4; position: sticky; bottom: 0; }
.exam-actions-left, .exam-actions-right { display: flex; gap: 10px; flex-wrap: wrap; }
.exam-button { font-size: 13px; font-weight: 700; padding: 9px 18px; border: 1px solid #8a97a3; border-radius: 3px; background: #fff; color: #1a1a1a; cursor: pointer; }
.exam-button:disabled { opacity: .5; cursor: not-allowed; }
.exam-button.exam-primary { background: #35506a; border-color: #35506a; color: #fff; }
.exam-button.exam-submit { background: #35506a; border-color: #35506a; color: #fff; min-width: 130px; }
.exam-button.is-active { background: #6a5578; border-color: #6a5578; color: #fff; }

/* Dialogs */
.exam-dialog { border: 1px solid #8a97a3; border-radius: 4px; padding: 20px 22px; max-width: min(680px, 92vw); }
.exam-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.exam-dialog h2 { margin: 0 0 10px; font-size: 17px; }
.exam-dialog-body { font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
.exam-paper-list { margin: 0; padding-left: 22px; max-height: 50vh; overflow-y: auto; font-size: 12px; }
.exam-paper-list li { margin: 3px 0; }

@media (max-width: 920px) {
  .exam-runner .runner-layout { grid-template-columns: minmax(0, 1fr); }
  .exam-runner .question-copy { grid-template-columns: minmax(0, 1fr); }
  .exam-runner .question-context { border-right: 0; border-bottom: 1px solid #d5dde3; max-height: 38vh; }
  .exam-runner .question-main { max-height: none; }
  .exam-runner .runner-palette { position: fixed; inset: auto 0 0 0; top: 64px; z-index: 40; display: none; border-left: 0; border-top: 2px solid #35506a; }
  .exam-runner .runner-palette.is-open { display: block; }
  .exam-runner .mobile-palette-toggle { display: block; margin: 10px 16px 0; }
  .exam-runner .palette-close { display: block; }
  .exam-actionbar { flex-direction: column; }
  .exam-topbar { flex-wrap: wrap; }
}
