/* Preptaly live demos for preptaly.com (WordPress / Elementor).
   Trimmed from web-front/assets/css/preptaly-landing.css: only the demo
   windows (cs-*, app-*, pl-device, pl-demo). The page itself is built with
   native Elementor containers and widgets and styled by Site Settings.
   Each demo is an HTML widget holding <div class="pl"><div data-pl-demo="..."></div></div>. */

.pl {
  --pl-ink: #0f1e33;
  --pl-slate: #3a4a5f;
  --pl-muted: #5b6b80;
  --pl-navy: #1c385c;
  --pl-cyan: #04c0f0;
  --pl-night: #0d223d;
  --pl-mist: #b9c9dd;
  --pl-ice: #e7f8fe;
  --pl-surface: #f5f8fb;
  --pl-border: #e2e8ef;
  --pl-white: #ffffff;
  --pl-font: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pl-app: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pl-exam: 'IBM Plex Sans', system-ui, sans-serif;
  --pl-radius-sm: 8px;
  --pl-radius-lg: 24px;
  --pl-radius-pill: 999px;
  --pl-shadow-sm: 0 1px 2px rgba(15, 30, 51, 0.06), 0 2px 8px rgba(15, 30, 51, 0.04);
  --pl-shadow-lg: 0 2px 6px rgba(15, 30, 51, 0.05), 0 32px 80px rgba(15, 30, 51, 0.14);
  --pl-ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* `hidden` must win over the layouts' own `display`. */
.pl [hidden],
.pl-demo [hidden] {
  display: none !important;
}

/* --- The device (hero) ----------------------------------------------------- */

/* A laptop drawn at 1440×882 and scaled to the width it gets, so the
   interface keeps the same proportions on every screen. */
.pl-device {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 882;
  --pl-scale: 0.85;
}

.pl-device__stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1440px;
  height: 882px;
  transform: scale(var(--pl-scale));
  transform-origin: 0 0;
}

.pl-device__lid {
  position: absolute;
  left: 58px;
  top: 0;
  width: 1324px;
  height: 856px;
  padding: 26px 22px 30px;
  border-radius: 30px;
  background: linear-gradient(180deg, #1b2533, #0e141d);
  box-shadow:
    inset 0 0 0 2px #2b3646,
    inset 0 0 0 9px #121923,
    0 50px 90px -20px rgba(13, 34, 61, 0.35),
    0 18px 36px -12px rgba(13, 34, 61, 0.25);
}

.pl-device__cam {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: #263244;
  box-shadow: inset 0 0 0 2px #18212e;
}

.pl-device__screen {
  position: relative;
  width: 1280px;
  height: 800px;
  overflow: hidden;
  border-radius: 6px;
  background: #fbf8fb;
}

/* A thin sheen across the glass. */
.pl-device__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 38%);
}

.pl-device__base {
  position: absolute;
  left: 0;
  top: 850px;
  width: 1440px;
  height: 30px;
  border-radius: 4px 4px 34px 34px / 4px 4px 18px 18px;
  background: linear-gradient(180deg, #edf0f4 0%, #cdd3dc 55%, #a8b1be 100%);
  box-shadow: 0 22px 30px -14px rgba(13, 34, 61, 0.35);
}

.pl-device__base::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 230px;
  height: 11px;
  margin-left: -115px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #b4bcc8, #d8dde4);
}


/* --- Demo windows (shared) ------------------------------------------------- */

/* A demo's mount point: its height is reserved before the script fills it. */
.pl-demo {
  position: relative;
  container-type: inline-size;
  user-select: none;
  -webkit-user-select: none;
}

.pl-demo,
.pl-demo * {
  pointer-events: none;
}

/* Practice and explanations are drawn at their desktop size (530px wide,
   STAGE_W in the script) and scaled to the width they get, so phones see the
   same layout as computers. Their boxes are reserved before the script runs. */
[data-pl-demo='practice'],
[data-pl-demo='explain'] {
  width: 100%;
  max-width: 530px;
  margin-inline: auto;
}

[data-pl-demo='practice'] {
  aspect-ratio: 530 / 560;
}

[data-pl-demo='explain'] {
  aspect-ratio: 530 / 680;
}

.pl-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--stage-w, 530px);
  transform: scale(var(--pl-scale, 1));
  transform-origin: 0 0;
  /* Container queries inside see the demo's own width, not the scaled box. */
  container-type: inline-size;
}

/* Results and dashboard are the app on a computer, drawn at 1200×800 and
   1280×800 (the widths in their scripts) and scaled like the hero's laptop. */
[data-pl-demo='results'] {
  aspect-ratio: 1200 / 800;
}

[data-pl-demo='dashboard'] {
  aspect-ratio: 1280 / 800;
}

.app-window {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 30, 51, 0.08), var(--pl-shadow-lg);
  font-family: var(--pl-app);
  color: #0f1e33;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

/* The app's header row, simplified: icon, page title, avatar. */
.app-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid #e2e8ef;
  background: #fff;
}

.app-bar__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px #e2e8ef;
}

.app-bar__icon img {
  display: block;
  width: 23px;
  height: 23px;
}

.app-bar__title {
  font-weight: 600;
  font-size: 14px;
  color: #0f1e33;
}

.app-bar__crumb {
  color: #5b6b80;
  font-size: 13px;
}

.app-bar__exam {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding: 3px 8px;
  border: 1px solid #e2e8ef;
  border-radius: 7px;
  color: #33445a;
  font-size: 12px;
  font-weight: 600;
}

.app-bar__spacer {
  flex: 1;
}

.app-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1c385c;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* The virtual cursor and its click ripple. */
.pl-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 300;
  width: 1px;
  height: 1px;
  opacity: 0;
  transition: opacity 0.35s;
  will-change: transform;
}

.pl-cursor.is-on {
  opacity: 1;
}

.pl-cursor svg {
  position: absolute;
  left: -5px;
  top: -3px;
  width: 26px;
  height: 26px;
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
  transform-origin: 5px 3px;
  transition: transform 0.09s;
}

.pl-cursor.is-down svg {
  transform: scale(0.84);
}

/* `--boost` enlarges cursor and ripple on a scaled-down screen (the hero on phones). */
.pl-ripple {
  position: absolute;
  z-index: 299;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 2px solid rgba(4, 192, 240, 0.95);
  border-radius: 50%;
  background: rgba(4, 192, 240, 0.18);
  animation: pl-ripple 0.55s ease-out forwards;
}

@keyframes pl-ripple {
  from {
    transform: scale(calc(0.3 * var(--boost, 1)));
    opacity: 1;
  }
  to {
    transform: scale(calc(1.6 * var(--boost, 1)));
    opacity: 0;
  }
}

/* Small notification ("Mock test submitted", "Practice ready"), bottom right like the app's. */
.app-toast {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 28px);
  padding: 10px 14px 10px 10px;
  border-radius: 12px;
  background: #0f1e33;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(15, 30, 51, 0.25);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.3s, transform 0.35s var(--pl-ease);
}

.app-toast.is-on {
  opacity: 1;
  transform: none;
}

.app-toast__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0ca30c;
}

.app-toast__icon svg {
  width: 15px;
  height: 15px;
  color: #fff;
}

.app-toast small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 400;
}

/* ==========================================================================
   CENT-S interface replica (cs-*)
   Values transcribed from client/src/exam-interfaces/cent-s: the desktop
   layout at 1280×800, plus the stacked (tablet) styles under .cs--stacked.
   ========================================================================== */

.cs-root {
  position: relative;
  width: 1280px;
  height: 800px;
  overflow: hidden;
  transition: opacity 0.45s;
  background: #fbf8fb;
  color: #1f2328;
  font-family: var(--pl-exam);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

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

.cs-screen {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 800px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 40px 48px;
}

/* Header: logo | title | candidate, in the columns of the page. */
.cs-topbar {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 52px;
}

.cs-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 0 240px;
  max-width: 300px;
  min-width: 0;
}

.cs-sitelogo {
  display: block;
  width: auto;
  height: 44px;
  max-width: min(100%, 300px);
  object-fit: contain;
}

.cs-titlecell {
  display: flex;
  align-items: center;
  flex: 100 1 520px;
  min-width: 0;
}

.cs-title {
  margin: 0;
  color: #2b2f36;
  font-size: 30px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.cs-candidate {
  display: flex;
  justify-content: center;
  flex: 1 0 240px;
  min-width: 0;
}

.cs-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.cs-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e4e2dc;
  color: #4a4f57;
  font-size: 17px;
  font-weight: 600;
}

.cs-name {
  color: #4a4f57;
  font-size: 15px;
  line-height: 1.35;
}

.cs-workspace {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 40px;
  flex: 1;
  min-height: 0;
}

/* Sections column */
.cs-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 0 240px;
  max-width: 300px;
}

.cs-stack {
  display: flex;
  flex-direction: column;
}

.cs-done-tab {
  height: 48px;
  margin-bottom: -14px;
  padding: 8px 12px 0;
  overflow: hidden;
  border: 1.5px solid #dedbd4;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: repeating-linear-gradient(135deg, #f4f3ef 0 6px, #e9e7e1 6px 7px);
  color: #9a9da2;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.cs-active {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cs-active__card {
  width: 100%;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(31, 35, 40, 0.07);
}

.cs-active__head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(31, 35, 40, 0.1);
}

.cs-accent-bar {
  flex: none;
  width: 26px;
  border-radius: 14px 0 0 14px;
  background: var(--acc);
}

.cs-active__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1;
  padding: 16px 14px 16px 16px;
}

.cs-active__label {
  color: #2b2f36;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cs-info-anchor {
  position: relative;
  display: flex;
  flex: none;
}

.cs-info-btn {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid #2a9bb5;
  border-radius: 50%;
  background: #fff;
  color: #2a9bb5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.cs-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px 24px;
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(5, 28px);
  justify-content: center;
  gap: 9px;
}

.cs-cell {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.2px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #2b2f36;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.cs-cell.is-answered {
  border-color: var(--acc);
  background: var(--acc);
}

.cs-cell.is-current {
  border: 1.2px dashed #2b2f36;
}

.cs-flagdot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #c2410c;
}

.cs-connector {
  width: 2px;
  height: 22px;
  background: #dedbd4;
}

.cs-end-btn {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--acc);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(31, 35, 40, 0.1);
  transition: filter 0.15s;
}

.cs-end-btn.is-hover {
  filter: brightness(1.07);
}

.cs-spacer {
  height: 8px;
}

.cs-next-tab {
  position: relative;
  padding: 18px;
  border: 1.5px solid #dedbd4;
  border-radius: 12px;
  background: #faf9f6;
  color: #6b6f76;
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Yellow callout (section info), with its arrow. */
.cs-tip {
  position: absolute;
  left: calc(100% + 22px);
  top: 50%;
  z-index: 30;
  width: max-content;
  max-width: 320px;
  padding: 16px 20px;
  border: 1.5px solid #f2d26b;
  border-radius: 12px;
  background: #fffad9;
  box-shadow: 0 6px 18px rgba(31, 35, 40, 0.1);
  color: #1f3b4d;
  font-size: 16px;
  letter-spacing: 0.01em;
  line-height: 1.55;
  text-transform: none;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
}

.cs-tip.is-open {
  opacity: 1;
  visibility: visible;
}

.cs-tip::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-left: 1.5px solid #f2d26b;
  border-bottom: 1.5px solid #f2d26b;
  background: #fffad9;
  transform: translateY(-50%) rotate(45deg);
}

.cs-tip > * {
  position: relative;
}

.cs-tip__title {
  margin-bottom: 4px;
  font-weight: 700;
}

.cs-tip .is-correct {
  color: #8fb06a;
}

.cs-tip .is-incorrect {
  color: #c0504d;
}

.cs-tip .is-unanswered {
  color: #e8b923;
}

/* Question column */
.cs-qcol {
  display: flex;
  flex-direction: column;
  flex: 100 1 520px;
  min-width: 0;
  max-height: 100%;
}

.cs-qcard {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #f9f9fd;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.05), 0 10px 30px rgba(31, 35, 40, 0.06);
}

.cs-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  min-height: 64px;
  padding: 0;
  background: #f9f9fd;
  color: #4a4f57;
  font-size: 34px;
  line-height: 1;
  transition: background 0.12s, color 0.12s;
}

.cs-arrow.is-disabled {
  opacity: 0.35;
}

.cs-arrow.is-hover:not(.is-disabled) {
  background: var(--acc);
  color: var(--ink);
}

.cs-qbody {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
}

.cs-scroller {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.cs-qcontent {
  display: flex;
  flex-direction: column;
  padding: 24px 0 8px;
}

.cs-stem-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0 24px 28px;
}

.cs-qnum {
  flex: none;
  margin-top: 4px;
  color: var(--fg);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.cs-stem {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1 1 0;
  min-width: 160px;
}

.cs-qtext,
.cs-prompt {
  margin: 0;
  font-size: var(--cs-text, 15px);
  line-height: 1.6;
  text-wrap: pretty;
}

.cs-prompt {
  font-weight: 500;
}

.cs-marks {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.cs-save {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: background 0.15s;
}

.cs-save svg {
  width: 18px;
  height: 18px;
}

.cs-save.is-hover {
  background: #f4f4fb;
}

.cs-flag {
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid #e4e2dc;
  border-radius: 50%;
  background: #fff;
}

.cs-flag.is-on {
  border-color: #c2410c;
  background: #c2410c;
}

.cs-options {
  display: flex;
  flex-direction: column;
}

.cs-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 80px;
  padding: 18px 38.4px 18px 72px;
  background: #fff;
  color: #1f2328;
  transition: background 0.12s;
}

.cs-letter {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f9f9fd;
  color: #6b6f76;
  font-size: 12px;
}

.cs-otext {
  font-size: var(--cs-text, 15px);
  line-height: 1.5;
  text-align: left;
}

.cs-opt.is-hover {
  background: #f4f4fb;
}

.cs-opt.is-hover .cs-letter {
  background: #4c6b7d;
  color: #fff;
}

.cs-opt.is-selected {
  background: var(--tint);
}

.cs-opt.is-selected .cs-letter {
  background: var(--acc);
  color: var(--ink);
}

/* Practice: the revealed solution. */
.cs-opt.is-correct {
  background: #eaf4e2;
}

.cs-opt.is-correct .cs-letter {
  background: #3f7d20;
  color: #fff;
}

.cs-opt.is-wrong {
  background: #fbe9e8;
}

.cs-opt.is-wrong .cs-letter {
  background: #c0504d;
  color: #fff;
}

.cs-note {
  flex: none;
  margin-left: auto;
  padding-left: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cs-opt.is-correct .cs-note {
  color: #2f6418;
}

.cs-opt.is-wrong .cs-note {
  color: #a23b38;
}

/* Data table of a question */
.cs-table {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid #cfccc4;
  border-radius: 8px;
  font-size: 14px;
}

.cs-table > span {
  padding: 8px 10px;
  border-top: 1px solid #e4e2dc;
  border-left: 1px solid #e4e2dc;
  text-align: center;
}

.cs-table > .is-head {
  border-top: none;
  background: #f7f6f2;
  font-weight: 600;
}

.cs-table > .is-first {
  border-left: none;
}

/* "Scroll to view full content ↓" */
.cs-hint {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  min-height: 50px;
  padding: 12px 0 16px;
}

.cs-hint__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1f4e6b;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.cs-hint__btn span {
  font-size: 17px;
  font-weight: 400;
}

.cs-hint.is-end .cs-hint__btn {
  opacity: 0;
}

.cs-hint[hidden] {
  display: none;
}

/* The logo across the question box (mock tests and practice). */
.cs-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0.05;
  mix-blend-mode: multiply;
}

.cs-watermark div {
  width: min(60%, 420px);
  height: min(70%, 260px);
  transform: rotate(-30deg);
}

.cs-watermark img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

/* Tools column */
.cs-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  flex: 1 0 240px;
  padding-top: 24px;
}

.cs-dial {
  position: relative;
  width: 190px;
  height: 190px;
}

.cs-dial svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.cs-readout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.cs-time {
  color: #2b2f36;
  font-size: 28px;
  font-weight: 600;
}

.cs-time.is-low {
  color: #c2410c;
}

.cs-count {
  color: var(--fg);
  font-size: 22px;
  font-weight: 600;
}

.cs-legend {
  display: flex;
  flex-direction: column;
  align-self: center;
  gap: 10px;
  color: #2b2f36;
  font-size: 15px;
}

.cs-legend__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cs-swatch {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sw);
}

.cs-toolbar {
  position: relative;
  display: flex;
  gap: 10px;
}

.cs-tool {
  display: grid;
  place-items: center;
  border: 1.5px solid #dedbd4;
  background: #fff;
  color: #2b2f36;
}

.cs-tool--settings {
  width: 58px;
  height: 52px;
  border-width: 2px;
  border-radius: 10px;
  color: #1f4e6b;
}

.cs-tool--settings svg {
  width: 23px;
  height: 23px;
}

.cs-tool--help {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
}

.cs-tool--exit svg {
  width: 21px;
  height: 21px;
}

/* End-of-section dialog */
.cs-backdrop {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(214, 224, 238, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, visibility 0.18s;
}

.cs-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.cs-dialog {
  display: flex;
  flex-direction: column;
  width: min(750px, 100%);
  min-height: 535px;
  padding: 32px 22px 20px 26px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(60, 80, 110, 0.18);
}

.cs-dialog__body {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex: 1;
}

.cs-dialog__icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 60px;
  border-radius: 8px;
  background: #f4f4fb;
}

.cs-dialog__icon svg {
  width: 28px;
  height: 28px;
}

.cs-dialog__icon::after {
  content: '';
  position: absolute;
  left: 22px;
  bottom: -12px;
  width: 0;
  height: 0;
  border-right: 16px solid transparent;
  border-top: 12px solid #f4f4fb;
}

.cs-dialog__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  min-width: 0;
  padding-right: 20px;
}

.cs-dialog__title {
  margin: 0;
  color: #1f2328;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.cs-dialog__text {
  margin: 0;
  color: #1f2328;
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.cs-acks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}

.cs-ack {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0;
  color: #1f2328;
  font-size: 19px;
  letter-spacing: 0.02em;
}

.cs-check {
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid #1f2328;
  border-radius: 50%;
  background: #fff;
}

.cs-ack.is-on .cs-check {
  background: #1f2328;
  box-shadow: inset 0 0 0 3px #fff;
}

.cs-dialog__clock {
  padding-top: 34px;
  color: #1f2328;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cs-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 28px;
}

.cs-dialog__cancel,
.cs-dialog__confirm {
  min-width: 134px;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  letter-spacing: 0.03em;
  line-height: normal;
  text-align: center;
  text-transform: uppercase;
}

.cs-dialog__cancel {
  border: 1px solid #e6e6ee;
  background: #fff;
  color: #4a4f57;
}

.cs-dialog__confirm {
  border: 1px solid transparent;
  background: #f4f4fb;
  color: #9aa0aa;
}

.cs-dialog__confirm.is-on {
  background: var(--acc);
  color: var(--ink);
}

/* "Wait a few moments..." */
.cs-loading {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  padding: 40px 64px;
  background: #f8f7fa;
  opacity: 0;
  visibility: hidden;
}

.cs-loading.is-open {
  opacity: 1;
  visibility: visible;
}

.cs-loading__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
  max-width: 1135px;
  min-height: 526px;
  margin: auto;
  padding: 60px 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(31, 35, 40, 0.03), 0 14px 40px rgba(31, 35, 40, 0.06);
}

.cs-loading__msg {
  color: #1f2328;
  font-size: 26px;
  letter-spacing: 0.04em;
}

.cs-loading__spin {
  padding-top: 14px;
}

.cs-spinner {
  width: 150px;
  height: 150px;
  border: 3px solid transparent;
  border-top-color: #1f4e6b;
  border-radius: 50%;
  -webkit-mask: conic-gradient(from 270deg, transparent 0deg, #000 70deg, #000 110deg, transparent 180deg);
  mask: conic-gradient(from 270deg, transparent 0deg, #000 70deg, #000 110deg, transparent 180deg);
  animation: cs-spin 1s linear infinite;
}

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

/* --- Stacked layout (tablet / phone), for the practice demo --------------- */

.cs-root.cs--stacked {
  width: auto;
  height: 100%;
}

.cs-stacked {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 16px 18px 18px;
}

.cs-mhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cs-mhead__id {
  min-width: 0;
}

.cs-mhead__logo {
  display: block;
  width: auto;
  height: 26px;
  max-width: min(100%, 180px);
  object-fit: contain;
  object-position: left center;
}

.cs-mhead__title {
  margin: 2px 0 0;
  overflow: hidden;
  color: #4a4f57;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-mhead__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.cs--stacked .cs-toolbar {
  gap: 6px;
}

.cs--stacked .cs-tool--settings {
  width: 40px;
  height: 38px;
}

.cs--stacked .cs-tool--settings svg {
  width: 18px;
  height: 18px;
}

.cs--stacked .cs-tool--help {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 16px;
}

.cs--stacked .cs-tool--exit svg {
  width: 17px;
  height: 17px;
}

.cs--stacked .cs-avatar {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.cs--stacked .cs-badge {
  gap: 10px;
}

.cs--stacked .cs-name {
  font-size: 14px;
}

.cs-timerrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.cs--stacked .cs-dial {
  width: 104px;
  height: 104px;
}

.cs--stacked .cs-time {
  font-size: 17px;
}

.cs--stacked .cs-count {
  font-size: 13px;
}

.cs--stacked .cs-legend {
  gap: 8px;
  font-size: 14px;
}

.cs--stacked .cs-legend__row {
  gap: 10px;
}

.cs--stacked .cs-swatch {
  width: 13px;
  height: 13px;
}

.cs-stacked__q {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

/* The question fills the window and gives way to the explanation when it opens. */
.cs--stacked .cs-qcard {
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  flex: 1 1 auto;
}

.cs--stacked .cs-arrow {
  width: 100%;
  font-size: 28px;
}

.cs--stacked .cs-qcontent {
  padding: 16px 0 6px;
}

.cs--stacked .cs-stem-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 0 18px 16px;
}

.cs--stacked .cs-qnum {
  margin-top: 0;
  font-size: 24px;
}

.cs--stacked .cs-stem {
  order: 1;
  flex: 1 1 100%;
  min-width: 0;
  gap: 12px;
}

.cs--stacked .cs-qtext,
.cs--stacked .cs-prompt {
  line-height: 1.55;
}

.cs--stacked .cs-marks {
  margin-left: auto;
}

.cs--stacked .cs-opt {
  gap: 12px;
  min-height: 52px;
  padding: 10px 20px;
}

.cs--stacked .cs-letter {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.cs--stacked .cs-otext {
  line-height: 1.45;
}

.cs--stacked .cs-hint {
  min-height: 40px;
  padding: 8px 0 10px;
}

.cs--stacked .cs-hint__btn {
  font-size: 13px;
}

/* Practice: "Check answer", then the verdict and the explanation. */
.cs-checkrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  flex-shrink: 0;
  padding-top: 12px;
}

.cs-checkrow__hint {
  flex: 1 1 100%;
  color: #6b6f76;
  font-size: 14px;
}

.cs-check-btn {
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  height: 38px;
  padding: 0 20px;
  border-radius: 6px;
  background: #eef0f6;
  color: #9aa0a8;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, filter 0.15s;
}

.cs-check-btn.is-on {
  background: var(--acc);
  color: var(--ink);
}

.cs-check-btn.is-on.is-hover {
  filter: brightness(1.07);
}

/* Never squeezed: the question box above shrinks instead (and scrolls). */
.cs-feedback {
  flex-shrink: 0;
}

.cs-panel {
  display: flex;
  flex-direction: column;
  max-height: 300px;
  margin-top: 12px;
  overflow: hidden;
  border-left: 4px solid var(--badge);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.05), 0 10px 30px rgba(31, 35, 40, 0.06);
  animation: cs-panel-in 0.35s var(--pl-ease) both;
}

@keyframes cs-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.cs-verdict {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 14px 16px 0;
  color: var(--note);
  font-size: 16px;
  font-weight: 600;
}

.cs-verdict__symbol {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--badge);
  color: #fff;
  font-size: 13px;
}

.cs-explanation {
  margin: 0;
  padding: 6px 16px 14px;
  overflow: hidden;
  color: #1f2328;
  font-size: var(--cs-text, 15px);
  line-height: 1.6;
  text-wrap: pretty;
}

/* Explanations are formatted HTML, as in the app: the answer and the
   method in bold, the working as a list, then a check. */
.cs-explanation b,
.cs-explanation strong {
  font-weight: 600;
  color: #0f1e33;
}

.pl .cs-explanation ul {
  margin: 4px 0 6px;
  padding: 0 0 0 22px;
  list-style: disc;
}

.pl .cs-explanation li {
  margin: 2px 0;
  padding: 0;
}

.cs-explanation li::marker {
  color: #59636e;
}

/* ==========================================================================
   App page replicas (app-*): practice setup, results, dashboard.
   Values follow the app's Tailwind / shadcn theme (client/src/index.css).
   ========================================================================== */

.app-scroll {
  position: relative;
  overflow: hidden;
}

.app-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 22px 26px;
  background: #f5f8fb;
}

.app-card {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 30, 51, 0.08), 0 1px 2px rgba(15, 30, 51, 0.05);
}

.app-eyebrow {
  margin: 0;
  color: #5b6b80;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-h1 {
  margin: 2px 0 0;
  color: #0f1e33;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.app-h2 {
  margin: 0;
  color: #0f1e33;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.app-muted {
  margin: 0;
  color: #5b6b80;
  font-size: 13px;
}

.app-icon {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
}

/* Checkbox (Base UI, shadcn base-nova) */
.app-cb {
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1px solid #d3dce7;
  border-radius: 4px;
  background: #fff;
  color: #fff;
  transition: background 0.12s, border-color 0.12s;
}

.app-cb svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.12s, transform 0.15s var(--pl-ease);
}

.is-checked > .app-row .app-cb,
.app-row.is-checked .app-cb {
  border-color: #1c385c;
  background: #1c385c;
}

.is-checked > .app-row .app-cb svg,
.app-row.is-checked .app-cb svg {
  opacity: 1;
  transform: none;
}

.app-cb--sm {
  width: 14px;
  height: 14px;
}

.app-cb--sm svg {
  width: 10px;
  height: 10px;
}

/* Segmented control (ToggleGroup, outline) */
.app-seg {
  display: inline-flex;
  flex-wrap: wrap;
  border-radius: 8px;
  background: #fff;
}

.app-seg > span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  margin-left: -1px;
  padding: 0 11px;
  border: 1px solid #d3dce7;
  background: #fff;
  color: #0f1e33;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.app-seg > span:first-child {
  margin-left: 0;
  border-radius: 8px 0 0 8px;
}

.app-seg > span:last-child {
  border-radius: 0 8px 8px 0;
}

.app-seg > span.is-hover {
  background: #eef2f7;
}

.app-seg > span.is-on {
  position: relative;
  z-index: 1;
  border-color: #1c385c;
  background: #1c385c;
  color: #fff;
}

.app-seg small {
  margin-left: 5px;
  font-size: 11.5px;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: #1c385c;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}

.app-btn svg {
  width: 16px;
  height: 16px;
}

.app-btn.is-hover {
  background: #2a4a72;
}

.app-btn.is-busy svg {
  animation: cs-spin 0.8s linear infinite;
}

/* --- Practice setup demo (feature 01) ---------------------------------------- */

.app-practice {
  height: 560px;
}

.app-practice .app-scroll {
  height: calc(100% - 52px);
}

.app-practice__card {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 16px;
  padding: 22px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 30, 51, 0.08), 0 1px 2px rgba(15, 30, 51, 0.05);
}

.app-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-step[hidden] {
  display: none;
}

.app-step.is-new {
  animation: app-step-in 0.35s var(--pl-ease) both;
}

@keyframes app-step-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.app-step__title {
  margin: 0;
  color: #0f1e33;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.app-step__desc {
  margin: 3px 0 0;
  color: #5b6b80;
  font-size: 13px;
}

.app-tree {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-subject {
  border: 1px solid #e2e8ef;
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.app-subject.is-checked {
  border-color: rgba(28, 56, 92, 0.6);
  box-shadow: 0 0 0 1px rgba(28, 56, 92, 0.2);
}

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

.app-subject > .app-row {
  padding: 12px 14px;
}

.app-subject__tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #c2e4f6;
  color: #1c385c;
  transition: background 0.2s, color 0.2s;
}

.app-subject.is-checked .app-subject__tile {
  background: #1c385c;
  color: #fff;
}

.app-subject__tile svg {
  width: 19px;
  height: 19px;
}

.app-subject__name {
  display: block;
  color: #0f1e33;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.app-subject__count {
  color: #5b6b80;
  font-size: 13px;
}

/* Opening levels animate their height (grid rows 0fr → 1fr). */
.app-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--pl-ease);
}

.app-collapse > div {
  min-height: 0;
  overflow: hidden;
}

.is-checked > .app-collapse {
  grid-template-rows: 1fr;
}

.app-chapters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid #e2e8ef;
}

.app-chapters > p,
.app-topics > p {
  margin: 0;
  color: #5b6b80;
  font-size: 12px;
}

.app-chapters ul,
.app-topics ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-chapters ul {
  gap: 7px;
}

.app-chapter {
  border: 1px solid #e2e8ef;
  border-radius: 10px;
  background: #f5f8fb;
  transition: border-color 0.2s, background 0.2s;
}

.app-chapter.is-checked {
  border-color: rgba(28, 56, 92, 0.4);
  background: rgba(229, 243, 251, 0.55);
}

.app-chapter > .app-row {
  gap: 10px;
  padding: 8px 12px;
}

.app-chapter__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #0f1e33;
  font-size: 13.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-num {
  flex: none;
  color: #5b6b80;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.app-topics {
  padding: 6px 12px 9px;
  border-top: 1px solid #e2e8ef;
}

.app-topics > p {
  margin: 0 0 3px 4px;
  font-size: 11px;
}

.app-topics ul {
  gap: 1px;
}

.app-topic {
  gap: 8px;
  padding: 4px 4px;
  border-radius: 6px;
  color: #0f1e33;
  font-size: 12.5px;
  transition: background 0.12s;
}

.app-topic.is-hover {
  background: rgba(238, 242, 247, 0.8);
}

.app-topic span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.app-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #e2e8ef;
  border-radius: 12px;
}

.app-radio.is-on {
  border-color: #1c385c;
  background: #e5f3fb;
  box-shadow: 0 0 0 1px rgba(28, 56, 92, 0.3);
}

.app-radio svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #1c385c;
}

.app-radio b {
  display: block;
  color: #0f1e33;
  font-size: 13px;
  font-weight: 600;
}

.app-radio span {
  color: #5b6b80;
  font-size: 11.5px;
  line-height: 1.4;
}

.app-practice__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e2e8ef;
}

.app-practice__foot p {
  margin: 0;
  color: #5b6b80;
  font-size: 13px;
}

/* --- Practice interface demo (feature 02) --------------------------------- */

.app-exam {
  height: 680px;
  border-radius: 18px;
  background: #fbf8fb;
}

.app-exam .cs-root {
  height: 100%;
  --cs-text: 15px;
}

/* --- The app on a computer (results and dashboard demos) ------------------ */

/* The candidate area as client/src/layouts/DashboardLayout.tsx renders it on
   a computer: the browser's top bar, the sidebar, the header with the exam
   switcher, then the page. Drawn at its real size (`--desk-w` × 800px, set by
   the script) and scaled to the width it gets (`--pl-scale`). */
.app-desk {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--desk-w, 1280px);
  height: 800px;
  transform: scale(var(--pl-scale, 0.43));
  transform-origin: 0 0;
  /* Container queries inside see the page's own width, not the scaled box. */
  container-type: inline-size;
}

.app-desktop {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* The browser's top bar: window buttons and the address. */
.app-browser {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid #e2e8ef;
  background: #eef2f7;
}

.app-browser > i {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}

.app-browser > i:nth-child(2) {
  background: #febc2e;
}

.app-browser > i:nth-child(3) {
  background: #28c840;
}

/* Balances the window buttons, so the address sits in the middle. */
.app-browser::after {
  content: '';
  flex: none;
  width: 52px;
}

.app-browser__url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 480px;
  height: 26px;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  color: #5b6b80;
  font-size: 13px;
  white-space: nowrap;
}

.app-browser__url svg {
  width: 12px;
  height: 12px;
}

.app-shell {
  display: flex;
  flex: 1;
  min-height: 0;
  background: #f5f8fb;
}

/* Sidebar (16rem): logo, navigation, then dark mode and the account. */
.app-side {
  display: flex;
  flex-direction: column;
  flex: none;
  width: 256px;
  background: #fff;
  color: #33445a;
}

.app-side__head {
  display: flex;
  align-items: center;
  flex: none;
  height: 64px;
  padding: 0 16px;
  border-bottom: 1px solid #e2e8ef;
}

.app-side__head img {
  display: block;
  width: 176px;
  height: auto;
}

.app-side__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 20px 16px;
}

.app-side__nav > span {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 15px;
  white-space: nowrap;
}

.app-side__nav svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.app-side__nav .is-on {
  background: #1c385c;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 30, 51, 0.12);
}

.app-side__foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e2e8ef;
}

.app-side__theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  font-size: 14px;
}

.app-side__theme > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-side__theme svg {
  width: 16px;
  height: 16px;
}

/* Switch, off */
.app-switch {
  position: relative;
  flex: none;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: #d3dce7;
}

.app-switch::after {
  content: '';
  position: absolute;
  left: 1px;
  top: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 30, 51, 0.2);
}

.app-side__user {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 10px;
  border-radius: 12px;
}

.app-side__user .app-avatar {
  width: 32px;
  height: 32px;
}

.app-side__user > span:nth-child(2) {
  display: grid;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
}

.app-side__user b,
.app-side__user small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-side__user b {
  font-weight: 600;
}

.app-side__user small {
  font-size: 12px;
  opacity: 0.7;
}

.app-side__user > svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.app-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* Header: sidebar toggle | exam switcher, and "Start a test" on the right. */
.app-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid #e2e8ef;
  background: rgba(245, 248, 251, 0.85);
}

.app-head__toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -4px;
  border-radius: 8px;
  color: #0f1e33;
}

.app-head__toggle svg {
  width: 16px;
  height: 16px;
}

.app-head__sep {
  width: 1px;
  height: 20px;
  background: #e2e8ef;
}

/* Exam switcher: CEnT-S, and the exams still to come (locked). */
.app-exams {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #eef2f7;
}

.app-exams > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  color: #5b6b80;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.55;
}

.app-exams > .is-on {
  background: #1c385c;
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 30, 51, 0.12);
  opacity: 1;
}

.app-exams svg {
  width: 12px;
  height: 12px;
}

.app-head .app-btn {
  height: 36px;
  gap: 6px;
  padding: 0 10px 0 8px;
}

.app-desktop .app-scroll {
  flex: 1;
  min-height: 0;
}

/* The page: main's padding (px-10 py-8), its blocks 24px apart. */
.app-desktop .app-page {
  gap: 24px;
  padding: 32px 40px;
}

.app-desktop .app-eyebrow {
  font-size: 12px;
}

.app-desktop .app-h1 {
  margin-top: 4px;
  font-size: 30px;
}

/* The app's toasts, bottom right on a computer. */
.app-desktop .app-toast {
  right: 24px;
  bottom: 24px;
  padding: 14px 18px 14px 14px;
  font-size: 14px;
}

.app-desktop .app-toast small {
  font-size: 13px;
}

/* --- Results demo (feature 03) ------------------------------------------- */

/* The review of a submitted mock test (pages/dashboard/AttemptReviewPage.tsx). */
.app-back {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  color: #5b6b80;
  font-size: 14px;
  font-weight: 500;
}

.app-back svg {
  width: 16px;
  height: 16px;
}

.app-submitted {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  color: #5b6b80;
  font-size: 14px;
}

.app-submitted svg {
  width: 16px;
  height: 16px;
}

/* ResultSummary: the score beside its figures (lg), then the section table. */
.app-summary {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-radius: 16px;
}

.app-summary__top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 24px;
}

.app-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0;
}

.app-score b {
  color: #0f1e33;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.app-score span {
  color: #5b6b80;
  font-size: 18px;
}

.app-summary .app-muted {
  font-size: 14px;
  line-height: 1.45;
}

/* Five figures in a row from 1280px (xl). */
.app-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@container (min-width: 1280px) {
  .app-figures {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.app-figure {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e2e8ef;
  border-radius: 12px;
  background: #fff;
}

.app-figure svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.app-figure > div {
  min-width: 0;
}

.app-figure small {
  display: block;
  color: #5b6b80;
  font-size: 12px;
  line-height: 16px;
}

.app-figure b {
  display: block;
  color: #0f1e33;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Every table property is set here: themes style `table`, `th` and `td` directly. */
.app-table {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e2e8ef;
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  font-size: 14px;
}

.app-table th,
.app-table td {
  padding: 8px;
  border: 0;
  border-bottom: 1px solid #e2e8ef;
  line-height: 20px;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.app-table th {
  height: 40px;
  padding-top: 0;
  padding-bottom: 0;
  background: rgba(238, 242, 247, 0.5);
  color: #0f1e33;
  font-weight: 500;
}

.app-table th:first-child,
.app-table td:first-child {
  text-align: left;
}

.app-table tbody tr {
  transition: background 0.15s;
}

.app-table tbody tr.is-hover {
  background: rgba(238, 242, 247, 0.5);
}

.app-table tfoot td {
  border-bottom: 0;
  background: rgba(238, 242, 247, 0.5);
  font-weight: 500;
}

.app-table tfoot td:first-child {
  font-weight: 600;
}

.app-table .is-meter {
  width: 128px;
}

.app-sect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.app-sect svg {
  width: 16px;
  height: 16px;
  color: #5b6b80;
}

.app-table b {
  font-weight: 600;
}

.app-table .is-dim {
  color: #5b6b80;
  font-weight: 400;
}

.app-meter {
  display: block;
  width: 96px;
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: #c2e4f6;
}

.app-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 6px;
  background: #1c385c;
}

.app-questions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Segmented control (ToggleGroup, outline): the outcome filters with their counts. */
.app-seg {
  display: inline-flex;
  border-radius: 10px;
  background: #fff;
}

.app-seg > span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d3dce7;
  border-left-width: 0;
  background: #fff;
  color: #0f1e33;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.app-seg > span:first-child {
  border-left-width: 1px;
  border-radius: 10px 0 0 10px;
}

.app-seg > span:last-child {
  border-radius: 0 10px 10px 0;
}

.app-seg > span.is-hover {
  background: #eef2f7;
}

.app-seg > span.is-on {
  background: #1c385c;
  color: #fff;
}

.app-seg small {
  margin-left: 4px;
  font-size: 12px;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.app-select {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 256px;
  height: 32px;
  padding: 0 8px 0 10px;
  border: 1px solid #d3dce7;
  border-radius: 10px;
  background: #fff;
  color: #0f1e33;
  font-size: 14px;
}

.app-select svg {
  width: 16px;
  height: 16px;
  color: #5b6b80;
}

/* "Jump to question": a row per subject, numbers coloured by outcome. */
.app-jump {
  overflow: hidden;
  border: 1px solid #e2e8ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 30, 51, 0.05);
}

.app-jump__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid #e2e8ef;
}

.app-jump__row:first-child {
  border-top: 0;
}

.app-jump__name {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: none;
  width: 240px;
  margin: 0;
  padding-top: 6px;
  color: #0f1e33;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.app-jump__name svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #5b6b80;
}

.app-jump__cells {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.app-jump__cells span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8ef;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.app-jump__cells .is-c {
  border-color: rgba(0, 99, 0, 0.4);
  background: rgba(0, 99, 0, 0.1);
  color: #006300;
}

.app-jump__cells .is-i {
  border-color: rgba(208, 59, 59, 0.4);
  background: rgba(208, 59, 59, 0.1);
  color: #d03b3b;
}

.app-jump__cells .is-u {
  border-style: dashed;
  color: #5b6b80;
}

/* The reviewed questions (QuestionReview). */
.app-reviews {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-reviews.is-swap {
  animation: app-step-in 0.4s var(--pl-ease) both;
}

.app-review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
}

.app-review__top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Subject › Chapter › Topic (TopicPath), the topic in full colour. */
.app-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  color: #5b6b80;
  font-size: 14px;
  line-height: 20px;
}

.app-crumbs svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.app-crumbs .is-sep {
  width: 14px;
  height: 14px;
}

.app-crumbs b {
  color: #0f1e33;
  font-weight: 500;
}

.app-review__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.app-review__head h4 {
  margin: 0;
  color: #0f1e33;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.app-review__tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border: 1px solid #e2e8ef;
  border-radius: 999px;
  color: #0f1e33;
  font-size: 12px;
  font-weight: 500;
}

.app-outcome {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}

.app-outcome svg {
  width: 16px;
  height: 16px;
}

.app-outcome.is-c {
  color: #006300;
}

.app-outcome.is-c svg {
  color: #0ca30c;
}

.app-outcome.is-i {
  color: #d03b3b;
}

/* SaveQuestionButton: a small ghost button, the bookmark filled once saved. */
.app-save {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  margin-right: -8px;
  padding: 0 10px 0 6px;
  border-radius: 8px;
  color: #0f1e33;
  font-size: 12.8px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.app-save svg {
  width: 14px;
  height: 14px;
  fill: none;
  transition: fill 0.15s;
}

.app-save.is-hover {
  background: #eef2f7;
}

.app-save.is-on {
  color: #1c385c;
}

.app-save.is-on svg {
  fill: currentColor;
}

.app-qtext {
  margin: 0;
  color: #0f1e33;
  font-size: 16px;
  line-height: 1.625;
}

.app-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #e2e8ef;
  border-radius: 12px;
  font-size: 14px;
}

.app-option__letter {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid #e2e8ef;
  border-radius: 50%;
  color: #0f1e33;
  font-size: 12px;
  font-weight: 600;
}

.app-option__letter svg {
  width: 16px;
  height: 16px;
}

.app-option__text {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
  color: #0f1e33;
  line-height: 1.625;
}

.app-option__note {
  flex: none;
  padding-top: 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.app-option.is-correct {
  border-color: rgba(0, 99, 0, 0.5);
  background: rgba(0, 99, 0, 0.08);
}

.app-option.is-correct .app-option__letter {
  border-color: #006300;
  background: #006300;
  color: #fff;
}

.app-option.is-correct .app-option__note {
  color: #006300;
}

.app-option.is-wrong {
  border-color: rgba(208, 59, 59, 0.5);
  background: rgba(208, 59, 59, 0.08);
}

.app-option.is-wrong .app-option__letter {
  border-color: #d03b3b;
  background: #d03b3b;
  color: #fff;
}

.app-option.is-wrong .app-option__note {
  color: #d03b3b;
}

/* Explanation: the answer key, then the explanation. */
.app-explain {
  padding: 16px;
  border: 1px solid rgba(28, 56, 92, 0.15);
  border-radius: 12px;
  background: rgba(194, 228, 246, 0.4);
}

.app-explain p {
  margin: 0;
  color: rgba(15, 30, 51, 0.9);
  font-size: 14px;
  line-height: 1.625;
}

.app-explain p:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #0f1e33;
  font-weight: 600;
  line-height: 20px;
}

.app-explain svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: #1c385c;
}

/* --- Dashboard demo (feature 04) ----------------------------------------- */

/* The dashboard page (pages/dashboard/DashboardPage.tsx) at 1280px: four tiles
   in a row, the subjects' charts three to a row. */
.app-dashboard .app-h2 {
  font-size: 18px;
}

/* "62% on average" and "Best 48.5", side by side. */
.app-split {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.app-greeting {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.app-greeting .app-muted {
  margin-top: 4px;
  font-size: 16px;
}

.app-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 6px 12px;
  border: 1px solid #e2e8ef;
  border-radius: 999px;
  background: #fff;
  color: #5b6b80;
  font-size: 14px;
  white-space: nowrap;
}

.app-date svg {
  width: 16px;
  height: 16px;
}

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

.app-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  border-radius: 16px;
}

.app-tile__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.app-tile__label {
  color: #5b6b80;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.app-tile__head svg {
  width: 18px;
  height: 18px;
  color: #5b6b80;
}

.app-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  margin: 0;
}

.app-value b {
  color: #0f1e33;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.app-value span {
  color: #5b6b80;
  font-size: 14px;
  font-weight: 500;
}

.app-tile p {
  margin: 0;
  color: #5b6b80;
  font-size: 14px;
  line-height: 1.45;
}

.app-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #006300;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.3s;
}

.app-delta svg {
  width: 16px;
  height: 16px;
}

.app-delta span {
  margin-left: 4px;
  color: #5b6b80;
  font-weight: 400;
}

.app-spark {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: auto;
  overflow: visible;
}

.app-tile__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  color: #1c385c;
  font-size: 14px;
  font-weight: 600;
}

.app-tile__link svg {
  width: 16px;
  height: 16px;
}

.app-parts {
  display: flex;
  gap: 2px;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
}

.app-parts i {
  display: block;
  height: 100%;
  transition: width 0.6s var(--pl-ease);
}

.app-parts i:first-child {
  border-radius: 8px 0 0 8px;
}

.app-parts i:last-child {
  border-radius: 0 8px 8px 0;
}

.app-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.app-legend li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.app-legend li > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5b6b80;
}

.app-legend svg {
  width: 16px;
  height: 16px;
}

.app-legend b {
  color: #0f1e33;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.app-legend b span {
  color: #5b6b80;
}

.app-target {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #c2e4f6;
}

.app-target i {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: #1c385c;
  transition: width 0.8s var(--pl-ease);
}

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

.app-trend {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border-top: 4px solid #1c385c;
  border-radius: 10px;
}

.app-trend__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

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

.app-trend__tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #c2e4f6;
  color: #1c385c;
}

.app-trend__tile svg {
  width: 20px;
  height: 20px;
}

.app-trend__name {
  overflow: hidden;
  color: #0f1e33;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-trend__latest {
  text-align: right;
}

.app-trend__latest b {
  display: block;
  color: #0f1e33;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.app-trend__latest small {
  display: block;
  margin-top: 4px;
  color: #5b6b80;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Trend chart: y labels | plot (clipped sideways, so a new point slides in) | x labels. */
.app-chart {
  position: relative;
  height: 176px;
}

.app-chart__y {
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 28px;
  width: 32px;
}

.app-chart__y em {
  position: absolute;
  right: 0;
  margin-top: -7px;
  color: #6b7a8c;
  font-size: 11px;
  font-style: normal;
  line-height: 14px;
}

.app-chart__plot {
  position: absolute;
  left: 38px;
  right: 12px;
  top: 10px;
  bottom: 28px;
}

.app-chart__plot > span {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid #e6ebf1;
}

.app-chart__plot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.app-chart__line {
  fill: none;
  stroke: #1c385c;
  stroke-width: 2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.app-chart__dot,
.app-chart__hover {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1c385c;
}

.app-chart__hover {
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  opacity: 0;
  transition: opacity 0.15s;
}

.app-chart__x {
  position: absolute;
  left: 38px;
  right: 12px;
  bottom: 4px;
  height: 14px;
  color: #6b7a8c;
  font-size: 11px;
  line-height: 14px;
}

.app-chart__x span {
  position: absolute;
  top: 0;
  white-space: nowrap;
  transform: translateX(-50%);
}

.app-chart__x .is-first {
  transform: none;
}

.app-chart__x .is-last {
  transform: translateX(-100%);
}

.app-chart__tip {
  position: absolute;
  z-index: 5;
  min-width: 176px;
  padding: 8px 12px;
  border: 1px solid #e2e8ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 30, 51, 0.14);
  font-size: 12px;
  opacity: 0;
  transform: translate(-50%, -100%) translateY(-12px);
  transition: opacity 0.15s;
}

.app-chart__tip.is-right {
  transform: translate(calc(-100% + 18px), -100%) translateY(-12px);
}

.app-chart__tip b span {
  display: inline-block;
  width: 12px;
  height: 2px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 2px;
  background: #1c385c;
}

.app-chart__tip.is-on,
.app-chart__hover.is-on {
  opacity: 1;
}

.app-chart__tip b {
  color: #0f1e33;
  font-size: 16px;
}

.app-chart__tip p {
  margin: 4px 0 0;
  color: #5b6b80;
  white-space: nowrap;
}

.app-chart__tip p:nth-child(2) {
  color: #0f1e33;
  font-weight: 500;
}

.app-trend__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8ef;
  color: #5b6b80;
  font-size: 14px;
}

.app-trend__foot b {
  color: #0f1e33;
  font-weight: 600;
}

.app-trend__foot > span:first-child {
  display: flex;
  gap: 16px;
}

.app-trend__view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
}

.app-trend__view svg {
  width: 14px;
  height: 14px;
}


/* Inside the demos: the desktop demos (`.app-desk`) are their own
   containers, as wide as the window they draw, so these only reach the
   practice setup and the stacked CENT-S demo. */
@container (max-width: 520px) {
  .app-radios {
    grid-template-columns: 1fr;
  }

  /* The app's phone header: smaller logo and title, the avatar alone. */
  .cs--stacked .cs-name {
    display: none;
  }

  .cs--stacked .cs-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .cs-mhead__logo {
    height: 22px;
  }

  .cs-mhead__title {
    font-size: 12.5px;
  }

  .cs-mhead__actions {
    gap: 8px;
  }
}

@container (max-width: 400px) {
  .app-practice__card {
    margin: 10px;
    padding: 18px 14px;
  }

  .cs-stacked {
    padding: 12px 12px 14px;
  }

  .cs--stacked .cs-opt {
    padding: 10px 14px;
    min-height: 52px;
  }

  .app-exam .cs-root {
    --cs-text: 14px;
  }
}

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