:root {
  --bg: #f4f7f2;
  --surface: #ffffff;
  --surface-2: #edf5ef;
  --text: #1f2a24;
  --muted: #637066;
  --line: #d4ded4;
  --green: #3f7d58;
  --gold: #b8811c;
  --rose: #b55763;
  --blue: #356b8c;
  --danger: #9c3f31;
  --shadow: 0 14px 34px rgba(31, 42, 36, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 242, 0.94)),
    repeating-linear-gradient(90deg, rgba(53, 107, 140, 0.045), rgba(53, 107, 140, 0.045) 1px, transparent 1px, transparent 72px);
  color: var(--text);
  line-height: 1.65;
}

button,
a {
  font: inherit;
}

button {
  min-height: 44px;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.app-header {
  padding: 16px 0 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: 3rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.keep-together {
  white-space: nowrap;
}

h2 {
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  letter-spacing: 0;
}

.subtitle {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.source-note {
  display: inline-flex;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
  font-size: 0.92rem;
}

.source-note.is-ok {
  border-color: rgba(63, 125, 88, 0.35);
  color: var(--green);
}

.source-note.is-error {
  border-color: rgba(156, 63, 49, 0.42);
  color: var(--danger);
}

.intro-panel {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 22px;
  padding: 30px 0 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quiz-panel,
.validation-panel {
  margin-top: 28px;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.intro-actions,
.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.primary-action,
.secondary-action,
.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 128px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
  white-space: pre-line;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.primary-action,
.primary-link {
  background: var(--green);
  color: white;
  box-shadow: 0 10px 22px rgba(63, 125, 88, 0.22);
}

.secondary-action,
.secondary-link {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.primary-action:hover,
.secondary-action:hover,
.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-1px);
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.hidden {
  display: none !important;
}

.stage-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stage-strip {
  scrollbar-width: none;
}

.stage-strip::-webkit-scrollbar {
  display: none;
}

.stage-chip {
  min-height: 80px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9f6;
}

.stage-chip span,
.screen-title span,
.handoff-panel span,
.advice-block span {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
}

.stage-chip strong,
.stage-chip small {
  display: block;
}

.stage-chip small {
  color: var(--muted);
}

.stage-chip.is-active {
  border-color: rgba(63, 125, 88, 0.55);
  background: var(--surface-2);
}

.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3ddcf;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width 0.2s ease;
}

.question-card {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.question-meta span {
  padding: 4px 8px;
  border: 1px solid rgba(53, 107, 140, 0.2);
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.options-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.option-button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.option-button:hover,
.option-button.is-selected {
  border-color: rgba(63, 125, 88, 0.65);
  background: var(--surface-2);
}

.option-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eadfc9;
  color: var(--text);
  font-weight: 800;
}

.option-button.is-selected .option-key {
  background: var(--green);
  color: white;
}

.quiz-actions {
  margin-top: 18px;
  justify-content: flex-end;
}

.quiz-message,
.muted {
  color: var(--muted);
}

.result-panel {
  margin-top: 28px;
}

.result-hero h2 {
  margin-bottom: 10px;
  font-size: 3.2rem;
  line-height: 1;
}

.result-hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
  padding: 10px 0;
}

.report-map {
  margin: 28px 0 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.report-map > span,
.deep-panel > span,
.screen-summary > span,
.matrix-card > span,
.relation-card > span,
.path-step > span,
.handoff-bridge > span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
}

.report-map-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.report-map-node {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.report-map-node strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.report-map-node p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.climate-lockup span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(63, 125, 88, 0.25);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
}

.hero-summary {
  max-width: 620px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.5;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.share-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(53, 107, 140, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f1f6f8);
  box-shadow: var(--shadow);
}

.share-card > span {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
}

.share-card h3 {
  margin-bottom: 0;
  color: var(--green);
  font-size: 1.85rem;
  line-height: 1.1;
}

.share-card > p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
}

.result-screen {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.screen-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.screen-title h2 {
  margin-bottom: 0;
}

.screen-lead {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1.02rem;
}

.unit-grid,
.overview-grid,
.overview-brief,
.focus-grid,
.relation-grid,
.matrix-grid,
.path-flow,
.share-mini-grid,
.advice-grid,
.validation-list {
  display: grid;
  gap: 12px;
}

.overview-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.unit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.advice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.relation-grid,
.matrix-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.matrix-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.path-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.overview-brief {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0 18px;
}

.share-mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-item,
.inline-summary,
.deep-panel,
.screen-summary,
.relation-card,
.matrix-card,
.path-step,
.handoff-bridge,
.focus-block {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.summary-item span,
.inline-summary span,
.focus-block span,
.unit-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.summary-item strong,
.inline-summary strong,
.focus-block strong {
  display: block;
  color: var(--text);
  line-height: 1.35;
}

.summary-item small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-block {
  padding: 18px;
}

.focus-block.resident {
  border-left: 4px solid var(--gold);
}

.focus-block.risk {
  border-left: 4px solid var(--rose);
}

.focus-block.resource {
  border-left: 4px solid var(--green);
}

.focus-block p,
.inline-summary p,
.relation-card p,
.matrix-card p,
.path-step p,
.deep-panel p,
.screen-summary p,
.handoff-bridge p {
  margin: 8px 0 0;
  color: var(--muted);
}

.deep-panel,
.screen-summary {
  margin-top: 18px;
  background: #fbfcfa;
}

.deep-panel h3,
.relation-card h3,
.matrix-card h3,
.path-step h3 {
  margin-bottom: 8px;
}

.relation-card.climate {
  border-top: 4px solid var(--blue);
}

.relation-card.risk,
.path-step.clean {
  border-top: 4px solid var(--rose);
}

.relation-card.resource,
.path-step.guard {
  border-top: 4px solid var(--green);
}

.relation-card.path,
.path-step.cultivate {
  border-top: 4px solid var(--gold);
}

.matrix-card.resident {
  border-left: 4px solid var(--gold);
}

.matrix-card.risk {
  border-left: 4px solid var(--rose);
}

.matrix-card.resource {
  border-left: 4px solid var(--green);
}

.matrix-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.matrix-card strong {
  display: block;
  margin-top: 10px;
  color: var(--blue);
  font-size: 0.92rem;
  line-height: 1.55;
}

.screen-summary {
  border-left: 4px solid var(--blue);
}

.screen-summary strong {
  display: block;
}

.unit-card,
.advice-block,
.validation-item,
.handoff-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.unit-card.resident {
  border-top: 4px solid var(--gold);
}

.unit-card.risk {
  border-top: 4px solid var(--rose);
}

.unit-card.resource {
  border-top: 4px solid var(--green);
}

.unit-card.climate {
  border-top: 4px solid rgba(215, 198, 162, 0.74);
}

.unit-card.advice {
  border-top: 4px solid var(--blue);
}

.unit-card.is-empty {
  color: var(--muted);
}

.unit-label {
  color: var(--gold);
}

.unit-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.unit-heading span {
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.unit-card p,
.advice-block p {
  margin-bottom: 10px;
}

.unit-card small,
.advice-block small {
  display: block;
  color: var(--muted);
}

.warning-copy {
  padding: 12px 14px;
  border-left: 4px solid var(--rose);
  background: rgba(181, 87, 99, 0.08);
  color: #6c2d35;
}

.encouragement-copy {
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  background: rgba(63, 125, 88, 0.08);
}

.advice-block.clean {
  border-top: 4px solid var(--rose);
}

.advice-block.guard {
  border-top: 4px solid var(--green);
}

.advice-block.cultivate {
  border-top: 4px solid var(--gold);
}

.advice-block strong {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
}

.section-stack {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.handoff-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  background: linear-gradient(135deg, #ffffff, #edf5ef);
}

.handoff-bridge {
  margin-top: 18px;
  background: rgba(237, 245, 239, 0.7);
}

.handoff-steps {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.handoff-steps > span {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
}

.handoff-step-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.handoff-step {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9f6;
}

.handoff-step strong {
  display: block;
  color: var(--green);
  font-size: 0.82rem;
}

.handoff-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.validation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.validation-item {
  background: var(--surface);
}

.validation-item > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.validation-item.is-pass {
  border-left: 4px solid var(--green);
}

.validation-item.is-fail {
  border-left: 4px solid var(--danger);
}

.validation-item ul {
  margin: 0;
  padding-left: 18px;
}

.validation-item li.is-pass {
  color: var(--green);
}

.validation-item li.is-fail {
  color: var(--danger);
}

@media (max-width: 880px) {
  .app-shell {
    width: min(100% - 24px, 720px);
    padding-top: 24px;
  }

  h1 {
    font-size: 1.88rem;
    line-height: 1.16;
  }

  .result-hero h2 {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1rem;
    line-height: 1.7;
  }

  .intro-panel,
  .result-hero,
  .handoff-panel,
  .validation-header {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    display: grid;
  }

  .stage-strip,
  .overview-grid,
  .overview-brief,
  .focus-grid,
  .report-map-grid,
  .relation-grid,
  .matrix-grid,
  .matrix-grid.two-up,
  .path-flow,
  .unit-grid,
  .share-mini-grid,
  .handoff-step-grid,
  .advice-grid {
    grid-template-columns: 1fr;
  }

  .stage-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .stage-chip {
    flex: 0 0 168px;
    min-height: 72px;
    scroll-snap-align: start;
  }

  .screen-title,
  .validation-item > div,
  .progress-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-top: 18px;
  }

  .quiz-actions {
    justify-content: stretch;
  }

  .quiz-actions button,
  .intro-actions button,
  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .intro-panel,
  .result-hero {
    padding: 18px;
  }

  .result-hero-main {
    min-height: auto;
    padding: 0;
  }

  .hero-summary {
    font-size: 1.1rem;
  }

  .result-screen {
    padding: 38px 0;
  }

  .report-map {
    margin-top: 22px;
    padding: 14px;
  }

  .deep-panel,
  .screen-summary,
  .relation-card,
  .matrix-card,
  .path-step,
  .handoff-bridge {
    padding: 14px;
  }

  .relation-grid,
  .matrix-grid,
  .path-flow {
    gap: 10px;
  }

  .unit-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .unit-heading span {
    white-space: normal;
  }
}

/* B621 brand home */
.home-page {
  --home-bg: #17212a;
  --home-bg-2: #202d36;
  --home-surface: rgba(239, 235, 222, 0.07);
  --home-line: rgba(228, 219, 196, 0.18);
  --home-text: #f2eee4;
  --home-muted: #b7c0bd;
  --home-dim: #819092;
  --home-gold: #c2a160;
  min-height: 100vh;
  background:
    radial-gradient(circle at 74% 12%, rgba(194, 161, 96, 0.16), transparent 28%),
    linear-gradient(180deg, #121b23 0%, var(--home-bg) 48%, #101820 100%);
  color: var(--home-text);
}

.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(242, 238, 228, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(242, 238, 228, 0.025) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.36), transparent 72%);
}

.home-shell {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.home-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  align-content: center;
  padding-top: 56px;
  padding-bottom: 56px;
}

.home-brand {
  position: absolute;
  top: 28px;
  left: 0;
  display: grid;
  gap: 4px;
}

.home-brand span,
.home-kicker,
.archive-preview span,
.ecology-grid span {
  color: var(--home-gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.home-brand strong {
  color: var(--home-text);
  font-size: 0.98rem;
  font-weight: 800;
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  animation: homeRise 0.7s ease both;
}

.home-kicker {
  margin: 0 0 14px;
}

.home-hero h1,
.home-section h2 {
  color: var(--home-text);
  font-family: "Noto Serif SC", "Songti SC", "SimSun", "Microsoft YaHei", serif;
  font-weight: 600;
}

.home-hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: 3.35rem;
  line-height: 1.18;
}

.home-section h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 2.18rem;
  line-height: 1.28;
}

.home-subtitle,
.home-section-copy > p,
.home-reading p,
.final-cta-inner > p {
  color: var(--home-muted);
  font-size: 1.06rem;
  line-height: 1.9;
}

.home-subtitle {
  max-width: 620px;
  margin-bottom: 28px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.home-actions span,
.final-cta-inner > span {
  color: var(--home-dim);
  font-size: 0.92rem;
  line-height: 1.65;
}

.home-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 138px;
  padding: 11px 18px;
  border: 1px solid rgba(194, 161, 96, 0.42);
  border-radius: 8px;
  background: rgba(242, 238, 228, 0.94);
  color: #152029;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.home-primary-link:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: rgba(194, 161, 96, 0.72);
}

.home-planet {
  position: absolute;
  right: -130px;
  bottom: 5vh;
  width: 560px;
  height: 560px;
  opacity: 0.72;
  animation: planetBreathe 7s ease-in-out infinite;
}

.planet-arc {
  position: absolute;
  inset: 36px;
  border: 1px solid rgba(242, 238, 228, 0.16);
  border-radius: 50%;
  background:
    linear-gradient(138deg, rgba(242, 238, 228, 0.16), transparent 38%),
    repeating-linear-gradient(164deg, rgba(194, 161, 96, 0.15), rgba(194, 161, 96, 0.15) 1px, transparent 1px, transparent 34px);
  box-shadow: inset 42px -60px 100px rgba(0, 0, 0, 0.36);
}

.planet-glow {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(184, 194, 194, 0.09);
  box-shadow: 0 0 80px rgba(184, 194, 194, 0.08);
}

.orbit-line {
  position: absolute;
  border: 1px solid rgba(184, 194, 194, 0.14);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.orbit-line-one {
  inset: 148px -58px 190px -58px;
}

.orbit-line-two {
  inset: 206px -90px 236px -90px;
  border-color: rgba(194, 161, 96, 0.16);
}

.star-point {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(242, 238, 228, 0.72);
}

.star-point-one {
  top: 110px;
  left: 72px;
}

.star-point-two {
  right: 122px;
  bottom: 136px;
}

.home-split,
.result-preview-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.72fr);
  gap: 56px;
  align-items: center;
}

.home-section-copy > p {
  max-width: 700px;
  margin-bottom: 0;
}

.home-reading {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: var(--home-surface);
}

.home-reading p {
  margin-bottom: 0;
}

.structure-sketch {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin: 24px auto 0;
  padding: 22px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  color: var(--home-dim);
  background: rgba(18, 27, 35, 0.42);
}

.structure-sketch span,
.structure-sketch strong {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.structure-sketch div {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 238, 228, 0.28), transparent);
}

.centered {
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
}

.centered p {
  margin-right: auto;
  margin-left: auto;
}

.ecology-grid,
.archive-preview {
  display: grid;
  gap: 14px;
}

.ecology-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ecology-grid article,
.archive-preview article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: var(--home-surface);
}

.ecology-grid h3,
.archive-preview h3 {
  margin: 10px 0 8px;
  color: var(--home-text);
  font-size: 1.08rem;
}

.ecology-grid p {
  margin-bottom: 0;
  color: var(--home-muted);
}

.archive-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.archive-preview article {
  min-height: 134px;
  background:
    linear-gradient(180deg, rgba(242, 238, 228, 0.09), rgba(242, 238, 228, 0.04)),
    var(--home-surface);
}

.archive-preview h3 {
  margin-top: 28px;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", "Microsoft YaHei", serif;
  font-size: 1.28rem;
  font-weight: 600;
}

.final-cta-section {
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.final-cta-inner {
  max-width: 720px;
  padding: 44px 26px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: rgba(239, 235, 222, 0.055);
}

.final-cta-inner p {
  margin-right: auto;
  margin-left: auto;
  max-width: 520px;
}

.final-cta-inner .home-primary-link {
  margin: 10px 0 12px;
}

@keyframes homeRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes planetBreathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 900px) {
  .home-section {
    width: min(100% - 28px, 720px);
    padding: 64px 0;
  }

  .home-hero {
    min-height: 100svh;
    padding-top: 96px;
    padding-bottom: 42px;
  }

  .home-brand {
    top: 24px;
  }

  .home-hero h1 {
    font-size: 2.34rem;
    line-height: 1.22;
  }

  .home-section h2 {
    font-size: 1.72rem;
  }

  .home-subtitle,
  .home-section-copy > p,
  .home-reading p,
  .final-cta-inner > p {
    font-size: 1rem;
    line-height: 1.82;
  }

  .home-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-primary-link {
    width: 100%;
  }

  .home-planet {
    right: -190px;
    bottom: -90px;
    width: 410px;
    height: 410px;
    opacity: 0.42;
  }

  .home-split,
  .result-preview-section,
  .ecology-grid,
  .archive-preview {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-reading,
  .ecology-grid article,
  .archive-preview article {
    padding: 18px;
  }

  .centered {
    text-align: left;
  }

  .final-cta-section {
    min-height: 68vh;
  }

  .final-cta-inner {
    padding: 34px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-copy,
  .home-planet {
    animation: none;
  }
}

/* B621 original-illustration visual master */
html:has(body.home-page) {
  background: #111a21;
}

.home-page {
  --home-bg: #151f27;
  --home-bg-2: #1d2830;
  --home-paper: rgba(232, 224, 207, 0.075);
  --home-paper-strong: rgba(232, 224, 207, 0.12);
  --home-line: rgba(225, 215, 194, 0.18);
  --home-line-soft: rgba(225, 215, 194, 0.105);
  --home-text: #f1eadc;
  --home-muted: #c9c6b8;
  --home-dim: #8f9a96;
  --home-gold: #c1a46f;
  --home-sand: #d7c6a2;
  --home-green: #94a79b;
  background:
    linear-gradient(115deg, rgba(215, 198, 162, 0.055), transparent 31%),
    linear-gradient(180deg, #17212a 0%, #1b252d 42%, #111a21 100%);
  color: var(--home-text);
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(241, 234, 220, 0.018) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(215, 198, 162, 0.012) 0 1px, transparent 1px 9px),
    linear-gradient(90deg, rgba(241, 234, 220, 0.035), transparent 18%, transparent 82%, rgba(148, 167, 155, 0.035));
  opacity: 0.78;
  mask-image: none;
}

.home-page::after {
  content: "";
  position: fixed;
  inset: 18px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(232, 224, 207, 0.055);
  border-radius: 2px;
}

.home-shell {
  overflow: hidden;
}

.home-section {
  position: relative;
  width: min(1060px, calc(100% - 48px));
  padding: 112px 0;
}

.home-section::before {
  content: attr(data-folio);
  position: absolute;
  top: 58px;
  left: 0;
  color: rgba(201, 198, 184, 0.52);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-hero {
  min-height: 100svh;
  padding-top: 118px;
  padding-bottom: 82px;
}

.home-hero::before {
  top: 42px;
  right: 0;
  left: auto;
}

.home-brand {
  top: 38px;
}

.home-brand span,
.home-kicker,
.archive-preview span,
.ecology-grid span {
  color: rgba(193, 164, 111, 0.86);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.home-brand strong {
  color: var(--home-text);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.home-hero-copy {
  max-width: 660px;
  animation: none;
}

.home-kicker {
  margin-bottom: 18px;
}

.home-hero h1,
.home-section h2 {
  color: var(--home-text);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.home-hero h1 {
  max-width: 710px;
  margin-bottom: 26px;
  font-size: 3.08rem;
  line-height: 1.32;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.18);
}

.home-section h2 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: 2.05rem;
  line-height: 1.42;
}

.home-subtitle,
.home-section-copy > p,
.home-reading p,
.final-cta-inner > p {
  color: rgba(213, 208, 193, 0.9);
  font-size: 1.02rem;
  line-height: 2;
}

.home-subtitle {
  max-width: 612px;
  margin-bottom: 34px;
}

.home-actions {
  align-items: flex-start;
  gap: 20px;
}

.home-actions span,
.final-cta-inner > span {
  color: rgba(143, 154, 150, 0.82);
  font-size: 0.88rem;
  line-height: 1.8;
}

.home-page .home-primary-link {
  width: auto;
  min-width: 128px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid rgba(215, 198, 162, 0.46);
  border-radius: 6px;
  background: rgba(232, 224, 207, 0.13);
  color: var(--home-text);
  box-shadow: inset 0 1px 0 rgba(241, 234, 220, 0.06);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.home-page .home-primary-link:hover {
  transform: translateY(-1px);
  background: rgba(232, 224, 207, 0.16);
  border-color: rgba(215, 198, 162, 0.64);
  color: #fff8e9;
}

.home-planet {
  right: 5%;
  bottom: 9vh;
  width: 390px;
  height: 390px;
  opacity: 0.54;
  animation: manuscriptDrift 9s ease-in-out infinite;
}

.planet-arc {
  inset: 94px 18px 46px 18px;
  overflow: hidden;
  border: 1px solid rgba(232, 224, 207, 0.18);
  border-top-color: rgba(215, 198, 162, 0.28);
  border-radius: 50%;
  background:
    linear-gradient(168deg, transparent 0 48%, rgba(215, 198, 162, 0.06) 48% 49%, transparent 49%),
    repeating-linear-gradient(172deg, transparent 0 30px, rgba(232, 224, 207, 0.055) 30px 31px);
  box-shadow: none;
  transform: rotate(-8deg);
}

.planet-arc::before,
.planet-arc::after {
  content: "";
  position: absolute;
  right: 8%;
  left: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 198, 162, 0.3), transparent);
  transform: rotate(-5deg);
}

.planet-arc::before {
  top: 44%;
}

.planet-arc::after {
  top: 58%;
  opacity: 0.58;
}

.planet-horizon {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 234, 220, 0.3), transparent);
  transform-origin: center;
}

.planet-horizon-one {
  top: 55%;
  right: 15%;
  left: 24%;
  transform: rotate(-7deg);
}

.planet-horizon-two {
  top: 63%;
  right: 26%;
  left: 34%;
  opacity: 0.58;
  transform: rotate(-5deg);
}

.orbit-line {
  border-width: 1px;
  border-color: rgba(232, 224, 207, 0.13);
}

.orbit-line-one {
  inset: 157px 12px 178px 0;
  transform: rotate(-16deg);
}

.orbit-line-two {
  inset: 202px 50px 148px 64px;
  border-color: rgba(193, 164, 111, 0.15);
  transform: rotate(-9deg);
}

.observer-mark {
  position: absolute;
  right: 44%;
  bottom: 28%;
  width: 18px;
  height: 34px;
  opacity: 0.42;
}

.observer-mark::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 6px;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(241, 234, 220, 0.62);
  border-radius: 50%;
}

.observer-mark span {
  position: absolute;
  top: 9px;
  left: 8px;
  width: 1px;
  height: 17px;
  background: rgba(241, 234, 220, 0.56);
  transform: rotate(3deg);
}

.observer-mark::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 2px;
  left: 1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 234, 220, 0.58), transparent);
}

.star-point {
  width: 2px;
  height: 2px;
  background: rgba(241, 234, 220, 0.58);
}

.star-point-one {
  top: 106px;
  left: 78px;
}

.home-split,
.result-preview-section {
  grid-template-columns: minmax(0, 0.96fr) minmax(280px, 0.64fr);
  gap: 72px;
}

.home-section-copy,
.home-reading,
.archive-preview,
.ecology-grid {
  min-width: 0;
}

.home-reading,
.structure-sketch,
.ecology-grid article,
.archive-preview article,
.final-cta-inner {
  border-color: var(--home-line-soft);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(241, 234, 220, 0.035);
}

.home-reading {
  gap: 16px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(232, 224, 207, 0.075), rgba(232, 224, 207, 0.04)),
    linear-gradient(90deg, rgba(215, 198, 162, 0.045), transparent 38%);
}

.structure-sketch {
  max-width: 600px;
  padding: 24px 26px;
  background:
    repeating-linear-gradient(180deg, rgba(241, 234, 220, 0.035) 0 1px, transparent 1px 24px),
    rgba(14, 22, 28, 0.18);
}

.structure-sketch span,
.structure-sketch strong {
  color: rgba(201, 198, 184, 0.64);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.structure-sketch div {
  background: linear-gradient(90deg, transparent, rgba(215, 198, 162, 0.28), transparent);
}

.centered {
  margin-bottom: 42px;
}

.ecology-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ecology-grid article,
.archive-preview article {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(232, 224, 207, 0.064), rgba(232, 224, 207, 0.026)),
    rgba(17, 26, 33, 0.24);
}

.ecology-grid article::before,
.archive-preview article::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 18px;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(215, 198, 162, 0.2), transparent);
}

.ecology-grid h3,
.archive-preview h3 {
  color: var(--home-text);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-weight: 400;
}

.ecology-grid p {
  color: rgba(201, 198, 184, 0.8);
  line-height: 1.85;
}

.archive-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.archive-preview article {
  min-height: 216px;
  background:
    linear-gradient(180deg, rgba(232, 224, 207, 0.08), rgba(232, 224, 207, 0.032)),
    linear-gradient(125deg, rgba(148, 167, 155, 0.06), transparent 46%);
}

.archive-preview h3 {
  margin: 32px 0 10px;
  font-size: 1.18rem;
  line-height: 1.45;
}

.archive-preview p {
  color: rgba(201, 198, 184, 0.8);
  font-size: 0.92rem;
  line-height: 1.72;
  margin: 0 0 16px;
}

.archive-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-preview-tags strong {
  border: 1px solid rgba(225, 215, 194, 0.12);
  border-radius: 999px;
  background: rgba(232, 224, 207, 0.04);
  color: rgba(241, 234, 220, 0.88);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  padding: 8px 10px;
  white-space: nowrap;
}

.archive-preview-tags.is-dense strong {
  font-size: 0.78rem;
  padding: 7px 9px;
}

.final-cta-section {
  min-height: 78vh;
}

.final-cta-inner {
  position: relative;
  max-width: 660px;
  padding: 58px 32px 44px;
  background: transparent;
}

.final-cta-inner::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 18%;
  left: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 198, 162, 0.3), transparent);
}

@keyframes manuscriptDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -6px, 0) rotate(-0.8deg);
  }
}

@media (max-width: 900px) {
  .home-page::after {
    inset: 10px;
  }

  .home-section {
    width: min(100% - 34px, 680px);
    padding: 82px 0;
  }

  .home-section::before {
    top: 36px;
    font-size: 0.64rem;
  }

  .home-hero {
    min-height: 100svh;
    padding-top: 106px;
    padding-bottom: 72px;
  }

  .home-hero::before {
    display: none;
  }

  .home-brand {
    top: 28px;
  }

  .home-brand strong {
    font-size: 0.92rem;
  }

  .home-brand span,
  .home-kicker,
  .archive-preview span,
  .ecology-grid span {
    font-size: 0.66rem;
  }

  .home-hero h1 {
    font-size: 1.92rem;
    line-height: 1.38;
  }

  .home-section h2 {
    font-size: 1.55rem;
    line-height: 1.48;
  }

  .home-subtitle,
  .home-section-copy > p,
  .home-reading p,
  .final-cta-inner > p {
    font-size: 0.98rem;
    line-height: 1.92;
  }

  .home-actions {
    gap: 14px;
    align-items: flex-start;
  }

  .home-page .home-primary-link {
    width: auto;
    min-width: 132px;
  }

  .home-planet {
    right: -120px;
    bottom: 3vh;
    width: 300px;
    height: 300px;
    opacity: 0.28;
  }

  .home-split,
  .result-preview-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .ecology-grid,
  .archive-preview {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-reading,
  .structure-sketch,
  .ecology-grid article,
  .archive-preview article {
    padding: 20px;
  }

  .centered {
    margin-bottom: 28px;
  }

  .final-cta-inner {
    padding: 48px 20px 34px;
  }
}

@media (max-width: 380px) {
  .home-hero h1 {
    font-size: 1.78rem;
  }
}

/* B621 observation test page */
.test-page {
  --bg: #121b23;
  --surface: rgba(239, 235, 222, 0.07);
  --surface-2: rgba(239, 235, 222, 0.115);
  --text: #f2eee4;
  --muted: #b7c0bd;
  --line: rgba(228, 219, 196, 0.18);
  --green: #9eb8a7;
  --gold: #c2a160;
  --rose: #c88b8f;
  --blue: #9db7c5;
  --danger: #d39185;
  --shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 0%, rgba(194, 161, 96, 0.13), transparent 28%),
    radial-gradient(circle at 8% 18%, rgba(157, 183, 197, 0.11), transparent 26%),
    linear-gradient(180deg, #111a22 0%, #17222b 58%, #101820 100%);
  color: var(--text);
}

.test-shell {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 32px));
  padding-top: 28px;
}

.test-orbit {
  position: fixed;
  right: -180px;
  top: 80px;
  width: 460px;
  height: 460px;
  pointer-events: none;
  border: 1px solid rgba(242, 238, 228, 0.08);
  border-radius: 50%;
  opacity: 0.38;
  box-shadow: inset 34px -46px 90px rgba(0, 0, 0, 0.3);
}

.test-orbit::before,
.test-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(194, 161, 96, 0.13);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.test-orbit::before {
  inset: 126px -58px 168px -58px;
}

.test-orbit::after {
  inset: 178px -88px 216px -88px;
}

.test-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 0.9rem;
}

.test-topbar a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.test-topbar span {
  color: var(--gold);
  font-weight: 800;
}

.test-header {
  max-width: 760px;
  padding: 16px 0 8px;
}

.test-header h1 {
  color: var(--text);
  font-family: "Noto Serif SC", "Songti SC", "SimSun", "Microsoft YaHei", serif;
  font-weight: 600;
}

.test-page .eyebrow {
  color: var(--gold);
}

.test-page .subtitle {
  color: var(--muted);
}

.test-page .source-note {
  border-color: var(--line);
  background: rgba(239, 235, 222, 0.055);
  color: var(--muted);
}

.test-page .source-note.is-ok {
  border-color: rgba(194, 161, 96, 0.28);
  color: #d8c58e;
}

.test-intro-panel {
  margin-top: 18px;
  border-color: var(--line);
  background:
    linear-gradient(140deg, rgba(239, 235, 222, 0.09), rgba(239, 235, 222, 0.045)),
    rgba(18, 27, 35, 0.62);
}

.panel-label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.test-intro-panel h2,
.test-page .question-card h2,
.test-page .result-hero h2,
.test-page .screen-title h2 {
  color: var(--text);
}

.test-intro-panel p {
  max-width: 680px;
  color: var(--muted);
}

.nickname-field {
  display: grid;
  gap: 7px;
  max-width: 360px;
  margin: 18px 0 0;
}

.nickname-field span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.nickname-field input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(239, 235, 222, 0.06);
  color: var(--text);
  font-size: 1rem;
  padding: 0 14px;
}

.nickname-field input:focus {
  outline: 2px solid rgba(194, 161, 96, 0.32);
  outline-offset: 2px;
}

.nickname-error {
  min-height: 1.45em;
  margin: 8px 0 0;
  color: #d99b90;
  font-size: 0.9rem;
}

.test-intro-panel small {
  display: block;
  color: var(--gold);
  line-height: 1.6;
}

.test-page .primary-action,
.test-page .primary-link {
  border-color: rgba(194, 161, 96, 0.42);
  background: rgba(242, 238, 228, 0.94);
  color: #152029;
  box-shadow: none;
}

.test-page .secondary-action,
.test-page .secondary-link {
  border-color: var(--line);
  background: rgba(239, 235, 222, 0.045);
  color: var(--text);
}

.test-page .primary-action:hover,
.test-page .secondary-action:hover,
.test-page .primary-link:hover,
.test-page .secondary-link:hover {
  transform: translateY(-1px);
  border-color: rgba(194, 161, 96, 0.5);
}

.test-page .quiz-panel {
  margin-top: 34px;
}

.test-page .stage-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.test-page .stage-chip {
  min-height: 76px;
  border-color: var(--line);
  background: rgba(239, 235, 222, 0.045);
}

.test-page .stage-chip span,
.test-page .screen-title span,
.test-page .handoff-panel span,
.test-page .advice-block span {
  color: var(--gold);
}

.test-page .stage-chip strong,
.test-page .stage-chip small {
  color: var(--muted);
}

.test-page .stage-chip.is-active {
  border-color: rgba(194, 161, 96, 0.5);
  background: rgba(194, 161, 96, 0.105);
}

.observation-progress {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(239, 235, 222, 0.045);
}

.test-page .progress-row {
  margin: 0 0 8px;
  color: var(--muted);
}

.process-hint {
  margin-bottom: 0;
  color: var(--gold);
  font-size: 0.92rem;
  white-space: pre-line;
}

.test-page .progress-track {
  height: 8px;
  margin-top: 12px;
  background: rgba(239, 235, 222, 0.11);
}

.test-page .progress-fill {
  background: linear-gradient(90deg, rgba(184, 194, 194, 0.84), rgba(194, 161, 96, 0.86));
}

.test-page .question-card {
  width: min(100%, 840px);
  margin: 26px auto 0;
  padding: 28px;
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(239, 235, 222, 0.075), rgba(239, 235, 222, 0.045)),
    rgba(18, 27, 35, 0.74);
  box-shadow: var(--shadow);
}

.test-page .question-meta span {
  border-color: rgba(194, 161, 96, 0.24);
  background: rgba(194, 161, 96, 0.07);
  color: #d8c58e;
}

.test-page .question-card h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", "Microsoft YaHei", serif;
  font-size: 1.56rem;
  font-weight: 600;
  line-height: 1.55;
}

.test-page .options-list {
  gap: 12px;
  margin-top: 24px;
}

.test-page .option-button {
  min-height: 72px;
  border-color: var(--line);
  background: rgba(239, 235, 222, 0.052);
  color: var(--text);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.test-page .option-button:hover {
  border-color: rgba(194, 161, 96, 0.34);
  background: rgba(239, 235, 222, 0.08);
}

.test-page .option-button.is-selected {
  border-color: rgba(194, 161, 96, 0.62);
  background:
    linear-gradient(90deg, rgba(194, 161, 96, 0.16), rgba(239, 235, 222, 0.075)),
    rgba(239, 235, 222, 0.06);
}

.test-page .option-key {
  background: rgba(239, 235, 222, 0.1);
  color: var(--gold);
}

.test-page .option-button.is-selected .option-key {
  background: rgba(242, 238, 228, 0.92);
  color: #152029;
}

.test-page .quiz-actions {
  width: min(100%, 840px);
  margin: 18px auto 0;
}

.test-page .quiz-message {
  width: min(100%, 840px);
  margin: 12px auto 0;
  color: var(--muted);
  white-space: pre-line;
}

.test-page .summary-item,
.test-page .inline-summary,
.test-page .deep-panel,
.test-page .screen-summary,
.test-page .relation-card,
.test-page .matrix-card,
.test-page .path-step,
.test-page .handoff-bridge,
.test-page .focus-block,
.test-page .unit-card,
.test-page .handoff-panel,
.test-page .handoff-steps,
.test-page .advice-block {
  border-color: var(--line);
  background: rgba(239, 235, 222, 0.065);
}

.test-page .share-card {
  border-color: rgba(194, 161, 96, 0.22);
  background: linear-gradient(180deg, rgba(239, 235, 222, 0.11), rgba(239, 235, 222, 0.06));
}

.test-page .share-card h3 {
  color: var(--gold);
}

.test-page .share-card > p,
.test-page .hero-summary,
.test-page .summary-item strong,
.test-page .inline-summary strong,
.test-page .focus-block strong,
.test-page .unit-heading strong,
.test-page .matrix-card h3,
.test-page .relation-card h3,
.test-page .path-step h3,
.test-page .advice-block h3,
.test-page .handoff-panel h3,
.test-page .handoff-steps h3 {
  color: var(--text);
}

.test-page .hero-copy,
.test-page .screen-lead,
.test-page .summary-item span,
.test-page .inline-summary span,
.test-page .focus-block p,
.test-page .relation-card p,
.test-page .matrix-card p,
.test-page .unit-card p,
.test-page .unit-card small,
.test-page .path-step p,
.test-page .advice-block p,
.test-page .handoff-panel p,
.test-page .handoff-step p {
  color: var(--muted);
}

.test-page .result-panel {
  margin-top: 42px;
}

.archive-cover {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: 24px;
  align-items: stretch;
  min-height: 78vh;
  padding: 40px 0 46px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.archive-cover::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: 22px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(242, 238, 228, 0.08);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.48;
}

.archive-cover-main,
.archive-snapshot,
.archive-note,
.archive-structure-card,
.archive-closure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(239, 235, 222, 0.062);
}

.archive-cover-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.archive-brand,
.archive-state,
.archive-snapshot > span,
.archive-note > span,
.archive-structure-card > span,
.archive-detail-intro > span,
.archive-closure > span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
}

.archive-state {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(194, 161, 96, 0.28);
  border-radius: 999px;
  background: rgba(194, 161, 96, 0.07);
}

.archive-cover h2,
.archive-detail-intro h2,
.archive-closure h2 {
  color: var(--text);
  font-family: "Noto Serif SC", "Songti SC", "SimSun", "Microsoft YaHei", serif;
  font-weight: 600;
}

.archive-cover h2 {
  max-width: 720px;
  margin: 18px 0 12px;
  font-size: 3rem;
  line-height: 1.15;
}

.archive-subtitle {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
}

.archive-climate-line {
  display: grid;
  gap: 6px;
  margin: 26px 0 18px;
}

.archive-climate-line span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.archive-climate-line strong {
  color: var(--gold);
  font-size: 1.46rem;
  line-height: 1.2;
}

.archive-summary,
.archive-lead {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.75;
}

.archive-snapshot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}

.archive-snapshot h3 {
  margin-bottom: 0;
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1.15;
}

.archive-snapshot p {
  margin-bottom: 0;
  color: var(--text);
  font-weight: 700;
}

.archive-snapshot-grid {
  display: grid;
  gap: 10px;
}

.share-poster {
  position: relative;
  overflow: hidden;
  margin: 28px auto 4px;
  padding: 24px;
  border: 1px solid rgba(194, 161, 96, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 16%, rgba(194, 161, 96, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(239, 235, 222, 0.12), rgba(239, 235, 222, 0.055));
}

.share-poster::before {
  content: "";
  position: absolute;
  right: -86px;
  bottom: -104px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(242, 238, 228, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.share-poster-head,
.share-poster-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.share-poster-head span {
  color: var(--text);
  font-weight: 800;
}

.share-poster-head small,
.share-poster-foot small,
.share-poster-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.share-poster-body {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 34px 0 28px;
}

.share-poster-kicker {
  margin-bottom: 8px;
}

.share-poster h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-family: "Noto Serif SC", "Songti SC", "SimSun", "Microsoft YaHei", serif;
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1.15;
}

.share-poster-body > p:not(.share-poster-kicker) {
  max-width: 700px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.78;
}

.share-poster-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-poster-tags span {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(242, 238, 228, 0.15);
  border-radius: 999px;
  background: rgba(239, 235, 222, 0.07);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.share-poster-foot {
  border-top: 1px solid rgba(242, 238, 228, 0.12);
  padding-top: 14px;
}

.share-poster-foot p {
  margin-bottom: 0;
  color: var(--muted);
}

.archive-overview {
  display: grid;
  gap: 18px;
}

.archive-note {
  padding: 18px;
}

.archive-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.archive-structure-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.archive-structure-card {
  min-width: 0;
  padding: 18px;
}

.archive-structure-card h3 {
  color: var(--text);
  font-size: 1.1rem;
}

.archive-structure-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.archive-structure-card.climate {
  border-top: 4px solid var(--blue);
}

.archive-structure-card.resident {
  border-top: 4px solid var(--gold);
}

.archive-structure-card.risk {
  border-top: 4px solid var(--rose);
}

.archive-structure-card.resource {
  border-top: 4px solid var(--green);
}

.archive-detail-intro {
  max-width: 780px;
  margin-bottom: 22px;
}

.archive-detail-intro h2 {
  margin-bottom: 10px;
  font-size: 2rem;
  line-height: 1.25;
}

.archive-detail-intro p {
  margin-bottom: 0;
  color: var(--muted);
}

.test-page .report-map {
  border-color: var(--line);
  background: rgba(239, 235, 222, 0.045);
}

.test-page .report-map-node {
  border-color: var(--line);
  background: rgba(239, 235, 222, 0.052);
}

.test-page .report-map-node strong {
  color: var(--text);
}

.test-page .report-map-node p {
  color: var(--muted);
}

.archive-closure {
  margin-top: 34px;
  padding: 42px 24px;
  text-align: center;
}

.archive-closure h2 {
  max-width: 680px;
  margin: 0 auto 14px;
  font-size: 2rem;
  line-height: 1.3;
}

.archive-closure p {
  max-width: 560px;
  margin: 0 auto 20px;
  color: var(--muted);
}

.archive-closure-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 880px) {
  .test-shell {
    width: min(100% - 28px, 720px);
    padding-top: 22px;
  }

  .test-orbit {
    right: -250px;
    top: 80px;
    opacity: 0.22;
  }

  .test-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 32px;
  }

  .test-header h1 {
    font-size: 2.35rem;
  }

  .test-intro-panel {
    gap: 18px;
  }

  .test-page .stage-strip {
    display: flex;
    grid-template-columns: none;
  }

  .test-page .stage-chip {
    background: rgba(239, 235, 222, 0.055);
  }

  .observation-progress,
  .test-page .question-card {
    padding: 18px;
  }

  .test-page .question-card h2 {
    font-size: 1.28rem;
    line-height: 1.58;
  }

  .test-page .option-button {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 70px;
    padding: 12px;
  }

  .test-page .quiz-actions {
    gap: 8px;
  }

  .test-page .quiz-actions button {
    width: 100%;
  }

  .archive-cover,
  .archive-structure-grid {
    grid-template-columns: 1fr;
  }

  .archive-cover {
    min-height: auto;
    gap: 14px;
    padding: 28px 0 34px;
  }

  .archive-cover-main,
  .archive-snapshot {
    padding: 20px;
  }

  .archive-cover h2 {
    font-size: 2.08rem;
  }

  .archive-summary,
  .archive-lead {
    font-size: 1rem;
  }

  .share-poster {
    margin-top: 18px;
    padding: 18px;
  }

  .share-poster-head,
  .share-poster-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .share-poster-body {
    padding: 24px 0 22px;
  }

  .share-poster h2 {
    font-size: 1.92rem;
  }

  .share-poster-body > p:not(.share-poster-kicker) {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .archive-detail-intro h2,
  .archive-closure h2 {
    font-size: 1.56rem;
  }

  .archive-closure-actions a {
    width: 100%;
  }
}

/* B621 site-wide visual sync for observation and archive pages */
html:has(body.test-page) {
  background: #111a21;
}

.test-page {
  --bg: #151f27;
  --surface: rgba(232, 224, 207, 0.07);
  --surface-2: rgba(232, 224, 207, 0.105);
  --text: #f1eadc;
  --muted: #cfc8b7;
  --line: rgba(225, 215, 194, 0.145);
  --gold: #c1a46f;
  --green: #94a79b;
  --blue: #9eafb5;
  --rose: #c4948e;
  --shadow: none;
  background:
    linear-gradient(116deg, rgba(215, 198, 162, 0.052), transparent 30%),
    linear-gradient(180deg, #17212a 0%, #1b252d 48%, #111a21 100%);
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

.test-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(241, 234, 220, 0.017) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(215, 198, 162, 0.012) 0 1px, transparent 1px 9px),
    linear-gradient(90deg, rgba(241, 234, 220, 0.028), transparent 20%, transparent 82%, rgba(148, 167, 155, 0.032));
  opacity: 0.78;
}

.test-page::after {
  content: "";
  position: fixed;
  inset: 18px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(232, 224, 207, 0.052);
  border-radius: 2px;
}

.test-shell {
  width: min(1000px, calc(100% - 48px));
  padding-top: 36px;
}

.test-orbit {
  right: -90px;
  top: 110px;
  width: 360px;
  height: 360px;
  border-color: rgba(232, 224, 207, 0.1);
  opacity: 0.34;
  box-shadow: none;
}

.test-orbit::before {
  inset: 132px -42px 158px -42px;
}

.test-orbit::after {
  inset: 178px -64px 154px -12px;
}

.test-topbar {
  margin-bottom: 54px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(225, 215, 194, 0.11);
  color: rgba(207, 200, 183, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.test-topbar a,
.test-topbar span {
  font-weight: 500;
}

.test-header {
  max-width: 720px;
  padding-bottom: 34px;
}

.test-header h1,
.test-intro-panel h2,
.test-page .question-card h2,
.archive-cover h2,
.archive-detail-intro h2,
.archive-closure h2 {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.test-page .eyebrow,
.panel-label,
.test-page .stage-chip span,
.test-page .screen-title span,
.test-page .handoff-panel span,
.test-page .advice-block span,
.archive-brand,
.archive-state,
.archive-snapshot > span,
.archive-note > span,
.archive-structure-card > span,
.archive-detail-intro > span,
.archive-closure > span,
.share-poster-head small,
.share-poster-foot small,
.share-poster-kicker {
  color: rgba(193, 164, 111, 0.86);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.test-page .subtitle,
.test-intro-panel p,
.test-page .hero-copy,
.test-page .screen-lead,
.test-page .summary-item span,
.test-page .inline-summary span,
.test-page .focus-block p,
.test-page .relation-card p,
.test-page .matrix-card p,
.test-page .unit-card p,
.test-page .unit-card small,
.test-page .path-step p,
.test-page .advice-block p,
.test-page .handoff-panel p,
.test-page .handoff-step p,
.archive-subtitle,
.archive-note p,
.archive-structure-card p,
.archive-detail-intro p,
.archive-closure p,
.share-poster-foot p {
  color: rgba(207, 200, 183, 0.82);
}

.test-page .source-note,
.test-intro-panel,
.observation-progress,
.test-page .question-card,
.test-page .stage-chip,
.test-page .summary-item,
.test-page .inline-summary,
.test-page .deep-panel,
.test-page .screen-summary,
.test-page .relation-card,
.test-page .matrix-card,
.test-page .path-step,
.test-page .handoff-bridge,
.test-page .focus-block,
.test-page .unit-card,
.test-page .handoff-panel,
.test-page .handoff-steps,
.test-page .advice-block,
.archive-cover-main,
.archive-snapshot,
.archive-note,
.archive-structure-card,
.archive-closure,
.test-page .report-map,
.test-page .report-map-node {
  border-color: rgba(225, 215, 194, 0.13);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(232, 224, 207, 0.064), rgba(232, 224, 207, 0.028)),
    rgba(17, 26, 33, 0.22);
  box-shadow: inset 0 1px 0 rgba(241, 234, 220, 0.035);
}

.test-intro-panel {
  padding: 30px;
}

.test-intro-panel small {
  color: rgba(193, 164, 111, 0.82);
}

.test-page .primary-action,
.test-page .primary-link,
.test-page .secondary-action,
.test-page .secondary-link {
  min-height: 44px;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.test-page .primary-action,
.test-page .primary-link {
  border-color: rgba(215, 198, 162, 0.46);
  background: rgba(232, 224, 207, 0.13);
  color: var(--text);
}

.test-page .secondary-action,
.test-page .secondary-link {
  border-color: rgba(225, 215, 194, 0.13);
  background: rgba(232, 224, 207, 0.045);
  color: rgba(241, 234, 220, 0.9);
}

.test-page #nextButton {
  opacity: 0.72;
}

.test-page .primary-action:disabled,
.test-page .secondary-action:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.test-page .stage-strip {
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.test-page .stage-strip::-webkit-scrollbar {
  display: none;
}

.test-page .stage-chip {
  min-height: 70px;
}

.test-page .stage-chip.is-active {
  border-color: rgba(215, 198, 162, 0.42);
  background:
    linear-gradient(180deg, rgba(215, 198, 162, 0.105), rgba(232, 224, 207, 0.032)),
    rgba(17, 26, 33, 0.22);
}

.observation-progress {
  padding: 16px 18px;
}

.test-page .progress-track {
  height: 6px;
  background: rgba(232, 224, 207, 0.08);
}

.test-page .progress-fill {
  background: linear-gradient(90deg, rgba(148, 167, 155, 0.9), rgba(193, 164, 111, 0.78));
}

.test-page .question-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.test-page .question-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 28px;
  left: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(215, 198, 162, 0.22), transparent);
}

.test-page .question-card.is-turning {
  opacity: 0.76;
  transform: translateY(4px);
}

.test-page .question-card.is-entering {
  animation: pageSettle 0.18s ease both;
}

.test-page .question-meta {
  gap: 7px;
}

.test-page .question-meta span {
  border-color: rgba(215, 198, 162, 0.18);
  border-radius: 999px;
  background: rgba(215, 198, 162, 0.055);
  color: rgba(193, 164, 111, 0.86);
  font-weight: 500;
}

.test-page .question-card h2 {
  font-size: 1.48rem;
  line-height: 1.72;
}

.test-page .options-list {
  gap: 14px;
}

.test-page .option-button {
  min-height: 76px;
  border-color: rgba(225, 215, 194, 0.13);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(232, 224, 207, 0.056), rgba(232, 224, 207, 0.024)),
    rgba(17, 26, 33, 0.2);
  color: rgba(241, 234, 220, 0.92);
}

.test-page .option-button:hover,
.test-page .option-button:focus-visible {
  border-color: rgba(215, 198, 162, 0.34);
  background:
    linear-gradient(180deg, rgba(232, 224, 207, 0.086), rgba(232, 224, 207, 0.038)),
    rgba(17, 26, 33, 0.2);
}

.test-page .option-button.is-selected,
.test-page .option-button.is-pending {
  border-color: rgba(215, 198, 162, 0.58);
  background:
    linear-gradient(90deg, rgba(193, 164, 111, 0.14), rgba(232, 224, 207, 0.062)),
    rgba(17, 26, 33, 0.2);
}

.test-page .option-button:disabled {
  cursor: default;
}

.test-page .option-key {
  background: rgba(232, 224, 207, 0.08);
  color: rgba(193, 164, 111, 0.9);
}

.test-page .option-button.is-selected .option-key,
.test-page .option-button.is-pending .option-key {
  background: rgba(232, 224, 207, 0.84);
  color: #152029;
}

.test-page .quiz-message {
  min-height: 24px;
  color: rgba(207, 200, 183, 0.75);
}

.archive-cover {
  grid-template-columns: minmax(0, 1fr);
  min-height: 62vh;
  padding: 36px 0 34px;
  border-color: rgba(225, 215, 194, 0.13);
  overflow: hidden;
}

.archive-cover::before {
  right: -84px;
  bottom: 46px;
  width: 280px;
  height: 280px;
  border-color: rgba(232, 224, 207, 0.1);
  box-shadow: none;
}

.archive-cover::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: 18%;
  width: 210px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(215, 198, 162, 0.22), transparent);
  transform: rotate(-8deg);
}

.archive-cover-main {
  padding: 34px;
}

.test-page .result-panel:not(.hidden) {
  margin-top: 12px;
}

.result-basics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.result-basics span,
.community-benefits span {
  border: 1px solid rgba(225, 215, 194, 0.14);
  border-radius: 999px;
  color: rgba(215, 198, 162, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 10px;
}

.archive-state {
  width: fit-content;
  border-radius: 6px;
  background: rgba(215, 198, 162, 0.055);
}

.archive-cover h2 {
  font-size: 2.44rem;
  line-height: 1.24;
}

.archive-summary,
.archive-lead,
.share-poster-body > p:not(.share-poster-kicker) {
  color: rgba(241, 234, 220, 0.92);
  font-weight: 500;
}

.archive-snapshot h3,
.archive-climate-line strong {
  color: rgba(241, 234, 220, 0.94);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-weight: 400;
}

.share-poster {
  border-color: rgba(225, 215, 194, 0.16);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(232, 224, 207, 0.07), rgba(232, 224, 207, 0.032)),
    rgba(17, 26, 33, 0.24);
}

.share-poster::before {
  border-color: rgba(232, 224, 207, 0.09);
}

.share-poster h2 {
  font-weight: 400;
}

.share-poster-tags span {
  border-radius: 6px;
  border-color: rgba(225, 215, 194, 0.14);
  color: rgba(207, 200, 183, 0.82);
  font-weight: 500;
}

.archive-structure-card {
  padding: 22px;
}

.archive-structure-card.climate,
.archive-structure-card.resident,
.archive-structure-card.risk,
.archive-structure-card.resource {
  border-top-width: 1px;
}

.archive-detail-intro {
  margin-bottom: 28px;
  padding-top: 2px;
}

.archive-detail-intro h2,
.archive-closure h2 {
  font-weight: 400;
}

.archive-closure {
  padding: 56px 28px 44px;
  background: transparent;
}

.archive-closure::before {
  content: "";
  display: block;
  width: min(320px, 70%);
  height: 1px;
  margin: 0 auto 26px;
  background: linear-gradient(90deg, transparent, rgba(215, 198, 162, 0.28), transparent);
}

@keyframes pageSettle {
  from {
    opacity: 0.78;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 880px) {
  .test-page::after {
    inset: 10px;
  }

  .test-shell {
    width: min(100% - 34px, 700px);
    padding-top: 28px;
  }

  .test-orbit {
    display: none;
  }

  .test-topbar {
    margin-bottom: 38px;
  }

  .test-intro-panel,
  .test-page .question-card,
  .archive-cover-main,
  .archive-snapshot,
  .share-poster,
  .archive-closure {
    padding: 20px;
  }

  .test-page .question-card h2 {
    font-size: 1.2rem;
    line-height: 1.7;
  }

  .test-page .option-button {
    min-height: 72px;
  }

  .test-page .quiz-actions {
    grid-template-columns: 1fr;
  }

  .test-page #nextButton {
    order: 3;
  }

  .archive-cover {
    min-height: auto;
    padding: 24px 0 28px;
  }

  .archive-cover h2 {
    font-size: 1.78rem;
    line-height: 1.34;
  }

  .module-double-layer.result-screen {
    padding: 20px;
  }

  .result-summary-card {
    padding: 10px 0 16px;
  }

  .archive-cover::after {
    display: none;
  }

  .archive-cover::before,
  .share-poster::before {
    display: none;
  }
}

.archive-cover .share-poster {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}

.archive-cover .share-poster-body {
  max-width: none;
  padding: 24px 0 20px;
}

.archive-cover .share-poster h2 {
  font-size: 2rem;
}

.archive-cover .share-poster-body > p:not(.share-poster-kicker) {
  margin-bottom: 16px;
  line-height: 1.68;
}

.foldout {
  margin-top: 16px;
  border: 1px solid rgba(225, 215, 194, 0.13);
  border-radius: 6px;
  background: rgba(232, 224, 207, 0.035);
}

.foldout > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  padding: 14px 16px;
  color: rgba(215, 198, 162, 0.88);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  list-style: none;
}

.foldout > summary::-webkit-details-marker {
  display: none;
}

.foldout > summary::after {
  content: "";
  flex: 0 0 auto;
  color: rgba(207, 200, 183, 0.62);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0;
}

.foldout-state {
  flex: 0 0 auto;
  border: 1px solid rgba(215, 198, 162, 0.24);
  border-radius: 999px;
  color: rgba(215, 198, 162, 0.9);
  font-size: 0.76rem;
  letter-spacing: 0;
  padding: 5px 9px;
}

.foldout-title {
  min-width: 0;
  text-align: right;
}

.foldout[open] > summary {
  border-bottom: 1px solid rgba(225, 215, 194, 0.1);
}

.foldout[open] > summary::after {
  content: "";
}

.foldout-body {
  display: grid;
  gap: 16px;
  padding: 0 16px 18px;
}

.foldout-body > div > h3 {
  margin-bottom: 12px;
  color: rgba(241, 234, 220, 0.9);
  font-size: 1rem;
}

.foldout-body .deep-panel,
.foldout-body .handoff-steps {
  margin: 0;
}

.foldout-body .handoff-step-grid {
  margin-top: 14px;
}

@media (max-width: 880px) {
  .archive-cover .share-poster {
    min-height: auto;
  }

  .archive-cover .share-poster-body {
    padding: 18px 0 16px;
  }

  .archive-cover .share-poster h2 {
    font-size: 1.54rem;
  }

  .archive-cover .share-poster-tags span {
    font-size: 0.78rem;
  }

  .foldout > summary {
    min-height: 50px;
    padding: 13px 14px;
  }

  .foldout-body {
    padding: 0 14px 16px;
  }

  .unit-foldout > summary {
    padding: 14px;
  }

  .unit-summary-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .unit-detail {
    padding: 0 14px 14px;
  }

  .node-illustration img {
    height: 160px;
    width: min(88%, 260px);
  }

  .node-illustration-resident img {
    height: 136px;
    width: min(82%, 210px);
  }
}

.result-inspect {
  border: 1px dashed rgba(199, 173, 109, 0.5);
  border-radius: 10px;
  background: rgba(255, 246, 222, 0.08);
  color: rgba(245, 239, 226, 0.86);
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
}

.result-screen .result-inspect {
  background: rgba(22, 34, 37, 0.04);
  color: var(--ink, #1c2a28);
}

.result-inspect strong {
  color: #c7ad6d;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-inspect dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.result-inspect dl div {
  display: grid;
  grid-template-columns: minmax(72px, 0.2fr) minmax(0, 1fr);
  gap: 10px;
}

.result-inspect dt {
  color: #a9843b;
  font-weight: 900;
}

.result-inspect dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.module-double-layer {
  display: grid;
  gap: 18px;
}

.result-summary-card,
.result-community-card,
.result-share-lite {
  border: 1px solid rgba(225, 215, 194, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(232, 224, 207, 0.055), rgba(232, 224, 207, 0.025)),
    rgba(17, 26, 33, 0.18);
  padding: 28px;
}

.module-double-layer.result-screen {
  padding: 26px;
}

.result-summary-card {
  background: transparent;
  border-color: rgba(225, 215, 194, 0.1);
  padding: 18px 2px 20px;
}

.result-summary-card h2,
.result-community-card h2,
.result-card-head h2 {
  color: rgba(241, 234, 220, 0.94);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-weight: 400;
  line-height: 1.35;
}

.result-summary-card h2,
.result-community-card h2 {
  font-size: 1.72rem;
  margin-bottom: 10px;
}

.result-summary-card h2 {
  font-size: 1.34rem;
}

.result-summary-card p,
.result-community-card p,
.result-card-head p {
  color: rgba(220, 214, 202, 0.78);
  line-height: 1.78;
  margin: 0;
}

.result-summary-card small {
  color: rgba(215, 198, 162, 0.78);
  display: block;
  margin-top: 12px;
}

.result-card-head {
  display: grid;
  gap: 8px;
}

.result-card-head h2 {
  font-size: 1.46rem;
  margin: 0;
}

.result-community-card {
  display: grid;
  gap: 20px;
}

.result-community-card > span,
.result-community-card div > span:first-child {
  color: rgba(199, 173, 109, 0.88);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.community-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.poster-render-stage {
  position: fixed;
  top: 0;
  left: -9999px;
  width: 360px;
  height: 640px;
  overflow: hidden;
  pointer-events: none;
}

.result-poster-canvas {
  position: relative;
  width: 360px;
  height: 640px;
  overflow: hidden;
  background: #132638;
  color: #f7f1e5;
}

.result-poster-background,
.result-poster-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.result-poster-background {
  object-fit: cover;
}

.result-poster-shade {
  background:
    linear-gradient(180deg, rgba(9, 19, 31, 0.18), rgba(9, 19, 31, 0.04) 34%, rgba(9, 19, 31, 0.18) 60%, rgba(8, 17, 26, 0.7)),
    linear-gradient(90deg, rgba(8, 17, 26, 0.62), rgba(8, 17, 26, 0.34) 62%, rgba(8, 17, 26, 0.1));
}

.result-poster-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 11px;
  height: 100%;
  padding: 24px 26px 18px;
  box-sizing: border-box;
}

.result-poster-head,
.result-poster-foot {
  display: grid;
  gap: 5px;
}

.result-poster-head {
  grid-template-columns: minmax(0, 1fr) 88px;
  align-items: start;
  gap: 14px;
}

.result-poster-head > div:first-child {
  display: grid;
  gap: 5px;
}

.result-poster-head > div:first-child span {
  color: rgba(249, 240, 221, 0.92);
  font-size: 13px;
  font-weight: 900;
}

.result-poster-head > div:first-child small {
  color: rgba(229, 211, 170, 0.92);
  font-size: 10px;
  font-weight: 800;
}

.result-poster-qr {
  justify-items: center;
  display: grid;
  gap: 5px;
}

.result-poster-qr img {
  width: 72px;
  height: 72px;
  border-radius: 7px;
  background: rgba(11, 19, 28, 0.44);
  padding: 7px;
  box-sizing: border-box;
}

.result-poster-qr small {
  max-width: 88px;
  color: rgba(241, 232, 213, 0.8);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.36;
  text-align: center;
}

.result-poster-qr small span {
  display: block;
  white-space: nowrap;
}

.result-poster-main {
  align-content: start;
  display: grid;
  gap: 8px;
  max-width: 260px;
  padding-top: 4px;
}

.result-poster-main p {
  color: rgba(229, 211, 170, 0.98);
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

.result-poster-hero {
  display: grid;
  gap: 2px;
  color: #fbf5ea;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
}

.result-poster-story {
  display: grid;
  align-content: start;
  gap: 7px;
  max-width: 258px;
}

.result-poster-story article {
  display: grid;
  gap: 3px;
}

.result-poster-story span {
  color: rgba(229, 211, 170, 0.9);
  font-size: 10px;
  font-weight: 700;
}

.result-poster-story strong {
  color: rgba(249, 244, 235, 0.96);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.34;
}

.result-poster-story small {
  color: rgba(246, 240, 228, 0.88);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.36;
}

.result-poster-story small em {
  display: block;
  font-style: normal;
}

.result-poster-governance strong {
  display: grid;
  gap: 1px;
}

.result-poster-governance em {
  display: block;
  color: rgba(249, 244, 235, 0.96);
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.34;
  white-space: nowrap;
}

.result-poster-foot {
  border-top: 1px solid rgba(248, 238, 218, 0.18);
  display: grid;
  gap: 1px;
  padding-top: 9px;
}

.result-poster-foot span {
  color: rgba(249, 240, 221, 0.92);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.34;
}

.poster-preview {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.poster-preview.hidden {
  display: none;
}

.poster-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 10, 16, 0.78);
}

.poster-preview-panel {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  border: 1px solid rgba(225, 215, 194, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 31, 0.96);
  display: grid;
  gap: 14px;
  padding: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.poster-preview-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(225, 215, 194, 0.2);
  border-radius: 50%;
  background: rgba(12, 20, 27, 0.76);
  color: rgba(247, 241, 229, 0.92);
  font-size: 20px;
}

.poster-preview-image {
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.poster-preview-panel p {
  color: rgba(220, 214, 202, 0.78);
  margin: 0;
  text-align: center;
}

.poster-preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.poster-preview-open {
  overflow: hidden;
}

@media (max-width: 430px) {
  .poster-preview {
    align-items: end;
    padding: 12px;
  }

  .poster-preview-panel {
    width: 100%;
  }
}

.module-public-layer {
  display: grid;
  gap: 16px;
}

.module-hidden-note {
  border: 1px dashed rgba(199, 173, 109, 0.36);
  border-radius: 8px;
  background: rgba(199, 173, 109, 0.07);
  display: grid;
  gap: 8px;
  padding: 14px;
}

.module-hidden-note span {
  color: rgba(199, 173, 109, 0.86);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-hidden-note strong {
  color: rgba(241, 234, 220, 0.9);
  font-size: 1.05rem;
}

.module-hidden-note p {
  color: rgba(220, 214, 202, 0.76);
  margin: 0;
}

.module-public-layer > h3 {
  color: rgba(241, 234, 220, 0.88);
  font-size: 0.98rem;
  margin: 0;
}

.module-public-grid {
  margin-top: 0;
}

.unit-foldout {
  overflow: hidden;
  padding: 0;
  transition: background 160ms ease, border-color 160ms ease;
}

.unit-foldout > summary {
  cursor: pointer;
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 16px;
}

.unit-foldout > summary::-webkit-details-marker {
  display: none;
}

.unit-foldout > summary:focus-visible {
  outline: 2px solid rgba(215, 198, 162, 0.36);
  outline-offset: -2px;
}

.unit-summary-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.unit-summary-head strong {
  min-width: 0;
}

.unit-summary-copy {
  margin: 0;
}

.node-illustration {
  align-items: center;
  background: transparent;
  display: flex;
  justify-content: center;
  margin: 0 auto 6px;
  pointer-events: none;
  width: 100%;
}

.node-illustration img {
  background: transparent;
  display: block;
  height: 190px;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  width: min(82%, 300px);
}

.unit-card.climate .node-illustration img {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.2));
  opacity: 0.96;
}

.node-illustration-resident {
  margin-bottom: 10px;
}

.node-illustration-resident img {
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.18));
  height: 154px;
  object-fit: contain;
  opacity: 0.98;
  width: min(74%, 230px);
}

.unit-expand-state {
  border: 1px solid rgba(215, 198, 162, 0.24);
  border-radius: 6px;
  color: rgba(215, 198, 162, 0.88);
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  min-width: 72px;
  padding: 6px 10px;
  text-align: center;
  white-space: nowrap;
}

.unit-foldout:hover,
.unit-foldout:focus-within {
  border-color: rgba(215, 198, 162, 0.28);
  background: rgba(232, 224, 207, 0.055);
}

.unit-foldout[open] > summary {
  border-bottom: 1px solid rgba(225, 215, 194, 0.1);
}

.unit-foldout[open] {
  border-color: rgba(215, 198, 162, 0.3);
  background:
    linear-gradient(180deg, rgba(215, 198, 162, 0.06), rgba(232, 224, 207, 0.025)),
    rgba(17, 26, 33, 0.18);
}

.unit-foldout[open] .unit-expand-state {
  background: rgba(215, 198, 162, 0.12);
  border-color: rgba(215, 198, 162, 0.4);
}

.unit-detail {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.unit-detail p {
  color: rgba(220, 214, 202, 0.78);
  line-height: 1.78;
  margin: 0;
}

.unit-detail-bridge {
  border-left: 2px solid rgba(199, 173, 109, 0.38);
  padding-left: 10px;
}

.unit-detail-bridge strong {
  color: rgba(241, 234, 220, 0.9);
}

.module-takeaway .screen-summary {
  margin: 0;
  border-color: rgba(199, 173, 109, 0.22);
  background: rgba(199, 173, 109, 0.06);
}

.module-extra-note {
  border-left: 2px solid rgba(199, 173, 109, 0.34);
  color: rgba(220, 214, 202, 0.62);
  line-height: 1.65;
  margin: 0;
  padding-left: 10px;
}

.primary-link.is-disabled {
  cursor: default;
  opacity: 0.68;
  pointer-events: none;
}

.module-deep-bridge {
  border: 1px solid rgba(199, 173, 109, 0.2);
  border-radius: 8px;
  background: rgba(199, 173, 109, 0.055);
  display: grid;
  gap: 9px;
  padding: 14px;
}

.module-deep-bridge h3 {
  color: rgba(241, 234, 220, 0.92);
  font-size: 1.02rem;
  margin: 0;
}

.module-deep-bridge p {
  color: rgba(220, 214, 202, 0.82);
  line-height: 1.78;
  margin: 0;
}

.module-deep-bridge small {
  color: rgba(220, 214, 202, 0.62);
  line-height: 1.65;
}

.module-deep-bridge.is-compact:empty {
  display: none;
}

.module-deep-bridge.is-compact {
  background: transparent;
  border-style: dashed;
}

.module-deep-bridge.is-compact p strong {
  color: rgba(241, 234, 220, 0.9);
}

.module-deep-list {
  display: grid;
  gap: 10px;
}

.unit-deep-card {
  border: 1px solid rgba(225, 215, 194, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 7px;
  padding: 13px;
}

.unit-deep-card strong {
  color: rgba(241, 234, 220, 0.92);
}

.unit-deep-card p {
  color: rgba(220, 214, 202, 0.78);
  line-height: 1.78;
  margin: 0;
}

.result-inspect dd {
  white-space: pre-wrap;
}

.test-page .question-card.is-analyzing {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 310px;
}

.analysis-transition {
  display: grid;
  gap: 14px;
  justify-items: center;
  max-width: 520px;
  padding: 22px 0;
  text-align: center;
}

.analysis-transition span {
  border: 1px solid rgba(215, 198, 162, 0.22);
  border-radius: 999px;
  color: rgba(215, 198, 162, 0.92);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 10px;
}

.analysis-transition h2 {
  color: rgba(241, 234, 220, 0.96);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-size: 1.72rem;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}

.analysis-transition p {
  color: rgba(220, 214, 202, 0.72);
  line-height: 1.72;
  margin: 0;
}

.analysis-pulse {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding-top: 4px;
}

.analysis-pulse i {
  animation: analysisPulse 1s ease-in-out infinite;
  background: rgba(215, 198, 162, 0.82);
  border-radius: 999px;
  display: block;
  height: 7px;
  width: 7px;
}

.analysis-pulse i:nth-child(2) {
  animation-delay: 0.14s;
}

.analysis-pulse i:nth-child(3) {
  animation-delay: 0.28s;
}

.resident-role-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resident-role-card {
  display: grid;
  gap: 12px;
}

.resident-role-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.resident-role-label,
.resident-density,
.governance-target {
  border: 1px solid rgba(215, 198, 162, 0.2);
  border-radius: 999px;
  color: rgba(215, 198, 162, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 6px 9px;
}

.resident-density {
  color: rgba(241, 234, 220, 0.9);
}

.resident-role-card .unit-heading {
  margin-bottom: 0;
}

.resident-density-foldout {
  border: 1px solid rgba(225, 215, 194, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(232, 224, 207, 0.045), rgba(232, 224, 207, 0.018)),
    rgba(17, 26, 33, 0.16);
  overflow: hidden;
}

.resident-density-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 52px;
  padding: 14px 16px;
}

.resident-density-heading span {
  color: rgba(215, 198, 162, 0.9);
  font-size: 0.84rem;
  font-weight: 800;
}

.resident-density-heading strong {
  border: 1px solid rgba(215, 198, 162, 0.2);
  border-radius: 999px;
  color: rgba(241, 234, 220, 0.86);
  font-size: 0.78rem;
  padding: 5px 9px;
}

.resident-density-heading {
  border-bottom: 1px solid rgba(225, 215, 194, 0.1);
}

.resident-density-list {
  display: grid;
  gap: 8px;
  padding: 12px 16px 16px;
}

.resident-density-item {
  border: 1px solid rgba(225, 215, 194, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.resident-density-row {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  min-height: 42px;
  padding: 9px 11px;
}

.resident-density-row::-webkit-details-marker {
  display: none;
}

.resident-density-row span {
  color: rgba(220, 214, 202, 0.78);
}

.resident-density-row-meta {
  align-items: center;
  display: flex;
  gap: 8px;
}

.resident-density-row-meta::after {
  border-bottom: 1.5px solid rgba(215, 198, 162, 0.82);
  border-right: 1.5px solid rgba(215, 198, 162, 0.82);
  content: "";
  display: block;
  height: 7px;
  transform: rotate(45deg);
  transition: transform 160ms ease;
  width: 7px;
}

.resident-density-row strong {
  color: rgba(241, 234, 220, 0.92);
  font-size: 0.92rem;
}

.resident-density-item[open] .resident-density-row {
  border-bottom: 1px solid rgba(225, 215, 194, 0.1);
}

.resident-density-item[open] .resident-density-row-meta::after {
  transform: rotate(225deg);
}

.resident-density-detail {
  display: grid;
  gap: 10px;
  padding: 12px 11px 14px;
}

.resident-density-detail p {
  color: rgba(220, 214, 202, 0.78);
  line-height: 1.8;
  margin: 0;
}

.resident-density-summary-copy {
  color: rgba(241, 234, 220, 0.9) !important;
}

.governance-path-layer {
  gap: 18px;
}

.governance-path-steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.governance-step-card {
  border: 1px solid rgba(225, 215, 194, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(232, 224, 207, 0.056), rgba(232, 224, 207, 0.024)),
    rgba(17, 26, 33, 0.2);
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 16px;
}

.governance-step-card.clean {
  border-top: 4px solid var(--rose);
}

.governance-step-card.guard {
  border-top: 4px solid var(--green);
}

.governance-step-card.cultivate {
  border-top: 4px solid var(--gold);
}

.governance-step-head {
  align-items: center;
  display: flex;
  gap: 9px;
}

.governance-step-head span {
  color: rgba(215, 198, 162, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
}

.governance-step-head strong {
  color: rgba(215, 198, 162, 0.92);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.governance-step-card h3 {
  color: rgba(241, 234, 220, 0.94);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.42;
  margin: 0;
}

.governance-target {
  justify-self: start;
}

.governance-step-card p {
  color: rgba(220, 214, 202, 0.76);
  line-height: 1.72;
  margin: 0;
}

.governance-path-layer .handoff-steps {
  margin-top: 0;
}

@keyframes analysisPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@media (max-width: 880px) {
  .resident-role-grid,
  .governance-path-steps {
    grid-template-columns: 1fr;
  }

  .analysis-transition h2 {
    font-size: 1.42rem;
  }

  .resident-role-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* UX polish: draft resume, result navigation, local actions */
.draft-resume-hint {
  color: rgba(207, 200, 183, 0.78);
  font-size: 0.86rem;
  line-height: 1.6;
  margin: 2px 0 0;
  max-width: 240px;
}

.result-anchor-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px;
  position: sticky;
  scrollbar-width: none;
  top: 10px;
  z-index: 5;
}

.result-anchor-nav::-webkit-scrollbar {
  display: none;
}

.result-anchor-nav a {
  border: 1px solid rgba(225, 215, 194, 0.14);
  border-radius: 999px;
  color: rgba(241, 234, 220, 0.88);
  flex: 0 0 auto;
  font-size: 0.88rem;
  line-height: 1;
  padding: 10px 13px;
  text-decoration: none;
}

.result-anchor-nav a:focus-visible,
.archive-closure-actions button:focus-visible,
.archive-closure-actions a:focus-visible,
.draft-resume-button:focus-visible {
  outline: 2px solid rgba(215, 198, 162, 0.72);
  outline-offset: 3px;
}

.result-lite-card {
  border: 1px solid rgba(225, 215, 194, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(232, 224, 207, 0.07), rgba(232, 224, 207, 0.028)),
    rgba(17, 26, 33, 0.2);
  display: grid;
  gap: 12px;
  padding: 18px;
}

.result-lite-card > span {
  color: rgba(199, 173, 109, 0.88);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.result-lite-card h3 {
  color: rgba(241, 234, 220, 0.94);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

.result-lite-card p {
  color: rgba(220, 214, 202, 0.8);
  line-height: 1.78;
}

.result-lite-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-lite-tags strong,
.community-benefits span {
  border: 1px solid rgba(225, 215, 194, 0.13);
  border-radius: 999px;
  color: rgba(241, 234, 220, 0.82);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 10px;
}

.archive-closure-actions button {
  cursor: pointer;
}

.result-action-message {
  color: rgba(215, 198, 162, 0.86);
  min-height: 1.4em;
}

.result-action-message[data-tone="warn"] {
  color: rgba(211, 145, 133, 0.9);
}

.privacy-note {
  border-top: 1px solid rgba(225, 215, 194, 0.1);
  color: rgba(207, 200, 183, 0.66);
  font-size: 0.84rem;
  margin-top: -4px;
  padding-top: 14px;
}

@media (max-width: 900px) {
  .home-section.home-hero {
    align-content: start;
    min-height: auto;
    padding-bottom: 42px;
    padding-top: 82px;
  }

  .home-hero-copy {
    max-width: 100%;
  }

  .home-subtitle {
    margin-bottom: 20px;
  }

  .home-actions {
    gap: 10px;
  }
}

@media (max-width: 880px) {
  .test-shell {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    overflow: hidden;
    padding-left: 14px;
    padding-right: 14px;
    width: auto;
  }

  .test-header h1,
  .test-intro-panel h2,
  .test-intro-panel p,
  .test-intro-panel small {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .test-page .keep-together {
    white-space: normal;
  }

  .test-intro-panel {
    grid-template-columns: 1fr;
    max-width: 100%;
    overflow: hidden;
    padding: 22px;
    width: auto;
  }

  .test-intro-panel > *,
  .test-page .intro-actions {
    min-width: 0;
  }

  .test-page .intro-actions {
    align-items: stretch;
    width: 100%;
  }

  .test-page .intro-actions button,
  .archive-closure-actions a,
  .archive-closure-actions button {
    width: 100%;
  }

  .draft-resume-hint {
    max-width: none;
    text-align: center;
  }

  .result-anchor-nav {
    margin-inline: calc((100vw - 100%) / -2);
    padding-inline: 14px;
    position: static;
  }

  .result-community-card {
    padding: 22px;
  }

  .result-lite-card {
    padding: 16px;
  }
}
