/* Shared Simple-X tokens. Keep the existing white / black / red / electric-blue identity. */
:root {
  --red: #ed3024;
  --blue: #1458f5;
  --ink: #111;
  --muted: #686b73;
  --line: #e1e4eb;
  --soft: #f5f7fb;
  --blue-soft: #edf2ff;
  --paper: #fff;
  --radius: 7px;
  --max: 1200px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.55 Arial,
    Helvetica,
    sans-serif;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
}
h1 {
  font-size: clamp(38px, 4.5vw, 62px);
  letter-spacing: -2.6px;
}
h2 {
  font-size: clamp(27px, 3vw, 39px);
  letter-spacing: -1.3px;
}
h3 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
p {
  color: var(--muted);
}
img {
  max-width: 100%;
  display: block;
}
input[type="checkbox"] {
  accent-color: var(--red);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
input[type="radio"] {
  accent-color: var(--red);
}
select,
input:not([type="checkbox"]):not([type="radio"]),
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cdd2dd;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
textarea {
  min-height: 80px;
  resize: vertical;
}
label {
  font-size: 13px;
  font-weight: 600;
}
label small {
  font-weight: 400;
  color: var(--muted);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
legend {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
details summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
details[open] summary {
  margin-bottom: 18px;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 10px;
  padding: 10px;
  background: #fff;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.wrap {
  width: min(var(--max), calc(100% - 64px));
  margin: auto;
  padding: 48px 0 70px;
}
.narrow {
  max-width: 740px;
}
.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 32px;
}
.page-title h1 {
  margin: 10px 0 14px;
}
.eyebrow {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
}
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.space-top {
  margin-top: 24px;
}
.section {
  padding: 58px 0;
  border-top: 1px solid var(--line);
}
.section-heading {
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.section-heading p {
  max-width: 430px;
  font-size: 14px;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  padding: 12px 19px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: bold;
  min-height: 45px;
}
.btn.red {
  background: var(--red);
  border-color: var(--red);
}
.btn.light {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn.small-btn {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12px;
}
.text-btn {
  border: 0;
  background: none;
  padding: 6px 0;
  color: var(--blue);
  font-size: 13px;
  text-decoration: none;
}
.text-btn:hover {
  text-decoration: underline;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  background: white;
  min-width: 0;
}
.card h3 + p {
  margin-top: 10px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.span-2 {
  grid-column: 1/-1;
}
.stack {
  display: grid;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field + .field {
  margin-top: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}
.form-grid .field + .field {
  margin: 0;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 400;
  min-height: 29px;
}
.checkline label {
  font-weight: 400;
}
.help {
  font-size: 12px;
  color: var(--muted);
}
.badge {
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 5px 8px;
  border-radius: 3px;
  background: var(--blue-soft);
  color: #1e51ba;
  display: inline-block;
}
.badge.gray {
  background: var(--soft);
  color: var(--muted);
}
.badge.red {
  background: #fff0ee;
  color: #ba2b22;
}
.badge.dark {
  background: #111;
  color: #fff;
}
.error {
  color: #b5231a;
  font-size: 13px;
  margin-top: 12px;
}
.notice {
  padding: 16px 19px;
  background: var(--soft);
  border-radius: 5px;
  font-size: 13px;
  color: #4d535f;
}
.notice.blue {
  background: var(--blue-soft);
  color: #234378;
}
.notice strong {
  color: var(--ink);
}
.inline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.divider-top {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.choice {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
}
.choice[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.choice.blue[aria-pressed="true"] {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: var(--blue);
}
.segment {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  background: #eef1f7;
  border-radius: 5px;
  max-width: 100%;
  flex-wrap: wrap;
}
.segment button {
  border: 0;
  background: transparent;
  padding: 8px 13px;
  border-radius: 3px;
  font-size: 12px;
}
.segment button[aria-pressed="true"] {
  background: white;
  box-shadow: 0 1px 4px #0001;
  color: var(--ink);
  font-weight: bold;
}
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 76px;
  width: min(var(--max), calc(100% - 64px));
  margin: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}
.logo {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -1.2px;
  text-decoration: none;
  line-height: 1;
}
.logo b {
  color: var(--red);
}
.header-inner nav {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-left: auto;
}
.nav-link {
  font-size: 13px;
  text-decoration: none;
  border: 0;
  background: none;
  padding: 8px 0;
  color: var(--muted);
}
.nav-link.active {
  color: #111;
  border-bottom: 2px solid var(--red);
}
.avatar {
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-soft);
  font-weight: bold;
  color: var(--blue);
}
.prototype-note {
  background: #f2f5ff;
  padding: 7px 20px;
  text-align: center;
  font-size: 11px;
  color: #485675;
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.footer-inner {
  width: min(var(--max), calc(100% - 64px));
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  font-size: 11px;
  color: var(--muted);
}
.footer-inner .logo {
  font-size: 18px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 23px;
  background: #111;
  color: #fff;
  max-width: calc(100vw - 32px);
  border-radius: 5px;
  font-size: 13px;
  z-index: 70;
  box-shadow: 0 5px 25px #0002;
}
dialog {
  width: min(640px, calc(100% - 32px));
  max-height: 90dvh;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  padding: 28px;
  color: var(--ink);
}
dialog::backdrop {
  background: #111a;
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}
.modal-heading h2 {
  font-size: 29px;
}
.close {
  border: 0;
  background: var(--soft);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 22px;
  line-height: 1;
}
.modal-choice {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: white;
  padding: 15px;
  margin: 10px 0;
  border-radius: 4px;
}
.modal-choice span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.hero {
  position: relative;
  height: min(76vh, 740px);
  min-height: 560px;
  background: #111;
  overflow: hidden;
}
.hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 48%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #000c, #0003 60%, transparent),
    linear-gradient(0deg, #0005, transparent 60%);
}
.hero-copy {
  position: absolute;
  left: max(32px, calc((100vw - var(--max)) / 2));
  bottom: 68px;
  max-width: 595px;
  color: #fff;
}
.hero .eyebrow {
  color: #fff;
}
.hero h1 {
  font-size: clamp(50px, 5.5vw, 77px);
  letter-spacing: -3.5px;
  line-height: 1.02;
  margin: 21px 0;
}
.hero h1 span {
  color: #ff493d;
}
.hero-copy p {
  color: #eee;
  font-size: 17px;
  max-width: 370px;
  margin-bottom: 28px;
}
.hero-meta {
  font-size: 11px;
  margin-top: 22px;
  color: #ddd;
  letter-spacing: 1px;
}
.credit {
  position: absolute;
  right: 20px;
  bottom: 14px;
  color: #ddd;
  font-size: 9px;
}
.data-demo {
  padding: 60px 0;
}
.data-demo .eyebrow {
  margin-bottom: 12px;
}
.data-demo h2 {
  font-size: 43px;
}
.compare-demo {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
  margin-top: 30px;
}
.compare-copy p {
  font-size: 15px;
  max-width: 390px;
  margin: 18px 0;
}
.sample-comparison {
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: 26px;
  border-radius: 5px;
}
.compare-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.grade-big {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
}
.comparison-row {
  margin: 20px 0;
}
.comparison-row strong {
  display: block;
  font-size: 12px;
  margin-bottom: 9px;
}
.duo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  font-size: 11px;
}
.duo-bar span {
  width: 58px;
  color: var(--muted);
}
.duo-bar i {
  height: 9px;
  border-radius: 2px;
  background: var(--red);
  display: block;
}
.duo-bar.blue i {
  background: var(--blue);
}
.duo-bar b {
  white-space: nowrap;
}
.legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.legend span:before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 6px;
  background: var(--red);
  border-radius: 2px;
}
.legend .blue:before {
  background: var(--blue);
}
.subtle-copy {
  font-size: 11px;
  margin-top: 20px;
  color: var(--muted);
}
.benefit {
  padding-right: 20px;
}
.benefit .eyebrow {
  margin-bottom: 15px;
}
.benefit h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.benefit p {
  font-size: 14px;
}
.ice-banner {
  height: 330px;
  position: relative;
  overflow: hidden;
  background: #111;
}
.ice-banner > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 45% 52%;
}
.ice-banner:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, #000d, transparent 80%);
}
.ice-photo-credit {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 1;
  padding: 4px 7px;
  border-radius: 3px;
  color: #fff;
  background: #000c;
  font-size: 11px;
}
.ice-copy {
  position: absolute;
  right: max(32px, calc((100vw - var(--max)) / 2));
  top: 50%;
  transform: translateY(-50%);
  max-width: 370px;
  z-index: 1;
  color: white;
}
.ice-copy h2 {
  font-size: 40px;
  margin: 15px 0;
}
.ice-copy .eyebrow,
.ice-copy p {
  color: #fff;
}
.ice-copy p {
  font-size: 14px;
  max-width: 300px;
}
.landing-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 48px 0;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 36px;
  align-items: start;
}
.intro-grid h1 {
  margin: 14px 0 20px;
}
.intro-grid p {
  max-width: 530px;
}
.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0;
}
.fact-row strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.fact-row small {
  font-size: 12px;
  color: var(--muted);
}
.equipment {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}
.equipment-item {
  display: flex;
  align-items: start;
  gap: 13px;
  font-size: 13px;
}
.equipment-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  border-radius: 4px;
  color: var(--blue);
  font-weight: bold;
}
.equipment-item small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
  padding-top: 26px;
}
.auth-layout > div > h1 {
  margin: 13px 0 20px;
}
.auth-layout .card {
  padding: 30px;
}
.form-actions {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.form-actions .btn {
  flex: 1;
}
.profile-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.profile-section:first-of-type {
  padding-top: 5px;
}
.profile-section h3 {
  margin-bottom: 18px;
}
.profile-section .description {
  font-size: 13px;
  margin: -8px 0 18px;
}
.profile-aside {
  background: var(--blue-soft);
  border-radius: 6px;
  padding: 26px;
  position: sticky;
  top: 110px;
}
.profile-aside p {
  font-size: 13px;
  margin: 13px 0;
}
.profile-aside ol {
  padding-left: 18px;
  color: #41516e;
  font-size: 13px;
}
.profile-aside li {
  margin: 13px 0;
}
.grade-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}
.grade-field .checkline {
  padding-bottom: 8px;
}
.profile-form details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.profile-form details .form-grid {
  margin-top: 10px;
}
.portal-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.portal-tabs a {
  text-decoration: none;
  padding: 0 0 13px;
  color: var(--muted);
  font-size: 13px;
}
.portal-tabs .active {
  color: #111;
  border-bottom: 2px solid var(--red);
}
.portal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.portal-top .eyebrow {
  margin-bottom: 10px;
}
.portal-top h1 {
  font-size: 43px;
}
.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr);
  gap: 24px;
}
.portal-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 25px 0;
}
.portal-summary .card {
  padding: 18px;
}
.portal-summary strong {
  display: block;
  font-size: 27px;
  letter-spacing: -1px;
  margin: 8px 0 2px;
}
.portal-summary p {
  font-size: 11px;
}
.resume-card {
  background: var(--blue-soft);
  border: 1px solid #dce5ff;
  padding: 22px;
  border-radius: 5px;
  margin-bottom: 25px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.resume-card p {
  font-size: 13px;
  margin-top: 6px;
  color: #4d5e7c;
}
.progress-track {
  height: 4px;
  background: #e4e8f1;
  border-radius: 4px;
  margin-top: 12px;
  overflow: hidden;
}
.progress-track i {
  height: 100%;
  background: var(--red);
  display: block;
  transition: width 0.2s;
}
.metric-select {
  max-width: 290px;
  font-size: 13px;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 25px;
}
.score-large {
  font-size: 47px;
  line-height: 1;
  letter-spacing: -2px;
  font-weight: 800;
  margin: 17px 0 7px;
}
.score-large small {
  font-size: 17px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}
.rank-line {
  position: relative;
  margin: 42px 9px 22px;
}
.rank-line .rail {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #dce5fb, #8eafff);
}
.rank-line .marker {
  position: absolute;
  top: -9px;
  width: 4px;
  height: 27px;
  background: var(--red);
  border-radius: 2px;
}
.rank-line .marker span {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: bold;
  color: var(--red);
}
.rank-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: 9px;
}
.grade-chart {
  margin-top: 23px;
}
.grade-bar-row {
  margin: 17px 0;
}
.grade-bar-row .inline-row {
  font-size: 11px;
  margin-bottom: 6px;
}
.grade-bar-row .bar-track {
  height: 12px;
  background: var(--soft);
  border-radius: 2px;
}
.grade-bar-row i {
  height: 12px;
  background: #a6beff;
  display: block;
  border-radius: 2px;
}
.grade-bar-row.you i {
  background: var(--red);
}
.grade-bar-row.higher i {
  background: var(--blue);
}
.chart-footnote {
  font-size: 10px;
  color: var(--muted);
  margin-top: 23px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.progress-chart {
  width: 100%;
  height: auto;
  max-height: 230px;
  display: block;
  margin: 20px 0;
}
.progress-chart text {
  font: 11px Arial;
  fill: #6b7280;
}
.portal-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.result-tile {
  padding: 19px;
}
.result-tile .title {
  font-size: 12px;
  font-weight: 600;
}
.result-tile strong {
  font-size: 25px;
  display: block;
  margin: 11px 0 3px;
  letter-spacing: -0.5px;
}
.result-tile p {
  font-size: 10px;
}
.result-tile .text-btn {
  font-size: 11px;
}
.empty-state {
  padding: 44px 24px;
  text-align: center;
  background: var(--soft);
  border-radius: 5px;
}
.empty-state h3 {
  font-size: 23px;
  margin: 13px 0;
}
.empty-state p {
  max-width: 420px;
  margin: 0 auto 22px;
  font-size: 14px;
}
.aside-card p {
  font-size: 13px;
  margin: 12px 0;
}
.aside-card h3 {
  font-size: 20px;
}
.exercise-list {
  display: grid;
  gap: 0;
}
.exercise-list button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  padding: 15px 0;
  text-align: left;
  font-size: 13px;
}
.exercise-list button:last-child {
  border-bottom: 0;
}
.exercise-list span {
  font-size: 11px;
  color: var(--muted);
}
.history-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.history-table th,
.history-table td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
}
.history-table th {
  font-weight: 400;
  color: var(--muted);
}
.table-scroll {
  overflow-x: auto;
}
.preview-card {
  background: #111;
  color: white;
  border-radius: 6px;
  padding: 30px;
  max-width: 430px;
  margin: 20px auto;
}
.preview-card p {
  color: #ccc;
}
.preview-card .score-large {
  font-size: 66px;
}
.preview-card .eyebrow {
  color: #ff5145;
}
.test-wrap {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.test-sidebar {
  position: sticky;
  top: 108px;
  max-height: calc(100dvh - 124px);
  display: flex;
  flex-direction: column;
}
.test-sidebar > :not(.step-list) { flex-shrink: 0; }
.test-sidebar .step-list {
  overflow-y: auto;
  overscroll-behavior-y: contain;
  min-height: 0;
  flex: 1 1 auto;
  scrollbar-gutter: stable;
}
.test-sidebar h3 {
  font-size: 15px;
}
.test-sidebar p {
  font-size: 11px;
  margin-top: 6px;
}
.step-list {
  display: grid;
  gap: 4px;
  margin-top: 25px;
}
.step-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 10px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 12px;
  color: var(--muted);
}
.step-link:hover {
  background: var(--soft);
}
.step-link.active {
  background: var(--blue-soft);
  color: var(--ink);
  font-weight: bold;
}
.step-number {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  flex-shrink: 0;
}
.step-link.saved .step-number {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.step-link.skipped .step-number {
  background: var(--soft);
  color: var(--muted);
}
.test-heading {
  margin-bottom: 27px;
}
.test-heading h1 {
  font-size: 42px;
  letter-spacing: -1.8px;
  margin: 12px 0;
}
.test-heading p {
  font-size: 14px;
  max-width: 560px;
}
.test-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.standard-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 25px;
  align-items: start;
  margin-bottom: 28px;
}
.video-button {
  padding: 0;
  border: 0;
  background: #111;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  color: white;
}
.video-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.video-button .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 23px;
  text-shadow: 0 2px 8px #000;
}
.video-button .play:before {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  border: 1px solid #fff9;
  border-radius: 50%;
  background: #1117;
}
.video-button .play span {
  z-index: 1;
  margin-left: 3px;
}
.video-caption {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.standard-rules h3 {
  font-size: 13px;
}
.standard-rules ol {
  padding-left: 17px;
  margin: 10px 0 0;
  font-size: 12px;
  color: #626874;
}
.standard-rules li {
  padding-bottom: 6px;
}
.equipment-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
}
.edge-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.edge-options button {
  min-width: 70px;
}
.edge-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: end;
}
.edge-input-row.two {
  grid-template-columns: 1fr 180px;
}
.edge-label {
  font-size: 14px;
  font-weight: bold;
}
.edge-label small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.unit-input {
  position: relative;
}
.unit-input input {
  padding-right: 57px !important;
}
.unit-input span {
  position: absolute;
  right: 13px;
  top: 12px;
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}
.large-input {
  max-width: 300px;
  margin: 23px 0;
}
.large-input input {
  font-size: 27px;
  height: 64px;
  padding-right: 65px !important;
}
.large-input span {
  top: 23px;
}
.record-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: end;
  margin-top: 28px;
}
.record-meta input {
  font-size: 13px;
}
.record-meta p {
  font-size: 11px;
}
.draft-details {
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 18px;
}
.draft-details summary {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.save-state {
  font-size: 11px;
  color: #345cad;
  display: flex;
  align-items: center;
  gap: 6px;
}
.save-state:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.test-actions {
  position: sticky;
  bottom: 0;
  padding: 20px 0;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 25px;
  z-index: 10;
}
.test-actions .secondary {
  display: flex;
  gap: 22px;
  align-items: center;
}
.test-actions .text-btn {
  color: var(--muted);
  font-size: 12px;
}
.mobile-overview {
  display: none;
}
.test-bottom-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.answer-block {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.answer-block p {
  font-size: 13px;
  color: #111;
  margin-bottom: 13px;
}
.answer-block small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.session-list {
  display: grid;
  gap: 13px;
}
.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.session-row h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.session-row p {
  font-size: 12px;
}
.video-player {
  width: 100%;
  max-height: 65vh;
  background: #111;
  display: block;
}
.progress-note {
  border-left: 3px solid var(--blue);
  padding: 10px 15px;
  background: var(--blue-soft);
  font-size: 12px;
  margin-top: 18px;
}
@media (max-width: 950px) {
  .test-wrap {
    gap: 25px;
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .portal-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .standard-layout {
    grid-template-columns: 160px 1fr;
  }
  .compare-demo {
    gap: 30px;
  }
  .auth-layout {
    gap: 35px;
  }
  .hero-copy {
    max-width: 540px;
  }
  .portal-summary strong {
    font-size: 22px;
  }
}
@media (max-width: 760px) {
  .wrap,
  .header-inner,
  .footer-inner {
    width: calc(100% - 36px);
  }
  .wrap {
    padding-top: 30px;
  }
  .header-inner {
    height: 66px;
    gap: 15px;
  }
  .header-inner nav {
    gap: 16px;
  }
  .header-inner .btn {
    padding: 9px 12px;
    min-height: 39px;
  }
  .prototype-note {
    font-size: 10px;
    padding: 6px 12px;
  }
  .grid-2,
  .grid-3,
  .intro-grid,
  .auth-layout,
  .portal-layout,
  .compare-demo {
    grid-template-columns: 1fr;
  }
  .page-title,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
  .hero {
    height: 620px;
    min-height: 0;
  }
  .hero-copy {
    left: 25px;
    right: 25px;
    bottom: 55px;
    max-width: 470px;
  }
  .hero h1 {
    font-size: 56px;
  }
  .hero > img {
    object-position: 60% center;
  }
  .hero-shade {
    background:
      linear-gradient(90deg, #000b, #0002),
      linear-gradient(0deg, #0008, transparent);
  }
  .data-demo {
    padding: 40px 0;
  }
  .data-demo h2 {
    font-size: 35px;
  }
  .compare-demo {
    gap: 20px;
  }
  .section {
    padding: 35px 0;
  }
  .ice-copy {
    right: 25px;
    max-width: 300px;
  }
  .ice-copy h2 {
    font-size: 34px;
  }
  .benefit {
    padding-bottom: 12px;
  }
  .landing-cta {
    align-items: start;
    flex-direction: column;
  }
  .portal-top {
    align-items: start;
    flex-direction: column;
  }
  .portal-top h1 {
    font-size: 37px;
  }
  .portal-summary {
    gap: 8px;
  }
  .portal-summary .card {
    padding: 14px;
  }
  .portal-summary strong {
    font-size: 24px;
  }
  .portal-summary p {
    font-size: 10px;
  }
  .profile-aside {
    position: static;
  }
  .test-wrap {
    display: block;
  }
  .test-sidebar {
    display: none;
  }
  .test-heading h1 {
    font-size: 36px;
  }
  .test-card {
    padding: 21px;
  }
  .standard-layout {
    grid-template-columns: 180px 1fr;
    gap: 20px;
  }
  .test-actions {
    padding: 13px 0;
    gap: 10px;
  }
  .test-actions .secondary {
    gap: 12px;
  }
  .mobile-overview {
    display: inline-flex;
  }
  .desktop-back {
    display: none;
  }
  .test-actions .btn {
    font-size: 12px;
    padding: 10px 14px;
  }
  .resume-card {
    padding: 18px;
  }
  .footer-inner {
    flex-wrap: wrap;
  }
  .auth-layout {
    padding-top: 0;
    gap: 25px;
  }
  .auth-layout .card {
    padding: 23px;
  }
  .intro-grid {
    gap: 25px;
  }
  .test-heading {
    margin-top: 10px;
  }
  .toast {
    bottom: 85px;
  }
  .session-row {
    align-items: start;
  }
  .chart-header {
    gap: 10px;
  }
  .metric-select {
    max-width: 225px;
  }
}
@media (max-width: 480px) {
  .hero {
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .hero > img {
    height: 310px;
    object-position: 55% 50%;
  }
  .hero-shade {
    background: linear-gradient(0deg, #111 0%, transparent 68%);
  }
  .hero-copy {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 25px 23px 36px;
  }
  .hero h1 {
    font-size: 46px;
    letter-spacing: -2.5px;
    margin: 17px 0;
  }
  .hero-copy p {
    font-size: 15px;
  }
  .credit {
    top: 288px;
    bottom: auto;
    right: 15px;
    font-size: 8px;
  }
  .hero-meta {
    font-size: 10px;
  }
  .logo {
    font-size: 21px;
  }
  .header-inner nav {
    gap: 13px;
  }
  .nav-link {
    font-size: 12px;
  }
  .hide-small {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .fact-row {
    gap: 10px;
  }
  .fact-row strong {
    font-size: 20px;
  }
  .fact-row small {
    font-size: 10px;
  }
  .standard-layout {
    grid-template-columns: 1fr;
  }
  .standard-layout > div:first-child {
    max-width: 265px;
  }
  .test-card {
    padding: 18px;
  }
  .test-heading h1 {
    font-size: 33px;
  }
  .edge-input-row.two {
    grid-template-columns: 1fr 145px;
  }
  .record-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .test-actions .secondary {
    gap: 10px;
  }
  .test-actions .text-btn {
    font-size: 11px;
  }
  .test-actions .btn {
    padding: 10px 11px;
    gap: 5px;
  }
  .test-actions {
    margin-top: 20px;
  }
  .chart-header {
    flex-wrap: wrap;
  }
  .score-large {
    font-size: 41px;
  }
  .card {
    padding: 20px;
  }
  .portal-summary strong {
    font-size: 22px;
  }
  .portal-summary {
    grid-template-columns: 1fr 1fr;
  }
  .portal-summary .card:last-child {
    grid-column: 1/-1;
  }
  .portal-summary .card:last-child strong {
    margin: 8px 0;
  }
  .portal-results {
    gap: 9px;
  }
  .result-tile {
    padding: 15px;
  }
  .result-tile strong {
    font-size: 23px;
  }
  .result-tile .inline-row {
    gap: 7px;
  }
  .resume-card {
    flex-direction: column;
    align-items: start;
  }
  .ice-banner {
    height: 360px;
  }
  .ice-copy {
    left: 24px;
    right: 24px;
    top: auto;
    bottom: 30px;
    transform: none;
  }
  .ice-banner:after {
    background: linear-gradient(0deg, #000c, transparent);
  }
  .grade-field {
    grid-template-columns: 1fr;
  }
  .grade-field .checkline {
    padding: 0;
  }
  .footer-inner {
    font-size: 10px;
  }
  .preview-card .score-large {
    font-size: 55px;
  }
  .section-heading {
    gap: 15px;
  }
  .sample-comparison {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Programmatic route focus should not draw a frame around the entire page. */
#main:focus {
  outline: none;
}

/* Results: one takeaway, a visual profile, then the selected movement. */
.logo img {
  width: 152px;
  height: 50px;
  object-fit: contain;
}
.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.results-heading h1 {
  font-size: clamp(32px, 3.8vw, 49px);
  margin-top: 12px;
  letter-spacing: -1.8px;
}
.comparison-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 25px 0 22px;
  flex-wrap: wrap;
}
.comparison-context {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.comparison-controls .actions {
  gap: 10px;
}
.comparison-context .eyebrow {
  color: var(--muted);
}
.resume-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  background: var(--blue-soft);
  padding: 12px 18px;
  font-size: 13px;
  margin-top: 18px;
  border-radius: 5px;
}
.resume-line a {
  font-weight: bold;
  color: var(--blue);
  white-space: nowrap;
  text-decoration: none;
}
.comparison-hint {
  margin: -10px 0 20px;
}
.result-takeaway {
  background: #111;
  display: grid;
  grid-template-columns: 1fr 215px;
  color: white;
  border-radius: 8px;
  overflow: hidden;
  padding: 34px 38px;
  gap: 40px;
  align-items: center;
}
.result-takeaway h2 {
  font-size: clamp(28px, 3.7vw, 43px);
  margin: 13px 0 15px;
  max-width: 650px;
}
.result-takeaway p {
  color: #d0d2d9;
  font-size: 16px;
  max-width: 610px;
}
.opportunity {
  font-size: 13px;
  color: #d0d2d9;
  margin-top: 23px;
}
.opportunity span {
  color: #fff;
  font-weight: bold;
  margin-right: 10px;
}
.takeaway-score {
  border-left: 1px solid #444;
  padding-left: 35px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.takeaway-score strong {
  font-size: 76px;
  letter-spacing: -4px;
  line-height: 1;
}
.takeaway-score strong small {
  font-size: 22px;
  letter-spacing: 0;
  color: #b8bdc8;
  padding-left: 7px;
  font-weight: 400;
}
.takeaway-score > span {
  font-size: 12px;
  color: #c3c6cf;
  margin: 9px 0;
}
.takeaway-score .text-btn {
  color: #fff;
  font-size: 12px;
  text-align: left;
}
.benchmark-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 14px 0 26px;
  font-size: 11px;
  color: var(--muted);
}
.benchmark-caption > span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.benchmark-caption i,
.blue-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.benchmark-caption button {
  font-size: 11px;
  color: var(--muted);
}
.results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.strength-card,
.selected-result {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  min-width: 0;
}
.strength-card-heading {
  padding: 24px 24px 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}
.strength-card-heading h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
}
.strength-card-heading p {
  font-size: 12px;
  margin-top: 7px;
}
.profile-legend {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  margin-top: 8px;
}
.profile-legend i {
  width: 3px;
  height: 14px;
  background: #1c2435;
}
.strength-row {
  display: grid;
  grid-template-columns: minmax(100px, 1.25fr) minmax(65px, 1fr) 78px;
  gap: 15px;
  align-items: center;
  width: 100%;
  border: 0;
  border-top: 1px solid #eff1f6;
  background: white;
  text-align: left;
  padding: 17px 24px;
  position: relative;
  color: var(--ink);
}
.strength-row:hover {
  background: #f5f7fb;
}
.strength-row.selected {
  background: #edf2ff;
  box-shadow: inset 3px 0 var(--blue);
}
.strength-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}
.strength-label small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
}
.strength-row.above .strength-label small {
  color: #1458cc;
}
.strength-row.below .strength-label small {
  color: #bd281f;
}
.strength-value {
  font-size: 20px;
  font-weight: bold;
  text-align: right;
  line-height: 1.2;
  white-space: nowrap;
}
.strength-value small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.row-reference {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
}
.strength-plot {
  height: 8px;
  border-radius: 4px;
  background: #e6eaf2;
  position: relative;
}
.strength-fill {
  height: 100%;
  display: block;
  background: var(--blue);
  border-radius: 4px;
  min-width: 0;
}
.strength-row.below .strength-fill {
  background: var(--red);
}
.strength-row.unavailable .strength-fill {
  background: #9ba4b5;
}
.strength-reference {
  position: absolute;
  top: -5px;
  height: 18px;
  background: #182136;
  border-radius: 1px;
}
.chart-footnote {
  font-size: 10px;
  padding: 16px 24px;
  color: #747b89;
}
.selected-result {
  padding: 26px;
  position: sticky;
  top: 96px;
}
.selected-result .eyebrow {
  color: var(--muted);
  letter-spacing: 1.4px;
}
.selected-score {
  font-size: 56px;
  letter-spacing: -2px;
  font-weight: bold;
  margin-top: 8px;
  line-height: 1.1;
}
.selected-score small {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.result-verdict {
  display: inline-block;
  margin-top: 10px;
  background: #edf2ff;
  color: #1458cc;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 9px;
  border-radius: 3px;
}
.result-verdict.below {
  color: #a7241d;
  background: #fff0ee;
}
.result-verdict.unavailable {
  background: #f2f3f5;
  color: var(--muted);
}
.selected-date {
  display: inline-block;
  font-size: 11px;
  margin-left: 8px;
}
.cohort-chart {
  display: grid;
  gap: 16px;
  margin: 26px 0 20px;
}
.cohort-row > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 7px;
}
.cohort-row strong {
  font-size: 14px;
  white-space: nowrap;
}
.cohort-row strong small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.cohort-track {
  height: 13px;
  background: #f1f3f7;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.cohort-track i {
  height: 100%;
  display: block;
  background: #b7c0d0;
  border-radius: 3px;
}
.cohort-track b {
  position: absolute;
  top: 0;
  height: 100%;
  background: repeating-linear-gradient(120deg, #b7c0d0 0 3px, #e2e6ef 3px 6px);
}
.cohort-row.you .cohort-track {
  height: 21px;
}
.cohort-row.you .cohort-track i {
  background: var(--blue);
}
.cohort-row.you span {
  font-weight: bold;
  color: var(--blue);
}
.cohort-row.same .cohort-track i {
  background: #202938;
}
.cohort-row.same span {
  font-weight: bold;
}
.distribution-panel {
  padding-top: 21px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.distribution-panel .eyebrow {
  font-size: 9px;
}
.distribution-panel p {
  font-size: 14px;
  font-weight: bold;
  color: #303747;
  margin-top: 8px;
}
.distribution-track {
  height: 8px;
  border-radius: 4px;
  background: #e6eaf2;
  position: relative;
  margin: 35px 0 13px;
}
.distribution-band {
  position: absolute;
  height: 100%;
  background: #acbfe8;
}
.distribution-dot {
  width: 13px;
  height: 13px;
  border: 3px solid white;
  box-shadow: 0 0 0 1px var(--blue);
  border-radius: 50%;
  background: var(--blue);
  position: absolute;
  top: -3px;
  transform: translateX(-50%);
}
.distribution-dot b {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: bold;
  color: var(--blue);
}
.distribution-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}
.selected-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 23px;
}
.baseline-note {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  flex-wrap: wrap;
}
.baseline-note span {
  color: var(--muted);
}
.baseline-note a {
  font-size: 11px;
  margin-left: auto;
}
.progress-section {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 30px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.progress-section h2 {
  font-size: 24px;
  margin: 10px 0;
}
.progress-section p {
  font-size: 13px;
}
.results-context {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.results-context summary span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 15px;
}
.results-footer {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-top: 22px;
  align-items: start;
}
.results-footer p {
  font-size: 11px;
  max-width: 690px;
}
.results-footer button {
  font-size: 11px;
  white-space: nowrap;
}
.inline-demo {
  display: block;
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: 5px;
  background: #141414;
  object-fit: contain;
}
.video-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.video-caption .text-btn {
  font-size: 11px;
}
.example-insight {
  margin: 28px 0;
  padding-left: 20px;
  border-left: 3px solid var(--blue);
}
.example-insight .eyebrow {
  color: var(--blue);
}
.example-insight h3 {
  font-size: 26px;
  margin: 10px 0;
}
.example-insight p {
  font-size: 14px;
}
.sample-comparison .compare-head h3 {
  font-size: 21px;
  margin-top: 10px;
}
.sample-comparison .cohort-chart {
  margin: 32px 0;
  gap: 22px;
}
.sample-comparison .cohort-track {
  height: 15px;
}
.sample-comparison .cohort-row.you .cohort-track {
  height: 26px;
}
.demo-explainer {
  display: flex;
  align-items: start;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.demo-explainer .blue-dot {
  margin-top: 7px;
}
.demo-explainer p {
  font-size: 12px;
}
.demo-explainer strong {
  color: var(--ink);
}
@media (max-width: 960px) {
  .results-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 18px;
  }
  .strength-card-heading {
    display: block;
  }
  .strength-row {
    padding: 16px;
    gap: 10px;
    grid-template-columns: minmax(85px, 1.15fr) minmax(45px, 1fr) 65px;
  }
  .selected-result {
    padding: 22px;
  }
  .results-heading {
    align-items: start;
  }
  .results-heading .actions {
    justify-content: flex-end;
  }
}
@media (max-width: 700px) {
  .logo img {
    width: 122px;
    height: 40px;
  }
  .results-heading {
    display: block;
  }
  .results-heading .actions {
    justify-content: flex-start;
    margin-top: 20px;
  }
  .comparison-controls {
    gap: 12px;
    align-items: start;
  }
  .comparison-context {
    width: 100%;
    gap: 10px;
  }
  .comparison-controls .segment button {
    padding: 8px 10px;
  }
  .comparison-controls > .actions {
    gap: 8px;
  }
  .result-takeaway {
    padding: 25px;
    gap: 22px;
    grid-template-columns: 1fr;
  }
  .result-takeaway h2 {
    font-size: 30px;
  }
  .result-takeaway p {
    font-size: 14px;
  }
  .takeaway-score {
    border-left: 0;
    border-top: 1px solid #444;
    padding: 20px 0 0;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 15px;
    align-items: center;
  }
  .takeaway-score strong {
    font-size: 60px;
    grid-row: span 2;
  }
  .takeaway-score > span {
    margin: 0;
  }
  .takeaway-score .text-btn {
    padding: 0;
  }
  .benchmark-caption {
    align-items: start;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }
  .results-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .strength-card,
  .selected-result {
    width: 100%;
  }
  .selected-result {
    position: static;
  }
  .strength-row {
    grid-template-columns: minmax(90px, 1.15fr) minmax(55px, 1fr) 70px;
    gap: 13px;
    padding: 16px 19px;
  }
  .strength-card-heading {
    display: flex;
    padding: 22px 19px 18px;
  }
  .strength-card-heading h2 {
    font-size: 21px;
  }
  .profile-legend {
    font-size: 9px;
  }
  .baseline-note {
    gap: 6px;
  }
  .baseline-note a {
    margin: 6px 0 0;
  }
  .progress-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .results-footer {
    flex-direction: column;
    gap: 12px;
  }
  .results-context summary span {
    display: block;
    margin: 5px 0 0 17px;
  }
  .sample-comparison .compare-head {
    gap: 12px;
  }
  .sample-comparison .compare-head h3 {
    font-size: 19px;
  }
  .example-insight {
    margin: 24px 0;
  }
}
.share-comparison {
  margin-top: 20px;
}
.share-comparison strong {
  color: #fff;
  font-size: 15px;
}
.share-comparison p {
  font-size: 12px;
  color: #c0c5cf;
  margin-top: 4px;
}
.share-track {
  height: 8px;
  background: #3a3d46;
  position: relative;
  margin-top: 17px;
}
.share-track i {
  background: var(--blue);
  height: 8px;
  display: block;
}
.share-track b {
  height: 18px;
  top: -5px;
  width: 3px;
  background: white;
  position: absolute;
}
.selected-result {
  scroll-margin-top: 100px;
}
@media (max-width: 700px) {
  .header-inner {
    gap: 12px;
  }
  .header-inner .logo {
    flex-shrink: 0;
  }
  .header-inner .logo img {
    width: 108px;
    height: 36px;
  }
  .header-inner nav {
    gap: 10px;
  }
  .header-inner .nav-link {
    font-size: 11px;
    white-space: nowrap;
  }
  .header-inner .btn {
    font-size: 11px;
    white-space: nowrap;
    padding: 10px 11px;
  }
  .header-inner .avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }
  .results-wrap {
    padding-top: 30px;
  }
  .results-grid .selected-result {
    order: 0;
  }
  .results-grid .strength-card {
    order: 1;
  }
}
@media (max-width: 370px) {
  .header-inner {
    width: calc(100% - 24px);
    gap: 8px;
  }
  .header-inner nav {
    gap: 7px;
  }
  .header-inner .logo img {
    width: 94px;
  }
  .header-inner .btn {
    padding: 9px 8px;
  }
}

/* Review tools and dated results reuse the public site's design tokens. */
.storage-warning { background: #fff1f0; border-block: 1px solid #ed3024; padding: 18px max(20px, calc((100vw - 1200px) / 2)); display:flex; gap:20px; align-items:center; flex-wrap:wrap; }
.storage-warning[hidden] { display:none; }
.storage-warning p { font-size:14px; max-width:720px; }
.storage-warning .actions { flex-shrink:0; }
.modal-storage-warning { padding:16px; margin-top:20px; }
.modal-storage-warning .actions { flex-shrink:1; }
.session-summary { display:grid; grid-template-columns:1fr 2fr 1fr; background:var(--soft); border:1px solid var(--line); border-radius:var(--radius); padding:24px; gap:25px; margin:24px 0; }
.session-summary strong { display:block; margin-top:8px; font-size:17px; }
.historical-results { display:grid; gap:16px; }
.history-result { border:1px solid var(--line); border-radius:var(--radius); padding:25px; display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.history-result h2 { font-size:30px; letter-spacing:-1px; margin:9px 0; }
.history-result .text-btn { justify-self:start; }
.history-delta { font-size:26px; font-weight:700; color:var(--blue); }
.history-note { grid-column:1/-1; white-space:pre-wrap; border-top:1px solid var(--line); padding-top:15px; overflow-wrap:anywhere; }
.review-wrap { padding-top:30px; }
.review-tabs { margin-bottom:40px; overflow-x:auto; }
.review-tabs a { white-space:nowrap; }
.review-hero { display:grid; grid-template-columns:1.1fr 1fr; gap:70px; padding:30px 0 55px; }
.review-hero h1 { margin:15px 0 22px; }
.review-hero p { max-width:540px; }
.review-outline { display:grid; gap:24px; padding:15px 0; }
.review-outline > div { position:relative; padding-left:52px; }
.review-outline span { position:absolute; left:0; top:0; font-weight:bold; color:var(--blue); font-size:22px; }
.review-outline strong { font-size:20px; }
.review-outline p { margin-top:5px; font-size:15px; }
.review-links > a { text-decoration:none; }
.review-links h3 { margin:14px 0; }
.review-links p { font-size:14px; }
.review-links > a:hover { border-color:var(--blue); }
.review-footnote { border-top:1px solid var(--line); margin-top:45px; padding-top:20px; font-size:12px; }
.review-intro { display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; }
.review-intro p { margin-top:10px; }
.review-stats { display:grid; grid-template-columns:repeat(3,1fr); margin:28px 0; gap:15px; }
.review-stats > div { padding:22px; border:1px solid var(--line); border-radius:var(--radius); }
.review-stats strong { display:block; font-size:36px; letter-spacing:-1px; }
.review-stats span { color:var(--muted); font-size:14px; }
.review-filters { margin-bottom:20px; flex-wrap:wrap; }
.review-list > * { padding:20px 0; border-bottom:1px solid var(--line); }
.review-list > :last-child { border-bottom:0; }
.review-row { display:grid; grid-template-columns:1.4fr 1fr 0.8fr; gap:20px; align-items:center; }
.review-row h3 { margin:10px 0 6px; }
.review-value { font-size:26px; font-weight:700; }
.review-value small { display:block; font-size:12px; font-weight:400; color:var(--muted); }
.review-row .text-btn { display:block; }
.standards-grid,.handoff-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin-top:30px; }
.standard-card h3,.handoff-grid h3 { font-size:24px; margin:12px 0; }
.standard-card ol,.handoff-grid ul { padding-left:20px; color:var(--muted); font-size:14px; line-height:1.65; }
.standard-card li,.handoff-grid li { margin-bottom:10px; }
.standard-card .actions { margin-top:auto; padding-top:16px; }
.standard-card { display:flex; flex-direction:column; align-items:flex-start; }
.handoff-grid .card { padding:28px; }
.error:empty { display:none; }
@media (max-width:700px) {
  .review-hero,.standards-grid,.handoff-grid { grid-template-columns:1fr; gap:24px; }
  .review-hero { padding-top:10px; }
  .review-tabs { gap:20px; margin-bottom:28px; }
  .review-tabs a { font-size:13px; }
  .review-stats { gap:8px; }
  .review-stats > div { padding:16px 10px; }
  .review-stats span { font-size:11px; }
  .review-row { grid-template-columns:1fr 1fr; }
  .review-row > :last-child { grid-column:1/-1; display:flex; align-items:center; gap:20px; }
  .review-row .text-btn { margin-top:0; }
  .history-result,.session-summary { grid-template-columns:1fr; gap:18px; }
  .session-row { align-items:flex-start; }
  .session-row .actions { flex-wrap:wrap; }
  .storage-warning { padding:15px 20px; }
  .storage-warning .actions { flex-shrink:1; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation-duration:0.01ms !important; transition-duration:0.01ms !important; } }
@media (max-width:700px) {
  .review-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; overflow:visible; }
  .review-tabs a { padding:12px 0; }
  .test-actions { flex-direction:column; gap:4px; padding:10px 0; }
  .test-actions > .btn { order:-1; width:100%; min-height:46px; justify-content:center; font-size:14px; }
  .test-actions .secondary { width:100%; justify-content:space-between; gap:8px; }
  .test-actions .text-btn { min-height:44px; padding:8px 3px; font-size:13px; }
  .test-wrap { padding-bottom:20px; }
}

/* Optional tests share the existing assessment theme. */
.ice-pilot-intro { display:grid; grid-template-columns:1.15fr .85fr; gap:48px; align-items:center; margin-bottom:40px; }
.ice-pilot-intro h1 { font-size:clamp(36px,5vw,64px); line-height:1.04; margin:18px 0; }
.ice-pilot-photo { position:relative; margin:0; }
.ice-pilot-photo > img { display:block; width:100%; height:460px; object-fit:cover; border-radius:8px; }
.ice-pilot-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.ice-pilot-cards h2 { font-size:28px; line-height:1.15; }
.ice-pilot-cards .card { display:flex; flex-direction:column; align-items:start; }
.ice-pilot-cards .card > .actions { margin-top:auto; padding-top:24px; }
.ice-program-note { margin-top:28px; }
.ice-program-note h2 { font-size:28px; margin-bottom:14px; }
.pilot-notice { margin-bottom:22px; }
.pilot-timer { border:1px solid var(--line,#ddd); border-radius:8px; background:#f5f7fb; padding:22px; }
.pilot-clock,.pilot-phase { display:block; font-size:48px; line-height:1.2; margin:12px 0; font-variant-numeric:tabular-nums; }
.pilot-phase[data-phase="up"] { color:#1458f5; }
.pilot-phase[data-phase="down"] { color:#b5231a; }
.primary-disciplines { border:0; padding:0; min-width:0; }
.primary-disciplines legend { font-size:22px; font-weight:bold; margin-bottom:18px; }
.discipline-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.discipline-option { display:flex; align-items:center; gap:10px; border:1px solid #c9cdd6; padding:18px 12px; border-radius:6px; cursor:pointer; min-height:74px; }
.discipline-option:has(input:checked) { border-color:#1458f5; background:#edf2ff; }
.discipline-option input { width:18px; height:18px; flex-shrink:0; accent-color:#1458f5; }
.discipline-option span { font-size:14px; font-weight:bold; line-height:1.3; }
.secondary-disciplines { margin-bottom:20px; }
.optional-test-link { margin-top:28px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.optional-test-link h3 { margin:10px 0; }
.optional-test-link .btn { flex-shrink:0; }
@media(max-width:800px) {
  .ice-pilot-intro { grid-template-columns:1fr; gap:24px; }
  .ice-pilot-photo > img { height:300px; }
  .ice-pilot-cards { grid-template-columns:1fr; }
  .optional-test-link { align-items:start; flex-direction:column; }
}
@media(max-width:480px) {
  .discipline-choices { grid-template-columns:1fr; }
  .discipline-option { min-height:56px; }
  .pilot-timer { padding:16px; }
  .pilot-timer .actions { flex-wrap:wrap; }
}
.optional-step-picker { border:1px solid #dce1eb; border-radius:6px; padding:18px; min-width:0; }
.optional-step-picker legend { padding:0 6px; font-weight:bold; }
.ice-optional-heading { margin:36px 0 22px; }
.ice-optional-heading h2 { font-size:28px; margin-bottom:10px; }
.pilot-details { border-block:1px solid #dce1eb; padding:20px 0; }
.pilot-details > summary { cursor:pointer; font-size:18px; font-weight:bold; }
.pilot-details > summary span { display:inline-block; font-size:13px; font-weight:normal; margin-left:12px; }
.pilot-details .ice-optional-heading { margin-top:20px; }

/* Compact account shortcuts; other dialogs keep their existing dimensions. */
dialog.account-modal { width: min(320px, calc(100% - 32px)); padding: 20px; }
.account-modal .modal-heading { margin-bottom: 14px; align-items: center; }
.account-modal .modal-heading h2 { font-size: 21px; }
.account-summary { display: grid; gap: 3px; }
.account-links { display: grid; gap: 5px; margin-top: 14px; }
.account-links .btn { justify-content: flex-start; min-height: 40px; padding: 10px 12px; font-size: 13px; }
.account-links .text-btn { justify-self: start; margin-top: 3px; padding-block: 8px; }
.account-modal .help { font-size: 11px; line-height: 1.4; margin-top: 14px; }

.field[hidden] { display: none; }

.assessment-steps { row-gap: 10px; }
.assessment-steps .benefit { display: grid; grid-template-rows: subgrid; grid-row: span 3; align-items: start; }
.assessment-steps .benefit .eyebrow, .assessment-steps .benefit h3, .assessment-steps .benefit p { margin: 0; }
.assessment-steps .benefit h3 { line-height: 1.2; }

.grip-details { margin-top: 18px; }
.grip-details summary { cursor: pointer; font-size: 13px; font-weight: bold; }
