:root {
  color-scheme: dark;
  --ink: #edf7f8;
  --muted: #8fb2b8;
  --paper: var(--c-copper-ink);
  --surface: #101d24;
  --surface-2: #16242a;
  --surface-3: #0d181e;
  --line: #203540;
  --line-bright: #2f5361;
  --sage: #59d8c9;
  --sage-dark: #59d8c9;
  --clay: #f6c86f;
  --gold: #f6c86f;
  --rose: #261c1d;
  --sky: #16242a;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--c-sans);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.assessment-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
}

.side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: var(--c-surface);
}

.back-link,
.gpt-link,
.secondary-link {
  color: var(--sage-dark);
  font-weight: 850;
  text-decoration: none;
}

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

.brand span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  color: var(--sage);
  background: var(--c-surface-2);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
}

.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mode-toggle button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.mode-toggle button.active {
  border-color: var(--line-bright);
  background: var(--c-surface-2);
  color: var(--gold);
}

#sectionNav {
  display: grid;
  gap: 6px;
}

.process-rail {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.quiet-note {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  line-height: 1.45;
}

.quiet-note strong,
.quiet-note span {
  display: block;
}

.quiet-note strong {
  color: var(--sage-dark);
}

.process-step {
  padding: 10px;
  border-radius: 8px;
  color: var(--muted);
}

.process-step strong,
.process-step span {
  display: block;
}

.process-step span {
  margin-top: 2px;
  font-size: 0.78rem;
}

.process-step.active {
  background: var(--c-surface-2);
  color: var(--ink);
}

#sectionNav button {
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-weight: 850;
}

#sectionNav button span {
  display: block;
  margin-bottom: 2px;
  color: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  opacity: 0.72;
  text-transform: uppercase;
}

#sectionNav button.active,
#sectionNav button.complete {
  background: var(--c-surface-2);
  color: var(--ink);
}

.gpt-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background: var(--c-surface-2);
}

main {
  display: grid;
  gap: 22px;
  align-content: start;
  width: min(1600px, 100%);
  padding: 26px;
}

.intro-panel,
.assessment-panel,
.processing-panel,
.results-panel,
.history-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  overflow: hidden;
}

.intro-hero {
  min-height: 560px;
  display: grid;
  align-content: end;
  padding: 32px;
  color: var(--ink);
  background: var(--surface-2);
}

.truth-journey {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 18px 0 0;
}

.truth-journey article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 3px 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.truth-journey span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--c-copper-ink);
  font-weight: 950;
}

.truth-journey strong {
  color: var(--ink);
}

.truth-journey p,
.preview-heading p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.truth-journey p {
  color: rgba(255, 255, 255, 0.84);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-panel .eyebrow {
  color: var(--gold);
}

.assessment-preview {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 28px;
  background: var(--surface);
}

.assessment-preview .eyebrow {
  color: var(--clay);
}

.base-preview-grid {
  display: grid;
  gap: 12px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.base-preview-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
}

.quiet-card {
  background: var(--surface-2);
}

.base-preview-card span,
.base-preview-card small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.base-preview-card h3 {
  margin: 6px 0;
}

.base-preview-card p {
  margin-bottom: 9px;
  color: var(--muted);
  line-height: 1.45;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
  line-height: 1.2;
}

h3 {
  margin-bottom: 8px;
}

.intro-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.6;
}

.profile-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 0.55fr);
  gap: 14px;
  align-items: end;
  margin-top: 12px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.profile-form .button-row {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: var(--sage-dark);
  font-size: 0.88rem;
  font-weight: 850;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--ink);
}

.primary-button,
.secondary-button {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 900;
}

.primary-button {
  background: var(--sage);
  color: var(--c-copper-ink);
}

.secondary-button {
  background: var(--c-surface-2);
  color: var(--ink);
  border-color: var(--line-bright);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.assessment-panel,
.processing-panel,
.results-panel,
.history-panel {
  padding: 24px;
}

.processing-panel {
  min-height: 520px;
  display: grid;
  align-items: center;
}

.processing-card {
  max-width: 820px;
}

.processing-card h1 {
  font-size: clamp(2rem, 4.4vw, 4.2rem);
}

.processing-card p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.processing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.processing-steps span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--sage-dark);
  font-weight: 850;
}

.assessment-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.assessment-map:empty {
  display: none;
}

.map-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--muted);
  font-weight: 850;
}

.map-card span {
  color: inherit;
  font-size: 0.78rem;
}

.map-card.active {
  border-color: var(--sage);
  background: var(--c-surface-2);
  color: var(--ink);
}

.map-card.complete {
  border-color: var(--gold);
}

.panel-header,
.results-top,
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}

.results-top h1 {
  font-size: clamp(2.1rem, 4vw, 4.2rem);
}

.progress-box {
  width: min(320px, 100%);
  color: var(--muted);
  font-weight: 850;
}

.question-counter {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.question-help {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.progress-track {
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--c-surface-2);
  overflow: hidden;
}

#progressFill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--sage));
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
}

.option-button {
  min-height: 110px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--ink);
  text-align: left;
}

.option-button strong {
  display: block;
  margin-bottom: 7px;
  color: var(--sage-dark);
}

.option-button:hover {
  border-color: var(--sage);
  background: var(--c-surface-2);
}

.option-button.selected {
  border-color: var(--sage-dark);
  background: var(--c-surface-2);
}

.voice-answer-panel {
  display: grid;
  gap: 14px;
}

.conversation-slide {
  display: grid;
  gap: 18px;
}

.pace-note {
  padding: 12px 14px;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background: var(--c-surface-2);
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.45;
}

.question-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.question-card h3 {
  max-width: 920px;
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.question-card p {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.prompt-label {
  margin-bottom: 9px !important;
  color: var(--clay) !important;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voice-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.slide-voice-card {
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  padding: 18px;
}

.dictate-button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  min-height: 140px;
  border: 1px solid var(--sage);
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--sage-dark);
  font-weight: 900;
}

.slide-voice-card .dictate-button {
  min-height: 168px;
  font-size: 1.02rem;
}

.dictate-button.recording {
  background: var(--sage);
  color: var(--c-copper-ink);
}

.mic-icon {
  position: relative;
  width: 34px;
  height: 48px;
  border: 4px solid currentColor;
  border-radius: 18px;
}

.mic-icon::before,
.mic-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.mic-icon::before {
  bottom: -12px;
  width: 24px;
  height: 4px;
  border-radius: 999px;
}

.mic-icon::after {
  bottom: -24px;
  width: 4px;
  height: 16px;
  border-radius: 999px;
}

.voice-guidance {
  display: grid;
  gap: 12px;
}

.voice-guidance p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.timer-line {
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--sage-dark) !important;
  font-weight: 950;
}

.audio-toggle {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--sage-dark);
  font-size: 0.86rem;
}

.audio-toggle input {
  width: 18px;
  min-height: 18px;
}

.transcript-field {
  display: grid;
  gap: 8px;
}

textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.conversation-slide textarea {
  min-height: 240px;
  font-size: 1rem;
}

.reflection-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.assessment-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}

.assessment-more-actions {
  position: relative;
}

.assessment-more-actions summary {
  cursor: pointer;
  list-style: none;
}

.assessment-more-actions summary::-webkit-details-marker {
  display: none;
}

.assessment-more-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 4;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.assessment-more-menu button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.assessment-more-menu button:hover,
.assessment-more-menu button:focus-visible {
  background: var(--surface-2);
}

.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.report-tabs button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  background: var(--c-surface-2);
  color: var(--sage-dark);
  font-weight: 850;
}

.report-tabs button.active {
  background: var(--sage-dark);
  color: var(--c-copper-ink);
}

.report-page {
  display: grid;
  gap: 18px;
}

.handoff-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background: var(--surface-2);
}

.handoff-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background: var(--c-surface-2);
}

.health-grid {
  display: grid;
  gap: 13px;
}

.health-card,
.report-block,
.history-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
}

.hopeful-block {
  background: var(--surface-2);
  border-color: var(--line-bright);
}

.mutation-block {
  background: var(--c-surface);
  border-color: var(--c-hairline-strong);
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  font-weight: 900;
}

.health-bar {
  position: relative;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8a6d3b 0%, #8a6d3b 32%, #C8A96E 64%, #d4b87a 100%);
}

.health-marker {
  position: absolute;
  top: -5px;
  width: 8px;
  height: 30px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
}

.band-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  text-align: center;
}

.report-block p,
.history-card p,
.health-card p {
  color: var(--muted);
  line-height: 1.55;
}

.tenet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tenet-card {
  display: grid;
  gap: 12px;
}

.tenet-card h2 {
  margin-bottom: 0;
}

.tenet-row {
  display: grid;
  gap: 7px;
}

.tenet-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
}

.tenet-label strong {
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
  white-space: nowrap;
}

.tenet-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--c-bg-deep);
  border: 1px solid var(--line);
}

.tenet-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--clay));
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

#historyList {
  display: grid;
  gap: 12px;
}

.history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.hidden {
  display: none;
}

@media (max-width: 980px) {
  .assessment-shell {
    grid-template-columns: 1fr;
  }

  .side {
    position: static;
    height: auto;
  }

  #sectionNav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-panel,
  .profile-form,
  .tenet-grid,
  .two-column,
  .voice-card {
    grid-template-columns: 1fr;
  }

  .assessment-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .assessment-experience .tool-banner { display: none; }
  main,
  .side {
    padding: 18px;
  }

  .side {
    gap: 12px;
  }

  .side .process-rail,
  .side #sectionNav,
  .side .gpt-link {
    display: none;
  }

  .intro-panel,
  .intro-hero,
  .assessment-panel,
  .processing-panel,
  .results-panel,
  .history-panel {
    padding: 18px;
  }

  .panel-header,
  .results-top,
  .section-heading,
  .handoff-panel,
  .history-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .assessment-map {
    grid-template-columns: 1fr 1fr;
  }

  .processing-steps {
    grid-template-columns: 1fr;
  }

  .band-row {
    font-size: 0.66rem;
  }
}

/* Becoming Journey integrated tool theme */
.assessment-experience .assessment-shell {
  width: min(1200px, calc(100% - 48px));
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 22px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 50px) 0 clamp(70px, 8vw, 92px);
  min-height: 0;
}

.assessment-experience h1,
.assessment-experience h2,
.assessment-experience h3 {
  color: var(--c-cream);
  font-family: var(--tool-serif);
  font-weight: 600;
  letter-spacing: -0.018em;
}

.assessment-experience p {
  color: var(--muted);
}

.assessment-experience .journey-progress {
  position: sticky;
  top: 83px;
  z-index: 16;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 17, 24, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 24px rgba(24, 45, 36, 0.04);
}

.assessment-experience .journey-progress-inner {
  width: min(1200px, calc(100% - 48px));
  min-height: 100px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(260px, 360px);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  margin: 0 auto;
  padding: 16px 0;
}

.assessment-experience .journey-progress .eyebrow {
  margin: 0 0 6px;
}

.assessment-experience .journey-progress-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 17px;
}

.assessment-experience .journey-progress-status strong {
  color: var(--sage-dark);
  font-family: var(--tool-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.54rem);
  font-weight: 600;
  line-height: 1.14;
}

.assessment-experience .journey-progress-status span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.assessment-experience .journey-progress-note {
  margin: 6px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

.assessment-experience .journey-progress-meter strong {
  display: block;
  margin-bottom: 9px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-align: right;
}

.assessment-experience .journey-progress .progress-track {
  height: 8px;
  margin: 0;
}

.assessment-experience .side {
  top: 203px;
  height: fit-content;
  gap: 17px;
  padding: 23px 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.assessment-experience .back-link,
.assessment-experience .gpt-link,
.assessment-experience .secondary-link {
  color: var(--sage-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

.assessment-experience .brand span {
  border-radius: 50%;
  color: var(--c-copper);
  background: var(--sage-dark);
  font-family: var(--tool-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.assessment-experience .brand strong {
  color: var(--sage-dark);
  font-family: var(--tool-serif);
  font-size: 1.22rem;
  font-weight: 600;
}

.assessment-experience .mode-toggle,
.assessment-experience .process-rail,
.assessment-experience .quiet-note {
  border-color: var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.assessment-experience .process-rail,
.assessment-experience .quiet-note {
  border-radius: 6px;
}

.assessment-experience .mode-toggle button {
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
}

.assessment-experience .mode-toggle button.active {
  border-color: var(--sage-dark);
  color: white;
  background: var(--sage-dark);
}

.assessment-experience .process-step.active,
.assessment-experience #sectionNav button.active,
.assessment-experience #sectionNav button.complete {
  color: var(--sage-dark);
  background: var(--sage-100, var(--c-surface-2));
}

.assessment-experience #sectionNav button {
  color: var(--muted);
  font-weight: 600;
}

.assessment-experience .gpt-link {
  border-color: var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.assessment-experience main {
  width: 100%;
  padding: 0;
}

.assessment-experience .intro-panel,
.assessment-experience .assessment-panel,
.assessment-experience .processing-panel,
.assessment-experience .results-panel,
.assessment-experience .history-panel {
  border-color: var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.assessment-experience .intro-panel {
  grid-template-columns: 1fr;
}

.assessment-experience .intro-hero {
  min-height: 0;
  padding: clamp(29px, 5vw, 48px);
  color: var(--ink);
  background: var(--surface);
}

.assessment-experience .intro-hero h1 {
  max-width: 680px;
  font-size: clamp(2.55rem, 5.5vw, 3.7rem);
  line-height: 1.03;
}

.assessment-experience .eyebrow,
.assessment-experience .intro-panel .eyebrow,
.assessment-experience .assessment-preview .eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.assessment-experience .intro-copy {
  max-width: 655px;
  font-size: 1rem;
}

.assessment-experience .truth-journey {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
  gap: 12px;
  margin: 27px 0 0;
}

.assessment-experience .truth-journey article {
  grid-template-columns: 34px minmax(0, 1fr);
  border-color: var(--line);
  border-radius: 6px;
  background: var(--surface-3);
}

.assessment-experience .truth-journey span {
  color: var(--c-copper-ink);
  background: var(--sage-dark);
}

.assessment-experience .truth-journey strong {
  color: var(--ink);
}

.assessment-experience .truth-journey p {
  color: var(--muted);
}

.assessment-experience .profile-form {
  margin-top: 26px;
  padding: 21px;
  border-color: var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.assessment-experience label {
  color: var(--sage-dark);
  font-weight: 600;
}

.assessment-experience input,
.assessment-experience select,
.assessment-experience textarea {
  border-color: var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
}

.assessment-experience input:focus,
.assessment-experience select:focus,
.assessment-experience textarea:focus {
  outline: 2px solid rgba(176, 141, 77, 0.32);
  border-color: var(--gold);
}

.assessment-experience .primary-button,
.assessment-experience .secondary-button {
  border-radius: 999px;
  font-size: 0.89rem;
  font-weight: 600;
}

.assessment-experience .primary-button {
  color: var(--c-copper-ink);
  background: var(--sage-dark);
}

.assessment-experience .secondary-button {
  border-color: var(--line);
  color: var(--sage-dark);
  background: var(--surface);
}

.assessment-experience .assessment-preview {
  padding: clamp(29px, 5vw, 46px);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.assessment-experience .base-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: none;
  overflow: visible;
}

.assessment-experience .base-preview-card,
.assessment-experience .map-card,
.assessment-experience .processing-steps span,
.assessment-experience .health-card,
.assessment-experience .report-block,
.assessment-experience .history-card,
.assessment-experience .question-card {
  border-color: var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
}

.assessment-experience .quiet-card,
.assessment-experience .question-card,
.assessment-experience .handoff-panel,
.assessment-experience .hopeful-block {
  background: var(--surface-2);
}

.assessment-experience .assessment-panel,
.assessment-experience .processing-panel,
.assessment-experience .results-panel,
.assessment-experience .history-panel {
  padding: clamp(22px, 4vw, 34px);
}

.assessment-experience .map-card.active,
.assessment-experience .option-button:hover,
.assessment-experience .option-button.selected {
  border-color: rgba(176, 141, 77, 0.45);
  color: var(--ink);
  background: var(--surface-2);
}

.assessment-experience .progress-track,
.assessment-experience .tenet-track {
  border-color: transparent;
  background: var(--c-surface-2);
}

.assessment-experience #progressFill,
.assessment-experience .tenet-track span {
  background: linear-gradient(90deg, var(--gold), var(--sage-dark));
}

.assessment-experience .pace-note,
.assessment-experience .timer-line {
  border-color: rgba(176, 141, 77, 0.32);
  color: var(--clay);
  background: var(--c-surface-2);
}

.assessment-experience .voice-card {
  border-color: var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.assessment-experience .dictate-button {
  border-color: rgba(176, 141, 77, 0.42);
  border-radius: 6px;
  color: var(--sage-dark);
  background: var(--surface-2);
}

.assessment-experience .dictate-button.recording {
  color: var(--c-copper-ink);
  background: var(--sage-dark);
}

.assessment-experience .report-tabs button {
  border-color: var(--line);
  color: var(--sage-dark);
  background: var(--surface);
}

.assessment-experience .report-tabs button.active {
  color: var(--c-copper-ink);
  background: var(--sage-dark);
}

.assessment-experience .handoff-panel {
  border-color: var(--line);
  border-radius: 6px;
}

.assessment-experience .secondary-link {
  border-color: var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.assessment-experience .mutation-block {
  border-color: rgba(176, 141, 77, 0.32);
  background: var(--c-surface-2);
}

.assessment-experience .health-marker {
  background: var(--sage-dark);
}

@media (max-width: 980px) {
  .assessment-experience .assessment-shell {
    grid-template-columns: 1fr;
  }

  .assessment-experience .side {
    position: static;
  }
}

@media (max-width: 680px) {
  .assessment-experience .journey-progress {
    top: 70px;
  }

  .assessment-experience .journey-progress-inner {
    position: relative;
    width: min(1200px, calc(100% - 34px));
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 13px 0 15px;
  }

  .assessment-experience .journey-progress-note {
    display: none;
  }

  .assessment-experience .journey-progress-meter strong {
    position: absolute;
    top: 19px;
    right: 17px;
  }

  .assessment-experience .assessment-shell {
    width: min(1200px, calc(100% - 34px));
    padding: 18px 0 48px;
  }

  .assessment-experience .side {
    padding: 0; border: 0; background: transparent;
  }
  .assessment-experience .side > :not(.mode-toggle) { display: none; }
  .assessment-experience .mode-toggle { margin: 0; }

  .assessment-experience .truth-journey,
  .assessment-experience .base-preview-grid {
    grid-template-columns: 1fr;
  }

  .assessment-experience .intro-hero,
  .assessment-experience .assessment-preview,
  .assessment-experience .assessment-panel,
  .assessment-experience .processing-panel,
  .assessment-experience .results-panel,
  .assessment-experience .history-panel {
    padding: 21px;
  }

  .assessment-experience .intro-hero { min-height: 0; align-content: start; }
  .assessment-experience .intro-copy { margin-bottom: 4px; }
  .assessment-experience .truth-journey { gap: 6px; margin-top: 12px; }
  .assessment-experience .truth-journey article { padding: 9px 10px; align-items: center; }
  .assessment-experience .truth-journey article p { display: none; }
  .assessment-experience .truth-journey span { grid-row: auto; width: 28px; height: 28px; }
  .assessment-experience .assessment-preview { display: none; }
  .assessment-experience .profile-form { margin-top: 16px; }
  .assessment-experience .profile-form .button-row { display: grid; grid-template-columns: 1fr; }
}

/* ===== The Threshold: a guided, contemplative entrance ===== */
/* When active, it takes over the page: no sidebar, no banner, no progress bar,
   so the entrance reads as its own dedicated space rather than a side column. */
body.threshold-active .tool-banner,
body.threshold-active .journey-progress {
  display: none;
}

body.threshold-active .assessment-shell {
  display: block;
  max-width: 1080px;
}

body.threshold-active .assessment-shell > .side {
  display: none;
}

.threshold-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(125% 85% at 50% -10%, rgba(200, 169, 110, 0.07), transparent 62%),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.threshold-frame {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 26px;
  max-width: 760px;
  min-height: 560px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 92px) clamp(24px, 5vw, 58px);
  text-align: center;
}

.threshold-dots {
  display: flex;
  gap: 9px;
}

.threshold-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-bright);
  transition: transform 0.4s ease, background 0.4s ease;
}

.threshold-dots span.done {
  background: var(--sage-dark);
}

.threshold-dots span.active {
  background: var(--gold);
  transform: scale(1.3);
}

.threshold-card {
  display: grid;
  justify-items: center;
  gap: 20px;
  animation: thresholdRise 0.7s ease both;
}

.threshold-card .eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.threshold-card h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--c-serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  line-height: 1.03;
  letter-spacing: 0;
  color: var(--ink);
}

.threshold-card p {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.threshold-card p.lede {
  color: var(--ink);
  font-size: 1.2rem;
}

.threshold-card em {
  color: var(--gold-soft);
  font-style: italic;
}

.threshold-pair {
  display: grid;
  gap: 14px;
  max-width: 60ch;
  margin-top: 4px;
}

.threshold-pair div {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  text-align: left;
}

.threshold-pair strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.02rem;
}

.threshold-pair span {
  color: var(--muted);
  line-height: 1.55;
}

.threshold-truths {
  list-style: none;
  counter-reset: truth;
  display: grid;
  gap: 14px;
  max-width: 60ch;
  margin: 4px 0 0;
  padding: 0;
}

.threshold-truths li {
  counter-increment: truth;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 16px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  text-align: left;
  animation: thresholdRise 0.6s ease both;
}

.threshold-truths li::before {
  content: counter(truth);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--sage-dark);
  color: #fff;
  font-family: var(--c-serif);
  font-size: 1.4rem;
  font-weight: 700;
}

.threshold-truths li:nth-child(1) { animation-delay: 0.15s; }
.threshold-truths li:nth-child(2) { animation-delay: 0.35s; }
.threshold-truths li:nth-child(3) { animation-delay: 0.55s; }

.threshold-truths strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.threshold-truths span {
  color: var(--muted);
  line-height: 1.55;
}

.threshold-breath {
  width: 96px;
  height: 96px;
  margin: 2px 0;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(200, 169, 110, 0.5), rgba(143, 176, 154, 0.16) 68%, transparent 72%);
  animation: thresholdBreathe 5.5s ease-in-out infinite;
}

.threshold-prayer {
  max-width: 52ch;
  font-family: var(--c-serif);
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--gold-soft);
}

.threshold-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.threshold-skip {
  margin-top: 2px;
  padding: 0;
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  opacity: 0.85;
}

.threshold-skip:hover {
  color: var(--gold-soft);
}

.invitation-replay {
  justify-self: start;
  margin: 2px 0 0;
  padding: 0;
  background: none;
  border: none;
  color: var(--gold);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.invitation-replay:hover {
  color: var(--gold-soft);
  text-decoration: underline;
}

@keyframes thresholdRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes thresholdBreathe {
  0%, 100% { transform: scale(0.82); opacity: 0.55; }
  50% { transform: scale(1.12); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .threshold-card,
  .threshold-truths li,
  .threshold-breath {
    animation: none;
  }
}

/* ---- "You already did this" banner on the intro panel ----
   Shown when a finished report exists for the active mode, so a returning
   leader is met with their work rather than a blank starting line. */
.assess-done-banner {
  background: linear-gradient(135deg, rgba(200, 169, 110, .12), rgba(200, 169, 110, .04));
  border: 1px solid rgba(200, 169, 110, .3);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 0 0 26px;
}
.assess-done-banner h2 {
  font-family: var(--c-serif, "Playfair Display", serif);
  font-weight: 600;
  font-size: 1.45rem;
  margin: 6px 0 8px;
}
.assess-done-banner > p:last-of-type {
  margin: 0 0 16px;
  line-height: 1.6;
  max-width: 58ch;
  color: var(--c-muted, #8b8b8b);
}
.assess-done-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.assess-done-actions button { min-height: 46px; }
@media (max-width: 720px) {
  .assess-done-banner { padding: 20px 18px; }
  .assess-done-actions { flex-direction: column; align-items: stretch; }
}
