:root {
  color-scheme: light;
  --bg: #f4f8f5;
  --paper: #ffffff;
  --paper-soft: #edf5ef;
  --ink: #050807;
  --muted: #5e6964;
  --line: #d5dfd8;
  --line-strong: #17211b;
  --green: #0b805c;
  --green-bright: #15966d;
  --green-deep: #05251a;
  --red: #d33a49;
  --rail: #030705;
  --shadow: 0 22px 60px rgba(3, 12, 8, 0.12);
  --shadow-soft: 0 12px 30px rgba(3, 12, 8, 0.08);
  --radius: 8px;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(12, 143, 101, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(5, 8, 7, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #fbfdfb 0%, var(--bg) 46%, #eef5f0 100%);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(127, 184, 160, 0.34);
  outline-offset: 2px;
}

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

.app-shell {
  min-height: 100vh;
}

.stage-rail {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(127, 184, 160, 0.08), transparent 38%),
    var(--rail);
  color: #f8fffb;
}

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

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  object-fit: cover;
}

.brand-mark strong {
  display: block;
  font-size: 20px;
  line-height: 1.05;
}

.brand-mark span {
  display: block;
  margin-top: 4px;
  color: #a8b8af;
  font-size: 12px;
}

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

.stage-item {
  display: grid;
  gap: 3px;
  min-height: 46px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: #9fb0a7;
}

.stage-item span {
  color: #627169;
  font-size: 10px;
  font-weight: 900;
}

.stage-item b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-item.active {
  border-color: rgba(127, 184, 160, 0.72);
  background:
    linear-gradient(135deg, rgba(127, 184, 160, 0.16), rgba(127, 184, 160, 0.04)),
    rgba(255, 255, 255, 0.02);
  color: #ffffff;
}

.rail-metric {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 12px;
}

.rail-metric span {
  color: #a8b8af;
  font-size: 12px;
  font-weight: 900;
}

.rail-metric strong {
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
}

.rail-progress {
  height: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #101713;
}

.rail-progress i {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--green-bright), var(--green), var(--red));
  transition: width 220ms ease;
}

.compact {
  width: 100%;
  min-height: 38px;
  margin-top: 12px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fffb;
}

.workbench {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.topbar {
  display: grid;
  gap: 12px;
}

body:not([data-stage="intro"]) .topbar {
  display: flex;
  justify-content: flex-end;
}

body:not([data-stage="intro"]) .topbar > div:first-child {
  display: none;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 14px;
  font-size: 19px;
  line-height: 1.22;
}

.icon-button,
.ghost-button,
.primary-button {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.primary-button,
.ghost-button {
  min-height: 48px;
  padding: 0 18px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.primary-button {
  border-color: #020403;
  background:
    linear-gradient(180deg, #101b15 0%, #020403 100%);
  color: #ffffff;
  box-shadow:
    0 4px 0 rgba(127, 184, 160, 0.22),
    0 16px 26px rgba(3, 12, 8, 0.18);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.primary-button:hover,
.ghost-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--green);
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
  box-shadow: none;
}

.panel {
  position: relative;
  border: 1px solid rgba(23, 33, 27, 0.82);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 251, 0.94));
  box-shadow: var(--shadow);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--green-bright), rgba(127, 184, 160, 0), var(--red));
  opacity: 0.72;
  pointer-events: none;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.intro-panel {
  display: none;
  overflow: hidden;
}

.intro-panel.active {
  display: grid;
}

.intro-copy,
.intro-console,
.question-zone,
.market-panel,
.decision-panel,
.result-hero,
.result-grid .panel {
  padding: clamp(20px, 5vw, 34px);
}

.intro-copy {
  border-bottom: 1px solid rgba(23, 33, 27, 0.82);
}

.intro-copy p:not(.eyebrow) {
  max-width: 680px;
  color: #34413a;
  font-size: 16px;
  line-height: 1.72;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}

.intro-grid div {
  min-height: 78px;
  padding: 15px;
  border: 1px solid rgba(12, 143, 101, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(237, 245, 239, 0.92));
}

.intro-grid span {
  display: block;
  color: var(--red);
  font-size: 21px;
  font-weight: 900;
}

.intro-grid b {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.intro-console {
  display: grid;
  align-content: center;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(5, 37, 26, 0.07), rgba(255, 255, 255, 0.28)),
    #e8f2ed;
}

canvas {
  display: block;
  max-width: 100%;
}

#heroChart,
#simChart,
#resultRadar {
  width: 100%;
  border: 1px solid rgba(23, 33, 27, 0.9);
  background: #0b100d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.start-form {
  display: grid;
  gap: 11px;
  margin-top: 22px;
}

label span,
.slider-field span,
.select-field span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(23, 33, 27, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 0 13px;
}

input::placeholder {
  color: #8b948f;
}

.test-layout.active {
  display: grid;
}

.test-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

#questionView .question-zone {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.question-head {
  display: grid;
  gap: 12px;
}

.count-pill {
  width: max-content;
  padding: 8px 11px;
  border: 1px solid rgba(23, 33, 27, 0.86);
  background:
    linear-gradient(180deg, var(--green-bright), var(--green));
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(12, 143, 101, 0.18);
}

.question-detail {
  max-width: 860px;
  color: #34413a;
  font-size: 16px;
  line-height: 1.72;
}

.option-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.option-card {
  position: relative;
  width: 100%;
  min-height: 78px;
  padding: 17px 16px 17px 58px;
  border: 1px solid rgba(23, 33, 27, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff, #fbfdfb);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 22px rgba(3, 12, 8, 0.05);
}

.option-card::before {
  content: attr(data-key);
  position: absolute;
  left: 16px;
  top: 17px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(23, 33, 27, 0.72);
  background: var(--paper-soft);
  color: var(--green);
  font-weight: 900;
}

.option-card b {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.option-card span {
  display: block;
  color: #53605a;
  line-height: 1.55;
}

.option-card.selected,
.trade-button.selected {
  border-color: rgba(127, 184, 160, 0.72);
  background:
    linear-gradient(135deg, #07110d 0%, #0d281e 100%);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(127, 184, 160, 0.18),
    0 16px 34px rgba(3, 12, 8, 0.15);
}

.option-card.selected span,
.trade-button.selected span {
  color: #dce8e1;
}

.option-card.selected::before {
  background: var(--green-bright);
  color: #06100c;
}

.navigation-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

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

.market-board {
  display: grid;
  gap: 10px;
  align-items: stretch;
  margin-top: 10px;
}

.market-stats {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body[data-stage="sim"] .market-panel .question-detail {
  display: none;
}

body[data-stage="sim"] #simChart {
  height: 132px;
}

.decision-reference {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.decision-reference > span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.decision-reference p {
  margin-bottom: 0;
  color: #34413a;
  font-size: 14px;
  line-height: 1.55;
}

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

.stat-cell {
  display: grid;
  gap: 6px;
  min-height: 72px;
  padding: 13px;
  border: 1px solid rgba(23, 33, 27, 0.7);
  background: var(--paper-soft);
}

.stat-cell span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.stat-cell b {
  font-size: 20px;
}

.decision-stats .stat-cell {
  min-height: 56px;
  padding: 10px;
}

.decision-stats .stat-cell b {
  font-size: 17px;
}

.trade-actions {
  display: grid;
  gap: 9px;
}

.trade-button {
  min-height: 56px;
  border: 1px solid rgba(23, 33, 27, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff, #fbfdfb);
  text-align: left;
  padding: 12px 14px;
}

.trade-button b {
  display: block;
}

.trade-button span {
  color: #53605a;
  font-size: 13px;
  line-height: 1.45;
}

.slider-field,
.select-field {
  display: block;
  margin-top: 15px;
}

.slider-field {
  position: relative;
}

.slider-field b {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--red);
}

input[type="range"] {
  padding: 0;
  accent-color: var(--red);
}

.result-view.active {
  display: grid;
  gap: 16px;
}

.result-hero {
  position: relative;
  display: grid;
  gap: 18px;
  overflow: hidden;
  border-color: rgba(8, 18, 13, 0.94);
  background:
    linear-gradient(135deg, rgba(186, 224, 205, 0.035), transparent 42%),
    linear-gradient(180deg, #07110d 0%, #020504 100%);
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.result-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.96;
  pointer-events: none;
}

.result-copy,
.portrait-card,
#resultRadar {
  position: relative;
  z-index: 1;
}

.result-hero .eyebrow {
  color: #9bbdac;
}

.result-hero h2 {
  margin-bottom: 0;
  color: #ffffff;
  font-size: 58px;
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  white-space: nowrap;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.result-hero h3 {
  color: #ff6370;
  font-size: 25px;
}

.portrait-card {
  display: grid;
  gap: 9px;
  width: min(100%, 270px);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.persona-art {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(186, 224, 205, 0.2);
  border-radius: 6px;
  background-image: url("./assets/bti-persona-sprite.png?v=20260517ad");
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 400% 400%;
  background-color: #06100d;
}

.portrait-card figcaption {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
}

.type-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(150, 190, 172, 0.34);
  background: rgba(150, 190, 172, 0.08);
  color: #d7efe4;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.result-hero p {
  max-width: 840px;
  color: #dbe7e1;
  font-size: 16px;
  line-height: 1.72;
}

#resultRadar {
  width: min(100%, 312px);
  margin: 0 auto;
  border-color: rgba(186, 224, 205, 0.18);
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.result-grid .panel h3 {
  position: relative;
  padding-left: 12px;
}

.result-grid .panel h3::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 4px;
  background: var(--green);
}

.axis-stack {
  display: grid;
  gap: 14px;
}

.axis-row {
  display: grid;
  gap: 8px;
}

.axis-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #53605a;
  font-size: 12px;
  font-weight: 900;
}

.axis-labels span:last-child {
  text-align: right;
}

.axis-track {
  position: relative;
  height: 12px;
  border: 1px solid rgba(23, 33, 27, 0.78);
  background: linear-gradient(90deg, #e6f0ea 0 49%, #07110d 49% 51%, #e6f0ea 51% 100%);
}

.axis-thumb {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 12px;
  height: 20px;
  border: 1px solid var(--line-strong);
  background: var(--green-bright);
  box-shadow: none;
  transform: translateX(-50%);
  transition: left 200ms ease;
}

.text-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: #34413a;
  line-height: 1.68;
}

.text-list li {
  padding-left: 12px;
  border-left: 3px solid var(--green);
}

.text-list.danger li {
  border-left-color: var(--red);
}

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

.return-card {
  display: grid;
  gap: 9px;
  min-height: 158px;
  padding: 14px;
  border: 1px solid rgba(150, 190, 172, 0.28);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(127, 184, 160, 0.08), transparent 48%),
    rgba(4, 13, 10, 0.66);
}

.return-card.long {
  background:
    linear-gradient(135deg, rgba(211, 58, 73, 0.08), transparent 48%),
    rgba(4, 13, 10, 0.66);
}

.return-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.return-card-head span {
  color: #a9cbbb;
  font-size: 12px;
  font-weight: 900;
}

.return-card-head b {
  color: #ffffff;
  font-size: 32px;
  line-height: 0.95;
}

.return-card strong {
  color: #ffffff;
  font-size: 15px;
}

.return-meter {
  height: 6px;
  overflow: hidden;
  border: 1px solid rgba(150, 190, 172, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.return-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #83b79f, #d33a49);
}

.return-card p {
  margin: 0;
  color: #b8c9c1;
  font-size: 13px;
  line-height: 1.52;
}

.method-dialog {
  width: min(720px, calc(100vw - 32px));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.method-dialog::backdrop {
  background: rgba(7, 11, 9, 0.46);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.method-dialog p,
.method-dialog li {
  color: #34413a;
  line-height: 1.7;
}

.method-dialog a {
  color: var(--green);
  font-weight: 900;
}

@media (max-width: 480px) {
  .stage-rail {
    padding: 11px;
  }

  .workbench {
    padding: 12px;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  #methodButton {
    display: none;
  }

  .navigation-row {
    position: static;
    margin: 22px 0 0;
    padding: 0;
    background: transparent;
  }

  body[data-stage="sim"] .navigation-row {
    margin-top: 14px;
  }

  .navigation-row,
  .result-actions,
  .market-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-stage="sim"] .market-panel .question-detail {
    display: block;
  }

  body[data-stage="sim"] #simChart {
    height: auto;
  }

  .decision-reference {
    display: none;
  }

  .stage-item {
    padding: 7px 6px;
  }

  #questionTitle,
  #simTitle {
    font-size: 22px;
    line-height: 1.18;
  }

  .question-detail {
    font-size: 15px;
    line-height: 1.62;
  }

  .count-pill {
    padding: 7px 10px;
  }

  .option-list {
    gap: 10px;
    margin-top: 18px;
  }

  .option-card,
  .trade-button {
    min-height: 72px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .result-hero {
    gap: 16px;
  }

  .result-hero h2 {
    font-size: clamp(54px, 17vw, 68px);
    line-height: 0.94;
  }

  .result-hero h3 {
    font-size: 27px;
    line-height: 1.08;
  }

  .portrait-card {
    margin-top: 4px;
  }
}

@media (min-width: 640px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .result-hero h2 {
    font-size: 88px;
  }

  .result-hero h3 {
    font-size: 34px;
  }

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

  .start-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .start-form .primary-button {
    grid-column: 1 / -1;
  }

  .question-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .portrait-card {
    order: 0;
  }

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

@media (min-width: 960px) {
  .app-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .stage-rail {
    height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0;
    padding: 24px 18px;
  }

  .stage-list {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 30px;
  }

  .stage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px;
  }

  .stage-item span {
    font-size: 12px;
  }

  .stage-item b {
    font-size: 14px;
  }

  .rail-metric {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: auto;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
  }

  .rail-metric strong {
    font-size: 32px;
  }

  .workbench {
    gap: 22px;
    padding: 28px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 40px;
  }

  .intro-panel.active {
    min-height: 620px;
    grid-template-columns: minmax(320px, 0.92fr) minmax(380px, 1.08fr);
  }

  .intro-copy {
    border-right: 1px solid rgba(23, 33, 27, 0.82);
    border-bottom: 0;
  }

  #simulationView.test-layout.active {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .decision-panel {
    position: sticky;
    top: 28px;
  }

  .market-board {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .market-stats {
    grid-template-columns: 1fr;
  }

  .result-hero {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
  }

  .portrait-card {
    grid-column: 1;
    width: min(100%, 270px);
    margin: 0;
  }

  #resultRadar {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .result-hero h2 {
    font-size: 112px;
  }

  .result-hero h3 {
    font-size: 42px;
  }

  .result-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .return-panel {
    grid-column: span 2;
  }
}

@media (min-width: 1180px) {
  .result-hero {
    grid-template-columns: minmax(360px, 1fr) 260px 320px;
  }

  .portrait-card,
  #resultRadar {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Dark data-terminal skin */
:root {
  color-scheme: dark;
  --bg: #020504;
  --paper: #07100d;
  --paper-soft: #0a1712;
  --ink: #f3fff9;
  --muted: #8ea098;
  --green: #0f7f5c;
  --green-bright: #7fb8a0;
  --green-deep: #03140e;
  --line: rgba(143, 183, 164, 0.18);
  --line-strong: rgba(186, 224, 205, 0.34);
  --rail: rgba(3, 7, 5, 0.92);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.28);
}

body {
  background:
    linear-gradient(90deg, rgba(186, 224, 205, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(186, 224, 205, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, #020705 0%, var(--bg) 52%, #010302 100%);
  background-size: 44px 44px, 44px 44px, auto;
}

.particle-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.08;
  pointer-events: none;
}

.app-shell {
  position: relative;
  z-index: 1;
}

.stage-rail {
  padding: 8px 10px;
  background:
    linear-gradient(180deg, rgba(186, 224, 205, 0.026), transparent 44%),
    rgba(2, 6, 4, 0.92);
  backdrop-filter: blur(16px);
}

.stage-item.active {
  border-color: rgba(127, 184, 160, 0.48);
  background:
    linear-gradient(135deg, rgba(127, 184, 160, 0.09), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.018);
}

.rail-progress i {
  background: linear-gradient(90deg, #7fb8a0, #0f7f5c, var(--red));
}

.brand-mark {
  gap: 9px;
}

.brand-logo {
  width: 36px;
  height: 36px;
}

.brand-mark strong {
  font-size: 18px;
}

.brand-mark span {
  margin-top: 2px;
  font-size: 11px;
}

.stage-list {
  gap: 6px;
  margin-top: 8px;
}

.stage-item {
  min-height: 34px;
  padding: 5px 6px;
}

.stage-item span {
  font-size: 9px;
}

.stage-item b {
  font-size: 12px;
}

.rail-metric {
  gap: 7px;
  margin-top: 8px;
}

.rail-metric span {
  font-size: 11px;
}

.rail-metric strong {
  font-size: 16px;
}

.rail-progress {
  height: 5px;
}

.workbench {
  padding: 14px;
}

.method-footer {
  display: flex;
  justify-content: center;
  padding: 8px 0 28px;
}

.method-footer #methodButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 34px;
  margin-top: 0;
  padding: 0 14px;
  border-color: rgba(186, 224, 205, 0.22);
  background: rgba(7, 16, 13, 0.48);
  color: #8ea098;
  font-size: 12px;
  box-shadow: none;
}

.icon-button,
.ghost-button {
  background: rgba(7, 16, 13, 0.72);
  color: var(--ink);
}

.panel {
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(11, 26, 20, 0.92), rgba(4, 10, 8, 0.9));
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.panel::before {
  background: linear-gradient(90deg, rgba(127, 184, 160, 0.74), rgba(127, 184, 160, 0), rgba(211, 58, 73, 0.76));
  opacity: 0.54;
}

.primary-button {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 16px 28px rgba(0, 0, 0, 0.3);
}

.intro-copy,
.intro-panel.active,
.intro-console {
  border-color: var(--line);
}

.intro-copy p:not(.eyebrow),
.question-detail,
.decision-reference p,
.result-hero p,
.text-list,
.method-dialog p,
.method-dialog li {
  color: #b8c9c1;
}

.intro-grid div,
.stat-cell {
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(127, 184, 160, 0.055), rgba(7, 16, 13, 0.84));
}

.intro-console {
  background:
    linear-gradient(135deg, rgba(8, 24, 18, 0.62), rgba(7, 16, 13, 0.9));
}

input,
select {
  border-color: var(--line-strong);
  background: rgba(2, 7, 5, 0.72);
  color: var(--ink);
}

.option-card,
.trade-button {
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(9, 22, 17, 0.94), rgba(5, 12, 9, 0.94));
  color: var(--ink);
}

.option-card span,
.trade-button span,
.axis-labels {
  color: #9fb0a7;
}

.option-card::before {
  border-color: var(--line-strong);
}

.axis-track {
  border-color: var(--line-strong);
  background: linear-gradient(90deg, rgba(143, 183, 164, 0.1) 0 49%, rgba(217, 255, 240, 0.46) 49% 51%, rgba(211, 58, 73, 0.1) 51% 100%);
}

.method-dialog {
  background: #07100d;
  color: var(--ink);
}

@media (min-width: 960px) {
  .stage-rail {
    padding: 20px 16px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .stage-list {
    margin-top: 20px;
  }

  .stage-item {
    min-height: 42px;
  }

  .rail-metric {
    padding: 12px;
  }

  .rail-metric strong {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .navigation-row {
    background: transparent;
  }

  body[data-stage="sim"] .market-stats {
    display: none;
  }
}

/* Blend the animated market tape into the hero background. */
.intro-panel {
  position: relative;
  min-height: 620px;
  isolation: isolate;
}

.intro-panel.active {
  display: block;
}

.intro-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 5, 4, 0.88) 0%, rgba(2, 5, 4, 0.58) 42%, rgba(2, 5, 4, 0.04) 100%),
    linear-gradient(180deg, rgba(2, 5, 4, 0.02), rgba(2, 5, 4, 0.42));
  pointer-events: none;
}

.intro-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  min-height: 620px;
  border: 0;
  background: linear-gradient(90deg, rgba(2, 5, 4, 0.7), rgba(2, 5, 4, 0.06));
}

.intro-console {
  position: absolute;
  inset: -16% -18% -6% -4%;
  z-index: 0;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

#heroChart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  filter: saturate(1.08) brightness(1.12);
  opacity: 1;
  transform: scale(1.18) translate(6%, -8%);
  transform-origin: center top;
}

@media (max-width: 760px) {
  .intro-panel,
  .intro-copy {
    min-height: 680px;
  }

  .intro-panel::after {
    background:
      linear-gradient(180deg, rgba(2, 5, 4, 0.7) 0%, rgba(2, 5, 4, 0.56) 52%, rgba(2, 5, 4, 0.18) 100%),
      linear-gradient(90deg, rgba(2, 5, 4, 0.54), rgba(2, 5, 4, 0.02));
  }

  .intro-copy {
    width: 100%;
    background: linear-gradient(180deg, rgba(2, 5, 4, 0.76), rgba(2, 5, 4, 0.12));
  }

  #heroChart {
    opacity: 0.96;
    transform: scale(1.42) translate(16%, -10%);
  }
}

/* Mobile art-director pass: denser, darker, and easier to finish one-handed. */
.particle-field {
  opacity: 0.2;
  mix-blend-mode: screen;
}

body[data-stage="intro"] .topbar {
  display: flex;
  min-height: 0;
  margin-bottom: -6px;
  justify-content: flex-end;
}

body[data-stage="intro"] .topbar > div:first-child {
  display: none;
}

.topbar .icon-button {
  width: 40px;
  height: 40px;
  border-color: rgba(186, 224, 205, 0.2);
  background: rgba(2, 7, 5, 0.58);
  box-shadow: none;
}

.intro-panel {
  min-height: min(700px, calc(100svh - 116px));
}

.intro-copy {
  display: flex;
  min-height: min(700px, calc(100svh - 116px));
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(82px, 16vw, 150px);
}

.intro-copy h2 {
  max-width: 680px;
  margin-bottom: 10px;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.46);
}

.intro-copy p:not(.eyebrow) {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.62;
}

.start-form {
  max-width: 620px;
}

.intro-grid {
  max-width: 720px;
}

#heroChart {
  filter: saturate(1.12) brightness(1.16);
  transform: scale(1.28) translate(8%, -12%);
}

@media (max-width: 760px) {
  .stage-rail {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 7px 10px;
    padding: 7px 10px 8px;
  }

  .brand-mark {
    min-width: 0;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .brand-mark strong {
    font-size: 16px;
  }

  .brand-mark span {
    display: none;
  }

  .stage-list {
    display: grid;
    grid-column: 2 / 3;
    grid-row: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-self: center;
    gap: 5px;
    margin: 0;
  }

  .stage-item {
    min-height: 5px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: rgba(186, 224, 205, 0.13);
  }

  .stage-item.active {
    background: linear-gradient(90deg, #7fb8a0, rgba(211, 58, 73, 0.72));
    box-shadow: none;
  }

  .stage-item span,
  .stage-item b {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  .rail-metric {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    margin-top: 0;
  }

  .rail-metric span {
    display: none;
  }

  .rail-metric strong {
    min-width: 34px;
    color: #9fd8bf;
    font-size: 12px;
  }

  .rail-progress {
    height: 3px;
    align-self: center;
    border: 0;
    background: rgba(186, 224, 205, 0.12);
  }

  .workbench {
    gap: 10px;
    padding: 10px;
  }

  body .topbar,
  body[data-stage="intro"] .topbar,
  body:not([data-stage="intro"]) .topbar {
    display: none;
  }

  .intro-panel,
  .intro-copy {
    min-height: min(610px, calc(100svh - 92px));
  }

  .intro-copy {
    padding: 128px 16px 16px;
  }

  .intro-copy h2 {
    margin-bottom: 8px;
    font-size: 30px;
    line-height: 1.04;
  }

  .intro-copy p:not(.eyebrow) {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .start-form {
    gap: 9px;
    margin-top: 14px;
  }

  input,
  select,
  .primary-button,
  .ghost-button {
    min-height: 42px;
  }

  .intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 14px;
  }

  .intro-grid div {
    min-height: 50px;
    padding: 9px 10px;
  }

  .intro-grid span {
    font-size: 15px;
  }

  .intro-grid b {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.25;
  }

  .intro-console {
    inset: -24% -50% 3% -22%;
  }

  #heroChart {
    opacity: 1;
    filter: saturate(1.14) brightness(1.18);
    transform: scale(1.72) translate(14%, -30%);
  }

  .question-zone {
    padding: 16px;
  }

  .question-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
  }

  .question-head h2 {
    margin-bottom: 8px;
    font-size: 21px;
    line-height: 1.18;
  }

  .count-pill {
    padding: 6px 8px;
    font-size: 12px;
  }

  .question-detail {
    font-size: 13px;
    line-height: 1.55;
  }

  .option-list {
    gap: 9px;
    margin-top: 14px;
  }

  .option-card {
    min-height: 64px;
    padding: 12px 12px 12px 46px;
  }

  .option-card::before {
    top: 13px;
    left: 12px;
    width: 25px;
    height: 25px;
  }

  .option-card b {
    font-size: 14px;
  }

  .option-card span {
    font-size: 12px;
    line-height: 1.42;
  }

  #simulationView.test-layout.active {
    display: grid;
    gap: 8px;
  }

  #simulationView .market-panel {
    padding: 12px;
    overflow: hidden;
  }

  #simulationView .market-panel .question-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #simulationView .market-panel h2 {
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.18;
  }

  body[data-stage="sim"] .market-panel .question-detail {
    display: none;
  }

  .market-board {
    margin-top: 7px;
  }

  body[data-stage="sim"] #simChart {
    height: 78px;
  }

  body[data-stage="sim"] .market-stats {
    display: none;
  }

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

  .decision-reference {
    display: grid;
    grid-column: 1 / -1;
    gap: 8px;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(186, 224, 205, 0.16);
    background:
      linear-gradient(135deg, rgba(127, 184, 160, 0.06), transparent),
      rgba(2, 7, 5, 0.62);
  }

  .decision-reference > span {
    font-size: 11px;
  }

  .decision-reference p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .decision-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .decision-stats .stat-cell {
    min-height: 42px;
    padding: 6px;
  }

  .decision-stats .stat-cell span {
    font-size: 9px;
  }

  .decision-stats .stat-cell b {
    font-size: 12px;
    line-height: 1.1;
  }

  .decision-panel > h3 {
    display: none;
  }

  .trade-actions,
  .decision-panel .navigation-row {
    grid-column: 1 / -1;
  }

  .trade-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .trade-button {
    min-height: 66px;
    padding: 9px;
  }

  .trade-button b {
    font-size: 13px;
  }

  .trade-button span {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .slider-field,
  .select-field {
    min-width: 0;
    margin-top: 0;
  }

  .slider-field span,
  .select-field span {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .slider-field b {
    font-size: 12px;
  }

  .decision-panel select {
    padding: 0 8px;
    font-size: 12px;
  }

  body[data-stage="sim"] .navigation-row,
  .decision-panel .navigation-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
  }

  .result-view.active {
    gap: 10px;
  }

  .result-hero {
    grid-template-columns: minmax(0, 1fr) 116px;
    align-items: center;
    gap: 12px;
    padding: 12px;
  }

  .result-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .result-hero .eyebrow {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .result-hero h2 {
    margin-bottom: 2px;
    font-size: 42px;
  }

  .result-hero h3 {
    margin-bottom: 8px;
    font-size: 19px;
  }

  .portrait-card {
    order: 0;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .portrait-card figcaption {
    display: none;
  }

  .type-tags {
    gap: 5px;
    margin: 8px 0;
  }

  .type-tags span {
    padding: 5px 6px;
    font-size: 10px;
  }

  .result-hero p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  #resultRadar {
    display: block;
    grid-column: 1 / -1;
    width: min(100%, 260px);
    margin: 0 auto;
  }

  .result-grid {
    gap: 10px;
  }

  .result-grid .panel {
    padding: 15px;
  }

  .result-grid .panel h3 {
    margin-bottom: 10px;
    font-size: 17px;
  }

  .text-list {
    gap: 8px;
    font-size: 13px;
    line-height: 1.52;
  }

  .axis-stack {
    gap: 10px;
  }

  .axis-track {
    height: 9px;
  }

  .axis-thumb {
    top: -5px;
    height: 17px;
  }

  .result-actions {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .method-footer {
    padding: 4px 0 18px;
  }

  .method-footer #methodButton {
    display: inline-flex;
    min-height: 30px;
    padding: 0 12px;
    font-size: 11px;
  }
}

/* Final mobile polish: slimmer chrome, quieter cards, stronger market atmosphere. */
@media (max-width: 760px) {
  body {
    background-size: 52px 52px, 52px 52px, auto;
  }

  .particle-field {
    opacity: 0.16;
  }

  .stage-rail {
    grid-template-columns: auto minmax(0, 1fr) 34px;
    align-items: center;
    min-height: 50px;
    gap: 6px 9px;
    padding: 6px 10px 12px;
  }

  .brand-logo {
    width: 28px;
    height: 28px;
    border-color: rgba(186, 224, 205, 0.16);
  }

  .brand-mark strong {
    font-size: 15px;
  }

  .stage-list {
    gap: 6px;
    transform: translateY(-1px);
  }

  .stage-item {
    min-height: 4px;
    background: rgba(186, 224, 205, 0.1);
  }

  .stage-item.active {
    background: linear-gradient(90deg, #91d8b6, rgba(211, 58, 73, 0.78));
  }

  .rail-metric {
    display: block;
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }

  .rail-metric strong {
    display: block;
    min-width: 0;
    color: #a9dcc6;
    font-size: 11px;
    text-align: right;
  }

  .rail-progress {
    position: absolute;
    right: 10px;
    bottom: 5px;
    left: 10px;
    width: auto;
    height: 2px;
  }

  .workbench {
    gap: 8px;
    padding: 8px 10px 10px;
  }

  .panel {
    border-color: rgba(154, 207, 181, 0.24);
    background:
      radial-gradient(circle at 18% 0%, rgba(145, 216, 182, 0.08), transparent 38%),
      linear-gradient(180deg, rgba(6, 20, 15, 0.92), rgba(2, 8, 6, 0.94));
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
  }

  .panel::before {
    height: 2px;
    opacity: 0.62;
  }

  .intro-panel,
  .intro-copy {
    min-height: min(578px, calc(100svh - 70px));
  }

  .intro-copy {
    padding: 88px 14px 14px;
  }

  .intro-copy .eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .intro-copy h2 {
    max-width: 12em;
    font-size: 28px;
    line-height: 1.06;
  }

  .intro-copy p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.45;
  }

  .start-form {
    gap: 8px;
    margin-top: 12px;
  }

  label span,
  .slider-field span,
  .select-field span {
    margin-bottom: 5px;
    font-size: 10px;
  }

  input,
  select,
  .primary-button,
  .ghost-button {
    min-height: 40px;
    font-size: 14px;
  }

  .intro-grid {
    gap: 6px;
    margin-top: 12px;
  }

  .intro-grid div {
    min-height: 46px;
    padding: 8px 9px;
    background: rgba(5, 18, 13, 0.72);
  }

  .intro-console {
    inset: -30% -46% 10% -12%;
  }

  #heroChart {
    filter: saturate(1.35) brightness(1.24) drop-shadow(0 0 22px rgba(145, 216, 182, 0.22));
    transform: scale(1.92) translate(12%, -34%);
  }

  .question-zone,
  #simulationView .market-panel,
  .decision-panel,
  .result-grid .panel {
    padding: 14px;
  }

  .question-head h2 {
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.22;
  }

  #questionTitle,
  #simTitle {
    font-size: 18px;
    line-height: 1.22;
  }

  .count-pill {
    padding: 5px 7px;
    border-color: rgba(145, 216, 182, 0.38);
    background: rgba(14, 118, 83, 0.72);
    box-shadow: none;
  }

  .question-detail {
    font-size: 12px;
    line-height: 1.5;
  }

  .option-list {
    gap: 8px;
    margin-top: 12px;
  }

  .option-card {
    min-height: 58px;
    padding: 10px 10px 10px 42px;
    border-color: rgba(154, 207, 181, 0.26);
    background: rgba(3, 13, 9, 0.7);
    box-shadow: none;
  }

  .option-card::before {
    top: 11px;
    left: 10px;
    width: 24px;
    height: 24px;
    border-color: rgba(154, 207, 181, 0.34);
    background: rgba(145, 216, 182, 0.06);
    font-size: 13px;
  }

  .option-card b {
    margin-bottom: 3px;
    font-size: 13px;
  }

  .option-card span {
    font-size: 11px;
  }

  .navigation-row {
    gap: 8px;
    margin-top: 14px;
  }

  #simulationView.test-layout.active {
    gap: 7px;
  }

  #simulationView .market-panel h2 {
    font-size: 16px;
  }

  #simulationView #simTitle {
    font-size: 16px;
  }

  body[data-stage="sim"] #simChart {
    height: 68px;
  }

  .decision-panel {
    gap: 8px;
  }

  .decision-reference {
    gap: 7px;
    padding: 8px;
  }

  .decision-reference p {
    font-size: 11px;
    line-height: 1.38;
  }

  .decision-stats .stat-cell {
    min-height: 38px;
    padding: 5px;
  }

  .trade-actions {
    gap: 7px;
  }

  .trade-button {
    min-height: 58px;
    padding: 8px;
    border-color: rgba(154, 207, 181, 0.28);
    background: rgba(3, 13, 9, 0.72);
  }

  .trade-button b {
    font-size: 12px;
  }

  .trade-button span {
    font-size: 10.5px;
  }

  .result-hero {
    grid-template-columns: minmax(0, 1fr) 146px;
    gap: 10px;
    padding: 14px;
  }

  .result-hero .eyebrow {
    font-size: 9px;
  }

  .result-hero h2 {
    font-size: 34px;
  }

  .result-hero h3 {
    margin-bottom: 7px;
    font-size: 16px;
  }

  .type-tags {
    gap: 4px;
    margin: 7px 0;
  }

  .type-tags span {
    padding: 4px 5px;
    font-size: 8.5px;
  }

  .result-hero p {
    font-size: 11px;
    line-height: 1.42;
  }

  #resultRadar {
    display: none;
  }

  .persona-art {
    border-color: rgba(255, 255, 255, 0.76);
  }

  .axis-labels {
    font-size: 11px;
  }

  .return-profile {
    gap: 7px;
  }

  .return-card {
    min-height: 126px;
    padding: 10px;
  }

  .return-card-head span {
    font-size: 10px;
  }

  .return-card-head b {
    font-size: 25px;
  }

  .return-card strong {
    font-size: 12px;
  }

  .return-meter {
    height: 5px;
  }

  .return-card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .text-list {
    font-size: 12px;
    line-height: 1.48;
  }

  .text-list li {
    padding-left: 10px;
    border-left-width: 2px;
  }

  .method-footer {
    padding-bottom: 16px;
  }

  .method-footer #methodButton {
    min-height: 28px;
    border-color: rgba(154, 207, 181, 0.16);
    background: rgba(4, 13, 10, 0.4);
    opacity: 0.58;
  }
}

@media (max-width: 380px) {
  .intro-copy h2 {
    max-width: 11em;
    font-size: 26px;
  }

  .question-head h2,
  #questionTitle,
  #simTitle {
    font-size: 17px;
  }

  .result-hero {
    grid-template-columns: minmax(0, 1fr) 124px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .stage-rail,
  .topbar-actions,
  .result-actions,
  .method-dialog {
    display: none;
  }

  .app-shell,
  .workbench {
    display: block;
  }

  .panel {
    box-shadow: none;
    break-inside: avoid;
  }
}
