:root {
  --ink: #0a2a43;
  --ink-soft: #29485f;
  --muted: #586d7b;
  --paper: #f7f8f2;
  --surface: #ffffff;
  --surface-tint: #eef4ef;
  --lime: #c9f04a;
  --lime-dark: #9cbe2d;
  --orange: #ff6b3d;
  --orange-soft: #fff0e9;
  --blue: #176b87;
  --blue-soft: #dff3f4;
  --line: #dce4df;
  --success: #14805e;
  --danger: #b9442c;
  --shadow-sm: 0 12px 30px rgba(10, 42, 67, 0.08);
  --shadow-lg: 0 28px 70px rgba(10, 42, 67, 0.14);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shell: 1180px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.08;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin-inline: auto;
}

.narrow-shell {
  width: min(820px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding-block: clamp(72px, 9vw, 120px);
}

.section--tight {
  padding-block: clamp(52px, 7vw, 82px);
}

.section--white {
  background: var(--surface);
}

.section--tint {
  background: var(--surface-tint);
}

.section--ink {
  background: var(--ink);
  color: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--orange);
  content: "";
  transform: rotate(45deg);
}

.section--ink .eyebrow,
.bridge .eyebrow {
  color: var(--lime);
}

.display {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.65rem, 6.6vw, 5.75rem);
  letter-spacing: -0.065em;
}

.page-title {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: clamp(2.45rem, 5.4vw, 4.75rem);
  letter-spacing: -0.055em;
}

.section-title {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  letter-spacing: -0.045em;
}

.section-intro {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.17rem);
}

.section--ink .section-intro,
.bridge .section-intro {
  color: #bfd0da;
}

.lede {
  max-width: 690px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.62;
}

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

.microcopy {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

.section-heading > div:first-child {
  max-width: 770px;
}

.section-heading .section-title {
  margin-bottom: 12px;
}

.announcement {
  position: relative;
  z-index: 30;
  padding: 8px 20px;
  background: var(--ink);
  color: #dce9ef;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.announcement strong {
  color: var(--lime);
}

.site-header {
  position: sticky;
  z-index: 25;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(10, 42, 67, 0.09);
  background: rgba(247, 248, 242, 0.92);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
  text-decoration: none;
}

.brand-dot {
  color: var(--orange);
}

.brand-fit {
  color: var(--blue);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 13px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 750;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: rgba(23, 107, 135, 0.08);
  color: var(--blue);
}

.language-picker {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
}

.language-picker select {
  min-height: 38px;
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 13px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 0 rgba(10, 42, 67, 0.1);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  background: #d7fa62;
  box-shadow: 0 5px 0 rgba(10, 42, 67, 0.13);
  transform: translateY(2px);
}

.button--dark {
  background: var(--ink);
  color: white;
  box-shadow: 0 8px 0 rgba(10, 42, 67, 0.16);
}

.button--dark:hover {
  background: #123c59;
}

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

.button--orange:hover {
  background: #f05b2d;
}

.button--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.button--ghost:hover {
  border-color: var(--ink);
  background: white;
  box-shadow: none;
}

.button--small {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 11px;
  font-size: 0.9rem;
}

.button svg,
.text-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  transition: transform 160ms ease;
}

.button:hover svg,
.text-link:hover svg {
  transform: translateX(3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-weight: 850;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 118px);
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: -280px;
  right: -240px;
  width: 640px;
  height: 640px;
  border: 110px solid rgba(201, 240, 74, 0.3);
  border-radius: 50%;
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -1;
  bottom: -220px;
  left: 43%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(223, 243, 244, 0.65);
  content: "";
  filter: blur(2px);
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.8fr);
}

.keyword-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.keyword-note svg {
  width: 18px;
  height: 18px;
  color: var(--success);
}

.fitness-card {
  position: relative;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(10, 42, 67, 0.1);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg);
}

.fitness-card::after {
  position: absolute;
  top: -42px;
  right: -42px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--orange-soft);
  content: "";
}

.fitness-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 99px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.fitness-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.035em;
}

.fitness-card > p {
  margin-bottom: 26px;
  color: var(--muted);
}

.metric {
  margin-top: 20px;
}

.metric-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 0.84rem;
  font-weight: 800;
}

.metric-head span:last-child {
  color: var(--muted);
}

.metric-track {
  height: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9eeea;
}

.metric-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.metric-fill--reading {
  width: 66%;
}

.metric-fill--listening {
  width: 78%;
  background: var(--orange);
}

.dashboard-actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  grid-template-columns: 1fr 1fr;
}

.mini-test-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  transition: border 160ms ease, transform 160ms ease;
}

.mini-test-link:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.mini-test-link span {
  color: var(--orange);
}

.proof-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-item {
  padding: 28px 24px;
  border-left: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 1px solid var(--line);
}

.proof-item strong {
  display: block;
  font-size: 1.32rem;
  letter-spacing: -0.025em;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.85rem;
}

.steps,
.test-choice-grid,
.tips-grid,
.resource-grid,
.format-grid {
  display: grid;
  gap: 18px;
}

.steps {
  counter-reset: steps;
  grid-template-columns: repeat(3, 1fr);
}

.step-card {
  position: relative;
  min-height: 270px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: steps;
}

.step-card::before {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 45px;
  border-radius: 12px;
  background: var(--lime);
  content: "0" counter(steps);
  font-size: 0.84rem;
  font-weight: 900;
  place-items: center;
}

.step-card::after {
  position: absolute;
  right: -35px;
  bottom: -55px;
  width: 140px;
  height: 140px;
  border: 28px solid var(--surface-tint);
  border-radius: 50%;
  content: "";
}

.step-card:nth-child(2)::before {
  background: var(--blue-soft);
}

.step-card:nth-child(3)::before {
  background: var(--orange-soft);
}

.step-card h3 {
  margin-bottom: 12px;
  font-size: 1.34rem;
  letter-spacing: -0.025em;
}

.step-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: var(--muted);
}

.step-card a {
  color: var(--blue);
  font-weight: 800;
}

.test-choice-grid {
  grid-template-columns: 1fr 1fr;
}

.test-choice {
  position: relative;
  min-height: 410px;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  text-decoration: none;
}

.test-choice--reading {
  background: var(--blue-soft);
}

.test-choice--listening {
  background: var(--orange-soft);
}

.test-choice .icon-badge {
  margin-bottom: 72px;
}

.test-choice h3 {
  max-width: 450px;
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 3.7vw, 2.75rem);
  letter-spacing: -0.045em;
}

.test-choice p {
  max-width: 500px;
  margin-bottom: 24px;
  color: var(--ink-soft);
}

.test-choice .text-link {
  position: relative;
  z-index: 2;
}

.test-choice::after {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border: 50px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  content: "";
  transition: transform 220ms ease;
}

.test-choice:hover::after {
  transform: scale(1.08) rotate(8deg);
}

.icon-badge {
  display: grid;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  place-items: center;
}

.icon-badge svg {
  width: 25px;
  height: 25px;
}

.bridge {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: white;
}

.bridge::before {
  position: absolute;
  top: -100px;
  right: -50px;
  width: 330px;
  height: 330px;
  border: 62px solid rgba(201, 240, 74, 0.17);
  border-radius: 50%;
  content: "";
}

.bridge-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 48px;
  padding: clamp(40px, 7vw, 78px);
  grid-template-columns: 1.15fr 0.85fr;
}

.bridge h2 {
  max-width: 700px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  letter-spacing: -0.05em;
}

.bridge p {
  max-width: 680px;
  margin-bottom: 28px;
  color: #c5d5de;
  font-size: 1.07rem;
}

.bridge p a {
  color: white;
  font-weight: 850;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.bridge .button {
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.22);
}

.training-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.training-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 750;
}

.training-list svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--lime);
}

.tips-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tip-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.tip-number {
  display: block;
  margin-bottom: 38px;
  color: #a83f21;
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.tip-card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.tip-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.resource-grid {
  grid-template-columns: repeat(3, 1fr);
}

.resource-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  text-decoration: none;
  transition: border 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.resource-card:hover {
  border-color: rgba(23, 107, 135, 0.5);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.resource-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--surface-tint);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-card h3 {
  margin: 48px 0 14px;
  font-size: 1.38rem;
  letter-spacing: -0.025em;
}

.resource-card p {
  margin-bottom: 24px;
  color: var(--muted);
}

.resource-card .text-link {
  margin-top: auto;
}

.challenge-band {
  display: grid;
  align-items: center;
  gap: 36px;
  padding: clamp(32px, 5vw, 54px);
  border-radius: var(--radius-lg);
  background: var(--lime);
  grid-template-columns: 1fr auto;
}

.challenge-band h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.045em;
}

.challenge-band p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 24px 52px 24px 0;
  font-size: 1.08rem;
  font-weight: 850;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-tint);
  color: var(--ink);
  content: "+";
  font-size: 1.1rem;
  line-height: 22px;
  text-align: center;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 800px;
  margin: -6px 0 24px;
  padding-right: 30px;
  color: var(--muted);
}

.page-hero {
  position: relative;
  padding-block: clamp(58px, 8vw, 104px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  position: absolute;
  z-index: -1;
  top: 35px;
  right: -110px;
  width: 360px;
  height: 360px;
  border: 65px solid rgba(201, 240, 74, 0.3);
  border-radius: 50%;
  content: "";
}

.page-hero-grid {
  display: grid;
  align-items: end;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) 280px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumb span[aria-hidden="true"] {
  color: #a4b0b7;
}

.page-scorecard {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}

.page-scorecard .score-label {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-scorecard strong {
  display: block;
  margin-bottom: 3px;
  font-size: 2.7rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.page-scorecard p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.format-grid {
  grid-template-columns: repeat(4, 1fr);
}

.format-stat {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
}

.format-stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.5rem;
  letter-spacing: -0.035em;
}

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

.source-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.source-note a {
  color: var(--blue);
  font-weight: 750;
}

.test-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-lg);
}

.test-toolbar {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: white;
}

.test-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 850;
}

.test-brand span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink);
  place-items: center;
}

.timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.timer svg {
  width: 17px;
  height: 17px;
  color: var(--lime);
}

.test-intro {
  display: grid;
  min-height: 480px;
  padding: clamp(38px, 7vw, 78px);
  text-align: center;
  place-items: center;
}

.test-intro-inner {
  max-width: 620px;
}

.test-intro .icon-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  background: var(--blue-soft);
  box-shadow: none;
}

.test-intro h3 {
  margin-bottom: 15px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.test-intro p {
  max-width: 560px;
  margin: 0 auto 26px;
  color: var(--muted);
}

.test-note {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

.test-stage {
  min-height: 590px;
}

.test-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.progress-track {
  width: min(240px, 45%);
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9eeea;
}

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

.test-grid {
  display: grid;
  min-height: 520px;
  grid-template-columns: 1.1fr 0.9fr;
}

.passage-panel,
.audio-panel {
  padding: clamp(24px, 4vw, 42px);
  border-right: 1px solid var(--line);
  background: #fbfcf9;
}

.passage-kicker,
.question-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.passage-panel h3,
.audio-panel h3 {
  margin-bottom: 18px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.passage-panel p,
.audio-panel > p {
  color: var(--ink-soft);
}

.passage-panel p:last-child {
  margin-bottom: 0;
}

.question-panel {
  padding: clamp(24px, 4vw, 38px);
}

.question-panel form {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.question {
  margin: 0 0 25px;
  padding: 0 0 25px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.question legend {
  width: 100%;
  margin-bottom: 14px;
  padding: 0;
  font-weight: 800;
  line-height: 1.45;
}

.option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border 140ms ease, background 140ms ease;
}

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

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

.option input {
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.test-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
}

.answer-count {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.form-message {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 750;
}

.audio-player {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.waveform {
  display: flex;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 18px;
}

.waveform span {
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: var(--blue);
}

.waveform span:nth-child(2n) {
  height: 34px;
}

.waveform span:nth-child(3n) {
  height: 48px;
  background: var(--orange);
}

.is-playing .waveform span {
  animation: pulse-wave 760ms ease-in-out infinite alternate;
}

.is-playing .waveform span:nth-child(2n) {
  animation-delay: 120ms;
}

.is-playing .waveform span:nth-child(3n) {
  animation-delay: 240ms;
}

@keyframes pulse-wave {
  from {
    transform: scaleY(0.55);
  }
  to {
    transform: scaleY(1.05);
  }
}

.audio-status {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.transcript {
  margin-top: 20px;
  padding: 18px;
  border-left: 4px solid var(--lime-dark);
  background: var(--surface-tint);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.transcript strong {
  color: var(--ink);
}

.test-result {
  display: grid;
  min-height: 590px;
  padding: clamp(38px, 7vw, 72px);
  text-align: center;
  place-items: center;
}

.result-inner {
  max-width: 720px;
}

.result-score {
  display: grid;
  width: 126px;
  height: 126px;
  margin: 0 auto 26px;
  border: 14px solid var(--lime);
  border-radius: 50%;
  background: white;
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  box-shadow: var(--shadow-sm);
  place-items: center;
}

.result-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.test-result h3 {
  margin-bottom: 15px;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  letter-spacing: -0.045em;
}

.result-copy {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

.result-bridge {
  margin: 28px 0;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface-tint);
}

.result-bridge p {
  margin-bottom: 15px;
  color: var(--ink-soft);
  font-weight: 750;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.resource-hero {
  padding-bottom: 45px;
}

.resource-hero .page-title {
  max-width: 850px;
}

.cluster-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 32px;
}

.cluster-nav a {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: white;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.cluster-nav a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.guide-list {
  display: grid;
  gap: 22px;
}

.guide-card {
  display: grid;
  align-items: start;
  gap: 28px;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  grid-template-columns: 165px 1fr;
}

.guide-meta {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-meta span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

.guide-card h2 {
  margin-bottom: 13px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
}

.guide-card p {
  margin-bottom: 18px;
  color: var(--muted);
}

.guide-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.guide-points li {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface-tint);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 750;
}

.flow-card {
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
}

.flow-row {
  display: grid;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  grid-template-columns: 1fr auto 1fr auto 1fr;
}

.flow-step {
  min-height: 128px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.flow-step strong {
  display: block;
  margin-bottom: 7px;
}

.flow-step span {
  color: var(--muted);
  font-size: 0.84rem;
}

.flow-arrow {
  color: var(--orange);
  font-size: 1.5rem;
  font-weight: 900;
}

.site-footer {
  padding-top: 68px;
  background: #061e30;
  color: white;
}

.footer-grid {
  display: grid;
  gap: 48px;
  padding-bottom: 52px;
  grid-template-columns: 1.3fr repeat(3, 0.7fr);
}

.footer-brand .brand {
  margin-bottom: 18px;
  color: white;
}

.site-footer .brand-fit {
  color: var(--lime);
}

.footer-brand p {
  max-width: 360px;
  margin-bottom: 20px;
  color: #adc1cc;
  font-size: 0.9rem;
}

.footer-bridge-link {
  color: var(--lime);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer-column h2 {
  margin-bottom: 17px;
  color: #7e99a9;
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: #d7e3e9;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-block: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #8fa8b5;
  font-size: 0.76rem;
}

.footer-bottom p {
  max-width: 800px;
  margin: 0;
}

.footer-bottom span {
  flex: 0 0 auto;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .page-hero-grid,
  .bridge-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    max-width: 780px;
  }

  .hero-visual {
    max-width: 620px;
  }

  .page-scorecard {
    display: grid;
    max-width: 620px;
    align-items: center;
    gap: 10px 20px;
    grid-template-columns: auto 1fr;
  }

  .page-scorecard .score-label {
    margin: 0;
    grid-column: 1 / -1;
  }

  .page-scorecard strong {
    margin: 0;
  }

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

  .proof-item:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .proof-item:nth-child(4) {
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .steps,
  .tips-grid,
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps .step-card:last-child,
  .tips-grid .tip-card:last-child {
    grid-column: 1 / -1;
  }

  .resource-card:last-child {
    grid-column: 1 / -1;
  }

  .bridge-inner {
    max-width: 760px;
  }

  .training-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .training-list li {
    align-items: flex-start;
  }

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

  .footer-column:last-child {
    grid-column: 2 / -1;
  }

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

  .passage-panel,
  .audio-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .shell,
  .narrow-shell {
    width: min(100% - 28px, var(--shell));
  }

  .announcement {
    padding-inline: 14px;
    font-size: 0.76rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    z-index: 24;
    top: calc(var(--header-height) + 32px);
    right: 14px;
    left: 14px;
    display: grid;
    gap: 5px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    padding: 13px 14px;
  }

  .language-picker {
    margin: 5px 0 0;
    padding: 8px 14px 0;
  }

  .language-picker select {
    width: 100%;
  }

  .nav-menu .button {
    margin-top: 5px;
  }

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

  .display {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .page-title {
    font-size: clamp(2.35rem, 11vw, 3.8rem);
  }

  .section-heading {
    display: block;
  }

  .section-heading .text-link {
    margin-top: 18px;
  }

  .proof-grid,
  .steps,
  .test-choice-grid,
  .tips-grid,
  .resource-grid,
  .format-grid,
  .training-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .proof-item:last-child,
  .proof-item:nth-child(3),
  .proof-item:nth-child(4) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .steps .step-card:last-child,
  .tips-grid .tip-card:last-child,
  .resource-card:last-child,
  .footer-column:last-child {
    grid-column: auto;
  }

  .test-choice {
    min-height: 360px;
  }

  .test-choice .icon-badge {
    margin-bottom: 52px;
  }

  .bridge-inner {
    padding-inline: 26px;
  }

  .challenge-band {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .challenge-band .button {
    justify-self: start;
  }

  .guide-card {
    gap: 14px;
    grid-template-columns: 1fr;
  }

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

  .flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .footer-bottom {
    display: grid;
  }

  .dashboard-actions {
    grid-template-columns: 1fr;
  }

  .fitness-card {
    transform: none;
  }
}

@media (max-width: 520px) {
  .button-row,
  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .button,
  .result-actions .button {
    width: 100%;
  }

  .test-toolbar,
  .test-progress {
    padding-inline: 15px;
  }

  .test-brand span:last-child {
    display: none;
  }

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

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

  .answer-count {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .announcement,
  .site-header,
  .button,
  .site-footer,
  .test-shell {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    padding-block: 30px;
  }
}

/* Full practice library */

.practice-hero {
  position: relative;
  padding-block: clamp(64px, 9vw, 112px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.practice-hero::after {
  position: absolute;
  z-index: -1;
  right: -120px;
  bottom: -210px;
  width: 540px;
  height: 540px;
  border: 90px solid rgba(201, 240, 74, 0.32);
  border-radius: 50%;
  content: "";
}

.practice-hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.72fr);
}

.library-scorecard {
  padding: clamp(25px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-lg);
}

.library-scorecard > .score-label {
  display: block;
  margin-bottom: 25px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.library-scorecard-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 1fr;
}

.library-scorecard-grid div {
  min-height: 120px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.library-scorecard-grid div:nth-child(2n) {
  border-right: 0;
}

.library-scorecard-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.library-scorecard-grid strong {
  display: block;
  margin-bottom: 7px;
  font-size: 2rem;
  letter-spacing: -0.05em;
  line-height: 1;
}

.library-scorecard-grid span {
  color: var(--muted);
  font-size: 0.8rem;
}

.catalog-count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 99px;
  background: var(--surface-tint);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
}

.practice-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  width: fit-content;
}

.filter-button {
  padding: 10px 17px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 850;
  cursor: pointer;
}

.filter-button.is-active {
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow-sm);
}

.catalog-series + .catalog-series {
  margin-top: 68px;
  padding-top: 68px;
  border-top: 1px solid var(--line);
}

.catalog-series-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.catalog-series-header h3 {
  margin: 11px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.catalog-series-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.library-test-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.library-test-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  transition: border 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.library-test-card:hover {
  border-color: rgba(23, 107, 135, 0.5);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.library-test-card--listening {
  background: linear-gradient(145deg, #fff 60%, var(--orange-soft));
}

.library-test-card--reading {
  background: linear-gradient(145deg, #fff 60%, var(--blue-soft));
}

.library-test-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 38px;
}

.library-skill,
.library-test-number {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.library-skill {
  color: var(--blue);
}

.library-test-card--listening .library-skill {
  color: #a83f21;
}

.library-test-number {
  color: var(--muted);
}

.library-test-card h3 {
  margin-bottom: 12px;
  font-size: 1.42rem;
  letter-spacing: -0.03em;
}

.library-test-card > p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.library-test-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.library-test-facts li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 750;
}

.library-test-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.independence-panel {
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--line);
  border-left: 7px solid var(--lime-dark);
  border-radius: var(--radius-lg);
  background: white;
}

.independence-panel h2 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.045em;
}

.independence-panel p {
  max-width: 920px;
  color: var(--ink-soft);
}

.legal-copy > section {
  padding-block: 34px;
  border-bottom: 1px solid var(--line);
}

.legal-copy > section:first-child {
  padding-top: 0;
}

.legal-copy h2 {
  margin-bottom: 13px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.legal-copy p {
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.legal-copy p:last-child {
  margin-bottom: 0;
}

.legal-action {
  padding-top: 38px;
}

.footer-bottom--standalone {
  border-top: 0;
}

/* Full practice test runner */

.runner-page {
  background: #eef2ee;
}

.runner-disclaimer-bar {
  padding: 7px 18px;
  background: var(--ink);
  color: #d9e5eb;
  font-size: 0.75rem;
  font-weight: 750;
  text-align: center;
}

.runner-header {
  height: 62px;
  border-bottom: 1px solid var(--line);
  background: white;
}

.runner-header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.runner-exit {
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 850;
  text-underline-offset: 4px;
}

.practice-runner-root {
  min-height: calc(100vh - 95px);
}

.runner-loading {
  display: grid;
  min-height: calc(100vh - 95px);
  padding: 50px 24px;
  text-align: center;
  place-content: center;
}

.runner-loading h1 {
  margin-bottom: 15px;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.05em;
}

.runner-loading p {
  max-width: 600px;
  margin-inline: auto;
  color: var(--muted);
}

.runner-intro {
  padding-block: clamp(48px, 7vw, 82px);
}

.runner-intro-inner {
  width: min(900px, calc(100% - 32px));
  margin-inline: auto;
  padding: clamp(30px, 6vw, 66px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-lg);
}

.runner-intro h1 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 5vw, 4rem);
  letter-spacing: -0.055em;
}

.runner-intro-lede {
  max-width: 720px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.runner-fact-grid {
  display: grid;
  gap: 10px;
  margin-block: 30px;
  grid-template-columns: repeat(4, 1fr);
}

.runner-fact-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.runner-fact-grid strong,
.runner-fact-grid span {
  display: block;
}

.runner-fact-grid strong {
  margin-bottom: 4px;
  font-size: 1rem;
}

.runner-fact-grid span {
  color: var(--muted);
  font-size: 0.76rem;
}

.runner-audio-note,
.runner-legal-notice {
  margin-top: 22px;
  padding: 19px 21px;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.runner-legal-notice {
  border-left: 4px solid var(--lime-dark);
  background: var(--surface-tint);
}

.runner-legal-notice strong {
  color: var(--ink);
}

.runner-legal-notice p {
  margin: 5px 0 8px;
}

.runner-legal-notice a {
  color: var(--blue);
  font-weight: 850;
}

.runner-intro-actions {
  margin-top: 28px;
}

.runner-app {
  min-height: calc(100vh - 95px);
  background: #eef2ee;
}

.runner-toolbar {
  position: sticky;
  z-index: 18;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: var(--ink);
  color: white;
  box-shadow: 0 8px 22px rgba(10, 42, 67, 0.12);
}

.runner-toolbar > div:first-child span,
.runner-toolbar > div:first-child strong {
  display: block;
}

.runner-toolbar > div:first-child span {
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.runner-toolbar > div:first-child strong {
  margin-top: 3px;
  font-size: 1rem;
}

.runner-toolbar-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.82rem;
}

.runner-timer {
  min-width: 86px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  text-align: center;
}

.runner-timer small,
.runner-timer strong {
  display: block;
}

.runner-timer small {
  color: #a9bec9;
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.runner-timer strong {
  color: var(--lime);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.runner-section-tabs {
  position: sticky;
  z-index: 16;
  top: 76px;
  display: flex;
  gap: 8px;
  padding: 10px 24px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.runner-section-tab {
  display: flex;
  min-width: 120px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink-soft);
  font-weight: 850;
  cursor: pointer;
}

.runner-section-tab small {
  color: var(--muted);
  font-size: 0.7rem;
}

.runner-section-tab.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.runner-app-layout {
  display: grid;
  align-items: start;
  grid-template-columns: 216px minmax(0, 1fr);
}

.runner-question-nav {
  position: sticky;
  top: 141px;
  min-height: calc(100vh - 141px);
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: white;
}

.runner-question-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

.runner-question-nav-head span {
  color: var(--muted);
  font-size: 0.75rem;
}

.runner-question-nav-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, 1fr);
}

.question-nav-button {
  display: grid;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 850;
  cursor: pointer;
  place-items: center;
}

.question-nav-button.is-current-section {
  border-color: var(--blue);
}

.question-nav-button.is-answered {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.question-nav-button.is-correct {
  border-color: var(--success);
  background: var(--success);
  color: white;
}

.question-nav-button.is-incorrect {
  border-color: var(--danger);
  background: var(--orange-soft);
  color: var(--danger);
}

.runner-nav-key {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.67rem;
}

.runner-nav-key span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.runner-nav-key i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: white;
}

.runner-nav-key i.is-answered {
  border-color: var(--blue);
  background: var(--blue);
}

.runner-nav-key i.is-correct {
  border-color: var(--success);
  background: var(--success);
}

.runner-nav-key i.is-incorrect {
  border-color: var(--danger);
  background: var(--orange-soft);
}

.runner-section {
  min-width: 0;
}

.runner-section > div {
  display: grid;
  min-height: calc(100vh - 141px);
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
}

.runner-material {
  min-width: 0;
  padding: clamp(26px, 4vw, 48px);
  border-right: 1px solid var(--line);
  background: #f8f9f5;
}

.runner-passage,
.runner-audio-panel {
  max-width: 780px;
  margin-inline: auto;
}

.runner-passage h2,
.runner-audio-panel h2 {
  margin-bottom: 24px;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  letter-spacing: -0.04em;
}

.runner-passage p {
  color: #243f52;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.82;
}

.runner-audio-panel > p {
  color: var(--muted);
}

.runner-audio-player {
  margin-top: 25px;
  text-align: center;
}

.transcript-mode-button {
  display: block;
  margin: 18px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.runner-transcript {
  margin-top: 20px;
  padding: 20px;
  border-left: 4px solid var(--orange);
  background: white;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.runner-transcript p {
  margin: 8px 0 0;
}

.runner-question-column {
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
  background: white;
}

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

.runner-question-header span {
  font-weight: 900;
}

.runner-question-header small {
  color: var(--muted);
}

.runner-question {
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  scroll-margin-top: 170px;
}

.runner-question legend {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 16px;
  padding: 0;
  font-weight: 800;
  line-height: 1.5;
}

.runner-question legend > span {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 0.76rem;
  place-items: center;
}

.runner-options {
  display: grid;
  gap: 8px;
}

.runner-option {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-soft);
  cursor: pointer;
  grid-template-columns: auto auto 1fr;
}

.runner-option:hover,
.runner-option:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.runner-option.is-answer {
  border-color: var(--success);
  background: #e9f7f1;
}

.runner-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--blue);
}

.runner-option-letter {
  display: grid;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.73rem;
  font-weight: 900;
  place-items: center;
}

.runner-text-answer input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #b9c7c0;
  border-radius: 9px;
  background: white;
  color: var(--ink);
}

.runner-question.is-correct {
  border-color: rgba(20, 128, 94, 0.5);
}

.runner-question.is-incorrect {
  border-color: rgba(185, 68, 44, 0.55);
}

.answer-review {
  margin-top: 15px;
  padding: 13px 15px;
  border-radius: 9px;
  background: var(--surface-tint);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.runner-question.is-incorrect .answer-review {
  background: var(--orange-soft);
}

.answer-review strong {
  color: var(--ink);
}

.answer-review p {
  margin: 4px 0 0;
}

.runner-results {
  min-height: calc(100vh - 95px);
  padding-block: clamp(48px, 8vw, 90px);
}

.runner-results-inner {
  width: min(850px, calc(100% - 32px));
  margin-inline: auto;
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-lg);
}

.runner-results h1 {
  margin-bottom: 32px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  letter-spacing: -0.05em;
}

.runner-score-row {
  display: grid;
  align-items: center;
  gap: 28px;
  grid-template-columns: auto 1fr;
}

.runner-result-score {
  border-color: var(--lime);
  line-height: 1;
}

.runner-result-score span,
.runner-result-score small {
  display: block;
}

.runner-result-score small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.runner-score-row h2 {
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  letter-spacing: -0.035em;
}

.runner-score-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-score-table {
  width: 100%;
  margin-block: 36px;
  border-collapse: collapse;
}

.section-score-table caption {
  margin-bottom: 10px;
  font-weight: 900;
  text-align: left;
}

.section-score-table th,
.section-score-table td {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.section-score-table th {
  font-weight: 750;
  text-align: left;
}

.section-score-table td {
  font-weight: 900;
  text-align: right;
}

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

.runner-result-notice {
  margin-top: 32px;
}

@media (max-width: 1100px) {
  .practice-hero-grid {
    grid-template-columns: 1fr;
  }

  .library-scorecard {
    max-width: 650px;
  }

  .runner-app-layout {
    grid-template-columns: 1fr;
  }

  .runner-question-nav {
    position: static;
    min-height: auto;
    padding: 14px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .runner-question-nav-grid {
    grid-template-columns: repeat(10, minmax(30px, 1fr));
  }

  .question-nav-button {
    aspect-ratio: auto;
    min-height: 34px;
  }

  .runner-section > div {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .library-test-grid {
    grid-template-columns: 1fr;
  }

  .runner-fact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .runner-toolbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .runner-toolbar-stats {
    width: 100%;
    justify-content: space-between;
  }

  .runner-section-tabs {
    top: 0;
  }

  .runner-section > div {
    grid-template-columns: 1fr;
  }

  .runner-material {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .catalog-series-header,
  .runner-score-row {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .catalog-series-header {
    display: block;
  }

  .catalog-series-header p {
    margin-top: 9px;
  }

  .library-scorecard-grid {
    grid-template-columns: 1fr;
  }

  .library-scorecard-grid div,
  .library-scorecard-grid div:nth-child(2n),
  .library-scorecard-grid div:nth-last-child(-n + 2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .library-scorecard-grid div:last-child {
    border-bottom: 0;
  }

  .runner-disclaimer-bar {
    font-size: 0.66rem;
  }

  .runner-header-inner {
    width: calc(100% - 24px);
  }

  .runner-header .brand {
    font-size: 1.25rem;
  }

  .runner-fact-grid {
    grid-template-columns: 1fr;
  }

  .runner-toolbar-stats {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .runner-toolbar-stats .button {
    width: 100%;
  }

  .runner-question-nav-grid {
    grid-template-columns: repeat(8, minmax(28px, 1fr));
  }

  .runner-section-tabs {
    padding-inline: 12px;
  }

  .runner-question-column,
  .runner-material {
    padding-inline: 15px;
  }

  .runner-question {
    padding: 17px;
  }

  .runner-result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .runner-result-actions .button {
    width: 100%;
  }
}

/* Premium test experience · v2 */

.runner-document {
  scroll-behavior: auto;
}

.runner-page {
  min-width: 320px;
  overflow-anchor: none;
  background:
    radial-gradient(circle at 14% 0%, rgba(201, 240, 74, 0.12), transparent 30%),
    linear-gradient(180deg, #f4f7f3 0%, #eaf0ec 100%);
}

.runner-header {
  position: relative;
  z-index: 25;
  height: 72px;
  border-bottom: 1px solid rgba(10, 42, 67, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(10, 42, 67, 0.06);
  backdrop-filter: blur(16px);
}

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

.runner-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.runner-header-badge::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime-dark);
  box-shadow: 0 0 0 5px rgba(151, 190, 30, 0.13);
  content: "";
}

.runner-exit {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.runner-exit:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.practice-runner-root {
  min-height: calc(100vh - 72px);
}

.runner-intro {
  position: relative;
  padding-block: clamp(32px, 5vw, 68px);
}

.runner-intro::before {
  position: absolute;
  top: 8%;
  right: 4%;
  width: 320px;
  height: 320px;
  border: 64px solid rgba(13, 111, 142, 0.06);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.runner-intro-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.runner-intro-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(10, 42, 67, 0.12);
  border-radius: 28px;
  background: white;
  box-shadow: 0 30px 80px rgba(10, 42, 67, 0.16);
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
}

.runner-intro-main {
  position: relative;
  padding: clamp(38px, 6vw, 74px);
}

.runner-intro-main::after {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 74px;
  height: 74px;
  border: 2px solid rgba(13, 111, 142, 0.08);
  border-radius: 20px;
  content: "";
  transform: rotate(12deg);
}

.runner-intro .breadcrumb {
  margin-bottom: clamp(34px, 5vw, 62px);
}

.runner-intro h1 {
  max-width: 720px;
  margin: 14px 0 22px;
  font-size: clamp(2.7rem, 5.4vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.runner-intro-lede {
  max-width: 690px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.7;
}

.runner-practice-note {
  display: flex;
  max-width: 650px;
  align-items: flex-start;
  gap: 12px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.runner-practice-note svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--blue);
}

.runner-practice-note p {
  margin: 0;
}

.runner-practice-note strong {
  color: var(--ink);
}

.runner-practice-note a,
.runner-score-note a {
  color: var(--blue);
  font-weight: 850;
  text-underline-offset: 3px;
}

.runner-start-panel {
  position: relative;
  display: flex;
  padding: clamp(34px, 4vw, 54px);
  overflow: hidden;
  flex-direction: column;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 240, 74, 0.22), transparent 34%),
    var(--ink);
  color: white;
}

.runner-start-panel::after {
  position: absolute;
  right: -90px;
  bottom: -100px;
  width: 250px;
  height: 250px;
  border: 50px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  content: "";
}

.runner-start-panel > * {
  position: relative;
  z-index: 1;
}

.runner-start-panel-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.runner-test-mark {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 17px;
  background: var(--lime);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 950;
  box-shadow: 0 9px 0 rgba(0, 0, 0, 0.2);
  place-items: center;
}

.runner-start-panel-top small,
.runner-start-panel-top strong {
  display: block;
}

.runner-start-panel-top small {
  margin-bottom: 3px;
  color: #9eb5c1;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.runner-start-panel-top strong {
  font-size: 1.12rem;
}

.runner-start-panel .runner-fact-grid {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  grid-template-columns: 1fr 1fr;
}

.runner-start-panel .runner-fact-grid div {
  min-height: 92px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.065);
}

.runner-start-panel .runner-fact-grid strong {
  color: white;
  font-size: 1.05rem;
}

.runner-start-panel .runner-fact-grid span {
  color: #9eb5c1;
  font-size: 0.72rem;
}

.runner-start-panel .runner-audio-note,
.runner-resume-note {
  display: grid;
  gap: 3px;
  margin: 0 0 20px;
  padding: 15px 17px;
  border: 1px solid rgba(201, 240, 74, 0.25);
  border-radius: 12px;
  background: rgba(201, 240, 74, 0.08);
  color: #cfe0e7;
  font-size: 0.78rem;
}

.runner-start-panel .runner-audio-note strong,
.runner-resume-note strong {
  color: var(--lime);
}

.runner-intro-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.runner-intro-actions .button {
  width: 100%;
}

.runner-start-panel .button--ghost {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.runner-reset-link {
  justify-self: center;
  padding: 7px;
  border: 0;
  background: transparent;
  color: #9eb5c1;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.runner-toolbar {
  min-height: 82px;
  padding: 12px clamp(18px, 2.5vw, 34px);
  background:
    linear-gradient(100deg, rgba(13, 111, 142, 0.2), transparent 38%),
    var(--ink);
}

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

.runner-toolbar-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runner-toolbar-stats {
  gap: 14px;
}

.runner-progress-compact {
  width: 190px;
}

.runner-progress-compact > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: #b8cbd4;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.runner-progress-compact b {
  color: white;
  font-size: 0.88rem;
}

.runner-progress-track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
}

.runner-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime-dark), var(--lime));
  transition: width 180ms ease;
}

.runner-section-tabs {
  gap: 10px;
  padding: 11px clamp(18px, 2.5vw, 34px);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(10, 42, 67, 0.04);
}

.runner-section-tab {
  min-width: 148px;
  padding: 10px 14px;
  border-radius: 11px;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.runner-section-tab:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.runner-section-tab.is-active {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--blue-soft), #f3fbfd);
  box-shadow: inset 0 -3px 0 var(--blue);
}

.runner-question-nav {
  background: #fbfcfb;
}

.runner-question-nav-head {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.question-nav-button {
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.question-nav-button:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.runner-material,
.runner-question-column {
  scrollbar-color: #b6c5bd transparent;
  scrollbar-width: thin;
}

.runner-material {
  background:
    linear-gradient(90deg, rgba(13, 111, 142, 0.025) 1px, transparent 1px),
    #f9faf7;
  background-size: 28px 28px;
}

.runner-passage h2,
.runner-audio-panel h2 {
  max-width: 720px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.runner-passage p {
  max-width: 760px;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.9;
}

.runner-question-column {
  background: #f5f7f5;
}

.runner-question-header {
  position: sticky;
  z-index: 4;
  top: -1px;
  margin: -8px -8px 24px;
  padding: 15px 8px 18px;
  background: rgba(245, 247, 245, 0.96);
  backdrop-filter: blur(12px);
}

.runner-question {
  margin-bottom: 14px;
  padding: 22px;
  border-color: #dce4df;
  background: white;
  box-shadow: 0 5px 16px rgba(10, 42, 67, 0.045);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.runner-question:focus-within {
  border-color: rgba(13, 111, 142, 0.55);
  box-shadow: 0 8px 24px rgba(13, 111, 142, 0.1);
}

.runner-option {
  background: #fbfcfb;
}

.runner-results {
  background:
    radial-gradient(circle at 85% 5%, rgba(201, 240, 74, 0.15), transparent 26%),
    linear-gradient(180deg, #f4f7f3, #eaf0ec);
}

.runner-results-inner {
  width: min(980px, calc(100% - 36px));
  border-radius: 26px;
}

.runner-premium-card {
  display: grid;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
  padding: clamp(26px, 4vw, 40px);
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 240, 74, 0.2), transparent 35%),
    var(--ink);
  color: white;
  grid-template-columns: minmax(0, 1fr) auto;
}

.runner-premium-card h2 {
  margin: 8px 0 10px;
  color: white;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

.runner-premium-card p {
  max-width: 650px;
  margin: 0;
  color: #bfd0d8;
}

.runner-premium-card .button {
  white-space: nowrap;
}

.runner-score-note {
  margin-top: 20px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.8rem;
}

.runner-score-note strong {
  color: var(--ink);
}

@media (min-width: 1101px) {
  .runner-app {
    display: grid;
    height: calc(100vh - 72px);
    min-height: 620px;
    overflow: hidden;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .runner-toolbar,
  .runner-section-tabs {
    position: relative;
    top: auto;
  }

  .runner-app-layout {
    min-height: 0;
    overflow: hidden;
    grid-template-columns: 196px minmax(0, 1fr);
  }

  .runner-question-nav {
    position: relative;
    top: auto;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
  }

  .runner-section,
  .runner-section > div {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .runner-section > div {
    grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
  }

  .runner-material,
  .runner-question-column {
    height: 100%;
    overflow-y: auto;
  }
}

@media (max-width: 900px) {
  .runner-intro-card {
    grid-template-columns: 1fr;
  }

  .runner-intro-main::after {
    display: none;
  }

  .runner-intro .breadcrumb {
    margin-bottom: 34px;
  }

  .runner-start-panel .runner-fact-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .runner-start-panel .runner-fact-grid div {
    min-height: 82px;
  }

  .runner-premium-card {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .runner-premium-card .button {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .runner-header {
    height: 64px;
  }

  .runner-header-actions {
    gap: 8px;
  }

  .runner-header-badge {
    display: none;
  }

  .runner-exit {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 0.76rem;
  }

  .practice-runner-root {
    min-height: calc(100vh - 64px);
  }

  .runner-intro-shell,
  .runner-results-inner {
    width: calc(100% - 22px);
  }

  .runner-intro-card,
  .runner-results-inner {
    border-radius: 20px;
  }

  .runner-intro-main,
  .runner-start-panel {
    padding: 28px 22px;
  }

  .runner-intro h1 {
    font-size: clamp(2.35rem, 13vw, 3.6rem);
  }

  .runner-start-panel .runner-fact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .runner-toolbar {
    gap: 14px;
    padding: 15px;
  }

  .runner-toolbar-title strong {
    white-space: normal;
  }

  .runner-progress-compact {
    width: 100%;
  }

  .runner-question-nav {
    padding: 10px 12px;
    overflow-x: auto;
  }

  .runner-question-nav-head,
  .runner-nav-key {
    display: none;
  }

  .runner-question-nav-grid {
    display: flex;
    width: max-content;
    gap: 6px;
  }

  .question-nav-button {
    width: 36px;
    min-height: 36px;
    flex: 0 0 auto;
  }

  .runner-material {
    max-height: 56vh;
    overflow-y: auto;
  }

  .runner-premium-card .button {
    width: 100%;
    white-space: normal;
  }
}

/* Edition companion pages */

.edition-hero,
.edition-detail-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(62px, 9vw, 116px);
  background:
    radial-gradient(circle at 83% 12%, rgba(201, 240, 74, 0.2), transparent 28%),
    linear-gradient(135deg, #f7f9f4, #e9f2ee);
}

.edition-hero::after,
.edition-detail-hero::after {
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 410px;
  height: 410px;
  border: 78px solid rgba(13, 111, 142, 0.065);
  border-radius: 50%;
  content: "";
}

.edition-hero-grid,
.edition-detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
}

.edition-hero .page-title,
.edition-detail-hero .page-title {
  max-width: 850px;
  margin-bottom: 24px;
}

.edition-stack {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(10, 42, 67, 0.11);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.edition-stack a {
  display: grid;
  min-height: 132px;
  align-items: center;
  gap: 2px 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  grid-template-columns: auto 1fr;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.edition-stack a:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
  transform: translateX(-4px);
}

.edition-stack span,
.edition-stack small {
  grid-column: 2;
}

.edition-stack span {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edition-stack strong {
  display: grid;
  width: 72px;
  height: 72px;
  border-radius: 19px;
  background: var(--ink);
  color: var(--lime);
  font-size: 2rem;
  grid-row: 1 / 4;
  place-items: center;
}

.edition-stack small {
  color: var(--blue);
  font-weight: 850;
}

.edition-card-grid,
.edition-mini-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.edition-card {
  position: relative;
  min-height: 390px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.edition-card::after {
  position: absolute;
  right: -58px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border: 35px solid rgba(13, 111, 142, 0.055);
  border-radius: 50%;
  content: "";
}

.edition-number {
  display: block;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: 4.7rem;
  font-weight: 950;
  line-height: 0.85;
  letter-spacing: -0.08em;
}

.edition-card h3 {
  margin: 15px 0 12px;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.edition-card p {
  margin-bottom: 23px;
  color: var(--muted);
}

.edition-mini-grid a {
  display: grid;
  min-height: 175px;
  align-content: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, transform 160ms ease;
}

.edition-mini-grid a:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.edition-mini-grid strong {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 2.8rem;
  letter-spacing: -0.06em;
}

.edition-mini-grid span {
  margin-bottom: 4px;
  font-weight: 900;
}

.edition-mini-grid small {
  color: var(--muted);
}

.edition-detail-hero--21 {
  background: radial-gradient(circle at 82% 8%, rgba(201, 240, 74, 0.26), transparent 31%), linear-gradient(135deg, #f6f8f1, #e6f1eb);
}

.edition-detail-hero--20 {
  background: radial-gradient(circle at 82% 8%, rgba(255, 107, 61, 0.17), transparent 30%), linear-gradient(135deg, #f8f8f2, #e9f1ee);
}

.edition-detail-hero--19 {
  background: radial-gradient(circle at 82% 8%, rgba(13, 111, 142, 0.18), transparent 30%), linear-gradient(135deg, #f7f8f3, #e7f0ef);
}

.edition-hero-card {
  padding: clamp(34px, 5vw, 56px);
  border-radius: 25px;
  background: var(--ink);
  color: white;
  box-shadow: 0 24px 60px rgba(10, 42, 67, 0.22);
}

.edition-hero-card > span {
  color: #9eb7c3;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.edition-hero-card > strong {
  display: block;
  margin-block: 12px 0;
  color: var(--lime);
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.09em;
}

.edition-hero-card > p {
  margin-bottom: 25px;
  color: white;
  font-size: 1.2rem;
  font-weight: 850;
}

.edition-hero-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #c7d6dd;
  list-style: none;
}

.edition-hero-card li::before {
  margin-right: 9px;
  color: var(--lime);
  content: "✓";
}

.edition-test-columns,
.edition-content-grid {
  display: grid;
  align-items: start;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
}

.edition-test-panel {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--paper);
}

.edition-test-panel h3 {
  margin: 15px 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
}

.edition-test-panel > p {
  color: var(--muted);
}

.edition-test-list {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.edition-test-list a {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease;
}

.edition-test-list a:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.edition-test-list small {
  color: var(--blue);
}

.edition-content-grid {
  gap: clamp(38px, 7vw, 84px);
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.edition-content-grid p {
  color: var(--ink-soft);
}

.edition-boundary-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: 17px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.edition-boundary-card strong {
  display: block;
  margin-bottom: 11px;
  font-size: 1.15rem;
}

.edition-boundary-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.edition-boundary-card a,
.library-companion-link {
  color: var(--blue);
  font-weight: 850;
  text-underline-offset: 3px;
}

.library-companion-link {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  font-size: 0.76rem;
}

.runner-companion-chip {
  display: table;
  margin: 14px 0 0;
  padding: 7px 10px;
  border: 1px solid rgba(13, 111, 142, 0.18);
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 850;
  text-decoration: none;
}

/* Computer-delivered practice workspace · v3 */

body.runner-active {
  height: 100vh;
  overflow: hidden;
  background: white;
}

.runner-active .runner-header {
  display: none;
}

.runner-active .practice-runner-root {
  height: 100vh;
  min-height: 0;
}

.exam-runner-app {
  display: grid;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: white;
  grid-template-rows: 58px minmax(0, 1fr) 58px;
}

.exam-runner-app--listening {
  grid-template-rows: 58px 52px minmax(0, 1fr) 58px;
}

/* Sticky listening audiobar — lives outside section re-renders so playback continues across parts. */
.exam-audiobar {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 16px;
  padding: 6px 22px;
  border-bottom: 1px solid #dfe3e8;
  background: #f4f6f9;
  z-index: 30;
}

.exam-audiobar-part {
  flex-shrink: 0;
  color: #172033;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.exam-audio-player {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.exam-audio-player audio {
  display: none;
}

.exam-audio-play {
  flex-shrink: 0;
  min-height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: #1c2638;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.exam-audio-play:hover:not(:disabled) {
  background: #2a3548;
}

.exam-audio-play:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.exam-audio-player.is-playing .exam-audio-play {
  background: #e52420;
}

.exam-audio-progress {
  display: flex;
  min-width: 140px;
  flex: 1 1 180px;
  max-width: 420px;
  align-items: center;
  gap: 10px;
}

.exam-audio-bar {
  position: relative;
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #d5dae1;
}

.exam-audio-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #1c2638;
  transition: width 0.15s linear;
}

.exam-audio-player.is-playing .exam-audio-fill {
  background: #e52420;
}

.exam-audio-time {
  flex-shrink: 0;
  color: #5c6573;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.exam-audio-volume {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  color: #5c6573;
  font-size: 0.78rem;
}

.exam-audio-volume input[type="range"] {
  width: 88px;
  accent-color: #1c2638;
}

.exam-audio-status {
  flex: 1 1 100%;
  margin: 0;
  color: #66707e;
  font-size: 0.72rem;
  line-height: 1.35;
}

.runner-section-grid--listening {
  display: block !important;
  height: 100%;
  overflow: auto;
  background: #fff;
}

.runner-question-column--listening {
  width: min(920px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: 28px 28px 64px;
}

.runner-question-column--listening .instructions-banner,
.runner-section-grid--listening .exam-question-instructions {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-left: 3px solid #e52420;
  background: #f7f7f7;
  color: #172033;
  font-size: 0.92rem;
  font-weight: 750;
}

.runner-map-layout,
.runner-flowchart-layout {
  margin: 12px 0 20px;
}

.runner-map-figure {
  margin: 0 0 16px;
  padding: 10px;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.runner-map-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(70vh, 640px);
  margin: 0 auto;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.runner-map-figure figcaption {
  margin-top: 8px;
  color: #5c6573;
  font-size: 0.82rem;
  font-weight: 700;
}

.runner-map-legend {
  margin: 0 0 12px;
  font-size: 0.8rem;
}

.runner-map-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.runner-flowchart-box {
  margin-bottom: 16px;
}

.runner-flowchart-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.runner-flowchart-steps li {
  position: relative;
  padding: 14px 16px;
  border: 1px solid #d9dde2;
  border-radius: 10px;
  background: #fafbfc;
}

.runner-flowchart-steps li + li::before {
  content: "↓";
  position: absolute;
  top: -18px;
  left: 50%;
  color: #8a929d;
  font-size: 1rem;
  font-weight: 700;
  transform: translateX(-50%);
}

.runner-flowchart-steps strong {
  display: block;
  margin-bottom: 8px;
  color: #172033;
  font-size: 0.88rem;
}

.exam-toolbar.runner-toolbar {
  position: relative;
  z-index: 35;
  top: auto;
  min-height: 58px;
  padding: 7px 18px;
  border-bottom: 1px solid #dfe3e8;
  background: #f7f8fa;
  color: #172033;
  box-shadow: none;
}

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

.exam-identity strong,
.exam-identity small {
  display: block;
}

.exam-identity strong {
  font-size: 0.94rem;
}

.exam-identity small {
  margin-top: 1px;
  overflow: hidden;
  color: #6f7886;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exam-mode-badge {
  display: inline-block;
  margin-left: 2px;
  padding: 1px 7px 2px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  vertical-align: 1px;
  white-space: nowrap;
}

.exam-mode-badge--exam {
  background: #e8f5ef;
  color: #0d6b45;
  border: 1px solid #b7e0cb;
}

.exam-mode-badge--practice {
  background: #eef3f8;
  color: #3a4d63;
  border: 1px solid #d0dae6;
}

.exam-mode-badge--review {
  background: #fff4e5;
  color: #8a4b00;
  border: 1px solid #f0d2a0;
}

.exam-app-icon {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 7px 6px;
  border-radius: 8px;
  background: #e52420;
}

.exam-app-icon i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: white;
}

.exam-app-icon i:nth-child(1) { height: 7px; }
.exam-app-icon i:nth-child(2) { height: 12px; }
.exam-app-icon i:nth-child(3) { height: 16px; }

.exam-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.exam-save-status {
  margin-right: 5px;
  color: #158040;
  font-size: 0.72rem;
  font-weight: 850;
}

.exam-timer,
.exam-tool-button,
.exam-submit-button {
  min-height: 38px;
  border: 1px solid #dde2e7;
  border-radius: 8px;
  background: white;
  color: #1c2638;
}

.exam-timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
}

.exam-timer strong {
  min-width: 48px;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.exam-timer small {
  color: #77808e;
  font-size: 0.68rem;
}

.exam-tool-button,
.exam-submit-button {
  padding: 7px 13px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.exam-tool-button:hover {
  border-color: #aab2bd;
  background: #fbfcfd;
}

.exam-tool-button [data-note-count] {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 3px;
  border-radius: 9px;
  background: #eef1f4;
  font-size: 0.65rem;
  place-items: center;
}

.exam-submit-button {
  min-width: 88px;
  border-color: #e52420;
  background: #e52420;
  color: white;
  font-size: 0.84rem;
}

.exam-review-score {
  color: #536071;
  font-size: 0.8rem;
}

.runner-workspace,
.runner-workspace .runner-section,
.runner-section-grid {
  min-height: 0;
  overflow: hidden;
}

.runner-workspace .runner-section,
.runner-section-grid {
  height: 100%;
}

.runner-workspace .runner-section > .runner-section-grid {
  display: grid;
  grid-template-columns: minmax(340px, var(--passage-width, 52%)) 8px minmax(420px, 1fr);
}

.runner-pane-divider {
  position: relative;
  z-index: 5;
  width: 8px;
  padding: 0;
  border: 0;
  border-right: 1px solid #d9dde2;
  border-left: 1px solid #d9dde2;
  background: #eef0f3;
  cursor: col-resize;
  touch-action: none;
}

.runner-pane-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 42px;
  border-radius: 4px;
  background: #aeb5be;
  transform: translate(-50%, -50%);
}

.runner-pane-divider:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

.exam-runner-app .runner-material,
.exam-runner-app .runner-question-column {
  height: 100%;
  padding: 22px 24px 46px;
  overflow-y: auto;
  background: white;
  scrollbar-color: #aeb5bd #f3f4f6;
  scrollbar-width: thin;
}

.exam-runner-app .runner-question-column {
  padding: 36px 30px 52px;
}

.exam-runner-app .runner-passage,
.exam-runner-app .runner-audio-panel {
  max-width: none;
}

.exam-selection-hint {
  margin: 0 0 15px !important;
  color: #8a929d !important;
  font-family: inherit !important;
  font-size: 0.72rem !important;
  line-height: 1.4 !important;
}

.runner-passage-instruction {
  margin-bottom: 16px !important;
  color: #1c2638 !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
}

.exam-runner-app .runner-passage h2,
.exam-runner-app .runner-audio-panel h2 {
  margin-bottom: 17px;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
}

.exam-runner-app .runner-passage-subtitle {
  margin: -7px 0 18px;
  padding-left: 14px;
  border-left: 3px solid var(--lime);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.5;
}

.exam-runner-app .runner-passage--reference .runner-passage-subtitle {
  margin: -3px 0 13px;
  padding: 0;
  border: 0;
  color: #202735;
  font-size: 0.94rem;
  font-style: normal;
  line-height: 1.55;
}

.exam-runner-app .runner-passage p[data-passage-paragraph] {
  max-width: none;
  color: #172033;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.94rem;
  line-height: 1.55;
}

.runner-passage-notes {
  display: grid;
  gap: 5px;
  margin: 22px 0 0;
  padding: 15px 18px 15px 34px;
  border-radius: 8px;
  background: #f5f8f8;
  color: #516071;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  line-height: 1.45;
}

.runner-passage--reference .runner-passage-notes {
  gap: 3px;
  margin-top: 18px;
  padding: 12px 0 0;
  border-top: 1px solid #dfe5e8;
  border-radius: 0;
  background: transparent;
  list-style: none;
}

body[data-runner-font="small"] .exam-runner-app .runner-passage p[data-passage-paragraph],
body[data-runner-font="small"] .exam-runner-app .runner-question { font-size: 0.86rem; }
body[data-runner-font="large"] .exam-runner-app .runner-passage p[data-passage-paragraph],
body[data-runner-font="large"] .exam-runner-app .runner-question { font-size: 1.08rem; }

body[data-runner-theme="warm"] .exam-runner-app .runner-material,
body[data-runner-theme="warm"] .exam-runner-app .runner-question-column { background: #fff9e8; }
body[data-runner-theme="contrast"] .exam-runner-app .runner-material,
body[data-runner-theme="contrast"] .exam-runner-app .runner-question-column { background: #101820; color: white; }
body[data-runner-theme="contrast"] .exam-runner-app .runner-passage p,
body[data-runner-theme="contrast"] .exam-runner-app .runner-question,
body[data-runner-theme="contrast"] .exam-runner-app .runner-option { color: white; background: #101820; }

.passage-highlight {
  padding: 1px 0;
  border-radius: 2px;
  background: #fff089;
  color: inherit;
  cursor: pointer;
}

.passage-highlight.has-note {
  border-bottom: 2px solid #f29a2e;
  background: #ffe3a5;
}

.exam-question-instructions {
  margin-bottom: 17px;
  padding: 13px 15px;
  border-left: 3px solid #e52420;
  border-radius: 0 7px 7px 0;
  background: #f7f7f8;
  color: #242c39;
  font-size: 0.82rem;
}

.exam-runner-app .runner-question-header {
  position: static;
  margin: 0 0 14px;
  padding: 0 0 10px;
  background: transparent;
  backdrop-filter: none;
}

.runner-question-group + .runner-question-group {
  margin-top: 32px;
}

.runner-question-group-intro {
  margin: 0 0 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.runner-question-group-intro > strong {
  display: block;
  padding: 12px 14px;
  border-left: 3px solid var(--orange);
  border-radius: 0 7px 7px 0;
  background: #f5f7f8;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.35;
}

.runner-question-group-copy {
  padding: 11px 0 4px;
}

.runner-question-group-intro p {
  margin: 0 0 7px;
  color: #28384b;
  font-size: 0.88rem;
  line-height: 1.55;
}

.runner-question-group-intro h3 {
  margin: 16px 0 3px;
  color: var(--ink);
  font-size: 0.98rem;
}

.runner-question-reference-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 14px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: #334b5f;
  font-size: 0.78rem;
}

body[data-runner-theme="contrast"] .runner-question-group-intro {
  background: transparent;
}

body[data-runner-theme="contrast"] .runner-question-group-intro > strong {
  background: #182631;
}

body[data-runner-theme="contrast"] .runner-question-group-intro > strong,
body[data-runner-theme="contrast"] .runner-question-group-intro h3,
body[data-runner-theme="contrast"] .runner-question-group-intro p,
body[data-runner-theme="contrast"] .runner-question-reference-list {
  color: white;
}

.runner-notes-layout,
.runner-summary-layout,
.runner-table-layout {
  color: #202b3a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.91rem;
}

.runner-table-layout {
  padding: 2px 5px 10px;
  overflow-x: auto;
}

.runner-completion-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  table-layout: fixed;
}

.runner-completion-table th,
.runner-completion-table td {
  border: 1px solid #c9d4e3;
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
  line-height: 1.7;
  word-break: break-word;
}

.runner-completion-table th {
  background: #eef3f9;
  color: #17283b;
  font-size: 0.84rem;
}

.runner-soundcheck {
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #d7e0ec;
  border-radius: 14px;
  background: #f7fafc;
}

.runner-soundcheck h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.runner-soundcheck .muted {
  margin: 0 0 0.75rem;
  color: #4b5d73;
  font-size: 0.92rem;
  line-height: 1.5;
}

.runner-soundcheck-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.runner-audio-progress {
  display: grid;
  gap: 0.35rem;
  margin: 0.65rem 0;
  color: #4b5d73;
  font-size: 0.85rem;
}

.runner-audio-progress progress {
  width: 100%;
  height: 0.55rem;
}

.runner-notes-layout {
  padding: 1px 5px 8px;
}

.runner-notes-block + .runner-notes-block {
  margin-top: 15px;
}

.runner-notes-block h4 {
  margin: 0 0 5px;
  color: #17283b;
  font-size: 0.94rem;
  line-height: 1.35;
}

.runner-notes-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding-left: 22px;
}

.runner-notes-list li {
  min-width: 0;
  padding-left: 1px;
  line-height: 2.35;
}

.runner-summary-layout {
  padding: 2px 5px 8px;
}

.runner-summary-layout p {
  margin: 0 0 13px;
  line-height: 2.45;
}

.runner-inline-answer {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  margin: 2px 5px;
  scroll-margin: 110px;
  vertical-align: middle;
  white-space: nowrap;
}

.runner-inline-number {
  display: inline-grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 5px;
  background: #202b3d;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

.runner-inline-answer input,
.runner-inline-answer select {
  width: 150px;
  height: 34px;
  min-width: 0;
  padding: 4px 9px;
  border: 1px solid #aeb9c5;
  border-radius: 5px;
  outline: 0;
  background: white;
  color: #17283b;
  font: inherit;
  line-height: 1.2;
}

.runner-inline-answer select {
  width: 86px;
  cursor: pointer;
}

.runner-inline-answer:focus-within input,
.runner-inline-answer:focus-within select {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.16);
}

.runner-inline-answer.is-answered .runner-inline-number {
  background: var(--blue);
}

.runner-inline-answer.is-active-question .runner-inline-number {
  background: var(--orange);
}

body[data-runner-theme="contrast"] .runner-notes-layout,
body[data-runner-theme="contrast"] .runner-summary-layout,
body[data-runner-theme="contrast"] .runner-notes-block h4 {
  color: white;
}

body[data-runner-theme="contrast"] .runner-inline-answer input,
body[data-runner-theme="contrast"] .runner-inline-answer select {
  border-color: #81909d;
  background: #182631;
  color: white;
}

.exam-runner-app .runner-question {
  margin: 0;
  padding: 14px 0 21px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scroll-margin: 80px;
}

.exam-runner-app .runner-question.is-active-question {
  background: linear-gradient(90deg, rgba(229, 36, 32, 0.035), transparent 75%);
}

.exam-runner-app .runner-question legend {
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.91rem;
}

.exam-runner-app .runner-question legend > span {
  width: 25px;
  height: 25px;
  border-radius: 5px;
  background: #202b3d;
  font-size: 0.7rem;
}

.exam-runner-app .runner-options {
  gap: 0;
  padding-left: 10px;
}

.exam-runner-app .runner-option {
  min-height: 38px;
  padding: 7px 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
}

.exam-runner-app .runner-option:hover,
.exam-runner-app .runner-option:has(input:checked) {
  background: #f1f5f7;
}

.exam-runner-app .runner-option-letter {
  width: 21px;
  height: 21px;
  background: transparent;
  font-size: 0.82rem;
}

.exam-runner-app .runner-text-answer input {
  border-radius: 5px;
}

.exam-bottom-bar {
  position: relative;
  z-index: 34;
  display: flex;
  min-width: 0;
  align-items: stretch;
  border-top: 1px solid #d8dde3;
  background: #f8f9fb;
  box-shadow: 0 -4px 16px rgba(24, 34, 52, 0.05);
}

.exam-bottom-sections {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  gap: 9px;
  padding: 6px 10px;
}

.exam-bottom-segment {
  display: flex;
  min-width: 160px;
  align-items: center;
  border: 1px solid #adb5c0;
  border-radius: 7px;
  background: white;
}

.exam-bottom-segment.is-active {
  min-width: min-content;
  border: 2px solid #e52420;
}

.exam-section-button {
  display: flex;
  min-width: 145px;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 5px 12px;
  border: 0;
  background: transparent;
  color: #202938;
  cursor: pointer;
}

.exam-section-button strong {
  font-size: 0.76rem;
}

.exam-section-button em {
  color: #687181;
  font-size: 0.68rem;
}

.exam-bottom-question-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 8px;
}

.exam-question-button {
  display: grid;
  width: 25px;
  height: 28px;
  padding: 0;
  border: 1px solid #c8ced5;
  border-radius: 5px;
  background: white;
  color: #263043;
  font-size: 0.65rem;
  font-weight: 850;
  cursor: pointer;
  place-items: center;
}

.exam-question-button.is-answered {
  background: #e9f4f7;
}

.exam-question-button.is-active {
  border-color: #202b3d;
  background: #202b3d;
  color: white;
}

.exam-question-button.is-flagged {
  box-shadow: inset 0 -3px 0 #f39a2f;
}

.exam-question-button.is-correct { border-color: #168355; background: #e6f6ef; color: #126a46; }
.exam-question-button.is-incorrect { border-color: #d14a38; background: #fff0ed; color: #a93629; }

.exam-bottom-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border-left: 1px solid #d8dde3;
}

.exam-review-toggle,
.exam-review-count {
  color: #303948;
  font-size: 0.72rem;
  font-weight: 800;
}

.exam-review-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.exam-review-toggle input {
  width: 15px;
  height: 15px;
  accent-color: #e52420;
}

.exam-review-count {
  color: #747d8b;
  font-weight: 500;
}

.exam-arrow-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #dce1e6;
  border-radius: 50%;
  background: white;
  color: #4c5666;
  font-size: 1.4rem;
  cursor: pointer;
  place-items: center;
}

.exam-arrow-button:hover {
  border-color: #9aa4b0;
}

.selection-toolbar {
  position: fixed;
  z-index: 70;
  display: flex;
  overflow: hidden;
  border: 1px solid #313a48;
  border-radius: 7px;
  background: #202b3d;
  box-shadow: 0 8px 25px rgba(20, 30, 45, 0.25);
}

.selection-toolbar[hidden] { display: none; }

.selection-toolbar button {
  padding: 8px 11px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.selection-toolbar button:hover { background: rgba(255, 255, 255, 0.1); }

.exam-drawer {
  position: fixed;
  z-index: 60;
  top: 58px;
  right: 0;
  bottom: 58px;
  width: min(390px, 94vw);
  padding: 0;
  overflow-y: auto;
  border-left: 1px solid #d9dee4;
  background: white;
  box-shadow: -18px 0 45px rgba(24, 34, 52, 0.18);
}

.exam-drawer[hidden] { display: none; }

.exam-drawer-head,
.exam-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.exam-drawer-head {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 20px;
  border-bottom: 1px solid #e3e6ea;
  background: #f7f8fa;
}

.exam-drawer-head span,
.exam-dialog-head span {
  display: block;
  color: #7a8390;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exam-drawer-head strong { display: block; margin-top: 3px; }

.exam-drawer-head button,
.exam-dialog-head button {
  width: 34px;
  height: 34px;
  border: 1px solid #d8dde2;
  border-radius: 8px;
  background: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.exam-notes-list { display: grid; gap: 10px; padding: 16px; }

.exam-note-item {
  padding: 16px;
  border: 1px solid #e0e4e8;
  border-radius: 10px;
  background: #fffdf5;
}

.exam-note-item > span { color: #737c88; font-size: 0.65rem; font-weight: 850; text-transform: uppercase; }
.exam-note-item blockquote { margin: 9px 0; padding-left: 10px; border-left: 3px solid #f0c52c; color: #313a48; font-size: 0.79rem; }
.exam-note-item p { margin: 0 0 10px; color: #56606f; font-size: 0.78rem; }
.exam-note-item div { display: flex; gap: 7px; }
.exam-note-item button { padding: 5px 9px; border: 1px solid #d3d8de; border-radius: 6px; background: white; color: #263043; font-size: 0.69rem; font-weight: 800; cursor: pointer; }
.exam-note-muted { font-style: italic; }
.exam-empty-state { padding: 45px 18px; text-align: center; }
.exam-empty-state p { margin-top: 7px; color: #77808c; font-size: 0.82rem; }

.exam-dialog {
  width: min(530px, calc(100% - 28px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 15px;
  box-shadow: 0 30px 90px rgba(18, 28, 44, 0.3);
}

.exam-dialog::backdrop { background: rgba(11, 22, 36, 0.52); backdrop-filter: blur(2px); }

.exam-dialog-card { padding: 26px; }
.exam-dialog-head { margin-bottom: 22px; }
.exam-dialog-head h2 { margin: 3px 0 0; font-size: 1.45rem; }
.exam-dialog fieldset { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 20px; padding: 0; border: 0; }
.exam-dialog legend { width: 100%; margin-bottom: 9px; font-weight: 850; }
.exam-dialog fieldset label { padding: 9px 12px; border: 1px solid #dce1e6; border-radius: 8px; cursor: pointer; }
.exam-dialog fieldset input { accent-color: var(--blue); }
.exam-dialog blockquote { margin: 0 0 18px; padding: 13px 15px; border-left: 4px solid #f0c52c; background: #fff9dd; color: #4f5865; font-size: 0.82rem; }
.exam-note-field span { display: block; margin-bottom: 7px; font-weight: 850; }
.exam-note-field textarea { width: 100%; padding: 12px; resize: vertical; border: 1px solid #cfd5dc; border-radius: 8px; color: #172033; font: inherit; }
.exam-dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.exam-delete-button { padding: 8px; border: 0; background: transparent; color: #b43c2f; font-weight: 800; cursor: pointer; }

@media (max-width: 1050px) {
  .edition-hero-grid,
  .edition-detail-grid {
    grid-template-columns: 1fr;
  }

  .edition-stack,
  .edition-hero-card {
    max-width: 680px;
  }

  .exam-toolbar-actions {
    gap: 5px;
  }

  .exam-tool-button {
    padding-inline: 9px;
  }

  .exam-bottom-sections {
    overflow-x: auto;
  }

  .exam-bottom-actions {
    padding-inline: 8px;
  }
}

@media (max-width: 820px) {
  .edition-card-grid,
  .edition-mini-grid,
  .edition-test-columns,
  .edition-content-grid {
    grid-template-columns: 1fr;
  }

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

  body.runner-active {
    height: auto;
    overflow: auto;
  }

  .exam-runner-app {
    width: 100%;
    max-width: 100vw;
    height: auto;
    min-width: 0;
    min-height: 100vh;
    overflow: visible;
    grid-template-rows: auto auto auto;
  }

  .exam-toolbar.runner-toolbar {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    align-items: stretch;
    gap: 8px;
    flex-direction: column;
  }

  .exam-toolbar-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .exam-save-status { display: none; }

  .runner-workspace,
  .runner-workspace .runner-section,
  .runner-section-grid {
    width: 100%;
    max-width: 100vw;
    height: auto;
    min-width: 0;
    overflow: visible;
  }

  .runner-workspace .runner-section > .runner-section-grid {
    display: block;
  }

  .runner-pane-divider { display: none; }

  .exam-runner-app .runner-material {
    height: 48vh;
    min-height: 380px;
    max-height: none;
    border-bottom: 4px solid #dfe3e7;
  }

  .exam-runner-app .runner-question-column {
    height: auto;
    min-height: 60vh;
    overflow: visible;
  }

  .exam-bottom-bar {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    position: sticky;
    bottom: 0;
    display: block;
  }

  .exam-bottom-sections {
    width: 100%;
    min-width: 0;
    padding-bottom: 4px;
  }

  .exam-bottom-segment.is-active {
    min-width: max-content;
  }

  .exam-bottom-actions {
    width: 100%;
    min-width: 0;
    justify-content: flex-end;
    border-top: 1px solid #e0e4e8;
    border-left: 0;
  }

  .exam-drawer { top: 0; bottom: 0; }
}

@media (max-width: 540px) {
  .edition-hero,
  .edition-detail-hero { padding-block: 48px; }
  .edition-stack a { min-height: 110px; }
  .edition-hero-card > strong { font-size: 5rem; }

  .exam-identity small { max-width: 230px; }
  .exam-toolbar-actions { gap: 6px; }
  .exam-tool-button { flex: 0 0 auto; }
  .exam-submit-button { position: sticky; right: 0; }
  .exam-runner-app .runner-material,
  .exam-runner-app .runner-question-column { padding-inline: 16px; }
  .runner-question-group-copy { padding-top: 10px; }
  .runner-question-reference-list { grid-template-columns: 1fr; }
  .runner-notes-layout,
  .runner-summary-layout { padding-inline: 0; }
  .runner-notes-list { padding-left: 19px; }
  .runner-inline-answer { margin-inline: 3px; }
  .runner-inline-answer input { width: 122px; }
  .runner-inline-answer select { width: 78px; }
  .exam-bottom-actions { justify-content: space-between; }
  .exam-section-button { min-width: 125px; }
}

/* Answer review v4 */
body.runner-reviewing {
  background: #f5f6f8;
}

.runner-review-page {
  display: grid;
  width: 100%;
  height: 100vh;
  min-width: 0;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: #f5f6f8;
  color: #182235;
  font-family: Arial, Helvetica, sans-serif;
}

.runner-review-page .exam-toolbar {
  position: relative;
  z-index: 10;
}

.review-page-heading,
.review-section-tabs,
.runner-review-workspace,
.review-page-actions {
  width: min(1540px, calc(100% - 32px));
  margin-inline: auto;
}

.review-page-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 13px 0 11px;
}

.review-page-heading h1 {
  margin: 6px 0 2px;
  color: #192337;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: -0.025em;
}

.review-page-heading p {
  margin: 0;
  color: #727b88;
  font-size: 0.76rem;
}

.review-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #747d89;
  font-size: 0.7rem;
}

.review-breadcrumb a {
  color: #66717f;
  text-decoration: none;
}

.review-breadcrumb a:hover {
  color: #df2929;
  text-decoration: underline;
}

.review-breadcrumb strong {
  color: #303a49;
}

.review-score-summary {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding: 8px 13px;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: white;
  box-shadow: 0 4px 16px rgba(28, 39, 55, 0.05);
}

.review-score-summary > span {
  color: #737c88;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-score-summary > strong {
  color: #19243a;
  font-size: 1.25rem;
}

.review-score-summary small {
  color: #7b8491;
  font-size: 0.66rem;
}

.review-section-tabs {
  display: flex;
  min-width: 0;
  gap: 8px;
  padding-bottom: 8px;
  overflow-x: auto;
}

.review-section-tab {
  display: flex;
  min-width: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 12px;
  border: 1px solid #d8dde3;
  border-radius: 9px;
  background: white;
  color: #354052;
  font-size: 0.74rem;
  cursor: pointer;
}

.review-section-tab strong {
  color: #78818e;
  font-size: 0.68rem;
}

.review-section-tab.is-active {
  border-color: #e42a2a;
  background: #fff7f6;
  color: #cf2020;
  box-shadow: inset 0 -2px 0 #e42a2a;
}

.runner-review-workspace {
  min-width: 0;
  min-height: 0;
  padding-bottom: 10px;
}

.runner-review-workspace > [data-runner-section],
.runner-review-section-grid {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.runner-review-section-grid {
  display: grid;
  grid-template-columns: minmax(360px, 49%) minmax(430px, 1fr);
  gap: 18px;
}

.review-source-pane,
.review-answer-pane {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  border: 1px solid #dce1e6;
  border-radius: 12px;
  background: white;
  scrollbar-color: #aeb5bd #f2f4f6;
  scrollbar-width: thin;
}

.review-source-document {
  padding: 22px 20px 28px;
}

.review-source-title {
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e8ebee;
}

.review-source-title span,
.review-answer-pane-head span,
.review-transcript-label {
  color: #147493;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.review-source-title h2 {
  margin: 6px 0 0;
  font-size: 1.05rem;
}

.review-source-copy {
  color: #252b35;
  font-size: 0.88rem;
  line-height: 1.64;
}

.review-source-copy p {
  margin: 0 0 15px;
}

.review-transcript-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #eaf4f6;
}

.review-evidence-highlight {
  padding: 1px 0;
  border-radius: 2px;
  background: #fff0a1;
  color: inherit;
  box-shadow: inset 0 -1px 0 #e8c84e;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.review-evidence-highlight.is-focused {
  background: #ffc96c;
  box-shadow: 0 0 0 3px rgba(229, 36, 32, 0.22), inset 0 -2px 0 #e67f20;
}

.review-highlight-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e8ebee;
  color: #828a94;
  font-size: 0.7rem;
  line-height: 1.45;
}

.review-highlight-note > span {
  width: 18px;
  height: 9px;
  margin-top: 3px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: #fff0a1;
  box-shadow: inset 0 -1px 0 #e8c84e;
}

.review-answer-pane {
  padding: 16px;
  background: #fafbfc;
}

.review-answer-pane-head {
  position: sticky;
  z-index: 4;
  top: -16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -16px -16px 12px;
  padding: 15px 17px 12px;
  border-bottom: 1px solid #e1e5e9;
  background: rgba(250, 251, 252, 0.96);
  backdrop-filter: blur(8px);
}

.review-answer-pane-head h2 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.review-answer-pane-head > strong {
  color: #566171;
  font-size: 0.72rem;
}

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

.review-answer-card {
  position: relative;
  padding: 17px 16px 14px;
  border: 1px solid #dfe3e7;
  border-left: 5px solid #1a9364;
  border-radius: 14px;
  background: white;
  box-shadow: 0 3px 12px rgba(26, 37, 52, 0.025);
}

.review-answer-card.is-incorrect {
  border-left-color: #d52c34;
}

.review-answer-card-head {
  display: grid;
  min-height: 28px;
  align-items: start;
  gap: 8px;
  padding-right: 112px;
  grid-template-columns: 28px 15px 1fr;
}

.review-question-number {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #18875d;
  color: white;
  font-size: 0.72rem;
  font-weight: 850;
  place-items: center;
}

.review-answer-card.is-incorrect .review-question-number {
  background: #d52c34;
}

.review-status-icon {
  padding-top: 4px;
  color: #16855b;
  font-size: 0.9rem;
  font-weight: 900;
}

.review-answer-card.is-incorrect .review-status-icon {
  color: #d52c34;
}

.review-answer-card h3 {
  margin: 3px 0 0;
  color: #262c35;
  font-size: 0.84rem;
  line-height: 1.45;
}

.review-answer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 13px;
  margin: 8px 0 0 51px;
  color: #3d4551;
  font-size: 0.76rem;
}

.review-answer-line strong {
  color: #16855b;
}

.review-answer-card.is-incorrect .review-answer-line span:first-child strong {
  color: #d52c34;
}

.review-explanation summary {
  position: absolute;
  top: 17px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid #d9dee4;
  border-radius: 6px;
  background: #f4f6f8;
  color: #39414e;
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.review-explanation summary::-webkit-details-marker {
  display: none;
}

.review-explanation summary:hover {
  border-color: #abb4bf;
  background: white;
}

.review-explanation summary span:last-child {
  transition: transform 160ms ease;
}

.review-explanation[open] summary span:last-child {
  transform: rotate(180deg);
}

.review-explain-less,
.review-explanation[open] .review-explain-more {
  display: none;
}

.review-explanation[open] .review-explain-less {
  display: inline;
}

.review-explanation-body {
  margin: 13px 0 0;
  padding: 11px 13px;
  border-radius: 9px;
  background: #f2f5f8;
  color: #343c49;
  font-size: 0.76rem;
  line-height: 1.5;
}

.review-explanation-body > p {
  margin: 0;
}

.review-evidence-quote {
  margin: 9px 0 0;
  padding: 8px 10px;
  border-left: 3px solid #e5c04b;
  background: #fffdf3;
  color: #56606d;
  font-size: 0.71rem;
}

.review-show-evidence {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #076d8c;
  font-size: 0.69rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.review-page-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 8px 0 12px;
}

.review-primary-action,
.review-secondary-action {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  padding: 8px 17px;
  border: 1px solid #d2d8de;
  border-radius: 9px;
  background: white;
  color: #2e3745;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.review-primary-action {
  border-color: #e52420;
  background: #e52420;
  color: white;
}

.review-training-link {
  margin-left: auto;
  color: #076d8c;
  font-size: 0.74rem;
  font-weight: 850;
}

@media (max-width: 900px) {
  body.runner-reviewing {
    height: auto;
    overflow: auto;
  }

  .runner-review-page {
    height: auto;
    min-height: 100vh;
    grid-template-rows: auto auto auto auto auto;
    overflow: visible;
  }

  .runner-review-page .exam-toolbar {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    align-items: stretch;
    gap: 8px;
    flex-direction: column;
  }

  .runner-review-page .exam-toolbar-actions {
    width: 100%;
    overflow-x: auto;
  }

  .review-page-heading,
  .review-section-tabs,
  .runner-review-workspace,
  .review-page-actions {
    width: min(100% - 24px, 700px);
  }

  .runner-review-workspace {
    padding-bottom: 0;
  }

  .runner-review-section-grid {
    display: block;
    height: auto;
  }

  .review-source-pane {
    height: 46vh;
    min-height: 360px;
    margin-bottom: 12px;
  }

  .review-answer-pane {
    overflow: visible;
  }

  .review-answer-pane-head {
    top: 0;
  }

  .review-page-actions {
    flex-wrap: wrap;
    padding-block: 12px 20px;
  }

  .review-training-link {
    width: 100%;
    margin: 2px 0 0;
  }
}

@media (max-width: 560px) {
  .review-page-heading {
    align-items: flex-start;
  }

  .review-page-heading p,
  .review-score-summary > span {
    display: none;
  }

  .review-score-summary {
    padding: 6px 9px;
  }

  .review-breadcrumb {
    max-width: 250px;
    overflow: hidden;
    white-space: nowrap;
  }

  .review-answer-card-head {
    padding-right: 0;
  }

  .review-explanation summary {
    position: static;
    width: max-content;
    margin: 10px 0 0 51px;
  }

  .review-answer-line {
    margin-left: 51px;
  }

  .review-explanation-body {
    margin-top: 10px;
  }
}

/* Consolidated IELTS 19–21 picker */
.practice-edition-section {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.practice-pathway-heading {
  align-items: end;
}

.pathway-reset {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink-soft);
  font-weight: 850;
  cursor: pointer;
}

.pathway-reset.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

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

.practice-pathway-card {
  display: grid;
  min-width: 0;
  min-height: 250px;
  align-content: start;
  gap: 17px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.practice-pathway-card:hover,
.practice-pathway-card.is-active {
  border-color: var(--blue);
  box-shadow: 0 14px 35px rgba(10, 42, 67, 0.1);
  transform: translateY(-3px);
}

.practice-pathway-card.is-active {
  box-shadow: 0 0 0 3px rgba(13, 111, 142, 0.1), 0 14px 35px rgba(10, 42, 67, 0.1);
}

.practice-pathway-number {
  color: var(--ink);
  font-size: 3.4rem;
  font-weight: 950;
  line-height: 0.85;
  letter-spacing: -0.08em;
}

.practice-pathway-card h3 {
  margin: 10px 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.practice-pathway-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.practice-pathway-actions {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  margin-top: auto;
  flex-wrap: wrap;
}

.practice-pathway-actions button {
  padding: 8px 11px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.practice-pathway-card.is-active .practice-pathway-actions button {
  border-color: var(--lime-dark);
  background: var(--lime);
  color: var(--ink);
}

.practice-pathway-actions a {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 850;
  text-underline-offset: 3px;
}

.practice-pathway-note {
  margin: 20px 0 0;
  padding: 13px 16px;
  border-left: 4px solid var(--orange);
  border-radius: 0 9px 9px 0;
  background: white;
  color: var(--muted);
  font-size: 0.78rem;
}

.practice-pathway-note strong {
  color: var(--ink);
}

.practice-pathway-note a {
  color: var(--blue);
  font-weight: 850;
}

@media (max-width: 900px) {
  .practice-pathway-grid {
    grid-template-columns: 1fr;
  }

  .practice-pathway-card {
    min-height: 0;
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .practice-pathway-actions {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .practice-pathway-heading {
    align-items: flex-start;
  }

  .pathway-reset {
    width: 100%;
  }

  .practice-pathway-card {
    display: block;
  }

  .practice-pathway-number {
    display: block;
    margin-bottom: 17px;
  }

  .practice-pathway-actions {
    margin-top: 18px;
  }
}

/* Compact mock-test discovery and IELTS.fit exam branding · v6 */
.practice-hero--compact {
  padding-block: clamp(44px, 6vw, 74px);
}

.practice-hero--compact::after {
  right: -150px;
  bottom: -270px;
}

.practice-hero--compact .practice-hero-grid {
  gap: clamp(34px, 6vw, 76px);
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.72fr);
}

.practice-hero--compact .page-title {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(2.75rem, 5.4vw, 5rem);
  line-height: 0.98;
}

.practice-hero--compact .lede {
  max-width: 760px;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.mock-hero-actions {
  align-items: center;
  row-gap: 12px;
}

.mock-browse-link {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 850;
  text-underline-offset: 3px;
}

.mock-quick-start {
  padding: clamp(25px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-lg);
}

.mock-quick-start > .score-label {
  display: block;
  margin-bottom: 13px;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mock-quick-start h2 {
  max-width: 430px;
  margin-bottom: 22px;
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  letter-spacing: -0.04em;
}

.mock-flow-strip {
  display: grid;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.mock-flow-strip li {
  display: grid;
  min-height: 82px;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.mock-flow-strip li:last-child {
  border-right: 0;
}

.mock-flow-strip strong {
  color: var(--blue);
  font-size: 0.72rem;
}

.mock-quick-start ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 19px 0 10px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  list-style: none;
}

.mock-quick-start li strong {
  color: var(--ink);
}

.mock-quick-start > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.mock-library-section {
  padding-block: clamp(46px, 6vw, 78px);
}

.mock-library-heading {
  margin-bottom: 22px;
}

.mock-library-controls {
  display: grid;
  align-items: end;
  gap: 12px 20px;
  margin-bottom: 30px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  grid-template-columns: auto auto minmax(200px, 1fr);
}

.mock-filter-group > span,
.mock-edition-guides > span {
  display: block;
  margin: 0 0 7px 4px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-filter-group > div,
.mock-edition-guides > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.mock-filter-group > div {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}

.mock-library-controls .filter-button {
  padding: 8px 11px;
  font-size: 0.74rem;
}

.mock-edition-guides {
  justify-self: end;
}

.mock-edition-guides a {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 850;
  text-decoration: none;
}

.mock-edition-guides a:hover {
  border-color: var(--blue);
}

.mock-library-section .library-test-grid {
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mock-library-section .library-test-card {
  min-height: 250px;
  padding: 19px;
  border-radius: 14px;
}

.mock-library-section .library-test-card-top {
  margin-bottom: 21px;
}

.mock-library-section .library-skill,
.mock-library-section .library-test-number {
  font-size: 0.62rem;
}

.mock-library-section .library-companion-link {
  margin-bottom: 9px;
  font-size: 0.68rem;
}

.mock-library-section .library-test-card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.15;
}

.mock-library-section .library-test-card > p {
  margin-bottom: 14px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.mock-library-section .library-test-facts {
  gap: 5px;
  margin-bottom: 16px;
}

.mock-library-section .library-test-facts li {
  padding: 4px 6px;
  font-size: 0.64rem;
}

.mock-library-section .library-test-card .button {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 0.7rem;
}

.mock-library-section .catalog-series + .catalog-series {
  margin-top: 44px;
  padding-top: 44px;
}

.mock-library-section .catalog-series-header {
  margin-bottom: 18px;
}

.mock-library-section .catalog-series-header h3 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.mock-library-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.73rem;
}

.mock-library-note a {
  color: var(--blue);
  font-weight: 850;
}

.exam-toolbar.runner-toolbar {
  box-shadow: inset 0 3px 0 var(--lime);
}

.exam-app-icon {
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(10, 42, 67, 0.12);
}

.exam-app-icon i {
  background: var(--lime);
}

.exam-app-icon i:nth-child(2) {
  background: #72c7dc;
}

.exam-submit-button {
  border-color: var(--lime-dark);
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 3px 0 rgba(115, 145, 22, 0.22);
}

.exam-submit-button:hover {
  background: #b8ed28;
}

.exam-question-instructions {
  border-left-color: var(--blue);
  background: var(--blue-soft);
}

.exam-runner-app .runner-question.is-active-question {
  background: linear-gradient(90deg, rgba(13, 111, 142, 0.055), transparent 75%);
}

.runner-pane-divider span {
  background: rgba(13, 111, 142, 0.55);
}

.exam-bottom-segment.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.exam-review-toggle input {
  accent-color: var(--blue);
}

.runner-review-page .exam-toolbar {
  box-shadow: inset 0 3px 0 var(--lime);
}

.review-breadcrumb a:hover {
  color: var(--blue);
}

.review-section-tab.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.review-primary-action {
  border-color: var(--lime-dark);
  background: var(--lime);
  color: var(--ink);
}

@media (max-width: 1180px) {
  .mock-library-controls {
    grid-template-columns: 1fr 1fr;
  }

  .mock-edition-guides {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

@media (max-width: 820px) {
  .practice-hero--compact .practice-hero-grid {
    grid-template-columns: 1fr;
  }

  .mock-quick-start {
    box-shadow: var(--shadow-sm);
  }
}

@media (max-width: 620px) {
  .practice-hero--compact {
    padding-block: 38px 46px;
  }

  .practice-hero--compact .page-title {
    font-size: clamp(2.55rem, 13vw, 3.8rem);
  }

  .mock-hero-actions .button {
    width: 100%;
  }

  .mock-browse-link {
    width: 100%;
    text-align: center;
  }

  .mock-flow-strip {
    grid-template-columns: 1fr;
  }

  .mock-flow-strip li {
    min-height: 54px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mock-flow-strip li:last-child {
    border-bottom: 0;
  }

  .mock-library-controls {
    grid-template-columns: 1fr;
  }

  .mock-edition-guides {
    grid-column: auto;
  }

  .mock-library-section .library-test-grid {
    grid-template-columns: 1fr;
  }

  .mock-library-section .library-test-card {
    min-height: 230px;
  }

  .mock-library-section .catalog-series-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
