:root {
  --primary: #022dff;
  --primary-hover: #0021c8;
  --primary-light: #eef4ff;
  --background: #e4e8ef;
  --surface: #ffffff;
  --surface-muted: #eceff4;
  --surface-well: #cfd6e1;
  --text-primary: #040a27;
  --text-secondary: #636673;
  --text-muted: #868a9c;
  --border: #b8c1cf;
  --border-light: #cbd2dd;
  --success: #00a806;
  --error: #da1616;
  --warning: #f8830e;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --shadow-inset: inset 0 0 6px rgb(108 98 119 / 12%);
  --shadow-muted: inset 0 0 6px rgb(90 98 118 / 12%);
  --shadow-modal: 0 24px 60px rgb(4 10 39 / 20%);

  /* Map legacy tokens to the new visual system. */
  --canvas: var(--background);
  --paper: var(--surface);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --line: var(--border);
  --accent: var(--primary);
  --accent-soft: var(--primary-light);
}

html {
  background: #e3e6eb;
}

body {
  min-height: 100dvh;
  margin: 0;
  background: #e3e6eb;
  color: var(--text-primary);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

.app-shell {
  min-height: 100dvh;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  background: var(--background);
  border-color: var(--border);
  box-shadow: 0 12px 42px rgb(4 10 39 / 12%);
}

.screen {
  color: var(--text-primary);
}

h1,
h2,
h3,
strong {
  color: var(--text-primary);
  letter-spacing: 0;
}

h1 {
  font-size: clamp(28px, 8vw, 32px);
  line-height: 1.12;
  overflow-wrap: normal;
  word-break: normal;
}

h2 {
  font-size: 22px;
  line-height: 1.2;
}

h3 {
  font-size: 18px;
  line-height: 1.25;
}

p,
li,
small,
.muted {
  color: var(--text-secondary);
}

.eyebrow,
.accent-text {
  color: var(--primary) !important;
  letter-spacing: 0;
}

.topbar,
.top-bar,
.app-header {
  background: rgb(255 255 255 / 92%);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

article,
.card,
.panel,
.result-card,
.current-mission,
.transformation-slider,
.profile-summary,
.pricing-card,
.tariff-card,
.lesson-card,
.work-card,
.notification-card {
  border-color: var(--border);
  box-shadow: none;
}

.surface-muted,
.mission-copy,
.result-preview,
.prompt-preview,
.answer-preview,
.info-block,
.lesson-note,
.profile-stat,
.access-summary {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-muted);
}

.current-mission,
.transformation-slider,
.result-card,
.profile-summary,
.pricing-card,
.tariff-card,
.lesson-card,
.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px rgb(4 10 39 / 8%), var(--shadow-muted);
}

/* Keep the mission as one functional surface, without a nested card. */
.current-mission .mission-copy {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.single-stage-summary {
  background: var(--surface);
}

.single-stage-summary .transformation-slide:first-child {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  padding: 12px;
}

.single-stage-summary .slide-visual {
  width: 56px;
  height: 64px;
  min-height: 0;
  border-radius: var(--radius-sm);
}

.single-stage-summary .slide-visual svg {
  width: 25px;
  height: 25px;
  margin-top: 13px;
}

.single-stage-summary .slide-visual span {
  top: 6px;
  left: 7px;
  z-index: 2;
  min-width: 22px;
  padding: 2px 4px;
  border: 1px solid #c6d3ff;
  border-radius: 6px;
  background: var(--surface);
  color: var(--primary);
  font-size: 9px;
  line-height: 1.2;
  text-align: center;
}

.single-stage-summary .slide-visual::after {
  right: -34px;
  bottom: -38px;
  width: 60px;
  height: 60px;
  border-width: 12px;
}

.single-stage-summary .slide-copy small {
  margin-bottom: 4px;
}

.single-stage-summary .slide-copy strong {
  font-size: 15px;
  line-height: 1.25;
}

.single-stage-summary .slide-copy p {
  margin-top: 5px;
  font-size: 11px;
}

/* Legacy sections were divider-only. Give functional groups clear surfaces. */
.explain-flow,
.prompt-formula,
.use-case-list,
.route-map,
.result-checklist,
.practical-list,
.starter-day-list,
.profile-work-list,
.profile-actions {
  display: grid;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-well);
  box-shadow: inset 0 1px 7px rgb(4 10 39 / 13%);
}

.explain-flow > div,
.prompt-formula > div,
.use-case-list > div,
.route-item,
.result-checklist > p,
.practical-list > button,
.starter-day-list > *,
.profile-work-list > * {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(4 10 39 / 5%);
}

.explain-flow > div,
.prompt-formula > div,
.use-case-list > div,
.route-item,
.result-checklist > p {
  padding: 12px;
}

.explain-flow > div:not(:last-child),
.prompt-formula > div:not(:last-child),
.use-case-list > div:not(:last-child),
.route-item:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.calm-note,
.before-after,
.work-time-card,
.cohort-status,
.job-card,
.readiness-card,
.direction-recommendation,
.profile-hero,
.saved-result-card,
.price-option,
.checkout-summary,
.checkout-note,
.honesty-note,
.access-open-status,
.starter-credit-notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px rgb(4 10 39 / 8%), var(--shadow-muted);
}

.before-after,
.work-time-card,
.calm-note,
.cohort-status,
.job-card,
.readiness-card,
.direction-recommendation,
.price-option,
.checkout-summary,
.checkout-note,
.honesty-note {
  padding: 16px;
}

.work-time-result,
.five-day-result,
.honesty-note,
.checkout-note,
.starter-credit-notice {
  background: var(--surface-muted);
}

.role-list > div {
  padding: 12px;
  box-shadow: 0 2px 8px rgb(4 10 39 / 5%), var(--shadow-muted);
}

.role-list {
  display: grid;
  gap: 8px;
  border-block: 0;
}

.role-list > div,
.role-list > div:last-child {
  border-bottom: 1px solid var(--border);
}

.section-heading {
  padding-top: 6px;
}

.single-stage-summary .slide-visual,
.mission-icon,
.result-icon,
.profile-icon {
  background: var(--primary-light);
  border-color: #d9e4ff;
  color: var(--primary);
  box-shadow: var(--shadow-muted);
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

.primary-button,
.next-action,
button[type="submit"] {
  min-height: 48px;
  border: 1px solid var(--primary-hover);
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  box-shadow: none;
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.primary-button strong,
.primary-button span,
.next-action strong,
.next-action span {
  color: inherit;
}

/* Override legacy yellow CTA rules that used !important. */
.primary-button,
.primary-button.bright,
.primary-button.next-action,
.next-action,
.welcome-start,
#homeNextButton,
#routeNextButton,
#starterContinueButton,
#quizNext,
#fullPlanButton {
  border-color: var(--primary-hover) !important;
  background: var(--primary) !important;
  color: #fff !important;
}

.square-action {
  border-color: var(--primary-hover);
  background: var(--primary);
  color: #fff;
}

.primary-button:hover,
.next-action:hover,
button[type="submit"]:hover {
  background: var(--primary-hover);
}

.primary-button:active,
.next-action:active,
button[type="submit"]:active,
.secondary-button:active,
.square-action:active {
  transform: translateY(1px);
}

.secondary-button,
.ghost-button,
.market-button {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: none;
}

.secondary-button:hover,
.ghost-button:hover,
.market-button:hover {
  border-color: #cad3ee;
  background: var(--primary-light);
}

.square-action,
.icon-button,
.topbar button,
.top-bar button {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: none;
}

button:disabled,
.is-disabled {
  opacity: .46;
  cursor: default;
  filter: saturate(.5);
}

input,
textarea,
select,
.chat-input {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-muted);
  font-size: 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
textarea:focus,
select:focus,
.chat-input:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(2 45 255 / 10%);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

.progress-track,
progress {
  overflow: hidden;
  background: #e7e9ef;
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgb(4 10 39 / 8%);
}

.progress-track > span,
progress::-webkit-progress-value {
  background: var(--primary);
  border-radius: inherit;
}

.progress-ring {
  color: var(--text-primary);
  background: conic-gradient(var(--primary) var(--progress, 0%), #cbd1dc 0);
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--border);
}

.progress-ring::before,
.progress-ring::after {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}

.progress-ring strong {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 800;
}

.progress-track,
.quiz-progress {
  height: 10px;
  background: #b9c2cf;
  border: 1px solid #aab5c4;
  border-radius: 999px;
}

.progress-track > span,
.quiz-progress > span {
  background: var(--primary);
}

.progress-meta {
  color: var(--text-secondary);
  font-weight: 600;
}

.lesson-progress > span,
.lesson-progress > strong,
.quiz-head > strong,
.small-badge {
  padding: 6px 9px;
  border: 1px solid #cdd9ff;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
}

.lesson-progress {
  gap: 12px;
}

.quiz-head {
  grid-template-columns: 40px minmax(0, 1fr) max-content;
}

.mission-icon,
.route-marker,
.starter-day-number,
.practical-icon,
.use-case-icon,
.profile-action-icon,
.role-list > div > span,
.explain-flow > div > span,
.prompt-formula > div > span {
  border: 1px solid #cdd9ff;
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: inset 0 0 5px rgb(2 45 255 / 8%);
}

.role-list > div > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
}

.route-marker,
.starter-day-number {
  border-radius: var(--radius-sm);
}

.route-item.is-current {
  border-color: #9cb2ff;
  background: var(--primary-light);
  box-shadow: 0 0 0 2px rgb(2 45 255 / 7%);
}

.route-item.is-current .route-marker,
.starter-day-row.is-current .starter-day-number {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.route-item.is-done .route-marker,
.starter-day-row.is-completed .starter-day-number {
  border-color: #82d39a;
  background: #e8f8ed;
  color: #087829;
}

.starter-day-row.is-current .starter-day-state {
  color: var(--primary);
}

.profile-actions {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-actions button {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 2px 7px rgb(4 10 39 / 7%);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.profile-actions button:hover {
  border-color: #b9c8fa;
  background: var(--primary-light);
}

.profile-actions button:active {
  transform: translateY(1px);
}

.profile-action-icon.green-action,
.profile-action-icon.yellow-action,
.profile-action-icon.blue-action,
.profile-action-icon.purple-action {
  border-color: #cdd9ff;
  background: var(--primary-light);
  color: var(--primary);
}

.result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-well);
  box-shadow: inset 0 1px 5px rgb(4 10 39 / 8%);
}

.result-stats div,
.result-stats div + div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(4 10 39 / 5%);
}

.single-stage-summary,
.current-mission,
.profile-next,
.profile-secondary,
.price-option,
.checkout-summary,
.job-card,
.readiness-card,
.cohort-status,
.work-time-card,
.before-after,
.calm-note,
.honesty-note {
  border-color: #b3bdcb;
  box-shadow: 0 6px 18px rgb(4 10 39 / 12%);
}

.answer-option {
  border-color: var(--border);
  background: var(--surface);
  box-shadow: 0 2px 8px rgb(4 10 39 / 5%);
}

.answer-option > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.answer-option.is-selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: inset 3px 0 0 var(--primary), 0 2px 8px rgb(2 45 255 / 8%);
}

.answer-option.is-selected > span {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.starter-day-row {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.starter-day-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.starter-day-row.is-current {
  border-color: #9cb2ff;
  background: var(--primary-light);
}

.profile-next,
.profile-secondary,
.starter-day-result,
.result-value {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 4px 14px rgb(4 10 39 / 8%), var(--shadow-muted);
}

.profile-next,
.starter-day-result,
.result-value {
  padding: 16px;
}

.profile-secondary {
  overflow: hidden;
  padding: 8px;
  border: 1px solid var(--border);
  background: var(--surface-well);
}

.profile-secondary button {
  margin-bottom: 8px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-primary);
}

.profile-secondary button:last-child {
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.profile-secondary button:hover {
  background: var(--primary-light);
}

.profile-work-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.profile-work-item > span {
  border: 1px solid #cdd9ff;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
}

.quick-actions button,
.job-needs span {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.quick-actions button:hover {
  border-color: #b9c8fa;
  background: var(--primary-light);
  color: var(--primary);
}

.online-status {
  padding: 4px 7px;
  border: 1px solid #9dd9ad;
  border-radius: var(--radius-sm);
  background: #eaf8ee;
  color: #087829;
}

.starter-course-head > strong {
  border: 1px solid #cdd9ff;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: var(--shadow-muted);
}

.starter-scenarios button {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 2px 8px rgb(4 10 39 / 5%);
}

.starter-scenarios button svg {
  color: var(--primary);
}

.starter-scenarios button.is-selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: inset 3px 0 0 var(--primary), 0 2px 8px rgb(2 45 255 / 8%);
}

.jobs-hero {
  background: var(--surface-muted);
  border-bottom-color: var(--border);
}

.job-card-head > strong,
.job-link {
  color: var(--primary);
}

.readiness-card {
  border-color: #9cb2ff;
  background: var(--primary-light);
}

.recommended-option {
  border: 2px solid var(--primary);
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(2 45 255 / 10%);
}

.recommended-label {
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
}

.timer-strip {
  border-color: #f3b274;
  border-radius: var(--radius-md);
  background: #fff4e8;
}

.answer-option,
[data-answer],
.choice-button,
.scenario-button,
.role-list > div,
.profile-menu button {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: none;
}

.answer-option:hover,
[data-answer]:hover,
.choice-button:hover,
.scenario-button:hover,
.profile-menu button:hover {
  border-color: #cbd5f5;
  background: var(--primary-light);
}

.answer-option.is-active,
[data-answer].is-active,
[data-answer][aria-pressed="true"],
.choice-button.is-active,
.scenario-button.is-active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.badge,
.chip,
.tag {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text-secondary);
  box-shadow: none;
}

.success,
.is-complete,
.completed {
  color: var(--success);
}

.pricing-card.is-featured,
.tariff-card.is-featured,
.recommended-plan {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(2 45 255 / 8%);
}

.pricing-card.is-featured .badge,
.tariff-card.is-featured .badge,
.recommended-badge {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.modal-overlay,
.dialog-backdrop,
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgb(4 10 39 / 32%);
  backdrop-filter: blur(2px);
}

.modal,
.dialog,
.bottom-sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
}

.bottom-nav,
.bottom-navigation,
nav[aria-label="Навигация приложения"] {
  position: fixed;
  right: auto;
  bottom: max(8px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 50;
  width: min(calc(100% - 16px), 444px);
  min-height: 64px;
  padding: 5px;
  transform: translateX(-50%);
  background: rgb(255 255 255 / 96%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgb(4 10 39 / 12%);
  backdrop-filter: blur(14px);
}

.bottom-nav button,
.bottom-navigation button,
nav[aria-label="Навигация приложения"] button {
  min-width: 0;
  min-height: 52px;
  padding: 5px 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  box-shadow: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.bottom-nav button[data-go="access"],
.bottom-navigation button[data-go="access"],
nav[aria-label="Навигация приложения"] button[data-go="access"] {
  background: transparent;
  color: var(--text-muted);
}

.bottom-nav button.is-active,
.bottom-navigation button.is-active,
nav[aria-label="Навигация приложения"] button.is-active,
nav[aria-label="Навигация приложения"] button[aria-current="page"] {
  background: var(--primary-light);
  color: var(--primary);
}

.bottom-nav button[data-go="access"].is-active,
.bottom-navigation button[data-go="access"].is-active,
nav[aria-label="Навигация приложения"] button[data-go="access"].is-active,
nav[aria-label="Навигация приложения"] button[data-go="access"][aria-current="page"] {
  background: var(--primary-light);
  color: var(--primary);
}

.bottom-nav .access-nav.is-active,
nav[aria-label="Навигация приложения"] .access-nav.is-active {
  border-color: transparent !important;
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  box-shadow: none !important;
}

.bottom-nav .access-nav.is-active small,
.bottom-nav .access-nav.is-active svg,
nav[aria-label="Навигация приложения"] .access-nav.is-active small,
nav[aria-label="Навигация приложения"] .access-nav.is-active svg {
  color: var(--primary) !important;
  stroke: currentColor;
}

.bottom-nav .access-nav.is-active::before,
nav[aria-label="Навигация приложения"] .access-nav.is-active::before {
  background: var(--primary) !important;
}

.bottom-nav button.is-active svg,
.bottom-navigation button.is-active svg,
nav[aria-label="Навигация приложения"] button.is-active svg,
nav[aria-label="Навигация приложения"] button[aria-current="page"] svg {
  color: var(--primary);
  stroke: currentColor;
}

.bottom-nav button:active,
.bottom-navigation button:active,
nav[aria-label="Навигация приложения"] button:active {
  transform: scale(.97);
}

.welcome-screen,
.result-hero {
  background: var(--surface);
}

.welcome-visual {
  overflow: hidden;
  background: var(--surface-well);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 1px 5px rgb(4 10 39 / 9%);
}

.welcome-orbit {
  background: var(--surface);
  border: 1px solid #9eb2ff;
  box-shadow:
    0 0 0 16px rgb(2 45 255 / 6%),
    0 0 0 34px rgb(2 45 255 / 3%);
}

.welcome-point svg {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 7px rgb(4 10 39 / 8%);
}

.welcome-orbit,
.welcome-point,
.welcome-path-line span {
  color: var(--primary);
  border-color: #dce5ff;
}

.welcome-path-line {
  background: #cbd3e0;
}

.welcome-path-line span,
.welcome-screen.is-launching .welcome-path-line span {
  background: var(--primary);
}

.welcome-screen.is-launching .welcome-point {
  color: var(--primary);
}

.welcome-screen.is-launching .welcome-point svg {
  border-color: #9cb2ff;
  background: var(--primary-light);
  color: var(--primary);
}

.welcome-screen.is-launching .welcome-point small {
  color: var(--primary);
}

@media (max-width: 520px) {
  .app-shell {
    width: 100%;
    border: 0;
    box-shadow: none;
  }

  .screen {
    padding-right: 16px;
    padding-left: 16px;
  }

  .modal,
  .dialog,
  .bottom-sheet {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.time-choice button.is-selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: inset 0 -3px 0 var(--primary);
}

/* Softer numeric labels: avoid the old blocky, extra-bold look. */
.mission-icon,
.route-marker,
.starter-day-number,
.role-list > div > span,
.explain-flow > div > span,
.prompt-formula > div > span,
.slide-visual > span,
.lesson-progress > span,
.lesson-progress > strong,
.quiz-head > strong,
.small-badge,
.five-day-list li > span,
.progress-ring strong {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
/* AI chat */
[data-screen="chat"] .chat-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

[data-screen="chat"] .chat-head h1 {
  margin-bottom: 8px;
}

[data-screen="chat"] .chat-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-muted);
}

[data-screen="chat"] .chat-status small,
[data-screen="chat"] .online-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.2;
}

[data-screen="chat"] .online-status {
  color: #087a2e;
  background: #eaf8ee;
  border: 1px solid #b8e2c4;
  font-weight: 700;
}

[data-screen="chat"] .chat-status small {
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border-light);
}

[data-screen="chat"] .chat-thread {
  min-height: 300px;
  margin-top: 16px;
  padding: 14px;
  overflow: auto;
  background: var(--surface-well);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 4px rgb(4 10 39 / 8%);
}

[data-screen="chat"] .chat-message {
  max-width: 88%;
  margin-bottom: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgb(4 10 39 / 7%);
}

[data-screen="chat"] .chat-message small {
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 11px;
}

[data-screen="chat"] .chat-message p {
  color: inherit;
  font-size: 14px;
  line-height: 1.5;
}

[data-screen="chat"] .assistant-message {
  background: var(--surface);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

[data-screen="chat"] .user-message {
  margin-left: auto;
  background: var(--primary);
  border: 1px solid var(--primary-hover);
  color: #fff;
}

[data-screen="chat"] .user-message small {
  color: rgb(255 255 255 / 76%);
}

[data-screen="chat"] .assistant-message.is-loading p::after {
  background: var(--primary);
}

[data-screen="chat"] .quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

[data-screen="chat"] .quick-actions button {
  min-height: 38px;
  padding: 8px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

[data-screen="chat"] .quick-actions button:hover,
[data-screen="chat"] .quick-actions button:focus-visible {
  color: var(--primary);
  background: var(--primary-light);
  border-color: #9eb2ff;
}

[data-screen="chat"] .chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  margin-top: 12px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px rgb(4 10 39 / 8%);
}

[data-screen="chat"] .chat-composer textarea {
  min-height: 48px;
  padding: 12px;
  resize: vertical;
  background: var(--surface-muted);
  border: 1px solid var(--border-light);
  border-radius: 11px;
  color: var(--text-primary);
  font-size: 16px;
  box-shadow: inset 0 1px 3px rgb(4 10 39 / 6%);
}

[data-screen="chat"] .chat-composer textarea:focus {
  outline: 2px solid rgb(2 45 255 / 18%);
  border-color: var(--primary);
}

[data-screen="chat"] .send-button {
  width: 48px;
  min-height: 48px;
  align-self: end;
  background: var(--primary) !important;
  border: 1px solid var(--primary-hover);
  border-radius: 11px;
  color: #fff !important;
  font-size: 22px;
  box-shadow: 0 5px 12px rgb(2 45 255 / 20%);
}

[data-screen="chat"] .send-button:active {
  transform: translateY(1px);
}

[data-screen="chat"] .privacy-note {
  margin-top: 10px;
  color: var(--text-muted);
}

@media (max-width: 420px) {
  [data-screen="chat"] .chat-thread {
    min-height: 280px;
    padding: 11px;
  }

  [data-screen="chat"] .chat-message {
    max-width: 94%;
  }
}
/* Access page: lead with the transformation, then make the primary choice obvious. */
[data-screen="access"] .offer-head {
  margin-bottom: 18px;
}

[data-screen="access"] .offer-head h1 {
  max-width: 14ch;
}

.access-promise {
  margin-bottom: 18px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 16px rgb(4 10 39 / 9%);
}

.access-promise-head h2 {
  margin: 4px 0 14px;
  font-size: 20px;
  line-height: 1.2;
}

.access-promise-grid,
.access-benefits {
  display: grid;
  gap: 8px;
}

.access-promise-grid > div,
.access-benefits > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.access-promise-grid > div {
  padding: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.access-promise-grid span,
.access-benefits > div > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid #cbd8ff;
  border-radius: 10px;
}

.access-promise-grid svg,
.access-benefits svg {
  width: 19px;
  height: 19px;
}

.access-promise-grid p,
.access-benefits p {
  margin: 0;
}

.access-promise-grid strong,
.access-promise-grid small,
.access-benefits strong,
.access-benefits small {
  display: block;
}

.access-promise-grid strong,
.access-benefits strong {
  font-size: 13px;
  line-height: 1.35;
}

.access-promise-grid small,
.access-benefits small {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.4;
}

[data-screen="access"] .recommended-option {
  position: relative;
  border-width: 2px;
  box-shadow: 0 12px 30px rgb(2 45 255 / 14%);
}

.recommended-result {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 14px 0 10px;
  padding: 12px;
  color: #fff;
  background: #040a27;
  border-radius: var(--radius-md);
}

.recommended-result > svg {
  width: 24px;
  height: 24px;
  color: #82a0ff;
}

.recommended-result p,
.recommended-result small,
.recommended-result strong {
  display: block;
  margin: 0;
  color: inherit;
}

.recommended-result small {
  margin-bottom: 4px;
  color: #b8c7ff;
  font-size: 10px;
  font-weight: 700;
}

.recommended-result strong {
  font-size: 13px;
  line-height: 1.45;
}

.access-benefits {
  margin: 10px 0 16px;
}

.access-benefits > div {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.access-benefits > div:last-child {
  border-bottom: 0;
}

.access-assurances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 12px;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 10px;
}

.access-assurances span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.access-assurances svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

[data-screen="access"] .starter-option,
[data-screen="access"] .mentor-option {
  box-shadow: 0 5px 14px rgb(4 10 39 / 8%);
}
/* Simplified access page */
[data-screen="access"] .offer-head {
  margin-bottom: 20px;
}

[data-screen="access"] .offer-head h1 {
  max-width: 13ch;
  font-weight: 700;
}

[data-screen="access"] .offer-head .lead {
  max-width: 38ch;
}

[data-screen="access"].has-starter-access .starter-option {
  display: none;
}

[data-screen="access"] .access-open-status {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: none;
}

[data-screen="access"] .price-option {
  padding: 16px;
}

[data-screen="access"] .price-title h2 {
  font-weight: 650;
}

[data-screen="access"] .recommended-option {
  box-shadow: 0 10px 24px rgb(2 45 255 / 11%);
}

.access-result-list {
  display: grid;
  gap: 0;
  margin: 14px 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--border-light);
}

.access-result-list li {
  position: relative;
  padding: 10px 4px 10px 25px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.access-result-list li:last-child {
  border-bottom: 0;
}

.access-result-list li::before {
  position: absolute;
  top: 10px;
  left: 2px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  content: "✓";
}

.program-format {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 11px;
}

.program-format > * {
  display: inline-flex;
  align-items: center;
}

.program-format > * + *::before {
  margin-right: 8px;
  color: var(--border);
  content: "•";
}

.program-format strong {
  color: var(--text-primary);
  font-weight: 600;
}

.full-program-details {
  margin-top: 10px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.full-program-details summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.full-program-details summary::-webkit-details-marker {
  display: none;
}

.full-program-details[open] summary span {
  transform: rotate(45deg);
}

.full-program-details ol {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.4;
}

[data-screen="access"] .access-assurances {
  margin-top: 10px;
}

[data-screen="access"] .mentor-option {
  padding-block: 14px;
}

[data-screen="access"] .honesty-note {
  padding: 8px 2px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

[data-screen="access"] .honesty-note strong {
  font-size: 12px;
  font-weight: 600;
}

[data-screen="access"] .honesty-note p {
  margin-top: 4px;
  font-size: 11px;
}

@media (max-width: 420px) {
  [data-screen="access"] .access-open-status {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  [data-screen="access"] .access-open-status button {
    grid-column: 1 / -1;
  }
}
/* Editorial visuals explain outcomes without behaving like extra controls. */
.visual-story {
  position: relative;
  margin: 18px 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 18px rgb(4 10 39 / 10%);
}

.visual-story img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.access-visual-story img {
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.result-preview-story img {
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.visual-story figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 12px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.visual-story figcaption span {
  min-width: 0;
}

.visual-story figcaption span:last-child {
  text-align: right;
}

.visual-story figcaption small {
  display: block;
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 600;
}

.visual-story figcaption svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.result-preview-story figcaption {
  grid-template-columns: 1fr;
}

.result-preview-story figcaption span:last-child {
  text-align: left;
}

@media (max-width: 380px) {
  .visual-story figcaption {
    gap: 6px;
    padding: 10px;
    font-size: 11px;
  }
}
/* Opening visual story */
.welcome-story {
  position: relative;
  height: auto;
  margin: 22px 0 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 6px 18px rgb(4 10 39 / 10%);
}

.welcome-story img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.welcome-story figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 11px 12px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.welcome-story figcaption svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
  animation: welcome-arrow-flow 2.4s ease-in-out infinite;
}

.welcome-story figcaption svg:nth-of-type(2) {
  animation-delay: 1.2s;
}

.welcome-screen.is-launching .welcome-story figcaption svg {
  animation-duration: .65s;
}

@keyframes welcome-arrow-flow {
  0%, 28%, 100% {
    opacity: .38;
    transform: translateX(-2px);
  }
  45%, 68% {
    opacity: 1;
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-story figcaption svg {
    opacity: 1;
    animation: none;
    transform: none;
  }
}
/* Fixed-height editorial carousel for the zero screen. */
.welcome-carousel {
  margin: 20px 0 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 7px 20px rgb(4 10 39 / 11%);
}

.welcome-carousel-track {
  display: flex;
  transition: transform 360ms ease;
}

.welcome-carousel-slide {
  display: grid;
  flex: 0 0 100%;
  grid-template-rows: 178px 112px;
  min-width: 0;
  background: var(--surface);
}

.welcome-slide-image {
  overflow: hidden;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border-light);
}

.welcome-slide-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-slide-copy {
  display: flex;
  min-width: 0;
  padding: 12px 14px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.welcome-slide-copy > span {
  display: inline-flex;
  min-height: 24px;
  padding: 4px 9px;
  align-items: center;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 9px;
  font-weight: 700;
}

.welcome-slide-copy strong {
  display: block;
  margin-top: 7px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
}

.welcome-slide-copy p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.35;
}

.welcome-carousel-controls {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 36px;
  gap: 9px;
  align-items: center;
  min-height: 50px;
  padding: 7px 10px;
  background: var(--surface-muted);
  border-top: 1px solid var(--border-light);
}

.welcome-carousel-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
}

.welcome-carousel-arrow:active {
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(1px);
}

.welcome-carousel-arrow svg {
  width: 17px;
  height: 17px;
}

.welcome-carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.welcome-carousel-dots button {
  width: 18px;
  height: 6px;
  padding: 0;
  background: #bbc3cf;
  border: 0;
  border-radius: 999px;
  transition: width 180ms ease, background 180ms ease;
}

.welcome-carousel-dots button.is-active {
  width: 30px;
  background: var(--primary);
}

.welcome-carousel-count {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 380px) {
  .welcome-carousel-slide {
    grid-template-rows: 158px 116px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-carousel-track {
    transition: none;
  }
}
/* One editorial outcome panel replaces several small result rows. */
.outcome-panel {
  position: relative;
  min-height: 270px;
  margin: 16px 0;
  padding: 18px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgb(255 255 255 / 97%) 0%, rgb(255 255 255 / 92%) 55%, rgb(238 244 255 / 74%) 100%),
    url("assets/access-transformation.png?v=2");
  background-position: center, 70% center;
  background-size: cover, cover;
  border: 1px solid #aeb9ca;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 24px rgb(4 10 39 / 6%);
}

.outcome-panel-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 30px;
  padding: 6px 11px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 650;
  box-shadow: 0 3px 10px rgb(4 10 39 / 8%);
}

.outcome-panel ul {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 31ch;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.outcome-panel li {
  position: relative;
  padding-left: 21px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.42;
}

.outcome-panel li::before {
  position: absolute;
  top: .05em;
  left: 1px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  content: "•";
}

@media (max-width: 380px) {
  .outcome-panel {
    min-height: 250px;
    padding: 15px;
    background-position: center, 64% center;
  }

  .outcome-panel ul {
    gap: 11px;
  }
}

/* Reusable editorial summaries: one familiar answer to "what do I get?". */
.editorial-panel {
  position: relative;
  margin: 16px 0;
  padding: 16px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgb(255 255 255 / 97%), rgb(255 255 255 / 88%)),
    url("assets/free-result-preview.png?v=2");
  background-position: center;
  background-size: cover;
  border: 1px solid #aeb9ca;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 24px rgb(4 10 39 / 7%);
}

.editorial-panel-label {
  display: inline-flex;
  min-height: 28px;
  padding: 5px 10px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 3px 10px rgb(4 10 39 / 8%);
}

.editorial-panel ul {
  display: grid;
  gap: 10px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.editorial-panel li {
  position: relative;
  padding-left: 22px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.editorial-panel li::before {
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--primary);
  font-weight: 800;
  content: "\2713";
}

.free-finish-panel {
  margin-top: 20px;
}

.starter-overview-panel {
  margin: 14px 0 16px;
  background-image:
    linear-gradient(90deg, rgb(255 255 255 / 97%), rgb(238 244 255 / 88%)),
    url("assets/welcome-path.png?v=1");
}

.profession-panel {
  margin: 13px 0 11px;
  padding: 13px;
  background: var(--surface-muted);
  border: 1px solid #c9ced8;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 12px rgb(4 10 39 / 5%);
}

.profession-panel dl,
.profession-panel dl > div {
  margin: 0;
}

.profession-panel dl {
  display: grid;
  gap: 0;
  margin-top: 10px;
}

.profession-panel dl > div {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.profession-panel dl > div:last-child {
  border-bottom: 0;
}

.profession-panel dt {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}

.profession-panel dd {
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.starter-day-result .stage-takeaway-panel,
.day-one-comparison .stage-takeaway-panel {
  margin: 16px 0;
  padding: 15px;
  background-image:
    linear-gradient(90deg, rgb(255 255 255 / 97%), rgb(238 244 255 / 90%)),
    url("assets/free-result-preview.png?v=2");
  background-position: center;
  background-size: cover;
  border: 1px solid #aeb9ca;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 18px rgb(4 10 39 / 6%);
}

.stage-takeaway-panel small {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 9px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgb(4 10 39 / 8%);
}

.stage-takeaway-panel strong {
  display: block;
  margin-top: 12px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.stage-takeaway-panel p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 380px) {
  .profession-panel dl > div {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}

/* Personal recommendation: a little richer, while staying calm and readable. */
[data-screen="jobs"] .personal-fit {
  background:
    radial-gradient(circle at 92% 5%, rgb(2 45 255 / 15%), transparent 38%),
    linear-gradient(145deg, #f5f8ff 0%, #e7edff 58%, #dce5ff 100%);
  border: 1px solid #9eafe5;
  box-shadow:
    inset 0 0 26px rgb(2 45 255 / 7%),
    0 8px 22px rgb(4 10 39 / 10%);
}

[data-screen="jobs"] .personal-fit .accent-text {
  color: #0021c8;
}

[data-screen="jobs"] .personal-fit .fit-meter > span {
  background: rgb(255 255 255 / 72%);
  border: 1px solid #bdc9ed;
}

[data-screen="jobs"] .personal-fit .fit-meter i {
  background: #022dff;
  box-shadow: 0 0 10px rgb(2 45 255 / 28%);
}

/* Shared visual language for personal results and the next recommended action. */
.personal-result-surface,
.starter-day-result .stage-takeaway-panel,
.day-one-comparison .stage-takeaway-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 5%, rgb(2 45 255 / 15%), transparent 38%),
    linear-gradient(145deg, #f5f8ff 0%, #e7edff 58%, #dce5ff 100%);
  border: 1px solid #9eafe5;
  box-shadow:
    inset 0 0 26px rgb(2 45 255 / 7%),
    0 8px 22px rgb(4 10 39 / 10%);
}

[data-screen="result"] .result-hero.personal-result-surface {
  padding: 18px;
  color: var(--text-primary);
  border-radius: var(--radius-lg);
}

[data-screen="result"] .result-hero.personal-result-surface h1,
[data-screen="result"] .result-hero.personal-result-surface p,
[data-screen="result"] .result-hero.personal-result-surface strong {
  color: var(--text-primary);
}

[data-screen="result"] .result-hero.personal-result-surface .light-accent {
  color: #0021c8;
}

[data-screen="result"] .result-hero.personal-result-surface .result-symbol {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary-hover);
}

[data-screen="result"] .next-step-surface {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-lg);
}

[data-screen="result"] .next-step-surface::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--primary);
  content: "";
}

.starter-day-result .stage-takeaway-panel,
.day-one-comparison .stage-takeaway-panel {
  background:
    radial-gradient(circle at 92% 5%, rgb(2 45 255 / 13%), transparent 38%),
    linear-gradient(145deg, #f7f9ff 0%, #e9eeff 60%, #e0e7ff 100%);
}

/* Starter day 3: reusable personal templates. */
.template-explainer {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin: 16px 0;
  padding: 13px;
  background: var(--primary-light);
  border: 1px solid #bdc9ed;
  border-radius: var(--radius-md);
}

.template-explainer > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid #cbd8ff;
  border-radius: 11px;
}

.template-explainer svg {
  width: 20px;
  height: 20px;
}

.template-explainer p,
.template-explainer strong,
.template-explainer small {
  display: block;
  margin: 0;
}

.template-explainer strong {
  font-size: 13px;
  line-height: 1.35;
}

.template-explainer small {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.45;
}

.day-three-form {
  display: grid;
  gap: 16px;
}

.day-three-form label > span,
.day-three-form legend {
  display: block;
  margin-bottom: 7px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 650;
}

.day-three-form textarea {
  width: 100%;
  min-height: 108px;
  padding: 13px;
  resize: vertical;
  background: var(--surface);
  border: 1px solid #b9c0cc;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
}

.day-three-form textarea:focus {
  outline: 2px solid rgb(2 45 255 / 16%);
  border-color: var(--primary);
}

.day-three-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-hint {
  margin: -4px 0 9px;
  color: var(--text-muted);
  font-size: 10px;
}

.template-type-choice {
  display: grid;
  gap: 8px;
}

.template-type-choice button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  min-height: 62px;
  padding: 11px;
  align-items: center;
  text-align: left;
  background: var(--surface-muted);
  border: 1px solid #c9ced8;
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

.template-type-choice button > svg {
  width: 20px;
  height: 20px;
  margin: auto;
  color: var(--text-muted);
}

.template-type-choice button span,
.template-type-choice button strong,
.template-type-choice button small {
  display: block;
}

.template-type-choice button strong {
  font-size: 12px;
}

.template-type-choice button small {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.35;
}

.template-type-choice button.is-selected {
  background: var(--primary-light);
  border-color: #7892ee;
  box-shadow: inset 0 0 12px rgb(2 45 255 / 7%);
}

.template-type-choice button.is-selected > svg,
.template-type-choice button.is-selected strong {
  color: var(--primary);
}

.template-result-text {
  margin: 12px 0 0;
  padding: 14px;
  overflow: visible;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface-muted);
  border: 1px solid #c9ced8;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.55;
}

/* Starter day 4: compare three realistic directions without another long quiz. */
.direction-map {
  display: grid;
  gap: 8px;
  margin: 17px 0;
  padding: 12px;
  background: #e9edf4;
  border: 1px solid #b6bdc9;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 16px rgb(4 10 39 / 6%);
}

.direction-map > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  align-items: center;
  background: rgb(255 255 255 / 78%);
  border: 1px solid #c8ced8;
  border-radius: var(--radius-md);
}

.direction-map svg {
  width: 20px;
  height: 20px;
  margin: auto;
  color: var(--primary);
}

.direction-map span,
.direction-map strong,
.direction-map small {
  display: block;
}

.direction-map strong {
  font-size: 12px;
}

.direction-map small {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.35;
}

.direction-choice-field {
  min-width: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.direction-choice-field legend {
  margin-bottom: 9px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 650;
}

.direction-choice {
  display: grid;
  gap: 8px;
}

.direction-choice button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  min-height: 66px;
  padding: 11px;
  align-items: center;
  text-align: left;
  background: var(--surface-muted);
  border: 1px solid #c4cad5;
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

.direction-choice button > svg {
  width: 21px;
  height: 21px;
  margin: auto;
  color: var(--text-muted);
}

.direction-choice span,
.direction-choice strong,
.direction-choice small {
  display: block;
}

.direction-choice strong {
  font-size: 12px;
}

.direction-choice small {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.35;
}

.direction-choice button.is-selected {
  background: var(--primary-light);
  border-color: #7892ee;
  box-shadow: inset 0 0 14px rgb(2 45 255 / 8%);
}

.direction-choice button.is-selected > svg,
.direction-choice button.is-selected strong {
  color: var(--primary);
}

/* Starter finale: a concrete 14-day plan and a shareable completion slide. */
.plan-preview {
  margin: 18px 0;
  padding: 16px;
  background:
    radial-gradient(circle at 90% 0%, rgb(2 45 255 / 15%), transparent 40%),
    linear-gradient(145deg, #f6f8ff, #e4eaff);
  border: 1px solid #9eafe5;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 24px rgb(2 45 255 / 6%);
}

.plan-preview-head {
  display: flex;
  gap: 11px;
  align-items: center;
}

.plan-preview-head > span {
  color: var(--primary);
  font-size: 42px;
  font-weight: 720;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan-preview-head p,
.plan-preview-head strong,
.plan-preview-head small {
  display: block;
  margin: 0;
}

.plan-preview-head strong {
  font-size: 14px;
}

.plan-preview-head small {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 10px;
}

.plan-preview-line {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
  margin: 15px 0;
}

.plan-preview-line i {
  height: 7px;
  background: #aebce9;
  border-radius: 999px;
}

.plan-preview-line i:nth-child(-n+7) {
  background: var(--primary);
}

.plan-preview ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-preview li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.4;
}

.plan-preview li::before {
  position: absolute;
  left: 0;
  color: var(--primary);
  content: "\2713";
}

.starter-finish-slide {
  margin: 20px 0 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgb(2 45 255 / 28%), transparent 40%),
    linear-gradient(150deg, #08143e 0%, #102b7b 58%, #022dff 100%);
  border: 1px solid #4969d9;
  border-radius: var(--radius-xl);
  color: #fff;
  box-shadow: 0 14px 30px rgb(4 10 39 / 22%);
}

.finish-slide-top {
  display: flex;
  padding: 17px 17px 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(255 255 255 / 16%);
}

.finish-slide-top span {
  font-size: 36px;
  font-weight: 720;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.finish-slide-top small {
  max-width: 14ch;
  color: #cdd8ff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

.starter-finish-slide figcaption {
  padding: 16px 17px 18px;
}

.starter-finish-slide h2 {
  max-width: 18ch;
  margin: 0 0 14px;
  color: #fff;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.22;
}

.starter-finish-slide ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.starter-finish-slide li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: #eef2ff;
  font-size: 11px;
  line-height: 1.4;
}

.starter-finish-slide li svg {
  width: 16px;
  height: 16px;
  padding: 2px;
  color: #08143e;
  background: #fff;
  border-radius: 50%;
}

.finish-next-step {
  margin: 16px 0;
  padding: 2px 2px 4px;
}

.finish-next-step h2 {
  margin: 5px 0 7px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
}

.finish-next-step > p:last-child {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

/* Five-result vault: value first, upgrade second. */
.results-vault-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 12px;
  align-items: start;
}

.results-vault-head h1 {
  margin-bottom: 7px;
}

.results-vault-score {
  display: grid;
  min-height: 78px;
  padding: 10px;
  place-content: center;
  text-align: center;
  background: var(--primary-light);
  border: 1px solid #9eafe5;
  border-radius: var(--radius-lg);
}

.results-vault-score strong,
.results-vault-score small {
  display: block;
}

.results-vault-score strong {
  color: var(--primary);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.results-vault-score small {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 9px;
}

.starter-results-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
}

.starter-result-item {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #c4cad5;
  border-radius: var(--radius-md);
}

.starter-result-item summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  gap: 10px;
  min-height: 66px;
  padding: 11px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.starter-result-item summary::-webkit-details-marker {
  display: none;
}

.starter-result-item summary > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid #c3d0fb;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.starter-result-item summary p,
.starter-result-item summary strong,
.starter-result-item summary small {
  display: block;
  margin: 0;
}

.starter-result-item summary strong {
  font-size: 12px;
  line-height: 1.35;
}

.starter-result-item summary small {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.35;
}

.starter-result-item summary b {
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 400;
  transition: transform 160ms ease;
}

.starter-result-item[open] summary b {
  transform: rotate(45deg);
}

.starter-result-item.is-locked {
  opacity: .58;
}

.starter-result-body {
  padding: 0 12px 12px;
  border-top: 1px solid var(--border-light);
}

.starter-result-body pre {
  margin: 0;
  padding: 13px 0;
  overflow: visible;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.55;
}

.starter-result-body .result-copy-button {
  width: 100%;
  min-height: 40px;
}

.readiness-gap {
  padding: 16px;
  background: #e9edf4;
  border: 1px solid #b6bdc9;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 18px rgb(4 10 39 / 6%);
}

.readiness-gap h2 {
  margin: 5px 0 14px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
}

.readiness-columns {
  display: grid;
  gap: 9px;
}

.readiness-columns > div {
  padding: 12px;
  background: rgb(255 255 255 / 78%);
  border: 1px solid #c8ced8;
  border-radius: var(--radius-md);
}

.readiness-columns span {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
}

.readiness-columns span svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.readiness-columns ul {
  display: grid;
  gap: 6px;
  margin: 9px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.4;
}

.results-upgrade {
  margin-top: 18px;
  padding: 17px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgb(2 45 255 / 42%), transparent 42%),
    #08143e;
  border: 1px solid #3155c8;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 26px rgb(4 10 39 / 20%);
}

.results-upgrade h2 {
  margin: 5px 0 7px;
  color: #fff;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
}

.results-upgrade p {
  color: #cdd8ff;
  font-size: 11px;
  line-height: 1.4;
}

.results-upgrade-price {
  display: flex;
  margin: 14px 0 11px;
  padding-top: 12px;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid rgb(255 255 255 / 16%);
}

.results-upgrade-price small {
  color: #aebef2;
  font-size: 10px;
}

.results-upgrade-price strong {
  color: #fff;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}
