:root {
  --bg: #f6faff;
  --surface: #ffffff;
  --surface-soft: #edf5ff;
  --ink: #12315f;
  --muted: #5d7192;
  --line: #cbdcf2;
  --accent: #2168d8;
  --accent-dark: #164b9e;
  --focus: rgba(33, 104, 216, 0.2);
  --shadow: 0 18px 45px rgba(23, 75, 158, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f7fbff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 18px 40px;
  display: flex;
  align-items: center;
}

.view {
  display: none;
  width: 100%;
}

.view-active {
  display: block;
}

#homeView,
.question-panel,
.report-card,
.developer-panel {
  background: rgba(255, 253, 251, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

#homeView {
  padding: 34px 22px 28px;
}

.brand-mark,
.dimension-label,
.progress-text {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 22px;
}

h3 {
  margin-top: 26px;
  font-size: 18px;
}

.subtitle {
  margin: 14px 0 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.intro-copy {
  margin: 0 0 26px;
  padding: 16px;
  background: var(--surface-soft);
  border-radius: 8px;
  color: #4b423d;
  line-height: 1.7;
}

.intro-copy p {
  margin: 0;
}

.intro-copy p + p {
  margin-top: 8px;
}

.type-preview,
.dimension-preview {
  margin: 22px 0;
}

.type-preview h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.type-tags,
.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.type-tags span,
.keyword-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #574b45;
  font-size: 13px;
  font-weight: 700;
}

.type-preview p,
.dimension-preview p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.dimension-preview {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf7;
}

.dimension-preview div {
  display: grid;
  gap: 3px;
}

.dimension-preview strong {
  color: var(--accent-dark);
}

.dimension-preview span {
  color: #5d534d;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 700;
}

.text-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.text-input:focus,
.option-button:focus-visible,
button:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus);
  outline: none;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
}

.primary-button {
  width: 100%;
  color: #fff;
  background: var(--accent-dark);
}

.primary-button:hover {
  background: #633634;
}

.developer-entry {
  display: block;
  margin: 16px auto 0;
  border: 0;
  background: transparent;
  color: #9b8e86;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.developer-entry:hover {
  color: var(--accent-dark);
}

.secondary-button {
  color: var(--accent-dark);
  background: #fff;
  border-color: var(--line);
}

.secondary-button:disabled {
  color: #b7aaa2;
  background: #f5eeea;
  cursor: not-allowed;
}

.error-text {
  min-height: 22px;
  margin: 8px 0 12px;
  color: #a63838;
  font-size: 14px;
}

.quiz-header {
  margin-bottom: 14px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eadfd8;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 180ms ease;
}

.question-panel {
  padding: 24px 18px;
}

.options-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.option-button {
  width: 100%;
  min-height: 58px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
  line-height: 1.55;
}

.option-button.is-selected {
  border-color: var(--accent);
  background: #fbf1ef;
  box-shadow: inset 4px 0 0 var(--accent);
}

.quiz-actions,
.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.result-heading {
  margin-bottom: 14px;
}

.developer-panel {
  padding: 24px 18px;
}

.developer-panel .field-label {
  margin-top: 16px;
}

.developer-actions {
  display: grid;
  gap: 12px;
}

.batch-reports {
  margin-top: 18px;
}

.batch-item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.batch-item:first-child {
  border-top: 0;
}

.batch-item .report-card {
  margin-top: 12px;
}

.batch-copy {
  width: 100%;
  margin-top: 12px;
}

.report-card {
  padding: 24px 18px;
  line-height: 1.82;
}

.report-card {
  background: #f8fafc;
}

.share-card {
  margin: 0 0 22px;
  padding: 24px 18px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.share-eyebrow {
  margin: 0 0 12px;
  color: #1f3a5f;
  font-size: 13px;
  font-weight: 800;
}

.share-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.share-card h2 {
  margin-top: 18px;
  color: #0f172a;
  font-size: 32px;
}

.share-formula {
  margin: 10px 0 16px;
  color: #3f3834;
  font-size: 16px;
  font-weight: 700;
}

.share-card .keyword-list span {
  background: #eef4fb;
  color: #1f3a5f;
  border-color: #d6e1ef;
}

.structure-panel,
.structure-explain,
.intervention-card,
.conversion-card {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.section-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.section-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 19px;
}

.metric-list {
  display: grid;
  gap: 14px;
}

.metric-row {
  display: grid;
  gap: 7px;
}

.metric-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.metric-meta strong {
  color: #0f172a;
}

.metric-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eaf1;
}

.metric-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f3a5f, #48739f);
}

.metric-row p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.structure-explain {
  display: grid;
  gap: 12px;
}

.structure-explain article {
  padding-top: 12px;
  border-top: 1px solid #e5eaf1;
}

.structure-explain article:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.structure-explain h4 {
  margin: 0 0 5px;
  color: #1f3a5f;
  font-size: 14px;
}

.structure-explain p {
  margin: 0;
  color: #334155;
}

.report-card .formula-label {
  margin: 4px 0 6px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.report-card h2.formula-title {
  margin-top: 0;
  font-size: 24px;
  color: var(--accent-dark);
}

.report-card p {
  margin: 8px 0 0;
  color: #4a423e;
}

.report-card .report-meta {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
}

.formula-strip {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
}

.formula-strip span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #594d47;
  font-weight: 700;
}

.core-card {
  margin: 22px 0 24px;
  padding: 18px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #f4f7fb;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.core-card .core-eyebrow {
  margin: 0 0 8px;
  color: #1f3a5f;
  font-size: 15px;
  font-weight: 800;
}

.core-card p:last-child {
  margin: 0;
  color: #3d3430;
  font-size: 17px;
  line-height: 1.82;
}

.insight-card,
.upgrade-note {
  margin: 18px 0;
  padding: 17px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.insight-card h3 {
  margin: 4px 0 8px;
  color: var(--accent-dark);
  font-size: 22px;
}

.insight-card p,
.upgrade-note p {
  margin: 0;
}

.card-label {
  color: #1f3a5f;
  font-size: 13px;
  font-weight: 800;
}

.pattern-card {
  border-color: #d8dee8;
  background: #ffffff;
}

.conclusion-card {
  border-color: #b8c7d9;
  background: #f8fbff;
}

.conclusion-card h3 {
  font-size: 20px;
}

.conclusion-card p:last-child {
  color: #0f172a;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.7;
}

.reality-card {
  border-color: #cfd9e6;
  background: #fbfcfe;
}

.reality-card ol {
  margin: 8px 0 0;
  padding-left: 22px;
}

.reality-card li {
  margin: 10px 0;
  color: #334155;
  line-height: 1.78;
}

.suitable-card {
  border-color: rgba(91, 123, 103, 0.28);
  background: #f7fbf7;
}

.unsuitable-card {
  border-color: rgba(138, 83, 74, 0.25);
  background: #fff7f5;
}

.upgrade-note {
  background: #eef4fb;
  color: #26374d;
  font-weight: 700;
}

.intervention-card {
  background: #0f172a;
  border-color: #0f172a;
  color: #eef4fb;
}

.intervention-card .card-label,
.intervention-card h3 {
  color: #ffffff;
}

.intervention-card ol {
  margin: 0;
  padding-left: 22px;
}

.intervention-card li {
  margin: 10px 0;
  color: #dbeafe;
  line-height: 1.75;
}

.conversion-card {
  background: #ffffff;
  border-color: #cfd9e6;
}

.conversion-card .primary-button {
  background: #0f172a;
}

.conversion-card .primary-button:hover {
  background: #1f3a5f;
}

.consultation-note {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #f8fafc;
}

.consultation-note h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 18px;
}

.consultation-note p {
  margin: 0;
  color: #334155;
  font-weight: 700;
}

.consultation-note p + p {
  margin-top: 8px;
}

.consultation-note .wechat-id,
.consultation-note .wechat-note {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #e8eef6;
  color: #0f172a;
  font-size: 16px;
  letter-spacing: 0;
}

.consultation-note small {
  display: block;
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.developer-paid-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.developer-paid-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1f3a5f;
}

.core-preview-card {
  position: relative;
  overflow: hidden;
  padding-bottom: 16px;
}

.core-preview-copy {
  position: relative;
  max-height: 108px;
  overflow: hidden;
}

.core-preview-copy::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 52px;
  background: linear-gradient(180deg, rgba(244, 247, 251, 0), #f4f7fb 82%);
  pointer-events: none;
}

.core-preview-hint {
  position: relative;
  margin-top: 10px !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 800;
  text-align: center;
}

.paywall-card {
  margin: 22px 0;
  padding: 22px 18px;
  border: 1px solid #b8c7d9;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
  text-align: center;
}

.paywall-eyebrow {
  margin: 0 !important;
  color: #1f3a5f !important;
  font-size: 13px;
  font-weight: 800;
}

.paywall-card h3 {
  margin: 6px 0 8px;
  color: #0f172a;
  font-size: 22px;
}

.paywall-card p:not(.paywall-eyebrow) {
  margin: 0 auto;
  max-width: 520px;
  color: #475569;
}

.paywall-card .paywall-benefits-title {
  margin-top: 14px;
  font-weight: 750;
}

.paywall-benefits {
  max-width: 520px;
  margin: 10px auto 0;
  padding-left: 22px;
  color: #334155;
  line-height: 1.7;
  text-align: left;
}

.paywall-benefits li + li {
  margin-top: 3px;
}

.paywall-card .primary-button {
  width: 100%;
  margin-top: 18px;
  background: #0f172a;
}

.paywall-card .paywall-caption {
  margin-top: 9px;
  color: #7a8798;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.locked-report-preview {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.report-summary,
.free-insight-card,
.full-unlocked-card,
.locked-report-remaining,
.full-report-section {
  margin: 0 0 22px;
  padding: 20px 18px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.report-summary h2,
.free-insight-card h2,
.full-unlocked-card h2,
.full-report-section h2 {
  margin: 0;
  color: #1e293b;
  font-size: 22px;
  line-height: 1.45;
}

.report-summary .share-formula {
  margin: 10px 0 16px;
}

.free-insight-card .one-line-conclusion {
  margin: 0 0 18px;
  color: #334155;
  font-weight: 700;
  line-height: 1.8;
}

.free-insight-card h2 {
  margin-bottom: 10px;
}

.free-insight-card p:last-child,
.full-unlocked-card p:last-child {
  margin: 0;
  color: #4a5568;
  line-height: 1.85;
}

.full-unlocked-card {
  border-color: #cbd8e7;
  background: #f8fbff;
}

.full-unlocked-card h2 {
  margin-bottom: 8px;
}

.full-report-section {
  padding: 24px 18px;
}

.full-report-section h2 {
  margin-bottom: 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e5eaf1;
}

.full-report-section p {
  margin: 0 0 14px;
  color: #3f4a59;
  line-height: 1.95;
}

.full-report-section p:last-child {
  margin-bottom: 0;
}

.full-report-intro {
  background: #fbfcfe;
}

.locked-report-remaining ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #475569;
  line-height: 1.65;
}

.locked-preview-item {
  overflow: hidden;
  padding: 16px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
}

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

.locked-preview-head h3 {
  min-width: 0;
  margin: 0;
  color: #1e293b;
  font-size: 17px;
  line-height: 1.45;
}

.locked-preview-head span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.locked-preview-copy {
  position: relative;
  max-height: 54px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.locked-preview-clear {
  color: #475569;
  font-weight: 650;
}

.locked-preview-faded {
  color: #718096;
  filter: blur(2.6px);
  opacity: 0.48;
}

.locked-preview-copy::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 42%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 90%);
  pointer-events: none;
}

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

.section-eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}

.s1-result { margin: 0 0 28px; }

/* Frozen S1 V1 mother-card proportions and typography, scoped for product integration. */
.s1-card {
  --s1-paper: #f3f1ec;
  --s1-ink: #282825;
  --s1-copy: #4d4c47;
  --s1-muted: #817f78;
  --s1-hairline: #d8d5cd;
  --s1-faint: rgba(48, 48, 44, .16);
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  padding: clamp(29px, 8.5%, 36px);
  color: var(--s1-ink);
  background: var(--s1-paper);
  box-shadow: 0 12px 25px rgba(51, 49, 43, .10), 0 0 0 1px rgba(54, 52, 47, .05);
}
.s1-card .identity-rule { width: 100%; height: 1px; margin: 20% 0 24px; background: var(--s1-hairline); }
.s1-card .identity-code { position: relative; z-index: 1; margin: 0; font-family: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", SimSun, serif; font-size: clamp(42px, 12vw, 58px); font-weight: 500; letter-spacing: .06em; line-height: 1; }
.s1-card .identity-signature { position: relative; z-index: 1; margin: 16px 0 0; color: var(--s1-copy); font-size: 14px; letter-spacing: .025em; line-height: 1.6; }
.s1-card .identity-list { position: relative; z-index: 1; display: grid; gap: 16px; margin: 44px 0 0; }
.s1-card .identity-list > div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: baseline; }
.s1-card .identity-list dt, .s1-card .identity-list dd { margin: 0; }
.s1-card .identity-list dt { color: var(--s1-muted); font-size: 11px; letter-spacing: .09em; }
.s1-card .identity-list dt b { margin-left: 4px; color: var(--s1-ink); font-family: Georgia, serif; font-size: 13px; font-weight: 500; }
.s1-card .identity-list dd { color: var(--s1-copy); font-size: 15px; }
.s1-card .identity-mark { position: absolute; pointer-events: none; right: 9%; bottom: 15%; width: 110px; height: 45px; }
.s1-card .identity-mark i, .s1-card .identity-mark b { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--s1-faint); }
.s1-card .identity-mark i { top: 3px; left: 0; }
.s1-card .identity-mark b { right: 0; bottom: 0; }
.s1-card .identity-mark em { position: absolute; top: 10px; left: 10px; width: 82px; height: 1px; background: var(--s1-faint); transform: rotate(18deg); transform-origin: left; }
.s1-card .brand { position: relative; z-index: 1; margin: auto 0 0; color: var(--s1-muted); font-size: 9px; letter-spacing: .08em; }

.unlock-report-card, .relationship-map { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.unlock-report-card h2, .relationship-map h2 { margin: 0 0 10px; color: #1e293b; }
.unlock-price { margin: 18px 0 12px; color: var(--accent-dark); font-family: Georgia, serif; font-size: 30px; }
.payment-status { min-height: 24px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.payment-retry-button { margin-top: 8px; }
.payment-recovery-panel { margin: 12px 0; padding: 12px 14px; border-left: 3px solid var(--accent); background: #f8fafc; color: var(--muted); font-size: 14px; line-height: 1.6; }
.payment-recovery-panel p { margin: 0; }
.payment-recovery-panel .secondary-button { margin-top: 8px; }
.report-unlock-notice { margin: 12px 0 0; color: #166534; font-size: 14px; line-height: 1.6; animation: report-unlock-notice-fade 6s ease forwards; }
@keyframes report-unlock-notice-fade { 0%, 78% { opacity: 1; } 100% { opacity: 0; } }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.invitation-redeem {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.invitation-redeem-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.invitation-redeem-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}
.invitation-redeem-input {
  min-width: 0;
  margin: 0;
  flex: 1 1 auto;
}
.invitation-redeem-button {
  min-height: 44px;
  flex: 0 0 auto;
  padding-inline: 16px;
}
.invitation-redeem-status {
  min-height: 21px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.report-unlock-notice {
  margin: 14px 0 0;
  color: var(--accent-dark);
  font-weight: 700;
}
.invitation-bound-panel,
.report-access-notice {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #f8fbff;
}
.invitation-bound-panel p,
.report-access-notice p,
.quiz-entry-notice {
  margin: 0;
  color: #334155;
  line-height: 1.7;
}
.invitation-bound-panel .secondary-button { margin-top: 12px; }
.quiz-entry-notice { min-height: 0; margin: 0 0 14px; font-size: 14px; }
.relationship-map-intro { margin: 0 0 20px; color: var(--muted); }
.relationship-map-item { padding: 18px 0; border-top: 1px solid var(--line); }
.relationship-map-item h3 { margin: 0 0 8px; color: #1e293b; font-size: 17px; }
.relationship-map-item p { margin: 0; line-height: 1.85; }

.payment-test-modal[hidden] {
  display: none;
}

.payment-test-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.payment-test-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
}

.payment-test-dialog {
  position: relative;
  width: min(100%, 420px);
  padding: 24px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
}

.payment-test-dialog h3 {
  margin: 4px 0 10px;
  color: #0f172a;
  font-size: 22px;
}

.payment-test-dialog p {
  margin: 0;
  color: #475569;
}

.payment-close-button {
  width: 100%;
  margin-top: 18px;
}

.detail-section {
  margin-top: 24px;
  padding-top: 4px;
}

.detail-section .card-label {
  margin: 0 0 12px;
}

.report-card .code {
  font-weight: 800;
  color: var(--accent-dark);
}

.copy-status {
  min-height: 24px;
  color: var(--accent-dark);
  text-align: center;
}

.report-watermark {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.report-watermark p {
  margin: 0;
  font-size: 14px;
}

.admin-shell {
  align-items: flex-start;
}

.admin-panel {
  width: 100%;
}

.admin-warning {
  margin: 12px 0 20px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff3ef;
  color: #88433d;
  font-weight: 700;
}

.admin-environment { margin: 8px 0; padding: 7px 10px; border-radius: 7px; font-weight: 800; display: inline-block; background: #edf3ff; color: #1f4b86; }
.admin-environment.qa { background: #fff6d9; color: #855d00; }

.admin-content {
  display: grid;
  gap: 22px;
}

.admin-section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.admin-section h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.admin-secondary {
  width: 100%;
  margin-top: 10px;
}

.admin-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.admin-filter-toolbar {
  grid-template-columns: minmax(130px, 0.35fr) minmax(220px, 1fr) auto;
}

.admin-list,
.admin-table {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-row,
.admin-record {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.admin-record p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-record span {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.admin-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 27, 31, 0.38);
}

.admin-detail-backdrop[hidden],
.admin-report-detail[hidden] {
  display: none;
}

.admin-report-detail {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 81;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(880px, 58vw);
  height: 100dvh;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -18px 0 48px rgba(20, 27, 31, 0.18);
}

body.admin-detail-open {
  overflow: hidden;
}

.admin-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.admin-record-actions .error-text {
  flex-basis: 100%;
  margin: 0;
}

.admin-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.admin-drawer-close {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.admin-drawer-close:hover {
  background: var(--surface-soft);
}

.admin-detail-body {
  min-height: 0;
  padding: 0 22px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.admin-detail-header h3 {
  margin: 2px 0 0;
  font-size: 21px;
}

.admin-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.admin-detail-meta > div {
  min-width: 0;
  padding: 11px 12px;
  background: #fff;
}

.admin-detail-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.admin-detail-meta dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.admin-report-text {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: #f8f8f7;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-detail-actions {
  display: flex;
  justify-content: flex-end;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.admin-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.status-used {
  border-color: rgba(136, 67, 61, 0.32);
  background: #fff8f6;
}

.status-disabled {
  opacity: 0.72;
  background: #f2efec;
}

.public-flow-note {
  margin: 10px 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.text-action {
  display: block;
  min-height: 36px;
  margin: 2px 0 8px;
  padding: 0;
  border: 0;
  color: var(--accent-dark);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.text-action::after {
  content: "＋";
  margin-left: 6px;
  font-weight: 400;
}

.text-action[aria-expanded="true"]::after {
  content: "－";
}

.home-tool-panel {
  margin: 8px -22px 18px;
  padding: 18px 22px;
  border-block: 1px solid var(--line);
  background: #faf7f4;
}

.home-tool-panel[hidden],
.report-recovery-card[hidden],
.continue-report-button[hidden] {
  display: none;
}

.home-tool-panel .field-label + .text-input,
.history-method .text-input {
  margin-bottom: 12px;
}

.home-tool-panel .secondary-button {
  width: 100%;
}

.tool-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.history-panel h2 {
  margin-bottom: 18px;
  font-size: 18px;
}

.recent-reports-panel {
  margin: 0 0 18px;
}

.recent-reports-panel h3 {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 14px;
}

.recent-reports-list {
  display: grid;
  gap: 8px;
}

.recent-report-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.recent-report-item strong,
.recent-report-item span,
.recent-report-item small {
  display: block;
}

.recent-report-item strong {
  color: var(--ink);
  font-size: 14px;
}

.recent-report-item span,
.recent-report-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.recent-report-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.recent-report-actions .text-action {
  font-size: 12px;
}

.history-method-label {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.history-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
}

.history-divider::before,
.history-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.continue-report-button {
  width: 100%;
  margin-top: 10px;
}

.report-recovery-card {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(70, 47, 39, 0.08);
}

.report-recovery-card h2 {
  margin-bottom: 8px;
  font-size: 18px;
}

.report-recovery-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.recovery-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.recovery-credential {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: #faf7f4;
}

.recovery-credential span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.recovery-credential strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  letter-spacing: 0;
}

.copy-credentials-button {
  width: 100%;
}

.credential-copy-status {
  min-height: 20px;
  margin-top: 8px !important;
  text-align: center;
}

/* QingXu editorial blue system: intentionally scoped to the start and quiz flows. */
.app-shell {
  width: min(100%, 1120px);
  padding: 30px 24px 48px;
  align-items: flex-start;
}

#homeView,
#quizView {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #12315f;
}

#homeView {
  min-height: min(1180px, calc(100vh - 60px));
  padding: clamp(38px, 5vw, 58px) clamp(28px, 6vw, 64px) 42px;
  border: 1px solid #3d76d1;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

#homeView::before,
#homeView::after,
#quizView::before {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

#homeView > *,
#quizView > * {
  position: relative;
  z-index: 1;
}

#homeView::before {
  inset: 16px;
  border: 1px solid #86ace5;
  opacity: .72;
}

#homeView::after {
  display: none;
}

#quizView::before {
  inset: 0;
  opacity: .35;
  background: radial-gradient(ellipse 65% 36% at 100% 0%, transparent 58%, rgba(142, 191, 246, .17) 59%, transparent 61%);
}

.home-masthead,
.quiz-masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 12px;
}

.home-waterlines {
  position: absolute !important;
  z-index: 0 !important;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #8db8f4;
  opacity: .13;
  pointer-events: none;
}

.home-waterlines path {
  stroke-width: 1;
}

.archive-corner {
  position: absolute !important;
  z-index: 2 !important;
  width: 43px;
  height: 43px;
  color: #3973cc;
  pointer-events: none;
}

.archive-corner::before,
.archive-corner::after {
  position: absolute;
  content: "";
}

.archive-corner-tl { top: 0; left: 0; border-top: 2px solid currentColor; border-left: 2px solid currentColor; border-radius: 0 0 27px 0; }
.archive-corner-tr { top: 0; right: 0; border-top: 2px solid currentColor; border-right: 2px solid currentColor; border-radius: 0 0 0 27px; }
.archive-corner-bl { bottom: 0; left: 0; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; border-radius: 0 27px 0 0; }
.archive-corner-br { right: 0; bottom: 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; border-radius: 27px 0 0 0; }

.archive-corner::before { inset: 8px; border: 1px solid currentColor; opacity: .55; }
.archive-corner-tl::before { border-right: 0; border-bottom: 0; border-radius: 0 0 0 22px; }
.archive-corner-tr::before { border-left: 0; border-bottom: 0; border-radius: 0 0 22px 0; }
.archive-corner-bl::before { border-right: 0; border-top: 0; border-radius: 0 22px 0 0; }
.archive-corner-br::before { border-left: 0; border-top: 0; border-radius: 22px 0 0 0; }

.masthead-note {
  margin: 5px 0 0;
  color: #3169bd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .26em;
  line-height: 1.62;
}

.masthead-note-right {
  text-align: right;
}

.home-wordmark,
.quiz-wordmark {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #164b9e;
}

.home-wordmark strong,
.quiz-wordmark strong {
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1;
}

.home-wordmark span,
.quiz-wordmark span {
  color: #1d59bc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .28em;
}

.home-title-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: clamp(28px, 4vw, 46px) 0 0;
  color: #4c80ce;
}

.home-title-rule::before,
.home-title-rule::after {
  height: 1px;
  flex: 1;
  background: currentColor;
  content: "";
}

.home-title-rule span {
  width: 7px;
  height: 7px;
  background: currentColor;
  transform: rotate(45deg);
}

.home-hero {
  display: grid;
  justify-items: center;
  padding: clamp(66px, 8vw, 96px) 0 32px;
  text-align: center;
}

.home-kicker,
.home-subtitle,
.home-promise {
  margin: 0;
}

.home-kicker {
  color: #3971be;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(12px, 1.45vw, 15px);
  letter-spacing: .1em;
}

.home-hero h1 {
  margin: 26px 0 22px;
  color: #0f42a2;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(46px, 7.7vw, 88px);
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.08;
}

.home-subtitle {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #3971be;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(13px, 1.8vw, 18px);
  letter-spacing: .1em;
}

.home-subtitle::before,
.home-subtitle::after {
  width: clamp(32px, 6vw, 70px);
  height: 1px;
  background: currentColor;
  content: "";
}

.brand-archive-seal {
  display: block;
  width: clamp(184px, 24vw, 255px);
  aspect-ratio: 1;
  margin: clamp(42px, 6vw, 64px) 0 29px;
  background: transparent;
  filter: none;
}

.home-promise {
  color: #2861b3;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 500;
  letter-spacing: .06em;
}

.home-start-panel {
  width: min(100%, 430px);
  margin: 0 auto;
}

#homeView .field-label {
  color: #164fae;
  font-size: 12px;
  letter-spacing: .07em;
}

#homeView .text-input,
#quizView .text-input {
  min-height: 50px;
  border-color: #91b7ec;
  border-radius: 6px;
  color: #12315f;
  background: #ffffff;
}

#homeView .text-input::placeholder {
  color: #89a3c5;
}

#homeView .primary-button,
#quizView .primary-button {
  min-height: 50px;
  border-color: #2362c4;
  border-radius: 6px;
  background: #2867c7;
  box-shadow: none;
}

#homeView .primary-button:hover,
#quizView .primary-button:hover {
  background: #164b9e;
}

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

.home-invitation-button {
  width: 100%;
  margin-top: 10px;
  min-height: 50px;
  border-color: #5d91d8;
  border-radius: 6px;
  color: #1856bb;
  background: #ffffff;
}

.home-invitation-button.text-action::after {
  content: none;
}

#homeView .error-text {
  margin-bottom: 0;
  color: #a1415b;
}

#homeView .home-tool-panel {
  width: min(100%, 430px);
  margin: 12px auto 16px;
  padding: 18px;
  border: 1px solid #c4d9f4;
  border-radius: 12px;
  background: #f7fbff;
}

#homeView .public-flow-note {
  display: none;
}

.home-history-action {
  width: max-content;
  margin: 16px auto 0;
  color: #205cbb;
  font-size: 14px;
}

.home-utility-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 48px 0 0;
  border-top: 1px solid #8eb4e8;
}

.home-utility-list article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 16px 14px 0;
}

.home-utility-list article + article {
  border-left: 1px solid #a7c4ef;
}

.home-utility-list span {
  color: #3673d3;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
}

.home-utility-list strong {
  color: #164fae;
  font-size: 12px;
}

.home-utility-list small {
  color: #4773ae;
  font-size: 10px;
  line-height: 1.55;
}

#quizView {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid #c0d6f2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(21, 74, 154, .045);
}

#quizView::after {
  display: none;
}

.quiz-header {
  margin-bottom: 21px;
  padding-bottom: 17px;
  border-bottom: 1px solid #d3e2f6;
}

.quiz-masthead {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.quiz-wordmark {
  justify-items: start;
}

.quiz-wordmark strong {
  font-size: 24px;
}

.quiz-wordmark span {
  font-size: 9px;
}

.quiz-back-button {
  min-height: 34px;
  margin: 0;
  color: #225dbb;
  font-size: 13px;
}

.quiz-back-button::after {
  content: "";
}

.quiz-progress-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 25px 0 10px;
}

.quiz-progress-label,
#quizView .progress-text {
  margin: 0;
  color: #4e75a8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
}

#quizView .progress-text {
  color: #1d5db8;
  font-size: 14px;
}

#quizView .progress-track {
  height: 4px;
  border-radius: 0;
  background: #dceafa;
}

#quizView .progress-bar {
  border-radius: 0;
  background: #2168d8;
}

#quizView .question-panel {
  padding: clamp(25px, 4vw, 38px) 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#quizView .dimension-label {
  margin-bottom: 13px;
  color: #4a7dbd;
  font-size: 12px;
  letter-spacing: .12em;
}

#quizView #questionTitle {
  max-width: 660px;
  color: #133b7e;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(25px, 4vw, 36px);
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 1.5;
}

#quizView .options-list {
  gap: 10px;
  margin-top: 27px;
}

#quizView .option-button {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 61px;
  padding: 14px 16px;
  border-color: #a6c4e9;
  border-radius: 7px;
  color: #174174;
  background: #ffffff;
  font-weight: 600;
  line-height: 1.55;
}

#quizView .option-button:hover {
  border-color: #5d92d4;
  background: #f8fbff;
}

#quizView .option-button.is-selected {
  border-color: #2168d8;
  background: #eaf4ff;
  box-shadow: inset 4px 0 0 #2168d8;
}

.option-index {
  display: inline-grid;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid #79a5dd;
  border-radius: 50%;
  color: #356cae;
  font-size: 12px;
  font-weight: 800;
}

.option-copy {
  min-width: 0;
}

#quizView .option-button.is-selected .option-index {
  border-color: #1c5fc7;
  color: #ffffff;
  background: #1c5fc7;
}

#quizView .quiz-actions {
  display: block;
  margin-top: 20px;
}

#quizView .quiz-actions .primary-button {
  width: 100%;
}

#quizView .quiz-entry-notice,
#quizView .error-text {
  color: #5b7598;
}

#quizView .error-text {
  color: #a1415b;
}

@media (max-width: 520px) {
  .app-shell {
    align-items: flex-start;
    padding: max(18px, env(safe-area-inset-top)) 14px max(28px, env(safe-area-inset-bottom));
  }

  h1 {
    font-size: 29px;
  }

  h2 {
    font-size: 20px;
  }

  .result-heading h1 {
    font-size: 23px;
    line-height: 1.35;
  }

  #homeView,
  .question-panel,
  .report-card,
  .developer-panel {
    padding: 22px 16px;
  }

  .share-card {
    padding: 22px 16px;
  }

  .share-card h2 {
    font-size: 29px;
  }

  .locked-preview-head {
    align-items: flex-start;
  }

  .locked-preview-head h3 {
    font-size: 16px;
  }

  .quiz-actions,
  .result-actions {
    grid-template-columns: 1fr;
  }

  .admin-inline,
  .admin-filter-toolbar,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .admin-detail-header {
    padding: 16px;
  }

  .admin-detail-meta {
    grid-template-columns: 1fr;
  }

  .admin-report-detail {
    width: 100%;
    max-width: none;
  }

  .admin-detail-body {
    padding: 0 16px 16px;
  }

  .admin-detail-actions {
    padding: 12px 16px 16px;
  }

  .home-tool-panel {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .recovery-credentials {
    grid-template-columns: 1fr;
  }

  .invitation-redeem-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .invitation-redeem-button {
    width: 100%;
  }

  #homeView { border-radius: 0; }
  #quizView { border-radius: 10px; }

  #homeView {
    min-height: 0;
    padding: 32px 25px 30px;
  }

  .masthead-note {
    font-size: 8px;
    letter-spacing: .22em;
  }

  .home-wordmark strong { font-size: 28px; }
  .home-wordmark span { font-size: 9px; }

  .archive-corner {
    width: 38px;
    height: 38px;
  }

  .archive-corner-tl,
  .archive-corner-tr,
  .archive-corner-bl,
  .archive-corner-br {
    border-width: 1.5px;
  }

  .archive-corner::before { inset: 7px; }

  .home-title-rule {
    margin-top: 34px;
  }

  .home-hero {
    padding-top: 60px;
  }

  .home-hero h1 {
    margin: 22px 0 20px;
    font-size: clamp(39px, 11.2vw, 49px);
    letter-spacing: .1em;
  }

  .home-kicker {
    font-size: 13px;
  }

  .home-subtitle {
    gap: 13px;
    font-size: 16px;
    letter-spacing: .1em;
  }

  .home-subtitle::before,
  .home-subtitle::after {
    width: 36px;
  }

  .brand-archive-seal {
    width: min(222px, 62vw);
    margin: 47px 0 28px;
  }

  .home-utility-list article {
    padding: 16px 8px 0;
  }

  .home-utility-list small {
    font-size: 10px;
  }

  #quizView {
    padding: 27px 22px 30px;
  }

  #quizView #questionTitle {
    font-size: 25px;
  }

  #quizView .option-button {
    gap: 11px;
    min-height: 60px;
    padding-inline: 13px;
  }
}

/* Reference reconstruction: the two public views follow the supplied QingXu art direction. */
.app-shell {
  width: min(100%, 1000px);
  padding: 28px 30px;
}

#homeView,
#quizView {
  border: 1px solid #0f52c8;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

#homeView {
  min-height: 1616px;
  padding: 55px 52px 36px;
}

#homeView::before {
  inset: 10px;
  border-color: #5b8ce0;
  opacity: .76;
}

.home-waterlines {
  color: #79a9eb;
  opacity: .105;
}

.home-waterlines path,
.quiz-waterlines path {
  stroke-width: .85;
}

.archive-corner {
  width: 50px;
  height: 50px;
  color: #0f52c8;
}
.archive-corner-tl { border-top-width: 2px; border-left-width: 2px; }
.archive-corner-tr { border-top-width: 2px; border-right-width: 2px; }
.archive-corner-bl { border-bottom-width: 2px; border-left-width: 2px; }
.archive-corner-br { border-bottom-width: 2px; border-right-width: 2px; }
.archive-corner::before { inset: 8px; opacity: .58; }

.home-masthead {
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
}

.cover-menu-mark {
  display: grid;
  width: 43px;
  gap: 9px;
  padding: 7px 0;
}
.cover-menu-mark i {
  display: block;
  width: 42px;
  height: 2px;
  background: #0b55c9;
}
.cover-profile-mark {
  position: relative;
  justify-self: end;
  display: block;
  width: 42px;
  height: 42px;
  border: 2px solid #0b55c9;
  border-radius: 50%;
}
.cover-profile-mark::before,
.cover-profile-mark::after {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
}
.cover-profile-mark::before {
  top: 7px;
  width: 12px;
  height: 12px;
  border: 1.6px solid #0b55c9;
  border-radius: 50%;
}
.cover-profile-mark::after {
  bottom: 6px;
  width: 22px;
  height: 12px;
  border: 1.6px solid #0b55c9;
  border-radius: 15px 15px 7px 7px;
}

.home-wordmark strong,
.quiz-wordmark strong {
  font-size: 39px;
  font-weight: 500;
  letter-spacing: .16em;
}
.home-wordmark span,
.quiz-wordmark span {
  margin-left: .16em;
  font-size: 12px;
  letter-spacing: .42em;
}

.masthead-note {
  position: absolute;
  top: 141px;
  z-index: 2;
  margin: 0;
  color: #0e50bd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .31em;
  line-height: 1.6;
}
.masthead-note-left { left: 52px; }
.masthead-note-right { right: 52px; }

.home-title-rule {
  margin-top: 102px;
  color: #1f60c9;
}
.home-title-rule span,
.quiz-title-rule span {
  width: 10px;
  height: 10px;
}

.home-hero {
  position: relative;
  padding: 53px 0 0;
}
.home-kicker {
  font-size: 21px;
  letter-spacing: .12em;
}
.home-hero h1 {
  margin: 37px 0 27px;
  color: #0739a2;
  font-size: clamp(64px, 8.6vw, 100px);
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.04;
}
.home-subtitle {
  gap: 25px;
  font-size: 23px;
  letter-spacing: .16em;
}
.home-subtitle::before,
.home-subtitle::after {
  width: 98px;
}

.brand-archive-seal {
  position: relative;
  top: auto;
  right: auto;
  z-index: 1;
  width: min(360px, 46vw);
  margin: 44px auto 30px;
}
.brand-archive-seal img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.home-promise {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 29px;
  color: #104cb6;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .15em;
}
.home-promise::before,
.home-promise::after {
  width: 72px;
  height: 1px;
  background: currentColor;
  content: "";
}

.home-start-panel {
  width: min(100%, 570px);
  margin-top: 34px;
}
#homeView .field-label {
  margin: 0 0 7px;
  color: #1553b7;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 14px;
  letter-spacing: .1em;
}
#homeView .text-input {
  min-height: 51px;
  padding-inline: 18px;
  border: 1px solid #3a72d7;
  border-radius: 3px;
  font-size: 16px;
}
.home-start-panel .primary-button,
.home-invitation-button {
  min-height: 68px;
  border-radius: 38px;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .16em;
}
.home-start-panel .primary-button {
  margin-top: 20px;
  border: 0;
  background: #1c5fd0;
  box-shadow: 0 9px 21px rgba(29, 83, 188, .16);
}
.home-invitation-button {
  margin-top: 18px;
  border-color: #1356cb;
  color: #0c48b4;
}
.home-history-action {
  margin-top: 21px;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 15px;
  letter-spacing: .11em;
}
.home-history-action::after { content: "  +"; }

.home-utility-list {
  margin-top: 62px;
  border-top: 0;
}
.home-utility-list article {
  gap: 8px;
  padding: 10px 24px 0;
  text-align: center;
}
.home-utility-list article + article { border-left-color: #9bb8e7; }
.home-utility-list span { font-size: 10px; letter-spacing: .18em; }
.home-utility-list strong {
  color: #124cad;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 17px;
  font-weight: 500;
}
.home-utility-list small {
  color: #3d6cae;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 12px;
}

/* Quiz view follows the practical, portrait rhythm of the supplied questionnaire. */
#quizView {
  min-height: 1616px;
  padding: 55px 52px 92px;
}
#quizView::before {
  inset: 10px;
  border: 1px solid #5b8ce0;
  opacity: .76;
  background: none;
}
#quizView::after {
  display: block;
  position: absolute;
  right: 0;
  bottom: 53px;
  left: 0;
  z-index: 1;
  color: #1755b8;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 16px;
  letter-spacing: .18em;
  text-align: center;
  content: "——  更清晰的你   ✦   更自在的关系  ——";
}
.quiz-waterlines {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  color: #79a9eb;
  opacity: .09;
  pointer-events: none;
}
.quiz-header { position: relative; margin: 0; padding: 0; border: 0; }
.quiz-masthead {
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
}
.quiz-wordmark { justify-items: center; }
.quiz-back-button {
  justify-self: start;
  width: 42px;
  height: 42px;
  min-height: 0;
  padding: 0;
  color: transparent;
  border: 0;
  background: transparent;
}
.quiz-back-button::before {
  display: block;
  width: 20px;
  height: 20px;
  margin-left: 7px;
  border-bottom: 2px solid #0b55c9;
  border-left: 2px solid #0b55c9;
  content: "";
  transform: rotate(45deg);
}
.quiz-back-button::after { content: none; }
.quiz-profile-mark { margin-top: 3px; }
.quiz-side-note {
  position: absolute;
  top: 117px;
  z-index: 2;
  margin: 0;
  color: #0e50bd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .31em;
  line-height: 1.6;
}
.quiz-side-note-left { left: 0; }
.quiz-side-note-right { right: 0; text-align: right; }
.quiz-title-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 102px;
  color: #1f60c9;
}
.quiz-title-rule::before,
.quiz-title-rule::after {
  height: 1px;
  flex: 1;
  background: currentColor;
  content: "";
}
.quiz-title-rule span { background: currentColor; transform: rotate(45deg); }
.quiz-progress-copy {
  position: relative;
  display: block;
  margin: 52px 0 0;
}
.quiz-progress-label { display: none; }
#quizView .progress-text {
  color: #0a48b6;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: .07em;
}
.quiz-progress-copy::after {
  position: absolute;
  top: -8px;
  right: 0;
  color: #1553b7;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 16px;
  letter-spacing: .11em;
  line-height: 1.8;
  text-align: right;
  white-space: pre;
  content: "更清晰的你\A 更自在的关系";
}
#quizView .progress-track {
  height: 14px;
  margin: -28px 162px 0 140px;
  border-radius: 11px;
  background: #deebff;
}
#quizView .progress-bar {
  border-radius: 11px;
  background: #135ad0;
}
#quizView .question-panel {
  max-width: 780px;
  margin: 0 auto;
  padding: 85px 0 0;
}
#quizView .dimension-label {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0 0 34px;
  color: transparent;
  font-size: 0;
}
#quizView .dimension-label::before {
  color: #1451b8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .42em;
  content: "QUESTION";
}
#quizView .dimension-label::after {
  height: 1px;
  flex: 1;
  background: #6c96dd;
  content: "";
}
#quizView #questionTitle {
  max-width: 690px;
  margin: 0 auto;
  color: #073aa3;
  font-size: clamp(25px, 4vw, 36px);
  font-weight: 500;
  letter-spacing: .07em;
  line-height: 1.38;
  text-align: center;
}
#quizView .question-panel::after {
  display: block;
  margin: 30px auto 0;
  color: #1958bd;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 18px;
  letter-spacing: .14em;
  text-align: center;
  content: "——  选择最接近你真实感受的选项  ——";
}
#quizView .options-list {
  gap: 21px;
  margin-top: 33px;
}
#quizView .option-button {
  min-height: 118px;
  gap: 31px;
  padding: 23px 37px;
  border: 1.5px solid #1359d1;
  border-radius: 23px;
  color: #1248ad;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
}
#quizView .option-button.is-selected {
  border-color: #1055cb;
  background: #e9f2ff;
  box-shadow: inset 0 0 0 1px #1055cb;
}
.option-index {
  flex-basis: 69px;
  width: 69px;
  height: 69px;
  border: 0;
  color: #124db4;
  background: #edf5ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 400;
}
#quizView .option-button.is-selected .option-index {
  border: 0;
  color: #fff;
  background: #1458cd;
}
#quizView .quiz-actions {
  max-width: 570px;
  margin: 70px auto 0;
}
#quizView .quiz-actions .primary-button {
  min-height: 88px;
  border: 0;
  border-radius: 48px;
  background: #1b5fd0;
  box-shadow: 0 10px 22px rgba(23, 83, 190, .16);
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .16em;
}

@media (max-width: 700px) {
  .app-shell { padding: max(15px, env(safe-area-inset-top)) 14px max(20px, env(safe-area-inset-bottom)); }
  #homeView, #quizView { min-height: 0; padding: 33px 29px 37px; }
  .home-masthead, .quiz-masthead { align-items: start; }
  .cover-menu-mark { width: 28px; gap: 6px; padding-top: 5px; }
  .cover-menu-mark i { width: 27px; height: 1.5px; }
  .cover-profile-mark { width: 31px; height: 31px; border-width: 1.5px; }
  .cover-profile-mark::before { top: 5px; width: 9px; height: 9px; border-width: 1.2px; }
  .cover-profile-mark::after { bottom: 4px; width: 16px; height: 9px; border-width: 1.2px; }
  .home-wordmark strong, .quiz-wordmark strong { font-size: 29px; }
  .home-wordmark span, .quiz-wordmark span { font-size: 9px; }
  .masthead-note { top: 105px; font-size: 8px; }
  .masthead-note-left { left: 29px; }
  .masthead-note-right { right: 29px; }
  .home-title-rule, .quiz-title-rule { margin-top: 75px; }
  .home-hero { padding-top: 42px; }
  .home-kicker { font-size: 14px; }
  .home-hero h1 { margin: 29px 0 22px; font-size: clamp(44px, 12vw, 59px); }
  .home-subtitle { gap: 14px; font-size: 16px; }
  .home-subtitle::before, .home-subtitle::after { width: 50px; }
  .brand-archive-seal { width: min(290px, 72vw); margin: 34px auto 24px; }
  .home-promise { gap: 12px; margin-top: 20px; font-size: 15px; }
  .home-promise::before, .home-promise::after { width: 34px; }
  .home-start-panel { width: min(100%, 430px); margin-top: 31px; }
  #homeView .field-label { font-size: 12px; }
  .home-start-panel .primary-button, .home-invitation-button { min-height: 55px; font-size: 21px; }
  .home-utility-list { margin-top: 46px; }
  .home-utility-list article { padding: 8px 8px 0; }
  .home-utility-list strong { font-size: 12px; }
  .home-utility-list small { font-size: 9px; }
  .archive-corner { width: 39px; height: 39px; }

  #quizView { padding-bottom: 69px; }
  .quiz-side-note { top: 93px; font-size: 8px; }
  .quiz-title-rule { margin-top: 71px; }
  .quiz-progress-copy { margin-top: 37px; }
  #quizView .progress-text { font-size: 21px; }
  .quiz-progress-copy::after { top: -3px; font-size: 12px; }
  #quizView .progress-track { height: 9px; margin: -20px 106px 0 96px; }
  #quizView .question-panel { padding-top: 59px; }
  #quizView .dimension-label { margin-bottom: 24px; }
  #quizView .dimension-label::before { font-size: 11px; }
  #quizView #questionTitle { font-size: clamp(28px, 8vw, 37px); }
  #quizView .question-panel::after { margin-top: 22px; font-size: 13px; }
  #quizView .options-list { gap: 13px; margin-top: 25px; }
  #quizView .option-button { min-height: 82px; gap: 17px; padding: 16px 19px; border-radius: 16px; font-size: 17px; }
  .option-index { flex-basis: 48px; width: 48px; height: 48px; font-size: 25px; }
  #quizView .quiz-actions { margin-top: 44px; }
  #quizView .quiz-actions .primary-button { min-height: 65px; font-size: 23px; }
  #quizView::after { bottom: 29px; font-size: 11px; }
}
#quizView > .quiz-waterlines {
  position: absolute !important;
  z-index: 0 !important;
}
#quizView > .archive-corner {
  position: absolute !important;
  z-index: 2 !important;
}

/* P1 batch1 - statutory ICP filing notice (append-only, no other change). */
.icp-footer {
  box-sizing: border-box;
  width: min(100%, 1000px);
  margin: 0 auto;
  padding-top: 0;
  padding-right: 30px;
  padding-bottom: max(22px, env(safe-area-inset-bottom));
  padding-left: 30px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: #5b7598;
}

.icp-footer .icp-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 117, 152, .35);
}

@media (max-width: 700px) {
  .icp-footer {
    padding-right: 14px;
    padding-left: 14px;
  }
}
