:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #231f20;
  background: #f6f1e8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #231f20;
  --paper: #f6f1e8;
  --rose: #e77e75;
  --blue: #7d9fe2;
  --sage: #98af87;
  --gold: #ddb25d;
}

p:empty,
h1:empty,
h2:empty,
h3:empty,
small:empty,
figcaption:empty,
.stage-badge:empty,
.unlock-benefits span:empty {
  display: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.home-shell {
  position: relative;
  min-height: 100vh;
  max-width: 560px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 24px env(safe-area-inset-bottom);
  overflow: hidden;
}

.ambient {
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.24;
}

.ambient--rose {
  top: 110px;
  right: -220px;
  background: var(--rose);
}

.ambient--blue {
  top: 520px;
  left: -230px;
  background: var(--blue);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand__mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-family: Georgia, serif;
  font-style: italic;
}

.stage-badge {
  padding: 7px 11px;
  border: 1px solid rgb(35 31 32 / 18%);
  border-radius: 999px;
  color: rgb(35 31 32 / 64%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-section {
  padding: 56px 0 38px;
}
.hero-section--single {
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
}

.home-shell--catalog {
  max-width: 1180px;
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
  align-items: center;
  gap: clamp(34px, 7vw, 90px);
  padding: 58px 0 64px;
}

.catalog-hero--single {
  grid-template-columns: minmax(0, 660px);
}

.catalog-summary {
  position: relative;
  padding: 22px;
  border: 1px solid rgb(35 31 32 / 12%);
  border-radius: 30px;
  background: rgb(255 255 255 / 48%);
  box-shadow: 0 24px 70px rgb(76 63 54 / 12%);
  backdrop-filter: blur(18px);
}

.catalog-summary__header,
.catalog-summary__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgb(35 31 32 / 52%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

.catalog-summary__header span:last-child {
  color: var(--ink);
  font: italic 34px Georgia, serif;
}

.catalog-summary__orbit {
  position: relative;
  width: min(310px, 72vw);
  aspect-ratio: 1;
  margin: 8px auto 14px;
  border: 1px solid rgb(35 31 32 / 10%);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(231 126 117 / 12%), transparent 56%);
}

.catalog-summary__orbit::before,
.catalog-summary__orbit::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgb(35 31 32 / 9%);
  border-radius: 43% 57% 51% 49%;
  transform: rotate(24deg);
}

.catalog-summary__orbit::after {
  inset: 31%;
  transform: rotate(-18deg);
}

.catalog-summary__orbit strong,
.catalog-summary__orbit span {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.catalog-summary__orbit strong {
  inset: 50% auto auto 50%;
  width: 66px;
  height: 66px;
  color: white;
  background: var(--ink);
  font-size: 11px;
  letter-spacing: .12em;
  transform: translate(-50%, -50%);
}

.catalog-summary__orbit span {
  width: 54px;
  height: 54px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgb(35 31 32 / 16%);
}

.catalog-summary__orbit span:nth-child(1) { top: 4%; left: 42%; background: var(--rose); }
.catalog-summary__orbit span:nth-child(2) { top: 39%; right: 0; background: var(--blue); }
.catalog-summary__orbit span:nth-child(3) { right: 21%; bottom: 2%; background: var(--gold); }
.catalog-summary__orbit span:nth-child(4) { top: 58%; left: 2%; background: var(--sage); }

.assessment-catalog {
  padding: 52px 0 62px;
  border-top: 1px solid rgb(35 31 32 / 12%);
  scroll-margin-top: 20px;
}

.assessment-catalog__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.assessment-catalog__heading h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.3;
  letter-spacing: -.04em;
}

.assessment-catalog__heading > p {
  max-width: 390px;
  margin: 0 0 4px;
  color: rgb(35 31 32 / 52%);
  font-size: 13px;
  line-height: 1.75;
}

.assessment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 248px), 1fr));
  gap: 18px;
}

.assessment-grid--count-1 { grid-template-columns: minmax(0, 520px); }
.assessment-grid--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.assessment-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(35 31 32 / 10%);
  border-radius: 25px;
  background: rgb(255 255 255 / 56%);
  box-shadow: 0 14px 44px rgb(76 63 54 / 8%);
  transition: transform .2s ease, box-shadow .2s ease;
}

.assessment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 54px rgb(76 63 54 / 13%);
}

.assessment-card__link {
  display: grid;
  height: 100%;
  grid-template-rows: 170px 1fr;
}

.assessment-card__cover {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #d66f66, #ef9b91);
}

.assessment-card--blue .assessment-card__cover { background: linear-gradient(145deg, #617fc0, #9eb7e9); }
.assessment-card--peach .assessment-card__cover { background: linear-gradient(145deg, #d98275, #f1b39c); }
.assessment-card--wine .assessment-card__cover { background: linear-gradient(145deg, #73394b, #b56776); }
.assessment-card--amber .assessment-card__cover { background: linear-gradient(145deg, #a96924, #dda24d); }
.assessment-card--sage .assessment-card__cover { background: linear-gradient(145deg, #718a63, #aabd9d); }
.assessment-card--green .assessment-card__cover { background: linear-gradient(145deg, #47715d, #88ad91); }
.assessment-card--gold .assessment-card__cover { background: linear-gradient(145deg, #b68a38, #e2bf76); }
.assessment-card--violet .assessment-card__cover { background: linear-gradient(145deg, #765c96, #ad91c8); }

.assessment-card__cover::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgb(255 255 255 / 6%);
}

.assessment-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.assessment-card__cover > span {
  z-index: 1;
  font: italic 58px Georgia, serif;
}

.assessment-card__cover em {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: rgb(255 255 255 / 88%);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.assessment-card__body {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 20px;
}

.assessment-card__meta {
  display: flex;
  justify-content: space-between;
  color: rgb(35 31 32 / 44%);
  font-size: 11px;
}

.assessment-card h3 {
  margin: 18px 0 9px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 23px;
  line-height: 1.3;
}

.assessment-card__body > p {
  margin: 0;
  color: rgb(35 31 32 / 58%);
  font-size: 13px;
  line-height: 1.75;
}

.assessment-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  font-size: 13px;
  font-weight: 700;
}

.assessment-card__action i { font-size: 17px; font-style: normal; }

.assessment-catalog-state {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed rgb(35 31 32 / 16%);
  border-radius: 24px;
  color: rgb(35 31 32 / 48%);
  font-size: 13px;
}

.assessment-catalog-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  animation: breathe 1s infinite;
}

.assessment-catalog-state--error { color: #a14f49; }

.eyebrow {
  margin: 0 0 17px;
  color: rgb(35 31 32 / 50%);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.hero-copy h1,
.journey-section h2,
.placeholder-card h1 {
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 12vw, 58px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.hero-copy h1 em {
  position: relative;
  color: var(--rose);
  font-style: normal;
}

.hero-copy h1 em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 8px;
  border-radius: 50%;
  border-top: 2px solid currentColor;
  transform: rotate(-2deg);
}

.hero-description {
  max-width: 430px;
  margin: 24px 0 28px;
  color: rgb(35 31 32 / 66%);
  font-size: 15px;
  line-height: 1.85;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
}

.primary-button {
  width: 100%;
  justify-content: space-between;
  padding: 7px 8px 7px 24px;
  color: white;
  background: var(--ink);
  box-shadow: 0 12px 32px rgb(35 31 32 / 18%);
}

.primary-button__arrow {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: white;
  font-size: 18px;
}

.microcopy {
  margin: 12px 0 0;
  color: rgb(35 31 32 / 44%);
  font-size: 11px;
  text-align: center;
}

.spectrum-card {
  position: relative;
  margin-top: 44px;
  padding: 18px;
  border: 1px solid rgb(35 31 32 / 12%);
  border-radius: 28px;
  background: rgb(255 255 255 / 42%);
  box-shadow: 0 18px 60px rgb(76 63 54 / 10%);
  backdrop-filter: blur(18px);
}

.spectrum-card__header,
.spectrum-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgb(35 31 32 / 52%);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.spectrum-card__number {
  font-family: Georgia, serif;
  font-size: 26px;
  font-style: italic;
}

.spectrum-orbit {
  position: relative;
  width: min(270px, 72vw);
  aspect-ratio: 1;
  margin: 2px auto 8px;
}

.orbit {
  position: absolute;
  inset: 50%;
  border: 1px solid rgb(35 31 32 / 14%);
  border-radius: 45% 55% 50% 48%;
  transform: translate(-50%, -50%) rotate(12deg);
}

.orbit--one { width: 76%; height: 76%; }
.orbit--two { width: 54%; height: 54%; transform: translate(-50%, -50%) rotate(48deg); }
.orbit--three { width: 34%; height: 34%; transform: translate(-50%, -50%) rotate(-25deg); }

.spectrum-core,
.trait {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 600;
}

.spectrum-core {
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  color: white;
  background: var(--ink);
  font-size: 11px;
  letter-spacing: 0.12em;
  transform: translate(-50%, -50%);
}

.trait {
  width: 42px;
  height: 42px;
  color: white;
  box-shadow: 0 8px 20px rgb(35 31 32 / 16%);
}

.trait--a { top: 10%; left: 45%; background: var(--rose); }
.trait--b { top: 40%; right: 5%; background: var(--blue); }
.trait--c { right: 27%; bottom: 4%; background: var(--sage); }
.trait--d { top: 54%; left: 6%; background: var(--gold); }

.journey-section {
  padding: 46px 0 24px;
  border-top: 1px solid rgb(35 31 32 / 12%);
}

.journey-section h2 {
  max-width: 360px;
  margin: 0 0 28px;
  font-size: 28px;
  line-height: 1.45;
  letter-spacing: -0.04em;
}

.journey-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 21px 0;
  border-bottom: 1px solid rgb(35 31 32 / 10%);
}

.journey-list__number {
  color: var(--rose);
  font-family: Georgia, serif;
  font-size: 24px;
  font-style: italic;
}

.journey-list strong {
  font-size: 16px;
}

.journey-list p {
  margin: 7px 0 0;
  color: rgb(35 31 32 / 52%);
  font-size: 13px;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 34px;
  color: rgb(35 31 32 / 42%);
  font-size: 10px;
}

.health-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.health-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c3b9ad;
}

.health-indicator--online i { background: #719b6a; box-shadow: 0 0 0 4px rgb(113 155 106 / 12%); }
.health-indicator--offline i { background: #c66b63; }
.health-indicator--checking i { animation: breathe 1.2s ease-in-out infinite; }

.placeholder-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: calc(28px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 15% 15%, rgb(231 126 117 / 18%), transparent 32%),
    radial-gradient(circle at 85% 75%, rgb(125 159 226 / 18%), transparent 30%),
    var(--paper);
}

.placeholder-card {
  width: min(100%, 460px);
  padding: 30px;
  border: 1px solid rgb(35 31 32 / 12%);
  border-radius: 28px;
  background: rgb(255 255 255 / 50%);
  box-shadow: 0 24px 70px rgb(76 63 54 / 12%);
  text-align: center;
  backdrop-filter: blur(16px);
}

.back-link {
  display: block;
  margin-bottom: 40px;
  color: rgb(35 31 32 / 52%);
  font-size: 12px;
  text-align: left;
}

.placeholder-symbol {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-family: Georgia, serif;
  font-size: 22px;
}

.placeholder-card h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.4;
}

.placeholder-card > p:not(.eyebrow) {
  margin: 18px auto 28px;
  color: rgb(35 31 32 / 58%);
  font-size: 14px;
  line-height: 1.8;
}

.secondary-button {
  min-width: 160px;
  padding: 0 22px;
  color: white;
  background: var(--ink);
  border: 0;
  cursor: pointer;
}

.test-shell {
  position: relative;
  min-height: 100vh;
  max-width: 560px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 22px env(safe-area-inset-bottom);
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 8%, rgb(231 126 117 / 16%), transparent 28%),
    radial-gradient(circle at 0% 80%, rgb(125 159 226 / 14%), transparent 30%),
    var(--paper);
}

.test-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 14px;
}

.gender-section {
  display: flex;
  min-height: calc(100vh - 96px);
  flex-direction: column;
  justify-content: center;
  padding: 34px 0 70px;
}

.gender-section h1,
.privacy-section h1,
.question-card h1,
.test-status-card h1,
.json-result-section h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.gender-section h1 {
  font-size: clamp(36px, 11vw, 50px);
}

.privacy-section {
  padding: 38px 0 54px;
}

.auth-login-section {
  display: flex;
  min-height: calc(100vh - 96px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 0 70px;
  text-align: center;
}

.auth-login-card {
  width: 100%;
  padding: 34px 24px 26px;
  border: 1px solid rgb(35 31 32 / 10%);
  border-radius: 30px;
  background: rgb(255 255 255 / 62%);
  box-shadow: 0 22px 55px rgb(76 63 54 / 9%);
  backdrop-filter: blur(14px);
}

.auth-login-card h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(32px, 9vw, 44px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.04em;
}

.auth-login-card .test-description {
  margin-bottom: 28px;
  line-height: 1.8;
}

.wechat-login-visual {
  position: relative;
  width: 88px;
  height: 70px;
  margin: 0 auto 24px;
}

.wechat-login-visual span,
.wechat-login-visual i {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: #57a955;
  box-shadow: 0 12px 24px rgb(72 145 70 / 18%);
}

.wechat-login-visual span {
  top: 0;
  left: 0;
  width: 58px;
  height: 48px;
}

.wechat-login-visual i {
  right: 0;
  bottom: 0;
  width: 50px;
  height: 42px;
  border: 3px solid var(--paper);
}

.wechat-login-visual span::before,
.wechat-login-visual span::after,
.wechat-login-visual i::before,
.wechat-login-visual i::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: white;
}

.wechat-login-visual span::before { left: 17px; }
.wechat-login-visual span::after { right: 17px; }
.wechat-login-visual i::before { left: 13px; }
.wechat-login-visual i::after { right: 13px; }

.privacy-section > h1 {
  max-width: 470px;
  font-size: clamp(32px, 9vw, 46px);
  line-height: 1.22;
}

.privacy-section .test-description {
  line-height: 1.8;
}

.privacy-policy-card {
  display: grid;
  gap: 18px;
  padding: 22px 20px;
  border: 1px solid rgb(35 31 32 / 11%);
  border-radius: 25px;
  background: rgb(255 255 255 / 62%);
  box-shadow: 0 16px 42px rgb(76 63 54 / 7%);
}

.privacy-policy-card article {
  padding-bottom: 18px;
  border-bottom: 1px solid rgb(35 31 32 / 9%);
}

.privacy-policy-card article:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.privacy-policy-card h2 {
  margin: 0 0 9px;
  font-size: 15px;
}

.privacy-policy-card p,
.privacy-policy-card li {
  color: rgb(35 31 32 / 62%);
  font-size: 12px;
  line-height: 1.75;
}

.privacy-policy-card p {
  margin: 0;
}

.privacy-policy-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 19px;
}

.privacy-policy-card small {
  color: rgb(35 31 32 / 42%);
  font-size: 10px;
}

.privacy-wechat-note {
  padding: 16px !important;
  border: 1px solid rgb(104 171 91 / 20%) !important;
  border-radius: 18px;
  background: rgb(104 171 91 / 8%);
}

.privacy-consent-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: start;
  margin-top: 18px;
  cursor: pointer;
}

.privacy-consent-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.privacy-consent-row > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgb(35 31 32 / 24%);
  border-radius: 7px;
  background: white;
}

.privacy-consent-row input:checked + span {
  border-color: #57a955;
  background: #57a955;
}

.privacy-consent-row input:checked + span::after {
  content: "✓";
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.privacy-consent-row strong {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  text-align: left;
}

.privacy-consent-row a {
  color: #438b42;
  font-weight: 650;
}

.privacy-authorize-button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #57a955;
  box-shadow: 0 13px 26px rgb(72 145 70 / 20%);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.privacy-authorize-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.wechat-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #57a955;
  background: white;
  font-size: 11px;
  font-weight: 800;
}

.privacy-environment-note,
.privacy-error {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 13px;
  font-size: 11px;
  line-height: 1.65;
}

.privacy-environment-note {
  color: #5b654b;
  background: rgb(152 175 135 / 14%);
}

.privacy-error {
  color: #a8443f;
  background: rgb(231 126 117 / 12%);
}

.auth-demo-hint {
  display: inline-block;
  margin-top: 14px;
  color: rgb(35 31 32 / 36%);
  font-size: 10px;
}

.agreement-shell {
  min-height: 100vh;
  max-width: 560px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 22px calc(34px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 100% 6%, rgb(152 175 135 / 14%), transparent 25%),
    var(--paper);
}

.agreement-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 28px;
}

.agreement-back {
  color: rgb(35 31 32 / 54%);
  font-size: 11px;
}

.agreement-document {
  padding: 28px 22px;
  border: 1px solid rgb(35 31 32 / 10%);
  border-radius: 28px;
  background: rgb(255 255 255 / 64%);
  box-shadow: 0 18px 48px rgb(76 63 54 / 7%);
}

.agreement-document > h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 38px;
  letter-spacing: -.04em;
}

.agreement-intro {
  margin: 15px 0 12px;
  color: rgb(35 31 32 / 60%);
  font-size: 13px;
  line-height: 1.8;
}

.agreement-document > small {
  color: rgb(35 31 32 / 38%);
  font-size: 10px;
}

.agreement-sections {
  display: grid;
  gap: 25px;
  margin-top: 28px;
}

.agreement-sections section {
  padding-top: 24px;
  border-top: 1px solid rgb(35 31 32 / 9%);
}

.agreement-sections h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.agreement-sections p,
.agreement-sections li {
  color: rgb(35 31 32 / 62%);
  font-size: 12px;
  line-height: 1.85;
  white-space: pre-line;
}

.agreement-sections p {
  margin: 0;
}

.agreement-sections ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 19px;
}

.test-description {
  margin: 18px 0 32px;
  color: rgb(35 31 32 / 58%);
  font-size: 14px;
}

.gender-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gender-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
  border: 1px solid rgb(35 31 32 / 12%);
  border-radius: 24px;
  color: var(--ink);
  background: rgb(255 255 255 / 55%);
  box-shadow: 0 16px 40px rgb(76 63 54 / 8%);
  cursor: pointer;
  text-align: left;
}

.gender-card:active {
  transform: scale(0.98);
}

.gender-card__icon {
  margin-bottom: auto;
  font-size: 46px;
}

.gender-card strong {
  margin-bottom: 7px;
  font-size: 20px;
}

.gender-card > span:last-child {
  color: rgb(35 31 32 / 48%);
  font-size: 11px;
}

.gender-skip-button {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 1px solid rgb(35 31 32 / 12%);
  border-radius: 999px;
  color: rgb(35 31 32 / 66%);
  background: rgb(255 255 255 / 40%);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.quiet-link {
  display: inline-block;
  margin-top: 26px;
  color: rgb(35 31 32 / 48%);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.question-section {
  padding: 28px 0 42px;
}

.test-progress {
  margin-bottom: 24px;
}

.test-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: rgb(35 31 32 / 44%);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.test-progress__meta strong {
  color: var(--ink);
  font-size: 11px;
}

.test-progress__track {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(35 31 32 / 10%);
}

.test-progress__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--rose);
  transition: width 240ms ease;
}

.question-card {
  padding: 26px 20px 20px;
  border: 1px solid rgb(35 31 32 / 11%);
  border-radius: 28px;
  background: rgb(255 255 255 / 55%);
  box-shadow: 0 18px 50px rgb(76 63 54 / 8%);
  backdrop-filter: blur(14px);
}

.question-card h1 {
  font-size: 30px;
  line-height: 1.35;
}

.question-card__description {
  margin: 15px 0 24px;
  color: rgb(35 31 32 / 58%);
  font-size: var(--question-font-size, 18px);
  line-height: 1.8;
}

.question-card--pattern .question-card__description {
  margin: 0 0 24px;
  color: rgb(35 31 32 / 82%);
  font-size: var(--question-font-size, 18px);
  font-weight: 500;
  line-height: 1.72;
}

.answer-list {
  display: grid;
  gap: 10px;
}

.answer-option {
  display: grid;
  min-height: 72px;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgb(35 31 32 / 11%);
  border-radius: 18px;
  color: var(--ink);
  background: rgb(246 241 232 / 60%);
  cursor: pointer;
  font: inherit;
  font-size: var(--answer-font-size, 14px);
  line-height: 1.55;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.answer-option:active {
  transform: scale(0.99);
}

.answer-option--selected {
  border-color: var(--ink);
  background: white;
  box-shadow: 0 8px 22px rgb(35 31 32 / 8%);
}

.answer-option__key {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: rgb(35 31 32 / 8%);
  font-family: Georgia, serif;
  font-weight: 600;
}

.answer-option--selected .answer-option__key {
  color: white;
  background: var(--ink);
}

.test-actions {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) 1.3fr;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.test-back-button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.test-back-button {
  color: var(--ink);
  background: rgb(35 31 32 / 8%);
}

.auto-advance-hint {
  color: rgb(35 31 32 / 42%);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.test-status-card,
.json-result-section {
  margin-top: 70px;
  padding: 30px;
  border: 1px solid rgb(35 31 32 / 11%);
  border-radius: 28px;
  background: rgb(255 255 255 / 55%);
  box-shadow: 0 18px 50px rgb(76 63 54 / 8%);
  text-align: center;
}

.status-spinner {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 4px auto 24px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  animation: breathe 1.2s ease-in-out infinite;
}

.test-status-card--error .status-spinner {
  background: var(--rose);
  animation: none;
}

.test-status-card h1,
.json-result-section h1 {
  font-size: 28px;
}

.test-status-card p,
.json-result-section > p:not(.eyebrow) {
  margin: 14px 0 26px;
  color: rgb(35 31 32 / 56%);
  font-size: 13px;
  line-height: 1.75;
}

.json-result-section {
  margin: 34px 0 40px;
  text-align: left;
}

.json-result {
  max-height: 440px;
  margin: 20px 0 0;
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  color: #dfe7f5;
  background: #1f2127;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
}

.report-shell {
  position: relative;
  min-height: 100vh;
  max-width: 560px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 22px env(safe-area-inset-bottom);
  overflow: hidden;
  background: var(--paper);
}

.report-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 20px;
}

.report-hero {
  position: relative;
  padding: 26px 22px 30px;
  overflow: hidden;
  border: 1px solid rgb(35 31 32 / 12%);
  border-radius: 30px;
  color: white;
  background:
    radial-gradient(circle at 88% 8%, rgb(231 126 117 / 85%), transparent 32%),
    linear-gradient(145deg, #2b292c 0%, #171619 100%);
  box-shadow: 0 22px 54px rgb(35 31 32 / 18%);
}

.report-hero::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -72px;
  width: 190px;
  height: 190px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 48% 52% 42% 58%;
  transform: rotate(24deg);
}

.report-hero__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
  color: rgb(255 255 255 / 64%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.report-emblem {
  position: absolute;
  top: 65px;
  right: 22px;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  color: var(--ink);
  background: #f3d8ad;
  box-shadow: 0 10px 30px rgb(0 0 0 / 20%);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 30px;
  font-weight: 600;
}

.report-portrait {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 4.7;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 24px;
  background: rgb(255 255 255 / 8%);
}

.report-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-portrait figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 999px;
  color: rgb(255 255 255 / 82%);
  background: rgb(23 22 25 / 54%);
  backdrop-filter: blur(12px);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.report-portrait--fallback {
  display: grid;
  min-height: 260px;
  place-items: center;
}

.report-portrait--fallback .report-emblem {
  position: static;
  width: 88px;
  height: 88px;
}

.report-hero .eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  color: rgb(255 255 255 / 42%);
  text-align: center;
}

.report-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(38px, 12vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.05em;
  text-align: center;
}

.shared-report-shell .shared-report-title {
  max-width: 430px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(27px, 7.6vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.shared-report-shell .report-intro {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.85;
  text-align: center;
}

.shared-report-shell .shared-report-cta {
  min-height: 60px;
  margin-top: 24px;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid rgb(255 255 255 / 22%);
  color: #221f20;
  background: linear-gradient(135deg, #f4d9ab, #e6ad48);
  box-shadow: 0 16px 34px rgb(0 0 0 / 28%);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
}

.shared-report-shell .shared-report-cta:active {
  transform: translateY(1px);
}

.report-personality-subtitle {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin: 13px auto 0;
  color: rgb(255 255 255 / 72%);
  font-size: var(--personality-subtitle-font-size, 15px);
  line-height: 1.75;
  text-align: center;
}

.report-intro {
  position: relative;
  z-index: 1;
  max-width: 320px;
  margin: 18px 0 0;
  color: rgb(255 255 255 / 72%);
  font-size: 13px;
  line-height: 1.8;
}

.commercial-section {
  margin-top: 22px;
}

.unlock-grid {
  display: grid;
  gap: 10px;
}

.unlock-card {
  position: relative;
  overflow: hidden;
  padding: 23px 20px 20px;
  border: 1px solid rgb(35 31 32 / 11%);
  border-radius: 22px;
  background: rgb(255 255 255 / 58%);
  box-shadow: 0 10px 28px rgb(76 63 54 / 6%);
  text-align: center;
}

.unlock-card--align-left {
  text-align: left;
}

.unlock-card::after {
  content: "";
  position: absolute;
  top: -52px;
  left: 50%;
  width: 150px;
  height: 90px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgb(231 126 117 / 7%);
  filter: blur(8px);
  pointer-events: none;
}

.unlock-card--unlocked {
  border-color: rgb(113 141 97 / 32%);
  background: linear-gradient(145deg, rgb(255 255 255 / 72%), rgb(152 175 135 / 13%));
}

.unlock-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.unlock-card > p {
  position: relative;
  z-index: 1;
  max-width: 300px;
  margin: 8px auto 0;
  color: rgb(35 31 32 / 56%);
  font-size: 11px;
  line-height: 1.6;
}

.unlock-card__footer {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.unlock-card--align-left .unlock-card__footer {
  justify-content: flex-start;
}

.unlock-button {
  width: auto;
  min-width: 138px;
  max-width: 100%;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.unlock-button:active {
  transform: translateY(1px);
}

.unlock-button:disabled {
  color: #5e7752;
  background: rgb(152 175 135 / 19%);
  cursor: default;
}

.commercial-demo-note {
  margin: 12px 0 0;
  color: rgb(35 31 32 / 38%);
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

.commercial-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  color: #a93f39;
  background: rgb(231 126 117 / 12%);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.unlocked-section {
  margin-top: 26px;
  scroll-margin-top: 18px;
}

.unlocked-section__label {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px 12px;
  color: rgb(35 31 32 / 52%);
  font-size: var(--unlocked-label-font-size, 16px);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
}

.unlocked-section > .report-card:first-of-type {
  margin-top: 0;
}

.report-card {
  margin-top: 16px;
  padding: 22px 20px 6px;
  border: 1px solid rgb(35 31 32 / 11%);
  border-radius: 26px;
  background: rgb(255 255 255 / 54%);
  box-shadow: 0 14px 36px rgb(76 63 54 / 7%);
  backdrop-filter: blur(14px);
}

.report-card--strengths {
  background: linear-gradient(145deg, rgb(255 255 255 / 68%), rgb(152 175 135 / 12%));
}

.report-card--risks {
  background: linear-gradient(145deg, rgb(255 255 255 / 68%), rgb(221 178 93 / 12%));
}

.personalized-analysis {
  margin: 0 0 16px;
  padding: 19px;
  border: 1px solid rgb(35 31 32 / 10%);
  border-radius: 21px;
  background: linear-gradient(145deg, rgb(255 255 255 / 72%), rgb(125 159 226 / 10%));
  box-shadow: 0 12px 30px rgb(76 63 54 / 6%);
}

.personalized-analysis--hidden {
  margin: 22px 0 0;
  border-color: rgb(221 178 93 / 24%);
  background: linear-gradient(145deg, rgb(255 255 255 / 64%), rgb(221 178 93 / 13%));
}

.personalized-analysis--growth {
  margin-top: 16px;
  background: rgb(255 255 255 / 48%);
}

.personalized-analysis__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.personalized-analysis__heading p {
  margin: 0 0 6px;
  color: rgb(35 31 32 / 40%);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
}

.personalized-analysis__heading h3 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  letter-spacing: -.03em;
}

.personalized-analysis__content {
  margin-top: 14px;
  color: rgb(35 31 32 / 70%);
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-line;
}

.personalized-analysis--loading .personalized-analysis__content {
  color: rgb(35 31 32 / 42%);
}

.personalized-analysis__note {
  margin: 13px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgb(35 31 32 / 8%);
  color: rgb(35 31 32 / 38%);
  font-size: 8px;
  line-height: 1.6;
}

.report-generation {
  margin: 0 0 16px;
  padding: 25px 20px 22px;
  border: 1px solid rgb(35 31 32 / 10%);
  border-radius: 22px;
  background: linear-gradient(145deg, rgb(255 255 255 / 74%), rgb(125 159 226 / 10%));
  box-shadow: 0 12px 30px rgb(76 63 54 / 6%);
  text-align: center;
}

.report-generation--hidden {
  margin-top: 22px;
  border-color: rgb(221 178 93 / 22%);
  background: linear-gradient(145deg, rgb(255 255 255 / 68%), rgb(221 178 93 / 12%));
}

.report-generation--growth {
  margin-top: 16px;
  background: rgb(255 255 255 / 52%);
}

.report-generation__mark {
  display: flex;
  justify-content: center;
  gap: 5px;
  height: 12px;
}

.report-generation__mark i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #718d61;
  animation: report-generation-dot 1.2s ease-in-out infinite;
}

.report-generation__mark i:nth-child(2) { animation-delay: .16s; }
.report-generation__mark i:nth-child(3) { animation-delay: .32s; }

.report-generation h3 {
  margin: 7px 0 15px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 19px;
  letter-spacing: -.03em;
}

.report-generation__track {
  width: min(100%, 290px);
  height: 5px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(35 31 32 / 8%);
}

.report-generation__track i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #98af87, #7d9fe2, #e77e75);
  animation: report-generation-progress 2.1s ease-in-out infinite;
}

.report-generation__stages {
  position: relative;
  height: 22px;
  margin-top: 13px;
  overflow: hidden;
  color: rgb(35 31 32 / 62%);
  font-size: 11px;
  line-height: 22px;
}

.report-generation__stages span {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: report-generation-stage 8s ease-in-out infinite;
}

.report-generation__stages span:nth-child(2) { animation-delay: 2s; }
.report-generation__stages span:nth-child(3) { animation-delay: 4s; }
.report-generation__stages span:nth-child(4) { animation-delay: 6s; }

.report-generation > p {
  margin: 6px 0 0;
  color: rgb(35 31 32 / 38%);
  font-size: 9px;
  line-height: 1.6;
}

@keyframes report-generation-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@keyframes report-generation-progress {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(105%); }
  100% { transform: translateX(250%); }
}

@keyframes report-generation-stage {
  0%, 100% { opacity: 0; transform: translateY(5px); }
  8%, 22% { opacity: 1; transform: translateY(0); }
  30% { opacity: 0; transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .report-generation__mark i,
  .report-generation__track i {
    animation-duration: 4s;
  }

  .report-generation__stages span {
    display: none;
    animation: none;
  }

  .report-generation__stages span:first-child {
    display: block;
    opacity: 1;
  }
}

.report-card__heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}

.report-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: var(--ink);
  font-size: 18px;
}

.report-card__heading p {
  margin: 0 0 3px;
  color: rgb(35 31 32 / 40%);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.report-card__heading h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.report-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  border-top: 1px solid rgb(35 31 32 / 9%);
  font-size: 13px;
  line-height: 1.5;
}

.report-list__index {
  font-family: Georgia, serif;
  font-size: 17px;
  font-style: italic;
}

.report-list__index--positive { color: #718d61; }
.report-list__index--caution { color: #b38336; }

.report-card--characters {
  padding-bottom: 20px;
}

.character-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

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

.character-grid--single .character-card {
  min-height: 112px;
}

.character-grid--single .character-card--with-image {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
}

.character-card {
  position: relative;
  min-height: 130px;
  overflow: hidden;
  padding: 16px;
  border-radius: 20px;
}

.character-card > span {
  position: absolute;
  top: 12px;
  right: 14px;
  color: rgb(35 31 32 / 24%);
  font-family: Georgia, serif;
  font-size: 28px;
}

.character-card p {
  margin: 0 0 42px;
  color: rgb(35 31 32 / 50%);
  font-size: 10px;
}

.character-card strong {
  display: block;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 17px;
  line-height: 1.4;
}

.character-card__image {
  width: 104px;
  height: 128px;
  border-radius: 14px;
  object-fit: cover;
}

.character-card__copy p {
  margin: 0 0 8px;
}

.character-card__copy small {
  display: block;
  margin-top: 8px;
  color: rgb(35 31 32 / 64%);
  font-size: 12px;
  line-height: 1.65;
}

.character-card--male { background: rgb(125 159 226 / 18%); }
.character-card--female { background: rgb(231 126 117 / 18%); }

.hidden-report-card,
.growth-card {
  padding-bottom: 22px;
}

.hidden-report-card .unlocked-section__label,
.growth-card .unlocked-section__label {
  margin: 0 0 18px;
}

.hidden-personality__hero {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 20px;
  color: white;
  background:
    radial-gradient(circle at 100% 0%, rgb(125 159 226 / 58%), transparent 45%),
    #242329;
}

.hidden-personality__hero p {
  margin: 0 0 7px;
  color: rgb(255 255 255 / 48%);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.hidden-personality__hero h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 28px;
}

.hidden-personality__hero > span {
  position: absolute;
  right: 18px;
  bottom: 20px;
  padding: 6px 10px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
  color: rgb(255 255 255 / 78%);
  font-size: 10px;
}

.hidden-personality__copy {
  margin: 14px 2px 20px;
  color: rgb(35 31 32 / 54%);
  font-size: 11px;
  line-height: 1.7;
}

.score-distribution {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.score-row__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 11px;
}

.score-row__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.score-row__meta i {
  color: rgb(35 31 32 / 32%);
  font-family: Georgia, serif;
  font-size: 9px;
  font-style: normal;
}

.score-row__meta strong {
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 500;
}

.score-row__track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(35 31 32 / 7%);
}

.score-problem-card {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgb(221 178 93 / 24%);
  border-radius: 19px;
  background: linear-gradient(145deg, rgb(255 255 255 / 64%), rgb(221 178 93 / 13%));
}

.score-problem-card > p {
  margin: 0 0 7px;
  color: #a16f27;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.score-problem-card h3 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.score-problem-card div {
  margin-top: 12px;
  color: rgb(35 31 32 / 68%);
  font-size: 11px;
  line-height: 1.85;
}

.score-problem-card > span {
  display: block;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid rgb(35 31 32 / 8%);
  color: rgb(35 31 32 / 42%);
  font-size: 9px;
}

.score-row__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--rose));
}

.growth-card {
  background: linear-gradient(150deg, rgb(255 255 255 / 72%), rgb(221 178 93 / 14%));
}

.growth-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.growth-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgb(35 31 32 / 8%);
  border-radius: 17px;
  background: rgb(255 255 255 / 48%);
}

.growth-list li > span {
  color: #b38336;
  font-family: Georgia, serif;
  font-size: 16px;
  font-style: italic;
}

.growth-list p {
  margin: 0;
  color: rgb(35 31 32 / 68%);
  font-size: 12px;
  line-height: 1.75;
}

.growth-disclaimer {
  margin: 14px 0 0;
  color: rgb(35 31 32 / 36%);
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

.share-invitation {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px 12px;
  margin-top: 14px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgb(125 159 226 / 24%);
  border-radius: 20px;
  background: linear-gradient(145deg, rgb(255 255 255 / 72%), rgb(125 159 226 / 13%));
  box-shadow: 0 12px 32px rgb(76 63 54 / 7%);
}

.share-invitation__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #566e9f;
  font-family: Georgia, serif;
  font-size: 15px;
}

.share-invitation__copy .eyebrow {
  margin: 1px 0 6px;
  color: #566e9f;
}

.share-invitation__copy h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.share-invitation__copy > p:last-child {
  margin: 5px 0 0;
  color: rgb(35 31 32 / 56%);
  font-size: 11px;
  line-height: 1.7;
}

.share-center-link {
  grid-column: 2 / -1;
  display: flex;
  width: max-content;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #425985;
  font-size: 11px;
  font-weight: 600;
}

.share-button {
  grid-column: 3;
  grid-row: 1;
  min-width: 132px;
  min-height: 38px;
  align-self: center;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #566e9f;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
}

.share-button:disabled {
  cursor: wait;
  opacity: .62;
}

.poster-error {
  grid-column: 2 / -1;
  margin: 0;
  color: #a93f39;
  font-size: 12px;
  line-height: 1.55;
}

.poster-preview {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: calc(18px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));
  background: rgb(22 20 21 / 88%);
  backdrop-filter: blur(12px);
}

.poster-preview__body {
  display: flex;
  width: min(88vw, 390px);
  max-height: 92vh;
  flex-direction: column;
  align-items: center;
}

.poster-preview__body img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 76vh;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgb(0 0 0 / 38%);
}

.poster-preview__body strong {
  margin-top: 14px;
  color: white;
  font-size: 15px;
}

.poster-preview__body p {
  margin: 6px 0 0;
  color: rgb(255 255 255 / 66%);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.poster-preview__close {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  color: white;
  background: rgb(255 255 255 / 10%);
  font: 28px/1 Arial, sans-serif;
}

@media (max-width: 420px) {
  .share-invitation {
    grid-template-columns: 34px 1fr;
  }
  .share-button {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
  }
  .share-center-link,
  .poster-error {
    grid-column: 1 / -1;
  }
}

.share-button:active {
  transform: translateY(1px);
}

.share-guide {
  grid-column: 1 / -1;
  padding: 14px 15px;
  border-radius: 16px;
  color: rgb(35 31 32 / 70%);
  background: rgb(255 255 255 / 62%);
}

.share-guide strong {
  font-size: 12px;
}

.share-guide p {
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.7;
}

.invite-shell {
  position: relative;
  min-height: 100vh;
  max-width: 560px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 22px env(safe-area-inset-bottom);
  overflow: hidden;
  background: var(--paper);
}

.invite-hero {
  padding: 30px 2px 28px;
}

.invite-hero h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(32px, 9vw, 44px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.05em;
}

.invite-hero h1 em {
  color: #566e9f;
  font-style: normal;
}

.invite-hero > p:last-child {
  margin: 18px 0 0;
  color: rgb(35 31 32 / 62%);
  font-size: 13px;
  line-height: 1.8;
}

.invite-hero > p strong { color: #425985; }

.invite-loading,
.distribution-paused,
.invite-link-card,
.invite-progress-card,
.settlement-card,
.invite-records {
  margin-top: 14px;
  border: 1px solid rgb(35 31 32 / 10%);
  border-radius: 24px;
  background: rgb(255 255 255 / 58%);
  box-shadow: 0 12px 34px rgb(76 63 54 / 6%);
}

.invite-loading {
  padding: 28px 20px;
  color: rgb(35 31 32 / 54%);
  font-size: 12px;
  text-align: center;
  animation: breathe 1.8s ease-in-out infinite;
}

.invite-loading--error {
  display: grid;
  gap: 9px;
  animation: none;
}

.invite-loading--error strong { color: #a54e48; }
.invite-loading--error span { line-height: 1.6; }
.invite-loading--error button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  font: inherit;
}

.distribution-paused {
  padding: 16px 18px;
  color: #8d5e26;
  background: rgb(221 178 93 / 13%);
  font-size: 11px;
  line-height: 1.7;
}

.earning-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.earning-overview article {
  min-width: 0;
  padding: 18px 16px;
  border: 1px solid rgb(35 31 32 / 9%);
  border-radius: 21px;
  background: linear-gradient(145deg, rgb(255 255 255 / 72%), rgb(125 159 226 / 10%));
}

.earning-overview span,
.earning-overview small {
  display: block;
  color: rgb(35 31 32 / 44%);
  font-size: 9px;
}

.earning-overview strong {
  display: block;
  margin: 10px 0 6px;
  overflow: hidden;
  color: #34486f;
  font: 23px Georgia, serif;
  text-overflow: ellipsis;
}

.invite-link-card { padding: 20px; }
.invite-link-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.invite-link-card__heading p,
.invite-section-heading p {
  margin: 0 0 4px;
  color: #566e9f;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
}
.invite-link-card__heading h2,
.invite-section-heading h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 20px;
}
.invite-link-card__heading > span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #425985;
  background: rgb(125 159 226 / 14%);
  font-size: 10px;
  font-weight: 700;
}
.invite-link-value {
  margin-top: 16px;
  padding: 13px;
  overflow: hidden;
  border-radius: 14px;
  color: rgb(35 31 32 / 56%);
  background: rgb(35 31 32 / 5%);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.invite-link-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}
.invite-link-actions button {
  min-height: 44px;
  border: 1px solid #566e9f;
  border-radius: 999px;
  color: #425985;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}
.invite-link-actions button:last-child { color: white; background: #566e9f; }
.invite-action-message {
  margin: 11px 0 0;
  color: #4f7345;
  font-size: 10px;
  text-align: center;
}
.invite-compliance-note {
  margin: 12px 0 0;
  color: rgb(35 31 32 / 38%);
  font-size: 9px;
  line-height: 1.65;
}

.invite-progress-card,
.settlement-card { padding: 18px; }
.invite-progress-card > div:first-child,
.settlement-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.invite-progress-card p,
.settlement-card p {
  margin: 0;
  color: rgb(35 31 32 / 48%);
  font-size: 10px;
  line-height: 1.7;
}
.invite-progress-card strong,
.settlement-card strong {
  color: #425985;
  font: 18px Georgia, serif;
}

.withdrawal-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgb(35 40 50 / 9%);
}

.withdrawal-action span {
  color: rgb(35 40 50 / 52%);
  font-size: 11px;
}

.withdrawal-action button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #202125;
  font-size: 12px;
  font-weight: 700;
}

.withdrawal-action button:disabled {
  opacity: .36;
}

.settlement-card .withdrawal-adjustment {
  color: #a44f49;
}

.withdrawal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid rgb(35 40 50 / 9%);
}

.withdrawal-form__heading,
.withdrawal-form > p,
.withdrawal-form > button {
  grid-column: 1 / -1;
}

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

.withdrawal-form__heading span,
.withdrawal-form label {
  color: rgb(35 40 50 / 52%);
  font-size: 10px;
}

.withdrawal-form label {
  display: grid;
  gap: 6px;
}

.withdrawal-form label:first-of-type {
  grid-column: 1 / -1;
}

.withdrawal-form input,
.withdrawal-form select {
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid rgb(35 40 50 / 12%);
  border-radius: 11px;
  color: #202125;
  background: rgb(255 255 255 / 72%);
}

.withdrawal-form > button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #202125;
  font-size: 12px;
  font-weight: 700;
}

.withdrawal-form > button:disabled { opacity: .36; }

@media (max-width: 520px) {
  .withdrawal-form { grid-template-columns: 1fr; }
  .withdrawal-form > * { grid-column: 1 / -1; }
}
.invite-progress-track {
  height: 7px;
  margin: 14px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(35 31 32 / 7%);
}
.invite-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--rose));
}
.settlement-card {
  background: linear-gradient(145deg, rgb(255 255 255 / 68%), rgb(221 178 93 / 11%));
}
.settlement-card p { margin-top: 12px; }

.invite-records { padding: 20px; }
.invite-records ul { margin: 14px 0 0; padding: 0; list-style: none; }
.invite-records li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid rgb(35 31 32 / 8%);
}
.invite-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #425985;
  background: rgb(125 159 226 / 16%);
  font-size: 11px;
}
.invite-records li div { min-width: 0; }
.invite-records li strong,
.invite-records li small { display: block; }
.invite-records li strong { font-size: 11px; }
.invite-records li small { margin-top: 4px; color: rgb(35 31 32 / 40%); font-size: 9px; }
.invite-records li em { color: #4f7345; font-size: 10px; font-style: normal; }
.invite-empty { margin-top: 14px; padding: 20px 10px; color: rgb(35 31 32 / 42%); font-size: 10px; line-height: 1.7; text-align: center; }

.report-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 24px 0 0;
}

.report-footer {
  padding: 24px 0 calc(30px + env(safe-area-inset-bottom));
  color: rgb(35 31 32 / 38%);
  font-size: 10px;
  text-align: center;
}

/* Mobile H5 readability: secondary labels must remain legible in WeChat WebView. */
.stage-badge,
.eyebrow,
.microcopy,
.page-footer,
.gender-card > span:last-child,
.agreement-back,
.test-progress__meta,
.auto-advance-hint,
.report-portrait figcaption,
.unlock-card__meta,
.unlock-status,
.unlock-benefits span,
.commercial-demo-note,
.commercial-error,
.personalized-analysis__heading p,
.personalized-analysis__note,
.report-card__heading p,
.character-card p,
.hidden-personality__hero p,
.hidden-personality__hero > span,
.hidden-personality__copy,
.score-row__meta,
.score-row__meta i,
.score-problem-card > p,
.score-problem-card div,
.score-problem-card > span,
.growth-disclaimer,
.share-invitation__copy > p:last-child,
.share-reward-rate span,
.share-guide p,
.distribution-paused,
.earning-overview span,
.earning-overview small,
.invite-link-card__heading p,
.invite-section-heading p,
.invite-link-card__heading > span,
.invite-link-value,
.invite-link-actions button,
.invite-action-message,
.invite-compliance-note,
.invite-progress-card p,
.settlement-card p,
.withdrawal-form__heading span,
.withdrawal-form label,
.invite-records li strong,
.invite-records li small,
.invite-records li em,
.invite-empty,
.report-footer {
  font-size: 12px;
}

.privacy-policy-card p,
.privacy-policy-card li,
.privacy-environment-note,
.privacy-error,
.character-card__copy small,
.personalized-analysis__content,
.growth-list p,
.share-center-link,
.share-button,
.share-guide strong {
  font-size: 13px;
}

@keyframes breathe {
  50% { opacity: 0.35; }
}

/* AI relationship report reuses the existing report shell without score UI. */
.relationship-report-shell {
  min-height: 100dvh;
}

.relationship-generating,
.relationship-analysis-error {
  display: grid;
  min-height: calc(100dvh - 170px);
  align-content: center;
  justify-items: center;
  padding: 44px 20px 72px;
  text-align: center;
}

.relationship-generating h1,
.relationship-analysis-error h1,
.relationship-result-hero h1 {
  margin: 10px 0 14px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 600;
  letter-spacing: -.045em;
}

.relationship-generating h1,
.relationship-analysis-error h1 {
  font-size: clamp(30px, 9vw, 44px);
}

.relationship-generating > p:not(.eyebrow),
.relationship-analysis-error > p:not(.eyebrow) {
  max-width: 420px;
  margin: 0;
  color: rgb(35 31 32 / 62%);
  font-size: 14px;
  line-height: 1.9;
}

.relationship-generating__orb {
  position: relative;
  width: 92px;
  height: 92px;
  margin-bottom: 28px;
}

.relationship-generating__orb i {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(139 73 94 / 32%);
  border-radius: 50%;
  animation: relationship-orbit 2.4s ease-in-out infinite;
}

.relationship-generating__orb i:nth-child(2) {
  inset: 13px;
  animation-delay: -.8s;
}

.relationship-generating__orb i:nth-child(3) {
  inset: 29px;
  background: #9f6077;
  animation-delay: -1.6s;
}

.relationship-generating__progress {
  width: min(320px, 82vw);
  height: 5px;
  margin: 34px 0 13px;
  overflow: hidden;
  border-radius: 99px;
  background: rgb(35 31 32 / 8%);
}

.relationship-generating__progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: #9f6077;
  animation: relationship-progress 1.8s ease-in-out infinite;
}

.relationship-generating small {
  color: rgb(35 31 32 / 42%);
  font-size: 11px;
}

.relationship-analysis-error > span {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #9f6077;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 34px;
}

.relationship-analysis-error .primary-button {
  width: auto;
  min-width: 180px;
  margin-top: 28px;
}

.relationship-analysis-error .quiet-link {
  margin-top: 18px;
}

.relationship-result-hero {
  padding: 54px 0 34px;
  text-align: center;
}

.relationship-result-hero h1 {
  font-size: clamp(44px, 13vw, 68px);
}

.relationship-secondary-trait {
  display: inline-flex;
  padding: 7px 13px;
  border: 1px solid rgb(139 73 94 / 18%);
  border-radius: 99px;
  color: #784458;
  background: #f3e3e9;
  font-size: 12px;
}

.relationship-result-hero blockquote {
  max-width: 460px;
  margin: 34px auto 20px;
  color: #6f3e51;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(20px, 5.8vw, 28px);
  line-height: 1.65;
}

.relationship-result-hero > p:last-child {
  max-width: 480px;
  margin: 0 auto;
  color: rgb(35 31 32 / 68%);
  font-size: 14px;
  line-height: 2;
  text-align: left;
}

.relationship-result-grid {
  display: grid;
  gap: 14px;
}

.relationship-result-card {
  padding: 24px;
  border: 1px solid rgb(139 73 94 / 12%);
  border-radius: 22px;
  background: rgb(255 255 255 / 55%);
  box-shadow: 0 14px 38px rgb(76 63 54 / 6%);
}

.relationship-result-card > span {
  color: #a56c81;
  font-size: 11px;
  letter-spacing: .12em;
}

.relationship-result-card h2 {
  margin: 9px 0 12px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 23px;
  font-weight: 600;
}

.relationship-result-card p {
  margin: 0;
  color: rgb(35 31 32 / 68%);
  font-size: 14px;
  line-height: 2;
  white-space: pre-line;
}

@keyframes relationship-orbit {
  50% { transform: scale(.84); opacity: .45; }
}

@keyframes relationship-progress {
  from { transform: translateX(-110%); }
  to { transform: translateX(250%); }
}

/* Multi-test catalog: compact mobile mosaic driven by the published project list. */
.home-shell--catalog {
  max-width: 560px;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding-right: 16px;
  padding-left: 16px;
}

.home-shell--catalog .topbar {
  padding-top: 16px;
  padding-bottom: 0;
}

.home-shell--catalog .brand {
  gap: 12px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .05em;
}

.home-shell--catalog .brand__mark {
  width: 34px;
  height: 34px;
  font-size: 16px;
}

.home-shell--catalog .stage-badge {
  padding: 8px 13px;
  background: rgb(255 255 255 / 26%);
  font-size: 12px;
  letter-spacing: .04em;
}

.home-shell--catalog .assessment-catalog {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 24px 0 12px;
  border-top: 0;
}

.home-shell--catalog .assessment-catalog__heading {
  display: block;
  margin-bottom: 16px;
}

.home-shell--catalog .assessment-catalog__heading h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(29px, 8vw, 38px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.055em;
}

.home-shell--catalog .assessment-catalog__heading > p {
  max-width: none;
  margin: 6px 0 0;
  color: rgb(35 31 32 / 54%);
  font-size: 12px;
  line-height: 1.5;
}

.home-shell--catalog .assessment-grid,
.home-shell--catalog .assessment-grid--count-2 {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 0;
  gap: 9px;
}

.home-shell--catalog .assessment-grid--count-1 {
  grid-template-columns: minmax(0, 1fr);
}

.home-shell--catalog .assessment-grid--count-2 {
  grid-template-rows: minmax(0, 1fr);
}

.home-shell--catalog .assessment-grid--count-3,
.home-shell--catalog .assessment-grid--count-4 {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.home-shell--catalog .assessment-grid--count-5,
.home-shell--catalog .assessment-grid--count-6 {
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.home-shell--catalog .assessment-grid--count-7,
.home-shell--catalog .assessment-grid--count-8 {
  grid-template-rows: repeat(4, minmax(0, 1fr));
}

.home-shell--catalog .assessment-grid--count-9 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-shell--catalog .assessment-grid--count-9 .assessment-card__link,
.home-shell--catalog .assessment-grid--count-9 .assessment-card--featured .assessment-card__link {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px;
  padding: 10px 9px 8px;
}

.home-shell--catalog .assessment-grid--count-9 .assessment-card__cover,
.home-shell--catalog .assessment-grid--count-9 .assessment-card--featured .assessment-card__cover {
  width: 34px;
  height: 34px;
}

.home-shell--catalog .assessment-grid--count-9 .assessment-card__cover > span,
.home-shell--catalog .assessment-grid--count-9 .assessment-card--featured .assessment-card__cover > span {
  font-size: 19px;
}

.home-shell--catalog .assessment-grid--count-9 .assessment-card h3,
.home-shell--catalog .assessment-grid--count-9 .assessment-card--featured h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-shell--catalog .assessment-grid--count-9 .assessment-card__body > p {
  display: none;
}

.home-shell--catalog .assessment-grid--count-9 .assessment-card__footer {
  font-size: 9px;
}

.home-shell--catalog .assessment-card {
  --tile-background: #f5dcda;
  --tile-border: #e9c7c4;
  --tile-symbol: #e4867f;
  min-height: 0;
  border-color: var(--tile-border);
  border-radius: 18px;
  background: var(--tile-background);
  box-shadow: 0 12px 34px rgb(76 63 54 / 5%);
}

.home-shell--catalog .assessment-card--rose,
.home-shell--catalog .assessment-card--peach {
  --tile-background: #f7dfdc;
  --tile-border: #ebc9c5;
  --tile-symbol: #e88e87;
}

.home-shell--catalog .assessment-card--wine {
  --tile-background: #eee1e7;
  --tile-border: #ddcbd4;
  --tile-symbol: #b88b9f;
}

.home-shell--catalog .assessment-card--amber {
  --tile-background: #f3e6d1;
  --tile-border: #e4d1b0;
  --tile-symbol: #d6a55c;
}

.home-shell--catalog .assessment-card--sage,
.home-shell--catalog .assessment-card--green {
  --tile-background: #e5e9df;
  --tile-border: #cfd7c4;
  --tile-symbol: #95aa83;
}

.home-shell--catalog .assessment-card--blue {
  --tile-background: #e1e7ef;
  --tile-border: #cbd5e2;
  --tile-symbol: #87a0c5;
}

.home-shell--catalog .assessment-card--gold {
  --tile-background: #f2e7d6;
  --tile-border: #dfceb0;
  --tile-symbol: #d3a466;
}

.home-shell--catalog .assessment-card--violet {
  --tile-background: #e8e4f1;
  --tile-border: #d4cde4;
  --tile-symbol: #9d90ca;
}

.home-shell--catalog .assessment-card:hover {
  box-shadow: 0 16px 42px rgb(76 63 54 / 9%);
  transform: translateY(-2px);
}

.home-shell--catalog .assessment-card:active {
  transform: scale(.985);
}

.home-shell--catalog .assessment-card__link {
  display: grid;
  min-height: 0;
  height: 100%;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 7px 9px;
  padding: 12px 12px 10px;
}

.home-shell--catalog .assessment-card__cover {
  align-self: start;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--tile-symbol);
}

.home-shell--catalog .assessment-card__cover::after {
  content: none;
}

.home-shell--catalog .assessment-card__cover img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.home-shell--catalog .assessment-card__cover > span {
  z-index: auto;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
}

.home-shell--catalog .assessment-card__body {
  min-width: 0;
  min-height: 0;
  align-self: center;
  padding: 0;
}

.home-shell--catalog .assessment-card h3 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.38;
  letter-spacing: -.035em;
}

.home-shell--catalog .assessment-card__body > p {
  display: -webkit-box;
  margin: 3px 0 0;
  overflow: hidden;
  color: rgb(35 31 32 / 56%);
  font-size: 10px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.home-shell--catalog .assessment-card__footer {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  color: rgb(35 31 32 / 66%);
  font-size: 10px;
}

.home-shell--catalog .assessment-card__footer strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

.home-shell--catalog .assessment-card__arrow {
  color: var(--ink);
  font-size: 19px;
  font-weight: 300;
  line-height: 1;
}

.home-shell--catalog .assessment-card--featured {
  --tile-background: #eaa098;
  --tile-border: #e39087;
  --tile-symbol: #de7e76;
}

.home-shell--catalog .assessment-card--featured .assessment-card__link {
  min-height: 0;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 7px 9px;
  padding: 12px 12px 10px;
}

.home-shell--catalog .assessment-card--featured .assessment-card__cover {
  width: 44px;
  height: 44px;
  grid-row: auto;
  align-self: start;
  border: 1px solid rgb(255 255 255 / 34%);
  background: transparent;
}

.home-shell--catalog .assessment-card--featured .assessment-card__cover > span {
  font-size: 24px;
}

.home-shell--catalog .assessment-card--featured .assessment-card__body {
  align-self: center;
  padding-top: 0;
}

.home-shell--catalog .assessment-card--featured h3 {
  font-size: 15px;
}

.home-shell--catalog .assessment-card--featured .assessment-card__body > p {
  margin-top: 3px;
  font-size: 10px;
  -webkit-line-clamp: 1;
}

.home-shell--catalog .assessment-card--featured .assessment-card__footer {
  grid-column: 1 / -1;
}

.home-shell--catalog .assessment-catalog-state {
  min-height: 220px;
  background: rgb(255 255 255 / 22%);
}

@media (max-width: 719px) {
  .home-shell--catalog .page-footer {
    padding: 8px 0 10px;
    font-size: 9px;
  }
}

@media (max-height: 680px) and (max-width: 719px) {
  .home-shell--catalog .topbar {
    padding-top: 10px;
  }

  .home-shell--catalog .assessment-catalog {
    padding-top: 12px;
  }

  .home-shell--catalog .assessment-catalog__heading {
    margin-bottom: 9px;
  }

  .home-shell--catalog .assessment-catalog__heading h1 {
    font-size: 25px;
  }

  .home-shell--catalog .assessment-card__body > p {
    display: none;
  }

  .home-shell--catalog .assessment-card__link,
  .home-shell--catalog .assessment-card--featured .assessment-card__link {
    padding: 8px 10px 7px;
  }
}

@media (min-width: 720px) {
  body { background: #eae4da; }
  .home-shell,
  .test-shell,
  .report-shell,
  .invite-shell {
    margin: 24px auto;
    border-radius: 32px;
    background: var(--paper);
    box-shadow: 0 22px 80px rgb(70 59 49 / 14%);
  }

  .home-shell--catalog {
    height: calc(100dvh - 48px);
  }
}

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