:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-2: #ecefea;
  --ink: #171a1f;
  --muted: #6a7078;
  --line: #dfe4de;
  --brand: #5967e8;
  --brand-dark: #3644c4;
  --green: #4ade80;
  --yellow: #facc15;
  --orange: #fb923c;
  --red: #ef4444;
  --shadow: 0 18px 50px rgba(23, 26, 31, 0.12);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, "SF Pro Display", "SF Pro Text", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #dfe3df;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #dfe3df;
  color: var(--ink);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100svh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 60px rgba(23, 26, 31, 0.08);
  overflow: hidden;
}

.screen {
  display: none;
  min-height: 100svh;
  background: var(--bg);
}

.screen.is-active {
  display: block;
  animation: screen-in 280ms ease both;
}

@keyframes screen-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: calc(64px + var(--safe-top));
  padding: var(--safe-top) 20px 0;
  background: rgba(245, 247, 244, 0.96);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.topbar--overlay {
  position: absolute;
  inset: 0 0 auto;
  grid-template-columns: 1fr auto;
  border: 0;
  background: transparent;
}

.topbar--sticky {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
}

.topbar-title {
  font-size: 15px;
  font-weight: 650;
}

.subject-topbar-title {
  display: flex;
  min-width: 0;
  max-width: min(230px, calc(100vw - 142px));
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.subject-topbar-title > [data-subject-title] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subject-privacy-toggle {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #707780;
  cursor: pointer;
}

.subject-privacy-toggle[hidden] {
  display: none;
}

.subject-eye {
  position: absolute;
  top: 9px;
  left: 6px;
  width: 16px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 70% 22%;
  transform: rotate(45deg);
}

.subject-eye::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.subject-privacy-toggle.is-hidden::after {
  position: absolute;
  top: 6px;
  left: 13px;
  width: 1.5px;
  height: 17px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: rotate(-42deg);
}

.topbar-spacer {
  width: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

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

.brand strong {
  font-size: 14px;
  font-weight: 760;
}

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

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(89, 103, 232, 0.35);
  border-radius: 50%;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px 5px;
  border-top: 2px solid var(--brand);
  border-bottom: 2px solid var(--green);
  border-radius: 50%;
  transform: rotate(-32deg);
}

.text-action,
.quiet-button,
.back-action {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.text-action {
  justify-self: end;
  padding: 10px 0;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 650;
}

.back-action {
  width: 40px;
  height: 40px;
  justify-self: start;
  font-size: 24px;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(88px + var(--safe-top)) 24px 28px;
  overflow: hidden;
  background: var(--bg);
}

.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 340px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

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

.hero h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 9.2vw, 44px);
  line-height: 1.03;
  font-weight: 720;
  white-space: nowrap;
}

.hero-cn {
  margin: 7px 0 18px;
  font-size: 20px;
  font-weight: 620;
}

.hero-lead,
.page-lead {
  color: #50565f;
  font-size: 16px;
  line-height: 1.65;
}

.hero-lead {
  max-width: 315px;
}

.road-stage {
  position: relative;
  height: 420px;
  min-height: 420px;
  margin: -12px -24px 0;
}

.life-road {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.road-base,
.road-segment {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.road-base {
  stroke: #dfe4de;
  stroke-width: 17;
}

.road-segment {
  stroke-width: 12;
}

.road-part-1 { stroke-dasharray: 25 75; stroke-dashoffset: 0; }
.road-part-2 { stroke-dasharray: 25 75; stroke-dashoffset: -25; }
.road-part-3 { stroke-dasharray: 25 75; stroke-dashoffset: -50; }
.road-part-4 { stroke-dasharray: 25 75; stroke-dashoffset: -75; }
.road-segment--green { stroke: var(--green); }
.road-segment--yellow { stroke: var(--yellow); }
.road-segment--orange { stroke: var(--orange); }
.road-segment--red { stroke: var(--red); }

.traveller {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 3;
  filter: drop-shadow(0 5px 8px rgba(23, 26, 31, 0.18));
}

.road-marker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(23, 26, 31, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(23, 26, 31, 0.08);
  cursor: pointer;
  z-index: 4;
}

.road-marker span {
  font-size: 15px;
  font-weight: 760;
}

.road-marker small {
  position: absolute;
  width: 82px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 620;
  white-space: nowrap;
}

.road-marker--one { left: 10%; bottom: 26%; }
.road-marker--one small { top: 57px; left: -12px; }
.road-marker--two { right: 14%; top: 45%; }
.road-marker--two small { left: -14px; top: 57px; }
.road-marker--three { right: 9%; top: 6%; }
.road-marker--three small { right: 56px; top: 18px; text-align: right; }

.road-marker.is-active {
  border-color: var(--ink);
  transform: scale(1.06);
}

.marker-insight {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 68px;
  margin: 4px 0 24px;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--ink);
  z-index: 3;
}

.marker-insight strong {
  font-size: 16px;
}

.marker-insight span {
  max-width: 310px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.hero-actions {
  position: relative;
  z-index: 6;
  display: grid;
  gap: 10px;
}

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

.profile-shortcut {
  color: #626a72;
}

.primary-action,
.secondary-action,
.inline-action {
  min-height: 52px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-action:active,
.secondary-action:active,
.inline-action:active {
  transform: scale(0.985);
}

.primary-action {
  padding: 0 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
}

.secondary-action {
  padding: 0 20px;
  border: 1px solid #cdd3cc;
  background: rgba(255, 255, 255, 0.66);
}

.sample-section,
.form-page,
.paths-page,
.result-page {
  padding: 44px 24px calc(48px + var(--safe-bottom));
}

.sample-section {
  min-height: 78svh;
  padding-top: 50px;
  background: #eef0ec;
  border-top: 1px solid var(--line);
}

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

.section-heading h2,
.phase-band h2,
.focus-section h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.quiet-button {
  padding: 8px 0;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.shuffle-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.shuffle-icon {
  display: inline-block;
  font-size: 17px;
  line-height: 1;
  transition: transform 220ms ease;
}

.shuffle-button:hover .shuffle-icon,
.shuffle-button:focus-visible .shuffle-icon {
  transform: rotate(90deg);
}

.shuffle-button:active .shuffle-icon {
  transform: rotate(210deg);
}

.shuffle-button.is-loading .shuffle-icon {
  animation: shuffle-spin 700ms linear infinite;
}

.shuffle-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

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

.sample-card {
  padding: 24px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background: var(--surface);
}

.sample-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.confidence-dot::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--green);
}

.sample-card h3 {
  margin: 32px 0 4px;
  font-size: 27px;
}

.signature {
  overflow: hidden;
  color: var(--brand);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(30px, 10vw, 44px);
  line-height: 1.2;
  white-space: nowrap;
}

.sample-card > p {
  margin: 22px 0;
  color: #4f555c;
  font-size: 16px;
  line-height: 1.65;
}

.cycle-strength-copy span {
  display: block;
}

.cycle-strength-copy span + span {
  margin-top: 4px;
}

.cycle-strength-copy strong {
  color: var(--ink);
  font-weight: 700;
}

.sample-cycle-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 10px;
}

.sample-cycle-heading strong {
  font-size: 13px;
}

.sample-cycle-heading small {
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

.sample-cycle-strip {
  display: flex;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid rgba(57, 65, 74, 0.12);
  border-radius: 6px;
}

.sample-cycle-segment {
  display: grid;
  min-width: 0;
  flex: var(--span);
  place-content: center;
  border-right: 1px solid rgba(35, 42, 49, 0.12);
  color: rgba(22, 28, 34, 0.78);
  text-align: center;
}

.sample-cycle-segment:last-child { border-right: 0; }
.sample-cycle-segment--red { background: var(--red); }
.sample-cycle-segment--orange { background: var(--orange); }
.sample-cycle-segment--yellow { background: var(--yellow); }
.sample-cycle-segment--green { background: var(--green); }

.sample-cycle-segment strong,
.sample-cycle-segment small,
.sample-cycle-segment em {
  display: block;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.sample-cycle-segment strong { font-size: 11px; }
.sample-cycle-segment small { margin-top: 2px; font-size: 9px; }
.sample-cycle-segment em { margin-top: 2px; font-size: 8px; font-style: normal; }

.sample-highlights {
  margin: 0;
  border-top: 1px solid var(--line);
}

.sample-highlights div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 3px 0 0 var(--cycle-color);
}

.sample-highlights dt {
  padding-left: 12px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 750;
}

.sample-highlights dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.sample-highlights dd strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 12px;
}

.sample-highlights dd p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.climate-guide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid #d9ded9;
  border-radius: 8px;
  background: #d9ded9;
}

.climate-guide > div {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 54px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.86);
}

.climate-guide i {
  width: 8px;
  height: 34px;
  border-radius: 3px;
}

.climate-guide strong,
.climate-guide small {
  display: block;
}

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

.climate-guide small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.climate-guide--red i { background: var(--red); }
.climate-guide--orange i { background: var(--orange); }
.climate-guide--yellow i { background: var(--yellow); }
.climate-guide--green i { background: var(--green); }

.inline-action {
  width: 100%;
  margin-top: 20px;
  border: 1px solid var(--ink);
  background: transparent;
}

.sample-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.sample-actions .inline-action,
.sample-actions .secondary-action {
  width: 100%;
  margin: 0;
}

.sample-actions .inline-action {
  background: var(--ink);
  color: white;
}

.anonymous-own-cta {
  margin: 0 -24px;
  padding: 28px 24px;
  border-top: 1px solid #d6ddd6;
  border-bottom: 1px solid #d6ddd6;
  background: #edf2ed;
}

.anonymous-own-cta strong,
.anonymous-own-cta span {
  display: block;
}

.anonymous-own-cta strong {
  font-size: 20px;
}

.anonymous-own-cta span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.anonymous-own-cta .primary-action {
  width: 100%;
  margin-top: 20px;
}

.profiles-page {
  padding: 38px 24px calc(100px + var(--safe-bottom));
}

.profiles-page h1 {
  margin-bottom: 14px;
  font-size: 32px;
  line-height: 1.18;
}

.account-panel {
  margin: 30px 0 42px;
  padding: 18px;
  border: 1px solid #d6dcd6;
  border-radius: 8px;
  background: var(--surface);
}

.account-identity {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.account-identity > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #f2c94c;
  color: #2d2a1e;
  box-shadow: 0 8px 20px rgba(211, 163, 24, 0.18);
  font-size: 12px;
  font-weight: 760;
}

.account-identity strong,
.account-identity small {
  display: block;
}

.account-identity strong { font-size: 15px; }
.account-identity small { margin-top: 4px; color: var(--muted); font-size: 11px; }

.account-edit {
  padding: 7px 0 7px 10px;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 760;
}

.account-nickname-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 14px;
}

.account-nickname-form:not([hidden]) { display: grid; }

.account-nickname-form input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cdd6cf;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

.account-nickname-form button,
.account-code-row button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #cbd5cd;
  border-radius: 6px;
  background: #fff;
  color: #26322b;
  font-size: 12px;
  font-weight: 760;
}

.account-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #d8dfd9;
}

.account-code-row small,
.account-code-row strong {
  display: block;
}

.account-code-row small {
  color: var(--muted);
  font-size: 10px;
}

.account-code-row strong {
  margin-top: 4px;
  font-size: 17px;
  letter-spacing: 0;
}

.profile-group {
  margin-top: 36px;
}

.profile-group-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.profile-group-heading h2 {
  margin: 0;
  font-size: 22px;
}

.profile-group-heading > span {
  color: var(--muted);
  font-size: 10px;
}

.profile-filter-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 12px;
  padding: 4px;
  border: 1px solid #dfe3df;
  border-radius: 8px;
  background: #ecefec;
}

.profile-filter-tabs button {
  min-width: 0;
  min-height: 34px;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #707780;
  font-size: 11px;
  cursor: pointer;
}

.profile-filter-tabs button.is-selected {
  background: #fff;
  color: var(--ink);
  font-weight: 760;
  box-shadow: 0 1px 4px rgba(23, 26, 31, 0.08);
}

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

.profile-empty-state {
  display: grid;
  min-height: 92px;
  padding: 18px;
  place-content: center;
  border: 1px dashed #c9ceca;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.profile-empty-state strong,
.profile-empty-state small {
  display: block;
}

.profile-empty-state strong {
  color: #4d545b;
  font-size: 13px;
}

.profile-empty-state small {
  margin-top: 5px;
  font-size: 10px;
}

.profile-card {
  display: grid;
  grid-template-columns: 42px 1fr 18px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid #d9ded9;
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.profile-card-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: stretch;
}

.profile-edit {
  display: grid;
  width: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: #2f6f50;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

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

.profile-card--primary {
  border-color: rgba(89, 103, 232, 0.35);
  background: #f4f5ff;
}

.profile-card--demo {
  background: rgba(255, 255, 255, 0.58);
}

.profile-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #e8ebe7;
  color: #444b53;
  font-size: 13px;
  font-weight: 760;
}

.profile-card--primary .profile-avatar {
  background: var(--brand);
  color: white;
}

.profile-card strong,
.profile-card small {
  display: block;
}

.profile-card strong { font-size: 14px; }
.profile-card small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.profile-card b { color: var(--muted); font-size: 16px; font-weight: 500; }

.add-profile-action {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 2px 12px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px dashed #abb3ab;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.add-profile-action span {
  grid-row: 1 / 3;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: #e7eae6;
  font-size: 20px;
}

.add-profile-action strong { font-size: 13px; }
.add-profile-action small { color: var(--muted); font-size: 10px; }

.form-page h1,
.paths-page h1,
.result-page h1 {
  margin-bottom: 14px;
  font-size: 32px;
  line-height: 1.18;
}

.page-lead {
  margin-bottom: 34px;
}

.field-label {
  display: block;
  margin: 26px 0 10px;
  color: #353a40;
  font-size: 13px;
  font-weight: 700;
}

.text-input {
  width: 100%;
  height: 54px;
  padding: 0 14px;
  border: 1px solid #ccd2cc;
  border-radius: 8px;
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
}

.text-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(89, 103, 232, 0.11);
}

.segmented {
  display: grid;
  padding: 3px;
  border-radius: 8px;
  background: #e7eae6;
}

.segmented--two {
  grid-template-columns: 1fr 1fr;
}

.segment {
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.segment.is-selected {
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(23, 26, 31, 0.08);
  font-weight: 700;
}

.choice-list {
  border-top: 1px solid var(--line);
}

.choice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 82px;
  padding: 15px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.choice-row span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.choice-row strong {
  font-size: 15px;
}

.choice-row small {
  color: var(--muted);
  font-size: 12px;
}

.choice-row b {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #cbd1ca;
  border-radius: 50%;
  color: #9aa19a;
  font-size: 10px;
}

.choice-row.is-selected b {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.conditional-field {
  animation: field-in 180ms ease both;
}

.conditional-field.is-hidden {
  display: none;
}

@keyframes field-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.period-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.period-grid button {
  min-height: 48px;
  border: 1px solid #ccd2cc;
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.period-grid button.is-selected {
  border-color: var(--brand);
  background: rgba(89, 103, 232, 0.08);
  color: var(--brand-dark);
  font-weight: 700;
}

.form-submit,
.result-action {
  width: 100%;
  margin-top: 34px;
}

.paths-page {
  padding-top: 38px;
}

.climate-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 15px;
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 11px;
}

.climate-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.climate-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-green { background: var(--green); }
.legend-yellow { background: var(--yellow); }
.legend-orange { background: var(--orange); }
.legend-red { background: var(--red); }

.period-filter {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 3px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: #e7eae6;
}

.period-filter button {
  min-height: 38px;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.period-filter button.is-selected {
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.climate-table {
  margin: 0 -24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.climate-header,
.climate-row {
  display: grid;
  grid-template-columns: 90px repeat(8, minmax(22px, 1fr));
  gap: 3px;
  align-items: center;
  padding: 0 14px;
}

.climate-header {
  min-height: 36px;
  color: #858c94;
  font-size: 9px;
  text-align: center;
}

.climate-header span:first-child {
  text-align: left;
}

.climate-row {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.climate-row[hidden] {
  display: none;
}

.time-label {
  text-align: left;
}

.time-label strong,
.time-label small {
  display: block;
}

.time-label strong {
  font-size: 12px;
}

.time-label small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.climate-cell {
  height: 28px;
  border-radius: 3px;
  transition: transform 160ms ease;
}

.climate-row:hover .climate-cell,
.climate-row:focus-visible .climate-cell {
  transform: scaleY(1.08);
}

.climate-green { background: var(--green); }
.climate-yellow { background: var(--yellow); }
.climate-orange { background: var(--orange); }
.climate-red { background: var(--red); }

.paths-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.result-page {
  padding-top: 42px;
}

.result-intro {
  min-height: 430px;
  padding-top: 18px;
}

.result-context {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.birth-info-disclosure {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 24px;
  color: var(--muted);
}

.birth-info-disclosure summary {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d9ded9;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.68);
  color: #6d756f;
  font-size: 10px;
  font-weight: 760;
  cursor: pointer;
}

.birth-info-disclosure--bazi {
  margin-top: 10px;
  margin-bottom: 30px;
}

.birth-info-disclosure--bazi .page-lead {
  margin: 8px 0 0;
}

.result-page h1 {
  font-size: 38px;
}

.trajectory-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trajectory-facts[hidden] {
  display: none;
}

.trajectory-facts > div {
  min-width: 0;
  padding: 14px 8px 14px 0;
  border-bottom: 1px solid var(--line);
}

.trajectory-match-card {
  display: grid;
  align-content: start;
  gap: 4px;
}

.trajectory-match-card:first-child {
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.trajectory-match-card:nth-child(2) {
  padding-left: 12px;
}

.trajectory-type-symbol {
  display: flex;
  min-height: 52px;
  margin-top: 7px;
  align-items: flex-end;
  overflow: hidden;
  color: var(--brand);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(22px, 7.4vw, 32px);
  line-height: 1;
  white-space: nowrap;
}

.trajectory-match-card--secondary .trajectory-type-symbol {
  color: #8c829d;
}

.trajectory-facts > div:last-child {
  grid-column: 1 / -1;
  border-bottom: 0;
}

.trajectory-facts-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trajectory-facts-summary > span {
  min-width: 0;
  padding: 0 8px;
  border-right: 1px solid var(--line);
}

.trajectory-facts-summary > span:first-child {
  padding-left: 0;
}

.trajectory-facts-summary > span:last-child {
  padding-right: 0;
  border-right: 0;
}

.trajectory-facts dt {
  color: var(--muted);
  font-size: 10px;
}

.trajectory-facts dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
}

.trajectory-match-card--secondary dd {
  color: #625c6d;
}

.result-type-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.result-type-row h1 {
  flex: 0 0 auto;
  margin: 0;
}

.type-symbol-mini {
  display: inline-flex;
  min-width: 0;
  overflow: hidden;
  color: var(--brand);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(13px, 4.2vw, 18px);
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .result-type-row h1 {
    font-size: 34px;
  }

  .type-symbol-mini {
    font-size: 12px;
  }
}

.personal-trajectory-label {
  margin-top: 30px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
}

.signature--large {
  margin: 7px 0 30px;
  font-size: clamp(37px, 12vw, 54px);
}

.result-lead {
  max-width: 345px;
  color: #484e56;
  font-size: 18px;
  line-height: 1.75;
}

.phase-band,
.focus-section,
.topic-section {
  margin: 0 -24px;
  padding: 38px 24px;
  border-top: 1px solid var(--line);
}

.phase-band {
  background: #e9ecf9;
}

.phase-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 20px;
}

.phase-status {
  width: 12px;
  height: 48px;
  border-radius: 6px;
  background: var(--orange);
}

.phase-row strong,
.phase-row small {
  display: block;
}

.phase-row strong {
  font-size: 17px;
}

.phase-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.phase-band > p:last-child {
  margin-bottom: 0;
  color: #505660;
  line-height: 1.65;
}

.section-story {
  margin: -4px 0 22px;
  color: #535b64;
  font-size: 14px;
  line-height: 1.72;
}

.vibe-link,
.body-link {
  width: 100%;
  margin-top: 20px;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid rgba(45, 54, 62, 0.13);
  background: transparent;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 740;
  text-align: left;
  cursor: pointer;
}

.focus-section {
  background: #eef3ef;
}

.today-preview {
  margin: 0 -24px;
  padding: 34px 24px 38px;
  border-top: 1px solid var(--line);
  background: #f5f0d8;
}

.today-preview h2 {
  margin: 4px 0 18px;
  font-size: 24px;
}

.today-preview > button {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  width: 100%;
  padding: 19px;
  border: 1px solid #cdd8cb;
  border-top: 6px solid var(--daily-tone-color, #4ade80);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.today-preview > button > span {
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  align-self: start;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #facc15;
  color: #202721;
  font-size: 11px;
  font-weight: 800;
}

.today-preview strong,
.today-preview small,
.today-preview b {
  grid-column: 2;
  display: block;
}

.today-preview strong {
  font-size: 22px;
}

.today-preview small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.today-preview b {
  margin-top: 14px;
  color: var(--brand-dark);
  font-size: 12px;
}

.today-page {
  min-height: calc(100svh - 64px);
  padding: 32px 24px calc(104px + var(--safe-bottom));
  background: #eef6ef;
}

.shared-result-card {
  margin: 80px 20px -54px;
  padding: 18px;
  border: 1px solid #ccd7ce;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(25, 39, 30, 0.1);
}

.shared-result-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shared-result-card .eyebrow { margin: 0; }
.shared-result-card span { color: var(--muted); font-size: 11px; }
.shared-result-card > strong { display: block; margin-top: 12px; font-size: 25px; }
.shared-result-card > p { margin: 7px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.55; }

.suitability-section {
  margin-top: 42px;
}

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

.suitability-heading h2 {
  margin: 4px 0 0;
  font-size: 25px;
}

.suitability-heading > span {
  max-width: 112px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-align: right;
}

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

.suitability-card {
  --suitability-color: #facc15;
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 17px 15px;
  border: 1px solid #d2dbd3;
  border-left: 5px solid var(--suitability-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.suitability-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--suitability-color) 17%, white);
  color: color-mix(in srgb, var(--suitability-color) 78%, #101510);
  font-size: 21px;
  font-weight: 900;
}

.suitability-score em {
  margin-bottom: 1px;
  color: color-mix(in srgb, var(--suitability-color) 74%, #35423b);
  font-size: 9px;
  font-style: normal;
  font-weight: 760;
}

.suitability-score span { line-height: 1; }
.suitability-score small { margin-left: 1px; font-size: 10px; }
.suitability-card h3 { margin: 1px 0 3px; font-size: 18px; }
.suitability-card strong { display: block; font-size: 12px; line-height: 1.45; }
.suitability-card p { margin: 6px 0 0; color: #5b655f; font-size: 12px; line-height: 1.55; }
.suitability-card details { margin-top: 8px; }
.suitability-card summary { color: var(--brand-dark); font-size: 11px; font-weight: 760; cursor: pointer; }
.suitability-card details p { margin-top: 5px; font-size: 11px; }

.suitability-share {
  width: 38px;
  height: 38px;
  border: 1px solid #ced8d0;
  border-radius: 50%;
  background: #fff;
  color: #35423b;
  font-size: 11px;
  font-weight: 760;
}

.work-choice {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}

.work-choice button {
  padding: 6px 9px;
  border: 1px solid #ccd5ce;
  border-radius: 5px;
  background: #fff;
  color: #3b4740;
  font-size: 11px;
}

.work-choice button.is-selected {
  border-color: var(--suitability-color);
  background: color-mix(in srgb, var(--suitability-color) 14%, white);
  color: #172019;
  font-weight: 800;
}

.account-qr-sheet > img {
  width: min(100%, 280px);
  image-rendering: crisp-edges;
}

.account-qr-code {
  display: block;
  margin-top: 14px;
  font-size: 27px;
  letter-spacing: 0;
  text-align: center;
}

.account-invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin-top: 14px;
  padding: 8px 8px 8px 11px;
  border: 1px solid #d8dfd9;
  border-radius: 7px;
  background: #f5f7f4;
}

.account-invite-row span {
  min-width: 0;
  overflow: hidden;
  color: #6d756f;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-invite-row button,
.account-qr-done {
  border: 0;
  background: transparent;
  color: #2f6f50;
  font-size: 11px;
  font-weight: 800;
}

.account-qr-done {
  width: 100%;
  min-height: 40px;
  margin-top: 5px;
  color: #727a74;
}

.today-page .focus-section {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.today-page .daily-heading h1 {
  margin: 4px 0 0;
  font-size: 34px;
  line-height: 1.15;
}

.daily-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.daily-heading h2 {
  margin-bottom: 0;
}

.daily-reset {
  flex: 0 0 auto;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.daily-date-rail {
  display: flex;
  gap: 8px;
  margin: 0 -24px 26px;
  padding: 2px 24px 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.daily-date-rail::-webkit-scrollbar {
  display: none;
}

.daily-date-button {
  position: relative;
  flex: 0 0 72px;
  min-height: 76px;
  padding: 11px 6px 14px;
  border: 1px solid #d1d9d2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.4);
  color: #68716e;
  text-align: center;
  scroll-snap-align: center;
  cursor: pointer;
}

.daily-date-button small,
.daily-date-button strong {
  display: block;
}

.daily-date-button small {
  font-size: 11px;
  font-weight: 680;
}

.daily-date-button strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 15px;
}

.daily-date-button i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  border-radius: 0 0 7px 7px;
  background: var(--daily-tone-color, var(--yellow));
}

.daily-date-button.is-selected {
  border-color: #1c2420;
  background: #fff;
  color: #1c2420;
  box-shadow: 0 8px 20px rgba(35, 47, 39, 0.1);
}

.daily-compass {
  --daily-tone-color: var(--green);
  padding-top: 19px;
  border-top: 5px solid var(--daily-tone-color);
}

.today-page .daily-compass {
  position: relative;
  margin: 0 -6px;
  padding: 28px 22px 24px;
  overflow: hidden;
  border: 1px solid #d3ddd3;
  border-top: 8px solid var(--daily-tone-color);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(41, 64, 48, 0.09);
}

.daily-yi-mark {
  position: absolute;
  top: 22px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #facc15;
  color: #17221a;
  font-size: 22px;
  font-weight: 900;
}

.today-page .daily-compass h2 {
  max-width: calc(100% - 58px);
  margin: 30px 0 9px;
  font-size: 36px;
  line-height: 1.15;
}

.daily-tone-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.daily-tone {
  padding: 5px 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--daily-tone-color) 16%, white);
  color: color-mix(in srgb, var(--daily-tone-color) 78%, #111);
}

.daily-compass h3 {
  margin: 16px 0 7px;
  font-size: 30px;
  line-height: 1.16;
}

.daily-lead {
  margin: 0;
  color: #4e5753;
  font-size: 16px;
  line-height: 1.7;
}

.daily-status {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 17px 0 23px;
}

.daily-status span {
  padding: 6px 9px;
  border: 1px solid #ced7d0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  color: #48524d;
  font-size: 11px;
  font-weight: 700;
}

.daily-action-list {
  border-top: 1px solid #d4ddd5;
}

.daily-action-list > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid #d4ddd5;
}

.daily-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--daily-tone-color);
  border-radius: 50%;
  color: color-mix(in srgb, var(--daily-tone-color) 80%, #111);
  font-size: 11px;
  font-weight: 800;
}

.daily-gear-swatch {
  border-color: rgba(22, 28, 25, 0.18);
  background: var(--daily-gear-color, #81909b);
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.72);
}

.daily-action-list p {
  margin: 0;
}

.daily-action-list small,
.daily-action-list strong,
.daily-action-list em {
  display: block;
}

.daily-action-list small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.daily-action-list strong {
  font-size: 16px;
  line-height: 1.55;
}

.daily-action-list em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.55;
}

.daily-boundary {
  margin: 24px 0 19px;
  padding: 18px 0 0 16px;
  border-top: 1px solid #d8c7c1;
  border-left: 3px solid #d96254;
}

.daily-boundary small,
.daily-boundary strong {
  display: block;
}

.daily-boundary small {
  color: #a44c43;
  font-size: 10px;
  font-weight: 760;
}

.daily-boundary strong {
  margin-top: 5px;
  font-size: 18px;
}

.daily-boundary p,
.daily-why p {
  margin: 7px 0 0;
  color: #59615d;
  font-size: 13px;
  line-height: 1.65;
}

.daily-why {
  border-top: 1px solid #d4ddd5;
  border-bottom: 1px solid #d4ddd5;
}

.daily-why summary {
  padding: 15px 0;
  color: #323a36;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.daily-why p {
  margin: -3px 0 16px;
}

.share-poster-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(19, 25, 21, 0.56);
  backdrop-filter: blur(8px);
}

.share-poster-sheet {
  position: fixed;
  right: 50%;
  bottom: 0;
  z-index: 61;
  width: min(100%, 480px);
  max-height: 92svh;
  padding: 22px 20px calc(24px + var(--safe-bottom));
  overflow-y: auto;
  border-radius: 8px 8px 0 0;
  background: #f5f7f4;
  transform: translateX(50%);
}

.share-poster-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.share-poster-heading h2 {
  margin: 3px 0 0;
  font-size: 24px;
}

.share-poster-heading > button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 24px;
  cursor: pointer;
}

.share-poster-sheet > img {
  display: block;
  width: min(100%, 360px);
  margin: 0 auto;
  border: 1px solid #d4ddd5;
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 44px rgba(20, 27, 22, 0.12);
}

.share-poster-sheet > p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.share-poster-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.share-poster-actions .primary-action,
.share-poster-actions .secondary-action {
  display: grid;
  place-items: center;
  min-height: 50px;
  margin: 0;
  text-decoration: none;
}

.focus-action p strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.topic-section {
  background: var(--surface);
}

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

.topic-card {
  display: flex;
  min-width: 0;
  min-height: 214px;
  padding: 16px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #d8ddd8;
  border-top: 4px solid var(--topic-color);
  border-radius: 8px;
  background: #fafbf9;
  text-align: left;
  cursor: pointer;
}

.topic-card--career { --topic-color: #5795e8; }
.topic-card--finance { --topic-color: #e9b52f; }
.topic-card--support { --topic-color: #35b779; }
.topic-card--romance { --topic-color: #a67af2; }

.topic-card > span {
  color: var(--topic-color);
  font-size: 11px;
  font-weight: 760;
}

.topic-card > strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.35;
}

.topic-card > small {
  min-height: 48px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.topic-card svg {
  width: 100%;
  height: 42px;
  margin: 5px 0 0;
}

.topic-trend {
  width: 100%;
  margin: 11px 0 12px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--topic-color) 24%, #d8ddd8);
}

.topic-trend em {
  display: block;
  color: var(--topic-color);
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
}

.topic-card > b {
  margin-top: auto;
  color: var(--topic-color);
  font-size: 11px;
}

.topic-row {
  display: grid;
  grid-template-columns: 1fr auto 20px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 65px;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.topic-row:last-child {
  border-bottom: 1px solid var(--line);
}

.topic-row span {
  font-weight: 700;
}

.topic-row strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.topic-row b {
  color: var(--brand);
}

/* Deep-report prototype */
.field-meta {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.city-combobox {
  position: relative;
}

.city-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 25;
  max-height: 256px;
  overflow-y: auto;
  border: 1px solid #cbd2cb;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.city-suggestions button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.city-suggestions button:last-child {
  border-bottom: 0;
}

.city-suggestions button:hover,
.city-suggestions button:focus-visible,
.city-suggestions button.is-active {
  outline: 0;
  background: #f0f2ef;
}

.city-suggestions strong,
.city-suggestions small {
  display: block;
}

.city-suggestions strong {
  font-size: 14px;
}

.city-suggestions small,
.city-suggestions span {
  color: var(--muted);
  font-size: 10px;
}

.solar-time-panel {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid #d4dad4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.solar-time-panel div {
  display: grid;
  gap: 4px;
}

.solar-time-panel div:last-of-type {
  text-align: right;
}

.solar-time-panel span {
  color: var(--muted);
  font-size: 10px;
}

.solar-time-panel strong {
  font-size: 20px;
  font-weight: 720;
}

.solar-time-panel div:last-of-type strong {
  color: var(--brand-dark);
}

.solar-time-panel .solar-arrow {
  color: #9ba29b;
  font-size: 17px;
  text-align: center;
}

.solar-time-panel p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.report-screen {
  padding-bottom: calc(72px + var(--safe-bottom));
}

.result-page,
.detail-page,
.cycles-page,
.bazi-page,
.area-detail-page,
.cycle-detail-page {
  padding: 38px 24px calc(50px + var(--safe-bottom));
}

.result-intro {
  min-height: auto;
  padding: 12px 0 44px;
}

.result-page h1,
.detail-page h1,
.cycles-page h1,
.bazi-page h1,
.area-detail-page h1,
.cycle-detail-page h1 {
  margin-bottom: 14px;
  font-size: 32px;
  line-height: 1.18;
}

/* Life area detail */
.area-hero,
.area-reading,
.area-window,
.area-actions,
.cycle-detail-hero,
.cycle-story,
.cycle-domains,
.cycle-decision {
  margin: 0 -24px;
  padding: 34px 24px;
  border-top: 1px solid var(--line);
}

.area-hero {
  margin-top: 30px;
  background: color-mix(in srgb, var(--area-color) 8%, white);
}

.area-hero-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.area-hero-heading small,
.area-hero-heading strong {
  display: block;
}

.area-hero-heading small {
  color: var(--muted);
  font-size: 10px;
}

.area-hero-heading strong {
  margin-top: 4px;
  font-size: 19px;
}

.area-hero-heading > span {
  color: var(--area-color);
  font-size: 38px;
  font-weight: 780;
  line-height: 1;
}

.area-hero svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 22px;
}

.area-chart-caption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  color: var(--muted);
  font-size: 9px;
}

.area-chart-caption strong {
  color: #4e5660;
  text-align: center;
}

.area-reading h2,
.area-window h2,
.area-actions h2,
.cycle-story h2,
.cycle-domains h2,
.cycle-decision h2 {
  margin: 8px 0 18px;
  font-size: 23px;
}

.area-reading > p:last-of-type,
.cycle-decision > p:last-of-type {
  color: #4e5660;
  font-size: 15px;
  line-height: 1.75;
}

.area-evidence {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.area-evidence div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.area-evidence small { color: var(--muted); font-size: 10px; }
.area-evidence strong { font-size: 13px; line-height: 1.5; }

.area-window {
  background: #f3f5f1;
}

#area-window-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: start;
}

#area-window-card > span {
  padding-top: 10px;
  border-top: 4px solid var(--area-color);
  color: var(--area-color);
  font-size: 15px;
  font-weight: 760;
}

#area-window-card strong { font-size: 17px; }
#area-window-card p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

#area-action-list {
  border-top: 1px solid var(--line);
}

#area-action-list > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

#area-action-list span { color: #9ba2a9; font-family: ui-monospace, monospace; font-size: 11px; }
#area-action-list p { margin: 0; font-size: 14px; line-height: 1.55; }

.area-switcher {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin: 28px 0 20px;
  padding: 3px;
  border-radius: 8px;
  background: #e8ece8;
}

.area-switcher button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.area-switcher button.is-selected {
  background: white;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(23,26,31,.07);
  font-weight: 760;
}

.area-switcher--sticky {
  position: sticky;
  top: calc(64px + var(--safe-top));
  z-index: 18;
  margin: 0;
  padding: 8px 24px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(232, 236, 232, 0.96);
  backdrop-filter: blur(16px);
}

/* Ten-year cycle detail */
.cycle-detail-hero {
  margin-top: -38px;
  padding-top: 48px;
  border-top: 7px solid var(--cycle-color);
  background: color-mix(in srgb, var(--cycle-color) 12%, white);
}

.cycle-detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.cycle-detail-title h1 { margin: 6px 0 4px; }
.cycle-detail-title p { margin: 0; color: var(--muted); font-size: 12px; }
.cycle-detail-title > span { padding: 7px 9px; border: 1px solid color-mix(in srgb, var(--cycle-color) 52%, #b8c0ba); border-radius: 5px; color: #40474e; font-size: 11px; font-weight: 760; }
#cycle-detail-lead { margin: 24px 0 0; color: #454d55; font-size: 16px; line-height: 1.75; }
#cycle-detail-chart { display: block; width: 100%; height: auto; margin-top: 24px; }

#cycle-story-phases {
  border-left: 1px solid #d1d8d2;
}

#cycle-story-phases > div {
  position: relative;
  padding: 0 0 24px 24px;
}

#cycle-story-phases > div::before {
  position: absolute;
  top: 2px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cycle-color, #5967e8);
  content: "";
}

#cycle-story-phases span { color: var(--muted); font-size: 10px; }
#cycle-story-phases strong { display: block; margin-top: 3px; font-size: 16px; }
#cycle-story-phases p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.cycle-domains { background: #f3f5f1; }
#cycle-domain-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #d7ddd7; border-left: 1px solid #d7ddd7; }
#cycle-domain-grid > div { min-height: 108px; padding: 16px; border-right: 1px solid #d7ddd7; border-bottom: 1px solid #d7ddd7; }
#cycle-domain-grid span { display: block; color: var(--domain-color, var(--muted)); font-size: 10px; font-weight: 760; }
#cycle-domain-grid strong { display: block; margin-top: 8px; font-size: 14px; line-height: 1.5; }
#cycle-domain-grid p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.cycle-decision #open-cycle-chart { margin-top: 24px; }

.result-page .signature--large {
  margin-bottom: 22px;
}

.result-page .result-lead {
  margin-bottom: 0;
}

.section-heading--compact {
  align-items: end;
  margin-bottom: 20px;
}

.section-heading--compact h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
}

.section-heading--compact p:not(.eyebrow) {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.overview-chart-section,
.highlight-section,
.dayun-preview,
.bazi-preview,
.reading-band,
.year-reading-section,
.pillar-section,
.wuxing-section,
.strength-section,
.support-section {
  margin: 0 -24px;
  padding: 36px 24px;
  border-top: 1px solid var(--line);
}

.lifestyle-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.lifestyle-scene {
  position: relative;
  display: flex;
  min-height: 142px;
  padding: 14px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 8px;
  color: white;
}

.lifestyle-scene::before,
.lifestyle-scene::after {
  position: absolute;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 50%;
  content: "";
}

.lifestyle-scene::before { top: 15px; right: 16px; width: 58px; height: 58px; }
.lifestyle-scene::after { top: 39px; right: 39px; width: 28px; height: 28px; }
.lifestyle-scene--fire { background: #e8613c; }
.lifestyle-scene--wood { background: #278b68; }
.lifestyle-scene span { position: relative; font-size: 10px; opacity: .82; }
.lifestyle-scene strong { position: relative; margin-top: 4px; font-size: 14px; line-height: 1.35; }

.lifestyle-guide-grid {
  margin-top: 24px;
  border-top: 1px solid #d2dad2;
}

.lifestyle-guide-grid > div {
  padding: 16px 0;
  border-bottom: 1px solid #d2dad2;
}

.lifestyle-guide-grid small,
.lifestyle-guide-grid strong,
.lifestyle-guide-grid p { display: block; }
.lifestyle-guide-grid small { color: var(--brand-dark); font-size: 10px; font-weight: 760; }
.lifestyle-guide-grid strong { margin-top: 5px; font-size: 14px; line-height: 1.5; }
.lifestyle-guide-grid p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.overview-chart-section {
  background: #f9faf8;
}

.overview-chart-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.overview-chart-button svg {
  display: block;
  width: 100%;
  height: auto;
}

.overview-current-pulse-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: overview-heartbeat 2.2s ease-in-out infinite;
}

.overview-current-pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0.22;
  animation: overview-pulse-ring 2.2s ease-out infinite;
}

@keyframes overview-heartbeat {
  0%, 38%, 100% { transform: scale(1); }
  46% { transform: scale(1.14); }
  54% { transform: scale(1.03); }
  62% { transform: scale(1.1); }
}

@keyframes overview-pulse-ring {
  0%, 34% { opacity: 0; transform: scale(0.82); }
  46% { opacity: 0.24; transform: scale(1); }
  76%, 100% { opacity: 0; transform: scale(1.85); }
}

.overview-chart-caption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
}

.overview-chart-caption strong {
  color: #4f5660;
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}

.highlight-section {
  background: #f2f4f0;
}

.moment-list {
  border-top: 1px solid var(--line);
}

.moment-list button {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 84px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.moment-age {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 760;
}

.moment-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

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

.moment-list small {
  color: var(--muted);
  font-size: 11px;
}

.moment-list svg {
  display: block;
  width: 96px;
  height: 42px;
  overflow: visible;
}

.dayun-preview {
  background: var(--surface);
}

.current-cycle-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  width: 100%;
  padding: 18px;
  border: 1px solid #d6dcd6;
  border-radius: 8px;
  background: #fafbf9;
  text-align: left;
  cursor: pointer;
}

.current-cycle-card > div strong,
.current-cycle-card > div small {
  display: block;
}

.current-cycle-card > div strong {
  font-size: 16px;
}

.current-cycle-card > div small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.current-cycle-card p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: #505760;
  font-size: 14px;
  line-height: 1.65;
}

.cycle-tone {
  display: inline-flex;
  align-items: center;
  align-self: start;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.cycle-tone--green { background: rgba(35, 141, 114, 0.13); color: #16765f; }
.cycle-tone--yellow { background: rgba(215, 174, 54, 0.18); color: #886917; }
.cycle-tone--orange { background: rgba(223, 123, 66, 0.15); color: #a64f20; }
.cycle-tone--red { background: rgba(215, 94, 95, 0.14); color: #a54143; }

.bazi-preview {
  background: #edf1f5;
}

.foundation-summary {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 18px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.foundation-grade {
  display: grid;
  align-content: start;
  padding-right: 14px;
  border-right: 1px solid #ced6dd;
}

.foundation-grade span,
.foundation-grade strong,
.foundation-grade small {
  display: block;
}

.foundation-grade span {
  color: var(--muted);
  font-size: 10px;
}

.foundation-grade strong {
  margin: 5px 0;
  font-size: 25px;
}

.foundation-grade small {
  color: var(--brand-dark);
  font-size: 10px;
  line-height: 1.4;
}

.mini-elements {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  height: 94px;
  gap: 8px;
}

.mini-elements i {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  height: var(--v);
  min-height: 22px;
  border-radius: 3px 3px 0 0;
  background: var(--c);
  font-style: normal;
}

.mini-elements span {
  position: absolute;
  bottom: -19px;
  color: #5d646d;
  font-size: 10px;
}

.foundation-summary > p {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  padding-top: 16px;
  border-top: 1px solid #ced6dd;
  color: #505760;
  font-size: 14px;
  line-height: 1.65;
}

.mobile-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 24;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 480px);
  min-height: calc(68px + var(--safe-bottom));
  padding: 7px 12px var(--safe-bottom);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.mobile-nav button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #858c94;
  font-size: 10px;
  cursor: pointer;
}

.mobile-nav button span {
  font-size: 19px;
  line-height: 1;
}

.mobile-nav button.is-active {
  color: var(--brand-dark);
  font-weight: 760;
}

.chart-range-control,
.wuxing-layer-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: #e6eae6;
}

.chart-range-control button,
.wuxing-layer-control button {
  min-height: 40px;
  padding: 0 5px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.chart-range-control button.is-selected,
.wuxing-layer-control button.is-selected {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(23, 26, 31, 0.07);
  font-weight: 760;
}

.detail-chart-wrap {
  position: relative;
  margin: 18px -24px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8faf8;
}

.detail-chart-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
  touch-action: pan-y;
  user-select: none;
}

.detail-chart-wrap svg.is-dragging {
  cursor: ew-resize;
}

.chart-tools {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  margin-top: -5px;
  padding: 0 12px 10px;
  pointer-events: none;
}

.chart-tools button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(76, 87, 98, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #36404a;
  box-shadow: 0 4px 14px rgba(28, 36, 45, 0.12);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(8px);
}

.chart-tools button[aria-pressed="true"] {
  border-color: #5967e8;
  color: #4453dc;
}

body.chart-landscape-open {
  overflow: hidden;
}

.detail-chart-wrap.is-landscape {
  position: fixed;
  z-index: 100;
  margin: 0;
  border: 0;
  background: #f8faf8;
}

.detail-chart-wrap.is-landscape svg {
  width: 100%;
  height: 100%;
}

.detail-chart-wrap.is-landscape .chart-tools {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  margin: 0;
  padding: 0;
}

.detail-cycle-card {
  margin: 0 0 16px;
  padding: 22px 20px;
  border: 1px solid color-mix(in srgb, var(--cycle-color) 46%, #dce2dd);
  border-top: 5px solid var(--cycle-color);
  border-radius: 8px;
  background: color-mix(in srgb, var(--cycle-color) 9%, white);
}

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

.detail-cycle-head h2 {
  margin: 3px 0 5px;
  font-size: 20px;
  line-height: 1.32;
}

.detail-cycle-head small {
  color: var(--muted);
  font-size: 12px;
}

.detail-cycle-grid {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid rgba(74, 82, 91, 0.14);
}

.detail-cycle-grid > div {
  padding: 15px 0;
  border-bottom: 1px solid rgba(74, 82, 91, 0.14);
}

.detail-cycle-grid > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-cycle-grid small,
.reading-points small,
.year-guidance small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.detail-cycle-grid strong,
.reading-points strong,
.year-guidance strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.detail-cycle-grid p {
  margin: 6px 0 0;
  color: #59616a;
  font-size: 12px;
  line-height: 1.65;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0 8px;
}

.chart-legend button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d5dad5;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.chart-legend button.is-selected {
  border-color: #aeb7af;
  background: var(--surface);
  color: var(--ink);
}

.domain-line-control {
  margin: 0 0 30px;
  padding: 16px;
  border: 1px solid #d8ddd8;
  border-radius: 8px;
  background: #f5f7f4;
}

.domain-line-control > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.domain-line-control strong {
  font-size: 13px;
}

.domain-line-control small {
  color: var(--muted);
  font-size: 9px;
}

.domain-line-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.domain-line-buttons button {
  display: flex;
  min-width: 0;
  min-height: 38px;
  padding: 0 7px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #d7dcd7;
  border-radius: 6px;
  background: rgba(255,255,255,.66);
  color: color-mix(in srgb, var(--line-color) 68%, #171a1f);
  font-size: 12px;
  font-weight: 760;
  opacity: 1;
  cursor: pointer;
}

.domain-line-buttons button i {
  width: 13px;
  height: 0;
  border-top: 2px solid var(--line-color);
}

.domain-line-buttons button.is-selected {
  border-color: color-mix(in srgb, var(--line-color) 64%, white);
  background: color-mix(in srgb, var(--line-color) 9%, white);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--line-color) 12%, transparent);
  color: color-mix(in srgb, var(--line-color) 76%, #171a1f);
}

.line-sample {
  width: 18px;
  height: 0;
  border-top: 2px solid var(--brand);
}

.event-bar-pair {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 14px;
}

.event-bar-pair::after {
  position: absolute;
  top: 7px;
  right: 0;
  left: 0;
  height: 1px;
  background: #aeb5ba;
  content: "";
}

.event-bar-pair b {
  position: absolute;
  left: 50%;
  z-index: 1;
  width: 3px;
  border-radius: 2px;
  transform: translateX(-50%);
}

.event-bar-pair b:first-child {
  top: 0;
  bottom: 7px;
  background: #20b96b;
}

.event-bar-pair b:last-child {
  top: 7px;
  bottom: 0;
  background: #e34b4b;
}

.event-support-dot,
.event-pressure-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.event-support-dot { background: #20b96b; }
.event-pressure-dot { background: #e34b4b; }

.event-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 22px;
  color: #555d66;
  font-size: 10px;
}

.event-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.taisui-bar-sample,
.taisui-bar-key {
  display: inline-block;
  width: 4px;
  height: 13px;
  border-radius: 2px 2px 0 0;
  background: #f08a24;
}

.taisui-bar-key {
  width: 3px;
  height: 11px;
}

.reading-band {
  background: #e9ecf9;
}

.reading-band h2,
.year-reading-section h2 {
  margin-bottom: 14px;
  font-size: 23px;
}

.reading-band #chart-reading-copy,
.year-reading-section > p {
  margin-bottom: 0;
  color: #4d545d;
  font-size: 14px;
  line-height: 1.7;
}

.reading-points,
.year-guidance {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid rgba(71, 78, 92, 0.15);
}

.reading-points > div,
.year-guidance > div {
  padding: 14px 0;
  border-bottom: 1px solid rgba(71, 78, 92, 0.15);
}

.reading-points > div:last-child,
.year-guidance > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.year-guidance {
  margin-top: 18px;
}

.sample-birth-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 9px 0 14px;
  color: #697079;
  font-size: 11px;
}

.sample-birth-meta span {
  position: relative;
}

.sample-birth-meta span + span::before {
  position: absolute;
  left: -8px;
  color: #bec4c0;
  content: "·";
}

@media (orientation: portrait) {
  .detail-chart-wrap.is-landscape {
    top: 50%;
    left: 50%;
    width: 100vh;
    height: 100vw;
    transform: translate(-50%, -50%) rotate(90deg);
  }
}

@media (orientation: landscape) {
  .detail-chart-wrap.is-landscape {
    inset: 0;
    width: 100vw;
    height: 100vh;
  }
}

.year-reading-section {
  background: var(--surface);
}

.year-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.year-metrics span {
  padding: 14px 5px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.year-metrics span:last-child {
  border-right: 0;
}

.year-metrics small,
.year-metrics strong {
  display: block;
}

.year-metrics small {
  color: var(--muted);
  font-size: 10px;
}

.year-metrics strong {
  margin-top: 5px;
  font-size: 15px;
}

.cycle-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 92px;
  gap: 3px;
  margin: 6px -24px 26px;
  padding: 0 24px 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.cycle-rail button {
  min-height: 82px;
  padding: 10px 7px;
  border: 1px solid rgba(23, 26, 31, 0.06);
  border-top: 6px solid var(--cycle-color);
  border-radius: 6px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.cycle-rail button strong,
.cycle-rail button small {
  display: block;
}

.cycle-rail button strong {
  font-size: 13px;
}

.cycle-rail button small {
  margin-top: 4px;
  color: rgba(23, 26, 31, 0.6);
  font-size: 9px;
  line-height: 1.4;
}

.cycle-rail button.is-current {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.current-cycle-reading {
  margin: 0 0 34px;
  padding: 22px;
  border-left: 4px solid var(--orange);
  background: var(--surface);
}

.current-cycle-reading h2 {
  margin: 10px 0 5px;
  font-size: 22px;
}

.current-cycle-reading small {
  color: var(--muted);
}

.current-cycle-reading p {
  margin: 16px 0 0;
  color: #4f5660;
  font-size: 14px;
  line-height: 1.7;
}

.cycle-list {
  border-top: 1px solid var(--line);
}

.cycle-list button {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 14px;
  align-items: start;
  width: 100%;
  min-height: 108px;
  padding: 17px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.cycle-list button.is-current {
  background: rgba(89, 103, 232, 0.045);
}

.cycle-list .cycle-index {
  color: #a1a7ae;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 24px;
}

.cycle-list strong,
.cycle-list small,
.cycle-list p {
  display: block;
}

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

.cycle-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.cycle-list p {
  grid-column: 2 / -1;
  margin: -4px 0 0;
  color: #565d66;
  font-size: 12px;
  line-height: 1.55;
}

.pillar-section,
.wuxing-section,
.strength-section,
.support-section {
  background: transparent;
}

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

.pillar-grid > div {
  padding: 15px 5px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.pillar-grid > div:last-child {
  border-right: 0;
}

.pillar-grid > div.is-day {
  background: rgba(89, 103, 232, 0.08);
}

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

.pillar-grid small {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
}

.pillar-grid strong {
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 22px;
  line-height: 1.4;
}

.wuxing-section {
  background: #f9faf8;
}

.wuxing-bars {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.wuxing-row {
  display: grid;
  grid-template-columns: 24px 1fr 34px;
  gap: 10px;
  align-items: center;
}

.wuxing-row > span {
  font-weight: 760;
}

.wuxing-row > div {
  height: 12px;
  overflow: hidden;
  border-radius: 3px;
  background: #e2e6e2;
}

.wuxing-row i {
  display: block;
  width: var(--v);
  height: 100%;
  border-radius: inherit;
  background: var(--c);
}

.wuxing-row strong {
  font-size: 12px;
  text-align: right;
}

.wuxing-explanation {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.strength-visual {
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 22px;
  align-items: center;
}

.capacity-bowl {
  position: relative;
  width: 98px;
  height: 62px;
  overflow: hidden;
  border: 3px solid #6a737e;
  border-top: 0;
  border-radius: 5px 5px 48px 48px;
}

.capacity-bowl span {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  height: 68%;
  border-radius: 3px 3px 38px 38px;
  background: #8793e8;
}

.strength-visual strong,
.strength-visual small {
  display: block;
}

.strength-visual strong {
  font-size: 24px;
}

.strength-visual small {
  margin-top: 2px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
}

.strength-visual p {
  margin: 12px 0 0;
  color: #505760;
  font-size: 13px;
  line-height: 1.6;
}

.support-section {
  background: #eef3ef;
}

.support-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.support-tags span {
  padding: 7px 10px;
  border: 1px solid #cfd6cf;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.62);
  color: #555c64;
  font-size: 11px;
}

.support-tags span.is-primary {
  border-color: rgba(35, 141, 114, 0.4);
  color: #176f5b;
}

.support-tags span.is-avoid {
  border-color: rgba(215, 94, 95, 0.35);
  color: #a04245;
}

.life-guides {
  margin-top: 22px;
  border-top: 1px solid #d2dad2;
}

.life-guides div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #d2dad2;
}

.life-guides small {
  color: var(--muted);
  font-size: 10px;
}

.life-guides strong {
  font-size: 13px;
  line-height: 1.5;
}

.professional-details {
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.professional-details summary {
  padding: 18px 0;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.professional-details[open] summary {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.professional-details > div {
  padding: 0 0 18px;
}

.professional-details > div strong {
  font-size: 14px;
}

.professional-details > div p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(23, 26, 31, 0.36);
}

.path-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 31;
  width: min(100%, 480px);
  padding: 12px 24px calc(24px + var(--safe-bottom));
  border-radius: 8px 8px 0 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  animation: sheet-in 220ms ease both;
}

@keyframes sheet-in {
  from { transform: translate(-50%, 100%); }
  to { transform: translate(-50%, 0); }
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 24px;
  border-radius: 2px;
  background: #d0d5cf;
}

.path-sheet h2 {
  margin-bottom: 4px;
  font-size: 27px;
}

.sheet-time {
  color: var(--muted);
  font-size: 12px;
}

.path-sheet h3 {
  margin: 26px 0 4px;
  font-size: 18px;
}

.path-sheet > p:last-of-type {
  margin: 20px 0 24px;
  color: #50565f;
  line-height: 1.6;
}

.sheet-actions {
  display: grid;
  gap: 8px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 359px) {
  .hero,
  .form-page,
  .paths-page,
  .result-page,
  .detail-page,
  .cycles-page,
  .bazi-page,
  .today-page,
  .sample-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .profiles-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .anonymous-own-cta {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .climate-table,
  .phase-band,
  .today-preview,
  .topic-section,
  .overview-chart-section,
  .highlight-section,
  .dayun-preview,
  .bazi-preview,
  .reading-band,
  .year-reading-section,
  .pillar-section,
  .wuxing-section,
  .strength-section,
  .support-section,
  .detail-chart-wrap,
  .cycle-rail {
    margin-left: -18px;
    margin-right: -18px;
  }

  .overview-chart-section,
  .highlight-section,
  .dayun-preview,
  .bazi-preview,
  .reading-band,
  .year-reading-section,
  .pillar-section,
  .wuxing-section,
  .strength-section,
  .support-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cycle-rail {
    padding-left: 18px;
    padding-right: 18px;
  }

  .strength-visual {
    grid-template-columns: 86px 1fr;
    gap: 14px;
  }

  .capacity-bowl {
    width: 82px;
    height: 54px;
  }

  .climate-header,
  .climate-row {
    grid-template-columns: 82px repeat(8, minmax(19px, 1fr));
    padding-left: 8px;
    padding-right: 8px;
    gap: 2px;
  }

  .road-stage {
    margin-left: -18px;
    margin-right: -18px;
  }
}

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

  .overview-current-pulse-dot,
  .overview-current-pulse-ring {
    animation: none !important;
  }
}
.profile-category-select {
  appearance: auto;
  color: #1d2420;
  background: #fff;
}

.profile-category-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #edf2ed;
  color: #5d6b61;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  vertical-align: 2px;
}
