/* TCM Constitution H5 - mobile-first for TikTok in-app browser */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font-serif, "Noto Serif", "Noto Serif SC", Georgia, serif);
  background: transparent;
  min-height: 100vh;
  color: var(--text-body, var(--ink, #333));
}
#app {
  width: 100%;
  max-width: min(720px, 100%);
  margin: 0 auto;
  padding: 16px 20px 32px;
  min-height: auto;
}
#app:has(#landing.active),
#app:has(#result.active),
#app:has(#report.active) {
  max-width: min(1200px, 100%);
}
@media (min-width: 768px) {
  #app { padding: 24px 20px 40px; }
}
@media (min-width: 1024px) {
  #app { padding: 32px 24px 48px; }
}
.screen {
  display: none;
  padding: 10px 0;
}
.screen.active {
  display: block;
}
.card {
  background: var(--paper-card, #fffdf9);
  border-radius: var(--radius-md, 14px);
  padding: 24px;
  box-shadow: var(--shadow-soft, 0 4px 24px rgba(42, 53, 56, 0.06));
  border: 1px solid var(--border, rgba(61, 92, 82, 0.12));
}
.lang-label {
  display: block;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 6px;
}
.lang-select {
  display: block;
  width: 100%;
  max-width: 200px;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #e0d5c7;
  border-radius: 10px;
  background: #fff;
  color: #2c1810;
  margin-bottom: 20px;
  cursor: pointer;
}
.lang-select-small {
  max-width: 120px;
  padding: 6px 10px;
  font-size: 0.875rem;
  margin-bottom: 0;
}
.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.quiz-header .progress {
  margin-bottom: 0;
  flex: 1;
  text-align: right;
}
.card h1 {
  font-size: 1.5rem;
  margin: 0 0 12px;
  color: var(--ink, #2a3538);
  font-family: var(--font-serif, serif);
}
.card h2 {
  font-size: 1.25rem;
  margin: 0 0 16px;
  color: var(--ink, #2a3538);
  font-family: var(--font-serif, serif);
}
.card p {
  margin: 0 0 16px;
  line-height: 1.5;
  color: #555;
}
.btn {
  display: inline-block;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: center;
}
.btn.primary {
  background: linear-gradient(135deg, var(--green, #3d5c52) 0%, var(--water-deep, #3d5c66) 100%);
  color: #fff;
}
.btn.primary:hover {
  filter: brightness(1.05);
}
.btn.secondary {
  background: var(--green-light, #eef4f1);
  color: var(--green, #3d5c52);
  border: 1px solid var(--border-strong, rgba(61, 92, 82, 0.22));
}
.btn.secondary:hover {
  background: var(--paper-warm, #f0ebe3);
}
.progress {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 8px;
}
.part-title {
  font-size: 0.95rem;
  color: #6b5b4f;
  margin-bottom: 12px;
  font-weight: 600;
}
.question {
  font-size: 1.05rem;
  font-weight: 500;
  color: #2c1810;
  margin-bottom: 8px !important;
}
.bilingual {
  line-height: 1.5;
}
.bilingual br {
  display: block;
  content: "";
  margin-top: 4px;
}
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.option {
  padding: 12px 14px;
  border: 2px solid #e0d5c7;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}
.option:hover {
  border-color: #c4b59a;
  background: #faf8f5;
}
.option.selected {
  border-color: #8b6914;
  background: #f5f0e0;
}
.nav-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.nav-buttons .btn {
  flex: 1;
}
.result-type-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #8b6914;
  margin: 8px 0 12px;
}

/* Result page: Stitch-style constitution preview */
.result-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}
@media (min-width: 768px) {
  .result-page {
    padding: 40px 24px 80px;
  }
}
.result-hero {
  text-align: center;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .result-hero {
    margin-bottom: 56px;
  }
}
.result-hero-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border: 1px solid rgba(161, 61, 45, 0.35);
  border-radius: var(--radius-sm, 4px);
  background: rgba(161, 61, 45, 0.08);
  color: var(--accent, #A13D2D);
  font-family: var(--font-serif, serif);
  font-size: 1.1rem;
  font-weight: 700;
}
.result-hero-title {
  margin: 0 0 12px;
  font-family: var(--font-serif, serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent, #A13D2D);
  letter-spacing: -0.01em;
}
.result-hero-lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-muted, rgba(92, 75, 65, 0.82));
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
@media (min-width: 900px) {
  .result-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
    gap: 24px;
    align-items: start;
  }
}
.result-primary-card,
.result-locked-card {
  background: var(--paper-card, #fff);
  border: 1px solid var(--border, rgba(219, 218, 213, 0.65));
  border-radius: var(--radius-sm, 4px);
  box-shadow: var(--shadow-soft, 0 1px 3px rgba(92, 75, 65, 0.08));
}
.result-primary-card {
  padding: 24px;
}
@media (min-width: 768px) {
  .result-primary-card {
    padding: 28px 32px;
  }
}
.result-primary-badge,
.result-locked-badge {
  margin: 0 0 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(92, 75, 65, 0.55);
}
.result-primary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 16px;
}
.result-primary-name {
  margin: 0;
  flex: 1 1 12rem;
  min-width: 0;
  font-family: var(--font-serif, serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--brown, #5c4b41);
}
.result-primary-score {
  flex-shrink: 0;
  text-align: right;
}
.result-primary-pct,
.result-locked-pct {
  display: block;
  font-family: var(--font-serif, serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--brown, #5c4b41);
  font-variant-numeric: tabular-nums;
}
.result-primary-score-label {
  display: block;
  margin-top: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(92, 75, 65, 0.5);
}
.result-primary-bar,
.result-locked-bar {
  height: 8px;
  margin-bottom: 24px;
  background: rgba(92, 75, 65, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.result-primary-bar-fill,
.result-locked-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent, #A13D2D);
  transition: width 0.45s ease;
}
.result-clinical-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--font-serif, serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown, #5c4b41);
}
.result-clinical-title .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--accent, #A13D2D);
}
.result-clinical-text {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-muted, rgba(92, 75, 65, 0.82));
}
.result-sign-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .result-sign-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
.result-sign-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.result-sign-item .material-symbols-outlined {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 1.1rem;
  color: var(--accent, #A13D2D);
}
.result-sign-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brown, #5c4b41);
}
.result-sign-item p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-muted, rgba(92, 75, 65, 0.82));
}
.result-secondary-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 900px) {
  .result-secondary-stack {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.result-locked-card {
  position: relative;
  padding: 16px 14px;
  overflow: hidden;
  min-width: 0;
}
@media (min-width: 900px) {
  .result-locked-card {
    padding: 20px 22px;
  }
}
.result-locked-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.1rem;
  color: var(--accent, #A13D2D);
}
.result-locked-score-row {
  margin-bottom: 10px;
}
.result-locked-blur {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.result-locked-blur span {
  display: block;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(92, 75, 65, 0.12) 0%, rgba(92, 75, 65, 0.06) 100%);
  filter: blur(4px);
}
.result-locked-blur span:nth-child(2) { width: 88%; }
.result-locked-blur span:nth-child(3) { width: 72%; }
.result-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 24px;
}
@media (min-width: 540px) {
  .result-actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: none;
  }
  .result-unlock-btn {
    flex: 0 1 auto;
    min-width: 220px;
  }
}

.result-unlock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm, 4px);
  background: var(--accent, #A13D2D);
  color: #fff;
  font-family: var(--font-serif, serif);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(161, 61, 45, 0.22);
  transition: filter 0.15s ease;
}
.result-unlock-btn:hover {
  filter: brightness(1.06);
}
.result-preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1px solid var(--border-strong, rgba(219, 218, 213, 0.95));
  border-radius: var(--radius-sm, 4px);
  background: var(--paper-card, #fff);
  color: var(--brown, #5c4b41);
  font-family: var(--font-serif, serif);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.result-preview-btn .material-symbols-outlined {
  font-size: 1.15rem;
}
.result-preview-btn:hover {
  background: var(--paper-warm, #f5f4ef);
  border-color: rgba(161, 61, 45, 0.35);
}

/* Legacy report summary + percent bars (full report) */
.result-card {
  border-radius: var(--radius-sm, 4px);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border, rgba(219, 218, 213, 0.65));
}
.result-breakdown-card {
  background: linear-gradient(180deg, var(--green-light, rgba(161, 61, 45, 0.08)) 0%, var(--paper-card, #fff) 100%);
}
.result-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent, #A13D2D);
  margin: 0 0 12px;
  font-family: var(--font-serif, serif);
}
.result-primary-type {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown, #5c4b41);
  margin: 0 0 16px;
  font-family: var(--font-serif, serif);
}
.result-percent-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.result-percent-row.is-primary .result-percent-name {
  font-weight: 700;
  color: var(--accent, #A13D2D);
}
.result-percent-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  font-size: 0.875rem;
}
.result-percent-name {
  color: #444;
}
.result-percent-value {
  font-weight: 700;
  color: #2c1810;
  font-variant-numeric: tabular-nums;
}
.result-percent-track {
  height: 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.result-percent-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}
.result-percent-row.is-locked .result-percent-value {
  color: var(--brown, #5c4b41);
}
.result-percent-name-wrap {
  position: relative;
  display: inline-block;
  min-width: 6.5rem;
  max-width: calc(100% - 3.5rem);
  height: 1.25rem;
  overflow: hidden;
  border-radius: 4px;
  vertical-align: bottom;
}
.result-percent-name--masked {
  position: absolute;
  inset: 0;
  filter: blur(6px);
  opacity: 0.35;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.result-percent-name-placeholder {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, #b8a99a 0 5px, #d9cfc4 5px 10px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 4px, rgba(0, 0, 0, 0.04) 4px 8px);
  background-blend-mode: overlay;
  box-shadow: inset 0 0 0 1px rgba(120, 96, 86, 0.25);
}
.result-percent-note {
  margin: 14px 0 0;
  color: #888;
  line-height: 1.45;
}
.result-paywall-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9a9a9a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}
.result-paywall-body {
  position: relative;
  max-height: 140px;
  overflow: hidden;
  margin-bottom: 8px;
}
.result-paywall-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #555;
  margin: 0;
}
.result-paywall-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 45%, #fff 100%);
  pointer-events: none;
}
.result-unlock-icon {
  font-size: 0.9rem;
}
.btn-preview-report {
  width: 100%;
  margin-top: 12px;
}

.result-teaser-intro,
.result-teaser-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b5b4f;
  margin: 12px 0 6px;
}
.result-teaser-list {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
}
.result-teaser-list li {
  margin-bottom: 6px;
}
.disclaimer {
  font-size: 0.8rem;
  color: #888;
}
.result-unlock-note {
  margin-top: 36px;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
}
.quiz-header-progress .progress {
  text-align: right;
  width: 100%;
}
.btn-history-inline {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b5b4f;
  background: #f5efe6;
  border: 1px solid #e8ddd0;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}
.btn-history-inline:hover {
  background: #ebe3d6;
  border-color: #d4c9b8;
}
@media (min-width: 768px) {
  .card { padding: 28px 32px; }
  .question { font-size: 1.15rem; }
}
.small {
  font-size: 0.875rem;
  color: #888;
}
.report-card {
  max-height: none;
  overflow: visible;
}
.report-page {
  background: transparent;
  color: var(--ink, #1b1c19);
  line-height: 1.6;
}
.report-hero {
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .report-hero { margin-bottom: 64px; }
}
.report-hero-title-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.report-id {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #A13D2D);
}
.report-page-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-serif, "Noto Serif SC", serif);
  font-size: clamp(1.35rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink, #1b1c19);
}
.report-brand-logo {
  flex: 0 0 auto;
}
.report-hero-title-row .report-seal {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif, "Noto Serif SC", Georgia, serif);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border: 2px solid var(--accent, #A13D2D);
  color: var(--accent, #A13D2D);
  padding: 10px 6px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  line-height: 1;
  border-radius: 2px;
}
.report-hero-title-row .report-seal span {
  display: inline-block;
}
@media (max-width: 520px) {
  .report-hero-title-row { gap: 10px; }
  .report-page-title { font-size: 1.2rem; }
  .report-hero-title-row .report-seal {
    padding: 8px 5px;
    font-size: 0.72rem;
  }
}
.report-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
@media (min-width: 768px) {
  .report-content { gap: 64px; }
}
.report-section-title {
  margin: 0 0 24px;
  padding-left: 16px;
  border-left: 4px solid var(--accent, #A13D2D);
  font-family: var(--font-serif, serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--ink, #1b1c19);
}
.report-section-title--plain {
  border-left: none;
  padding-left: 0;
}
.report-section-title--center {
  border-left: none;
  padding-left: 0;
  text-align: center;
}
.report-paper-card {
  background: #fff;
  border: 1px solid rgba(138, 114, 109, 0.15);
  border-radius: 8px;
  box-shadow: 0 4px 20px -2px rgba(108, 92, 69, 0.05);
}
.report-type-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) {
  .report-type-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.report-type-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
}
.report-type-card--primary {
  box-shadow: 0 0 0 2px rgba(161, 61, 45, 0.2);
}
.report-type-badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent, #A13D2D);
  background: rgba(161, 61, 45, 0.1);
}
.report-type-name {
  margin: 0 0 8px;
  padding-right: 0;
  font-family: var(--font-serif, serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent, #A13D2D);
}
.report-type-card:not(.report-type-card--primary) .report-type-name {
  color: var(--ink, #1b1c19);
}
.report-type-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #57423e;
}
.report-type-pct {
  font-weight: 700;
  color: var(--accent, #A13D2D);
}
.report-type-card:not(.report-type-card--primary) .report-type-pct {
  color: #706049;
}
.report-type-bar {
  height: 8px;
  border-radius: 4px;
  background: #efeee9;
  overflow: hidden;
  margin-bottom: 16px;
}
.report-type-bar-fill {
  height: 100%;
  border-radius: 4px;
}
.report-type-bar-fill--primary { background: var(--accent, #A13D2D); }
.report-type-bar-fill--secondary { background: #6c5c45; }
.report-type-bar-fill--muted { background: #8a726d; }
.report-type-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #57423e;
}
.report-type-desc--primary { font-style: italic; }
.report-section--blend {
  padding: 24px;
  border-radius: 12px;
  background: rgba(243, 220, 191, 0.25);
  border: 1px solid rgba(138, 114, 109, 0.2);
}
@media (min-width: 768px) {
  .report-section--blend { padding: 32px; }
}
.report-blend-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .report-blend-grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
}
.report-blend-intro,
.report-blend-order {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.65;
  color: #57423e;
}
.report-blend-roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.report-blend-roles li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.55;
  color: #1b1c19;
}
.report-blend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.report-blend-dot--primary { background: var(--accent, #A13D2D); }
.report-blend-dot--secondary { background: #6c5c45; }
.report-blend-dot--muted { background: #8a726d; }
.report-blend-aside {
  background: #faf9f4;
  border: 1px solid rgba(119, 89, 25, 0.2);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.report-blend-aside-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-serif, serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #775919;
}
.report-blend-aside-title .material-symbols-outlined {
  font-size: 1.35rem;
}
.report-blend-conflict-text {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #57423e;
}
.report-diet-phases {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.report-phase-card {
  overflow: hidden;
  padding: 0;
}
.report-phase-header {
  padding: 14px 20px;
  color: #fff;
}
.report-phase-header h3 {
  margin: 0;
  font-family: var(--font-serif, serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}
.report-phase-header--primary { background: var(--accent, #A13D2D); }
.report-phase-header--tertiary { background: #775919; }
.report-phase-header--secondary { background: #6c5c45; }
.report-meals-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .report-meals-grid { grid-template-columns: repeat(3, 1fr); }
}
.report-meal-col {
  padding: 20px;
  border-top: 1px solid rgba(138, 114, 109, 0.15);
}
@media (min-width: 768px) {
  .report-meal-col {
    border-top: none;
    border-left: 1px solid rgba(138, 114, 109, 0.15);
  }
  .report-meal-col:first-child { border-left: none; }
}
.report-meal-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
}
.report-meal-accent--primary { color: var(--accent, #A13D2D); }
.report-meal-accent--tertiary { color: #775919; }
.report-meal-accent--secondary { color: #6c5c45; }
.report-meal-col-body p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #1b1c19;
}
.report-herbal-block {
  margin-top: 32px;
}
.report-subsection-title {
  margin: 0 0 20px;
  font-family: var(--font-serif, serif);
  font-size: 1.2rem;
  font-weight: 600;
}
.report-herbal-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .report-herbal-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
.report-herbal-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}
.report-herbal-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(161, 61, 45, 0.1);
  color: var(--accent, #A13D2D);
}
.report-herbal-icon .material-symbols-outlined { font-size: 1.75rem; }
.report-herbal-card h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.report-herbal-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #57423e;
  line-height: 1.5;
}
.report-ingredients-grid--round {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) {
  .report-ingredients-grid--round { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .report-ingredients-grid--round { grid-template-columns: repeat(7, 1fr); }
}
.report-ingredient-round {
  text-align: center;
}
.report-ingredient-round-img {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  border: 2px solid rgba(138, 114, 109, 0.2);
  transition: border-color 0.2s;
}
.report-ingredient-round:hover .report-ingredient-round-img {
  border-color: var(--accent, #A13D2D);
}
.report-ingredient-round-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.report-ingredient-round-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1b1c19;
}
.report-acupoint-card--horizontal {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 768px) {
  .report-acupoint-card--horizontal { flex-direction: row; }
}
.report-acupoint-media {
  background: #f5f4ef;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(138, 114, 109, 0.15);
}
@media (min-width: 768px) {
  .report-acupoint-media {
    width: 28%;
    border-bottom: none;
    border-right: 1px solid rgba(138, 114, 109, 0.15);
  }
}
.report-acupoint-media img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}
.report-acupoint-placeholder {
  font-size: 0.85rem;
  font-style: italic;
  color: #8a726d;
  text-align: center;
}
.report-acupoint-card--horizontal .report-acupoint-info {
  padding: 24px;
  flex: 1;
}
.report-acupoint-card--horizontal .report-acupoint-name {
  margin: 0 0 12px;
  font-family: var(--font-serif, serif);
  font-size: 1.2rem;
  color: var(--accent, #A13D2D);
}
.report-acupoint-card--horizontal .report-acupoint-loc {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #1b1c19;
}
.report-acupoint-card--horizontal .report-acupoint-eff {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #57423e;
}
.report-season-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.report-season-card--wide {
  padding: 24px;
  background: #e9e8e3;
  border: 1px solid rgba(138, 114, 109, 0.2);
  border-radius: 8px;
  transition: box-shadow 0.2s;
}
.report-season-card--wide:hover {
  box-shadow: 0 8px 24px rgba(108, 92, 69, 0.08);
}
.report-season-card--wide .report-season-name {
  margin: 0 0 14px;
  font-family: var(--font-serif, serif);
  font-size: 1.15rem;
  color: var(--accent, #A13D2D);
}
.report-season-ingredients {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.55;
}
.report-season-strategy {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #57423e;
}
.report-symptom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .report-symptom-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
.report-symptom-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(138, 114, 109, 0.2);
  border-radius: 8px;
}
.report-symptom-icon {
  font-size: 2rem;
  color: var(--accent, #A13D2D);
  flex-shrink: 0;
}
.report-symptom-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}
.report-symptom-text span { color: #57423e; }
.report-precautions-card {
  padding: 24px;
}
@media (min-width: 768px) {
  .report-precautions-card { padding: 32px; }
}
.report-precautions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .report-precautions-grid { grid-template-columns: 1.2fr 0.8fr; gap: 32px; }
}
.report-precautions-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
}
.report-precautions-heading--food { color: #ba1a1a; }
.report-precautions-heading--action { color: #775919; margin-top: 24px; }
.report-precautions-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #57423e;
  font-size: 0.92rem;
  line-height: 1.65;
}
.report-precautions-list li { margin-bottom: 8px; }
.report-precautions-aside {
  position: relative;
  min-height: 220px;
  border: 1px solid rgba(138, 114, 109, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: #5c4b41 url("images/guides/herbs-collection.jpg") center / cover no-repeat;
}
.report-precautions-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45, 41, 38, 0.72) 0%, rgba(92, 75, 65, 0.55) 100%);
  pointer-events: none;
}
.report-precautions-aside-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 220px;
  padding: 28px 24px;
  box-sizing: border-box;
}
.report-precautions-aside p {
  margin: 0;
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.report-outcomes-table-wrap {
  overflow: hidden;
  padding: 0;
}
.report-outcomes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.report-outcomes-table th,
.report-outcomes-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(138, 114, 109, 0.15);
  vertical-align: top;
}
.report-outcomes-table th {
  background: #e9e8e3;
  font-family: var(--font-serif, serif);
  font-weight: 600;
  color: var(--accent, #A13D2D);
}
.report-outcomes-table td:first-child {
  font-weight: 700;
  width: 33%;
  color: #1b1c19;
}
.report-outcomes-table td:last-child {
  color: #57423e;
  line-height: 1.6;
}
.report-page .report-actions {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(138, 114, 109, 0.2);
}
@media (min-width: 640px) {
  .report-page .report-actions {
    flex-direction: row;
    gap: 16px;
  }
  .report-page .report-actions .btn {
    width: auto;
    flex: 1;
  }
}
.report-page .report-actions .btn-save-report {
  background: var(--accent, #A13D2D);
  box-shadow: 0 4px 12px rgba(161, 61, 45, 0.25);
}
.report-page .report-actions .btn-save-report:hover {
  background: #812618;
  box-shadow: 0 6px 16px rgba(161, 61, 45, 0.3);
}
.report-page .report-actions .btn.secondary {
  background: transparent;
  color: #6c5c45;
  border: 1px solid rgba(108, 92, 69, 0.35);
}
.report-empty-note {
  margin: 0;
  font-size: 0.9rem;
  color: #8a726d;
}
.report-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e0d5c8;
}
.report-actions .btn {
  margin-bottom: 0;
}
.report-actions .btn-save-report {
  background: linear-gradient(135deg, #8b6914 0%, #a67c1a 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 24px;
  box-shadow: 0 4px 12px rgba(139, 105, 20, 0.35);
}
.report-actions .btn-save-report:hover {
  background: linear-gradient(135deg, #7a5c12 0%, #8b6914 100%);
  box-shadow: 0 6px 16px rgba(139, 105, 20, 0.4);
}
.report-actions .btn-save-report:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.report-card #report-content {
  line-height: 1.6;
  color: #444;
}
.report-card #report-content .report-type-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #8b6914;
  margin: 0 0 16px;
}
.report-card #report-content h3 {
  font-size: 1rem;
  margin: 20px 0 8px;
  color: #2c1810;
}
.report-card #report-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b5b4f;
  margin: 16px 0 6px;
}
.report-card #report-content p {
  margin: 0 0 12px;
}
.report-summary-card {
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid #c5ddd0;
  background: linear-gradient(180deg, #eef6f0 0%, #f8faf8 100%);
}
.report-summary-card .report-constitution-primary {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2c1810;
  margin: 0 0 12px;
}
.report-summary-card .report-deep-intro {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #d8e8dc;
}
.report-summary-card .report-deep-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #555;
  margin: 8px 0 0;
}
.report-summary-card .report-paywall-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9a9a9a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}
.report-plan-heading {
  margin-top: 8px;
}
.report-secondary-intro {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 16px;
  line-height: 1.55;
}
.report-secondary-block {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #e8ddd0;
  border-radius: 12px;
  background: #faf8f5;
}
.report-secondary-block h4 {
  margin: 0 0 8px;
  color: var(--accent, #A13D2D);
}
.report-blend-strategy {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid #d8e8dc;
  border-radius: 14px;
  background: #f8fbf9;
}
.report-blend-intro,
.report-blend-order {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 12px;
}
.report-blend-roles {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  line-height: 1.65;
}
.report-blend-roles li {
  margin-bottom: 8px;
}
.report-blend-conflicts {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff8ee;
  border: 1px solid #f0e0c8;
}
.report-blend-conflicts h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #8b6914;
}
.report-sub-part-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent, #A13D2D);
  margin: 20px 0 10px;
  border-bottom: 1px solid #e0d5c8;
  padding-bottom: 6px;
}
.report-card #report-content .report-constitution-primary {
  font-size: 1.1rem;
  font-weight: 600;
  color: #8b6914;
  margin: 0 0 8px;
}
.report-card #report-content .report-secondary {
  font-size: 0.95rem;
  color: #6b5b4f;
  margin-bottom: 12px;
  font-weight: 500;
}
.report-card #report-content .report-part-title {
  font-size: 1.05rem;
  margin-top: 24px;
  margin-bottom: 12px;
  color: #2c1810;
  border-bottom: 1px solid #e0d5c8;
  padding-bottom: 6px;
}
.report-card #report-content .report-test-media {
  margin-bottom: 20px;
  padding: 12px;
  background: #faf8f5;
  border-radius: 8px;
  border: 1px solid #e0d5c8;
}
.report-card #report-content .report-test-img {
  display: block;
  margin: 8px 0;
}
.report-card #report-content .report-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.9rem;
}
.report-card #report-content .report-table th,
.report-card #report-content .report-table td {
  border: 1px solid #e0d5c8;
  padding: 8px 12px;
  text-align: left;
}
.report-card #report-content .report-table th {
  background: #f5f0e0;
  font-weight: 600;
  color: #6b5b4f;
}
.report-card #report-content .report-table tbody tr:nth-child(even) {
  background: #faf8f5;
}
.report-card #report-content .report-list-num,
.report-card #report-content .report-list-bullet {
  margin: 8px 0 16px;
  padding-left: 24px;
}
.report-card #report-content .report-list-num li,
.report-card #report-content .report-list-bullet li {
  margin: 4px 0;
}
.report-ingredient-card--compact .report-ingredient-info {
  padding: 6px 8px;
  text-align: center;
  font-size: 0.85rem;
}
.report-wellness-section {
  margin-bottom: 28px;
}
.report-section-intro {
  margin: 0 0 14px;
  color: #6b5b4f;
  font-size: 0.9rem;
  line-height: 1.5;
}
.report-diet-phase {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #faf8f5;
  border: 1px solid #e8ddd0;
  border-radius: 10px;
}
.report-diet-phase-title {
  margin: 0 0 12px;
  font-size: 0.98rem;
  color: #8b6914;
}
.report-meals-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.report-meal-row {
  background: #fff;
  border: 1px solid #e0d5c8;
  border-radius: 8px;
  padding: 12px 14px;
}
.report-meal-row .report-meal-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #8b6914;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.report-meal-list {
  margin: 0;
  padding-left: 1.15rem;
  list-style: disc;
}
.report-meal-list li {
  margin: 5px 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #2c1810;
}
.report-meal-card {
  background: #fff;
  border: 1px solid #e0d5c8;
  border-radius: 8px;
  padding: 10px 12px;
}
.report-meal-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b6914;
  margin-bottom: 6px;
}
.report-meal-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #2c1810;
}
.report-diet-herbal-block {
  margin: 16px 0 20px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e8ddd0;
  border-radius: 10px;
}
.report-diet-herbal-block .report-sub-part-title {
  margin-top: 0;
}
.report-diet-ingredients {
  margin-top: 8px;
}
.report-season-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .report-season-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.report-season-card {
  background: #faf8f5;
  border: 1px solid #e8ddd0;
  border-radius: 10px;
  padding: 12px 14px;
}
.report-season-name {
  margin: 0 0 8px;
  color: #8b6914;
  font-size: 0.95rem;
}
.report-season-card p {
  margin: 6px 0;
  font-size: 0.88rem;
  line-height: 1.45;
}
.report-symptom-list {
  margin: 0;
  padding-left: 20px;
}
.report-symptom-list li {
  margin: 8px 0;
  line-height: 1.45;
}
.report-ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 12px 0 20px;
}
.report-ingredient-card {
  border: 1px solid #e0d5c8;
  border-radius: 8px;
  overflow: hidden;
  background: #faf8f5;
}
.report-ingredient-img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  background: #fff;
}
.report-ingredient-info {
  padding: 8px;
  font-size: 0.85rem;
}
.report-ingredient-efficacy,
.report-ingredient-indications {
  margin: 4px 0;
  font-size: 0.8rem;
  color: #6b5b4f;
  line-height: 1.4;
}
.report-acupoints-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 12px 0 20px;
}
.report-acupoint-card {
  border: 1px solid #e0d5c8;
  border-radius: 8px;
  overflow: hidden;
  background: #faf8f5;
  max-width: 100%;
}
.report-acupoint-img-wrap {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5e6d3;
  overflow: hidden;
  padding: 12px;
  box-sizing: border-box;
}
.report-acupoint-img-wrap img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  display: block;
}
.report-acupoint-img-wrap .report-acupoint-svg-fb,
.report-acupoint-img-wrap > svg {
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
}
.report-acupoint-img-wrap > div.report-acupoint-svg-fb {
  padding: 0;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.report-acupoint-img-wrap > div.report-acupoint-svg-fb svg {
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
}
.report-acupoint-info {
  padding: 12px;
  font-size: 0.9rem;
}
.report-acupoint-name {
  display: block;
  margin: 0 0 6px;
  font-size: 1rem;
  color: #4a4035;
}
.report-acupoint-loc,
.report-acupoint-eff {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #6b5b4f;
  line-height: 1.4;
}
.report-schedule-table {
  margin: 12px 0 20px;
  overflow-x: auto;
}
.report-schedule-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.report-schedule-table th,
.report-schedule-table td {
  border: 1px solid #e0d5c8;
  padding: 8px 12px;
  text-align: left;
}
.report-expected-outcomes-wrap {
  margin: 16px 0 24px;
  padding: 16px;
  border: 1px solid #e0d5c8;
  border-radius: 8px;
  background: #faf8f5;
}
.report-expected-outcomes-wrap h4 {
  margin-top: 0;
}
.report-schedule-table th {
  background: #f0e9e0;
  color: #6b5b4f;
  font-weight: 600;
}
.report-outcomes-chart {
  display: flex;
  gap: 12px;
  margin: 12px 0 20px;
  flex-wrap: wrap;
}
.report-outcome-bar {
  flex: 1;
  min-width: 120px;
  border: 1px solid #e0d5c8;
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, #faf8f5 0%, #f0e9e0 100%);
}
.report-outcome-period {
  font-weight: 600;
  color: #8b6914;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.report-outcome-content {
  font-size: 0.85rem;
  color: #6b5b4f;
  line-height: 1.4;
}

/* Quiz submit / nav — Stitch redesign */
.quiz-screen {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 0 8px;
}
@media (min-width: 768px) {
  .quiz-screen { padding: 32px 0 16px; }
}
.quiz-progress-head {
  text-align: center;
  margin-bottom: clamp(32px, 6vw, 48px);
}
.quiz-progress-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown, #6c5c45);
  margin-bottom: 8px;
}
.quiz-progress-divider {
  width: 96px;
  height: 1px;
  background: rgba(138, 114, 109, 0.35);
  margin: 0 auto 8px;
}
.quiz-part-title {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--tertiary, #5c4200);
}
#quiz .quiz-card {
  position: relative;
  padding: clamp(28px, 6vw, 64px);
  background: #fff;
  border-radius: var(--radius-lg, 8px);
  box-shadow:
    0 10px 40px -10px rgba(129, 38, 24, 0.08),
    0 4px 10px -2px rgba(129, 38, 24, 0.04);
  border: 1px solid rgba(138, 114, 109, 0.15);
  overflow: hidden;
}
.quiz-seal-mark {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent, #812618);
  color: #fff;
  border-radius: 2px;
  font-family: var(--font-serif, "Noto Serif", serif);
  font-weight: 700;
  font-size: 1.2rem;
  opacity: 0.15;
  pointer-events: none;
  user-select: none;
}
.quiz-question {
  margin: 0 0 clamp(32px, 6vw, 48px);
  padding-right: 56px;
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink, #1b1c19);
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(40px, 8vw, 64px);
}
.quiz-option {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: clamp(16px, 4vw, 24px);
  text-align: left;
  border: 1px solid rgba(138, 114, 109, 0.2);
  border-radius: var(--radius-md, 4px);
  background: var(--paper, #faf9f4);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
  font-size: clamp(0.95rem, 2.8vw, 1.125rem);
  line-height: 1.45;
  font-family: inherit;
  font-weight: 400;
  color: var(--ink, #1b1c19);
  appearance: none;
  -webkit-appearance: none;
}
.quiz-option:hover {
  border-color: var(--accent, #812618);
  background: rgba(161, 61, 45, 0.05);
}
.quiz-option.selected {
  border-color: var(--accent, #812618);
  background: #ffdad4;
  color: #400200;
  box-shadow: inset 0 0 0 1px var(--accent, #812618);
}
.quiz-option-radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-right: 16px;
  border: 1px solid rgba(138, 114, 109, 0.55);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.2s;
}
.quiz-option:hover .quiz-option-radio {
  border-color: var(--accent, #812618);
}
.quiz-option.selected .quiz-option-radio {
  border-color: var(--accent, #812618);
}
.quiz-option-dot {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent, #812618);
  opacity: 0;
  transition: opacity 0.2s;
}
.quiz-option.selected .quiz-option-dot {
  opacity: 1;
}
.quiz-option-label {
  flex: 1;
  min-width: 0;
}
.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(138, 114, 109, 0.25);
}
.quiz-nav-spacer {
  flex: 1;
}
.quiz-nav-prev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown, #6c5c45);
  cursor: pointer;
  transition: color 0.2s;
}
.quiz-nav-prev:hover {
  color: var(--accent, #812618);
}
.quiz-nav-prev .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.2s;
}
.quiz-nav-prev:hover .material-symbols-outlined {
  transform: translateX(-4px);
}
.quiz-nav-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  margin: 0;
  padding: 16px clamp(24px, 6vw, 48px) !important;
  border: none;
  border-radius: var(--radius-md, 4px) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent, #812618) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(129, 38, 24, 0.2);
  cursor: pointer;
  white-space: nowrap;
}
.quiz-nav-submit:hover {
  background: var(--accent-dark, #8a3326) !important;
  filter: none;
}
.quiz-nav-submit .material-symbols-outlined {
  font-size: 18px;
}
@media (max-width: 520px) {
  .quiz-question { padding-right: 0; }
  .quiz-seal-mark { display: none; }
  .quiz-nav {
    flex-wrap: wrap;
  }
  .quiz-nav-submit {
    width: 100% !important;
    white-space: normal;
  }
}
.quiz-meta-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.quiz-meta-footer:hover {
  opacity: 0.65;
}
.quiz-meta-text {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--brown, #6c5c45);
}

/* Calculating overlay */
.calculating-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.95);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.calculating-overlay.active {
  display: flex !important;
}
.calculating-overlay .card {
  max-width: 320px;
  width: 100%;
}
.calculating-text {
  font-size: 1rem;
  color: #2c1810;
  margin: 0 0 20px !important;
  text-align: center;
}
.progress-bar-wrap {
  height: 10px;
  background: #e0d5c7;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8b6914, #a88a1f);
  border-radius: 5px;
  transition: width 0.15s ease-out;
}
.progress-percent {
  font-size: 1.1rem;
  font-weight: 600;
  color: #8b6914;
  text-align: center;
  margin: 0 !important;
}

/* Result rarity */
.result-rarity {
  font-size: 1.05rem;
  font-weight: 600;
  color: #8b6914;
  margin: 0 0 16px !important;
  text-align: center;
  padding: 12px 16px;
  background: #f5f0e0;
  border-radius: 10px;
}

/* Landing page — Stitch test hero */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}
.test-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 8px;
}
@media (min-width: 768px) {
  .test-landing { padding: 48px 0 16px; }
}
.test-landing-hero {
  max-width: 48rem;
  text-align: center;
  margin-bottom: 48px;
}
.test-landing-hero-title {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--accent, #812618);
}
.test-landing-hero-desc {
  margin: 0 auto;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--brown, #57423e);
}
.test-landing-card {
  position: relative;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto 24px;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid rgba(138, 114, 109, 0.25);
  border-radius: var(--radius-lg, 8px);
  box-shadow: 0 8px 32px rgba(107, 91, 68, 0.08);
  overflow: hidden;
}
@media (min-width: 768px) {
  .test-landing-card { padding: 48px; }
}
.test-landing-card-seal {
  position: absolute;
  top: -48px;
  right: -48px;
  opacity: 0.05;
  pointer-events: none;
  line-height: 1;
}
.test-landing-card-seal .material-symbols-outlined {
  font-size: 240px;
  color: var(--accent, #812618);
}
.test-landing-card-inner {
  position: relative;
  z-index: 1;
}
.test-landing-card-head {
  margin-bottom: 40px;
  text-align: center;
}
.test-landing-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--secondary-container, #f3dcbf);
  color: var(--on-secondary-container, #706049);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.test-landing-gender-prompt {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink, #1b1c19);
}
.traditional-border {
  border: 1px solid rgba(138, 114, 109, 0.2);
  position: relative;
  border-radius: var(--radius-md, 4px);
  background: var(--paper, #faf9f4);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.traditional-border::before,
.traditional-border::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent, #812618);
  pointer-events: none;
}
.traditional-border::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}
.traditional-border::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}
.gender-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 2.5vw, 24px);
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .gender-select { margin-bottom: 16px; }
}
.gender-card {
  padding: 0;
  border: none;
  border-radius: 0;
  cursor: pointer;
  background: transparent;
  min-width: 0;
}
.gender-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 40px) clamp(8px, 2.5vw, 24px);
  text-align: center;
  min-height: clamp(7rem, 28vw, 11rem);
}
.gender-card:hover .traditional-border {
  border-color: var(--accent, #812618);
  background: rgba(162, 62, 46, 0.05);
}
.gender-card:hover .gender-icon,
.gender-card:hover .gender-label {
  color: var(--accent, #812618);
}
.gender-card:hover .gender-sublabel,
.gender-card.selected .gender-sublabel {
  opacity: 1;
}
.gender-card.selected .traditional-border {
  border-color: var(--accent, #812618);
  background: var(--secondary-fixed, #f6dfc2);
  box-shadow: inset 0 0 0 1px var(--accent, #812618);
}
.gender-card.selected .gender-icon,
.gender-card.selected .gender-label {
  color: var(--accent, #812618);
}
.gender-icon {
  display: block;
  margin-bottom: clamp(6px, 1.5vw, 16px);
  font-size: clamp(1.75rem, 7vw, 3rem);
  line-height: 1;
  color: var(--brown, #6c5c45);
  transition: color 0.2s;
}
.gender-label {
  display: block;
  font-size: clamp(0.875rem, 3.2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--brown, #6c5c45);
  transition: color 0.2s;
}
.gender-sublabel {
  margin: clamp(4px, 1vw, 8px) 0 0;
  font-size: clamp(0.625rem, 2.2vw, 0.75rem);
  letter-spacing: 0.05em;
  color: var(--brown, #57423e);
  opacity: 0;
  transition: opacity 0.2s;
}
.gender-hint {
  font-size: 0.85rem;
  color: #888;
  margin: 0 0 24px !important;
  text-align: center;
  min-height: 1.25em;
}
.landing-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 20rem;
  margin: 0 auto 0;
}
.landing-actions .btn-start {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(129, 38, 24, 0.2);
}
.landing-actions .btn-start:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(129, 38, 24, 0.28);
}
.btn-history-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--brown, #6c5c45);
  background: transparent;
  border: 1px solid rgba(138, 114, 109, 0.55);
  border-radius: var(--radius-md, 4px);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-history-outline .material-symbols-outlined {
  font-size: 1.125rem;
}
.btn-history-outline:hover {
  background: var(--surface-container, #efeee9);
  border-color: var(--brown, #6c5c45);
}
.test-landing-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 48px 0;
  opacity: 0.35;
}
.test-landing-divider-line {
  width: 96px;
  height: 1px;
  background: rgba(138, 114, 109, 0.55);
}
.test-landing-divider-icon {
  font-size: 1.25rem;
  color: var(--accent, #812618);
}
.test-landing-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--brown, #57423e);
  opacity: 0.85;
}
@media (min-width: 768px) {
  .test-landing-info-grid { grid-template-columns: 1fr 1fr; }
}
.test-landing-info-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent, #812618);
}
.test-landing-info-title .material-symbols-outlined {
  font-size: 1.125rem;
}
.test-landing-info-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
}
.test-landing-disclaimer {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(138, 114, 109, 0.2);
  text-align: center;
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--brown, #57423e);
}
.test-landing-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  max-width: 75rem;
  margin: 64px auto 0;
  padding: 0;
}
@media (min-width: 768px) {
  .test-landing-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 96px;
  }
}
.test-landing-feature {
  padding: 24px 16px;
  text-align: center;
}
.test-landing-feature-icon {
  display: block;
  margin: 0 auto 16px;
  font-size: 2.5rem;
  color: var(--accent, #812618);
}
.test-landing-feature-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink, #1b1c19);
}
.test-landing-feature-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--brown, #57423e);
}
.landing-card {
  margin-bottom: 0;
}
.btn-start:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
/* 首页三组说明文字：统一字号与段落 */
.pay-disclaimer,
.pre-requisites-list,
.intro-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}
.pay-disclaimer {
  margin: 0 !important;
  padding-top: 8px;
  border-top: 1px solid #eee;
}
.section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2c1810;
  margin: 0 0 12px;
}
.pre-requisites-list {
  margin: 0;
  padding-left: 1.2rem;
}
.pre-requisites-list li {
  margin-bottom: 8px;
}
.intro-body {
  margin: 0 !important;
}

/* History screen */
.history-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.history-header h2 {
  flex: 1;
  min-width: 0;
  font-size: 1.2rem;
}
.btn-back {
  padding: 8px 12px;
  border: none;
  background: #eee;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #333;
}
.btn-back:hover {
  background: #e0e0e0;
}
.history-header h2 {
  margin: 0;
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  max-height: 50vh;
  overflow-y: auto;
}
.history-item {
  padding: 14px 16px;
  border: 1px solid #e0d5c7;
  border-radius: 10px;
  background: #faf8f5;
  cursor: pointer;
  transition: background 0.2s;
}
.history-item:hover {
  background: #f5f0e0;
}
.history-item-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 4px;
}
.history-item-type {
  font-size: 1rem;
  font-weight: 600;
  color: #2c1810;
}
.history-empty {
  color: #888;
  text-align: center;
  padding: 24px 0;
  margin: 0 0 16px !important;
}

/* Email checkout & login modals */
.tcm-modal[hidden] { display: none !important; }
.tcm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tcm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 28, 25, 0.45);
}
.tcm-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: var(--paper-card, #fff);
  border: 1px solid rgba(219, 218, 213, 0.8);
  border-radius: var(--radius-sm, 4px);
  padding: 28px 24px;
  box-shadow: 0 24px 48px rgba(92, 75, 65, 0.18);
}
.tcm-modal-title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--brown, #5c4b41);
}
.tcm-modal-lead {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-muted, rgba(92, 75, 65, 0.82));
}
.tcm-modal-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brown, #5c4b41);
}
.tcm-modal-input {
  width: 100%;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(219, 218, 213, 0.95);
  border-radius: var(--radius-sm, 4px);
  font: inherit;
  background: #fff;
}
.tcm-modal-input:focus {
  outline: 2px solid rgba(161, 61, 45, 0.25);
  border-color: var(--accent, #a13d2d);
}
.tcm-modal-error {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: #b42318;
}
.tcm-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.pay-email-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: rgba(243, 220, 191, 0.35);
  border: 1px solid rgba(219, 218, 213, 0.65);
  border-radius: var(--radius-sm, 4px);
  line-height: 1.55;
}
.history-login-panel {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(219, 218, 213, 0.65);
}
.history-login-lead {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-muted, rgba(92, 75, 65, 0.82));
}
.history-section-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent, #a13d2d);
}
.history-cloud-section {
  margin-bottom: 24px;
}
.history-item-paid {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, #a13d2d);
}
