:root {
  --ink: #171821;
  --muted: #626979;
  --paper: #f7f6f1;
  --panel: #ffffff;
  --line: rgba(23, 32, 42, 0.14);
  --line-strong: rgba(23, 32, 42, 0.24);
  --green: #35a861;
  --blue: #315fd1;
  --red: #ed5e68;
  --gold: #d89712;
  --violet: #7459bd;
  --cyan: #18a9b8;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui,
    sans-serif;
  background:
    linear-gradient(90deg, rgba(49, 95, 209, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(237, 94, 104, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.is-hidden {
  display: none !important;
}

.lock-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.lock-panel {
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

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

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

.lock-panel h1 {
  margin-bottom: 14px;
  font-size: 42px;
  line-height: 1.05;
}

.lock-copy,
.lock-note {
  color: #38465a;
  line-height: 1.75;
}

.unlock-form {
  display: grid;
  gap: 10px;
  margin: 24px 0 16px;
}

.unlock-form label {
  color: #2f3b4d;
  font-size: 14px;
  font-weight: 900;
}

.password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.password-row input {
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.password-row button,
.ghost-button,
.nav-button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.password-row button {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.password-row button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.unlock-error {
  min-height: 20px;
  margin: 0;
  color: #b42318;
  font-size: 14px;
  font-weight: 800;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max), calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 38px rgba(23, 32, 42, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

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

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.topnav a,
.nav-button {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #2f3b4d;
  font-size: 14px;
  text-decoration: none;
}

.topnav a:hover,
.nav-button:hover,
.ghost-button:hover {
  border-color: var(--line);
  background: #f7f9fc;
}

main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 112px);
  padding: 48px 0 38px;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 52px;
  line-height: 1.04;
}

h1 span {
  display: block;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 24px;
  color: #344154;
  font-size: 18px;
  line-height: 1.8;
}

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

.mode-card {
  display: grid;
  gap: 7px;
  min-height: 138px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.mode-card:hover,
.mode-card:focus-visible {
  border-color: rgba(47, 143, 111, 0.5);
  transform: translateY(-2px);
}

.mode-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mode-card strong {
  color: var(--green);
  font-size: 38px;
  line-height: 1;
}

.mode-card small {
  color: #425066;
  line-height: 1.5;
}

.mode-card.is-featured {
  border-color: rgba(47, 143, 111, 0.45);
  background: #f6fbf8;
}

.disclaimer {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.hero-board {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 20%, rgba(47, 143, 111, 0.16), transparent 34%),
    radial-gradient(circle at 76% 72%, rgba(47, 95, 168, 0.16), transparent 36%),
    #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-board b {
  position: relative;
  z-index: 2;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
  text-align: center;
}

.board-grid {
  position: absolute;
  inset: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
}

.board-grid span {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: #516071;
  font-size: 13px;
  font-weight: 900;
}

.panel,
.method-section,
.sources-section {
  margin: 0 0 42px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 58px rgba(17, 24, 39, 0.1);
}

.panel-head,
.result-hero,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-head h2,
.section-heading h2,
.result-hero h2 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.15;
}

.progress-shell {
  height: 9px;
  margin: 22px 0;
  border-radius: 999px;
  background: #e7ecef;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--blue), var(--green));
  transition: width 0.2s ease;
}

.question-card,
.result-card,
.method-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.question-card {
  padding: 22px;
}

.question-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.axis-pill {
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--axis-color, var(--green)) 13%, #fff);
  color: var(--axis-color, var(--green));
  font-size: 12px;
  font-weight: 900;
}

#issueLabel {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.question-card h3 {
  margin-bottom: 24px;
  font-size: 25px;
  line-height: 1.45;
}

.scale-helper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.scale-row {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
}

.scale-button {
  display: grid;
  min-width: 0;
  min-height: 58px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfc;
  color: #2f3b4d;
  cursor: pointer;
}

.scale-button:hover,
.scale-button.is-active {
  border-color: rgba(47, 143, 111, 0.6);
  background: #eef9f3;
  color: var(--green);
  font-weight: 900;
}

.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.quiz-actions span,
.confidence-text {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.result-hero {
  align-items: center;
  margin-bottom: 22px;
}

.result-summary {
  max-width: 760px;
  margin: 12px 0 0;
  color: #344154;
  font-size: 17px;
  line-height: 1.75;
}

.result-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.result-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.05fr 1.2fr;
  gap: 14px;
}

.result-card {
  min-width: 0;
  padding: 18px;
}

.result-card h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.tag-list,
.insight-list,
.source-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbf8;
  color: #243142;
  font-weight: 800;
  line-height: 1.45;
}

.chart-card canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 430px;
}

.coordinate-tabs,
.view-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tab-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #2f3b4d;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.tab-button.is-active {
  border-color: rgba(47, 143, 111, 0.6);
  background: #eef9f3;
  color: var(--green);
}

.coordinate-map {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(207, 85, 73, 0.09), transparent 48%, rgba(47, 143, 111, 0.12)),
    linear-gradient(0deg, rgba(47, 95, 168, 0.1), transparent 48%, rgba(183, 129, 22, 0.12)),
    #fff;
  overflow: hidden;
}

.coordinate-map .x-line,
.coordinate-map .y-line {
  position: absolute;
  background: rgba(23, 32, 42, 0.2);
}

.coordinate-map .x-line {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}

.coordinate-map .y-line {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.map-dot {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 26px;
  min-height: 22px;
  padding: 3px 5px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--dot-color, var(--blue));
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.18);
  transform: translate(-50%, 50%);
}

.map-dot.user {
  z-index: 3;
  min-width: 36px;
  min-height: 28px;
  background: var(--red);
  font-size: 12px;
}

.map-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.map-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #344154;
  font-size: 12px;
  line-height: 1.3;
}

.legend-item i {
  display: grid;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 999px;
  background: var(--dot-color);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
}

.legend-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-section {
  margin-top: 28px;
}

.section-heading.compact {
  display: block;
  margin-bottom: 14px;
}

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

.interpretation-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.interpretation-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.interpretation-card p {
  margin: 0;
  color: #425066;
  line-height: 1.7;
}

.dimension-list {
  display: grid;
  gap: 11px;
}

.dimension-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 62px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.dimension-row strong {
  color: #253143;
  font-size: 14px;
}

.dimension-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.score-track {
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(207, 85, 73, 0.12), rgba(47, 95, 168, 0.08), rgba(47, 143, 111, 0.13)),
    #e7ecef;
  overflow: hidden;
}

.score-fill {
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--axis-color) 72%, #fff), var(--axis-color));
}

.score-value {
  color: #243142;
  font-size: 16px;
  font-weight: 900;
  text-align: right;
}

.match-list {
  display: grid;
  gap: 10px;
}

.match-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.match-card h3 {
  margin-bottom: 5px;
  font-size: 17px;
}

.match-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.match-meta {
  margin-top: 8px;
  color: #425066;
  font-size: 12px;
  line-height: 1.55;
}

.similarity {
  align-self: start;
  padding: 9px 10px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(47, 95, 168, 0.1), rgba(47, 143, 111, 0.12));
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.match-bar {
  grid-column: 1 / -1;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) var(--match), #e8edf5 var(--match));
}

.similarity span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.heat-column {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.heat-column strong {
  min-height: 32px;
  color: #344154;
  font-size: 11px;
  line-height: 1.25;
}

.heat-cell {
  min-height: 14px;
  border-radius: 3px;
  background: var(--heat-color, #e5e7eb);
}

.heat-cell.skipped {
  background: repeating-linear-gradient(
    45deg,
    #e5e7eb,
    #e5e7eb 4px,
    #f8fafc 4px,
    #f8fafc 8px
  );
}

.insight-list li,
.source-list li {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #425066;
  line-height: 1.65;
}

.source-list a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

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

.method-grid article {
  padding: 18px;
}

.method-grid span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  background: #eef9f3;
  color: var(--green);
  font-weight: 900;
}

.method-grid h3 {
  margin-bottom: 8px;
}

.method-grid p {
  margin: 0;
  color: #425066;
  line-height: 1.7;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 34px;
  color: var(--muted);
  font-size: 13px;
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 800;
  text-decoration: none;
}

@supports not (color: color-mix(in srgb, white, black)) {
  .axis-pill {
    background: #f0f7f3;
  }
}

@media (max-width: 980px) {
  .hero,
  .result-layout,
  .interpretation-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-board {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .topbar,
  .panel-head,
  .result-hero,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .topnav,
  .result-actions {
    justify-content: flex-start;
  }

  h1,
  .lock-panel h1 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .mode-actions,
  .scale-row,
  .map-legend {
    grid-template-columns: 1fr;
  }

  .scale-button {
    min-height: 44px;
  }

  .dimension-row,
  .match-card {
    grid-template-columns: 1fr;
  }

  .score-value,
  .similarity {
    text-align: left;
  }

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

  .password-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .heatmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  main,
  .topbar,
  .footer {
    width: min(var(--max), calc(100% - 20px));
  }

  .panel,
  .method-section,
  .sources-section,
  .lock-panel {
    padding: 18px;
  }

  .question-card h3 {
    font-size: 21px;
  }

  .coordinate-map {
    min-height: 270px;
  }

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

/* Youth profile additions */
.youth-lock {
  overflow: hidden;
  border-top: 5px solid var(--red);
  background:
    linear-gradient(135deg, rgba(24, 169, 184, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.96);
}

.youth-hero {
  min-height: 650px;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.2fr);
  align-items: center;
  gap: 34px;
}

.youth-hero h1 {
  max-width: 660px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.94;
}

.youth-hero h1 span {
  display: block;
}

.youth-hero h1 span:last-child {
  color: var(--blue);
}

.privacy-line,
.local-badge,
.result-stage,
.scenario-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3f4b5e;
  font-size: 13px;
  font-weight: 800;
}

.privacy-line span {
  color: var(--cyan);
}

.youth-collage {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1deg);
}

.youth-collage img {
  display: block;
  width: 100%;
  min-height: 470px;
  object-fit: cover;
  object-position: 60% center;
}

.start-panel {
  margin-top: -26px;
  position: relative;
  z-index: 2;
}

.local-badge,
.result-stage,
.scenario-pill {
  padding: 7px 9px;
  border: 1px solid rgba(24, 169, 184, 0.25);
  border-radius: var(--radius);
  background: rgba(24, 169, 184, 0.08);
  color: #15727b;
}

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

.stage-card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.stage-card:hover,
.stage-card:focus-visible,
.stage-card.is-selected {
  border-color: var(--blue);
  box-shadow: 0 10px 30px rgba(49, 95, 209, 0.12);
  outline: none;
}

.stage-card.is-selected {
  background: linear-gradient(135deg, rgba(49, 95, 209, 0.08), rgba(53, 168, 97, 0.07));
}

.stage-card span,
.stage-card strong,
.stage-card small {
  display: block;
}

.stage-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.stage-card strong {
  margin: 14px 0 8px;
  font-size: 22px;
}

.stage-card small {
  color: var(--muted);
  line-height: 1.55;
}

.mode-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.start-note,
.method-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.resume-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(216, 151, 18, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 224, 128, 0.18);
}

.resume-banner strong,
.resume-banner span {
  display: block;
}

.resume-banner span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.resume-actions {
  display: flex;
  gap: 8px;
}

.primary-button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.youth-question {
  min-height: 380px;
}

.choice-anchors {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 24px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.choice-anchors span:nth-child(2) {
  text-align: center;
}

.choice-anchors span:last-child {
  text-align: right;
}

.important-toggle {
  margin-top: 20px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.important-toggle[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(216, 151, 18, 0.12);
  color: #805d0a;
}

.scale-button.is-selected {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.youth-result-hero {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(49, 95, 209, 0.12), rgba(24, 169, 184, 0.08) 48%, rgba(237, 94, 104, 0.1));
}

.youth-result-hero h2 {
  margin-top: 14px;
  font-size: clamp(34px, 5vw, 58px);
}

.youth-result-hero .result-actions {
  margin-top: 18px;
}

.youth-result-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-list span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #425066;
  font-size: 12px;
  font-weight: 800;
}

.paired-map {
  background:
    linear-gradient(90deg, rgba(237, 94, 104, 0.055) 50%, rgba(24, 169, 184, 0.06) 50%),
    linear-gradient(rgba(49, 95, 209, 0.055) 50%, rgba(53, 168, 97, 0.055) 50%),
    #fff;
}

.user-point {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(23, 24, 33, 0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  transform: translate(-50%, 50%);
}

.pair-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.axis-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.axis-legend span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 5px;
  align-items: baseline;
}

.axis-legend b {
  color: var(--blue);
}

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

.tension-card,
.stability-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.tension-card h3,
.stability-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.tension-card p,
.stability-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.dual-meter {
  display: grid;
  grid-template-columns: var(--left) var(--right);
  gap: 3px;
  height: 10px;
  margin: 12px 0 9px;
}

.dual-meter span {
  min-width: 2px;
}

.dual-meter span:first-child {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.dual-meter span:last-child {
  background: linear-gradient(90deg, var(--gold), var(--red));
}

.domain-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.domain-tabs button,
.coordinate-tabs button {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.domain-tabs button.is-active,
.coordinate-tabs button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.insight-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

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

.source-list a {
  display: block;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.info-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 34px auto 70px;
}

.info-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: end;
  padding: 34px 0 26px;
}

.info-hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
}

.info-hero p:last-child {
  color: var(--muted);
  line-height: 1.8;
}

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

.info-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.info-card p,
.info-card li {
  color: #4b5668;
  line-height: 1.7;
}

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

.construct-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--construct-color);
  border-radius: var(--radius);
  background: #fff;
}

.construct-card small,
.construct-card p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .youth-hero,
  .youth-result-layout,
  .info-hero {
    grid-template-columns: 1fr;
  }

  .youth-hero {
    min-height: auto;
  }

  .youth-collage img {
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  .stage-grid,
  .mode-actions,
  .tension-grid,
  .stability-grid,
  .insight-columns,
  .source-list,
  .info-grid,
  .construct-catalog {
    grid-template-columns: 1fr;
  }

  .resume-banner,
  .resume-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .choice-anchors {
    grid-template-columns: 1fr 1fr;
  }

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

  .choice-anchors span:nth-child(2) {
    display: none;
  }

  .youth-hero h1 {
    font-size: 48px;
  }

  .youth-collage img {
    min-height: 270px;
  }

  .start-panel {
    margin-top: 14px;
  }
}
