:root {
  --color-gs-light: #ffffff;
  --color-gs-light-alt: #f2f2f2;
  --color-gs-light-hover: #e6e6e6;
  --color-gs-dark: #121212;
  --color-gs-dark-secondary: #4f4f4f;
  --color-gs-disabled: #6e6e6e;
  --color-brand: #273e57;
  --color-brand-hover: #1f3550;
  --color-brand-light: #e8f0f7;
  --color-brand-accent: #c6a354;
  --color-border: #121212;
  --color-bg-default: #ffffff;
  --color-text-default: #121212;
  --color-text-inverted: #ffffff;
  --radius-medium: 0.5rem;
  --radius-large: 1rem;
  --radius-pill: 666px;
  --border-thin: 0.125rem;
  --border-medium: 0.25rem;
  --border-thick: 0.5rem;
  --space-1x: 1rem;
  --space-2x: 2rem;
  --space-3x: 3rem;
  --space-4x: 4rem;
  --fontsize-body: 2rem;
  --fontsize-body-s: 1.75rem;
  --fontsize-body-xs: 1.5rem;
  --fontsize-heading: 2rem;
  --fontsize-heading-l: 2.5rem;
  --line-height-default: 1.5;
  --letter-spacing-default: 0px;
  --word-spacing-default: 0px;
  --testrunner-header-height: 8rem;
  --testrunner-footer-height: 10rem;
  --testrunner-item-max-width: 170rem;
  --theme-white-on-black: #000000;
  --theme-yellow-on-blue: #001b7a;
  --theme-black-on-cream: #f6f0d8;
  --theme-black-on-blue: #83c9f4;
  --theme-black-on-magenta: #ff5cb8;
  --theme-grey-on-green: #2f7d32;
  --cursor-color-white: #ffffff;
  --cursor-color-black: #121212;
  --cursor-color-yellow: #f2d200;
  --cursor-color-green: #0f8b43;
  --cursor-color-red: #d62828;
}

body.is-live-room-exam #overview-button,
body.is-live-room-exam #bookmark-button {
  display: none !important;
}

body.is-live-room-exam .step {
  cursor: default;
}

.live-room-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: rgba(9, 28, 48, 0.6);
  backdrop-filter: blur(10px);
}

.live-room-overlay.is-open {
  display: flex;
}

.live-room-overlay-card {
  width: min(118rem, 100%);
  max-height: min(88vh, 90rem);
  overflow: auto;
  border-radius: 2.4rem;
  border: 0.2rem solid rgba(16, 55, 102, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 2.4rem 6rem rgba(9, 28, 48, 0.24);
  padding: 3rem;
}

.live-room-overlay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.4rem;
}

.live-room-overlay-copy {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.live-room-overlay-kicker {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f5099;
}

.live-room-overlay-head h2 {
  margin: 0;
  font-size: 3.2rem;
  line-height: 1.05;
  color: #0a2540;
}

.live-room-overlay-room {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9rem;
  padding: 1rem 1.4rem;
  border-radius: 999px;
  background: #e7f1ff;
  color: #0f5099;
  font-size: 1.5rem;
  font-weight: 800;
}

.live-room-overlay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(28rem, 0.85fr);
  gap: 2rem;
}

.live-room-overlay-panel {
  border-radius: 2rem;
  border: 0.1rem solid rgba(16, 55, 102, 0.12);
  background: rgba(255, 255, 255, 0.84);
  padding: 2rem;
}

.live-room-overlay-stats,
.live-room-scoreboard-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.live-room-stat {
  border-radius: 1.8rem;
  border: 0.1rem solid rgba(16, 55, 102, 0.12);
  background: #ffffff;
  padding: 1.6rem;
}

.live-room-stat.is-correct {
  border-color: rgba(15, 139, 67, 0.36);
  box-shadow: inset 0 0 0 0.1rem rgba(15, 139, 67, 0.18);
}

.live-room-stat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.6rem;
  margin-bottom: 1.2rem;
}

.live-room-stat-head strong,
.live-room-scoreboard-head strong {
  display: block;
  color: #0a2540;
}

.live-room-stat-head span,
.live-room-scoreboard-head span,
.live-room-scoreboard-copy span,
.live-room-overlay-waiting {
  color: #46627f;
}

.live-room-stat-track {
  height: 1rem;
  border-radius: 999px;
  background: #e7eef8;
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.live-room-stat-fill {
  display: block;
  height: 100%;
  min-width: 1rem;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f5099 0%, #29a7ff 100%);
}

.live-room-stat.is-correct .live-room-stat-fill {
  background: linear-gradient(90deg, #0f8b43 0%, #31c66e 100%);
}

.live-room-stat-voters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.live-room-stat-voters span {
  display: inline-flex;
  align-items: center;
  min-height: 3.2rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: #edf4ff;
  color: #0f5099;
  font-size: 1.35rem;
  font-weight: 700;
}

.live-room-scoreboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.live-room-scoreboard-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.4rem;
  border-radius: 1.6rem;
  background: #ffffff;
  border: 0.1rem solid rgba(16, 55, 102, 0.1);
}

.live-room-scoreboard-rank,
.live-room-scoreboard-points {
  font-weight: 800;
  color: #0a2540;
}

.live-room-scoreboard-copy {
  min-width: 0;
}

.live-room-scoreboard-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0a2540;
}

.live-room-scoreboard-empty {
  margin: 0;
  color: #46627f;
}

.live-room-overlay-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
}

@media (max-width: 960px) {
  .live-room-overlay {
    padding: 1.6rem;
  }

  .live-room-overlay-card {
    padding: 2rem;
  }

  .live-room-overlay-grid {
    grid-template-columns: 1fr;
  }

  .live-room-overlay-head {
    flex-direction: column;
  }

  .live-room-overlay-actions {
    justify-content: stretch;
  }

.live-room-overlay-actions > * {
    width: 100%;
  }
}

.live-room-manager-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  margin-top: 1.6rem;
  padding: 1.4rem 1.6rem;
  border-radius: 1.8rem;
  border: 0.1rem solid rgba(16, 55, 102, 0.16);
  background: linear-gradient(180deg, rgba(231, 241, 255, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.live-room-manager-controls[hidden] {
  display: none;
}

.live-room-manager-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.live-room-manager-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.live-room-manager-copy strong {
  color: #0a2540;
}

.live-room-manager-copy span {
  color: #46627f;
  font-size: 1.45rem;
}

.live-room-manager-button {
  flex: 0 0 auto;
  min-width: 10rem;
}

@media (max-width: 720px) {
  .live-room-manager-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .live-room-manager-actions {
    justify-content: stretch;
  }

  .live-room-manager-button {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  font-size: 50%;
}

body {
  margin: 0;
  height: 100%;
  font-family: "Nunito Sans", "Source Sans Pro", Arial, sans-serif;
  font-size: var(--fontsize-body);
  line-height: var(--line-height-default);
  letter-spacing: var(--letter-spacing-default);
  word-spacing: var(--word-spacing-default);
  color: var(--color-text-default);
  background: var(--color-bg-default);
  overflow: hidden;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

body.highlighter-mode {
  cursor: text;
}

body.contrast-white-on-black {
  background: #000000;
  color: #ffffff;
}

body.contrast-yellow-on-blue {
  background: #001b7a;
  color: #fff700;
}

body.contrast-black-on-cream {
  background: #f6f0d8;
  color: #121212;
}

body.contrast-black-on-blue {
  background: #83c9f4;
  color: #121212;
}

body.contrast-black-on-magenta {
  background: #ff5cb8;
  color: #121212;
}

body.contrast-grey-on-green {
  background: #2f7d32;
  color: #d7d7d7;
}

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

#page,
.runner-component,
.test-runner {
  height: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.exam-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.6rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 50% 38%, rgba(198, 163, 84, 0.18), transparent 36rem),
    linear-gradient(135deg, rgba(246, 249, 253, 0.94), rgba(255, 255, 255, 0.88));
  opacity: 1;
  pointer-events: auto;
  transition: opacity 180ms ease;
}

.exam-loading-overlay[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.exam-loading-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.35rem);
  width: min(60rem, 100%);
  min-height: min(36rem, calc(100vh - 3.2rem));
  justify-content: center;
  padding: clamp(2.4rem, 6vw, 4.8rem);
  border: 0.1rem solid rgba(39, 62, 87, 0.12);
  border-radius: clamp(1.8rem, 4vw, 2.8rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.96));
  box-shadow: 0 3rem 8rem rgba(20, 38, 63, 0.18), 0 0.1rem 0 rgba(255, 255, 255, 0.85) inset;
  color: #142238;
  text-align: center;
}

.exam-loading-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(198, 163, 84, 0.16), transparent);
  transform: translateX(-100%);
  animation: exam-loading-sheen 2.8s ease-in-out infinite;
}

.exam-loading-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: clamp(7.6rem, 18vw, 11rem);
  height: clamp(7.6rem, 18vw, 11rem);
  margin-bottom: 0.4rem;
}

.exam-loading-icon-orbit {
  --loading-orbit-line-width: 0.1rem;
  position: absolute;
  inset: 0;
  border: var(--loading-orbit-line-width) solid rgba(198, 163, 84, 0.22);
  border-top-color: #c6a354;
  border-radius: 50%;
  animation: exam-loading-spin 1.5s linear infinite;
}

.exam-loading-icon-orbit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--loading-orbit-line-width) / 2);
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #c6a354;
  box-shadow: 0 0 0 0.55rem rgba(198, 163, 84, 0.16);
  transform: translate(-50%, -50%);
}

.exam-loading-icon-sheet {
  position: absolute;
  width: 4.2rem;
  height: 5.3rem;
  border: 0.16rem solid rgba(39, 62, 87, 0.18);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 1rem 2.4rem rgba(39, 62, 87, 0.12);
}

.exam-loading-icon-sheet::before,
.exam-loading-icon-sheet::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  height: 0.32rem;
  border-radius: 999rem;
  background: rgba(39, 62, 87, 0.22);
}

.exam-loading-icon-sheet::before {
  top: 1.45rem;
}

.exam-loading-icon-sheet::after {
  top: 2.55rem;
  right: 1.35rem;
}

.exam-loading-icon-sheet-a {
  transform: rotate(-8deg) translate(-0.85rem, 0.35rem);
  opacity: 0.62;
}

.exam-loading-icon-sheet-b {
  transform: rotate(5deg) translate(0.65rem, -0.15rem);
  border-color: rgba(39, 62, 87, 0.28);
}

.exam-loading-icon-check {
  position: absolute;
  width: 3rem;
  height: 3rem;
  right: 1.45rem;
  bottom: 1.35rem;
  border-radius: 50%;
  background: #273e57;
  box-shadow: 0 1rem 2rem rgba(39, 62, 87, 0.24);
  animation: exam-loading-pulse 1.6s ease-in-out infinite;
}

.exam-loading-icon-check::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.74rem;
  width: 1.2rem;
  height: 0.68rem;
  border-left: 0.28rem solid #fff;
  border-bottom: 0.28rem solid #fff;
  transform: rotate(-45deg);
}

.exam-loading-title {
  position: relative;
  max-width: 16ch;
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.exam-loading-copy {
  position: relative;
  max-width: 28ch;
  color: #5f6f87;
  font-size: clamp(1.35rem, 3.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.45;
}

.exam-loading-progress {
  position: relative;
  display: block;
  width: min(24rem, 72vw);
  height: 0.7rem;
  margin-top: 0.8rem;
  overflow: hidden;
  border-radius: 999rem;
  background: rgba(39, 62, 87, 0.09);
}

.exam-loading-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #273e57, #c6a354);
  animation: exam-loading-progress 1.45s ease-in-out infinite;
}

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

@keyframes exam-loading-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes exam-loading-progress {
  0% {
    transform: translateX(-120%);
  }
  55%, 100% {
    transform: translateX(240%);
  }
}

@keyframes exam-loading-sheen {
  0%, 42% {
    transform: translateX(-120%);
  }
  75%, 100% {
    transform: translateX(120%);
  }
}

.free-simulation-notice {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.2rem, 3.6vw, 3.2rem);
  background: rgba(10, 18, 30, 0.46);
  backdrop-filter: blur(1.6rem);
  -webkit-backdrop-filter: blur(1.6rem);
}

.free-simulation-notice-card {
  position: relative;
  overflow: hidden;
  width: min(52rem, 100%);
  max-height: calc(100vh - clamp(2.4rem, 7vw, 6.4rem));
  padding: clamp(2.4rem, 4.8vw, 3.8rem);
  border: 0.1rem solid rgba(20, 35, 55, 0.1);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 2.4rem 6rem rgba(4, 12, 24, 0.22),
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.95);
  color: #142337;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  overflow-y: auto;
}

.free-simulation-notice-card::before {
  content: none;
}

.free-simulation-notice-hero {
  display: block;
}

.free-simulation-notice-card h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(2.24rem, 4vw, 3rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.06;
}

.free-simulation-notice-card p {
  margin: 0;
  color: #526071;
  font-size: 1.5rem;
  line-height: 1.62;
}

.free-simulation-notice-heading p {
  max-width: 34rem;
  margin-top: 0.9rem;
  font-size: clamp(1.34rem, 1.45vw, 1.5rem);
  line-height: 1.48;
}

.free-simulation-notice-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
}

.free-simulation-notice-actions a,
.free-simulation-notice-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 4.8rem;
  border-radius: 0.8rem;
  padding: 0 1.65rem;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.free-simulation-notice-login {
  border: 0.1rem solid #111827;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 1rem 2.2rem rgba(17, 24, 39, 0.18);
}

.free-simulation-notice-continue {
  border: 0.1rem solid rgba(17, 24, 39, 0.14);
  background: #ffffff;
  color: #111827;
}

.free-simulation-notice-actions a:hover,
.free-simulation-notice-actions a:focus-visible,
.free-simulation-notice-actions button:hover,
.free-simulation-notice-actions button:focus-visible {
  transform: translateY(-0.1rem);
  outline: none;
}

.free-simulation-notice-login:hover,
.free-simulation-notice-login:focus-visible {
  background: #283244;
  box-shadow: 0 1.3rem 2.7rem rgba(17, 24, 39, 0.22);
}

.free-simulation-notice-continue:hover,
.free-simulation-notice-continue:focus-visible {
  border-color: rgba(17, 24, 39, 0.28);
  background: #f7f8fa;
  box-shadow: 0 0.8rem 1.8rem rgba(17, 24, 39, 0.08);
}

@media (max-width: 600px) {
  .exam-loading-card {
    width: 100%;
    min-height: min(34rem, calc(100vh - 3.2rem));
  }

  .free-simulation-notice {
    align-items: center;
    padding: 1rem;
  }

  .free-simulation-notice-card {
    width: 100%;
    max-height: calc(100vh - 2rem);
    padding: 2.2rem 1.8rem;
    border-radius: 1.2rem;
  }

  .free-simulation-notice-hero {
    grid-template-columns: 1fr;
  }

  .free-simulation-notice-card h2 {
    font-size: clamp(2.35rem, 8vw, 3rem);
  }

  .free-simulation-notice-card p,
  .free-simulation-notice-heading p {
    font-size: 1.32rem;
    line-height: 1.48;
  }

  .free-simulation-notice-actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2.2rem;
  }

  .free-simulation-notice-actions a,
  .free-simulation-notice-actions button {
    width: min(100%, 28rem);
    min-height: 4.6rem;
    font-size: 1.3rem;
  }
}

@media (max-width: 360px) {
  .free-simulation-notice-card {
    padding: 1.8rem 1.4rem 1.4rem;
  }

  .free-simulation-notice-actions a,
  .free-simulation-notice-actions button {
    font-size: 1.24rem;
  }
}

.jump-menu {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
}

.jump-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jump-menu button {
  height: 0;
  padding: 0;
  opacity: 0;
  border: none;
  background: var(--color-brand);
  color: var(--color-text-inverted);
  pointer-events: none;
}

.jump-menu button:focus {
  height: 9rem;
  margin: 0.5rem;
  padding: 1rem 5rem;
  opacity: 1;
  pointer-events: auto;
}

.top-bar {
  height: var(--testrunner-header-height);
  border-bottom: var(--border-thin) solid var(--color-border);
  display: flex;
  align-items: center;
  background: var(--color-bg-default);
  position: relative;
  z-index: 4;
}

.top-bar > div {
  width: 100%;
}

.headerbar {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 0.45rem 0 1.45rem;
  gap: 1.4rem;
}

.headerbar header {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 2rem;
  min-width: 0;
}

.logo {
  height: calc(var(--testrunner-header-height) - 2rem);
  display: flex;
  align-items: center;
}

.logo img {
  height: 100%;
  object-fit: contain;
}

.headerbar .content {
  display: flex;
  align-items: center;
  min-height: calc(var(--testrunner-header-height) - 2rem);
}

.header-bar-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: calc(var(--testrunner-header-height) - 2rem);
}

.header-total-timer {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  color: inherit;
}

.header-bar-content h1 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.livesave {
  height: 1.6rem;
}

.header-bar-content .livesave {
  display: none !important;
}

.breadcrumb {
  margin: 0;
  font-size: var(--fontsize-body);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.crumb {
  overflow: hidden;
  text-overflow: ellipsis;
}

.current-crumb {
  font-weight: 700;
}

.separator {
  color: var(--color-gs-dark-secondary);
}

.timer-label {
  color: var(--color-brand);
  font-size: var(--fontsize-body-xs);
  margin-left: 1rem;
  font-weight: 700;
}

.header-total-timer .timer-label {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: currentColor;
  font-size: calc(var(--fontsize-body) * 1.5);
  line-height: 1;
}

.timer-aria-live {
  font-size: var(--fontsize-body-xs);
}

aside {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.end {
  list-style: none;
  display: flex;
  gap: var(--header-tool-gap, 1rem);
  margin: 0;
  padding: 0;
}

.tool-shortcuts {
  flex-wrap: nowrap;
  align-items: center;
  transition: transform 240ms ease-out;
  will-change: transform;
}

.tool-shortcuts li {
  display: flex;
  flex: 0 0 auto;
}

.headerbar {
  --header-tool-button-size: 4rem;
  --header-tool-gap: 1rem;
  --header-tool-pad-right: 0.45rem;
  --mobile-tool-rail-right-fallback: calc(
    var(--header-tool-pad-right, 0.45rem)
    + (var(--header-tool-button-size, 4rem) * 4)
    + (var(--header-tool-gap, 1rem) * 4)
  );
}

.tool-menu {
  --tool-drop-button-size: var(--header-tool-button-size, 4rem);
  --tool-drop-gap: var(--header-tool-gap, 1rem);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.tool-menu.open {
  padding-left: calc(
    var(--tool-drop-rail-width, 14rem)
    + var(--header-tool-gap, 1rem)
  );
}

.tool-menu-toggle.icon-bar-btn.base-16 {
  position: relative;
  z-index: 3;
  width: var(--tool-drop-button-size);
  min-width: var(--tool-drop-button-size);
  height: var(--tool-drop-button-size);
  min-height: var(--tool-drop-button-size);
  padding: 0;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  border: 0.1rem solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #243651;
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.92),
    0 0.35rem 1rem rgba(6, 18, 36, 0.08);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 240ms ease,
    transform 180ms ease;
}

.tool-menu-toggle.icon-bar-btn.base-16::before {
  content: none;
}

.headerbar .tool-shortcuts .icon-bar-btn.base-16,
.headerbar .tool-menu-toggle.icon-bar-btn.base-16,
.headerbar .tool-menu-panel .icon-bar-btn.base-16 {
  width: var(--header-tool-button-size, 4rem);
  min-width: var(--header-tool-button-size, 4rem);
  height: var(--header-tool-button-size, 4rem);
  min-height: var(--header-tool-button-size, 4rem);
  padding: 0;
  border: 0.1rem solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #243651;
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.92),
    0 0.35rem 1rem rgba(6, 18, 36, 0.08);
}

.headerbar .tool-shortcuts .icon-bar-btn.base-16 .icon,
.headerbar .tool-menu-panel .icon-bar-btn.base-16 .icon,
.headerbar .tool-menu-panel .icon-bar-btn.base-16 img.icon {
  width: 1.7rem;
  height: 1.7rem;
}

.tool-menu-toggle-glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", var(--font-family-default);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  color: currentColor;
  transform-origin: center;
  transition:
    opacity 170ms ease,
    transform 180ms ease;
}

.tool-menu-toggle-close {
  font-size: 1.7rem;
  opacity: 0;
  transform: scale(0.86);
}

.tool-menu.open .tool-menu-toggle-plus {
  opacity: 0;
  transform: scale(0.86);
}

.tool-menu.open .tool-menu-toggle-close {
  opacity: 1;
  transform: scale(1);
}

.tool-menu-panel {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: auto;
  left: 0;
  width: min(var(--tool-drop-rail-width, 14rem), calc(100vw - 12rem));
  max-width: min(var(--tool-drop-rail-width, 14rem), calc(100vw - 12rem));
  height: var(--tool-drop-button-size);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0.16rem, -50%, 0);
  transform-origin: right center;
  will-change: opacity, transform;
  transition:
    opacity 120ms ease-out,
    transform 120ms ease-out,
    visibility 0ms linear 120ms;
  backdrop-filter: none;
}

.tool-menu:not(.open) .tool-menu-panel {
  display: none;
}

.tool-menu.open .tool-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, -50%, 0);
  transition-delay: 0ms;
}

.top-bar.tools-open {
  z-index: 120;
}

.top-bar.tools-open .tool-menu,
.top-bar.tools-open .tool-menu-panel {
  z-index: 121;
  pointer-events: auto;
}

.tool-menu.open .tool-menu-toggle.icon-bar-btn.base-16,
.tool-menu.open .tool-menu-toggle.icon-bar-btn.base-16:hover,
.tool-menu.open .tool-menu-toggle.icon-bar-btn.base-16:focus-visible {
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
  transform: none;
}

.tool-menu.open .tool-menu-toggle::before {
  opacity: 0;
  transform: translateX(0) scale(1);
}

.tool-menu-heading {
  display: none;
}

.tool-menu-panel .end {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--tool-drop-gap);
}

.tool-droplet-list {
  width: max-content;
  min-width: 100%;
  height: var(--tool-drop-button-size);
}

.tool-menu-panel .end li {
  position: relative;
  display: flex;
  flex: 0 0 var(--tool-drop-button-size);
  width: var(--tool-drop-button-size);
  height: var(--tool-drop-button-size);
  opacity: 1;
  transform: none;
  transform-origin: right center;
  filter: none;
  pointer-events: auto;
  transition: none;
}

.tool-droplet-item::before {
  content: none;
}

.tool-menu.open .tool-droplet-item {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0ms;
}

.tool-menu-panel .icon-bar-btn.base-16 {
  position: relative;
  z-index: 1;
  width: var(--tool-drop-button-size);
  min-width: var(--tool-drop-button-size);
  min-height: var(--tool-drop-button-size);
  height: var(--tool-drop-button-size);
  padding: 0;
  justify-content: center;
  gap: 0;
  border: 0.1rem solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.92),
    0 0.35rem 1rem rgba(6, 18, 36, 0.08);
  color: #243651;
  transform: none;
  transition:
    background 170ms ease,
    border-color 170ms ease,
    color 170ms ease,
    box-shadow 200ms ease,
    transform 160ms ease;
}

.tool-menu-panel .icon-bar-btn::after {
  content: none;
}

.tool-menu.open .tool-menu-panel .icon-bar-btn.base-16 {
  transform: none;
}

.tool-menu-panel .icon-bar-btn.base-16 .icon,
.tool-menu-panel .icon-bar-btn.base-16 img.icon {
  width: 1.7rem;
  height: 1.7rem;
}

.tool-menu-panel .icon-bar-btn.base-16 img.icon {
  opacity: 0.78;
}

.headerbar .tool-shortcuts .icon-bar-btn.base-16:hover,
.headerbar .tool-shortcuts .icon-bar-btn.base-16:focus-visible,
.headerbar .tool-shortcuts .icon-bar-btn.base-16.active,
.headerbar .tool-shortcuts .icon-bar-btn.base-16.toggled,
.tool-menu:not(.open) .tool-menu-toggle.icon-bar-btn.base-16:hover,
.tool-menu:not(.open) .tool-menu-toggle.icon-bar-btn.base-16:focus-visible,
.tool-menu-panel .icon-bar-btn.base-16:hover,
.tool-menu-panel .icon-bar-btn.base-16:focus-visible,
.tool-menu-panel .icon-bar-btn.base-16.active,
.tool-menu-panel .icon-bar-btn.base-16.toggled {
  border-color: rgba(214, 178, 84, 0.62);
  background: #ffffff;
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.96),
    0 0 0 0.18rem rgba(214, 178, 84, 0.16),
    0 0.42rem 0.9rem rgba(6, 18, 36, 0.1);
  color: #1f314c;
  transform: translateY(-0.03rem);
}

.headerbar aside.tools-open .tool-shortcuts {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .tool-shortcuts,
  .tool-menu-toggle.icon-bar-btn.base-16,
  .tool-menu-toggle.icon-bar-btn.base-16::before,
  .tool-menu-toggle-glyph,
  .tool-menu-panel,
  .tool-menu-panel .end li,
  .tool-menu-panel .icon-bar-btn.base-16 {
    animation: none !important;
    transition: none !important;
  }

  .tool-menu.open .tool-droplet-item {
    opacity: 1;
    transform: translateX(0);
    filter: none;
  }
}

.choice-elimination-toggle-btn {
  position: relative;
}

.choice-elimination-toggle-glyph {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

.choice-elimination-toggle-glyph::after {
  content: "";
  position: absolute;
  width: 2.25rem;
  height: 0.16rem;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-28deg);
}

.icon {
  width: 3rem;
  height: 3rem;
  fill: currentColor;
}

.icon.medium {
  width: 2rem;
  height: 2rem;
}

.icon-bar-btn {
  width: 6rem;
  height: 6rem;
  border-radius: var(--radius-medium);
  border: none;
  background: var(--color-bg-default);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-bar-btn.base-16 {
  width: 4rem;
  height: 4rem;
}

.icon-bar-btn:hover,
.icon-bar-btn:focus-visible,
.icon-bar-btn.active {
  background: var(--color-gs-light-hover);
}

.icon-bar-btn.toggled {
  background: var(--color-gs-light-hover);
}

.floating-toolbars-wrapper {
  pointer-events: none;
  position: absolute;
  inset-inline-end: 0;
  top: 100%;
  margin: 0 4rem;
  z-index: 8;
}

.floating-toolbars {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.flex-break {
  flex-basis: 100%;
  height: 0;
}

.toolbar-highlighter {
  pointer-events: auto;
}

#highlighter-bar {
  display: none;
}

.highlighter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.floating-bar {
  display: flex;
  align-items: center;
  background: var(--color-bg-default);
  border: var(--border-medium) solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  min-width: 48rem;
}

.floating-bar.inverted {
  background: #111111;
  color: #ffffff;
}

.floating-bar-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.floating-bar header {
  font-weight: 700;
}

.floating-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.floating-bar.inverted .floating-bar-actions button {
  color: #ffffff;
}

.floating-bar.inverted .clear-btn span {
  font-size: 1.4rem;
  white-space: nowrap;
}

.highlighter-bar button {
  border: none;
  background: none;
  cursor: pointer;
  height: 5rem;
  width: 5rem;
  border-radius: 50%;
  position: relative;
}

.highlighter-bar button.active {
  outline: var(--border-thin) solid #ffffff;
  outline-offset: 2px;
}

.color-btn span {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  margin: auto;
  background: var(--color-brand-light);
  font-size: 0;
}

.color-btn[data-color="yellow"] span { background: #ffd94d; }
.color-btn[data-color="pink"] span { background: #ffb6d5; }
.color-btn[data-color="blue"] span { background: #9ed1ff; }
.color-btn[data-color="green"] span { background: #9cffc8; }
.color-btn[data-color="orange"] span { background: #ffb36b; }

.eraser-btn,
.clear-btn {
  height: 5rem;
  width: auto;
  padding: 0 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  white-space: nowrap;
}

.clear-btn {
  min-width: 11rem;
}

.eraser-btn {
  width: 5rem;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  height: calc(100% - var(--testrunner-header-height) - var(--testrunner-footer-height));
  overflow: auto;
}

.test-content-columns {
  display: flex;
  justify-content: center;
}

.qti-item-container {
  width: min(var(--testrunner-item-max-width), 100%);
  padding: 2rem 4rem 6rem;
}

.grid-row {
  width: 80%;
  margin: 0 auto 2rem;
}

.question-source {
  width: 100%;
  margin-top: 0.8rem;
  font-family: "Nunito Sans", "Source Sans Pro", Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #444444;
  text-align: right;
}

.passage {
  background: transparent;
  padding: 2.5rem 0;
  border-radius: var(--radius-large);
}

.passage-image-frame {
  display: flex;
  justify-content: center;
  padding: 1.6rem;
  border: 0.1rem solid #d8dde4;
  border-radius: var(--radius-large);
  background: #f8fafc;
}

.passage-image {
  display: block;
  width: 100%;
  max-width: 96rem;
  max-height: 62vh;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 1.2rem;
  background: #ffffff;
}

.native-visual-frame {
  --nr-blue: #273e57;
  --nr-blue-strong: #1a2940;
  --nr-blue-soft: rgba(39, 62, 87, 0.06);
  --nr-surface: #ffffff;
  --nr-surface-alt: #fafbfc;
  --nr-border: #e5e8ef;
  --nr-grid: #edf0f5;
  --nr-text: #0b1424;
  --nr-muted: #4b5873;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 1.6rem;
  border: 0.1rem solid rgba(11, 20, 36, 0.08);
  border-radius: 1.4rem;
  background: #ffffff;
  overflow: auto;
}

.native-visual-panel {
  padding: 1.2rem;
  background: #ffffff;
  border: 0.1rem solid var(--nr-border);
  border-radius: 1.2rem;
  overflow: hidden;
}

.native-visual-panel-table {
  overflow: auto;
}

.native-visual-panel-breakdown {
  padding: 1.4rem;
}

.native-visual-panel-graphic {
  overflow: auto;
}

.native-visual-panel-graphic-group {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.native-visual-panel-graphic-group .native-visual-svg {
  border: 0.1rem solid #d8dde4;
}

.native-data-table-wrap {
  width: 100%;
  overflow: auto;
}

.native-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.55rem;
  color: var(--nr-text);
  background: transparent;
}

.native-data-table thead th {
  background: #273e57;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
}

.native-data-table th,
.native-data-table td {
  padding: 0.58rem 0.72rem;
  border: 0.1rem solid var(--nr-border);
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}

.native-data-table tbody th {
  background: rgba(39, 62, 87, 0.04);
  color: var(--nr-text);
  font-weight: 600;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.native-data-table td {
  text-align: center;
  background: #ffffff;
  color: var(--nr-text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.native-data-table tbody tr:nth-child(even) td {
  background: #fafbfc;
}

.native-breakdown-card {
  display: grid;
  gap: 1.2rem;
}

.native-breakdown-title {
  margin: 0;
  font-family: "Inter Tight", "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.82rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--nr-text);
  text-align: center;
  letter-spacing: -0.01em;
}

.native-breakdown-list {
  display: grid;
  gap: 1rem;
}

.native-breakdown-row {
  display: grid;
  gap: 0.6rem;
}

.native-breakdown-row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  font-family: "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  color: var(--nr-text);
}

.native-breakdown-label {
  font-size: 1.42rem;
  font-weight: 700;
}

.native-breakdown-value {
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--nr-blue-strong);
}

.native-breakdown-bar {
  position: relative;
  height: 1rem;
  border-radius: 999px;
  background: rgba(39, 62, 87, 0.08);
  overflow: hidden;
}

.native-breakdown-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #273e57 0%, #4f7fab 100%);
}

.native-visual-svg {
  display: block;
  width: 100%;
  min-width: 56rem;
  height: auto;
  background:
    radial-gradient(circle at top left, rgba(0, 109, 204, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 0.1rem solid rgba(0, 109, 204, 0.14);
  border-radius: 1.6rem;
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.86);
}

.native-visual-svg text {
  dominant-baseline: alphabetic;
}

.native-visual-panel-title {
  margin: 0 0 0.9rem;
  font-size: 1.82rem;
}

.passage,
.passage p,
.qti-prompt,
.caption-container,
.choice-content {
  font-family: "Nunito Sans", "Source Sans Pro", Arial, sans-serif;
  font-size: var(--fontsize-body);
  line-height: var(--line-height-default);
}

.passage,
.passage p {
  text-align: justify;
}

.passage p strong,
.results-review-passage strong {
  font-weight: 800;
  color: inherit;
}

.qti-prompt {
  font-weight: 400;
  margin: 2rem 0;
}

.selectable-choice-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.choice label {
  display: block;
  cursor: pointer;
  position: relative;
}

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

.container {
  display: block;
  border: var(--border-medium) solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-bg-default);
  position: relative;
}

.caption-container {
  display: block;
  padding: 1.5rem 2rem 1.5rem 5.8rem;
}

.choice-content-label-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2ch;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.container::before {
  --choice-radio-left: 2rem;
  --choice-radio-size: 2.1rem;
  content: "";
  position: absolute;
  top: 50%;
  left: var(--choice-radio-left);
  width: var(--choice-radio-size);
  height: var(--choice-radio-size);
  border: 0.18rem solid #121212;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 0 0 0.28rem rgba(255, 255, 255, 0.82),
    0 0.35rem 0.85rem rgba(13, 34, 72, 0.08);
  transform: translateY(-50%);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.choice input:checked + .container::after {
  content: none;
}

.choice input:checked + .container {
  background: var(--color-brand);
  color: var(--color-text-inverted);
  border-color: var(--color-brand);
}

.choice label:hover .container {
  background: var(--color-brand-hover);
  color: var(--color-text-inverted);
  border-color: var(--color-brand-hover);
}

.choice.training-correct .container {
  background: #eaf7ef;
  color: #121212;
  border-color: #0f8b43;
}

.choice.training-correct input:checked + .container,
.choice.training-correct label:hover .container {
  background: #eaf7ef;
  color: #121212;
  border-color: #0f8b43;
}

.choice.training-incorrect .container {
  background: #fff1f1;
  color: #121212;
  border-color: #d62828;
}

.choice.training-incorrect input:checked + .container,
.choice.training-incorrect label:hover .container {
  background: #fff1f1;
  color: #121212;
  border-color: #d62828;
}

.choice.training-selected.training-incorrect .container {
  border-width: 0.35rem;
}

.training-feedback {
  margin-top: 1.6rem;
  padding: 1.4rem 1.8rem;
  border: var(--border-thin) solid var(--color-border);
  background: #f3f6f9;
  color: #121212;
}

.training-feedback.correct {
  border-color: #0f8b43;
  background: #eaf7ef;
}

.training-feedback.incorrect {
  border-color: #d62828;
  background: #fff1f1;
}

.training-feedback-lead,
.training-feedback-body {
  margin: 0;
  line-height: 1.5;
}

.training-feedback-lead + .training-feedback-body,
.training-feedback-lead + .abstract-rule-list,
.training-feedback-body + .abstract-rule-list {
  margin-top: 1rem;
}

.abstract-rule-list {
  display: grid;
  gap: 0.9rem;
}

.abstract-rule-card {
  padding: 1rem 1.2rem;
  border: 0.1rem solid #d8dde4;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.72);
}

.abstract-rule-title {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.abstract-rule-body {
  margin: 0;
  line-height: 1.55;
}

.choice-elimination-enabled .choice:not(.eliminated) label:hover .container,
.choice-elimination-enabled .choice:not(.eliminated) label:focus-within .container {
  background: rgba(255, 255, 255, 0.98);
  color: var(--color-text-default);
  border-color: rgba(40, 60, 89, 0.18);
  box-shadow: 0 0.8rem 1.8rem rgba(13, 22, 37, 0.08);
}

.choice-elimination-enabled .choice:not(.eliminated) label:hover .caption-container,
.choice-elimination-enabled .choice:not(.eliminated) label:focus-within .caption-container {
  color: var(--color-text-default);
}

.choice-elimination-enabled .choice.eliminated label:hover .container,
.choice-elimination-enabled .choice.eliminated label:focus-within .container {
  background: #f7f9fc;
  color: #6f7d92;
  border-color: rgba(40, 60, 89, 0.16);
}

.choice-elimination-enabled .choice.eliminated label:hover .caption-container,
.choice-elimination-enabled .choice.eliminated label:focus-within .caption-container {
  color: #6f7d92;
}

.choice-elimination-enabled .choice label:has(.choice-eliminate-btn:hover) .container,
.choice-elimination-enabled .choice label:has(.choice-eliminate-btn:focus-visible) .container {
  background: rgba(255, 255, 255, 0.98);
  color: var(--color-text-default);
  border-color: rgba(40, 60, 89, 0.2);
}

.choice-elimination-enabled .choice label:has(.choice-eliminate-btn:hover) .caption-container,
.choice-elimination-enabled .choice label:has(.choice-eliminate-btn:focus-visible) .caption-container {
  color: var(--color-text-default);
}

.choice-elimination-enabled .choice.eliminated label:has(.choice-eliminate-btn:hover) .container,
.choice-elimination-enabled .choice.eliminated label:has(.choice-eliminate-btn:focus-visible) .container {
  background: #f7f9fc;
  color: #6f7d92;
  border-color: rgba(40, 60, 89, 0.16);
}

.choice-elimination-enabled .choice.eliminated label:has(.choice-eliminate-btn:hover) .caption-container,
.choice-elimination-enabled .choice.eliminated label:has(.choice-eliminate-btn:focus-visible) .caption-container {
  color: #6f7d92;
}

.choice-eliminate-btn {
  position: absolute;
  top: 50%;
  right: 1.2rem;
  width: 3.4rem;
  height: 3.4rem;
  border: 0.1rem solid rgba(40, 60, 89, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #66758f;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  overflow: hidden;
  transform: translateY(-50%);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.82),
    0 0.45rem 1.1rem rgba(13, 22, 37, 0.1);
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.choice-elimination-enabled .choice-eliminate-btn {
  display: inline-flex;
}

.choice-elimination-enabled .caption-container {
  padding-right: 5.8rem;
}

.choice-eliminate-btn::before {
  content: none;
}

.choice-eliminate-btn::after {
  content: none;
}

.choice-eliminate-btn:hover,
.choice-eliminate-btn:focus-visible {
  background: #ffffff;
  border-color: rgba(40, 60, 89, 0.28);
  color: #20324d;
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.9),
    0 0.7rem 1.5rem rgba(13, 22, 37, 0.14);
  outline: none;
}

.choice-eliminate-marker {
  position: relative;
  width: 1.6rem;
  height: 1.6rem;
  min-width: 1.6rem;
}

.choice-eliminate-marker::before,
.choice-eliminate-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.55rem;
  height: 0.16rem;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.choice-eliminate-marker::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.choice-eliminate-marker::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.choice-eliminate-aa {
  display: none;
}

.choice-eliminate-undo {
  display: none;
}

.choice.eliminated .choice-eliminate-btn {
  background: #283c59;
  border-color: #283c59;
  color: #ffffff;
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.16),
    0 0.7rem 1.6rem rgba(40, 60, 89, 0.22);
}

.choice.eliminated .choice-eliminate-btn:hover,
.choice.eliminated .choice-eliminate-btn:focus-visible {
  background: #20324d;
  border-color: #20324d;
  color: #ffffff;
}

.choice.eliminated .choice-eliminate-marker::before {
  transform: translate(-50%, -50%);
}

.choice.eliminated .choice-eliminate-marker::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.choice .container {
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.choice.eliminated .container {
  opacity: 1;
  background: #f7f9fc;
  border-color: rgba(40, 60, 89, 0.14);
  color: #6f7d92;
}

.choice.eliminated .choice-content {
  text-decoration-line: line-through;
  text-decoration-color: rgba(32, 50, 77, 0.42);
  text-decoration-thickness: 0.12rem;
  text-decoration-skip-ink: auto;
}

.choice.eliminated input:checked + .container {
  background: #f7f9fc;
  color: #6f7d92;
  border-color: rgba(40, 60, 89, 0.14);
}

.bottom-bar {
  height: var(--testrunner-footer-height);
  border-top: var(--border-thin) solid var(--color-border);
  display: flex;
  align-items: center;
  background: var(--color-bg-default);
}

.navigator {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 2rem;
  gap: 2rem;
}

.actionable {
  border: var(--border-medium) solid var(--color-border);
  border-radius: var(--radius-pill);
  height: 6rem;
  min-width: 6rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--color-bg-default);
  cursor: pointer;
}

.actionable.primary {
  background: var(--color-brand);
  color: var(--color-text-inverted);
  border-color: var(--color-brand);
}

.actionable.secondary {
  background: var(--color-bg-default);
  color: var(--color-text-default);
}

.actionable:hover,
.actionable:focus-visible {
  background: var(--color-brand-hover);
  color: var(--color-text-inverted);
  border-color: var(--color-brand-hover);
}

.circular {
  width: 6rem;
}

.pill {
  padding: 0 2rem;
}

.button-container {
  display: flex;
  gap: 1rem;
}

.button-container.start {
  flex: 0 0 auto;
}

.button-container.end {
  margin-left: auto;
}

#bookmark-button {
  min-width: 6rem;
  width: 6rem;
  min-height: 6rem;
  height: 6rem;
  padding: 0;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#bookmark-button .icon.medium {
  width: 1.8rem;
  height: 1.8rem;
  display: block;
}

#bookmark-button.bookmarked {
  background: #121212;
  color: #ffffff;
  border-color: #121212;
}

#bookmark-button:hover,
#bookmark-button:focus-visible {
  background: #e6e6e6;
  color: #121212;
  border-color: #cfcfcf;
}

#bookmark-button.bookmarked:hover,
#bookmark-button.bookmarked:focus-visible {
  background: #2f2f2f;
  color: #ffffff;
  border-color: #2f2f2f;
}

.floating-bookmark-btn {
  position: fixed;
  right: 2rem;
  bottom: calc(var(--testrunner-footer-height) + 1.6rem);
  z-index: 6;
}

.bookmark-submit-button {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-width: 17.6rem;
  max-width: calc(100vw - 2rem);
  min-height: 6.72rem;
  height: 6.72rem;
  padding: 0 5.3rem 0 2rem;
  border: 1px solid #283c59;
  border-radius: 999px;
  background: #283c59;
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transform: translateX(1.3rem) scaleX(0.2);
  transform-origin: right center;
  transition:
    opacity 180ms ease,
    transform 240ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.bookmark-submit-button.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scaleX(1);
}

.bookmark-submit-button:hover,
.bookmark-submit-button:focus-visible {
  background: #324a6d;
  border-color: #324a6d;
  color: #ffffff;
}

.progress-container {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.step {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: var(--border-thin) solid var(--color-gs-disabled);
  background: var(--color-bg-default);
  color: var(--color-gs-disabled);
  font-weight: 700;
  cursor: pointer;
}

.step-value {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-bookmark-indicator {
  display: none;
  position: absolute;
  top: -0.2rem;
  right: -0.16rem;
  left: auto;
  width: 0.86rem;
  height: 0.86rem;
  transform: none;
  align-items: center;
  justify-content: center;
  line-height: 0;
  pointer-events: none;
  z-index: 4;
  border: 0.16rem solid #ffffff;
  border-radius: 999px;
  background: #d6b254;
  box-shadow:
    0 0 0 0.1rem rgba(40, 60, 89, 0.16),
    0 0.18rem 0.38rem rgba(13, 22, 37, 0.14);
  color: transparent;
}

.step.bookmarked .step-bookmark-indicator {
  display: inline-flex;
}

.step-bookmark-indicator .icon.small {
  display: none;
}

.step-bookmark-indicator .icon.small path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step.bookmarked.completed .step-bookmark-indicator,
.step.bookmarked.current .step-bookmark-indicator {
  border-color: rgba(255, 255, 255, 0.96);
  background: #d6b254;
}

.step.visited {
  border-width: var(--border-medium);
  color: var(--color-text-default);
  border-color: var(--color-text-default);
}

.step.completed {
  background: #121212;
  color: #ffffff;
  border-color: #121212;
}

.step.current {
  background: var(--color-brand);
  color: var(--color-text-inverted);
  border-color: var(--color-brand);
}

.step.step-countdown,
button.step.exam-step.step-countdown {
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.overview-container {
  display: flex;
  justify-content: flex-end;
}

.overview-container #overview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.2rem;
  min-height: 5.2rem;
  line-height: 0;
}

.overview-button-icon {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overview-inline-drawer {
  display: none;
}

.nav-next-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-prev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-next-icon {
  width: 2.2rem;
  height: 2.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateX(2px);
}

.nav-prev-icon {
  width: 2.2rem;
  height: 2.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateX(-2px);
}

.nav-btn-hidden {
  visibility: hidden;
  pointer-events: none;
}

.nav-next-btn:disabled,
.nav-prev-btn:disabled {
  opacity: 1;
  background: #c8ced8;
  border-color: #c8ced8;
  color: #6f7885;
  cursor: not-allowed;
  pointer-events: none;
}

.modal-wrapper {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal-wrapper.open {
  display: flex;
}

.modal-background {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.modal-positioning {
  position: relative;
  z-index: 21;
  width: min(70rem, 90vw);
}

.dialog {
  background: var(--color-bg-default);
  border: var(--border-thin) solid var(--color-border);
  padding: 2rem;
  border-radius: var(--radius-medium);
}

.dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.dialog textarea {
  width: 100%;
  min-height: 18rem;
  padding: 1rem;
  font-size: var(--fontsize-body);
  border: var(--border-thin) solid var(--color-border);
}

.draggable-modal {
  position: fixed;
  top: 10rem;
  left: 10rem;
  width: 70rem;
  height: 50rem;
  display: none;
  z-index: 22;
  box-shadow: 0 0 0.75rem 0.375rem rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-medium);
  background: transparent;
}

.scratchpad-modal {
  min-width: 320px;
  min-height: 277px;
  width: 496px;
  height: 490px;
  left: 51px;
  top: 245.25px;
  --action-container-size: 11rem;
}

.calculator-modal {
  min-width: 320px;
  min-height: 576px;
  width: 320px;
  height: 576px;
  left: 206px;
  top: 202.5px;
  --action-container-size: 5.5rem;
}

.draggable-modal.open {
  display: flex;
}

.draggable-modal .contents {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: var(--border-medium) solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-bg-default);
}

.scratchpad-modal .contents {
  flex-direction: column;
}

.draggable-modal .header {
  cursor: grab;
  display: flex;
  align-items: center;
  height: 6.5rem;
  padding: 0 0.5rem;
  gap: 1rem;
}

.scratchpad-modal .header {
  height: 6.5rem;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  padding: 0 0.5rem;
  gap: 1rem;
}

.draggable-modal .header.inverted {
  background: #111111;
  color: #ffffff;
}

.draggable-modal.dragging .header {
  cursor: grabbing;
}

.draggable-modal .action-container-start,
.draggable-modal .action-container-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.scratchpad-modal .action-container-start,
.scratchpad-modal .action-container-end {
  width: auto;
  justify-content: center;
  flex-direction: row;
}

.scratchpad-modal .icon-bar-btn {
  width: 3.2rem;
  height: 3.2rem;
  background: transparent;
  border: none;
}

.scratchpad-modal .icon {
  width: 2rem;
  height: 2rem;
}

.scratchpad-modal .header .icon-bar-btn {
  color: #ffffff;
}

.scratchpad-modal .header .icon-bar-btn:hover,
.scratchpad-modal .header .icon-bar-btn:focus-visible,
.scratchpad-modal .header .icon-bar-btn.active {
  background: rgba(255, 255, 255, 0.15);
}

.draggable-modal .title-container {
  flex: 1 1 auto;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--fontsize-heading);
  pointer-events: none;
}

.scratchpad-modal .title-container {
  flex: 0 0 auto;
}

.draggable-modal .content {
  position: relative;
  flex: 1 1 auto;
  background: var(--color-bg-default);
  border-top: var(--border-thin) solid var(--color-border);
  overflow: hidden;
}

.scratchpad-modal .content {
  border-top: var(--border-thin) solid var(--color-border);
  display: flex;
}

.calculator-modal .header .icon-bar-btn {
  color: #ffffff;
  background: transparent;
}

.calculator-modal .action-container-start,
.calculator-modal .action-container-end {
  width: var(--action-container-size);
  justify-content: center;
}

.calculator-modal .content {
  border-top: var(--border-thin) solid var(--color-border);
}

.calculator {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  gap: 1px;
  position: relative;
}

.calculator .screen {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: var(--border-medium) solid var(--color-border);
  border-radius: 0;
  padding: 0;
  min-height: 10rem;
  background: #1a1a1a;
  gap: 0;
  margin-top: -1px;
  flex: 1 1 auto;
}

.calculator .expression {
  color: #b5b5b5;
  font-size: var(--fontsize-body-s);
  min-height: 2.4rem;
  text-align: right;
  padding: 0;
  margin: 0;
}

.calculator .result {
  font-size: var(--fontsize-heading-l);
  font-weight: 700;
  color: #ffffff;
  background: #1a1a1a;
  padding: 0.75rem 1rem;
  border-radius: 0;
  min-height: 3.2rem;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.calculator .result span {
  display: block;
  width: 100%;
  text-align: right;
}

.calculator .keyboard {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(var(--grid-rows-count), auto);
  gap: 0.0625rem;
  flex: 0 0 auto;
}

.calculator .key {
  border: var(--border-thin) solid #ffffff;
  border-radius: 0;
  background: #ffffff;
  color: #121212;
  font-size: var(--fontsize-body);
  font-weight: 400;
  cursor: pointer;
  margin: 0.5px;
  aspect-ratio: 1 / 1;
}

.calculator .key[data-command="execute"] {
  aspect-ratio: auto;
}

.calculator .key.operator {
  background: var(--color-brand);
  color: #ffffff;
}

.calculator .key.digit {
  background: #cfe6ff;
  color: #121212;
}

.calculator .key.command,
.calculator .key.function {
  background: #e6e6e6;
  color: #121212;
}

.calculator .key:focus-visible {
  outline: var(--border-thin) solid var(--color-brand);
  outline-offset: 2px;
}

.live-result-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.scratchpad-container {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.scratchpad-tools {
  list-style: none;
  margin: 0;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 5rem;
  border-right: var(--border-thin) solid var(--color-border);
}

.scratchpad-tools li {
  position: relative;
}

.scratchpad-tools .scratchpad-tool-btn.active {
  outline: 2px solid #121212;
  outline-offset: 2px;
}

.scratchpad-tools .scratchpad-subtool-btn.active {
  outline: 2px solid #121212;
  outline-offset: 2px;
}

.tools-options {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  display: none;
  flex-direction: row;
  gap: 0.5rem;
  position: absolute;
  left: calc(100% + 0.5rem);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-bg-default);
  border: var(--border-thin) solid var(--color-border);
  border-radius: var(--radius-medium);
  z-index: 3;
}

.scratchpad-tools li:hover > .tools-options,
.scratchpad-tools li:focus-within > .tools-options {
  display: flex;
}

.scratchpad-canvas-wrap {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  position: relative;
}

.scratchpad-text-input {
  position: absolute;
  z-index: 2;
  min-width: 12rem;
  max-width: 60rem;
  min-height: 3rem;
  padding: 0.25rem 0.5rem;
  border: 0.125rem dashed #121212;
  background: rgba(255, 255, 255, 0.9);
  color: #121212;
  font-size: 1.6rem;
  line-height: 1.4;
  resize: none;
  outline: none;
}

.scratchpad-container {
  width: 100%;
  height: 100%;
  touch-action: none;
}

#scratchpad-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--color-bg-default);
}

.resize-hitbox {
  position: absolute;
  background: transparent;
}

.hitbox-top-left {
  top: -0.75rem;
  left: -0.75rem;
  width: 1rem;
  height: 1rem;
  cursor: nwse-resize;
}

.hitbox-top {
  top: -0.75rem;
  left: 0.25rem;
  right: 0.25rem;
  height: 1rem;
  cursor: ns-resize;
}

.hitbox-top-right {
  top: -0.75rem;
  right: -0.75rem;
  width: 1rem;
  height: 1rem;
  cursor: nesw-resize;
}

.hitbox-right {
  top: 0.25rem;
  right: -0.75rem;
  bottom: 0.25rem;
  width: 1rem;
  cursor: ew-resize;
}

.hitbox-bottom-right {
  right: -0.75rem;
  bottom: -0.75rem;
  width: 1rem;
  height: 1rem;
  cursor: nwse-resize;
}

.hitbox-bottom {
  left: 0.25rem;
  right: 0.25rem;
  bottom: -0.75rem;
  height: 1rem;
  cursor: ns-resize;
}

.hitbox-bottom-left {
  left: -0.75rem;
  bottom: -0.75rem;
  width: 1rem;
  height: 1rem;
  cursor: nesw-resize;
}

.hitbox-left {
  top: 0.25rem;
  left: -0.75rem;
  bottom: 0.25rem;
  width: 1rem;
  cursor: ew-resize;
}

.calculator input {
  width: 100%;
  height: 5rem;
  font-size: var(--fontsize-heading);
  text-align: right;
  margin-bottom: 1rem;
  padding: 0 1rem;
  border: var(--border-thin) solid var(--color-border);
}

.calc-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.calc-keys button {
  height: 5rem;
  font-size: var(--fontsize-body);
  border: var(--border-thin) solid var(--color-border);
  background: var(--color-bg-default);
  cursor: pointer;
  margin: 2px;
}

.calc-keys .span-2 {
  grid-column: span 2;
}

.panel {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 18;
}

.panel.open {
  display: block;
}

.config-overlay {
  position: fixed;
  top: var(--testrunner-header-height);
  right: 0;
  bottom: 0;
  left: 0;
  background: #ffffff;
  display: none;
  z-index: 30;
  font-family: "Source Sans Pro", "Nunito Sans", Arial, sans-serif;
  color: #121212;
}

.config-overlay.open {
  display: flex;
}

.config-overlay-shell {
  background: #ffffff;
  width: 100vw;
  height: calc(100vh - var(--testrunner-header-height));
  max-height: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.config-overlay-header {
  background: #111111;
  color: #ffffff;
  flex: 0 0 auto;
}

.config-overlay-header .exam-overlay-slot {
  width: 100%;
}

.inverted.exam-overlay-bar {
  min-height: 7.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 2rem;
  background: #111111;
  color: #ffffff;
}

.start.exam-overlay-bar,
.end.exam-overlay-bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 4.8rem;
  min-height: 4.8rem;
}

.start.exam-overlay-bar {
  left: 1.2rem;
}

.end.exam-overlay-bar {
  right: 1.2rem;
}

.config-overlay-title {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.ui-heading.exam-overlay-bar {
  font-family: "Source Sans Pro", "Nunito Sans", Arial, sans-serif;
}

.config-overlay-header .icon-bar-btn.base-24,
.overview-overlay-header .icon-bar-btn.base-24 {
  width: 4.8rem;
  height: 4.8rem;
  background: transparent;
  color: #ffffff;
}

.config-overlay-header .icon-bar-btn.base-24:hover,
.config-overlay-header .icon-bar-btn.base-24:focus-visible,
.overview-overlay-header .icon-bar-btn.base-24:hover,
.overview-overlay-header .icon-bar-btn.base-24:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.config-overlay-header .icon.large,
.overview-overlay-header .icon.large {
  width: 2.4rem;
  height: 2.4rem;
}

.overlay-content.exam-overlay {
  overflow: auto;
  flex: 1 1 auto;
  background: #ffffff;
}

.overlay-content.exam-overlay > .exam-overlay-slot {
  width: 100%;
}

.content.exam-settings {
  display: grid;
  gap: 2rem;
  max-width: 88rem;
  margin: 0 auto;
  padding: 2.4rem 3.2rem;
  font-family: "Source Sans Pro", "Nunito Sans", Arial, sans-serif;
}

.config-overlay .content.exam-settings {
  max-width: 128rem;
  padding: 2rem 2.4rem;
}

.group.exam-settings > header.exam-settings {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

.panel.exam-settings {
  position: static;
  inset: auto;
  background: transparent;
  z-index: auto;
  display: grid;
  border: 0.1rem solid #d6d6d6;
  border-radius: 0;
  padding: 2rem 2.4rem;
  gap: 1.4rem;
}

.panel.exam-settings > header.exam-settings {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.panel.exam-settings > div {
  display: grid;
  gap: 1.2rem;
}

label.exam-switch {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  width: fit-content;
}

input.exam-switch {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.selection.exam-switch {
  width: 0;
  height: 0;
}

.slider.exam-switch {
  width: 5.6rem;
  height: 3.2rem;
  border-radius: 999px;
  background: #8e8e8e;
  position: relative;
  transition: background 0.15s ease;
}

.slider.exam-switch::after {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.15s ease;
}

input.exam-switch:checked + .selection.exam-switch + .slider.exam-switch {
  background: #273e57;
}

input.exam-switch:checked + .selection.exam-switch + .slider.exam-switch::after {
  transform: translateX(2.4rem);
}

.label.exam-switch {
  font-weight: 700;
  min-width: 3rem;
  font-size: 1.6rem;
}

.caption.exam-settings {
  margin: 0;
  color: #4f4f4f;
  max-width: 60rem;
  font-size: 1.6rem;
  line-height: 1.4;
}

.source-settings-body {
  display: grid;
  gap: 0.95rem;
}

.source-settings-summary {
  max-width: none;
  font-size: 1.25rem;
  line-height: 1.3;
}

.source-settings-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.source-settings-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: start;
}

.source-settings-option {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.7rem 0.8rem;
  border: 0.1rem solid #d6d6d6;
  border-radius: 0.9rem;
  background: #fafafa;
  cursor: pointer;
}

.source-settings-option input {
  margin: 0.1rem 0 0;
  inline-size: 1.6rem;
  block-size: 1.6rem;
  accent-color: #273e57;
  flex: 0 0 auto;
}

.source-settings-option-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  min-width: 0;
  width: 100%;
}

.source-settings-option-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #121212;
  line-height: 1.18;
  word-break: break-word;
}

.source-settings-option-count {
  font-size: 1.05rem;
  font-weight: 700;
  color: #6b7280;
  line-height: 1;
  white-space: nowrap;
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  background: rgba(107, 114, 128, 0.08);
  flex: 0 0 auto;
}

.source-settings-error {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #b42318;
}

@media (max-width: 980px) {
  .source-settings-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .source-settings-list {
    grid-template-columns: 1fr;
  }
}

.config-overlay-footer {
  min-height: 2rem;
  flex: 0 0 auto;
}

.overview-overlay {
  position: fixed;
  top: var(--testrunner-header-height);
  right: 0;
  bottom: 0;
  left: 0;
  background: #ffffff;
  display: none;
  z-index: 30;
  font-family: "Source Sans Pro", "Nunito Sans", Arial, sans-serif;
  color: #121212;
}

.overview-overlay.open {
  display: flex;
}

.overview-overlay-shell {
  background: #ffffff;
  width: 100vw;
  height: calc(100vh - var(--testrunner-header-height));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.overview-overlay-header {
  background: #111111;
  color: #ffffff;
  flex: 0 0 auto;
}

.overview-overlay-header .exam-overlay-slot,
.overview-overlay-footer .exam-overlay-slot {
  width: 100%;
}

.overview.exam-overview {
  display: grid;
  gap: 2.4rem;
  padding: 2.4rem 3.2rem 3.2rem;
  max-width: 120rem;
  margin: 0 auto;
}

.overview-overlay .overlay-content.exam-overlay {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.overview-overlay .overlay-content.exam-overlay::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.tabs.exam-overview {
  display: block;
}

.tabgroup.exam-tabs {
  position: relative;
}

.scrollbox.exam-tabs {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
}

.scrollbox.exam-tabs > ul.exam-tabs {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 3.2rem;
  margin: 0;
  padding: 0 0 0.8rem;
  border-bottom: 0.1rem solid #d8d8d8;
}

li.exam-tabs {
  margin: 0;
  padding: 0;
}

button.exam-tabs[role="tab"] {
  border: 0;
  background: transparent;
  padding: 0 0 0.8rem;
  color: #4f4f4f;
  font: inherit;
  font-size: 1.8rem;
  text-align: center;
  text-transform: lowercase;
  cursor: pointer;
  border-bottom: 0.3rem solid transparent;
}

button.exam-tabs[role="tab"][aria-selected="true"] {
  color: #121212;
  border-bottom-color: #121212;
  font-weight: 700;
}

.tabpanel.exam-overview.hidden {
  display: none;
}

.tabpanel.exam-overview {
  display: block;
}

.tabpanel-heading.exam-overview {
  margin: 0 0 1.6rem;
  font-size: 2rem;
  font-weight: 700;
}

.label.exam-overview {
  display: inline-block;
}

#overview-panel-all,
#overview-panel-bookmarked,
#overview-panel-incomplete {
  display: grid;
  gap: 2rem;
}

.overview-question-group.exam-overview {
  display: grid;
  gap: 1.6rem;
  padding: 2rem;
  border: 0.1rem solid #d8d8d8;
  border-radius: 0.8rem;
  background: #ffffff;
}

.overview-question-group.exam-overview .tabpanel-heading.exam-overview {
  margin: 0;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0;
}

.overview-question-group.exam-overview .label.exam-overview {
  display: block;
}

.overview-question-group.exam-overview ol.space-large.exam-step {
  justify-content: center;
  margin: 0;
}

ol.space-large.exam-step {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 0;
  margin: 0 0 3.2rem;
}

li.exam-step {
  margin: 0;
  padding: 0;
}

button.step.exam-step {
  position: relative;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 0.1rem solid #8c8c8c;
  background: #ffffff;
  color: #4f4f4f;
  font-weight: 700;
  cursor: pointer;
}

button.step.exam-step.visited {
  border-width: 0.25rem;
  color: #121212;
  border-color: #121212;
}

button.step.exam-step.completed {
  background: #283c59;
  color: #ffffff;
  border-color: #283c59;
}

button.step.exam-step.current {
  background: #273e57;
  color: #ffffff;
  border-color: #273e57;
}

.indicator.exam-step {
  display: none;
  position: absolute;
  top: -1.4rem;
  left: 50%;
  transform: translateX(-50%);
}

button.step.exam-step.current .indicator.exam-step {
  display: inline-flex;
}

.step-label.exam-step {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.indicator.exam-step .icon.small {
  width: 1.2rem;
  height: 1.2rem;
}

.bookmark-indicator.exam-step {
  display: none;
  position: absolute;
  top: -0.2rem;
  right: -0.16rem;
  left: auto;
  width: 0.86rem;
  height: 0.86rem;
  transform: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 4;
  border: 0.16rem solid #ffffff;
  border-radius: 999px;
  background: #d6b254;
  box-shadow:
    0 0 0 0.1rem rgba(40, 60, 89, 0.16),
    0 0.18rem 0.38rem rgba(13, 22, 37, 0.14);
  color: transparent;
}

.bookmark-indicator.exam-step .icon.small {
  display: none;
}

.bookmark-indicator.exam-step .icon.small path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button.step.exam-step.bookmarked.completed .bookmark-indicator.exam-step,
button.step.exam-step.bookmarked.current .bookmark-indicator.exam-step {
  border-color: rgba(255, 255, 255, 0.96);
  background: #d6b254;
}

button.step.exam-step.bookmarked .bookmark-indicator.exam-step {
  display: inline-flex;
}

.overview-overlay-footer {
  border-top: 0.1rem solid #d8d8d8;
  background: #ffffff;
  flex: 0 0 auto;
}

.overview-bottom-bar.exam-overview-bar {
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.6rem 3.2rem;
}

.back-button.exam-overview-bar {
  display: inline-flex;
}

.actionable.exam-action {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.8rem;
  padding: 0 2rem;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: none;
}

.actionable.exam-action.icon-right {
  margin-left: auto;
}

.actionable.exam-action .icon.medium {
  width: 1.8rem;
  height: 1.8rem;
}

.submit-confirm-overlay,
.results-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.62);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.submit-confirm-overlay.open,
.results-overlay.open {
  display: flex;
}

.submit-confirm-card,
.results-card {
  width: min(84rem, calc(100vw - 2.4rem));
  background: #ffffff;
  border-radius: 2rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.18);
  color: #121212;
}

.submit-confirm-card {
  padding: 3.2rem;
}

.submit-confirm-card h2 {
  margin: 0 0 1.2rem;
  font-size: 3rem;
}

.submit-confirm-card p {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.5;
  color: #4f4f4f;
}

.submit-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1.2rem;
  margin-top: 2.4rem;
}

.submit-confirm-btn {
  text-transform: none;
  padding: 0 2rem;
}

.results-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(92vh, calc(100vh - 2.4rem));
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.4rem;
  border-bottom: 0.1rem solid #dce7f2;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0) 28%),
    linear-gradient(135deg, #12253f 0%, #1f3f66 48%, #00496d 100%);
  color: #ffffff;
}

.results-header h2 {
  margin: 0;
  font-size: 2.8rem;
  color: #ffffff;
}

.results-header .icon-bar-btn {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.results-body {
  display: grid;
  gap: 2rem;
  padding: 2.4rem;
  overflow: auto;
  background:
    radial-gradient(circle at top left, rgba(0, 73, 109, 0.08) 0, rgba(0, 73, 109, 0) 26%),
    linear-gradient(180deg, #fbfdff 0%, #f3f7fc 100%);
}

.results-hero {
  display: grid;
  grid-template-columns: 22rem minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.results-score-ring {
  --score-angle: 0deg;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
    conic-gradient(#273e57 0deg var(--score-angle), #dfe7f1 var(--score-angle) 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.results-score-center {
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.results-score-center span {
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
}

.results-score-center small {
  margin-top: 0.8rem;
  font-size: 1.4rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.results-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.results-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  border-radius: 1.2rem;
  background: #f5f7fa;
}

.results-summary-row span {
  color: #4f4f4f;
}

.results-summary-row strong {
  font-size: 2rem;
}

.results-bars {
  display: grid;
  gap: 1rem;
}

.results-precision {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.results-precision-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.4rem 1.6rem;
  border-radius: 1.2rem;
  background: #f8fafc;
}

.results-precision-card span {
  font-size: 1.4rem;
  color: #4f4f4f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.results-precision-card strong {
  font-size: 2.2rem;
  line-height: 1;
}

.results-bar-card {
  padding: 1.4rem 1.6rem;
  border-radius: 1.2rem;
  background: #f8fafc;
}

.results-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 1.6rem;
}

.results-bar-track {
  height: 1.2rem;
  border-radius: 999px;
  background: #dde5ee;
  overflow: hidden;
}

.results-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
}

.results-bar-card.correct .results-bar-fill {
  background: linear-gradient(90deg, #0f9d58, #41c784);
}

.results-bar-card.incorrect .results-bar-fill {
  background: linear-gradient(90deg, #d93025, #ef6b63);
}

.results-bar-card.unanswered .results-bar-fill {
  background: linear-gradient(90deg, #7a8594, #aab4c1);
}

.results-review {
  display: grid;
  gap: 1.2rem;
  padding-top: 0.8rem;
  border-top: 0.1rem solid #ececec;
}

.results-review h3 {
  margin: 0;
  font-size: 2rem;
}

.results-review p {
  margin: 0;
}

.results-review-list {
  display: grid;
  gap: 1.4rem;
}

.results-review-item {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border: 0.1rem solid #d8dde4;
  border-radius: 1.4rem;
  background: #f8fafc;
}

.results-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.results-review-head strong {
  font-size: 1.7rem;
}

.results-review-status {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
}

.results-review-status.correct {
  background: #eaf7ef;
  color: #0f8b43;
}

.results-review-status.incorrect {
  background: #fff1f1;
  color: #c62828;
}

.results-review-status.unanswered {
  background: #eef2f6;
  color: #48505e;
}

.results-review-status.manual {
  background: #edf6ff;
  color: #0b64a0;
}

.results-review-prompt {
  font-weight: 700;
  font-size: 1.6rem;
  color: #121212;
}

.results-review-passage {
  color: #4f4f4f;
  line-height: 1.5;
}

.results-review-answer {
  display: grid;
  gap: 0.3rem;
}

.results-review-answer span {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6472;
}

.results-review-answer strong {
  font-size: 1.5rem;
  color: #121212;
}

.results-review-explanation {
  padding-top: 0.4rem;
  border-top: 0.1rem dashed #d8dde4;
  color: #4f4f4f;
  line-height: 1.5;
}

.results-review-explanation.abstract-rule-list {
  padding-top: 0.8rem;
  border-top: 0.1rem dashed #d8dde4;
}

.results-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.4rem;
  border: 0.1rem solid #d8dde4;
  border-radius: 1.4rem;
  background: #ffffff;
}

.results-next-actions a,
.results-next-actions button {
  min-height: 4.2rem;
  padding: 0 1.6rem;
  border-radius: 0.8rem;
  border: 0.1rem solid #273e57;
  background: #273e57;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.results-next-actions .secondary {
  background: #ffffff;
  color: #273e57;
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 42rem;
  height: 100%;
  background: var(--color-bg-default);
  border-left: var(--border-thin) solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.drawer header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: var(--border-thin) solid var(--color-border);
}

.drawer-content {
  padding: 2rem;
  overflow: auto;
}

.a11y-drawer-panel {
  --a11y-sheet-bg: #f6f8fb;
  --a11y-sheet-surface: #ffffff;
  --a11y-sheet-ink: #1f314c;
  --a11y-sheet-muted: #65748b;
  --a11y-sheet-border: rgba(31, 49, 76, 0.13);
  --a11y-sheet-border-strong: rgba(31, 49, 76, 0.2);
  --a11y-sheet-accent: #d6b254;
  --a11y-sheet-header: #283c59;
  top: var(--testrunner-header-height);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  background: rgba(13, 22, 37, 0.16);
  backdrop-filter: blur(0.24rem);
  -webkit-backdrop-filter: blur(0.24rem);
}

.a11y-drawer-panel .drawer {
  top: 0.8rem;
  right: 0.8rem;
  width: min(52rem, calc(100vw - 1.6rem));
  max-width: calc(100vw - 1.6rem);
  height: calc(100% - 1.6rem);
  border: 0.1rem solid rgba(255, 255, 255, 0.32);
  border-radius: 0.8rem;
  background: var(--a11y-sheet-bg);
  box-shadow: -1.2rem 1.8rem 4.8rem rgba(13, 22, 37, 0.22);
  overflow: hidden;
}

.a11y-drawer-panel.open .drawer {
  animation: a11ySheetEnter 160ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.a11y-drawer-panel .drawer-content {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: auto;
  scrollbar-gutter: stable;
}

.a11y-drawer-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.2rem;
  gap: 1.2rem;
  padding: 1.1rem 1.2rem 1.1rem 1.6rem;
  border-bottom: 0.1rem solid rgba(255, 255, 255, 0.12);
  background: var(--a11y-sheet-header);
  color: #ffffff;
}

.a11y-drawer-heading {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
}

.a11y-drawer-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
}

.a11y-drawer-title {
  margin: 0;
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.a11y-drawer-close.icon-bar-btn {
  width: 4rem;
  min-width: 4rem;
  height: 4rem;
  min-height: 4rem;
  padding: 0;
  border: 0.1rem solid transparent;
  border-radius: 0.6rem;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
}

.a11y-drawer-close.icon-bar-btn:hover,
.a11y-drawer-close.icon-bar-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transform: none;
}

.a11y-drawer-close.icon-bar-btn:focus-visible {
  outline: 0.2rem solid rgba(255, 255, 255, 0.72);
  outline-offset: 0.2rem;
}

.drawer-content.exam-drawer-content {
  padding: 0;
  background: var(--a11y-sheet-bg);
  color: var(--a11y-sheet-ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.a11y-menu-panel-content.exam-a11y-menu {
  display: grid;
  align-content: start;
  min-height: 100%;
  gap: 0.9rem;
  padding: 1rem;
  background: var(--a11y-sheet-bg);
}

.a11y-group.exam-a11y-group {
  margin: 0;
  border: 0.1rem solid var(--a11y-sheet-border);
  border-radius: 0.75rem;
  background: var(--a11y-sheet-surface);
  box-shadow: none;
  overflow: hidden;
}

.a11y-group.exam-a11y-group > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  min-height: 5rem;
  padding: 0 1.2rem;
  border-bottom: 0.1rem solid transparent;
  cursor: pointer;
  user-select: none;
}

.a11y-group.exam-a11y-group > summary:hover {
  background: #fbfcfe;
}

.a11y-group.exam-a11y-group > summary:focus-visible {
  outline: 0.2rem solid rgba(214, 178, 84, 0.38);
  outline-offset: -0.2rem;
}

.a11y-group.exam-a11y-group > summary::-webkit-details-marker {
  display: none;
}

.a11y-group.exam-a11y-group > summary::marker {
  display: none;
}

.a11y-group.exam-a11y-group[open] > summary .icon.small {
  transform: rotate(0deg);
}

.a11y-group.exam-a11y-group[open] > summary {
  border-bottom-color: var(--a11y-sheet-border);
}

.a11y-group.exam-a11y-group:not([open]) > summary .icon.small {
  transform: rotate(180deg);
}

.a11y-group.exam-a11y-group > summary .ui-heading {
  margin: 0;
  color: var(--a11y-sheet-ink);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.a11y-group.exam-a11y-group > summary .icon.medium {
  width: 1.55rem;
  height: 1.55rem;
  color: var(--a11y-sheet-ink);
}

.a11y-group.exam-a11y-group > summary .icon.small {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  color: var(--a11y-sheet-muted);
  transition: transform 160ms ease;
}

.a11y-group.exam-a11y-group > div {
  padding: 1rem 1.2rem 1.2rem;
}

.a11y-group.exam-a11y-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.colour-switcher.exam-colour-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.border-wrapper.exam-colour-switch {
  display: grid;
  place-items: center;
  min-height: 4.35rem;
  padding: 0.45rem;
  border: 0.1rem solid var(--a11y-sheet-border);
  border-radius: 0.65rem;
  background: #f9fbfd;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.option.exam-colour-switch {
  appearance: none;
  width: 100%;
  height: 2.85rem;
  border: 0;
  border-radius: 0.45rem;
  box-shadow:
    inset 0 0 0 0.1rem rgba(13, 22, 37, 0.16),
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.32);
  cursor: pointer;
  margin: 0;
  display: block;
}

.option.exam-colour-switch#whiteOnBlack {
  background-image: linear-gradient(90deg, #000000 0 50%, #ffffff 50% 100%);
}

.option.exam-colour-switch#yellowOnBlue {
  background-image: linear-gradient(90deg, #001b7a 0 50%, #fff700 50% 100%);
}

.option.exam-colour-switch#blackOnCream {
  background-image: linear-gradient(90deg, #f6f0d8 0 50%, #121212 50% 100%);
}

.option.exam-colour-switch#blackOnBlue {
  background-image: linear-gradient(90deg, #83c9f4 0 50%, #121212 50% 100%);
}

.option.exam-colour-switch#blackOnMagenta {
  background-image: linear-gradient(90deg, #ff5cb8 0 50%, #121212 50% 100%);
}

.option.exam-colour-switch#greyOnGreen {
  background-image: linear-gradient(90deg, #2f7d32 0 50%, #d7d7d7 50% 100%);
}

.border-wrapper.exam-colour-switch:hover,
.border-wrapper.exam-colour-switch:focus-within {
  border-color: var(--a11y-sheet-border-strong);
  background: #ffffff;
}

.border-wrapper.exam-colour-switch:has(.option.exam-colour-switch:checked) {
  border-color: var(--a11y-sheet-accent);
  background: #ffffff;
  box-shadow: 0 0 0 0.18rem rgba(214, 178, 84, 0.24);
}

.option.exam-colour-switch:focus-visible {
  outline: 0.2rem solid rgba(214, 178, 84, 0.42);
  outline-offset: 0.2rem;
}

.option.exam-colour-switch:checked {
  outline: none;
  box-shadow:
    inset 0 0 0 0.18rem #ffffff,
    0 0 0 0.1rem rgba(13, 22, 37, 0.18);
}

.mouse-pointer-setting.exam-pointer-setting,
.font-family-setting.exam-font-family-setting {
  display: grid;
  gap: 0.85rem;
}

.control-row.exam-control-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  min-height: 5rem;
  gap: 0.85rem;
  padding: 0.65rem 0.75rem 0.65rem 1rem;
  border: 0.1rem solid var(--a11y-sheet-border);
  border-radius: 0.7rem;
  background: #f9fbfd;
  color: var(--a11y-sheet-ink);
}

.control-row.exam-control-row > .icon {
  width: 1.55rem;
  height: 1.55rem;
  color: var(--a11y-sheet-ink);
}

label.control-row.exam-control-row {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
}

.stepper.exam-stepper {
  display: inline-flex;
  gap: 0.5rem;
  margin-left: 0;
}

.stepper.exam-stepper .icon-bar-btn.base-12 {
  width: 3.6rem;
  min-width: 3.6rem;
  height: 3.6rem;
  min-height: 3.6rem;
  border: 0.1rem solid var(--a11y-sheet-border);
  border-radius: 0.5rem;
  background: #ffffff;
  color: var(--a11y-sheet-ink);
  box-shadow: none;
}

.stepper.exam-stepper .icon-bar-btn.base-12 .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.stepper.exam-stepper .icon-bar-btn.base-12:hover,
.stepper.exam-stepper .icon-bar-btn.base-12:focus-visible {
  border-color: var(--a11y-sheet-border-strong);
  background: #f4f7fb;
  box-shadow: none;
  transform: none;
}

.stepper.exam-stepper .icon-bar-btn.base-12:focus-visible {
  outline: 0.2rem solid rgba(214, 178, 84, 0.34);
  outline-offset: 0.15rem;
}

.icon-bar-btn.exam-icon-button.visually-disabled,
.stepper.exam-stepper .icon-bar-btn.visually-disabled {
  opacity: 0.38;
  cursor: default;
}

.select.exam-select {
  display: inline-flex;
  width: 100%;
  position: relative;
  min-height: 4.6rem;
  border: 0.1rem solid var(--a11y-sheet-border);
  border-radius: 0.7rem;
  background: #ffffff;
  box-shadow: none;
}

.select.exam-select > button.exam-select {
  width: 100%;
  min-height: 4.6rem;
  border: 0;
  background: transparent;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--a11y-sheet-ink);
  cursor: pointer;
}

.select.exam-select > button.exam-select:hover,
.select.exam-select > button.exam-select:focus-visible {
  background: #f9fbfd;
}

.select.exam-select > button.exam-select:focus-visible {
  outline: 0.2rem solid rgba(214, 178, 84, 0.34);
  outline-offset: 0.15rem;
}

.select.exam-select > button.exam-select > span.exam-select {
  display: inline-flex;
  align-items: center;
}

.listbox-wrapper.exam-select {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: 30;
}

.listbox.exam-select {
  display: block;
  max-height: 24rem;
  overflow: auto;
  background: #ffffff;
  border: 0.1rem solid var(--a11y-sheet-border-strong);
  border-radius: 0.7rem;
  box-shadow: 0 1.2rem 2.6rem rgba(13, 22, 37, 0.14);
}

.option.exam-select {
  display: block;
  padding: 0.95rem 1.2rem;
  color: var(--a11y-sheet-ink);
  font-size: 1.3rem;
  cursor: pointer;
}

.option.exam-select.selected {
  background: #eef3f9;
  font-weight: 700;
}

.option.exam-select:hover {
  background: #f7f9fc;
}

.hidden-input.exam-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

@keyframes a11ySheetEnter {
  from {
    opacity: 0;
    transform: translateX(0.8rem);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .a11y-drawer-panel {
    top: 0;
    width: 100vw;
    overflow: hidden;
  }

  .a11y-drawer-panel .drawer {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .a11y-drawer-panel.open .drawer {
    animation: a11ySheetFade 120ms ease-out both;
  }

  .a11y-drawer-header {
    min-height: 5.8rem;
    padding: 1rem 1.2rem;
  }

  .a11y-drawer-title {
    font-size: 1.75rem;
  }

  .a11y-menu-panel-content.exam-a11y-menu {
    padding: 1rem;
    gap: 0.8rem;
  }

  .colour-switcher.exam-colour-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-row.exam-control-row {
    min-height: 4.8rem;
    gap: 0.75rem;
  }

  .stepper.exam-stepper .icon-bar-btn.base-12 {
    width: 3.4rem;
    min-width: 3.4rem;
    height: 3.4rem;
    min-height: 3.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a11y-drawer-panel.open .drawer,
  .a11y-group.exam-a11y-group > summary .icon.small {
    animation: none;
    transition: none;
  }
}

@keyframes a11ySheetFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.settings {
  display: grid;
  gap: 1.5rem;
}

.settings label {
  display: grid;
  gap: 0.5rem;
  font-size: var(--fontsize-body-s);
}

.line-reader {
  position: fixed;
  overflow: hidden;
  pointer-events: none;
  display: none;
  z-index: 15;
}

.line-reader.active {
  display: block;
}

.line-reader-gap {
  position: relative;
  width: 100%;
  height: 100%;
}

.gap-overlay {
  position: absolute;
  left: 0;
  width: 100%;
  background-color: rgba(47, 55, 66, 0.68);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

.gap-overlay.top {
  top: 0;
}

.gap-overlay.bottom {
  top: 0;
}

.line-reader-window {
  position: absolute;
  left: 0;
  width: 100%;
  height: 9rem;
  background: rgba(255, 255, 255, 0.06);
  border-top: 0.2rem solid rgba(33, 43, 54, 0.55);
  border-bottom: 0.2rem solid rgba(33, 43, 54, 0.55);
  pointer-events: auto;
  cursor: default;
}

.line-reader-move-handle {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  width: 5.6rem;
  height: 2.8rem;
  border: 0.1rem solid rgba(40, 60, 89, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: rgba(32, 50, 77, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: grab;
  z-index: 2;
  box-shadow:
    0 0.32rem 0.9rem rgba(13, 22, 37, 0.1),
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.86);
  transition:
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 180ms ease,
    color 150ms ease;
}

.line-reader-move-handle:hover,
.line-reader-move-handle:focus-visible {
  border-color: rgba(40, 60, 89, 0.24);
  background: #ffffff;
  color: #20324d;
  box-shadow:
    0 0.46rem 1.1rem rgba(13, 22, 37, 0.12),
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.92);
  outline: 0.2rem solid rgba(214, 178, 84, 0.28);
  outline-offset: 0.18rem;
}

.line-reader-move-handle:active {
  cursor: grabbing;
}

.line-reader-resize-handle {
  position: absolute;
  top: 0.7rem;
  left: 1rem;
  width: 2.8rem;
  height: 5.4rem;
  border: 0.1rem solid rgba(40, 60, 89, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: rgba(32, 50, 77, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: ns-resize;
  z-index: 2;
  box-shadow:
    0 0.32rem 0.9rem rgba(13, 22, 37, 0.1),
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.86);
  transition:
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 180ms ease,
    color 150ms ease;
}

.line-reader-resize-handle:hover,
.line-reader-resize-handle:focus-visible {
  border-color: rgba(40, 60, 89, 0.24);
  background: #ffffff;
  color: #20324d;
  box-shadow:
    0 0.46rem 1.1rem rgba(13, 22, 37, 0.12),
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.92);
  outline: 0.2rem solid rgba(214, 178, 84, 0.28);
  outline-offset: 0.18rem;
}

.line-reader-move-handle .icon.medium,
.line-reader-resize-handle .icon.medium {
  width: 1.55rem;
  height: 1.55rem;
  opacity: 0.82;
}

.highlighted-text {
  background: #ffef85;
}

.highlighter-txt {
  background: var(--hl-bg-color);
  box-shadow: 0rem 0.125rem var(--hl-bg-color), 0rem -0.125rem var(--hl-bg-color);
  outline: 0.125rem solid var(--hl-border-color);
}

.highlighter-txt[data-color="yellow"] { --hl-bg-color: #ffd94d; --hl-border-color: #8a6d00; }
.highlighter-txt[data-color="pink"] { --hl-bg-color: #ffb6d5; --hl-border-color: #7a1f4f; }
.highlighter-txt[data-color="blue"] { --hl-bg-color: #9ed1ff; --hl-border-color: #1b4f7a; }
.highlighter-txt[data-color="green"] { --hl-bg-color: #9cffc8; --hl-border-color: #1f6b3a; }
.highlighter-txt[data-color="orange"] { --hl-bg-color: #ffb36b; --hl-border-color: #7a3a00; }

@media (max-width: 1100px) {
  .grid-row {
    width: 100%;
  }

  .qti-item-container {
    padding: 2rem;
  }

  .headerbar {
    padding: 0 1rem;
  }

  .logo {
    display: none;
  }
}

@media (max-width: 768px) {
  .navigator {
    flex-wrap: wrap;
    justify-content: center;
  }

  .progress-container {
    order: 3;
    width: 100%;
  }

  .drawer {
    width: 100%;
  }

  .overview.exam-overview {
    padding: 1.8rem 1.4rem 2.4rem;
  }

  #overview-panel-all,
  #overview-panel-bookmarked,
  #overview-panel-incomplete {
    gap: 1.4rem;
  }

  .overview-question-group.exam-overview {
    gap: 1.2rem;
    padding: 1.4rem;
  }
}

/* Modern visual refresh: same structure and palette, more polished surfaces. */
:root {
  --surface-shadow-soft: 0 1rem 2.8rem rgba(18, 18, 18, 0.08);
  --surface-shadow-medium: 0 1.6rem 4.2rem rgba(18, 18, 18, 0.12);
  --surface-shadow-strong: 0 2.4rem 6.4rem rgba(18, 18, 18, 0.18);
  --surface-radius-xl: 2.2rem;
  --surface-radius-lg: 1.8rem;
  --surface-radius-md: 1.4rem;
}

body {
  background:
    radial-gradient(circle at top left, rgba(230, 243, 255, 0.4) 0, rgba(230, 243, 255, 0) 22%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 72%, #f5f7fa 100%);
}

.top-bar,
.bottom-bar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(1.2rem);
  box-shadow: 0 0.8rem 2.4rem rgba(18, 18, 18, 0.05);
}

.headerbar,
.navigator {
  padding-left: 2.4rem;
  padding-right: 2.4rem;
}

.header-bar-content h1,
.qti-prompt,
.results-header h2,
.config-overlay-title {
  letter-spacing: -0.02em;
}

.icon-bar-btn,
.actionable,
.step,
.container,
.floating-bar,
.native-visual-panel,
.native-visual-frame,
.passage-image-frame,
.training-feedback,
.dialog,
.draggable-modal .contents,
.config-overlay-shell,
.overview-overlay-shell,
.submit-confirm-card,
.results-card,
.panel.exam-settings,
.tools-options,
.stats-card,
.results-review-item {
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.icon-bar-btn {
  border: 0.1rem solid rgba(18, 18, 18, 0.12);
  border-radius: var(--surface-radius-md);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.8), 0 0.6rem 1.8rem rgba(18, 18, 18, 0.06);
}

.icon-bar-btn:hover,
.icon-bar-btn:focus-visible,
.icon-bar-btn.active {
  transform: translateY(-0.1rem);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.8), 0 1rem 2.2rem rgba(18, 18, 18, 0.1);
}

.floating-bar {
  border-radius: 1.8rem;
  box-shadow: 0 1.2rem 3rem rgba(18, 18, 18, 0.14);
}

.actionable {
  border-width: 0.2rem;
  box-shadow: inset 0 -0.2rem 0 rgba(18, 18, 18, 0.08), 0 0.8rem 1.8rem rgba(18, 18, 18, 0.06);
  letter-spacing: 0.01em;
}

.actionable.secondary {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

.actionable:hover,
.actionable:focus-visible {
  transform: translateY(-0.1rem);
  box-shadow: inset 0 -0.2rem 0 rgba(18, 18, 18, 0.08), 0 1.2rem 2.6rem rgba(18, 18, 18, 0.1);
}

.step {
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.75), 0 0.6rem 1.6rem rgba(18, 18, 18, 0.06);
}

.step.current,
.step.completed,
.step.visited {
  box-shadow: 0 0.8rem 1.8rem rgba(18, 18, 18, 0.1);
}

.qti-item-container {
  padding-top: 3rem;
  padding-bottom: 8rem;
}

.grid-row {
  width: min(84%, 112rem);
}

.passage {
  padding: 2.8rem 0 2rem;
}

.passage-image-frame {
  padding: 2rem;
  border-color: #dce3ea;
  border-radius: var(--surface-radius-xl);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.8), var(--surface-shadow-soft);
}

.native-visual-frame {
  padding: 2rem;
  border-color: #dce3ea;
  border-radius: var(--surface-radius-xl);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.8), var(--surface-shadow-soft);
}

.passage-image {
  border-radius: 1.6rem;
  box-shadow: 0 1.2rem 3.6rem rgba(18, 18, 18, 0.08);
}

.native-visual-svg {
  border-radius: 1.6rem;
  box-shadow: 0 1.2rem 3.6rem rgba(18, 18, 18, 0.08);
}

.qti-prompt {
  margin: 2.4rem 0 1.8rem;
  font-size: 2.2rem;
  font-weight: 700;
}

.selectable-choice-container ul {
  gap: 1.2rem;
}

.container {
  border-radius: var(--surface-radius-lg);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.78), 0 0.8rem 2rem rgba(18, 18, 18, 0.05);
}

.caption-container {
  padding-top: 1.8rem;
  padding-bottom: 1.8rem;
  padding-left: 6.2rem;
}

.container::before {
  left: 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
  border-width: 0.25rem;
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.7);
}

.choice label:hover .container,
.choice label:focus-within .container {
  transform: translateY(-0.1rem);
  box-shadow: 0 1.1rem 2.6rem rgba(18, 18, 18, 0.09);
}

.choice input:checked + .container {
  box-shadow: 0 1.2rem 2.8rem rgba(0, 109, 204, 0.22);
}

.choice-eliminate-btn {
  border-radius: 999px;
}

.training-feedback,
.dialog,
.panel.exam-settings,
.summary-item,
.results-review-item {
  border-radius: var(--surface-radius-lg);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.8), 0 0.8rem 2rem rgba(18, 18, 18, 0.05);
}

.bottom-bar {
  box-shadow: 0 -0.8rem 2.4rem rgba(18, 18, 18, 0.05);
}

#bookmark-button,
.floating-bookmark-btn #bookmark-button {
  border-radius: 1.6rem;
  box-shadow: inset 0 -0.2rem 0 rgba(18, 18, 18, 0.08), 0 0.8rem 1.8rem rgba(18, 18, 18, 0.08);
}

.draggable-modal .contents,
.config-overlay-shell,
.overview-overlay-shell,
.submit-confirm-card,
.results-card {
  border-radius: 2.2rem;
  box-shadow: var(--surface-shadow-strong);
}

.scratchpad-modal .contents,
.calculator-modal .contents {
  overflow: hidden;
}

.scratchpad-tools {
  padding: 1.2rem 0.9rem;
  gap: 0.9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tools-options {
  border-radius: 1.2rem;
  box-shadow: var(--surface-shadow-medium);
}

.calculator .screen,
.calculator .key,
.scratchpad-text-input {
  border-radius: 1.2rem;
}

.calculator .keyboard {
  gap: 0.35rem;
  padding: 0.4rem;
  background: #f1f4f8;
}

.calculator .key {
  margin: 0;
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.7), 0 0.5rem 1.2rem rgba(18, 18, 18, 0.06);
}

.calculator .key:hover,
.calculator .key:focus-visible {
  transform: translateY(-0.1rem);
}

.config-overlay,
.overview-overlay,
.submit-confirm-overlay,
.results-overlay {
  backdrop-filter: blur(0.8rem);
}

.config-overlay-header,
.overview-overlay-header,
.results-header {
  box-shadow: inset 0 -0.1rem 0 rgba(255, 255, 255, 0.06);
}

.content.exam-settings,
.overview.exam-overview,
.results-body {
  background:
    radial-gradient(circle at top left, rgba(230, 243, 255, 0.35) 0, rgba(230, 243, 255, 0) 22%),
    #ffffff;
}

.panel.exam-settings {
  border-color: #d7dee6;
  border-radius: var(--surface-radius-lg);
}

.overview-overlay-shell,
.config-overlay-shell {
  background: #f8fafc;
}

.tabpanel.exam-overview,
.results-review,
.results-bars,
.results-hero {
  border-radius: var(--surface-radius-xl);
}

.results-card {
  border: 0.1rem solid rgba(18, 18, 18, 0.12);
  overflow: hidden;
}

.results-header {
  background: linear-gradient(180deg, #111111 0%, #1c1c1c 100%);
}

.results-body {
  padding: 2.8rem;
}

.results-hero,
.results-bar-card,
.results-review-item {
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.75), 0 0.9rem 2rem rgba(18, 18, 18, 0.06);
}

.results-hero {
  padding: 2rem;
}

.results-bar-card,
.results-review-item {
  border-radius: var(--surface-radius-lg);
}

.results-score-ring {
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.5), 0 1rem 2.4rem rgba(18, 18, 18, 0.08);
}

.submit-confirm-card {
  background:
    radial-gradient(circle at top left, rgba(230, 243, 255, 0.3) 0, rgba(230, 243, 255, 0) 24%),
    #ffffff;
}

.line-reader-move-handle,
.line-reader-resize-handle {
  border-radius: 999px;
  box-shadow:
    0 0.32rem 0.9rem rgba(13, 22, 37, 0.1),
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.86);
}

@media (max-width: 1100px) {
  .headerbar,
  .navigator {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }

  .grid-row {
    width: 100%;
  }
}

/* 2026 shared simulator visual refresh */
:root {
  --color-gs-light: #fcfaf6;
  --color-gs-light-alt: #f1ede5;
  --color-gs-light-hover: #e8e1d6;
  --color-gs-dark: #162624;
  --color-gs-dark-secondary: #63706d;
  --color-brand: #156f63;
  --color-brand-hover: #0f584f;
  --color-brand-light: #dff4ef;
  --color-border: rgba(22, 38, 36, 0.14);
  --color-bg-default: rgba(255, 255, 255, 0.84);
  --color-text-default: #162624;
  --color-text-inverted: #fcfaf6;
  --surface-radius-md: 1.4rem;
  --surface-radius-lg: 2rem;
  --surface-radius-xl: 2.8rem;
  --surface-shadow-soft: 0 1.4rem 3.6rem rgba(15, 28, 26, 0.08);
  --surface-shadow-medium: 0 2rem 4.6rem rgba(15, 28, 26, 0.12);
  --surface-shadow-strong: 0 3rem 7rem rgba(15, 28, 26, 0.18);
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) {
  color: var(--color-text-default);
  background:
    radial-gradient(circle at top left, rgba(21, 111, 99, 0.14) 0, rgba(21, 111, 99, 0) 22%),
    radial-gradient(circle at 88% 16%, rgba(255, 122, 68, 0.16) 0, rgba(255, 122, 68, 0) 20%),
    radial-gradient(circle at 14% 84%, rgba(10, 92, 157, 0.1) 0, rgba(10, 92, 157, 0) 22%),
    linear-gradient(180deg, #fbfaf7 0%, #f3efe7 56%, #ece7df 100%);
}

body:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green)::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0, rgba(255, 255, 255, 0) 42%),
    repeating-linear-gradient(135deg, rgba(22, 38, 36, 0.018) 0, rgba(22, 38, 36, 0.018) 0.1rem, transparent 0.1rem, transparent 1.3rem);
  opacity: 0.8;
}

#page,
.runner-component,
.test-runner,
main,
.bottom-bar,
.top-bar {
  position: relative;
  z-index: 1;
}

.top-bar,
.bottom-bar {
  background: rgba(249, 246, 240, 0.8);
  backdrop-filter: blur(2rem);
  border-color: rgba(22, 38, 36, 0.08);
}

.top-bar {
  box-shadow: 0 1rem 3rem rgba(15, 28, 26, 0.06);
}

.bottom-bar {
  box-shadow: 0 -1rem 3rem rgba(15, 28, 26, 0.06);
}

.headerbar,
.navigator {
  max-width: min(176rem, calc(100% - 2rem));
  margin: 0 auto;
}

.breadcrumb,
.timer-label,
.question-source,
.floating-bar header,
.actionable,
.step,
#bookmark-button,
.choice-content-label-only,
.qti-prompt,
.dialog header,
.results-header,
.step-label.exam-step {
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.icon-bar-btn {
  border: 0.1rem solid rgba(22, 38, 36, 0.08);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.85), 0 0.8rem 1.8rem rgba(15, 28, 26, 0.06);
}

.icon-bar-btn:hover,
.icon-bar-btn:focus-visible,
.icon-bar-btn.active,
.icon-bar-btn.toggled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.92), 0 1.2rem 2.4rem rgba(15, 28, 26, 0.1);
}

.floating-bar {
  background: rgba(18, 32, 30, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 1.4rem 3.2rem rgba(0, 0, 0, 0.22);
}

main {
  background: transparent;
}

.qti-item-container {
  padding-top: 3rem;
  padding-bottom: 7rem;
}

.grid-row {
  width: min(88%, 120rem);
}

.passage,
.qti-interaction,
.dialog,
.panel.exam-settings,
.config-overlay-shell,
.overview-overlay-shell,
.submit-confirm-card,
.results-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 243, 236, 0.76) 100%);
  border: 0.1rem solid rgba(22, 38, 36, 0.08);
  backdrop-filter: blur(1.6rem);
}

.passage,
.qti-interaction {
  border-radius: 2.4rem;
  box-shadow: var(--surface-shadow-soft);
}

.passage {
  padding: 2.8rem 3rem;
}

.qti-interaction {
  padding: 0.8rem 3rem 3rem;
}

.question-source {
  color: #566462;
  letter-spacing: 0.02em;
}

.passage-image-frame {
  border-color: rgba(22, 38, 36, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 241, 235, 0.84) 100%);
}

.qti-prompt {
  font-size: 2.4rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.choice label {
  transition: transform 0.16s ease;
}

.container {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 241, 234, 0.88) 100%);
  border-color: rgba(22, 38, 36, 0.08);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}

.container::before {
  border-color: rgba(22, 38, 36, 0.28);
  background: rgba(255, 255, 255, 0.9);
}

.choice label:hover,
.choice label:focus-within {
  transform: translateY(-0.1rem);
}

.choice label:hover .container,
.choice label:focus-within .container {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(240, 250, 247, 0.96) 100%);
  border-color: rgba(21, 111, 99, 0.18);
  color: var(--color-text-default);
}

.choice input:checked + .container {
  background: linear-gradient(135deg, #17312d 0%, #156f63 100%);
  border-color: transparent;
  color: #fcfaf6;
}

.choice input:checked + .container::before {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.12);
}

.choice input:checked + .container::after {
  background: #ffffff;
  box-shadow: 0 0 0 0.4rem rgba(255, 255, 255, 0.16);
}

.choice.training-correct .container,
.choice.training-correct input:checked + .container,
.choice.training-correct label:hover .container,
.choice.training-correct label:focus-within .container {
  background: linear-gradient(180deg, #f1fbf5 0%, #e3f6ea 100%);
  color: #143425;
  border-color: rgba(25, 120, 71, 0.24);
}

.choice.training-incorrect .container,
.choice.training-incorrect input:checked + .container,
.choice.training-incorrect label:hover .container,
.choice.training-incorrect label:focus-within .container {
  background: linear-gradient(180deg, #fff7f3 0%, #ffe7df 100%);
  color: #4a2318;
  border-color: rgba(196, 88, 51, 0.24);
}

.choice-eliminate-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(22, 38, 36, 0.12);
}

.actionable,
#bookmark-button,
.floating-bookmark-btn #bookmark-button {
  border-color: rgba(22, 38, 36, 0.08);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.86), 0 0.8rem 2rem rgba(15, 28, 26, 0.06);
}

.actionable.primary,
.actionable.exam-action:not(.secondary) {
  background: linear-gradient(135deg, #182e2a 0%, #156f63 100%);
  border-color: transparent;
  color: #fcfaf6;
}

.actionable.secondary {
  color: #1f2f2d;
}

.actionable:hover,
.actionable:focus-visible,
#bookmark-button:hover,
#bookmark-button:focus-visible {
  transform: translateY(-0.1rem);
  background: rgba(255, 255, 255, 0.96);
}

.actionable.primary:hover,
.actionable.primary:focus-visible,
.actionable.exam-action:not(.secondary):hover,
.actionable.exam-action:not(.secondary):focus-visible {
  background: linear-gradient(135deg, #112220 0%, #0f584f 100%);
}

.steps {
  gap: 0.7rem;
}

.step,
button.step.exam-step {
  border-color: rgba(22, 38, 36, 0.08);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.85), 0 0.6rem 1.4rem rgba(15, 28, 26, 0.05);
}

.step.current,
.step.completed,
button.step.exam-step.current,
button.step.exam-step.completed {
  background: linear-gradient(135deg, #17312d 0%, #156f63 100%);
  border-color: transparent;
  color: #fcfaf6;
}

.step.visited,
button.step.exam-step.visited {
  background: linear-gradient(180deg, #fff8ef 0%, #f8ecd9 100%);
  color: #7a5b1c;
  border-color: rgba(163, 109, 6, 0.2);
}

.scratchpad-modal .contents,
.calculator-modal .contents,
.submit-confirm-card,
.results-card,
.config-overlay-shell,
.overview-overlay-shell {
  background:
    radial-gradient(circle at top left, rgba(21, 111, 99, 0.08) 0, rgba(21, 111, 99, 0) 22%),
    linear-gradient(180deg, rgba(252, 250, 246, 0.98) 0%, rgba(243, 239, 231, 0.96) 100%);
}

.config-overlay,
.overview-overlay,
.submit-confirm-overlay,
.results-overlay,
.scratchpad-modal,
.calculator-modal {
  backdrop-filter: blur(1rem);
}

.results-header {
  background: linear-gradient(135deg, #162624 0%, #23443f 100%);
}

@media (max-width: 1100px) {
  .grid-row {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .passage,
  .qti-interaction {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .qti-item-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* 2026 advanced exam platform refresh */
.headerbar {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.headerbar aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--header-tool-gap, 1rem);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.logo img {
  filter: drop-shadow(0 1rem 1.8rem rgba(15, 28, 26, 0.08));
}

.header-bar-content {
  gap: 0.4rem;
}

.breadcrumb {
  gap: 1.2rem;
}

.crumb {
  position: relative;
}

.crumb.with-timer {
  margin-left: 0.4rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 0.1rem solid rgba(22, 38, 36, 0.08);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.86);
}

.timer-label {
  color: #114f48;
  letter-spacing: 0.02em;
}

.floating-toolbars-wrapper {
  margin-top: 1.4rem;
  margin-right: 3.2rem;
}

.floating-bar.inverted {
  background:
    linear-gradient(135deg, rgba(16, 29, 31, 0.96) 0%, rgba(20, 56, 52, 0.94) 100%);
  border: 0.1rem solid rgba(255, 255, 255, 0.1);
  min-width: 54rem;
}

.floating-bar-main {
  width: 100%;
  justify-content: space-between;
}

.floating-bar header {
  letter-spacing: 0.08em;
  font-size: 1.35rem;
}

.highlighter-bar button {
  transition: transform 0.14s ease, background 0.14s ease;
}

.highlighter-bar button:hover,
.highlighter-bar button:focus-visible {
  transform: translateY(-0.1rem);
}

.test-content-columns {
  position: relative;
  z-index: 1;
}

.qti-item-container {
  width: min(150rem, 100%);
  padding-top: 9.6rem;
}

.qti-item {
  display: grid;
  gap: 2.2rem;
}

.grid-row {
  width: min(92%, 118rem);
  margin-bottom: 0;
}

.passage,
.qti-interaction {
  position: relative;
}

.passage::before,
.qti-interaction::before {
  display: none;
  align-items: center;
  min-height: 3.2rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.passage::before {
  content: "Passage";
  margin-bottom: 0;
  color: #0f5c52;
  background: rgba(21, 111, 99, 0.1);
}

.qti-interaction::before {
  content: "Question";
  margin: 0;
  color: #8b4a1f;
  background: rgba(255, 122, 68, 0.12);
}

.passage,
.qti-interaction {
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.9),
    0 1.2rem 3rem rgba(15, 28, 26, 0.06),
    0 0 0 0.1rem rgba(22, 38, 36, 0.03);
}

.passage {
  padding: 2.6rem 3rem 2.8rem;
}

.passage p {
  font-size: 2.05rem;
  line-height: 1.78;
}

.qti-interaction {
  padding-top: 0;
  padding-bottom: 3rem;
}

.qti-prompt {
  max-width: 88rem;
  margin-top: 1.4rem;
  margin-bottom: 2rem;
  font-size: clamp(2.3rem, 1.9vw, 2.9rem);
}

.question-timer-card {
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
  z-index: 7;
  width: auto;
  min-width: 16rem;
  max-width: min(100%, 24rem);
  margin: 0.9rem 0 0 auto;
  padding: 1.2rem 1.6rem;
  border-radius: 999px;
  border: 0.1rem solid rgba(21, 111, 99, 0.14);
  background:
    radial-gradient(circle at top left, rgba(21, 111, 99, 0.1) 0, rgba(21, 111, 99, 0) 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 249, 246, 0.9) 100%);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.9),
    0 1.6rem 3.8rem rgba(15, 28, 26, 0.14),
    0 0 0 0.1rem rgba(22, 38, 36, 0.04);
  backdrop-filter: blur(1.6rem);
  pointer-events: none;
}

.question-timer-kicker,
.question-timer-context,
.question-timer-meta {
  display: none;
}

.question-timer-main {
  display: block;
}

.question-timer-value-block {
  display: block;
}

.question-timer-value {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  display: block;
  font-size: clamp(2.6rem, 2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: #17312d;
}

.question-timer-progress {
  display: none;
}

.question-timer-progress-fill {
  display: none;
}

.question-timer-card.is-warning {
  border-color: rgba(230, 122, 54, 0.22);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 68, 0.14) 0, rgba(255, 122, 68, 0) 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 244, 236, 0.92) 100%);
}

.question-timer-card.is-warning .question-timer-value {
  color: #8b4a1f;
}

.question-timer-card.is-expired {
  border-color: rgba(186, 64, 39, 0.22);
  background:
    radial-gradient(circle at top left, rgba(201, 79, 52, 0.16) 0, rgba(201, 79, 52, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 237, 232, 0.94) 100%);
}

.question-timer-card.is-expired .question-timer-value {
  color: #8d2d18;
}

.selectable-choice-container ul {
  gap: 1.4rem;
}

.choice {
  position: relative;
}

.container {
  overflow: hidden;
}

.container::after {
  transition: box-shadow 0.16s ease, background 0.16s ease;
}

.caption-container {
  padding-right: 6rem;
}

.choice-content {
  display: block;
  line-height: 1.55;
}

.choice:not(.eliminated) .container::selection,
.choice-content::selection,
.passage p::selection {
  background: rgba(21, 111, 99, 0.18);
}

.choice label:hover .container,
.choice label:focus-within .container {
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.92),
    0 1.3rem 3rem rgba(15, 28, 26, 0.09),
    0 0 0 0.1rem rgba(21, 111, 99, 0.08);
}

.choice input:checked + .container {
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.08),
    0 1.8rem 3.8rem rgba(21, 111, 99, 0.22);
}

.choice input:checked + .container .choice-content {
  text-shadow: 0 0.1rem 0 rgba(0, 0, 0, 0.08);
}

.choice-eliminate-btn {
  width: 3.4rem;
  height: 3.4rem;
}

.choice-eliminate-btn::after {
  content: none;
}

.bottom-bar {
  height: auto;
  min-height: var(--testrunner-footer-height);
  padding: 1.2rem 1.6rem 1.6rem;
  background: transparent;
  border-top: none;
}

.navigator {
  min-height: 7.8rem;
  padding: 1rem 1.2rem;
  border-radius: 2.8rem;
  border: 0.1rem solid rgba(22, 38, 36, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(245, 241, 233, 0.78) 100%);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.9),
    0 1.4rem 3.4rem rgba(15, 28, 26, 0.09);
  backdrop-filter: blur(1.8rem);
}

.progress-container {
  min-width: 0;
}

.steps {
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.88);
  scrollbar-width: none;
}

.steps::-webkit-scrollbar {
  display: none;
}

.step,
button.step.exam-step {
  width: 4.6rem;
  height: 4.6rem;
  flex: 0 0 auto;
}

.actionable,
#bookmark-button,
.floating-bookmark-btn #bookmark-button {
  min-height: 5.6rem;
  height: 5.6rem;
}

.button-container {
  gap: 0.8rem;
}

.overview-container .actionable.secondary {
  background: rgba(255, 255, 255, 0.9);
}

.floating-bookmark-btn {
  right: 2.4rem;
  bottom: calc(var(--testrunner-footer-height) + 2.2rem);
}

.modal-background {
  background:
    radial-gradient(circle at top left, rgba(21, 111, 99, 0.16) 0, rgba(21, 111, 99, 0) 26%),
    rgba(9, 17, 20, 0.72);
  backdrop-filter: blur(1rem);
}

.dialog {
  padding: 2.4rem;
}

.dialog textarea {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 1.6rem;
}

.draggable-modal .contents {
  box-shadow: 0 2rem 5rem rgba(15, 28, 26, 0.16);
}

.draggable-modal .header.inverted {
  background: linear-gradient(135deg, #142625 0%, #254541 100%);
}

.config-overlay-header,
.overview-overlay-header {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0) 24%),
    linear-gradient(135deg, #162624 0%, #254541 100%);
}

.inverted.exam-overlay-bar {
  background: transparent;
}

.config-overlay-title,
.results-header h2 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

.overlay-content.exam-overlay,
.overview-overlay,
.overview-overlay-footer {
  background:
    radial-gradient(circle at top left, rgba(21, 111, 99, 0.06) 0, rgba(21, 111, 99, 0) 24%),
    linear-gradient(180deg, #faf8f4 0%, #f1ece4 100%);
}

.content.exam-settings,
.overview.exam-overview {
  max-width: 112rem;
}

.scrollbox.exam-tabs > ul.exam-tabs {
  gap: 2.4rem;
  border-bottom-color: rgba(22, 38, 36, 0.1);
}

button.exam-tabs[role="tab"] {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

button.exam-tabs[role="tab"][aria-selected="true"] {
  color: #114f48;
  border-bottom-color: #156f63;
}

.submit-confirm-card {
  width: min(68rem, calc(100vw - 4rem));
}

.submit-confirm-card p {
  color: #5f6b68;
}

.results-header {
  padding: 2.2rem 2.6rem;
}

@media (max-width: 980px) {
  .navigator {
    flex-wrap: wrap;
    justify-content: center;
  }

  .progress-container {
    order: 3;
    flex-basis: 100%;
  }

  .steps {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .headerbar {
    --header-tool-button-size: 3.8rem;
  }

  .headerbar {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .headerbar aside {
    padding: 0.5rem;
  }

  .tool-menu-toggle.icon-bar-btn.base-16 {
    padding: 0;
  }

  .tool-menu-panel {
    max-width: calc(100vw - 7rem);
    padding: 0;
  }

  .crumb.with-timer {
    padding: 0.5rem 1rem;
  }

  .floating-bar.inverted {
    min-width: auto;
    width: calc(100vw - 3rem);
  }

  .passage,
  .qti-interaction {
    border-radius: 2rem;
  }

  .passage p {
    font-size: 1.9rem;
  }

  .bottom-bar {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .navigator {
    border-radius: 2rem;
  }

  .test-content-columns {
    padding-right: 0;
  }

  .qti-item-container {
    padding-top: 8.8rem;
    padding-bottom: 13rem;
  }

  .question-timer-card {
    min-width: 14rem;
    max-width: min(100%, 20rem);
    margin-top: 0.7rem;
    padding: 1.1rem 1.4rem;
    border-radius: 1.8rem;
  }
}

/* 2026 monochrome exam theme */
:root {
  --color-gs-light: #ffffff;
  --color-gs-light-alt: #f2f2f2;
  --color-gs-light-hover: #e5e5e5;
  --color-gs-dark: #111111;
  --color-gs-dark-secondary: #666666;
  --color-brand: #111111;
  --color-brand-hover: #2a2a2a;
  --color-brand-light: #efefef;
  --color-border: rgba(17, 17, 17, 0.14);
  --color-bg-default: rgba(255, 255, 255, 0.92);
  --color-text-default: #111111;
  --color-text-inverted: #ffffff;
}

body:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) {
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.06) 0, rgba(0, 0, 0, 0) 24%),
    radial-gradient(circle at 88% 16%, rgba(120, 120, 120, 0.08) 0, rgba(120, 120, 120, 0) 20%),
    linear-gradient(180deg, #fafafa 0%, #f1f1f1 56%, #e9e9e9 100%);
}

body:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green)::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0, rgba(255, 255, 255, 0) 42%),
    repeating-linear-gradient(135deg, rgba(17, 17, 17, 0.015) 0, rgba(17, 17, 17, 0.015) 0.1rem, transparent 0.1rem, transparent 1.3rem);
}

.top-bar,
.bottom-bar {
  background: rgba(248, 248, 248, 0.82);
  border-color: rgba(17, 17, 17, 0.08);
}

.timer-label,
.question-source,
.separator {
  color: #5f5f5f;
}

.icon-bar-btn,
.actionable,
#bookmark-button,
.floating-bookmark-btn #bookmark-button,
.step,
button.step.exam-step {
  border-color: rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: #111111;
}

.floating-bar.inverted,
.draggable-modal .header.inverted,
.config-overlay-header,
.overview-overlay-header,
.results-header {
  background:
    linear-gradient(135deg, #111111 0%, #2a2a2a 100%);
}

.passage,
.qti-interaction,
.dialog,
.panel.exam-settings,
.config-overlay-shell,
.overview-overlay-shell,
.submit-confirm-card,
.results-card,
.scratchpad-modal .contents,
.calculator-modal .contents,
.navigator {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 242, 242, 0.9) 100%);
  border-color: rgba(17, 17, 17, 0.08);
}

.passage::before,
.qti-interaction::before {
  color: #111111;
  background: rgba(17, 17, 17, 0.08);
}

.question-timer-card {
  border-color: rgba(17, 17, 17, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 242, 242, 0.92) 100%);
}

.question-timer-value,
.question-timer-card.is-warning .question-timer-value,
.question-timer-card.is-expired .question-timer-value {
  color: #111111;
}

.question-timer-card.is-warning,
.question-timer-card.is-expired {
  border-color: rgba(17, 17, 17, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(235, 235, 235, 0.94) 100%);
}

.container {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 243, 243, 0.9) 100%);
  border-color: rgba(17, 17, 17, 0.08);
}

.container::before {
  border-color: rgba(17, 17, 17, 0.25);
  background: rgba(255, 255, 255, 0.96);
}

.choice label:hover .container,
.choice label:focus-within .container {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(238, 238, 238, 0.96) 100%);
  border-color: rgba(17, 17, 17, 0.16);
  color: #111111;
}

.choice input:checked + .container,
.step.current,
.step.completed,
button.step.exam-step.current,
button.step.exam-step.completed,
.actionable.primary,
.actionable.exam-action:not(.secondary) {
  background: linear-gradient(135deg, #111111 0%, #303030 100%);
  border-color: transparent;
  color: #ffffff;
}

.choice input:checked + .container::before {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.choice input:checked + .container::after {
  background: #ffffff;
  box-shadow: 0 0 0 0.4rem rgba(255, 255, 255, 0.14);
}

.choice.training-correct .container,
.choice.training-correct input:checked + .container,
.choice.training-correct label:hover .container,
.choice.training-correct label:focus-within .container {
  background: linear-gradient(180deg, #f5f5f5 0%, #ebebeb 100%);
  color: #111111;
  border-color: rgba(17, 17, 17, 0.16);
}

.choice.training-incorrect .container,
.choice.training-incorrect input:checked + .container,
.choice.training-incorrect label:hover .container,
.choice.training-incorrect label:focus-within .container {
  background: linear-gradient(180deg, #f0f0f0 0%, #e4e4e4 100%);
  color: #111111;
  border-color: rgba(17, 17, 17, 0.16);
}

.step.visited,
button.step.exam-step.visited {
  background: linear-gradient(180deg, #f4f4f4 0%, #e8e8e8 100%);
  color: #111111;
  border-color: rgba(17, 17, 17, 0.16);
}

button.exam-tabs[role="tab"][aria-selected="true"] {
  color: #111111;
  border-bottom-color: #111111;
}

.overlay-content.exam-overlay,
.overview-overlay,
.overview-overlay-footer {
  background:
    linear-gradient(180deg, #fafafa 0%, #efefef 100%);
}

/* Abstract reasoning image-first layout */
body.abstract-mode .qti-item {
  grid-template-rows: minmax(0, 1.35fr) minmax(0, 0.92fr);
}

body.abstract-mode main {
  overflow-x: hidden;
}

body.abstract-mode .passage {
  padding: 0.24rem 1.2rem 0.4rem;
  gap: 0.8rem;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow-x: hidden;
}

body.abstract-mode .passage::before {
  margin-bottom: 0;
}

body.abstract-mode .passage-image-frame {
  position: relative;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  padding: 0.08rem 0.4rem 0.2rem;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  touch-action: pan-y;
}

body.abstract-mode .passage-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  border-radius: 1.2rem;
  background: #ffffff;
}

body.abstract-mode .passage-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translateY(var(--abstract-image-offset-y, 0px));
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.95));
}

body.abstract-mode .founder-graphic-frame {
  grid-row: 1;
  display: grid;
  gap: 10px;
  width: 100%;
  min-height: 0;
  padding: 0 13px 4px;
  overflow-x: hidden;
}

body.abstract-mode .founder-graphic-row {
  display: grid;
  gap: 7px;
  min-height: 0;
  overflow: visible;
}

body.abstract-mode .founder-graphic-row-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #1e4267;
}

body.abstract-mode .founder-graphic-row-title.is-divider {
  height: 0;
  min-height: 0;
  border-top: 2px solid #0d2237;
  font-size: 0;
  line-height: 0;
  color: transparent;
  overflow: hidden;
}

body.abstract-mode .founder-graphic-strip {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  min-height: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 24px clamp(0.8rem, 1.6vw, 2rem);
  touch-action: pan-y;
}

body.abstract-mode .founder-graphic-row.is-options .founder-graphic-strip {
  justify-content: center;
}

body.abstract-mode .founder-graphic-row.is-options {
  width: fit-content;
  max-width: 100%;
  justify-self: center;
}

body.abstract-mode .founder-graphic-row.is-options .founder-graphic-strip {
  width: fit-content;
  max-width: 100%;
}

body.abstract-mode .founder-graphic-row.is-options .founder-graphic-row-title.is-divider {
  width: 100%;
  max-width: 100%;
}

body.abstract-mode .founder-graphic-cell-stack {
  width: 180px;
  min-width: 180px;
  display: grid;
  grid-template-rows: auto 180px;
}

body.abstract-mode .founder-graphic-cell-head {
  min-height: 21px;
  border: 2px solid #0d2237;
  border-bottom: 0;
  border-radius: 0;
  background: #111111;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.abstract-mode .founder-graphic-cell {
  position: relative;
  width: 100%;
  height: 100%;
  border: 2px solid #0d2237;
  border-top: 0;
  border-radius: 0;
  background-color: #ffffff;
  overflow: hidden;
  isolation: isolate;
}

body.abstract-mode .founder-graphic-cell.is-missing-target {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.abstract-mode .founder-graphic-cell.is-missing-target::after {
  background-image: none;
}

body.abstract-mode .founder-graphic-missing-mark {
  position: relative;
  z-index: 1;
  font-size: 4.2rem;
  line-height: 1;
  font-weight: 900;
  color: #0d2237;
}

body.abstract-mode .founder-graphic-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
}

body.abstract-mode .founder-graphic-cell[data-guide="none"]::after {
  background-image: none;
}

body.abstract-mode .founder-graphic-cell[data-guide="grid-10x10"]::after {
  background-image:
    linear-gradient(to right, rgba(16, 50, 84, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 50, 84, 0.4) 1px, transparent 1px);
  background-size: calc(100% / 10) 100%, 100% calc(100% / 10);
  background-position: calc(100% / 10) 0, 0 calc(100% / 10);
  background-repeat: repeat-x, repeat-y;
}

body.abstract-mode .founder-graphic-cell[data-guide="grid-2x2"]::after {
  background-image:
    linear-gradient(to right, rgba(16, 50, 84, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 50, 84, 0.4) 1px, transparent 1px);
  background-size: calc(100% / 2) 100%, 100% calc(100% / 2);
  background-position: calc(100% / 2) 0, 0 calc(100% / 2);
  background-repeat: no-repeat;
}

body.abstract-mode .founder-graphic-cell[data-guide="grid-3x3"]::after {
  background-image:
    linear-gradient(to right, rgba(16, 50, 84, 0.4) 1px, transparent 1px),
    linear-gradient(to right, rgba(16, 50, 84, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 50, 84, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 50, 84, 0.4) 1px, transparent 1px);
  background-size:
    calc(100% / 3) 100%,
    calc(100% / 3) 100%,
    100% calc(100% / 3),
    100% calc(100% / 3);
  background-position:
    calc(100% / 3) 0,
    calc((100% / 3) * 2) 0,
    0 calc(100% / 3),
    0 calc((100% / 3) * 2);
  background-repeat: no-repeat;
}

body.abstract-mode .founder-graphic-cell[data-guide="grid-2x3"]::after {
  background-image:
    linear-gradient(to right, rgba(16, 50, 84, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 50, 84, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 50, 84, 0.4) 1px, transparent 1px);
  background-size:
    calc(100% / 2) 100%,
    100% calc(100% / 3),
    100% calc(100% / 3);
  background-position:
    calc(100% / 2) 0,
    0 calc(100% / 3),
    0 calc((100% / 3) * 2);
  background-repeat: no-repeat;
}

body.abstract-mode .founder-graphic-cell[data-guide="grid-3x2"]::after {
  background-image:
    linear-gradient(to right, rgba(16, 50, 84, 0.4) 1px, transparent 1px),
    linear-gradient(to right, rgba(16, 50, 84, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 50, 84, 0.4) 1px, transparent 1px);
  background-size:
    calc(100% / 3) 100%,
    calc(100% / 3) 100%,
    100% calc(100% / 2);
  background-position:
    calc(100% / 3) 0,
    calc((100% / 3) * 2) 0,
    0 calc(100% / 2);
  background-repeat: no-repeat;
}

body.abstract-mode .founder-graphic-cell[data-guide="diag-main"]::after {
  background-image: linear-gradient(
    135deg,
    transparent calc(50% - 1px),
    rgba(16, 50, 84, 0.4) calc(50% - 1px),
    rgba(16, 50, 84, 0.4) calc(50% + 1px),
    transparent calc(50% + 1px)
  );
}

body.abstract-mode .founder-graphic-cell[data-guide="diag-anti"]::after {
  background-image: linear-gradient(
    45deg,
    transparent calc(50% - 1px),
    rgba(16, 50, 84, 0.4) calc(50% - 1px),
    rgba(16, 50, 84, 0.4) calc(50% + 1px),
    transparent calc(50% + 1px)
  );
}

body.abstract-mode .founder-graphic-cell[data-guide="diag-cross"]::after {
  background-image:
    linear-gradient(
      135deg,
      transparent calc(50% - 1px),
      rgba(16, 50, 84, 0.4) calc(50% - 1px),
      rgba(16, 50, 84, 0.4) calc(50% + 1px),
      transparent calc(50% + 1px)
    ),
    linear-gradient(
      45deg,
      transparent calc(50% - 1px),
      rgba(16, 50, 84, 0.4) calc(50% - 1px),
      rgba(16, 50, 84, 0.4) calc(50% + 1px),
      transparent calc(50% + 1px)
    );
}

body.abstract-mode .founder-graphic-token {
  position: absolute;
  display: block;
  line-height: 0;
  pointer-events: none;
  color: #111111;
  z-index: 1;
}

body.abstract-mode .founder-graphic-token.is-light-shape {
  filter: drop-shadow(0 0 1px rgba(11, 28, 44, 0.95));
}

body.abstract-mode .founder-graphic-shape {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  color: inherit;
}

body.abstract-mode .question-source {
  grid-row: 2;
  justify-self: end;
  font-size: 1.2rem;
}

body.abstract-mode .selectable-choice-container ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: stretch;
}

body.abstract-mode .choice {
  min-width: 0;
}

body.abstract-mode .choice label {
  height: 100%;
}

body.abstract-mode .choice .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6rem;
  height: 100%;
}

body.abstract-mode .choice .container::before,
body.abstract-mode .choice input:checked + .container::after {
  display: none;
}

body.abstract-mode .choice .caption-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.2rem;
  text-align: center;
}

body.abstract-mode .choice .choice-content,
body.abstract-mode .choice .choice-content-label-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 980px) {
  body.abstract-mode .qti-item {
    grid-template-rows: minmax(0, 1.43fr) minmax(0, 0.86fr);
  }
}

/* 2026 no-vertical-scroll exam viewport */
main {
  overflow: hidden;
}

.test-content-columns {
  height: 100%;
  align-items: stretch;
}

.qti-item-container {
  height: 100%;
  padding: 8.8rem 2.2rem 1.8rem;
}

.qti-item {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1.15fr) minmax(0, 1.08fr);
  gap: 0.18rem;
  align-items: stretch;
}

.qti-item > .grid-row {
  width: 100%;
  min-height: 0;
  margin: 0;
}

.qti-item > .grid-row:first-of-type {
  grid-column: 1;
  grid-row: 1;
}

.qti-item > .grid-row:last-of-type {
  grid-column: 1;
  grid-row: 2;
}

.qti-item > .grid-row > .col-12 {
  height: 100%;
}

.passage,
.qti-interaction {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.passage {
  padding: 2.1rem 2.3rem 2rem;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 1.2rem;
}

.passage::before {
  margin-bottom: 0;
}

.passage p {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.58;
  overflow: hidden;
}

.passage-image-frame {
  height: auto;
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.native-visual-frame {
  height: auto;
  min-height: 0;
  padding: 0.2rem 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.passage-image {
  display: block;
  width: 100%;
  max-height: 100%;
  margin: 0 auto;
  background: transparent;
}

.native-visual-svg {
  display: block;
  width: 100%;
  min-width: 56rem;
  max-height: none;
  margin: 0 auto;
  background:
    radial-gradient(circle at top left, rgba(0, 109, 204, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.question-source {
  margin-top: 0;
  width: 100%;
  padding-top: 1rem;
  border-top: 0.1rem solid rgba(22, 38, 36, 0.08);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qti-interaction {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 1rem;
  padding: 2rem 2.2rem 2rem;
}

.qti-interaction::before {
  margin: 0;
}

.qti-prompt {
  max-width: none;
  margin: 0;
  font-size: clamp(1.95rem, 1.4vw, 2.35rem);
  line-height: 1.28;
}

.selectable-choice-container {
  min-height: 0;
}

.selectable-choice-container ul {
  height: 100%;
  align-content: start;
  gap: 0.85rem;
}

.choice {
  min-height: 0;
}

.container {
  min-height: 0;
}

.caption-container {
  padding: 1.15rem 4.8rem 1.15rem 4.8rem;
}

.container::before {
  left: 1.6rem;
  width: 1.7rem;
  height: 1.7rem;
}

.choice input:checked + .container::after {
  left: 2.45rem;
}

.choice-content {
  font-size: 1.65rem;
  line-height: 1.4;
}

.choice-eliminate-btn {
  right: 0.85rem;
  width: 3.2rem;
  height: 3.2rem;
}

.choice-elimination-enabled .caption-container {
  padding-right: 4.8rem;
}

.bottom-bar {
  padding-top: 0.9rem;
  padding-bottom: 1rem;
}

.navigator {
  min-height: 6.8rem;
}

.steps {
  gap: 0.6rem;
}

.step,
button.step.exam-step {
  width: 4rem;
  height: 4rem;
  font-size: 1.5rem;
}

.actionable,
#bookmark-button,
.floating-bookmark-btn #bookmark-button {
  min-height: 5rem;
  height: 5rem;
}

.floating-bookmark-btn {
  bottom: calc(var(--testrunner-footer-height) + 1.6rem);
}

@media (max-width: 1200px) {
  .qti-item-container {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }

  .passage {
    padding: 1.8rem 1.9rem;
  }

  .qti-interaction {
    padding: 1.8rem;
  }

  .passage p {
    font-size: 1.7rem;
  }

  .choice-content {
    font-size: 1.55rem;
  }
}

@media (max-width: 980px) {
  .qti-item-container {
    padding-top: 8.2rem;
    padding-bottom: 1.4rem;
  }

  .qti-item {
    grid-template-rows: minmax(0, 1.1fr) minmax(0, 1.12fr);
  }

  .passage p {
    font-size: 1.62rem;
    line-height: 1.48;
  }

  .qti-prompt {
    font-size: 1.85rem;
  }

  .choice-content {
    font-size: 1.5rem;
  }
}

@media (max-width: 720px) {
  main {
    height: calc(100% - var(--testrunner-header-height) - var(--testrunner-footer-height));
  }

  .qti-item-container {
    padding: 7.8rem 1rem 1rem;
  }

  .qti-item {
    gap: 0.15rem;
  }

  .passage,
  .qti-interaction {
    border-radius: 1.7rem;
  }

  .passage {
    padding: 1.5rem;
    gap: 0.9rem;
  }

  .qti-interaction {
    padding: 1.5rem;
    gap: 0.8rem;
  }

  .passage p,
  .choice-content {
    font-size: 1.42rem;
    line-height: 1.34;
  }

  .qti-prompt {
    font-size: 1.7rem;
  }

  .caption-container {
    padding: 0.95rem 4rem 0.95rem 4.2rem;
  }

  .container::before {
    left: 1.35rem;
    width: 1.5rem;
    height: 1.5rem;
  }

  .choice input:checked + .container::after {
    left: 2.1rem;
  }

  .question-timer-card {
    top: calc(var(--testrunner-header-height) + 0.8rem);
    padding: 0.9rem 1.2rem;
  }

  .question-timer-value {
    font-size: 2.4rem;
  }

  .navigator {
    min-height: 6rem;
    padding: 0.8rem;
  }

  .step,
  button.step.exam-step {
    width: 3.6rem;
    height: 3.6rem;
    font-size: 1.35rem;
  }
}

/* 2026 premium monochrome exam finish */
.top-bar,
.bottom-bar,
.navigator,
.passage,
.qti-interaction,
.question-timer-card,
.dialog,
.panel.exam-settings,
.config-overlay-shell,
.overview-overlay-shell,
.submit-confirm-card,
.results-card,
.scratchpad-modal .contents,
.calculator-modal .contents {
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.92),
    0 1.8rem 4.8rem rgba(12, 12, 12, 0.08);
}

.top-bar,
.bottom-bar {
  background: rgba(249, 249, 249, 0.84);
}

.headerbar aside {
  background: transparent;
  border-color: transparent;
}

.question-timer-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 244, 244, 0.94) 100%);
}

.passage,
.qti-interaction {
  border-color: rgba(17, 17, 17, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 244, 244, 0.9) 100%);
}

.passage p {
  color: #1b1b1b;
}

.qti-prompt {
  color: #111111;
  letter-spacing: -0.03em;
}

.container {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 245, 245, 0.92) 100%);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.94),
    0 0.8rem 2.2rem rgba(12, 12, 12, 0.05);
}

.choice label:hover .container,
.choice label:focus-within .container {
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.96),
    0 1.2rem 2.8rem rgba(12, 12, 12, 0.08);
}

.choice input:checked + .container,
.actionable.primary,
.actionable.exam-action:not(.secondary),
.step.current,
.step.completed,
button.step.exam-step.current,
button.step.exam-step.completed {
  background: linear-gradient(135deg, #111111 0%, #2d2d2d 100%);
}

.step.visited,
button.step.exam-step.visited,
.actionable.secondary,
#bookmark-button,
.floating-bookmark-btn #bookmark-button {
  background: linear-gradient(180deg, #ffffff 0%, #f1f1f1 100%);
}

.floating-bar.inverted,
.draggable-modal .header.inverted,
.config-overlay-header,
.overview-overlay-header,
.results-header {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 22%),
    linear-gradient(135deg, #101010 0%, #292929 100%);
}

.overlay-content.exam-overlay,
.overview-overlay,
.overview-overlay-footer {
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.04) 0, rgba(0, 0, 0, 0) 22%),
    linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
}

/* Civic Premium 2026: final runner theme layer */
body[data-epso-theme="civic-premium"] {
  --ui-bg: #f7f4ee;
  --ui-surface: rgba(255, 255, 255, 0.72);
  --ui-surface-strong: rgba(255, 255, 255, 0.9);
  --ui-ink: #162624;
  --ui-ink-soft: #64726e;
  --ui-border: rgba(22, 38, 36, 0.14);
  --ui-accent: #156f63;
  --ui-accent-strong: #0f5a51;
  --ui-header-blue: #283c59;
  --ui-energy: #ff6a43;
  --ui-success: #ddf3e8;
  --ui-success-ink: #145a43;
  --ui-danger: #fde6e0;
  --ui-danger-ink: #8b3a2f;
  --ui-radius-sm: 1.4rem;
  --ui-radius-md: 1.8rem;
  --ui-radius-lg: 2.4rem;
  --ui-radius-xl: 3.2rem;
  --ui-shadow-soft: 0 1.8rem 4.4rem rgba(17, 30, 28, 0.08);
  --ui-shadow-medium: 0 2.4rem 6rem rgba(17, 30, 28, 0.12);
  --ui-shadow-strong: 0 3rem 7.6rem rgba(17, 30, 28, 0.16);
  --ui-blur: 2rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ui-ink);
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) {
  background:
    radial-gradient(circle at 14% 12%, rgba(21, 111, 99, 0.15) 0, rgba(21, 111, 99, 0) 22%),
    radial-gradient(circle at 84% 18%, rgba(255, 106, 67, 0.14) 0, rgba(255, 106, 67, 0) 18%),
    linear-gradient(180deg, #fbf8f2 0%, var(--ui-bg) 56%, #ece5db 100%);
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green)::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0, rgba(255, 255, 255, 0) 42%),
    repeating-linear-gradient(135deg, rgba(22, 38, 36, 0.018) 0, rgba(22, 38, 36, 0.018) 0.1rem, transparent 0.1rem, transparent 1.35rem);
  opacity: 0.72;
}

body[data-epso-theme="civic-premium"] #page,
body[data-epso-theme="civic-premium"] .runner-component,
body[data-epso-theme="civic-premium"] .test-runner,
body[data-epso-theme="civic-premium"] main,
body[data-epso-theme="civic-premium"] .top-bar,
body[data-epso-theme="civic-premium"] .bottom-bar {
  position: relative;
  z-index: 1;
}

body[data-epso-theme="civic-premium"] .top-bar {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 28%),
    linear-gradient(145deg, rgba(18, 37, 34, 0.94) 0%, rgba(24, 55, 50, 0.92) 58%, rgba(15, 90, 81, 0.9) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(var(--ui-blur));
  box-shadow: 0 1.4rem 3.6rem rgba(17, 30, 28, 0.14);
  color: #fbf8f0;
}

body[data-epso-theme="civic-premium"] .bottom-bar {
  background: rgba(248, 244, 236, 0.82);
  border-top: 0.1rem solid rgba(22, 38, 36, 0.1);
  backdrop-filter: blur(1.4rem);
  box-shadow: 0 -1.2rem 3rem rgba(17, 30, 28, 0.08);
}

body[data-epso-theme="civic-premium"] .headerbar,
body[data-epso-theme="civic-premium"] .navigator {
  padding-left: 2.8rem;
  padding-right: 2.8rem;
}

body[data-epso-theme="civic-premium"] .headerbar aside {
  margin-left: 1.4rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .breadcrumb,
body[data-epso-theme="civic-premium"] .separator,
body[data-epso-theme="civic-premium"] .timer-label,
body[data-epso-theme="civic-premium"] .hub-subtitle {
  color: rgba(251, 248, 240, 0.78);
}

body[data-epso-theme="civic-premium"] .current-crumb {
  color: #ffffff;
}

body[data-epso-theme="civic-premium"] .timer-label,
body[data-epso-theme="civic-premium"] .question-timer-value,
body[data-epso-theme="civic-premium"] .step,
body[data-epso-theme="civic-premium"] button.step.exam-step,
body[data-epso-theme="civic-premium"] .results-score-center span,
body[data-epso-theme="civic-premium"] .results-summary-row strong,
body[data-epso-theme="civic-premium"] .results-bar-label strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

body[data-epso-theme="civic-premium"] .timer-label {
  display: inline-flex;
  align-items: center;
  min-height: 4rem;
  padding: 0 1.2rem;
  border: 0.1rem solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  letter-spacing: 0.03em;
}

body[data-epso-theme="civic-premium"] .header-total-timer {
  color: #ffffff;
}

body[data-epso-theme="civic-premium"] .header-total-timer .timer-label {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: currentColor;
  letter-spacing: 0.01em;
}

body[data-epso-theme="civic-premium"] .icon-bar-btn {
  border-color: rgba(22, 38, 36, 0.12);
  border-radius: var(--ui-radius-md);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ui-ink);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.94),
    0 0.8rem 2rem rgba(17, 30, 28, 0.07);
}

body[data-epso-theme="civic-premium"] .icon-bar-btn:hover,
body[data-epso-theme="civic-premium"] .icon-bar-btn:focus-visible,
body[data-epso-theme="civic-premium"] .icon-bar-btn.active,
body[data-epso-theme="civic-premium"] .icon-bar-btn.toggled {
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-0.2rem);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.98),
    0 1.2rem 2.8rem rgba(17, 30, 28, 0.12);
}

body[data-epso-theme="civic-premium"] .floating-bar {
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 2.2rem;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 28%),
    linear-gradient(145deg, rgba(18, 37, 34, 0.98) 0%, rgba(24, 55, 50, 0.96) 56%, rgba(15, 90, 81, 0.94) 100%);
  color: #fbf8f0;
  box-shadow: 0 1.6rem 3.8rem rgba(17, 30, 28, 0.18);
}

body[data-epso-theme="civic-premium"] .floating-bar header {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
}

body[data-epso-theme="civic-premium"] main {
  height: calc(100% - var(--testrunner-header-height) - var(--testrunner-footer-height));
}

body[data-epso-theme="civic-premium"] .qti-item-container {
  padding-top: 3.6rem;
  padding-bottom: 8.4rem;
}

body[data-epso-theme="civic-premium"] .grid-row {
  width: min(86%, 112rem);
  margin-bottom: 2.4rem;
}

body[data-epso-theme="civic-premium"] .passage,
body[data-epso-theme="civic-premium"] .qti-interaction,
body[data-epso-theme="civic-premium"] .question-timer-card,
body[data-epso-theme="civic-premium"] .dialog,
body[data-epso-theme="civic-premium"] .panel.exam-settings,
body[data-epso-theme="civic-premium"] .source-settings-option,
body[data-epso-theme="civic-premium"] .config-overlay-shell,
body[data-epso-theme="civic-premium"] .overview-overlay-shell,
body[data-epso-theme="civic-premium"] .submit-confirm-card,
body[data-epso-theme="civic-premium"] .results-card,
body[data-epso-theme="civic-premium"] .scratchpad-modal .contents,
body[data-epso-theme="civic-premium"] .calculator-modal .contents,
body[data-epso-theme="civic-premium"] .results-review-item {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(16, 56, 97, 0.12);
  border-radius: 2.4rem;
  background:
    radial-gradient(circle at top left, rgba(0, 109, 204, 0.09) 0, rgba(0, 109, 204, 0) 24%),
    radial-gradient(circle at top right, rgba(111, 177, 244, 0.08) 0, rgba(111, 177, 244, 0) 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 253, 0.95) 100%);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.96),
    0 1.8rem 4.2rem rgba(13, 34, 72, 0.08),
    0 0.6rem 1.4rem rgba(13, 34, 72, 0.04);
}

body[data-epso-theme="civic-premium"] .passage::after,
body[data-epso-theme="civic-premium"] .qti-interaction::after,
body[data-epso-theme="civic-premium"] .question-timer-card::after,
body[data-epso-theme="civic-premium"] .dialog::after,
body[data-epso-theme="civic-premium"] .panel.exam-settings::after,
body[data-epso-theme="civic-premium"] .source-settings-option::after,
body[data-epso-theme="civic-premium"] .config-overlay-shell::after,
body[data-epso-theme="civic-premium"] .overview-overlay-shell::after,
body[data-epso-theme="civic-premium"] .submit-confirm-card::after,
body[data-epso-theme="civic-premium"] .results-card::after,
body[data-epso-theme="civic-premium"] .scratchpad-modal .contents::after,
body[data-epso-theme="civic-premium"] .calculator-modal .contents::after,
body[data-epso-theme="civic-premium"] .results-review-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0) 22%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
}

body[data-epso-theme="civic-premium"] .passage,
body[data-epso-theme="civic-premium"] .qti-interaction {
  padding: 2.4rem 2.6rem;
}

body[data-epso-theme="civic-premium"]:not(.abstract-mode) .passage {
  grid-template-rows: auto auto auto;
  align-content: start;
}

body[data-epso-theme="civic-premium"] .passage {
  background:
    radial-gradient(circle at top left, rgba(0, 109, 204, 0.11) 0, rgba(0, 109, 204, 0) 26%),
    radial-gradient(circle at top right, rgba(111, 177, 244, 0.09) 0, rgba(111, 177, 244, 0) 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 249, 253, 0.96) 100%);
}

body[data-epso-theme="civic-premium"] .passage p,
body[data-epso-theme="civic-premium"] .choice-content,
body[data-epso-theme="civic-premium"] .caption-container {
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body[data-epso-theme="civic-premium"] .passage p {
  color: var(--ui-ink);
  font-size: 1.82rem;
  line-height: 1.68;
}

body[data-epso-theme="civic-premium"] .question-source {
  color: var(--ui-ink-soft);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-top-color: rgba(13, 34, 72, 0.12);
}

body[data-epso-theme="civic-premium"] .source-settings-option-name {
  color: var(--ui-ink);
}

body[data-epso-theme="civic-premium"] .source-settings-option-count,
body[data-epso-theme="civic-premium"] .source-settings-summary {
  color: var(--ui-ink-soft);
}

body[data-epso-theme="civic-premium"] .source-settings-option input {
  accent-color: #214e81;
}

body[data-epso-theme="civic-premium"] .source-settings-error {
  color: #8f1d1d;
}

body[data-epso-theme="civic-premium"]:not(.abstract-mode) .passage-image-frame {
  height: auto;
}

body[data-epso-theme="civic-premium"]:not(.abstract-mode) .native-visual-frame {
  height: auto;
}

body[data-epso-theme="civic-premium"] .passage-image-frame {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .native-visual-frame {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .native-visual-panel {
  border-color: rgba(0, 109, 204, 0.12);
  border-radius: 2rem;
  background:
    radial-gradient(circle at top left, rgba(0, 109, 204, 0.08), rgba(0, 109, 204, 0) 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.97) 100%);
}

body[data-epso-theme="civic-premium"] .native-data-table thead th {
  background: var(--color-brand-light);
}

body[data-epso-theme="civic-premium"] .native-data-table tbody th {
  background: rgba(0, 109, 204, 0.07);
}

body[data-epso-theme="civic-premium"] .passage-image {
  border-radius: 1.8rem;
  background: transparent;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .native-visual-svg {
  border-radius: 2rem;
  background:
    radial-gradient(circle at top left, rgba(0, 109, 204, 0.1), transparent 24%),
    radial-gradient(circle at top right, rgba(111, 177, 244, 0.08), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .qti-interaction {
  background:
    radial-gradient(circle at top left, rgba(0, 109, 204, 0.09) 0, rgba(0, 109, 204, 0) 26%),
    radial-gradient(circle at top right, rgba(111, 177, 244, 0.08) 0, rgba(111, 177, 244, 0) 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 249, 253, 0.95) 100%);
}

body[data-epso-theme="civic-premium"] .qti-prompt {
  margin: 0 0 1.8rem;
  color: var(--ui-ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1.95rem, 1.72vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.22;
}

body[data-epso-theme="civic-premium"] .selectable-choice-container ul {
  gap: 1.2rem;
}

body[data-epso-theme="civic-premium"] .container {
  border: 0.1rem solid rgba(22, 38, 36, 0.12);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 239, 232, 0.92) 100%);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.96),
    0 1rem 2.4rem rgba(17, 30, 28, 0.05);
}

body[data-epso-theme="civic-premium"] .caption-container {
  padding: 1.35rem 5rem 1.35rem 6rem;
  color: var(--ui-ink);
}

body[data-epso-theme="civic-premium"] .choice-content {
  font-size: 1.7rem;
  line-height: 1.46;
}

body[data-epso-theme="civic-premium"] .container::before {
  --choice-radio-left: 2rem;
  --choice-radio-size: 2.1rem;
  border-width: 0.16rem;
  border-color: rgba(22, 38, 36, 0.34);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 0 0 0.28rem rgba(255, 255, 255, 0.82),
    0 0.4rem 1rem rgba(13, 34, 72, 0.08);
}

body[data-epso-theme="civic-premium"] .choice input:checked + .container::after {
  content: none;
}

body[data-epso-theme="civic-premium"] .choice label:hover .container,
body[data-epso-theme="civic-premium"] .choice label:focus-within .container {
  border-color: rgba(21, 111, 99, 0.24);
  background:
    radial-gradient(circle at top left, rgba(21, 111, 99, 0.08) 0, rgba(21, 111, 99, 0) 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 249, 246, 0.92) 100%);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.98),
    0 1.4rem 2.8rem rgba(21, 111, 99, 0.12);
  transform: translateY(-0.15rem);
}

body[data-epso-theme="civic-premium"] .choice input:checked + .container {
  border-color: transparent;
  background: #283c59;
  color: #fbf8f0;
  box-shadow: 0 1.4rem 3.2rem rgba(0, 109, 204, 0.22);
}

body[data-epso-theme="civic-premium"] .choice input:checked + .container::before {
  border-color: rgba(255, 255, 255, 0.42);
  background:
    radial-gradient(circle at center, #ffffff 0%, #ffffff 32%, rgba(255, 255, 255, 0) 33%, rgba(255, 255, 255, 0) 100%),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 0.24rem rgba(255, 255, 255, 0.08),
    0 0.35rem 0.9rem rgba(8, 21, 38, 0.2);
}

body[data-epso-theme="civic-premium"] .choice.training-correct .container,
body[data-epso-theme="civic-premium"] .choice.training-correct input:checked + .container,
body[data-epso-theme="civic-premium"] .choice.training-correct label:hover .container {
  background: linear-gradient(180deg, #f1fbf5 0%, #e3f6ea 100%);
  border-color: rgba(25, 120, 71, 0.24);
  color: #143425;
  box-shadow: 0 1rem 2.4rem rgba(25, 120, 71, 0.12);
}

body[data-epso-theme="civic-premium"] .choice.training-incorrect .container,
body[data-epso-theme="civic-premium"] .choice.training-incorrect input:checked + .container,
body[data-epso-theme="civic-premium"] .choice.training-incorrect label:hover .container {
  background: linear-gradient(180deg, #fff7f3 0%, var(--ui-danger) 100%);
  border-color: rgba(139, 58, 47, 0.18);
  color: var(--ui-danger-ink);
  box-shadow: 0 1rem 2.4rem rgba(139, 58, 47, 0.1);
}

body[data-epso-theme="civic-premium"] .choice.eliminated .container,
body[data-epso-theme="civic-premium"] .choice.eliminated label:hover .container,
body[data-epso-theme="civic-premium"] .choice.eliminated label:focus-within .container {
  background: rgba(247, 249, 252, 0.94);
  border-color: rgba(22, 38, 36, 0.12);
  color: rgba(22, 38, 36, 0.58);
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .choice-eliminate-btn {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(22, 38, 36, 0.14);
  color: rgba(22, 38, 36, 0.62);
}

body[data-epso-theme="civic-premium"] .choice-eliminate-btn:hover,
body[data-epso-theme="civic-premium"] .choice-eliminate-btn:focus-visible {
  background: #ffffff;
  border-color: rgba(22, 38, 36, 0.22);
  color: rgba(22, 38, 36, 0.86);
}

body[data-epso-theme="civic-premium"] .choice.eliminated .choice-eliminate-btn {
  background: rgba(22, 38, 36, 0.84);
  border-color: rgba(22, 38, 36, 0.12);
  color: #ffffff;
}

body[data-epso-theme="civic-premium"] .choice.eliminated .choice-eliminate-btn:hover,
body[data-epso-theme="civic-premium"] .choice.eliminated .choice-eliminate-btn:focus-visible {
  background: rgba(22, 38, 36, 0.92);
  color: #ffffff;
}

body[data-epso-theme="civic-premium"] .training-feedback {
  border-color: rgba(22, 38, 36, 0.12);
  border-radius: var(--ui-radius-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.88),
    0 1rem 2.4rem rgba(17, 30, 28, 0.05);
}

body[data-epso-theme="civic-premium"] .training-feedback.correct {
  background: linear-gradient(180deg, #f4fcf7 0%, var(--ui-success) 100%);
  border-color: rgba(20, 90, 67, 0.18);
  color: var(--ui-success-ink);
}

body[data-epso-theme="civic-premium"] .training-feedback.incorrect {
  background: linear-gradient(180deg, #fff7f3 0%, var(--ui-danger) 100%);
  border-color: rgba(139, 58, 47, 0.18);
  color: var(--ui-danger-ink);
}

body[data-epso-theme="civic-premium"] .abstract-rule-card {
  border-color: rgba(22, 38, 36, 0.12);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.88);
}

body[data-epso-theme="civic-premium"] .question-timer-card {
  border-radius: 2rem;
  background:
    radial-gradient(circle at top left, rgba(255, 106, 67, 0.12) 0, rgba(255, 106, 67, 0) 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 241, 234, 0.94) 100%);
}

body[data-epso-theme="civic-premium"] .question-timer-label {
  color: var(--ui-ink-soft);
  letter-spacing: 0.08em;
}

body[data-epso-theme="civic-premium"] .question-timer-card.is-warning {
  background: linear-gradient(180deg, #fff4ee 0%, #ffe4d9 100%);
}

body[data-epso-theme="civic-premium"] .question-timer-card.is-expired {
  background: linear-gradient(180deg, #fff3ef 0%, #ffd9d0 100%);
}

body[data-epso-theme="civic-premium"] .navigator {
  min-height: 7rem;
  margin: 0.9rem auto 1rem;
  width: min(136rem, calc(100% - 3rem));
  padding: 1rem 1.2rem;
  border: 0.1rem solid rgba(22, 38, 36, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.9),
    0 1rem 2.8rem rgba(17, 30, 28, 0.08);
  backdrop-filter: blur(1.2rem);
}

body[data-epso-theme="civic-premium"] .step,
body[data-epso-theme="civic-premium"] button.step.exam-step {
  border: 0.1rem solid rgba(22, 38, 36, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ui-ink-soft);
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .step.current,
body[data-epso-theme="civic-premium"] button.step.exam-step.current {
  border-color: transparent;
  background: linear-gradient(135deg, #17312d 0%, var(--ui-accent) 100%);
  color: #fffaf2;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .step.completed,
body[data-epso-theme="civic-premium"] button.step.exam-step.completed {
  border-color: transparent;
  background: linear-gradient(135deg, #283c59 0%, #1e2f46 100%);
  color: #ffffff;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .step.visited,
body[data-epso-theme="civic-premium"] button.step.exam-step.visited {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 240, 232, 0.92) 100%);
  color: var(--ui-ink);
}

body[data-epso-theme="civic-premium"] .actionable {
  border-width: 0.1rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.92),
    0 0.8rem 2rem rgba(17, 30, 28, 0.06);
}

body[data-epso-theme="civic-premium"] .actionable.primary,
body[data-epso-theme="civic-premium"] .actionable.exam-action:not(.secondary) {
  border-color: transparent;
  background: linear-gradient(135deg, #17312d 0%, var(--ui-accent) 100%);
  box-shadow: 0 1.2rem 2.8rem rgba(21, 111, 99, 0.2);
}

body[data-epso-theme="civic-premium"] .actionable.secondary,
body[data-epso-theme="civic-premium"] #bookmark-button,
body[data-epso-theme="civic-premium"] .floating-bookmark-btn #bookmark-button {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 239, 232, 0.92) 100%);
  color: var(--ui-ink);
}

body[data-epso-theme="civic-premium"] #bookmark-button.bookmarked {
  border-color: transparent;
  background: linear-gradient(135deg, #ff8b63 0%, var(--ui-energy) 100%);
  color: #fffaf2;
  box-shadow: 0 1.2rem 2.8rem rgba(255, 106, 67, 0.22);
}

body[data-epso-theme="civic-premium"] .floating-bookmark-btn {
  bottom: calc(var(--testrunner-footer-height) + 2rem);
}

body[data-epso-theme="civic-premium"] .config-overlay-header,
body[data-epso-theme="civic-premium"] .draggable-modal .header.inverted {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 28%),
    linear-gradient(145deg, rgba(18, 37, 34, 0.98) 0%, rgba(24, 55, 50, 0.96) 60%, rgba(15, 90, 81, 0.94) 100%);
  color: #fbf8f0;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body[data-epso-theme="civic-premium"] .results-header {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 30%),
    linear-gradient(135deg, #12253f 0%, #1f3f66 48%, #00496d 100%);
  color: #fbf8f0;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

body[data-epso-theme="civic-premium"] .overview-overlay-header {
  background: #ffffff;
  color: #283c59;
  border-bottom-color: rgba(40, 60, 89, 0.18);
}

body[data-epso-theme="civic-premium"] .config-overlay-header .icon-bar-btn.base-24,
body[data-epso-theme="civic-premium"] .results-header .icon-bar-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fbf8f0;
  border-color: rgba(255, 255, 255, 0.08);
}

body[data-epso-theme="civic-premium"] .overview-overlay-header .icon-bar-btn.base-24 {
  background: transparent;
  color: #283c59;
  border-color: transparent;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .overlay-content.exam-overlay,
body[data-epso-theme="civic-premium"] .results-body,
body[data-epso-theme="civic-premium"] .scratchpad-modal .content {
  background:
    radial-gradient(circle at top left, rgba(21, 111, 99, 0.06) 0, rgba(21, 111, 99, 0) 26%),
    linear-gradient(180deg, rgba(252, 249, 244, 0.98) 0%, rgba(244, 239, 230, 0.96) 100%);
}

body[data-epso-theme="civic-premium"] .overview-overlay,
body[data-epso-theme="civic-premium"] .overview-overlay .overlay-content.exam-overlay,
body[data-epso-theme="civic-premium"] .overview-overlay-footer,
body[data-epso-theme="civic-premium"] .overview-overlay-shell {
  background: #ffffff;
}

body[data-epso-theme="civic-premium"] .submit-confirm-overlay,
body[data-epso-theme="civic-premium"] .results-overlay,
body[data-epso-theme="civic-premium"] .scratchpad-modal,
body[data-epso-theme="civic-premium"] .calculator-modal {
  backdrop-filter: blur(0.8rem);
}

body[data-epso-theme="civic-premium"] .results-score-ring {
  background: conic-gradient(var(--ui-accent) 0deg, #2aa38c 240deg, rgba(22, 38, 36, 0.08) 240deg 360deg);
}

body[data-epso-theme="civic-premium"] .results-score-center {
  background: rgba(255, 255, 255, 0.96);
}

body[data-epso-theme="civic-premium"] .results-bar-card,
body[data-epso-theme="civic-premium"] .results-review-item {
  border-radius: var(--ui-radius-md);
  background: rgba(255, 255, 255, 0.68);
}

body[data-epso-theme="civic-premium"] .results-bar-track {
  border-color: rgba(22, 38, 36, 0.12);
  background: rgba(22, 38, 36, 0.06);
}

body[data-epso-theme="civic-premium"] .results-bar-card.correct .results-bar-fill {
  background: linear-gradient(90deg, #1d7f72 0%, var(--ui-accent) 100%);
}

body[data-epso-theme="civic-premium"] .results-bar-card.incorrect .results-bar-fill {
  background: linear-gradient(90deg, #ff9a7d 0%, var(--ui-energy) 100%);
}

body[data-epso-theme="civic-premium"] .results-bar-card.unanswered .results-bar-fill {
  background: linear-gradient(90deg, #8b9894 0%, #697874 100%);
}

body[data-epso-theme="civic-premium"] .results-review-status.correct {
  background: linear-gradient(180deg, #f4fcf7 0%, var(--ui-success) 100%);
  color: var(--ui-success-ink);
}

body[data-epso-theme="civic-premium"] .results-review-status.incorrect {
  background: linear-gradient(180deg, #fff7f3 0%, var(--ui-danger) 100%);
  color: var(--ui-danger-ink);
}

body[data-epso-theme="civic-premium"] .results-review-status.unanswered,
body[data-epso-theme="civic-premium"] .results-review-status.manual {
  background: rgba(22, 38, 36, 0.08);
  color: var(--ui-ink-soft);
}

body[data-epso-theme="civic-premium"] .submit-confirm-card h2,
body[data-epso-theme="civic-premium"] .results-header h2,
body[data-epso-theme="civic-premium"] .config-overlay-title,
body[data-epso-theme="civic-premium"] .overview-bottom-bar.exam-overview-bar button {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

body[data-epso-theme="civic-premium"] .line-reader-move-handle,
body[data-epso-theme="civic-premium"] .line-reader-resize-handle {
  border-color: rgba(40, 60, 89, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(32, 50, 77, 0.72);
  box-shadow:
    0 0.32rem 0.9rem rgba(13, 22, 37, 0.1),
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.86);
}

/* Align the exam runner palette with the hub card platform. */
body[data-epso-theme="civic-premium"] {
  --ui-bg: #ffffff;
  --ui-surface: rgba(255, 255, 255, 0.78);
  --ui-surface-strong: rgba(255, 255, 255, 0.94);
  --ui-ink: #0d1526;
  --ui-ink-soft: rgba(13, 21, 38, 0.64);
  --ui-border: rgba(13, 34, 72, 0.14);
  --ui-accent: #00496d;
  --ui-accent-strong: #0c658f;
  --ui-highlight: #d8a93a;
  --ui-highlight-strong: #ab7e19;
  --ui-highlight-soft: rgba(216, 169, 58, 0.18);
  --ui-energy: #ff8b63;
  --ui-success: #e4f6ef;
  --ui-success-ink: #0f654d;
  --ui-danger: #fde7e0;
  --ui-danger-ink: #8b3a2f;
  --ui-shadow-soft: 0 1.8rem 4.4rem rgba(13, 34, 72, 0.08);
  --ui-shadow-medium: 0 2.4rem 6rem rgba(13, 34, 72, 0.12);
  --ui-shadow-strong: 0 3rem 7.6rem rgba(13, 34, 72, 0.16);
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) {
  background: #ffffff;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green)::before {
  content: none;
}

body[data-epso-theme="civic-premium"] .test-content-columns {
  height: auto;
  min-height: 100%;
  align-items: flex-start;
  justify-content: center;
}

body[data-epso-theme="civic-premium"] .qti-item-container {
  width: min(149.4rem, calc(100% - 4rem));
  height: auto;
  margin: 0 auto;
  padding-top: 3.2rem;
  padding-bottom: 8rem;
  padding-left: 0;
  padding-right: 0;
}

body[data-epso-theme="civic-premium"] main {
  overflow: auto;
}

body[data-epso-theme="civic-premium"] .qti-item {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  grid-template-rows: auto auto;
  justify-items: center;
}

body[data-epso-theme="civic-premium"] .qti-item > .grid-row {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body[data-epso-theme="civic-premium"] .qti-item > .grid-row,
body[data-epso-theme="civic-premium"] .qti-item > .grid-row > .col-12,
body[data-epso-theme="civic-premium"] .passage,
body[data-epso-theme="civic-premium"] .qti-interaction {
  height: auto;
  min-height: 0;
  overflow: visible;
}

body[data-epso-theme="civic-premium"] .passage,
body[data-epso-theme="civic-premium"] .qti-interaction {
  margin-left: auto;
  margin-right: auto;
}

body[data-epso-theme="civic-premium"] .passage p {
  overflow: visible;
}

body[data-epso-theme="civic-premium"] .selectable-choice-container,
body[data-epso-theme="civic-premium"] .selectable-choice-container ul {
  height: auto;
}

body[data-epso-theme="civic-premium"] .passage-image {
  height: auto;
  max-height: min(72vh, 88rem);
}

body[data-epso-theme="civic-premium"] .top-bar {
  background: #283c59;
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 1.4rem 3.6rem rgba(13, 34, 72, 0.16);
  color: #ffffff;
}

body[data-epso-theme="civic-premium"] .top-bar .logo {
  display: none;
}

body[data-epso-theme="civic-premium"] .bottom-bar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(241, 246, 255, 0.82) 100%);
  border-top-color: rgba(13, 34, 72, 0.1);
  box-shadow: 0 -1.2rem 3rem rgba(13, 34, 72, 0.08);
}

body[data-epso-theme="civic-premium"] .headerbar aside {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  margin-left: 0.6rem;
}

body[data-epso-theme="civic-premium"] .headerbar {
  padding-left: 1.2rem;
  padding-right: 0.12rem;
}

body[data-epso-theme="civic-premium"] .headerbar aside.tools-open .tool-shortcuts {
  transform: none;
}

body[data-epso-theme="civic-premium"] .tool-menu-panel {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .tool-menu-heading {
  color: rgba(40, 60, 89, 0.64);
}

body[data-epso-theme="civic-premium"] .breadcrumb,
body[data-epso-theme="civic-premium"] .separator,
body[data-epso-theme="civic-premium"] .timer-label,
body[data-epso-theme="civic-premium"] .hub-subtitle {
  color: rgba(255, 255, 255, 0.84);
}

body[data-epso-theme="civic-premium"] .timer-label {
  border-color: rgba(216, 169, 58, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.2),
    0 0 0 0.1rem rgba(216, 169, 58, 0.12);
}

body[data-epso-theme="civic-premium"] .icon-bar-btn {
  border-color: rgba(13, 34, 72, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 246, 255, 0.96) 100%);
  color: var(--ui-accent);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.94),
    0 0.8rem 2rem rgba(13, 34, 72, 0.08);
}

body[data-epso-theme="civic-premium"] .icon-bar-btn:hover,
body[data-epso-theme="civic-premium"] .icon-bar-btn:focus-visible,
body[data-epso-theme="civic-premium"] .icon-bar-btn.active,
body[data-epso-theme="civic-premium"] .icon-bar-btn.toggled {
  border-color: rgba(216, 169, 58, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(245, 248, 255, 0.98) 100%);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.98),
    0 0 0 0.1rem rgba(216, 169, 58, 0.12),
    0 1.2rem 2.8rem rgba(13, 34, 72, 0.12);
}

body[data-epso-theme="civic-premium"] .floating-bar {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, rgba(12, 101, 143, 0.98) 0%, rgba(0, 73, 109, 0.98) 38%, rgba(0, 38, 58, 0.99) 100%);
  box-shadow: 0 1.6rem 3.8rem rgba(13, 34, 72, 0.2);
}

body[data-epso-theme="civic-premium"] .passage,
body[data-epso-theme="civic-premium"] .qti-interaction,
body[data-epso-theme="civic-premium"] .question-timer-card,
body[data-epso-theme="civic-premium"] .dialog,
body[data-epso-theme="civic-premium"] .panel.exam-settings,
body[data-epso-theme="civic-premium"] .config-overlay-shell,
body[data-epso-theme="civic-premium"] .overview-overlay-shell,
body[data-epso-theme="civic-premium"] .submit-confirm-card,
body[data-epso-theme="civic-premium"] .results-card,
body[data-epso-theme="civic-premium"] .scratchpad-modal .contents,
body[data-epso-theme="civic-premium"] .calculator-modal .contents,
body[data-epso-theme="civic-premium"] .results-review-item {
  border-color: var(--ui-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 246, 255, 0.88) 100%);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.92),
    var(--ui-shadow-soft);
}

body[data-epso-theme="civic-premium"] .passage {
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-epso-theme="civic-premium"] .qti-interaction {
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-epso-theme="civic-premium"] .qti-prompt {
  color: var(--ui-accent);
}

body[data-epso-theme="civic-premium"] .question-source {
  color: rgba(0, 73, 109, 0.72);
  border-top: none;
  padding-top: 0;
}

body[data-epso-theme="civic-premium"] .container {
  border-color: rgba(13, 34, 72, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 254, 0.92) 100%);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.96),
    0 1rem 2.4rem rgba(13, 34, 72, 0.06);
}

body[data-epso-theme="civic-premium"] .container::before {
  border-color: rgba(13, 34, 72, 0.34);
}

body[data-epso-theme="civic-premium"] .choice label:hover .container,
body[data-epso-theme="civic-premium"] .choice label:focus-within .container {
  border-color: rgba(216, 169, 58, 0.42);
  background:
    radial-gradient(circle at top right, rgba(216, 169, 58, 0.08) 0, rgba(216, 169, 58, 0) 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(243, 247, 253, 0.96) 100%);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.98),
    0 0 0 0.1rem rgba(216, 169, 58, 0.1),
    0 1.4rem 2.8rem rgba(13, 34, 72, 0.1);
}

body[data-epso-theme="civic-premium"] .choice input:checked + .container {
  background: #283c59;
  color: #ffffff;
  box-shadow:
    0 0 0 0.1rem rgba(216, 169, 58, 0.16),
    0 1.4rem 3.2rem rgba(13, 34, 72, 0.22);
}

body[data-epso-theme="civic-premium"] .choice input:checked + .container .caption-container,
body[data-epso-theme="civic-premium"] .choice input:checked + .container .choice-content {
  color: #ffffff;
}

body[data-epso-theme="civic-premium"] .choice input:checked + .container::before {
  border-color: rgba(255, 255, 255, 0.44);
  background:
    radial-gradient(circle at center, #ffffff 0%, #ffffff 32%, rgba(255, 255, 255, 0) 33%, rgba(255, 255, 255, 0) 100%),
    rgba(255, 255, 255, 0.16);
}

body[data-epso-theme="civic-premium"] .question-timer-card {
  background:
    radial-gradient(circle at top right, rgba(216, 169, 58, 0.14) 0, rgba(216, 169, 58, 0) 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 246, 255, 0.94) 100%);
}

body[data-epso-theme="civic-premium"] .question-timer-label {
  color: rgba(13, 21, 38, 0.68);
}

body[data-epso-theme="civic-premium"] .navigator {
  border-color: rgba(13, 34, 72, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 246, 255, 0.88) 100%);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.94),
    0 1rem 2.8rem rgba(13, 34, 72, 0.1);
}

body[data-epso-theme="civic-premium"] .step,
body[data-epso-theme="civic-premium"] button.step.exam-step {
  border-color: rgba(13, 34, 72, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 248, 255, 0.94) 100%);
  color: var(--ui-ink-soft);
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .step.current,
body[data-epso-theme="civic-premium"] button.step.exam-step.current {
  background:
    linear-gradient(180deg, rgba(216, 169, 58, 0.96) 0%, rgba(171, 126, 25, 0.98) 100%);
  color: #0d1526;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .step.step-countdown,
body[data-epso-theme="civic-premium"] button.step.exam-step.step-countdown {
  font-size: 1.3rem;
  font-weight: 800;
}

body.abstract-mode[data-epso-theme="civic-premium"] .qti-item-container {
  padding-top: 0.6rem;
  padding-bottom: 1rem;
}

body.abstract-mode[data-epso-theme="civic-premium"] .qti-interaction {
  margin-top: 0;
  padding-top: 1rem;
  padding-bottom: 0.55rem;
  gap: 0.35rem;
}

body.abstract-mode[data-epso-theme="civic-premium"] .qti-prompt {
  margin-bottom: 0.45rem;
  text-align: center;
}

body.abstract-mode[data-epso-theme="civic-premium"] .question-source {
  padding-top: 0.5rem;
}

body[data-epso-theme="civic-premium"] .step.completed,
body[data-epso-theme="civic-premium"] button.step.exam-step.completed {
  background: #283c59;
  border-color: #283c59;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .step.visited,
body[data-epso-theme="civic-premium"] button.step.exam-step.visited {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 246, 255, 0.92) 100%);
  color: var(--ui-accent);
}

/* Keep the current/timed question gold even when it is also marked visited/completed. */
body[data-epso-theme="civic-premium"] .step.current,
body[data-epso-theme="civic-premium"] button.step.exam-step.current,
body[data-epso-theme="civic-premium"] .step.step-countdown,
body[data-epso-theme="civic-premium"] button.step.exam-step.step-countdown {
  background:
    linear-gradient(180deg, rgba(216, 169, 58, 0.96) 0%, rgba(171, 126, 25, 0.98) 100%);
  color: #0d1526;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .actionable {
  border-color: rgba(13, 34, 72, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 247, 253, 0.92) 100%);
  color: var(--ui-ink);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.94),
    0 0.8rem 2rem rgba(13, 34, 72, 0.08);
}

body[data-epso-theme="civic-premium"] .actionable.primary,
body[data-epso-theme="civic-premium"] .actionable.exam-action:not(.secondary) {
  background:
    linear-gradient(180deg, rgba(12, 101, 143, 0.98) 0%, rgba(0, 73, 109, 0.98) 100%);
  color: #ffffff;
  box-shadow: 0 1.2rem 2.8rem rgba(13, 34, 72, 0.2);
}

body[data-epso-theme="civic-premium"] .actionable.secondary,
body[data-epso-theme="civic-premium"] #bookmark-button,
body[data-epso-theme="civic-premium"] .floating-bookmark-btn #bookmark-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 247, 253, 0.92) 100%);
  color: var(--ui-accent);
}

body[data-epso-theme="civic-premium"] .actionable:hover,
body[data-epso-theme="civic-premium"] .actionable:focus-visible,
body[data-epso-theme="civic-premium"] #bookmark-button:hover,
body[data-epso-theme="civic-premium"] #bookmark-button:focus-visible {
  border-color: rgba(216, 169, 58, 0.36);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.98),
    0 0 0 0.1rem rgba(216, 169, 58, 0.1),
    0 1.2rem 2.8rem rgba(13, 34, 72, 0.12);
}

body[data-epso-theme="civic-premium"] .actionable.primary:hover,
body[data-epso-theme="civic-premium"] .actionable.primary:focus-visible,
body[data-epso-theme="civic-premium"] .actionable.exam-action:not(.secondary):hover,
body[data-epso-theme="civic-premium"] .actionable.exam-action:not(.secondary):focus-visible {
  background:
    linear-gradient(180deg, rgba(18, 112, 159, 0.98) 0%, rgba(0, 73, 109, 0.99) 100%);
  box-shadow:
    0 0 0 0.1rem rgba(216, 169, 58, 0.1),
    0 1.4rem 3rem rgba(13, 34, 72, 0.22);
}

body[data-epso-theme="civic-premium"] #bookmark-button.bookmarked {
  background:
    linear-gradient(180deg, rgba(216, 169, 58, 0.96) 0%, rgba(171, 126, 25, 0.98) 100%);
  color: #0d1526;
  box-shadow: 0 1.2rem 2.8rem rgba(216, 169, 58, 0.24);
}

body[data-epso-theme="civic-premium"] #bookmark-button,
body[data-epso-theme="civic-premium"] #bookmark-button:hover,
body[data-epso-theme="civic-premium"] #bookmark-button:focus-visible,
body[data-epso-theme="civic-premium"] #bookmark-button.bookmarked,
body[data-epso-theme="civic-premium"] #bookmark-button.bookmarked:hover,
body[data-epso-theme="civic-premium"] #bookmark-button.bookmarked:focus-visible {
  min-width: 6.72rem;
  width: 6.72rem;
  min-height: 6.72rem;
  height: 6.72rem;
  border-color: #283c59;
  background: #283c59;
  color: #ffffff;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] #bookmark-button .icon.medium {
  width: 2.16rem;
  height: 2.16rem;
}

body[data-epso-theme="civic-premium"] .config-overlay-header,
body[data-epso-theme="civic-premium"] .draggable-modal .header.inverted {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, rgba(12, 101, 143, 0.98) 0%, rgba(0, 73, 109, 0.98) 36%, rgba(0, 38, 58, 0.99) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

body[data-epso-theme="civic-premium"] .config-overlay-header .icon-bar-btn.base-24,
body[data-epso-theme="civic-premium"] .results-header .icon-bar-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-epso-theme="civic-premium"] .overview-overlay-header {
  background: #ffffff;
  color: #283c59;
  border-bottom-color: rgba(40, 60, 89, 0.18);
}

body[data-epso-theme="civic-premium"] .overview-overlay-header .icon-bar-btn.base-24 {
  background: transparent;
  color: #283c59;
  border-color: transparent;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .overlay-content.exam-overlay,
body[data-epso-theme="civic-premium"] .results-body,
body[data-epso-theme="civic-premium"] .scratchpad-modal .content {
  background:
    radial-gradient(circle at top left, rgba(0, 73, 109, 0.06) 0, rgba(0, 73, 109, 0) 24%),
    radial-gradient(circle at top right, rgba(216, 169, 58, 0.06) 0, rgba(216, 169, 58, 0) 20%),
    linear-gradient(180deg, rgba(252, 253, 255, 0.98) 0%, rgba(242, 246, 253, 0.96) 100%);
}

body[data-epso-theme="civic-premium"] .overview-overlay,
body[data-epso-theme="civic-premium"] .overview-overlay .overlay-content.exam-overlay,
body[data-epso-theme="civic-premium"] .overview-overlay-footer,
body[data-epso-theme="civic-premium"] .overview-overlay-shell,
body[data-epso-theme="civic-premium"] .overview-inline-shell,
body[data-epso-theme="civic-premium"] .overview-inline-header,
body[data-epso-theme="civic-premium"] .overview-inline-body,
body[data-epso-theme="civic-premium"] .overview-inline-footer,
body[data-epso-theme="civic-premium"] .overview-inline-body .overview.exam-overview {
  background: #ffffff;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) #highlighter-bar .floating-bar,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .scratchpad-modal .header.inverted,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator-modal .header.inverted {
  background: #283c59;
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) #highlighter-bar .floating-bar,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .scratchpad-modal .contents,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator-modal .contents {
  overflow: hidden;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .highlighter-bar {
  border-radius: 1.8rem;
  background: #283c59;
  box-shadow: 0 1.6rem 3.8rem rgba(13, 34, 72, 0.2);
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) #highlighter-bar .floating-bar {
  border: none;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .scratchpad-modal,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator-modal {
  --tool-panel-radius: 1.9rem;
  border-radius: var(--tool-panel-radius);
  background: #283c59;
  overflow: hidden;
  box-shadow: 0 1.4rem 3.2rem rgba(13, 34, 72, 0.18);
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .scratchpad-modal .contents,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator-modal .contents {
  border: none;
  border-radius: inherit;
  background: #f1f6ff;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .scratchpad-modal .contents::after,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator-modal .contents::after {
  display: none;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator .screen {
  border: none;
  border-radius: 0;
  margin-top: 0;
  background: #ffffff;
  padding-top: 1.4rem;
  padding-right: 1.6rem;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator .expression {
  color: rgba(13, 21, 38, 0.58);
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator .result {
  background: #ffffff;
  color: #283c59;
  font-size: 4rem;
  line-height: 1.1;
  padding-right: 0;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator-modal .content {
  border-top: none;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator {
  gap: 0;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator .keyboard {
  background: #ffffff;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator .key.operator,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator .key[data-command="execute"] {
  background: #283c59;
  color: #ffffff;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator .key {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator .key:hover,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator .key:focus-visible {
  transform: none;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator .key[data-param="NUM0"] {
  border-bottom-left-radius: var(--tool-panel-radius);
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator .key[data-command="execute"] {
  border-bottom-right-radius: var(--tool-panel-radius);
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .scratchpad-modal .header.inverted,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator-modal .header.inverted {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: #283c59;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .scratchpad-modal .header .icon-bar-btn,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .scratchpad-modal .header .icon-bar-btn:hover,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .scratchpad-modal .header .icon-bar-btn:focus-visible,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .scratchpad-modal .header .icon-bar-btn.active,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .scratchpad-modal .header .icon-bar-btn.toggled {
  border: none;
  background: #283c59;
  box-shadow: none;
  transform: none;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator-modal .header [data-close="calculator"],
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator-modal .header [data-close="calculator"]:hover,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator-modal .header [data-close="calculator"]:focus-visible,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .calculator-modal .header [data-close="calculator"].active {
  border: none;
  background: transparent;
  box-shadow: none;
  transform: none;
}

body[data-epso-theme="civic-premium"] .results-score-ring {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 0 58%, transparent 59%),
    conic-gradient(var(--ui-accent-strong) 0deg var(--score-angle), rgba(13, 34, 72, 0.1) var(--score-angle) 360deg);
  box-shadow: 0 1.6rem 4rem rgba(13, 34, 72, 0.12);
}

body[data-epso-theme="civic-premium"] .results-score-center {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 247, 253, 0.96) 100%);
}

body[data-epso-theme="civic-premium"] .results-bar-card,
body[data-epso-theme="civic-premium"] .results-review-item {
  background: rgba(255, 255, 255, 0.74);
}

body[data-epso-theme="civic-premium"] .results-bar-track {
  border-color: rgba(13, 34, 72, 0.12);
  background: rgba(13, 34, 72, 0.08);
}

body[data-epso-theme="civic-premium"] .results-bar-card.correct .results-bar-fill {
  background: linear-gradient(90deg, var(--ui-accent-strong) 0%, var(--ui-accent) 100%);
}

body[data-epso-theme="civic-premium"] .results-bar-card.unanswered .results-bar-fill {
  background: linear-gradient(90deg, #7d90b3 0%, #4e607e 100%);
}

body[data-epso-theme="civic-premium"] .results-card {
  border-color: rgba(40, 60, 89, 0.14);
  box-shadow: 0 2.8rem 7rem rgba(13, 34, 72, 0.18);
}

body[data-epso-theme="civic-premium"] .results-score-ring {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 0 58%, transparent 59%),
    conic-gradient(var(--ui-header-blue) 0deg var(--score-angle), rgba(40, 60, 89, 0.12) var(--score-angle) 360deg);
}

body[data-epso-theme="civic-premium"] .results-summary-row,
body[data-epso-theme="civic-premium"] .results-bar-card,
body[data-epso-theme="civic-premium"] .results-precision-card {
  background: rgba(255, 255, 255, 0.82);
  border: 0.1rem solid rgba(40, 60, 89, 0.12);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.94);
}

body[data-epso-theme="civic-premium"] .results-precision-card span,
body[data-epso-theme="civic-premium"] .results-summary-row span,
body[data-epso-theme="civic-premium"] .results-bar-label span {
  color: rgba(40, 60, 89, 0.72);
}

body[data-epso-theme="civic-premium"] .results-precision-card strong,
body[data-epso-theme="civic-premium"] .results-summary-row strong {
  color: #12253f;
}

body[data-epso-theme="civic-premium"] .line-reader-move-handle,
body[data-epso-theme="civic-premium"] .line-reader-resize-handle {
  border-color: rgba(40, 60, 89, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(32, 50, 77, 0.72);
  box-shadow:
    0 0.32rem 0.9rem rgba(13, 22, 37, 0.1),
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.86);
}

body[data-epso-theme="civic-premium"] .line-reader-move-handle:hover,
body[data-epso-theme="civic-premium"] .line-reader-move-handle:focus-visible,
body[data-epso-theme="civic-premium"] .line-reader-resize-handle:hover,
body[data-epso-theme="civic-premium"] .line-reader-resize-handle:focus-visible {
  border-color: rgba(40, 60, 89, 0.26);
  background: #ffffff;
  color: #20324d;
  box-shadow:
    0 0.46rem 1.1rem rgba(13, 22, 37, 0.12),
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.92);
}

body[data-epso-theme="civic-premium"].contrast-white-on-black {
  --epso-contrast-surface: #000000;
  --epso-contrast-ink: #ffffff;
  --epso-contrast-border: rgba(255, 255, 255, 0.4);
}

body[data-epso-theme="civic-premium"].contrast-yellow-on-blue {
  --epso-contrast-surface: #001b7a;
  --epso-contrast-ink: #fff700;
  --epso-contrast-border: rgba(255, 247, 0, 0.44);
}

body[data-epso-theme="civic-premium"].contrast-black-on-cream {
  --epso-contrast-surface: #f6f0d8;
  --epso-contrast-ink: #121212;
  --epso-contrast-border: rgba(18, 18, 18, 0.34);
}

body[data-epso-theme="civic-premium"].contrast-black-on-blue {
  --epso-contrast-surface: #83c9f4;
  --epso-contrast-ink: #121212;
  --epso-contrast-border: rgba(18, 18, 18, 0.34);
}

body[data-epso-theme="civic-premium"].contrast-black-on-magenta {
  --epso-contrast-surface: #ff5cb8;
  --epso-contrast-ink: #121212;
  --epso-contrast-border: rgba(18, 18, 18, 0.34);
}

body[data-epso-theme="civic-premium"].contrast-grey-on-green {
  --epso-contrast-surface: #2f7d32;
  --epso-contrast-ink: #d7d7d7;
  --epso-contrast-border: rgba(215, 215, 215, 0.34);
}

body[data-epso-theme="civic-premium"].contrast-white-on-black::before,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue::before,
body[data-epso-theme="civic-premium"].contrast-black-on-cream::before,
body[data-epso-theme="civic-premium"].contrast-black-on-blue::before,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta::before,
body[data-epso-theme="civic-premium"].contrast-grey-on-green::before {
  display: none;
}

body[data-epso-theme="civic-premium"].contrast-white-on-black .top-bar,
body[data-epso-theme="civic-premium"].contrast-white-on-black .bottom-bar,
body[data-epso-theme="civic-premium"].contrast-white-on-black .navigator,
body[data-epso-theme="civic-premium"].contrast-white-on-black .passage,
body[data-epso-theme="civic-premium"].contrast-white-on-black .qti-interaction,
body[data-epso-theme="civic-premium"].contrast-white-on-black .question-timer-card,
body[data-epso-theme="civic-premium"].contrast-white-on-black .config-overlay-shell,
body[data-epso-theme="civic-premium"].contrast-white-on-black .overview-overlay-shell,
body[data-epso-theme="civic-premium"].contrast-white-on-black .submit-confirm-card,
body[data-epso-theme="civic-premium"].contrast-white-on-black .results-card,
body[data-epso-theme="civic-premium"].contrast-white-on-black .scratchpad-modal .contents,
body[data-epso-theme="civic-premium"].contrast-white-on-black .floating-bar,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue .top-bar,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue .bottom-bar,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue .navigator,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue .passage,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue .qti-interaction,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue .question-timer-card,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue .config-overlay-shell,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue .overview-overlay-shell,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue .submit-confirm-card,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue .results-card,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue .scratchpad-modal .contents,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue .floating-bar,
body[data-epso-theme="civic-premium"].contrast-black-on-cream .top-bar,
body[data-epso-theme="civic-premium"].contrast-black-on-cream .bottom-bar,
body[data-epso-theme="civic-premium"].contrast-black-on-cream .navigator,
body[data-epso-theme="civic-premium"].contrast-black-on-cream .passage,
body[data-epso-theme="civic-premium"].contrast-black-on-cream .qti-interaction,
body[data-epso-theme="civic-premium"].contrast-black-on-cream .question-timer-card,
body[data-epso-theme="civic-premium"].contrast-black-on-cream .config-overlay-shell,
body[data-epso-theme="civic-premium"].contrast-black-on-cream .overview-overlay-shell,
body[data-epso-theme="civic-premium"].contrast-black-on-cream .submit-confirm-card,
body[data-epso-theme="civic-premium"].contrast-black-on-cream .results-card,
body[data-epso-theme="civic-premium"].contrast-black-on-cream .scratchpad-modal .contents,
body[data-epso-theme="civic-premium"].contrast-black-on-cream .floating-bar,
body[data-epso-theme="civic-premium"].contrast-black-on-blue .top-bar,
body[data-epso-theme="civic-premium"].contrast-black-on-blue .bottom-bar,
body[data-epso-theme="civic-premium"].contrast-black-on-blue .navigator,
body[data-epso-theme="civic-premium"].contrast-black-on-blue .passage,
body[data-epso-theme="civic-premium"].contrast-black-on-blue .qti-interaction,
body[data-epso-theme="civic-premium"].contrast-black-on-blue .question-timer-card,
body[data-epso-theme="civic-premium"].contrast-black-on-blue .config-overlay-shell,
body[data-epso-theme="civic-premium"].contrast-black-on-blue .overview-overlay-shell,
body[data-epso-theme="civic-premium"].contrast-black-on-blue .submit-confirm-card,
body[data-epso-theme="civic-premium"].contrast-black-on-blue .results-card,
body[data-epso-theme="civic-premium"].contrast-black-on-blue .scratchpad-modal .contents,
body[data-epso-theme="civic-premium"].contrast-black-on-blue .floating-bar,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta .top-bar,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta .bottom-bar,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta .navigator,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta .passage,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta .qti-interaction,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta .question-timer-card,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta .config-overlay-shell,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta .overview-overlay-shell,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta .submit-confirm-card,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta .results-card,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta .scratchpad-modal .contents,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta .floating-bar,
body[data-epso-theme="civic-premium"].contrast-grey-on-green .top-bar,
body[data-epso-theme="civic-premium"].contrast-grey-on-green .bottom-bar,
body[data-epso-theme="civic-premium"].contrast-grey-on-green .navigator,
body[data-epso-theme="civic-premium"].contrast-grey-on-green .passage,
body[data-epso-theme="civic-premium"].contrast-grey-on-green .qti-interaction,
body[data-epso-theme="civic-premium"].contrast-grey-on-green .question-timer-card,
body[data-epso-theme="civic-premium"].contrast-grey-on-green .config-overlay-shell,
body[data-epso-theme="civic-premium"].contrast-grey-on-green .overview-overlay-shell,
body[data-epso-theme="civic-premium"].contrast-grey-on-green .submit-confirm-card,
body[data-epso-theme="civic-premium"].contrast-grey-on-green .results-card,
body[data-epso-theme="civic-premium"].contrast-grey-on-green .scratchpad-modal .contents,
body[data-epso-theme="civic-premium"].contrast-grey-on-green .floating-bar {
  background: var(--epso-contrast-surface);
  color: var(--epso-contrast-ink);
  border-color: var(--epso-contrast-border);
  box-shadow: none;
  backdrop-filter: none;
}

body[data-epso-theme="civic-premium"].contrast-white-on-black .container,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue .container,
body[data-epso-theme="civic-premium"].contrast-black-on-cream .container,
body[data-epso-theme="civic-premium"].contrast-black-on-blue .container,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta .container,
body[data-epso-theme="civic-premium"].contrast-grey-on-green .container,
body[data-epso-theme="civic-premium"].contrast-white-on-black .icon-bar-btn,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue .icon-bar-btn,
body[data-epso-theme="civic-premium"].contrast-black-on-cream .icon-bar-btn,
body[data-epso-theme="civic-premium"].contrast-black-on-blue .icon-bar-btn,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta .icon-bar-btn,
body[data-epso-theme="civic-premium"].contrast-grey-on-green .icon-bar-btn,
body[data-epso-theme="civic-premium"].contrast-white-on-black .step,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue .step,
body[data-epso-theme="civic-premium"].contrast-black-on-cream .step,
body[data-epso-theme="civic-premium"].contrast-black-on-blue .step,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta .step,
body[data-epso-theme="civic-premium"].contrast-grey-on-green .step,
body[data-epso-theme="civic-premium"].contrast-white-on-black button.step.exam-step,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue button.step.exam-step,
body[data-epso-theme="civic-premium"].contrast-black-on-cream button.step.exam-step,
body[data-epso-theme="civic-premium"].contrast-black-on-blue button.step.exam-step,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta button.step.exam-step,
body[data-epso-theme="civic-premium"].contrast-grey-on-green button.step.exam-step,
body[data-epso-theme="civic-premium"].contrast-white-on-black #bookmark-button,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue #bookmark-button,
body[data-epso-theme="civic-premium"].contrast-black-on-cream #bookmark-button,
body[data-epso-theme="civic-premium"].contrast-black-on-blue #bookmark-button,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta #bookmark-button,
body[data-epso-theme="civic-premium"].contrast-grey-on-green #bookmark-button {
  background: transparent;
  color: var(--epso-contrast-ink);
  border-color: var(--epso-contrast-border);
  box-shadow: none;
}

body[data-epso-theme="civic-premium"].contrast-white-on-black .choice input:checked + .container,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue .choice input:checked + .container,
body[data-epso-theme="civic-premium"].contrast-black-on-cream .choice input:checked + .container,
body[data-epso-theme="civic-premium"].contrast-black-on-blue .choice input:checked + .container,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta .choice input:checked + .container,
body[data-epso-theme="civic-premium"].contrast-grey-on-green .choice input:checked + .container,
body[data-epso-theme="civic-premium"].contrast-white-on-black .step.current,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue .step.current,
body[data-epso-theme="civic-premium"].contrast-black-on-cream .step.current,
body[data-epso-theme="civic-premium"].contrast-black-on-blue .step.current,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta .step.current,
body[data-epso-theme="civic-premium"].contrast-grey-on-green .step.current,
body[data-epso-theme="civic-premium"].contrast-white-on-black .step.completed,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue .step.completed,
body[data-epso-theme="civic-premium"].contrast-black-on-cream .step.completed,
body[data-epso-theme="civic-premium"].contrast-black-on-blue .step.completed,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta .step.completed,
body[data-epso-theme="civic-premium"].contrast-grey-on-green .step.completed,
body[data-epso-theme="civic-premium"].contrast-white-on-black button.step.exam-step.current,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue button.step.exam-step.current,
body[data-epso-theme="civic-premium"].contrast-black-on-cream button.step.exam-step.current,
body[data-epso-theme="civic-premium"].contrast-black-on-blue button.step.exam-step.current,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta button.step.exam-step.current,
body[data-epso-theme="civic-premium"].contrast-grey-on-green button.step.exam-step.current,
body[data-epso-theme="civic-premium"].contrast-white-on-black button.step.exam-step.completed,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue button.step.exam-step.completed,
body[data-epso-theme="civic-premium"].contrast-black-on-cream button.step.exam-step.completed,
body[data-epso-theme="civic-premium"].contrast-black-on-blue button.step.exam-step.completed,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta button.step.exam-step.completed,
body[data-epso-theme="civic-premium"].contrast-grey-on-green button.step.exam-step.completed {
  background: var(--epso-contrast-ink);
  color: var(--epso-contrast-surface);
  border-color: var(--epso-contrast-ink);
}

body[data-epso-theme="civic-premium"] .a11y-drawer-close.icon-bar-btn {
  width: 4rem;
  min-width: 4rem;
  height: 4rem;
  min-height: 4rem;
  border-color: transparent;
  border-radius: 0.6rem;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
  transform: none;
}

body[data-epso-theme="civic-premium"] .a11y-drawer-close.icon-bar-btn:hover,
body[data-epso-theme="civic-premium"] .a11y-drawer-close.icon-bar-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: none;
  transform: none;
}

body[data-epso-theme="civic-premium"] .a11y-drawer-close.icon-bar-btn:focus-visible {
  outline: 0.2rem solid rgba(255, 255, 255, 0.72);
  outline-offset: 0.2rem;
}

body[data-epso-theme="civic-premium"][class*="contrast-"] .a11y-drawer-panel {
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-epso-theme="civic-premium"][class*="contrast-"] .a11y-drawer-panel .drawer,
body[data-epso-theme="civic-premium"][class*="contrast-"] .drawer-content.exam-drawer-content,
body[data-epso-theme="civic-premium"][class*="contrast-"] .a11y-menu-panel-content.exam-a11y-menu,
body[data-epso-theme="civic-premium"][class*="contrast-"] .a11y-group.exam-a11y-group,
body[data-epso-theme="civic-premium"][class*="contrast-"] .border-wrapper.exam-colour-switch,
body[data-epso-theme="civic-premium"][class*="contrast-"] .control-row.exam-control-row,
body[data-epso-theme="civic-premium"][class*="contrast-"] .select.exam-select,
body[data-epso-theme="civic-premium"][class*="contrast-"] .listbox.exam-select {
  background: var(--epso-contrast-surface);
  color: var(--epso-contrast-ink);
  border-color: var(--epso-contrast-border);
  box-shadow: none;
}

body[data-epso-theme="civic-premium"][class*="contrast-"] .a11y-drawer-header {
  background: var(--epso-contrast-ink);
  color: var(--epso-contrast-surface);
}

body[data-epso-theme="civic-premium"][class*="contrast-"] .a11y-drawer-title,
body[data-epso-theme="civic-premium"][class*="contrast-"] .a11y-drawer-kicker,
body[data-epso-theme="civic-premium"][class*="contrast-"] .a11y-drawer-close.icon-bar-btn,
body[data-epso-theme="civic-premium"][class*="contrast-"] .a11y-drawer-close.icon-bar-btn:hover,
body[data-epso-theme="civic-premium"][class*="contrast-"] .a11y-drawer-close.icon-bar-btn:focus-visible {
  color: var(--epso-contrast-surface);
}

body[data-epso-theme="civic-premium"][class*="contrast-"] .a11y-drawer-close.icon-bar-btn:hover,
body[data-epso-theme="civic-premium"][class*="contrast-"] .a11y-drawer-close.icon-bar-btn:focus-visible {
  border-color: var(--epso-contrast-surface);
  background: transparent;
}

body[data-epso-theme="civic-premium"][class*="contrast-"] .a11y-group.exam-a11y-group > summary,
body[data-epso-theme="civic-premium"][class*="contrast-"] .a11y-group.exam-a11y-group[open] > summary {
  border-bottom-color: var(--epso-contrast-border);
}

body[data-epso-theme="civic-premium"][class*="contrast-"] .a11y-group.exam-a11y-group > summary .ui-heading,
body[data-epso-theme="civic-premium"][class*="contrast-"] .a11y-group.exam-a11y-group > summary .icon,
body[data-epso-theme="civic-premium"][class*="contrast-"] .control-row.exam-control-row > .icon,
body[data-epso-theme="civic-premium"][class*="contrast-"] .select.exam-select > button.exam-select,
body[data-epso-theme="civic-premium"][class*="contrast-"] .option.exam-select {
  color: var(--epso-contrast-ink);
}

body[data-epso-theme="civic-premium"][class*="contrast-"] .border-wrapper.exam-colour-switch:has(.option.exam-colour-switch:checked),
body[data-epso-theme="civic-premium"][class*="contrast-"] .stepper.exam-stepper .icon-bar-btn.base-12,
body[data-epso-theme="civic-premium"][class*="contrast-"] .stepper.exam-stepper .icon-bar-btn.base-12:hover,
body[data-epso-theme="civic-premium"][class*="contrast-"] .stepper.exam-stepper .icon-bar-btn.base-12:focus-visible {
  background: transparent;
  color: var(--epso-contrast-ink);
  border-color: var(--epso-contrast-border);
  box-shadow: none;
}

@media (max-width: 1200px) {
  body[data-epso-theme="civic-premium"] .qti-item-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  body[data-epso-theme="civic-premium"] .qti-item > .grid-row {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 720px) {
  body[data-epso-theme="civic-premium"] .headerbar,
  body[data-epso-theme="civic-premium"] .navigator {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body[data-epso-theme="civic-premium"] .passage,
  body[data-epso-theme="civic-premium"] .qti-interaction {
    padding: 1.5rem;
    border-radius: 1.8rem;
  }

  body[data-epso-theme="civic-premium"] .caption-container {
    padding: 0.95rem 4rem 0.95rem 4.2rem;
  }

  body[data-epso-theme="civic-premium"] .container::before {
    left: 1.35rem;
    width: 1.5rem;
    height: 1.5rem;
  }

  body[data-epso-theme="civic-premium"] .choice input:checked + .container::after {
    left: 2.1rem;
  }

  body[data-epso-theme="civic-premium"] .navigator {
    width: calc(100% - 1.2rem);
    border-radius: 2rem;
  }
}

/* Civic Premium 2026: test settings overlay aligned with exterior hub */
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) {
  --settings-overlay-backdrop: rgba(14, 24, 39, 0.42);
  --settings-overlay-header: #283c59;
  --settings-overlay-surface: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  --settings-overlay-border: rgba(40, 60, 89, 0.12);
  --settings-overlay-ink: #20324d;
  --settings-overlay-ink-soft: #66758f;
  --settings-overlay-shadow:
    0 2.4rem 6rem rgba(13, 22, 37, 0.18),
    0 0.8rem 2rem rgba(13, 22, 37, 0.08);
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  padding: 2.4rem;
  background: var(--settings-overlay-backdrop);
  backdrop-filter: blur(0.8rem);
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay-shell {
  width: min(74rem, calc(100vw - 4.8rem));
  max-height: min(90vh, 92rem);
  height: auto;
  margin: 0;
  border: 0.1rem solid rgba(255, 255, 255, 0.24);
  border-radius: 0.8rem;
  background: var(--settings-overlay-surface);
  box-shadow: var(--settings-overlay-shadow);
  overflow: hidden;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay-header {
  background: var(--settings-overlay-header);
  color: #ffffff;
  border-bottom: 0;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay-header .exam-overlay-slot,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay-footer .exam-overlay-slot {
  width: 100%;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay-header .inverted.exam-overlay-bar {
  min-height: 6.8rem;
  justify-content: flex-start;
  padding: 0 2.4rem 0 7rem;
  background: transparent;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay-header .start.exam-overlay-bar,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay-header .end.exam-overlay-bar {
  min-width: 4.4rem;
  min-height: 4.4rem;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay-header .start.exam-overlay-bar {
  left: 1.6rem;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay-title {
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.9rem, 2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: left;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay-title:focus,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay-title:focus-visible {
  outline: none;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay-header .icon-bar-btn.base-24 {
  width: 4.2rem;
  height: 4.2rem;
  border: 0.1rem solid transparent;
  border-radius: 0.6rem;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay-header .icon-bar-btn.base-24:hover,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay-header .icon-bar-btn.base-24:focus-visible {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  transform: none;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .overlay-content.exam-overlay {
  background: transparent;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .scroll-first-child,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .scroll-last-child {
  display: none;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .content.exam-settings {
  max-width: none;
  padding: 2.4rem;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .group.exam-settings {
  display: grid;
  gap: 1.2rem;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .group.exam-settings > header.exam-settings {
  margin: 0;
  color: var(--settings-overlay-ink-soft);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .panel.exam-settings {
  position: static;
  inset: auto;
  display: grid;
  gap: 1.2rem;
  padding: 1.8rem 2rem;
  border: 0.1rem solid var(--settings-overlay-border);
  border-radius: 0.8rem;
  background: #ffffff;
  box-shadow: 0 0.6rem 1.6rem rgba(40, 60, 89, 0.06);
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .panel.exam-settings:not(.source-settings-panel) {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem 2rem;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .panel.exam-settings > header.exam-settings {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--settings-overlay-ink);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .panel.exam-settings > header.exam-settings::before {
  content: none;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .panel.exam-settings > div {
  display: grid;
  gap: 1rem;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .panel.exam-settings:not(.source-settings-panel) > div {
  display: contents;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay label.exam-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  width: fit-content;
  padding: 0.35rem 0.35rem 0.35rem 0.9rem;
  border: 0.1rem solid rgba(40, 60, 89, 0.12);
  border-radius: 999px;
  background: #f7f9fc;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .panel.exam-settings:not(.source-settings-panel) label.exam-switch {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .slider.exam-switch {
  width: 5.1rem;
  height: 2.8rem;
  border: 0.1rem solid rgba(40, 60, 89, 0.16);
  background: rgba(40, 60, 89, 0.14);
  box-shadow: none;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .slider.exam-switch::after {
  top: 0.3rem;
  left: 0.3rem;
  width: 2.2rem;
  height: 2.2rem;
  background: #ffffff;
  box-shadow: 0 0.2rem 0.5rem rgba(40, 60, 89, 0.16);
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay input.exam-switch:checked + .selection.exam-switch + .slider.exam-switch {
  border-color: transparent;
  background: #283c59;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay input.exam-switch:checked + .selection.exam-switch + .slider.exam-switch::after {
  transform: translateX(2.3rem);
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay input.exam-switch:focus-visible + .selection.exam-switch + .slider.exam-switch {
  outline: none;
  box-shadow: 0 0 0 0.3rem rgba(40, 60, 89, 0.14);
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .label.exam-switch {
  min-width: auto;
  color: var(--settings-overlay-ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .caption.exam-settings {
  max-width: none;
  margin: 0;
  color: var(--settings-overlay-ink-soft);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  line-height: 1.45;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .panel.exam-settings:not(.source-settings-panel) .caption.exam-settings {
  grid-column: 1;
  grid-row: 2;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .source-settings-body {
  gap: 1.25rem;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .source-settings-summary {
  padding: 1.2rem 1.35rem;
  border: 0.1rem solid rgba(40, 60, 89, 0.1);
  border-radius: 1.8rem;
  background: rgba(40, 60, 89, 0.05);
  color: var(--settings-overlay-ink-soft);
  font-size: 1.38rem;
  line-height: 1.5;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .source-settings-toolbar {
  gap: 1rem;
  justify-content: flex-start;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .actionable.secondary,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .source-settings-action {
  border: 0.1rem solid var(--settings-overlay-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--settings-overlay-ink);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.96),
    0 0.9rem 2rem rgba(40, 60, 89, 0.08);
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .actionable.primary,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .source-settings-apply {
  border: 0.1rem solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, #324a6d 0%, #283c59 100%);
  color: #ffffff;
  box-shadow: 0 1.4rem 3rem rgba(40, 60, 89, 0.2);
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .actionable.secondary:hover,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .actionable.secondary:focus-visible,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .actionable.primary:hover,
body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .actionable.primary:focus-visible {
  transform: translateY(-0.12rem);
  filter: none;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .source-settings-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .source-settings-option {
  position: relative;
  align-items: center;
  gap: 1.15rem;
  min-height: 8.2rem;
  padding: 1.25rem 1.35rem;
  border: 0.1rem solid var(--settings-overlay-border);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 243, 236, 0.9) 100%);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.96),
    0 1rem 2.4rem rgba(40, 60, 89, 0.06);
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .source-settings-option input {
  margin: 0;
  inline-size: 1.9rem;
  block-size: 1.9rem;
  accent-color: #283c59;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .source-settings-option-body {
  align-items: center;
  gap: 1rem;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .source-settings-option-name {
  color: var(--settings-overlay-ink);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.56rem;
  font-weight: 600;
  line-height: 1.18;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .source-settings-option-count {
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(40, 60, 89, 0.08);
  color: var(--settings-overlay-ink-soft);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .source-settings-option:has(input:checked) {
  border-color: rgba(40, 60, 89, 0.22);
  background:
    radial-gradient(circle at top left, rgba(40, 60, 89, 0.1) 0, rgba(40, 60, 89, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(236, 242, 248, 0.96) 100%);
  box-shadow:
    inset 0 0 0 0.2rem rgba(40, 60, 89, 0.05),
    0 1.4rem 3rem rgba(40, 60, 89, 0.11);
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .source-settings-error {
  color: #9d2b20;
  font-size: 1.35rem;
}

body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay-footer {
  min-height: 0;
  background: transparent;
}

@media (max-width: 980px) {
  body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay {
    padding: 1rem;
  }

  body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay-shell {
    width: min(100vw - 2rem, 76rem);
    max-height: calc(100vh - 2rem);
  }

  body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .source-settings-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay {
    padding: 0;
  }

  body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay-shell {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay-header .inverted.exam-overlay-bar {
    min-height: 7.8rem;
    padding: 0 1.8rem 0 6.8rem;
  }

  body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay-title {
    font-size: 2rem;
  }

  body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .content.exam-settings {
    padding: 1.4rem;
  }

  body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .panel.exam-settings {
    padding: 1.4rem;
    border-radius: 0.8rem;
  }

  body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .panel.exam-settings:not(.source-settings-panel) {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .panel.exam-settings > header.exam-settings {
    font-size: 1.55rem;
  }

  body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .panel.exam-settings:not(.source-settings-panel) label.exam-switch {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .panel.exam-settings:not(.source-settings-panel) .caption.exam-settings {
    grid-column: 1;
    grid-row: auto;
  }

  body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .source-settings-option {
    min-height: 7.4rem;
    padding: 1.05rem 1.15rem;
  }

  body[data-epso-theme="civic-premium"]:not(.contrast-white-on-black):not(.contrast-yellow-on-blue):not(.contrast-black-on-cream):not(.contrast-black-on-blue):not(.contrast-black-on-magenta):not(.contrast-grey-on-green) .config-overlay .source-settings-option-name {
    font-size: 1.4rem;
  }
}

body.is-live-room-exam .live-room-overlay {
  display: none !important;
}

body.is-live-room-exam .training-feedback.live-room-results-panel {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 1.8rem;
  padding: 1.8rem 2rem;
  border-radius: 1.8rem;
  border: 0.1rem solid rgba(16, 55, 102, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 247, 255, 0.96) 100%);
  box-shadow: 0 1.4rem 3rem rgba(9, 28, 48, 0.08);
}

body.is-live-room-exam .live-room-results-head,
body.is-live-room-exam .live-room-results-scoreboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.6rem;
}

body.is-live-room-exam .live-room-results-copy {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.is-live-room-exam .live-room-results-kicker {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f5099;
}

body.is-live-room-exam .live-room-results-copy strong,
body.is-live-room-exam .live-room-results-scoreboard-head strong {
  color: #0a2540;
}

body.is-live-room-exam .live-room-results-meta,
body.is-live-room-exam .live-room-results-scoreboard-head span,
body.is-live-room-exam .live-room-results-scoreboard-copy span,
body.is-live-room-exam .live-room-results-waiting {
  color: #4d6783;
}

body.is-live-room-exam .live-room-results-room {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: #eaf2ff;
  color: #0f5099;
  font-size: 1.3rem;
  font-weight: 800;
}

body.is-live-room-exam .live-room-results-scoreboard {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

body.is-live-room-exam .live-room-results-scoreboard-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.is-live-room-exam .live-room-results-scoreboard-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.88);
  border: 0.1rem solid rgba(16, 55, 102, 0.1);
}

body.is-live-room-exam .live-room-results-scoreboard-rank,
body.is-live-room-exam .live-room-results-scoreboard-points {
  font-weight: 800;
  color: #0f5099;
}

body.is-live-room-exam .live-room-results-scoreboard-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

body.is-live-room-exam .live-room-results-scoreboard-empty {
  margin: 0;
  color: #4d6783;
}

body.is-live-room-exam .live-room-results-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

body.is-live-room-exam .choice.live-room-result-choice label {
  cursor: default;
}

body.is-live-room-exam .choice.live-room-result-choice .choice-eliminate-btn,
body.is-live-room-exam .choice.live-room-result-choice .container::before,
body.is-live-room-exam .choice.live-room-result-choice .container::after {
  display: none !important;
}

body.is-live-room-exam .choice.live-room-result-choice .caption-container {
  padding: 1.2rem 1.6rem 1.4rem;
}

body.is-live-room-exam .choice.live-room-result-choice .container,
body.is-live-room-exam .choice.live-room-result-choice input:checked + .container,
body.is-live-room-exam .choice.live-room-result-choice label:hover .container,
body.is-live-room-exam .choice.live-room-result-choice label:focus-within .container {
  background: #ffffff;
  color: #121212;
  border-color: rgba(16, 55, 102, 0.14);
  box-shadow: 0 1rem 2.4rem rgba(9, 28, 48, 0.08);
}

body.is-live-room-exam .choice.live-room-result-choice.live-room-selected .container,
body.is-live-room-exam .choice.live-room-result-choice.live-room-selected input:checked + .container {
  border-color: rgba(15, 80, 153, 0.55);
  box-shadow:
    0 1rem 2.4rem rgba(9, 28, 48, 0.08),
    0 0 0 0.16rem rgba(15, 80, 153, 0.14);
}

body.is-live-room-exam .choice.live-room-result-choice.training-correct .container,
body.is-live-room-exam .choice.live-room-result-choice.training-correct input:checked + .container,
body.is-live-room-exam .choice.live-room-result-choice.training-correct label:hover .container,
body.is-live-room-exam .choice.live-room-result-choice.training-correct label:focus-within .container {
  background: #edf9f2;
  color: #121212;
  border-color: rgba(15, 139, 67, 0.48);
}

body.is-live-room-exam .choice.live-room-result-choice.training-incorrect.live-room-selected .container,
body.is-live-room-exam .choice.live-room-result-choice.training-incorrect.live-room-selected input:checked + .container {
  background: #fff3f3;
  color: #121212;
  border-color: rgba(214, 40, 40, 0.48);
}

body.is-live-room-exam .live-choice-votes {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.2rem 1.6rem 1rem;
  border-bottom: 0.1rem solid rgba(16, 55, 102, 0.1);
  background: linear-gradient(180deg, rgba(234, 242, 255, 0.68) 0%, rgba(255, 255, 255, 0.88) 100%);
}

body.is-live-room-exam .live-choice-votes.is-correct {
  background: linear-gradient(180deg, rgba(233, 248, 239, 0.88) 0%, rgba(255, 255, 255, 0.92) 100%);
}

body.is-live-room-exam .live-choice-votes-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

body.is-live-room-exam .live-choice-votes-head strong {
  color: #0a2540;
}

body.is-live-room-exam .live-choice-votes-percent {
  margin-left: auto;
  color: #4d6783;
  font-weight: 700;
}

body.is-live-room-exam .live-choice-votes-tag {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: #0f5099;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
}

body.is-live-room-exam .live-choice-votes-track {
  height: 0.85rem;
  border-radius: 999px;
  background: #dfe8f5;
  overflow: hidden;
}

body.is-live-room-exam .live-choice-votes-fill {
  display: block;
  height: 100%;
  min-width: 0.85rem;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f5099 0%, #29a7ff 100%);
}

body.is-live-room-exam .live-choice-votes.is-correct .live-choice-votes-fill,
body.is-live-room-exam .choice.live-room-result-choice.training-correct .live-choice-votes-fill {
  background: linear-gradient(90deg, #0f8b43 0%, #31c66e 100%);
}

body.is-live-room-exam .live-choice-voters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

body.is-live-room-exam .live-choice-voters span {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #edf4ff;
  color: #0f5099;
  font-size: 1.2rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  body.is-live-room-exam .training-feedback.live-room-results-panel {
    padding: 1.6rem;
  }

  body.is-live-room-exam .live-room-results-head,
  body.is-live-room-exam .live-room-results-scoreboard-head {
    flex-direction: column;
  }

  body.is-live-room-exam .live-room-results-room {
    align-self: flex-start;
  }

  body.is-live-room-exam .live-room-results-actions {
    justify-content: stretch;
  }

  body.is-live-room-exam .live-room-results-actions > * {
    width: 100%;
  }
}

.data-visual-frame {
  --nr-blue: #273e57;
  --nr-blue-strong: #1a2940;
  --nr-blue-soft: rgba(39, 62, 87, 0.06);
  --nr-surface: #ffffff;
  --nr-surface-alt: #fafbfc;
  --nr-border: #e5e8ef;
  --nr-grid: #edf0f5;
  --nr-text: #0b1424;
  --nr-muted: #4b5873;
  --visual-card-radius: 1.4rem;
  --visual-card-border: rgba(11, 20, 36, 0.08);
  --visual-card-surface-base: #ffffff;
  --visual-card-surface-accent: rgba(255, 255, 255, 0);
  --visual-card-shadow: 0 1px 3px rgba(11, 20, 36, 0.06), 0 0.5rem 1.5rem rgba(11, 20, 36, 0.05);
  --visual-card-padding-y: 1.35rem;
  --visual-card-padding-x: 1.55rem;
  --visual-card-title-size: 1.72rem;
  --visual-card-subtitle-size: 1rem;
  --visual-card-title-max: 24ch;
  --visual-card-subtitle-max: 56ch;
  --visual-card-note-size: 1rem;
  --visual-card-plot-min-height: 22rem;
  --visual-card-plot-padding: 0.35rem 0.9rem 2rem;
  display: grid;
  gap: 1.2rem;
  margin: 0.2rem 0 0.4rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  align-content: start;
}

.data-visual-frame-mosaic {
  grid-auto-rows: 1fr;
  justify-content: center;
}

.passage .data-visual-frame {
  margin-inline: auto;
}

.data-visual-mosaic-slot {
  min-width: 0;
  max-width: 100%;
}

.data-visual-mosaic-empty {
  display: grid;
  place-items: center;
  min-height: 18rem;
  border: 0.1rem dashed var(--nr-border);
  border-radius: 1.4rem;
  background: #fafbfc;
  color: var(--nr-muted);
  font-family: "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
}

.data-visual-frame.is-split {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.data-visual-frame.is-table-only,
.data-visual-frame.is-chart-only {
  grid-template-columns: 1fr;
}

.visual-card {
  min-width: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0.1rem solid var(--visual-card-border);
  border-radius: var(--visual-card-radius);
  background: #ffffff;
  padding: var(--visual-card-padding-y) var(--visual-card-padding-x) calc(var(--visual-card-padding-y) + 0.14rem);
  box-shadow: var(--visual-card-shadow);
}

.visual-card::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  top: 0.08rem;
  height: 1.35rem;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.9;
}

.visual-card > * {
  position: relative;
  z-index: 1;
}

.visual-card .data-visual-title,
.visual-card .data-visual-chart-title {
  margin: 0;
  max-width: var(--visual-card-title-max);
  margin-inline: auto;
  font-family: "Inter Tight", "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  line-height: 1.2;
  color: var(--nr-text);
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.visual-card .data-visual-title {
  font-size: var(--visual-card-title-size);
}

.visual-card .data-visual-chart-title {
  font-size: var(--visual-card-title-size);
}

.visual-card .data-visual-subtitle {
  margin: 0.42rem 0 0;
  max-width: var(--visual-card-subtitle-max);
  margin-inline: auto;
  font-family: "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: var(--visual-card-subtitle-size);
  color: var(--nr-muted);
  text-align: center;
  line-height: 1.4;
  text-wrap: pretty;
}

.data-visual-table-wrap {
  margin-top: 0.68rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.52rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
}

.data-visual-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  border-radius: 0;
  overflow: visible;
}

.data-visual-table th,
.data-visual-table td {
  border: 0.1rem solid #e5e8ef;
  padding: 0.5rem 0.7rem;
  color: var(--nr-text);
  font-variant-numeric: tabular-nums;
}

.data-visual-table thead th {
  font-family: "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.48rem;
  font-weight: 700;
  background: #273e57;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.01em;
}

.data-visual-table thead th:first-child {
  text-align: left;
}

.data-visual-table tbody th {
  font-family: "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.36rem;
  font-weight: 600;
  background: rgba(39, 62, 87, 0.04);
  color: var(--nr-text);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.data-visual-table tbody td {
  font-family: "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.34rem;
  text-align: center;
  background: #ffffff;
  color: var(--nr-text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.data-visual-table tbody tr:nth-child(even) td {
  background: #fafbfc;
}

.data-visual-chart-shell {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: stretch;
  min-width: 0;
}

.data-visual-chart-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 2rem;
}

.data-visual-chart-yaxis span {
  font-family: "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--nr-muted);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.data-visual-chart-plot {
  position: relative;
  min-height: var(--visual-card-plot-min-height);
  border-left: 0.2rem solid rgba(39, 62, 87, 0.18);
  border-bottom: 0.2rem solid rgba(39, 62, 87, 0.18);
  padding: var(--visual-card-plot-padding);
  border-radius: 0 0 1.4rem 1.4rem;
}

.data-visual-chart-grid {
  position: absolute;
  inset: 0 0 2rem 0;
}

.data-visual-chart-grid-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 0.1rem solid var(--nr-grid);
}

.data-visual-chart-bars {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: end;
}

.data-visual-chart-bar-group {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: end;
  justify-items: center;
  gap: 0.4rem;
  min-height: 100%;
}

.data-visual-chart-bar-value {
  font-family: "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--nr-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.data-visual-chart-bar-track {
  width: min(100%, 6.8rem);
  height: 16rem;
  display: flex;
  align-items: flex-end;
  padding: 0 0.15rem;
}

.data-visual-chart-bar {
  width: 100%;
  min-height: 2px;
  background: var(--nr-blue);
  border-radius: 0.8rem 0.8rem 0.2rem 0.2rem;
}

.data-visual-chart-bar-label {
  font-family: "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.12rem;
  line-height: 1.2;
  color: var(--nr-text);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0;
}

.data-visual-chart-unit {
  margin: 0.55rem 0 0;
  font-family: "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: var(--visual-card-note-size);
  color: var(--nr-muted);
  text-align: right;
}

.data-visual-line-legend {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.data-visual-line-legend li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.55rem;
  align-items: center;
  color: var(--nr-text);
  font-family: "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 1.25;
}

.data-visual-line-swatch {
  display: block;
  width: 1.12rem;
  height: 1.12rem;
  border-radius: 999px;
}

.data-visual-line-svg {
  position: absolute;
  inset: 0 0 2rem 0;
  z-index: 1;
  overflow: visible;
}

.data-visual-line-axis {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  display: grid;
  gap: 0.4rem;
}

.data-visual-line-axis span {
  font-family: "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.02rem;
  line-height: 1.2;
  color: var(--nr-muted);
  text-align: center;
  font-weight: 600;
}

.data-visual-table-note,
.data-visual-chart-note {
  margin: 0.65rem 0 0;
  font-family: "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: var(--visual-card-note-size);
  line-height: 1.4;
  color: var(--nr-muted);
}

.data-visual-chart-note {
  text-align: right;
}

.data-visual-echart {
  width: 100%;
  height: 28rem;
  margin-top: 0.85rem;
}

.visual-card.is-custom-echart {
  overflow-x: auto;
}

.visual-card.is-custom-echart .data-visual-echart {
  min-width: 56rem;
  height: 42rem;
}

.visual-card-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: auto;
}

.data-visual-chart-scrollbox {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  flex: 1 1 auto;
}

.visual-card-scroll .data-visual-chart-shell,
.visual-card-scroll .data-visual-horizontal-shell {
  width: max-content;
  min-width: 100%;
}

.visual-card-scroll .data-visual-echart {
  width: auto;
  min-width: 100%;
}

.data-visual-pie-shell {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-width: 0;
}

.data-visual-pie-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.data-visual-pie {
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 16px rgba(11, 20, 36, 0.12);
  position: relative;
}
.data-visual-pie::after {
  content: '';
  position: absolute;
  inset: 25%;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: inset 0 2px 6px rgba(11, 20, 36, 0.07);
}

.data-visual-pie-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.58rem;
}

.data-visual-pie-legend li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.55rem;
  align-items: center;
  color: var(--nr-text);
  font-family: "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.12rem;
  line-height: 1.25;
}

.data-visual-pie-swatch {
  display: block;
  width: 1.12rem;
  height: 1.12rem;
  border-radius: 3px;
  border: none;
}

.data-visual-horizontal-shell {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.9rem;
}

.data-visual-horizontal-axis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
  color: var(--nr-muted);
  font-family: "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.data-visual-horizontal-rows {
  display: grid;
  gap: 0.9rem;
}

.data-visual-horizontal-row {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  gap: 0.9rem;
  align-items: center;
  min-width: 0;
}

.data-visual-horizontal-label {
  color: var(--nr-text);
  font-family: "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
}

.data-visual-horizontal-bars {
  display: grid;
  gap: 0.45rem;
}

.data-visual-horizontal-track {
  position: relative;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(39, 62, 87, 0.07);
  border: 0.1rem solid rgba(39, 62, 87, 0.1);
  overflow: hidden;
}

.data-visual-horizontal-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.data-visual-horizontal-value {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  color: #ffffff;
  font-family: "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.data-visual-chart-bar-track-stacked {
  display: flex;
  flex-direction: column-reverse;
  gap: 0;
  overflow: hidden;
  background: rgba(39, 62, 87, 0.07);
  border: 0.1rem solid rgba(39, 62, 87, 0.1);
  border-radius: 0.8rem 0.8rem 0.2rem 0.2rem;
}

.data-visual-chart-bar-segment {
  display: block;
  width: 100%;
}

.data-visual-table-wrap::-webkit-scrollbar {
  height: 0.8rem;
}

.data-visual-table-wrap::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(39, 62, 87, 0.06);
}

.data-visual-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(39, 62, 87, 0.22);
}

.visual-card-scroll::-webkit-scrollbar {
  height: 0.8rem;
}

.visual-card-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(39, 62, 87, 0.06);
}

.visual-card-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(39, 62, 87, 0.22);
}

@media (max-width: 920px) {
  .data-visual-frame {
    --visual-card-title-size: 1.52rem;
    --visual-card-subtitle-size: 0.94rem;
    --visual-card-note-size: 0.94rem;
    --visual-card-padding-y: 1.18rem;
    --visual-card-padding-x: 1.28rem;
    --visual-card-plot-min-height: 19rem;
  }

  .data-visual-frame.is-split {
    grid-template-columns: 1fr;
  }

  .data-visual-frame-mosaic {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
  }

  .native-visual-panel-title,
  .native-breakdown-title {
    font-size: 1.7rem;
  }

  .native-visual-svg {
    min-width: 42rem;
  }

  .data-visual-table {
    min-width: 0;
  }

  .native-data-table {
    min-width: 0;
  }

  .data-visual-table th,
  .data-visual-table td {
    padding: 0.42rem 0.5rem;
  }

  .native-data-table th,
  .native-data-table td {
    padding: 0.42rem 0.5rem;
  }

  .data-visual-table thead th,
  .data-visual-table tbody th,
  .data-visual-table tbody td {
    font-size: 1.55rem;
  }

  .native-data-table thead th,
  .native-data-table tbody th,
  .native-data-table tbody td {
    font-size: 1.45rem;
  }

  .data-visual-chart-plot {
    min-height: 20rem;
  }

  .data-visual-chart-bar-track {
    height: 13.6rem;
    width: min(100%, 54px);
  }

  .data-visual-pie-shell {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .data-visual-pie-legend {
    width: 100%;
  }

  .data-visual-chart-bar-value {
    font-size: 1.2rem;
  }

  .data-visual-chart-bar-label {
    font-size: 1.08rem;
  }

  .data-visual-table-note,
  .data-visual-chart-note {
    font-size: 1.2rem;
  }

  .data-visual-pie-shell {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .data-visual-pie {
    width: min(100%, 250px);
  }

  .data-visual-horizontal-row {
    grid-template-columns: 1fr;
  }

  .data-visual-pie-legend li {
    font-size: 1.22rem;
  }

  .data-visual-line-legend li {
    font-size: 1.22rem;
  }

  .data-visual-line-axis span {
    font-size: 1rem;
  }
}

@media (min-width: 1100px) {
  body[data-epso-theme="civic-premium"] .test-runner {
    --epso-side-nav-width: 8rem;
    --epso-overview-drawer-width: 30.2rem;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 1.8rem;
    padding: 1.6rem;
  }

  body[data-epso-theme="civic-premium"] .top-bar {
    grid-column: 1 / -1;
    grid-row: 1;
    border-radius: 2.6rem;
    overflow: visible;
    z-index: 6;
  }

  body[data-epso-theme="civic-premium"] main {
    grid-column: 2;
    grid-row: 2;
    height: auto;
    min-height: 0;
    overflow: auto;
  }

  body[data-epso-theme="civic-premium"] #test-navigation.bottom-bar {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    position: relative;
    isolation: isolate;
    height: auto;
    min-height: 0;
    width: var(--epso-side-nav-width);
    padding: 0;
    border-top: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    align-items: stretch;
    overflow: visible;
    will-change: width;
    transition: width 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body[data-epso-theme="civic-premium"] #test-navigation.bottom-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    box-sizing: border-box;
    border: 1px solid #283c59;
    border-radius: 2.4rem;
    pointer-events: none;
    transition: border-radius 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body[data-epso-theme="civic-premium"] #test-navigation.bottom-bar.overview-expanded {
    width: calc(var(--epso-side-nav-width) + var(--epso-overview-drawer-width));
  }

  body[data-epso-theme="civic-premium"] #test-navigation .navigator {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    position: relative;
    z-index: 1;
    flex: 0 0 var(--epso-side-nav-width);
    min-height: 0;
    height: auto;
    width: var(--epso-side-nav-width);
    min-width: var(--epso-side-nav-width);
    max-width: var(--epso-side-nav-width);
    margin: 0;
    box-sizing: border-box;
    padding: 1.4rem 0.9rem;
    gap: 1rem;
    border: 1px solid transparent;
    border-radius: 2.4rem;
    background: transparent;
    box-shadow: none;
    transition:
      border-radius 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body[data-epso-theme="civic-premium"] #test-navigation.bottom-bar.overview-expanded .navigator {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  body[data-epso-theme="civic-premium"] .overview-inline-drawer {
    display: flex;
    align-self: stretch;
    position: relative;
    z-index: 1;
    flex: 0 0 0;
    width: 0;
    height: 100%;
    min-height: 100%;
    min-width: 0;
    box-sizing: border-box;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    clip-path: inset(0 100% 0 0 round 0 2.4rem 2.4rem 0);
    transform: translateX(-0.6rem);
    will-change: width, flex-basis, opacity, transform, clip-path;
    transition:
      flex-basis 360ms cubic-bezier(0.22, 1, 0.36, 1),
      width 360ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 220ms ease,
      transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
      clip-path 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body[data-epso-theme="civic-premium"] .overview-inline-drawer.open {
    flex-basis: var(--epso-overview-drawer-width);
    width: var(--epso-overview-drawer-width);
    opacity: 1;
    pointer-events: auto;
    clip-path: inset(0 0 0 0 round 0 2.4rem 2.4rem 0);
    transform: translateX(0);
  }

  body[data-epso-theme="civic-premium"] .overview-inline-shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 100%;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-left: 0;
    border-radius: 0 2.4rem 2.4rem 0;
    background: #ffffff;
    opacity: 0.72;
    transform: translateX(-0.7rem) scaleX(0.985);
    transform-origin: left center;
    transition:
      opacity 220ms ease,
      transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body[data-epso-theme="civic-premium"] .overview-inline-drawer.open .overview-inline-shell {
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }

  body[data-epso-theme="civic-premium"] .overview-inline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.4rem 1.4rem 0.125rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(40, 60, 89, 0.18);
  }

  body[data-epso-theme="civic-premium"] .overview-inline-body,
  body[data-epso-theme="civic-premium"] .overview-inline-footer {
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.6rem);
    pointer-events: none;
    transition:
      opacity 120ms ease,
      transform 140ms ease,
      visibility 0s linear 140ms;
  }

  body[data-epso-theme="civic-premium"] .overview-inline-drawer.is-ready .overview-inline-body,
  body[data-epso-theme="civic-premium"] .overview-inline-drawer.is-ready .overview-inline-footer {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition:
      opacity 120ms ease,
      transform 140ms ease,
      visibility 0s linear 0s;
  }

  body[data-epso-theme="civic-premium"] .overview-inline-title {
    margin: 0;
    display: flex;
    align-items: center;
    min-height: 5rem;
    color: #283c59;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
  }

  body[data-epso-theme="civic-premium"] .overview-inline-close {
    width: 5rem;
    min-width: 5rem;
    height: 5rem;
    min-height: 5rem;
    padding: 0;
    border-color: transparent;
    background: transparent;
    color: #283c59;
    box-shadow: none;
  }

  body[data-epso-theme="civic-premium"] .overview-inline-close:hover,
  body[data-epso-theme="civic-premium"] .overview-inline-close:focus-visible {
    border-color: transparent;
    background: transparent;
    color: #283c59;
    box-shadow: none;
  }

  body[data-epso-theme="civic-premium"] .overview-inline-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body[data-epso-theme="civic-premium"] .overview-inline-body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  body[data-epso-theme="civic-premium"] .overview-inline-body .overview.exam-overview {
    gap: 1.6rem;
    padding: 1.4rem 1.4rem 1.8rem;
    max-width: none;
    margin: 0;
  }

  body[data-epso-theme="civic-premium"] .overview-inline-body .scrollbox.exam-tabs > ul.exam-tabs {
    gap: 1.4rem;
    padding-bottom: 0.6rem;
    border-bottom-color: rgba(40, 60, 89, 0.18);
  }

  body[data-epso-theme="civic-premium"] .overview-inline-body button.exam-tabs[role="tab"] {
    font-size: 1.32rem;
    letter-spacing: 0.04em;
  }

  body[data-epso-theme="civic-premium"] .overview-inline-body ol.space-large.exam-step {
    gap: 1rem;
    margin-bottom: 0;
  }

  body[data-epso-theme="civic-premium"] #overview-panel-all,
  body[data-epso-theme="civic-premium"] #overview-panel-bookmarked,
  body[data-epso-theme="civic-premium"] #overview-panel-incomplete {
    gap: 1.4rem;
  }

  body[data-epso-theme="civic-premium"] .overview-question-group.exam-overview {
    gap: 1.25rem;
    padding: 1.4rem;
    border-color: rgba(40, 60, 89, 0.16);
    border-radius: 0.8rem;
    background: #ffffff;
    box-shadow: none;
  }

  body[data-epso-theme="civic-premium"] .overview-question-group.exam-overview .tabpanel-heading.exam-overview {
    color: #283c59;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
  }

  /* Flatten the summary drawer controls: no gradients or soft blur-like shadows inside the panel. */
  body[data-epso-theme="civic-premium"] .overview-inline-body .step,
  body[data-epso-theme="civic-premium"] .overview-inline-body button.step.exam-step {
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
  }

  body[data-epso-theme="civic-premium"] .overview-inline-body .step.current,
  body[data-epso-theme="civic-premium"] .overview-inline-body button.step.exam-step.current {
    background: #d8a93a;
    box-shadow: none;
  }

  body[data-epso-theme="civic-premium"] .overview-inline-body .step.completed,
  body[data-epso-theme="civic-premium"] .overview-inline-body button.step.exam-step.completed {
    background: #283c59;
    border-color: #283c59;
    box-shadow: none;
  }

  body[data-epso-theme="civic-premium"] .overview-inline-body .step.visited,
  body[data-epso-theme="civic-premium"] .overview-inline-body button.step.exam-step.visited {
    background: #f1f6ff;
    box-shadow: none;
  }

  body[data-epso-theme="civic-premium"] .overview-inline-footer .actionable {
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
  }

  body[data-epso-theme="civic-premium"] .overview-inline-footer {
    flex: 0 0 auto;
    padding: 1rem 1.4rem 1.4rem;
    border-top: 1px solid rgba(40, 60, 89, 0.18);
  }

  body[data-epso-theme="civic-premium"] .overview-inline-submit {
    width: 100%;
    justify-content: center;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .button-container {
    justify-content: center;
    margin: 0;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .nav-next-btn,
  body[data-epso-theme="civic-premium"] #test-navigation .nav-prev-btn {
    border-color: #283c59;
    background: #283c59;
    color: #ffffff;
    box-shadow: none;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .nav-next-btn:hover,
  body[data-epso-theme="civic-premium"] #test-navigation .nav-next-btn:focus-visible,
  body[data-epso-theme="civic-premium"] #test-navigation .nav-prev-btn:hover,
  body[data-epso-theme="civic-premium"] #test-navigation .nav-prev-btn:focus-visible {
    border-color: #283c59;
    background: #283c59;
    color: #ffffff;
    box-shadow: none;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .nav-prev-btn:disabled,
  body[data-epso-theme="civic-premium"] #test-navigation .nav-prev-btn:disabled:hover,
  body[data-epso-theme="civic-premium"] #test-navigation .nav-prev-btn:disabled:focus-visible {
    border-color: #c8ced8;
    background: #c8ced8;
    color: #6f7885;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .button-container.start,
  body[data-epso-theme="civic-premium"] #test-navigation .button-container.end {
    flex: 0 0 auto;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .button-container .nav-btn-hidden {
    display: none;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .progress-container {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    justify-content: center;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .steps-container {
    width: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: auto;
    padding-right: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .steps-container::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .steps {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    width: 100%;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .step,
  body[data-epso-theme="civic-premium"] #test-navigation button.step.exam-step {
    width: 4.4rem;
    height: 4.4rem;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .overview-container {
    width: 100%;
    margin-top: auto;
    display: flex;
    justify-content: center;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .overview-container .actionable {
    width: 6rem;
    min-width: 6rem;
    min-height: 5.2rem;
    height: auto;
    padding: 1rem 0.55rem;
    line-height: 1.15;
  }

  body[data-epso-theme="civic-premium"] .test-content-columns {
    width: 100%;
    min-height: 100%;
    align-items: flex-start;
    justify-content: center;
  }

  body[data-epso-theme="civic-premium"] .qti-item-container {
    width: min(149.4rem, 100%);
    padding-top: 2.4rem;
    padding-bottom: 4rem;
  }

  body[data-epso-theme="civic-premium"] .floating-bookmark-btn {
    right: 2rem;
    bottom: 2rem;
  }
}

/* Enforce flat results palette with the header blue as primary color. */
.results-card {
  background: #ffffff;
}

.results-header {
  background: #283c59;
  border-bottom-color: #283c59;
  color: #ffffff;
}

.results-body {
  background: #f5f8fc;
}

body[data-epso-theme="civic-premium"] .results-card {
  background: #ffffff;
}

body[data-epso-theme="civic-premium"] .results-header {
  background: #283c59;
  border-bottom-color: #283c59;
  color: #ffffff;
}

body[data-epso-theme="civic-premium"] .results-body {
  background: #f5f8fc;
}

/* Keep selected incorrect answer text color stable when marking it in red. */
.choice.training-incorrect input:checked + .container {
  color: var(--color-text-inverted);
}

body[data-epso-theme="civic-premium"] .choice.training-incorrect input:checked + .container {
  color: #fbf8f0;
}

/* Keep text color unchanged when the selected answer is marked incorrect (red state). */
.choice.training-selected.training-incorrect .container,
.choice.training-selected.training-incorrect .container .caption-container,
.choice.training-selected.training-incorrect .container .choice-content {
  color: var(--color-text-inverted) !important;
}

body[data-epso-theme="civic-premium"] .choice.training-selected.training-incorrect .container,
body[data-epso-theme="civic-premium"] .choice.training-selected.training-incorrect .container .caption-container,
body[data-epso-theme="civic-premium"] .choice.training-selected.training-incorrect .container .choice-content {
  color: #fbf8f0 !important;
}

body.is-live-room-exam {
  --live-room-bg: #07131f;
  --live-room-surface: rgba(9, 21, 35, 0.9);
  --live-room-surface-strong: rgba(6, 16, 28, 0.96);
  --live-room-surface-soft: rgba(12, 29, 46, 0.82);
  --live-room-border: rgba(198, 163, 84, 0.22);
  --live-room-border-soft: rgba(129, 153, 183, 0.16);
  --live-room-text: #edf3fb;
  --live-room-text-soft: #9fb0c6;
  --live-room-gold: #c6a354;
  --live-room-red: #d05a4e;
  --live-room-blue: #5d8fd8;
  background:
    radial-gradient(circle at top, rgba(24, 52, 88, 0.34), transparent 38%),
    linear-gradient(180deg, #07131f 0%, #0b1624 46%, #08111c 100%);
  color: var(--live-room-text);
}

body.is-live-room-exam main {
  background: transparent;
}

body.is-live-room-exam .top-bar,
body.is-live-room-exam #test-navigation {
  background: rgba(7, 17, 29, 0.84);
  border-color: rgba(198, 163, 84, 0.16);
  backdrop-filter: blur(16px);
}

body.is-live-room-exam .test-content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(30rem, 34rem);
  align-items: start;
  gap: 2.4rem;
  padding: 2rem max(1.8rem, 3vw) 6rem;
}

body.is-live-room-focus .test-content-columns {
  grid-template-columns: minmax(0, 1fr);
}

body.is-live-room-exam .qti-item-container {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.is-live-room-exam .qti-item {
  border-radius: 2.4rem;
  overflow: hidden;
  border: 0.1rem solid var(--live-room-border-soft);
  background: linear-gradient(180deg, rgba(9, 21, 35, 0.96) 0%, rgba(8, 18, 31, 0.92) 100%);
  box-shadow: 0 2.6rem 5rem rgba(0, 0, 0, 0.34);
}

body.is-live-room-exam .qti-prompt,
body.is-live-room-exam .question-source,
body.is-live-room-exam .passage,
body.is-live-room-exam .passage p,
body.is-live-room-exam .passage strong {
  color: var(--live-room-text);
}

body.is-live-room-exam .passage {
  padding: 2rem 2.4rem 0.8rem;
}

body.is-live-room-exam .passage-image-frame,
body.is-live-room-exam .native-visual-frame,
body.is-live-room-exam .data-visual-frame {
  border-color: rgba(198, 163, 84, 0.14);
  background: rgba(240, 245, 252, 0.96);
}

body.is-live-room-exam .choice .container,
body.is-live-room-exam .choice input:checked + .container,
body.is-live-room-exam .choice label:hover .container,
body.is-live-room-exam .choice label:focus-within .container {
  background: rgba(12, 26, 42, 0.94);
  border-color: rgba(129, 153, 183, 0.22);
  color: var(--live-room-text);
  box-shadow: 0 1.6rem 3rem rgba(0, 0, 0, 0.2);
}

body.is-live-room-exam .choice .caption-container,
body.is-live-room-exam .choice .choice-content {
  color: inherit;
}

body.is-live-room-exam .choice input:checked + .container {
  border-color: rgba(198, 163, 84, 0.44);
  box-shadow:
    0 1.6rem 3rem rgba(0, 0, 0, 0.2),
    0 0 0 0.1rem rgba(198, 163, 84, 0.18);
}

body.is-live-room-exam .live-room-command-shell {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-bottom: 1.8rem;
  padding: 2rem;
  border-radius: 2.6rem;
  border: 0.1rem solid var(--live-room-border);
  background:
    linear-gradient(135deg, rgba(198, 163, 84, 0.11) 0%, rgba(10, 24, 38, 0) 46%),
    linear-gradient(180deg, rgba(10, 24, 38, 0.96) 0%, rgba(8, 18, 30, 0.92) 100%);
  box-shadow: 0 2.2rem 4.8rem rgba(0, 0, 0, 0.28);
}

body.is-live-room-exam .live-room-command-top,
body.is-live-room-exam .live-room-command-grid,
body.is-live-room-exam .live-room-command-actions,
body.is-live-room-exam .live-room-results-grid,
body.is-live-room-exam .live-room-results-analysis,
body.is-live-room-exam .live-room-overlay-area-grid,
body.is-live-room-exam .live-room-overlay-stat-grid {
  display: grid;
  gap: 1.4rem;
}

body.is-live-room-exam .live-room-command-top {
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 24rem);
  align-items: start;
}

body.is-live-room-exam .live-room-command-copy h1 {
  margin: 0.4rem 0 0;
  color: #f7f1e8;
  font-size: clamp(2.4rem, 2.3vw, 3.4rem);
  line-height: 1.05;
}

body.is-live-room-exam .live-room-command-kicker,
body.is-live-room-exam .live-room-panel-label,
body.is-live-room-exam .live-room-rail-head span,
body.is-live-room-exam .live-room-results-kicker,
body.is-live-room-exam .live-room-overlay-kicker {
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--live-room-gold);
}

body.is-live-room-exam .live-room-command-badges,
body.is-live-room-exam .live-room-overlay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

body.is-live-room-exam .live-room-chip {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 0.1rem solid rgba(198, 163, 84, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #f4ead6;
  font-size: 1.16rem;
  font-weight: 700;
}

body.is-live-room-exam .live-room-chip.is-live {
  border-color: rgba(208, 90, 78, 0.28);
  color: #ffd5cf;
  background: rgba(208, 90, 78, 0.12);
}

body.is-live-room-exam .live-room-command-timer,
body.is-live-room-exam .live-room-command-panel,
body.is-live-room-exam .live-room-rail-card,
body.is-live-room-exam .live-room-results-metric,
body.is-live-room-exam .live-room-results-analysis-card,
body.is-live-room-exam .live-room-overlay-area-card,
body.is-live-room-exam .live-room-overlay-stat-card,
body.is-live-room-exam .live-room-overlay-podium-card,
body.is-live-room-exam .live-room-overlay-review-item {
  border-radius: 1.9rem;
  border: 0.1rem solid var(--live-room-border-soft);
  background: rgba(255, 255, 255, 0.04);
}

body.is-live-room-exam .live-room-command-timer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1.6rem 1.8rem;
}

body.is-live-room-exam .live-room-command-timer span,
body.is-live-room-exam .live-room-command-panel p,
body.is-live-room-exam .live-room-command-timer small,
body.is-live-room-exam .live-room-empty,
body.is-live-room-exam .live-room-ranking-copy span,
body.is-live-room-exam .live-room-results-meta,
body.is-live-room-exam .live-room-results-analysis-copy,
body.is-live-room-exam .live-room-presence-state,
body.is-live-room-exam .live-room-progression-item span,
body.is-live-room-exam .live-room-smart-item span {
  color: var(--live-room-text-soft);
}

body.is-live-room-exam .live-room-command-timer strong,
body.is-live-room-exam .live-room-command-panel strong,
body.is-live-room-exam .live-room-results-metric strong,
body.is-live-room-exam .live-room-overlay-stat-card strong,
body.is-live-room-exam .live-room-smart-item strong,
body.is-live-room-exam .live-room-progression-item strong {
  color: #f7f1e8;
  font-size: 2rem;
  line-height: 1;
}

body.is-live-room-exam .live-room-command-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.is-live-room-exam .live-room-command-panel,
body.is-live-room-exam .live-room-results-metric,
body.is-live-room-exam .live-room-results-analysis-card,
body.is-live-room-exam .live-room-overlay-area-card,
body.is-live-room-exam .live-room-overlay-stat-card {
  padding: 1.6rem;
}

body.is-live-room-exam .live-room-command-actions,
body.is-live-room-exam .live-room-results-actions,
body.is-live-room-exam .live-room-rail-actions,
body.is-live-room-exam .live-room-overlay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

body.is-live-room-exam .live-room-surface-button,
body.is-live-room-exam .live-room-overlay-close {
  appearance: none;
  border: 0.1rem solid rgba(129, 153, 183, 0.24);
  background: rgba(255, 255, 255, 0.05);
  color: var(--live-room-text);
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

body.is-live-room-exam .live-room-surface-button:hover,
body.is-live-room-exam .live-room-overlay-close:hover,
body.is-live-room-exam .live-room-surface-button.is-active {
  background: rgba(198, 163, 84, 0.14);
  border-color: rgba(198, 163, 84, 0.34);
  color: #f7f1e8;
  transform: translateY(-0.1rem);
}

body.is-live-room-exam .live-room-competition-rail {
  position: sticky;
  top: calc(var(--testrunner-header-height) + 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

body.is-live-room-focus .live-room-competition-rail {
  display: none;
}

body.is-live-room-exam .live-room-rail-card {
  padding: 1.6rem;
  box-shadow: 0 1.6rem 3rem rgba(0, 0, 0, 0.22);
}

body.is-live-room-exam .live-room-rail-head,
body.is-live-room-exam .live-room-results-head,
body.is-live-room-exam .live-room-results-scoreboard-head,
body.is-live-room-exam .live-room-overlay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
}

body.is-live-room-exam .live-room-rail-head strong,
body.is-live-room-exam .live-room-results-copy strong,
body.is-live-room-exam .live-room-results-scoreboard-head strong,
body.is-live-room-exam .live-room-overlay-position strong {
  color: #f7f1e8;
}

body.is-live-room-exam .live-room-ranking-list,
body.is-live-room-exam .live-room-presence-list,
body.is-live-room-exam .live-room-mover-list,
body.is-live-room-exam .live-room-progression-list,
body.is-live-room-exam .live-room-results-scoreboard-list,
body.is-live-room-exam .live-room-results-area-list,
body.is-live-room-exam .live-room-overlay-review-list,
body.is-live-room-exam .live-room-overlay-podium-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.2rem;
}

body.is-live-room-exam .live-room-ranking-item,
body.is-live-room-exam .live-room-presence-item,
body.is-live-room-exam .live-room-mover-item,
body.is-live-room-exam .live-room-progression-item,
body.is-live-room-exam .live-room-results-scoreboard-item,
body.is-live-room-exam .live-room-area-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.035);
  border: 0.1rem solid rgba(129, 153, 183, 0.12);
}

body.is-live-room-exam .live-room-ranking-item.is-self {
  border-color: rgba(198, 163, 84, 0.26);
  background: rgba(198, 163, 84, 0.08);
}

body.is-live-room-exam .live-room-ranking-copy,
body.is-live-room-exam .live-room-results-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

body.is-live-room-exam .live-room-ranking-rank,
body.is-live-room-exam .live-room-ranking-score,
body.is-live-room-exam .live-room-results-room,
body.is-live-room-exam .live-room-results-scoreboard-rank,
body.is-live-room-exam .live-room-results-scoreboard-points,
body.is-live-room-exam .live-room-overlay-room,
body.is-live-room-exam .live-room-presence-state {
  color: #f7f1e8;
  font-weight: 800;
}

body.is-live-room-exam .live-room-smart-grid,
body.is-live-room-exam .live-room-results-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body.is-live-room-exam .live-room-smart-item,
body.is-live-room-exam .live-room-results-metric {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.is-live-room-exam .training-feedback.live-room-results-panel {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 1.8rem;
  padding: 2rem;
  border-radius: 2.2rem;
  border: 0.1rem solid var(--live-room-border-soft);
  background: linear-gradient(180deg, rgba(10, 24, 38, 0.92) 0%, rgba(8, 18, 30, 0.92) 100%);
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.24);
}

body.is-live-room-exam .live-room-results-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(26rem, 0.9fr);
}

body.is-live-room-exam .live-room-results-analysis,
body.is-live-room-exam .live-room-overlay-area-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.is-live-room-exam .live-room-results-analysis-card,
body.is-live-room-exam .live-room-overlay-area-card,
body.is-live-room-exam .live-room-overlay-podium-card,
body.is-live-room-exam .live-room-overlay-review-item {
  padding: 1.5rem;
}

body.is-live-room-exam .live-room-overlay {
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(3, 8, 14, 0.78);
  backdrop-filter: blur(1.2rem);
  z-index: 1000;
}

body.is-live-room-exam .live-room-overlay.is-open {
  display: flex !important;
}

body.is-live-room-exam .live-room-overlay-card {
  width: min(118rem, 100%);
  max-height: calc(100vh - 4rem);
  overflow: auto;
  padding: 2rem;
  border-radius: 2.8rem;
  border: 0.1rem solid var(--live-room-border);
  background:
    linear-gradient(135deg, rgba(198, 163, 84, 0.08) 0%, rgba(10, 24, 38, 0) 44%),
    linear-gradient(180deg, rgba(9, 21, 35, 0.98) 0%, rgba(7, 17, 29, 0.96) 100%);
  color: var(--live-room-text);
  box-shadow: 0 3rem 6rem rgba(0, 0, 0, 0.42);
}

body.is-live-room-exam .live-room-overlay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(32rem, 0.92fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

body.is-live-room-exam .live-room-overlay-panel {
  padding: 0;
  background: transparent;
  border: 0;
}

body.is-live-room-exam .live-room-overlay-hero,
body.is-live-room-exam .live-room-overlay-position {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

body.is-live-room-exam .live-room-overlay-position strong {
  font-size: clamp(3.6rem, 4vw, 5.6rem);
  line-height: 0.95;
}

body.is-live-room-exam .live-room-overlay-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.2rem;
}

body.is-live-room-exam .live-room-overlay-podium-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.is-live-room-exam .live-room-overlay-podium-card span {
  color: var(--live-room-gold);
  font-weight: 800;
}

body.is-live-room-exam .podium-1 {
  border-color: rgba(198, 163, 84, 0.3);
  background: rgba(198, 163, 84, 0.1);
}

body.is-live-room-exam .podium-2,
body.is-live-room-exam .podium-3 {
  background: rgba(255, 255, 255, 0.05);
}

body.is-live-room-exam .live-room-overlay-review-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.is-live-room-exam .live-room-overlay-review-item span,
body.is-live-room-exam .live-room-overlay-review-item strong {
  color: #f7f1e8;
}

@media (max-width: 1240px) {
  body.is-live-room-exam .test-content-columns,
  body.is-live-room-focus .test-content-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  body.is-live-room-exam .live-room-competition-rail {
    position: static;
  }
}

@media (max-width: 980px) {
  body.is-live-room-exam .live-room-command-top,
  body.is-live-room-exam .live-room-results-grid,
  body.is-live-room-exam .live-room-results-analysis,
  body.is-live-room-exam .live-room-overlay-grid,
  body.is-live-room-exam .live-room-overlay-area-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.is-live-room-exam .live-room-command-grid,
  body.is-live-room-exam .live-room-overlay-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.is-live-room-exam .live-room-overlay-podium-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body.is-live-room-exam .test-content-columns {
    padding: 1.4rem 1.2rem 4rem;
    gap: 1.6rem;
  }

  body.is-live-room-exam .live-room-command-shell,
  body.is-live-room-exam .training-feedback.live-room-results-panel,
  body.is-live-room-exam .live-room-overlay-card {
    padding: 1.5rem;
    border-radius: 2rem;
  }

  body.is-live-room-exam .live-room-command-grid,
  body.is-live-room-exam .live-room-results-metric-grid,
  body.is-live-room-exam .live-room-smart-grid,
  body.is-live-room-exam .live-room-overlay-stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.is-live-room-exam .live-room-command-actions > *,
  body.is-live-room-exam .live-room-results-actions > *,
  body.is-live-room-exam .live-room-rail-actions > *,
  body.is-live-room-exam .live-room-overlay-actions > * {
    width: 100%;
    justify-content: center;
  }

  body.is-live-room-exam .live-room-overlay {
    padding: 1rem;
  }
}

/* =====================================================
   MOBILE & TOUCH RESPONSIVENESS — FULLSCREEN + SCALING
   ===================================================== */

/* Touch-friendly scroll in main content area */
main {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ── Top bar + layout: adaptive flex on mobile ────────
   Problem: top-bar has a fixed height so the header
   clips on narrow screens. Fix: switch test-runner to
   flex-column so main fills the leftover space however
   tall the top-bar actually is.
────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Flex column layout so top-bar can grow freely */
  .test-runner {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .top-bar {
    flex: 0 0 auto;
    height: auto;               /* override the fixed 8rem */
    min-height: 6rem;
  }

  main {
    flex: 1 1 auto;
    height: auto;               /* override calc(100% - …) */
    min-height: 0;
    overflow-y: auto;
  }

  .bottom-bar {
    flex: 0 0 auto;
    height: var(--testrunner-footer-height);
  }

  /* Remove min-height constraints that enforce the old fixed height */
  .headerbar .content,
  .header-bar-content {
    min-height: 0;
  }

  /* Headerbar: tighter padding, no wrap (single row) */
  .headerbar {
    --header-tool-gap: 0.5rem;
    --header-tool-pad-right: 1rem;
    flex-wrap: nowrap;
    padding: 0.7rem 1rem;
    gap: 0.7rem;
    align-items: center;
    position: relative;
  }

  .headerbar header {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.5rem;
  }

  /* ── Breadcrumb: hide non-essential crumbs on mobile ── */

  /* Hide "EPSO Competition | Simulator" — keep only exam title */
  .breadcrumb .crumb:not(.current-crumb) {
    display: none;
  }

  /* Allow breadcrumb itself to shrink inside its flex parent */
  .breadcrumb {
    min-width: 0;
    gap: 0.6rem;
    overflow: hidden;
  }

  /* Timer: never shrinks */
  .header-total-timer {
    flex: 0 0 auto;
  }

  /* Timer text smaller on mobile */
  .header-total-timer .timer-label {
    font-size: 2rem;
    letter-spacing: -0.02em;
  }

  /* Exam title: truncate with ellipsis */
  .breadcrumb .current-crumb {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.6rem;
  }

  .top-bar.tools-open .breadcrumb .crumb,
  .top-bar.tools-measuring .breadcrumb .crumb {
    flex: 0 0 0;
    width: 0;
    min-width: 0;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  /* ── Aside tools: fixed width, compact buttons ──────── */

  .headerbar aside {
    flex: 0 0 auto;
    gap: var(--header-tool-gap);
    padding: 0;
  }

  /* Shortcut + tool-menu button list */
  .end {
    gap: var(--header-tool-gap);
  }

  /* All icon buttons in header: slightly smaller */
  .headerbar .icon-bar-btn,
  .headerbar .icon-bar-btn.base-16 {
    width: 3.8rem;
    height: 3.8rem;
    min-width: 3.8rem;
  }

  /* Icons inside the buttons */
  .headerbar .icon.medium {
    width: 1.7rem;
    height: 1.7rem;
  }

  /* Tool menu toggle: icon-only (label already hidden at 720px) */
  .tool-menu-toggle.icon-bar-btn.base-16 {
    padding: 0;
    width: 3.8rem;
    min-width: 3.8rem;
  }

  .tool-menu.open {
    padding-left: 0;
  }

  /* Tool menu panel: replaces the title area, keeping the timer visible */
  .tool-menu-panel {
    position: fixed;
    left: var(--mobile-tool-rail-left, 104px);
    right: var(--mobile-tool-rail-right, var(--mobile-tool-rail-right-fallback));
    top: var(--mobile-tool-rail-top, calc(env(safe-area-inset-top, 0px) + 24px));
    width: auto;
    max-width: none;
    height: var(--header-tool-button-size, 3.8rem);
    border-radius: 999px;
    transform: translate3d(0.16rem, -50%, 0);
  }

  .tool-menu.open .tool-menu-panel {
    transform: translate3d(0, -50%, 0);
  }

  .tool-menu-panel .end {
    width: 100%;
    min-width: 0;
    justify-content: flex-end;
  }

  .tool-droplet-list {
    width: 100%;
    min-width: 0;
  }

  /* qti padding top to account for shorter header */
  .qti-item-container {
    padding-top: 1.4rem !important;
  }
}

/* ── Very small screens (< 390px): even tighter ─────── */
@media (max-width: 390px) {
  .headerbar {
    --header-tool-button-size: 3.4rem;
    --header-tool-gap: 0.4rem;
    --header-tool-pad-right: 0.8rem;
  }

  .headerbar .icon-bar-btn,
  .headerbar .icon-bar-btn.base-16 {
    width: 3.4rem;
    height: 3.4rem;
    min-width: 3.4rem;
  }

  .tool-menu-toggle.icon-bar-btn.base-16 {
    width: 3.4rem;
    min-width: 3.4rem;
  }

  .headerbar {
    padding: 0.5rem 0.8rem;
    gap: 0.5rem;
  }

  .end {
    gap: var(--header-tool-gap);
  }
}

/* ── Font scaling on very small screens ──────────────── */

@media (max-width: 360px) {
  html {
    font-size: 50%;
  }
}

/* ── Draggable modals → pinned in viewport on mobile ──── */

@media (max-width: 640px) {
  .draggable-modal {
    position: fixed !important;
    top: calc(var(--testrunner-header-height) + 0.8rem) !important;
    left: 1rem !important;
    right: 1rem !important;
    width: auto !important;
    max-width: calc(100vw - 2rem) !important;
  }

  .scratchpad-modal {
    bottom: calc(var(--testrunner-footer-height) + 1rem) !important;
    height: auto !important;
    min-width: unset !important;
    min-height: unset !important;
  }

  .calculator-modal {
    top: auto !important;
    bottom: calc(var(--testrunner-footer-height) + 1rem) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(34rem, calc(100vw - 2rem)) !important;
    height: auto !important;
    max-height: 62vh !important;
    min-width: unset !important;
    min-height: unset !important;
  }

  /* Disable grab cursor since dragging isn't touch-friendly */
  .draggable-modal .header {
    cursor: default;
  }

  /* Hide resize drag handles on touch screens */
  .resize-hitbox {
    display: none;
  }
}

/* ── Native visual SVG: no forced min-width on mobile ─── */

@media (max-width: 600px) {
  .native-visual-svg {
    min-width: 0;
    width: 100%;
  }

  .native-visual-panel-graphic {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Passage image: cap height so it doesn't crowd the question */
  .passage-image {
    max-height: 38vh;
  }

  /* Data tables: let columns size to content, enable horizontal scroll */
  .native-data-table {
    table-layout: auto;
  }
}

/* ── Tool menu panel: keep inside viewport on small screens */

@media (max-width: 480px) {
  .tool-menu-panel {
    left: var(--mobile-tool-rail-left, 104px);
    right: var(--mobile-tool-rail-right, var(--mobile-tool-rail-right-fallback));
    top: var(--mobile-tool-rail-top, calc(env(safe-area-inset-top, 0px) + 24px));
    border-radius: 999px;
    width: auto;
    max-width: none;
  }

  .tool-menu-panel .end {
    flex-wrap: nowrap;
  }
}

/* ── Step bubbles: smaller on very small screens ──────── */

@media (max-width: 380px) {
  .step,
  button.step.exam-step {
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.2rem;
  }

  .steps {
    gap: 0.6rem;
  }
}

/* ── Civic-premium: tighter horizontal padding on mobile ─ */

@media (max-width: 600px) {
  body[data-epso-theme="civic-premium"] .qti-item-container {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   CHART & TABLE VISUAL REDESIGN
   Appended last — overrides all previous rules
═══════════════════════════════════════════════════════════ */

/* ── Card container ───────────────────────────────────────── */
.visual-card {
  background: #ffffff !important;
  border: 0.09rem solid rgba(11, 20, 36, 0.09) !important;
  border-radius: 1.6rem !important;
  box-shadow:
    0 0.1rem 0.3rem rgba(11, 20, 36, 0.04),
    0 0.8rem 2.4rem rgba(11, 20, 36, 0.07) !important;
  overflow: hidden !important;
}
.visual-card::before { display: none !important; }

/* ── Chart & table titles ─────────────────────────────────── */
.visual-card .data-visual-title,
.visual-card .data-visual-chart-title {
  font-family: "Inter Tight", "Inter", "Nunito Sans", sans-serif !important;
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  color: #0b1424 !important;
  text-align: left !important;
  letter-spacing: -0.015em !important;
  line-height: 1.25 !important;
  margin: 0 0 0.15rem !important;
}
.visual-card .data-visual-subtitle {
  font-family: "Inter", "Nunito Sans", sans-serif !important;
  font-size: 1.05rem !important;
  color: #7a88a2 !important;
  text-align: left !important;
  margin: 0.2rem 0 0 !important;
}

/* ── Table wrapper — rounded + clipped ────────────────────── */
.data-visual-table-wrap {
  margin-top: 0.85rem !important;
  border-radius: 0.9rem !important;
  overflow: hidden !important;
  border: 0.09rem solid #e5e8ef !important;
  padding-bottom: 0 !important;
  scrollbar-color: rgba(39,62,87,.18) transparent !important;
}
.data-visual-table-wrap::-webkit-scrollbar { height: 0.5rem !important; }
.data-visual-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(39,62,87,.18) !important;
  border-radius: 10rem !important;
}

/* ── Table cells — collapsed, clean borders ───────────────── */
.data-visual-table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}
.data-visual-table th,
.data-visual-table td {
  border: none !important;
  border-bottom: 0.09rem solid #edf0f5 !important;
  border-right: 0.09rem solid #edf0f5 !important;
  padding: 0.62rem 0.95rem !important;
}
.data-visual-table th:last-child,
.data-visual-table td:last-child { border-right: none !important; }
.data-visual-table tbody tr:last-child th,
.data-visual-table tbody tr:last-child td { border-bottom: none !important; }

/* ── Table header — dark navy ─────────────────────────────── */
.data-visual-table thead th {
  font-family: "Inter", "Nunito Sans", sans-serif !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  background: #273e57 !important;
  color: #ffffff !important;
  text-align: center !important;
  letter-spacing: 0.015em !important;
  padding: 0.72rem 0.95rem !important;
  border-bottom: none !important;
  border-right: 0.09rem solid rgba(255,255,255,0.1) !important;
}
.data-visual-table thead th:first-child { text-align: left !important; }
.data-visual-table thead th:last-child { border-right: none !important; }

/* ── Table body rows ─────────────────────────────────────── */
.data-visual-table tbody th {
  font-family: "Inter", "Nunito Sans", sans-serif !important;
  font-size: 1.28rem !important;
  font-weight: 600 !important;
  background: rgba(39, 62, 87, 0.04) !important;
  color: #0b1424 !important;
}
.data-visual-table tbody td {
  font-family: "Inter", "Nunito Sans", sans-serif !important;
  font-size: 1.28rem !important;
  font-weight: 500 !important;
  background: #ffffff !important;
  color: #1a2440 !important;
  font-variant-numeric: tabular-nums !important;
}
.data-visual-table tbody tr:nth-child(even) td { background: #f7f9fc !important; }

/* ── Bar chart — clean axis, nice bars ────────────────────── */
.data-visual-chart-shell {
  margin-top: 0.85rem !important;
  gap: 0.65rem !important;
}
.data-visual-chart-yaxis { padding-bottom: 2.4rem !important; }
.data-visual-chart-yaxis span {
  font-family: "Inter", "Nunito Sans", sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  color: #9aa5b8 !important;
}
.data-visual-chart-plot {
  border-left: none !important;
  border-bottom: 0.14rem solid #dde1ec !important;
  border-radius: 0 !important;
  background: none !important;
  padding: 0.4rem 0.6rem 2.5rem !important;
}
.data-visual-chart-grid-line { border-top: 0.08rem solid #f0f2f7 !important; }

.data-visual-chart-bars { gap: 1rem !important; }
.data-visual-chart-bar-group { gap: 0.45rem !important; }

.data-visual-chart-bar-value {
  font-family: "Inter", "Nunito Sans", sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #1a2440 !important;
  background: rgba(39, 62, 87, 0.07) !important;
  border-radius: 10rem !important;
  padding: 0.12rem 0.5rem !important;
  line-height: 1.6 !important;
}
.data-visual-chart-bar-track {
  width: min(100%, 8rem) !important;
  padding: 0 !important;
}
.data-visual-chart-bar {
  border-radius: 0.7rem 0.7rem 0.1rem 0.1rem !important;
  transition: filter 0.15s !important;
}
.data-visual-chart-bar:hover { filter: brightness(1.1) !important; }
.data-visual-chart-bar-label {
  font-family: "Inter", "Nunito Sans", sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #4b5873 !important;
  letter-spacing: 0 !important;
}

/* ── Stacked bar ──────────────────────────────────────────── */
.data-visual-chart-bar-track-stacked {
  border-radius: 0.7rem 0.7rem 0.1rem 0.1rem !important;
  background: rgba(39, 62, 87, 0.05) !important;
  border: none !important;
}

/* ── Line chart ───────────────────────────────────────────── */
.data-visual-line-legend {
  margin-top: 0.85rem !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.6rem 1.4rem !important;
}
.data-visual-line-legend li {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  font-family: "Inter", "Nunito Sans", sans-serif !important;
  font-size: 1.12rem !important;
  font-weight: 500 !important;
  color: #4b5873 !important;
}
.data-visual-line-swatch {
  display: block !important;
  width: 1.5rem !important;
  height: 0.3rem !important;
  border-radius: 10rem !important;
  flex-shrink: 0 !important;
}
.data-visual-line-axis span {
  font-family: "Inter", "Nunito Sans", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: #9aa5b8 !important;
}

/* ── Pie / Donut ──────────────────────────────────────────── */
.data-visual-pie-shell {
  margin-top: 1rem !important;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr) !important;
  gap: 1.4rem !important;
  align-items: center !important;
}
.data-visual-pie-wrap { padding: 0.5rem !important; }
.data-visual-pie {
  width: min(100%, 230px) !important;
  border: none !important;
  box-shadow:
    0 0.4rem 1.6rem rgba(11, 20, 36, 0.14),
    0 0 0 0.2rem #ffffff !important;
  position: relative !important;
}
.data-visual-pie::after {
  content: "" !important;
  position: absolute !important;
  inset: 24% !important;
  background: #ffffff !important;
  border-radius: 50% !important;
  box-shadow: 0 0.1rem 0.4rem rgba(11, 20, 36, 0.06) inset !important;
}
.data-visual-pie-legend {
  gap: 0.8rem !important;
  align-content: center !important;
}
.data-visual-pie-legend li {
  display: grid !important;
  grid-template-columns: 1rem 1fr !important;
  gap: 0.65rem !important;
  align-items: center !important;
  font-family: "Inter", "Nunito Sans", sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 500 !important;
  color: #1a2440 !important;
}
.data-visual-pie-swatch {
  width: 1rem !important;
  height: 1rem !important;
  border-radius: 0.25rem !important;
  border: none !important;
}

/* ── Horizontal bar ───────────────────────────────────────── */
.data-visual-horizontal-shell {
  margin-top: 0.9rem !important;
  gap: 0.8rem !important;
}
.data-visual-horizontal-axis {
  font-family: "Inter", "Nunito Sans", sans-serif !important;
  font-size: 0.98rem !important;
  color: #9aa5b8 !important;
}
.data-visual-horizontal-rows { gap: 0.8rem !important; }
.data-visual-horizontal-row {
  grid-template-columns: minmax(7rem, 11rem) 1fr !important;
  gap: 0.8rem !important;
}
.data-visual-horizontal-label {
  font-family: "Inter", "Nunito Sans", sans-serif !important;
  font-size: 1.12rem !important;
  font-weight: 600 !important;
  color: #0b1424 !important;
}
.data-visual-horizontal-bars { gap: 0.5rem !important; }
.data-visual-horizontal-track {
  height: 1.7rem !important;
  border-radius: 0.5rem !important;
  background: rgba(39, 62, 87, 0.06) !important;
  border: none !important;
  overflow: hidden !important;
}
.data-visual-horizontal-bar { border-radius: 0.5rem !important; }
.data-visual-horizontal-value {
  font-family: "Inter", "Nunito Sans", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  right: 0.6rem !important;
  text-shadow: 0 0.05rem 0.2rem rgba(0, 0, 0, 0.18) !important;
}

/* ── Notes & units ────────────────────────────────────────── */
.data-visual-chart-note,
.data-visual-table-note,
.data-visual-chart-unit {
  font-family: "Inter", "Nunito Sans", sans-serif !important;
  font-size: 1rem !important;
  color: #9aa5b8 !important;
  margin-top: 0.65rem !important;
}

/* ── Native data table — same treatment ───────────────────── */
.native-data-table-wrap {
  border-radius: 0.9rem !important;
  overflow: hidden !important;
  border: 0.09rem solid #e5e8ef !important;
}
.native-data-table {
  border-collapse: collapse !important;
  font-family: "Inter", "Nunito Sans", sans-serif !important;
}
.native-data-table th,
.native-data-table td {
  border: none !important;
  border-bottom: 0.09rem solid #edf0f5 !important;
  border-right: 0.09rem solid #edf0f5 !important;
  padding: 0.6rem 0.9rem !important;
}
.native-data-table th:last-child,
.native-data-table td:last-child { border-right: none !important; }
.native-data-table tbody tr:last-child th,
.native-data-table tbody tr:last-child td { border-bottom: none !important; }
.native-data-table thead th {
  background: #273e57 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 0.015em !important;
  border-bottom: none !important;
  border-right: 0.09rem solid rgba(255,255,255,0.1) !important;
}
.native-data-table thead th:last-child { border-right: none !important; }
.native-data-table tbody th {
  background: rgba(39, 62, 87, 0.04) !important;
  color: #0b1424 !important;
  font-weight: 600 !important;
}
.native-data-table tbody td {
  background: #ffffff !important;
  color: #1a2440 !important;
  font-weight: 500 !important;
}
.native-data-table tbody tr:nth-child(even) td { background: #f7f9fc !important; }

/* ── Native visual panel ──────────────────────────────────── */
.native-visual-panel {
  background: #ffffff !important;
  border: 0.09rem solid #e5e8ef !important;
  border-radius: 1.2rem !important;
  box-shadow: none !important;
}
.native-visual-frame {
  border-radius: 1.4rem !important;
  border: 0.09rem solid rgba(11, 20, 36, 0.08) !important;
  background: #fafbfc !important;
  padding: 1.4rem !important;
}
.native-breakdown-bar {
  background: rgba(39, 62, 87, 0.07) !important;
  border-radius: 10rem !important;
  height: 0.85rem !important;
}
.native-breakdown-bar-fill {
  background: linear-gradient(90deg, #273e57 0%, #4f7fab 100%) !important;
  border-radius: 10rem !important;
}


/* ═══════════════════════════════════════════════════════════
   FONT SIZE PATCH — rem base is 8px (html: 50%), scale up
   ═══════════════════════════════════════════════════════════ */

/* Card title — ~16px */
.visual-card .data-visual-title,
.visual-card .data-visual-chart-title {
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: #0b1424 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 1.1rem !important;
}

/* Subtitle — ~12px */
.visual-card .data-visual-subtitle {
  font-size: 1.5rem !important;
  color: #6b7d99 !important;
  margin-top: 0.25rem !important;
}

/* Table wrapper spacing */
.data-visual-table-wrap {
  margin-top: 0.6rem !important;
  border-radius: 1rem !important;
}

/* Table header — ~14px, dark navy, strong contrast */
.data-visual-table thead th {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  background: #1c3148 !important;
  color: #ffffff !important;
  padding: 1rem 1.2rem !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
}

/* Table row header (left col labels) — ~13px, medium navy bg */
.data-visual-table tbody th {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  background: rgba(39,62,87,0.06) !important;
  color: #1a2e46 !important;
  padding: 0.85rem 1.2rem !important;
}

/* Table data cells — ~13px */
.data-visual-table tbody td {
  font-size: 1.6rem !important;
  font-weight: 500 !important;
  color: #1a2440 !important;
  padding: 0.85rem 1.2rem !important;
}

/* Alternating rows — gentle stripe */
.data-visual-table tbody tr:nth-child(even) td,
.data-visual-table tbody tr:nth-child(even) th {
  background: #f4f6fa !important;
}

/* Bar chart x-axis labels — ~11px */
.data-visual-chart-bar-label {
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  color: #3d5270 !important;
}

/* Bar value pill — ~11px */
.data-visual-chart-bar-value {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #1a2e46 !important;
  padding: 0.15rem 0.55rem !important;
}

/* Y-axis labels — ~11px */
.data-visual-chart-yaxis span {
  font-size: 1.3rem !important;
  color: #7a8fa8 !important;
}

/* Line legend items — ~12px */
.data-visual-line-legend li {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: #3d5270 !important;
}

/* Line axis labels — ~11px */
.data-visual-line-axis span {
  font-size: 1.3rem !important;
  color: #7a8fa8 !important;
}

/* Pie legend items — ~12px */
.data-visual-pie-legend li {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: #3d5270 !important;
}
.data-visual-pie-legend-value {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #1a2440 !important;
}

/* Horizontal bar labels — ~12px */
.data-visual-horizontal-label {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: #3d5270 !important;
}
.data-visual-horizontal-value {
  font-size: 1.35rem !important;
}

/* Card padding — roomier */
.visual-card {
  padding: 1.8rem 1.8rem 1.5rem !important;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — VISUAL CARDS & CHARTS (Numerical Reasoning)
   Appended last — covers all chart/table types on mobile
   ═══════════════════════════════════════════════════════════ */

/* ── 600px: tablets & large phones ───────────────────────── */
@media (max-width: 600px) {
  /* Card shell */
  .visual-card {
    padding: 1.4rem 1.4rem 1.2rem !important;
    border-radius: 1.2rem !important;
  }

  /* Pie layout: side-by-side → stacked */
  .data-visual-pie-shell {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
  }
  .data-visual-pie-wrap {
    max-width: 18rem !important;
    width: 100% !important;
  }
  .data-visual-pie {
    width: min(100%, 180px) !important;
    height: min(100%, 180px) !important;
  }

  /* Table: enable horizontal scroll */
  .data-visual-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .data-visual-table {
    min-width: 42rem !important;
    font-size: 1.5rem !important;
  }
  .data-visual-table thead th,
  .data-visual-table tbody td,
  .data-visual-table tbody th {
    padding: 0.7rem 0.9rem !important;
    font-size: 1.5rem !important;
  }

  /* Bar chart: reduce clutter */
  .data-visual-chart-plot {
    padding: 0.3rem 0.4rem 2rem !important;
  }
  .data-visual-chart-bar-value {
    font-size: 1.2rem !important;
  }
  .data-visual-chart-bar-label {
    font-size: 1.2rem !important;
  }
  .data-visual-chart-yaxis span {
    font-size: 1.1rem !important;
  }

  /* Line chart legend wraps tighter */
  .data-visual-line-legend {
    gap: 0.5rem 1rem !important;
  }
  .data-visual-line-legend li {
    font-size: 1.3rem !important;
  }

  /* Horizontal bars: taller labels */
  .data-visual-horizontal-label {
    font-size: 1.3rem !important;
  }

  /* Native tables */
  .visual-card table:not(.data-visual-table) {
    min-width: 36rem !important;
  }
  .visual-card table:not(.data-visual-table) th,
  .visual-card table:not(.data-visual-table) td {
    padding: 0.6rem 0.8rem !important;
    font-size: 1.45rem !important;
  }

  /* ECharts container height reduction */
  .data-visual-echart,
  .visual-card:not(.visual-card-compact) .data-visual-echart {
    height: 150px !important;
  }
}

/* ── 400px: small phones ─────────────────────────────────── */
@media (max-width: 400px) {
  .visual-card {
    padding: 1.2rem 1rem 1rem !important;
    border-radius: 1rem !important;
  }
  .data-visual-title,
  .data-visual-chart-title {
    font-size: 1.7rem !important;
  }
  .data-visual-table {
    min-width: 36rem !important;
    font-size: 1.35rem !important;
  }
  .data-visual-table thead th,
  .data-visual-table tbody td,
  .data-visual-table tbody th {
    font-size: 1.35rem !important;
    padding: 0.6rem 0.7rem !important;
  }
  .data-visual-echart,
  .visual-card:not(.visual-card-compact) .data-visual-echart {
    height: 130px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   FULLSCREEN MOBILE: RESPONSIVE LAYOUT
   Applied when body.epso-exam-fullscreen is set.
   Uses dvh for real viewport height (excludes browser chrome),
   clamp() on html for proportional font scaling in landscape,
   and env(safe-area-inset-*) for notch / home-indicator support.
   Split by orientation so portrait reflows and landscape restores
   the desktop layout. Must be last so specificity beats all
   portrait media-query overrides above.
═══════════════════════════════════════════════════════════ */

/* ── Base: safe areas + overflow ─────────────────────────── */

body.epso-exam-fullscreen {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #0b1424;
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  box-sizing: border-box;
}

/* ── Nav arrows: match desktop sidebar navy #283c59 ──────────
   On desktop the prev/next buttons inside #test-navigation use
   background:#283c59 / color:#fff. Apply the same on mobile so
   both orientations look consistent with the desktop left menu.
────────────────────────────────────────────────────────────── */
body.epso-exam-fullscreen .nav-prev-btn,
body.epso-exam-fullscreen .nav-next-btn {
  background: #283c59 !important;
  color: #ffffff !important;
  border-color: #283c59 !important;
  box-shadow: none !important;
}

body.epso-exam-fullscreen .nav-prev-btn:disabled,
body.epso-exam-fullscreen .nav-next-btn:disabled {
  background: rgba(40, 60, 89, 0.28) !important;
  border-color: rgba(40, 60, 89, 0.28) !important;
  color: rgba(255, 255, 255, 0.45) !important;
  cursor: not-allowed;
}

/* Floating bar that wraps the nav buttons: use the same solid navy
   so the pill background matches the desktop sidebar card color. */
body.epso-exam-fullscreen .floating-bar {
  background: #283c59 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

/* ── Font scaling: portrait narrow (≤ 640px) ─────────────── */
/* Keep text comfortably readable; layout reflows via flex-column */

@media (max-width: 640px) {
  body.epso-exam-fullscreen ~ * {
    /* Intentionally empty — scoping anchor */
  }

  html:has(body.epso-exam-fullscreen) {
    font-size: clamp(6.5px, calc(100vw / 55), 8px);
  }
}

/* ── Font scaling: landscape fullscreen ──────────────────── */
/* Scale the rem system so the 1200px desktop layout fits the
   landscape viewport. Formula: 100vw/150 = 8px at 1200px wide.
   Clamped: minimum 4.5px (keeps text legible on smallest phones). */

@media (orientation: landscape) and (max-width: 1100px) {
  html.epso-exam-fullscreen {
    font-size: clamp(4.5px, calc(100vw / 150), 8px);
  }
}

/* ── Portrait fullscreen layout ──────────────────────────── */

@media (orientation: portrait) {
  /* Compact footer height so question area gets more space */
  body.epso-exam-fullscreen {
    --testrunner-footer-height: 8rem;
  }

  body.epso-exam-fullscreen .test-runner {
    display: flex;
    flex-direction: column;
    height: 100dvh;
  }

  body.epso-exam-fullscreen .top-bar {
    flex: 0 0 auto;
    height: auto;
    min-height: 6rem;
  }

  body.epso-exam-fullscreen main {
    flex: 1 1 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  body.epso-exam-fullscreen .bottom-bar {
    flex: 0 0 auto;
    height: var(--testrunner-footer-height);
  }

  body.epso-exam-fullscreen .headerbar .content,
  body.epso-exam-fullscreen .header-bar-content {
    min-height: 0;
  }

  body.epso-exam-fullscreen .qti-item-container {
    padding: 1.5rem 1.8rem 5rem !important;
  }

  body.epso-exam-fullscreen .passage {
    padding: 1.8rem 0 !important;
  }

  /* Minimum touch target size (WCAG 2.5.5) */
  body.epso-exam-fullscreen .choice label {
    min-height: 5.5rem;
  }

  /* ── Bottom navigator: single row with horizontal scroll ──
     Override the global ≤ 980px wrap that pushes steps to a
     second row. Steps become horizontally scrollable instead.
  ─────────────────────────────────────────────────────────── */
  body.epso-exam-fullscreen .navigator {
    flex-wrap: nowrap !important;
    justify-content: unset !important;
    gap: 0.8rem;
    padding: 0 1rem;
  }

  body.epso-exam-fullscreen .progress-container {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    order: unset !important;
    width: auto !important;
    overflow: hidden;
  }

  body.epso-exam-fullscreen .steps {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start !important;
    gap: 0.6rem;
  }

  body.epso-exam-fullscreen .steps::-webkit-scrollbar {
    display: none;
  }

  /* Smaller step bubbles to fit the compact footer */
  body.epso-exam-fullscreen .step,
  body.epso-exam-fullscreen button.step {
    width: 4rem !important;
    height: 4rem !important;
    font-size: 1.35rem !important;
    flex: 0 0 auto;
  }

  body.epso-exam-fullscreen .overview-container #overview-button {
    min-width: 4rem;
    min-height: 4rem;
  }

  /* ── Abstract reasoning portrait ────────────────────────────
     The abstract graphic uses the same builder renderer in exam mode:
     a fixed 1125px frame with one measured zoom for the whole board.
  ─────────────────────────────────────────────────────────── */
  body.epso-exam-fullscreen.abstract-mode .qti-item-container {
    height: auto !important;
    min-height: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.epso-exam-fullscreen.abstract-mode .qti-item {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0;
  }

  body.epso-exam-fullscreen.abstract-mode .passage,
  body.epso-exam-fullscreen.abstract-mode .qti-interaction {
    flex: none;
    height: auto !important;
  }

  body.epso-exam-fullscreen.abstract-mode .passage {
    grid-template-rows: auto auto !important;
    /* zero h-padding in all orientations so the frame never overflows */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Strip h-padding is zeroed; runner.js now zooms the whole builder frame. */
  body.epso-exam-fullscreen.abstract-mode .founder-graphic-strip {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body.epso-exam-fullscreen.abstract-mode .founder-graphic-frame {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
    margin: 0 auto !important;
  }
  body.epso-exam-fullscreen.abstract-mode .founder-graphic-frame.is-builder-renderer {
    width: 1125px !important;
    max-width: none !important;
    overflow: visible !important;
  }

  /* White shapes (is-light-shape) have a 1px base shadow.
     At mobile zoom (~0.3×) that becomes <0.5px — invisible.
     Enlarge it so it renders at ≥1px on screen. */
  body.epso-exam-fullscreen.abstract-mode .founder-graphic-token.is-light-shape {
    filter: drop-shadow(0 0 4px rgba(11, 28, 44, 0.95)) !important;
  }

  /* ── Bottom bar: match civic-premium desktop sidebar card ────
     Desktop: border:1px solid #283c59, border-radius:2.4rem,
     transparent navigator background, float above the content.
     Replicate that look: solid navy border + rounded top corners.
  ─────────────────────────────────────────────────────────── */
  body.epso-exam-fullscreen #test-navigation.bottom-bar {
    position: relative;
    overflow: visible !important;
    border-top-left-radius: 2.4rem;
    border-top-right-radius: 2.4rem;
    border-top: 1px solid #283c59;
    border-left: 1px solid #283c59;
    border-right: 1px solid #283c59;
    border-bottom: none;
    box-shadow: 0 -0.8rem 2.8rem rgba(13, 34, 72, 0.14);
  }

  body.epso-exam-fullscreen .navigator {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* ── Overview panel: show above the bottom bar ───────────────
     On mobile the overview-inline-drawer is the same component
     that slides out on desktop. Show it as a slide-up sheet
     instead of the fullscreen overlay.
  ─────────────────────────────────────────────────────────── */
  body.epso-exam-fullscreen .overview-inline-drawer {
    display: flex !important;
    position: absolute !important;
    bottom: 100% !important;
    left: -1px !important;
    right: -1px !important;
    width: auto !important;
    flex: none !important;
    flex-basis: auto !important;
    max-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    border-radius: 2.4rem 2.4rem 0 0 !important;
    clip-path: none !important;
    transform: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition:
      max-height 380ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 200ms ease !important;
    border: 1px solid #283c59;
    border-bottom: none;
    background: #ffffff;
    z-index: 10;
  }

  body.epso-exam-fullscreen .overview-inline-drawer.open {
    max-height: 70dvh !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.epso-exam-fullscreen .overview-inline-shell {
    opacity: 1 !important;
    transform: none !important;
    width: 100% !important;
    max-height: 70dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.epso-exam-fullscreen .overview-inline-body,
  body.epso-exam-fullscreen .overview-inline-footer {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    transition: none !important;
  }
}

/* ── Landscape fullscreen: restore desktop layout ────────
   Overrides portrait breakpoints (≤ 640px, ≤ 720px, ≤ 768px)
   that may fire on small phones whose landscape width still
   falls below those thresholds (e.g. iPhone SE at 568px).
   Uses dvh so the calc is accurate with browser chrome hidden.
──────────────────────────────────────────────────────────── */

@media (orientation: landscape) {
  body.epso-exam-fullscreen {
    --testrunner-header-height: 8rem;
    --testrunner-footer-height: 10rem;
  }

  body.epso-exam-fullscreen .test-runner {
    display: block !important;
    height: 100dvh;
  }

  body.epso-exam-fullscreen .top-bar {
    height: var(--testrunner-header-height) !important;
    min-height: unset;
    flex: unset;
  }

  body.epso-exam-fullscreen main {
    width: auto !important;
    height: calc(
      100dvh
      - var(--testrunner-header-height)
      - var(--testrunner-footer-height)
      - env(safe-area-inset-top)
      - env(safe-area-inset-bottom)
    ) !important;
    max-width: none;
    max-height: none;
    flex: unset;
    min-height: unset;
    overflow: auto;
  }

  body.epso-exam-fullscreen .bottom-bar {
    height: var(--testrunner-footer-height) !important;
    flex: unset;
  }

  body.epso-exam-fullscreen .headerbar .content,
  body.epso-exam-fullscreen .header-bar-content {
    min-height: calc(var(--testrunner-header-height) - 2rem);
  }

  body.epso-exam-fullscreen .headerbar {
    --header-tool-button-size: 4rem;
    --header-tool-gap: 1rem;
    --header-tool-pad-right: 0.45rem;
    flex-wrap: unset;
    padding: 0 0.45rem 0 1.45rem;
    gap: 1.4rem;
  }

  body.epso-exam-fullscreen .headerbar header {
    gap: 2rem;
  }

  body.epso-exam-fullscreen .headerbar aside {
    gap: var(--header-tool-gap);
  }

  body.epso-exam-fullscreen .headerbar .end {
    gap: var(--header-tool-gap);
  }

  body.epso-exam-fullscreen .breadcrumb .crumb:not(.current-crumb) {
    display: inline;
  }

  body.epso-exam-fullscreen .breadcrumb {
    min-width: unset;
    gap: unset;
    overflow: unset;
  }

  body.epso-exam-fullscreen .breadcrumb .current-crumb {
    flex: unset;
    min-width: unset;
    overflow: unset;
    text-overflow: unset;
    white-space: unset;
    font-size: unset;
  }

  body.epso-exam-fullscreen .top-bar.tools-open .breadcrumb .crumb,
  body.epso-exam-fullscreen .top-bar.tools-measuring .breadcrumb .crumb {
    flex: 0 0 0;
    width: 0;
    min-width: 0;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.epso-exam-fullscreen .header-total-timer .timer-label {
    font-size: unset;
    letter-spacing: unset;
  }

  body.epso-exam-fullscreen .headerbar .icon-bar-btn,
  body.epso-exam-fullscreen .headerbar .icon-bar-btn.base-16 {
    width: 4rem;
    height: 4rem;
    min-width: unset;
  }

  body.epso-exam-fullscreen .tool-menu-toggle.icon-bar-btn.base-16 {
    width: var(--header-tool-button-size, 4rem);
    min-width: var(--header-tool-button-size, 4rem);
    height: var(--header-tool-button-size, 4rem);
    min-height: var(--header-tool-button-size, 4rem);
    padding: 0;
  }

  body.epso-exam-fullscreen .tool-menu.open {
    padding-left: 0;
  }

  body.epso-exam-fullscreen .headerbar .icon.medium {
    width: unset;
    height: unset;
  }

  body.epso-exam-fullscreen .tool-menu-panel {
    right: unset;
    left: unset;
    top: unset;
    max-width: min(var(--tool-drop-rail-width, 14rem), calc(100vw - 2rem));
  }

  body.epso-exam-fullscreen .top-bar.tools-open {
    z-index: 120;
  }

  body.epso-exam-fullscreen .top-bar.tools-open .tool-menu-panel {
    position: fixed;
    top: var(--mobile-tool-rail-top, calc(env(safe-area-inset-top, 0px) + 24px));
    right: var(--mobile-tool-rail-right, var(--mobile-tool-rail-right-fallback));
    left: var(--mobile-tool-rail-left, 104px);
    max-width: none;
    width: auto;
    height: var(--header-tool-button-size, 4rem);
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: translate3d(0, -50%, 0);
    z-index: 121;
    pointer-events: auto;
  }

  body.epso-exam-fullscreen .tool-menu-panel .end {
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  body.epso-exam-fullscreen .tool-droplet-list {
    width: 100%;
    min-width: 0;
  }

  body.epso-exam-fullscreen .logo {
    display: flex;
  }

  body.epso-exam-fullscreen .qti-item-container {
    padding: 1.5rem 3rem 4rem !important;
  }

  body.epso-exam-fullscreen .native-visual-svg {
    min-width: unset;
    width: unset;
  }

  body.epso-exam-fullscreen .passage-image {
    max-height: unset;
  }

  body.epso-exam-fullscreen .step,
  body.epso-exam-fullscreen button.step {
    width: unset;
    height: unset;
    font-size: unset;
  }

  body.epso-exam-fullscreen .steps {
    gap: unset;
  }

  body.epso-exam-fullscreen .passage {
    padding: 2.8rem 3rem !important;
  }

  body.epso-exam-fullscreen .qti-interaction {
    padding: 0.8rem 3rem 3rem !important;
  }

  body.epso-exam-fullscreen .test-content-columns {
    padding-right: unset !important;
  }

  body.epso-exam-fullscreen .qti-item {
    gap: unset !important;
  }

  body.epso-exam-fullscreen .passage p,
  body.epso-exam-fullscreen .choice-content {
    font-size: var(--fontsize-body) !important;
    line-height: var(--line-height-default) !important;
  }

  body.epso-exam-fullscreen .qti-prompt {
    font-size: var(--fontsize-body) !important;
  }

  body.epso-exam-fullscreen .caption-container {
    padding: 1.5rem 2rem 1.5rem 5.8rem !important;
  }

  body.epso-exam-fullscreen .choice-elimination-enabled .caption-container {
    padding-right: 5.8rem !important;
  }

  body.epso-exam-fullscreen .container::before {
    left: 2.2rem !important;
    width: 2.2rem !important;
    height: 2.2rem !important;
  }

  body.epso-exam-fullscreen .choice input:checked + .container::after {
    left: unset !important;
  }

  body.epso-exam-fullscreen .navigator {
    flex-wrap: nowrap;
    justify-content: unset;
  }

  body.epso-exam-fullscreen .progress-container {
    order: unset;
    width: unset;
  }

  body.epso-exam-fullscreen .floating-bar.inverted {
    min-width: 54rem !important;
    width: auto !important;
  }

  /* ── Abstract reasoning landscape ────────────────────────────
   Identical row-zoom strategy as portrait.
   min(1,...) prevents upscaling on wide landscape viewports.
  ─────────────────────────────────────────────────────────── */
  body.epso-exam-fullscreen.abstract-mode .qti-item-container {
    height: auto !important;
    min-height: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.epso-exam-fullscreen.abstract-mode .qti-item {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0;
  }

  body.epso-exam-fullscreen.abstract-mode .passage,
  body.epso-exam-fullscreen.abstract-mode .qti-interaction {
    flex: none;
    height: auto !important;
  }

  body.epso-exam-fullscreen.abstract-mode .passage {
    grid-template-rows: auto auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Row widths and zoom are set by JS; this only keeps the math exact. */
  body.epso-exam-fullscreen.abstract-mode .founder-graphic-strip {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body.epso-exam-fullscreen.abstract-mode .founder-graphic-frame {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
    margin: 0 auto !important;
  }

  body.epso-exam-fullscreen.abstract-mode .founder-graphic-token.is-light-shape {
    filter: drop-shadow(0 0 4px rgba(11, 28, 44, 0.95)) !important;
  }
}

/* ── Very short landscape (e.g. iPhone SE landscape 320px tall) ── */

@media (orientation: landscape) and (max-height: 480px) {
  body.epso-exam-fullscreen {
    --testrunner-header-height: 6rem;
    --testrunner-footer-height: 7.5rem;
  }

  body.epso-exam-fullscreen .logo {
    display: none !important;
  }

  body.epso-exam-fullscreen .qti-item-container {
    padding-top: 4rem !important;
  }

  /* abstract strips: tighten vertical padding on very short screens */
  body.epso-exam-fullscreen.abstract-mode .founder-graphic-strip {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  body.epso-exam-fullscreen.abstract-mode .founder-graphic-cell-head {
    font-size: 10px;
    min-height: 16px;
  }
}

/* 2026 runner consolidation: landing preview + real exams share the same option chrome,
   content surfaces stay crisp, and question panes must never pan horizontally. */
body[data-epso-theme="civic-premium"] main,
body[data-epso-theme="civic-premium"] .test-content-columns,
body[data-epso-theme="civic-premium"] .qti-item-container,
body[data-epso-theme="civic-premium"] .qti-item,
body[data-epso-theme="civic-premium"] .qti-item > .grid-row,
body[data-epso-theme="civic-premium"] .qti-item > .grid-row > .col-12,
body[data-epso-theme="civic-premium"] .passage,
body[data-epso-theme="civic-premium"] .qti-interaction,
body[data-epso-theme="civic-premium"] .passage-image-frame,
body[data-epso-theme="civic-premium"] .native-visual-frame,
body[data-epso-theme="civic-premium"] .native-visual-panel,
body[data-epso-theme="civic-premium"] .data-visual-frame,
body[data-epso-theme="civic-premium"] .data-visual-chart-card,
body[data-epso-theme="civic-premium"] .data-visual-table-card,
body[data-epso-theme="civic-premium"] .data-visual-chart-shell,
body[data-epso-theme="civic-premium"] .data-visual-echart,
body[data-epso-theme="civic-premium"] .visual-card {
  max-width: 100%;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
}

body[data-epso-theme="civic-premium"] .passage,
body[data-epso-theme="civic-premium"] .qti-interaction,
body[data-epso-theme="civic-premium"] .passage-image-frame,
body[data-epso-theme="civic-premium"] .native-visual-frame,
body[data-epso-theme="civic-premium"] .native-visual-panel,
body[data-epso-theme="civic-premium"] .data-visual-frame,
body[data-epso-theme="civic-premium"] .data-visual-chart-card,
body[data-epso-theme="civic-premium"] .data-visual-table-card,
body[data-epso-theme="civic-premium"] .visual-card,
body[data-epso-theme="civic-premium"] .question-timer-card,
body[data-epso-theme="civic-premium"] .line-reader-gap {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body[data-epso-theme="civic-premium"] .passage::after,
body[data-epso-theme="civic-premium"] .qti-interaction::after,
body[data-epso-theme="civic-premium"] .question-timer-card::after,
body[data-epso-theme="civic-premium"] .native-visual-frame::after,
body[data-epso-theme="civic-premium"] .results-review-item::after {
  display: none !important;
}

body[data-epso-theme="civic-premium"] .native-visual-svg,
body[data-epso-theme="civic-premium"] .passage-image,
body[data-epso-theme="civic-premium"] .data-visual-echart,
body[data-epso-theme="civic-premium"] .visual-card.is-custom-echart .data-visual-echart,
body[data-epso-theme="civic-premium"] .visual-card:not(.visual-card-compact) .data-visual-echart,
body[data-epso-theme="civic-premium"] .data-visual-table,
body[data-epso-theme="civic-premium"] .visual-card table:not(.data-visual-table) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body[data-epso-theme="civic-premium"] .native-visual-panel-graphic,
body[data-epso-theme="civic-premium"] .native-visual-panel-graphic-group,
body[data-epso-theme="civic-premium"] .data-visual-table-wrap,
body[data-epso-theme="civic-premium"] .visual-card-scroll,
body[data-epso-theme="civic-premium"] .visual-card-scroll .data-visual-chart-shell,
body[data-epso-theme="civic-premium"] .visual-card-scroll .data-visual-echart {
  overflow-x: hidden !important;
}

body[data-epso-theme="civic-premium"] .qti-item-container,
body[data-epso-theme="civic-premium"] .qti-item,
body[data-epso-theme="civic-premium"] .passage,
body[data-epso-theme="civic-premium"] .qti-interaction,
body[data-epso-theme="civic-premium"] .passage-image-frame,
body[data-epso-theme="civic-premium"] .native-visual-frame,
body[data-epso-theme="civic-premium"] .native-visual-panel,
body[data-epso-theme="civic-premium"] .data-visual-frame,
body[data-epso-theme="civic-premium"] .data-visual-chart-card,
body[data-epso-theme="civic-premium"] .data-visual-table-card,
body[data-epso-theme="civic-premium"] .visual-card {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-epso-theme="civic-premium"] .selectable-choice-container ul {
  gap: 0.65rem;
}

body[data-epso-theme="civic-premium"] .choice label {
  border-radius: 0;
}

body[data-epso-theme="civic-premium"] .container {
  border: 0.1rem solid transparent;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-epso-theme="civic-premium"] .caption-container {
  padding: 1rem 4.8rem 1rem 4.9rem;
  color: var(--ui-ink);
}

body[data-epso-theme="civic-premium"] .choice-content {
  font-size: 1.64rem;
  line-height: 1.42;
}

body[data-epso-theme="civic-premium"] .container::before {
  --choice-radio-left: 2rem;
  --choice-radio-size: 2.1rem;
  border-width: 0.16rem;
  border-color: rgba(39, 62, 87, 0.42);
  background: transparent;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .choice input:checked + .container::after {
  content: none;
}

body[data-epso-theme="civic-premium"] .choice label:hover .container,
body[data-epso-theme="civic-premium"] .choice label:focus-within .container {
  border-color: var(--color-brand-hover);
  background: var(--color-brand-hover) !important;
  box-shadow: none !important;
  transform: none;
}

body[data-epso-theme="civic-premium"] .choice input:checked + .container {
  border-color: var(--color-brand);
  background: var(--color-brand) !important;
  color: #ffffff;
  box-shadow: none !important;
}

body[data-epso-theme="civic-premium"] .choice label:hover .container .caption-container,
body[data-epso-theme="civic-premium"] .choice label:hover .container .choice-content,
body[data-epso-theme="civic-premium"] .choice label:focus-within .container .caption-container,
body[data-epso-theme="civic-premium"] .choice label:focus-within .container .choice-content,
body[data-epso-theme="civic-premium"] .choice input:checked + .container .caption-container,
body[data-epso-theme="civic-premium"] .choice input:checked + .container .choice-content {
  color: #ffffff;
}

body[data-epso-theme="civic-premium"] .choice label:hover .container::before,
body[data-epso-theme="civic-premium"] .choice label:focus-within .container::before,
body[data-epso-theme="civic-premium"] .choice input:checked + .container::before {
  border-color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at center, #ffffff 0%, #ffffff 32%, rgba(255, 255, 255, 0) 33%, rgba(255, 255, 255, 0) 100%),
    transparent;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .choice.training-correct .container,
body[data-epso-theme="civic-premium"] .choice.training-correct input:checked + .container,
body[data-epso-theme="civic-premium"] .choice.training-correct label:hover .container,
body[data-epso-theme="civic-premium"] .choice.training-correct label:focus-within .container {
  border-color: #8ec2ff !important;
  background: #dfeeff !important;
  color: var(--ui-header-blue, #283c59) !important;
}

body[data-epso-theme="civic-premium"] .choice.training-correct .container .caption-container,
body[data-epso-theme="civic-premium"] .choice.training-correct .container .choice-content {
  color: var(--ui-header-blue, #283c59) !important;
}

body[data-epso-theme="civic-premium"] .choice.training-correct .container::before,
body[data-epso-theme="civic-premium"] .choice.training-correct input:checked + .container::before {
  border-color: rgba(40, 60, 89, 0.42) !important;
  background:
    radial-gradient(circle at center, var(--ui-header-blue, #283c59) 0%, var(--ui-header-blue, #283c59) 32%, rgba(40, 60, 89, 0) 33%, rgba(40, 60, 89, 0) 100%),
    transparent !important;
}

body[data-epso-theme="civic-premium"] .choice.training-selected.training-incorrect .container,
body[data-epso-theme="civic-premium"] .choice.training-selected.training-incorrect input:checked + .container,
body[data-epso-theme="civic-premium"] .choice.training-incorrect input:checked + .container {
  border-color: #d65a72 !important;
  background: #ffe3e8 !important;
  color: #991f3d !important;
}

body[data-epso-theme="civic-premium"] .choice.training-selected.training-incorrect .container .caption-container,
body[data-epso-theme="civic-premium"] .choice.training-selected.training-incorrect .container .choice-content,
body[data-epso-theme="civic-premium"] .choice.training-incorrect input:checked + .container .caption-container,
body[data-epso-theme="civic-premium"] .choice.training-incorrect input:checked + .container .choice-content {
  color: #991f3d !important;
}

body[data-epso-theme="civic-premium"] .choice.training-selected.training-incorrect .container::before,
body[data-epso-theme="civic-premium"] .choice.training-incorrect input:checked + .container::before {
  border-color: rgba(153, 31, 61, 0.42) !important;
  background:
    radial-gradient(circle at center, #991f3d 0%, #991f3d 32%, rgba(153, 31, 61, 0) 33%, rgba(153, 31, 61, 0) 100%),
    transparent !important;
}

body[data-epso-theme="civic-premium"] .passage-image-frame-compact {
  padding: 0.8rem 0 0.4rem !important;
}

body[data-epso-theme="civic-premium"] .passage-image-frame-compact .passage-image {
  width: auto !important;
  max-width: min(100%, 38rem) !important;
  max-height: min(24rem, 42vh) !important;
}

body[data-epso-theme="civic-premium"] .qti-item:has(.passage-image-frame-compact) > .grid-row:first-of-type {
  margin-bottom: 0.6rem !important;
}

body[data-epso-theme="civic-premium"] .qti-item:has(.passage-image-frame-compact) .passage {
  padding-top: 0.8rem !important;
  padding-bottom: 0.4rem !important;
}

body[data-epso-theme="civic-premium"] .qti-item:has(.passage-image-frame-compact) .qti-prompt {
  margin-top: 0.8rem !important;
}

body[data-epso-theme="civic-premium"]:not([data-epso-public-preview="true"]).question-fits-viewport .passage,
body[data-epso-theme="civic-premium"]:not([data-epso-public-preview="true"]).question-fits-viewport .qti-interaction,
body[data-epso-theme="civic-premium"]:not([data-epso-public-preview="true"]).question-fits-viewport .selectable-choice-container,
body[data-epso-theme="civic-premium"]:not([data-epso-public-preview="true"]).question-fits-viewport #choices,
body[data-epso-theme="civic-premium"]:not([data-epso-public-preview="true"]).question-fits-viewport .passage-image-frame,
body[data-epso-theme="civic-premium"]:not([data-epso-public-preview="true"]).question-fits-viewport .data-visual-table-wrap,
body[data-epso-theme="civic-premium"]:not([data-epso-public-preview="true"]).question-fits-viewport .visual-card-scroll {
  overflow-y: hidden !important;
  max-height: none !important;
}

body[data-epso-theme="civic-premium"]:not([data-epso-public-preview="true"]) #test-main,
body[data-epso-theme="civic-premium"]:not([data-epso-public-preview="true"]) main {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

body[data-epso-theme="civic-premium"][data-epso-public-preview="true"] #test-main,
body[data-epso-theme="civic-premium"][data-epso-public-preview="true"] main {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

body[data-epso-theme="civic-premium"][data-epso-public-preview="true"] #page,
body[data-epso-theme="civic-premium"][data-epso-public-preview="true"] .runner-component,
body[data-epso-theme="civic-premium"][data-epso-public-preview="true"] .test-runner,
body[data-epso-theme="civic-premium"][data-epso-public-preview="true"] .passage,
body[data-epso-theme="civic-premium"][data-epso-public-preview="true"] .qti-interaction,
body[data-epso-theme="civic-premium"][data-epso-public-preview="true"] .selectable-choice-container,
body[data-epso-theme="civic-premium"][data-epso-public-preview="true"] #choices,
body[data-epso-theme="civic-premium"][data-epso-public-preview="true"] .passage-image-frame,
body[data-epso-theme="civic-premium"][data-epso-public-preview="true"] .data-visual-table-wrap,
body[data-epso-theme="civic-premium"][data-epso-public-preview="true"] .visual-card-scroll {
  overflow-y: visible !important;
  max-height: none !important;
}

body[data-epso-theme="civic-premium"] .choice label:hover .container,
body[data-epso-theme="civic-premium"] .choice label:focus-within .container,
body[data-epso-theme="civic-premium"] .choice.is-proxy-hover label .container,
body[data-epso-theme="civic-premium"] .choice label.is-proxy-hover .container,
body[data-epso-theme="civic-premium"] .choice input:checked + .container {
  border-color: var(--ui-header-blue, #283c59) !important;
  background: var(--ui-header-blue, #283c59) !important;
  color: #ffffff !important;
  box-shadow: 0 1.4rem 3.2rem rgba(40, 60, 89, 0.22) !important;
}

body[data-epso-theme="civic-premium"] .choice label:hover .container .caption-container,
body[data-epso-theme="civic-premium"] .choice label:hover .container .choice-content,
body[data-epso-theme="civic-premium"] .choice label:focus-within .container .caption-container,
body[data-epso-theme="civic-premium"] .choice label:focus-within .container .choice-content,
body[data-epso-theme="civic-premium"] .choice.is-proxy-hover label .container .caption-container,
body[data-epso-theme="civic-premium"] .choice.is-proxy-hover label .container .choice-content,
body[data-epso-theme="civic-premium"] .choice label.is-proxy-hover .container .caption-container,
body[data-epso-theme="civic-premium"] .choice label.is-proxy-hover .container .choice-content,
body[data-epso-theme="civic-premium"] .choice input:checked + .container .caption-container,
body[data-epso-theme="civic-premium"] .choice input:checked + .container .choice-content {
  color: #ffffff !important;
}

body[data-epso-theme="civic-premium"] .choice.training-correct label:hover .container .caption-container,
body[data-epso-theme="civic-premium"] .choice.training-correct label:hover .container .choice-content,
body[data-epso-theme="civic-premium"] .choice.training-correct label:focus-within .container .caption-container,
body[data-epso-theme="civic-premium"] .choice.training-correct label:focus-within .container .choice-content,
body[data-epso-theme="civic-premium"] .choice.training-correct.is-proxy-hover label .container .caption-container,
body[data-epso-theme="civic-premium"] .choice.training-correct.is-proxy-hover label .container .choice-content,
body[data-epso-theme="civic-premium"] .choice.training-correct label.is-proxy-hover .container .caption-container,
body[data-epso-theme="civic-premium"] .choice.training-correct label.is-proxy-hover .container .choice-content,
body[data-epso-theme="civic-premium"] .choice.training-correct input:checked + .container .caption-container,
body[data-epso-theme="civic-premium"] .choice.training-correct input:checked + .container .choice-content {
  color: var(--ui-header-blue, #283c59) !important;
}

body[data-epso-theme="civic-premium"] .choice label:hover .container::before,
body[data-epso-theme="civic-premium"] .choice label:focus-within .container::before,
body[data-epso-theme="civic-premium"] .choice.is-proxy-hover label .container::before,
body[data-epso-theme="civic-premium"] .choice label.is-proxy-hover .container::before,
body[data-epso-theme="civic-premium"] .choice input:checked + .container::before {
  border-color: rgba(255, 255, 255, 0.92) !important;
  background:
    radial-gradient(circle at center, #ffffff 0%, #ffffff 32%, rgba(255, 255, 255, 0) 33%, rgba(255, 255, 255, 0) 100%),
    rgba(255, 255, 255, 0.16) !important;
}

/* ---------------------------------------------------------------------------
   Phase 2 — premium runner polish.
   - Choice container: bonded outline that does not shift on hover/select.
   - Submit-confirm card: tighter hierarchy, gold accent on primary CTA.
   - Results card: cleaner header / body, consistent buttons, mobile-stacked.
   --------------------------------------------------------------------------- */

#choices,
.selectable-choice-container > ul {
  padding: 0.4rem 0.2rem;
  margin: 0;
}

.selectable-choice-container > ul.is-empty {
  padding: 0;
}

.choice .container {
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 180ms ease,
    transform 140ms ease;
  border-width: 0.18rem;
  box-shadow: 0 0.2rem 1.2rem rgba(15, 30, 60, 0.04);
}

.choice label:focus-visible .container {
  outline: 0.3rem solid rgba(198, 163, 84, 0.5);
  outline-offset: 0.3rem;
}

body[data-epso-theme="civic-premium"] .choice .container {
  background: #ffffff;
  border-color: #d8e0ec;
  box-shadow: 0 0.2rem 1.6rem rgba(13, 30, 64, 0.05);
}

/* Hide the visible "A." prefix in abstract questions; only the radio chrome
   identifies the option, which matches the EPSO image-led layout. */
.choice-content-no-prefix {
  font-weight: 500;
}

body.abstract-mode .caption-container {
  padding: 1.2rem 1.6rem 1.2rem 5.4rem;
}

body.abstract-mode .choice-elimination-enabled .caption-container {
  padding-right: 5.4rem;
}

body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice:not(.eliminated) label:hover .container,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice:not(.eliminated) label:focus-within .container,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice:not(.eliminated).is-proxy-hover label .container,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice:not(.eliminated) label.is-proxy-hover .container,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice label:has(.choice-eliminate-btn:hover) .container,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice label:has(.choice-eliminate-btn:focus-visible) .container {
  border-color: rgba(40, 60, 89, 0.18) !important;
  background: #ffffff !important;
  color: #20324d !important;
  box-shadow: 0 0.8rem 1.8rem rgba(13, 22, 37, 0.08) !important;
  transform: none;
}

body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice:not(.eliminated) label:hover .container .caption-container,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice:not(.eliminated) label:hover .container .choice-content,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice:not(.eliminated) label:focus-within .container .caption-container,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice:not(.eliminated) label:focus-within .container .choice-content,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice:not(.eliminated).is-proxy-hover label .container .caption-container,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice:not(.eliminated).is-proxy-hover label .container .choice-content,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice:not(.eliminated) label.is-proxy-hover .container .caption-container,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice:not(.eliminated) label.is-proxy-hover .container .choice-content,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice label:has(.choice-eliminate-btn:hover) .container .caption-container,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice label:has(.choice-eliminate-btn:hover) .container .choice-content,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice label:has(.choice-eliminate-btn:focus-visible) .container .caption-container,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice label:has(.choice-eliminate-btn:focus-visible) .container .choice-content {
  color: #20324d !important;
}

body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice.eliminated .container,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice.eliminated label:hover .container,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice.eliminated label:focus-within .container,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice.eliminated.is-proxy-hover label .container,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice.eliminated label.is-proxy-hover .container,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice.eliminated input:checked + .container {
  border-color: rgba(40, 60, 89, 0.14) !important;
  background: #f7f9fc !important;
  color: #6f7d92 !important;
  box-shadow: none !important;
}

body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice.eliminated .container .caption-container,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice.eliminated .container .choice-content,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice.eliminated label:hover .container .caption-container,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice.eliminated label:hover .container .choice-content,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice.eliminated label:focus-within .container .caption-container,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice.eliminated label:focus-within .container .choice-content {
  color: #6f7d92 !important;
}

body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice.eliminated .container::before,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice.eliminated label:hover .container::before,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice.eliminated label:focus-within .container::before,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice.eliminated.is-proxy-hover label .container::before,
body[data-epso-theme="civic-premium"] .choice-elimination-enabled .choice.eliminated label.is-proxy-hover .container::before {
  border-color: rgba(40, 60, 89, 0.26) !important;
  background: transparent !important;
}

/* ─── Submit-confirm card ────────────────────────────────────────────────── */
body[data-epso-theme="civic-premium"] .submit-confirm-card {
  width: min(56rem, calc(100vw - 2.4rem));
  padding: 2.8rem 2.8rem 2.4rem;
  border-radius: 1.8rem;
  border: 0.1rem solid #e1e6ee;
  box-shadow: 0 2.4rem 5.6rem rgba(11, 20, 36, 0.18);
}

body[data-epso-theme="civic-premium"] .submit-confirm-card h2 {
  font-size: 2.4rem;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: #101828;
}

body[data-epso-theme="civic-premium"] .submit-confirm-card p {
  font-size: 1.55rem;
  line-height: 1.55;
  color: #4f5b73;
}

body[data-epso-theme="civic-premium"] .submit-confirm-actions {
  margin-top: 2rem;
  gap: 0.8rem;
  flex-wrap: wrap;
}

body[data-epso-theme="civic-premium"] .submit-confirm-btn {
  min-height: 4.4rem;
  padding: 0 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
}

body[data-epso-theme="civic-premium"] .submit-confirm-btn[data-variant="primary"],
body[data-epso-theme="civic-premium"] .submit-confirm-btn.primary {
  background: linear-gradient(180deg, #283c59 0%, #1c2b42 100%);
  color: #ffffff;
  border: 0.1rem solid #1c2b42;
  box-shadow: 0 0.6rem 1.4rem rgba(28, 43, 66, 0.22);
}

body[data-epso-theme="civic-premium"] .submit-confirm-btn[data-variant="ghost"],
body[data-epso-theme="civic-premium"] .submit-confirm-btn.ghost {
  background: #ffffff;
  color: #283c59;
  border: 0.1rem solid #c9d3e3;
}

@media (max-width: 600px) {
  body[data-epso-theme="civic-premium"] .submit-confirm-card {
    padding: 2.2rem 2rem;
  }
  body[data-epso-theme="civic-premium"] .submit-confirm-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ─── Results card ───────────────────────────────────────────────────────── */
body[data-epso-theme="civic-premium"] .results-card {
  border-radius: 2rem;
  border: 0.1rem solid #e1e6ee;
  box-shadow: 0 2.4rem 6.4rem rgba(11, 20, 36, 0.22);
}

body[data-epso-theme="civic-premium"] .results-header {
  padding: 1.8rem 2.4rem;
  background:
    radial-gradient(circle at top right, rgba(198, 163, 84, 0.18) 0, rgba(198, 163, 84, 0) 36%),
    linear-gradient(135deg, #0f2746 0%, #1f3f66 50%, #00496d 100%);
}

body[data-epso-theme="civic-premium"] .results-header h2 {
  font-size: 2.2rem;
  letter-spacing: -0.005em;
}

body[data-epso-theme="civic-premium"] .results-body {
  padding: 2rem 2rem 2.4rem;
  gap: 1.6rem;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}

body[data-epso-theme="civic-premium"] .results-hero {
  align-items: center;
  gap: 2rem;
}

body[data-epso-theme="civic-premium"] .results-summary-row,
body[data-epso-theme="civic-premium"] .results-precision-card,
body[data-epso-theme="civic-premium"] .results-bar-card {
  border: 0.1rem solid #e6ebf2;
  background: #ffffff;
  box-shadow: 0 0.4rem 1.6rem rgba(13, 30, 64, 0.04);
}

body[data-epso-theme="civic-premium"] .results-review {
  margin-top: 0.4rem;
  padding-top: 1.6rem;
  border-top: 0.1rem solid #e6ebf2;
}

.results-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.4rem;
  padding-top: 1.6rem;
  border-top: 0.1rem solid #e6ebf2;
}

.results-next-actions button,
.results-next-actions a {
  min-height: 4.4rem;
  padding: 0 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  border: 0.1rem solid transparent;
  transition: transform 120ms ease, box-shadow 140ms ease, background 140ms ease;
}

.results-next-actions button {
  background: linear-gradient(180deg, #283c59 0%, #1c2b42 100%);
  color: #ffffff;
  border-color: #1c2b42;
  box-shadow: 0 0.6rem 1.4rem rgba(28, 43, 66, 0.22);
}

.results-next-actions button:hover {
  transform: translateY(-0.1rem);
  box-shadow: 0 0.8rem 1.8rem rgba(28, 43, 66, 0.28);
}

.results-next-actions a.secondary {
  background: #ffffff;
  color: #283c59;
  border-color: #c9d3e3;
}

.results-next-actions a.secondary:hover {
  background: #f3f6fb;
}

@media (max-width: 720px) {
  body[data-epso-theme="civic-premium"] .results-hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  body[data-epso-theme="civic-premium"] .results-score-ring {
    margin: 0 auto;
    width: 17rem;
    height: 17rem;
  }
  body[data-epso-theme="civic-premium"] .results-score-center {
    width: 10.4rem;
    height: 10.4rem;
  }
  body[data-epso-theme="civic-premium"] .results-summary,
  body[data-epso-theme="civic-premium"] .results-precision {
    grid-template-columns: minmax(0, 1fr);
  }
  body[data-epso-theme="civic-premium"] .results-body {
    padding: 1.6rem 1.4rem 2rem;
  }
  .results-next-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ─── Free-simulation post-results sale popup ────────────────────────────── */
.free-sim-sale-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.8rem;
  background: rgba(11, 20, 36, 0.72);
  backdrop-filter: blur(6px);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  animation: fssOverlayIn 200ms ease forwards;
}

.free-sim-sale-overlay[hidden] {
  display: none;
}

@keyframes fssOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.free-sim-sale-card {
  width: min(58rem, calc(100vw - 2.4rem));
  max-height: calc(100vh - 3.6rem);
  overflow: auto;
  background: #ffffff;
  color: #1a2940;
  border-radius: 2rem;
  border: 0.1rem solid rgba(198, 163, 84, 0.32);
  box-shadow: 0 3.2rem 9rem rgba(0, 0, 0, 0.36);
  position: relative;
}

.free-sim-sale-head {
  padding: 2.4rem 2.6rem 1.6rem;
  border-bottom: 0.1rem solid #eef1f7;
  background:
    radial-gradient(circle at top right, rgba(198, 163, 84, 0.18) 0, rgba(198, 163, 84, 0) 38%),
    linear-gradient(135deg, #ffffff 0%, #fbfaf4 100%);
  border-radius: 2rem 2rem 0 0;
}

.free-sim-sale-eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(198, 163, 84, 0.16);
  color: #8a6720;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.free-sim-sale-card h2 {
  margin: 0 0 0.8rem;
  font-size: 2.4rem;
  line-height: 1.15;
  color: #101828;
  letter-spacing: -0.005em;
}

.free-sim-sale-card .free-sim-sale-lead {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.55;
  color: #4f5b73;
}

.free-sim-sale-body {
  padding: 1.8rem 2.6rem 2rem;
  display: grid;
  gap: 1.4rem;
}

.free-sim-sale-unlock {
  display: grid;
  gap: 0.4rem;
  padding: 1.2rem 1.4rem;
  border: 0.1rem solid color-mix(in srgb, var(--color-brand-accent) 28%, transparent);
  border-radius: 1.2rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-brand-accent) 16%, transparent), color-mix(in srgb, var(--color-brand) 4%, transparent));
  color: var(--color-brand);
}

.free-sim-sale-unlock strong {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.25;
}

.free-sim-sale-unlock span {
  color: var(--color-gs-dark-secondary);
  font-size: 1.3rem;
  line-height: 1.35;
}

.free-sim-sale-countdown {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 0.1rem solid color-mix(in srgb, var(--color-brand) 12%, transparent);
  border-radius: 1.2rem;
  background: var(--color-brand-light);
}

.free-sim-sale-countdown span {
  color: var(--color-gs-dark-secondary);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.free-sim-sale-countdown strong {
  color: var(--color-brand);
  font-family: var(--font-display, Inter, system-ui, sans-serif);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.free-sim-sale-disclaimer {
  margin: 0;
  color: var(--color-gs-dark-secondary);
  font-size: 1.2rem;
  line-height: 1.45;
}

.free-sim-sale-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.free-sim-sale-bullets li {
  position: relative;
  padding-left: 2.4rem;
  color: #1f2a44;
  font-size: 1.4rem;
  line-height: 1.5;
}

.free-sim-sale-bullets li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.4rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(198, 163, 84, 0.2);
  box-shadow: inset 0 0 0 0.3rem #ffffff;
  border: 0.18rem solid #c6a354;
}

.free-sim-sale-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0 2.6rem 2.4rem;
}

.free-sim-sale-actions a,
.free-sim-sale-actions button {
  min-height: 4.6rem;
  padding: 0 2rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 750;
  font-size: 1.45rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0.1rem solid transparent;
  transition: transform 120ms ease, box-shadow 140ms ease, background 140ms ease;
}

.free-sim-sale-cta {
  background: linear-gradient(180deg, #c6a354 0%, #a78a3f 100%);
  color: #1a1404;
  border-color: #a78a3f;
  box-shadow: 0 0.6rem 1.6rem rgba(167, 138, 63, 0.36);
  flex: 1 1 22rem;
}

.free-sim-sale-cta:hover {
  transform: translateY(-0.1rem);
  box-shadow: 0 0.9rem 2rem rgba(167, 138, 63, 0.46);
}

.free-sim-sale-cta[aria-busy="true"] {
  opacity: 0.78;
  pointer-events: none;
}

.free-sim-sale-secondary {
  background: #ffffff;
  color: #273e57;
  border-color: #c9d3e3;
}

.free-sim-sale-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  color: #4f5b73;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.free-sim-sale-close:hover {
  color: #101828;
  background: #ffffff;
}

.free-sim-sale-error {
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  background: #fff3f2;
  color: #991b1b;
  font-size: 1.3rem;
}

@media (max-width: 540px) {
  .free-sim-sale-head { padding: 2rem 1.8rem 1.4rem; }
  .free-sim-sale-body { padding: 1.6rem 1.8rem; }
  .free-sim-sale-actions { padding: 0 1.8rem 2rem; }
  .free-sim-sale-actions a,
  .free-sim-sale-actions button {
    width: 100%;
    flex: 1 1 100%;
  }
}

/* Numerical visuals: keep exam rendering in parity with the builder canvas. */
.data-visual-frame {
  --visual-card-radius: 12px;
  --visual-card-border: rgba(11,20,36,.08);
  --visual-card-shadow: 0 1px 3px rgba(11,20,36,.06), 0 8px 24px rgba(11,20,36,.05);
  --visual-card-padding-y: 10px;
  --visual-card-padding-x: 12px;
  --visual-card-plot-min-height: 160px;
  --nr-chart-blue-900: #1a2940;
  --nr-chart-blue-800: #1f3550;
  --nr-chart-blue-700: #273e57;
  --nr-chart-blue-600: #2a4966;
  --nr-chart-blue-500: #3d5a7a;
  --nr-chart-blue-400: #4f7fab;
  --nr-chart-blue-300: #6b8ba8;
  --nr-chart-blue-200: #8fb4d6;
  --nr-chart-track: rgba(39,62,87,.055);
  display: grid;
  gap: 12px;
  margin: 2px 0 4px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  align-content: start;
}

.data-visual-frame.is-split {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

.data-visual-frame.is-table-only,
.data-visual-frame.is-chart-only {
  grid-template-columns: 1fr;
}

.data-visual-frame-mosaic {
  display: grid;
  gap: 12px;
  width: 100%;
}

.data-visual-mosaic-slot {
  display: flex;
  align-items: stretch;
  min-width: 0;
  min-height: 180px;
}

.data-visual-mosaic-slot > .visual-card,
.data-visual-mosaic-slot > .data-visual-table-card,
.data-visual-mosaic-slot > .data-visual-chart-card {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 100%;
}

.data-visual-mosaic-empty {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed rgba(39,62,87,.22);
  border-radius: 12px;
  background: rgba(39,62,87,.03);
  color: #7a88a2;
  font-size: 12px;
  font-weight: 700;
}

.visual-card {
  position: relative;
  isolation: auto;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--visual-card-border);
  border-radius: var(--visual-card-radius);
  background: #ffffff;
  padding: var(--visual-card-padding-y) var(--visual-card-padding-x);
  box-shadow: var(--visual-card-shadow);
  font-family: "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  box-sizing: border-box;
}

.visual-card::before {
  content: none;
}

.visual-card > * {
  position: relative;
  z-index: 1;
}

.visual-card-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
}

.data-visual-table-card,
.data-visual-chart-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.data-visual-title,
.data-visual-chart-title {
  margin: 0 0 8px;
  max-width: none;
  font-family: "Inter Tight", "Inter", "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: clamp(12px, 1.35vw, 15px);
  font-weight: 800;
  color: #10243b;
  text-align: center;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.data-visual-table-card-title {
  display: none;
}

.data-visual-stacked-mobile-legend {
  display: none;
}

.data-visual-subtitle {
  margin: -3px 0 10px;
  max-width: none;
  text-align: center;
  color: #62718a;
  font-size: 11.5px;
  line-height: 1.35;
}

.data-visual-table-wrap {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  overflow: auto;
  padding-bottom: 0;
  border-radius: 12px;
  border: 1px solid rgba(39,62,87,.16);
  background: #fff;
}

.data-visual-table {
  width: 100%;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  border-radius: 0;
  overflow: visible;
}

.data-visual-table td,
.data-visual-table th {
  border: 1px solid rgba(39,62,87,.18);
  padding: 9px 12px;
  vertical-align: middle;
  color: #10243b;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.data-visual-table-title-cell {
  width: 100%;
  background: linear-gradient(90deg, var(--nr-chart-blue-700, #273e57), var(--nr-chart-blue-500, #3d5a7a)) !important;
  color: #ffffff !important;
  text-align: center !important;
  font-weight: 900 !important;
  letter-spacing: .01em;
  font-size: clamp(12px, 1.25vw, 15px) !important;
  padding: 12px 14px !important;
}

.data-visual-table tbody tr:nth-child(even) td:not(.data-visual-table-title-cell) {
  background-color: #fafbfc;
}

.data-visual-chart-card {
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 0%, rgba(37,99,235,.08), transparent 28%),
    #ffffff;
}

.data-visual-echart {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: var(--visual-card-plot-min-height);
  flex: 1 1 auto;
  margin-top: 0;
}

.visual-card.is-custom-echart .data-visual-echart {
  min-width: 0;
  height: auto;
  min-height: 260px;
}

.data-visual-chart-shell,
.data-visual-horizontal-shell,
.data-visual-pie-shell {
  position: relative;
  display: grid;
  min-height: 160px;
  flex: 1;
}

.data-visual-chart-shell {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  margin-top: 0;
  padding: 8px 4px 0;
  align-items: stretch;
}

.data-visual-chart-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  color: #66788f;
  font-size: 10px;
  font-weight: 700;
  padding-bottom: 28px;
}

.data-visual-chart-yaxis span {
  font-size: 10px;
  color: #66788f;
}

.data-visual-chart-plot {
  position: relative;
  min-height: 150px;
  padding: 0 0 28px;
  border: 0;
  border-radius: 0;
}

.data-visual-chart-grid {
  position: absolute;
  inset: 0 0 28px 0;
  pointer-events: none;
}

.data-visual-chart-grid-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  border: 0;
  background: repeating-linear-gradient(90deg, rgba(39,62,87,.14) 0 5px, transparent 5px 10px);
}

.data-visual-chart-bars {
  position: absolute;
  inset: 0 0 28px 0;
  display: grid;
  align-items: end;
  gap: 10px;
  z-index: 1;
}

.data-visual-chart-bar-group {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: end;
  justify-items: center;
  gap: 5px;
  height: 100%;
  min-width: 0;
  text-align: center;
}

.data-visual-chart-bar-track {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: end;
  justify-content: center;
  width: auto;
  height: auto;
  min-height: 86px;
  padding: 0;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--nr-chart-track, rgba(39,62,87,.055)), rgba(39,62,87,.02));
  overflow: hidden;
}

.data-visual-chart-bar,
.data-visual-chart-bar-segment {
  display: block;
  width: min(42px, 70%);
  min-height: 2px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--nr-chart-blue-400, #4f7fab) 0%, var(--nr-chart-blue-700, #273e57) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42);
}

.data-visual-chart-bar-track-stacked {
  flex-direction: column-reverse;
  gap: 1px;
}

.data-visual-chart-bar-track-stacked .data-visual-chart-bar-segment {
  width: min(46px, 74%);
  border-radius: 4px;
}

.data-visual-chart-bar-value,
.data-visual-line-point-value,
.data-visual-pie-value,
.data-visual-horizontal-value {
  justify-self: center;
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  font: inherit;
  font-size: 10.5px;
  font-weight: 850;
  padding: 2px 6px;
  line-height: 1.2;
  box-shadow: 0 4px 10px rgba(15,23,42,.08);
}

.data-visual-chart-bar-label,
.data-visual-line-axis span,
.data-visual-horizontal-label {
  color: #3c4c64;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.data-visual-line-svg {
  position: absolute;
  inset: 0 0 28px 0;
  width: 100%;
  height: calc(100% - 28px);
  z-index: 2;
  filter: drop-shadow(0 4px 8px rgba(15,23,42,.12));
}

.data-visual-line-axis {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 4px;
  text-align: center;
}

.data-visual-line-value-overlay {
  position: absolute;
  inset: 0 0 28px 0;
  z-index: 3;
  pointer-events: none;
}

.data-visual-line-value-overlay > * {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.data-visual-line-legend,
.data-visual-pie-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px 12px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  color: #51627a;
  font-size: 10.5px;
  font-weight: 750;
}

.data-visual-line-legend li,
.data-visual-pie-legend li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.data-visual-line-swatch,
.data-visual-pie-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}

.data-visual-horizontal-shell {
  gap: 8px;
  margin-top: 0;
  padding: 4px 0 0;
}

.data-visual-horizontal-axis {
  display: flex;
  justify-content: space-between;
  padding-left: min(34%, 180px);
  color: #66788f;
  font-size: 10px;
  font-weight: 700;
}

.data-visual-horizontal-rows {
  display: grid;
  gap: 8px;
}

.data-visual-horizontal-row {
  display: grid;
  grid-template-columns: minmax(84px, 26%) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.data-visual-horizontal-bars {
  display: grid;
  gap: 5px;
}

.data-visual-horizontal-track {
  position: relative;
  min-height: 18px;
  height: auto;
  border-radius: 999px;
  background: var(--nr-chart-track, rgba(39,62,87,.055));
  overflow: visible;
}

.data-visual-horizontal-bar {
  display: block;
  min-width: 2px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nr-chart-blue-700, #273e57), var(--nr-chart-blue-400, #4f7fab));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.36);
}

.data-visual-horizontal-value {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.data-visual-pie-shell {
  grid-template-columns: minmax(130px, 1fr) minmax(120px, .8fr);
  align-items: center;
  gap: 16px;
  margin-top: 0;
}

.data-visual-pie-wrap {
  display: grid;
  place-items: center;
  min-width: 0;
}

.data-visual-pie {
  width: min(100%, 210px);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 18px 34px rgba(15,23,42,.16), inset 0 0 0 1px rgba(255,255,255,.64);
}

.data-visual-pie::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(39,62,87,.1);
}

.data-visual-chart-unit,
.data-visual-chart-note,
.data-visual-table-note {
  margin: 8px 0 0;
  color: #62718a;
  font-size: 10.5px;
  line-height: 1.35;
  text-align: center;
}

.data-visual-chart-unit {
  font-weight: 800;
  color: var(--nr-chart-blue-700, #273e57);
}

@media (max-width: 920px) {
  .data-visual-frame.is-split {
    grid-template-columns: 1fr;
  }

  .data-visual-frame-mosaic {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
    justify-content: stretch;
  }

  .data-visual-frame-mosaic > .data-visual-mosaic-slot {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    min-width: 0;
    max-width: 100%;
  }

  .data-visual-pie-shell {
    grid-template-columns: 1fr;
  }
}

body[data-epso-theme="civic-premium"] .data-visual-frame {
  display: grid !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
}

body[data-epso-theme="civic-premium"] .data-visual-frame.is-split {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) !important;
}

body[data-epso-theme="civic-premium"] .data-visual-frame.is-table-only,
body[data-epso-theme="civic-premium"] .data-visual-frame.is-chart-only {
  grid-template-columns: 1fr !important;
}

body[data-epso-theme="civic-premium"] .visual-card,
body[data-epso-theme="civic-premium"] .data-visual-table-card,
body[data-epso-theme="civic-premium"] .data-visual-chart-card {
  overflow: hidden !important;
  border: 1px solid rgba(11,20,36,.08) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(11,20,36,.06), 0 8px 24px rgba(11,20,36,.05) !important;
}

body[data-epso-theme="civic-premium"] .data-visual-chart-card {
  background:
    radial-gradient(circle at 20% 0%, rgba(37,99,235,.08), transparent 28%),
    #ffffff !important;
}

body[data-epso-theme="civic-premium"] .data-visual-table-wrap,
body[data-epso-theme="civic-premium"] .visual-card-scroll {
  --nr-scroll-left-fade: rgba(39,62,87,0);
  --nr-scroll-right-fade: rgba(39,62,87,0);
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(39,62,87,.16) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
}

body[data-epso-theme="civic-premium"] .visual-card-scroll {
  box-shadow:
    0 1px 3px rgba(11,20,36,.06),
    0 8px 24px rgba(11,20,36,.05),
    inset 18px 0 18px -22px var(--nr-scroll-left-fade),
    inset -18px 0 18px -22px var(--nr-scroll-right-fade) !important;
}

body[data-epso-theme="civic-premium"] .data-visual-chart-scrollbox.visual-card-scroll {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow:
    inset 18px 0 18px -22px var(--nr-scroll-left-fade),
    inset -18px 0 18px -22px var(--nr-scroll-right-fade) !important;
  padding: 0 !important;
}

body[data-epso-theme="civic-premium"] .data-visual-table-wrap {
  box-shadow:
    inset 18px 0 18px -22px var(--nr-scroll-left-fade),
    inset -18px 0 18px -22px var(--nr-scroll-right-fade) !important;
}

body[data-epso-theme="civic-premium"] .data-visual-table-wrap[data-scroll-can-left="true"],
body[data-epso-theme="civic-premium"] .visual-card-scroll[data-scroll-can-left="true"] {
  --nr-scroll-left-fade: rgba(39,62,87,.38);
}

body[data-epso-theme="civic-premium"] .data-visual-table-wrap[data-scroll-can-right="true"],
body[data-epso-theme="civic-premium"] .visual-card-scroll[data-scroll-can-right="true"] {
  --nr-scroll-right-fade: rgba(39,62,87,.38);
}

body[data-epso-theme="civic-premium"] .data-visual-table {
  width: 100% !important;
  min-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body[data-epso-theme="civic-premium"] .data-visual-table-title-cell {
  background: linear-gradient(90deg, var(--nr-chart-blue-700, #273e57), var(--nr-chart-blue-500, #3d5a7a)) !important;
  color: #ffffff !important;
  text-align: center !important;
  font-weight: 900 !important;
  font-size: clamp(12px, 1.25vw, 15px) !important;
  padding: 12px 14px !important;
}

body[data-epso-theme="civic-premium"] .data-visual-title,
body[data-epso-theme="civic-premium"] .data-visual-chart-title {
  color: #10243b !important;
  text-align: center !important;
}

body[data-epso-theme="civic-premium"] .data-visual-subtitle,
body[data-epso-theme="civic-premium"] .data-visual-chart-unit,
body[data-epso-theme="civic-premium"] .data-visual-chart-note,
body[data-epso-theme="civic-premium"] .data-visual-table-note {
  color: #62718a !important;
  text-align: center !important;
}

/* Numerical prompts should sit directly under the data visual. */
body.numerical-mode[data-epso-theme="civic-premium"] .qti-item {
  align-content: start;
  row-gap: 0.4rem;
}

body.numerical-mode[data-epso-theme="civic-premium"] .passage {
  gap: 0.5rem;
  padding-top: 1.1rem;
  padding-bottom: 0.25rem;
}

body.numerical-mode[data-epso-theme="civic-premium"] .qti-interaction {
  padding-top: 0.35rem;
}

body.numerical-mode[data-epso-theme="civic-premium"] .qti-prompt {
  margin-top: 0;
}

body.numerical-mode[data-epso-theme="civic-premium"] .passage-image-frame {
  line-height: 0;
}

body.numerical-mode[data-epso-theme="civic-premium"] .passage-image {
  display: block;
}

body.epso-exam-fullscreen.numerical-mode[data-epso-theme="civic-premium"] .passage {
  padding-top: 1.1rem !important;
  padding-bottom: 0.25rem !important;
}

body.epso-exam-fullscreen.numerical-mode[data-epso-theme="civic-premium"] .qti-interaction {
  padding-top: 0.35rem !important;
}

/* Numerical tables: display the table itself, without the surrounding card chrome. */
body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-table-card {
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: 100% !important;
  min-height: 100% !important;
}

body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-table-card.visual-card {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-table-card::before {
  content: none !important;
}

body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-table-wrap {
  flex: 1 1 auto !important;
  display: flex !important;
  border-radius: 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow:
    inset 18px 0 18px -22px var(--nr-scroll-left-fade),
    inset -18px 0 18px -22px var(--nr-scroll-right-fade) !important;
  padding: 0 !important;
}

body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-table {
  height: 100% !important;
  border: 1px solid #aab8c6 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-table th,
body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-table td {
  background-image: none !important;
  box-shadow: none !important;
  border-color: #aab8c6 !important;
}

body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-table-title-cell {
  background: var(--nr-chart-blue-700, #273e57) !important;
  background-image: linear-gradient(90deg, var(--nr-chart-blue-700, #273e57), var(--nr-chart-blue-500, #3d5a7a)) !important;
  border-radius: 0 !important;
}

@media (max-width: 640px) {
  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-table-card-title {
    display: block;
    margin: 0 0 7px;
    padding: 0 2px;
    font-size: 13px;
    line-height: 1.18;
    text-align: center;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-table-title-row {
    display: none !important;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-table {
    min-width: max(100%, calc(var(--data-visual-cols, 1) * 86px)) !important;
    table-layout: auto !important;
    overflow: visible !important;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-table th,
  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-table td {
    padding: 8px 10px !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-table-sticky-column {
    position: sticky !important;
    left: 0;
    z-index: 3;
    min-width: min(7.25rem, 34vw);
    max-width: 36vw;
    background-clip: padding-box !important;
    box-shadow:
      1px 0 0 #aab8c6,
      12px 0 16px -18px rgba(39,62,87,.55) !important;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-chart-card.is-scroll-chart > .data-visual-chart-title {
    margin: 0 0 4px;
    padding: 0 4px;
    font-size: 13px;
    line-height: 1.16;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-chart-card.is-scroll-chart > .data-visual-subtitle {
    margin: 0 0 6px;
    padding: 0 4px;
    font-size: 10.5px;
    line-height: 1.25;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-chart-card.is-scroll-chart .data-visual-chart-scrollbox {
    flex: 0 0 auto;
    min-height: 0;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-chart-shell {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px;
    padding: 6px 2px 0;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-chart-plot {
    min-height: 142px;
    padding-bottom: 30px;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-chart-grid,
  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-line-value-overlay {
    inset: 0 0 30px 0;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-line-svg {
    inset: 0 0 30px 0;
    height: calc(100% - 30px);
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-chart-bars {
    inset: 0 0 30px 0;
    gap: 7px;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-chart-yaxis,
  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-chart-yaxis span,
  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-horizontal-axis {
    font-size: 9.5px;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-chart-bar-label,
  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-line-axis span,
  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-horizontal-label {
    font-size: 9.5px;
    line-height: 1.2;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-chart-bar-value,
  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-horizontal-value {
    font-size: 9.5px;
    padding: 1px 5px;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-line-legend,
  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-pie-legend {
    gap: 5px 9px;
    font-size: 9.5px;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-stacked-mobile-legend {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    margin: 10px 0 0;
    padding: 0 5px;
    list-style: none;
    color: #263955;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-stacked-mobile-legend li {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    align-items: start;
    gap: 7px;
    min-width: 0;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-stacked-mobile-swatch {
    display: block;
    width: 10px;
    height: 10px;
    margin-top: 1px;
    border: 1px solid rgba(11,20,36,.18);
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(11,20,36,.08);
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-horizontal-shell {
    min-height: 150px;
    gap: 7px;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-horizontal-axis {
    padding-left: min(38%, 142px);
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-horizontal-row {
    grid-template-columns: minmax(104px, 34%) minmax(180px, 1fr);
    gap: 8px;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-horizontal-track {
    min-height: 16px;
  }

  body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-horizontal-bar {
    height: 16px;
  }
}

body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-table tbody tr:last-child > :first-child {
  border-bottom-left-radius: 0 !important;
}

body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-table tbody tr:last-child > :last-child {
  border-bottom-right-radius: 0 !important;
}

body.numerical-mode[data-epso-theme="civic-premium"] .data-visual-table tbody tr:nth-child(even) td:not(.data-visual-table-title-cell) {
  background-color: #f7f9fc !important;
}

body.numerical-mode[data-epso-theme="civic-premium"] .native-visual-panel-table {
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.numerical-mode[data-epso-theme="civic-premium"] .native-data-table-wrap {
  border: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: auto !important;
  padding: 0 !important;
}

body.numerical-mode[data-epso-theme="civic-premium"] .native-data-table {
  border: 1px solid #aab8c6 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.numerical-mode[data-epso-theme="civic-premium"] .native-data-table th,
body.numerical-mode[data-epso-theme="civic-premium"] .native-data-table td {
  background-image: none !important;
  box-shadow: none !important;
  border-color: #aab8c6 !important;
}

body.numerical-mode[data-epso-theme="civic-premium"] .native-data-table thead th {
  background: #273e57 !important;
  background-image: none !important;
}

body.numerical-mode[data-epso-theme="civic-premium"] .native-data-table tbody tr:nth-child(even) td {
  background-color: #f7f9fc !important;
}

body.numerical-mode[data-epso-theme="civic-premium"] .selectable-choice-container ul,
body.digital-mode[data-epso-theme="civic-premium"] .selectable-choice-container ul {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch !important;
}

body.numerical-mode[data-epso-theme="civic-premium"] .choice,
body.digital-mode[data-epso-theme="civic-premium"] .choice {
  width: 100% !important;
}

body.knowledge-eu-mode .passage {
  display: none !important;
}

@media (max-width: 920px) {
  body[data-epso-theme="civic-premium"] .data-visual-frame.is-split {
    grid-template-columns: 1fr !important;
  }

  body[data-epso-theme="civic-premium"] .data-visual-frame-mosaic {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: none !important;
    justify-content: stretch !important;
  }

  body[data-epso-theme="civic-premium"] .data-visual-frame-mosaic > .data-visual-mosaic-slot {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Polished final-submit confirmation modal */
.submit-confirm-overlay {
  padding: clamp(1.6rem, 4vw, 4.8rem);
  background:
    radial-gradient(circle at 50% 18%, rgba(42, 113, 180, 0.22) 0, rgba(42, 113, 180, 0) 38%),
    rgba(8, 18, 32, 0.68);
  backdrop-filter: blur(1rem);
}

.submit-confirm-overlay.open {
  animation: submitOverlayIn 180ms ease-out both;
}

.submit-confirm-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 2rem;
  width: min(64rem, 100%);
  padding: clamp(2.2rem, 4vw, 3.6rem);
  overflow: hidden;
  isolation: isolate;
  border: 0.1rem solid rgba(200, 213, 230, 0.95);
  border-radius: 2.8rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 253, 0.98) 100%);
  box-shadow:
    0 3.2rem 8rem rgba(4, 12, 24, 0.32),
    0 0.1rem 0 rgba(255, 255, 255, 0.9) inset;
  color: #122033;
  transform-origin: 50% 58%;
  animation: submitCardIn 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.submit-confirm-card::before {
  content: "";
  grid-row: 1 / span 2;
  width: clamp(5.6rem, 12vw, 7.2rem);
  height: clamp(5.6rem, 12vw, 7.2rem);
  border: 0.1rem solid rgba(255, 255, 255, 0.72);
  border-radius: 2.2rem;
  background:
    linear-gradient(#ffffff, #ffffff) 50% 56% / 2.6rem 0.36rem no-repeat,
    linear-gradient(#ffffff, #ffffff) 40% 45% / 1rem 0.36rem no-repeat,
    linear-gradient(#ffffff, #ffffff) 58% 45% / 1rem 0.36rem no-repeat,
    linear-gradient(135deg, #1f6d8f 0%, #243e62 100%);
  box-shadow:
    0 1.6rem 3.2rem rgba(31, 80, 127, 0.28),
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.35);
}

.submit-confirm-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.6rem;
  background: linear-gradient(90deg, #1f6d8f 0%, #c6a354 52%, #28476d 100%);
  pointer-events: none;
}

.submit-confirm-card h2 {
  margin: 0;
  align-self: end;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
  color: #0f1f35;
}

.submit-confirm-card p {
  grid-column: 2;
  margin: 1rem 0 0;
  max-width: 48rem;
  font-size: clamp(1.55rem, 2.5vw, 1.75rem);
  line-height: 1.6;
  color: #526176;
}

.submit-confirm-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  margin-top: clamp(2.4rem, 4vw, 3.2rem);
  padding-top: 2rem;
  border-top: 0.1rem solid rgba(17, 43, 74, 0.1);
}

.submit-confirm-btn {
  min-height: 5rem;
  justify-content: center;
  padding: 0 2.2rem;
  border-radius: 999px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.submit-confirm-btn.secondary {
  border: 0.1rem solid rgba(31, 61, 96, 0.18);
  background: #ffffff;
  color: #243e62;
  box-shadow: 0 0.6rem 1.8rem rgba(20, 42, 72, 0.07);
}

.submit-confirm-btn.primary {
  border: 0.1rem solid #243e62;
  background: #243e62;
  color: #ffffff;
  box-shadow: 0 1.2rem 2.6rem rgba(36, 62, 98, 0.28);
}

.submit-confirm-btn:hover,
.submit-confirm-btn:focus-visible {
  transform: translateY(-0.1rem);
}

.submit-confirm-btn:focus-visible {
  outline: 0.3rem solid rgba(198, 163, 84, 0.45);
  outline-offset: 0.3rem;
}

body[data-epso-theme="civic-premium"] .submit-confirm-card {
  width: min(64rem, 100%);
  padding: clamp(2.2rem, 4vw, 3.6rem);
  border-radius: 2.8rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 253, 0.98) 100%);
  box-shadow:
    0 3.2rem 8rem rgba(4, 12, 24, 0.32),
    0 0.1rem 0 rgba(255, 255, 255, 0.9) inset;
}

body[data-epso-theme="civic-premium"] .submit-confirm-card h2 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
  color: #0f1f35;
}

body[data-epso-theme="civic-premium"] .submit-confirm-card p {
  font-size: clamp(1.55rem, 2.5vw, 1.75rem);
  line-height: 1.6;
  color: #526176;
}

body[data-epso-theme="civic-premium"] .submit-confirm-actions {
  margin-top: clamp(2.4rem, 4vw, 3.2rem);
  gap: 1.2rem;
}

body[data-epso-theme="civic-premium"] .submit-confirm-btn.primary {
  background: #243e62;
  border-color: #243e62;
  color: #ffffff;
}

body[data-epso-theme="civic-premium"] .submit-confirm-btn.secondary {
  background: #ffffff;
  border-color: rgba(31, 61, 96, 0.18);
  color: #243e62;
}

body[data-epso-theme="civic-premium"].contrast-white-on-black .submit-confirm-overlay,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue .submit-confirm-overlay,
body[data-epso-theme="civic-premium"].contrast-black-on-cream .submit-confirm-overlay,
body[data-epso-theme="civic-premium"].contrast-black-on-blue .submit-confirm-overlay,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta .submit-confirm-overlay,
body[data-epso-theme="civic-premium"].contrast-grey-on-green .submit-confirm-overlay {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: none;
}

body[class*="contrast-"] .submit-confirm-card::before,
body[class*="contrast-"] .submit-confirm-card::after {
  display: none;
}

body[class*="contrast-"] .submit-confirm-card,
body[class*="contrast-"] .submit-confirm-card h2,
body[class*="contrast-"] .submit-confirm-card p {
  color: var(--epso-contrast-ink);
}

body[class*="contrast-"] .submit-confirm-btn {
  border-color: var(--epso-contrast-border);
  box-shadow: none;
}

body[class*="contrast-"] .submit-confirm-btn.primary {
  background: var(--epso-contrast-ink);
  color: var(--epso-contrast-surface);
}

@keyframes submitOverlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes submitCardIn {
  from {
    opacity: 0;
    transform: translateY(1.2rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .submit-confirm-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .submit-confirm-card::before {
    grid-row: auto;
    margin: 0 auto 1.6rem;
  }

  .submit-confirm-card p {
    grid-column: 1;
  }

  .submit-confirm-actions {
    grid-template-columns: 1fr;
    padding-top: 1.6rem;
  }
}

.exam-access-denied-card {
  width: min(44rem, 100%);
  margin: 1.2rem auto;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid rgba(39, 62, 87, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow: 0 22px 60px rgba(10, 24, 42, 0.12);
  color: #16253a;
}

.exam-access-denied-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  color: #9a6d12;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exam-access-denied-kicker::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: #c6a354;
  box-shadow: 0 0 0 0.32rem rgba(198, 163, 84, 0.16);
}

.exam-access-denied-card p {
  margin: 0;
  max-width: 38rem;
  color: #41536b;
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  line-height: 1.65;
}

.exam-access-denied-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.exam-access-denied-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.74rem 1.05rem;
  border: 1px solid #273e57;
  border-radius: 999px;
  background: #273e57;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.exam-access-denied-actions a.secondary {
  border-color: rgba(39, 62, 87, 0.18);
  background: #ffffff;
  color: #273e57;
}

body[class*="contrast-"] .exam-access-denied-card {
  border-color: var(--epso-contrast-border);
  background: var(--epso-contrast-surface);
  box-shadow: none;
  color: var(--epso-contrast-ink);
}

body[class*="contrast-"] .exam-access-denied-card p,
body[class*="contrast-"] .exam-access-denied-kicker {
  color: var(--epso-contrast-ink);
}

body[class*="contrast-"] .exam-access-denied-actions a {
  border-color: var(--epso-contrast-border);
  background: var(--epso-contrast-ink);
  color: var(--epso-contrast-surface);
}

body[class*="contrast-"] .exam-access-denied-actions a.secondary {
  background: var(--epso-contrast-surface);
  color: var(--epso-contrast-ink);
}

@media (max-width: 900px), (hover: none) {
  body .top-bar.tools-open {
    z-index: 2147483000 !important;
  }

  body .top-bar.tools-open .breadcrumb .crumb,
  body .top-bar.tools-measuring .breadcrumb .crumb {
    flex: 0 0 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body .tool-menu.open {
    padding-left: 0 !important;
  }

  body .top-bar.tools-open .tool-menu.open .tool-menu-panel {
    position: fixed !important;
    top: var(--mobile-tool-rail-top, calc(env(safe-area-inset-top, 0px) + 24px)) !important;
    right: var(--mobile-tool-rail-right, var(--mobile-tool-rail-right-fallback)) !important;
    left: var(--mobile-tool-rail-left, 104px) !important;
    width: auto !important;
    max-width: none !important;
    height: var(--header-tool-button-size, 3.8rem) !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: translate3d(0, -50%, 0) !important;
    z-index: 2147483001 !important;
    pointer-events: auto !important;
  }

  body .top-bar.tools-open .tool-menu-panel .end {
    width: 100% !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
  }

  body .top-bar.tools-open .tool-droplet-list {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* ─── Results popup v3: compact, animated, responsive ───────────────────── */
body[data-epso-theme="civic-premium"] .results-overlay {
  padding: clamp(1rem, 2.4vw, 2.4rem);
  background:
    radial-gradient(circle at 50% 18%, rgba(64, 124, 190, 0.24) 0, rgba(64, 124, 190, 0) 34rem),
    rgba(5, 12, 22, 0.72);
  backdrop-filter: blur(1.2rem) saturate(1.08);
  -webkit-backdrop-filter: blur(1.2rem) saturate(1.08);
}

body[data-epso-theme="civic-premium"] .results-overlay.open {
  animation: resultsOverlayFadeIn 180ms ease-out both;
}

body[data-epso-theme="civic-premium"] .results-card {
  width: min(76rem, 100%);
  max-height: min(88dvh, calc(100dvh - 2rem));
  overflow: hidden;
  border: 0.1rem solid rgba(210, 221, 235, 0.94);
  border-radius: 2rem;
  background: #ffffff;
  box-shadow:
    0 3.6rem 9rem rgba(3, 10, 22, 0.34),
    0 0.1rem 0 rgba(255, 255, 255, 0.9) inset;
  transform-origin: 50% 56%;
}

body[data-epso-theme="civic-premium"] .results-overlay.open .results-card {
  animation: resultsCardEnter 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body[data-epso-theme="civic-premium"] .results-card::after {
  content: none;
}

body[data-epso-theme="civic-premium"] .results-header {
  min-height: 6.2rem;
  padding: 1.35rem 1.6rem 1.35rem 2rem;
  border-bottom: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, #13243b 0%, #243e62 56%, #0d6673 100%);
  color: #ffffff;
}

body[data-epso-theme="civic-premium"] .results-header::before {
  content: "";
  width: 1rem;
  height: 3.4rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #f5d57e 0%, #c6a354 100%);
  box-shadow: 0 0 0 0.6rem rgba(198, 163, 84, 0.14);
}

body[data-epso-theme="civic-premium"] .results-header h2 {
  margin-right: auto;
  padding-left: 0.4rem;
  font-size: clamp(2rem, 2.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

body[data-epso-theme="civic-premium"] .results-header .icon-bar-btn {
  width: 4rem;
  height: 4rem;
  min-width: 4rem;
  padding: 0;
  border: 0.1rem solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  transition:
    background 140ms ease,
    transform 140ms ease;
}

body[data-epso-theme="civic-premium"] .results-header .icon-bar-btn .icon {
  width: 1.55rem;
  height: 1.55rem;
}

body[data-epso-theme="civic-premium"] .results-header .icon-bar-btn:hover,
body[data-epso-theme="civic-premium"] .results-header .icon-bar-btn:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-0.1rem);
}

body[data-epso-theme="civic-premium"] .results-body {
  display: grid;
  gap: 1rem;
  min-height: 0;
  padding: clamp(1.2rem, 2vw, 1.7rem);
  overflow: auto;
  background:
    radial-gradient(circle at 0% 0%, rgba(20, 102, 115, 0.08), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

body[data-epso-theme="civic-premium"] .results-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.2rem, 2.2vw, 1.8rem);
  padding: clamp(1.2rem, 2vw, 1.6rem);
  border: 0.1rem solid rgba(210, 221, 235, 0.9);
  border-radius: 1.6rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.96) 100%);
  box-shadow: 0 1rem 2.8rem rgba(20, 42, 72, 0.08);
}

body[data-epso-theme="civic-premium"] .results-score-ring {
  width: clamp(12rem, 18vw, 15.6rem);
  height: clamp(12rem, 18vw, 15.6rem);
  position: relative;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 1) 0 57%, transparent 58%),
    conic-gradient(#243e62 0deg var(--score-angle), rgba(36, 62, 98, 0.12) var(--score-angle) 360deg);
  box-shadow:
    0 1.4rem 3.2rem rgba(36, 62, 98, 0.14),
    inset 0 0 0 0.1rem rgba(255, 255, 255, 0.8);
}

body[data-epso-theme="civic-premium"] .results-overlay.open .results-score-ring {
  animation: resultsRingPop 420ms 120ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body[data-epso-theme="civic-premium"] .results-score-ring::after {
  content: "";
  position: absolute;
  inset: 0.8rem;
  border-radius: inherit;
  border: 0.1rem solid rgba(36, 62, 98, 0.08);
  pointer-events: none;
}

body[data-epso-theme="civic-premium"] .results-score-center {
  width: 64%;
  height: 64%;
  background: #ffffff;
  box-shadow: 0 0.8rem 2.2rem rgba(20, 42, 72, 0.08);
}

body[data-epso-theme="civic-premium"] .results-score-center span {
  font-size: clamp(2.8rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0;
  color: #10243b;
}

body[data-epso-theme="civic-premium"] .results-score-center small {
  margin-top: 0.35rem;
  color: #62718a;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

body[data-epso-theme="civic-premium"] .results-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

body[data-epso-theme="civic-premium"] .results-summary-row,
body[data-epso-theme="civic-premium"] .results-precision-card {
  min-height: 7.2rem;
  align-content: center;
  padding: 1rem;
  border: 0.1rem solid rgba(210, 221, 235, 0.92);
  border-radius: 1.2rem;
  background: #ffffff;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .results-summary-row {
  display: grid;
  gap: 0.35rem;
  justify-content: stretch;
}

body[data-epso-theme="civic-premium"] .results-summary-row span,
body[data-epso-theme="civic-premium"] .results-precision-card span,
body[data-epso-theme="civic-premium"] .results-bar-label span {
  color: #64748b;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-epso-theme="civic-premium"] .results-summary-row strong,
body[data-epso-theme="civic-premium"] .results-precision-card strong {
  color: #10243b;
  font-size: clamp(2rem, 2.8vw, 2.55rem);
  font-weight: 900;
  line-height: 1;
}

body[data-epso-theme="civic-premium"] .results-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

body[data-epso-theme="civic-premium"] .results-bar-card {
  padding: 1rem;
  border: 0.1rem solid rgba(210, 221, 235, 0.92);
  border-radius: 1.2rem;
  background: #ffffff;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .results-bar-label {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
}

body[data-epso-theme="civic-premium"] .results-bar-label strong {
  color: #10243b;
  font-size: 1.55rem;
  font-weight: 900;
}

body[data-epso-theme="civic-premium"] .results-bar-track {
  height: 0.72rem;
  border: 0;
  background: rgba(36, 62, 98, 0.1);
}

body[data-epso-theme="civic-premium"] .results-bar-fill {
  width: 0;
  transform-origin: left center;
  transition: width 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-epso-theme="civic-premium"] .results-overlay.open .results-bar-fill {
  animation: resultsBarSettle 520ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body[data-epso-theme="civic-premium"] .results-precision {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

body[data-epso-theme="civic-premium"] .results-next-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 1rem;
  border: 0.1rem solid rgba(210, 221, 235, 0.92);
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.82);
}

body[data-epso-theme="civic-premium"] .results-next-actions button,
body[data-epso-theme="civic-premium"] .results-next-actions a {
  min-height: 4.3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: 0;
}

body[data-epso-theme="civic-premium"] .results-review {
  gap: 0.8rem;
  margin-top: 0;
  padding-top: 1rem;
  border-top-color: rgba(210, 221, 235, 0.92);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .results-review h3 {
  font-size: 1.8rem;
  line-height: 1.15;
}

body[data-epso-theme="civic-premium"] .results-review-list {
  gap: 0.8rem;
}

body[data-epso-theme="civic-premium"] .results-review-item {
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 1.2rem;
  background: #ffffff;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .results-review-item::after {
  content: none;
}

body[data-epso-theme="civic-premium"] .results-review-prompt {
  font-size: 1.42rem;
  line-height: 1.42;
}

body[data-epso-theme="civic-premium"] .results-review-answer strong {
  font-size: 1.35rem;
  line-height: 1.35;
}

body[data-epso-theme="civic-premium"] .results-review-explanation {
  max-height: 12rem;
  overflow: auto;
  padding: 0.9rem 1rem;
  border: 0.1rem solid rgba(210, 221, 235, 0.92);
  border-radius: 1rem;
  background: #f8fafc;
  color: #475569;
  font-size: 1.35rem;
}

body[data-epso-theme="civic-premium"] .results-offer-claim-bar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  border-top: 0.1rem solid rgba(210, 221, 235, 0.92);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 255, 0.98)),
    #ffffff;
  box-shadow: 0 -1.2rem 2.8rem rgba(20, 42, 72, 0.08);
}

body[data-epso-theme="civic-premium"] .results-offer-claim-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

body[data-epso-theme="civic-premium"] .results-offer-claim-copy strong {
  color: #10243b;
  font-size: 1.48rem;
  font-weight: 900;
  line-height: 1.15;
}

body[data-epso-theme="civic-premium"] .results-offer-claim-copy span {
  color: #64748b;
  font-size: 1.22rem;
  font-weight: 650;
  line-height: 1.3;
}

body[data-epso-theme="civic-premium"] .results-offer-claim-cta {
  min-height: 4.3rem;
  padding: 0 1.45rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f2d27a 0%, #c59a3f 100%);
  color: #142033;
  box-shadow: 0 1rem 2.4rem rgba(123, 89, 24, 0.22);
  font-size: 1.34rem;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
}

body[data-epso-theme="civic-premium"] .results-offer-claim-cta:hover,
body[data-epso-theme="civic-premium"] .results-offer-claim-cta:focus-visible {
  box-shadow: 0 1.2rem 2.8rem rgba(123, 89, 24, 0.28);
  filter: saturate(1.04);
  transform: translateY(-0.1rem);
}

body[data-epso-theme="civic-premium"] .results-offer-claim-cta[aria-busy="true"] {
  cursor: progress;
  opacity: 0.72;
}

body[data-epso-theme="civic-premium"] .results-offer-claim-error {
  grid-column: 1 / -1;
  margin: -0.2rem 0 0;
  color: #9a3412;
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.35;
}

.free-sim-sale-overlay {
  padding: clamp(1rem, 2.4vw, 2.4rem);
  background:
    radial-gradient(circle at 50% 18%, rgba(198, 163, 84, 0.22) 0, rgba(198, 163, 84, 0) 32rem),
    rgba(5, 12, 22, 0.78);
  backdrop-filter: blur(1.2rem) saturate(1.08);
  -webkit-backdrop-filter: blur(1.2rem) saturate(1.08);
}

.free-sim-sale-card {
  width: min(48rem, 100%);
  max-height: min(86dvh, calc(100dvh - 2rem));
  border-radius: 1.8rem;
  border-color: rgba(230, 204, 133, 0.5);
  box-shadow: 0 3.2rem 8rem rgba(3, 10, 22, 0.42);
  animation: resultsCardEnter 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.free-sim-sale-head {
  display: grid;
  gap: 0.8rem;
  padding: 2rem 2rem 1rem;
  border-radius: 1.8rem 1.8rem 0 0;
  text-align: center;
}

.free-sim-sale-eyebrow {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0 1rem;
  border: 0.1rem solid rgba(198, 163, 84, 0.28);
  border-radius: 999px;
  background: rgba(198, 163, 84, 0.12);
  color: #76581e;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.free-sim-sale-card h2 {
  max-width: 17ch;
  margin: 0 auto;
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.free-sim-sale-card .free-sim-sale-lead {
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1.45rem;
  line-height: 1.48;
}

.free-sim-sale-body {
  padding: 1.3rem 2rem;
}

.free-sim-sale-bullets {
  gap: 0.65rem;
}

.free-sim-sale-bullets li {
  padding-left: 2.1rem;
  font-size: 1.34rem;
  line-height: 1.42;
}

.free-sim-sale-actions {
  padding: 1rem 2rem 2rem;
}

.free-sim-sale-actions button {
  width: 100%;
  min-height: 4.8rem;
  border-radius: 999px;
  font-size: 1.42rem;
  font-weight: 900;
}

@media (max-width: 760px) {
  body[data-epso-theme="civic-premium"] .results-card {
    width: min(62rem, 100%);
  }

  body[data-epso-theme="civic-premium"] .results-hero {
    grid-template-columns: 12rem minmax(0, 1fr);
    text-align: left;
  }

  body[data-epso-theme="civic-premium"] .results-score-ring {
    width: 12rem;
    height: 12rem;
    margin: 0;
  }

  body[data-epso-theme="civic-premium"] .results-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-epso-theme="civic-premium"] .results-bars {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  body[data-epso-theme="civic-premium"] .results-overlay {
    align-items: flex-end;
    padding: 0;
  }

  body[data-epso-theme="civic-premium"] .results-card {
    width: 100%;
    max-height: 92dvh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 2rem 2rem 0 0;
  }

  body[data-epso-theme="civic-premium"] .results-overlay.open .results-card {
    animation-name: resultsSheetEnter;
  }

  body[data-epso-theme="civic-premium"] .results-header {
    min-height: 5.8rem;
    padding: 1.1rem 1.2rem 1.1rem 1.5rem;
  }

  body[data-epso-theme="civic-premium"] .results-header::before {
    width: 0.72rem;
    height: 3rem;
  }

  body[data-epso-theme="civic-premium"] .results-body {
    gap: 0.8rem;
    padding: 1rem 1rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  }

  body[data-epso-theme="civic-premium"] .results-hero {
    grid-template-columns: 9.2rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    border-radius: 1.35rem;
  }

  body[data-epso-theme="civic-premium"] .results-score-ring {
    width: 9.2rem;
    height: 9.2rem;
  }

  body[data-epso-theme="civic-premium"] .results-score-center span {
    font-size: 2.25rem;
  }

  body[data-epso-theme="civic-premium"] .results-score-center small {
    font-size: 0.86rem;
  }

  body[data-epso-theme="civic-premium"] .results-summary {
    gap: 0.55rem;
  }

  body[data-epso-theme="civic-premium"] .results-summary-row,
  body[data-epso-theme="civic-premium"] .results-precision-card {
    min-height: 5.7rem;
    padding: 0.75rem;
  }

  body[data-epso-theme="civic-premium"] .results-summary-row span,
  body[data-epso-theme="civic-premium"] .results-precision-card span,
  body[data-epso-theme="civic-premium"] .results-bar-label span {
    font-size: 0.95rem;
  }

  body[data-epso-theme="civic-premium"] .results-summary-row strong,
  body[data-epso-theme="civic-premium"] .results-precision-card strong {
    font-size: 1.9rem;
  }

  body[data-epso-theme="civic-premium"] .results-precision,
  body[data-epso-theme="civic-premium"] .results-next-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-epso-theme="civic-premium"] .results-next-actions button,
  body[data-epso-theme="civic-premium"] .results-next-actions a {
    width: 100%;
  }

  body[data-epso-theme="civic-premium"] .results-offer-claim-bar {
    grid-template-columns: minmax(0, 1fr);
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  body[data-epso-theme="civic-premium"] .results-offer-claim-copy {
    text-align: center;
  }

  body[data-epso-theme="civic-premium"] .results-offer-claim-cta {
    width: 100%;
  }

  .free-sim-sale-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .free-sim-sale-card {
    width: 100%;
    max-height: 90dvh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 2rem 2rem 0 0;
    animation-name: resultsSheetEnter;
  }

  .free-sim-sale-head {
    padding: 1.75rem 1.4rem 0.9rem;
    border-radius: 2rem 2rem 0 0;
  }

  .free-sim-sale-card h2 {
    max-width: none;
  }

  .free-sim-sale-actions {
    padding: 0 1.4rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-height: 680px) and (min-width: 561px) {
  body[data-epso-theme="civic-premium"] .results-card {
    max-height: calc(100dvh - 1.6rem);
  }

  body[data-epso-theme="civic-premium"] .results-body {
    gap: 0.75rem;
    padding: 1rem;
  }

  body[data-epso-theme="civic-premium"] .results-score-ring {
    width: 10.8rem;
    height: 10.8rem;
  }

  body[data-epso-theme="civic-premium"] .results-summary-row,
  body[data-epso-theme="civic-premium"] .results-precision-card {
    min-height: 5.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-epso-theme="civic-premium"] .results-overlay.open,
  body[data-epso-theme="civic-premium"] .results-overlay.open .results-card,
  body[data-epso-theme="civic-premium"] .results-overlay.open .results-score-ring,
  body[data-epso-theme="civic-premium"] .results-overlay.open .results-bar-fill,
  .free-sim-sale-card {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes resultsOverlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes resultsCardEnter {
  from {
    opacity: 0;
    transform: translateY(1.6rem) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes resultsSheetEnter {
  from {
    opacity: 0;
    transform: translateY(2.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes resultsRingPop {
  from {
    opacity: 0.72;
    transform: scale(0.92) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes resultsBarSettle {
  from {
    filter: saturate(0.85);
    transform: scaleX(0.92);
  }
  to {
    filter: saturate(1);
    transform: scaleX(1);
  }
}

/* ─── Results popup v4: polished score report ───────────────────────────── */
body[data-epso-theme="civic-premium"] .results-overlay {
  padding: clamp(1.2rem, 2.6vw, 2.8rem);
  background:
    radial-gradient(circle at 18% 16%, rgba(40, 143, 151, 0.34) 0, rgba(40, 143, 151, 0) 30rem),
    radial-gradient(circle at 82% 12%, rgba(236, 166, 77, 0.26) 0, rgba(236, 166, 77, 0) 28rem),
    linear-gradient(135deg, rgba(9, 18, 30, 0.82), rgba(20, 29, 45, 0.76));
  backdrop-filter: blur(1.6rem) saturate(1.12);
  -webkit-backdrop-filter: blur(1.6rem) saturate(1.12);
}

body[data-epso-theme="civic-premium"] .results-card {
  position: relative;
  width: min(94rem, 100%);
  max-height: min(90dvh, calc(100dvh - 2.4rem));
  border: 0.1rem solid rgba(255, 255, 255, 0.56);
  border-radius: 2.8rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 253, 0.98) 100%);
  box-shadow:
    0 4.2rem 12rem rgba(2, 8, 20, 0.48),
    0 0 0 0.1rem rgba(10, 25, 42, 0.06) inset;
  transform-origin: 50% 54%;
}

body[data-epso-theme="civic-premium"] .results-overlay.open .results-card {
  animation: resultsReportEnter 340ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body[data-epso-theme="civic-premium"] .results-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.92) 0, rgba(255, 255, 255, 0) 18rem),
    linear-gradient(135deg, rgba(36, 62, 98, 0.08), rgba(40, 143, 151, 0.05) 46%, rgba(236, 166, 77, 0.08));
  pointer-events: none;
}

body[data-epso-theme="civic-premium"] .results-card::after {
  content: "";
  position: absolute;
  inset: 0.8rem;
  border: 0.1rem solid rgba(255, 255, 255, 0.7);
  border-radius: 2.2rem;
  pointer-events: none;
}

body[data-epso-theme="civic-premium"] .results-header,
body[data-epso-theme="civic-premium"] .results-body,
body[data-epso-theme="civic-premium"] .results-offer-claim-bar {
  position: relative;
  z-index: 1;
}

body[data-epso-theme="civic-premium"] .results-header {
  min-height: 7.2rem;
  padding: 1.6rem 1.7rem 1.1rem 2.2rem;
  border-bottom: 0;
  background: transparent;
  color: #102033;
}

body[data-epso-theme="civic-premium"] .results-header::before {
  width: 4.6rem;
  height: 4.6rem;
  border: 0.1rem solid rgba(38, 128, 139, 0.26);
  border-radius: 1.35rem;
  background:
    linear-gradient(135deg, rgba(40, 143, 151, 0.18), rgba(236, 166, 77, 0.2)),
    #ffffff;
  box-shadow:
    0 1.2rem 2.6rem rgba(26, 81, 93, 0.12),
    0 0 0 0.7rem rgba(40, 143, 151, 0.08);
}

body[data-epso-theme="civic-premium"] .results-header::after {
  content: "";
  position: absolute;
  left: 3.78rem;
  top: 3rem;
  width: 1.62rem;
  height: 0.9rem;
  border-right: 0.26rem solid #238a79;
  border-bottom: 0.26rem solid #238a79;
  transform: rotate(42deg);
  pointer-events: none;
}

body[data-epso-theme="civic-premium"] .results-header h2 {
  margin: 0 auto 0 0.35rem;
  padding: 0;
  color: #102033;
  font-size: clamp(2.15rem, 2.7vw, 3rem);
  font-weight: 950;
  line-height: 1;
}

body[data-epso-theme="civic-premium"] .results-header .icon-bar-btn {
  width: 4.4rem;
  height: 4.4rem;
  min-width: 4.4rem;
  border: 0.1rem solid rgba(21, 42, 67, 0.1);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, 0.08);
}

body[data-epso-theme="civic-premium"] .results-header .icon-bar-btn:hover,
body[data-epso-theme="civic-premium"] .results-header .icon-bar-btn:focus-visible {
  background: #ffffff;
  color: #102033;
  transform: translateY(-0.12rem) scale(1.01);
}

body[data-epso-theme="civic-premium"] .results-body {
  display: grid;
  grid-template-columns: minmax(28rem, 0.78fr) minmax(34rem, 1fr);
  grid-template-areas:
    "hero bars"
    "actions actions"
    "review review";
  align-items: start;
  gap: 1.2rem;
  min-height: 0;
  padding: 0 1.7rem 1.7rem;
  overflow: auto;
  background: transparent;
}

body[data-epso-theme="civic-premium"] .results-hero {
  position: relative;
  grid-area: hero;
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 1.25rem;
  min-height: 34rem;
  padding: 1.45rem;
  border: 0.1rem solid rgba(255, 255, 255, 0.64);
  border-radius: 2.2rem;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.28) 0, rgba(255, 255, 255, 0) 14rem),
    linear-gradient(145deg, #193553 0%, #24546b 52%, #1e817b 100%);
  box-shadow:
    0 2.2rem 4.8rem rgba(21, 54, 83, 0.2),
    0 0.1rem 0 rgba(255, 255, 255, 0.34) inset;
  color: #ffffff;
  overflow: hidden;
}

body[data-epso-theme="civic-premium"] .results-hero::before {
  content: "";
  position: absolute;
  right: -5rem;
  top: -5.5rem;
  width: 18rem;
  height: 18rem;
  border: 2.4rem solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  pointer-events: none;
}

body[data-epso-theme="civic-premium"] .results-score-ring {
  justify-self: center;
  width: clamp(15.2rem, 20vw, 19rem);
  height: clamp(15.2rem, 20vw, 19rem);
  margin: 0.25rem auto 0;
  border: 0.1rem solid rgba(255, 255, 255, 0.3);
  background:
    radial-gradient(circle at center, rgba(23, 50, 78, 0.98) 0 55%, transparent 56%),
    conic-gradient(#f2d27a 0deg var(--score-angle), rgba(255, 255, 255, 0.16) var(--score-angle) 360deg);
  box-shadow:
    0 2rem 4rem rgba(3, 12, 23, 0.26),
    inset 0 0 0 0.8rem rgba(255, 255, 255, 0.08);
}

body[data-epso-theme="civic-premium"] .results-score-ring::before {
  content: "";
  position: absolute;
  inset: 1.05rem;
  border: 0.1rem dashed rgba(255, 255, 255, 0.24);
  border-radius: inherit;
  animation: resultsHaloRotate 10s linear infinite;
}

body[data-epso-theme="civic-premium"] .results-score-ring::after {
  inset: 0.9rem;
  border-color: rgba(255, 255, 255, 0.16);
}

body[data-epso-theme="civic-premium"] .results-score-center {
  width: 68%;
  height: 68%;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.14), transparent 42%),
    #ffffff;
  box-shadow:
    0 1.2rem 2.8rem rgba(3, 12, 23, 0.22),
    0 0 0 0.1rem rgba(255, 255, 255, 0.78) inset;
}

body[data-epso-theme="civic-premium"] .results-score-center span {
  color: #102033;
  font-size: clamp(3.4rem, 4.8vw, 4.8rem);
  font-weight: 950;
}

body[data-epso-theme="civic-premium"] .results-score-center small {
  color: #62718a;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

body[data-epso-theme="civic-premium"] .results-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

body[data-epso-theme="civic-premium"] .results-summary-row,
body[data-epso-theme="civic-premium"] .results-precision-card {
  min-height: 7.8rem;
  padding: 1rem;
  border: 0.1rem solid rgba(255, 255, 255, 0.18);
  border-radius: 1.55rem;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1rem 2.4rem rgba(3, 12, 23, 0.1),
    0 0.1rem 0 rgba(255, 255, 255, 0.18) inset;
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
}

body[data-epso-theme="civic-premium"] .results-summary-row span,
body[data-epso-theme="civic-premium"] .results-precision-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

body[data-epso-theme="civic-premium"] .results-summary-row strong,
body[data-epso-theme="civic-premium"] .results-precision-card strong {
  color: #ffffff;
  font-size: clamp(2.25rem, 3vw, 3rem);
  font-weight: 950;
}

body[data-epso-theme="civic-premium"] .results-bars {
  grid-area: bars;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

body[data-epso-theme="civic-premium"] .results-bar-card {
  position: relative;
  min-height: 10.2rem;
  padding: 1.25rem 1.35rem;
  border: 0.1rem solid rgba(214, 224, 237, 0.88);
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 1.2rem 3rem rgba(20, 42, 72, 0.08),
    0 0.1rem 0 rgba(255, 255, 255, 0.92) inset;
  overflow: hidden;
}

body[data-epso-theme="civic-premium"] .results-bar-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.55rem;
  background: #238a79;
}

body[data-epso-theme="civic-premium"] .results-bar-card.incorrect::before {
  background: #e9856b;
}

body[data-epso-theme="civic-premium"] .results-bar-card.unanswered::before {
  background: #9aa8b7;
}

body[data-epso-theme="civic-premium"] .results-bar-label {
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
}

body[data-epso-theme="civic-premium"] .results-bar-label span {
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

body[data-epso-theme="civic-premium"] .results-bar-label strong {
  color: #102033;
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
  font-weight: 950;
  line-height: 0.95;
}

body[data-epso-theme="civic-premium"] .results-bar-track {
  height: 1rem;
  border-radius: 999px;
  background: rgba(16, 32, 51, 0.08);
}

body[data-epso-theme="civic-premium"] .results-bar-fill {
  border-radius: inherit;
  box-shadow: 0 0.7rem 1.4rem rgba(0, 0, 0, 0.12);
}

body[data-epso-theme="civic-premium"] .results-bar-card.correct .results-bar-fill {
  background: linear-gradient(90deg, #1f8274, #35b59b);
}

body[data-epso-theme="civic-premium"] .results-bar-card.incorrect .results-bar-fill {
  background: linear-gradient(90deg, #e9856b, #f0ae82);
}

body[data-epso-theme="civic-premium"] .results-bar-card.unanswered .results-bar-fill {
  background: linear-gradient(90deg, #7d8da1, #b1bdca);
}

body[data-epso-theme="civic-premium"] .results-next-actions {
  grid-area: actions;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-epso-theme="civic-premium"] .results-next-actions button,
body[data-epso-theme="civic-premium"] .results-next-actions a {
  min-height: 5rem;
  border-radius: 1.55rem;
  border: 0.1rem solid rgba(214, 224, 237, 0.88);
  background: #ffffff;
  color: #102033;
  box-shadow: 0 1.2rem 2.8rem rgba(20, 42, 72, 0.08);
  font-size: 1.42rem;
  font-weight: 900;
}

body[data-epso-theme="civic-premium"] .results-next-actions button:hover,
body[data-epso-theme="civic-premium"] .results-next-actions a:hover,
body[data-epso-theme="civic-premium"] .results-next-actions button:focus-visible,
body[data-epso-theme="civic-premium"] .results-next-actions a:focus-visible {
  border-color: rgba(40, 143, 151, 0.38);
  box-shadow: 0 1.6rem 3.2rem rgba(20, 42, 72, 0.12);
  transform: translateY(-0.12rem);
}

body[data-epso-theme="civic-premium"] .results-review {
  grid-area: review;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 1.35rem;
  border: 0.1rem solid rgba(214, 224, 237, 0.88);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1.4rem 3.4rem rgba(20, 42, 72, 0.08);
}

body[data-epso-theme="civic-premium"] .results-review h3 {
  margin: 0;
  color: #102033;
  font-size: clamp(1.85rem, 2vw, 2.25rem);
  font-weight: 950;
  line-height: 1.1;
}

body[data-epso-theme="civic-premium"] .results-review > p {
  margin: -0.55rem 0 0;
  color: #5d6d82;
  font-size: 1.38rem;
  line-height: 1.42;
}

body[data-epso-theme="civic-premium"] .results-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body[data-epso-theme="civic-premium"] .results-review-item {
  gap: 0.9rem;
  padding: 1.2rem;
  border: 0.1rem solid rgba(214, 224, 237, 0.88);
  border-radius: 1.6rem;
  background: #ffffff;
  box-shadow: 0 1rem 2.6rem rgba(20, 42, 72, 0.06);
}

body[data-epso-theme="civic-premium"] .results-review-head strong {
  color: #102033;
  font-size: 1.4rem;
  font-weight: 950;
}

body[data-epso-theme="civic-premium"] .results-review-status {
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

body[data-epso-theme="civic-premium"] .results-review-status.correct {
  background: rgba(35, 138, 121, 0.12);
  color: #17685e;
}

body[data-epso-theme="civic-premium"] .results-review-status.incorrect {
  background: rgba(233, 133, 107, 0.14);
  color: #a3452c;
}

body[data-epso-theme="civic-premium"] .results-review-status.unanswered,
body[data-epso-theme="civic-premium"] .results-review-status.manual {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

body[data-epso-theme="civic-premium"] .results-review-prompt {
  color: #17243a;
  font-size: 1.36rem;
  font-weight: 750;
  line-height: 1.42;
}

body[data-epso-theme="civic-premium"] .results-review-answer {
  display: grid;
  gap: 0.28rem;
  padding: 0.8rem 0.9rem;
  border: 0.1rem solid rgba(226, 232, 240, 0.88);
  border-radius: 1.15rem;
  background: #f8fafc;
}

body[data-epso-theme="civic-premium"] .results-review-answer span {
  color: #738197;
  font-size: 1.02rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

body[data-epso-theme="civic-premium"] .results-review-answer strong {
  color: #102033;
  font-size: 1.28rem;
  font-weight: 850;
  line-height: 1.32;
}

body[data-epso-theme="civic-premium"] .results-review-answer.correct-answer {
  border-color: rgba(35, 138, 121, 0.16);
  background: rgba(35, 138, 121, 0.06);
}

body[data-epso-theme="civic-premium"] .results-review-explanation {
  max-height: 14rem;
  padding: 1rem;
  border-color: rgba(236, 166, 77, 0.22);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 248, 235, 0.9), rgba(255, 255, 255, 0.94));
  color: #56657a;
  font-size: 1.28rem;
  line-height: 1.48;
}

body[data-epso-theme="civic-premium"] .results-review-explanation.abstract-rule-list {
  max-height: none;
  overflow: visible;
}

body[data-epso-theme="civic-premium"] .results-offer-claim-bar {
  margin: 0 1.7rem 1.7rem;
  padding: 1.15rem 1.2rem;
  border: 0.1rem solid rgba(236, 166, 77, 0.32);
  border-radius: 1.8rem;
  background:
    linear-gradient(135deg, rgba(255, 248, 235, 0.98), rgba(255, 255, 255, 0.98)),
    #ffffff;
  box-shadow:
    0 1.6rem 3.8rem rgba(123, 89, 24, 0.12),
    0 0.1rem 0 rgba(255, 255, 255, 0.92) inset;
}

body[data-epso-theme="civic-premium"] .results-offer-claim-copy strong {
  color: #102033;
  font-size: 1.5rem;
}

body[data-epso-theme="civic-premium"] .results-offer-claim-copy span {
  color: #6b5a36;
  font-size: 1.2rem;
}

body[data-epso-theme="civic-premium"] .results-offer-claim-cta {
  min-height: 4.8rem;
  border-radius: 1.35rem;
  background: linear-gradient(135deg, #f5d983 0%, #d0a142 100%);
  box-shadow: 0 1.2rem 2.8rem rgba(123, 89, 24, 0.22);
}

@media (max-width: 860px) {
  body[data-epso-theme="civic-premium"] .results-card {
    width: min(68rem, 100%);
  }

  body[data-epso-theme="civic-premium"] .results-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hero"
      "bars"
      "actions"
      "review";
  }

  body[data-epso-theme="civic-premium"] .results-hero {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 18rem;
  }

  body[data-epso-theme="civic-premium"] .results-score-ring {
    width: 14rem;
    height: 14rem;
  }

  body[data-epso-theme="civic-premium"] .results-bars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-epso-theme="civic-premium"] .results-bar-card {
    min-height: 8.8rem;
  }
}

@media (max-width: 620px) {
  body[data-epso-theme="civic-premium"] .results-overlay {
    align-items: flex-end;
    padding: 0;
  }

  body[data-epso-theme="civic-premium"] .results-card {
    width: 100%;
    max-height: 94dvh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 2.6rem 2.6rem 0 0;
  }

  body[data-epso-theme="civic-premium"] .results-card::after {
    inset: 0.55rem;
    border-radius: 2.1rem 2.1rem 0 0;
  }

  body[data-epso-theme="civic-premium"] .results-overlay.open .results-card {
    animation-name: resultsReportSheetEnter;
  }

  body[data-epso-theme="civic-premium"] .results-header {
    min-height: 6.4rem;
    padding: 1.25rem 1.2rem 0.85rem 1.35rem;
  }

  body[data-epso-theme="civic-premium"] .results-header::before {
    width: 4rem;
    height: 4rem;
    border-radius: 1.2rem;
  }

  body[data-epso-theme="civic-premium"] .results-header::after {
    left: 3.15rem;
    top: 2.58rem;
  }

  body[data-epso-theme="civic-premium"] .results-body {
    gap: 0.9rem;
    padding: 0 1rem 1rem;
  }

  body[data-epso-theme="civic-premium"] .results-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    min-height: 31rem;
    padding: 1.15rem;
    border-radius: 2rem;
  }

  body[data-epso-theme="civic-premium"] .results-score-ring {
    width: 13rem;
    height: 13rem;
  }

  body[data-epso-theme="civic-premium"] .results-score-center span {
    font-size: 3.1rem;
  }

  body[data-epso-theme="civic-premium"] .results-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
  }

  body[data-epso-theme="civic-premium"] .results-summary-row,
  body[data-epso-theme="civic-premium"] .results-precision-card {
    min-height: 6.4rem;
  }

  body[data-epso-theme="civic-premium"] .results-bars,
  body[data-epso-theme="civic-premium"] .results-next-actions,
  body[data-epso-theme="civic-premium"] .results-review-list,
  body[data-epso-theme="civic-premium"] .results-offer-claim-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-epso-theme="civic-premium"] .results-bar-card {
    min-height: 7.8rem;
    padding: 1rem 1.1rem;
    border-radius: 1.55rem;
  }

  body[data-epso-theme="civic-premium"] .results-bar-label {
    margin-bottom: 0.8rem;
  }

  body[data-epso-theme="civic-premium"] .results-bar-label strong {
    font-size: 2.1rem;
  }

  body[data-epso-theme="civic-premium"] .results-review {
    padding: 1rem;
    border-radius: 1.7rem;
  }

  body[data-epso-theme="civic-premium"] .results-offer-claim-bar {
    margin: 0 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    text-align: center;
  }

  body[data-epso-theme="civic-premium"] .results-offer-claim-cta {
    width: 100%;
  }
}

@media (max-height: 720px) and (min-width: 861px) {
  body[data-epso-theme="civic-premium"] .results-card {
    max-height: calc(100dvh - 1.6rem);
  }

  body[data-epso-theme="civic-premium"] .results-body {
    grid-template-columns: minmax(24rem, 0.72fr) minmax(32rem, 1fr);
    gap: 0.95rem;
  }

  body[data-epso-theme="civic-premium"] .results-score-ring {
    width: 14.4rem;
    height: 14.4rem;
  }

  body[data-epso-theme="civic-premium"] .results-bar-card {
    min-height: 8.6rem;
  }

  body[data-epso-theme="civic-premium"] .results-review-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-epso-theme="civic-premium"] .results-score-ring::before {
    animation: none !important;
  }
}

@keyframes resultsReportEnter {
  from {
    opacity: 0;
    transform: translateY(2rem) scale(0.965);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes resultsReportSheetEnter {
  from {
    opacity: 0;
    transform: translateY(3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

body.duel-bot-enabled .test-content-columns.has-duel-bot,
body.ursula-bot-enabled .test-content-columns.has-ursula-bot-duel {
  align-items: flex-start;
  gap: clamp(1.2rem, 2vw, 2rem);
  justify-content: center;
  padding-inline: 1rem;
}

body.duel-bot-enabled .test-content-columns.has-duel-bot .qti-item-container,
body.ursula-bot-enabled .test-content-columns.has-ursula-bot-duel .qti-item-container {
  flex: 1 1 min(112rem, 100%);
  min-width: 0;
}

body.duel-bot-speech-layout .duel-bot-duel[data-layout="speech-only"],
body.duel-bot-speech-layout .ursula-bot-duel[data-layout="speech-only"] {
  position: fixed;
  top: auto;
  align-self: auto;
  flex: none;
}

.duel-bot-duel,
.ursula-bot-duel {
  --duel-accent: #1f5b9d;
  --duel-win: #1f7a4d;
  --duel-lose: #b24a55;
  --duel-neutral: #c6a354;
  --duel-state: var(--duel-accent);
  --duel-avatar-size: clamp(15.8rem, 15vw, 18.8rem);
  --duel-avatar-x: 50%;
  --duel-avatar-y: 50%;
  --duel-avatar-zoom: 1.1;
  --duel-avatar-shift-x: 0;
  --duel-avatar-shift-y: 0;
  flex: 0 0 clamp(29rem, 24vw, 34rem);
  width: clamp(29rem, 24vw, 34rem);
  position: sticky;
  top: calc(var(--testrunner-header-height) + 1rem);
  align-self: flex-start;
  z-index: 5;
  contain: layout paint;
  animation: duelEnter 320ms ease-out both;
}

.duel-bot-duel[data-outcome="student-wins"],
.ursula-bot-duel[data-outcome="student-wins"] {
  --duel-state: var(--duel-win);
}

.duel-bot-duel[data-outcome="bot-wins"],
.ursula-bot-duel[data-outcome="bot-wins"] {
  --duel-state: var(--duel-lose);
}

.duel-bot-duel[data-outcome="both-correct"],
.duel-bot-duel[data-outcome="both-missed"],
.ursula-bot-duel[data-outcome="both-correct"],
.ursula-bot-duel[data-outcome="both-missed"] {
  --duel-state: var(--duel-neutral);
}

.duel-bot-card,
.ursula-bot-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  min-width: 0;
  overflow: visible;
  padding: 0.35rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--color-text-default);
}

.duel-bot-card::before,
.ursula-bot-card::before {
  content: none;
}

.duel-bot-card::after,
.ursula-bot-card::after {
  content: none;
}

.duel-bot-accent {
  position: absolute;
  top: 0.2rem;
  left: 0.15rem;
  width: 0.48rem;
  height: 7rem;
  border-radius: 999rem;
  background:
    linear-gradient(180deg, var(--duel-state), color-mix(in srgb, var(--duel-state) 38%, transparent));
  box-shadow: 0 0 2rem color-mix(in srgb, var(--duel-state) 24%, transparent);
}

.duel-bot-head,
.ursula-bot-head {
  position: relative;
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  text-align: center;
}

.duel-bot-kicker,
.ursula-bot-kicker,
.duel-bot-status span,
.ursula-bot-status span,
.duel-bot-answers span,
.ursula-bot-answers span,
.duel-bot-media figcaption,
.ursula-bot-media figcaption,
.duel-bot-results-head span,
.ursula-bot-results-head span,
.duel-bot-results-row span,
.ursula-bot-results-row span {
  color: #526274;
  font-family: "Nunito Sans", "Source Sans Pro", Arial, sans-serif;
  font-size: 1.2rem;
  line-height: 1.35;
}

.duel-bot-kicker,
.ursula-bot-kicker {
  color: var(--duel-neutral);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.duel-bot-head h3,
.ursula-bot-head h3 {
  margin: 0;
  color: #18283a;
  font-size: 1.75rem;
  line-height: 1.12;
}

.duel-bot-score,
.ursula-bot-score,
.duel-bot-answers,
.ursula-bot-answers,
.duel-bot-results-head,
.ursula-bot-results-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
}

.duel-bot-score-card,
.ursula-bot-score div,
.duel-bot-answer-chip,
.ursula-bot-answers div {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem;
  border: 0.1rem solid rgba(39, 62, 87, 0.11);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0.45rem 1.2rem rgba(18, 32, 50, 0.055),
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.82);
}

.duel-bot-score-card.is-scoring {
  border-color: color-mix(in srgb, var(--duel-state) 38%, transparent);
  background: color-mix(in srgb, var(--duel-state) 8%, #ffffff);
}

.duel-bot-score strong,
.ursula-bot-score strong {
  color: #18283a;
  font-size: 2.15rem;
  line-height: 1;
}

.duel-bot-score-card.is-scoring strong {
  animation: duelScorePop 540ms ease-out both;
}

.duel-bot-score-separator,
.ursula-bot-score-separator {
  color: var(--duel-neutral);
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.duel-bot-chat-body,
.ursula-bot-chat-body {
  position: relative;
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  justify-items: center;
}

.duel-bot-media,
.ursula-bot-media {
  position: relative;
  min-width: 0;
  width: min(var(--duel-avatar-size), 100%);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  isolation: isolate;
}

.duel-bot-media::before,
.duel-bot-media::after,
.ursula-bot-media::before,
.ursula-bot-media::after {
  content: "";
  position: absolute;
  top: calc(var(--duel-avatar-size) * -0.025);
  left: 50%;
  width: calc(var(--duel-avatar-size) * 1.05);
  height: calc(var(--duel-avatar-size) * 1.05);
  border-radius: 50%;
  pointer-events: none;
  transform: translateX(-50%);
}

.duel-bot-avatar,
.ursula-bot-avatar {
  position: relative;
  z-index: 1;
  display: block;
  width: min(var(--duel-avatar-size), 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border: 0.22rem solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: #edf2f7;
  box-shadow:
    0 0.9rem 2.2rem rgba(18, 32, 50, 0.17),
    0 0 0 0.1rem color-mix(in srgb, var(--duel-state) 26%, transparent),
    inset 0 0 0 0.1rem rgba(255, 255, 255, 0.45);
}

.duel-bot-media::before,
.ursula-bot-media::before {
  z-index: 0;
  background:
    conic-gradient(
      from 215deg,
      color-mix(in srgb, var(--duel-state) 86%, #ffffff) 0 18%,
      rgba(255, 255, 255, 0.7) 18% 28%,
      color-mix(in srgb, var(--duel-neutral) 72%, #ffffff) 28% 46%,
      rgba(255, 255, 255, 0.5) 46% 60%,
      color-mix(in srgb, var(--duel-state) 76%, transparent) 60% 100%
    );
  filter: drop-shadow(0 1.2rem 2.2rem color-mix(in srgb, var(--duel-state) 21%, transparent));
}

.duel-bot-media::after,
.ursula-bot-media::after {
  z-index: 2;
  border: 0.1rem solid rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 0 0 0.1rem rgba(255, 255, 255, 0.58),
    inset 0 -1.2rem 2rem rgba(13, 34, 72, 0.12),
    0 0 0 0.45rem rgba(255, 255, 255, 0.72);
}

.duel-bot-media img,
.ursula-bot-media img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--duel-avatar-x) var(--duel-avatar-y);
  transform: translate(var(--duel-avatar-shift-x), var(--duel-avatar-shift-y)) scale(var(--duel-avatar-zoom));
  transform-origin: var(--duel-avatar-x) var(--duel-avatar-y);
}

.duel-bot-avatar-fallback {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.72), transparent 0 20%, transparent 21%),
    linear-gradient(145deg, color-mix(in srgb, var(--duel-accent) 22%, #ffffff), color-mix(in srgb, var(--duel-neutral) 24%, #ffffff));
  color: color-mix(in srgb, var(--duel-accent) 78%, #18283a);
  font-family: "Nunito Sans", "Source Sans Pro", Arial, sans-serif;
  font-size: clamp(4.2rem, 6vw, 6.4rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.duel-bot-duel[data-image="idle"] .duel-bot-media img,
.duel-bot-duel[data-image="challenge"] .duel-bot-media img,
.ursula-bot-duel[data-image="idle"] .ursula-bot-media img,
.ursula-bot-duel[data-image="challenge"] .ursula-bot-media img {
  --duel-avatar-x: 70%;
  --duel-avatar-y: 46%;
  --duel-avatar-zoom: 1.18;
  --duel-avatar-shift-y: 0.75rem;
}

.duel-bot-duel[data-image="winning"] .duel-bot-media img,
.ursula-bot-duel[data-image="winning"] .ursula-bot-media img {
  --duel-avatar-x: 72%;
  --duel-avatar-y: 49%;
  --duel-avatar-zoom: 1.14;
}

.duel-bot-duel[data-image="answering"] .duel-bot-media img,
.ursula-bot-duel[data-image="answering"] .ursula-bot-media img {
  --duel-avatar-x: 52%;
  --duel-avatar-y: 50%;
  --duel-avatar-zoom: 1.12;
  --duel-avatar-shift-y: 0.6rem;
}

.duel-bot-duel[data-image="losing"] .duel-bot-media img,
.ursula-bot-duel[data-image="losing"] .ursula-bot-media img {
  --duel-avatar-x: 53%;
  --duel-avatar-y: 50%;
  --duel-avatar-zoom: 1.13;
  --duel-avatar-shift-y: 0.35rem;
}

.duel-bot-duel[data-bot-profile="paloma"] .duel-bot-media img {
  --duel-avatar-x: 50%;
  --duel-avatar-y: 42%;
  --duel-avatar-zoom: 1.42;
  --duel-avatar-shift-y: 0.1rem;
}

.duel-bot-duel[data-phase="thinking"] .duel-bot-media::before,
.ursula-bot-duel[data-phase="thinking"] .ursula-bot-media::before {
  animation: duelAvatarSweep 1.25s linear infinite;
}

.duel-bot-duel[data-phase="thinking"] .duel-bot-avatar,
.ursula-bot-duel[data-phase="thinking"] .ursula-bot-avatar {
  animation: duelMediaFocus 1.4s ease-in-out infinite;
}

.duel-bot-duel[data-phase="bot-answered"] .duel-bot-media,
.ursula-bot-duel[data-phase="bot-answered"] .ursula-bot-media {
  animation: duelAvatarLock 440ms ease-out both;
}

.duel-bot-duel[data-phase="revealed"] .duel-bot-media::after,
.ursula-bot-duel[data-phase="revealed"] .ursula-bot-media::after {
  animation: duelAvatarReveal 720ms ease-out both;
}

.duel-bot-media figcaption,
.ursula-bot-media figcaption {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: 0.15rem;
  text-align: center;
}

.duel-bot-status,
.ursula-bot-status {
  position: relative;
  display: grid;
  gap: 0.35rem;
  overflow: visible;
  width: min(100%, 31rem);
  padding: 1rem 1.1rem;
  border: 0.1rem solid color-mix(in srgb, var(--duel-state) 22%, transparent);
  border-radius: 1.55rem 1.55rem 1.55rem 0.72rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 252, 255, 0.98)),
    color-mix(in srgb, var(--duel-state) 5%, #ffffff);
  box-shadow:
    0 1.3rem 2.8rem rgba(18, 32, 50, 0.13),
    0 0.35rem 0.95rem color-mix(in srgb, var(--duel-state) 10%, transparent),
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.88);
  text-align: left;
  animation: duelBubblePop 340ms ease-out both;
}

.duel-bot-bubble::before,
.ursula-bot-bubble::before {
  content: "";
  position: absolute;
  top: -0.62rem;
  left: 4.6rem;
  width: 1.45rem;
  height: 1.45rem;
  border-top: 0.1rem solid color-mix(in srgb, var(--duel-state) 22%, transparent);
  border-left: 0.1rem solid color-mix(in srgb, var(--duel-state) 22%, transparent);
  background: #ffffff;
  transform: rotate(45deg);
  z-index: -1;
}

.duel-bot-progress {
  position: absolute;
  inset: 0 auto 0 0.2rem;
  width: 34%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--duel-state) 18%, transparent), transparent);
  transform: translateX(-120%);
  border-radius: inherit;
}

.duel-bot-duel[data-phase="thinking"] .duel-bot-progress,
.ursula-bot-duel[data-phase="thinking"] .duel-bot-progress {
  opacity: 1;
  animation: duelThinkingSweep 1.15s ease-in-out infinite;
}

.duel-bot-status strong,
.ursula-bot-status strong {
  position: relative;
  color: #18283a;
  font-size: 1.42rem;
  line-height: 1.28;
}

.duel-bot-status-note {
  position: relative;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.1rem;
  padding: 0.24rem 0.55rem;
  overflow: hidden;
  border-radius: 999rem;
  background: color-mix(in srgb, var(--duel-state) 9%, #ffffff);
  color: color-mix(in srgb, var(--duel-state) 70%, #24364a);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duel-bot-typing,
.ursula-bot-typing {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  width: fit-content;
  height: 1.2rem;
}

.duel-bot-typing span,
.ursula-bot-typing span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--duel-state);
  opacity: 0.42;
  animation: duelTypingDot 900ms ease-in-out infinite;
}

.duel-bot-typing span:nth-child(2),
.ursula-bot-typing span:nth-child(2) {
  animation-delay: 120ms;
}

.duel-bot-typing span:nth-child(3),
.ursula-bot-typing span:nth-child(3) {
  animation-delay: 240ms;
}

.duel-bot-answers,
.ursula-bot-answers {
  grid-template-columns: minmax(0, 1fr);
}

.duel-bot-answers strong,
.ursula-bot-answers strong,
.duel-bot-results-row strong,
.ursula-bot-results-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #18283a;
  font-size: 1.25rem;
  line-height: 1.3;
}

.duel-bot-answer-chip.is-correct {
  border-color: color-mix(in srgb, var(--duel-win) 36%, transparent);
  background: color-mix(in srgb, var(--duel-win) 8%, #ffffff);
}

.duel-bot-answer-chip.is-incorrect {
  border-color: color-mix(in srgb, var(--duel-lose) 36%, transparent);
  background: color-mix(in srgb, var(--duel-lose) 7%, #ffffff);
}

.duel-bot-duel[data-phase="bot-answered"] .duel-bot-answer-chip.is-bot,
.ursula-bot-duel[data-phase="bot-answered"] .duel-bot-answer-chip.is-bot {
  animation: duelAnswerLock 420ms ease-out both;
}

.duel-bot-duel[data-phase="revealed"] .duel-bot-bubble,
.ursula-bot-duel[data-phase="revealed"] .ursula-bot-bubble {
  animation: duelRevealFlash 760ms ease-out both;
}

.training-feedback.duel-bot-waiting,
.training-feedback.ursula-bot-waiting {
  border-color: color-mix(in srgb, var(--duel-neutral, #c6a354) 42%, transparent);
  background: #fffaf0;
}

body.duel-bot-enabled .choice .container,
body.ursula-bot-enabled .choice .container {
  position: relative;
}

.duel-bot-choice-marker-stack {
  position: absolute;
  top: 0.42rem;
  right: 0.46rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}

.duel-bot-choice-marker {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  overflow: hidden;
  border: 0.16rem solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: #16283b;
  box-shadow:
    0 0.35rem 0.8rem rgba(18, 32, 50, 0.2),
    0 0 0 0.1rem rgba(24, 40, 58, 0.08);
  color: #ffffff;
  font-family: "Nunito Sans", "Source Sans Pro", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1;
  animation: duelMarkerDrop 360ms ease-out both;
}

.duel-bot-choice-marker + .duel-bot-choice-marker {
  margin-left: -0.86rem;
}

.duel-bot-choice-marker.is-bot {
  background: var(--duel-accent, #1f5b9d);
}

.duel-bot-choice-marker.is-student {
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.34), transparent 34%),
    #18283a;
}

.duel-bot-choice-marker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 48%;
  transform: scale(1.18);
}

.duel-bot-choice-marker.is-correct {
  box-shadow:
    0 0.35rem 0.8rem rgba(18, 32, 50, 0.18),
    0 0 0 0.18rem color-mix(in srgb, var(--duel-win, #1f7a4d) 62%, transparent);
}

.duel-bot-choice-marker.is-incorrect {
  box-shadow:
    0 0.35rem 0.8rem rgba(18, 32, 50, 0.18),
    0 0 0 0.18rem color-mix(in srgb, var(--duel-lose, #b24a55) 62%, transparent);
}

.choice.duel-bot-choice-bot:not(.duel-bot-choice-user) .container {
  border-color: color-mix(in srgb, var(--duel-accent, #1f5b9d) 28%, transparent);
}

.choice.duel-bot-choice-both .duel-bot-choice-marker-stack {
  right: 0.62rem;
}

.duel-bot-results,
.ursula-bot-results {
  --duel-accent: #1f5b9d;
  --duel-win: #1f7a4d;
  --duel-lose: #b24a55;
  --duel-neutral: #c6a354;
  display: grid;
  gap: 1.2rem;
  margin: 2rem 0;
  padding: 1.6rem;
  border: 0.1rem solid rgba(31, 91, 157, 0.18);
  border-radius: 0.8rem;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 1rem 2.4rem rgba(18, 32, 50, 0.08);
}

.duel-bot-results-head,
.ursula-bot-results-head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.duel-bot-results-head h3,
.ursula-bot-results-head h3,
.duel-bot-results h4,
.ursula-bot-results h4 {
  margin: 0;
  color: #18283a;
}

.duel-bot-results-score,
.ursula-bot-results-score {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.95rem;
  border-radius: 0.7rem;
  background: #f2f6fb;
  color: #18283a;
  font-weight: 900;
}

.duel-bot-results-bars {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
}

.duel-bot-results-bars span {
  display: block;
  min-width: 0.4rem;
  height: 0.55rem;
  border-radius: 999rem;
}

.duel-bot-results-bars span:first-child {
  background: var(--duel-win);
}

.duel-bot-results-bars span:last-child {
  background: var(--duel-accent);
}

.duel-bot-results-list,
.ursula-bot-results-list {
  display: grid;
  gap: 0.7rem;
}

.duel-bot-results-row,
.ursula-bot-results-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem;
  border-radius: 0.65rem;
  background: #f8fafc;
}

.duel-bot-results-row[data-user="correct"] {
  border-left: 0.3rem solid var(--duel-win);
}

.duel-bot-results-row[data-user="incorrect"] {
  border-left: 0.3rem solid var(--duel-lose);
}

.duel-bot-results-more,
.ursula-bot-results-more {
  margin: 0;
  color: #526274;
  font-weight: 800;
}

@keyframes duelEnter {
  from {
    opacity: 0;
    transform: translateY(0.8rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes duelThinkingSweep {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(320%);
  }
}

@keyframes duelAnswerLock {
  from {
    opacity: 0.62;
    transform: translateY(0.45rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes duelBubblePop {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes duelSpeechBubbleIn {
  from {
    opacity: 0.72;
    transform: translateY(0.34rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes duelSpeechCaret {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

@keyframes duelTypingDot {
  0%,
  100% {
    opacity: 0.34;
    transform: translateY(0);
  }
  42% {
    opacity: 1;
    transform: translateY(-0.18rem);
  }
}

@keyframes duelMarkerDrop {
  from {
    opacity: 0;
    transform: translateY(-0.35rem) scale(0.84);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes duelAvatarSweep {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

@keyframes duelAvatarLock {
  0% {
    transform: scale(0.985);
  }
  54% {
    transform: scale(1.035);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes duelAvatarReveal {
  0% {
    box-shadow:
      inset 0 0 0 0.1rem rgba(255, 255, 255, 0.58),
      inset 0 -1.2rem 2rem rgba(13, 34, 72, 0.12),
      0 0 0 0.45rem rgba(255, 255, 255, 0.72);
  }
  46% {
    box-shadow:
      inset 0 0 0 0.1rem rgba(255, 255, 255, 0.72),
      inset 0 -1.2rem 2rem rgba(13, 34, 72, 0.12),
      0 0 0 0.7rem color-mix(in srgb, var(--duel-state) 24%, transparent);
  }
  100% {
    box-shadow:
      inset 0 0 0 0.1rem rgba(255, 255, 255, 0.58),
      inset 0 -1.2rem 2rem rgba(13, 34, 72, 0.12),
      0 0 0 0.45rem rgba(255, 255, 255, 0.72);
  }
}

@keyframes duelRevealFlash {
  0% {
    border-color: color-mix(in srgb, var(--duel-state) 48%, transparent);
    box-shadow:
      0 1.3rem 2.8rem rgba(18, 32, 50, 0.13),
      0 0.35rem 0.95rem color-mix(in srgb, var(--duel-state) 10%, transparent),
      inset 0 0.1rem 0 rgba(255, 255, 255, 0.88);
  }
  44% {
    border-color: color-mix(in srgb, var(--duel-state) 76%, transparent);
    box-shadow:
      0 1.6rem 3.2rem color-mix(in srgb, var(--duel-state) 18%, rgba(18, 32, 50, 0.12)),
      0 0 0 0.18rem color-mix(in srgb, var(--duel-state) 28%, transparent),
      inset 0 0.1rem 0 rgba(255, 255, 255, 0.88);
  }
  100% {
    border-color: color-mix(in srgb, var(--duel-state) 22%, transparent);
    box-shadow:
      0 1.3rem 2.8rem rgba(18, 32, 50, 0.13),
      0 0.35rem 0.95rem color-mix(in srgb, var(--duel-state) 10%, transparent),
      inset 0 0.1rem 0 rgba(255, 255, 255, 0.88);
  }
}

@keyframes duelScorePop {
  0%,
  100% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.16);
  }
}

@keyframes duelMediaFocus {
  0%,
  100% {
    transform: scale(1);
    filter: saturate(1);
  }
  50% {
    transform: scale(1.018);
    filter: saturate(1.08);
  }
}

@media (max-width: 1180px) {
  body.duel-bot-enabled .test-content-columns.has-duel-bot,
  body.ursula-bot-enabled .test-content-columns.has-ursula-bot-duel {
    flex-direction: column;
    align-items: center;
  }

  .duel-bot-duel,
  .ursula-bot-duel {
    --duel-avatar-size: clamp(12.8rem, 18vw, 15.5rem);
    width: min(92vw, 86rem);
    position: relative;
    top: auto;
    order: 2;
  }

  .duel-bot-card,
  .ursula-bot-card {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem);
    align-items: center;
  }

  .duel-bot-head,
  .ursula-bot-head,
  .duel-bot-score,
  .ursula-bot-score,
  .duel-bot-status,
  .ursula-bot-status,
  .duel-bot-answers,
  .ursula-bot-answers {
    grid-column: 1;
  }

  .duel-bot-media,
  .ursula-bot-media {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
  }

  .duel-bot-chat,
  .ursula-bot-chat {
    grid-template-columns: minmax(0, 1fr);
  }

  .duel-bot-chat .duel-bot-head,
  .duel-bot-chat .duel-bot-score,
  .duel-bot-chat .duel-bot-chat-body,
  .duel-bot-chat .duel-bot-answers,
  .ursula-bot-chat .ursula-bot-head,
  .ursula-bot-chat .ursula-bot-score,
  .ursula-bot-chat .ursula-bot-chat-body,
  .ursula-bot-chat .ursula-bot-answers {
    grid-column: 1 / -1;
  }

  .duel-bot-chat .duel-bot-chat-body,
  .ursula-bot-chat .ursula-bot-chat-body {
    grid-template-columns: minmax(10.5rem, var(--duel-avatar-size)) minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
  }

  .duel-bot-chat .duel-bot-media,
  .ursula-bot-chat .ursula-bot-media {
    grid-column: 1;
    grid-row: auto;
    align-self: center;
  }

  .duel-bot-chat .duel-bot-status,
  .ursula-bot-chat .ursula-bot-status {
    grid-column: 2;
    width: 100%;
  }

  .duel-bot-chat .duel-bot-bubble::before,
  .ursula-bot-chat .ursula-bot-bubble::before {
    top: 2.2rem;
    left: -0.62rem;
    border-top: 0;
    border-right: 0;
    border-bottom: 0.1rem solid color-mix(in srgb, var(--duel-state) 22%, transparent);
    border-left: 0.1rem solid color-mix(in srgb, var(--duel-state) 22%, transparent);
  }
}

@media (max-width: 720px) {
  body.duel-bot-enabled main,
  body.ursula-bot-enabled main {
    padding-bottom: 20rem;
  }

  .duel-bot-duel,
  .ursula-bot-duel {
    --duel-avatar-size: 6.6rem;
    position: fixed;
    left: 0.8rem;
    right: 10.8rem;
    bottom: calc(var(--duel-bot-visual-offset, var(--ursula-bot-visual-offset, 0px)) + var(--testrunner-footer-height) + 1rem);
    width: auto;
    z-index: 70;
  }

  .duel-bot-card,
  .ursula-bot-card {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.85rem;
    max-height: 13.2rem;
    overflow: auto;
    border-radius: 0.8rem;
  }

  .duel-bot-chat,
  .ursula-bot-chat {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .duel-bot-chat .duel-bot-head,
  .ursula-bot-chat .ursula-bot-head {
    display: none;
  }

  .duel-bot-media,
  .ursula-bot-media {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .duel-bot-media figcaption,
  .ursula-bot-media figcaption,
  .duel-bot-disclaimer,
  .ursula-bot-disclaimer,
  .duel-bot-kicker,
  .ursula-bot-kicker {
    display: none;
  }

  .duel-bot-head,
  .ursula-bot-head,
  .duel-bot-score,
  .ursula-bot-score,
  .duel-bot-status,
  .ursula-bot-status,
  .duel-bot-answers,
  .ursula-bot-answers {
    grid-column: 2;
  }

  .duel-bot-chat .duel-bot-score,
  .ursula-bot-chat .ursula-bot-score,
  .duel-bot-chat .duel-bot-chat-body,
  .ursula-bot-chat .ursula-bot-chat-body {
    grid-column: 1 / -1;
  }

  .duel-bot-chat .duel-bot-chat-body,
  .ursula-bot-chat .ursula-bot-chat-body {
    grid-template-columns: 5.9rem minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    gap: 0.65rem;
  }

  .duel-bot-chat .duel-bot-media,
  .ursula-bot-chat .ursula-bot-media {
    grid-column: 1;
    grid-row: auto;
    align-self: center;
  }

  .duel-bot-chat .duel-bot-status,
  .ursula-bot-chat .ursula-bot-status {
    grid-column: 2;
    width: 100%;
    padding: 0.7rem 0.82rem;
    border-radius: 1.15rem 1.15rem 1.15rem 0.48rem;
  }

  .duel-bot-chat .duel-bot-bubble::before,
  .ursula-bot-chat .ursula-bot-bubble::before {
    top: 1.35rem;
    left: -0.48rem;
    width: 1rem;
    height: 1rem;
  }

  .duel-bot-head h3,
  .ursula-bot-head h3 {
    font-size: 1.35rem;
    line-height: 1.05;
  }

  .duel-bot-score,
  .ursula-bot-score {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.45rem;
  }

  .duel-bot-score-card,
  .ursula-bot-score div,
  .duel-bot-answer-chip,
  .ursula-bot-answers div,
  .duel-bot-status,
  .ursula-bot-status {
    padding: 0.55rem;
  }

  .duel-bot-score strong,
  .ursula-bot-score strong {
    font-size: 1.75rem;
  }

  .duel-bot-score-card span,
  .ursula-bot-score div span,
  .duel-bot-status span,
  .ursula-bot-status span {
    font-size: 1.05rem;
  }

  .duel-bot-status strong,
  .ursula-bot-status strong {
    font-size: 1.2rem;
    line-height: 1.1;
  }

  .duel-bot-status-note,
  .ursula-bot-status-note {
    display: none;
  }

  .duel-bot-answers,
  .ursula-bot-answers {
    display: none;
  }

  .duel-bot-choice-marker-stack {
    top: 0.28rem;
    right: 0.3rem;
  }

  .duel-bot-choice-marker {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1rem;
  }

  .duel-bot-choice-marker + .duel-bot-choice-marker {
    margin-left: -0.7rem;
  }

  .duel-bot-results-row,
  .ursula-bot-results-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Compact duel bot redesign. */
.duel-bot-duel,
.ursula-bot-duel {
  --duel-avatar-size: clamp(5.4rem, 4.8vw, 6.4rem);
  flex-basis: clamp(30rem, 25vw, 36rem);
  width: clamp(30rem, 25vw, 36rem);
}

.duel-bot-card,
.ursula-bot-card {
  box-sizing: border-box;
  width: 100%;
  gap: 0.7rem;
  overflow: hidden;
  padding: 0.85rem;
  border: 0.1rem solid rgba(24, 40, 58, 0.1);
  border-radius: 0.8rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 253, 0.98)),
    color-mix(in srgb, var(--duel-state) 4%, #ffffff);
  box-shadow:
    0 1rem 2.6rem rgba(18, 32, 50, 0.1),
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.86);
}

.duel-bot-accent {
  inset: 0 0 auto;
  width: 100%;
  height: 0.32rem;
  border-radius: 0;
  background:
    linear-gradient(
      90deg,
      var(--duel-state),
      color-mix(in srgb, var(--duel-neutral) 72%, #ffffff),
      color-mix(in srgb, var(--duel-state) 44%, transparent)
    );
  box-shadow: 0 0.7rem 1.7rem color-mix(in srgb, var(--duel-state) 18%, transparent);
}

.duel-bot-head,
.ursula-bot-head {
  display: grid;
  grid-template-columns: var(--duel-avatar-size) minmax(0, 1fr);
  gap: 0.55rem 0.7rem;
  align-items: center;
  text-align: left;
}

.duel-bot-title-group {
  min-width: 0;
}

.duel-bot-kicker,
.ursula-bot-kicker {
  display: block;
  color: color-mix(in srgb, var(--duel-state) 72%, #526274);
  font-size: 1.02rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.duel-bot-head h3,
.ursula-bot-head h3 {
  overflow: hidden;
  color: #18283a;
  font-size: clamp(1.55rem, 1.7vw, 1.85rem);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duel-bot-head .duel-bot-media,
.ursula-bot-head .ursula-bot-media {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: var(--duel-avatar-size);
  margin: 0;
}

.duel-bot-media::before,
.duel-bot-media::after,
.ursula-bot-media::before,
.ursula-bot-media::after {
  top: 50%;
  width: calc(var(--duel-avatar-size) + 0.8rem);
  height: calc(var(--duel-avatar-size) + 0.8rem);
  transform: translate(-50%, -50%);
}

.duel-bot-media::before,
.ursula-bot-media::before {
  background:
    conic-gradient(
      from 215deg,
      color-mix(in srgb, var(--duel-state) 82%, #ffffff),
      rgba(255, 255, 255, 0.78),
      color-mix(in srgb, var(--duel-neutral) 72%, #ffffff),
      color-mix(in srgb, var(--duel-state) 82%, #ffffff)
    );
  filter: none;
}

.duel-bot-media::after,
.ursula-bot-media::after {
  border: 0;
  box-shadow: inset 0 0 0 0.1rem rgba(255, 255, 255, 0.68);
}

.duel-bot-avatar,
.ursula-bot-avatar {
  border: 0.1rem solid rgba(255, 255, 255, 0.95);
  border-radius: 0.8rem;
  box-shadow:
    0 0.55rem 1.2rem rgba(18, 32, 50, 0.16),
    0 0 0 0.1rem color-mix(in srgb, var(--duel-state) 18%, transparent);
}

.duel-bot-avatar-fallback {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.duel-bot-media figcaption,
.ursula-bot-media figcaption {
  display: none;
}

.duel-bot-status,
.ursula-bot-status {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  width: 100%;
  min-width: 0;
  padding: 0.82rem 0.9rem;
  overflow: visible;
  border: 0.1rem solid color-mix(in srgb, var(--duel-state) 18%, rgba(24, 40, 58, 0.1));
  border-radius: 0.82rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 255, 0.98)),
    color-mix(in srgb, var(--duel-state) 6%, #ffffff);
  box-shadow:
    0 0.55rem 1.45rem rgba(18, 32, 50, 0.08),
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.9);
  text-align: left;
}

.duel-bot-status::before,
.ursula-bot-status::before {
  content: "";
  flex: 0 0 0.42rem;
  align-self: stretch;
  width: 0.42rem;
  height: auto;
  min-height: 1.35rem;
  margin-top: 0;
  border-radius: 999rem;
  background: linear-gradient(180deg, var(--duel-state), color-mix(in srgb, var(--duel-state) 44%, #ffffff));
  box-shadow: 0 0.55rem 1.1rem color-mix(in srgb, var(--duel-state) 18%, transparent);
}

.duel-bot-bubble::before,
.ursula-bot-bubble::before {
  content: none;
}

.duel-bot-status strong,
.ursula-bot-status strong {
  min-width: 0;
  overflow: visible;
  color: #18283a;
  font-size: 1.05rem;
  line-height: 1.26;
  text-overflow: clip;
  white-space: normal;
}

.duel-bot-status-note,
.duel-bot-disclaimer,
.ursula-bot-disclaimer {
  display: none;
}

.duel-bot-typing,
.ursula-bot-typing {
  flex: 0 0 auto;
  height: 0.9rem;
}

.duel-bot-typing span,
.ursula-bot-typing span {
  width: 0.32rem;
  height: 0.32rem;
}

.duel-bot-score,
.ursula-bot-score {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.4rem;
  padding: 0.32rem;
  border: 0.1rem solid rgba(39, 62, 87, 0.08);
  border-radius: 0.8rem;
  background: rgba(239, 244, 249, 0.78);
}

.duel-bot-score-card,
.ursula-bot-score div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.58rem;
  border: 0;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.duel-bot-score strong,
.ursula-bot-score strong {
  font-size: 1.8rem;
}

.duel-bot-score-card span,
.ursula-bot-score div span,
.duel-bot-answer-chip span,
.ursula-bot-answers div span {
  min-width: 0;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duel-bot-score-separator,
.ursula-bot-score-separator {
  font-size: 0.95rem;
}

.duel-bot-answers,
.ursula-bot-answers {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.45rem;
}

.duel-bot-answer-chip,
.ursula-bot-answers div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.58rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.duel-bot-answers strong,
.ursula-bot-answers strong {
  display: grid;
  min-width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 0.52rem;
  background: #18283a;
  color: #ffffff;
  font-size: 1.12rem;
  line-height: 1;
}

.duel-bot-answer-chip.is-bot strong {
  background: var(--duel-accent);
}

.duel-bot-duel[data-bot-profile="arenilla"],
.ursula-bot-duel[data-bot-profile="arenilla"] {
  --duel-avatar-x: 50%;
  --duel-avatar-y: 50%;
  --duel-avatar-zoom: 1.55;
  --duel-avatar-shift-x: 0;
  --duel-avatar-shift-y: 0;
}

.duel-bot-duel[data-bot-profile="arenilla"] .duel-bot-media::before,
.duel-bot-duel[data-bot-profile="arenilla"] .duel-bot-media::after,
.ursula-bot-duel[data-bot-profile="arenilla"] .ursula-bot-media::before,
.ursula-bot-duel[data-bot-profile="arenilla"] .ursula-bot-media::after {
  content: none;
}

.duel-bot-duel[data-bot-profile="arenilla"] .duel-bot-avatar,
.ursula-bot-duel[data-bot-profile="arenilla"] .ursula-bot-avatar {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.duel-bot-duel[data-bot-profile="arenilla"] .duel-bot-media img,
.ursula-bot-duel[data-bot-profile="arenilla"] .ursula-bot-media img {
  object-fit: contain;
  object-position: center;
  transform: translate(var(--duel-avatar-shift-x), var(--duel-avatar-shift-y)) scale(var(--duel-avatar-zoom));
  filter: none;
}

.duel-bot-duel[data-layout="speech-only"][data-bot-profile="arenilla"] .duel-bot-media img,
.ursula-bot-duel[data-layout="speech-only"][data-bot-profile="arenilla"] .ursula-bot-media img {
  --duel-avatar-zoom: 1;
  --duel-avatar-shift-x: 0;
  --duel-avatar-shift-y: 0;
}

.duel-bot-duel[data-layout="speech-only"][data-bot-profile="arenilla"],
.ursula-bot-duel[data-layout="speech-only"][data-bot-profile="arenilla"] {
  --duel-avatar-size: clamp(18rem, 15vw, 23rem);
  --duel-avatar-zoom: 1;
  --duel-avatar-shift-y: 0;
}

.duel-bot-duel[data-layout="speech-only"],
.ursula-bot-duel[data-layout="speech-only"] {
  --duel-avatar-size: clamp(8.4rem, 7.4vw, 10rem);
  position: fixed;
  top: auto;
  right: clamp(8rem, 7vw, 8.8rem);
  bottom: calc(var(--duel-bot-visual-offset, var(--ursula-bot-visual-offset, 0px)) + 0.9rem);
  flex-basis: auto;
  width: min(50rem, calc(100vw - 8rem));
  pointer-events: none;
  z-index: 74;
}

.duel-bot-speech-only,
.ursula-bot-card.duel-bot-speech-only {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.9rem;
  width: 100%;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.duel-bot-speech-only .duel-bot-media,
.duel-bot-speech-only.ursula-bot-card .ursula-bot-media {
  order: 2;
  flex: 0 0 var(--duel-avatar-size);
  width: var(--duel-avatar-size);
  margin: 0;
  justify-self: auto;
}

.duel-bot-speech-only .duel-bot-media::before,
.duel-bot-speech-only .duel-bot-media::after,
.duel-bot-speech-only.ursula-bot-card .ursula-bot-media::before,
.duel-bot-speech-only.ursula-bot-card .ursula-bot-media::after {
  width: calc(var(--duel-avatar-size) + 0.7rem);
  height: calc(var(--duel-avatar-size) + 0.7rem);
}

.duel-bot-speech-only .duel-bot-avatar,
.duel-bot-speech-only.ursula-bot-card .ursula-bot-avatar {
  border: 0.14rem solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.82), transparent 32%),
    color-mix(in srgb, var(--duel-accent) 16%, #eef5f2);
  box-shadow:
    0 0.9rem 2rem rgba(18, 32, 50, 0.18),
    0 0 0 0.18rem rgba(255, 255, 255, 0.92),
    0 0 0 0.28rem color-mix(in srgb, var(--duel-state) 20%, transparent);
}

.duel-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only .duel-bot-avatar,
.ursula-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only.ursula-bot-card .ursula-bot-avatar {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.duel-bot-speech-only .duel-bot-avatar-fallback {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
}

.duel-bot-speech-only .duel-bot-status,
.duel-bot-speech-only.ursula-bot-card .ursula-bot-status {
  --duel-bubble-fill: #ffffff;
  --duel-bubble-line: color-mix(in srgb, var(--duel-state) 18%, #d8dee8);
  order: 1;
  position: relative;
  display: block;
  flex: 1 1 auto;
  width: auto;
  max-width: 38rem;
  padding: 1.16rem 1.34rem 1.12rem;
  overflow: visible;
  border: 0.11rem solid var(--duel-bubble-line);
  border-radius: 1.38rem 1.38rem 0.48rem 1.38rem;
  background: var(--duel-bubble-fill);
  box-shadow: none;
  text-align: left;
  transform-origin: calc(100% + 1rem) 78%;
}

.duel-bot-speech-only .duel-bot-status::before,
.duel-bot-speech-only.ursula-bot-card .ursula-bot-status::before {
  content: "";
  position: absolute;
  right: -1.08rem;
  bottom: 1.12rem;
  width: 1.28rem;
  height: 1.42rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--duel-bubble-line);
  clip-path: polygon(0 0, 100% 48%, 0 100%);
  filter: none;
  transform: none;
}

.duel-bot-speech-only .duel-bot-status::after,
.duel-bot-speech-only.ursula-bot-card .ursula-bot-status::after {
  content: "";
  position: absolute;
  right: -0.78rem;
  bottom: 1.24rem;
  width: 0.96rem;
  height: 1.16rem;
  margin: 0;
  border: 0;
  background: var(--duel-bubble-fill);
  clip-path: polygon(0 0, 100% 48%, 0 100%);
  transform: none;
}

.duel-bot-speech-only .duel-bot-status::before,
.duel-bot-speech-only .duel-bot-status::after,
.duel-bot-speech-only.ursula-bot-card .ursula-bot-status::before,
.duel-bot-speech-only.ursula-bot-card .ursula-bot-status::after {
  content: none;
}

.duel-bot-speech-only .duel-bot-status strong,
.duel-bot-speech-only.ursula-bot-card .ursula-bot-status strong {
  display: block;
  color: #18283a;
  font-size: clamp(1.72rem, 1.5vw, 1.94rem);
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
}

.duel-bot-speech-only .duel-bot-status.is-typing,
.duel-bot-speech-only.ursula-bot-card .ursula-bot-status.is-typing {
  animation: duelSpeechBubbleIn 220ms cubic-bezier(0.2, 0.9, 0.25, 1.1) both;
}

.duel-bot-speech-only .duel-bot-status.is-typing strong::after,
.duel-bot-speech-only.ursula-bot-card .ursula-bot-status.is-typing strong::after {
  content: "";
  display: inline-block;
  width: 0.11em;
  height: 0.92em;
  margin-left: 0.14em;
  border-radius: 999rem;
  background: var(--duel-state);
  vertical-align: -0.13em;
  animation: duelSpeechCaret 680ms steps(2, end) infinite;
}

@media (max-width: 1180px) {
  .duel-bot-duel,
  .ursula-bot-duel {
    --duel-avatar-size: 5.5rem;
    width: min(92vw, 58rem);
  }

  .duel-bot-card,
  .ursula-bot-card,
  .duel-bot-chat,
  .ursula-bot-chat {
    grid-template-columns: minmax(0, 1fr);
  }

  .duel-bot-head,
  .ursula-bot-head,
  .duel-bot-score,
  .ursula-bot-score,
  .duel-bot-answers,
  .ursula-bot-answers {
    grid-column: auto;
  }
}

@media (min-width: 901px) {
  .duel-bot-duel[data-layout="speech-only"],
  .ursula-bot-duel[data-layout="speech-only"] {
    --duel-avatar-size: clamp(10rem, 8vw, 12.5rem);
    right: clamp(7.8rem, 5.6vw, 9rem);
    bottom: calc(var(--duel-bot-visual-offset, var(--ursula-bot-visual-offset, 0px)) + 4rem);
    width: min(56rem, calc(100vw - 9.5rem));
  }

  .duel-bot-duel[data-layout="speech-only"][data-bot-profile="arenilla"],
  .ursula-bot-duel[data-layout="speech-only"][data-bot-profile="arenilla"] {
    --duel-avatar-size: clamp(15.8rem, 12vw, 19.5rem);
  }

  .duel-bot-speech-only,
  .ursula-bot-card.duel-bot-speech-only {
    gap: 0.9rem;
  }

  .duel-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only .duel-bot-media,
  .ursula-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only .ursula-bot-media {
    transform: translateY(3.75rem);
  }

  .duel-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only .duel-bot-media img,
  .ursula-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only .ursula-bot-media img {
    filter: drop-shadow(0 1.1rem 1rem rgba(18, 32, 50, 0.18));
  }

  .duel-bot-speech-only .duel-bot-status,
  .duel-bot-speech-only.ursula-bot-card .ursula-bot-status {
    --duel-bubble-fill: #fffdf8;
    --duel-bubble-line: color-mix(in srgb, var(--duel-state) 34%, #c6a354);
    flex: 0 1 auto;
    max-width: min(35rem, calc(100vw - var(--duel-avatar-size) - 13.5rem));
    padding: 1.18rem 1.36rem 1.16rem;
    border: 0.16rem solid var(--duel-bubble-line);
    border-radius: 1.85rem 1.85rem 0.62rem 1.85rem;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 251, 239, 0.98) 100%),
      var(--duel-bubble-fill);
    box-shadow:
      0 1.2rem 3rem rgba(18, 32, 50, 0.18),
      0 0.18rem 0.45rem rgba(18, 32, 50, 0.08),
      inset 0 0.1rem 0 rgba(255, 255, 255, 0.94);
  }

  .duel-bot-speech-only .duel-bot-status::before,
  .duel-bot-speech-only.ursula-bot-card .ursula-bot-status::before {
    right: -1.18rem;
    bottom: 1.34rem;
    width: 1.44rem;
    height: 1.62rem;
  }

  .duel-bot-speech-only .duel-bot-status::after,
  .duel-bot-speech-only.ursula-bot-card .ursula-bot-status::after {
    right: -0.82rem;
    bottom: 1.48rem;
    width: 1.04rem;
    height: 1.24rem;
  }

  .duel-bot-speech-only .duel-bot-status strong,
  .duel-bot-speech-only.ursula-bot-card .ursula-bot-status strong {
    color: #17263a;
    font-size: clamp(1.6rem, 1.18vw, 1.86rem);
    font-weight: 850;
    line-height: 1.27;
    text-wrap: pretty;
  }

  body.duel-bot-speech-layout.abstract-mode .qti-prompt {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  body.duel-bot-speech-layout main {
    padding-bottom: 18rem;
  }

  .duel-bot-duel[data-layout="speech-only"],
  .ursula-bot-duel[data-layout="speech-only"] {
    --duel-avatar-size: clamp(9.2rem, 15vw, 12rem);
    left: 1.2rem;
    right: 7.8rem;
    bottom: calc(
      var(--duel-bot-visual-offset, var(--ursula-bot-visual-offset, 0px)) +
      var(--testrunner-footer-height) +
      1.1rem
    );
    width: auto;
  }

  .duel-bot-duel[data-layout="speech-only"][data-bot-profile="arenilla"],
  .ursula-bot-duel[data-layout="speech-only"][data-bot-profile="arenilla"] {
    --duel-avatar-size: clamp(13.2rem, 19vw, 16.2rem);
  }

  .duel-bot-speech-only,
  .ursula-bot-card.duel-bot-speech-only {
    justify-content: flex-start;
    gap: 0.82rem;
    overflow: visible;
    padding: 0;
  }

  .duel-bot-speech-only .duel-bot-media,
  .duel-bot-speech-only.ursula-bot-card .ursula-bot-media {
    order: 1;
  }

  .duel-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only .duel-bot-media,
  .ursula-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only .ursula-bot-media {
    flex: 0 0 var(--duel-avatar-size);
    width: var(--duel-avatar-size);
    min-width: var(--duel-avatar-size);
    transform: none;
  }

  .duel-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only .duel-bot-media img,
  .ursula-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only .ursula-bot-media img {
    filter: drop-shadow(0 0.88rem 0.82rem rgba(18, 32, 50, 0.16));
  }

  .duel-bot-speech-only .duel-bot-status,
  .duel-bot-speech-only.ursula-bot-card .ursula-bot-status {
    --duel-bubble-fill: #fffdf8;
    --duel-bubble-line: color-mix(in srgb, var(--duel-state) 34%, #c6a354);
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding: 0.92rem 1.02rem 0.9rem;
    border: 0.14rem solid var(--duel-bubble-line);
    border-radius: 0.5rem 1.34rem 1.34rem 1.34rem;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 251, 239, 0.98) 100%),
      var(--duel-bubble-fill);
    box-shadow:
      0 0.9rem 2.2rem rgba(18, 32, 50, 0.16),
      0 0.16rem 0.36rem rgba(18, 32, 50, 0.08),
      inset 0 0.1rem 0 rgba(255, 255, 255, 0.94);
    transform-origin: -1rem 78%;
  }

  .duel-bot-speech-only .duel-bot-status::before,
  .duel-bot-speech-only.ursula-bot-card .ursula-bot-status::before {
    right: auto;
    left: -1.06rem;
    bottom: 1.04rem;
    width: 1.28rem;
    height: 1.46rem;
    border: 0;
    border-radius: 0;
    clip-path: polygon(100% 0, 0 48%, 100% 100%);
    filter: none;
  }

  .duel-bot-speech-only .duel-bot-status::after,
  .duel-bot-speech-only.ursula-bot-card .ursula-bot-status::after {
    right: auto;
    left: -0.74rem;
    bottom: 1.16rem;
    width: 0.94rem;
    height: 1.18rem;
    clip-path: polygon(100% 0, 0 48%, 100% 100%);
  }

  .duel-bot-speech-only .duel-bot-status strong,
  .duel-bot-speech-only.ursula-bot-card .ursula-bot-status strong {
    color: #17263a;
    font-size: clamp(1.38rem, 2.1vw, 1.62rem);
    font-weight: 850;
    line-height: 1.24;
    text-wrap: pretty;
  }

  body.duel-bot-speech-layout.abstract-mode .qti-prompt {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
}

@media (min-width: 901px) and (max-height: 640px) {
  .duel-bot-duel[data-layout="speech-only"][data-bot-profile="arenilla"],
  .ursula-bot-duel[data-layout="speech-only"][data-bot-profile="arenilla"] {
    --duel-avatar-size: clamp(12.5rem, 10vw, 15rem);
  }

  .duel-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only .duel-bot-media,
  .ursula-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only .ursula-bot-media {
    transform: translateY(1.65rem);
  }
}

@media (min-width: 901px) and (max-width: 1099px) {
  body.duel-bot-speech-layout main {
    padding-bottom: 22rem;
  }

  .duel-bot-duel[data-layout="speech-only"],
  .ursula-bot-duel[data-layout="speech-only"] {
    --duel-avatar-size: clamp(10rem, 12vw, 12.8rem);
    left: 1.4rem;
    right: 8.2rem;
    bottom: calc(
      var(--duel-bot-visual-offset, var(--ursula-bot-visual-offset, 0px)) +
      var(--testrunner-footer-height) +
      1.4rem +
      env(safe-area-inset-bottom, 0px)
    );
    width: auto;
  }

  .duel-bot-duel[data-layout="speech-only"][data-bot-profile="arenilla"],
  .ursula-bot-duel[data-layout="speech-only"][data-bot-profile="arenilla"] {
    --duel-avatar-size: clamp(14.5rem, 16vw, 17.2rem);
  }

  .duel-bot-speech-only,
  .ursula-bot-card.duel-bot-speech-only {
    justify-content: flex-start;
    gap: 0.84rem;
    overflow: visible;
    padding: 0;
  }

  .duel-bot-speech-only .duel-bot-media,
  .duel-bot-speech-only.ursula-bot-card .ursula-bot-media {
    order: 1;
  }

  .duel-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only .duel-bot-media,
  .ursula-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only .ursula-bot-media {
    flex: 0 0 var(--duel-avatar-size);
    width: var(--duel-avatar-size);
    min-width: var(--duel-avatar-size);
    transform: none;
  }

  .duel-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only .duel-bot-status,
  .ursula-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only .ursula-bot-status {
    flex: 1 1 auto;
    min-width: 0;
  }

  .duel-bot-speech-only .duel-bot-status,
  .duel-bot-speech-only.ursula-bot-card .ursula-bot-status {
    order: 2;
    max-width: none;
    padding: 0.94rem 1.08rem 0.92rem;
    border-radius: 0.52rem 1.38rem 1.38rem 1.38rem;
    transform-origin: -1rem 78%;
  }

  .duel-bot-speech-only .duel-bot-status::before,
  .duel-bot-speech-only.ursula-bot-card .ursula-bot-status::before {
    right: auto;
    left: -1.06rem;
    bottom: 1.04rem;
    clip-path: polygon(100% 0, 0 48%, 100% 100%);
  }

  .duel-bot-speech-only .duel-bot-status::after,
  .duel-bot-speech-only.ursula-bot-card .ursula-bot-status::after {
    right: auto;
    left: -0.74rem;
    bottom: 1.16rem;
    clip-path: polygon(100% 0, 0 48%, 100% 100%);
  }

  .duel-bot-speech-only .duel-bot-status strong,
  .duel-bot-speech-only.ursula-bot-card .ursula-bot-status strong {
    font-size: clamp(1.42rem, 1.7vw, 1.62rem);
    line-height: 1.24;
  }

  body.duel-bot-speech-layout.abstract-mode .qti-prompt {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  body.duel-bot-enabled main,
  body.ursula-bot-enabled main {
    padding-bottom: 23rem;
  }

  body.duel-bot-speech-layout main {
    padding-bottom: 20rem;
  }

  .duel-bot-duel,
  .ursula-bot-duel {
    --duel-avatar-size: 4.6rem;
    width: auto;
    right: 10rem;
    bottom: calc(var(--duel-bot-visual-offset, var(--ursula-bot-visual-offset, 0px)) + var(--testrunner-footer-height) + 0.7rem);
  }

  .duel-bot-card,
  .ursula-bot-card {
    gap: 0.5rem;
    max-height: none;
    overflow: hidden;
    padding: 0.68rem;
  }

  .duel-bot-chat .duel-bot-head,
  .ursula-bot-chat .ursula-bot-head {
    display: grid;
  }

  .duel-bot-head,
  .ursula-bot-head {
    grid-template-columns: var(--duel-avatar-size) minmax(0, 1fr);
    gap: 0.4rem 0.55rem;
  }

  .duel-bot-kicker,
  .ursula-bot-kicker {
    display: none;
  }

  .duel-bot-head h3,
  .ursula-bot-head h3 {
    font-size: 1.25rem;
  }

  .duel-bot-status,
  .ursula-bot-status {
    grid-column: 1 / -1;
    padding: 0.64rem 0.72rem;
    border-radius: 0.72rem;
  }

  .duel-bot-status strong,
  .ursula-bot-status strong {
    font-size: 0.98rem;
    line-height: 1.22;
  }

  .duel-bot-score,
  .ursula-bot-score {
    gap: 0.3rem;
    padding: 0.25rem;
  }

  .duel-bot-score-card,
  .ursula-bot-score div {
    padding: 0.42rem 0.48rem;
  }

  .duel-bot-duel[data-layout="speech-only"],
  .ursula-bot-duel[data-layout="speech-only"] {
    --duel-avatar-size: 6.8rem;
    left: 0.75rem;
    right: 9.8rem;
    bottom: calc(
      var(--duel-bot-visual-offset, var(--ursula-bot-visual-offset, 0px)) +
      var(--testrunner-footer-height) +
      9.2rem +
      env(safe-area-inset-bottom, 0px)
    );
    width: auto;
  }

  .duel-bot-speech-only,
  .ursula-bot-card.duel-bot-speech-only {
    justify-content: flex-start;
    gap: 0.72rem;
    overflow: visible;
    padding: 0;
  }

  .duel-bot-speech-only .duel-bot-media,
  .duel-bot-speech-only.ursula-bot-card .ursula-bot-media {
    order: 1;
  }

  .duel-bot-duel[data-layout="speech-only"][data-bot-profile="arenilla"],
  .ursula-bot-duel[data-layout="speech-only"][data-bot-profile="arenilla"] {
    --duel-avatar-size: clamp(12.8rem, 34vw, 15rem);
    left: 2rem;
    right: 0.9rem;
    width: auto;
  }

  .duel-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only .duel-bot-media,
  .ursula-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only .ursula-bot-media {
    flex: 0 0 var(--duel-avatar-size);
    width: var(--duel-avatar-size);
    min-width: var(--duel-avatar-size);
    transform: translateY(0.18rem);
  }

  .duel-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only .duel-bot-status,
  .ursula-bot-duel[data-bot-profile="arenilla"] .duel-bot-speech-only .ursula-bot-status {
    flex: 1 1 auto;
    min-width: 0;
  }

  .duel-bot-speech-only .duel-bot-status,
  .duel-bot-speech-only.ursula-bot-card .ursula-bot-status {
    order: 2;
    max-width: none;
    padding: 0.78rem 0.9rem 0.76rem;
    border-radius: 0.44rem 1.16rem 1.16rem 1.16rem;
    transform-origin: -1rem 78%;
  }

  .duel-bot-speech-only .duel-bot-status::before,
  .duel-bot-speech-only.ursula-bot-card .ursula-bot-status::before {
    right: auto;
    left: -1.02rem;
    bottom: 0.88rem;
    width: 1.24rem;
    height: 1.42rem;
    border: 0;
    border-radius: 0;
    clip-path: polygon(100% 0, 0 48%, 100% 100%);
    filter: none;
  }

  .duel-bot-speech-only .duel-bot-status::after,
  .duel-bot-speech-only.ursula-bot-card .ursula-bot-status::after {
    right: auto;
    left: -0.72rem;
    bottom: 1rem;
    width: 0.92rem;
    height: 1.16rem;
    clip-path: polygon(100% 0, 0 48%, 100% 100%);
  }

  .duel-bot-speech-only .duel-bot-status strong,
  .duel-bot-speech-only.ursula-bot-card .ursula-bot-status strong {
    font-size: clamp(1.52rem, 4.6vw, 1.68rem);
    line-height: 1.22;
  }

  .duel-bot-score strong,
  .ursula-bot-score strong {
    font-size: 1.35rem;
  }

  .duel-bot-score-card span,
  .ursula-bot-score div span {
    font-size: 0.9rem;
  }

  .duel-bot-answers,
  .ursula-bot-answers {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .duel-bot-duel,
  .duel-bot-duel *,
  .duel-bot-duel *::before,
  .duel-bot-duel *::after,
  .ursula-bot-duel,
  .ursula-bot-duel *,
  .ursula-bot-duel *::before,
  .ursula-bot-duel *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* UX/UI responsive audit hardening: if a question exceeds the viewport, prefer
   a stable vertical scroll container over clipped content or horizontal panning. */
body[data-epso-theme="civic-premium"]:not(.question-fits-viewport) #test-main,
body[data-epso-theme="civic-premium"]:not(.question-fits-viewport) main,
body[data-epso-theme="civic-premium"]:not(.question-fits-viewport) .qti-item-container,
body[data-epso-theme="civic-premium"]:not(.question-fits-viewport) .passage,
body[data-epso-theme="civic-premium"]:not(.question-fits-viewport) .qti-interaction,
body[data-epso-theme="civic-premium"]:not(.question-fits-viewport) .selectable-choice-container,
body[data-epso-theme="civic-premium"]:not(.question-fits-viewport) #choices,
body[data-epso-theme="civic-premium"]:not(.question-fits-viewport) .passage-image-frame,
body[data-epso-theme="civic-premium"]:not(.question-fits-viewport) .native-visual-frame,
body[data-epso-theme="civic-premium"]:not(.question-fits-viewport) .data-visual-table-wrap,
body[data-epso-theme="civic-premium"]:not(.question-fits-viewport) .visual-card-scroll {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

body[data-epso-theme="civic-premium"]:not(.question-fits-viewport) .data-visual-chart-scrollbox.visual-card-scroll {
  overflow-y: hidden !important;
}

body[data-epso-theme="civic-premium"] .passage-image,
body[data-epso-theme="civic-premium"] .native-visual-svg,
body[data-epso-theme="civic-premium"] .data-visual-echart,
body[data-epso-theme="civic-premium"] .visual-card img {
  max-width: 100% !important;
  height: auto;
  object-fit: contain;
}

@media (max-width: 860px) {
  body[data-epso-theme="civic-premium"]:not(.question-fits-viewport) .passage-image-frame,
  body[data-epso-theme="civic-premium"]:not(.question-fits-viewport) .native-visual-frame {
    max-height: min(58dvh, 540px);
  }

  body[data-epso-theme="civic-premium"]:not(.question-fits-viewport) .passage-image {
    max-height: calc(min(58dvh, 540px) - 2rem);
  }

  body[data-epso-theme="civic-premium"] .draggable-modal .contents,
  body[data-epso-theme="civic-premium"] .modal-wrapper.open,
  body[data-epso-theme="civic-premium"] .results-overlay.open {
    max-height: 100dvh;
  }
}

/* Responsive runner navigation: mobile and tablet use the desktop side-nav
   palette, but stay in one horizontal row without requiring fullscreen mode. */
@media (max-width: 1099px) {
  body[data-epso-theme="civic-premium"] {
    --testrunner-footer-height: 8.8rem;
  }

  body[data-epso-theme="civic-premium"] .test-runner {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }

  body[data-epso-theme="civic-premium"] .top-bar,
  body[data-epso-theme="civic-premium"] #test-navigation.bottom-bar {
    flex: 0 0 auto;
  }

  body[data-epso-theme="civic-premium"] #test-main,
  body[data-epso-theme="civic-premium"] main {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body[data-epso-theme="civic-premium"] #test-navigation.bottom-bar {
    height: auto;
    min-height: var(--testrunner-footer-height);
    padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
    border-top: 0.1rem solid #283c59;
    border-right: 0.1rem solid #283c59;
    border-bottom: 0;
    border-left: 0.1rem solid #283c59;
    border-top-left-radius: 2.4rem;
    border-top-right-radius: 2.4rem;
    overflow: visible;
    box-shadow: 0 -0.8rem 2.8rem rgba(13, 34, 72, 0.14);
  }

  body[data-epso-theme="civic-premium"] #test-navigation .navigator {
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-start !important;
    width: 100%;
    min-height: 5.8rem;
    margin: 0 auto;
    padding: 0.65rem 0.75rem;
    gap: 0.65rem;
    border-radius: 2rem;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .button-container,
  body[data-epso-theme="civic-premium"] #test-navigation .button-container.start,
  body[data-epso-theme="civic-premium"] #test-navigation .button-container.end,
  body[data-epso-theme="civic-premium"] #test-navigation .overview-container {
    flex: 0 0 auto;
    width: auto;
    margin: 0 !important;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .progress-container {
    order: unset !important;
    flex: 1 1 0 !important;
    flex-basis: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0;
    overflow: hidden;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .steps-container {
    width: 100%;
    min-width: 0;
    max-height: none;
    overflow: hidden;
    padding-right: 0;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .steps {
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 0.6rem;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .steps::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .nav-prev-btn,
  body[data-epso-theme="civic-premium"] #test-navigation .nav-next-btn,
  body[data-epso-theme="civic-premium"] #test-navigation .overview-container .actionable,
  body[data-epso-theme="civic-premium"] #test-navigation .step,
  body[data-epso-theme="civic-premium"] #test-navigation button.step.exam-step {
    width: 5.5rem;
    min-width: 5.5rem;
    height: 5.5rem;
    min-height: 5.5rem;
    padding: 0;
    flex: 0 0 auto;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .step,
  body[data-epso-theme="civic-premium"] #test-navigation button.step.exam-step {
    font-size: 1.45rem;
  }
}

@media (max-width: 1099px) {
  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation.bottom-bar {
    background: #ffffff;
  }

  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation .navigator {
    border: 0.1rem solid rgba(40, 60, 89, 0.24);
    background: #ffffff;
    box-shadow:
      inset 0 0.1rem 0 rgba(255, 255, 255, 0.96),
      0 1rem 2.6rem rgba(13, 34, 72, 0.1);
  }

  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation .steps {
    background: transparent;
    box-shadow: none;
  }

  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation .nav-prev-btn,
  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation .nav-next-btn {
    border-color: #283c59;
    background: #283c59;
    color: #ffffff;
    box-shadow: none;
  }

  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation .nav-prev-btn:hover,
  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation .nav-prev-btn:focus-visible,
  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation .nav-next-btn:hover,
  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation .nav-next-btn:focus-visible {
    border-color: #283c59;
    background: #283c59;
    color: #ffffff;
    box-shadow: none;
  }

  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation .nav-prev-btn:disabled,
  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation .nav-next-btn:disabled {
    border-color: #c8ced8;
    background: #c8ced8;
    color: #6f7885;
    box-shadow: none;
    cursor: not-allowed;
  }

  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation .step,
  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation button.step.exam-step {
    border-color: rgba(40, 60, 89, 0.18);
    background: #ffffff;
    color: #53647b;
    box-shadow: none;
  }

  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation .step.current,
  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation button.step.exam-step.current {
    border-color: #d8a93a;
    background: #d8a93a;
    color: #10243b;
  }

  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation .step.completed,
  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation button.step.exam-step.completed {
    border-color: #283c59;
    background: #283c59;
    color: #ffffff;
  }

  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation .step.visited,
  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation button.step.exam-step.visited {
    border-color: rgba(40, 60, 89, 0.2);
    background: #f7f8fa;
    color: #283c59;
  }

  body[data-epso-theme="civic-premium"]:not([class*="contrast-"]) #test-navigation .overview-container .actionable {
    border-color: rgba(40, 60, 89, 0.18);
    background: #ffffff;
    color: #283c59;
    box-shadow: none;
  }
}

@media (max-width: 420px) {
  body[data-epso-theme="civic-premium"] #test-navigation .navigator {
    gap: 0.5rem;
    padding-right: 0.55rem;
    padding-left: 0.55rem;
  }

  body[data-epso-theme="civic-premium"] #test-navigation .steps {
    gap: 0.45rem;
  }
}
