:root {
  --ink: #1d1830;
  --muted: #6f6880;
  --line: rgba(63, 49, 91, 0.13);
  --surface: #fbfaff;
  --surface-strong: #ffffff;
  --violet: #7154ef;
  --violet-deep: #4f35c8;
  --violet-soft: #eee9ff;
  --blue: #4f7fc8;
  --mint: #35a987;
  --coral: #f6786b;
  --shadow: 0 28px 80px rgba(47, 34, 89, 0.13);
  --header-height: 76px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #f7f5fc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(126, 92, 255, 0.09), transparent 22rem),
    radial-gradient(circle at 92% 20%, rgba(78, 139, 211, 0.08), transparent 24rem),
    #f7f5fc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

/* 360 / 搜狗等国产壳浏览器字体渲染偏糊，强制更清晰的中文回退与抗锯齿 */
html.is-cn-shell,
html.is-cn-shell body {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.is-cn-shell body,
html.is-cn-shell button,
html.is-cn-shell input,
html.is-cn-shell textarea,
html.is-cn-shell a,
html.is-cn-shell .lock-preview,
html.is-cn-shell .lock-preview * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.is-cn-shell .site-header,
html.is-cn-shell .home-float-btn,
html.is-cn-shell .lock-preview__cta,
html.is-cn-shell .lock-preview__sheet-panel,
html.is-cn-shell .toast {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

body.modal-open {
  overflow: hidden;
}

button,
a,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
}

.page-glow--one {
  top: -18rem;
  left: -18rem;
  background: #8f71ff;
}

.page-glow--two {
  right: -22rem;
  top: 32rem;
  background: #59a3dd;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--content-width)) / 2));
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

body[data-current-screen="home"] .site-header {
  background: rgba(249, 247, 255, 0.92);
  border-color: rgba(60, 43, 98, 0.08);
  -webkit-font-smoothing: antialiased;
}

body:not([data-current-screen="home"]) .site-header {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.brand,
.header-action {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 6px 0;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 700;
  background: linear-gradient(145deg, #8d70ff, #5539d5);
  box-shadow: 0 8px 20px rgba(92, 58, 212, 0.25);
}

.brand b,
.brand small {
  display: block;
}

.brand b {
  font-size: 14px;
  letter-spacing: 0.12em;
}

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

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4f4567;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.header-action svg {
  width: 17px;
  height: 17px;
}

.screen {
  display: none;
  min-height: 100vh;
}

.screen.is-active {
  display: block;
  animation: screenIn 0.38s ease both;
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.home-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 3vw;
  padding: calc(var(--header-height) + 52px) max(24px, calc((100vw - var(--content-width)) / 2)) 70px;
  isolation: isolate;
  background:
    radial-gradient(circle at 76% 46%, rgba(118, 87, 244, 0.18), transparent 30%),
    linear-gradient(128deg, #faf8ff 0%, #f4f0ff 48%, #edf3ff 100%);
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.7), transparent 52%),
    radial-gradient(circle at 85% 0%, rgba(255,255,255,0.88), transparent 28%);
}

.hero-grid,
.cover-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(92, 68, 145, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 68, 145, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent, #000 48%, #000);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 600px;
  animation: heroCopyIn 0.8s 0.08s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes heroCopyIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.eyebrow,
.section-heading p,
.version-copy > p,
.history-panel header p {
  margin: 0;
  color: var(--violet);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 20px 0 24px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.hero-copy h1 span {
  color: var(--violet);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: #625a73;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.85;
}

.hero-action,
.home-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 34px;
  padding: 0 25px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #8064f7, #593bd3);
  box-shadow: 0 14px 34px rgba(84, 55, 204, 0.27);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-action:hover,
.home-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(84, 55, 204, 0.32);
}

.hero-portraits {
  position: relative;
  min-height: 590px;
  align-self: end;
  animation: heroVisualIn 0.9s 0.12s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes heroVisualIn {
  from { opacity: 0; transform: translateX(28px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.hero-portraits::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 82%;
  height: 72%;
  border-radius: 50% 50% 12% 12% / 48% 48% 16% 16%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,255,255,0.62), rgba(122,90,240,0.1));
  box-shadow: inset 0 0 0 1px rgba(96,70,161,0.08), 0 50px 80px rgba(69,48,125,0.12);
}

.portrait-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(105, 79, 178, 0.17);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.portrait-orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 7px rgba(113,84,239,0.12);
}

.portrait-orbit--outer {
  width: 540px;
  height: 540px;
  animation: orbitSpin 22s linear infinite;
}

.portrait-orbit--outer::after {
  top: 72px;
  right: 36px;
}

.portrait-orbit--inner {
  width: 380px;
  height: 380px;
  animation: orbitSpinReverse 16s linear infinite;
}

.portrait-orbit--inner::after {
  left: 20px;
  bottom: 92px;
  background: var(--blue);
}

@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotate(0); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbitSpinReverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0); }
}

.hero-person {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  width: min(57%, 370px);
  max-height: 540px;
  object-fit: contain;
  filter: drop-shadow(0 28px 30px rgba(43, 32, 76, 0.16));
}

.hero-person--left {
  left: 2%;
  animation: portraitFloat 5.5s ease-in-out infinite;
}

.hero-person--right {
  right: 0;
  animation: portraitFloat 5.5s 0.8s ease-in-out infinite;
}

@keyframes portraitFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-code {
  position: absolute;
  z-index: 3;
  display: grid;
  min-width: 66px;
  min-height: 38px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(74, 54, 124, 0.12);
  border-radius: 999px;
  color: #554870;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 12px 25px rgba(43,32,76,0.08);
}

.hero-code--one { top: 16%; left: 10%; }
.hero-code--two { top: 9%; right: 14%; }
.hero-code--three { bottom: 20%; left: -1%; }
.hero-code--four { bottom: 29%; right: -1%; }

.hero-seal {
  position: absolute;
  z-index: 4;
  right: 9%;
  bottom: 6%;
  display: grid;
  width: 106px;
  height: 106px;
  place-content: center;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  color: #fff;
  text-align: center;
  background: linear-gradient(145deg, rgba(117,88,239,0.92), rgba(66,44,171,0.95));
  box-shadow: 0 18px 40px rgba(76,47,187,0.26);
}

.hero-seal b {
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.hero-seal span {
  margin-top: 6px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.version-section,
.method-section,
.home-cta {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
}

.version-section {
  padding: 112px 0 94px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}

.section-heading h2,
.method-copy h2,
.home-cta h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading > span {
  max-width: 390px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

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

.version-choice {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 22px 70px rgba(45,34,79,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.version-choice:hover {
  transform: translateY(-6px);
  border-color: rgba(113,84,239,0.28);
  box-shadow: 0 30px 80px rgba(45,34,79,0.14);
}

.version-visual {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,0.9), transparent 32%),
    linear-gradient(165deg, #ece7ff, #ddd5ff);
}

.version-choice--authority .version-visual {
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,0.9), transparent 32%),
    linear-gradient(165deg, #e7f0ff, #d5e4fb);
}

.version-choice--starter {
  grid-column: 1 / -1;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 330px;
}

.version-choice--starter .version-visual {
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,0.9), transparent 32%),
    linear-gradient(165deg, #e9f8f1, #d5efe5);
}

.version-choice--starter .version-visual img {
  width: min(78%, 310px);
}

.version-visual::after {
  content: "";
  position: absolute;
  inset: 12% -35% -30%;
  border: 1px solid rgba(78,58,134,0.12);
  border-radius: 50%;
}

.version-visual img {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  width: 115%;
  max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 22px 26px rgba(42,31,78,0.16));
}

.version-number {
  position: absolute;
  z-index: 1;
  top: 24px;
  left: 18px;
  color: rgba(77,54,145,0.11);
  font-family: Georgia, serif;
  font-size: clamp(76px, 8vw, 126px);
  font-weight: 700;
  letter-spacing: -0.08em;
}

.recommend-tag {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: var(--violet);
  font-size: 11px;
  font-weight: 800;
}

.version-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 42px 34px 34px;
}

.version-copy h3 {
  margin: 12px 0 7px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.version-copy > span {
  color: var(--violet);
  font-size: 13px;
  font-weight: 800;
}

.version-price {
  display: inline-flex;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #4f36bf;
  background: rgba(113, 84, 239, 0.1);
  font-size: 13px;
  font-weight: 850;
}

.version-copy ul {
  display: grid;
  gap: 12px;
  margin: 30px 0 28px;
  padding: 0;
  color: #625b70;
  font-size: 14px;
  line-height: 1.55;
  list-style: none;
}

.version-copy li {
  position: relative;
  padding-left: 19px;
}

.version-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 5px rgba(113,84,239,0.1);
}

.version-button,
.pay-primary {
  width: 100%;
  min-height: 52px;
  margin-top: auto;
  border: 0;
  border-radius: 16px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #8064f7, #593bd3);
  box-shadow: 0 12px 28px rgba(84,55,204,0.22);
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.version-button:hover,
.pay-primary:hover {
  transform: translateY(-2px);
}

.version-button:disabled,
.pay-primary:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.method-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 80px;
  align-items: start;
  padding: 105px 0;
  border-top: 1px solid var(--line);
}

.method-copy {
  position: sticky;
  top: 110px;
}

.method-copy > p:last-child {
  max-width: 470px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.dimension-lines {
  border-top: 1px solid var(--line);
}

.dimension-lines > div {
  display: grid;
  grid-template-columns: 100px 150px 1fr;
  align-items: center;
  gap: 24px;
  min-height: 112px;
  border-bottom: 1px solid var(--line);
}

.dimension-lines b {
  color: var(--violet);
  font-family: Georgia, serif;
  font-size: 25px;
}

.dimension-lines span {
  font-size: 17px;
  font-weight: 800;
}

.dimension-lines small {
  color: var(--muted);
  font-size: 14px;
}

.home-cta {
  margin-bottom: 70px;
  padding: 82px 30px;
  border-radius: 36px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15), transparent 22%),
    radial-gradient(circle at 80% 80%, rgba(101,155,255,0.24), transparent 28%),
    linear-gradient(135deg, #271a52, #5c3ed2);
  box-shadow: 0 35px 90px rgba(45,30,94,0.23);
}

.home-cta p {
  margin: 0;
  color: rgba(255,255,255,0.68);
  font-size: 13px;
}

.home-cta h2 {
  margin: 14px auto 0;
  max-width: 680px;
}

.home-cta a {
  color: var(--violet-deep);
  background: #fff;
  box-shadow: 0 14px 34px rgba(25,13,63,0.22);
}

.test-shell,
.unlock-shell,
.pay-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.test-shell {
  width: min(900px, calc(100% - 40px));
}

@media (min-width: 901px) {
  body[data-current-screen="test"] {
    overflow: hidden;
  }

  body[data-current-screen="test"] .screen[data-screen="test"] {
    min-height: 100vh;
    min-height: 100dvh;
  }

  body[data-current-screen="test"] .test-shell {
    display: flex;
    flex-direction: column;
    width: min(860px, calc(100% - 48px));
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 18px 0 0;
    box-sizing: border-box;
  }

  body[data-current-screen="test"] .test-header {
    min-height: 48px;
    flex: 0 0 auto;
  }

  body[data-current-screen="test"] .test-header b {
    font-size: 13px;
  }

  body[data-current-screen="test"] .test-progress {
    margin-top: 14px;
    flex: 0 0 auto;
  }

  body[data-current-screen="test"] .test-progress-copy {
    margin-top: 8px;
    flex: 0 0 auto;
  }

  body[data-current-screen="test"] .question-stage {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-top: 16px;
    margin-bottom: 0;
    padding: 22px 28px 20px;
    border-radius: 24px;
    overflow: auto;
  }

  body[data-current-screen="test"] .question-stage h1 {
    margin: 12px 0 18px;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.4;
  }

  body[data-current-screen="test"] .answer-options {
    gap: 10px;
  }

  body[data-current-screen="test"] .answer-option {
    min-height: 64px;
    padding: 12px 16px;
    border-radius: 16px;
  }

  body[data-current-screen="test"] .option-code {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  body[data-current-screen="test"] .option-copy {
    font-size: 14px;
    line-height: 1.55;
  }

  body[data-current-screen="test"] .test-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    flex: 0 0 auto;
    grid-template-columns: 132px 1fr 132px;
    gap: 14px;
    margin-top: 0;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    background:
      linear-gradient(180deg, rgba(247, 245, 252, 0) 0%, rgba(247, 245, 252, 0.96) 28%, rgba(247, 245, 252, 1) 100%);
    -webkit-font-smoothing: antialiased;
  }

  body[data-current-screen="test"] .test-actions button {
    min-height: 46px;
    border-radius: 14px;
  }

  body[data-current-screen="test"] .test-actions p {
    font-size: 12px;
  }
}

.test-header,
.flow-header {
  display: grid;
  grid-template-columns: 52px 1fr 100px;
  align-items: center;
  min-height: 58px;
}

.test-header {
  grid-template-columns: 72px minmax(0, 1fr) 72px;
}

.test-header > div {
  min-width: 0;
  justify-self: center;
  text-align: center;
}

.test-header p,
.test-header b {
  display: block;
  margin: 0;
}

.test-header p {
  color: var(--violet);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.test-header b {
  margin-top: 3px;
  font-size: 14px;
}

.test-header > span {
  justify-self: end;
  color: var(--muted);
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.round-button,
.history-panel header button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,0.78);
  cursor: pointer;
}

.round-button svg,
.history-panel header button svg {
  width: 20px;
  height: 20px;
}

.test-progress {
  height: 5px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(86,65,131,0.1);
}

.test-progress i {
  display: block;
  width: 1%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8d71ff, #5b3bd8);
  transition: width 0.3s ease;
}

.test-progress-copy {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.test-progress-copy b {
  color: var(--violet);
}

.question-stage {
  min-height: 560px;
  margin-top: 48px;
  padding: 48px clamp(22px, 6vw, 70px) 52px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255,255,255,0.8);
  box-shadow: var(--shadow);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.question-stage.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.question-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.question-kicker span:first-child {
  color: var(--violet);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.question-kicker i {
  width: 34px;
  height: 1px;
  background: var(--line);
}

.question-stage h1 {
  max-width: 760px;
  margin: 25px 0 40px;
  font-size: clamp(24px, 3.3vw, 38px);
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.answer-options {
  display: grid;
  gap: 14px;
}

.answer-option {
  display: grid;
  grid-template-columns: 46px 1fr 26px;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 78px;
  padding: 13px 18px;
  border: 1px solid rgba(69,50,108,0.12);
  border-radius: 18px;
  color: #443c55;
  text-align: left;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.answer-option:hover {
  transform: translateY(-2px);
  border-color: rgba(113,84,239,0.35);
  box-shadow: 0 10px 24px rgba(64,45,112,0.08);
}

.answer-option.is-selected {
  border-color: rgba(113,84,239,0.56);
  background: linear-gradient(135deg, rgba(243,239,255,0.98), #fff);
  box-shadow: 0 10px 24px rgba(93,63,198,0.1);
}

.answer-option:disabled {
  cursor: default;
}

.option-code {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--violet);
  background: var(--violet-soft);
  font-family: Georgia, serif;
  font-weight: 700;
}

.option-copy {
  font-size: 15px;
  line-height: 1.65;
}

.option-check {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(78,59,121,0.2);
  border-radius: 50%;
}

.answer-option.is-selected .option-check {
  border: 5px solid var(--violet);
}

.test-actions {
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}

.test-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(113, 84, 239, 0.24);
  border-radius: 15px;
  color: var(--violet-deep);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(47, 34, 89, 0.07);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  touch-action: manipulation;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.test-actions [data-previous-question]::before {
  content: "←";
  font-size: 16px;
  line-height: 1;
}

.test-actions [data-next-question] {
  color: #fff;
  border-color: var(--violet);
  background: var(--violet);
  box-shadow: 0 10px 24px rgba(83, 57, 190, 0.2);
}

.test-actions [data-next-question]::after {
  content: "→";
  font-size: 16px;
  line-height: 1;
}

.test-actions button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--violet);
}

.test-actions [data-next-question]:hover:not(:disabled) {
  background: var(--violet-deep);
  box-shadow: 0 13px 28px rgba(83, 57, 190, 0.25);
}

.test-actions button:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.test-actions button:focus-visible {
  outline: 3px solid rgba(113, 84, 239, 0.2);
  outline-offset: 3px;
}

.text-button {
  min-height: 44px;
  border: 0;
  color: var(--violet);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.test-actions button:disabled {
  color: #aaa3b5;
  border-color: #e3dfea;
  background: #efecf4;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.test-actions p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.flow-header {
  grid-template-columns: 52px 1fr 52px;
  margin-bottom: 30px;
}

.flow-header > span {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.unlock-layout,
.pay-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.unlock-cover {
  position: sticky;
  top: 28px;
  overflow: hidden;
  min-height: 670px;
  align-self: start;
  padding: 38px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(255,255,255,0.2), transparent 26%),
    linear-gradient(150deg, #231747, #6c4ce0 72%, #8a73ed);
  box-shadow: 0 32px 80px rgba(49,29,112,0.28);
}

.unlock-cover::before,
.unlock-cover::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
}

.unlock-cover::before { right: -230px; top: 70px; }
.unlock-cover::after { left: -230px; bottom: -130px; }

.unlock-cover > p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255,255,255,0.7);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.sealed-type {
  position: absolute;
  z-index: 2;
  inset: 50% 30px auto;
  transform: translateY(-50%);
  text-align: center;
}

.sealed-type span,
.sealed-type strong,
.sealed-type b {
  display: block;
}

.sealed-type span {
  color: rgba(255,255,255,0.68);
  font-size: 13px;
}

.sealed-type strong {
  margin: 18px 0 10px;
  font-family: Georgia, serif;
  font-size: clamp(58px, 8vw, 94px);
  letter-spacing: 0.1em;
  text-shadow: 0 16px 36px rgba(17,8,49,0.3);
}

.sealed-type b {
  font-size: 15px;
  letter-spacing: 0.16em;
}

.cover-lock {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 67%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}

.cover-lock svg {
  width: 25px;
  height: 25px;
}

.cover-meta {
  position: absolute;
  z-index: 2;
  right: 34px;
  bottom: 34px;
  left: 34px;
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.unlock-copy {
  padding: 46px clamp(12px, 3vw, 36px) 20px;
}

.unlock-copy h1,
.pay-summary h1 {
  margin: 16px 0 18px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.unlock-copy > p:not(.eyebrow),
.pay-summary > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.preview-dimensions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 28px;
}

.preview-dimensions > div {
  padding: 14px 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  background: rgba(255,255,255,0.7);
}

.preview-dimensions b,
.preview-dimensions span {
  display: block;
}

.preview-dimensions b {
  color: var(--violet);
  font-family: Georgia, serif;
  font-size: 18px;
}

.preview-dimensions span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.unlock-includes {
  display: grid;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.unlock-includes > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.unlock-includes > div > span {
  color: var(--violet);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
}

.unlock-includes p {
  margin: 0;
}

.unlock-includes b,
.unlock-includes small {
  display: block;
}

.unlock-includes b {
  font-size: 14px;
}

.unlock-includes small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.payment-choice {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 18px 50px rgba(47,34,89,0.08);
}

.payment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.payment-heading span {
  font-size: 13px;
  font-weight: 800;
}

.payment-heading strong {
  color: var(--coral);
  font-size: 25px;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.payment-method {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #554d64;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.payment-method.is-selected {
  border-color: rgba(113,84,239,0.45);
  color: var(--violet);
  background: var(--violet-soft);
}

.payment-warning {
  display: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #9a493f;
  background: #fff0ed;
  font-size: 12px;
  line-height: 1.55;
}

.payment-warning.is-visible {
  display: block;
}

.payment-choice > small {
  display: block;
  margin-top: 11px;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

.pay-layout {
  min-height: 630px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow);
}

.pay-summary {
  padding: clamp(34px, 6vw, 70px);
  background:
    radial-gradient(circle at 0 100%, rgba(113,84,239,0.1), transparent 35%),
    #fff;
}

.order-summary {
  display: grid;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.order-summary > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 20px;
  min-height: 65px;
  border-bottom: 1px solid var(--line);
}

.order-summary span {
  color: var(--muted);
  font-size: 12px;
}

.order-summary b,
.order-summary strong,
.order-summary code {
  text-align: right;
  word-break: break-all;
}

.order-summary b {
  font-size: 13px;
}

.order-summary strong {
  color: var(--coral);
  font-size: 24px;
}

.order-summary code {
  color: #544b66;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.pay-status {
  margin-top: 26px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #5a506f;
  background: #f2eff9;
  font-size: 13px;
  line-height: 1.6;
}

.pay-status.is-success {
  color: #27755f;
  background: #e9f8f2;
}

.pay-status.is-error {
  color: #9c493e;
  background: #fff0ed;
}

.qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: linear-gradient(145deg, #f1edff, #e8f0ff);
}

.qr-frame {
  display: grid;
  width: min(300px, 80vw);
  aspect-ratio: 1;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(72,54,122,0.12);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 55px rgba(52,38,96,0.14);
}

.qr-frame img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-frame.has-code img {
  display: block;
}

.qr-frame.has-code > div {
  display: none;
}

.qr-frame > div {
  color: var(--muted);
  text-align: center;
}

.qr-frame > div span {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border: 3px solid rgba(113,84,239,0.16);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.qr-frame > div p {
  max-width: 180px;
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.qr-panel > b {
  margin-top: 24px;
  font-size: 15px;
}

.pay-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: var(--violet);
  font-size: 13px;
  font-weight: 800;
}

.pay-link[hidden] {
  display: none;
}

.qr-panel .text-button {
  margin-top: 13px;
}

.modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(24,17,43,0.56);
  backdrop-filter: blur(10px);
}

.history-panel {
  position: relative;
  z-index: 1;
  overflow: auto;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  padding: 30px;
  border-radius: 30px;
  background: #fbfaff;
  box-shadow: 0 35px 100px rgba(22,13,48,0.32);
  animation: modalIn 0.24s ease both;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.recover-panel,
.recover-help-panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 28px));
  padding: 42px 36px 34px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(22, 13, 48, 0.22);
  animation: modalIn 0.24s ease both;
  text-align: center;
}

.recover-panel h2,
.recover-help-panel h2 {
  margin: 0 0 28px;
  color: #4f4b57;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.recover-field {
  display: block;
}

.recover-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #d9d6e0;
  border-radius: 12px;
  background: #fff;
  color: #2f2b36;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.recover-field input::placeholder {
  color: #b0aab8;
}

.recover-field input:focus {
  border-color: #8d86f0;
  box-shadow: 0 0 0 4px rgba(141, 134, 240, 0.14);
}

.recover-help-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 22px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4d7dff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.recover-help-link span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
}

.recover-help-link:hover {
  color: #2f5fe0;
}

.recover-error {
  margin: 14px 0 0;
  color: #d64545;
  font-size: 13px;
  line-height: 1.5;
}

.recover-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.recover-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

.recover-btn:hover {
  transform: translateY(-1px);
}

.recover-btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.recover-btn--primary {
  color: #fff;
  background: #6b6fd8;
}

.recover-btn--primary:hover {
  background: #5a5fcb;
}

.recover-btn--ghost {
  color: #fff;
  background: #7b7f8a;
}

.recover-btn--ghost:hover {
  background: #6b6f79;
}

.recover-help-panel {
  width: min(520px, calc(100vw - 28px));
  padding: 46px 40px 36px;
}

.recover-help-panel ol {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  text-align: left;
  color: #5f5a66;
  font-size: 16px;
  line-height: 1.9;
}

.recover-help-panel li + li {
  margin-top: 8px;
}

.recover-help-panel .recover-btn {
  min-width: 132px;
}

@media (max-width: 760px) {
  .recover-panel,
  .recover-help-panel {
    padding: 34px 22px 26px;
    border-radius: 22px;
  }

  .recover-panel h2,
  .recover-help-panel h2 {
    margin-bottom: 22px;
    font-size: 28px;
  }

  .recover-field input {
    min-height: 50px;
    font-size: 14px;
  }

  .recover-help-panel ol {
    font-size: 14px;
  }

  .recover-actions {
    gap: 10px;
  }

  .recover-btn {
    min-width: 96px;
    min-height: 44px;
    font-size: 14px;
  }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.history-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.history-panel header h2 {
  margin: 7px 0 0;
  font-size: 30px;
}

.history-panel > p {
  margin: 14px 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.history-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 16px;
}

.history-recover-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(244, 109, 142, 0.28);
  border-radius: 999px;
  background: #fff;
  color: #f46d8e;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.history-recover-btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.history-recover-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(233, 78, 115, 0.42);
  background: #fff7f9;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-empty {
  padding: 70px 20px;
  border: 1px dashed rgba(73,54,119,0.2);
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.history-item {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.history-item img {
  width: 86px;
  height: 86px;
  border-radius: 16px;
  object-fit: contain;
  background: var(--violet-soft);
}

.history-item p,
.history-item b,
.history-item span,
.history-item small {
  display: block;
  margin: 0;
}

.history-item p {
  color: var(--violet);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.history-item b {
  margin-top: 5px;
  font-size: 18px;
}

.history-item span,
.history-item small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.history-item button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(113,84,239,0.22);
  border-radius: 12px;
  color: var(--violet);
  background: var(--violet-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.loading-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(247,245,252,0.78);
  backdrop-filter: blur(14px);
}

.loading-layer[hidden] {
  display: none;
}

.loading-layer > div {
  display: grid;
  justify-items: center;
  gap: 16px;
  color: #514767;
  font-size: 13px;
}

.loading-layer span {
  width: 46px;
  height: 46px;
  border: 3px solid rgba(113,84,239,0.15);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.toast {
  position: fixed;
  z-index: 120;
  right: 16px;
  bottom: 28px;
  left: 16px;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(34,25,55,0.92);
  box-shadow: 0 15px 35px rgba(22,14,43,0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 13px;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
}

.toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Report generation */
.generation-screen {
  min-height: 100svh;
  overflow: hidden;
  color: #272136;
  background: #f4f0e9;
}

.generation-screen.is-active {
  display: grid;
}

body[data-current-screen="generating"] .site-header {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.generation-paper {
  --generation-accent: #7257c8;
  --generation-accent-soft: #eee9fb;
  --generation-ink: #262037;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  min-height: 100svh;
  padding: clamp(24px, 4vw, 54px) clamp(24px, 6vw, 88px) clamp(25px, 4vw, 52px);
  overflow: hidden;
  background: #faf8f3;
}

.generation-paper[data-generation-version="50"] {
  --generation-accent: #2f8d74;
  --generation-accent-soft: #e3f1ea;
}

.generation-paper[data-generation-version="100"] {
  --generation-accent: #6253b9;
  --generation-accent-soft: #eceafb;
}

.generation-paper[data-generation-version="150"] {
  --generation-accent: #9b6d3b;
  --generation-accent-soft: #f5eddf;
}

.generation-paper::before,
.generation-paper::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.generation-paper::before {
  inset: 18px;
  border: 1px solid rgba(56, 47, 73, 0.08);
}

.generation-paper::after {
  top: 0;
  right: clamp(24px, 6vw, 88px);
  width: 1px;
  height: 34%;
  background: rgba(56, 47, 73, 0.08);
}

.generation-header,
.generation-content,
.generation-footer {
  position: relative;
  z-index: 1;
}

.generation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(56, 47, 73, 0.12);
}

.generation-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--generation-ink);
}

.generation-brand-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--generation-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.generation-brand b,
.generation-brand small {
  display: block;
}

.generation-brand b {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.generation-brand small,
.generation-header > p {
  color: #7d7589;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.generation-brand small {
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.generation-header > p {
  margin: 0;
  text-align: right;
}

.generation-content {
  width: min(100%, 730px);
  align-self: center;
  justify-self: center;
  padding: clamp(46px, 7vh, 84px) 0 clamp(38px, 5vh, 64px);
  animation: generation-content-in 620ms cubic-bezier(.2, .8, .2, 1) both;
}

.generation-kicker {
  margin: 0 0 17px;
  color: var(--generation-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.generation-content > h1 {
  max-width: 620px;
  margin: 0;
  color: var(--generation-ink);
  font-size: clamp(42px, 5.25vw, 74px);
  font-weight: 740;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.generation-content > h1 em {
  color: var(--generation-accent);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-style: normal;
  font-weight: 700;
}

.generation-chapter {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  margin-top: clamp(44px, 7vh, 78px);
  padding: 28px 0 29px;
  border-top: 1px solid rgba(56, 47, 73, 0.16);
  border-bottom: 1px solid rgba(56, 47, 73, 0.16);
}

.generation-chapter-number {
  display: flex;
  align-items: baseline;
  color: var(--generation-accent);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.09em;
  line-height: 0.85;
}

.generation-chapter-number span {
  font-size: clamp(76px, 9vw, 126px);
}

.generation-chapter-number i {
  margin-left: 8px;
  color: #a39bad;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}

.generation-chapter-copy > p,
.generation-chapter-copy h2 {
  margin: 0;
}

.generation-chapter-copy > p:first-child {
  color: var(--generation-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.generation-chapter-copy h2 {
  max-width: 510px;
  margin-top: 12px;
  color: var(--generation-ink);
  font-size: clamp(26px, 3.2vw, 43px);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.generation-chapter-copy > p:last-child {
  max-width: 460px;
  margin-top: 14px;
  color: #726b7e;
  font-size: 14px;
  line-height: 1.75;
}

.generation-writing-lines {
  display: grid;
  gap: 10px;
  width: min(100%, 440px);
  margin: 26px 0 0 calc(138px + clamp(20px, 4vw, 48px));
}

.generation-writing-lines i {
  display: block;
  height: 1px;
  transform: scaleX(0.58);
  transform-origin: left center;
  background: rgba(67, 57, 86, 0.2);
  animation: generation-writing 1.5s cubic-bezier(.4, 0, .2, 1) infinite alternate;
}

.generation-writing-lines i:nth-child(2) { width: 86%; animation-delay: -1.04s; }
.generation-writing-lines i:nth-child(3) { width: 67%; animation-delay: -0.65s; }
.generation-writing-lines i:nth-child(4) { width: 78%; animation-delay: -0.24s; }

.generation-footer {
  width: min(100%, 730px);
  justify-self: center;
  padding-top: 23px;
  border-top: 1px solid rgba(56, 47, 73, 0.12);
}

.generation-progress-head,
.generation-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.generation-progress-head {
  color: #777083;
  font-size: 11px;
  font-weight: 700;
}

.generation-progress-head b {
  color: var(--generation-accent);
  font-size: 12px;
}

.generation-progress {
  height: 3px;
  margin-top: 12px;
  overflow: hidden;
  background: #ded9e3;
}

.generation-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--generation-accent);
  will-change: transform;
}

.generation-footer-meta {
  margin-top: 15px;
  color: #787184;
  font-size: 11px;
}

.generation-footer-meta p {
  margin: 0;
}

.generation-footer-meta p:first-child {
  max-width: 75%;
}

.generation-footer-meta p:last-child {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--generation-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
}

.generation-footer-meta p:last-child i,
.generation-footer-meta p:last-child span {
  color: #a39baa;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.generation-paper.is-changing .generation-chapter-number span,
.generation-paper.is-changing .generation-chapter-copy > p,
.generation-paper.is-changing .generation-chapter-copy h2 {
  animation: generation-chapter-in 170ms cubic-bezier(.2, .8, .2, 1) both;
}

.generation-paper.is-changing .generation-chapter-copy h2 { animation-delay: 10ms; }
.generation-paper.is-changing .generation-chapter-copy > p:last-child { animation-delay: 20ms; }

.generation-paper.is-changing .generation-writing-lines i {
  animation-name: generation-writing-enter;
  animation-duration: 190ms;
  animation-iteration-count: 1;
}

.generation-paper.is-waiting .generation-writing-lines i {
  animation-duration: 2.2s;
}

.generation-paper.is-complete .generation-progress i {
  transition: transform 220ms ease-out;
}

@keyframes generation-content-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes generation-chapter-in {
  from { opacity: 0.66; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes generation-writing {
  from { opacity: 0.35; transform: scaleX(0.45); }
  to { opacity: 0.95; transform: scaleX(1); }
}

@keyframes generation-writing-enter {
  from { opacity: 0.35; transform: scaleX(0.42); }
  to { opacity: 0.85; transform: scaleX(1); }
}

@media (max-width: 760px) {
  .generation-paper {
    padding: 23px 24px 26px;
  }

  .generation-paper::before {
    inset: 10px;
  }

  .generation-paper::after {
    right: 24px;
    height: 24%;
  }

  .generation-header {
    padding: 3px 2px 16px;
  }

  .generation-header > p {
    max-width: 145px;
    font-size: 9px;
    line-height: 1.55;
  }

  .generation-content {
    padding: 44px 2px 36px;
  }

  .generation-kicker {
    margin-bottom: 14px;
    font-size: 9px;
  }

  .generation-content > h1 {
    font-size: clamp(36px, 11vw, 53px);
    letter-spacing: -0.07em;
  }

  .generation-chapter {
    grid-template-columns: 1fr;
    gap: 17px;
    margin-top: 47px;
    padding: 23px 0 25px;
  }

  .generation-chapter-number span {
    font-size: 82px;
  }

  .generation-chapter-number i {
    font-size: 11px;
  }

  .generation-chapter-copy h2 {
    font-size: clamp(27px, 8vw, 36px);
  }

  .generation-chapter-copy > p:last-child {
    margin-top: 11px;
    font-size: 13px;
    line-height: 1.65;
  }

  .generation-writing-lines {
    width: min(100%, 295px);
    margin: 22px 0 0;
  }

  .generation-footer {
    padding: 17px 2px 0;
  }

  .generation-footer-meta {
    align-items: flex-end;
  }
}

@media (max-height: 710px) and (min-width: 761px) {
  .generation-paper { padding-top: 28px; padding-bottom: 28px; }
  .generation-content { padding: 38px 0 30px; }
  .generation-chapter { margin-top: 38px; padding: 19px 0; }
  .generation-chapter-number span { font-size: 82px; }
  .generation-writing-lines { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .generation-content,
  .generation-paper.is-changing .generation-chapter-number span,
  .generation-paper.is-changing .generation-chapter-copy > p,
  .generation-paper.is-changing .generation-chapter-copy h2,
  .generation-writing-lines i {
    animation: none;
  }

  .generation-progress i {
    transition: none;
  }
}

/* Paid report */
.report-screen {
  background: #f7f5fc;
}

.result-hero {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 28px max(24px, calc((100vw - var(--content-width)) / 2)) 56px;
  color: #fff;
  background:
    radial-gradient(circle at 75% 24%, var(--report-glow-one), transparent 26%),
    radial-gradient(circle at 10% 100%, var(--report-glow-two), transparent 28%),
    linear-gradient(145deg, var(--report-dark), var(--report-mid) 64%, var(--report-bright));
}

.result-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}

.result-toolbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
}

.result-toolbar > span {
  color: rgba(255,255,255,0.7);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.result-toolbar button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.result-toolbar button:last-child {
  justify-self: end;
}

.result-toolbar svg {
  width: 20px;
  height: 20px;
}

.result-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.95fr);
  align-items: end;
  gap: 32px;
  min-height: 0;
  padding-top: 28px;
}

.result-copy .eyebrow {
  color: var(--report-eyebrow);
}

.result-copy h1 {
  margin: 18px 0 10px;
  font-family: Georgia, serif;
  font-size: clamp(72px, 10vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.result-copy h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.035em;
}

.result-keywords {
  margin: 18px 0 0;
  color: #d1c9eb;
  font-size: 14px;
  line-height: 1.7;
}

.result-summary {
  max-width: 570px;
  margin: 28px 0 0;
  color: rgba(255,255,255,0.76);
  font-size: 15px;
  line-height: 1.9;
}

.result-portrait {
  position: relative;
  width: min(100%, 480px);
  min-height: 0;
  aspect-ratio: 1;
  margin: 0 0 0 auto;
  overflow: hidden;
}

.result-portrait::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88%;
  height: 88%;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 42px rgba(255,255,255,0.035), 0 0 0 84px rgba(255,255,255,0.02);
}

.result-portrait img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  transform: none;
  filter: drop-shadow(0 22px 28px rgba(11,5,30,0.24));
}

.result-type-watermark {
  position: absolute;
  left: 50%;
  top: 43%;
  color: rgba(255,255,255,0.055);
  font-family: Georgia, serif;
  font-size: clamp(110px, 16vw, 220px);
  font-weight: 700;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.report-container {
  width: min(980px, calc(100% - 40px));
  margin: 24px auto 0;
  padding-bottom: 90px;
  position: relative;
  z-index: 5;
  display: grid;
  gap: 22px;
}

.report-overview,
.report-index,
.report-chapter,
.report-final {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(48,35,85,0.07);
}

.report-overview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 34px;
  margin: 0;
}

.report-overview p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.report-overview h2 {
  margin: 0;
  font-size: 26px;
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(3, 92px);
  gap: 8px;
}

.report-stats > div {
  padding: 15px 8px;
  border-radius: 16px;
  text-align: center;
  background: var(--violet-soft);
}

.report-stats b,
.report-stats span {
  display: block;
}

.report-stats b {
  color: var(--violet);
  font-family: Georgia, serif;
  font-size: 25px;
}

.report-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.report-index {
  margin-top: 0;
  padding: 30px;
}

.report-index header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.report-index header p {
  margin: 0;
  color: var(--violet);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.report-index h2 {
  margin: 6px 0 0;
  font-size: 24px;
}

.report-index header span {
  color: var(--muted);
  font-size: 11px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.index-grid a {
  min-height: 70px;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.index-grid a:hover {
  color: var(--violet);
  background: var(--violet-soft);
}

.index-grid b,
.index-grid span {
  display: block;
}

.index-grid b {
  color: var(--violet);
  font-family: Georgia, serif;
  font-size: 12px;
}

.index-grid span {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
}

.report-chapter {
  margin-top: 0;
  padding: clamp(26px, 5vw, 48px);
  scroll-margin-top: 24px;
}

.chapter-head {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.chapter-head > span {
  color: var(--violet);
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 700;
}

.chapter-head p,
.chapter-head h2 {
  margin: 0;
}

.chapter-head p {
  color: var(--violet);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.chapter-head h2 {
  margin-top: 5px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.025em;
}

.chapter-lead {
  margin: 28px 0;
  color: #4c445b;
  font-size: 16px;
  line-height: 1.95;
}

.chapter-copy {
  display: grid;
  gap: 18px;
}

.chapter-copy h3,
.quote-panel h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.chapter-copy p,
.chapter-copy li,
.quote-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.dimension-report {
  display: grid;
  gap: 18px;
}

.dimension-row {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.dimension-labels,
.dimension-values {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.dimension-labels {
  color: #4d455b;
  font-size: 13px;
}

.dimension-track {
  display: flex;
  height: 10px;
  overflow: hidden;
  margin: 12px 0 9px;
  border-radius: 999px;
  background: #e8e3f1;
}

.dimension-track span:first-child {
  background: linear-gradient(90deg, #8469f6, #6747e2);
}

.dimension-track span:last-child {
  background: #c7d7ee;
}

.dimension-values {
  color: var(--muted);
  font-size: 11px;
}

.dimension-values strong {
  color: var(--violet);
}

.metric-bars {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 20px;
  background: #f7f5fc;
}

.metric-row {
  display: grid;
  grid-template-columns: minmax(90px, 150px) 1fr 38px;
  align-items: center;
  gap: 13px;
}

.metric-row span {
  color: #544d62;
  font-size: 12px;
}

.metric-row i {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e4dfec;
}

.metric-row i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8569f6, #5b3bd8);
}

.metric-row strong {
  color: var(--violet);
  text-align: right;
  font-size: 12px;
}

.strength-grid,
.split-grid,
.phase-grid,
.authority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.strength-grid > div,
.split-grid > div,
.phase-grid > div,
.authority-grid > div,
.quote-panel,
.authority-score {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.strength-grid b,
.split-grid b,
.phase-grid b,
.authority-grid b {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
}

.strength-grid span,
.split-grid span,
.phase-grid p,
.authority-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.blind-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blind-list li {
  position: relative;
  padding: 16px 18px 16px 46px;
  border-radius: 16px;
  color: #67545f;
  background: #fff4f1;
}

.blind-list li::before {
  content: "!";
  position: absolute;
  left: 17px;
  top: 15px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-size: 12px;
  font-weight: 900;
}

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

.timeline > div {
  position: relative;
  padding: 22px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #38266d, #6a4bd7);
}

.timeline span,
.timeline b,
.timeline p {
  display: block;
  margin: 0;
}

.timeline span {
  color: #bfaeff;
  font-family: Georgia, serif;
  font-size: 24px;
}

.timeline b {
  margin-top: 18px;
  font-size: 13px;
}

.timeline p {
  margin-top: 8px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  line-height: 1.7;
}

.authority-score {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 24px;
  background: linear-gradient(145deg, #f0ecff, #fff);
}

.authority-score strong {
  display: grid;
  width: 110px;
  height: 110px;
  place-items: center;
  border: 10px solid rgba(113,84,239,0.15);
  border-top-color: var(--violet);
  border-radius: 50%;
  color: var(--violet);
  font-family: Georgia, serif;
  font-size: 32px;
}

.authority-score b {
  display: block;
  font-size: 16px;
}

.authority-score p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.risk-meter {
  padding: 22px;
  border-radius: 20px;
  background: #f7f5fc;
}

.risk-meter header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.risk-meter strong {
  color: var(--coral);
  font-size: 28px;
}

.risk-meter i {
  display: block;
  height: 12px;
  margin: 18px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #72c9a7, #f1c45f, #f47768);
}

.risk-meter i b {
  display: block;
  height: 100%;
  border-right: 4px solid #2b203e;
  background: rgba(255,255,255,0.5);
}

.risk-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.report-final {
  margin-top: 0;
  padding: 44px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,0.16), transparent 30%),
    linear-gradient(145deg, #24164a, #6142cc);
}

.report-final .eyebrow {
  color: #c0b2ff;
}

.report-final h2 {
  margin: 12px 0 16px;
  font-size: clamp(27px, 4vw, 40px);
}

.report-final p {
  margin: 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.9;
}

.report-final-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.report-final-actions button {
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

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

.report-footer-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--surface-strong);
  box-shadow: 0 10px 24px rgba(48, 35, 85, 0.07);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.report-footer-actions button:hover {
  border-color: var(--violet);
  color: var(--violet-deep);
  transform: translateY(-2px);
}

.report-footer-actions svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

@media (max-width: 460px) {
  .report-footer-actions {
    gap: 8px;
  }

  .report-footer-actions button {
    min-height: 50px;
    padding: 0 7px;
    gap: 5px;
    font-size: 11px;
  }

  .report-footer-actions svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 1000px) {
  .home-hero {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .hero-portraits {
    min-height: 520px;
  }

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

  .version-visual {
    min-height: 280px;
  }

  .version-visual img {
    width: min(74%, 320px);
  }

  .result-hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .index-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .header-action {
    padding: 0 12px;
  }

  .home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: calc(var(--header-height) + 54px) 20px 0;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 15px;
  }

  .hero-portraits {
    min-height: 430px;
    margin: 0 -20px;
  }

  .hero-person {
    width: min(56%, 280px);
  }

  .portrait-orbit--outer {
    width: 390px;
    height: 390px;
  }

  .portrait-orbit--inner {
    width: 270px;
    height: 270px;
  }

  .hero-code--three,
  .hero-code--four {
    display: none;
  }

  .hero-seal {
    right: 8%;
    width: 88px;
    height: 88px;
  }

  .version-section,
  .method-section,
  .home-cta {
    width: calc(100% - 32px);
  }

  .version-section {
    padding: 74px 0 70px;
  }

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

  .section-heading > span {
    display: block;
    margin-top: 14px;
  }

  .version-list,
  .method-section,
  .unlock-layout,
  .pay-layout,
  .result-hero-grid {
    grid-template-columns: 1fr;
  }

  .version-choice {
    min-height: auto;
  }

  .version-copy {
    padding: 30px 24px 24px;
  }

  .method-section {
    gap: 38px;
    padding: 78px 0;
  }

  .method-copy {
    position: static;
  }

  .dimension-lines > div {
    grid-template-columns: 80px 1fr;
    gap: 12px;
    min-height: 95px;
  }

  .dimension-lines small {
    grid-column: 2;
  }

  .home-cta {
    margin-bottom: 40px;
    padding: 60px 22px;
  }

  .test-shell,
  .unlock-shell,
  .pay-shell {
    width: calc(100% - 24px);
    padding-top: 12px;
  }

  .question-stage {
    min-height: 500px;
    margin-top: 28px;
    padding: 30px 18px;
    border-radius: 24px;
  }

  .question-stage h1 {
    margin-bottom: 30px;
    font-size: 23px;
  }

  .answer-option {
    grid-template-columns: 40px 1fr 20px;
    min-height: 76px;
    padding: 12px;
  }

  .option-code {
    width: 38px;
    height: 38px;
  }

  .option-copy {
    font-size: 14px;
  }

  .test-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
  }

  .test-actions p {
    display: none;
  }

  .test-actions [data-previous-question] {
    grid-column: 1;
  }

  .test-actions [data-next-question] {
    grid-column: 2;
  }

  .test-actions button {
    width: 100%;
    min-height: 52px;
  }

  .unlock-cover {
    position: relative;
    top: auto;
    min-height: 490px;
    border-radius: 26px;
  }

  .unlock-copy {
    padding: 22px 4px 10px;
  }

  .preview-dimensions {
    grid-template-columns: repeat(2, 1fr);
  }

  .payment-choice {
    padding: 20px 16px;
  }

  .pay-layout {
    border-radius: 26px;
  }

  .pay-summary,
  .qr-panel {
    padding: 32px 20px;
  }

  .qr-panel {
    min-height: 470px;
  }

  .history-panel {
    padding: 22px 16px;
    border-radius: 24px;
  }

  .history-item {
    grid-template-columns: 70px 1fr;
  }

  .history-item img {
    width: 70px;
    height: 70px;
  }

  .history-item button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .result-hero {
    min-height: 0;
    padding: 15px 18px 42px;
  }

  .result-hero-grid {
    min-height: auto;
    gap: 8px;
    padding-top: 42px;
    grid-template-columns: 1fr;
  }

  .result-copy {
    position: relative;
    z-index: 3;
  }

  .result-copy h1 {
    font-size: 76px;
  }

  .result-summary {
    font-size: 13px;
  }

  .result-portrait {
    width: min(72vw, 320px);
    min-height: 0;
    aspect-ratio: 1;
    margin: 18px auto 0;
  }

  .result-portrait::before {
    width: 108%;
    height: 108%;
  }

  .result-portrait img {
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    transform: none;
  }

  .report-container {
    width: calc(100% - 24px);
    margin-top: 18px;
  }

  .report-overview {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .report-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .report-index {
    padding: 22px 16px;
  }

  .report-index header {
    display: block;
  }

  .report-index header span {
    display: block;
    margin-top: 8px;
  }

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

  .report-chapter {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .chapter-head {
    grid-template-columns: 48px 1fr;
  }

  .chapter-head > span {
    font-size: 28px;
  }

  .strength-grid,
  .split-grid,
  .phase-grid,
  .authority-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: 90px 1fr 34px;
  }

  .authority-score {
    grid-template-columns: 90px 1fr;
    gap: 15px;
  }

  .authority-score strong {
    width: 86px;
    height: 86px;
    font-size: 26px;
  }

  .report-final {
    padding: 32px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 首页 · 马卡龙编辑感改版 ===== */
.home-float-stack {
  display: none;
}

body[data-current-screen="home"] .home-float-stack {
  position: fixed;
  z-index: 40;
  right: max(10px, calc((100vw - var(--content-width)) / 2 - 72px));
  bottom: max(24px, env(safe-area-inset-bottom, 0px) + 24px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

body:not([data-current-screen="home"]) .home-float-stack {
  display: none !important;
}

body[data-current-screen="home"] .home-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(91, 52, 65, 0.12);
  background-clip: padding-box;
  -webkit-font-smoothing: antialiased;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

body[data-current-screen="home"] .home-float-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: currentColor;
}

body[data-current-screen="home"] .home-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(91, 52, 65, 0.16);
}

body[data-current-screen="home"] .home-float-btn--wechat {
  border: 1px solid rgba(7, 193, 96, 0.28);
  background: linear-gradient(135deg, #2fd37a, #07c160);
  color: #fff;
}

body[data-current-screen="home"] .home-float-btn--wechat:hover {
  background: linear-gradient(135deg, #28c470, #06ad56);
}

body[data-current-screen="home"] .home-float-btn--recover {
  border: 1px solid rgba(244, 109, 142, 0.28);
  background: rgba(255, 255, 255, 0.96);
  color: var(--landing-pink, #f46d8e);
}

body[data-current-screen="home"] .home-float-btn--recover:hover {
  border-color: rgba(233, 78, 115, 0.4);
  background: #fff;
}

body[data-current-screen="home"] .home-float-btn--recover svg {
  fill: none;
}

.wechat-panel {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 28px));
  padding: 36px 28px 30px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(22, 13, 48, 0.22);
  animation: modalIn 0.24s ease both;
  text-align: center;
}

.wechat-panel h2 {
  margin: 0 0 10px;
  color: #4f4b57;
  font-size: 28px;
  font-weight: 800;
}

.wechat-panel > p {
  margin: 0 0 22px;
  color: #8a8494;
  font-size: 13px;
  line-height: 1.6;
}

.wechat-qr-wrap {
  display: grid;
  place-items: center;
  width: min(240px, 72vw);
  margin: 0 auto 24px;
  padding: 14px;
  border: 1px solid #eee8ef;
  border-radius: 20px;
  background: #faf8fc;
}

.wechat-qr-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

body[data-current-screen="home"] {
  --landing-ink: #241f20;
  --landing-muted: #756c6d;
  --landing-border: #eee5e7;
  --landing-pink: #f46d8e;
  --landing-pink-deep: #e94e73;
  --landing-mint: #31b989;
  --landing-lilac: #a58bd7;
  --landing-yellow: #f6bd54;
  background: #fff !important;
  color: var(--landing-ink);
}

body[data-current-screen="home"] .page-glow {
  display: none;
}

body[data-current-screen="home"] .site-header {
  height: 72px;
  padding: 0 max(24px, calc((100vw - var(--content-width)) / 2));
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--landing-border);
  -webkit-font-smoothing: antialiased;
}

body[data-current-screen="home"] .brand {
  gap: 10px;
}

body[data-current-screen="home"] .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  background: var(--landing-pink);
  box-shadow: none;
  font-size: 20px;
}

body[data-current-screen="home"] .brand b {
  color: var(--landing-ink);
  letter-spacing: 0.08em;
}

body[data-current-screen="home"] .brand small {
  color: var(--landing-muted);
}

body[data-current-screen="home"] .site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  margin-right: 24px;
}

body[data-current-screen="home"] .site-nav a {
  color: var(--landing-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.18s ease;
}

body[data-current-screen="home"] .site-nav a:hover,
body[data-current-screen="home"] .site-nav a:focus-visible {
  color: var(--landing-pink-deep);
}

body[data-current-screen="home"] .header-action {
  min-height: 40px;
  padding: 0 15px;
  color: var(--landing-ink);
  border-color: var(--landing-border);
  background: #fff;
  box-shadow: none;
}

body[data-current-screen="home"] .header-action:hover {
  color: var(--landing-pink-deep);
  border-color: #f5b9c7;
  background: #fff7f9;
}

body[data-current-screen="home"] .home-hero {
  min-height: 100svh;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 32px;
  padding: calc(var(--header-height) + 58px) max(24px, calc((100vw - var(--content-width)) / 2)) 72px;
  background: #fff;
}

body[data-current-screen="home"] .home-hero::before {
  z-index: -2;
  inset: 0 0 0 52%;
  display: block;
  background: #fff4f1;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%, 10% 70%, 4% 42%);
}

body[data-current-screen="home"] .hero-grid {
  display: none;
}

body[data-current-screen="home"] .hero-copy {
  max-width: 590px;
  align-self: center;
  animation: landingRise 0.7s 0.05s cubic-bezier(.2,.75,.2,1) both;
}

body[data-current-screen="home"] .hero-copy .eyebrow {
  color: var(--landing-pink-deep);
  font-size: 11px;
  letter-spacing: 0.2em;
}

body[data-current-screen="home"] .hero-copy h1 {
  margin: 22px 0 22px;
  color: var(--landing-ink);
  font-size: clamp(44px, 5.3vw, 74px);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 800;
}

body[data-current-screen="home"] .hero-copy h1 span {
  color: var(--landing-pink-deep);
}

body[data-current-screen="home"] .hero-copy > p:not(.eyebrow) {
  max-width: 500px;
  color: var(--landing-muted);
  font-size: 16px;
  line-height: 1.85;
}

body[data-current-screen="home"] .hero-actions {
  display: grid;
  grid-template-columns: auto auto auto;
  column-gap: 12px;
  row-gap: 14px;
  align-items: center;
  justify-content: start;
  margin-top: 30px;
  width: fit-content;
  max-width: 100%;
}

body[data-current-screen="home"] .hero-actions-main,
body[data-current-screen="home"] .hero-actions-secondary {
  display: contents;
}

body[data-current-screen="home"] .hero-actions > .hero-miniprogram {
  grid-column: 2;
  justify-self: center;
}

body[data-current-screen="home"] .hero-action {
  min-height: 48px;
  margin-top: 0;
  gap: 9px;
  padding: 0 21px;
  color: #fff;
  border: 1px solid var(--landing-pink);
  border-radius: 999px;
  background: var(--landing-pink);
  box-shadow: none;
  font-size: 13px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

body[data-current-screen="home"] .hero-action svg,
body[data-current-screen="home"] .version-button svg,
body[data-current-screen="home"] .home-cta svg {
  width: 16px;
  height: 16px;
}

body[data-current-screen="home"] .hero-action:hover {
  transform: translateY(-2px);
  background: var(--landing-pink-deep);
  border-color: var(--landing-pink-deep);
  box-shadow: none;
}

body[data-current-screen="home"] .hero-action--primary {
  min-width: 148px;
  padding: 0 26px;
  font-size: 14px;
  box-shadow: 0 12px 28px rgba(255, 107, 157, 0.22);
}

body[data-current-screen="home"] .hero-action--quiet {
  color: var(--landing-mint);
  border-color: var(--landing-mint);
  background: #fff;
}

body[data-current-screen="home"] .hero-action--quiet:hover {
  color: #16815d;
  border-color: #16815d;
  background: #effcf6;
}

body[data-current-screen="home"] .hero-action--report {
  color: #6d647c;
  border-color: rgba(109, 100, 124, 0.18);
  background: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

body[data-current-screen="home"] .hero-action--report:hover {
  color: #3f364d;
  border-color: rgba(63, 54, 77, 0.28);
  background: #fff;
}

body[data-current-screen="home"] .hero-miniprogram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 0;
  padding: 0 16px;
  border: 1px solid rgba(7, 193, 96, 0.22);
  border-radius: 999px;
  background: rgba(7, 193, 96, 0.08);
  color: #07c160;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

body[data-current-screen="home"] .hero-miniprogram svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

body[data-current-screen="home"] .hero-miniprogram:hover {
  color: #06ad56;
  border-color: rgba(6, 173, 86, 0.34);
  background: rgba(7, 193, 96, 0.12);
  transform: translateY(-1px);
}

body[data-current-screen="home"] .hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 19px;
  margin-top: 20px;
  color: #968b8c;
  font-size: 12px;
}

body[data-current-screen="home"] .hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

body[data-current-screen="home"] .hero-note i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--landing-mint);
}

body[data-current-screen="home"] .hero-portraits {
  min-height: 560px;
  align-self: center;
  isolation: isolate;
  animation: landingVisualIn 0.85s 0.14s cubic-bezier(.2,.75,.2,1) both;
}

body[data-current-screen="home"] .hero-portraits::before {
  left: 50%;
  bottom: 25px;
  width: 78%;
  height: 78%;
  border: 1px solid rgba(244, 109, 142, 0.12);
  border-radius: 46% 46% 18% 18% / 42% 42% 16% 16%;
  transform: translateX(-50%);
  background: #ffe8ee;
  box-shadow: none;
}

body[data-current-screen="home"] .portrait-orbit {
  border-color: rgba(244, 109, 142, 0.28);
  box-shadow: none;
}

body[data-current-screen="home"] .portrait-orbit--outer {
  width: 76%;
  height: 76%;
}

body[data-current-screen="home"] .portrait-orbit--inner {
  width: 52%;
  height: 52%;
  border-color: rgba(49, 185, 137, 0.28);
}

body[data-current-screen="home"] .hero-person {
  width: min(43%, 300px);
  filter: drop-shadow(0 22px 24px rgba(83, 52, 63, 0.15));
}

body[data-current-screen="home"] .hero-person--left {
  left: 10%;
  bottom: 7%;
}

body[data-current-screen="home"] .hero-person--right {
  right: 9%;
  bottom: 8%;
}

body[data-current-screen="home"] .hero-code {
  z-index: 4;
  color: var(--landing-pink-deep);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(244, 109, 142, 0.18);
  box-shadow: none;
  font-size: 11px;
  letter-spacing: 0.08em;
}

body[data-current-screen="home"] .hero-code--one { top: 23%; left: 7%; }
body[data-current-screen="home"] .hero-code--two { top: 10%; right: 22%; }
body[data-current-screen="home"] .hero-code--three { bottom: 28%; left: 19%; }
body[data-current-screen="home"] .hero-code--four { bottom: 18%; right: 10%; }

body[data-current-screen="home"] .hero-seal {
  right: 14%;
  bottom: 5%;
  width: 86px;
  height: 86px;
  color: var(--landing-pink-deep);
  background: #fff;
  border: 1px solid rgba(244, 109, 142, 0.22);
  box-shadow: 0 10px 30px rgba(92, 56, 69, 0.1);
}

body[data-current-screen="home"] .hero-seal b {
  font-size: 28px;
}

body[data-current-screen="home"] .hero-caption {
  position: absolute;
  z-index: 5;
  left: 8%;
  bottom: 4%;
  display: grid;
  gap: 4px;
  color: var(--landing-ink);
}

body[data-current-screen="home"] .hero-caption span {
  color: var(--landing-pink-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

body[data-current-screen="home"] .hero-caption b {
  font-size: 13px;
}

@keyframes landingRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes landingVisualIn {
  from { opacity: 0; transform: translateX(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

body[data-current-screen="home"] .dimension-section,
body[data-current-screen="home"] .types-section,
body[data-current-screen="home"] .faq-section {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0;
}

body[data-current-screen="home"] .landing-section-head {
  max-width: 670px;
  margin: 0 auto 30px;
  text-align: center;
}

body[data-current-screen="home"] .landing-section-head .eyebrow {
  color: var(--landing-pink-deep);
  font-size: 10px;
  letter-spacing: 0.18em;
}

body[data-current-screen="home"] .landing-section-head h2 {
  margin: 11px 0 12px;
  color: var(--landing-ink);
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.2;
  letter-spacing: 0;
}

body[data-current-screen="home"] .landing-section-head > span {
  display: block;
  color: var(--landing-muted);
  font-size: 14px;
  line-height: 1.75;
}

body[data-current-screen="home"] .dimension-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

body[data-current-screen="home"] .dimension-card {
  min-height: 238px;
  padding: 24px 22px 20px;
  border: 1px solid transparent;
  border-radius: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

body[data-current-screen="home"] .dimension-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 31, 32, 0.1);
}

body[data-current-screen="home"] .dimension-card--peach { background: #fff0d7; }
body[data-current-screen="home"] .dimension-card--blue { background: #e0f1fa; }
body[data-current-screen="home"] .dimension-card--rose { background: #ffe2eb; }
body[data-current-screen="home"] .dimension-card--mint { background: #dff7ed; }

body[data-current-screen="home"] .dimension-symbol {
  display: block;
  margin-bottom: 34px;
  color: rgba(36, 31, 32, 0.24);
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body[data-current-screen="home"] .dimension-card h3 {
  margin: 0;
  color: var(--landing-ink);
  font-size: 21px;
  letter-spacing: 0.02em;
}

body[data-current-screen="home"] .dimension-card h3 small {
  display: block;
  margin-top: 5px;
  color: var(--landing-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

body[data-current-screen="home"] .dimension-card p {
  min-height: 48px;
  margin: 18px 0 17px;
  color: var(--landing-muted);
  font-size: 12px;
  line-height: 1.65;
}

body[data-current-screen="home"] .dimension-card > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--landing-ink);
  font-size: 12px;
}

body[data-current-screen="home"] .dimension-card > div span {
  color: rgba(36, 31, 32, 0.35);
}

body[data-current-screen="home"] .version-section {
  width: 100%;
  margin: 0;
  padding: 92px max(24px, calc((100vw - var(--content-width)) / 2));
  background: #fff8f5;
}

body[data-current-screen="home"] .version-section .landing-section-head,
body[data-current-screen="home"] .version-section .version-list {
  width: min(920px, 100%);
}

body[data-current-screen="home"] .version-section .landing-section-head {
  margin-left: auto;
  margin-right: auto;
}

body[data-current-screen="home"] .landing-section-head--compact {
  margin-bottom: 26px;
}

body[data-current-screen="home"] .version-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  margin: 0 auto;
}

body[data-current-screen="home"] .version-choice {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 210px 132px;
  align-items: center;
  min-height: 128px;
  gap: 21px;
  padding: 20px 22px;
  border: 1px solid var(--landing-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body[data-current-screen="home"] .version-choice:hover {
  transform: translateY(-3px);
  border-color: #f4b4c2;
  box-shadow: 0 12px 26px rgba(91, 52, 65, 0.08);
}

body[data-current-screen="home"] .version-choice--starter { border-left: 4px solid var(--landing-mint); }
body[data-current-screen="home"] .version-choice--pro { border-left: 4px solid #7db9d7; }
body[data-current-screen="home"] .version-choice--authority { border-left: 4px solid var(--landing-pink); }

body[data-current-screen="home"] .version-choice-number {
  color: #c6bbbc;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
}

body[data-current-screen="home"] .version-choice-main p {
  margin: 0 0 6px;
  color: var(--landing-pink-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

body[data-current-screen="home"] .version-choice-main h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--landing-ink);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

body[data-current-screen="home"] .version-recommend-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff7aa0, var(--landing-pink));
  box-shadow: 0 6px 14px rgba(244, 109, 142, 0.22);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

body[data-current-screen="home"] .version-choice-main > span,
body[data-current-screen="home"] .version-choice-meta > span {
  color: var(--landing-muted);
  font-size: 12px;
  line-height: 1.5;
}

body[data-current-screen="home"] .version-choice-meta {
  display: grid;
  gap: 4px;
}

body[data-current-screen="home"] .version-choice-meta strong {
  color: var(--landing-ink);
  font-size: 18px;
}

body[data-current-screen="home"] .version-choice-meta .version-price {
  display: block;
  margin: 3px 0 0;
  padding: 0;
  color: var(--landing-pink-deep);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

body[data-current-screen="home"] .version-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 15px;
  color: #fff;
  border: 1px solid var(--landing-pink);
  border-radius: 999px;
  background: var(--landing-pink);
  box-shadow: none;
  font-size: 12px;
  white-space: nowrap;
}

body[data-current-screen="home"] .version-button:hover {
  color: #fff;
  background: var(--landing-pink-deep);
  border-color: var(--landing-pink-deep);
  box-shadow: none;
}

body[data-current-screen="home"] .version-choice--authority .version-button {
  color: #fff;
  border-color: var(--landing-pink);
  background: var(--landing-pink);
}

body[data-current-screen="home"] .version-choice--authority .version-button:hover {
  background: var(--landing-pink-deep);
}

body[data-current-screen="home"] .types-section {
  padding-bottom: 102px;
}

body[data-current-screen="home"] .type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  max-width: 930px;
  margin: 0 auto;
}

body[data-current-screen="home"] .type-tile {
  display: grid;
  min-height: 96px;
  align-content: center;
  justify-items: center;
  gap: 6px;
  border-radius: 16px;
  color: var(--landing-ink);
  transition: transform 0.2s ease, filter 0.2s ease;
}

body[data-current-screen="home"] .type-tile:hover {
  transform: translateY(-3px);
  filter: saturate(1.05);
}

body[data-current-screen="home"] .type-tile b {
  font-size: 17px;
  letter-spacing: 0.08em;
}

body[data-current-screen="home"] .type-tile span {
  color: var(--landing-muted);
  font-size: 11px;
  font-weight: 600;
}

body[data-current-screen="home"] .type-tile--violet { background: #ede4ff; }
body[data-current-screen="home"] .type-tile--blue { background: #e0f1fa; }
body[data-current-screen="home"] .type-tile--peach { background: #fff0d8; }
body[data-current-screen="home"] .type-tile--mint { background: #dff7ed; }
body[data-current-screen="home"] .type-tile--rose { background: #ffe2eb; }
body[data-current-screen="home"] .type-tile--yellow { background: #fff5d5; }

body[data-current-screen="home"] .faq-section {
  padding-top: 0;
  padding-bottom: 92px;
}

body[data-current-screen="home"] .faq-list {
  max-width: 820px;
  margin: 0 auto;
}

body[data-current-screen="home"] .faq-item {
  margin: 0 0 9px;
  padding: 0;
  border: 1px solid var(--landing-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

body[data-current-screen="home"] .faq-item[open] {
  border-color: #f5b6c5;
  background: #fff7f9;
}

body[data-current-screen="home"] .faq-item summary {
  padding: 18px 22px;
  color: var(--landing-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

body[data-current-screen="home"] .faq-item summary::-webkit-details-marker {
  display: none;
}

body[data-current-screen="home"] .faq-item summary::after {
  float: right;
  color: var(--landing-pink-deep);
  content: '+';
  font-size: 20px;
  font-weight: 400;
  line-height: 16px;
}

body[data-current-screen="home"] .faq-item[open] summary::after {
  content: '−';
}

body[data-current-screen="home"] .faq-item p {
  margin: -3px 22px 19px;
  color: var(--landing-muted);
  font-size: 13px;
  line-height: 1.75;
}

body[data-current-screen="home"] .home-cta {
  width: 100%;
  margin: 0;
  padding: 64px max(24px, calc((100vw - var(--content-width)) / 2)) 48px;
  border-radius: 0;
  border-top: 1px solid rgba(244, 109, 142, 0.12);
  color: var(--landing-ink);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 214, 228, 0.75), transparent 34%),
    radial-gradient(circle at 82% 80%, rgba(214, 245, 232, 0.7), transparent 36%),
    linear-gradient(180deg, #fff8f6 0%, #fff1f4 48%, #f8fbff 100%);
  box-shadow: none;
  text-align: center;
}

body[data-current-screen="home"] .home-cta p {
  color: var(--landing-muted);
  font-size: 12px;
}

body[data-current-screen="home"] .home-cta h2 {
  margin: 12px auto 23px;
  max-width: 760px;
  color: var(--landing-ink);
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
}

body[data-current-screen="home"] .home-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 0;
  padding: 0 22px;
  color: #fff;
  border: 1px solid var(--landing-pink);
  border-radius: 999px;
  background: var(--landing-pink);
  box-shadow: 0 12px 28px rgba(255, 107, 157, 0.18);
  font-size: 13px;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

body[data-current-screen="home"] .home-cta a:hover {
  background: var(--landing-pink-deep);
  border-color: var(--landing-pink-deep);
  box-shadow: 0 16px 32px rgba(233, 78, 115, 0.2);
  transform: translateY(-2px);
}

body[data-current-screen="home"] .site-beian {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 20px 18px;
  color: #9a9092;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  background: #fff;
}

body[data-current-screen="home"] .site-beian[hidden] {
  display: none !important;
}

@media (max-width: 1000px) {
  body[data-current-screen="home"] .site-nav {
    gap: 16px;
    margin-right: 14px;
  }

  body[data-current-screen="home"] .hero-portraits {
    min-height: 500px;
  }

  body[data-current-screen="home"] .version-choice {
    grid-template-columns: 42px minmax(0, 1fr) 170px 122px;
    gap: 15px;
  }
}

@media (max-width: 760px) {
  body[data-current-screen="home"] .site-header {
    height: 66px;
    padding: 0 16px;
  }

  body[data-current-screen="home"] .site-nav {
    display: none;
  }

  body[data-current-screen="home"] .home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: calc(var(--header-height) + 48px) 20px 22px;
  }

  body[data-current-screen="home"] .home-hero::before {
    inset: 45% 0 0;
    clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%);
  }

  body[data-current-screen="home"] .hero-copy h1 {
    margin-top: 18px;
    font-size: clamp(40px, 12vw, 60px);
  }

  body[data-current-screen="home"] .hero-copy > p:not(.eyebrow) {
    font-size: 14px;
  }

  body[data-current-screen="home"] .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  body[data-current-screen="home"] .hero-actions-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  body[data-current-screen="home"] .hero-actions-secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-current-screen="home"] .hero-actions > .hero-miniprogram {
    grid-column: auto;
    justify-self: stretch;
    justify-content: center;
    width: 100%;
  }

  body[data-current-screen="home"] .hero-action {
    width: 100%;
    min-width: 0;
  }

  body[data-current-screen="home"] .hero-portraits {
    min-height: 410px;
    margin: 0 -20px;
  }

  body[data-current-screen="home"] .hero-person {
    width: min(49%, 240px);
  }

  body[data-current-screen="home"] .hero-code--three,
  body[data-current-screen="home"] .hero-code--four {
    display: none;
  }

  body[data-current-screen="home"] .hero-seal {
    right: 7%;
    width: 74px;
    height: 74px;
  }

  body[data-current-screen="home"] .hero-seal b {
    font-size: 24px;
  }

  body[data-current-screen="home"] .hero-caption {
    left: 7%;
    bottom: 3%;
  }

  body[data-current-screen="home"] .hero-caption b {
    font-size: 11px;
  }

  body[data-current-screen="home"] .dimension-section,
  body[data-current-screen="home"] .types-section,
  body[data-current-screen="home"] .faq-section {
    width: calc(100% - 32px);
    padding: 70px 0;
  }

  body[data-current-screen="home"] .dimension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-current-screen="home"] .dimension-card {
    min-height: 210px;
    padding: 17px 15px;
    border-radius: 17px;
  }

  body[data-current-screen="home"] .dimension-symbol {
    margin-bottom: 22px;
    font-size: 28px;
  }

  body[data-current-screen="home"] .dimension-card h3 {
    font-size: 17px;
  }

  body[data-current-screen="home"] .dimension-card p {
    min-height: 68px;
    margin: 13px 0;
    font-size: 11px;
  }

  body[data-current-screen="home"] .version-section {
    padding: 70px 16px;
  }

  body[data-current-screen="home"] .version-choice {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 11px 13px;
    min-height: 0;
    padding: 18px 16px;
  }

  body[data-current-screen="home"] .version-choice-number {
    grid-row: span 3;
    align-self: start;
    font-size: 20px;
  }

  body[data-current-screen="home"] .version-choice-main h3 {
    font-size: 20px;
  }

  body[data-current-screen="home"] .version-choice-meta {
    grid-column: 2;
  }

  body[data-current-screen="home"] .version-button {
    grid-column: 2;
    width: 100%;
  }

  body[data-current-screen="home"] .types-section {
    padding-bottom: 70px;
  }

  body[data-current-screen="home"] .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-current-screen="home"] .type-tile {
    min-height: 76px;
  }

  body[data-current-screen="home"] .type-tile b {
    font-size: 15px;
  }

  body[data-current-screen="home"] .faq-section {
    padding-top: 0;
  }

  body[data-current-screen="home"] .faq-item summary {
    padding: 16px;
    font-size: 13px;
  }

  body[data-current-screen="home"] .faq-item p {
    margin: -2px 16px 16px;
    font-size: 12px;
  }

  body[data-current-screen="home"] .home-cta {
    padding: 66px 20px;
  }
}

@media (max-width: 390px) {
  body[data-current-screen="home"] .header-action {
    padding: 0 11px;
    font-size: 12px;
  }

  body[data-current-screen="home"] .header-action svg {
    display: none;
  }

  body[data-current-screen="home"] .hero-actions {
    display: flex;
    flex-direction: column;
  }

  body[data-current-screen="home"] .hero-actions-secondary {
    grid-template-columns: 1fr;
  }
}

/* ===== 首页移动端精修 ===== */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body[data-current-screen="home"] .home-float-stack {
    position: fixed !important;
    top: auto !important;
    right: 12px !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    left: auto !important;
    gap: 8px;
    z-index: 60;
    pointer-events: none;
  }

  body[data-current-screen="home"] .home-float-btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
    box-shadow: 0 8px 20px rgba(91, 52, 65, 0.14);
    pointer-events: auto;
  }

  body[data-current-screen="home"] .screen[data-screen="home"],
  body[data-current-screen="home"] main {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }

  body[data-current-screen="home"] .home-cta {
    padding: 48px 20px 28px;
  }

  body[data-current-screen="home"] .site-beian {
    padding: 6px 16px 18px;
  }

  body[data-current-screen="home"] .version-section {
    padding-bottom: 28px;
  }

  .wechat-panel {
    padding: 30px 20px 24px;
    border-radius: 22px;
  }

  .wechat-panel h2 {
    font-size: 24px;
  }

  body[data-current-screen="home"] main,
  body[data-current-screen="home"] .screen[data-screen="home"] {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  body[data-current-screen="home"] .site-header {
    min-width: 0;
  }

  body[data-current-screen="home"] .brand {
    min-width: 0;
  }

  body[data-current-screen="home"] .brand-mark {
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    border-radius: 11px;
    font-size: 18px;
  }

  body[data-current-screen="home"] .brand b {
    font-size: 12px;
    letter-spacing: 0.07em;
  }

  body[data-current-screen="home"] .brand small {
    margin-top: 1px;
    font-size: 9px;
  }

  body[data-current-screen="home"] .header-action {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    font-size: 11px;
  }

  body[data-current-screen="home"] .header-action svg {
    width: 15px;
    height: 15px;
  }

  body[data-current-screen="home"] .home-hero {
    gap: 0;
    padding: calc(var(--header-height) + 36px) 18px 12px;
  }

  body[data-current-screen="home"] .hero-copy {
    text-align: center;
  }

  body[data-current-screen="home"] .hero-miniprogram {
    justify-content: center;
    width: 100%;
    margin-top: 0;
    min-height: 42px;
    font-size: 12px;
  }

  body[data-current-screen="home"] .hero-copy .eyebrow {
    font-size: 9px;
    letter-spacing: 0.17em;
  }

  body[data-current-screen="home"] .hero-copy h1 {
    max-width: 340px;
    margin: 15px auto 16px;
    font-size: clamp(36px, 10.7vw, 50px);
    line-height: 1.15;
  }

  body[data-current-screen="home"] .hero-copy > p:not(.eyebrow) {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
    font-size: 13px;
    line-height: 1.72;
  }

  body[data-current-screen="home"] .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-width: 340px;
    width: 100%;
    margin: 23px auto 0;
  }

  body[data-current-screen="home"] .hero-actions-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  body[data-current-screen="home"] .hero-actions-secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-current-screen="home"] .hero-actions > .hero-miniprogram {
    grid-column: auto;
    width: 100%;
  }

  body[data-current-screen="home"] .hero-action {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 14px;
    gap: 7px;
    font-size: 12px;
  }

  body[data-current-screen="home"] .hero-action--primary {
    min-height: 48px;
    padding: 0 18px;
    font-size: 13px;
  }

  body[data-current-screen="home"] .hero-action svg {
    width: 14px;
    height: 14px;
  }

  body[data-current-screen="home"] .hero-note {
    justify-content: center;
    gap: 5px 12px;
    margin-top: 16px;
    font-size: 10px;
  }

  body[data-current-screen="home"] .hero-portraits {
    min-height: 350px;
    margin: 0 -18px;
  }

  body[data-current-screen="home"] .hero-portraits::before {
    bottom: 13px;
    width: 82%;
    height: 84%;
  }

  body[data-current-screen="home"] .portrait-orbit--outer {
    width: 78%;
    height: 78%;
  }

  body[data-current-screen="home"] .portrait-orbit--inner {
    width: 55%;
    height: 55%;
  }

  body[data-current-screen="home"] .hero-person {
    width: min(47%, 220px);
    filter: drop-shadow(0 16px 18px rgba(83, 52, 63, 0.14));
  }

  body[data-current-screen="home"] .hero-person--left {
    left: 8%;
    bottom: 5%;
  }

  body[data-current-screen="home"] .hero-person--right {
    right: 7%;
    bottom: 6%;
  }

  body[data-current-screen="home"] .hero-code--one {
    top: 18%;
    left: 7%;
  }

  body[data-current-screen="home"] .hero-code--two {
    top: 8%;
    right: 17%;
  }

  body[data-current-screen="home"] .hero-seal {
    right: 8%;
    bottom: 3%;
  }

  body[data-current-screen="home"] .hero-caption {
    left: 8%;
    bottom: 4%;
  }

  body[data-current-screen="home"] .dimension-section,
  body[data-current-screen="home"] .types-section,
  body[data-current-screen="home"] .faq-section {
    width: calc(100% - 28px);
    padding: 58px 0;
  }

  body[data-current-screen="home"] .landing-section-head {
    margin-bottom: 22px;
  }

  body[data-current-screen="home"] .landing-section-head .eyebrow {
    font-size: 9px;
  }

  body[data-current-screen="home"] .landing-section-head h2 {
    margin: 9px 0 10px;
    font-size: clamp(25px, 7.5vw, 34px);
    line-height: 1.25;
  }

  body[data-current-screen="home"] .landing-section-head > span {
    font-size: 12px;
    line-height: 1.65;
  }

  body[data-current-screen="home"] .dimension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-current-screen="home"] .dimension-card {
    min-width: 0;
    min-height: 205px;
    padding: 17px 14px 15px;
    border-radius: 17px;
  }

  body[data-current-screen="home"] .dimension-symbol {
    margin-bottom: 21px;
    font-size: 27px;
  }

  body[data-current-screen="home"] .dimension-card h3 {
    font-size: 16px;
  }

  body[data-current-screen="home"] .dimension-card h3 small {
    margin-top: 4px;
    font-size: 10px;
  }

  body[data-current-screen="home"] .dimension-card p {
    min-height: 64px;
    margin: 11px 0 12px;
    font-size: 10px;
    line-height: 1.62;
  }

  body[data-current-screen="home"] .dimension-card > div {
    gap: 5px;
    font-size: 10px;
  }

  body[data-current-screen="home"] .version-section {
    padding: 58px 14px 62px;
  }

  body[data-current-screen="home"] .version-section .landing-section-head,
  body[data-current-screen="home"] .version-section .version-list {
    width: 100%;
  }

  body[data-current-screen="home"] .version-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  body[data-current-screen="home"] .version-choice {
    width: 100%;
    min-width: 0;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px 11px;
    padding: 17px 14px;
    border-radius: 17px;
  }

  body[data-current-screen="home"] .version-choice-number {
    grid-row: span 3;
    align-self: start;
    font-size: 19px;
  }

  body[data-current-screen="home"] .version-choice-main,
  body[data-current-screen="home"] .version-choice-meta {
    min-width: 0;
  }

  body[data-current-screen="home"] .version-choice-main p {
    overflow-wrap: anywhere;
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  body[data-current-screen="home"] .version-choice-main h3 {
    margin-bottom: 4px;
    gap: 6px;
    font-size: 19px;
    line-height: 1.25;
  }

  body[data-current-screen="home"] .version-recommend-badge {
    min-height: 18px;
    padding: 0 7px;
    font-size: 10px;
  }

  body[data-current-screen="home"] .version-choice-main > span,
  body[data-current-screen="home"] .version-choice-meta > span {
    display: block;
    overflow-wrap: anywhere;
    font-size: 11px;
  }

  body[data-current-screen="home"] .version-choice-meta {
    grid-column: 2;
    gap: 3px;
  }

  body[data-current-screen="home"] .version-choice-meta strong {
    font-size: 16px;
  }

  body[data-current-screen="home"] .version-button {
    grid-column: 2;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    font-size: 11px;
  }

  body[data-current-screen="home"] .types-section {
    padding-bottom: 58px;
  }

  body[data-current-screen="home"] .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body[data-current-screen="home"] .type-tile {
    min-width: 0;
    min-height: 72px;
    border-radius: 14px;
  }

  body[data-current-screen="home"] .type-tile b {
    font-size: 14px;
  }

  body[data-current-screen="home"] .type-tile span {
    font-size: 10px;
  }

  body[data-current-screen="home"] .faq-section {
    padding-top: 0;
    padding-bottom: 58px;
  }

  body[data-current-screen="home"] .faq-list {
    width: 100%;
  }

  body[data-current-screen="home"] .faq-item {
    margin-bottom: 7px;
    border-radius: 14px;
  }

  body[data-current-screen="home"] .faq-item summary {
    padding: 15px 14px;
    font-size: 12px;
  }

  body[data-current-screen="home"] .faq-item p {
    margin: -2px 14px 15px;
    font-size: 11px;
    line-height: 1.7;
  }

  body[data-current-screen="home"] .home-cta {
    padding: 58px 18px;
  }

  body[data-current-screen="home"] .home-cta p {
    font-size: 10px;
  }

  body[data-current-screen="home"] .home-cta h2 {
    margin: 10px auto 20px;
    max-width: 310px;
    font-size: 28px;
    line-height: 1.28;
  }

  body[data-current-screen="home"] .home-cta a {
    min-height: 44px;
    padding: 0 18px;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  body[data-current-screen="home"] .brand small {
    display: none;
  }

  body[data-current-screen="home"] .header-action {
    padding: 0 10px;
  }

  body[data-current-screen="home"] .hero-copy h1 {
    font-size: 35px;
  }

  body[data-current-screen="home"] .hero-note {
    gap: 4px 8px;
    font-size: 9px;
  }

  body[data-current-screen="home"] .dimension-card {
    min-height: 215px;
    padding-inline: 12px;
  }

  body[data-current-screen="home"] .dimension-card p {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-current-screen="home"] .hero-copy,
  body[data-current-screen="home"] .hero-portraits {
    animation: none;
  }
}

/* Full-report modules restored from the original 100/150-question results. */
.report-screen .rich-panel {
  position: relative;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  box-shadow: 0 12px 34px rgba(64, 47, 122, 0.06);
}

.report-screen .prose-block h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  line-height: 1.5;
}

.report-screen .prose-block p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
  text-align: justify;
}

.report-screen .detailed-bars {
  margin: 22px 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
}

.report-screen .detailed-bars > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  margin: 13px 0;
}

.report-screen .detailed-bars span {
  min-width: 0;
  color: #5f5875;
  font-size: 12px;
  font-weight: 800;
}

.report-screen .detailed-bars i {
  min-width: 0;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #ebe7f5;
}

.report-screen .detailed-bars i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--violet);
}

.report-screen .detailed-bars > div:nth-child(3n + 2) i b { background: var(--mint); }
.report-screen .detailed-bars > div:nth-child(3n) i b { background: var(--coral); }

.report-screen .detailed-bars strong {
  color: var(--violet-deep);
  font-size: 11px;
  text-align: right;
}

.report-screen .radar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(150px, 0.8fr);
  align-items: center;
  min-height: 275px;
  padding: 18px;
  background: #fbfaff;
}

.report-screen .radar-layout svg { width: 100%; max-width: 270px; margin: 0 auto; }
.report-screen .radar-grid polygon,
.report-screen .radar-grid line { fill: none; stroke: #ded8ee; stroke-width: 1; }
.report-screen .radar-value { fill: rgba(113, 84, 239, 0.2); stroke: var(--violet); stroke-width: 2; }
.report-screen .radar-chart {
  position: relative;
  width: 100%;
  max-width: 310px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.report-screen .radar-layout .radar-chart svg { display: block; width: 100%; height: 100%; max-width: none; }
.report-screen .radar-axis-names { position: absolute; inset: 0; pointer-events: none; }
.report-screen .radar-axis-name {
  position: absolute;
  padding: 3px 5px;
  color: #413b52;
  background: rgba(251, 250, 255, .94);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.report-screen .radar-axis-name--1 { top: 1%; left: 50%; transform: translateX(-50%); }
.report-screen .radar-axis-name--2 { top: 25%; right: 0; }
.report-screen .radar-axis-name--3 { right: 0; bottom: 25%; }
.report-screen .radar-axis-name--4 { bottom: 1%; left: 50%; transform: translateX(-50%); }
.report-screen .radar-axis-name--5 { bottom: 25%; left: 0; }
.report-screen .radar-axis-name--6 { top: 25%; left: 0; }
.report-screen .radar-legend { display: grid; gap: 9px; }
.report-screen .radar-legend div { display: flex; align-items: baseline; gap: 8px; }
.report-screen .radar-legend b { width: 26px; color: var(--violet); font-size: 15px; }
.report-screen .radar-legend span { color: var(--muted); font-size: 11px; }

.report-screen .donut-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.report-screen .donut {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--tone) calc(var(--value) * 1%), #ece8f5 0);
}

.report-screen .donut::after {
  content: '';
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--surface);
}

.report-screen .donut span { position: relative; z-index: 1; color: var(--muted); font-size: 9px; text-align: center; }
.report-screen .donut b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 18px; }

.report-screen .rich-identity-map {
  height: 310px;
  background: #f5f1ff;
}

.report-screen .rich-identity-map::before,
.report-screen .rich-identity-map::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(113, 84, 239, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.report-screen .rich-identity-map::before { width: 220px; height: 220px; }
.report-screen .rich-identity-map::after { width: 150px; height: 150px; }
.report-screen .identity-center {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  align-content: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #fff;
  background: var(--violet);
  box-shadow: 0 16px 35px rgba(92, 66, 207, 0.26);
}

.report-screen .identity-center b { font-size: 26px; }
.report-screen .identity-center span { margin-top: 5px; font-size: 9px; text-align: center; }
.report-screen .identity-point {
  position: absolute;
  z-index: 3;
  min-width: 86px;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(66, 48, 126, 0.09);
}

.report-screen .identity-point b,
.report-screen .identity-point span { display: block; }
.report-screen .identity-point b { font-size: 12px; }
.report-screen .identity-point span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.report-screen .point-1 { left: 18px; top: 32px; }
.report-screen .point-2 { right: 18px; top: 50px; }
.report-screen .point-3 { left: 28px; bottom: 35px; }
.report-screen .point-4 { right: 25px; bottom: 29px; }

.report-screen .rich-combination { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.report-screen .rich-combination b,
.report-screen .rich-combination span { padding: 8px 10px; border-radius: 7px; font-size: 11px; }
.report-screen .rich-combination b { color: #fff; background: var(--violet); }
.report-screen .rich-combination span { color: #635b7d; background: var(--violet-soft); }

.report-screen .rich-deep-list,
.report-screen .rich-repair-grid,
.report-screen .rich-warning-list { display: grid; gap: 10px; margin-top: 22px; }

.report-screen .rich-deep-list > div {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.report-screen .rich-deep-list > div > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: var(--violet);
  background: var(--violet-soft);
  font-size: 11px;
  font-weight: 900;
}

.report-screen .rich-deep-list h3 { margin: 0 0 7px; font-size: 14px; }
.report-screen .rich-deep-list p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.report-screen .rich-deep-list small { display: block; margin-top: 8px; color: var(--mint); font-size: 11px; line-height: 1.6; }
.report-screen .rich-repair-grid > div { padding: 17px; border-radius: 10px; background: #f6f3ff; }
.report-screen .rich-repair-grid b { color: var(--violet); font-size: 12px; }
.report-screen .rich-repair-grid p { margin: 7px 0; color: #554e69; font-size: 13px; line-height: 1.7; }
.report-screen .rich-repair-grid span { color: var(--muted); font-size: 11px; line-height: 1.7; }

.report-screen .stress-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 108px 12px 16px;
}

.report-screen .stress-chart svg { position: absolute; top: 18px; left: 24px; width: calc(100% - 48px); height: 86px; overflow: visible; }
.report-screen .stress-baseline { fill: none; stroke: #ded8ee; stroke-width: 2; }
.report-screen .stress-path { fill: none; stroke: var(--coral); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.report-screen .stress-chart circle { fill: #fff; stroke: var(--coral); stroke-width: 3; }
.report-screen .stress-chart > div { text-align: center; }
.report-screen .stress-chart b { display: block; font-size: 10px; }
.report-screen .stress-chart span { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }

.report-screen .rich-recovery-plan,
.report-screen .rich-career-path { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.report-screen .rich-recovery-plan div,
.report-screen .rich-career-path div { padding: 16px; border-radius: 9px; background: #f4f1ff; }
.report-screen .rich-recovery-plan b,
.report-screen .rich-career-path b { display: block; color: var(--violet); font-size: 12px; }
.report-screen .rich-recovery-plan span,
.report-screen .rich-career-path span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.7; }

.report-screen .rich-social-circles { display: grid; height: 350px; place-items: center; background: #f4f1ff; }
.report-screen .circle { position: relative; display: grid; place-items: center; border: 1px solid rgba(113, 84, 239, 0.25); border-radius: 50%; background: rgba(255, 255, 255, 0.42); }
.report-screen .circle > span { position: absolute; top: 10px; color: #8579aa; font-size: 9px; }
.report-screen .circle-4 { width: 310px; height: 310px; }
.report-screen .circle-3 { width: 242px; height: 242px; }
.report-screen .circle-2 { width: 172px; height: 172px; }
.report-screen .circle-1 { width: 98px; height: 98px; color: #fff; background: var(--violet); }
.report-screen .circle-1 b { font-size: 11px; }

.report-screen .rich-principles { margin-top: 22px; padding: 18px; border-radius: 10px; background: #f5f2ff; }
.report-screen .rich-principles h3 { margin: 0 0 12px; font-size: 15px; }
.report-screen .rich-principles p { margin: 9px 0; padding-left: 12px; border-left: 2px solid var(--violet); color: var(--muted); font-size: 12px; line-height: 1.75; }
.report-screen .rich-principles b { color: var(--violet); }

.report-screen .rich-role-distribution { padding: 16px 18px; }
.report-screen .rich-role-distribution > div { display: grid; grid-template-columns: 95px minmax(0, 1fr) 28px; align-items: center; gap: 10px; margin: 13px 0; }
.report-screen .rich-role-distribution span { font-size: 11px; font-weight: 800; }
.report-screen .rich-role-distribution i { height: 8px; overflow: hidden; border-radius: 99px; background: #e9e5f3; }
.report-screen .rich-role-distribution i::before { content: ''; display: block; width: calc(var(--size) * 1%); height: 100%; border-radius: inherit; background: var(--mint); }
.report-screen .rich-role-distribution b { color: var(--mint); font-size: 11px; text-align: right; }

.report-screen .rich-environments { display: grid; gap: 9px; margin-top: 22px; }
.report-screen .rich-environments div { padding: 17px; border-radius: 9px; }
.report-screen .rich-environments div:nth-child(1) { background: #eaf8f2; }
.report-screen .rich-environments div:nth-child(2) { background: #fff6e9; }
.report-screen .rich-environments div:nth-child(3) { background: #fff0ed; }
.report-screen .rich-environments b,
.report-screen .rich-environments span { display: block; }
.report-screen .rich-environments b { font-size: 13px; }
.report-screen .rich-environments span { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.75; }

.report-screen .rich-team-role { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 14px; background: #f8f6ff; }
.report-screen .rich-team-role > div { display: grid; min-height: 72px; padding: 14px; border-radius: 9px; background: #fff; }
.report-screen .rich-team-role > div:first-child { grid-column: 1 / -1; color: #fff; background: var(--violet); }
.report-screen .rich-team-role strong { font-size: 18px; }
.report-screen .rich-team-role b { font-size: 12px; }
.report-screen .rich-team-role span { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.report-screen .rich-team-role > div:first-child span { color: rgba(255, 255, 255, 0.78); }

.report-screen .rich-study-loop { display: grid; gap: 0; margin-top: 22px; }
.report-screen .rich-study-loop div { display: grid; min-height: 68px; place-content: center; padding: 14px; border-radius: 9px; background: #f4f1ff; text-align: center; }
.report-screen .rich-study-loop b,
.report-screen .rich-study-loop span { display: block; }
.report-screen .rich-study-loop b { font-size: 12px; }
.report-screen .rich-study-loop span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.report-screen .rich-study-loop i { display: block; width: 1px; height: 12px; margin: 0 auto; background: var(--violet); }

.report-screen .rich-money-profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 15px; background: #f8f6ff; }
.report-screen .rich-money-profile div { display: grid; min-height: 92px; padding: 14px; align-content: space-between; border-radius: 9px; background: #fff; }
.report-screen .rich-money-profile span { color: var(--muted); font-size: 11px; }
.report-screen .rich-money-profile b { color: var(--violet); font-size: 26px; }

.report-screen .rich-priority-matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 20px; background: #ddd7ed; }
.report-screen .rich-priority-matrix > div { display: grid; min-height: 128px; gap: 7px; padding: 14px; background: #fff; }
.report-screen .rich-priority-matrix > div:nth-child(1) { background: #eaf8f2; }
.report-screen .rich-priority-matrix > div:nth-child(2) { background: #f1edff; }
.report-screen .rich-priority-matrix b { font-size: 12px; }
.report-screen .rich-priority-matrix span { color: var(--muted); font-size: 11px; line-height: 1.65; }
.report-screen .rich-priority-matrix small { color: #938b9e; font-size: 10px; }

.report-screen .rich-authority-score { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 24px; padding: 22px; background: #f5f2ff; }
.report-screen .rich-authority-score > strong { display: grid; width: 110px; height: 110px; place-items: center; border: 10px solid rgba(113, 84, 239, 0.15); border-top-color: var(--violet); border-radius: 50%; color: var(--violet); font-family: Georgia, serif; font-size: 32px; }
.report-screen .rich-authority-score b { display: block; font-size: 16px; }
.report-screen .rich-authority-score p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.report-screen .rich-integration { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 32px; align-items: center; gap: 10px; padding: 22px 18px; }
.report-screen .rich-integration span { color: #766f86; font-size: 10px; font-weight: 800; }
.report-screen .rich-integration i { height: 10px; overflow: hidden; border-radius: 99px; background: #e8e4f1; }
.report-screen .rich-integration i b { display: block; height: 100%; border-radius: inherit; background: var(--violet); }
.report-screen .rich-integration strong { color: var(--violet-deep); font-size: 12px; text-align: right; }

.report-screen .rich-warning-list > div { padding: 16px; border-left: 4px solid var(--coral); border-radius: 0 9px 9px 0; background: #fff2ef; }
.report-screen .rich-warning-list > div:nth-child(2) { border-color: #e4a34e; background: #fff8e9; }
.report-screen .rich-warning-list > div:nth-child(3) { border-color: var(--violet); background: #f3f0ff; }
.report-screen .rich-warning-list b,
.report-screen .rich-warning-list span { display: block; }
.report-screen .rich-warning-list b { font-size: 12px; }
.report-screen .rich-warning-list span { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.7; }

.report-screen .rich-authority-conclusion { display: grid; grid-template-columns: 122px 1fr; align-items: center; gap: 20px; padding: 24px; color: #fff; background: #352d63; }
.report-screen .conclusion-ring { position: relative; display: grid; width: 112px; height: 112px; place-items: center; border-radius: 50%; background: conic-gradient(#8ecfb5 calc(var(--value) * 1%), rgba(255, 255, 255, 0.13) 0); }
.report-screen .conclusion-ring::before { content: ''; position: absolute; width: 84px; height: 84px; border-radius: 50%; background: #352d63; }
.report-screen .conclusion-ring span { position: relative; z-index: 1; color: rgba(255, 255, 255, 0.65); font-size: 9px; text-align: center; }
.report-screen .conclusion-ring b { display: block; color: #fff; font-size: 21px; }
.report-screen .rich-authority-conclusion h3 { margin: 0; font-size: 17px; }
.report-screen .rich-authority-conclusion p { margin: 8px 0; color: rgba(255, 255, 255, 0.72); font-size: 11px; line-height: 1.7; }
.report-screen .rich-authority-conclusion > div:last-child > b { color: #9ee0c4; font-size: 11px; }
.report-screen .rich-conclusion-points { display: grid; gap: 1px; margin-top: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.report-screen .rich-conclusion-points > div { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 17px; background: #fff; }
.report-screen .rich-conclusion-points > div > span { color: var(--violet); font-size: 11px; font-weight: 900; }
.report-screen .rich-conclusion-points p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.report-screen .rich-conclusion-points p b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 12px; }

@media (max-width: 680px) {
  .report-screen .radar-layout { grid-template-columns: 1fr; }
  .report-screen .radar-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 14px 14px; }
  .report-screen .rich-authority-score,
  .report-screen .rich-authority-conclusion { grid-template-columns: 1fr; text-align: center; }
  .report-screen .rich-authority-score > strong,
  .report-screen .conclusion-ring { margin: 0 auto; }
}

@media (max-width: 460px) {
  .report-screen .detailed-bars > div { grid-template-columns: 76px minmax(0, 1fr) 25px; gap: 7px; }
  .report-screen .rich-recovery-plan,
  .report-screen .rich-career-path { grid-template-columns: 1fr; }
  .report-screen .rich-social-circles { height: 290px; }
  .report-screen .circle-4 { width: 258px; height: 258px; }
  .report-screen .circle-3 { width: 202px; height: 202px; }
  .report-screen .circle-2 { width: 145px; height: 145px; }
  .report-screen .circle-1 { width: 82px; height: 82px; }
  .report-screen .rich-identity-map { height: 280px; }
  .report-screen .identity-point { min-width: 72px; padding: 8px; }
  .report-screen .point-1 { left: 10px; top: 22px; }
  .report-screen .point-2 { right: 10px; top: 35px; }
  .report-screen .point-3 { left: 13px; bottom: 25px; }
  .report-screen .point-4 { right: 13px; bottom: 23px; }
}

/* Keep externally hosted square personality portraits compact on phones. */
@media (max-width: 760px) {
  .result-hero {
    min-height: 0;
    padding-bottom: 54px;
  }

  .result-portrait {
    width: min(72vw, 320px);
    min-height: 0;
    aspect-ratio: 1;
    margin: 28px auto 0;
  }

  .result-portrait::before {
    width: 108%;
    height: 108%;
  }

  .result-portrait img {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    transform: none;
  }

  .report-container {
    margin-top: 14px;
  }
}

/* MBTI family themes: NT analysts, NF diplomats, SJ sentinels, SP explorers. */
.report-screen [data-report-family] {
  --report-dark: #19102f;
  --report-mid: #3c267c;
  --report-bright: #6545d4;
  --report-glow-one: rgba(142, 117, 255, 0.44);
  --report-glow-two: rgba(72, 130, 204, 0.34);
  --report-eyebrow: #b9a9ff;
}

.report-screen [data-report-family="analyst"] {
  --violet: #7154ef;
  --violet-deep: #4f35c8;
  --violet-soft: #eee9ff;
}

.report-screen [data-report-family="diplomat"] {
  --report-dark: #0e2c28;
  --report-mid: #176554;
  --report-bright: #3c9b76;
  --report-glow-one: rgba(91, 190, 148, 0.38);
  --report-glow-two: rgba(91, 150, 196, 0.24);
  --report-eyebrow: #a9e1ce;
  --violet: #2d9674;
  --violet-deep: #20785c;
  --violet-soft: #e3f5ed;
}

.report-screen [data-report-family="sentinel"] {
  --report-dark: #10213f;
  --report-mid: #1d4d85;
  --report-bright: #3f80c8;
  --report-glow-one: rgba(98, 164, 225, 0.4);
  --report-glow-two: rgba(60, 181, 171, 0.22);
  --report-eyebrow: #b8d6ff;
  --violet: #326fb4;
  --violet-deep: #21538f;
  --violet-soft: #e6f0ff;
}

.report-screen [data-report-family="explorer"] {
  --report-dark: #332714;
  --report-mid: #72551c;
  --report-bright: #b88732;
  --report-glow-one: rgba(239, 191, 86, 0.32);
  --report-glow-two: rgba(88, 172, 142, 0.2);
  --report-eyebrow: #f7dda0;
  --violet: #ad741b;
  --violet-deep: #7f500d;
  --violet-soft: #fff2d8;
}

/* Version cards: each edition carries one personality character inside the card. */
body[data-current-screen="home"] .version-choice {
  display: block;
  min-height: 236px;
  padding: 25px 224px 23px 68px;
  overflow: hidden;
}

body[data-current-screen="home"] .version-choice-number {
  position: absolute;
  left: 21px;
  top: 24px;
  font-size: 23px;
}

body[data-current-screen="home"] .version-choice-main,
body[data-current-screen="home"] .version-choice-meta {
  position: relative;
  z-index: 2;
}

body[data-current-screen="home"] .version-choice-main h3 {
  margin-bottom: 5px;
}

body[data-current-screen="home"] .version-choice-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
}

body[data-current-screen="home"] .version-choice-meta strong {
  font-size: 20px;
}

body[data-current-screen="home"] .version-choice-meta > span {
  font-size: 12px;
}

body[data-current-screen="home"] .version-button {
  position: relative;
  z-index: 2;
  width: 138px;
  min-height: 42px;
  margin-top: 16px;
  padding: 0 12px;
}

body[data-current-screen="home"] .version-visual {
  position: absolute;
  z-index: 1;
  inset: 50% 18px auto auto;
  width: 190px;
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--landing-border);
  border-radius: 17px;
  background: #eff7f3;
  transform: translateY(-50%);
}

body[data-current-screen="home"] .version-choice--pro .version-visual { background: #edf5fb; }
body[data-current-screen="home"] .version-choice--authority .version-visual { background: #fff1f4; }

body[data-current-screen="home"] .version-visual::after {
  display: none;
}

body[data-current-screen="home"] .version-visual img,
body[data-current-screen="home"] .version-choice--starter .version-visual img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: none;
  filter: none;
  transition: transform 260ms ease;
}

body[data-current-screen="home"] .version-choice:hover .version-visual img {
  transform: scale(1.035);
}

body[data-current-screen="home"] .version-choice--starter .version-button {
  border-color: var(--landing-mint);
  background: var(--landing-mint);
}

body[data-current-screen="home"] .version-choice--pro .version-button {
  border-color: #6ea9ca;
  background: #6ea9ca;
}

body[data-current-screen="home"] .version-choice--authority .version-button {
  border-color: var(--landing-pink);
  background: var(--landing-pink);
}

body[data-current-screen="home"] .version-choice--starter .version-button:hover { background: #218e69; border-color: #218e69; }
body[data-current-screen="home"] .version-choice--pro .version-button:hover { background: #4c89af; border-color: #4c89af; }

@media (max-width: 760px) {
  body[data-current-screen="home"] .version-choice {
    min-height: 236px;
    padding: 20px 196px 18px 52px;
    border-radius: 18px;
  }

  body[data-current-screen="home"] .version-choice-number {
    left: 16px;
    top: 20px;
    font-size: 20px;
  }

  body[data-current-screen="home"] .version-choice-main,
  body[data-current-screen="home"] .version-choice-meta,
  body[data-current-screen="home"] .version-button {
    max-width: calc(100% - 8px);
  }

  body[data-current-screen="home"] .version-choice-main p {
    margin-bottom: 5px;
    font-size: 8px;
  }

  body[data-current-screen="home"] .version-choice-main h3 {
    font-size: 19px;
  }

  body[data-current-screen="home"] .version-choice-main > span {
    font-size: 11px;
    line-height: 1.45;
  }

  body[data-current-screen="home"] .version-choice-meta {
    display: grid;
    gap: 2px;
    margin-top: 12px;
  }

  body[data-current-screen="home"] .version-choice-meta strong {
    font-size: 17px;
  }

  body[data-current-screen="home"] .version-choice-meta > span {
    font-size: 11px;
  }

  body[data-current-screen="home"] .version-button {
    width: auto;
    min-width: 118px;
    max-width: 136px;
    min-height: 40px;
    margin-top: 14px;
    padding: 0 14px;
    font-size: 11px;
  }

  body[data-current-screen="home"] .version-visual {
    top: 50%;
    right: 14px;
    bottom: auto;
    width: 164px;
    border-radius: 15px;
    transform: translateY(-50%);
  }
}

@media (max-width: 390px) {
  body[data-current-screen="home"] .version-choice {
    min-height: 228px;
    padding: 18px 172px 16px 48px;
  }

  body[data-current-screen="home"] .version-choice-number {
    left: 14px;
    top: 18px;
    font-size: 18px;
  }

  body[data-current-screen="home"] .version-choice-main h3 {
    font-size: 18px;
  }

  body[data-current-screen="home"] .version-choice-main > span,
  body[data-current-screen="home"] .version-choice-meta > span {
    font-size: 10px;
  }

  body[data-current-screen="home"] .version-button {
    min-width: 112px;
    max-width: 128px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px;
  }

  body[data-current-screen="home"] .version-visual {
    right: 12px;
    width: 148px;
    border-radius: 14px;
  }
}

/* Hero portrait gallery: let the character art lead without overlapping decoration. */
body[data-current-screen="home"] .hero-portraits {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  min-height: 0;
  margin: 0;
  padding: 22px 22px 18px;
  overflow: hidden;
  border-radius: 28px;
  isolation: isolate;
}

body[data-current-screen="home"] .hero-portraits::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  width: auto;
  height: auto;
  border: 1px solid #eee6e3;
  border-radius: inherit;
  transform: none;
  background: #faf6f4;
  box-shadow: none;
}

body[data-current-screen="home"] .portrait-orbit,
body[data-current-screen="home"] .hero-code,
body[data-current-screen="home"] .hero-seal {
  display: none;
}

body[data-current-screen="home"] .hero-portrait-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(87, 75, 72, 0.08);
  border-radius: 20px;
  background: #f2f2f2;
}

body[data-current-screen="home"] .hero-person,
body[data-current-screen="home"] .hero-person--left,
body[data-current-screen="home"] .hero-person--right {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  filter: none;
  animation: none;
  transition: transform 220ms ease;
}

body[data-current-screen="home"] .hero-portrait-frame--enfp .hero-person {
  transform: scale(1.12);
}

body[data-current-screen="home"] .hero-portrait-frame--istj .hero-person {
  transform: scale(1.06);
}

body[data-current-screen="home"] .hero-portrait-frame--enfp:hover .hero-person {
  transform: scale(1.15);
}

body[data-current-screen="home"] .hero-portrait-frame--istj:hover .hero-person {
  transform: scale(1.09);
}

body[data-current-screen="home"] .hero-caption {
  position: relative;
  inset: auto;
  z-index: 1;
  grid-column: 1 / -1;
  display: block;
  margin: 0;
  padding: 2px 2px 0;
  color: var(--landing-muted);
  text-align: left;
}

body[data-current-screen="home"] .hero-caption b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

@media (max-width: 760px) {
  body[data-current-screen="home"] .hero-portraits {
    gap: 9px;
    min-height: 0;
    margin: 26px 0 0;
    padding: 10px 10px 12px;
    border-radius: 20px;
  }

  body[data-current-screen="home"] .hero-person,
  body[data-current-screen="home"] .hero-person--left,
  body[data-current-screen="home"] .hero-person--right {
    width: 100%;
  }

  body[data-current-screen="home"] .hero-portrait-frame {
    border-radius: 14px;
  }

  body[data-current-screen="home"] .hero-caption {
    padding: 2px 3px 0;
    text-align: center;
  }

  body[data-current-screen="home"] .hero-caption b {
    font-size: 11px;
  }
}
