:root {
  --bg: #f2f6f3;
  --surface: #ffffff;
  --ink: #13211a;
  --muted: #627069;
  --line: #d7e1da;
  --soft: #edf4ef;
  --primary: #19766a;
  --primary-dark: #10584f;
  --accent: #d46b35;
  --danger: #a33d3d;
  --shadow: 0 18px 48px rgba(24, 45, 35, .11);
  --question-inline-padding: clamp(26px, 3vw, 36px);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(25, 118, 106, .05), transparent 32%),
    var(--bg);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

button, input, select, textarea { font: inherit; letter-spacing: 0; }
.hidden { display: none !important; }
.shell { width: min(1440px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 48px; }
.surface {
  min-height: 620px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.intro { max-width: 1380px; min-height: 0; margin: 2vh auto 0; }
.preflight { max-width: 1180px; margin: 0 auto; }
.preflight-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.preflight-heading .lead { margin-bottom: 0; }
.step-badge {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid #bcd4ca;
  border-radius: 6px;
  color: var(--primary-dark);
  background: #edf7f3;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.preflight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
  gap: 34px;
  margin-top: 28px;
  align-items: start;
}
.preflight-copy { min-width: 0; }
.guide-section {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 24px;
}
.guide-section + .guide-section { padding-top: 24px; border-top: 1px solid var(--line); }
.guide-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-weight: 850;
}
.plain-list { margin: 12px 0 0; padding-left: 22px; color: #3d4b44; line-height: 1.58; }
.plain-list li { margin: 7px 0; }
.privacy-section p { margin: 11px 0 0; color: #3d4b44; line-height: 1.6; }
.consent-panel {
  padding: 18px;
  border: 1px solid #bcd4ca;
  border-radius: 7px;
  background: #f3f8f5;
}
.consent-panel h3 { margin-bottom: 12px; }
.check-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 11px 0;
  font-weight: 600;
  line-height: 1.48;
}
.check-row + .check-row { border-top: 1px solid #d5e3dc; }
.check-row input {
  width: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}
.camera-check {
  position: sticky;
  top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfb;
}
.camera-check-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.camera-label {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.status-pill {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}
.status-pill.neutral { color: var(--muted); background: #f2f5f3; }
.status-pill.ready { color: #155b49; border-color: #a8d7c6; background: #e7f6ef; }
.status-pill.failed { color: #852f2f; border-color: #e2b2b2; background: #fff2f2; }
.camera-preview-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid #b9c9c0;
  border-radius: 6px;
  aspect-ratio: 16 / 10;
  background: #17241e;
}
.camera-preview-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scaleX(-1);
}
.detector-check-row {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}
.camera-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 24px;
  color: #dfe8e3;
  text-align: center;
  background: #17241e;
}
.camera-placeholder small { max-width: 260px; color: #afbeb7; line-height: 1.45; }
.camera-placeholder-icon {
  width: 48px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid #7fa398;
  border-radius: 6px;
  color: #bcd4ca;
  font-size: 11px;
  font-weight: 850;
}
.camera-help { margin: 12px 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.network-check {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.camera-device-check { padding-top: 2px; }
.network-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0;
}
.network-metrics div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.network-metrics span { display: block; color: var(--muted); font-size: 12px; }
.network-metrics strong { display: block; margin-top: 4px; font-size: 17px; }
.wide-button { width: 100%; }
.preflight-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: 44px; line-height: 1.12; }
h2 { margin: 2px 0 0; font-size: 30px; line-height: 1.2; }
h3 { margin: 0; font-size: 21px; }
.lead { max-width: 720px; margin: 14px 0 26px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.muted { color: var(--muted); }
.stage-heading {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 28px 0 22px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.stage-heading p { margin: 7px 0 0; color: var(--muted); line-height: 1.55; }
.stage-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-weight: 850;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.full-span { grid-column: 1 / -1; }
label { display: grid; gap: 7px; font-weight: 750; }
input, select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #cbd7cf;
  border-radius: 7px;
  outline: none;
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input[readonly] { color: #536159; background: #f4f7f5; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(25, 118, 106, .12); }
.full-field { margin: 16px 0; }
.field-help { margin: -7px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.inline-help { color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.45; }
.optional-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.data-use-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--primary);
  background: #f1f7f4;
}
.data-use-note strong { display: block; margin-bottom: 5px; }
.data-use-note p { margin: 0; color: #405048; line-height: 1.55; }
.registration-consent { margin-top: 12px; }
.registration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.registration-success {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #afd5c8;
  border-radius: 7px;
  background: #edf8f3;
}
.registration-success h2 { font-size: 25px; }
.registration-success p { margin: 8px 0 0; color: #3e5048; line-height: 1.55; }
.success-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 23px;
  font-weight: 900;
}
.registration-reference { font-weight: 750; }
.access-panel { margin-top: 22px; }
.access-panel .stage-heading { margin-top: 0; }
.button {
  min-height: 46px;
  padding: 0 19px;
  border: 0;
  border-radius: 7px;
  font-weight: 800;
  cursor: pointer;
}
.button:disabled { cursor: not-allowed; opacity: .48; }
.primary { color: #fff; background: var(--primary); }
.primary:hover:not(:disabled) { background: var(--primary-dark); }
.secondary { color: var(--ink); border: 1px solid var(--line); background: var(--soft); }
.danger { color: var(--danger); border: 1px solid #e6c9c9; background: #fff7f7; }
.error { margin: 14px 0; padding: 11px 13px; border-left: 4px solid var(--danger); color: var(--danger); background: #fff5f5; }

/* Registration is intentionally larger for comfortable reading at normal browser zoom. */
#introView { padding: 54px 60px; }
#introView h1 { font-size: 68px; line-height: 1.1; }
#introView .eyebrow { font-size: 21px; }
#introView .lead { max-width: 1100px; font-size: 26px; line-height: 1.6; }
#introView .stage-heading {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 22px;
  margin: 40px 0 34px;
}
#introView .stage-number {
  width: 54px;
  height: 54px;
  font-size: 25px;
}
#introView h2 { font-size: 44px; }
#introView .stage-heading p { font-size: 22px; line-height: 1.65; }
#introView .form-grid { gap: 30px 34px; }
#introView label { gap: 12px; font-size: 22px; line-height: 1.45; }
#introView input,
#introView select,
#introView textarea {
  min-height: 76px;
  padding: 18px 20px;
  font-size: 24px;
  border-width: 2px;
}
#introView textarea { min-height: 150px; }
#introView .inline-help,
#introView .optional-label,
#introView .field-help { font-size: 19px; line-height: 1.55; }
#introView .data-use-note { padding: 24px 26px; font-size: 20px; }
#introView .registration-consent { font-size: 20px; }
#introView .registration-consent input { width: 30px; min-height: 30px; }
#introView .button { min-height: 70px; padding: 0 30px; font-size: 22px; }
#introView .error { font-size: 20px; line-height: 1.55; }

.intro-brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(40, 122, 108, .2);
}
.intro-brand-row > div { min-width: 0; }
.lightweight-badge {
  flex: 0 0 auto;
  max-width: 250px;
  padding: 13px 16px;
  border: 1px solid rgba(22, 157, 143, .28);
  border-radius: 7px;
  color: #0b665d;
  background: linear-gradient(120deg, #ebfaf4, #eef6ff 58%, #fff3f7);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}
.registration-wizard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-top: 28px;
}
.registration-wizard-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}
.registration-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 24px;
}
.registration-progress-item {
  min-width: 0;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(73, 122, 111, .24);
  border-radius: 6px;
  color: #52665f;
  background: rgba(246, 251, 248, .88);
  cursor: pointer;
}
.registration-progress-item span {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(49, 117, 103, .25);
  border-radius: 50%;
  background: #fff;
  font-size: 16px;
  font-weight: 850;
}
.registration-progress-item strong { min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.registration-progress-item.visited {
  color: #075c51;
  border-color: rgba(20, 153, 134, .35);
  background: linear-gradient(135deg, #e7f8ef, #eaf7fb);
}
.registration-progress-item.visited span { color: #fff; border-color: transparent; background: #118b7c; }
.registration-progress-item.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(105deg, #078172, #14a9a0 40%, #3373c5 75%, #ca4e83);
  box-shadow: 0 9px 22px rgba(24, 126, 142, .22);
}
.registration-progress-item.active span { color: #09665d; border-color: #fff; background: #fff; }
.registration-progress-item:disabled { cursor: not-allowed; opacity: .44; }
.registration-pages {
  min-height: 560px;
  margin-top: 18px;
  padding: 26px 4px 20px;
  border-top: 1px solid rgba(37, 128, 113, .16);
  border-bottom: 1px solid rgba(37, 128, 113, .16);
}
.registration-page { animation: preflightReveal .24s ease-out; }
.registration-page > h3 { font-size: 32px; }
.registration-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin-top: 26px;
}
.registration-fact-grid > div {
  min-width: 0;
  padding: 18px 2px 2px;
  border-top: 5px solid #12a28f;
}
.registration-fact-grid > div:nth-child(2) { border-top-color: #25afd0; }
.registration-fact-grid > div:nth-child(3) { border-top-color: #df7444; }
.registration-fact-grid > div:nth-child(4) { border-top-color: #d5a529; }
.registration-fact-grid strong { display: block; font-size: 23px; }
.registration-fact-grid p { margin: 8px 0 0; color: #475a52; font-size: 20px; line-height: 1.6; }
.humane-note {
  margin-top: 30px;
  padding: 20px 22px;
  border-left: 5px solid #2f72c6;
  background: linear-gradient(120deg, rgba(235, 249, 243, .95), rgba(237, 246, 255, .92));
}
.humane-note strong { display: block; font-size: 21px; }
.humane-note p { margin: 7px 0 0; color: #40564d; font-size: 19px; line-height: 1.55; }
.registration-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.registration-summary div {
  min-width: 0;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
}
.registration-summary span { display: block; color: var(--muted); font-size: 16px; }
.registration-summary strong { display: block; margin-top: 4px; font-size: 20px; line-height: 1.45; }
.registration-wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
}
.registration-page-actions { display: flex; justify-content: flex-end; gap: 12px; }
.action-guidance {
  position: relative;
  margin: 20px 0 0;
  padding: 15px 18px 15px 54px;
  border: 1px solid rgba(38, 137, 122, .26);
  border-left: 5px solid #168f80;
  border-radius: 6px;
  color: #284b43;
  background: linear-gradient(115deg, rgba(229, 248, 240, .96), rgba(235, 247, 255, .94) 58%, rgba(255, 242, 248, .9));
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}
.action-guidance::before {
  content: "i";
  position: absolute;
  top: 15px;
  left: 17px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #0b8b7b, #2377c4);
  box-shadow: 0 5px 14px rgba(25, 128, 137, .22);
  font-size: 15px;
  font-weight: 900;
}
.otp-status-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid #bcd7cd;
  border-radius: 7px;
  background: #bcd7cd;
}
.otp-status-card > div { min-width: 0; padding: 17px 19px; background: #f5fbf8; }
.otp-status-card span { display: block; color: var(--muted); font-size: 16px; font-weight: 700; }
.otp-status-card strong { display: block; margin-top: 5px; color: #0b5f56; font-size: 22px; line-height: 1.35; }
.otp-status-card.expiring > div { background: #fff8ec; }
.otp-status-card.expired > div { background: #fff2f2; }
.otp-status-card.expired strong { color: #8d3434; }
.otp-expiry-warning {
  margin: 0 0 18px;
  padding: 15px 17px;
  border-left: 5px solid #dd7440;
  color: #6d3d25;
  background: #fff5eb;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.assessment-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.assessment-header > div:first-child { flex: 1 1 360px; min-width: 0; }
.timer-box {
  width: 150px;
  flex: 0 0 150px;
  padding: 11px 14px;
  border-radius: 7px;
  color: #fff;
  background: #14271f;
}
.timer-box span { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.timer-box strong { display: block; margin-top: 2px; font-size: 27px; }
.progress-track { height: 8px; margin: 20px 0 26px; overflow: hidden; border-radius: 4px; background: #e6ede8; }
.progress-track progress { display: block; width: 100%; height: 100%; border: 0; appearance: none; background: #e6ede8; }
.progress-track progress::-webkit-progress-bar { background: #e6ede8; }
.progress-track progress::-webkit-progress-value { background: var(--primary); }
.progress-track progress::-moz-progress-bar { background: var(--primary); }

.instruction-layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.instruction-copy { font-size: 17px; line-height: 1.65; }
.instruction-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}
.instruction-guide-grid section {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid #c9ddd4;
  border-radius: 6px;
  background: linear-gradient(145deg, #fff, #eef8f4);
}
.instruction-guide-grid section > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #087f70, #2876c7);
  font-weight: 900;
}
.instruction-guide-grid strong { display: block; color: #123c33; font-size: 18px; }
.instruction-guide-grid p { margin: 5px 0 0; color: #536760; font-size: 16px; line-height: 1.55; }
.instruction-image, .question-image, .memory-image {
  display: block;
  max-width: 100%;
  max-height: 56vh;
  margin: 0 auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.image-view {
  width: 100%;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.image-zoom-button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #b9c9c0;
  border-radius: 6px;
  color: var(--primary);
  background: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.image-zoom-button:hover { border-color: var(--primary); background: #edf7f3; }
.instruction-image { width: min(900px, 100%); max-height: 540px; }
  .notice {
    margin: 18px 0;
    padding: 14px 16px;
    border-left: 4px solid var(--accent);
    color: #493326;
    background: #fff7ef;
    line-height: 1.55;
  }
  .timing-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0;
    margin: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .timing-summary div { padding: 12px 14px; border-right: 1px solid var(--line); }
  .timing-summary div:last-child { border-right: 0; }
  .timing-summary dt { color: var(--muted); font-size: 13px; font-weight: 700; }
  .timing-summary dd { margin: 2px 0 0; color: var(--ink); font-size: 17px; font-weight: 800; }
  .instruction-rules { margin: 18px 0; padding-left: 24px; }
  .instruction-rules li { margin: 7px 0; padding-left: 4px; }
  .asset-check {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 6px;
    line-height: 1.5;
  }
  .asset-check.checking { color: #4c5d54; background: #f4f7f5; }
  .asset-check.ready { color: #155b49; border-color: #a8d7c6; background: #edf8f3; }
  .asset-check.failed { color: #852f2f; border-color: #e2b2b2; background: #fff2f2; }
  .button:disabled {
    cursor: wait;
    opacity: .58;
  }
  .actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.actions-right { display: flex; gap: 10px; }

.question-stage {
  width: min(100%, 920px);
  margin: 0 auto;
}
.question-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--muted); font-weight: 700; }
.item-timer {
  min-width: 62px;
  padding: 6px 10px;
  border-radius: 6px;
  color: #fff;
  text-align: center;
  background: var(--primary);
}
.stimulus {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: var(--question-inline-padding);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.question-image { width: auto; max-height: 48vh; border: 0; }
.master-text-question {
  width: min(100%, 82ch);
  margin-inline: auto;
  padding: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.55;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.source-image-view { margin-top: 4px; }
.source-question-image { display: none; }
.choice-grid { display: grid; grid-template-columns: repeat(5, minmax(72px, 1fr)); gap: 10px; margin-top: 18px; }
.choice {
  position: relative;
  min-height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid #c9d5cd;
  border-radius: 7px;
  background: #fff;
  font-size: 20px;
  font-weight: 850;
  cursor: pointer;
}
.choice:hover, .choice.selected { border-color: var(--primary); background: #eaf5f1; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.answer-input { max-width: 520px; margin: 18px auto 0; display: block; text-align: center; font-size: 20px; }
.skip-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; text-align: center; }

.review-intro { max-width: 760px; line-height: 1.6; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 9px; margin: 20px 0; }
.review-item {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.review-item.missing { border-color: #dfaa83; background: #fff5eb; }
.review-item.answered { color: #176357; background: #eaf5f1; }
.review-item span { display: block; margin-top: 3px; font-size: 11px; font-weight: 650; }

.evidence-intro-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.evidence-intro-summary > * {
  padding: 9px 12px;
  border: 1px solid #bfd4ca;
  border-radius: 6px;
  color: #184f46;
  background: #edf7f3;
}

@media (max-width: 760px) {
  .instruction-guide-grid { grid-template-columns: 1fr; }
  .instruction-guide-grid section { min-height: 0; }
}
.evidence-stage {
  width: min(100%, 1120px);
  margin: 0 auto;
}
.evidence-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 700;
}
.difficulty-badge {
  padding: 6px 10px;
  border: 1px solid #b7d2c7;
  border-radius: 6px;
  color: #155b49;
  background: #eaf5f1;
  font-size: 14px;
  font-weight: 850;
}
.reading-stimulus,
.data-stimulus {
  width: 100%;
  padding: var(--question-inline-padding);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfb;
}
.reading-stimulus h3,
.data-stimulus h3 { font-size: 24px; }
.reading-stimulus > p:not(.evidence-context) {
  margin: 15px auto 0;
  color: #26342d;
  font-size: 19px;
  line-height: 1.72;
}
.reading-stimulus > h3,
.reading-stimulus > p,
.reading-stimulus > .case-document-stack {
  width: 100%;
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
}
.evidence-context {
  margin: 0 auto 7px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}
.data-stimulus > p { color: var(--muted); font-size: 17px; line-height: 1.5; }
.evidence-chart-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 18px;
  padding: 8px;
  border: 1px solid #d8e0dc;
  border-radius: 6px;
  background: #fff;
}
.evidence-chart { width: 100%; min-width: 620px; height: auto; display: block; }
.chart-grid-line { stroke: #d8e0dc; stroke-width: 1; }
.chart-axis-label { fill: #45554d; font-size: 14px; font-family: "Segoe UI", Arial, sans-serif; }
.chart-value-label { fill: #1d2923; font-size: 13px; font-weight: 750; font-family: "Segoe UI", Arial, sans-serif; }
.chart-legend-label { fill: #26342d; font-size: 14px; font-family: "Segoe UI", Arial, sans-serif; }
.chart-data-details { margin-top: 13px; }
.chart-data-details summary { cursor: pointer; color: var(--primary-dark); font-weight: 800; }
.evidence-table-wrap { width: 100%; overflow-x: auto; margin-top: 14px; }
.evidence-table { width: 100%; min-width: 620px; border-collapse: collapse; background: #fff; }
.evidence-table th,
.evidence-table td {
  padding: 12px 13px;
  border: 1px solid #d6dfda;
  text-align: right;
  font-size: 17px;
  white-space: nowrap;
}
.evidence-table th:first-child,
.evidence-table td:first-child { text-align: left; }
.evidence-table thead th { color: #fff; background: #235f58; }
.evidence-question {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.evidence-question h3 { font-size: 23px; line-height: 1.45; }
.evidence-options { margin-top: 16px; }
.evidence-options .option-row { align-items: flex-start; font-size: 18px; line-height: 1.5; }
.evidence-options .option-row strong { flex: 0 0 24px; color: var(--primary-dark); }
.evidence-actions { display: grid; grid-template-columns: auto auto minmax(150px, 1fr); }
.evidence-actions .button:last-child { justify-self: end; }
.evidence-review-grid .review-item { min-height: 58px; }

.personality-stage { max-width: 860px; margin: 0 auto; }
.bei-fields { display: grid; gap: 18px; }
.bei-field { display: grid; gap: 7px; }
.bei-label { font-weight: 800; color: var(--ink); }
.bei-field textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  line-height: 1.55;
}
.role-fit-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}
.role-fit-context div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbf9;
}
.role-fit-context span { display: block; color: var(--muted); font-size: 13px; }
.role-fit-context strong { display: block; margin-top: 3px; }
.statement { margin: 10px 0 22px; font-size: 22px; line-height: 1.5; }
.binary-options, .vertical-options { display: grid; gap: 11px; }
.option-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.option-row:hover, .option-row.selected { border-color: var(--primary); background: #edf7f3; }
.option-row input { width: 20px; min-height: 20px; margin: 0; }

/* Keep every long question on one clean reading grid. */
.reading-stimulus > p:not(.evidence-context),
.data-stimulus > p,
.reasoning-stimulus > p,
.evidence-dashboard-panel > p,
.case-document-stack p,
.dashboard-notes li,
.instruction-guide-grid p {
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.evidence-question h3,
.statement,
.option-row,
.evidence-option-content,
.evidence-option-content > span:last-child {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.evidence-question,
.vertical-options,
.binary-options,
.choice-grid,
.actions {
  width: 100%;
}

.disc-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.disc-table th, .disc-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.disc-table th:not(:first-child), .disc-table td:not(:first-child) { width: 150px; text-align: center; }
.disc-table input { width: 20px; min-height: 20px; margin: 0 auto; }
.disc-table tr.selected-most { background: #eaf5f1; }
.disc-table tr.selected-least { box-shadow: inset 4px 0 0 #d88855; }

.kraep-stage { max-width: 620px; margin: 6vh auto 0; text-align: center; }
.kraep-sum { margin: 30px 0 18px; font-size: 72px; font-weight: 850; }
.kraep-reminder { margin: -6px 0 18px; color: var(--muted); font-size: 15px; font-weight: 700; }
.kraep-input { width: 180px; min-height: 72px; margin: 0 auto; text-align: center; font-size: 34px; }
.memory-wrap { text-align: center; }
.memory-countdown { margin: 12px 0 18px; font-size: 40px; font-weight: 850; color: var(--primary); }
.memory-image { width: min(920px, 100%); max-height: 58vh; }
.complete { min-height: 420px; display: grid; place-content: center; text-align: center; }
.complete-mark { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; color: #fff; background: var(--primary); font-size: 36px; }
.complete p { margin: 8px 0; font-size: 18px; }
.proctor-dock {
  width: 286px;
  flex: 0 0 286px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-areas:
    "status status"
    "video detector"
    "video upload";
  align-items: center;
  column-gap: 10px;
  padding: 9px;
  border: 1px solid #a9bdb3;
  border-radius: 7px;
  color: #fff;
  background: #15241d;
  box-shadow: 0 12px 28px rgba(8, 20, 14, .24);
}
.proctor-status-line {
  grid-area: status;
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  font-size: 12px;
}
.recording-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #e0554f;
  box-shadow: 0 0 0 4px rgba(224, 85, 79, .15);
  animation: recordingPulse 1.5s ease-in-out infinite;
}
.proctor-dock video {
  grid-area: video;
  width: 100%;
  display: block;
  border-radius: 5px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scaleX(-1);
  background: #0b120f;
}
.proctor-dock small {
  display: block;
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: #bfcdc6;
  font-size: 10px;
  line-height: 1.35;
}
.proctor-dock #detectorRuntimeStatus { grid-area: detector; }
.proctor-dock #proctorUploadText { grid-area: upload; }
.camera-issue {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 18, 14, .86);
}
.camera-issue-panel {
  width: min(520px, 100%);
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.camera-issue-panel p:not(.eyebrow):not(.error) { color: var(--muted); line-height: 1.6; }
.busy { position: fixed; inset: 0; z-index: 20; display: grid; place-content: center; text-align: center; color: #fff; background: rgba(12, 27, 20, .74); }
.image-zoom {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 18, 14, .86);
}
.image-zoom-panel {
  width: min(1400px, 100%);
  height: min(92vh, 1000px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
}
.image-zoom-toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 20px;
  border-bottom: 1px solid var(--line);
}
.image-zoom-scroll {
  overflow: auto;
  padding: 20px;
  background: #f1f5f2;
}
.image-zoom-scroll img {
  display: block;
  width: auto;
  max-width: none;
  max-height: none;
  margin: 0 auto;
  background: #fff;
}
.image-zoom-open { overflow: hidden; }
.spinner { width: 42px; height: 42px; margin: 0 auto; border: 4px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes recordingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 20px, 1180px); padding-top: 10px; }
  .surface { min-height: calc(100vh - 20px); padding: 20px; }
  .intro { margin-top: 0; }
  h1 { font-size: 34px; }
  h2 { font-size: 25px; }
  .form-grid, .instruction-layout, .preflight-grid { grid-template-columns: 1fr; }
  .preflight-heading { display: block; }
  .step-badge { width: max-content; margin-top: 16px; }
  .camera-check { position: static; }
  .preflight-actions { grid-template-columns: 1fr; }
  .preflight-actions .button { width: 100%; }
  .registration-actions { display: grid; grid-template-columns: 1fr; }
  .registration-actions .button { width: 100%; }
  #introView { padding: 32px 24px; }
  #introView h1 { font-size: 50px; }
  #introView .eyebrow { font-size: 18px; }
  #introView .lead { font-size: 22px; }
  #introView h2 { font-size: 36px; }
  #introView .stage-heading p { font-size: 20px; }
  #introView label { font-size: 20px; }
  #introView input,
  #introView select,
  #introView textarea { min-height: 70px; font-size: 21px; }
  .intro-brand-row { display: block; }
  .lightweight-badge { display: inline-block; max-width: none; margin-top: 10px; font-size: 15px; }
  .registration-wizard-heading { display: block; }
  .registration-wizard-heading .step-badge { display: inline-block; margin-top: 14px; }
  .registration-progress { gap: 4px; }
  .registration-progress-item { min-height: 76px; flex-direction: column; gap: 4px; padding: 7px 2px; }
  .registration-progress-item span { width: 29px; height: 29px; flex-basis: 29px; font-size: 14px; }
  .registration-progress-item strong { font-size: 11px; }
  .registration-pages { min-height: 0; padding-top: 22px; }
  .registration-page > h3 { font-size: 28px; }
  .registration-fact-grid, .registration-summary, .otp-status-card { grid-template-columns: 1fr; }
  .registration-fact-grid { gap: 18px; }
  .registration-fact-grid p { font-size: 18px; }
  .registration-wizard-actions { align-items: stretch; flex-direction: column-reverse; }
  .registration-page-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .registration-wizard-actions > .button, .registration-page-actions .button { width: 100%; }
  .registration-page-actions #submitRegistration { grid-column: 1 / -1; }
  .role-fit-context { grid-template-columns: 1fr; }
  .assessment-header { align-items: center; }
  .timer-box { width: 118px; flex-basis: 118px; }
  .choice-grid { grid-template-columns: repeat(5, minmax(50px, 1fr)); }
  .choice { min-height: 54px; }
  .timing-summary { grid-template-columns: 1fr 1fr; }
  .timing-summary div:nth-child(even) { border-right: 0; }
  .timing-summary div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .timing-summary div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
  .disc-table th:not(:first-child), .disc-table td:not(:first-child) { width: 74px; padding: 12px 6px; }
  :root { --question-inline-padding: 22px; }
  .stimulus, .reading-stimulus, .data-stimulus { padding: var(--question-inline-padding); }
  .reading-stimulus > p:not(.evidence-context) { font-size: 18px; }
  .evidence-actions { grid-template-columns: 1fr; }
  .evidence-actions .button { width: 100%; }
  .evidence-actions .button:last-child { justify-self: stretch; }
  .evidence-chart { min-width: 0; }
  .chart-axis-label { font-size: 18px; }
  .chart-value-label { font-size: 19px; }
  .chart-legend-label { font-size: 18px; }
  .kraep-sum { font-size: 54px; }
  .master-text-question { padding: 0; font-size: 19px; line-height: 1.58; }
  .visual-question-image { max-height: none; }
  .image-zoom { padding: 8px; }
  .image-zoom-panel { height: calc(100vh - 16px); }
  .image-zoom-toolbar { min-height: 56px; padding-left: 14px; }
  .image-zoom-scroll { padding: 12px; }
  .actions { align-items: stretch; flex-direction: column; }
  .actions-right { display: grid; grid-template-columns: 1fr 1fr; }
  .proctor-dock {
    width: 100%;
    flex: 1 1 100%;
    grid-template-columns: 92px minmax(0, 1fr);
    padding: 9px;
  }
  .proctor-dock video { aspect-ratio: 4 / 3; }
  .proctor-status-line { font-size: 10px; }
}

/* v16.26 luminous assessment experience */
:root {
  --bg: #041917;
  --surface: #ffffff;
  --ink: #10231d;
  --muted: #5d6f68;
  --line: #cfe0d8;
  --soft: #edf7f2;
  --primary: #087f70;
  --primary-dark: #045a52;
  --accent: #f16f45;
  --gold: #e8a82c;
  --cyan: #16b8d4;
  --cobalt: #2864c7;
  --magenta: #d84f87;
  --danger: #a33d3d;
  --shadow: 0 22px 58px rgba(0, 19, 18, .34), 0 0 32px rgba(28, 195, 176, .12);
}

html { background: #031513; }
body {
  background-color: #031513;
  background-image:
    linear-gradient(145deg, rgba(0, 19, 20, .25), rgba(3, 27, 38, .62)),
    url("./assets/ui/luminous-glass-background-v1.webp");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
.shell { position: relative; }
.surface {
  position: relative;
  border-color: rgba(197, 233, 221, .74);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .985), rgba(245, 253, 249, .955) 54%, rgba(251, 248, 255, .97));
  box-shadow:
    0 24px 70px rgba(0, 15, 19, .42),
    0 0 0 1px rgba(255, 255, 255, .52),
    0 0 34px rgba(20, 202, 178, .14),
    0 0 54px rgba(241, 111, 69, .07);
  backdrop-filter: none;
}
.surface::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -1px;
  right: 14px;
  left: 14px;
  height: 5px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(90deg, #0db09a, #22bce0, #356de0, #d8518d, #f27643, #e7b32e, #0db09a);
  background-size: 220% 100%;
  box-shadow: 0 0 18px rgba(30, 188, 205, .55);
  animation: luminousFlow 12s linear infinite;
}
.surface::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 25px;
  right: 29px;
  width: 9px;
  height: 9px;
  pointer-events: none;
  opacity: .72;
  background: #20b9c9;
  transform: rotate(45deg);
  box-shadow:
    -20px 15px 0 -2px #ec7a45,
    16px 20px 0 -3px #d65086,
    -8px 37px 0 -3px #e6ad2e,
    25px 47px 0 -3px #3470cb;
}

.surface-confetti-layer {
  position: absolute;
  z-index: 0;
  inset: 7px;
  border-radius: 6px;
  opacity: .56;
  pointer-events: none;
  background:
    radial-gradient(circle, #55cbb6 0 2px, transparent 2.5px) 5px 9% / 7px 7px no-repeat,
    linear-gradient(45deg, transparent 35%, #ef8dab 36% 64%, transparent 65%) 4px 18% / 8px 8px no-repeat,
    radial-gradient(ellipse, #e9b64d 0 48%, transparent 53%) 5px 29% / 5px 11px no-repeat,
    radial-gradient(circle, #74a3e9 0 1.9px, transparent 2.4px) 5px 40% / 6px 6px no-repeat,
    linear-gradient(135deg, transparent 35%, #9a8ce2 36% 64%, transparent 65%) 4px 52% / 8px 8px no-repeat,
    radial-gradient(circle, #ef9a72 0 2.1px, transparent 2.6px) 5px 64% / 7px 7px no-repeat,
    radial-gradient(ellipse, #6bcfc0 0 48%, transparent 53%) 5px 76% / 5px 11px no-repeat,
    linear-gradient(45deg, transparent 35%, #df77a1 36% 64%, transparent 65%) 4px 88% / 8px 8px no-repeat,
    radial-gradient(circle, #efbd55 0 2px, transparent 2.5px) calc(100% - 6px) 7% / 7px 7px no-repeat,
    radial-gradient(ellipse, #7fa6ea 0 48%, transparent 53%) calc(100% - 5px) 16% / 5px 11px no-repeat,
    linear-gradient(135deg, transparent 35%, #5acbb6 36% 64%, transparent 65%) calc(100% - 7px) 27% / 8px 8px no-repeat,
    radial-gradient(circle, #eb8cab 0 1.9px, transparent 2.4px) calc(100% - 6px) 39% / 6px 6px no-repeat,
    linear-gradient(45deg, transparent 35%, #e99a6d 36% 64%, transparent 65%) calc(100% - 7px) 51% / 8px 8px no-repeat,
    radial-gradient(ellipse, #9b8ce3 0 48%, transparent 53%) calc(100% - 5px) 63% / 5px 11px no-repeat,
    radial-gradient(circle, #5fc9d7 0 2.1px, transparent 2.6px) calc(100% - 6px) 75% / 7px 7px no-repeat,
    linear-gradient(135deg, transparent 35%, #e9b64e 36% 64%, transparent 65%) calc(100% - 7px) 89% / 8px 8px no-repeat,
    radial-gradient(circle, #ed8cac 0 2px, transparent 2.5px) 14% 4px / 7px 7px no-repeat,
    linear-gradient(45deg, transparent 35%, #64cdb8 36% 64%, transparent 65%) 35% 4px / 8px 8px no-repeat,
    radial-gradient(ellipse, #7ba5ec 0 48%, transparent 53%) 58% 4px / 10px 5px no-repeat,
    radial-gradient(circle, #e9b54d 0 2px, transparent 2.5px) 81% 4px / 7px 7px no-repeat,
    linear-gradient(135deg, transparent 35%, #ef9970 36% 64%, transparent 65%) 19% calc(100% - 7px) / 8px 8px no-repeat,
    radial-gradient(circle, #59cbb6 0 2px, transparent 2.5px) 43% calc(100% - 6px) / 7px 7px no-repeat,
    linear-gradient(45deg, transparent 35%, #988be2 36% 64%, transparent 65%) 67% calc(100% - 7px) / 8px 8px no-repeat,
    radial-gradient(ellipse, #ec8eac 0 48%, transparent 53%) 87% calc(100% - 5px) / 10px 5px no-repeat;
  animation: surface-confetti-breathe 6s ease-in-out infinite alternate;
}

.surface > :not(.surface-confetti-layer) {
  position: relative;
  z-index: 1;
}

@keyframes surface-confetti-breathe {
  from { opacity: .42; }
  to { opacity: .68; }
}

h1 {
  color: #0d2b26;
  background: linear-gradient(95deg, #064f48, #087f70 28%, #2366bd 58%, #c44379 82%, #db682f);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.eyebrow {
  color: #08776b;
  text-shadow: 0 0 18px rgba(10, 168, 150, .18);
}
.stage-number, .guide-number, .complete-mark {
  background: linear-gradient(145deg, #078c7c, #18b7b0 48%, #2e6fc4);
  box-shadow: 0 7px 18px rgba(14, 133, 134, .25), 0 0 18px rgba(32, 184, 201, .22);
}

.button {
  border-color: rgba(53, 121, 113, .32);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button.primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(105deg, #087e70, #0eaaa0 35%, #2876c7 67%, #ce4f82);
  background-size: 160% 100%;
  box-shadow: 0 10px 24px rgba(18, 126, 132, .28), 0 0 20px rgba(43, 128, 210, .14);
}
.button.primary:hover:not(:disabled) {
  filter: saturate(115%) brightness(1.04);
  box-shadow: 0 13px 28px rgba(20, 121, 145, .34), 0 0 25px rgba(213, 75, 130, .18);
}
.button.secondary {
  color: #174139;
  background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(232, 248, 241, .96));
}
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(24, 178, 188, .32);
  outline-offset: 3px;
}
input:focus, select:focus, textarea:focus {
  border-color: #13a59b;
  box-shadow: 0 0 0 4px rgba(18, 175, 166, .12), 0 0 20px rgba(48, 111, 205, .07);
}

.preflight { min-height: min(820px, calc(100vh - 56px)); }
.preflight-heading { border-bottom-color: rgba(36, 132, 116, .22); }
.step-badge {
  border-color: rgba(31, 172, 157, .38);
  color: #075f57;
  background: linear-gradient(120deg, #e7fbf3, #e7f5ff 58%, #fff0f5);
  box-shadow: 0 7px 20px rgba(27, 130, 142, .11);
}
.preflight-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 24px 0 0;
}
.preflight-progress-item {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(73, 122, 111, .24);
  border-radius: 6px;
  color: #52665f;
  background: rgba(246, 251, 248, .82);
  cursor: pointer;
}
.preflight-progress-item span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(49, 117, 103, .25);
  border-radius: 50%;
  color: #315e55;
  background: #fff;
  font-weight: 850;
}
.preflight-progress-item strong { font-size: 14px; }
.preflight-progress-item.visited {
  color: #075c51;
  border-color: rgba(20, 153, 134, .35);
  background: linear-gradient(135deg, #e7f8ef, #eaf7fb);
}
.preflight-progress-item.visited span { color: #fff; border-color: transparent; background: #118b7c; }
.preflight-progress-item.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(105deg, #078172, #14a9a0 40%, #3373c5 75%, #ca4e83);
  box-shadow: 0 9px 22px rgba(24, 126, 142, .25), 0 0 20px rgba(39, 161, 178, .15);
}
.preflight-progress-item.active span { color: #09665d; border-color: #fff; background: #fff; }
.preflight-progress-item:disabled { cursor: not-allowed; opacity: .45; }

.preflight-pages {
  min-height: 430px;
  margin-top: 18px;
  padding: 24px 4px 18px;
  border-top: 1px solid rgba(37, 128, 113, .16);
  border-bottom: 1px solid rgba(37, 128, 113, .16);
}
.preflight-step { animation: preflightReveal .28s ease-out; }
.preflight-step > h3 { font-size: 27px; }
.step-intro { margin: 9px 0 20px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.preflight-fact-grid,
.preflight-rule-grid,
.preflight-notice-grid,
.preflight-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}
.preflight-fact-grid > div {
  min-width: 0;
  padding: 16px 2px 2px;
  border-top: 4px solid #13a38f;
}
.preflight-fact-grid > div:nth-child(2) { border-top-color: #20add0; }
.preflight-fact-grid > div:nth-child(3) { border-top-color: #e06c45; }
.preflight-fact-grid > div:nth-child(4) { border-top-color: #d7a325; }
.preflight-fact-grid strong { display: block; font-size: 19px; }
.preflight-fact-grid p { margin: 7px 0 0; color: #4e615a; line-height: 1.55; }
.preflight-rule-grid > div { min-width: 0; }
.preflight-rule-grid h4 { margin: 0; color: #125c53; font-size: 19px; }
.preflight-notice-grid { margin-top: 18px; }
.preflight-notice-grid p {
  margin: 0;
  padding: 15px;
  border-left: 4px solid #1aa69b;
  border-radius: 4px;
  color: #38514a;
  background: linear-gradient(120deg, rgba(231, 249, 241, .92), rgba(235, 246, 255, .88));
  line-height: 1.52;
}
.preflight-notice-grid p:nth-child(2) {
  border-left-color: #e07443;
  background: linear-gradient(120deg, rgba(255, 246, 235, .95), rgba(255, 239, 246, .86));
}
.preflight-details {
  margin-top: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.preflight-details summary { color: #10665c; font-weight: 800; cursor: pointer; }
.preflight-details p { color: #4c6058; line-height: 1.58; }
.consent-panel {
  max-width: 900px;
  margin: 0 auto;
  border-color: rgba(30, 159, 142, .34);
  background: linear-gradient(140deg, rgba(236, 250, 243, .94), rgba(238, 247, 255, .91) 56%, rgba(255, 241, 247, .88));
  box-shadow: 0 14px 32px rgba(20, 90, 82, .08);
}
.check-row input { filter: drop-shadow(0 0 5px rgba(22, 165, 151, .18)); }
.preflight-check-grid > section {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(56, 129, 115, .24);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(238, 249, 244, .92));
  box-shadow: 0 13px 30px rgba(17, 74, 68, .08);
}
.preflight-check-grid .network-check { border-bottom: 1px solid rgba(56, 129, 115, .24); }
.preflight-check-grid .camera-check { position: static; top: auto; }
.network-metrics div { background: linear-gradient(145deg, #fff, #f0faf6); }
.camera-preview-frame { box-shadow: 0 0 24px rgba(24, 170, 165, .15); }
.preflight-wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
}
.preflight-page-actions { display: flex; justify-content: flex-end; gap: 10px; }

.assessment-header {
  padding-bottom: 18px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #139c8c, #29aeca, #4e68d0, #dc5683, #e48b37) 1;
}
.timer-box {
  border-color: rgba(71, 206, 188, .3);
  background: linear-gradient(145deg, #092c28, #0b5550 44%, #174a79);
  box-shadow: 0 10px 26px rgba(9, 67, 66, .24), 0 0 18px rgba(33, 188, 198, .16);
}
.proctor-dock {
  border-color: rgba(69, 205, 186, .36);
  background: linear-gradient(150deg, #10271f, #0c4943 52%, #173f66);
}
.progress-fill, .review-progress-fill {
  background: linear-gradient(90deg, #0b9d87, #1db7c7, #346fd0, #d55287, #e58b35);
  box-shadow: 0 0 14px rgba(31, 180, 189, .28);
}
.option-row:hover,
.option-row.selected,
.choice:hover,
.choice.selected {
  border-color: #159e91;
  background: linear-gradient(125deg, #e8f9f1, #edf7ff 62%, #fff1f6);
  box-shadow: 0 7px 18px rgba(24, 114, 113, .08);
}
.complete-mark { background: linear-gradient(145deg, #0a997f, #1cb7c1 42%, #3e71cd 70%, #d75588); }
.status-pill.ready {
  color: #075b4f;
  border-color: rgba(29, 181, 155, .4);
  background: linear-gradient(120deg, #e3f8ed, #e8f7ff);
  box-shadow: 0 0 14px rgba(28, 173, 162, .12);
}

@keyframes luminousFlow { to { background-position: 220% 0; } }
@keyframes preflightReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  body { background-attachment: scroll; background-position: 58% center; }
  .surface::before { right: 8px; left: 8px; }
  .surface::after { top: 20px; right: 15px; opacity: .5; }
  .action-guidance { padding: 14px 15px 14px 48px; font-size: 16px; }
  .action-guidance::before { left: 14px; }
  .preflight { min-height: calc(100vh - 20px); }
  .preflight-progress { gap: 5px; margin-top: 18px; }
  .preflight-progress-item {
    min-width: 0;
    min-height: 70px;
    flex-direction: column;
    gap: 5px;
    padding: 7px 3px;
  }
  .preflight-progress-item span { width: 28px; height: 28px; flex-basis: 28px; }
  .preflight-progress-item strong { max-width: 100%; font-size: 11px; overflow-wrap: anywhere; }
  .preflight-pages { min-height: 0; padding-top: 20px; }
  .preflight-step > h3 { font-size: 24px; }
  .preflight-fact-grid,
  .preflight-rule-grid,
  .preflight-notice-grid,
  .preflight-check-grid { grid-template-columns: 1fr; gap: 17px; }
  .preflight-fact-grid > div { padding-top: 12px; }
  .preflight-wizard-actions { align-items: stretch; flex-direction: column-reverse; }
  .preflight-page-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .preflight-wizard-actions > .button,
  .preflight-page-actions .button { width: 100%; }
  .preflight-page-actions .button:only-child,
  .preflight-page-actions #confirmStart { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .surface::before, .surface-confetti-layer, .preflight-step { animation: none; }
  .button { transition: none; }
}

/* v16.26 r9: traceable session mark and final readability pass. */
#assessmentView {
  position: relative;
  isolation: isolate;
}

#assessmentView > :not(.assessment-security-watermark):not(.surface-confetti-layer) {
  position: relative;
  z-index: 1;
}

#assessmentView > .assessment-security-watermark {
  position: absolute;
  z-index: 0;
  inset: 0;
  min-height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(170px, 1fr);
  align-items: center;
  justify-items: center;
  pointer-events: none;
  user-select: none;
}

.assessment-security-watermark span {
  width: 125%;
  color: #145f55;
  opacity: .052;
  transform: rotate(-22deg);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

#assessmentBody,
.question-stage,
.personality-stage,
.evidence-stage,
.evidence-stimulus-shell,
.evidence-question,
.evidence-options,
.option-row,
.evidence-option-content { min-width: 0; }

.instruction-copy {
  font-size: 21px;
  line-height: 1.72;
}

.master-text-question {
  width: min(100%, 70ch);
  margin-inline: auto;
  font-size: 30px;
  line-height: 1.62;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.reading-stimulus > p:not(.evidence-context),
.reading-stimulus .mobile-stimulus-chunk > p,
.reasoning-stimulus > p,
.case-document-stack p {
  max-width: 76ch;
  margin-inline: auto;
  font-size: 23px;
  line-height: 1.72;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.evidence-question h3 {
  width: min(100%, 68ch);
  margin-inline: auto;
  font-size: 33px;
  line-height: 1.46;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.choice,
.option-row,
.evidence-option-content,
.evidence-option-content > span:last-child {
  font-size: 23px;
  line-height: 1.56;
  text-align: left;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

@media (max-width: 760px) {
  .assessment-security-watermark {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(155px, 1fr);
  }
  .assessment-security-watermark span { font-size: 12px; opacity: .045; }
  .instruction-copy { font-size: 20px; line-height: 1.7; }
  .master-text-question { font-size: 27px; line-height: 1.62; }
  .reading-stimulus > p:not(.evidence-context),
  .reading-stimulus .mobile-stimulus-chunk > p,
  .reasoning-stimulus > p,
  .case-document-stack p { font-size: 22px; line-height: 1.7; }
  .evidence-question h3 { font-size: 30px; line-height: 1.44; }
  .choice,
  .option-row,
  .evidence-option-content,
  .evidence-option-content > span:last-child { font-size: 22px; line-height: 1.56; }
}

@media (max-width: 480px) {
  .reading-stimulus > p:not(.evidence-context),
  .reading-stimulus .mobile-stimulus-chunk > p,
  .reasoning-stimulus > p,
  .case-document-stack p {
    text-align: left;
    text-align-last: auto;
  }
}

/* v16.26: lightweight professional companions and original reasoning visuals. */
.companion-panorama {
  position: relative;
  height: clamp(118px, 14vw, 178px);
  margin: 8px 0 14px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(226,249,241,.52), rgba(233,244,255,.42), rgba(255,239,247,.48));
  border-top: 1px solid rgba(21,151,133,.16);
  border-bottom: 1px solid rgba(38,109,190,.14);
  isolation: isolate;
}

.companion-panorama img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 9px 10px rgba(23,70,66,.13));
  transform-origin: 50% 100%;
  animation: companion-wave 8s ease-in-out infinite alternate;
  will-change: transform;
}

.companion-panorama-complete {
  max-width: 1020px;
  height: clamp(150px, 21vw, 255px);
  margin: 22px auto 0;
}

.celebration-mark {
  position: absolute;
  z-index: 1;
  width: 13px;
  height: 13px;
  border: 3px solid #16a693;
  transform: rotate(45deg);
  animation: celebration-drift 5.5s ease-in-out infinite alternate;
}

.celebration-mark::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 18px;
  width: 21px;
  height: 4px;
  background: #ef7847;
  transform: rotate(-62deg);
  box-shadow: 26px 18px 0 #2d70c7, -18px 29px 0 #d64d85;
}

.celebration-mark.mark-one { top: 24%; left: 4%; }
.celebration-mark.mark-two {
  right: 7%;
  bottom: 22%;
  border-color: #d34f83;
  animation-delay: -1.8s;
}
.celebration-mark.mark-three {
  top: 13%;
  left: 52%;
  width: 9px;
  height: 9px;
  border-color: #e3a82d;
  animation-delay: -3.2s;
}

.assessment-art-trim {
  position: relative;
  height: 82px;
  margin: 7px 0 6px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(229,250,243,.62), rgba(235,244,255,.56), rgba(255,239,247,.58));
  border-top: 1px solid rgba(38,126,112,.11);
  border-bottom: 1px solid rgba(38,126,112,.14);
  pointer-events: none;
}

.assessment-art-trim::before,
.assessment-art-trim::after {
  content: "";
  position: absolute;
  top: 20px;
  width: 15px;
  height: 15px;
  border: 3px solid #18a18f;
  transform: rotate(45deg);
  opacity: .62;
}
.assessment-art-trim::before { left: 6%; }
.assessment-art-trim::after { right: 5%; border-color: #d34e83; }

.assessment-art-trim img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 80px;
  object-fit: contain;
  object-position: center bottom;
  opacity: .9;
  transform: translate3d(-4px, 0, 0);
  animation: assessment-companion-shift 10s ease-in-out infinite alternate;
  will-change: transform;
}

.reasoning-stimulus {
  margin: 0 0 22px;
  padding: var(--question-inline-padding);
  border: 1px solid rgba(38,126,112,.22);
  border-radius: 8px;
  background: linear-gradient(145deg, #f7fffb, #eff8ff 58%, #fff6fa);
  box-shadow: 0 14px 34px rgba(21,74,70,.09);
}

.reasoning-stimulus h3 { margin: 0 0 7px; font-size: 25px; }
.reasoning-stimulus > p { margin: 0 0 18px; color: #4c6159; line-height: 1.55; }

.cognitive-code-grid {
  --cognitive-columns: 4;
  display: grid;
  grid-template-columns: repeat(var(--cognitive-columns), minmax(0, 1fr));
  gap: 9px;
  width: 100%;
}

.cognitive-code-grid > span {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 64px;
  padding: 8px 5px;
  border: 1px solid rgba(34, 103, 94, .24);
  border-radius: 6px;
  color: #173c36;
  background: rgba(255, 255, 255, .94);
  box-shadow: inset 0 0 0 3px rgba(227, 246, 239, .62);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.cognitive-code-grid small {
  display: block;
  margin-bottom: 5px;
  color: #6f827b;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
}

.cognitive-comparison-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(34, 103, 94, .18);
  border-radius: 7px;
  background: #fff;
}

.cognitive-comparison-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #193e38;
  font-family: Consolas, "Courier New", monospace;
  font-size: 18px;
}

.cognitive-comparison-table th,
.cognitive-comparison-table td {
  padding: 10px 8px;
  border-right: 1px solid #d9e8e3;
  border-bottom: 1px solid #d9e8e3;
  text-align: center;
  overflow-wrap: anywhere;
}

.cognitive-comparison-table th {
  color: #fff;
  background: #257267;
  font-family: inherit;
  font-weight: 800;
}

.cognitive-comparison-table tr:nth-child(even) td { background: #f2faf7; }
.cognitive-comparison-table th:last-child,
.cognitive-comparison-table td:last-child { border-right: 0; }
.cognitive-comparison-table tbody tr:last-child td { border-bottom: 0; }

.reasoning-matrix {
  --reasoning-columns: 3;
  display: grid;
  grid-template-columns: repeat(var(--reasoning-columns), minmax(72px, 138px));
  justify-content: center;
  gap: 10px;
}
.reasoning-columns-2 { --reasoning-columns: 2; }
.reasoning-columns-3 { --reasoning-columns: 3; }
.reasoning-columns-4 { --reasoning-columns: 4; }
.cognitive-columns-2 { --cognitive-columns: 2; }
.cognitive-columns-3 { --cognitive-columns: 3; }
.cognitive-columns-4 { --cognitive-columns: 4; }
.cognitive-columns-5 { --cognitive-columns: 5; }
.reasoning-rotate-0 { transform: rotate(0deg); }
.reasoning-rotate-15 { transform: rotate(15deg); }
.reasoning-rotate-30 { transform: rotate(30deg); }
.reasoning-rotate-45 { transform: rotate(45deg); }
.reasoning-rotate-60 { transform: rotate(60deg); }
.reasoning-rotate-75 { transform: rotate(75deg); }
.reasoning-rotate-90 { transform: rotate(90deg); }
.reasoning-rotate-105 { transform: rotate(105deg); }
.reasoning-rotate-120 { transform: rotate(120deg); }
.reasoning-rotate-135 { transform: rotate(135deg); }
.reasoning-rotate-150 { transform: rotate(150deg); }
.reasoning-rotate-165 { transform: rotate(165deg); }
.reasoning-rotate-180 { transform: rotate(180deg); }
.reasoning-rotate-195 { transform: rotate(195deg); }
.reasoning-rotate-210 { transform: rotate(210deg); }
.reasoning-rotate-225 { transform: rotate(225deg); }
.reasoning-rotate-240 { transform: rotate(240deg); }
.reasoning-rotate-255 { transform: rotate(255deg); }
.reasoning-rotate-270 { transform: rotate(270deg); }
.reasoning-rotate-285 { transform: rotate(285deg); }
.reasoning-rotate-300 { transform: rotate(300deg); }
.reasoning-rotate-315 { transform: rotate(315deg); }
.reasoning-rotate-330 { transform: rotate(330deg); }
.reasoning-rotate-345 { transform: rotate(345deg); }

.reasoning-sequence {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 142px));
  justify-content: center;
  gap: 12px;
}

.reasoning-cell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 10px;
  border: 2px solid rgba(39,113,101,.24);
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 0 0 4px rgba(228,244,238,.72), 0 6px 14px rgba(25,80,74,.06);
}

.reasoning-step {
  position: absolute;
  top: 6px;
  left: 8px;
  color: #6b7d76;
  font-size: 12px;
  font-weight: 800;
}

.reasoning-glyph {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 54px;
  min-height: 54px;
}

.reasoning-glyph.is-compact {
  min-width: 72px;
  min-height: 48px;
  padding: 4px 8px;
  border: 1px solid rgba(38,126,112,.17);
  border-radius: 6px;
  background: rgba(255,255,255,.75);
}

.reasoning-shape {
  --shape-color: #0d9488;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-block;
  background: var(--shape-color);
  box-sizing: border-box;
}
.reasoning-shape.tone-teal, .reasoning-arrow.tone-teal { --shape-color: #0d9488; color: #0d9488; }
.reasoning-shape.tone-coral, .reasoning-arrow.tone-coral { --shape-color: #ef7047; color: #ef7047; }
.reasoning-shape.tone-cobalt, .reasoning-arrow.tone-cobalt { --shape-color: #2f6dcc; color: #2f6dcc; }
.reasoning-shape.tone-magenta, .reasoning-arrow.tone-magenta { --shape-color: #d34e83; color: #d34e83; }
.reasoning-shape.tone-gold, .reasoning-arrow.tone-gold { --shape-color: #dfa522; color: #dfa522; }
.shape-circle, .shape-circle-outline { border-radius: 50%; }
.shape-circle-outline, .shape-square-outline {
  border: 4px solid var(--shape-color);
  background: transparent;
}
.shape-triangle, .shape-triangle-outline {
  clip-path: polygon(50% 4%, 96% 92%, 4% 92%);
}
.shape-triangle-outline {
  position: relative;
  background: var(--shape-color);
}
.shape-triangle-outline::after {
  content: "";
  position: absolute;
  inset: 6px;
  clip-path: polygon(50% 4%, 96% 92%, 4% 92%);
  background: #fff;
}

.reasoning-arrow {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  transform-origin: 50% 50%;
}

.reasoning-dots {
  display: block;
  width: 100%;
  color: #213b35;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
}

.reasoning-missing {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 3px dashed #d45b86;
  border-radius: 7px;
  color: #ba376b;
  background: #fff1f6;
  font-size: 34px;
  font-weight: 900;
}

.reasoning-position-grid {
  display: grid;
  grid-template-columns: repeat(2, 28px);
  grid-template-rows: repeat(2, 28px);
  gap: 12px;
  align-items: center;
  justify-items: center;
}
.reasoning-position-grid > span:not(.reasoning-missing) {
  width: 16px;
  height: 16px;
  border: 2px solid #aac5bc;
  transform: rotate(45deg);
}
.reasoning-position-grid > span.active {
  border-color: #0d9488;
  background: #0d9488;
  box-shadow: 0 0 0 5px rgba(13,148,136,.12);
}

.evidence-option-content {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

@keyframes companion-wave {
  from { transform: translate3d(-3px, 2px, 0) scale(1.004); }
  to { transform: translate3d(3px, -2px, 0) scale(1.012); }
}
@keyframes celebration-drift {
  from { opacity: .42; transform: translate3d(0, 5px, 0) rotate(45deg); }
  to { opacity: .9; transform: translate3d(9px, -7px, 0) rotate(78deg); }
}
@keyframes assessment-companion-shift {
  from { transform: translate3d(-4px, 1px, 0) scale(1.002); }
  to { transform: translate3d(4px, -1px, 0) scale(1.012); }
}

@media (max-width: 760px) {
  .companion-panorama-preflight { height: 112px; }
  .assessment-art-trim { height: 64px; }
  .assessment-art-trim img { height: 62px; }
  .reasoning-stimulus { padding: var(--question-inline-padding); }
  .reasoning-matrix { grid-template-columns: repeat(var(--reasoning-columns), minmax(62px, 1fr)); gap: 7px; }
  .reasoning-sequence { grid-template-columns: repeat(2, minmax(90px, 1fr)); gap: 8px; }
  .reasoning-cell { min-height: 92px; padding: 7px; }
  .reasoning-shape { width: 24px; height: 24px; flex-basis: 24px; }
  .reasoning-arrow { width: 38px; height: 38px; font-size: 38px; }
  .cognitive-code-grid { gap: 5px; }
  .cognitive-code-grid > span { min-height: 56px; padding: 6px 3px; font-size: 14px; }
  .cognitive-comparison-table { font-size: 14px; }
  .cognitive-comparison-table th,
  .cognitive-comparison-table td { padding: 8px 4px; }
  .evidence-option-content { align-items: flex-start; flex-direction: column; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .companion-panorama img,
  .celebration-mark,
  .assessment-art-trim img {
    animation: none;
  }
}

/* Guided practice for the timed single-digit addition section. */
.kraep-learning-shell {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(26, 126, 111, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 45px rgba(15, 76, 67, .12);
}
.kraep-learning-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}
.kraep-learning-step {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #c9ddd7;
  border-radius: 7px;
  color: #56716b;
  background: #f5faf8;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.kraep-learning-step i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  border-radius: 50%;
  color: #42645d;
  background: #dcece7;
  font-style: normal;
}
.kraep-learning-step.active {
  color: #123f37;
  border-color: #1ea58e;
  background: #e8f8f3;
  box-shadow: inset 0 -3px 0 #1ea58e;
}
.kraep-learning-step.active i,
.kraep-learning-step.complete i { color: #fff; background: #148f79; }
.kraep-learning-step.complete { color: #23675c; border-color: #93c9bb; }
.kraep-learning-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  align-items: end;
  gap: 24px;
}
.kraep-learning-heading h3,
.kraep-practice-stage h3,
.kraep-ready-stage h3 { margin: 4px 0 0; font-size: clamp(27px, 4vw, 38px); }
.kraep-learning-heading > p,
.kraep-practice-stage > p,
.kraep-ready-stage > p { color: #526d67; font-size: 18px; line-height: 1.65; }
.kraep-demo-stage {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid #b8dcd3;
  border-radius: 8px;
  background: linear-gradient(145deg, #e9fbf5, #eef5ff 52%, #fff2f6);
  contain: layout paint;
}
.kraep-demo-equation {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  color: #133f38;
  font-size: clamp(52px, 9vw, 84px);
  line-height: 1;
  font-weight: 900;
}
.kraep-demo-equation span { color: #5d7771; font-size: .58em; }
.kraep-demo-total { display: inline-flex; position: relative; font-style: normal; }
.kraep-demo-total i,
.kraep-demo-total em { font-style: normal; }
.kraep-demo-total i { animation: kraep-discard-tens 4.8s ease-in-out infinite; }
.kraep-demo-total em { color: #d43e75; animation: kraep-highlight-unit 4.8s ease-in-out infinite; }
.kraep-demo-arrow {
  color: #d43e75;
  font-size: 34px;
  font-weight: 900;
  animation: kraep-arrow-drop 4.8s ease-in-out infinite;
}
.kraep-demo-answer {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #315f56;
  font-size: 18px;
  font-weight: 800;
}
.kraep-demo-answer strong {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 3px solid #d43e75;
  border-radius: 8px;
  color: #fff;
  background: #d43e75;
  font-size: 40px;
  box-shadow: 0 10px 24px rgba(212, 62, 117, .22);
  animation: kraep-answer-pop 4.8s ease-in-out infinite;
}
.kraep-learning-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.kraep-learning-rules section {
  min-height: 116px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px;
  border: 1px solid #d6e5e1;
  border-radius: 7px;
  background: #fff;
}
.kraep-learning-rules section > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  border-radius: 50%;
  color: #fff;
  background: #197d6d;
  font-weight: 900;
}
.kraep-learning-rules p { margin: 3px 0 0; color: #365b54; line-height: 1.55; }
.kraep-practice-stage,
.kraep-ready-stage { text-align: center; }
.kraep-practice-equation {
  margin: 28px 0 22px;
  color: #123f37;
  font-size: clamp(64px, 11vw, 96px);
  font-weight: 900;
  line-height: 1;
}
.kraep-practice-label { display: block; margin-bottom: 10px; color: #41655e; font-weight: 800; }
.kraep-practice-stage .kraep-input { display: block; }
.kraep-practice-feedback {
  min-height: 54px;
  margin: 16px auto;
  padding: 12px 16px;
  border-radius: 7px;
  color: #4e6e67;
  background: #f2f7f5;
  font-weight: 750;
}
.kraep-practice-feedback.error { color: #8d1e2d; background: #fff0f1; }
.kraep-practice-feedback.success { color: #075c4d; background: #e5f8f0; }
.kraep-ready-mark {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 6px auto 15px;
  border-radius: 50%;
  color: #fff;
  background: #148f79;
  font-size: 42px;
  box-shadow: 0 13px 30px rgba(20, 143, 121, .25);
}
.kraep-rule-card {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  margin: 22px auto;
  padding: 18px 20px;
  border: 1px solid #b8dcd3;
  border-radius: 7px;
  color: #355e56;
  background: #effaf6;
}
.kraep-rule-card strong { color: #123f37; font-size: 25px; }
.kraep-rule-card b { color: #c92f69; font-size: 22px; }

@keyframes kraep-discard-tens {
  0%, 26% { opacity: 1; transform: translate3d(0, 0, 0); }
  42%, 78% { opacity: .15; transform: translate3d(-8px, -8px, 0) scale(.82); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes kraep-highlight-unit {
  0%, 25% { transform: scale(1); text-shadow: none; }
  44%, 78% { transform: scale(1.18); text-shadow: 0 0 18px rgba(212, 62, 117, .35); }
  100% { transform: scale(1); text-shadow: none; }
}
@keyframes kraep-arrow-drop {
  0%, 30% { opacity: 0; transform: translate3d(0, -14px, 0); }
  43%, 80% { opacity: 1; transform: translate3d(0, 0, 0); }
  100% { opacity: 0; transform: translate3d(0, 8px, 0); }
}
@keyframes kraep-answer-pop {
  0%, 39% { opacity: .25; transform: scale(.78); }
  50%, 80% { opacity: 1; transform: scale(1); }
  100% { opacity: .25; transform: scale(.78); }
}

/* Final theatrical thank-you screen. Only transform and opacity are animated. */
.complete.finale-view {
  min-height: min(900px, calc(100vh - 32px));
  display: block;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #24070d;
}
.finale-theater {
  position: relative;
  min-height: min(900px, calc(100vh - 32px));
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(circle at 50% 28%, #7b1d2c 0, #360a13 48%, #170409 100%);
  contain: layout paint;
}
.finale-curtain {
  position: absolute;
  inset-block: 0;
  z-index: 1;
  width: 52%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 4%, rgba(0,0,0,.12) 7% 12%),
    linear-gradient(90deg, #5f0714, #bb1730 48%, #740919);
  box-shadow: inset 0 0 65px rgba(30, 0, 8, .48), 0 0 36px rgba(0,0,0,.38);
  will-change: transform;
}
.finale-curtain::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.12), transparent 23%, rgba(0,0,0,.22));
}
.finale-curtain-left { left: 0; transform: translate3d(-102%, 0, 0); }
.finale-curtain-right { right: 0; transform: translate3d(102%, 0, 0) scaleX(-1); }
.finale-play .finale-curtain-left { animation: finale-close-left 1.75s cubic-bezier(.18,.82,.24,1) both; }
.finale-play .finale-curtain-right { animation: finale-close-right 1.75s cubic-bezier(.18,.82,.24,1) both; }
.finale-valance {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 105px;
  background:
    radial-gradient(ellipse at 10% 0, #c51a36 0 48%, transparent 50%) 0 0 / 20% 100% repeat-x,
    linear-gradient(#9e1028, #570712);
  filter: drop-shadow(0 12px 12px rgba(20,0,5,.35));
  transform: translate3d(0, -110%, 0);
  will-change: transform;
}
.finale-play .finale-valance { animation: finale-valance-drop .8s ease-out 1.05s both; }
.finale-copy {
  position: relative;
  z-index: 4;
  width: min(830px, calc(100% - 48px));
  align-self: end;
  margin: 100px auto 0;
  padding: 26px clamp(22px, 4vw, 48px) 22px;
  border: 1px solid rgba(255, 221, 151, .45);
  border-radius: 8px;
  color: #fff9ed;
  background: rgba(69, 6, 18, .78);
  box-shadow: 0 24px 70px rgba(0,0,0,.35), inset 0 0 36px rgba(255,209,125,.07);
  text-align: center;
  opacity: 0;
  transform: translate3d(0, 20px, 0) scale(.97);
  backdrop-filter: blur(4px);
  will-change: transform, opacity;
}
.finale-play .finale-copy { animation: finale-copy-reveal .85s ease-out 1.55s both; }
.finale-eyebrow { margin: 0; color: #ffd995; font-size: 15px; font-weight: 900; letter-spacing: 0; }
.finale-copy h2 {
  margin: 5px 0 13px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 72px);
  line-height: .96;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 4px 0 #791022, 0 10px 26px rgba(0,0,0,.4);
}
.finale-copy p { max-width: 740px; margin: 8px auto; color: #fff8ee; font-size: clamp(15px, 1.8vw, 17px); line-height: 1.5; }
.finale-copy .finale-lead { color: #ffe7b7; font-size: clamp(17px, 2.1vw, 20px); font-weight: 800; }
.finale-close-note { display: block; margin-top: 13px; color: #ffe1a5; font-size: 14px; }
.finale-cast {
  position: relative;
  z-index: 5;
  width: min(760px, calc(100% - 28px));
  height: 195px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: clamp(0px, 5vw, 42px);
  margin-top: -16px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  will-change: transform, opacity;
}
.finale-play .finale-cast { animation: finale-cast-enter .8s ease-out 1.85s both; }
.finale-character {
  width: clamp(145px, 23vw, 220px);
  height: 195px;
  display: grid;
  place-items: end center;
  margin: 0;
  overflow: visible;
}
.finale-character img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 15px 12px rgba(0,0,0,.35));
  transform-origin: 50% 92%;
  will-change: transform;
}
.finale-play .finale-character-left img { animation: finale-bow-left 4.6s ease-in-out 2.4s infinite; }
.finale-play .finale-character-center img { animation: finale-bow-center 4.6s ease-in-out 2.65s infinite; }
.finale-play .finale-character-right img { animation: finale-bow-right 4.6s ease-in-out 2.9s infinite; }
.finale-stars { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.finale-stars i { position: absolute; width: 9px; height: 9px; background: #ffd77d; transform: rotate(45deg); opacity: 0; }
.finale-stars i:nth-child(1) { left: 8%; top: 19%; }
.finale-stars i:nth-child(2) { left: 18%; top: 44%; width: 6px; height: 6px; background: #fff0bf; }
.finale-stars i:nth-child(3) { right: 10%; top: 24%; }
.finale-stars i:nth-child(4) { right: 18%; top: 48%; width: 6px; height: 6px; background: #ffd0df; }
.finale-stars i:nth-child(5) { left: 31%; top: 13%; width: 5px; height: 5px; }
.finale-stars i:nth-child(6) { right: 31%; top: 16%; width: 5px; height: 5px; }
.finale-play .finale-stars i { animation: finale-star 2.8s ease-in-out 2s infinite; }
.finale-play .finale-stars i:nth-child(2n) { animation-delay: 2.45s; }
.finale-play .finale-stars i:nth-child(3n) { animation-delay: 2.9s; }

@keyframes finale-close-left { from { transform: translate3d(-102%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes finale-close-right { from { transform: translate3d(102%, 0, 0) scaleX(-1); } to { transform: translate3d(0, 0, 0) scaleX(-1); } }
@keyframes finale-valance-drop { from { transform: translate3d(0, -110%, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes finale-copy-reveal { from { opacity: 0; transform: translate3d(0, 20px, 0) scale(.97); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
@keyframes finale-cast-enter { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes finale-bow-left { 0%, 18%, 100% { transform: rotate(0) scaleY(1); } 28%, 42% { transform: rotate(5deg) scaleY(.93); } 54% { transform: rotate(-1deg) scaleY(1.01); } }
@keyframes finale-bow-center { 0%, 18%, 100% { transform: translate3d(0,0,0) scaleY(1); } 28%, 43% { transform: translate3d(0,10px,0) scaleY(.91); } 55% { transform: translate3d(0,-2px,0) scaleY(1.01); } }
@keyframes finale-bow-right { 0%, 18%, 100% { transform: rotate(0) scaleY(1); } 28%, 42% { transform: rotate(-5deg) scaleY(.93); } 54% { transform: rotate(1deg) scaleY(1.01); } }
@keyframes finale-star { 0%, 100% { opacity: .15; transform: rotate(45deg) scale(.6); } 48% { opacity: 1; transform: rotate(135deg) scale(1.35); } }

@media (max-width: 760px) {
  .kraep-learning-shell { padding: 18px; }
  .kraep-learning-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kraep-learning-heading { grid-template-columns: 1fr; gap: 6px; }
  .kraep-learning-rules { grid-template-columns: 1fr; }
  .kraep-learning-rules section { min-height: 0; }
  .kraep-rule-card { grid-template-columns: 1fr; gap: 5px; }
  .complete.finale-view,
  .finale-theater { min-height: max(780px, calc(100vh - 20px)); }
  .finale-theater { grid-template-rows: minmax(0, 1fr) 190px; overflow-y: auto; }
  .finale-valance { height: 78px; }
  .finale-copy { align-self: center; width: calc(100% - 28px); margin-top: 88px; padding: 25px 18px 22px; }
  .finale-copy h2 { font-size: clamp(44px, 16vw, 65px); }
  .finale-copy h2 { white-space: normal; }
  .finale-copy p { font-size: 16px; line-height: 1.55; }
  .finale-copy .finale-lead { font-size: 18px; }
  .finale-cast { height: 205px; margin-top: -22px; gap: 0; }
  .finale-character { width: 34%; height: 205px; }
}

@media (prefers-reduced-motion: reduce) {
  .kraep-demo-total i,
  .kraep-demo-total em,
  .kraep-demo-arrow,
  .kraep-demo-answer strong,
  .finale-curtain,
  .finale-valance,
  .finale-copy,
  .finale-cast,
  .finale-character img,
  .finale-stars i { animation: none !important; }
  .kraep-demo-total i { opacity: .15; }
  .kraep-demo-arrow { opacity: 1; transform: none; }
  .kraep-demo-answer strong { opacity: 1; transform: none; }
  .finale-curtain-left { transform: translate3d(0, 0, 0); }
  .finale-curtain-right { transform: translate3d(0, 0, 0) scaleX(-1); }
  .finale-valance,
  .finale-copy,
  .finale-cast { opacity: 1; transform: none; }
}

/* v16.26: lightweight live network meter and dense evidence dashboards. */
.network-meter-shell {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 8px 0 18px;
}
.network-meter {
  --meter-angle: -118deg;
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 1.65 / 1;
  overflow: hidden;
  border: 1px solid rgba(54, 157, 139, .35);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 86%, rgba(255,255,255,.98) 0 17%, transparent 18%),
    conic-gradient(from 242deg at 50% 86%, #d65450 0 16%, #f3b63f 16% 36%, #3ac7a4 36% 60%, #2392cf 60% 72%, transparent 72% 100%),
    linear-gradient(145deg, #102a32, #183c40 52%, #0f252e);
  box-shadow: inset 0 0 34px rgba(75, 222, 205, .14), 0 14px 30px rgba(14, 58, 61, .18);
}
.network-meter::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  pointer-events: none;
}
.network-meter-rings {
  position: absolute;
  left: 50%;
  bottom: -71%;
  width: 112%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 2px solid rgba(153,255,235,.3);
  border-radius: 50%;
  box-shadow: 0 0 0 13px rgba(75,220,202,.04), 0 0 0 30px rgba(75,220,202,.025);
}
.network-meter-scale span {
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 2px;
  height: 12px;
  background: rgba(255,255,255,.78);
  transform-origin: 50% 72px;
  transform: translateX(-50%) rotate(calc(-118deg + var(--tick) * 21.45deg)) translateY(-72px);
}
.network-meter-scale span:nth-child(1) { --tick: 0; }
.network-meter-scale span:nth-child(2) { --tick: 1; }
.network-meter-scale span:nth-child(3) { --tick: 2; }
.network-meter-scale span:nth-child(4) { --tick: 3; }
.network-meter-scale span:nth-child(5) { --tick: 4; }
.network-meter-scale span:nth-child(6) { --tick: 5; }
.network-meter-scale span:nth-child(7) { --tick: 6; }
.network-meter-scale span:nth-child(8) { --tick: 7; }
.network-meter-scale span:nth-child(9) { --tick: 8; }
.network-meter-scale span:nth-child(10) { --tick: 9; }
.network-meter-scale span:nth-child(11) { --tick: 10; }
.network-meter-scale span:nth-child(12) { --tick: 11; }
.network-meter-needle-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.network-meter-needle-svg line {
  stroke: #ff625e;
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 95, 89, .82));
  transition: transform 60ms linear;
}

/* v16.26: lively but lightweight artwork and dimensional preflight feedback. */
button,
[role="button"],
.option,
.choice-card {
  touch-action: manipulation;
}

.professional-roles-artwork {
  position: relative;
  height: clamp(150px, 20vw, 225px);
  margin: 16px 0 22px;
  overflow: hidden;
  border: 1px solid rgba(41, 137, 121, .2);
  border-radius: 8px;
  background: #f6fcfa;
  box-shadow: 0 13px 30px rgba(18, 74, 69, .12);
  isolation: isolate;
}

.professional-roles-artwork::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 38%, rgba(255,255,255,.42) 48%, transparent 58% 100%);
  transform: translateX(-120%);
  animation: artwork-sheen 9s ease-in-out infinite;
  pointer-events: none;
}

.professional-roles-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  animation: artwork-breathe 7s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes artwork-breathe {
  from { transform: scale(1.005) translateY(1px); }
  to { transform: scale(1.018) translateY(-3px); }
}

@keyframes artwork-sheen {
  0%, 72% { transform: translateX(-120%); }
  88%, 100% { transform: translateX(120%); }
}

.network-meter {
  transform: perspective(760px) rotateX(2deg);
  transform-origin: 50% 100%;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.16),
    inset 0 -22px 30px rgba(0,0,0,.22),
    inset 0 0 34px rgba(75, 222, 205, .14),
    0 4px 0 #071b21,
    0 16px 32px rgba(14, 58, 61, .24);
}

.network-meter::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1px 1px 48% 1px;
  border-radius: 7px 7px 45% 45%;
  background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,.02));
  pointer-events: none;
}

.network-meter[data-status="ready"] {
  border-color: rgba(77, 239, 197, .78);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.18),
    inset 0 -22px 30px rgba(0,0,0,.2),
    0 4px 0 #0b382f,
    0 16px 34px rgba(31, 172, 137, .27);
}

.network-meter[data-status="failed"] {
  border-color: rgba(246, 116, 99, .72);
}

.network-meter.is-running .network-meter-rings {
  animation: meter-breathe 1.25s ease-in-out infinite alternate;
}

.network-meter.is-running .network-meter-readout small {
  animation: meter-status-pulse .9s ease-in-out infinite alternate;
}

@keyframes meter-breathe {
  from { opacity: .56; box-shadow: 0 0 0 13px rgba(75,220,202,.04), 0 0 0 30px rgba(75,220,202,.025); }
  to { opacity: 1; box-shadow: 0 0 0 16px rgba(75,220,202,.08), 0 0 0 35px rgba(75,220,202,.045); }
}

@keyframes meter-status-pulse {
  from { opacity: .68; }
  to { opacity: 1; }
}

@media (max-width: 640px) {
  .professional-roles-artwork {
    height: 150px;
    margin-top: 12px;
  }
  .professional-roles-artwork img { object-position: center 38%; }
  .network-meter { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .professional-roles-artwork::after,
  .professional-roles-artwork img,
  .network-meter.is-running .network-meter-rings,
  .network-meter.is-running .network-meter-readout small {
    animation: none;
  }
}
.network-meter-hub {
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 22px;
  height: 22px;
  border: 5px solid #dcf9f1;
  border-radius: 50%;
  background: #12363d;
  box-shadow: 0 0 18px rgba(83, 236, 211, .65);
  transform: translate(-50%, 50%);
}
.network-meter-readout {
  position: absolute;
  left: 50%;
  top: 28%;
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 3px 6px;
  color: #fff;
  text-align: center;
  transform: translateX(-50%);
}
.network-meter-readout strong { font-size: 31px; line-height: 1; font-variant-numeric: tabular-nums; }
.network-meter-readout span { color: #bfeee4; font-size: 12px; }
.network-meter-readout small { grid-column: 1 / -1; margin-top: 3px; color: #d9f8f1; font-size: 12px; }
.network-test-progress {
  width: min(100%, 330px);
  height: 7px;
  border: 0;
  overflow: hidden;
  border-radius: 5px;
  appearance: none;
  background: #dcebe6;
}
.network-test-progress::-webkit-progress-bar { background: #dcebe6; }
.network-test-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #db5e52, #edbd3e, #24a988, #268aca);
}
.network-test-progress::-moz-progress-bar { background: #24a988; }
.network-check .network-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* v16.26: presentation-like transitions using compositor-friendly properties. */
.registration-page,
.preflight-step {
  animation: none;
}

.page-transition-forward,
.page-transition-back,
.page-transition-zoom,
.page-transition-bubble {
  transform-origin: 50% 38%;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.page-transition-forward {
  animation: page-forward-in 260ms cubic-bezier(.2,.82,.24,1) both;
}

.page-transition-back {
  animation: page-back-in 250ms cubic-bezier(.2,.78,.24,1) both;
}

.page-transition-zoom {
  animation: page-zoom-in 280ms cubic-bezier(.16,.86,.26,1) both;
}

.page-transition-bubble {
  animation: page-bubble-in 320ms cubic-bezier(.18,.86,.24,1) both;
}

@keyframes page-forward-in {
  from { opacity: .18; transform: perspective(900px) translate3d(30px, 0, 0) rotateY(-6deg) scale(.975); }
  to { opacity: 1; transform: perspective(900px) translate3d(0, 0, 0) rotateY(0) scale(1); }
}

@keyframes page-back-in {
  from { opacity: .2; transform: perspective(900px) translate3d(-28px, 0, 0) rotateY(6deg) scale(1.018); }
  to { opacity: 1; transform: perspective(900px) translate3d(0, 0, 0) rotateY(0) scale(1); }
}

@keyframes page-zoom-in {
  from { opacity: .12; transform: translate3d(0, 8px, 0) scale(.93); }
  72% { opacity: 1; transform: translate3d(0, -1px, 0) scale(1.012); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes page-bubble-in {
  from { opacity: .12; transform: translate3d(0, 10px, 0) scale(.91); }
  58% { opacity: 1; transform: translate3d(0, -2px, 0) scale(1.025); }
  82% { transform: translate3d(0, 1px, 0) scale(.995); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition-forward,
  .page-transition-back,
  .page-transition-zoom,
  .page-transition-bubble {
    animation: none;
  }
}
.evidence-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.evidence-dashboard-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(43, 117, 103, .2);
  border-radius: 7px;
  background: #fff;
}
.evidence-dashboard-panel h4 { margin: 0 0 5px; color: #173e37; font-size: 18px; }
.evidence-dashboard-panel > p { margin: 0 0 10px; color: var(--muted); }
.evidence-dashboard-panel .evidence-chart-wrap { min-height: 240px; }
.evidence-dashboard-panel .evidence-chart { min-width: 0; }
.evidence-dashboard > .mobile-stimulus-chunk:last-child .evidence-dashboard-panel {
  grid-column: 1 / -1;
}
.table-scroll-hint {
  margin: 10px 0 0;
  color: #52655c;
  font-size: 14px;
  font-weight: 750;
}
.dashboard-notes,
.case-document-stack {
  margin-top: 16px;
  padding: 14px;
  border-left: 5px solid #d59b2d;
  background: #fff8e8;
}
.dashboard-notes ul { margin: 8px 0 0; padding-left: 22px; }
.case-document-stack { display: grid; gap: 10px; border-left-color: #238e7c; background: #effaf6; }
.case-document-stack section { padding-bottom: 10px; border-bottom: 1px solid rgba(35,142,124,.18); }
.case-document-stack section:last-child { padding-bottom: 0; border-bottom: 0; }
.case-document-stack span { display: block; color: #247568; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.case-document-stack strong { display: block; margin: 3px 0 5px; }
.case-document-stack p { margin: 0; }

@media (max-width: 760px) {
  .network-check .network-metrics,
  .evidence-dashboard { grid-template-columns: 1fr; }
  .network-meter { width: min(100%, 300px); }
}

/* v16.26: one lightweight animated 3D-cartoon guide at a time. */
.animated-guide-anchor {
  position: relative;
  min-height: 238px;
  margin: 14px 0 20px;
  overflow: visible;
  border: 1px solid rgba(31, 133, 118, .18);
  border-radius: 8px;
  background:
    linear-gradient(122deg, rgba(230, 250, 243, .94), rgba(239, 246, 255, .9) 48%, rgba(255, 240, 247, .88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.94), 0 12px 28px rgba(25, 78, 70, .08);
}

.animated-guide-anchor::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(31, 133, 118, .17);
  border-radius: 7px;
  pointer-events: none;
}

.animated-guide-anchor.guide-anchor-compact {
  min-height: 132px;
  margin: 8px 0 14px;
}

.animated-guide {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  min-height: 236px;
  margin: 0 auto;
  padding: 4px clamp(18px, 4vw, 46px);
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  pointer-events: none;
}

.animated-guide-figure {
  position: relative;
  align-self: end;
  height: 232px;
  display: grid;
  place-items: start center;
  overflow: hidden;
  transform-origin: 50% 100%;
  animation: guide-dance-a 7.2s ease-in-out infinite;
  will-change: transform;
  contain: paint;
  backface-visibility: hidden;
}

.animated-guide img {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  height: 340px;
  max-width: none;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 10px 10px rgba(22, 65, 61, .18));
  transform-origin: 50% 72%;
  opacity: 1;
  transition: opacity 90ms linear;
  animation: guide-greeting 6.4s ease-in-out infinite alternate;
  will-change: transform;
  image-rendering: auto;
  backface-visibility: hidden;
}

.animated-guide-shadow {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 3px;
  width: 112px;
  height: 17px;
  border-radius: 50%;
  background: rgba(29, 82, 75, .18);
  filter: blur(5px);
  transform: translateX(-50%);
  animation: guide-shadow 2.4s ease-in-out infinite alternate;
}

.animated-guide-bubble {
  position: relative;
  max-width: 620px;
  padding: 20px 24px;
  border: 1px solid rgba(50, 125, 112, .26);
  border-radius: 8px;
  color: #173d37;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 30px rgba(29, 80, 73, .12);
  animation: guide-bubble-float 4s ease-in-out infinite alternate;
  will-change: transform;
}

.animated-guide-bubble::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 44%;
  width: 24px;
  height: 24px;
  border-left: 1px solid rgba(50, 125, 112, .26);
  border-bottom: 1px solid rgba(50, 125, 112, .26);
  background: #fff;
  transform: rotate(45deg);
}

.animated-guide-label {
  display: block;
  margin-bottom: 5px;
  color: #218678;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.animated-guide-bubble strong {
  display: block;
  font-size: clamp(20px, 2.4vw, 29px);
  line-height: 1.18;
}

.animated-guide-bubble p {
  margin: 9px 0 0;
  color: #536860;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.52;
}

.guide-speaking-dots {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}

.guide-speaking-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ca28f;
  animation: guide-speaking 1.25s ease-in-out infinite;
}
.guide-speaking-dots i:nth-child(2) { animation-delay: .16s; background: #e56e6b; }
.guide-speaking-dots i:nth-child(3) { animation-delay: .32s; background: #357bc2; }

.guide-motion-mark {
  position: absolute;
  z-index: 0;
  width: 13px;
  height: 13px;
  border: 3px solid #28a38f;
  transform: rotate(45deg);
  animation: guide-mark 2.7s ease-in-out infinite alternate;
}
.guide-motion-mark-one { left: 5%; top: 22%; }
.guide-motion-mark-two { right: 4%; top: 12%; border-color: #df6582; animation-delay: -1.2s; }

.animated-guide.guide-motion-1 .animated-guide-figure { animation-name: guide-dance-b; animation-duration: 7.6s; }
.animated-guide.guide-motion-2 .animated-guide-figure { animation-name: guide-dance-c; animation-duration: 6.9s; }

.animated-guide.guide-compact {
  min-height: 130px;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 17px;
  padding-block: 3px;
}
.animated-guide.guide-compact .animated-guide-figure { height: 126px; }
.animated-guide.guide-compact img { height: 210px; max-width: none; object-position: center top; }
.animated-guide.guide-compact .animated-guide-bubble { padding: 12px 17px; }
.animated-guide.guide-compact .animated-guide-bubble strong { font-size: 18px; }
.animated-guide.guide-compact .animated-guide-bubble p { margin-top: 4px; font-size: 14px; }
.animated-guide.guide-compact .guide-speaking-dots { margin-top: 6px; }

@keyframes guide-dance-a {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-.22deg); }
  25% { transform: translate3d(2px, -2px, 0) rotate(.35deg); }
  52% { transform: translate3d(-1px, 0, 0) rotate(-.12deg); }
  76% { transform: translate3d(1px, -2px, 0) rotate(.25deg); }
}
@keyframes guide-dance-b {
  0%, 100% { transform: translate3d(-1px, 0, 0) rotate(.18deg); }
  35% { transform: translate3d(2px, -2px, 0) rotate(-.32deg); }
  70% { transform: translate3d(-2px, -1px, 0) rotate(.28deg); }
}
@keyframes guide-dance-c {
  0%, 100% { transform: translate3d(0, -1px, 0) rotate(-.18deg); }
  30% { transform: translate3d(-2px, -2px, 0) rotate(.34deg); }
  65% { transform: translate3d(2px, 0, 0) rotate(-.25deg); }
}
@keyframes guide-greeting {
  0% { transform: perspective(700px) translate3d(-.5px, 0, 0) rotateY(-.55deg) rotateZ(-.08deg) scale(1); }
  52% { transform: perspective(700px) translate3d(0, -1px, 0) rotateY(.24deg) rotateZ(.07deg) scale(1.002); }
  100% { transform: perspective(700px) translate3d(.5px, -.5px, 0) rotateY(.6deg) rotateZ(.05deg) scale(1.001); }
}
@keyframes guide-shadow { from { opacity: .55; transform: translateX(-50%) scale(.88); } to { opacity: .9; transform: translateX(-50%) scale(1.08); } }
@keyframes guide-bubble-float { from { transform: translate3d(0, 2px, 0); } to { transform: translate3d(0, -3px, 0); } }
@keyframes guide-speaking { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-5px); opacity: 1; } }
@keyframes guide-mark { from { opacity: .4; transform: translate3d(0, 5px, 0) rotate(35deg); } to { opacity: .9; transform: translate3d(5px, -4px, 0) rotate(72deg); } }

@media (max-width: 720px) {
  .animated-guide-anchor { min-height: 154px; margin: 10px 0 15px; }
  .animated-guide {
    min-height: 152px;
    padding: 3px 10px;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
  }
  .animated-guide-figure { height: 150px; }
  .animated-guide img { height: 220px; max-width: none; }
  .animated-guide-bubble { padding: 12px 13px; }
  .animated-guide-bubble::before { left: -8px; width: 15px; height: 15px; }
  .animated-guide-bubble strong { font-size: 17px; }
  .animated-guide-bubble p { margin-top: 5px; font-size: 13px; line-height: 1.42; }
  .animated-guide-label { font-size: 10px; }
  .guide-speaking-dots { margin-top: 7px; }
  .animated-guide.guide-compact { grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
  .animated-guide.guide-compact img { height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  .animated-guide-figure,
  .animated-guide img,
  .animated-guide-shadow,
  .animated-guide-bubble,
  .guide-speaking-dots i,
  .guide-motion-mark { animation: none; }
}

/* Keep the original professional banner, but frame it from head to waist. */
.professional-roles-artwork {
  height: clamp(270px, 28vw, 330px);
}

.professional-roles-artwork img {
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 640px) {
  .professional-roles-artwork { height: 230px; }
  .professional-roles-artwork img { object-position: center top; }
}

.ambient-ornaments {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shell { z-index: 1; }

.ornament {
  position: absolute;
  display: block;
  width: 14px;
  height: 14px;
  opacity: .72;
  animation: ornament-drift 8s ease-in-out infinite alternate;
}
.ornament-diamond { border: 3px solid #48d6c0; transform: rotate(45deg); }
.ornament-plus::before,
.ornament-plus::after { content: ""; position: absolute; background: #f58a61; border-radius: 2px; }
.ornament-plus::before { top: 5px; left: 0; width: 16px; height: 4px; }
.ornament-plus::after { top: -1px; left: 6px; width: 4px; height: 16px; }
.ornament-ring { border: 3px solid #f4c552; border-radius: 50%; }
.ornament-triangle { width: 17px; height: 17px; background: #72a7ff; clip-path: polygon(50% 0, 100% 92%, 0 92%); }
.ornament-star { width: 18px; height: 18px; background: #ed75a8; clip-path: polygon(50% 0,61% 36%,100% 39%,69% 61%,79% 100%,50% 76%,21% 100%,31% 61%,0 39%,39% 36%); }
.ornament-one { top: 8%; left: 3%; }
.ornament-two { top: 19%; right: 3%; animation-delay: -1.2s; }
.ornament-three { top: 45%; left: 2%; animation-delay: -3.4s; }
.ornament-four { top: 63%; right: 2.5%; animation-delay: -4.6s; }
.ornament-five { bottom: 8%; left: 4%; animation-delay: -2.5s; }
.ornament-six { bottom: 18%; right: 4%; animation-delay: -6s; border-color: #ec7393; }
.ornament-seven { top: 34%; left: 1%; animation-delay: -5.2s; }
.ornament-eight { top: 78%; right: 1.5%; animation-delay: -3.1s; border-color: #61d9c4; }

@keyframes ornament-drift {
  from { opacity: .38; translate: 0 5px; rotate: -8deg; }
  to { opacity: .9; translate: 7px -8px; rotate: 16deg; }
}

@media (max-width: 720px) {
  .ornament:nth-child(even) { display: none; }
  .ornament { opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
  .ornament { animation: none; }
}

/* v16.26: richer presentation effects, kept on compositor-only properties. */
.page-transition-flip,
.page-transition-swell,
.page-transition-wave {
  transform-origin: 50% 38%;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.page-transition-flip { animation: page-flip-in 340ms cubic-bezier(.2,.82,.2,1) both; }
.page-transition-swell { animation: page-swell-in 330ms cubic-bezier(.16,.88,.24,1) both; }
.page-transition-wave { animation: page-wave-in 350ms cubic-bezier(.18,.82,.22,1) both; }

@keyframes page-flip-in {
  from { opacity: .12; transform: perspective(1050px) translate3d(0, 14px, 0) rotateX(-13deg) rotateY(5deg) scale(.97); }
  72% { opacity: 1; transform: perspective(1050px) translate3d(0, -1px, 0) rotateX(1.1deg) rotateY(-.7deg) scale(1.006); }
  to { opacity: 1; transform: perspective(1050px) translate3d(0, 0, 0) rotateX(0) rotateY(0) scale(1); }
}

@keyframes page-swell-in {
  from { opacity: .1; transform: translate3d(0, 8px, 0) scale(.9, .94); }
  58% { opacity: 1; transform: translate3d(0, -2px, 0) scale(1.026, 1.016); }
  80% { transform: translate3d(0, 1px, 0) scale(.994, .998); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes page-wave-in {
  from { opacity: .12; transform: perspective(950px) translate3d(30px, 7px, 0) rotateY(-7deg) rotateZ(-1.2deg) scale(.975); }
  52% { opacity: 1; transform: perspective(950px) translate3d(-3px, -2px, 0) rotateY(1.1deg) rotateZ(.45deg) scale(1.008); }
  78% { transform: perspective(950px) translate3d(1px, 1px, 0) rotateY(-.35deg) rotateZ(-.18deg) scale(.998); }
  to { opacity: 1; transform: perspective(950px) translate3d(0, 0, 0) rotateY(0) rotateZ(0) scale(1); }
}

/* Exactly one animated image is rendered; all body-part motion lives in its WebP frames. */
.animated-guide .guide-base-image { position: relative; z-index: 2; }

/* Dense pastel paper ornaments live only in the reserved edge gutters. */
.surface,
.stimulus,
.reading-stimulus,
.data-stimulus,
.reasoning-stimulus,
.evidence-dashboard-panel,
.instruction-guide-grid section,
.camera-check {
  position: relative;
}

.stimulus::before,
.reading-stimulus::before,
.data-stimulus::before,
.reasoning-stimulus::before,
.evidence-dashboard-panel::before,
.instruction-guide-grid section::before,
.camera-check::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .76;
  background:
    radial-gradient(circle, #63cfba 0 2px, transparent 2.4px) 8px 8px / 6px 6px no-repeat,
    radial-gradient(circle, #ee88ac 0 2.2px, transparent 2.7px) 29% 6px / 7px 7px no-repeat,
    radial-gradient(circle, #efbe55 0 1.8px, transparent 2.3px) 53% 7px / 6px 6px no-repeat,
    radial-gradient(ellipse, #7aa8ed 0 48%, transparent 53%) 76% 5px / 8px 5px no-repeat,
    linear-gradient(45deg, transparent 35%, #9a8be4 36% 64%, transparent 65%) calc(100% - 9px) 8px / 7px 7px no-repeat,
    linear-gradient(135deg, transparent 36%, #ee926d 37% 63%, transparent 64%) 9px calc(100% - 9px) / 8px 8px no-repeat,
    radial-gradient(circle, #4fc6d2 0 2px, transparent 2.5px) 24% calc(100% - 7px) / 7px 7px no-repeat,
    radial-gradient(ellipse, #f19fba 0 48%, transparent 53%) 49% calc(100% - 7px) / 9px 5px no-repeat,
    linear-gradient(45deg, transparent 34%, #e8b64c 35% 65%, transparent 66%) 73% calc(100% - 9px) / 7px 7px no-repeat,
    radial-gradient(circle, #78cdbb 0 2.2px, transparent 2.7px) calc(100% - 9px) calc(100% - 9px) / 7px 7px no-repeat;
  pointer-events: none;
  animation: paper-star-twinkle 4.8s ease-in-out infinite alternate;
}

.stimulus::after,
.reading-stimulus::after,
.data-stimulus::after,
.reasoning-stimulus::after,
.evidence-dashboard-panel::after,
.instruction-guide-grid section::after,
.camera-check::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .72;
  background:
    radial-gradient(circle, #ed8cab 0 2px, transparent 2.5px) 6px 15% / 7px 7px no-repeat,
    linear-gradient(45deg, transparent 35%, #57cdb7 36% 64%, transparent 65%) 5px 29% / 8px 8px no-repeat,
    radial-gradient(ellipse, #efbd53 0 48%, transparent 53%) 6px 43% / 5px 10px no-repeat,
    radial-gradient(circle, #73a6ed 0 2.2px, transparent 2.7px) 7px 58% / 7px 7px no-repeat,
    linear-gradient(135deg, transparent 35%, #9b8ee2 36% 64%, transparent 65%) 5px 73% / 8px 8px no-repeat,
    radial-gradient(circle, #65cdb8 0 1.9px, transparent 2.4px) 7px 88% / 6px 6px no-repeat,
    radial-gradient(ellipse, #f19ab6 0 48%, transparent 53%) calc(100% - 7px) 13% / 5px 10px no-repeat,
    radial-gradient(circle, #eab84c 0 2.1px, transparent 2.6px) calc(100% - 8px) 27% / 7px 7px no-repeat,
    linear-gradient(45deg, transparent 35%, #61c9d0 36% 64%, transparent 65%) calc(100% - 7px) 42% / 8px 8px no-repeat,
    radial-gradient(circle, #8b92e8 0 1.9px, transparent 2.4px) calc(100% - 8px) 57% / 6px 6px no-repeat,
    radial-gradient(ellipse, #ee916c 0 48%, transparent 53%) calc(100% - 7px) 72% / 5px 10px no-repeat,
    linear-gradient(135deg, transparent 35%, #62cdb7 36% 64%, transparent 65%) calc(100% - 7px) 87% / 8px 8px no-repeat;
  pointer-events: none;
}

.stimulus > *,
.reading-stimulus > *,
.data-stimulus > *,
.reasoning-stimulus > *,
.evidence-dashboard-panel > *,
.instruction-guide-grid section > *,
.camera-check > * { position: relative; z-index: 1; }

@keyframes paper-star-twinkle {
  from { opacity: .52; }
  to { opacity: .88; }
}

/* A visible calibration sweep precedes the real latency/download readings. */
.network-meter::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -55%;
  opacity: 0;
  background: conic-gradient(from 20deg, transparent 0 78%, rgba(117, 255, 230, .2) 84%, rgba(255,255,255,.42) 89%, transparent 94% 100%);
  pointer-events: none;
  transform: rotate(0deg);
}
.network-meter.is-running::before {
  opacity: 1;
  animation: network-live-sweep 1.15s linear infinite;
  will-change: transform;
}
.network-meter-rings,
.network-meter-needle-svg,
.network-meter-hub,
.network-meter-readout { z-index: 2; }
@keyframes network-live-sweep { to { transform: rotate(360deg); } }

.ornament-petal {
  width: 12px;
  height: 20px;
  border-radius: 80% 20% 75% 25%;
  background: linear-gradient(145deg, #83dfc8, #f4a3be);
}
.ornament-sparkle {
  width: 18px;
  height: 18px;
  background: #f0c754;
  clip-path: polygon(50% 0,58% 39%,100% 50%,58% 61%,50% 100%,42% 61%,0 50%,42% 39%);
}
.ornament-confetti {
  width: 8px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(#67cdbb 0 33%, #efa06d 34% 66%, #7c9ee9 67%);
}
.ornament-nine { top: 12%; left: 8%; animation-delay: -2.1s; }
.ornament-ten { top: 27%; right: 8%; animation-delay: -5.2s; }
.ornament-eleven { top: 38%; left: 6%; animation-delay: -3.8s; }
.ornament-twelve { top: 52%; right: 7%; animation-delay: -1.7s; }
.ornament-thirteen { top: 68%; left: 7%; animation-delay: -6.1s; border-color: #9a8be4; }
.ornament-fourteen { top: 82%; right: 8%; animation-delay: -2.9s; }
.ornament-fifteen { top: 91%; left: 12%; animation-delay: -4.3s; }
.ornament-sixteen { top: 6%; right: 14%; animation-delay: -.8s; background: #6dc9e6; }
.ornament-seventeen { top: 31%; left: 11%; animation-delay: -6.8s; border-color: #ee8bab; }
.ornament-eighteen { top: 58%; right: 12%; animation-delay: -5.5s; background: #efbd53; }
.ornament-nineteen { top: 74%; left: 10%; animation-delay: -1.1s; }
.ornament-twenty { top: 88%; right: 11%; animation-delay: -3.3s; background: #7cd1be; }
.ornament-twenty-one { top: 3%; left: 22%; animation-delay: -4.9s; background: #f0a0ba; }
.ornament-twenty-two { top: 16%; right: 20%; animation-delay: -2.4s; border-color: #65cdb8; }
.ornament-twenty-three { top: 24%; left: 17%; animation-delay: -6.4s; background: #7ba6ee; }
.ornament-twenty-four { top: 42%; right: 18%; animation-delay: -3.6s; background: #efbd53; }
.ornament-twenty-five { top: 49%; left: 19%; animation-delay: -1.4s; }
.ornament-twenty-six { top: 61%; right: 21%; animation-delay: -5.8s; background: #ef8ead; }
.ornament-twenty-seven { top: 72%; left: 20%; animation-delay: -2.7s; border-color: #8991e7; }
.ornament-twenty-eight { top: 84%; right: 19%; animation-delay: -7.1s; background: #63cdb8; }
.ornament-twenty-nine { top: 94%; left: 26%; animation-delay: -.9s; background: #eda06f; }
.ornament-thirty { top: 9%; right: 30%; animation-delay: -5.1s; }
.ornament-thirty-one { top: 56%; left: 28%; animation-delay: -3.2s; background: #6fc9df; }
.ornament-thirty-two { top: 79%; right: 29%; animation-delay: -6.6s; background: #e7b84f; }

@media (max-width: 720px) {
  .stimulus::before,
  .reading-stimulus::before,
  .data-stimulus::before,
  .reasoning-stimulus::before { opacity: .62; }
  .stimulus::after,
  .reading-stimulus::after,
  .data-stimulus::after,
  .reasoning-stimulus::after { opacity: .56; }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition-flip,
  .page-transition-swell,
  .page-transition-wave,
  .stimulus::before,
  .reading-stimulus::before,
  .data-stimulus::before,
  .reasoning-stimulus::before,
  .evidence-dashboard-panel::before,
  .instruction-guide-grid section::before,
  .camera-check::before,
  .network-meter.is-running::before { animation: none; }
}

/* Independent entrance choreography and immediate feedback for every interactive box. */
.element-enter-slide,
.element-enter-pop,
.element-enter-flip,
.element-enter-swell,
.element-enter-wave {
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation-delay: var(--element-delay, 0ms);
  animation-duration: 270ms;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(.18,.84,.24,1);
}
.element-enter-slide { animation-name: element-slide-in; }
.element-enter-pop { animation-name: element-pop-in; }
.element-enter-flip { animation-name: element-flip-in; }
.element-enter-swell { animation-name: element-swell-in; }
.element-enter-wave { animation-name: element-wave-in; }

@keyframes element-slide-in {
  from { opacity: .08; transform: translate3d(16px, 5px, 0) scale(.988); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes element-pop-in {
  from { opacity: .08; transform: translate3d(0, 7px, 0) scale(.93); }
  72% { opacity: 1; transform: translate3d(0, -1px, 0) scale(1.016); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes element-flip-in {
  from { opacity: .08; transform: perspective(720px) translate3d(0, 8px, 0) rotateX(-12deg) rotateY(4deg) scale(.98); }
  to { opacity: 1; transform: perspective(720px) translate3d(0, 0, 0) rotateX(0) rotateY(0) scale(1); }
}
@keyframes element-swell-in {
  from { opacity: .08; transform: translate3d(0, 5px, 0) scale(.9, .94); }
  68% { opacity: 1; transform: translate3d(0, -1px, 0) scale(1.018, 1.012); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes element-wave-in {
  from { opacity: .08; transform: perspective(760px) translate3d(18px, 7px, 0) rotateY(-7deg) rotateZ(-.8deg) scale(.98); }
  72% { opacity: 1; transform: perspective(760px) translate3d(-1px, -1px, 0) rotateY(.6deg) rotateZ(.2deg) scale(1.006); }
  to { opacity: 1; transform: perspective(760px) translate3d(0, 0, 0) rotateY(0) rotateZ(0) scale(1); }
}

button:not(:disabled),
[role="button"],
.choice,
.option-row,
.review-item,
.registration-progress-item,
.preflight-progress-item,
.check-row {
  transform-origin: 50% 50%;
  transition: transform 90ms cubic-bezier(.2,.8,.2,1), box-shadow 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

button:not(:disabled):hover,
[role="button"]:hover,
.choice:hover,
.option-row:hover,
.review-item:hover,
.registration-progress-item:hover,
.preflight-progress-item:hover,
.check-row:hover { transform: translate3d(0, -1px, 0) scale(1.004); }

button:not(:disabled):active,
[role="button"]:active,
.choice:active,
.option-row:active,
.review-item:active,
.registration-progress-item:active,
.preflight-progress-item:active,
.check-row:active {
  animation: control-press 145ms cubic-bezier(.2,.82,.24,1) both;
}

.choice.selected,
.option-row.selected,
.registration-progress-item.active,
.preflight-progress-item.active,
.check-row:has(input:checked) {
  animation: control-selected 210ms cubic-bezier(.18,.86,.22,1) both;
}

.control-is-pressing.control-is-pressing {
  animation: control-press 145ms cubic-bezier(.2,.82,.24,1) both;
}

@keyframes control-press {
  0% { transform: translate3d(0, -1px, 0) scale(1.004); }
  48% { transform: translate3d(0, 1px, 0) scale(.972); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes control-selected {
  0% { transform: scale(.965); }
  58% { transform: scale(1.018); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .element-enter-slide,
  .element-enter-pop,
  .element-enter-flip,
  .element-enter-swell,
  .element-enter-wave,
  button:not(:disabled):active,
  [role="button"]:active,
  .choice:active,
  .option-row:active,
  .review-item:active,
  .registration-progress-item:active,
  .preflight-progress-item:active,
  .check-row:active,
  .control-is-pressing.control-is-pressing,
  .choice.selected,
  .option-row.selected,
  .registration-progress-item.active,
  .preflight-progress-item.active,
  .check-row:has(input:checked) { animation: none; }
}

/* v16.26: high-legibility assessment typography and zoom-safe text. */
html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body { overflow-x: clip; }

#assessmentView,
.instruction-copy,
.master-text-question,
.reading-stimulus,
.data-stimulus,
.reasoning-stimulus,
.evidence-question,
.evidence-options,
.option-row,
.choice {
  letter-spacing: 0;
  font-synthesis: none;
}

.instruction-copy { font-size: 20px; line-height: 1.7; }
.instruction-guide-grid strong { font-size: 21px; }
.instruction-guide-grid p { font-size: 19px; line-height: 1.65; }
.instruction-rules { font-size: 20px; line-height: 1.65; }

.question-stage { width: min(100%, 1040px); }

.master-text-question {
  width: min(100%, 72ch);
  font-size: 28px;
  line-height: 1.65;
  font-weight: 500;
  text-rendering: geometricPrecision;
}

.question-image,
.instruction-image,
.memory-image,
.image-zoom-scroll img {
  image-rendering: auto;
  filter: none;
  backface-visibility: visible;
}

.visual-question-image {
  width: auto;
  max-width: 100%;
  max-height: 58vh;
}

.choice { min-height: 68px; font-size: 22px; }

.reading-stimulus h3,
.data-stimulus h3,
.reasoning-stimulus h3 {
  font-size: 29px;
  line-height: 1.35;
}

.reading-stimulus > p:not(.evidence-context),
.reasoning-stimulus > p {
  font-size: 22px;
  line-height: 1.72;
}

.data-stimulus > p,
.evidence-dashboard-panel > p,
.dashboard-notes,
.case-document-stack p {
  font-size: 19px;
  line-height: 1.62;
}

.evidence-dashboard-panel h4 { font-size: 22px; line-height: 1.4; }

.evidence-question h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1.5;
  font-weight: 780;
  text-rendering: geometricPrecision;
}

.evidence-options .option-row,
.option-row,
.evidence-option-content,
.evidence-option-content > span:last-child {
  font-size: 21px;
  line-height: 1.58;
}

.evidence-options .option-row {
  min-height: 68px;
  padding: 15px 18px;
}

.evidence-table th,
.evidence-table td { font-size: 18px; }

.cognitive-code-grid > span { font-size: 20px; }
.cognitive-comparison-table { font-size: 19px; }

@media (max-width: 760px) {
  .instruction-copy { font-size: 19px; }
  .instruction-guide-grid strong { font-size: 20px; }
  .instruction-guide-grid p,
  .instruction-rules { font-size: 18px; }

  .master-text-question {
    width: 100%;
    font-size: 24px;
    line-height: 1.68;
  }

  .choice { min-height: 62px; font-size: 21px; }

  .reading-stimulus h3,
  .data-stimulus h3,
  .reasoning-stimulus h3 { font-size: 26px; }

  .reading-stimulus > p:not(.evidence-context),
  .reasoning-stimulus > p { font-size: 20px; line-height: 1.7; }

  .data-stimulus > p,
  .evidence-dashboard-panel > p,
  .dashboard-notes,
  .case-document-stack p { font-size: 18px; }

  .evidence-dashboard-panel h4 { font-size: 21px; }
  .evidence-question h3 { font-size: 28px; line-height: 1.5; }

  .evidence-options .option-row,
  .option-row,
  .evidence-option-content,
  .evidence-option-content > span:last-child { font-size: 20px; }

  .evidence-table { min-width: 760px; }
  .evidence-table th,
  .evidence-table td { font-size: 18px; }

  .cognitive-code-grid > span { font-size: 17px; }
  .cognitive-comparison-table { min-width: 700px; font-size: 17px; }
}

/* v16.26: evidence clarity, mobile paging, and visible integrity safeguards. */
.mobile-evidence-phase-switch,
.mobile-stimulus-pager { display: none; }

.mobile-stimulus-chunk { display: contents; }
.mobile-stimulus-chunk.mobile-only-stimulus-chunk { display: none; }

.reading-stimulus .mobile-stimulus-chunk > p {
  width: 100%;
  max-width: 860px;
  margin: 15px auto 0;
  color: #26342d;
  font-size: 22px;
  line-height: 1.72;
  text-align: justify;
  text-align-last: left;
}

.evidence-data-contract {
  margin: 18px 0 2px;
  padding: 17px 18px;
  border: 1px solid rgba(22, 130, 116, .28);
  border-left: 5px solid #128b7d;
  border-radius: 7px;
  background: linear-gradient(125deg, #f2fbf7, #f2f8ff 58%, #fff7f0);
}
.evidence-data-contract h4 {
  margin: 0 0 11px;
  color: #114f47;
  font-size: 20px;
}
.evidence-data-contract dl { margin: 0; }
.evidence-data-contract dl > div {
  display: grid;
  grid-template-columns: minmax(150px, .34fr) 1fr;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid rgba(40, 112, 101, .15);
}
.evidence-data-contract dl > div:first-child { border-top: 0; }
.evidence-data-contract dt {
  color: #1c5f56;
  font-weight: 850;
}
.evidence-data-contract dd {
  margin: 0;
  color: #31443d;
  line-height: 1.55;
}

.chart-plot-background {
  fill: #fbfefd;
  stroke: #d8e7e2;
  stroke-width: 1;
}
.chart-grid-line-vertical { opacity: .46; stroke-dasharray: 3 5; }
.chart-reference-label {
  fill: #79334d;
  font: 750 13px "Segoe UI", Arial, sans-serif;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
}
.chart-axis-label,
.chart-value-label,
.chart-legend-label { letter-spacing: 0; }

.integrity-warning {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(43, 5, 12, .46);
  backdrop-filter: blur(8px) saturate(.72);
  -webkit-backdrop-filter: blur(8px) saturate(.72);
}
.integrity-warning-panel {
  position: relative;
  width: min(610px, 100%);
  overflow: hidden;
  padding: 30px 32px 28px;
  border: 1px solid rgba(255, 186, 194, .92);
  border-radius: 8px;
  color: #3d1118;
  background: rgba(255, 247, 248, .96);
  box-shadow: 0 24px 70px rgba(66, 4, 14, .38), 0 0 0 8px rgba(255, 103, 120, .12);
  animation: integrity-warning-enter .24s cubic-bezier(.2, .8, .2, 1);
}
.integrity-warning-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, #a90f2a, #ec445b, #ff8d6b, #c9143d);
}
.integrity-warning-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ba0d2c, #f14f61);
  box-shadow: 0 10px 24px rgba(184, 14, 44, .25);
  font-size: 31px;
  font-weight: 900;
}
.integrity-warning-label {
  margin: 0 0 7px;
  color: #a70f2b;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}
.integrity-warning-panel h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 36px);
  line-height: 1.25;
}
.integrity-warning-panel > p:not(.integrity-warning-label) {
  color: #67313a;
  font-size: 19px;
  line-height: 1.6;
}
.integrity-warning-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 9px 18px;
  padding: 13px 15px;
  border-left: 4px solid #d62442;
  background: #ffe8eb;
}
.integrity-warning-facts span,
.integrity-warning-facts strong { font-size: 16px; }
.integrity-warning-action {
  width: 100%;
  min-height: 58px;
  margin-top: 7px;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(100deg, #a70e2a, #e63c56 54%, #f0715f);
  font-size: 19px;
}
.integrity-warning-action:disabled {
  color: #74434b;
  background: #ead7da;
}
.integrity-content-obscured #assessmentView {
  filter: blur(5px) saturate(.5);
  pointer-events: none;
  user-select: none;
}
@keyframes integrity-warning-enter {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  .mobile-evidence-phase-switch {
    position: sticky;
    top: 6px;
    z-index: 12;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin: 0 0 15px;
    padding: 5px;
    border: 1px solid rgba(29, 122, 108, .22);
    border-radius: 7px;
    background: rgba(245, 251, 248, .96);
    box-shadow: 0 8px 20px rgba(18, 62, 55, .1);
    backdrop-filter: blur(8px);
  }
  .mobile-evidence-phase-switch button {
    min-height: 48px;
    padding: 8px 10px;
    border: 0;
    border-radius: 5px;
    color: #46615a;
    background: transparent;
    font-size: 16px;
    font-weight: 850;
  }
  .mobile-evidence-phase-switch button.active {
    color: #fff;
    background: linear-gradient(105deg, #0b8779, #20a9bd 58%, #4172c8);
    box-shadow: 0 5px 14px rgba(22, 124, 132, .2);
  }
  .mobile-stimulus-chunk { display: none; }
  .mobile-stimulus-chunk.mobile-chunk-active { display: block; }
  .desktop-data-contract { display: none; }
  .mobile-stimulus-pager {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(35, 111, 99, .18);
  }
  .mobile-stimulus-pager .button {
    width: 100%;
    min-height: 52px;
    font-size: 17px;
  }
  .mobile-stimulus-position {
    grid-row: 1;
    color: #426058;
    text-align: center;
    font-size: 16px;
    font-weight: 850;
  }
  .mobile-stimulus-previous:disabled { display: none; }
  .evidence-stage[data-mobile-phase="stimulus"] .evidence-question { display: none; }
  .evidence-stage[data-mobile-phase="question"] .evidence-stimulus-shell,
  .evidence-stage[data-mobile-phase="question"] .evidence-item-meta { display: none; }
  .evidence-stage[data-mobile-phase="question"] .evidence-question { margin-top: 5px; }
  .evidence-stimulus-shell { min-height: 52vh; }
  .reading-stimulus .mobile-stimulus-chunk > p {
    font-size: 22px;
    line-height: 1.72;
    text-align: left;
  }
  .evidence-question h3 {
    font-size: 30px;
    line-height: 1.46;
  }
  .evidence-options .option-row,
  .evidence-option-content,
  .evidence-option-content > span:last-child {
    font-size: 22px;
    line-height: 1.58;
  }
  .evidence-data-contract dl > div { grid-template-columns: 1fr; gap: 4px; }
  .evidence-data-contract dt { font-size: 17px; }
  .evidence-data-contract dd { font-size: 18px; }
  .data-dashboard-stimulus .evidence-dashboard { display: block; }
  .evidence-dashboard-panel { padding: 13px 11px; }
  .evidence-chart-wrap { overscroll-behavior-inline: contain; }
  .integrity-warning { padding: 14px; }
  .integrity-warning-panel { padding: 25px 20px 21px; }
  .integrity-warning-panel > p:not(.integrity-warning-label) { font-size: 18px; }
  .integrity-warning-facts { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .integrity-warning-panel { animation: none; }
}

/* v16.26: independent, deterministic motion choreography without layout animation. */
.page-transition-rise,
.page-transition-fold,
.page-transition-orbit {
  transform-origin: 50% 38%;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.page-transition-rise { animation: page-rise-in 310ms cubic-bezier(.18,.86,.22,1) both; }
.page-transition-fold { animation: page-fold-in 350ms cubic-bezier(.2,.82,.2,1) both; }
.page-transition-orbit { animation: page-orbit-in 360ms cubic-bezier(.16,.86,.22,1) both; }

@keyframes page-rise-in {
  from { opacity: .1; transform: translate3d(0, 24px, 0) scale(.982); }
  70% { opacity: 1; transform: translate3d(0, -2px, 0) scale(1.005); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes page-fold-in {
  from { opacity: .1; transform: perspective(1050px) translate3d(-18px, 8px, 0) rotateY(11deg) rotateX(-4deg) scale(.975); }
  72% { opacity: 1; transform: perspective(1050px) translate3d(1px, -1px, 0) rotateY(-.8deg) rotateX(.4deg) scale(1.005); }
  to { opacity: 1; transform: perspective(1050px) translate3d(0, 0, 0) rotateY(0) rotateX(0) scale(1); }
}

@keyframes page-orbit-in {
  from { opacity: .08; transform: perspective(980px) translate3d(-20px, 13px, 0) rotateZ(-1.8deg) rotateY(5deg) scale(.965); }
  56% { opacity: 1; transform: perspective(980px) translate3d(3px, -2px, 0) rotateZ(.45deg) rotateY(-.7deg) scale(1.009); }
  80% { transform: perspective(980px) translate3d(-1px, 1px, 0) rotateZ(-.15deg) rotateY(.2deg) scale(.998); }
  to { opacity: 1; transform: perspective(980px) translate3d(0, 0, 0) rotateZ(0) rotateY(0) scale(1); }
}

.element-enter-rise,
.element-enter-drift,
.element-enter-fold,
.element-enter-orbit {
  backface-visibility: hidden;
  will-change: transform, opacity;
  animation-delay: var(--element-delay, 0ms);
  animation-duration: 280ms;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(.18,.84,.24,1);
}
.element-delay-0 { --element-delay: 0ms; }
.element-delay-1 { --element-delay: 12ms; }
.element-delay-2 { --element-delay: 24ms; }
.element-delay-3 { --element-delay: 36ms; }
.element-delay-4 { --element-delay: 48ms; }
.element-delay-5 { --element-delay: 60ms; }
.element-delay-6 { --element-delay: 72ms; }
.element-delay-7 { --element-delay: 84ms; }
.element-delay-8 { --element-delay: 96ms; }
.element-delay-9 { --element-delay: 108ms; }
.element-delay-10 { --element-delay: 120ms; }
.element-delay-11 { --element-delay: 132ms; }
.element-delay-12 { --element-delay: 144ms; }
.element-delay-13 { --element-delay: 156ms; }
.element-delay-14 { --element-delay: 168ms; }

.element-enter-rise { animation-name: element-rise-in; }
.element-enter-drift { animation-name: element-drift-in; }
.element-enter-fold { animation-name: element-fold-in; }
.element-enter-orbit { animation-name: element-orbit-in; }

@keyframes element-rise-in {
  from { opacity: .08; transform: translate3d(0, 15px, 0) scale(.987); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes element-drift-in {
  from { opacity: .08; transform: translate3d(-15px, 4px, 0) rotateZ(-.6deg) scale(.99); }
  74% { opacity: 1; transform: translate3d(1px, 0, 0) rotateZ(.1deg) scale(1.003); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotateZ(0) scale(1); }
}
@keyframes element-fold-in {
  from { opacity: .08; transform: perspective(760px) translate3d(-10px, 7px, 0) rotateY(9deg) rotateX(-3deg) scale(.985); }
  to { opacity: 1; transform: perspective(760px) translate3d(0, 0, 0) rotateY(0) rotateX(0) scale(1); }
}
@keyframes element-orbit-in {
  from { opacity: .08; transform: translate3d(13px, 9px, 0) rotateZ(1.1deg) scale(.965); }
  68% { opacity: 1; transform: translate3d(-1px, -1px, 0) rotateZ(-.18deg) scale(1.008); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotateZ(0) scale(1); }
}

.control-motion-compress:hover { transform: translate3d(0, -1px, 0) scale(1.006); }
.control-motion-pulse:hover { transform: translate3d(0, 0, 0) scale(1.009); }
.control-motion-tilt-left:hover { transform: translate3d(0, -1px, 0) rotateZ(-.35deg) scale(1.003); }
.control-motion-tilt-right:hover { transform: translate3d(0, -1px, 0) rotateZ(.35deg) scale(1.003); }
.control-motion-spring:hover { transform: translate3d(0, -2px, 0) scale(1.003); }
.control-motion-flip:hover { transform: perspective(720px) translate3d(0, -1px, 0) rotateX(-1.2deg) scale(1.003); }
.control-motion-wave:hover { transform: translate3d(1px, -1px, 0) rotateZ(.2deg) scale(1.003); }

.control-is-pressing.control-motion-compress { animation: control-press-compress 145ms cubic-bezier(.2,.82,.24,1) both; }
.control-is-pressing.control-motion-pulse { animation: control-press-pulse 175ms cubic-bezier(.18,.88,.22,1) both; }
.control-is-pressing.control-motion-tilt-left { animation: control-press-tilt-left 165ms cubic-bezier(.2,.84,.24,1) both; }
.control-is-pressing.control-motion-tilt-right { animation: control-press-tilt-right 165ms cubic-bezier(.2,.84,.24,1) both; }
.control-is-pressing.control-motion-spring { animation: control-press-spring 195ms cubic-bezier(.16,.9,.2,1) both; }
.control-is-pressing.control-motion-flip { animation: control-press-flip 185ms cubic-bezier(.2,.84,.22,1) both; }
.control-is-pressing.control-motion-wave { animation: control-press-wave 190ms cubic-bezier(.18,.86,.22,1) both; }

@keyframes control-press-compress {
  0% { transform: translate3d(0, -1px, 0) scale(1.004); }
  52% { transform: translate3d(0, 1px, 0) scale(.968); }
  to { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes control-press-pulse {
  0% { transform: scale(1); }
  42% { transform: scale(.954); }
  72% { transform: scale(1.018); }
  to { transform: scale(1); }
}
@keyframes control-press-tilt-left {
  0% { transform: translate3d(0, -1px, 0) rotateZ(0) scale(1.003); }
  50% { transform: translate3d(-1px, 1px, 0) rotateZ(-1.15deg) scale(.975); }
  to { transform: translate3d(0, 0, 0) rotateZ(0) scale(1); }
}
@keyframes control-press-tilt-right {
  0% { transform: translate3d(0, -1px, 0) rotateZ(0) scale(1.003); }
  50% { transform: translate3d(1px, 1px, 0) rotateZ(1.15deg) scale(.975); }
  to { transform: translate3d(0, 0, 0) rotateZ(0) scale(1); }
}
@keyframes control-press-spring {
  0% { transform: translate3d(0, -1px, 0) scale(1.003); }
  42% { transform: translate3d(0, 2px, 0) scale(.965); }
  72% { transform: translate3d(0, -2px, 0) scale(1.012); }
  to { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes control-press-flip {
  0% { transform: perspective(720px) rotateX(0) scale(1); }
  48% { transform: perspective(720px) translate3d(0, 1px, 0) rotateX(7deg) scale(.975); }
  to { transform: perspective(720px) rotateX(0) scale(1); }
}
@keyframes control-press-wave {
  0% { transform: translate3d(0, 0, 0) rotateZ(0) scale(1); }
  34% { transform: translate3d(-2px, 1px, 0) rotateZ(-.65deg) scale(.978); }
  68% { transform: translate3d(2px, -1px, 0) rotateZ(.45deg) scale(1.008); }
  to { transform: translate3d(0, 0, 0) rotateZ(0) scale(1); }
}

:is(.choice.selected, .option-row.selected, .registration-progress-item.active, .preflight-progress-item.active, .check-row:has(input:checked), .disc-table tbody tr.selected-most, .disc-table tbody tr.selected-least).control-motion-compress { animation: control-selected-compress 210ms cubic-bezier(.18,.86,.22,1) both; }
:is(.choice.selected, .option-row.selected, .registration-progress-item.active, .preflight-progress-item.active, .check-row:has(input:checked), .disc-table tbody tr.selected-most, .disc-table tbody tr.selected-least).control-motion-pulse { animation: control-selected-pulse 235ms cubic-bezier(.16,.9,.2,1) both; }
:is(.choice.selected, .option-row.selected, .registration-progress-item.active, .preflight-progress-item.active, .check-row:has(input:checked), .disc-table tbody tr.selected-most, .disc-table tbody tr.selected-least).control-motion-tilt-left { animation: control-selected-tilt-left 225ms cubic-bezier(.18,.86,.22,1) both; }
:is(.choice.selected, .option-row.selected, .registration-progress-item.active, .preflight-progress-item.active, .check-row:has(input:checked), .disc-table tbody tr.selected-most, .disc-table tbody tr.selected-least).control-motion-tilt-right { animation: control-selected-tilt-right 225ms cubic-bezier(.18,.86,.22,1) both; }
:is(.choice.selected, .option-row.selected, .registration-progress-item.active, .preflight-progress-item.active, .check-row:has(input:checked), .disc-table tbody tr.selected-most, .disc-table tbody tr.selected-least).control-motion-spring { animation: control-selected-spring 250ms cubic-bezier(.16,.9,.2,1) both; }
:is(.choice.selected, .option-row.selected, .registration-progress-item.active, .preflight-progress-item.active, .check-row:has(input:checked), .disc-table tbody tr.selected-most, .disc-table tbody tr.selected-least).control-motion-flip { animation: control-selected-flip 235ms cubic-bezier(.18,.86,.22,1) both; }
:is(.choice.selected, .option-row.selected, .registration-progress-item.active, .preflight-progress-item.active, .check-row:has(input:checked), .disc-table tbody tr.selected-most, .disc-table tbody tr.selected-least).control-motion-wave { animation: control-selected-wave 245ms cubic-bezier(.18,.86,.22,1) both; }

@keyframes control-selected-compress { from { transform: scale(.965); } 58% { transform: scale(1.018); } to { transform: scale(1); } }
@keyframes control-selected-pulse { from { transform: scale(.95); } 48% { transform: scale(1.025); } 76% { transform: scale(.995); } to { transform: scale(1); } }
@keyframes control-selected-tilt-left { from { transform: rotateZ(-1.2deg) scale(.97); } 62% { transform: rotateZ(.2deg) scale(1.014); } to { transform: rotateZ(0) scale(1); } }
@keyframes control-selected-tilt-right { from { transform: rotateZ(1.2deg) scale(.97); } 62% { transform: rotateZ(-.2deg) scale(1.014); } to { transform: rotateZ(0) scale(1); } }
@keyframes control-selected-spring { from { transform: translate3d(0, 3px, 0) scale(.96); } 48% { transform: translate3d(0, -2px, 0) scale(1.02); } 76% { transform: translate3d(0, 1px, 0) scale(.997); } to { transform: translate3d(0, 0, 0) scale(1); } }
@keyframes control-selected-flip { from { transform: perspective(720px) rotateX(7deg) scale(.97); } 65% { transform: perspective(720px) rotateX(-.6deg) scale(1.013); } to { transform: perspective(720px) rotateX(0) scale(1); } }
@keyframes control-selected-wave { from { transform: translate3d(-2px, 0, 0) rotateZ(-.7deg) scale(.97); } 48% { transform: translate3d(2px, -1px, 0) rotateZ(.4deg) scale(1.015); } to { transform: translate3d(0, 0, 0) rotateZ(0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .page-transition-rise,
  .page-transition-fold,
  .page-transition-orbit,
  .element-enter-rise,
  .element-enter-drift,
  .element-enter-fold,
  .element-enter-orbit,
  .control-is-pressing.control-motion-compress,
  .control-is-pressing.control-motion-pulse,
  .control-is-pressing.control-motion-tilt-left,
  .control-is-pressing.control-motion-tilt-right,
  .control-is-pressing.control-motion-spring,
  .control-is-pressing.control-motion-flip,
  .control-is-pressing.control-motion-wave,
  :is(.choice.selected, .option-row.selected, .registration-progress-item.active, .preflight-progress-item.active, .check-row:has(input:checked), .disc-table tbody tr.selected-most, .disc-table tbody tr.selected-least) {
    animation: none;
    transition: none;
  }
}

/* r9 final cascade: keep question text large, aligned, and zoom-safe. */
.instruction-copy { font-size: 21px; line-height: 1.72; }
.master-text-question {
  width: min(100%, 70ch);
  margin-inline: auto;
  font-size: 30px;
  line-height: 1.62;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.reading-stimulus > p:not(.evidence-context),
.reading-stimulus .mobile-stimulus-chunk > p,
.reasoning-stimulus > p,
.case-document-stack p {
  max-width: 76ch;
  margin-inline: auto;
  font-size: 23px;
  line-height: 1.72;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.evidence-question h3 {
  width: min(100%, 68ch);
  margin-inline: auto;
  font-size: 33px;
  line-height: 1.46;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.choice,
.option-row,
.evidence-option-content,
.evidence-option-content > span:last-child {
  font-size: 23px;
  line-height: 1.56;
  text-align: left;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
@media (max-width: 760px) {
  .instruction-copy { font-size: 20px; line-height: 1.7; }
  .master-text-question { font-size: 27px; line-height: 1.62; }
  .reading-stimulus > p:not(.evidence-context),
  .reading-stimulus .mobile-stimulus-chunk > p,
  .reasoning-stimulus > p,
  .case-document-stack p { font-size: 22px; line-height: 1.7; }
  .evidence-question h3 { font-size: 30px; line-height: 1.44; }
  .choice,
  .option-row,
  .evidence-option-content,
  .evidence-option-content > span:last-child { font-size: 22px; line-height: 1.56; }
}
@media (max-width: 480px) {
  .reading-stimulus > p:not(.evidence-context),
  .reading-stimulus .mobile-stimulus-chunk > p,
  .reasoning-stimulus > p,
  .case-document-stack p {
    text-align: left;
    text-align-last: auto;
  }
}
