: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;
}

* {
  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;
}

.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;
}

.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: 13px;
  line-height: 1.8;
}

.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: 13px;
  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%);
}

.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;
}

.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: 28px;
}

.commercial-heading {
  padding: 0 4px 4px;
}

.commercial-heading .eyebrow {
  margin-bottom: 9px;
  color: var(--rose);
}

.commercial-heading h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 27px;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.commercial-heading > p:last-child {
  margin: 10px 0 0;
  color: rgb(35 31 32 / 56%);
  font-size: 12px;
  line-height: 1.7;
}

.unlock-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.unlock-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgb(35 31 32 / 11%);
  border-radius: 24px;
  background: rgb(255 255 255 / 62%);
  box-shadow: 0 12px 32px rgb(76 63 54 / 7%);
}

.unlock-card::after {
  content: "";
  position: absolute;
  top: -34px;
  right: -34px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: rgb(231 126 117 / 11%);
  pointer-events: none;
}

.unlock-card:nth-child(2)::after { background: rgb(125 159 226 / 13%); }
.unlock-card:nth-child(3)::after { background: rgb(221 178 93 / 15%); }

.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__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgb(35 31 32 / 38%);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.unlock-status {
  padding: 5px 9px;
  border-radius: 999px;
  color: rgb(35 31 32 / 52%);
  background: rgb(35 31 32 / 6%);
  font-family: inherit;
  font-size: 9px;
}

.unlock-card--unlocked .unlock-status {
  color: #5e7752;
  background: rgb(152 175 135 / 19%);
}

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

.unlock-card > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgb(35 31 32 / 56%);
  font-size: 12px;
  line-height: 1.65;
}

.unlock-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.unlock-benefits span {
  padding: 6px 9px;
  border: 1px solid rgb(35 31 32 / 8%);
  border-radius: 999px;
  color: rgb(35 31 32 / 58%);
  background: rgb(255 255 255 / 48%);
  font-size: 9px;
}

.unlock-card__footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.unlock-card__footer > strong {
  min-width: 48px;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.unlock-card__footer > strong small {
  margin-right: 2px;
  font-family: inherit;
  font-size: 12px;
}

.unlock-button {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  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;
  gap: 9px;
  margin: 0 4px 10px;
  color: rgb(35 31 32 / 52%);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.unlocked-section__label span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #718d61;
  font-family: Georgia, serif;
  font-size: 9px;
}

.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__source {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #557449;
  background: rgb(111 141 99 / 13%);
  font-size: 8px;
}

.personalized-analysis__pulse {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: #7d9fe2;
  box-shadow: 0 0 0 0 rgb(125 159 226 / 35%);
  animation: ai-pulse 1.4s ease-out infinite;
}

.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;
}

@keyframes ai-pulse {
  70% { box-shadow: 0 0 0 8px rgb(125 159 226 / 0%); }
  100% { box-shadow: 0 0 0 0 rgb(125 159 226 / 0%); }
}

.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: 44px 1fr;
  gap: 14px;
  margin-top: 18px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgb(125 159 226 / 24%);
  border-radius: 24px;
  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: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #566e9f;
  font-family: Georgia, serif;
  font-size: 20px;
}

.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: 20px;
  letter-spacing: -0.03em;
}

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

.share-reward-rate {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 15px;
  border: 1px solid rgb(86 110 159 / 16%);
  border-radius: 16px;
  background: rgb(255 255 255 / 48%);
}

.share-reward-rate strong {
  color: #425985;
  font: 26px Georgia, serif;
}

.share-reward-rate span {
  color: rgb(35 31 32 / 46%);
  font-size: 10px;
}

.share-center-link {
  grid-column: 1 / -1;
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid #566e9f;
  border-radius: 999px;
  color: #425985;
  font-size: 12px;
  font-weight: 700;
}

.share-button {
  grid-column: 1 / -1;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #566e9f;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}

.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;
}

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

@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%);
  }
}

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