:root {
  --ink: #17212b;
  --muted: #657386;
  --line: #d8dfd8;
  --paper: #f7f4ea;
  --panel: #fffdf7;
  --green: #1f7a5c;
  --teal: #1f6f7a;
  --sdp-teal: #17E6E1;
  --sdp-ink: #171A1A;
  --sdp-warm-white: #F7F7F3;
  --sdp-surface: #eef1ef;
  --sdp-teal-soft: rgba(23, 230, 225, 0.16);
  --sdp-border: rgba(23, 26, 26, 0.16);
  --sdp-muted: #657386;
  --red: #b65444;
  --gold: #b1842b;
  --shadow: 0 18px 54px rgba(33, 38, 43, 0.12);
}

.path-archetype-page { width: min(100% - 32px, 720px); margin: 0 auto; padding: 32px 0 72px; }
.path-archetype-page header { margin: 28px 0; }
.path-archetype-progress { color: var(--accent, #087f8c); font-weight: 700; }
.path-archetype-reveal { margin: 18px 0; padding: clamp(22px, 5vw, 36px); color: var(--sdp-ink); background: linear-gradient(135deg, rgba(23, 230, 225, 0.20), rgba(255, 253, 247, 0.92)); border: 1px solid rgba(23, 230, 225, 0.44); border-radius: 18px; box-shadow: 0 18px 44px rgba(23, 110, 113, 0.13); }
.path-archetype-result { margin: 0; font-size: clamp(42px, 10vw, 68px); font-weight: 800; letter-spacing: -0.06em; line-height: 1.05; }
.path-archetype-tagline { margin: 12px 0 0; color: var(--muted, #607080); font-size: 16px; }
.path-archetype-adjustments { margin: 24px 0; }
.path-archetype-adjustments summary { color: var(--teal, #1f6f7a); cursor: pointer; font-weight: 700; }
.path-archetype-records { display: grid; gap: 14px; margin: 24px 0; }
.path-archetype-record { border: 1px solid rgba(25, 42, 45, .16); border-radius: 16px; padding: 16px; }
.path-archetype-record p { margin: 12px 0; color: var(--muted, #607080); }
.path-archetype-record div { display: grid; gap: 10px; margin-top: 14px; }
.path-archetype-record label { cursor: pointer; line-height: 1.45; }

/* C3-2 My Data */
.account-my-page {
  background:
    radial-gradient(circle at 88% 4%, rgba(23, 230, 225, 0.12), transparent 28rem),
    var(--sdp-warm-white);
}

.account-my-brand {
  color: inherit;
  text-decoration: none;
}

.account-my-home-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--sdp-teal);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.path-archetype-page .path-archetype-back-link {
  display: inline-flex;
  margin-top: 0;
}

.account-my-main {
  width: min(100%, 1080px);
  padding: clamp(24px, 4vw, 54px);
}

.account-session-gate {
  max-width: 620px;
  margin: 12vh auto 0;
  padding: 36px;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--sdp-border);
  border-radius: 12px;
  box-shadow: 0 12px 38px rgba(23, 26, 26, 0.08);
}

.account-session-gate h1 {
  margin-bottom: 22px;
  font-size: clamp(22px, 4vw, 34px);
}

.account-loading-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  background: var(--sdp-teal);
  border-radius: 999px;
  animation: account-pulse 1.2s ease-in-out infinite;
}

@keyframes account-pulse {
  50% { opacity: 0.35; transform: scale(0.82); }
}

.account-my-brand-label {
  margin: 0;
  color: var(--sdp-muted);
  font-size: 13px;
  font-weight: 800;
}

.account-my-identity-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--sdp-muted);
  font-size: 14px;
  font-weight: 700;
}

.account-my-identity-status::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--green);
  border-radius: 50%;
}

/* C5-2B upgrades the existing identity header into one Hero canvas. The right
 * stage renders the catalog-projected role master; C5-2C alone owns share
 * behavior. */
.account-my-hero {
  position: relative;
  min-height: 300px;
  margin: 0 0 28px;
  overflow: hidden;
  background: linear-gradient(118deg, rgba(255, 255, 255, .98) 0%, rgba(247, 253, 252, .96) 53%, rgba(222, 247, 243, .94) 100%);
  border-radius: 22px;
  box-shadow: 0 14px 42px rgba(23, 26, 26, .07);
}

.account-my-hero-visual-stage {
  position: absolute;
  inset: 0 0 0 52%;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 62% 42%, rgba(23, 230, 225, .34), transparent 0 18%),
    radial-gradient(circle at 73% 66%, rgba(9, 128, 122, .13), transparent 0 27%),
    linear-gradient(136deg, transparent 6%, rgba(255, 255, 255, .28) 43%, transparent 44%);
  opacity: .8;
}

.account-my-hero-visual-stage::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, rgba(247, 253, 252, .96) 0%, rgba(247, 253, 252, .42) 30%, rgba(247, 253, 252, 0) 72%);
}

.account-my-hero-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 50%;
}

.account-my-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .52fr);
  grid-template-rows: auto 1fr auto;
  min-height: 300px;
  padding: clamp(24px, 4vw, 42px);
}

.account-my-hero-topline {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-my-hero-share {
  padding: 0;
  color: var(--sdp-teal-dark, #087c78);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  background: transparent;
  border: 0;
  opacity: .68;
}

.account-my-hero-share:disabled { cursor: default; }

.account-my-hero-copy {
  align-self: center;
  min-width: 0;
  padding: 18px 0 12px;
}

.account-my-hero h1 {
  margin: 0;
  color: var(--sdp-ink);
  font-size: clamp(34px, 5vw, 54px);
  overflow-wrap: anywhere;
}

.account-my-hero h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 8px;
  color: var(--sdp-ink);
  font-size: clamp(23px, 3vw, 34px);
}

.account-my-hero-description {
  max-width: 34rem;
  margin: 0;
  color: var(--sdp-muted);
  font-size: 15px;
  line-height: 1.65;
}

.account-my-hero-path-action {
  display: inline-flex;
  margin-top: 16px;
  color: var(--sdp-teal-dark, #087c78);
  font-weight: 800;
  text-decoration: none;
}

.account-my-hero-path-action:hover { text-decoration: underline; }

.account-my-hero-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: end;
  justify-content: end;
  gap: 10px;
}

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

.account-my-path-state {
  margin: 0;
  color: var(--sdp-teal-dark, #087c78);
  font-size: 14px;
  font-weight: 800;
}

.account-my-path-code {
  align-self: center;
  padding: 4px 8px;
  color: var(--sdp-muted);
  font-size: 12px;
  letter-spacing: .1em;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--sdp-border);
  border-radius: 999px;
}

.path-archetype-visual-stage {
  aspect-ratio: 3 / 2;
  min-height: 210px;
  max-height: 480px;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid rgba(25, 42, 45, .1);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(230, 250, 248, .94), rgba(255, 253, 247, .92));
}

.path-archetype-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 50%;
}

.account-my-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-card {
  min-width: 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--sdp-border);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(23, 26, 26, 0.055);
}

.account-card:hover {
  border-color: rgba(23, 230, 225, 0.65);
}

.account-future-identity-card {
  background: rgba(238, 241, 239, 0.62);
}

.account-future-identity-card:hover {
  border-color: var(--sdp-border);
}

.account-future-identity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.account-future-identity-list li {
  min-width: 0;
  padding: 11px 12px;
  overflow-wrap: anywhere;
  color: var(--sdp-muted);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(23, 26, 26, 0.09);
  border-radius: 8px;
}

.account-coming-soon {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--sdp-muted);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(23, 26, 26, 0.1);
  border-radius: 999px;
}

.account-profile-card,
#recordsSection {
  grid-column: 1 / -1;
}

.account-card-heading,
.account-dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.account-card-heading h2,
.account-dialog-heading h2 {
  margin: 0;
  color: var(--sdp-ink);
  font-size: 21px;
}

.account-card-kicker {
  margin: 0 0 6px;
  color: var(--sdp-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.account-section-state,
.account-card-description {
  margin: 18px 0 0;
  color: var(--sdp-muted);
  font-size: 14px;
  line-height: 1.7;
}

.account-profile-name-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sdp-border);
}

.account-profile-name-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--sdp-ink);
  font-size: clamp(22px, 3vw, 30px);
}

.account-profile-mark {
  display: grid;
  flex: 0 0 48px;
  height: 48px;
  place-items: center;
  color: var(--sdp-ink);
  font-size: 11px;
  font-weight: 900;
  background: var(--sdp-teal);
  border-radius: 50%;
}

.account-detail-list {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
}

.account-detail-list > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(23, 26, 26, 0.08);
}

.account-detail-list > div:last-child {
  border-bottom: 0;
}

.account-detail-list dt {
  color: var(--sdp-muted);
  font-size: 13px;
}

.account-detail-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--sdp-ink);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.account-verified {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 7px;
}

.account-verified > span:first-child {
  width: 8px;
  height: 8px;
  background: var(--sdp-teal);
  border-radius: 50%;
}

.account-primary-button,
.account-secondary-button,
.account-inline-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--sdp-ink);
  font-weight: 800;
  text-decoration: none;
  border-radius: 8px;
}

/* The shared display declaration has author origin and would otherwise
   override the browser's user-agent [hidden] rule. */
.account-primary-button[hidden],
.account-secondary-button[hidden],
.account-inline-retry[hidden] {
  display: none;
}

.account-primary-button {
  background: var(--sdp-teal);
}

.account-secondary-button,
.account-inline-retry {
  background: transparent;
  border: 1px solid var(--sdp-border);
}

.account-inline-retry {
  min-height: 36px;
  margin-top: 14px;
  padding: 0 13px;
  font-size: 13px;
}

.account-primary-button:focus-visible,
.account-secondary-button:focus-visible,
.account-inline-retry:focus-visible,
.account-text-button:focus-visible,
.account-dialog-close:focus-visible,
.account-link-list a:focus-visible,
.account-link-row a:focus-visible {
  outline: 3px solid rgba(23, 230, 225, 0.5);
  outline-offset: 3px;
}

.account-primary-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.account-text-button {
  padding: 4px 0;
  color: #0b817f;
  font-size: 13px;
  font-weight: 800;
  background: transparent;
}

.account-card-action {
  margin-top: 20px;
}

.account-count-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--sdp-ink);
  font-size: 12px;
  font-weight: 800;
  background: var(--sdp-teal-soft);
  border-radius: 999px;
}

.account-record-list {
  display: grid;
  gap: 0;
  margin: 18px 0 8px;
  padding: 0;
  list-style: none;
}

.account-record-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding: 17px 0;
  border-top: 1px solid rgba(23, 26, 26, 0.09);
}

.account-record-year {
  color: #0b817f;
  font-size: 15px;
  font-weight: 900;
}

.account-record-list strong {
  color: var(--sdp-ink);
  font-size: 14px;
}

.account-record-list p {
  margin: 6px 0 0;
  color: var(--sdp-muted);
  font-size: 14px;
  line-height: 1.65;
}

.account-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--sdp-border);
  color: var(--sdp-muted);
  font-size: 13px;
}

.account-link-row a,
.account-link-list a {
  color: #0b817f;
  font-weight: 800;
  text-decoration: none;
}

.account-link-row a + a {
  margin-left: 14px;
}

.account-link-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.account-about-product {
  margin: 20px 0 0;
  color: var(--sdp-ink);
  font-size: 17px;
  font-weight: 900;
}

.account-build-list dd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.account-success-message {
  margin: 16px 0 0;
  color: #0b6c5c;
  font-size: 13px;
  font-weight: 700;
}

.account-profile-dialog {
  width: min(92vw, 560px);
  max-height: min(88vh, 760px);
  padding: 0;
  overflow: auto;
  color: var(--sdp-ink);
  background: var(--sdp-warm-white);
  border: 1px solid var(--sdp-border);
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(23, 26, 26, 0.28);
}

.account-profile-dialog::backdrop {
  background: rgba(23, 26, 26, 0.52);
  backdrop-filter: blur(3px);
}

.account-profile-dialog form {
  padding: 26px;
}

.subject-change-dialog-content {
  padding: 26px;
}

.subject-change-dialog-content h2 {
  margin: 5px 0 10px;
  color: var(--sdp-ink);
  font-size: 21px;
}

.subject-change-description {
  margin: 0;
  color: var(--sdp-muted);
  line-height: 1.65;
}

.subject-change-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.subject-change-comparison[hidden] {
  display: none;
}

.subject-change-comparison section {
  padding: 14px;
  border: 1px solid var(--sdp-border);
  border-radius: 10px;
  background: var(--sdp-surface);
}

.subject-change-comparison h3 {
  margin: 0 0 10px;
  color: var(--sdp-ink);
  font-size: 14px;
}

.subject-change-comparison dl,
.subject-change-comparison dd {
  margin: 0;
}

.subject-change-comparison dl {
  display: grid;
  gap: 9px;
}

.subject-change-comparison dt {
  color: var(--sdp-muted);
  font-size: 12px;
}

.subject-change-comparison dd {
  margin-top: 2px;
  color: var(--sdp-ink);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.is-loading::before {
  content: "";
  display: inline-block;
  width: 0.82em;
  height: 0.82em;
  margin-right: 0.48em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.1em;
  animation: sdp-button-spin 0.7s linear infinite;
}

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

.account-dialog-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--sdp-muted);
  font-size: 24px;
  line-height: 1;
  background: var(--sdp-surface);
  border-radius: 50%;
}

.account-profile-dialog .field-label {
  display: block;
  margin: 20px 0 7px;
  color: var(--sdp-ink);
  font-size: 13px;
  font-weight: 800;
}

.account-profile-dialog input,
.account-profile-dialog select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--sdp-ink);
  background: white;
  border: 1px solid var(--sdp-border);
  border-radius: 8px;
}

.account-profile-dialog input:focus,
.account-profile-dialog select:focus {
  border-color: #0b817f;
  outline: 3px solid rgba(23, 230, 225, 0.18);
}

.account-field-hint,
.account-dialog-status {
  margin: 7px 0 0;
  color: var(--sdp-muted);
  font-size: 12px;
  line-height: 1.55;
}

.account-dialog-status {
  min-height: 20px;
  margin-top: 16px;
}

.account-error-message {
  color: var(--red);
}

.account-dialog-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .account-my-shell {
    display: block;
  }

  .account-my-sidebar {
    position: static;
    display: flex;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
  }

  .account-my-sidebar .nav-list,
  .account-my-home-link {
    display: none;
  }

  .account-my-sidebar .brand {
    margin: 0;
  }
}

@media (max-width: 680px) {
  .account-my-main {
    padding: 24px 16px 42px;
  }

  .account-my-hero { min-height: 0; }

  .account-my-hero-visual-stage { inset: 0 0 0 20%; opacity: .56; }
  .account-my-hero-visual-stage::after { background: linear-gradient(90deg, rgba(247, 253, 252, .97) 0%, rgba(247, 253, 252, .64) 53%, rgba(247, 253, 252, .08) 100%); }

  .account-my-hero-content {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px 20px;
  }

  .account-my-hero-copy { padding: 28px 0; }

  .account-my-hero-actions {
    justify-content: start;
    flex-wrap: wrap;
  }

  .account-my-grid {
    grid-template-columns: 1fr;
  }

  .account-profile-card,
  #recordsSection {
    grid-column: auto;
  }

  .account-card {
    padding: 20px;
  }

  .account-future-identity-list {
    grid-template-columns: 1fr;
  }

  .account-detail-list > div {
    grid-template-columns: minmax(88px, 0.42fr) minmax(0, 1fr);
  }

  .account-record-list li {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .account-link-row {
    align-items: start;
    flex-direction: column;
  }

  .account-dialog-actions > button {
    flex: 1;
  }

  .subject-change-comparison {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  width: 100%;
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--sdp-warm-white);
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  font-size: 16px;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  color: var(--sdp-warm-white);
  background: var(--sdp-ink);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
}

.brand-logo-frame {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  padding: 9px;
  background: var(--sdp-warm-white);
  border-radius: 8px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 3px;
  color: rgba(247, 247, 243, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

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

.nav-list a {
  padding: 12px 13px;
  color: #d7e5df;
  text-decoration: none;
  border-radius: 8px;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--sdp-warm-white);
  background: rgba(23, 230, 225, 0.16);
}

.compliance-note {
  position: absolute;
  right: 22px;
  bottom: 24px;
  left: 22px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.compliance-note p {
  margin: 8px 0 0;
  color: #c7d5cf;
  font-size: 13px;
  line-height: 1.6;
}

main {
  width: min(100%, 1240px);
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0 auto;
  padding: 24px;
}

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

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  min-height: 480px;
  overflow: hidden;
  background: var(--sdp-warm-white);
  border: 1px solid var(--sdp-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 26, 26, 0.08);
}

.hero-copy {
  z-index: 1;
  align-self: center;
  padding: 48px clamp(32px, 4vw, 52px);
  color: var(--sdp-ink);
}

.hero-mobile-brand {
  display: none;
}

.eyebrow,
.section-heading p {
  margin: 0 0 10px;
  color: var(--sdp-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-bottom: 14px;
  padding: 0 0 0 9px;
  color: var(--sdp-ink);
  border-left: 2px solid var(--sdp-teal);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 590px;
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-title-main,
.hero-title-sub {
  display: block;
}

.hero-title-main {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.18;
}

.hero-title-sub {
  margin-top: 10px;
  color: var(--sdp-teal);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 800;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 0;
  color: #364147;
  font-size: 16px;
  line-height: 1.7;
}

.hero-value-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 660px;
  margin-top: 26px;
}

.hero-value-points div {
  min-width: 0;
  padding-left: 12px;
  border-left: 2px solid var(--sdp-teal);
}

.hero-value-points strong {
  display: block;
  color: var(--sdp-ink);
  font-size: 14px;
  font-weight: 800;
}

.hero-value-points span {
  display: block;
  margin-top: 5px;
  color: var(--sdp-muted);
  font-size: 13px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  border-radius: 8px;
}

.hero-primary-action {
  color: var(--sdp-ink);
  background: var(--sdp-teal);
}

.hero-secondary-action {
  color: var(--sdp-ink);
  background: transparent;
  border: 1px solid var(--sdp-border);
}

.hero-actions a:focus-visible {
  outline: 2px solid var(--sdp-teal);
  outline-offset: 3px;
}

.hero-fineprint {
  max-width: 590px;
  margin: 16px 0 0;
  color: var(--sdp-muted);
  font-size: 13px;
  line-height: 1.7;
}

.hero-login-entry {
  max-width: 590px;
  margin: 14px 0 0;
  font-size: 13px;
}

.hero-login-entry a {
  color: var(--sdp-teal);
  text-decoration: none;
}

.hero-login-entry a:hover {
  text-decoration: underline;
}

/* Sidebar account entry — desktop persistent access */
.sidebar-account-entry {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--sdp-border);
  font-size: 13px;
}

.sidebar-account-entry a {
  color: var(--sdp-teal);
  text-decoration: none;
}

.sidebar-account-entry a:hover {
  text-decoration: underline;
}

/* Mobile account bar — sticky, always reachable */
.mobile-account-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 10px 16px;
  background: var(--sdp-warm-white);
  border-top: 1px solid var(--sdp-border);
  text-align: center;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

.mobile-account-bar a {
  color: var(--sdp-teal);
  text-decoration: none;
  font-size: 14px;
}

.hero-production-note {
  margin: 10px 0 0;
  color: var(--sdp-muted);
  font-size: 12px;
  line-height: 1.5;
}

.hero-report-flow {
  display: grid;
  align-items: center;
  min-width: 0;
  padding: 40px;
  color: var(--sdp-ink);
  background: var(--sdp-surface);
  border-left: 1px solid var(--sdp-border);
}

.hero-report-flow-content {
  display: grid;
  gap: 22px;
  max-width: 360px;
}

.hero-report-flow-title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.hero-flow-step span {
  display: block;
  color: var(--sdp-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

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

.hero-flow-step {
  position: relative;
  padding: 0 0 16px 16px;
  border-left: 2px solid var(--sdp-teal);
}

.hero-flow-step:last-child {
  padding-bottom: 0;
}

.hero-flow-list p {
  margin: 0;
  margin-top: 4px;
  color: #4d575d;
  font-size: 13px;
  line-height: 1.6;
}

.workspace-grid,
.two-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
  min-width: 0;
}

.mvp-flow {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.panel {
  min-width: 0;
  max-width: 100%;
  padding: 24px;
  background: rgba(255, 253, 247, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(38, 44, 42, 0.07);
}

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

.section-heading h2 {
  margin: 0;
  font-size: 24px;
}

.profile-form,
.record-form {
  display: grid;
  gap: 14px;
}

.profile-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.birthplace-profile-field {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--sdp-border);
  border-radius: 8px;
}

.birthplace-profile-field legend {
  padding: 0 4px;
  color: #173f33;
  font-weight: 900;
}

.birthplace-specific-section {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--sdp-border);
}

.optional-profile-details {
  grid-column: 1 / -1;
  padding: 12px 14px;
  background: #fbfcf7;
  border: 1px solid var(--sdp-border);
  border-radius: 8px;
}

.optional-profile-details summary {
  color: #173f33;
  font-weight: 900;
  cursor: pointer;
}

.optional-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.draft-resume-banner {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  padding: 14px;
  color: #173f33;
  background: var(--sdp-surface);
  border: 1px solid var(--sdp-border);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(38, 44, 42, 0.12);
}

.draft-resume-banner[hidden] {
  display: none;
}

.draft-resume-banner strong {
  display: block;
  margin-bottom: 4px;
}

.draft-resume-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.draft-resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.draft-actions button,
.draft-resume-actions button,
.timeline-actions button {
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
  min-height: 36px;
  padding: 0 12px;
  color: var(--sdp-teal);
  font-size: 13px;
  font-weight: 800;
  background: var(--sdp-surface);
  border: 1px solid var(--sdp-border);
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(23, 230, 225, 0.12);
}

.draft-actions button:hover,
.draft-resume-actions button:hover,
.timeline-actions button:hover {
  background: var(--sdp-surface);
}

.timeline-actions button[data-action="edit-record"] {
  color: var(--sdp-teal);
}

.timeline-actions button[data-action="edit-record"]:hover {
  color: var(--sdp-teal);
  background: var(--sdp-teal-soft);
  border-color: var(--sdp-teal);
}

.timeline-actions button[data-action="delete-record"] {
  color: var(--sdp-muted);
}

.timeline-actions button[data-action="delete-record"]:hover {
  color: var(--red);
  background: var(--sdp-surface);
  border-color: var(--red);
}

.focus-field {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.focus-field legend {
  margin-bottom: 10px;
  color: #334154;
  font-size: 13px;
  font-weight: 700;
}

.focus-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.focus-chip-group label {
  display: inline-flex;
  gap: 0;
  align-items: center;
  color: #284136;
  font-size: 13px;
  font-weight: 800;
}

.focus-chip-group input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.focus-chip-group span {
  padding: 10px 13px;
  background: var(--sdp-surface);
  border: 1px solid var(--sdp-border);
  border-radius: 999px;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.focus-chip-group input:checked + span {
  color: #10251f;
  background: var(--sdp-teal-soft);
  border-color: var(--sdp-teal);
}

.focus-chip-group input:focus-visible + span {
  box-shadow: 0 0 0 3px var(--sdp-teal-soft);
}

label {
  display: grid;
  gap: 8px;
  color: #334154;
  font-size: 13px;
  font-weight: 700;
}

.form-hint {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  background: var(--sdp-surface);
  border: 1px solid var(--sdp-border);
  border-radius: 8px;
}

.form-hint.is-validation-error {
  color: #9f1d1d;
  background: #fff2f2;
  border-color: #e6a3a3;
  font-weight: 700;
}

.privacy-consent-label.is-validation-error {
  color: #9f1d1d;
  outline: 2px solid #e6a3a3;
  outline-offset: 4px;
}

.calendar-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  color: #526375;
  font-size: 13px;
  line-height: 1.6;
  background: #fff8e5;
  border: 1px solid #e9d59b;
  border-radius: 8px;
}

.date-range-note,
.section-note,
.education-status-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  color: #526375;
  font-size: 13px;
  line-height: 1.6;
  background: #edf7f6;
  border: 1px solid #cbe0dc;
  border-radius: 8px;
}

.lunar-picker[hidden],
.solar-date-picker[hidden],
label[hidden] {
  display: none;
}

.lunar-picker,
.solar-date-picker {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: var(--sdp-surface);
  border: 1px solid var(--sdp-border);
  border-radius: 8px;
}

.birth-year-input-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(116px, 0.7fr);
  gap: 8px;
}

input,
select,
textarea {
  min-width: 0;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--sdp-border);
  border-radius: 8px;
  outline: none;
}

input,
select {
  height: 44px;
}

textarea {
  min-height: 112px;
  padding-top: 12px;
  line-height: 1.6;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sdp-teal);
  box-shadow: 0 0 0 3px var(--sdp-teal-soft);
}

.profile-form button,
.record-form button,
.pricing-grid button,
.ghost-button {
  height: 44px;
  padding: 0 16px;
  color: #fff;
  font-weight: 800;
  background: var(--sdp-ink);
  border-radius: 8px;
}

.profile-form button {
  grid-column: 1 / -1;
}

.save-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--sdp-border);
  border-radius: 8px;
}

.save-panel span,
.contact-copy span {
  display: block;
  margin-bottom: 6px;
  color: var(--sdp-teal);
  font-size: 12px;
  font-weight: 800;
}

.save-panel p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.api-status {
  margin-top: 8px !important;
  color: var(--sdp-teal) !important;
  font-weight: 800;
}

.identity-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.identity-strip div,
.insight-grid article,
.pricing-grid article {
  padding: 16px;
  background: #f3f7ed;
  border: 1px solid #dce6d0;
  border-radius: 8px;
}

.identity-strip span,
.insight-grid span,
.pricing-grid span,
.share-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.identity-strip strong {
  color: var(--teal);
  font-size: 32px;
}

.chart-block {
  margin: 18px 0;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e1e5dc;
  border-radius: 8px;
}

.chart-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.compact-title {
  margin-bottom: 12px;
}

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

.mini-chart {
  min-width: 0;
  padding: 14px;
  background: #f9fbf6;
  border: 1px solid #e0e8d8;
  border-radius: 8px;
}

.wide-chart {
  grid-column: 1 / -1;
}

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

.distribution-row {
  display: grid;
  grid-template-columns: 76px minmax(80px, 1fr) 42px;
  gap: 10px;
  align-items: center;
  color: #334154;
  font-size: 13px;
}

.distribution-track {
  height: 10px;
  overflow: hidden;
  background: #e4eadf;
  border-radius: 999px;
}

.distribution-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--green));
  border-radius: 999px;
}

.year-tag-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.year-tag-card {
  padding: 10px;
  background: color-mix(in srgb, #b65444 var(--intensity), #f2f8ee);
  border-radius: 8px;
}

.year-tag-card strong,
.year-tag-card span,
.year-tag-card small {
  display: block;
}

.year-tag-card strong {
  margin-bottom: 5px;
  color: #10251f;
}

.year-tag-card span,
.year-tag-card small {
  color: #334154;
  font-size: 12px;
}

.year-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.year-cloud span {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  padding: 8px 12px;
  color: #fff;
  font-weight: 900;
  background: var(--teal);
  border-radius: 999px;
}

.year-cloud small {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.82;
}

.cohort-lock,
.empty-state {
  margin-top: 18px;
  padding: 18px;
  background: #fff8e5;
  border: 1px solid #e9d59b;
  border-radius: 8px;
}

.cohort-lock[hidden],
.cohort-data[hidden] {
  display: none;
}

.cohort-lock strong,
.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: #14251f;
}

.cohort-lock p,
.empty-state p {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.empty-state {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--sdp-surface);
  border: 1px solid var(--sdp-border);
  border-left: 3px solid var(--sdp-teal);
}

.empty-state strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.empty-state p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.55;
}

.cohort-lock a {
  color: var(--green);
  font-weight: 800;
}

.bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 10px;
  height: 190px;
}

.bar {
  position: relative;
  min-height: 18px;
  background: linear-gradient(180deg, #1f6f7a, #1f7a5c);
  border-radius: 8px 8px 0 0;
}

.bar::after {
  position: absolute;
  right: 0;
  bottom: -24px;
  left: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  content: attr(data-label);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.insight-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--red);
  font-size: 20px;
}

.insight-grid p,
.pricing-grid p,
.microcopy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.record-form {
  grid-template-columns: 100px 130px minmax(180px, 1fr) 78px;
  gap: 10px;
}

.record-form > * {
  min-width: 0;
}

.record-form input:focus-visible,
.record-form select:focus-visible,
.record-form button:focus-visible {
  border-color: var(--sdp-teal);
  box-shadow: 0 0 0 3px var(--sdp-teal-soft);
  outline: none;
}

.education-profile {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: var(--sdp-surface);
  border: 1px solid var(--sdp-border);
  border-radius: 8px;
}

.subsection-heading {
  grid-column: 1 / -1;
}

.subsection-heading span {
  display: block;
  margin-bottom: 6px;
  color: var(--sdp-teal);
  font-size: 12px;
  font-weight: 900;
}

.subsection-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.year-input-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 8px;
}

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

#timeline {
  scroll-margin-top: 24px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 78px 92px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: start;
  padding: 14px 14px 14px 22px;
  background: #fff;
  border: 1px solid var(--sdp-border);
  border-radius: 8px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 20px;
  width: 6px;
  height: 6px;
  background: var(--sdp-teal);
  border-radius: 999px;
}

.timeline-item em {
  align-self: center;
  padding: 4px 10px;
  color: var(--sdp-ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  background: var(--sdp-teal-soft);
  border: 1px solid var(--sdp-teal);
  border-radius: 999px;
}

.timeline-item strong {
  align-self: center;
  color: var(--sdp-ink);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.timeline-item span {
  align-self: center;
  padding: 4px 10px;
  color: var(--sdp-ink);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  background: var(--sdp-teal-soft);
  border: 1px solid var(--sdp-teal);
  border-radius: 999px;
}

.timeline-item p {
  align-self: center;
  margin-bottom: 0;
  color: var(--ink);
  line-height: 1.6;
}

.timeline-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.generate-feedback-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  background: var(--sdp-surface);
  border: 1px solid var(--sdp-border);
  border-radius: 8px;
}

.generate-feedback-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--sdp-ink);
  font-size: 15px;
  font-weight: 900;
}

.generate-feedback-panel p {
  margin: 0;
  color: var(--sdp-muted);
  font-size: 14px;
  line-height: 1.65;
}

.generate-feedback-panel button {
  min-width: 220px;
  height: 44px;
  padding: 0 16px;
  color: #fff;
  font-weight: 800;
  background: var(--sdp-ink);
  border-radius: 8px;
}

.generate-feedback-panel button:disabled {
  color: var(--sdp-muted);
  cursor: not-allowed;
  background: var(--sdp-surface);
  box-shadow: inset 0 0 0 1px var(--sdp-border);
}

.generate-feedback-panel button.is-loading:disabled {
  color: #fff;
  background: var(--sdp-ink);
  cursor: wait;
  box-shadow: none;
}

.generate-feedback-panel button.is-loading::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -1px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sdp-button-spinner 0.75s linear infinite;
}

@keyframes sdp-button-spinner {
  to { transform: rotate(360deg); }
}

.instant-report-panel {
  margin-top: 0;
}

.instant-report-panel[hidden],
.share-panel[hidden],
.pricing-panel[hidden] {
  display: none;
}

.report-empty {
  padding: 20px;
  background: #fff8e5;
  border: 1px solid #e9d59b;
  border-radius: 8px;
}

.report-empty strong {
  display: block;
  margin-bottom: 8px;
}

.report-empty p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.report-body[hidden],
.report-empty[hidden] {
  display: none;
}

.report-body {
  display: grid;
  gap: 14px;
}

.report-hero-card {
  max-width: 100%;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(199, 223, 120, 0.28), transparent 30%),
    linear-gradient(135deg, #14251f, #1f6f7a 54%, #1f7a5c);
  border-radius: 8px;
}

.report-hero-card span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 9px;
  color: #d9eec7;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.report-hero-card h1,
.report-hero-card h3 {
  margin-bottom: 10px;
  font-size: 26px;
  line-height: 1.25;
}

.report-hero-card p {
  max-width: 760px;
  color: #eef6f0;
  font-size: 18px;
  line-height: 1.75;
}

.result-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.75fr) minmax(240px, 0.9fr);
  gap: 12px;
  margin-top: 16px;
}

.path-medal,
.report-reference-panel,
.report-bazi-snapshot {
  min-width: 0;
  padding: 14px;
  color: #eef6f0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.path-medal small,
.report-reference-panel small,
.report-bazi-snapshot small {
  display: block;
  margin-bottom: 8px;
  color: #d9eec7;
  font-size: 12px;
  font-weight: 900;
}

.path-medal strong {
  display: block;
  color: #c7df78;
  font-size: 28px;
  line-height: 1.15;
}

.path-medal p,
.report-reference-panel p,
.report-bazi-snapshot p {
  margin: 8px 0 0;
  color: #eef6f0;
  font-size: 14px;
  line-height: 1.55;
}

.top-keywords {
  margin-top: 12px;
}

.report-reference-counts,
.bazi-snapshot-grid {
  display: grid;
  gap: 8px;
}

.report-reference-counts b,
.bazi-snapshot-grid b {
  display: block;
  padding: 9px 10px;
  color: #10251f;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.report-kpis div {
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.report-kpis small,
.report-kpis strong {
  display: block;
}

.report-kpis small {
  color: #d7e5df;
  font-size: 12px;
  font-weight: 700;
}

.report-kpis strong {
  margin-top: 6px;
  color: #c7df78;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

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

.report-grid article {
  padding: 16px;
  background: #f7faf2;
  border: 1px solid #dce6d0;
  border-radius: 8px;
}

.report-grid article:nth-child(2) {
  background: #fffdf7;
}

.report-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.report-grid p {
  margin-bottom: 0;
  color: #334154;
  line-height: 1.65;
}

.report-source-note {
  margin: 6px 0 12px;
  padding: 0;
  color: rgba(38, 68, 56, 0.72);
  background: transparent;
  border: 0;
  font-size: 13px;
  line-height: 1.55;
}

.report-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-module {
  padding: 18px;
  background: #f7faf2;
  border: 1px solid #dce6d0;
  border-radius: 8px;
}

.report-module:nth-child(2n) {
  background: #fffdf7;
}

.report-module-wide {
  grid-column: 1 / -1;
}

.report-module span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.report-module h4 {
  margin-bottom: 10px;
  color: #182923;
  font-size: 18px;
  line-height: 1.35;
}

.report-module p,
.report-module li {
  color: #334154;
  line-height: 1.65;
}

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

.report-note {
  color: var(--muted) !important;
  font-size: 14px;
}

.report-stat-list,
.report-update-list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding-left: 18px;
}

.report-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.report-keywords b {
  padding: 8px 10px;
  color: #173126;
  font-size: 13px;
  background: #e5f0df;
  border: 1px solid #d0dfc4;
  border-radius: 999px;
}

.report-paragraph {
  display: block;
  margin-bottom: 10px;
  word-break: break-word;
}

.report-paragraph + .report-paragraph {
  margin-top: 10px;
}

/* SDP-0077: shared warm-white report reading surface. */
.report-body {
  gap: 24px;
}

.report-hero-card {
  padding: 28px;
  color: var(--sdp-ink);
  background: var(--sdp-warm-white);
  border: 1px solid var(--sdp-border);
  border-top: 3px solid var(--sdp-teal);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 26, 26, 0.06);
}

.report-hero-card span {
  margin-bottom: 10px;
  padding: 4px 8px;
  color: var(--sdp-ink);
  letter-spacing: 0;
  background: var(--sdp-teal-soft);
  border: 1px solid rgba(23, 230, 225, 0.4);
  border-radius: 4px;
}

.report-hero-card h1,
.report-hero-card h3 {
  margin-bottom: 8px;
  color: var(--sdp-ink);
  font-size: 32px;
  line-height: 1.2;
}

.report-hero-card p,
.report-hero-card .report-source-note {
  color: var(--sdp-muted);
  font-size: 16px;
  line-height: 1.7;
}

.report-brand-lockup {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}

.report-brand-lockup img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.report-brand-copy {
  display: grid;
  gap: 2px;
}

.report-brand-copy strong {
  color: var(--sdp-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
}

.report-brand-copy span {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--sdp-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  background: transparent;
  border: 0;
}

.path-medal,
.report-reference-panel,
.report-bazi-snapshot {
  color: var(--sdp-ink);
  background: var(--sdp-surface);
  border: 1px solid var(--sdp-border);
  border-radius: 6px;
}

.path-medal small,
.report-reference-panel small,
.report-bazi-snapshot small,
.path-medal p,
.report-reference-panel p,
.report-bazi-snapshot p {
  color: var(--sdp-muted);
}

.path-medal strong {
  color: var(--sdp-ink);
  font-size: 24px;
}

.report-reference-counts b,
.bazi-snapshot-grid b {
  color: var(--sdp-ink);
  background: var(--sdp-warm-white);
  border-left: 2px solid var(--sdp-teal);
  border-radius: 3px;
}

.report-module-grid {
  gap: 16px;
}

.report-module {
  min-width: 0;
  padding: 20px;
  background: var(--sdp-surface);
  border: 1px solid var(--sdp-border);
}

.report-module:nth-child(2n) {
  background: var(--sdp-warm-white);
}

.report-module span {
  color: var(--sdp-muted);
}

.report-module h4,
.report-module p,
.report-module li {
  color: var(--sdp-ink);
}

.report-life-path-module {
  padding: 0;
  background: transparent;
  border: 0;
}

.report-life-path-module > span,
.report-life-path-module > h4 {
  margin-left: 2px;
}

.life-path-report-document {
  display: grid;
  gap: 0;
  min-width: 0;
  margin-top: 14px;
  background: var(--sdp-warm-white);
  border: 1px solid var(--sdp-border);
  border-radius: 8px;
  overflow: hidden;
}

.life-path-report-section {
  min-width: 0;
  padding: 28px;
  border-top: 1px solid var(--sdp-border);
}

.life-path-report-section:first-child {
  border-top: 0;
}

.life-path-section-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.life-path-section-marker {
  flex: 0 0 3px;
  width: 3px;
  min-height: 28px;
  margin-top: 2px;
  background: var(--sdp-teal);
  border-radius: 2px;
}

.life-path-section-header h4 {
  margin: 0;
  color: var(--sdp-ink);
  font-size: 23px;
  line-height: 1.35;
}

.life-path-report-section h5 {
  margin: 22px 0 10px;
  color: var(--sdp-ink);
  font-size: 17px;
  line-height: 1.5;
}

.life-path-report-section .report-paragraph,
.life-path-report-section li {
  color: var(--sdp-ink);
  font-size: 16px;
  line-height: 1.8;
}

.life-path-report-section .report-paragraph {
  margin: 0 0 14px;
}

.life-path-report-section ul {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding-left: 20px;
}

.life-path-table-scroll {
  width: 100%;
  margin: 16px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.life-path-v2-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: var(--sdp-ink);
  font-size: 14px;
  line-height: 1.6;
}

.life-path-v2-table th,
.life-path-v2-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--sdp-border);
}

.life-path-v2-table th {
  font-weight: 800;
  background: var(--sdp-surface);
}

.life-path-v2-table tr:nth-child(even) td {
  background: rgba(23, 230, 225, 0.035);
}

.life-path-v2-table a {
  color: var(--sdp-ink);
  text-decoration-color: var(--sdp-teal);
  text-underline-offset: 3px;
}

.path-clue-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.path-clue-card {
  min-width: 0;
  padding: 14px;
  background: #f5f8ef;
  border: 1px solid #dce6d0;
  border-radius: 8px;
}

.path-clue-card small,
.path-clue-card strong,
.path-clue-card p {
  display: block;
}

.path-clue-card small {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.path-clue-card strong {
  margin-top: 6px;
  color: #16251f;
  font-size: 17px;
  line-height: 1.25;
}

.path-clue-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.bazi-basic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.bazi-basic-grid div {
  padding: 10px;
  background: #ffffff;
  border: 1px solid #dce6d0;
  border-radius: 8px;
}

.bazi-basic-grid small,
.bazi-basic-grid strong {
  display: block;
}

.bazi-basic-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bazi-basic-grid strong {
  margin-top: 4px;
  color: #173126;
  font-size: 18px;
}

.bazi-pillar-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.bazi-pillar {
  min-width: 0;
  overflow: hidden;
  text-align: center;
  background: var(--sdp-warm-white);
  border: 1px solid var(--sdp-border);
  border-radius: 6px;
}

.bazi-pillar > small {
  display: block;
  padding: 8px 4px;
  color: var(--sdp-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  border-bottom: 1px solid var(--sdp-border);
}

.bazi-pillar-heaven,
.bazi-pillar-earth {
  display: grid;
  min-height: 68px;
  place-items: center;
}

.bazi-pillar-heaven {
  border-bottom: 1px solid var(--sdp-border);
}

.report-module .bazi-pillar-character {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1;
}

.bazi-pillar-character b,
.bazi-pillar-character i {
  font: inherit;
}

.bazi-pillar-character i,
.bazi-data-list i {
  font-size: 0.48em;
  font-style: normal;
}

.report-module .bazi-element--wood { color: #2e9d49; }
.report-module .bazi-element--fire { color: #d74739; }
.report-module .bazi-element--earth { color: #9a6a3b; }
.report-module .bazi-element--metal { color: #b58a21; }
.report-module .bazi-element--water { color: #347de1; }

.bazi-structured-details {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.bazi-structured-details section {
  min-width: 0;
}

.bazi-structured-details h3 {
  margin: 0 0 10px;
  color: var(--sdp-ink);
  font-size: 16px;
  line-height: 1.4;
}

.bazi-data-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin: 0;
}

.bazi-data-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  background: var(--sdp-surface);
  border: 1px solid var(--sdp-border);
  border-radius: 6px;
}

.bazi-data-list dt,
.bazi-data-list dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.bazi-data-list dt { overflow-wrap: anywhere; }
.bazi-data-list dd { color: var(--sdp-ink); font-weight: 800; }

.bazi-element-bars {
  display: grid;
  gap: 8px;
  margin: 8px 0 14px;
}

.bazi-element-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 24px;
  gap: 8px;
  align-items: center;
  color: #324136;
  font-size: 13px;
}

.bazi-element-row i {
  display: block;
  height: 9px;
  overflow: hidden;
  background: #e5eadf;
  border-radius: 999px;
}

.bazi-element-row b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), #c7df78);
  border-radius: 999px;
}

.bazi-element-row em {
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.bazi-ten-god-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.bazi-ten-god-chips b {
  padding: 7px 10px;
  color: #173f33;
  font-size: 13px;
  background: #eef5e6;
  border: 1px solid #dce6d0;
  border-radius: 999px;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--sdp-teal);
  font-weight: 800;
  text-decoration: none;
  background: var(--sdp-teal-soft);
  border-radius: 8px;
}

.share-privacy-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 14px;
}

.share-privacy-controls .checkbox-label {
  width: auto;
  min-width: 0;
  flex: 0 1 auto;
}

.share-privacy-controls select {
  width: auto;
  min-width: 150px;
  max-width: 100%;
}

/* C5-2D: a shared, extensible locale menu instead of fixed language links. */
.ui-locale-switcher {
  position: relative;
  display: inline-block;
  color: var(--sdp-muted);
  font-size: 13px;
}

.ui-locale-switcher[data-global-mounted="true"] {
  position: fixed;
  z-index: 40;
  top: 14px;
  right: 18px;
  padding: 7px 10px;
  background: rgb(255 255 255 / 90%);
  border: 1px solid rgb(219 230 229 / 92%);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgb(20 42 52 / 10%);
  backdrop-filter: blur(8px);
}

.ui-locale-switcher summary {
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.ui-locale-switcher summary::-webkit-details-marker {
  display: none;
}

.ui-locale-switcher summary::after {
  content: "▾";
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
}

.ui-locale-switcher-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  min-width: 148px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--sdp-border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgb(20 42 52 / 14%);
}

.ui-locale-switcher-option {
  width: 100%;
  padding: 8px 10px;
  color: var(--sdp-ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.ui-locale-switcher-option:hover:not(:disabled),
.ui-locale-switcher-option:focus-visible:not(:disabled) {
  background: var(--sdp-teal-soft);
}

.ui-locale-switcher-option:disabled {
  color: var(--sdp-muted);
  cursor: default;
}

.share-card-canvas {
  display: block;
  width: min(100%, 540px);
  height: auto;
  max-width: 100%;
  margin: 18px auto 0;
}

.account-report-copy {
  min-width: 0;
}

.account-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.account-report-share-unavailable {
  color: var(--sdp-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.account-report-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  font-weight: 800;
}

.account-report-picker select {
  min-width: min(100%, 260px);
  max-width: 100%;
}

.share-card-preview {
  width: min(100%, 420px);
  margin: 0 auto;
}

.share-card {
  display: flex;
  aspect-ratio: 3 / 4;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 7.2%, 54px);
  color: var(--sdp-warm-white);
  background:
    linear-gradient(90deg, rgba(23, 230, 225, 0.28) 0 2px, transparent 2px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 42%),
    var(--sdp-ink);
  background-size: 42px 42px, auto, auto;
  border: 1px solid rgba(23, 230, 225, 0.34);
  border-radius: 8px;
  box-shadow: 0 24px 54px rgba(23, 26, 26, 0.2);
}

.share-card-topline,
.share-card-footer {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.share-card-topline {
  align-items: flex-start;
}

.share-card-topline img {
  width: clamp(58px, 18%, 96px);
  height: auto;
  padding: 8px;
  object-fit: contain;
  background: var(--sdp-warm-white);
  border-radius: 8px;
}

.share-card-topline div {
  min-width: 0;
  text-align: right;
}

.share-card-topline span {
  display: block;
  color: var(--sdp-warm-white);
  font-size: clamp(14px, 3.2vw, 18px);
  font-weight: 900;
  line-height: 1.35;
}

.share-card-topline small,
.share-keyword-section small {
  display: block;
  color: var(--sdp-teal);
  font-size: clamp(11px, 2.4vw, 13px);
  font-weight: 900;
  letter-spacing: 0;
}

.share-card-main {
  display: grid;
  gap: clamp(12px, 3.6%, 22px);
}

.share-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  max-width: 100%;
  column-gap: 0.14em;
  row-gap: 4px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(36px, 8.8vw, 62px);
  font-weight: 950;
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: keep-all;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.share-card-owner,
.share-card-title-suffix,
.share-card-title-name {
  display: inline-block;
  max-width: 100%;
  color: #ffffff;
  unicode-bidi: plaintext;
}

.share-card-title-name {
  white-space: nowrap;
  word-break: keep-all;
}

.share-card-owner {
  overflow-wrap: anywhere;
}

.share-card-owner-long {
  font-size: clamp(30px, 7.4vw, 50px);
}

.share-card-owner-very-long {
  font-size: clamp(25px, 6.2vw, 40px);
}

.share-card .share-birth-meta,
.share-card p {
  margin: 0;
  color: rgba(247, 247, 243, 0.88);
  font-size: clamp(15px, 3.4vw, 21px);
  font-weight: 800;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.share-keyword-section {
  display: grid;
  gap: 10px;
}

.share-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-tags b {
  min-width: 0;
  padding: 8px 10px;
  color: var(--sdp-ink);
  font-size: clamp(12px, 2.7vw, 15px);
  line-height: 1.2;
  background: var(--sdp-teal);
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.share-qr-block {
  flex: 0 0 clamp(96px, 29%, 138px);
  padding: 4px;
  background: #ffffff;
  border-radius: 6px;
}

.share-qr-block img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: crisp-edges;
}

.share-scan-copy {
  min-width: 0;
  text-align: right;
}

.share-scan-copy p {
  color: var(--sdp-warm-white);
  font-size: clamp(13px, 3vw, 17px);
  line-height: 1.45;
}

.share-scan-copy b {
  display: block;
  margin-top: 6px;
  color: var(--sdp-teal);
  font-size: clamp(12px, 2.6vw, 15px);
  overflow-wrap: anywhere;
}

.ghost-button {
  width: 100%;
  margin-top: 14px;
  color: var(--sdp-teal);
  background: var(--sdp-teal-soft);
}

.ghost-button.compact {
  width: auto;
  min-width: 112px;
  margin-top: 0;
}

.pricing-panel {
  margin-top: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pricing-grid .premium-offer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
  background: #fff8e5;
  border-color: #e9d59b;
}

.premium-offer span,
.premium-offer h3,
.premium-offer p {
  grid-column: 1;
}

.premium-offer strong,
.premium-offer button {
  grid-column: 2;
}

.premium-offer strong {
  margin-top: 0;
  text-align: right;
}

.pricing-grid h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.pricing-grid strong {
  display: block;
  margin-top: 14px;
  color: var(--red);
  font-size: 24px;
}

.pricing-grid button {
  width: 100%;
  margin-top: 16px;
}

.pricing-grid .featured {
  color: #fff;
  background: #14251f;
  border-color: #14251f;
}

.pricing-grid .featured p,
.pricing-grid .featured span {
  color: #d6e1db;
}

.pricing-grid .featured strong {
  color: var(--sdp-teal);
}

.premium-report-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--sdp-border);
  border-radius: 8px;
}

.premium-report-panel[hidden],
.premium-afterpay[hidden] {
  display: none;
}

.premium-notice {
  padding: 16px;
  background: var(--sdp-surface);
  border: 1px solid var(--sdp-border);
  border-radius: 8px;
}

.premium-notice span,
.premium-afterpay span {
  display: block;
  margin-bottom: 7px;
  color: var(--sdp-teal);
  font-size: 12px;
  font-weight: 900;
}

.premium-notice h3,
.premium-afterpay h3 {
  margin-bottom: 8px;
}

.premium-notice p,
.premium-afterpay p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.premium-report-form,
.premium-afterpay {
  display: grid;
  gap: 14px;
}

.premium-report-form button,
.premium-actions button {
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  font-weight: 800;
  background: var(--sdp-ink);
  border-radius: 8px;
}

.premium-afterpay {
  padding: 16px;
  background: #fff8e5;
  border: 1px solid #e9d59b;
  border-radius: 8px;
}

.premium-afterpay b {
  color: var(--red);
}

.premium-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(280px, 1fr);
  gap: 18px;
  margin-top: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid #dce6d0;
  border-radius: 8px;
}

.contact-panel[hidden] {
  display: none;
}

.contact-copy h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.contact-form button {
  grid-column: 1 / -1;
  height: 44px;
  color: var(--sdp-ink);
  font-weight: 800;
  background: var(--sdp-teal);
  border-radius: 8px;
}

.checkbox-label {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  line-height: 1.55;
}

.checkbox-label input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0;
}

.privacy-consent-label {
  align-items: flex-start;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.privacy-consent-label a,
.site-footer a,
.policy-document a {
  color: var(--sdp-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-request-panel {
  margin-top: 18px;
  max-width: 680px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 28px;
  color: var(--muted);
  font-size: 14px;
}

.policy-page {
  background: #f7f4ea;
}

.policy-main {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.policy-back-link,
.policy-kicker {
  color: var(--muted);
  font-size: 14px;
}

.policy-document {
  margin-top: 18px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--sdp-border);
  border-radius: 8px;
}

.policy-document h1 {
  margin: 8px 0 12px;
  font-size: 32px;
}

.policy-document h2 {
  margin-top: 28px;
  font-size: 20px;
}

.policy-document p,
.policy-document li {
  color: var(--ink);
  line-height: 1.75;
}

.policy-meta,
.policy-publication-note {
  color: var(--muted) !important;
  font-size: 14px;
}

.policy-document [aria-disabled="true"] {
  color: var(--muted);
  text-decoration: none;
}

.validation-log {
  min-height: 22px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.system-panel {
  margin-top: 18px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.system-grid article {
  padding: 16px;
  background: #f3f7ed;
  border: 1px solid #dce6d0;
  border-radius: 8px;
}

.system-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.system-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 18px;
}

.system-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 1160px) {
  .record-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px 24px;
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .compliance-note {
    display: none;
  }

  .hero-panel,
  .workspace-grid,
  .two-column,
  .pricing-grid,
  .contact-panel,
  .generate-feedback-panel,
  .system-grid,
  .report-grid,
  .report-module-grid {
    grid-template-columns: 1fr;
  }

  .generate-feedback-panel button {
    width: 100%;
    min-width: 0;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 0 14px 24px;
  }

  .policy-main {
    width: min(100% - 28px, 760px);
    padding-top: 16px;
  }

  .policy-document {
    padding: 20px;
  }

  .pricing-grid .premium-offer {
    grid-template-columns: 1fr;
  }

  .premium-offer span,
  .premium-offer h3,
  .premium-offer p,
  .premium-offer strong,
  .premium-offer button {
    grid-column: 1;
  }

  .premium-offer strong {
    text-align: left;
  }

  .hero-report-flow {
    min-height: 0;
    padding: 30px clamp(24px, 4vw, 40px);
    border-top: 1px solid var(--sdp-border);
    border-left: 0;
  }

  .hero-title-main {
    font-size: 40px;
  }
}

@media (max-width: 680px) {
  *,
  *::before,
  *::after {
    max-width: 100%;
  }

  body,
  .app-shell,
  main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    touch-action: pan-y;
    background: var(--sdp-warm-white);
    background-image: none;
  }

  main {
    padding: 14px;
  }

  .sidebar {
    display: none;
  }

  .hero-panel {
    min-height: 0;
  }

  .hero-copy {
    padding: 24px 20px 22px;
  }

  .hero-mobile-brand {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px;
  }

  .hero-mobile-brand .brand-logo-frame {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    padding: 8px;
  }

  .hero-mobile-brand strong,
  .hero-mobile-brand span:not(.brand-logo-frame) {
    display: block;
  }

  .hero-mobile-brand strong {
    color: var(--sdp-ink);
    font-size: 16px;
    line-height: 1.3;
  }

  .hero-mobile-brand span:not(.brand-logo-frame) {
    margin-top: 2px;
    color: var(--sdp-muted);
    font-size: 12px;
  }

  .hero-title-main {
    font-size: 32px;
  }

  .hero-text {
    font-size: 15px;
    line-height: 1.7;
  }

  .hero-report-flow {
    padding: 24px 20px;
    background: var(--sdp-surface);
  }

  .hero-report-flow-content {
    gap: 18px;
  }

  .hero-value-points {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .profile-form,
  .identity-strip,
  .insight-grid,
  .record-form,
  .save-panel,
  .chart-grid,
  .education-profile,
  .optional-profile-grid,
  .result-overview-grid,
  .path-clue-cards,
  .year-input-group,
  .lunar-picker,
  .solar-date-picker {
    grid-template-columns: 1fr;
  }

  .birth-year-input-group {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 0.72fr);
  }

  .report-hero-card,
  .report-module,
  .report-reference-panel,
  .report-bazi-snapshot,
  .share-card,
  .panel,
  .hero-panel,
  .workspace-grid,
  .mvp-flow,
  .report-body,
  .report-module-grid,
  .result-overview-grid,
  .path-clue-cards {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .report-reference-counts b,
  .bazi-snapshot-grid b,
  .report-keywords b,
  .bazi-ten-god-chips b,
  .share-card span,
  .share-card h3,
  .share-card p {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  img,
  canvas,
  svg,
  iframe {
    max-width: 100%;
  }

  .calendar-note,
  .date-range-note,
  .form-hint,
  .save-panel,
  .validation-log:empty {
    display: none;
  }

  .report-hero-card {
    padding: 18px;
  }

  .path-medal strong {
    font-size: 24px;
  }

  .bazi-pillar-matrix { gap: 5px; }

  .bazi-pillar > small { padding: 7px 2px; font-size: 11px; }

  .bazi-pillar-heaven,
  .bazi-pillar-earth { min-height: 56px; }

  .wide-chart {
    grid-column: auto;
  }

  .year-tag-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-kpis {
    grid-template-columns: 1fr;
  }

  .report-actions .ghost-button,
  .report-actions .ghost-link {
    width: 100%;
  }

  .ghost-button.compact {
    width: 100%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .draft-resume-banner {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    top: auto;
    grid-template-columns: 1fr;
    margin: 0;
  }

  .draft-resume-actions {
    justify-content: stretch;
  }

  .draft-resume-actions button {
    flex: 1 1 100%;
  }

  .year-quick-select {
    display: none;
  }
}
