: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: #006dcc;
  --color-brand-hover: #005299;
  --color-brand-light: #e6f3ff;
  --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);
}

.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: 1rem;
  margin: 0;
  padding: 0;
}

.tool-shortcuts {
  flex-wrap: wrap;
  align-items: center;
  transition: transform 220ms ease;
}

.tool-shortcuts li {
  display: flex;
}

.tool-menu {
  position: relative;
}

.tool-menu-toggle.icon-bar-btn.base-16 {
  width: auto;
  min-width: 0;
  height: 4rem;
  padding: 0 1.4rem;
  gap: 0.8rem;
}

.tool-menu-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-menu-toggle-label {
  font-size: 1.35rem;
  font-weight: 700;
  white-space: nowrap;
}

.tool-menu-panel {
  position: absolute;
  top: 0;
  right: calc(100% + 1rem);
  z-index: 30;
  display: none;
  width: auto;
  max-width: calc(100vw - 8rem);
  padding: 0.8rem;
  border: 0.1rem solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.92),
    0 1.6rem 4rem rgba(15, 28, 26, 0.14);
  backdrop-filter: blur(1.8rem);
}

.tool-menu.open .tool-menu-panel {
  display: block;
}

.tool-menu.open .tool-menu-toggle {
  background: var(--color-gs-light-hover);
}

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

.tool-menu-panel .end {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.8rem;
}

.tool-menu-panel .end li {
  display: flex;
}

.tool-menu-panel .icon-bar-btn.base-16 {
  width: 4rem;
  min-width: 4rem;
  min-height: 4rem;
  height: 4rem;
  padding: 0;
  justify-content: center;
  gap: 0;
}

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

.headerbar aside.tools-open .tool-shortcuts {
  transform: translateX(-1.8rem);
}

.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 {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.6rem;
  border: 0.1rem solid #d8dde4;
  border-radius: var(--radius-large);
  background: #f8fafc;
  overflow: auto;
}

.native-visual-panel {
  background: #ffffff;
  border: 0.1rem solid #d8dde4;
  border-radius: 1.2rem;
  overflow: hidden;
}

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

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

.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: collapse;
  font-family: "Nunito Sans", "Source Sans Pro", Arial, sans-serif;
  font-size: 1.45rem;
  color: #162624;
  background: #ffffff;
}

.native-data-table thead th {
  background: #eef3f8;
  font-weight: 700;
  text-align: left;
}

.native-data-table th,
.native-data-table td {
  padding: 0.9rem 1.1rem;
  border: 0.1rem solid #d8dde4;
  vertical-align: top;
}

.native-data-table tbody th {
  background: #f8fafc;
  font-weight: 700;
  text-align: left;
}

.native-data-table td {
  text-align: left;
}

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

.native-breakdown-title {
  margin: 0;
  font-family: "Nunito Sans", "Source Sans Pro", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.35;
  color: #162624;
}

.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: "Nunito Sans", "Source Sans Pro", Arial, sans-serif;
  color: #162624;
}

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

.native-breakdown-value {
  font-size: 1.38rem;
  font-weight: 800;
  color: #1d6fd4;
}

.native-breakdown-bar {
  position: relative;
  height: 1rem;
  border-radius: 999px;
  background: #e8eef5;
  overflow: hidden;
}

.native-breakdown-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d6fd4 0%, #39a0ed 100%);
}

.native-visual-svg {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  border-radius: 1.2rem;
}

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

.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 {
  background: linear-gradient(
    to right,
    var(--color-brand-hover) 0,
    var(--color-brand-hover) calc(100% - 7rem),
    var(--color-bg-default) calc(100% - 7rem),
    var(--color-bg-default) 100%
  );
  color: var(--color-text-default);
  border-color: var(--color-brand-hover);
}

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

.choice-elimination-enabled .choice.eliminated label:hover .container {
  background: #d7dce2;
  color: #4f4f4f;
  border-color: #818a94;
}

.choice-elimination-enabled .choice.eliminated label:hover .caption-container {
  color: #4f4f4f;
}

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

.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: #d7dce2;
  color: #4f4f4f;
  border-color: #818a94;
}

.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: #4f4f4f;
}

.choice-eliminate-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 7rem;
  height: 100%;
  border: none;
  border-radius: 0 var(--radius-large) var(--radius-large) 0;
  background: transparent;
  color: #121212;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  overflow: hidden;
}

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

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

.choice-eliminate-btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0.2rem;
  background: #121212;
  z-index: 1;
}

.choice-eliminate-btn::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0.2rem;
  background: transparent;
  border-radius: 0 var(--radius-large) var(--radius-large) 0;
}

.choice-eliminate-btn:hover::after,
.choice-eliminate-btn:focus-visible::after {
  background: #d9d9d9;
}

.choice-eliminate-marker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  height: 2.6rem;
  z-index: 1;
}

.choice-eliminate-aa {
  position: relative;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
}

.choice-eliminate-aa::after {
  content: "";
  position: absolute;
  left: -0.2rem;
  right: -0.2rem;
  top: 50%;
  height: 0.2rem;
  background: currentColor;
  transform: translateY(-50%);
}

.choice-eliminate-undo {
  display: none;
  position: relative;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

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

.choice.eliminated .choice-eliminate-undo {
  display: block;
}

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

.choice.eliminated .container {
  opacity: 0.45;
  background: #d7dce2;
  border-color: #818a94;
  color: #4f4f4f;
}

.choice.eliminated .choice-content {
  text-decoration: line-through;
}

.choice.eliminated input:checked + .container {
  background: #d7dce2;
  color: #4f4f4f;
  border-color: #818a94;
}

.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: 58.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  justify-content: center;
  line-height: 0;
  pointer-events: none;
  z-index: 2;
  color: #283c59;
}

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

.step-bookmark-indicator .icon.small {
  width: 3.4rem;
  height: 3.4rem;
  opacity: 1;
}

.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 {
  color: rgba(255, 255, 255, 0.98);
}

.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.svelte-iv7svl.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;
}

html[data-epso-landing-boot-state="booting"] body {
  visibility: hidden;
  pointer-events: none;
}

html[data-epso-landing-boot-state="booting"] #test-navigation.bottom-bar,
html[data-epso-landing-boot-state="booting"] #test-navigation.bottom-bar::after,
html[data-epso-landing-boot-state="booting"] #test-navigation .navigator,
html[data-epso-landing-boot-state="booting"] .overview-inline-drawer,
html[data-epso-landing-boot-state="booting"] .overview-inline-shell,
html[data-epso-landing-boot-state="booting"] .overview-inline-body,
html[data-epso-landing-boot-state="booting"] .overview-inline-footer,
html[data-epso-landing-boot-state="booting"] .draggable-modal .contents {
  transition: none !important;
  animation: none !important;
}

.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;
  background-color: #ffffff;
  background-image: url("./assets/no-surprises-photo.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: min(92%, 82rem);
}

.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: transparent;
}

.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 .svelte-8pppve {
  width: 100%;
}

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

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

.start.svelte-mnhe95 {
  left: 1.2rem;
}

.end.svelte-mnhe95 {
  right: 1.2rem;
}

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

.ui-heading.svelte-mnhe95 {
  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.svelte-1vd3yf4 {
  overflow: auto;
  flex: 1 1 auto;
  background: #ffffff;
}

.overlay-content.svelte-1vd3yf4 > .svelte-8pppve {
  width: 100%;
}

.content.svelte-1iarkpx {
  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.svelte-1iarkpx {
  max-width: 128rem;
  padding: 2rem 2.4rem;
}

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

.panel.svelte-1iarkpx {
  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.svelte-1iarkpx > header.svelte-1iarkpx {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.panel.svelte-1iarkpx > div {
  display: grid;
  gap: 1.2rem;
}

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

input.svelte-1h02s3b {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.selection.svelte-1h02s3b {
  width: 0;
  height: 0;
}

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

.slider.svelte-1h02s3b::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.svelte-1h02s3b:checked + .selection.svelte-1h02s3b + .slider.svelte-1h02s3b {
  background: #006dcc;
}

input.svelte-1h02s3b:checked + .selection.svelte-1h02s3b + .slider.svelte-1h02s3b::after {
  transform: translateX(2.4rem);
}

.label.svelte-1h02s3b {
  font-weight: 700;
  min-width: 3rem;
  font-size: 1.6rem;
}

.caption.svelte-1iarkpx {
  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: #006dcc;
  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 .svelte-8pppve,
.overview-overlay-footer .svelte-8pppve {
  width: 100%;
}

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

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

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

.tabs.svelte-k8vyx8 {
  display: block;
}

.tabgroup.svelte-1vxoqqc {
  position: relative;
}

.scrollbox.svelte-1vxoqqc {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
}

.scrollbox.svelte-1vxoqqc > ul.svelte-1vxoqqc {
  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.svelte-1vxoqqc {
  margin: 0;
  padding: 0;
}

button.svelte-1vxoqqc[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.svelte-1vxoqqc[role="tab"][aria-selected="true"] {
  color: #121212;
  border-bottom-color: #121212;
  font-weight: 700;
}

.tabpanel.svelte-k8vyx8.hidden {
  display: none;
}

.tabpanel.svelte-k8vyx8 {
  display: block;
}

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

.label.svelte-k8vyx8 {
  display: inline-block;
}

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

li.svelte-iv7svl {
  margin: 0;
  padding: 0;
}

button.step.svelte-iv7svl {
  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.svelte-iv7svl.visited {
  border-width: 0.25rem;
  color: #121212;
  border-color: #121212;
}

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

button.step.svelte-iv7svl.current {
  background: #006dcc;
  color: #ffffff;
  border-color: #006dcc;
}

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

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

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

.indicator.svelte-iv7svl .icon.small {
  width: 1.2rem;
  height: 1.2rem;
}

.bookmark-indicator.svelte-iv7svl {
  display: none;
  position: absolute;
  top: 58.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  color: #283c59;
}

.bookmark-indicator.svelte-iv7svl .icon.small {
  width: 3.4rem;
  height: 3.4rem;
  opacity: 1;
}

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

button.step.svelte-iv7svl.bookmarked.completed .bookmark-indicator.svelte-iv7svl,
button.step.svelte-iv7svl.bookmarked.current .bookmark-indicator.svelte-iv7svl {
  color: rgba(255, 255, 255, 0.98);
}

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

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

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

.back-button.svelte-ounh0 {
  display: inline-flex;
}

.actionable.svelte-1pf3f6c {
  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.svelte-1pf3f6c.icon-right {
  margin-left: auto;
}

.actionable.svelte-1pf3f6c .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(#006dcc 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;
}

.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 {
  top: var(--testrunner-header-height);
  right: 0;
  bottom: 0;
  left: 0;
  background: transparent;
  z-index: 20;
}

.a11y-drawer-panel .drawer {
  width: 39.8rem;
  max-width: calc(100vw - 1.6rem);
  border-left: 0.1rem solid #d9d9d9;
  box-shadow: -0.4rem 0 1.2rem rgba(18, 18, 18, 0.18);
}

.a11y-drawer-panel .drawer-content {
  height: 100%;
}

.drawer-content.svelte-1fv5kfs {
  padding: 0;
  height: 100%;
  background: #ffffff;
  color: #121212;
  font-family: "Source Sans Pro", "Nunito Sans", Arial, sans-serif;
}

.a11y-menu-panel-content.svelte-1g9wc84 {
  min-height: 100%;
  background: #ffffff;
}

.a11y-group.svelte-1gi2rq3 {
  margin: 0;
  border: 0;
  border-bottom: 0.1rem solid #d8d8d8;
  background: #ffffff;
}

.a11y-group.svelte-1gi2rq3 > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 5.6rem;
  padding: 1.6rem 2rem 1.4rem;
  cursor: pointer;
  user-select: none;
}

.a11y-group.svelte-1gi2rq3 > summary::-webkit-details-marker {
  display: none;
}

.a11y-group.svelte-1gi2rq3 > summary::marker {
  display: none;
}

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

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

.a11y-group.svelte-1gi2rq3 > summary .ui-heading {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.a11y-group.svelte-1gi2rq3 > summary .icon.medium {
  width: 1.6rem;
  height: 1.6rem;
}

.a11y-group.svelte-1gi2rq3 > summary .icon.small {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

.a11y-group.svelte-1gi2rq3 > div {
  padding: 0 2rem 1.8rem;
}

.a11y-group.svelte-1gi2rq3 ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.2rem;
}

.colour-switcher.svelte-fnhmdw {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.border-wrapper.svelte-fnhmdw {
  border: 0.2rem solid transparent;
  border-radius: 50%;
  padding: 0.1rem;
}

.option.svelte-fnhmdw {
  appearance: none;
  width: 3.2rem;
  height: 3.2rem;
  border: 0.1rem solid #121212;
  border-radius: 50%;
  cursor: pointer;
  margin: 0;
  display: block;
}

.border-wrapper.svelte-fnhmdw:has(.option.svelte-fnhmdw:checked) {
  border-color: #121212;
}

.option.svelte-fnhmdw:checked {
  outline: 0.2rem solid #ffffff;
  outline-offset: -0.3rem;
}

.mouse-pointer-setting.svelte-srhu8z,
.font-family-setting.svelte-15xhm2d {
  display: grid;
  gap: 1.4rem;
}

.control-row.svelte-8177ix {
  display: flex;
  align-items: center;
  min-height: 3.2rem;
  gap: 1rem;
  color: #121212;
}

.stepper.svelte-17lof8n {
  display: inline-flex;
  gap: 0.8rem;
  margin-left: auto;
}

.stepper.svelte-17lof8n .icon-bar-btn.base-12 {
  width: 3.2rem;
  height: 3.2rem;
  border: none;
  background: transparent;
  border-radius: 50%;
  box-shadow: none;
}

.icon-bar-btn.svelte-4t87lk.visually-disabled,
.stepper.svelte-17lof8n .icon-bar-btn.visually-disabled {
  opacity: 0.45;
  cursor: default;
}

.select.svelte-igeoux {
  display: inline-flex;
  width: 100%;
  position: relative;
  min-height: 3.4rem;
  border: 0.1rem solid #b9b9b9;
  border-radius: 0;
  background: #ffffff;
}

.select.svelte-igeoux > button.svelte-igeoux {
  width: 100%;
  min-height: 3.4rem;
  border: 0;
  background: transparent;
  padding: 0 1rem 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  font-size: 1.4rem;
  color: #121212;
  cursor: pointer;
}

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

.listbox-wrapper.svelte-igeoux {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 3;
}

.listbox.svelte-igeoux {
  display: block;
  max-height: 24rem;
  overflow: auto;
  background: #ffffff;
  border: 0.1rem solid #b9b9b9;
  border-radius: 0;
  box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.12);
}

.option.svelte-igeoux {
  display: block;
  padding: 0.9rem 1.2rem;
  font-size: 1.4rem;
  cursor: pointer;
}

.option.svelte-igeoux.selected {
  background: #e6f3ff;
}

.option.svelte-igeoux:hover {
  background: #f2f2f2;
}

.hidden-input.svelte-igeoux {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.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;
  left: 50%;
  width: 6.4rem;
  height: 6.4rem;
  border: none;
  border-radius: 0;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: ns-resize;
  z-index: 2;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.2);
}

.line-reader-move-handle:hover,
.line-reader-move-handle:focus-visible {
  background: #000000;
}

.line-reader-resize-handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 6.4rem;
  height: 6.4rem;
  border: none;
  border-radius: 0;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: ns-resize;
  z-index: 2;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.2);
}

.line-reader-resize-handle:hover,
.line-reader-resize-handle:focus-visible {
  background: #000000;
}

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

.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%;
  }
}

/* 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.svelte-1iarkpx,
.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: 0 var(--surface-radius-lg) var(--surface-radius-lg) 0;
}

.training-feedback,
.dialog,
.panel.svelte-1iarkpx,
.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.svelte-1iarkpx,
.overview.svelte-k8vyx8,
.results-body {
  background:
    radial-gradient(circle at top left, rgba(230, 243, 255, 0.35) 0, rgba(230, 243, 255, 0) 22%),
    #ffffff;
}

.panel.svelte-1iarkpx {
  border-color: #d7dee6;
  border-radius: var(--surface-radius-lg);
}

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

.tabpanel.svelte-k8vyx8,
.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: 1.6rem;
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.22);
}

@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.svelte-iv7svl {
  font-family: "Space Grotesk", "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.svelte-1iarkpx,
.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(22, 38, 36, 0.04);
  border-left-color: rgba(22, 38, 36, 0.08);
}

.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.svelte-1pf3f6c: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.svelte-1pf3f6c:not(.secondary):hover,
.actionable.svelte-1pf3f6c:not(.secondary):focus-visible {
  background: linear-gradient(135deg, #112220 0%, #0f584f 100%);
}

.steps {
  gap: 0.7rem;
}

.step,
button.step.svelte-iv7svl {
  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.svelte-iv7svl.current,
button.step.svelte-iv7svl.completed {
  background: linear-gradient(135deg, #17312d 0%, #156f63 100%);
  border-color: transparent;
  color: #fcfaf6;
}

.step.visited,
button.step.svelte-iv7svl.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: 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: 6rem;
}

.choice-eliminate-btn::after {
  background: linear-gradient(180deg, rgba(22, 38, 36, 0.04) 0%, rgba(22, 38, 36, 0.08) 100%);
}

.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.svelte-iv7svl {
  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.svelte-mnhe95 {
  background: transparent;
}

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

.overlay-content.svelte-1vd3yf4,
.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.svelte-1iarkpx,
.overview.svelte-k8vyx8 {
  max-width: 112rem;
}

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

button.svelte-1vxoqqc[role="tab"] {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

button.svelte-1vxoqqc[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 {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .headerbar aside {
    padding: 0.5rem;
  }

  .tool-menu-toggle.icon-bar-btn.base-16 {
    padding: 0 1rem;
  }

  .tool-menu-toggle-label {
    display: none;
  }

  .tool-menu-panel {
    max-width: calc(100vw - 7rem);
    padding: 0.7rem;
  }

  .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.svelte-iv7svl {
  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.svelte-1iarkpx,
.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.svelte-iv7svl.current,
button.step.svelte-iv7svl.completed,
.actionable.primary,
.actionable.svelte-1pf3f6c: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.svelte-iv7svl.visited {
  background: linear-gradient(180deg, #f4f4f4 0%, #e8e8e8 100%);
  color: #111111;
  border-color: rgba(17, 17, 17, 0.16);
}

button.svelte-1vxoqqc[role="tab"][aria-selected="true"] {
  color: #111111;
  border-bottom-color: #111111;
}

.overlay-content.svelte-1vd3yf4,
.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: 10.08px;
  width: 100%;
  min-height: 0;
  padding: 1.44px 9.36px 5.04px;
  overflow-x: hidden;
}

body.abstract-mode .founder-graphic-row {
  display: grid;
  gap: 5.04px;
  min-height: 0;
  overflow: visible;
}

body.abstract-mode .founder-graphic-row-title {
  margin: 0;
  font-size: 10.08px;
  font-weight: 800;
  color: #1e4267;
}

body.abstract-mode .founder-graphic-row-title.is-divider {
  height: 0;
  min-height: 0;
  border-top: 1.44px 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: 6.48px;
  min-height: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 25.92px clamp(0.576rem, 1.152vw, 1.44rem);
  touch-action: pan-y;
}

body.abstract-mode .founder-graphic-row.is-options .founder-graphic-strip {
  justify-content: center;
}

body.abstract-mode .founder-graphic-cell-stack {
  width: 129.6px;
  min-width: 129.6px;
  display: grid;
  grid-template-rows: auto 129.6px;
}

body.abstract-mode .founder-graphic-cell-head {
  min-height: 15.12px;
  border: 1.44px solid #0d2237;
  border-bottom: 0;
  border-radius: 0;
  background: #111111;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8.64px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.abstract-mode .founder-graphic-cell {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1.44px 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: 3.024rem;
  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;
  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%;
  max-height: 100%;
  margin: 0 auto;
  background: transparent;
}

.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 {
  width: 4.8rem;
}

.bottom-bar {
  padding-top: 0.9rem;
  padding-bottom: 1rem;
}

.navigator {
  min-height: 6.8rem;
}

.steps {
  gap: 0.6rem;
}

.step,
button.step.svelte-iv7svl {
  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.svelte-iv7svl {
    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.svelte-1iarkpx,
.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.svelte-1pf3f6c:not(.secondary),
.step.current,
.step.completed,
button.step.svelte-iv7svl.current,
button.step.svelte-iv7svl.completed {
  background: linear-gradient(135deg, #111111 0%, #2d2d2d 100%);
}

.step.visited,
button.step.svelte-iv7svl.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.svelte-1vd3yf4,
.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.svelte-iv7svl,
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: 0.072rem;
}

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.svelte-1iarkpx,
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 {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 243, 236, 0.82) 100%);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.9),
    var(--ui-shadow-soft);
  backdrop-filter: blur(1.4rem);
}

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(85, 120, 154, 0.08) 0, rgba(85, 120, 154, 0) 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 243, 236, 0.84) 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(22, 38, 36, 0.12);
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.94);
}

body[data-epso-theme="civic-premium"] .native-data-table thead th {
  background: rgba(21, 111, 99, 0.08);
}

body[data-epso-theme="civic-premium"] .native-data-table tbody th {
  background: rgba(246, 242, 235, 0.9);
}

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: 1.8rem;
  background: transparent;
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .qti-interaction {
  background:
    radial-gradient(circle at top left, rgba(21, 111, 99, 0.08) 0, rgba(21, 111, 99, 0) 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 242, 235, 0.9) 100%);
}

body[data-epso-theme="civic-premium"] .qti-prompt {
  margin: 0 0 1.8rem;
  color: var(--ui-ink);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2.05rem, 2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

body.abstract-mode[data-epso-theme="civic-premium"] .qti-interaction {
  margin-top: -2.4rem;
  padding-top: 0;
}

body.abstract-mode[data-epso-theme="civic-premium"] .qti-prompt {
  margin: 0 0 1.6rem;
}

body.abstract-mode[data-epso-theme="civic-premium"] .selectable-choice-container ul {
  gap: 0.35rem;
}

body.abstract-mode .founder-graphic-frame {
  padding-top: 0;
}

body.abstract-mode .founder-graphic-strip {
  padding-top: 12px;
  padding-bottom: 12px;
}

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: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(231, 229, 223, 0.86) 100%);
  border-color: rgba(22, 38, 36, 0.1);
  color: rgba(22, 38, 36, 0.52);
  box-shadow: none;
}

body[data-epso-theme="civic-premium"] .choice-eliminate-btn::before {
  background: rgba(22, 38, 36, 0.12);
}

body[data-epso-theme="civic-premium"] .choice-eliminate-btn:hover::after,
body[data-epso-theme="civic-premium"] .choice-eliminate-btn:focus-visible::after {
  background: rgba(22, 38, 36, 0.08);
}

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.svelte-iv7svl {
  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.svelte-iv7svl.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.svelte-iv7svl.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.svelte-iv7svl.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.svelte-1pf3f6c: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.svelte-1vd3yf4,
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.svelte-1vd3yf4,
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.svelte-ounh0 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 {
  background: linear-gradient(135deg, #162624 0%, #24423d 100%);
  color: #ffffff;
  border-radius: 1.4rem;
  box-shadow: 0 1rem 2.4rem rgba(17, 30, 28, 0.2);
}

/* 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: translateX(-2rem);
}

body[data-epso-theme="civic-premium"] .tool-menu-panel {
  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%);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.96),
    0 1.8rem 4rem rgba(13, 34, 72, 0.18);
}

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.svelte-1iarkpx,
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.svelte-iv7svl {
  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.svelte-iv7svl.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.svelte-iv7svl.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: -2.6rem;
  padding-top: 0.1rem;
  padding-bottom: 0.4rem;
  gap: 0.2rem;
}

body.abstract-mode[data-epso-theme="civic-premium"] .qti-prompt {
  margin-top: 0;
  margin-bottom: 1.8rem;
  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.svelte-iv7svl.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.svelte-iv7svl.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.svelte-iv7svl.current,
body[data-epso-theme="civic-premium"] .step.step-countdown,
body[data-epso-theme="civic-premium"] button.step.svelte-iv7svl.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.svelte-1pf3f6c: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.svelte-1pf3f6c:not(.secondary):hover,
body[data-epso-theme="civic-premium"] .actionable.svelte-1pf3f6c: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.svelte-1vd3yf4,
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.svelte-1vd3yf4,
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.svelte-k8vyx8 {
  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) .scratchpad-modal .header .icon-bar-btn {
  background: #283c59;
  color: #ffffff;
  border: none;
  outline: none;
  box-shadow: none;
  transform: none;
  transition: 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 .header .icon-bar-btn svg,
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 svg path {
  fill: currentColor;
}

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 {
  background: #283c59;
  color: #ffffff;
  border: none;
  outline: none;
  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) .scratchpad-modal .header .icon-bar-btn[disabled] {
  opacity: 1;
  background: #283c59;
  color: #ffffff;
  border: none;
  outline: none;
  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) #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:
    linear-gradient(180deg, transparent 0, transparent 6.5rem, rgba(255, 255, 255, 0.96) 6.5rem, rgba(241, 246, 255, 0.88) 100%);
  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 .screen {
  border: none;
  border-radius: 0;
  margin-top: 0;
  background-color: #ffffff;
  background-image: none;
  background-repeat: no-repeat;
  background-position: center 60%;
  background-size: min(88%, 42rem);
  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) .scratchpad-canvas-wrap {
  background-image: 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 .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: transparent;
  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: 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) .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 {
  background:
    linear-gradient(180deg, rgba(40, 60, 89, 0.98) 0%, rgba(30, 47, 70, 0.98) 100%);
  box-shadow: 0 1rem 2.4rem rgba(13, 34, 72, 0.22);
}

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.svelte-iv7svl,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue button.step.svelte-iv7svl,
body[data-epso-theme="civic-premium"].contrast-black-on-cream button.step.svelte-iv7svl,
body[data-epso-theme="civic-premium"].contrast-black-on-blue button.step.svelte-iv7svl,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta button.step.svelte-iv7svl,
body[data-epso-theme="civic-premium"].contrast-grey-on-green button.step.svelte-iv7svl,
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.svelte-iv7svl.current,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue button.step.svelte-iv7svl.current,
body[data-epso-theme="civic-premium"].contrast-black-on-cream button.step.svelte-iv7svl.current,
body[data-epso-theme="civic-premium"].contrast-black-on-blue button.step.svelte-iv7svl.current,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta button.step.svelte-iv7svl.current,
body[data-epso-theme="civic-premium"].contrast-grey-on-green button.step.svelte-iv7svl.current,
body[data-epso-theme="civic-premium"].contrast-white-on-black button.step.svelte-iv7svl.completed,
body[data-epso-theme="civic-premium"].contrast-yellow-on-blue button.step.svelte-iv7svl.completed,
body[data-epso-theme="civic-premium"].contrast-black-on-cream button.step.svelte-iv7svl.completed,
body[data-epso-theme="civic-premium"].contrast-black-on-blue button.step.svelte-iv7svl.completed,
body[data-epso-theme="civic-premium"].contrast-black-on-magenta button.step.svelte-iv7svl.completed,
body[data-epso-theme="civic-premium"].contrast-grey-on-green button.step.svelte-iv7svl.completed {
  background: var(--epso-contrast-ink);
  color: var(--epso-contrast-surface);
  border-color: var(--epso-contrast-ink);
}

@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(17, 29, 47, 0.56);
  --settings-overlay-header:
    radial-gradient(circle at 12% 12%, rgba(255, 193, 7, 0.16) 0%, rgba(255, 193, 7, 0) 22%),
    radial-gradient(circle at 86% 16%, rgba(120, 163, 255, 0.16) 0%, rgba(120, 163, 255, 0) 24%),
    linear-gradient(135deg, #1d2e47 0%, #283c59 46%, #22344d 100%);
  --settings-overlay-surface:
    radial-gradient(circle at top left, rgba(40, 60, 89, 0.06) 0, rgba(40, 60, 89, 0) 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 243, 236, 0.96) 100%);
  --settings-overlay-border: rgba(40, 60, 89, 0.12);
  --settings-overlay-ink: #20324d;
  --settings-overlay-ink-soft: #61738f;
  --settings-overlay-shadow:
    0 3.2rem 8rem rgba(13, 22, 37, 0.22),
    0 1rem 2.4rem rgba(13, 22, 37, 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) .config-overlay {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  padding: 1.8rem;
  background: var(--settings-overlay-backdrop);
  backdrop-filter: blur(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(82rem, calc(100vw - 3.6rem));
  max-height: min(90vh, 92rem);
  height: auto;
  margin: 0;
  border: 0.1rem solid rgba(255, 255, 255, 0.1);
  border-radius: 3rem;
  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: #f9f5ee;
  border-bottom: 0.1rem solid rgba(255, 255, 255, 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-header .svelte-8pppve,
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 .svelte-8pppve {
  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.svelte-mnhe95 {
  min-height: 9.2rem;
  justify-content: flex-start;
  padding: 0 3rem 0 8rem;
  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.svelte-mnhe95,
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.svelte-mnhe95 {
  min-width: 5.2rem;
  min-height: 5.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-header .start.svelte-mnhe95 {
  left: 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-title {
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(3rem, 3vw, 4.2rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.06em;
  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-header .icon-bar-btn.base-24 {
  width: 5.2rem;
  height: 5.2rem;
  border: 0.1rem solid rgba(255, 255, 255, 0.12);
  border-radius: 1.7rem;
  background: rgba(255, 255, 255, 0.1);
  color: #f9f5ee;
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.14),
    0 1.2rem 2.8rem rgba(13, 22, 37, 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-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 {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-0.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 .overlay-content.svelte-1vd3yf4 {
  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.svelte-1iarkpx {
  max-width: none;
  padding: 2.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 .group.svelte-1iarkpx {
  display: grid;
  gap: 1.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 .group.svelte-1iarkpx > header.svelte-1iarkpx {
  margin: 0;
  color: var(--settings-overlay-ink-soft);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  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.svelte-1iarkpx {
  position: static;
  inset: auto;
  display: grid;
  gap: 1.6rem;
  padding: 2.2rem 2.2rem 2.1rem;
  border: 0.1rem solid var(--settings-overlay-border);
  border-radius: 2.4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 243, 236, 0.92) 100%);
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.92),
    0 1.2rem 3rem 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 .panel.svelte-1iarkpx > header.svelte-1iarkpx {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  color: var(--settings-overlay-ink);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 1.7vw, 2.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

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.svelte-1iarkpx > header.svelte-1iarkpx::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #6b88ae 0%, #283c59 100%);
  box-shadow: 0 0 0 0.45rem rgba(40, 60, 89, 0.08);
  flex: 0 0 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 .panel.svelte-1iarkpx > div {
  display: grid;
  gap: 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 label.svelte-1h02s3b {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  gap: 1.2rem;
  width: fit-content;
  padding: 0.35rem;
  border-radius: 999px;
}

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.svelte-1h02s3b {
  width: 6.8rem;
  height: 3.8rem;
  border: 0.1rem solid rgba(40, 60, 89, 0.16);
  background: rgba(40, 60, 89, 0.18);
  box-shadow: inset 0 0.1rem 0 rgba(255, 255, 255, 0.55);
}

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.svelte-1h02s3b::after {
  top: 0.35rem;
  left: 0.35rem;
  width: 2.9rem;
  height: 2.9rem;
  background: #ffffff;
  box-shadow: 0 0.5rem 1.2rem rgba(40, 60, 89, 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) .config-overlay input.svelte-1h02s3b:checked + .selection.svelte-1h02s3b + .slider.svelte-1h02s3b {
  border-color: transparent;
  background: linear-gradient(135deg, #324a6d 0%, #283c59 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 input.svelte-1h02s3b:checked + .selection.svelte-1h02s3b + .slider.svelte-1h02s3b::after {
  transform: translateX(2.95rem);
}

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.svelte-1h02s3b:focus-visible + .selection.svelte-1h02s3b + .slider.svelte-1h02s3b {
  outline: none;
  box-shadow:
    inset 0 0.1rem 0 rgba(255, 255, 255, 0.55),
    0 0 0 0.35rem 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.svelte-1h02s3b {
  min-width: auto;
  color: var(--settings-overlay-ink);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  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 .caption.svelte-1iarkpx {
  max-width: none;
  margin: 0;
  color: var(--settings-overlay-ink-soft);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.5rem;
  line-height: 1.55;
}

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.svelte-mnhe95 {
    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: 2.5rem;
  }

  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.svelte-1iarkpx {
    padding: 1.7rem 1.5rem 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.svelte-1iarkpx {
    padding: 1.7rem 1.45rem 1.55rem;
    border-radius: 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.svelte-1iarkpx > header.svelte-1iarkpx {
    font-size: 1.9rem;
  }

  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: var(--color-brand);
  --nr-blue-strong: var(--color-brand-hover);
  --nr-blue-soft: var(--color-brand-light);
  --nr-surface: #ffffff;
  --nr-surface-alt: #f7fbff;
  --nr-border: #bfd2ea;
  --nr-grid: #d4e3f3;
  --nr-text: #15324d;
  --nr-muted: #5e7793;
  display: grid;
  gap: 1.2rem;
  margin: 0.2rem 0 0.4rem;
  width: fit-content;
  max-width: 100%;
}

.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: 2rem;
  background: linear-gradient(180deg, #fcfdff 0%, #f4f9ff 100%);
  color: var(--nr-muted);
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.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;
}

.data-visual-table-card,
.data-visual-chart-card {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.data-visual-title {
  margin: 0;
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--nr-text);
  text-align: center;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.data-visual-subtitle {
  margin: 0.42rem 0 0;
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.35rem;
  color: var(--nr-muted);
  text-align: center;
  line-height: 1.35;
}

.data-visual-table-wrap {
  margin-top: 0.6rem;
  overflow: visible;
}

.data-visual-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 0;
  table-layout: fixed;
  border-radius: 0;
  overflow: visible;
}

.data-visual-table th,
.data-visual-table td {
  border: 0.1rem solid var(--nr-border);
  padding: 0.55rem 0.7rem;
  color: var(--nr-text);
  font-variant-numeric: tabular-nums;
}

.data-visual-table thead th {
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  background: var(--nr-blue-soft);
  color: var(--nr-blue-strong);
  text-align: center;
}

.data-visual-table thead th:first-child {
  text-align: left;
}

.data-visual-table tbody th {
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  background: rgba(0, 109, 204, 0.07);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.data-visual-table tbody td {
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.65rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.98);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.data-visual-chart-title {
  margin: 0;
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 2rem;
  line-height: 1.18;
  text-align: center;
  color: var(--nr-text);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.data-visual-chart-shell {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: stretch;
}

.data-visual-chart-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 2rem;
}

.data-visual-chart-yaxis span {
  font-family: "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: 24rem;
  border-left: 0.2rem solid rgba(0, 109, 204, 0.32);
  border-bottom: 0.2rem solid rgba(0, 109, 204, 0.32);
  padding: 0.35rem 0.9rem 2rem;
  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 dashed 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: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--nr-blue-strong);
  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: 1.2rem 1.2rem 0.45rem 0.45rem;
  box-shadow: 0 0.8rem 1.6rem rgba(0, 109, 204, 0.2);
}

.data-visual-chart-bar-label {
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.12rem;
  line-height: 1.2;
  color: var(--nr-text);
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.data-visual-chart-unit {
  margin: 0.55rem 0 0;
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.1rem;
  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: "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;
  filter: drop-shadow(0 0.8rem 1rem rgba(0, 109, 204, 0.08));
}

.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: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.02rem;
  line-height: 1.2;
  color: var(--nr-muted);
  text-align: center;
  font-weight: 700;
}

.data-visual-table-note,
.data-visual-chart-note {
  margin: 0.65rem 0 0;
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.15rem;
  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;
}

.data-visual-pie-shell {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.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: 1px solid #898989;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.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: #5f5f5f;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.25;
}

.data-visual-pie-swatch {
  display: block;
  width: 1.12rem;
  height: 1.12rem;
  border-radius: 4px;
  border: 1px solid rgba(60, 60, 60, 0.3);
}

.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: "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;
}

.data-visual-horizontal-label {
  color: var(--nr-text);
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
}

.data-visual-horizontal-bars {
  display: grid;
  gap: 0.45rem;
}

.data-visual-horizontal-track {
  position: relative;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(0, 109, 204, 0.08);
  border: 0.1rem solid rgba(0, 109, 204, 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: var(--nr-blue-strong);
  font-family: "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(0, 109, 204, 0.08);
  border: 0.1rem solid rgba(0, 109, 204, 0.1);
  border-radius: 1.2rem 1.2rem 0.45rem 0.45rem;
}

.data-visual-chart-bar-segment {
  display: block;
  width: 100%;
}

@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;
  }

  .data-visual-title {
    font-size: 1.8rem;
  }

  .data-visual-table {
    min-width: 0;
  }

  .data-visual-table th,
  .data-visual-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;
  }

  .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.svelte-k8vyx8 {
    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.svelte-1vxoqqc > ul.svelte-1vxoqqc {
    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.svelte-1vxoqqc[role="tab"] {
    font-size: 1.32rem;
    letter-spacing: 0.04em;
  }

  body[data-epso-theme="civic-premium"] .overview-inline-body ol.space-large.svelte-iv7svl {
    gap: 1rem;
    margin-bottom: 0;
  }

  /* 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.svelte-iv7svl {
    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.svelte-iv7svl.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.svelte-iv7svl.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.svelte-iv7svl.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.svelte-iv7svl {
    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: 0.8rem;
    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;
  }
}
