:root {
  --bg: linear-gradient(180deg, #f7f0e3 0%, #efe7d7 100%);
  --panel: rgba(255, 251, 244, 0.94);
  --text: #241d17;
  --muted: #6d6154;
  --line: #d8c8b0;
  --fill-left: #8f3d46;
  --fill-right: #2e6d67;
  --fill-neutral: #f7f1e6;
  --accent: #c39a49;
  --accent-soft: #efe0b8;
  --header-bg: rgba(255, 248, 239, 0.92);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Serif SC', serif;
}

.question-title,
.question-reference {
  font-family: 'Times New Roman', 'Noto Serif SC', 'Songti SC', 'STSong', serif;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(36, 29, 23, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 29, 23, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black 10%, transparent 80%);
}

#app {
  min-height: 100vh;
}

.site-header {
  display: flex;
  justify-content: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(8px);
}

.brand {
  font-size: 24px;
  cursor: pointer;
  color: var(--fill-left);
}

.page {
  width: min(980px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero-card,
.question-shell,
.intro-box,
.results-hero-panel,
.report-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(66, 42, 22, 0.06);
}

.hero-card {
  text-align: center;
  padding: 34px 24px;
}

.hero-card h1 {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.14;
}

.lead {
  max-width: 680px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions,
.results-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.primary-btn,
.answer-btn,
.ghost-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.96);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.primary-btn {
  min-width: 164px;
  padding: 12px 18px;
  font-size: 16px;
  background: linear-gradient(180deg, #d0ab60 0%, #bb8f38 100%);
  border-color: #b08739;
  color: #fffaf0;
}

.primary-btn:hover,
.answer-btn:hover,
.ghost-btn:hover {
  background: #f7efe1;
}

.primary-btn:hover {
  background: linear-gradient(180deg, #d7b36a 0%, #c4973e 100%);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.persona-guide-card {
  margin-top: 18px;
  padding: 24px;
}

.persona-guide-card h2 {
  margin: 10px 0 0;
  font-size: 28px;
}

.persona-guide-lead {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.persona-card {
  padding: 16px 18px;
  border: 1px solid rgba(120, 102, 78, 0.16);
  background: rgba(255, 248, 238, 0.82);
}

.persona-card-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d9c08c;
  background: linear-gradient(180deg, #fff6de 0%, #f3e1b5 100%);
  color: #6b4612;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.persona-card h3 {
  margin: 12px 0 8px;
  font-size: 20px;
}

.persona-dimension-card h3 {
  font-size: 18px;
}

.persona-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.intro-box {
  padding: 20px;
}

.intro-box h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.intro-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.question-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px;
  text-align: left;
}

.statement-wrap {
  margin-top: 20px;
  margin-bottom: 30px;
}

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

.progress-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-text {
  color: var(--muted);
  font-size: 16px;
}

.mini-back-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.9);
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.mini-skip-btn {
  color: #7a4d1a;
  border-color: #d8c08e;
  background: linear-gradient(180deg, #fff7e2 0%, #f4e3b8 100%);
}

.mini-back-btn:hover {
  background: #f7efe1;
  color: var(--text);
}

.progress-bar {
  width: 100%;
  height: 14px;
  margin-top: 16px;
  border: 1px solid var(--line);
  background: #ededed;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--fill-left), var(--accent), var(--fill-right));
}

.question-title {
  margin: 10px 0 0;
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.8;
  font-weight: 400;
  font-family: 'Times New Roman', 'Noto Serif SC', 'Songti SC', 'STSong', serif;
}

.answer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 280px;
  margin: 34px auto 0;
}

.answer-btn {
  padding: 12px 16px;
  font-size: 16px;
  border-left: 4px solid transparent;
  text-align: center;
}

.answer-btn:nth-child(1) { border-left-color: var(--fill-right); }
.answer-btn:nth-child(2) { border-left-color: #5a9089; }
.answer-btn:nth-child(3) { border-left-color: var(--accent-soft); }
.answer-btn:nth-child(4) { border-left-color: #b36a73; }
.answer-btn:nth-child(5) { border-left-color: var(--fill-left); }

.results-page {
  padding-top: 16px;
}

.results-hero-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 26px 30px;
}

.results-hero-sidehead {
  font-size: 30px;
  font-weight: 700;
  color: #111;
  font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  line-height: 1.15;
}

.results-hero-center-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.results-hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.results-main-title {
  margin: 16px 0 0;
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1;
  color: var(--fill-left);
  letter-spacing: -0.03em;
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 900;
}

.results-type-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.results-type-code {
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1;
  letter-spacing: 0.03em;
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 800;
  color: #111;
}

.question-reference {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(120, 102, 78, 0.18);
  font-size: 12px;
  line-height: 1.65;
  color: rgba(43, 36, 31, 0.56);
  font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
}

.results-intro-card {
  margin-top: 18px;
}

.results-intro-head {
  font-size: 30px;
  font-weight: 700;
  color: #111;
  font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  line-height: 1.15;
  margin: 10px 0 14px;
}

.results-summary {
  margin: 0;
  font-size: 17px;
  line-height: 1.95;
}

.results-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.results-tags-boxed {
  gap: 10px;
}

.result-tag {
  color: var(--fill-left);
  font-size: 19px;
  font-weight: 700;
}

.result-tag-chip {
  color: var(--fill-left);
  font-size: 18px;
  font-weight: 700;
  padding: 4px 10px;
}

.results-illustration-frame {
  width: min(100%, 280px);
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(120, 102, 78, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 18%, rgba(195, 154, 73, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(255, 251, 244, 0.95), rgba(244, 232, 208, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(88, 63, 31, 0.12);
}

.results-illustration-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.results-illustration-note {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.report-grid > .report-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
}

.report-card {
  padding: 24px;
  height: 100%;
}

.report-card h2 {
  margin: 10px 0 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
}

.report-card p {
  margin: 14px 0 0;
  line-height: 1.9;
  color: var(--text);
}

.report-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.mentor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mentor-card-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mentor-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #fffaf1;
}

.mentor-card-name {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.mentor-card-desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.premium-confirm-note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.mentor-list-report {
  margin-top: 16px;
}

.song-daypart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.song-daypart-card {
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.72);
  padding: 14px;
}

.song-daypart-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.song-daypart-desc {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.song-pick-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.song-pick-item {
  min-height: 100%;
  line-height: 1.6;
  white-space: normal;
  display: grid;
  gap: 4px;
}

.song-pick-item small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.mentor-item,
.trait-item,
.trait-empty {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #fffaf1;
}

.axis-report-card,
.trait-report-card,
.results-relationship-card,
.career-report-card,
.premium-lock-card {
  margin-top: 18px;
}

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

.relationship-panel {
  padding: 18px;
  border: 1px solid var(--line);
  background: #fffaf1;
}

.relationship-panel-soulmate {
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.98), rgba(255, 244, 225, 0.98));
}

.relationship-panel-rival {
  background: linear-gradient(180deg, rgba(250, 244, 240, 0.98), rgba(246, 234, 226, 0.98));
}

.relationship-kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.relationship-type-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
}

.relationship-type-code {
  font-size: 24px;
  font-weight: 800;
  color: var(--fill-left);
}

.relationship-type-name {
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.relationship-advice {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(120, 102, 78, 0.14);
  background: rgba(255, 251, 244, 0.92);
}

.relationship-advice-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.career-card-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.career-radar-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 12px 10px;
  border: 1px solid rgba(120, 102, 78, 0.14);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(247, 239, 225, 0.96));
  overflow: hidden;
}

.career-radar {
  width: min(100%, 300px);
  height: auto;
  display: block;
  overflow: visible;
}

.career-radar-ring {
  fill: none;
  stroke: rgba(122, 77, 26, 0.16);
  stroke-width: 1;
}

.career-radar-axis {
  stroke: rgba(122, 77, 26, 0.18);
  stroke-width: 1;
}

.career-radar-shape {
  fill: rgba(176, 135, 57, 0.24);
  stroke: #9a6722;
  stroke-width: 2;
}

.career-radar-dot {
  fill: #9a6722;
}

.career-radar-label {
  fill: #6a4a21;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.career-detail-panel {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid rgba(120, 102, 78, 0.14);
  background: rgba(255, 251, 244, 0.92);
}

.career-best-match-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.career-best-match-title {
  margin-top: 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  color: var(--fill-left);
  font-weight: 800;
}

.career-best-match-reason {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
}

.premium-lock-card {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(246, 235, 210, 0.98)),
    radial-gradient(circle at top right, rgba(195, 154, 73, 0.12), transparent 30%);
}

.premium-preview-grid {
  margin-top: 18px;
}

.premium-preview-radar {
  filter: blur(1.6px);
  opacity: 0.82;
}

.premium-preview-panel {
  position: relative;
}

.premium-masked-title {
  letter-spacing: 0.08em;
  filter: blur(2.4px);
  user-select: none;
}

.premium-preview-fade::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 56%;
  background: linear-gradient(180deg, rgba(246, 235, 210, 0) 0%, rgba(246, 235, 210, 0.62) 42%, rgba(246, 235, 210, 0.96) 78%, rgba(246, 235, 210, 1) 100%);
  pointer-events: none;
}

.premium-preview-copy {
  overflow: hidden;
}

.premium-preview-text {
  max-height: 112px;
  overflow: hidden;
  position: relative;
}

.premium-preview-text::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 56px;
  background: linear-gradient(180deg, rgba(255, 251, 244, 0) 0%, rgba(255, 251, 244, 0.88) 62%, rgba(255, 251, 244, 1) 100%);
}

.premium-lock-actions {
  justify-content: center;
  margin-top: 18px;
}

.premium-benefit-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.premium-benefit-item {
  padding: 12px 14px;
  border: 1px solid rgba(120, 102, 78, 0.16);
  background: rgba(255, 250, 241, 0.92);
  line-height: 1.8;
}

.premium-question-list {
  margin-top: 18px;
}

.premium-question-item {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.premium-question-item:hover {
  transform: translateY(-1px);
  border-color: rgba(166, 63, 75, 0.28);
  background: rgba(255, 247, 235, 0.98);
}

.premium-confirm-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(120, 102, 78, 0.18);
  background: rgba(255, 250, 241, 0.94);
}

.premium-confirm-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.premium-confirm-copy {
  margin: 10px 0 0;
  line-height: 1.8;
}

.premium-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.premium-confirm-actions-single {
  gap: 0;
}

.premium-unlock-btn {
  position: relative;
  overflow: visible;
  min-width: 220px;
}

.premium-unlock-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1;
  border-radius: 999px;
  background: #a63f4b;
  color: #fff7e8;
  box-shadow: 0 6px 16px rgba(166, 63, 75, 0.28);
}

.premium-status-message {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(120, 102, 78, 0.18);
  background: rgba(255, 250, 241, 0.9);
  color: #6a4a21;
  line-height: 1.75;
}

.axis-report-card,
.trait-report-card {
  margin-top: 18px;
}

.results-summary p {
  margin: 14px 0 0;
  line-height: 1.95;
}

.blurb-emphasis {
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(122, 77, 26, 0.72);
  font-weight: 700;
}

.results-summary p:first-child {
  margin-top: 0;
}

.results-rarity-line {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.8;
  color: #46311d;
}

.rarity-value {
  color: var(--fill-left);
  font-weight: 800;
  font-size: 1.08em;
}

.axis-report-list {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 24px;
}

.axis-row + .axis-row {
  margin-top: 0;
}

.axis-row {
  position: relative;
  padding-top: 28px;
}

.axis-row-top {
  position: absolute;
  left: var(--marker);
  top: 0;
  transform: translateX(-50%);
  margin: 0;
  white-space: nowrap;
}

.axis-result-text {
  font-size: 17px;
  color: #111;
  font-weight: 700;
}

.axis-result-short,
.axis-result-gap {
  color: #111;
}

.axis-result-pct {
  color: var(--axis-color);
}

.axis-track-wrap {
  padding: 0 6px;
}

.axis-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--axis-color) 18%, white 82%);
  overflow: visible;
}

.axis-track-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--axis-color) 90%, white 10%), color-mix(in srgb, var(--axis-color) 78%, white 22%));
}

.axis-marker {
  position: absolute;
  top: 50%;
  left: var(--marker);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 4px solid var(--axis-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.axis-row-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

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

.trait-list-report {
  margin-top: 16px;
}

.trait-empty {
  color: var(--muted);
}

.persona-guide-card-essay {
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(250, 243, 230, 0.98)),
    radial-gradient(circle at top right, rgba(182, 136, 57, 0.08), transparent 28%);
}

.persona-guide-lead {
  max-width: 980px;
  font-size: 16px;
  line-height: 1.95;
}

.persona-dimension-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}

.persona-dimension-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid rgba(120, 102, 78, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.95), rgba(248, 240, 226, 0.95));
}

.persona-dimension-code {
  font-family: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #7a4d1a;
  white-space: nowrap;
  padding-top: 2px;
}

.persona-dimension-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.persona-dimension-letters {
  font-family: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #8a6840;
}

.persona-dimension-copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
  color: #332821;
}

.persona-dimension-copy em,
.persona-dimension-copy i {
  font-family: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  font-style: italic;
}

@media (max-width: 900px) {
  .persona-dimension-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .persona-dimension-code {
    font-size: 28px;
  }
}

@media (max-width: 900px) {
  .report-grid,
  .intro-grid,
  .axis-report-list,
  .intake-summary-grid,
  .intake-inline-grid,
  .intake-inline-grid-two,
  .genre-picker,
  .premium-lock-list,
  .song-daypart-grid {
    grid-template-columns: 1fr;
  }
}

.intake-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.intake-hero-card {
  text-align: left;
}

.intake-lead {
  max-width: 760px;
  margin-left: 0;
}

.intake-inline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
  align-items: start;
}

.intake-inline-grid-single {
  grid-template-columns: 1fr;
}

.intake-select {
  position: relative;
}

.intake-select-trigger-static {
  cursor: default;
}

.intake-select-panel-static {
  margin-top: 0;
}

.intake-select-trigger-static:hover {
  background: #fffaf1;
}

.intake-select-trigger {
  width: 100%;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #fffaf1;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.intake-summary-trigger {
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}

.intake-select-trigger:hover {
  background: #f8efdf;
}

.intake-summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.intake-select-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  font-size: 15px;
  font-weight: 700;
}

.intake-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #d9c08c;
  background: linear-gradient(180deg, #fff6de 0%, #f3e1b5 100%);
  color: #6b4612;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

.intro-box h2 {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  line-height: 1.15;
}

.intro-ornament {
  font-family: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  font-size: 0.88em;
  letter-spacing: 0.04em;
  color: #7a4d1a;
  line-height: 1;
  flex: 0 0 auto;
  transform: translateY(0.02em);
}

.summary-chip-muted {
  border-color: rgba(120, 102, 78, 0.18);
  background: #f8f2e7;
  color: var(--muted);
  font-weight: 500;
}

.intake-select.is-open .intake-select-trigger {
  border-color: #b08739;
  box-shadow: 0 0 0 2px rgba(195, 154, 73, 0.12);
}

.intake-select-panel {
  margin-top: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 244, 0.98);
  padding: 12px;
  max-height: 420px;
  overflow: auto;
}

.intake-select-note {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.genre-picker {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1.08fr);
  gap: 14px;
}

.genre-main-list,
.genre-sub-panel {
  min-height: 320px;
  max-height: 320px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.genre-sub-panel {
  border-left: 1px solid rgba(120, 102, 78, 0.14);
  padding-left: 14px;
}

.genre-main-item.is-active {
  border-color: #b08739;
  background: #f8efdf;
}

.genre-main-label,
.genre-label-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.genre-main-label {
  flex: 1 1 auto;
  min-width: 0;
}

.genre-label-primary {
  display: block;
  width: 100%;
  min-width: 0;
  line-height: 1.45;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.genre-label-secondary {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.genre-main-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.genre-main-arrow {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.genre-sub-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mini-select-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fffaf1;
  color: var(--text);
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

.mini-select-btn.is-selected {
  border-color: #b08739;
  background: linear-gradient(180deg, #f6e6bf 0%, #f0d18d 100%);
  color: #5e3b07;
}

.mini-select-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.intake-option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.intake-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(120, 102, 78, 0.16);
  background: #fffaf1;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.intake-option > :first-child {
  min-width: 0;
}

.intake-option:hover {
  background: #f8efdf;
}

.intake-option.is-selected {
  border-color: #b08739;
  background: linear-gradient(180deg, #f6e6bf 0%, #f0d18d 100%);
  color: #5e3b07;
}

.intake-option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.intake-option-check {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  color: #7a4d1a;
}

.intake-card h2 {
  margin: 8px 0 0;
}

.intake-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.intake-counter {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff8ed;
  color: var(--fill-left);
  font-size: 13px;
}

.selection-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.selection-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #fffaf1;
  color: var(--text);
  padding: 10px 14px;
  font: inherit;
  line-height: 1.45;
  cursor: pointer;
  text-align: left;
}

.selection-chip:hover {
  background: #f8efdf;
}

.selection-chip.is-selected {
  border-color: #b08739;
  background: linear-gradient(180deg, #f6e6bf 0%, #f0d18d 100%);
  color: #5e3b07;
}

.selection-chip.is-disabled,
.is-disabled-btn {
  opacity: 0.45;
  cursor: not-allowed;
}

.selection-chip-sub.is-selected,
.selection-chip-identity.is-selected {
  border-color: #7a4d1a;
}

.intake-empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  background: rgba(255, 251, 244, 0.75);
  color: var(--muted);
  line-height: 1.8;
}

.subgenre-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.subgenre-group {
  padding-top: 4px;
  border-top: 1px solid rgba(120, 102, 78, 0.14);
}

.subgenre-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.subgenre-group-title {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 700;
}

.intake-summary-single {
  margin-top: 14px;
}

.intake-summary-single h3,
.intake-summary-grid h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

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

.intake-picked-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intake-actions {
  justify-content: flex-end;
  gap: 12px;
}

.intake-actions-inline {
  margin-top: 22px;
}

.intake-ghost-btn {
  min-width: 120px;
  padding: 12px 18px;
  font-size: 16px;
}

@media (max-width: 800px) {
  .page {
    width: min(100%, calc(100% - 16px));
    padding-top: 16px;
  }

  .hero-card,
  .question-shell,
  .intro-box,
  .results-hero-panel,
  .report-card {
    padding: 18px;
  }

  .progress-head,
  .intake-section-head,
  .genre-sub-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .progress-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

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

  .results-hero-sidehead {
    font-size: 34px;
  }

  .results-main-title {
    font-size: clamp(38px, 12vw, 58px);
  }

  .results-type-code {
    font-size: clamp(28px, 9vw, 42px);
  }

  .intake-actions {
    justify-content: stretch;
    flex-direction: column;
  }

  .intake-actions .primary-btn,
  .intake-actions .ghost-btn,
  .mini-select-btn {
    width: 100%;
  }

  .intake-select-panel {
    max-height: none;
    overflow: visible;
  }

  .genre-picker {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .genre-main-list,
  .genre-sub-panel {
    min-height: 220px;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    background: rgba(255, 251, 244, 0.72);
  }

  .genre-main-item,
  .genre-sub-panel .intake-option {
    align-items: flex-start;
  }

  .genre-main-actions {
    flex: 0 0 auto;
    padding-top: 2px;
  }

  .genre-main-label {
    width: 100%;
  }

  .genre-main-list .genre-label-secondary {
    display: none;
  }

  .intake-genre-panel .genre-sub-panel {
    display: none;
  }

  .genre-sub-panel {
    border-left: 1px solid rgba(120, 102, 78, 0.14);
    border-top: 0;
    padding-left: 10px;
    padding-top: 0;
  }

  .mobile-subgenre-page {
    display: grid;
    gap: 14px;
    margin-top: 14px;
  }

  .mobile-subgenre-group {
    padding: 14px;
    border: 1px solid rgba(120, 102, 78, 0.16);
    background: rgba(255, 251, 244, 0.72);
  }

  .mobile-subgenre-group-title {
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.6;
  }

  .mobile-subgenre-option-list {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .genre-main-list {
    max-height: 360px;
  }

  .genre-sub-panel-body {
    min-height: 0;
  }

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

  .mentor-card-list {
    grid-template-columns: 1fr;
  }

  .career-card-grid {
    grid-template-columns: 1fr;
  }

  .career-radar-panel,
  .career-detail-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .career-radar {
    width: min(100%, 260px);
  }

  .song-pick-list {
    grid-template-columns: 1fr;
  }

  .genre-label-secondary {
    font-size: 11px;
  }
}

