:root {
  color-scheme: light;
  --ink: #1e211f;
  --muted: #626860;
  --line: #d9ddd2;
  --paper: #f3f6f1;
  --paper-strong: #fffdf7;
  --wood: #3e8f69;
  --fire: #d95541;
  --earth: #c39a3e;
  --metal: #66727c;
  --water: #276f86;
  --night: #151714;
  --shadow: 0 22px 70px rgba(28, 33, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(110deg, rgba(243, 246, 241, 0.94), rgba(243, 246, 241, 0.74)),
    linear-gradient(180deg, #f3f6f1 0%, #e6ece7 100%);
  content: "";
}

#elemental-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  background: rgba(247, 248, 244, 0.9);
  border-bottom: 1px solid rgba(30, 33, 31, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--night);
  border-radius: 8px;
  color: var(--paper-strong);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover {
  color: var(--ink);
}

.account-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(42px, 1fr));
  overflow: hidden;
  border: 1px solid rgba(30, 33, 31, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.7);
}

.language-option {
  min-height: 34px;
  border: 0;
  border-right: 1px solid rgba(30, 33, 31, 0.1);
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 860;
}

.language-option:last-child {
  border-right: 0;
}

.language-option.is-active {
  background: var(--night);
  color: var(--paper-strong);
}

#account-email-label {
  max-width: 220px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-button {
  min-height: 38px;
  padding: 0 14px;
}

#profile-button {
  color: var(--water);
}

.hero {
  position: relative;
  display: grid;
  min-height: 88vh;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(24px, 7vw, 88px);
  align-items: center;
  padding: clamp(112px, 14vh, 150px) clamp(18px, 5vw, 72px) 64px;
  overflow: hidden;
}

.hero-copy {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--water);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 7.25rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.16rem, 2vw, 1.45rem);
}

.hero-subtitle {
  max-width: 680px;
  color: #41463f;
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 760;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.button-primary {
  background: var(--night);
  color: var(--paper-strong);
}

.button-primary .report-en,
.button-primary .report-zh,
.price-pill .report-en,
.price-pill .report-zh {
  color: inherit;
  font-weight: inherit;
}

.button-secondary {
  background: rgba(255, 250, 240, 0.62);
  border-color: rgba(30, 33, 31, 0.16);
  color: var(--ink);
}

.button-wide {
  width: 100%;
}

.term-link {
  display: inline;
  border: 0;
  border-bottom: 1px dotted currentColor;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
}

.term-link:hover {
  color: var(--water);
}

.hero-signal {
  align-self: end;
  justify-self: center;
  width: min(100%, 380px);
  color: var(--night);
}

.signal-ring {
  position: relative;
  width: min(78vw, 340px);
  aspect-ratio: 1;
  margin: 0 auto 20px;
  border: 1px solid rgba(30, 33, 31, 0.28);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.36);
  box-shadow: inset 0 0 44px rgba(30, 33, 31, 0.08);
}

.signal-ring::before,
.signal-ring::after {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(30, 33, 31, 0.18);
  border-radius: 50%;
  content: "";
}

.signal-ring::after {
  inset: 36%;
}

.signal-ring span {
  position: absolute;
  display: inline-flex;
  min-width: 74px;
  justify-content: center;
  border: 1px solid rgba(30, 33, 31, 0.13);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 250, 240, 0.76);
  font-size: 0.82rem;
  font-weight: 800;
}

.signal-ring span:nth-child(1) {
  top: 8%;
  left: 50%;
  color: var(--wood);
  transform: translateX(-50%);
}

.signal-ring span:nth-child(2) {
  top: 35%;
  right: -6%;
  color: var(--fire);
}

.signal-ring span:nth-child(3) {
  bottom: 4%;
  right: 14%;
  color: var(--earth);
}

.signal-ring span:nth-child(4) {
  bottom: 4%;
  left: 14%;
  color: var(--metal);
}

.signal-ring span:nth-child(5) {
  top: 35%;
  left: -6%;
  color: var(--water);
}

.hero-signal p {
  max-width: 280px;
  margin: 0 auto;
  color: #444a43;
  text-align: center;
}

.tool-section {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(250px, 0.72fr) minmax(360px, 0.9fr) minmax(480px, 1.22fr);
  gap: 18px;
  align-items: start;
  padding: clamp(108px, 12vh, 132px) clamp(18px, 4vw, 58px) 58px;
}

.history-tab {
  position: fixed;
  top: 176px;
  left: 0;
  z-index: 8;
  display: grid;
  gap: 2px;
  width: 74px;
  min-height: 92px;
  place-items: center;
  border: 1px solid rgba(30, 33, 31, 0.08);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: rgba(255, 253, 247, 0.9);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.2;
  box-shadow: 0 10px 36px rgba(28, 33, 28, 0.08);
}

.history-tab span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
}

.tool-rail {
  display: grid;
  gap: 24px;
  padding-top: clamp(28px, 9vh, 96px);
}

.tool-rail h1 {
  max-width: 520px;
  margin-bottom: 0;
  font-size: clamp(3rem, 7vw, 6.1rem);
  line-height: 0.95;
}

.tool-rail .hero-subtitle {
  max-width: 520px;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.rail-metrics {
  display: grid;
  max-width: 420px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rail-metrics div {
  border: 1px solid rgba(30, 33, 31, 0.11);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.68);
  padding: 14px;
}

.rail-metrics strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.rail-metrics span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.learning-card,
.instant-card {
  border: 1px solid rgba(30, 33, 31, 0.11);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.76);
  box-shadow: 0 18px 52px rgba(28, 33, 28, 0.09);
}

.learning-card {
  max-width: 520px;
  padding: 20px;
}

.learning-card h2,
.form-card h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
}

.learning-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.learning-tags a,
.result-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(30, 33, 31, 0.1);
  border-radius: 999px;
  background: rgba(247, 244, 234, 0.78);
  color: var(--muted);
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 760;
}

.learning-tags a:hover {
  border-color: rgba(39, 111, 134, 0.28);
  color: var(--water);
}

.tool-main {
  display: grid;
  gap: 14px;
}

.form-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(30, 33, 31, 0.1);
  padding-bottom: 14px;
}

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

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

.form-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.form-field legend {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

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

.chip-radio,
.segmented label,
.check-row {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(30, 33, 31, 0.15);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 780;
  text-align: center;
}

.chip-radio input,
.segmented input,
.check-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.chip-radio:has(input:checked),
.segmented label:has(input:checked),
.check-row:has(input:checked) {
  border-color: rgba(195, 154, 62, 0.72);
  background: rgba(195, 154, 62, 0.15);
  color: var(--night);
}

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

.segmented .is-disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

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

.check-row {
  justify-content: flex-start;
  padding: 0 12px;
  text-align: left;
}

.check-row::before {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid rgba(30, 33, 31, 0.24);
  border-radius: 4px;
  background: #fffdf7;
  content: "";
}

.check-row:has(input:checked)::before {
  border-color: var(--earth);
  background:
    linear-gradient(135deg, transparent 42%, #fffdf7 43% 56%, transparent 57%),
    var(--earth);
}

.instant-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.instant-clock {
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(30, 33, 31, 0.12);
  border-radius: 50%;
  background: rgba(247, 244, 234, 0.72);
  font-size: 1.35rem;
  font-weight: 900;
}

.mini-pillar-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.mini-pillar-strip span {
  display: inline-flex;
  min-width: 38px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(30, 33, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.78);
  color: var(--ink);
  font-weight: 820;
}

.mini-pillar-strip b {
  line-height: 1;
}

#instant-clock-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.reading-section,
.sample-section,
.pricing-section,
.member-section {
  scroll-margin-top: 82px;
  padding: 78px clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

.reading-layout {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.reading-form,
.preview-panel,
.feature-card,
.price-card,
.sample-report {
  border: 1px solid rgba(30, 33, 31, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: var(--shadow);
}

.reading-form {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

input,
select {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(30, 33, 31, 0.18);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--ink);
  padding: 0 13px;
}

input:focus,
select:focus {
  outline: 3px solid rgba(39, 111, 134, 0.18);
  border-color: var(--water);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.profile-save-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(39, 111, 134, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232, 241, 236, 0.86), rgba(255, 253, 247, 0.92)),
    #fffdf7;
  padding: 16px;
}

.calibration-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(39, 111, 134, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232, 241, 236, 0.76), rgba(255, 253, 247, 0.9)),
    #fffdf7;
  padding: 16px;
}

.calibration-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
}

.calibration-card p:not(.card-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.calibration-warnings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.calibration-warnings span,
.calibration-warnings {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.calibration-warnings span {
  border: 1px solid rgba(195, 154, 62, 0.26);
  border-radius: 999px;
  background: rgba(195, 154, 62, 0.12);
  padding: 7px 10px;
  font-weight: 760;
}

.calibration-warnings span.is-important {
  border-color: rgba(217, 85, 65, 0.28);
  background: rgba(217, 85, 65, 0.1);
  color: #8b3429;
}

.calibration-warnings.is-clear {
  border: 1px solid rgba(62, 143, 105, 0.2);
  border-radius: 999px;
  background: rgba(232, 241, 236, 0.72);
  padding: 7px 10px;
  color: var(--wood);
  font-weight: 760;
}

.advanced-time-card {
  border: 1px solid rgba(30, 33, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.58);
  padding: 13px;
}

.advanced-time-card summary {
  cursor: pointer;
  color: var(--water);
  font-size: 0.84rem;
  font-weight: 820;
}

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

.profile-save-card h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
  line-height: 1.18;
}

.profile-save-card p:not(.card-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.profile-actions {
  display: grid;
  gap: 8px;
  min-width: 150px;
}

.preview-panel {
  min-height: 520px;
  min-width: 0;
  padding: clamp(22px, 4vw, 34px);
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 22px;
}

.empty-state {
  display: grid;
  min-height: 454px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-mark {
  display: inline-grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(30, 33, 31, 0.16);
  border-radius: 50%;
  color: var(--water);
  font-size: 2rem;
  font-weight: 900;
}

.empty-state p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.55;
}

.result-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(30, 33, 31, 0.1);
  padding-bottom: 20px;
}

.result-header p {
  margin: 0;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(30, 33, 31, 0.13);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(247, 244, 234, 0.72);
  font-size: 0.84rem;
  font-weight: 820;
}

.element-bars {
  display: grid;
  gap: 13px;
  margin-bottom: 28px;
}

.bazi-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 26px;
  padding-bottom: 4px;
}

.bazi-table {
  display: grid;
  min-width: 720px;
  grid-template-columns: 112px repeat(var(--pillar-count), minmax(130px, 1fr));
  border: 1px solid rgba(30, 33, 31, 0.11);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.58);
}

.bazi-cell {
  display: grid;
  gap: 5px;
  min-height: 74px;
  align-content: center;
  border-right: 1px solid rgba(30, 33, 31, 0.09);
  border-bottom: 1px solid rgba(30, 33, 31, 0.09);
  padding: 12px;
}

.bazi-cell:nth-child(5n) {
  border-right: 0;
}

.bazi-label {
  background: rgba(247, 244, 234, 0.74);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 840;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bazi-heading {
  background: rgba(247, 244, 234, 0.74);
}

.bazi-cell strong {
  font-size: 1.55rem;
  line-height: 1;
}

.bazi-cell small,
.bazi-cell em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.35;
}

.bazi-cell em {
  color: var(--water);
  font-weight: 780;
}

.bazi-hidden {
  align-content: start;
}

.bazi-hidden span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(30, 33, 31, 0.07);
  padding: 2px 0;
}

.element-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 760;
}

.bar-track {
  overflow: hidden;
  height: 11px;
  border-radius: 999px;
  background: rgba(30, 33, 31, 0.09);
}

.bar-fill {
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color);
}

.luck-panel {
  border: 1px solid rgba(30, 33, 31, 0.11);
  border-radius: 8px;
  background: rgba(247, 244, 234, 0.58);
  margin-bottom: 24px;
  padding: 18px;
}

.luck-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.luck-header h4 {
  margin: 0 0 6px;
}

.luck-header p:not(.card-kicker),
.luck-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.luck-card {
  display: grid;
  gap: 6px;
  min-height: 108px;
  align-content: center;
  border: 1px solid rgba(30, 33, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.56);
  padding: 12px;
}

.luck-card span,
.luck-card small {
  color: var(--muted);
  font-size: 0.78rem;
}

.luck-card strong {
  font-size: 1.45rem;
  line-height: 1;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.insight {
  border: 1px solid rgba(30, 33, 31, 0.1);
  border-radius: 8px;
  padding: 16px;
  background: rgba(247, 244, 234, 0.56);
}

.insight h4 {
  margin: 0 0 8px;
  font-size: 0.94rem;
}

.insight p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.trust-layer,
.daily-guidance,
.interpreter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(30, 33, 31, 0.11);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.72);
  padding: 18px;
}

.trust-heading,
.daily-heading,
.interpreter-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.trust-heading h4,
.daily-heading h4,
.interpreter-head h4 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.2;
}

.trust-heading p:not(.card-kicker),
.daily-heading p:not(.card-kicker),
.interpreter-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

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

.trust-card,
.daily-card,
.interpreter-output,
.interpreter-answer-grid div {
  border: 1px solid rgba(30, 33, 31, 0.09);
  border-radius: 8px;
  background: rgba(247, 244, 234, 0.58);
  padding: 12px;
}

.trust-card > span,
.daily-card > span,
.interpreter-answer > span {
  display: block;
  color: var(--water);
  font-size: 0.74rem;
  font-weight: 860;
  text-transform: uppercase;
}

.trust-card strong,
.daily-card strong,
.interpreter-answer strong {
  display: block;
  margin: 6px 0;
  color: var(--ink);
  line-height: 1.25;
}

.trust-card p,
.daily-card p,
.interpreter-output p,
.interpreter-answer p,
.interpreter-answer-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.trust-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-checklist span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(39, 111, 134, 0.14);
  border-radius: 999px;
  background: rgba(232, 241, 236, 0.64);
  color: var(--muted);
  padding: 0 11px;
  font-size: 0.78rem;
  font-weight: 760;
}

.daily-weather {
  background: rgba(232, 241, 236, 0.68);
}

.daily-actions,
.interpreter-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.interpreter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.interpreter-form .button {
  min-width: 150px;
}

.interpreter-output {
  min-height: 96px;
}

.interpreter-answer {
  display: grid;
  gap: 12px;
}

.interpreter-answer > strong {
  margin: 0;
  font-size: 1rem;
}

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

.interpreter-answer-grid b {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.84rem;
}

.locked-report {
  border: 1px solid rgba(30, 33, 31, 0.14);
  border-radius: 8px;
  padding: 18px;
  background: #f1eadb;
}

.locked-report h4 {
  margin: 0 0 8px;
}

.locked-report p {
  color: var(--muted);
  line-height: 1.5;
}

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

.paid-report {
  border: 1px solid rgba(30, 33, 31, 0.14);
  border-radius: 8px;
  margin-top: 24px;
  padding: 18px;
  scroll-margin-top: 108px;
}

.paid-report-locked {
  background:
    linear-gradient(135deg, rgba(241, 234, 219, 0.96), rgba(255, 253, 247, 0.78)),
    #f1eadb;
}

.paid-report-unlocked {
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(232, 241, 236, 0.82)),
    #fffdf7;
}

.paid-report-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(30, 33, 31, 0.1);
  padding-bottom: 14px;
}

.paid-report h4,
.paid-report h5 {
  margin: 0;
}

.price-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  white-space: nowrap;
  border: 1px solid rgba(30, 33, 31, 0.16);
  border-radius: 999px;
  background: var(--night);
  color: var(--paper-strong);
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 860;
}

.paid-preview-grid,
.premium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.paid-preview-grid article,
.premium-card {
  border: 1px solid rgba(30, 33, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.62);
  padding: 14px;
}

.paid-preview-grid span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--water);
  font-size: 0.78rem;
  font-weight: 900;
}

.paid-preview-grid h5,
.premium-card h5 {
  font-size: 0.95rem;
}

.paid-preview-grid p,
.premium-card p,
.paid-account-note,
.paid-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.52;
}

.paid-preview-grid p,
.premium-card p:last-child,
.paid-account-note,
.paid-note {
  margin-bottom: 0;
}

.paid-account-note {
  margin: -4px 0 16px;
}

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

.premium-card.wide {
  grid-column: 1 / -1;
}

.professional-report {
  padding: 0;
  overflow: hidden;
  background: #fffdf7;
}

.report-cover {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid rgba(30, 33, 31, 0.12);
  background:
    linear-gradient(120deg, rgba(247, 244, 234, 0.96), rgba(232, 241, 236, 0.78)),
    #fffdf7;
}

.report-cover h4 {
  margin: 4px 0 8px;
  font-size: 1.42rem;
  line-height: 1.16;
}

.report-cover .price-pill {
  align-self: start;
  justify-self: end;
}

.report-cover p:not(.card-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.report-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(30, 33, 31, 0.12);
  background: rgba(255, 253, 247, 0.82);
}

.report-metric {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid rgba(30, 33, 31, 0.09);
}

.report-metric:last-child {
  border-right: 0;
}

.report-metric > span,
.report-metric > em {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 780;
}

.report-metric strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.report-section {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(30, 33, 31, 0.1);
}

.report-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.report-section-title > span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 33, 31, 0.14);
  border-radius: 8px;
  background: var(--night);
  color: var(--paper-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.report-section-title h5 {
  font-size: 1rem;
  line-height: 1.25;
}

.judgement-grid,
.direction-grid,
.signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.judgement-grid p,
.direction-grid p,
.signature-grid p,
.report-lede,
.report-rationale,
.report-disclaimer p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.66;
}

.judgement-grid p,
.direction-grid p,
.signature-grid p,
.report-lede {
  margin: 0;
}

.signature-grid div {
  border: 1px solid rgba(30, 33, 31, 0.1);
  border-radius: 8px;
  background: rgba(247, 244, 234, 0.5);
  padding: 14px;
}

.signature-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.9rem;
}

.report-en,
.report-zh {
  display: block;
}

.report-en {
  color: var(--ink);
  font-weight: 720;
}

.report-zh {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92em;
}

body[data-report-lang="en"] .report-zh,
body:not([data-report-lang]) .report-zh {
  display: none;
}

body[data-report-lang="zh"] .report-en {
  display: none;
}

body[data-report-lang="zh"] .report-zh {
  color: var(--ink);
  font-weight: 720;
  margin-top: 0;
}

body[data-report-lang="zh"] .report-lede .report-zh,
body[data-report-lang="zh"] .judgement-grid .report-zh,
body[data-report-lang="zh"] .direction-grid .report-zh,
body[data-report-lang="zh"] .report-rationale .report-zh,
body[data-report-lang="zh"] .report-disclaimer .report-zh,
body[data-report-lang="zh"] .month-map .report-zh {
  color: var(--muted);
  font-weight: 620;
}

.strength-meter {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(180px, 1.1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(30, 33, 31, 0.1);
  border-radius: 8px;
  background: rgba(247, 244, 234, 0.56);
  padding: 16px;
}

.strength-meter strong,
.direction-grid strong,
.report-disclaimer strong {
  display: block;
  color: var(--ink);
  font-size: 0.94rem;
}

.strength-meter span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.strength-meter i {
  position: relative;
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(30, 33, 31, 0.11);
}

.strength-meter i::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--meter);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--water), var(--wood), var(--earth));
  content: "";
}

.report-rationale {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.element-assessment {
  display: grid;
  gap: 10px;
}

.element-assessment-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.72fr) minmax(150px, 1fr) 92px;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(30, 33, 31, 0.09);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.72);
  padding: 12px;
}

.element-assessment-row strong,
.element-assessment-row span {
  display: block;
}

.element-assessment-row strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.element-assessment-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.element-assessment-row i {
  position: relative;
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(30, 33, 31, 0.1);
}

.element-assessment-row b {
  display: block;
  width: var(--element-value);
  height: 100%;
  border-radius: inherit;
  background: var(--element-color);
}

.element-assessment-row em {
  color: var(--ink);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 820;
  text-align: right;
}

.ten-god-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(30, 33, 31, 0.1);
  border-radius: 8px;
}

.ten-god-row {
  display: grid;
  grid-template-columns: minmax(115px, 0.7fr) 72px minmax(0, 1.4fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid rgba(30, 33, 31, 0.08);
  background: rgba(255, 253, 247, 0.72);
}

.ten-god-row:first-child {
  border-top: 0;
}

.ten-god-row.table-head {
  background: rgba(30, 33, 31, 0.06);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 880;
  text-transform: uppercase;
}

.ten-god-row strong,
.ten-god-row span {
  color: var(--ink);
  font-size: 0.88rem;
}

.ten-god-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

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

.ten-god-chips span {
  border: 1px solid rgba(30, 33, 31, 0.1);
  border-radius: 999px;
  background: rgba(247, 244, 234, 0.72);
  padding: 7px 10px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 820;
}

.direction-grid div {
  border: 1px solid rgba(30, 33, 31, 0.1);
  border-radius: 8px;
  background: rgba(247, 244, 234, 0.5);
  padding: 14px;
}

.direction-grid p {
  margin-top: 8px;
}

.operating-grid,
.action-plan,
.risk-grid {
  display: grid;
  gap: 10px;
}

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

.action-plan,
.risk-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.operating-card,
.action-plan article,
.risk-grid article {
  border: 1px solid rgba(30, 33, 31, 0.1);
  border-radius: 8px;
  background: rgba(247, 244, 234, 0.54);
  padding: 14px;
}

.operating-card > span,
.action-plan article > span {
  display: block;
  color: var(--water);
  font-size: 0.74rem;
  font-weight: 860;
  text-transform: uppercase;
}

.operating-card strong,
.action-plan strong,
.risk-grid strong {
  display: block;
  margin: 7px 0;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.25;
}

.operating-card p,
.action-plan p,
.risk-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

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

.luck-timeline div {
  border: 1px solid rgba(30, 33, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.72);
  padding: 12px;
}

.luck-timeline strong,
.luck-timeline span {
  display: block;
}

.luck-timeline strong {
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1;
}

.luck-timeline span {
  margin-top: 8px;
  color: var(--water);
  font-size: 0.78rem;
  font-weight: 860;
}

.luck-timeline p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.professional-month-map {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-disclaimer {
  margin: 18px 24px 20px;
  border: 1px solid rgba(30, 33, 31, 0.1);
  border-radius: 8px;
  background: rgba(30, 33, 31, 0.04);
  padding: 14px;
}

.report-disclaimer p {
  margin: 6px 0 0;
}

.professional-report .locked-actions {
  padding: 0 24px 24px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.mini-stats div {
  border: 1px solid rgba(30, 33, 31, 0.08);
  border-radius: 8px;
  background: rgba(247, 244, 234, 0.66);
  padding: 10px;
}

.mini-stats dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.mini-stats dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
}

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

.month-map div {
  border: 1px solid rgba(30, 33, 31, 0.08);
  border-radius: 8px;
  background: rgba(247, 244, 234, 0.58);
  padding: 10px;
}

.month-map div > strong,
.month-map div > span {
  display: block;
}

.month-map div > strong {
  color: var(--water);
  font-size: 0.76rem;
}

.month-map div > span {
  margin: 4px 0 7px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.month-map p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.paid-report .professional-month-map {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.sample-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.sample-report {
  min-height: 100%;
  padding: 24px;
}

.sample-report-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(30, 33, 31, 0.12);
  padding-bottom: 18px;
}

.sample-copy h4 {
  margin: 22px 0 8px;
  font-size: 0.94rem;
}

.sample-copy h4:first-child {
  margin-top: 0;
}

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

.academy-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.academy-intro article,
.lesson-card,
.mistake-grid article {
  border: 1px solid rgba(30, 33, 31, 0.11);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.76);
  box-shadow: 0 16px 44px rgba(28, 33, 28, 0.07);
}

.academy-intro article {
  padding: 22px;
}

.academy-intro h3,
.lesson-card h3,
.mistake-grid h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.18;
}

.academy-intro p:not(.card-kicker),
.lesson-card p,
.lesson-card li,
.mistake-grid p:not(.card-kicker) {
  color: var(--muted);
  line-height: 1.58;
}

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

.lesson-card {
  scroll-margin-top: 96px;
  padding: 22px;
}

.lesson-list,
.step-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.cycle-strip,
.reference-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.cycle-strip span,
.reference-row span,
.lesson-note {
  border: 1px solid rgba(30, 33, 31, 0.1);
  border-radius: 8px;
  background: rgba(247, 244, 234, 0.68);
  padding: 9px 10px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 760;
}

.ten-god-reference {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.ten-god-reference div {
  display: grid;
  grid-template-columns: minmax(92px, 0.45fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(30, 33, 31, 0.08);
  border-radius: 8px;
  background: rgba(247, 244, 234, 0.52);
  padding: 10px;
}

.ten-god-reference strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.ten-god-reference span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.lesson-note {
  margin-top: 14px;
}

.mistake-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.mistake-grid article {
  padding: 20px;
}

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

.feature-card {
  min-height: 230px;
  padding: 22px;
}

.card-kicker {
  margin-bottom: 12px;
  color: var(--water);
  font-size: 0.76rem;
  font-weight: 840;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card p:not(.card-kicker),
.pricing-copy p,
.price-card li {
  color: var(--muted);
  line-height: 1.55;
}

.pricing-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 28px;
  align-items: center;
}

.pricing-copy {
  max-width: 720px;
}

.price-card {
  padding: 24px;
}

.price {
  margin: 0 0 18px;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 0.95;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding-left: 18px;
}

.member-section {
  background: rgba(232, 241, 236, 0.34);
}

.member-dashboard {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: start;
}

.member-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  border: 1px solid rgba(30, 33, 31, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.84);
  box-shadow: var(--shadow);
  padding: 20px;
}

.member-points-card {
  background:
    linear-gradient(135deg, rgba(232, 241, 236, 0.82), rgba(255, 253, 247, 0.92)),
    #fffdf7;
}

.member-wide-card {
  grid-column: 1 / -1;
}

.member-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.member-card-head h3 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.18;
}

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

.member-stats div {
  border: 1px solid rgba(30, 33, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.72);
  padding: 14px;
}

.member-stats strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
}

.member-stats span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.points-progress {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(30, 33, 31, 0.1);
}

.points-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wood), var(--water));
  transition: width 220ms ease;
}

.member-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.member-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  white-space: nowrap;
  border: 1px solid rgba(30, 33, 31, 0.14);
  border-radius: 999px;
  background: rgba(247, 244, 234, 0.78);
  color: var(--muted);
  padding: 0 11px;
  font-size: 0.78rem;
  font-weight: 840;
}

.member-badge.is-paid {
  border-color: rgba(62, 143, 105, 0.28);
  background: rgba(232, 241, 236, 0.9);
  color: var(--wood);
}

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

.member-empty {
  border: 1px dashed rgba(30, 33, 31, 0.18);
  border-radius: 8px;
  background: rgba(247, 244, 234, 0.62);
  color: var(--muted);
  padding: 15px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.member-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(30, 33, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.72);
  padding: 13px;
}

.member-record strong,
.member-record span {
  display: block;
}

.member-record strong {
  margin-bottom: 4px;
  line-height: 1.24;
}

.member-record span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.38;
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 32px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(30, 33, 31, 0.1);
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 36px));
  border-radius: 8px;
  background: var(--night);
  color: var(--paper-strong);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

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

.glossary-modal {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  background: rgba(18, 21, 18, 0.34);
  padding: 18px;
}

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

.glossary-panel {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid rgba(30, 33, 31, 0.16);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 0 24px 70px rgba(28, 33, 28, 0.18);
  padding: 22px;
}

.glossary-panel h2 {
  margin: 0 34px 14px 0;
  font-size: 1.34rem;
  line-height: 1.18;
}

.glossary-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.64;
}

.glossary-note {
  margin-top: 14px !important;
  border-top: 1px solid rgba(30, 33, 31, 0.1);
  padding-top: 14px;
}

.glossary-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(30, 33, 31, 0.14);
  border-radius: 8px;
  background: rgba(247, 244, 234, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(21, 23, 20, 0.34);
  padding: 20px;
}

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

.account-panel {
  display: grid;
  gap: 16px;
  width: min(100%, 430px);
  border: 1px solid rgba(30, 33, 31, 0.12);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: var(--shadow);
  padding: 24px;
}

.account-panel h2 {
  margin: 0;
  font-size: 1.5rem;
}

.account-panel p:not(.card-kicker) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 52;
  display: grid;
  place-items: center;
  background: rgba(21, 23, 20, 0.36);
  padding: 20px;
}

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

.profile-panel {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(760px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid rgba(30, 33, 31, 0.12);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: var(--shadow);
  padding: 24px;
}

.profile-panel h2 {
  margin: 0 42px 0 0;
  font-size: 1.5rem;
}

.profile-panel p:not(.card-kicker) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.profile-empty {
  display: grid;
  gap: 6px;
  border: 1px dashed rgba(30, 33, 31, 0.18);
  border-radius: 8px;
  background: rgba(247, 244, 234, 0.55);
  color: var(--muted);
  padding: 18px;
}

.profile-empty strong {
  color: var(--ink);
}

.profile-item {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(30, 33, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.7);
  padding: 14px;
}

.profile-item-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.profile-item-head strong {
  font-size: 1rem;
  line-height: 1.25;
}

.profile-item-head span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(39, 111, 134, 0.18);
  border-radius: 999px;
  color: var(--water);
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 820;
}

.profile-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.profile-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.simple-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.simple-panel {
  width: min(100%, 760px);
  border: 1px solid rgba(30, 33, 31, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: var(--shadow);
  padding: clamp(28px, 6vw, 56px);
}

.simple-panel .brand {
  margin-bottom: 54px;
}

.simple-panel h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
}

.simple-panel p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (max-width: 1060px) {
  .hero,
  .tool-section,
  .reading-layout,
  .pricing-section,
  .member-dashboard {
    grid-template-columns: 1fr;
  }

  .tool-rail {
    padding-top: 0;
  }

  .history-tab {
    display: none;
  }

  .hero-signal {
    justify-self: start;
  }

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

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

  .sample-layout {
    grid-template-columns: 1fr;
  }

  .paid-preview-grid,
  .premium-grid,
  .month-map,
  .report-meta-grid,
  .luck-timeline,
  .trust-grid,
  .daily-grid,
  .operating-grid,
  .action-plan,
  .risk-grid,
  .interpreter-answer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-metric:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    padding: 14px 16px;
  }

  .brand span:last-child {
    max-width: 108px;
    line-height: 1.05;
  }

  .nav-links {
    gap: 10px;
    font-size: 0.82rem;
  }

  .account-widget {
    width: 100%;
    justify-content: space-between;
  }

  .language-switch {
    grid-template-columns: repeat(2, minmax(38px, 1fr));
  }

  .language-option {
    min-height: 32px;
    padding: 0 8px;
  }

  #account-email-label {
    max-width: 145px;
  }

  .account-button {
    padding: 0 10px;
  }

  .hero {
    min-height: 78vh;
    padding: 104px 16px 28px;
  }

  .tool-section {
    padding: 100px 16px 34px;
  }

  .tool-rail h1 {
    font-size: clamp(2.45rem, 13vw, 3.35rem);
  }

  .rail-metrics,
  .form-grid,
  .advanced-time-grid,
  .profile-save-card,
  .toggle-grid,
  .segmented,
  .radio-row {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .rail-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tool-rail {
    gap: 18px;
  }

  .tool-rail .hero-subtitle {
    font-size: 1rem;
    line-height: 1.45;
  }

  .learning-card {
    display: none;
  }

  .instant-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .instant-card .button {
    grid-column: 1 / -1;
  }

  .hero-actions {
    display: grid;
  }

  .hero-signal {
    display: none;
  }

  .button {
    min-height: 46px;
  }

  .reading-section,
  .sample-section,
  .pricing-section,
  .member-section {
    padding: 54px 16px;
  }

  .preview-panel {
    min-height: 460px;
  }

  .insight-grid,
  .luck-strip,
  .feature-grid,
  .academy-intro,
  .member-dashboard,
  .member-stats,
  .learning-grid,
  .mistake-grid,
  .paid-preview-grid,
  .premium-grid,
  .mini-stats,
  .month-map,
  .report-meta-grid,
  .judgement-grid,
  .direction-grid,
  .signature-grid,
  .strength-meter,
  .luck-timeline,
  .trust-grid,
  .daily-grid,
  .operating-grid,
  .action-plan,
  .risk-grid,
  .interpreter-answer-grid,
  .interpreter-form {
    grid-template-columns: 1fr;
  }

  .trust-heading,
  .daily-heading,
  .interpreter-head {
    display: grid;
  }

  .element-row {
    grid-template-columns: 66px minmax(0, 1fr) 40px;
  }

  .member-card,
  .member-record {
    padding: 14px;
  }

  .member-card-head,
  .member-record,
  .member-report-record {
    grid-template-columns: 1fr;
  }

  .member-card-head {
    display: grid;
  }

  .member-record-actions {
    justify-content: start;
  }

  .report-cover {
    display: grid;
    padding: 18px;
  }

  .report-cover .price-pill {
    justify-self: start;
  }

  .report-section {
    padding: 18px;
  }

  .report-metric {
    border-right: 0;
    border-bottom: 1px solid rgba(30, 33, 31, 0.08);
  }

  .element-assessment-row,
  .ten-god-row {
    grid-template-columns: 1fr;
  }

  .element-assessment-row em {
    text-align: left;
  }

  .report-disclaimer {
    margin: 16px 18px 18px;
  }

  .professional-report .locked-actions {
    padding: 0 18px 18px;
  }

  .paid-report .professional-month-map {
    grid-template-columns: 1fr;
  }
}
