:root {
  --ink: #20332d;
  --ink-soft: #52635d;
  --paper: #f3efe7;
  --surface: rgba(255, 253, 248, 0.88);
  --surface-solid: #fffdf8;
  --line: #d8d3c7;
  --line-strong: #b9b5aa;
  --moss: #315e4f;
  --moss-soft: #dfe9df;
  --sage: #819b83;
  --clay: #bf6b4c;
  --clay-soft: #f4ded4;
  --amber: #a16d2c;
  --amber-soft: #f5e9cb;
  --shadow: 0 24px 70px rgba(49, 63, 53, 0.09);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(49, 94, 79, 0.3);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 33vw;
  height: 33vw;
  min-width: 260px;
  min-height: 260px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.38;
}

.ambient-one {
  top: -15vw;
  right: -8vw;
  background: #d3dfcc;
}

.ambient-two {
  bottom: -18vw;
  left: -12vw;
  background: #ead5c7;
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 35px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--moss);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 1.5px;
  height: 14px;
  background: var(--moss);
  content: "";
  transform-origin: bottom;
}

.brand-mark::before {
  transform: translateX(-50%) rotate(-38deg);
}

.brand-mark::after {
  transform: translateX(-50%) rotate(38deg);
}

.brand-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
}

.privacy-note svg {
  width: 14px;
  height: 14px;
}

.transcription-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--amber);
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12px;
  cursor: help;
}

.transcription-notice svg {
  width: 14px;
  height: 14px;
}

.quiet-button,
.text-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.quiet-button {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}

.quiet-button:hover {
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
}

.progress-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.progress-step {
  position: relative;
  min-width: 0;
  padding-top: 12px;
  border: 0;
  background: transparent;
  text-align: left;
}

.progress-step::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--line);
  content: "";
}

.progress-step.is-current::before,
.progress-step.is-complete::before {
  background: var(--moss);
}

.progress-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.progress-label {
  display: block;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-step.is-current .progress-label,
.progress-step.is-current .progress-kicker {
  color: var(--ink);
}

.stage-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 630px;
  overflow: hidden;
  border: 1px solid rgba(181, 177, 166, 0.66);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stage-frame.intro-frame {
  grid-template-columns: minmax(0, 1fr);
  min-height: 620px;
}

.intro-frame .stage-main {
  padding-right: clamp(36px, 7vw, 90px);
  padding-left: clamp(36px, 7vw, 90px);
}

.stage-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(36px, 5.5vw, 72px);
}

.stage-header {
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--clay);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.stage-title {
  max-width: 720px;
  margin-bottom: 17px;
  font-family: var(--display);
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.stage-lede {
  max-width: 635px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
}

.content-zone {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 34px;
}

.intro-header {
  max-width: 930px;
}

.intro-header .stage-title {
  max-width: 900px;
}

.intro-zone {
  padding-top: 42px;
}

.intro-section-label {
  margin-bottom: 17px;
}

.intro-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.intro-step {
  min-height: 190px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.42);
}

.intro-step-number {
  display: block;
  margin-bottom: 27px;
  color: var(--clay);
  font-family: var(--display);
  font-size: 19px;
  font-style: italic;
}

.intro-step h3 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
}

.intro-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.intro-close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.intro-close p {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.intro-close strong {
  color: var(--ink);
}

.intro-close .primary-button {
  flex: 0 0 auto;
}

.voice-zone {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 265px;
  text-align: center;
}

.voice-zone.compact {
  min-height: 188px;
  flex: 0 0 auto;
  padding: 12px 0 28px;
}

.mic-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 144px;
  height: 144px;
  margin-bottom: 22px;
}

.compact .mic-wrap {
  width: 110px;
  height: 110px;
  margin-bottom: 14px;
}

.mic-halo,
.mic-halo::before {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(49, 94, 79, 0.18);
  border-radius: 50%;
  content: "";
}

.mic-halo::before {
  inset: 10px;
  border-color: rgba(49, 94, 79, 0.12);
}

.mic-button {
  position: relative;
  z-index: 1;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 12px 28px rgba(49, 94, 79, 0.22);
  color: white;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.compact .mic-button {
  width: 72px;
  height: 72px;
}

.mic-button:hover:not(:disabled) {
  background: #254d41;
  box-shadow: 0 16px 36px rgba(49, 94, 79, 0.3);
  transform: translateY(-2px);
}

.mic-button:active:not(:disabled) {
  transform: scale(0.97);
}

.mic-button:disabled {
  cursor: wait;
}

.mic-button svg {
  width: 29px;
  height: 29px;
}

.compact .mic-button svg {
  width: 23px;
  height: 23px;
}

.mic-wrap.is-recording .mic-button {
  background: var(--clay);
  box-shadow: 0 12px 34px rgba(191, 107, 76, 0.32);
}

.mic-wrap.is-recording .mic-halo {
  border-color: rgba(191, 107, 76, 0.55);
  animation: pulse 1.8s ease-out infinite;
}

.mic-wrap.is-busy .mic-halo {
  border-top-color: var(--moss);
  animation: spin 1.2s linear infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(0.85);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

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

.mic-label {
  margin: 0 0 7px;
  font-size: 15px;
  font-weight: 680;
}

.mic-helper {
  max-width: 350px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.waveform {
  display: none;
  height: 18px;
  align-items: center;
  gap: 3px;
  margin-top: 12px;
}

.is-recording + .mic-copy .waveform,
.mic-copy .waveform.is-visible {
  display: inline-flex;
}

.waveform span {
  width: 2px;
  height: 5px;
  border-radius: 999px;
  background: var(--clay);
  animation: wave 900ms ease-in-out infinite alternate;
}

.waveform span:nth-child(2),
.waveform span:nth-child(6) {
  animation-delay: 120ms;
}

.waveform span:nth-child(3),
.waveform span:nth-child(7) {
  animation-delay: 240ms;
}

.waveform span:nth-child(4) {
  animation-delay: 360ms;
}

@keyframes wave {
  to {
    height: 17px;
  }
}

.sample-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 8px 3px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
}

.sample-action:hover {
  border-color: var(--moss);
  color: var(--moss);
}

.sample-action svg,
.person-tag svg,
.activity-ambiguity svg,
.ambiguity-box svg,
.notice svg,
.selected-check svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.section-label h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
}

.section-meta {
  color: var(--ink-soft);
  font-size: 12px;
}

.item-list,
.people-list,
.pattern-list,
.action-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.item-list {
  display: grid;
  gap: 9px;
}

.activity-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
}

.activity-number {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--moss-soft);
  color: var(--moss);
  font-size: 11px;
  font-weight: 750;
}

.activity-label {
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 630;
  line-height: 1.4;
}

.activity-ambiguity {
  grid-column: 2 / -1;
  display: flex;
  gap: 7px;
  margin-top: -5px;
  color: var(--amber);
  font-size: 12px;
  line-height: 1.4;
}

.energy-grid {
  display: grid;
  gap: 11px;
}

.energy-card {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(280px, auto);
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
}

.energy-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.energy-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.energy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 10px;
  font-weight: 690;
  letter-spacing: 0.01em;
}

.energy-chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.energy-chip.is-active[data-energy="internal"] {
  border-color: #87a38d;
  background: #e4eee4;
  color: #315e4f;
}

.energy-chip.is-active[data-energy="social"] {
  border-color: #9e9a79;
  background: #efecd9;
  color: #686342;
}

.energy-chip.is-active[data-energy="draining"] {
  border-color: #c99079;
  background: #f4ded4;
  color: #884b38;
}

.energy-chip.is-active[data-energy="neutral"] {
  border-color: #a7aaa7;
  background: #e8eae8;
  color: #565c58;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.68;
}

.people-map {
  display: grid;
  gap: 12px;
}

.people-activity {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
}

.people-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.people-activity-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 660;
}

.people-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.person-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--moss-soft);
  color: var(--moss);
  font-size: 11px;
  font-weight: 650;
}

.person-tag.is-uncertain {
  background: var(--amber-soft);
  color: #7e5c28;
}

.empty-tag {
  color: var(--ink-soft);
  font-size: 12px;
  font-style: italic;
}

.ambiguity-box,
.notice {
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid #e0cda4;
  border-radius: 11px;
  background: rgba(249, 238, 209, 0.56);
  color: #765525;
  font-size: 12px;
  line-height: 1.5;
}

.notice.error {
  border-color: #e0b9aa;
  background: rgba(247, 222, 212, 0.66);
  color: #85442f;
}

.stage-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 690;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-button {
  border: 1px solid var(--moss);
  background: var(--moss);
  color: white;
}

.primary-button:hover:not(:disabled) {
  background: #254d41;
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.secondary-button:hover:not(:disabled) {
  border-color: var(--moss);
  color: var(--moss);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.button-icon {
  width: 16px;
  height: 16px;
}

.synthesis-stack {
  display: grid;
  gap: 30px;
}

.insight-hero {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 13px;
}

.insight-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.43);
}

.insight-card.accent {
  border-color: rgba(49, 94, 79, 0.3);
  background: rgba(223, 233, 223, 0.54);
}

.card-kicker {
  margin-bottom: 11px;
  color: var(--clay);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.central-names {
  margin-bottom: 9px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.card-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.58;
}

.pattern-list {
  display: grid;
  gap: 9px;
}

.pattern-item {
  display: grid;
  grid-template-columns: 21px 1fr;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.pattern-marker {
  color: var(--clay);
  font-family: var(--display);
  font-size: 19px;
  line-height: 1;
}

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

.cluster-card h3 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}

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

.candidate-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 290px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  text-align: left;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.candidate-card:hover {
  border-color: var(--sage);
  transform: translateY(-2px);
}

.candidate-card.is-selected {
  border-color: var(--moss);
  background: rgba(223, 233, 223, 0.62);
  box-shadow: inset 0 0 0 1px rgba(49, 94, 79, 0.16);
}

.candidate-number {
  margin-bottom: 24px;
  color: var(--clay);
  font-family: var(--display);
  font-size: 19px;
  font-style: italic;
}

.candidate-card h3 {
  margin-bottom: 9px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.12;
}

.suggestion-kicker {
  margin-bottom: 6px;
  color: var(--clay);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.candidate-card .suggestion-practice {
  margin-bottom: 10px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.candidate-card p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.candidate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.meta-pill {
  overflow: hidden;
  max-width: 100%;
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 670;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-check {
  position: absolute;
  top: 17px;
  right: 17px;
  display: none;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--moss);
  color: white;
}

.candidate-card.is-selected .selected-check {
  display: grid;
}

.loading-panel {
  display: grid;
  min-height: 300px;
  place-items: center;
  text-align: center;
}

.loading-ring {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-top-color: var(--moss);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-panel h2 {
  margin-bottom: 7px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
}

.loading-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.next-step-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 13px;
}

.proposal-card,
.message-card,
.actions-card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
}

.proposal-card {
  background: rgba(223, 233, 223, 0.5);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0 16px;
}

.proposal-title {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.12;
}

.cadence-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(49, 94, 79, 0.17);
  color: var(--moss);
  font-size: 11px;
  font-weight: 700;
}

.message-card {
  position: relative;
}

.message-quote {
  margin: 12px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.55;
}

.copy-small {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 10px;
  font-weight: 680;
}

.actions-card {
  grid-column: 1 / -1;
}

.action-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  counter-reset: actions;
}

.action-item {
  position: relative;
  padding: 40px 14px 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  counter-increment: actions;
  font-size: 12px;
  line-height: 1.55;
}

.action-item::before {
  position: absolute;
  top: 12px;
  left: 14px;
  color: var(--clay);
  content: "0" counter(actions);
  font-family: var(--display);
  font-size: 16px;
  font-style: italic;
}

.export-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
}

.export-copy h3 {
  margin: 0 0 4px;
  font-size: 13px;
}

.export-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.export-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.toast-region {
  position: fixed;
  z-index: 20;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  max-width: 330px;
  padding: 12px 15px;
  border: 1px solid rgba(49, 94, 79, 0.28);
  border-radius: 10px;
  background: var(--ink);
  box-shadow: 0 14px 40px rgba(32, 51, 45, 0.2);
  color: white;
  font-size: 12px;
  line-height: 1.45;
  animation: toast-in 180ms ease-out;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (max-width: 900px) {
  .candidate-grid {
    grid-template-columns: 1fr;
  }

  .intro-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .candidate-card {
    min-height: 250px;
  }

  .insight-hero,
  .next-step-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 24px, 1180px);
    padding-top: 17px;
  }

  .topbar {
    margin-bottom: 23px;
  }

  .brand-name {
    font-size: 18px;
  }

  .privacy-note {
    display: none;
  }

  .progress-wrap {
    gap: 5px;
  }

  .progress-label {
    display: none;
  }

  .progress-kicker {
    font-size: 9px;
  }

  .stage-frame {
    min-height: calc(100vh - 150px);
    border-radius: 19px;
  }

  .stage-main {
    padding: 30px 21px 24px;
  }

  .intro-frame .stage-main {
    padding: 30px 21px 24px;
  }

  .stage-title {
    font-size: clamp(36px, 12vw, 49px);
  }

  .content-zone {
    padding-top: 25px;
  }

  .voice-zone {
    min-height: 300px;
  }

  .voice-zone.compact {
    min-height: 170px;
  }

  .intro-zone {
    padding-top: 32px;
  }

  .intro-section-label,
  .intro-close {
    align-items: stretch;
    flex-direction: column;
  }

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

  .intro-step {
    min-height: 0;
  }

  .intro-step-number {
    margin-bottom: 16px;
  }

  .intro-close .primary-button {
    width: 100%;
  }

  .activity-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .activity-row .energy-chips {
    grid-column: 2;
    justify-content: flex-start;
  }

  .energy-card {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .energy-chips {
    justify-content: flex-start;
  }

  .cluster-grid,
  .action-list {
    grid-template-columns: 1fr;
  }

  .stage-actions,
  .export-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .stage-actions .primary-button,
  .stage-actions .secondary-button {
    width: 100%;
  }

  .stage-actions .primary-button {
    order: -1;
  }

  .export-actions {
    width: 100%;
  }

  .export-actions button {
    flex: 1;
  }

  .actions-card {
    grid-column: auto;
  }
}

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