:root {
  color-scheme: dark;
  font-family: var(--font-body);
  --bg: #090a0c;
  --bg-raised: #0f1114;
  --surface: #14171a;
  --surface-soft: #191d20;
  --surface-warm: #1d1a17;
  --text: #f0eee8;
  --text-soft: #c3c0b8;
  --muted: #858b8d;
  --line: #292e31;
  --line-strong: #3a4245;
  --gold: #d5b66d;
  --gold-soft: #8f7440;
  --teal: #69b7ad;
  --teal-deep: #2d625d;
  --ember: #cb765e;
  --blue: #6f90b7;
  --danger: #b76b6b;
  --content-max: 1440px;
  --rail-width: 250px;
  --radius-control: 14px;
  --radius-panel: 26px;
  --radius-pill: 999px;
  --font-body: "Aptos", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Bahnschrift Condensed", "Bahnschrift", "Rajdhani", "Barlow Condensed", "Saira Condensed", "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
  --font-meta: "Bahnschrift", "Rajdhani", "Barlow Condensed", "Saira Condensed", "Arial Narrow", "Segoe UI", sans-serif;

  /* ==== Glassmorphism design tokens — canonical values from the approved Intake benchmark ====
     Reuse these for any future frosted-glass panel or capsule control so new screens stay
     visually consistent with Intake instead of drifting into a separate visual language. */
  --glass-border: rgba(213, 182, 109, 0.2);
  --glass-border-strong: rgba(213, 182, 109, 0.42);
  --glass-blur-strong: 24px;
  --glass-blur-medium: 18px;
  --glass-blur-soft: 14px;
  --glass-panel-bg: linear-gradient(180deg, rgba(16, 18, 21, 0.28), rgba(8, 9, 11, 0.35));
  --glass-overlay-bg: linear-gradient(180deg, rgba(240, 238, 232, 0.03), transparent 40%), rgba(4, 5, 6, 0.32);
  --glass-control-fill: rgba(3, 4, 5, 0.55);
  --glass-chip-fill: rgba(12, 13, 13, 0.92);
  --glass-panel-shadow:
    0 32px 70px rgba(0, 0, 0, 0.48),
    inset 0 1px rgba(240, 238, 232, 0.06),
    0 0 46px rgba(213, 182, 109, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(213, 182, 109, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 183, 173, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

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

button {
  font-family: var(--font-meta);
}

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

button {
  color: inherit;
}

button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

input:focus-visible {
  outline: 0;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
ol,
ul {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  font-weight: 600;
  letter-spacing: 0.005em;
}

.map-hero h2,
.location-picker h2 {
  font-family: var(--font-display);
  font-weight: 520;
}

p {
  color: var(--text-soft);
}

small {
  color: var(--muted);
}

.product-shell {
  width: min(100%, var(--content-max));
  min-height: 100vh;
  margin: 0 auto;
  border-right: 0;
  border-left: 0;
  background: rgba(9, 10, 12, 0.96);
}

.product-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 28px;
  border-bottom: 0;
  background: rgba(9, 10, 12, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 20px;
}

.brand > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.brand strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  overflow: hidden;
  font-family: var(--font-meta);
  font-size: 9px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-context {
  display: flex;
  align-items: center;
  gap: 20px;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.system-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(105, 183, 173, 0.6);
}

.system-status.is-benchmark {
  color: var(--gold);
}

.system-status.is-benchmark i {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(213, 182, 109, 0.5);
}

.header-context button {
  display: grid;
  gap: 1px;
  min-width: 130px;
  padding: 8px 12px;
  border: 1px solid rgba(195, 192, 184, 0.1);
  border-radius: var(--radius-control);
  background: rgba(20, 23, 26, 0.46);
  text-align: left;
  cursor: pointer;
}

.header-context button span,
.header-context button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-context button span {
  font-family: var(--font-meta);
  font-size: 12px;
}

.header-context button small,
.profile-empty {
  color: var(--muted);
  font-size: 10px;
}

.workspace-shell {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: calc(100vh - 74px);
}

.flow-navigation {
  position: sticky;
  top: 74px;
  display: flex;
  height: calc(100vh - 74px);
  flex-direction: column;
  gap: 6px;
  padding: 28px 18px;
  border-right: 0;
  background: linear-gradient(180deg, rgba(12, 14, 16, 0.88), rgba(12, 14, 16, 0.72));
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.flow-step:hover:not(:disabled) {
  color: var(--text);
  background: rgba(25, 29, 32, 0.62);
}

.flow-step:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.flow-step strong {
  overflow: hidden;
  font-family: var(--font-meta);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-step-status {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  justify-self: end;
  border: 1px solid rgba(133, 139, 141, 0.4);
  border-radius: 50%;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.flow-step-check {
  color: var(--gold);
  font-size: 9px;
  line-height: 1;
}

.flow-step.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(213, 182, 109, 0.12), rgba(105, 183, 173, 0.06));
  box-shadow: inset 0 0 0 1px rgba(213, 182, 109, 0.12);
}

.flow-step.is-active::before {
  content: none;
}

.flow-step.is-active .flow-step-status {
  border-color: rgba(213, 182, 109, 0.6);
  box-shadow: 0 0 8px rgba(213, 182, 109, 0.2);
}

.flow-step.is-complete .flow-step-status {
  border-color: rgba(213, 182, 109, 0.55);
  background: rgba(213, 182, 109, 0.14);
}

.flow-navigation > p {
  margin: auto 8px 0;
  color: #656a6c;
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  line-height: 1.7;
}

.stage-canvas {
  min-width: 0;
  overflow: hidden;
}

/* Intake: immersive full-screen map canvas shell (scoped to the intake stage only) */
.product-shell--intake {
  background: transparent;
}

.product-shell--intake .product-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 25;
  justify-content: flex-end;
  min-height: 0;
  padding: 32px 32px 0;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.product-shell--intake .product-header .brand {
  display: none;
}

.product-shell--intake .product-header .header-context {
  display: none;
}

.product-shell--intake .header-context button {
  background: rgba(4, 5, 6, 0.62);
  backdrop-filter: blur(14px);
}

.product-shell--intake .workspace-shell {
  display: block;
  min-height: 100vh;
}

.product-shell--intake .stage-canvas {
  overflow: visible;
}

.product-shell--intake .flow-navigation {
  position: fixed;
  top: 32px;
  bottom: 32px;
  left: 32px;
  z-index: 20;
  width: 264px;
  height: auto;
  padding: 28px 20px 26px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-panel-bg);
  backdrop-filter: blur(var(--glass-blur-strong)) saturate(140%);
  box-shadow: var(--glass-panel-shadow);
}

/* Numerology Pillar: same floating glass shell language as Intake, but for a scrollable content screen */
.product-shell--numerology {
  background: var(--bg);
}

.product-shell--numerology .product-header {
  position: fixed;
  top: 32px;
  left: 336px;
  right: 32px;
  z-index: 25;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium));
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(240, 238, 232, 0.05),
    0 0 40px rgba(213, 182, 109, 0.04);
}

.product-shell--numerology .product-header .brand {
  display: none;
}

.product-shell--numerology .product-header .header-context {
  width: 100%;
  padding: 16px 24px;
}

.product-shell--numerology .workspace-shell {
  display: block;
  min-height: 100vh;
}

.product-shell--numerology .stage-canvas {
  overflow: visible;
  min-height: 100vh;
  padding: 122px 32px 220px 336px;
}

.product-shell--numerology .flow-navigation {
  position: fixed;
  top: 32px;
  bottom: 32px;
  left: 32px;
  z-index: 20;
  width: 264px;
  height: auto;
  padding: 28px 20px 26px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-panel-bg);
  backdrop-filter: blur(var(--glass-blur-strong)) saturate(140%);
  box-shadow: var(--glass-panel-shadow);
}

/* Human Design Pillar: same floating glass shell language as Intake / Numerology, with a
   richer cosmic backdrop plate — a premium esoteric analysis chamber, not a separate visual system. */
.product-shell--human-design {
  background:
    radial-gradient(1200px 800px at 74% 16%, rgba(213, 182, 109, 0.055), transparent 60%),
    radial-gradient(900px 700px at 16% 84%, rgba(105, 183, 173, 0.04), transparent 60%),
    repeating-radial-gradient(circle at 50% 44%, rgba(213, 182, 109, 0.018) 0, rgba(213, 182, 109, 0.018) 1px, transparent 1px, transparent 150px),
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(240, 238, 232, 0.45), transparent 60%),
    radial-gradient(1.4px 1.4px at 86% 14%, rgba(240, 238, 232, 0.38), transparent 60%),
    radial-gradient(1.4px 1.4px at 62% 72%, rgba(240, 238, 232, 0.32), transparent 60%),
    radial-gradient(1px 1px at 30% 88%, rgba(240, 238, 232, 0.28), transparent 60%),
    radial-gradient(1px 1px at 93% 62%, rgba(240, 238, 232, 0.28), transparent 60%),
    radial-gradient(1.4px 1.4px at 46% 6%, rgba(240, 238, 232, 0.32), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

.product-shell--human-design .product-header {
  position: fixed;
  top: 32px;
  left: 336px;
  right: 32px;
  z-index: 25;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium));
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(240, 238, 232, 0.05),
    0 0 40px rgba(213, 182, 109, 0.04);
}

.product-shell--human-design .product-header .brand {
  display: none;
}

.product-shell--human-design .product-header .header-context {
  width: 100%;
  padding: 16px 24px;
}

.product-shell--human-design .workspace-shell {
  display: block;
  min-height: 100vh;
}

.product-shell--human-design .stage-canvas {
  overflow: visible;
  min-height: 100vh;
  padding: 122px 32px 220px 336px;
}

.product-shell--human-design .flow-navigation {
  position: fixed;
  top: 32px;
  bottom: 32px;
  left: 32px;
  z-index: 20;
  width: 264px;
  height: auto;
  padding: 28px 20px 26px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-panel-bg);
  backdrop-filter: blur(var(--glass-blur-strong)) saturate(140%);
  box-shadow: var(--glass-panel-shadow);
}

.flow-step-featured .flow-step-status {
  border-color: rgba(213, 182, 109, 0.4);
}

.flow-step-featured-mark {
  color: var(--gold);
  font-size: 10px;
  line-height: 1;
}

.sidebar-brand {
  margin-bottom: 22px;
}

.sidebar-brand .brand strong {
  font-size: 19px;
}

.benchmark-mode-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 56px;
  padding: 10px clamp(28px, 5%, 76px);
  border-bottom: 1px solid rgba(213, 182, 109, 0.32);
  background: rgba(213, 182, 109, 0.065);
}

.benchmark-mode-notice > span {
  color: var(--gold);
  font-family: var(--font-meta);
  font-size: 9px;
}

.benchmark-mode-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.benchmark-mode-notice p strong {
  margin-right: 7px;
  color: var(--text);
}

.benchmark-mode-notice button {
  padding: 6px 8px;
  border: 1px solid var(--gold-soft);
  border-radius: 3px;
  color: var(--gold);
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}

.stage-view {
  min-height: calc(100vh - 74px);
  padding: 54px clamp(28px, 5%, 76px) 72px;
}

.stage-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  max-width: 1040px;
  margin-bottom: 46px;
}

.eyebrow {
  margin-bottom: 9px;
  color: var(--gold);
  font-family: var(--font-meta);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stage-intro h1 {
  max-width: 780px;
  font-size: 48px;
}

.stage-description {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.stage-meta {
  min-width: 170px;
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 10px;
  text-align: right;
}

.command-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.command-button-primary {
  color: #11100d;
  background: var(--gold);
}

.command-button-primary:hover {
  background: #e3c47b;
}

.command-button-secondary {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.command-button-secondary:hover {
  border-color: var(--gold-soft);
  color: var(--gold);
}

.command-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.status-mark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-family: var(--font-meta);
  font-size: 9px;
  white-space: nowrap;
}

.status-mark > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-active {
  border-color: rgba(105, 183, 173, 0.35);
  color: var(--teal);
}

.status-source {
  border-color: rgba(213, 182, 109, 0.42);
  color: var(--gold);
}

.status-pending {
  border-color: rgba(213, 182, 109, 0.35);
  color: var(--gold);
}

.status-locked {
  color: var(--muted);
}

.stage-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.stage-actions > div {
  display: grid;
  gap: 3px;
}

.stage-actions strong {
  font-size: 13px;
}

.stage-actions span {
  color: var(--muted);
  font-size: 11px;
}

.definition-list {
  display: grid;
  margin-bottom: 0;
}

.definition-list > div {
  display: grid;
  grid-template-columns: minmax(100px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.definition-list dt {
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 10px;
}

.definition-list dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.text-list {
  display: grid;
  gap: 9px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.text-list li {
  position: relative;
  padding-left: 17px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}

.text-list li::before {
  position: absolute;
  top: 8px;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--gold-soft);
  content: "";
}

/* Intake */
.intake-view {
  padding: 0;
  min-height: 100vh;
}

.profile-mode-selector {
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) repeat(2, minmax(0, 1fr));
  margin-bottom: 36px;
  border: 1px solid var(--line-strong);
  background: var(--line);
  gap: 1px;
}

.profile-mode-copy,
.mode-option {
  min-width: 0;
  padding: 20px;
  background: var(--bg-raised);
}

.profile-mode-copy {
  display: grid;
  align-content: center;
}

.profile-mode-copy h2 {
  max-width: 270px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
}

.mode-option {
  display: grid;
  align-content: start;
  gap: 8px;
}

.mode-option > span {
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 8px;
}

.mode-option > strong {
  font-family: var(--font-display);
  font-size: 13px;
}

.mode-option > p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.mode-option.is-live {
  box-shadow: inset 0 2px var(--teal);
}

.mode-option.is-benchmark {
  box-shadow: inset 0 2px var(--gold);
}

.mode-option .command-button {
  width: 100%;
  margin-top: 6px;
}

.intake-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
}

.intake-form-shell {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.intake-source-overlay {
  position: fixed;
  right: 32px;
  bottom: 32px;
  left: 336px;
  z-index: 16;
  padding: 20px 24px 22px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.48),
    inset 0 1px rgba(240, 238, 232, 0.05),
    0 0 40px rgba(213, 182, 109, 0.04);
  backdrop-filter: blur(var(--glass-blur-medium));
}

.intake-source-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--gold);
  font-family: var(--font-meta);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intake-source-icon {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}

.intake-source-rows {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
}

.intake-source-row {
  display: contents;
}

.intake-source-rows > .intake-source-row:nth-of-type(1) .source-pill {
  flex-basis: 230px;
  max-width: 250px;
}

.intake-source-rows > .intake-source-row:nth-of-type(2) .source-pill:nth-of-type(1) {
  flex-basis: 205px;
  max-width: 225px;
}

.intake-source-rows > .intake-source-row:nth-of-type(2) .source-pill:nth-of-type(2) {
  flex-basis: 175px;
  max-width: 195px;
}

.source-pill {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  flex: 0 1 220px;
  min-width: 0;
  max-width: 240px;
  min-height: 58px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  background: var(--glass-control-fill);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.source-pill:hover {
  border-color: rgba(213, 182, 109, 0.3);
}

.source-pill:focus-within {
  border-color: rgba(213, 182, 109, 0.45);
  box-shadow: 0 0 0 3px rgba(213, 182, 109, 0.1);
}

.source-pill:has(input:required:invalid) {
  border-color: rgba(183, 107, 107, 0.22);
}

.source-pill:has(input:required:invalid):focus-within {
  border-color: rgba(183, 107, 107, 0.4);
  box-shadow: 0 0 0 3px rgba(213, 182, 109, 0.1);
}

.source-pill-label .field-required-marker {
  display: none;
}

.source-pill:has(input:required:invalid) .source-pill-label .field-required-marker {
  display: inline-block;
}

.source-pill .field-info {
  justify-self: center;
}

.source-pill .field-info summary {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.intake-source-row .source-pill:last-of-type .field-info-panel {
  left: auto;
  right: 0;
}

.source-pill-body {
  display: grid;
  position: relative;
  min-width: 0;
  gap: 2px;
}

.source-pill-body.is-date-empty::before {
  content: "dd. mm. yyyy";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-right: 34px;
  color: rgba(195, 192, 184, 0.5);
  font-size: 14px;
  pointer-events: none;
}

.source-pill-label {
  overflow: hidden;
  color: rgba(213, 182, 109, 0.8);
  font-family: var(--font-meta);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-pill-input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0 16px 16px 0;
  color: var(--text);
  background: transparent;
  font-size: 14px;
  outline: 0;
}

.source-pill-input::placeholder {
  color: rgba(195, 192, 184, 0.5);
}

.source-pill-input:-webkit-autofill,
.source-pill-input:-webkit-autofill:hover,
.source-pill-input:-webkit-autofill:focus,
.source-pill-input:autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px rgba(3, 4, 5, 0.9) inset;
  box-shadow: 0 0 0 1000px rgba(3, 4, 5, 0.9) inset;
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}

.source-pill-input[type="date"],
.source-pill-input[type="time"] {
  position: relative;
  padding-right: 34px;
  color-scheme: dark;
}

.source-pill-body.is-date-empty .source-pill-input[type="date"] {
  color: transparent;
}

.source-pill-input[type="date"]::-webkit-calendar-picker-indicator,
.source-pill-input[type="time"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: -8px;
  right: 1px;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(213, 182, 109, 0.2);
  border-radius: 50%;
  background: var(--glass-chip-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23d5b66d' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 11px 11px;
  cursor: pointer;
}

.intake-source-build {
  flex: 0 0 auto;
  min-height: 58px;
  padding: 0 22px;
}

.command-button-minimal {
  padding: 9px 18px;
  border: 1px solid rgba(213, 182, 109, 0.24);
  border-radius: var(--radius-pill);
  color: var(--gold);
  background: rgba(12, 13, 13, 0.85);
  font-family: var(--font-meta);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.command-button-minimal:hover:not(:disabled) {
  border-color: rgba(213, 182, 109, 0.5);
  box-shadow: 0 0 14px rgba(213, 182, 109, 0.12);
  transform: translateY(-1px);
}

.command-button-minimal:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.location-picker {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 10px;
  padding: 0;
}

.location-picker.is-unresolved {
  border-left: 0;
  padding-left: 32px;
}

.field-required-marker {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 50%;
  background: rgba(183, 107, 107, 0.92);
  vertical-align: middle;
  opacity: 0.85;
}

.field-required-word {
  margin-left: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  text-transform: none;
}

.intake-validation-summary {
  position: fixed;
  top: 90px;
  left: 336px;
  right: 300px;
  z-index: 45;
  padding: 14px 18px;
  border: 1px solid rgba(183, 107, 107, 0.4);
  border-radius: 18px;
  background: rgba(19, 8, 8, 0.92);
  backdrop-filter: blur(16px);
  color: var(--text);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.intake-validation-summary strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-meta);
  font-size: 11px;
}

.intake-validation-summary ul {
  margin: 0;
  padding-left: 18px;
}

.intake-validation-summary li {
  color: var(--text-soft);
  font-size: 11px;
}

.location-validation-message {
  position: fixed;
  top: 90px;
  left: 336px;
  z-index: 44;
  color: #e08b8b;
  font-size: 10px;
}

.field-info {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  justify-self: center;
}

.field-info summary {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  list-style: none;
  color: var(--gold);
  background:
    radial-gradient(circle at 35% 28%, rgba(240, 238, 232, 0.06), transparent 46%),
    var(--glass-chip-fill);
  box-shadow:
    inset 0 0 0 1px rgba(240, 238, 232, 0.035),
    0 0 16px rgba(213, 182, 109, 0.08);
  font-family: var(--font-meta);
  font-size: 13px;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.field-info summary::-webkit-details-marker {
  display: none;
}

.field-info summary:hover,
.field-info summary:focus-visible,
.field-info[open] summary {
  border-color: rgba(213, 182, 109, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(240, 238, 232, 0.045),
    0 0 20px rgba(213, 182, 109, 0.14);
  transform: translateY(-1px);
}

.field-info-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 42;
  width: min(240px, 74vw);
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(213, 182, 109, 0.16);
  border-radius: 12px;
  background: rgba(5, 6, 7, 0.97);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.5;
}

.map-provider-frame {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(rgba(213, 182, 109, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213, 182, 109, 0.035) 1px, transparent 1px),
    #050607;
  background-size: 22px 22px;
  box-shadow: none;
}

.map-provider-frame.is-configured {
  background: #030405;
}

.map-provider-host {
  position: absolute;
  inset: 0;
  cursor: crosshair;
  filter: saturate(0.82) sepia(0.1) hue-rotate(-9deg) contrast(1.05) brightness(0.87);
}

.map-provider-host::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(8, 18, 36, 0.46) 0%, rgba(58, 62, 40, 0.16) 48%, rgba(196, 152, 82, 0.22) 100%);
  mix-blend-mode: soft-light;
  content: "";
  pointer-events: none;
}

.map-provider-host::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 78% 72% at 50% 42%, transparent 42%, rgba(3, 4, 5, 0.34) 74%, rgba(3, 4, 5, 0.7) 100%),
    linear-gradient(90deg, rgba(3, 4, 5, 0.92) 0%, rgba(3, 4, 5, 0.35) 16%, transparent 32%, transparent 68%, rgba(3, 4, 5, 0.35) 84%, rgba(3, 4, 5, 0.92) 100%),
    linear-gradient(180deg, rgba(3, 4, 5, 0.7) 0%, transparent 14%, transparent 66%, rgba(3, 4, 5, 0.42) 86%, rgba(3, 4, 5, 0.82) 100%);
  content: "";
  pointer-events: none;
}

.map-provider-host > .gm-style {
  border-radius: inherit;
  cursor: crosshair;
}

.map-selected-point-info {
  display: grid;
  min-width: 170px;
  gap: 4px;
  padding: 11px 13px;
  border: 1px solid rgba(213, 182, 109, 0.32);
  border-radius: 14px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(213, 182, 109, 0.08), transparent 45%),
    rgba(4, 5, 6, 0.4);
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(140%);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.4),
    inset 0 1px rgba(240, 238, 232, 0.08);
  font-family: var(--font-meta);
  font-size: 10px;
  line-height: 1.35;
}

.map-selected-point-info strong {
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0;
}

.map-selected-point-info span {
  color: rgba(213, 182, 109, 0.86);
  font-size: 9px;
}

.map-provider-host .gm-style .gm-style-iw-c:has(.map-selected-point-info) {
  overflow: visible !important;
  padding: 0 !important;
  border-radius: 16px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.map-provider-host .gm-style .gm-style-iw-d:has(.map-selected-point-info) {
  overflow: visible !important;
}

.map-provider-host .gm-style .gm-style-iw-t:has(.map-selected-point-info) .gm-style-iw-tc::after {
  background: rgba(4, 5, 6, 0.4) !important;
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(140%) !important;
  box-shadow: 0 0 0 1px rgba(213, 182, 109, 0.32) !important;
}

.map-provider-placeholder {
  z-index: 1;
  display: grid;
  max-width: 430px;
  align-content: center;
  justify-self: center;
  gap: 10px;
  padding: 34px;
  text-align: center;
}

.map-provider-placeholder > strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
}

.map-provider-placeholder > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.intake-top-frame {
  position: fixed;
  top: 32px;
  left: 336px;
  right: 32px;
  z-index: 14;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(240, 238, 232, 0.05),
    0 0 40px rgba(213, 182, 109, 0.04);
  backdrop-filter: blur(var(--glass-blur-medium));
}

.intake-top-status {
  flex: 0 0 auto;
}

.location-search-group {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0;
}

.location-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.location-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.location-search-bar > .field-info summary {
  width: 58px;
  height: 58px;
  font-size: 17px;
}

.location-search-bar > .field-info .field-info-panel {
  top: calc(100% + 8px);
  bottom: auto;
  left: auto;
  right: 0;
}

.location-search-combobox {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.location-details-toggle {
  position: relative;
  flex: 0 0 auto;
}

.location-details-toggle summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid rgba(213, 182, 109, 0.19);
  border-radius: var(--radius-pill);
  list-style: none;
  color: var(--text-soft);
  background:
    linear-gradient(180deg, rgba(240, 238, 232, 0.035), transparent 58%),
    rgba(3, 4, 5, 0.92);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(240, 238, 232, 0.06);
  font-family: var(--font-meta);
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.location-details-toggle summary::-webkit-details-marker {
  display: none;
}

.location-details-toggle summary:hover,
.location-details-toggle summary:focus-visible {
  border-color: rgba(213, 182, 109, 0.4);
  color: var(--text);
}

.location-details-caret {
  color: var(--gold);
  font-size: 13px;
  transition: transform 160ms ease;
}

.location-details-toggle[open] summary {
  border-color: rgba(213, 182, 109, 0.4);
  color: var(--text);
}

.location-details-toggle[open] .location-details-caret {
  transform: rotate(45deg);
}

.location-details-panel {
  display: grid;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 42;
  width: min(320px, 82vw);
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(213, 182, 109, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(240, 238, 232, 0.025), transparent 38%),
    rgba(5, 6, 7, 0.97);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.location-details-empty {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.location-details-panel button {
  justify-self: start;
  padding: 7px 9px;
  border: 1px solid rgba(213, 182, 109, 0.12);
  border-radius: 16px;
  color: var(--text-soft);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.location-details-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.location-search-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 56px;
  align-items: center;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid rgba(213, 182, 109, 0.19);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(240, 238, 232, 0.035), transparent 58%),
    rgba(3, 4, 5, 0.92);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(240, 238, 232, 0.06),
    inset 0 0 28px rgba(213, 182, 109, 0.035);
  backdrop-filter: blur(16px);
}

.location-search-row:focus-within {
  border-color: rgba(213, 182, 109, 0.48);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(213, 182, 109, 0.1),
    inset 0 1px rgba(240, 238, 232, 0.06),
    inset 0 0 28px rgba(213, 182, 109, 0.05);
}

.location-search-icon {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  justify-self: center;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(240, 238, 232, 0.06), transparent 46%),
    var(--glass-chip-fill);
  box-shadow:
    inset 0 0 0 1px rgba(240, 238, 232, 0.035),
    0 0 16px rgba(213, 182, 109, 0.08);
}

.location-search-icon::before {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 1.6px solid rgba(213, 182, 109, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(213, 182, 109, 0.12);
  content: "";
}

.location-search-icon::after {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 6px;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(213, 182, 109, 0.9);
  box-shadow: 0 0 8px rgba(213, 182, 109, 0.12);
  transform: rotate(45deg);
  content: "";
}

.location-search-row input {
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px 10px 0;
  border: 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  outline: 0;
}

.location-search-row input::placeholder {
  color: rgba(195, 192, 184, 0.62);
}

.location-search-row.is-unresolved input {
  border-color: rgba(195, 192, 184, 0.18);
}

.location-search-row button {
  display: grid;
  position: relative;
  width: 40px;
  min-width: 40px;
  height: 40px;
  justify-self: center;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--gold);
  background:
    radial-gradient(circle at 38% 28%, rgba(240, 238, 232, 0.06), transparent 46%),
    var(--glass-chip-fill);
  box-shadow:
    inset 0 0 0 1px rgba(240, 238, 232, 0.035),
    0 0 16px rgba(213, 182, 109, 0.08);
  font-size: 0;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.location-search-row button:hover,
.location-search-row button:focus-visible {
  border-color: rgba(213, 182, 109, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(240, 238, 232, 0.045),
    0 0 20px rgba(213, 182, 109, 0.14);
  transform: translateY(-1px);
}

.location-search-row button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--gold);
  filter: drop-shadow(0 0 8px rgba(213, 182, 109, 0.18));
  transform: translate(-38%, -50%);
  content: "";
}

.location-search-row button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(213, 182, 109, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  content: "";
}

.location-search-helper {
  position: fixed;
  left: 336px;
  z-index: 13;
  max-width: calc(100% - 336px - 300px);
  font-size: 9px;
  line-height: 1.5;
  top: 108px;
  color: var(--muted);
}

.location-search-feedback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.location-suggestions {
  display: grid;
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  z-index: 30;
  max-height: 212px;
  overflow-y: auto;
  border: 1px solid rgba(213, 182, 109, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(240, 238, 232, 0.025), transparent 38%),
    rgba(4, 5, 6, 0.98);
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(0, 0, 0, 0.52),
    0 0 32px rgba(213, 182, 109, 0.045);
  backdrop-filter: blur(14px);
}

.location-suggestions button {
  display: flex;
  min-height: 48px;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 -1px rgba(240, 238, 232, 0.035);
  transition: background 150ms ease, color 150ms ease;
}

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

.location-suggestions button:hover,
.location-suggestions button:focus-visible {
  background:
    linear-gradient(90deg, rgba(213, 182, 109, 0.12), rgba(213, 182, 109, 0.03) 46%, transparent),
    rgba(14, 13, 11, 0.82);
}

.location-suggestions button > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.location-suggestions strong {
  font-family: var(--font-meta);
  color: var(--text);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.location-suggestions small,
.location-suggestions em {
  color: rgba(195, 192, 184, 0.72);
  font-size: 8px;
  font-style: normal;
}

.location-suggestions em {
  flex: 0 0 auto;
  color: rgba(213, 182, 109, 0.9);
  font-family: var(--font-meta);
  text-transform: uppercase;
}

.location-metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  border-top: 0;
  border-left: 0;
}

.location-metadata > div {
  min-width: 0;
  padding: 8px 0;
  border-right: 0;
  border-bottom: 0;
}

.location-metadata dt {
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 9px;
}

.location-metadata dd {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.location-metadata .location-label {
  grid-column: 1 / -1;
}

.intake-dev-tools {
  max-width: 1040px;
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 10px;
}

.intake-dev-tools summary {
  width: fit-content;
  padding: 8px 0;
  cursor: pointer;
}

.intake-dev-tools .command-button {
  min-height: 36px;
  margin-top: 6px;
  padding: 8px 10px;
  color: var(--muted);
}

.pillar-visual {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background-color: #0c0f11;
  background-image:
    linear-gradient(rgba(105, 183, 173, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213, 182, 109, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.pillar-visual.has-source-data {
  box-shadow: inset 0 2px rgba(213, 182, 109, 0.56);
}

.pillar-visual > p {
  position: absolute;
  right: 18px;
  bottom: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.bodygraph-diagram.is-suppressed {
  box-shadow: none;
}

.human-design-bodygraph {
  width: min(100%, 800px);
  height: auto;
  overflow: visible;
}

.hd-bodygraph-notice {
  position: absolute;
  right: 14px;
  bottom: 10px;
  left: 14px;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(20, 23, 26, 0.9);
}

.hd-bodygraph-notice-icon {
  display: grid;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid var(--muted);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 10px;
}

.hd-bodygraph-notice-label {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.hd-bodygraph-notice-cta {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

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

.section-title-row .eyebrow {
  margin: 0;
}

.section-title-row h2,
.section-title-row h3 {
  font-size: 19px;
  font-weight: 520;
  text-align: right;
}

.missing-evidence span {
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--text-soft);
  background: var(--surface);
  font-size: 10px;
}

.empty-state {
  margin: 0;
  padding: 18px;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  font-size: 11px;
}

.appendix-pillar {
  border-bottom: 1px solid var(--line-strong);
}

.appendix-pillar summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}

.appendix-pillar summary::-webkit-details-marker {
  display: none;
}

.appendix-pillar summary strong {
  font-size: 12px;
}

.appendix-group h3 {
  margin-bottom: 8px;
  color: var(--gold);
  font-family: var(--font-meta);
  font-size: 10px;
}

/* Theme Discovery */
.discovery-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: stretch;
  margin-bottom: 30px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.discovery-status > div {
  display: flex;
  min-height: 104px;
  align-items: end;
  gap: 12px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.discovery-status > div span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 36px;
}

.discovery-status > div p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
}

.discovery-status > .status-mark {
  align-self: center;
  margin: 18px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.theme-item {
  min-height: 260px;
  padding: 24px;
  background: var(--bg-raised);
}

.theme-item-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.theme-item-topline span {
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 34px;
}

.theme-item-topline small {
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-meta);
  font-size: 8px;
  text-transform: uppercase;
}

.theme-item h2 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
}

.theme-item > p {
  margin: 12px 0 22px;
  font-size: 11px;
  line-height: 1.65;
}

.evidence-lines {
  display: grid;
  gap: 6px;
}

.evidence-lines > span {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
}

.evidence-lines > span > span {
  display: grid;
  gap: 3px;
}

.evidence-lines small {
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 7px;
  text-transform: uppercase;
}

.evidence-lines strong {
  color: var(--gold);
  font-weight: 500;
}

.source-boundary {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  margin-top: 34px;
  padding: 28px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.source-boundary h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
}

.source-boundary > p {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
}

.source-status-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.source-status {
  display: grid;
  gap: 5px;
  padding: 13px;
  color: var(--muted);
  background: var(--surface);
  font-size: 9px;
}

.source-status strong {
  color: var(--text);
  font-size: 10px;
}

.source-status-calculated {
  box-shadow: inset 0 2px var(--teal);
}

.source-status-benchmark {
  box-shadow: inset 0 2px var(--gold);
}

/* Pattern Reveal */
.pattern-verdict {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  min-height: 240px;
  align-items: center;
  gap: 36px;
  padding: 28px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface-warm);
}

.verdict-symbol {
  position: relative;
  width: 130px;
  aspect-ratio: 1;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
}

.verdict-symbol span {
  position: absolute;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.verdict-symbol span:nth-child(1) { top: 17px; left: 37px; }
.verdict-symbol span:nth-child(2) { bottom: 18px; left: 18px; border-color: var(--teal-deep); }
.verdict-symbol span:nth-child(3) { right: 18px; bottom: 18px; border-color: #734a41; }

.pattern-verdict h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
}

.pattern-verdict p:last-child {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.evidence-table-section {
  padding: 40px 0;
}

.evidence-table {
  border-top: 1px solid var(--line-strong);
}

.evidence-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.4fr 0.5fr;
  gap: 18px;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 10px;
}

.evidence-row strong {
  color: var(--text);
}

.evidence-row small {
  color: var(--teal);
}

.evidence-head {
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 8px;
  text-transform: uppercase;
}

.missing-evidence {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px 30px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.missing-evidence .eyebrow {
  margin: 0;
}

.missing-evidence > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.missing-evidence > p:last-child {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.source-separation .source-calculated {
  border-color: var(--teal-deep);
  color: var(--teal);
}

.source-separation .source-benchmark {
  border-color: var(--gold-soft);
  color: var(--gold);
}

/* Unified Map */
.map-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  min-height: 360px;
  align-items: center;
  gap: 52px;
  padding: 40px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.map-axis {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.map-axis::before,
.map-axis::after {
  position: absolute;
  content: "";
}

.map-axis::before {
  inset: 18%;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
}

.map-axis::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line-strong);
}

.map-axis span {
  position: absolute;
  z-index: 2;
  width: 12px;
  height: 12px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--muted);
}

.map-axis span:nth-child(1) { top: 7%; left: 48%; background: var(--teal); }
.map-axis span:nth-child(2) { right: 10%; bottom: 25%; background: var(--gold); }
.map-axis span:nth-child(3) { bottom: 14%; left: 18%; background: var(--ember); }

.map-axis strong {
  position: absolute;
  inset: 42%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--font-meta);
  font-size: 12px;
  font-weight: 500;
}

.map-hero h2 {
  max-width: 620px;
  font-size: 42px;
}

.map-hero > div:last-child > p:not(.eyebrow) {
  max-width: 660px;
  margin: 18px 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.map-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  border: 1px solid var(--line);
  background: var(--line);
}

.map-section {
  min-height: 190px;
  padding: 22px;
  background: var(--bg-raised);
}

.map-section > p:last-child {
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.7;
}

.map-provenance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
  border: 1px solid var(--line);
}

.map-provenance > div {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
  min-height: 110px;
  padding: 18px;
  background: var(--surface);
}

.map-provenance .eyebrow {
  width: 100%;
}

.map-provenance strong,
.map-provenance span {
  padding: 5px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 9px;
}

.map-provenance strong {
  color: var(--teal);
}

.map-provenance span {
  color: var(--muted);
}

.boundary-note {
  margin: 28px 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--gold);
  color: var(--text-soft);
  background: rgba(213, 182, 109, 0.055);
  font-size: 11px;
}

/* Technical Appendix */
.appendix-source,
.transparency-notes {
  padding: 28px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.appendix-definition-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
}

.appendix-source-separation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  border: 1px solid var(--line);
  background: var(--line);
}

.appendix-source-separation > div {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 140px;
  padding: 18px;
  background: var(--surface);
}

.appendix-source-separation > div > span {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 8px;
  overflow-wrap: anywhere;
}

.appendix-source-separation > div > span strong {
  color: var(--text);
  font-size: 10px;
}

.appendix-synthesis-source {
  margin-top: 18px;
  padding: 18px;
  border-left: 2px solid var(--gold);
  background: rgba(213, 182, 109, 0.045);
}

.appendix-synthesis-source .definition-list > div:last-child {
  border-bottom: 0;
}

.appendix-pillar-list {
  margin-top: 34px;
  border-top: 1px solid var(--line-strong);
}

.appendix-pillar summary {
  min-height: 72px;
}

.appendix-pillar summary > span:first-child {
  display: grid;
  gap: 3px;
}

.appendix-pillar summary > span:last-child {
  color: var(--gold);
  font-size: 18px;
  transition: transform 160ms ease;
}

.appendix-pillar[open] summary > span:last-child {
  transform: rotate(45deg);
}

.appendix-pillar > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding: 8px 0 34px;
}

.appendix-group {
  min-width: 0;
}

.transparency-notes {
  margin-top: 40px;
}

/* ==== Numerology Pillar screen ==== */

.numerology-pillar-view {
  display: grid;
  gap: 22px;
  max-width: 1440px;
}

.numerology-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 20px;
  padding: 32px 36px 26px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium)) saturate(140%);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.4),
    inset 0 1px rgba(240, 238, 232, 0.06),
    0 0 40px rgba(213, 182, 109, 0.04);
}

.numerology-hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.numerology-hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.numerology-hero-numeral {
  position: absolute;
  color: rgba(213, 182, 109, 0.1);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  user-select: none;
}

.numerology-hero-numeral-1 {
  top: 10%;
  right: 6%;
  font-size: 104px;
}

.numerology-hero-numeral-2 {
  bottom: 12%;
  right: 24%;
  font-size: 52px;
  color: rgba(105, 183, 173, 0.12);
}

.numerology-hero-numeral-3 {
  top: 44%;
  right: 1%;
  font-size: 40px;
  color: rgba(203, 118, 94, 0.12);
}

.numerology-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.numerology-hero-copy h1 {
  max-width: 520px;
  margin-bottom: 10px;
  font-size: 38px;
  color: var(--text);
}

.numerology-hero-subtitle {
  max-width: 460px;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.numerology-hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(213, 182, 109, 0.14);
}

.numerology-hero-meta-item {
  display: grid;
  gap: 3px;
  min-width: 120px;
}

.numerology-hero-meta-item span {
  color: rgba(213, 182, 109, 0.75);
  font-family: var(--font-meta);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.numerology-hero-meta-item strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.numerology-metric-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

/* `display: block` (not `contents`) so each <details> is the single grid item for its
   card — a `display: contents` wrapper would let its hidden .reference-panel child be
   counted as a second, phantom grid item by browser auto-placement. */
.numerology-metric-detail {
  display: block;
}

.numerology-metric-card {
  display: grid;
  gap: 6px;
  padding: 16px 16px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-control-fill);
  box-shadow: inset 0 1px rgba(240, 238, 232, 0.04);
  list-style: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.numerology-metric-card::-webkit-details-marker {
  display: none;
}

.numerology-metric-card::marker {
  content: '';
}

summary.numerology-metric-card {
  cursor: pointer;
}

summary.numerology-metric-card:hover,
.numerology-metric-card:hover {
  border-color: rgba(213, 182, 109, 0.34);
  box-shadow: inset 0 1px rgba(240, 238, 232, 0.04), 0 0 18px rgba(213, 182, 109, 0.08);
}

summary.numerology-metric-card:focus-visible {
  outline: 2px solid rgba(213, 182, 109, 0.6);
  outline-offset: 2px;
}

.numerology-metric-detail[open] summary.numerology-metric-card {
  border-color: rgba(213, 182, 109, 0.5);
  box-shadow: inset 0 1px rgba(240, 238, 232, 0.04), 0 0 20px rgba(213, 182, 109, 0.14);
}

.numerology-metric-label {
  color: rgba(213, 182, 109, 0.82);
  font-family: var(--font-meta);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.numerology-metric-value {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}

.numerology-metric-note {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

/* ==== Reference detail panel (generic — reusable by future symbolic systems) ==== */

.reference-panel {
  display: none;
}

/* Anchored below the metric grid (not floated over the top of it) so an open panel can
   never cover a sibling metric card, regardless of which of the six cards triggered it. */
.numerology-metric-detail[open] .reference-panel {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 16px;
  z-index: 60;
  display: grid;
  width: min(420px, 100%);
  max-height: min(60vh, 520px);
  gap: 14px;
  padding: 26px 24px 22px;
  overflow-y: auto;
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-strong)) saturate(140%);
  box-shadow:
    0 32px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px rgba(240, 238, 232, 0.06),
    0 0 46px rgba(213, 182, 109, 0.08);
  animation: reference-panel-in 180ms ease;
}

/* Reserve space below the grid for the open panel so it doesn't overlap the content
   (Psychomatrix / Personal Year Cycle / etc.) that follows the metric grid. */
.numerology-metric-grid:has(.numerology-metric-detail[open]) {
  margin-bottom: 560px;
}

@keyframes reference-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reference-panel-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--glass-chip-fill);
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}

.reference-panel-close:hover,
.reference-panel-close:focus-visible {
  color: var(--gold);
  border-color: rgba(213, 182, 109, 0.4);
}

.reference-panel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-right: 34px;
}

.reference-panel-badge {
  padding: 3px 10px;
  border: 1px solid rgba(213, 182, 109, 0.24);
  border-radius: var(--radius-pill);
  background: var(--glass-chip-fill);
  color: var(--gold);
  font-family: var(--font-meta);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reference-panel-badge--symbolic {
  color: rgba(213, 182, 109, 0.86);
  border-color: rgba(213, 182, 109, 0.18);
}

.reference-panel-title {
  padding-right: 30px;
  font-size: 23px;
  color: var(--text);
}

.reference-panel-section h4 {
  margin: 0 0 4px;
  color: var(--gold);
  font-family: var(--font-meta);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reference-panel-section p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}

.reference-panel-caution {
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(213, 182, 109, 0.14);
  color: var(--muted);
  font-size: 10px;
  font-style: italic;
  line-height: 1.5;
}

.numerology-analysis-grid {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(260px, 1fr) minmax(260px, 1fr) minmax(280px, 340px);
  align-items: start;
  gap: 16px;
}

.numerology-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px 20px 22px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium));
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.36),
    inset 0 1px rgba(240, 238, 232, 0.05);
}

.numerology-panel-title-row {
  display: grid;
  gap: 2px;
}

.numerology-panel-title-row h3 {
  font-size: 15px;
  color: var(--text);
}

.numerology-placeholder-badge {
  justify-self: start;
  margin-top: 4px;
  padding: 3px 9px;
  border: 1px solid rgba(213, 182, 109, 0.22);
  border-radius: var(--radius-pill);
  color: rgba(213, 182, 109, 0.86);
  font-family: var(--font-meta);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.numerology-panel-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

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

.numerology-psychomatrix-cell {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-control);
  background: var(--glass-control-fill);
}

.numerology-psychomatrix-cell strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--gold);
}

.numerology-table {
  display: grid;
  gap: 2px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-control);
}

.numerology-table-row {
  display: grid;
  grid-template-columns: 56px 84px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--glass-control-fill);
  color: var(--text-soft);
  font-size: 10.5px;
}

.numerology-table-head {
  color: rgba(213, 182, 109, 0.86);
  font-family: var(--font-meta);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.numerology-table-row.is-current {
  background: linear-gradient(135deg, rgba(213, 182, 109, 0.16), rgba(105, 183, 173, 0.05));
  box-shadow: inset 0 0 0 1px rgba(213, 182, 109, 0.28);
  color: var(--text);
}

.numerology-phase-tracker {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 12px 4px 0;
}

.numerology-phase-tracker::before {
  position: absolute;
  top: 27px;
  right: 17px;
  left: 17px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(213, 182, 109, 0.32) 0 4px, transparent 4px 9px);
  content: "";
}

.numerology-phase-node {
  position: relative;
  display: grid;
  gap: 4px;
  place-items: center;
}

.numerology-phase-node strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(213, 182, 109, 0.35);
  border-radius: 50%;
  background: var(--glass-chip-fill);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
}

.numerology-phase-node small {
  color: var(--muted);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.numerology-insight-block {
  display: grid;
  gap: 6px;
}

.numerology-insight-block h4 {
  color: var(--gold);
  font-family: var(--font-meta);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.numerology-insight-block p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11.5px;
  line-height: 1.55;
}

.numerology-insight-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
}

.numerology-insight-list li {
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.5;
}

.numerology-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.numerology-tag-row span {
  padding: 5px 11px;
  border: 1px solid rgba(213, 182, 109, 0.24);
  border-radius: var(--radius-pill);
  background: var(--glass-chip-fill);
  color: var(--gold);
  font-family: var(--font-meta);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.numerology-source-bar {
  position: fixed;
  right: 32px;
  bottom: 32px;
  left: 336px;
  z-index: 16;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium));
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(240, 238, 232, 0.05);
}

.numerology-source-chips {
  display: flex;
  flex: 1 1 auto;
  gap: 12px;
  min-width: 0;
}

.numerology-source-chip {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 6px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  background: var(--glass-control-fill);
}

.numerology-source-chip span {
  color: rgba(213, 182, 109, 0.8);
  font-family: var(--font-meta);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.numerology-source-chip strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.numerology-source-system {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
  text-align: right;
}

.numerology-source-system span {
  color: var(--muted);
  font-size: 9px;
}

.numerology-source-system strong {
  color: var(--gold);
  font-weight: 600;
}

/* ==== Human Design Pillar screen ==== */

.hd-pillar-view {
  display: grid;
  gap: 22px;
  max-width: 1440px;
}

.hd-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 20px;
  padding: 32px 36px 26px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium)) saturate(140%);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.4),
    inset 0 1px rgba(240, 238, 232, 0.06),
    0 0 40px rgba(213, 182, 109, 0.04);
}

.hd-hero--simple {
  padding: 28px 32px;
}

.hd-hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hd-hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hd-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.hd-hero-copy h1 {
  max-width: 520px;
  margin-bottom: 10px;
  font-size: 38px;
  color: var(--text);
}

.hd-hero-subtitle {
  max-width: 460px;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.hd-hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(213, 182, 109, 0.14);
}

.hd-hero-meta-item {
  display: grid;
  gap: 3px;
  min-width: 120px;
}

.hd-hero-meta-item span {
  color: rgba(213, 182, 109, 0.75);
  font-family: var(--font-meta);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hd-hero-meta-item strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hd-suppressed-banner {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(213, 182, 109, 0.28);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-soft));
}

.hd-suppressed-banner-icon {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(213, 182, 109, 0.5);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 12px;
}

.hd-suppressed-banner p {
  margin: 0 0 4px;
  font-size: 11.5px;
  line-height: 1.55;
}

.hd-suppressed-banner p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.hd-suppressed-banner p strong {
  color: var(--text);
}

.hd-pillar-main-grid {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(320px, 1fr) minmax(200px, 240px);
  align-items: stretch;
  gap: 16px;
}

.hd-activation-column {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px 16px 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium));
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.36),
    inset 0 1px rgba(240, 238, 232, 0.05);
}

.hd-activation-column-title {
  position: relative;
  display: grid;
  gap: 2px;
}

.hd-activation-column-title h3 {
  font-size: 14px;
  color: var(--text);
}

.hd-approx-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 9px;
  border: 1px solid rgba(213, 182, 109, 0.22);
  border-radius: var(--radius-pill);
  color: rgba(213, 182, 109, 0.86);
  font-family: var(--font-meta);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hd-activation-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hd-activation-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-control);
  background: var(--glass-control-fill);
  cursor: default;
  transition: background 150ms ease;
}

.hd-activation-row:hover {
  background: rgba(213, 182, 109, 0.08);
}

.hd-activation-glyph {
  color: var(--gold);
  font-size: 13px;
  text-align: center;
}

.hd-activation-body {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hd-activation-notation {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
}

.hd-activation-notation small {
  color: var(--muted);
  font-size: 9px;
}

.hd-bodygraph-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  padding: 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium));
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.4),
    inset 0 1px rgba(240, 238, 232, 0.05),
    0 0 40px rgba(213, 182, 109, 0.03);
}

.hd-bodygraph-frame-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, transparent 0 37%, rgba(213, 182, 109, 0.05) 37% 37.3%, transparent 37.3%),
    radial-gradient(circle at 50% 46%, transparent 0 45%, rgba(213, 182, 109, 0.035) 45% 45.3%, transparent 45.3%),
    radial-gradient(circle at 50% 46%, transparent 0 53%, rgba(105, 183, 173, 0.03) 53% 53.3%, transparent 53.3%);
}

.hd-bodygraph-frame .pillar-visual.bodygraph-diagram {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 0;
  width: 100%;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

/* width:100%/height:100% fills whatever box the flex column above computes —
   on a wide desktop column that box is roughly square, on a narrow mobile
   column it's tall and narrow. Deriving width purely from height via
   aspect-ratio (tried first) tightened the desktop fit but silently distorted
   the box's own proportions once width became the binding constraint on
   mobile. width:100%/height:100% is the only combination that is correct on
   both: the SVG's own viewBox + default preserveAspectRatio="xMidYMid meet"
   contains the chart within whatever box it's given, centered, without ever
   distorting or overflowing it — some side padding on a wide column is a much
   smaller cost than a distorted box on a narrow one. Not the original
   width:min(px,%), which resolved against a shrink-to-fit ancestor and
   rendered far smaller than intended regardless of viewport. */
.hd-bodygraph-frame .human-design-bodygraph {
  width: 100%;
  height: auto;
  max-width: 800px;
  aspect-ratio: 4 / 5;
  display: block;
  border-radius: 10px;
}

.hd-bodygraph-frame .hd-bodygraph-notice {
  position: static;
}

.hd-bodygraph-frame .pillar-visual.bodygraph-diagram > p {
  position: static;
  align-self: flex-end;
  margin: 6px 6px 0;
}

/* Human Design BodyGraph — premium glass/tube redesign. Scoped entirely to the
   .human-design-bodygraph SVG produced by humanDesignBodygraph.ts; no rule here
   touches any shared/global selector. */
.human-design-bodygraph__geometry-rings circle,
.human-design-bodygraph__geometry-rings path {
  fill: none;
  stroke: rgba(201, 155, 78, 0.075);
  stroke-width: 1;
}

.human-design-bodygraph__geometry-rings path {
  stroke: rgba(111, 168, 163, 0.038);
}

.human-design-bodygraph__reference-circuits path {
  fill: none;
  stroke: url(#hd-circuit-gold);
  stroke-linecap: round;
  stroke-width: 2.2;
}

.human-design-bodygraph__particles {
  fill: rgba(235, 188, 100, 0.56);
}

.human-design-bodygraph__particles circle {
  animation: hd-bodygraph-particle-twinkle 7s ease-in-out infinite;
}

.human-design-bodygraph__particles circle:nth-child(3n + 1) {
  animation-delay: -2.2s;
}

.human-design-bodygraph__particles circle:nth-child(3n + 2) {
  animation-delay: -4.4s;
}

.human-design-bodygraph__center-group,
.human-design-bodygraph__channel-group {
  isolation: isolate;
}

.human-design-bodygraph__center-glow {
  filter: url(#hd-center-glow);
  opacity: 0.24;
}

.human-design-bodygraph__center-group--defined .human-design-bodygraph__center-glow {
  opacity: 0.78;
}

.human-design-bodygraph__center-group--suppressed .human-design-bodygraph__center-glow {
  opacity: 0.08;
}

.human-design-bodygraph__center {
  stroke: rgba(248, 205, 123, 0.72);
  stroke-width: 3.2;
  transition: filter 0.35s ease, opacity 0.35s ease, stroke 0.35s ease;
}

.human-design-bodygraph__center--defined {
  filter: drop-shadow(0 0 8px rgba(225, 173, 83, 0.44));
  stroke: rgba(255, 218, 143, 0.94);
}

.human-design-bodygraph__center--undefined {
  stroke: rgba(214, 197, 162, 0.48);
}

.human-design-bodygraph__center-sheen {
  pointer-events: none;
  opacity: 0.7;
}

.human-design-bodygraph__center-rim {
  fill: none;
  pointer-events: none;
  stroke: rgba(255, 235, 190, 0.36);
  stroke-width: 1.15;
}

.human-design-bodygraph__gate {
  fill: rgba(244, 235, 212, 0.78);
  font-family: var(--font-meta);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.28);
  stroke-width: 1.4px;
  transition: opacity 0.35s ease, fill 0.35s ease;
}

.human-design-bodygraph__gate--active {
  fill: #fff0c8;
  filter: url(#hd-spark-glow);
  font-weight: 650;
}

.human-design-bodygraph__channel {
  fill: none;
  stroke: rgba(8, 10, 11, 0.88);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 18;
  transition: stroke 0.35s ease, opacity 0.35s ease;
}

.human-design-bodygraph__channel-glass {
  fill: none;
  stroke: rgba(161, 145, 116, 0.34);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 11;
}

.human-design-bodygraph__channel-glow,
.human-design-bodygraph__channel-light,
.human-design-bodygraph__channel-core {
  fill: none;
  pointer-events: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.human-design-bodygraph__channel-glow {
  filter: url(#hd-tube-glow);
  stroke-width: 18;
}

.human-design-bodygraph__channel-light {
  stroke-width: 8;
}

.human-design-bodygraph__channel-core {
  stroke-width: 2.1;
}

.human-design-bodygraph__channel-group--inactive {
  opacity: 0.76;
}

.human-design-bodygraph__flow-arrow {
  filter: url(#hd-spark-glow);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

@keyframes hd-bodygraph-particle-twinkle {
  0%,
  100% {
    opacity: 0.28;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .human-design-bodygraph__particles circle {
    animation: none;
  }
}

.hd-pillar-panels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.hd-panel {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px 20px 22px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium));
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.36),
    inset 0 1px rgba(240, 238, 232, 0.05);
}

/* Reserve space below a panel for its open reference panel, so the panel does not
   overlap sibling hd-panel content below it in the .hd-pillar-panels-grid rows. */
.hd-panel:has(.hd-reference-detail[open]) {
  margin-bottom: 560px;
}

.hd-panel-title-row {
  display: grid;
  gap: 2px;
}

.hd-panel-title-row h3 {
  font-size: 15px;
  color: var(--text);
}

.hd-placeholder-badge {
  justify-self: start;
  margin-top: 4px;
  padding: 3px 9px;
  border: 1px solid rgba(213, 182, 109, 0.22);
  border-radius: var(--radius-pill);
  color: rgba(213, 182, 109, 0.86);
  font-family: var(--font-meta);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hd-panel-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.hd-blueprint-grid {
  display: grid;
  gap: 2px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-control);
}

.hd-blueprint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  background: var(--glass-control-fill);
}

.hd-blueprint-row span {
  color: rgba(213, 182, 109, 0.82);
  font-family: var(--font-meta);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hd-blueprint-row strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hd-center-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hd-center-chip {
  padding: 6px 12px;
  border: 1px solid rgba(240, 238, 232, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(240, 238, 232, 0.03);
  color: rgba(240, 238, 232, 0.5);
  font-family: var(--font-meta);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

.hd-center-chip.is-defined {
  border-color: rgba(213, 182, 109, 0.4);
  background: rgba(213, 182, 109, 0.14);
  color: var(--gold);
}

/* ==== Human Design Phase 1: clickable values reusing the generic reference panel ==== */

/* `display: block` (not `contents`) so each <details> is a single, ordinary flow item —
   its hidden .reference-panel child must not affect the flex/grid layout of its siblings. */
.hd-reference-detail {
  display: block;
}

.hd-reference-detail summary {
  cursor: pointer;
  list-style: none;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.hd-reference-detail summary::-webkit-details-marker {
  display: none;
}

.hd-reference-detail summary::marker {
  content: '';
}

.hd-reference-detail summary:focus-visible {
  outline: 2px solid rgba(213, 182, 109, 0.6);
  outline-offset: 2px;
}

summary.hd-blueprint-row:hover,
summary.hd-blueprint-row:focus-visible {
  background: rgba(213, 182, 109, 0.1);
}

.hd-reference-detail[open] summary.hd-blueprint-row {
  background: rgba(213, 182, 109, 0.14);
}

summary.hd-center-chip:hover,
summary.hd-center-chip:focus-visible {
  border-color: rgba(213, 182, 109, 0.4);
  box-shadow: 0 0 12px rgba(213, 182, 109, 0.1);
}

.hd-reference-detail[open] summary.hd-center-chip {
  border-color: rgba(213, 182, 109, 0.55);
  box-shadow: 0 0 14px rgba(213, 182, 109, 0.16);
}

/* Anchored below the hosting hd-panel (Blueprint or Defined Centers), never floated over
   sibling values, mirroring the Numerology reference-panel positioning fix. */
.hd-reference-detail[open] .reference-panel {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 16px;
  z-index: 60;
  display: grid;
  width: min(420px, 100%);
  max-height: min(60vh, 520px);
  gap: 14px;
  padding: 26px 24px 22px;
  overflow-y: auto;
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-strong)) saturate(140%);
  box-shadow:
    0 32px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px rgba(240, 238, 232, 0.06),
    0 0 46px rgba(213, 182, 109, 0.08);
  animation: reference-panel-in 180ms ease;
}

.hd-stat-row {
  display: flex;
  gap: 24px;
}

.hd-stat {
  display: grid;
  gap: 2px;
}

.hd-stat strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}

.hd-stat span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.hd-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hd-gate-chip {
  padding: 5px 11px;
  border: 1px solid rgba(213, 182, 109, 0.24);
  border-radius: var(--radius-pill);
  background: var(--glass-chip-fill);
  color: var(--gold);
  font-family: var(--font-meta);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.hd-gate-chip--muted {
  border-color: rgba(240, 238, 232, 0.14);
  color: var(--text-soft);
}

.hd-insight-lead {
  margin: 0;
  color: var(--text-soft);
  font-size: 11.5px;
  line-height: 1.6;
}

.hd-insight-block {
  display: grid;
  gap: 6px;
}

.hd-insight-block h4 {
  color: var(--gold);
  font-family: var(--font-meta);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hd-insight-block p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.55;
}

.hd-legend-grid {
  display: grid;
  gap: 10px;
}

.hd-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 11px;
}

.hd-legend-swatch {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 4px;
}

.hd-legend-swatch.is-defined {
  border: 1px solid var(--gold);
  background: rgba(213, 182, 109, 0.2);
}

.hd-legend-swatch.is-undefined {
  border: 1px solid rgba(240, 238, 232, 0.32);
  background: rgba(240, 238, 232, 0.03);
}

.hd-legend-line {
  width: 18px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 2px;
}

.hd-legend-line.is-path {
  background: var(--teal);
}

.hd-legend-line.is-channel {
  background: var(--gold);
}

.hd-energy-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.hd-energy-type-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-control);
  background: var(--glass-control-fill);
}

.hd-energy-type-card strong {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
}

.hd-energy-type-card span {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 15px;
}

.hd-energy-type-card.is-current {
  border-color: rgba(213, 182, 109, 0.5);
  background: linear-gradient(135deg, rgba(213, 182, 109, 0.16), rgba(105, 183, 173, 0.05));
  box-shadow: inset 0 0 0 1px rgba(213, 182, 109, 0.28);
}

.hd-energy-type-card.is-current strong,
.hd-energy-type-card.is-current span {
  color: var(--gold);
}

.hd-unavailable-panel {
  display: grid;
  gap: 10px;
  padding: 26px 28px;
}

.hd-unavailable-panel h3 {
  font-size: 18px;
  color: var(--text);
}

.hd-unavailable-list {
  margin: 0;
  padding-left: 18px;
}

.hd-unavailable-list li {
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.6;
}

.hd-source-bar {
  position: fixed;
  right: 32px;
  bottom: 32px;
  left: 336px;
  z-index: 16;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium));
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(240, 238, 232, 0.05);
}

.hd-source-chips {
  display: flex;
  flex: 1 1 auto;
  gap: 12px;
  min-width: 0;
}

.hd-source-chip {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 6px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  background: var(--glass-control-fill);
}

.hd-source-chip span {
  color: rgba(213, 182, 109, 0.8);
  font-family: var(--font-meta);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hd-source-chip strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hd-source-system {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
  text-align: right;
}

.hd-source-system span {
  color: var(--muted);
  font-size: 9px;
}

.hd-source-system strong {
  color: var(--gold);
  font-weight: 600;
}

@media (max-width: 1400px) {
  /* Intake: medium/tablet widths get a compact two-row source console instead of one wide row */
  .intake-source-row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .intake-source-rows {
    display: grid;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .numerology-analysis-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

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

  .hd-pillar-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hd-activation-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }

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

@media (max-width: 1100px) {
  :root {
    --rail-width: 210px;
  }

  .stage-view {
    padding-right: 34px;
    padding-left: 34px;
  }

  .intake-layout,
  .profile-mode-selector,
  .map-hero {
    grid-template-columns: 1fr;
  }

  .location-picker {
    min-height: 0;
  }

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

@media (max-width: 820px) {
  .product-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .system-status,
  .profile-empty {
    display: none;
  }

  .header-context button {
    min-width: 100px;
    max-width: 130px;
  }

  .workspace-shell {
    display: block;
  }

  .flow-navigation {
    position: sticky;
    top: 64px;
    z-index: 10;
    display: grid;
    width: 100%;
    height: auto;
    grid-template-columns: repeat(7, minmax(56px, 1fr));
    gap: 0;
    padding: 0;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 0;
  }

  .flow-navigation > p {
    display: none;
  }

  .flow-step {
    grid-template-columns: 1fr;
    min-height: 54px;
    gap: 2px;
    padding: 7px 5px;
    border-right: 0;
    border-radius: var(--radius-control);
    text-align: center;
  }

  .flow-step strong {
    font-size: 8px;
    white-space: normal;
  }

  .flow-step-status {
    display: none;
  }

  .stage-view {
    min-height: calc(100vh - 118px);
    padding: 36px 20px 56px;
  }

  .stage-intro {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 34px;
  }

  .stage-intro h1 {
    font-size: 38px;
  }

  .stage-meta {
    width: fit-content;
    min-width: 0;
    text-align: left;
  }

  .appendix-pillar > div,
  .appendix-definition-list,
  .theme-grid,
  .map-section-grid,
  .map-provenance,
  .appendix-source-separation {
    grid-template-columns: 1fr;
  }

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

  .discovery-status > .status-mark {
    display: none;
  }

  .source-boundary {
    grid-template-columns: 1fr;
  }

  .source-status-row {
    grid-column: auto;
  }

  .pattern-verdict {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 22px;
  }

  .verdict-symbol {
    width: 90px;
  }

  .verdict-symbol span {
    width: 38px;
    height: 38px;
  }

  .verdict-symbol span:nth-child(1) { top: 10px; left: 25px; }
  .verdict-symbol span:nth-child(2) { bottom: 12px; left: 12px; }
  .verdict-symbol span:nth-child(3) { right: 12px; bottom: 12px; }

  .pattern-verdict > .status-mark {
    grid-column: 2;
  }

  .evidence-row {
    grid-template-columns: 1fr 1fr;
  }

  .evidence-head {
    display: none;
  }

  .missing-evidence {
    grid-template-columns: 1fr;
  }

  .missing-evidence > p:last-child {
    grid-column: auto;
  }

  /* Intake: fall back to the standard sticky header / tab-bar chrome instead of the floating glass shell */
  .product-shell--intake .product-header {
    position: sticky;
    top: 0;
    right: auto;
    left: auto;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(9, 10, 12, 0.88);
    backdrop-filter: blur(16px);
    pointer-events: auto;
  }

  .product-shell--intake .product-header .brand {
    display: inline-flex;
  }

  .product-shell--intake .product-header .header-context {
    display: flex;
  }

  .intake-top-status {
    display: none;
  }

  .sidebar-brand {
    display: none;
  }

  .product-shell--intake .flow-navigation,
  .product-shell--numerology .flow-navigation,
  .product-shell--human-design .flow-navigation {
    position: sticky;
    top: 64px;
    left: auto;
    bottom: auto;
    z-index: 10;
    display: grid;
    width: 100%;
    height: auto;
    grid-template-columns: repeat(7, minmax(56px, 1fr));
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(12, 14, 16, 0.92), rgba(12, 14, 16, 0.86));
    backdrop-filter: blur(10px);
    box-shadow: none;
  }

  .intake-top-frame {
    top: 150px;
    left: 16px;
    right: 16px;
    padding: 12px 16px;
  }

  /* Numerology Pillar: fall back to the standard sticky header / tab-bar chrome, content flows below */
  .product-shell--numerology .product-header {
    position: sticky;
    top: 0;
    right: auto;
    left: auto;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(9, 10, 12, 0.88);
    backdrop-filter: blur(16px);
  }

  .product-shell--numerology .product-header .brand {
    display: inline-flex;
  }

  .product-shell--numerology .stage-canvas {
    padding: 20px 16px 200px;
  }

  .numerology-hero {
    padding: 24px 20px 20px;
  }

  .numerology-hero-copy h1 {
    font-size: 28px;
  }

  .numerology-hero-meta {
    gap: 16px;
  }

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

  .numerology-analysis-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .numerology-metric-detail[open] .reference-panel {
    position: fixed;
    top: auto;
    right: 16px;
    bottom: 16px;
    left: 16px;
    margin-top: 0;
    width: auto;
    max-height: min(70vh, calc(100vh - 32px));
  }

  /* Mobile panel is viewport-fixed, not anchored below the grid, so no reserved gap is needed. */
  .numerology-metric-grid:has(.numerology-metric-detail[open]) {
    margin-bottom: 0;
  }

  /* Unlike .numerology-metric-grid, .hd-panel itself sets backdrop-filter, which makes it
     a containing block for position:fixed descendants — a true viewport-fixed bottom sheet
     is not reliable here. The base (min-width:821px-and-up) rule already anchors the panel
     directly below the hd-panel at full column width, which works fine at mobile widths too
     (the panels grid is already a single column here), so no mobile-specific override is
     applied for .hd-reference-detail — it intentionally falls through to the base rule.
     Its margin-bottom reservation on .hd-panel is left active at every width for the same reason. */

  .numerology-source-bar {
    position: static;
    flex-wrap: wrap;
    margin-top: 8px;
  }

  .numerology-source-chips {
    flex-wrap: wrap;
  }

  .numerology-source-system {
    text-align: left;
  }

  /* Human Design Pillar: fall back to the standard sticky header / tab-bar chrome, content flows below */
  .product-shell--human-design .product-header {
    position: sticky;
    top: 0;
    right: auto;
    left: auto;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(9, 10, 12, 0.88);
    backdrop-filter: blur(16px);
  }

  .product-shell--human-design .product-header .brand {
    display: inline-flex;
  }

  .product-shell--human-design .stage-canvas {
    padding: 20px 16px 200px;
  }

  .hd-hero {
    padding: 24px 20px 20px;
  }

  .hd-hero-copy h1 {
    font-size: 28px;
  }

  .hd-hero-meta {
    gap: 16px;
  }

  .hd-pillar-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hd-bodygraph-frame {
    height: auto;
    padding: 10px;
  }

  .hd-pillar-panels-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hd-source-bar {
    position: static;
    flex-wrap: wrap;
    margin-top: 8px;
  }

  .hd-source-chips {
    flex-wrap: wrap;
  }

  .hd-source-system {
    text-align: left;
  }

  .location-search-helper {
    left: 16px;
    max-width: calc(100% - 32px);
    top: 236px;
  }

  .intake-source-overlay {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 16px 16px 18px;
  }

  .intake-source-row {
    flex-wrap: wrap;
  }

  .intake-source-build {
    width: 100%;
  }

  .intake-validation-summary,
  .location-validation-message {
    left: 16px;
    right: 16px;
    top: 220px;
  }
}

@media (max-width: 560px) {
  .brand small,
  .header-context button small {
    display: none;
  }

  .brand strong {
    font-size: 12px;
  }

  .stage-intro h1 {
    font-size: 32px;
  }

  .benchmark-mode-notice {
    grid-template-columns: 1fr auto;
    padding: 10px 16px;
  }

  .benchmark-mode-notice p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .stage-actions,
  .section-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .stage-actions {
    display: grid;
  }

  .section-title-row h2,
  .section-title-row h3 {
    text-align: left;
  }

  .location-picker {
    padding: 24px 18px;
  }

  .map-provider-frame {
    aspect-ratio: auto;
    min-height: 640px;
  }

  .intake-source-overlay {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 14px 14px 16px;
  }

  .intake-source-row {
    flex-wrap: wrap;
  }

  .source-pill {
    flex: 1 1 100%;
    max-width: none;
  }

  .intake-source-build {
    flex: 1 1 100%;
  }

  .intake-top-frame {
    top: 140px;
    left: 12px;
    right: 12px;
    padding: 10px 14px;
  }

  .location-search-bar {
    flex-wrap: wrap;
  }

  .location-details-toggle {
    order: 2;
    flex: 1 1 100%;
  }

  .location-search-bar > .field-info {
    order: 1;
    margin-left: auto;
  }

  .location-details-panel {
    right: 0;
    left: 0;
    width: auto;
  }

  .location-search-row {
    grid-template-columns: 42px minmax(0, 1fr) 44px;
    min-height: 46px;
    border-radius: var(--radius-pill);
  }

  .location-search-icon {
    width: 30px;
    height: 30px;
  }

  .location-search-row input {
    min-height: 44px;
    padding-right: 8px;
    font-size: 13px;
  }

  .location-search-row button {
    width: 30px;
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
  }

  .map-provider-placeholder {
    padding: 24px 18px;
  }

  .location-metadata {
    grid-template-columns: 1fr;
  }

  .location-metadata .location-label {
    grid-column: auto;
  }

  .source-status-row {
    grid-template-columns: 1fr;
  }

  .pillar-visual {
    min-height: 280px;
  }

  .discovery-status {
    grid-template-columns: 1fr;
  }

  .discovery-status > div {
    min-height: 70px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pattern-verdict {
    grid-template-columns: 1fr;
  }

  .pattern-verdict > .status-mark {
    grid-column: auto;
  }

  .evidence-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .map-hero h2 {
    font-size: 34px;
  }

  .definition-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* ==========================================================================
   Western Astrology Pillar — scoped .astro-* / .product-shell--western-astrology
   classes only. Reuses shared glass-panel tokens (--glass-*, --radius-*,
   --font-*, --gold*, --teal*, --text*, --muted, --line-strong) already
   defined in :root; no shared selector above this point is modified.
   ========================================================================== */

.product-shell--western-astrology {
  background:
    radial-gradient(1200px 800px at 74% 16%, rgba(105, 183, 173, 0.05), transparent 60%),
    radial-gradient(900px 700px at 16% 84%, rgba(213, 182, 109, 0.04), transparent 60%),
    repeating-radial-gradient(circle at 50% 44%, rgba(105, 183, 173, 0.018) 0, rgba(105, 183, 173, 0.018) 1px, transparent 1px, transparent 150px),
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(240, 238, 232, 0.45), transparent 60%),
    radial-gradient(1.4px 1.4px at 86% 14%, rgba(240, 238, 232, 0.38), transparent 60%),
    radial-gradient(1.4px 1.4px at 62% 72%, rgba(240, 238, 232, 0.32), transparent 60%),
    radial-gradient(1px 1px at 30% 88%, rgba(240, 238, 232, 0.28), transparent 60%),
    radial-gradient(1px 1px at 93% 62%, rgba(240, 238, 232, 0.28), transparent 60%),
    radial-gradient(1.4px 1.4px at 46% 6%, rgba(240, 238, 232, 0.32), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

.product-shell--western-astrology .product-header {
  position: fixed;
  top: 32px;
  left: 336px;
  right: 32px;
  z-index: 25;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium));
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(240, 238, 232, 0.05),
    0 0 40px rgba(105, 183, 173, 0.04);
}

.product-shell--western-astrology .product-header .brand {
  display: none;
}

.product-shell--western-astrology .product-header .header-context {
  width: 100%;
  padding: 16px 24px;
}

.product-shell--western-astrology .workspace-shell {
  display: block;
  min-height: 100vh;
}

.product-shell--western-astrology .stage-canvas {
  overflow: visible;
  min-height: 100vh;
  padding: 122px 32px 220px 336px;
}

.product-shell--western-astrology .flow-navigation {
  position: fixed;
  top: 32px;
  bottom: 32px;
  left: 32px;
  z-index: 20;
  width: 264px;
  height: auto;
  padding: 28px 20px 26px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-panel-bg);
  backdrop-filter: blur(var(--glass-blur-strong)) saturate(140%);
  box-shadow: var(--glass-panel-shadow);
}

.astro-pillar-view {
  display: grid;
  gap: 22px;
  max-width: 1440px;
}

.astro-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 20px;
  padding: 32px 36px 26px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium)) saturate(140%);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.4),
    inset 0 1px rgba(240, 238, 232, 0.06),
    0 0 40px rgba(105, 183, 173, 0.04);
}

.astro-hero--simple {
  padding: 28px 32px;
}

.astro-hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.astro-hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.astro-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.astro-hero-copy h1 {
  max-width: 520px;
  margin-bottom: 10px;
  font-size: 38px;
  color: var(--text);
}

.astro-hero-subtitle {
  max-width: 460px;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.astro-hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(105, 183, 173, 0.16);
}

.astro-hero-meta-item {
  display: grid;
  gap: 3px;
  min-width: 120px;
}

.astro-hero-meta-item span {
  color: rgba(105, 183, 173, 0.85);
  font-family: var(--font-meta);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.astro-hero-meta-item strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.astro-suppressed-banner {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(213, 182, 109, 0.28);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-soft));
}

.astro-suppressed-banner-icon {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(213, 182, 109, 0.5);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 12px;
}

.astro-suppressed-banner p {
  margin: 0 0 4px;
  font-size: 11.5px;
  line-height: 1.55;
}

.astro-suppressed-banner p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.astro-suppressed-banner p strong {
  color: var(--text);
}

.astro-pillar-main-grid {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(360px, 1fr) minmax(200px, 240px);
  align-items: stretch;
  gap: 16px;
}

.astro-bigthree-column,
.astro-quickfacts-column {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px 16px 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium));
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.36),
    inset 0 1px rgba(240, 238, 232, 0.05);
}

.astro-bigthree-title h3 {
  font-size: 14px;
  color: var(--text);
}

.astro-bigthree-list,
.astro-quickfacts-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.astro-bigthree-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-control);
  background: var(--glass-control-fill);
}

.astro-bigthree-glyph {
  color: var(--teal);
  font-size: 13px;
  text-align: center;
}

.astro-bigthree-label {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.astro-bigthree-value {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  text-align: right;
}

.astro-quickfacts-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-control);
  background: var(--glass-control-fill);
}

.astro-quickfacts-list li span {
  color: var(--text-soft);
  font-size: 10px;
}

.astro-quickfacts-list li strong {
  overflow: hidden;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 500;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.astro-chart-wheel {
  position: relative;
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 520px;
  padding: 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium));
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.4),
    inset 0 1px rgba(240, 238, 232, 0.05),
    0 0 40px rgba(105, 183, 173, 0.03);
}

.astro-wheel-svg {
  width: min(440px, 92%);
  height: auto;
}

.astro-chart-wheel > p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
}

.astro-wheel-notice {
  display: flex;
  gap: 10px;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(20, 23, 26, 0.9);
}

.astro-wheel-notice-icon {
  display: grid;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid var(--muted);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 10px;
}

.astro-wheel-notice-label {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.astro-wheel-notice-cta {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.astro-pillar-panels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.astro-panel {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px 20px 22px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium));
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.36),
    inset 0 1px rgba(240, 238, 232, 0.05);
}

.astro-panel-title-row {
  position: relative;
  display: grid;
  gap: 2px;
}

.astro-panel-title-row h3 {
  font-size: 15px;
  color: var(--text);
}

.astro-panel-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.astro-count-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 9px;
  border: 1px solid rgba(105, 183, 173, 0.3);
  border-radius: var(--radius-pill);
  color: var(--teal);
  font-family: var(--font-meta);
  font-size: 10px;
}

.astro-placement-table {
  display: grid;
  gap: 2px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-control);
}

.astro-placement-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 0.7fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  background: var(--glass-control-fill);
  font-size: 10.5px;
}

.astro-placement-head {
  background: transparent;
  color: rgba(213, 182, 109, 0.75);
  font-family: var(--font-meta);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.astro-placement-row strong {
  overflow: hidden;
  color: var(--text);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.astro-motion-retrograde {
  color: rgba(196, 90, 90, 0.9);
}

.astro-motion-stationary {
  color: rgba(213, 182, 109, 0.9);
}

.astro-motion-direct {
  color: var(--muted);
}

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

.astro-angle-grid div {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: var(--radius-control);
  background: var(--glass-control-fill);
}

.astro-angle-grid span {
  color: rgba(213, 182, 109, 0.75);
  font-family: var(--font-meta);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.astro-angle-grid strong {
  color: var(--text);
  font-size: 11.5px;
  font-weight: 500;
}

.astro-house-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.astro-house-chip {
  display: grid;
  gap: 2px;
  padding: 5px 4px;
  border: 1px solid rgba(240, 238, 232, 0.1);
  border-radius: 8px;
  background: rgba(240, 238, 232, 0.03);
  text-align: center;
}

.astro-house-chip span {
  color: var(--muted);
  font-size: 7.5px;
  text-transform: uppercase;
}

.astro-house-chip strong {
  color: var(--text-soft);
  font-size: 9.5px;
}

.astro-aspect-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
}

.astro-aspect-list li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-control);
  background: var(--glass-control-fill);
}

.astro-aspect-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.astro-aspect-bodies {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.astro-aspect-orb {
  color: var(--muted);
  font-size: 9.5px;
}

.astro-balance-group {
  display: grid;
  gap: 6px;
}

.astro-balance-group-label {
  margin: 0;
  color: rgba(105, 183, 173, 0.85);
  font-family: var(--font-meta);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.astro-balance-bar-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
}

.astro-balance-bar-label {
  color: var(--text-soft);
  font-size: 10px;
}

.astro-balance-bar-track {
  overflow: hidden;
  height: 6px;
  border-radius: 4px;
  background: rgba(240, 238, 232, 0.06);
}

.astro-balance-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal));
  border-radius: 4px;
}

.astro-balance-bar-count {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

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

.astro-hemisphere-grid div {
  display: grid;
  gap: 2px;
  padding: 7px 4px;
  border-radius: 8px;
  background: rgba(240, 238, 232, 0.03);
  text-align: center;
}

.astro-hemisphere-grid span {
  color: var(--muted);
  font-size: 7.5px;
  text-transform: uppercase;
}

.astro-hemisphere-grid strong {
  color: var(--text-soft);
  font-size: 12px;
}

.astro-insight-lead {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}

.astro-insight-block h4 {
  margin: 0 0 4px;
  color: rgba(105, 183, 173, 0.85);
  font-family: var(--font-meta);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.astro-insight-block p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.55;
}

.astro-legend-grid {
  display: grid;
  gap: 6px;
}

.astro-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 10.5px;
}

.astro-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.astro-methodology-list {
  display: grid;
  gap: 6px;
  margin: 0;
}

.astro-methodology-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.astro-methodology-list dt {
  color: var(--muted);
  font-size: 9.5px;
}

.astro-methodology-list dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 10.5px;
  text-align: right;
}

.astro-unavailable-panel {
  padding: 26px 28px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
}

.astro-unavailable-panel h3 {
  margin: 6px 0 10px;
  font-size: 18px;
  color: var(--text);
}

.astro-unavailable-list {
  margin: 12px 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 11.5px;
  line-height: 1.6;
}

.astro-unavailable-list li {
  margin-bottom: 6px;
}

.astro-source-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-soft));
}

.astro-source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.astro-source-chip {
  display: grid;
  gap: 2px;
}

.astro-source-chip span {
  color: rgba(105, 183, 173, 0.75);
  font-family: var(--font-meta);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.astro-source-chip strong {
  color: var(--text);
  font-size: 11.5px;
  font-weight: 500;
}

.astro-source-system span {
  color: var(--muted);
  font-size: 10px;
}

.astro-source-system strong {
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 1400px) {
  .astro-pillar-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 820px) {
  .product-shell--western-astrology .product-header {
    position: sticky;
    top: 0;
    right: auto;
    left: auto;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(9, 10, 12, 0.88);
    backdrop-filter: blur(16px);
  }

  .product-shell--western-astrology .product-header .brand {
    display: inline-flex;
  }

  .product-shell--western-astrology .stage-canvas {
    padding: 20px 16px 200px;
  }

  .astro-hero {
    padding: 24px 20px 20px;
  }

  .astro-hero-copy h1 {
    font-size: 28px;
  }

  .astro-hero-meta {
    gap: 16px;
  }

  .astro-chart-wheel {
    min-height: 420px;
  }

  .astro-pillar-panels-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .astro-placement-table {
    overflow-x: auto;
  }

  .astro-placement-row {
    grid-template-columns: 118px 90px 70px 70px 76px;
    width: max-content;
    min-width: 100%;
  }

  .astro-house-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  .astro-source-bar {
    flex-wrap: wrap;
  }

  .astro-hero-meta-item {
    min-width: 100px;
  }
}

/* ==========================================================================
   BaZi & TCM Pillar — scoped .bazi-* / .tcm-* / .product-shell--bazi-tcm
   classes only. Reuses shared glass-panel tokens (--glass-*, --radius-*,
   --font-*, --gold*, --teal*, --text*, --muted, --line-strong) already
   defined in :root; no shared selector above this point is modified.
   ========================================================================== */

.product-shell--bazi-tcm {
  background:
    radial-gradient(1200px 800px at 74% 16%, rgba(213, 182, 109, 0.05), transparent 60%),
    radial-gradient(900px 700px at 16% 84%, rgba(224, 122, 95, 0.04), transparent 60%),
    repeating-radial-gradient(circle at 50% 44%, rgba(213, 182, 109, 0.018) 0, rgba(213, 182, 109, 0.018) 1px, transparent 1px, transparent 150px),
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(240, 238, 232, 0.45), transparent 60%),
    radial-gradient(1.4px 1.4px at 86% 14%, rgba(240, 238, 232, 0.38), transparent 60%),
    radial-gradient(1.4px 1.4px at 62% 72%, rgba(240, 238, 232, 0.32), transparent 60%),
    radial-gradient(1px 1px at 30% 88%, rgba(240, 238, 232, 0.28), transparent 60%),
    radial-gradient(1px 1px at 93% 62%, rgba(240, 238, 232, 0.28), transparent 60%),
    radial-gradient(1.4px 1.4px at 46% 6%, rgba(240, 238, 232, 0.32), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

.product-shell--bazi-tcm .product-header {
  position: fixed;
  top: 32px;
  left: 336px;
  right: 32px;
  z-index: 25;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium));
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(240, 238, 232, 0.05),
    0 0 40px rgba(213, 182, 109, 0.04);
}

.product-shell--bazi-tcm .product-header .brand {
  display: none;
}

.product-shell--bazi-tcm .product-header .header-context {
  width: 100%;
  padding: 16px 24px;
}

.product-shell--bazi-tcm .workspace-shell {
  display: block;
  min-height: 100vh;
}

.product-shell--bazi-tcm .stage-canvas {
  overflow: visible;
  min-height: 100vh;
  padding: 122px 32px 220px 336px;
}

.product-shell--bazi-tcm .flow-navigation {
  position: fixed;
  top: 32px;
  bottom: 32px;
  left: 32px;
  z-index: 20;
  width: 264px;
  height: auto;
  padding: 28px 20px 26px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-panel-bg);
  backdrop-filter: blur(var(--glass-blur-strong)) saturate(140%);
  box-shadow: var(--glass-panel-shadow);
}

.bazi-pillar-view {
  display: grid;
  gap: 22px;
  max-width: 1440px;
}

.bazi-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 20px;
  padding: 32px 36px 26px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium)) saturate(140%);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.4),
    inset 0 1px rgba(240, 238, 232, 0.06),
    0 0 40px rgba(213, 182, 109, 0.04);
}

.bazi-hero--simple {
  padding: 28px 32px;
}

.bazi-hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bazi-hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bazi-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.bazi-hero-copy h1 {
  max-width: 520px;
  margin-bottom: 10px;
  font-size: 38px;
  color: var(--text);
}

.bazi-hero-subtitle {
  max-width: 460px;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.bazi-hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(213, 182, 109, 0.14);
}

.bazi-hero-meta-item {
  display: grid;
  gap: 3px;
  min-width: 120px;
}

.bazi-hero-meta-item span {
  color: rgba(213, 182, 109, 0.75);
  font-family: var(--font-meta);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bazi-hero-meta-item strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bazi-warning-banner {
  display: grid;
  gap: 8px;
}

.bazi-warning-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(196, 90, 90, 0.32);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-soft));
}

.bazi-warning-icon {
  display: grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(196, 90, 90, 0.6);
  border-radius: 50%;
  color: rgba(224, 140, 140, 0.95);
  font-family: var(--font-display);
  font-size: 12px;
}

.bazi-warning-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.55;
}

.bazi-suppressed-banner {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(213, 182, 109, 0.28);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-soft));
}

.bazi-suppressed-banner-icon {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(213, 182, 109, 0.5);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 12px;
}

.bazi-suppressed-banner p {
  margin: 0 0 4px;
  font-size: 11.5px;
  line-height: 1.55;
}

.bazi-suppressed-banner p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.bazi-suppressed-banner p strong {
  color: var(--text);
}

.bazi-four-pillars {
  display: grid;
  gap: 14px;
  padding: 22px 24px 24px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium));
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.36),
    inset 0 1px rgba(240, 238, 232, 0.05);
}

.bazi-panel-title-row {
  position: relative;
  display: grid;
  gap: 2px;
}

.bazi-panel-title-row h3 {
  font-size: 15px;
  color: var(--text);
}

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

.bazi-pillar-column {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px 12px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-control);
  background: var(--glass-control-fill);
  text-align: center;
}

.bazi-pillar-column.is-day-master {
  border-color: rgba(213, 182, 109, 0.5);
  background: rgba(213, 182, 109, 0.08);
  box-shadow: 0 0 24px rgba(213, 182, 109, 0.08);
}

.bazi-pillar-column--unavailable {
  opacity: 0.55;
}

.bazi-pillar-column-label {
  margin: 0;
  color: rgba(213, 182, 109, 0.8);
  font-family: var(--font-meta);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bazi-day-master-tag {
  padding: 2px 7px;
  border: 1px solid rgba(213, 182, 109, 0.4);
  border-radius: var(--radius-pill);
  color: var(--gold);
  font-size: 7.5px;
  text-transform: none;
}

.bazi-stem-cell,
.bazi-branch-cell {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.bazi-character {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
}

.bazi-daymaster-character {
  font-size: 40px;
  color: var(--gold);
}

.bazi-pinyin {
  color: var(--text-soft);
  font-size: 10.5px;
}

.bazi-phase-tag {
  color: var(--muted);
  font-size: 9px;
}

.bazi-hidden-stems {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.bazi-hidden-stem-chip {
  display: grid;
  justify-items: center;
  padding: 3px 6px;
  border: 1px solid rgba(240, 238, 232, 0.12);
  border-radius: 8px;
  background: rgba(240, 238, 232, 0.03);
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.2;
}

.bazi-hidden-stem-chip small {
  color: var(--muted);
  font-size: 7px;
}

.bazi-ten-god-label {
  margin: 0;
  color: var(--teal);
  font-size: 10px;
}

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

.bazi-phase-wheel,
.bazi-seasonal-arc {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium));
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.4),
    inset 0 1px rgba(240, 238, 232, 0.05);
}

.bazi-phase-wheel-svg,
.bazi-seasonal-arc-svg {
  width: min(360px, 92%);
  height: auto;
}

.bazi-phase-wheel > p,
.bazi-seasonal-arc > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.bazi-pillar-panels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.bazi-panel {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px 20px 22px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-medium));
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.36),
    inset 0 1px rgba(240, 238, 232, 0.05);
}

.bazi-panel-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.bazi-count-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 9px;
  border: 1px solid rgba(105, 183, 173, 0.3);
  border-radius: var(--radius-pill);
  color: var(--teal);
  font-family: var(--font-meta);
  font-size: 10px;
}

.bazi-daymaster-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bazi-daymaster-name {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.bazi-strength-readout {
  display: grid;
  gap: 6px;
}

.bazi-strength-tag {
  justify-self: start;
  padding: 3px 10px;
  border: 1px solid rgba(213, 182, 109, 0.35);
  border-radius: var(--radius-pill);
  color: var(--gold);
  font-family: var(--font-meta);
  font-size: 9px;
  text-transform: capitalize;
}

.bazi-balance-group {
  display: grid;
  gap: 6px;
}

.bazi-balance-group-label {
  margin: 0;
  color: rgba(105, 183, 173, 0.85);
  font-family: var(--font-meta);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bazi-balance-bar-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
}

.bazi-balance-bar-label {
  color: var(--text-soft);
  font-size: 10px;
}

.bazi-balance-bar-track {
  overflow: hidden;
  height: 6px;
  border-radius: 4px;
  background: rgba(240, 238, 232, 0.06);
}

.bazi-balance-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal));
  border-radius: 4px;
}

.bazi-balance-bar-count {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.bazi-tengods-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bazi-tengods-list li {
  display: grid;
  grid-template-columns: 50px 60px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-control);
  background: var(--glass-control-fill);
  font-size: 10.5px;
}

.bazi-tengods-pillar {
  color: rgba(213, 182, 109, 0.75);
  font-family: var(--font-meta);
  font-size: 8.5px;
  text-transform: uppercase;
}

.bazi-tengods-stem {
  color: var(--text-soft);
}

.bazi-tengods-value {
  overflow: hidden;
  color: var(--text);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bazi-relationship-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
}

.bazi-relationship-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-control);
  background: var(--glass-control-fill);
}

.bazi-relationship-label {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bazi-relationship-completeness {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 8.5px;
  text-transform: uppercase;
}

.bazi-relationship-completeness--complete {
  border: 1px solid rgba(105, 183, 173, 0.4);
  color: var(--teal);
}

.bazi-relationship-completeness--partial {
  border: 1px solid rgba(213, 182, 109, 0.4);
  color: var(--gold);
}

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

.bazi-luck-list {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bazi-luck-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(240, 238, 232, 0.03);
  color: var(--text-soft);
  font-size: 10px;
}

.bazi-luck-list li small {
  color: var(--muted);
}

.tcm-organ-pair {
  display: grid;
  gap: 3px;
}

.tcm-organ-pair strong {
  color: var(--gold);
  font-size: 14px;
}

.tcm-organ-pair span {
  color: var(--muted);
  font-size: 10px;
}

.tcm-phase-table {
  display: grid;
  gap: 2px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-control);
}

.tcm-phase-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.6fr);
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  background: var(--glass-control-fill);
  font-size: 10px;
}

.tcm-phase-row.is-day-master {
  background: rgba(213, 182, 109, 0.1);
}

.tcm-phase-row strong {
  color: var(--text);
}

.tcm-phase-row span {
  color: var(--text-soft);
}

.tcm-emphasis-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.55;
}

.tcm-disclaimer {
  margin: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(240, 238, 232, 0.08);
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.tcm-reflection-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 11.5px;
  line-height: 1.55;
}

.bazi-methodology-list {
  display: grid;
  gap: 6px;
  margin: 0;
}

.bazi-methodology-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.bazi-methodology-list dt {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 9.5px;
}

.bazi-methodology-list dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
  text-align: right;
}

.bazi-unavailable-panel {
  padding: 26px 28px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
}

.bazi-unavailable-panel h3 {
  margin: 6px 0 10px;
  font-size: 18px;
  color: var(--text);
}

.bazi-unavailable-list {
  margin: 12px 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 11.5px;
  line-height: 1.6;
}

.bazi-unavailable-list li {
  margin-bottom: 6px;
}

.bazi-source-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-overlay-bg);
  backdrop-filter: blur(var(--glass-blur-soft));
}

.bazi-source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.bazi-source-chip {
  display: grid;
  gap: 2px;
}

.bazi-source-chip span {
  color: rgba(213, 182, 109, 0.75);
  font-family: var(--font-meta);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bazi-source-chip strong {
  color: var(--text);
  font-size: 11.5px;
  font-weight: 500;
}

.bazi-source-system span {
  color: var(--muted);
  font-size: 10px;
}

.bazi-source-system strong {
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 1400px) {
  .bazi-four-pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bazi-visual-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 820px) {
  .product-shell--bazi-tcm .product-header {
    position: sticky;
    top: 0;
    right: auto;
    left: auto;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(9, 10, 12, 0.88);
    backdrop-filter: blur(16px);
  }

  .product-shell--bazi-tcm .product-header .brand {
    display: inline-flex;
  }

  .product-shell--bazi-tcm .stage-canvas {
    padding: 20px 16px 200px;
  }

  .bazi-hero {
    padding: 24px 20px 20px;
  }

  .bazi-hero-copy h1 {
    font-size: 28px;
  }

  .bazi-hero-meta {
    gap: 16px;
  }

  .bazi-four-pillars-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bazi-pillar-panels-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tcm-phase-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .tcm-phase-row span:nth-child(3) {
    display: none;
  }

  .bazi-luck-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .bazi-source-bar {
    flex-wrap: wrap;
  }

  .bazi-hero-meta-item {
    min-width: 100px;
  }
}

/* Export system — pillar-local and cross-pillar data export actions.
   Reuses existing glass/gold tokens only; no shared selector above is modified. */
.pillar-export {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-control);
  background: var(--glass-panel-bg);
  backdrop-filter: blur(var(--glass-blur-soft));
}

.pillar-export__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pillar-export__button {
  padding: 9px 18px;
  border: 1px solid rgba(213, 182, 109, 0.24);
  border-radius: var(--radius-pill);
  background: rgba(12, 13, 13, 0.85);
  color: var(--gold);
  font-family: var(--font-meta);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.pillar-export__button:hover {
  border-color: rgba(213, 182, 109, 0.5);
  box-shadow: 0 0 14px rgba(213, 182, 109, 0.12);
  transform: translateY(-1px);
}

.pillar-export__button--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #0c0d0d;
}

.pillar-export__button--primary:hover {
  box-shadow: 0 0 16px rgba(213, 182, 109, 0.28);
}

.pillar-export__status {
  margin: 0;
  font-family: var(--font-meta);
  font-size: 11px;
}

.pillar-export__status--success {
  color: var(--teal);
}

.pillar-export__status--error {
  color: var(--danger);
}

.cross-pillar-export {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-control);
  background: var(--glass-panel-bg);
}

.cross-pillar-export__summary {
  margin: 0;
  color: var(--text-soft);
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cross-pillar-export .pillar-export__actions {
  flex-direction: column;
}

.cross-pillar-export .pillar-export__button {
  width: 100%;
  text-align: center;
}

@media (max-width: 560px) {
  .pillar-export__actions {
    flex-direction: column;
  }

  .pillar-export__button {
    width: 100%;
    text-align: center;
  }
}

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

/* ==========================================================================
   Cross-Pillar Synthesis (Theme Discovery / Pattern Reveal / Unified Self Map)
   Scoped classes only — see CLAUDE.md CSS scope rules. Editorial, long-form
   reading feel: generous spacing, restrained glass surfaces, gold/teal accent
   hierarchy reused from the existing design tokens, no new color language.
   ========================================================================== */

.cross-pillar-synthesis .stage-description {
  max-width: 780px;
}

.synthesis-source-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.synthesis-source-status__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--glass-chip-fill);
  font-family: var(--font-meta);
  font-size: 10px;
  color: var(--text-soft);
}

.synthesis-source-status__pill strong {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
}

.synthesis-source-status__pill--complete { border-color: rgba(105, 183, 173, 0.35); }
.synthesis-source-status__pill--partial { border-color: rgba(213, 182, 109, 0.4); }
.synthesis-source-status__pill--unavailable { border-color: var(--line-strong); opacity: 0.7; }

.cross-pillar-synthesis__themes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.cross-pillar-synthesis__themes--emerging {
  opacity: 0.86;
}

.synthesis-theme-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--glass-panel-bg);
  box-shadow: var(--glass-panel-shadow);
}

.synthesis-theme-card--primary { border-color: var(--glass-border-strong); }
.synthesis-theme-card--strong { border-color: rgba(105, 183, 173, 0.4); }
.synthesis-theme-card--moderate { border-color: rgba(111, 144, 183, 0.4); }
.synthesis-theme-card--emerging { border-color: var(--line); }

.synthesis-theme-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-meta);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
}

.synthesis-theme-card__strength {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-soft);
  color: var(--gold);
}

.synthesis-theme-card--strong .synthesis-theme-card__strength { border-color: var(--teal-deep); color: var(--teal); }
.synthesis-theme-card--moderate .synthesis-theme-card__strength { border-color: var(--blue); color: var(--blue); }
.synthesis-theme-card--emerging .synthesis-theme-card__strength { border-color: var(--line-strong); color: var(--muted); }

.synthesis-theme-card h3 {
  font-size: 21px;
}

.synthesis-theme-card__summary {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.synthesis-theme-card__life-areas {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.synthesis-theme-card__notes p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

.synthesis-theme-card__notes strong {
  color: var(--text);
}

.synthesis-theme-card__guardrail {
  margin: 0;
  padding: 8px 10px;
  border-left: 2px solid var(--ember);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.synthesis-emerging-signals {
  margin-bottom: 40px;
}

.synthesis-emerging-signals__note {
  max-width: 720px;
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.synthesis-evidence {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.synthesis-evidence__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--gold);
  font-family: var(--font-meta);
  font-size: 11px;
  text-transform: uppercase;
  list-style: none;
}

.synthesis-evidence__trigger::-webkit-details-marker {
  display: none;
}

.synthesis-evidence__drawer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.synthesis-evidence__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-control);
  background: var(--glass-control-fill);
  font-size: 12px;
}

.synthesis-evidence__row strong {
  color: var(--gold);
  font-family: var(--font-meta);
  font-size: 10px;
  text-transform: uppercase;
}

.synthesis-evidence__row span {
  color: var(--text-soft);
}

.synthesis-evidence__row small {
  color: var(--muted);
}

.synthesis-evidence__guardrail {
  width: 100%;
  color: var(--ember);
}

.synthesis-evidence__rationale {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.synthesis-evidence__warning {
  margin: 0;
  padding-left: 10px;
  border-left: 2px solid var(--ember);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.cross-pillar-synthesis__tensions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.synthesis-tension {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--glass-panel-bg);
}

.synthesis-tension h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.synthesis-tension__sides {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.synthesis-tension__side p:last-child {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.synthesis-tension__divider {
  color: var(--gold-soft);
  font-size: 18px;
}

.synthesis-tension__interpretation {
  margin-bottom: 16px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.synthesis-tension__notes p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

.synthesis-tension__notes strong {
  color: var(--text);
}

.synthesis-methodology {
  margin-bottom: 32px;
}

.synthesis-methodology__guardrail-count {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.synthesis-overview {
  padding: 28px 30px;
  margin-bottom: 40px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  background: var(--glass-panel-bg);
  box-shadow: var(--glass-panel-shadow);
}

.synthesis-overview__pattern {
  max-width: 900px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.synthesis-overview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.synthesis-overview__grid p {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.synthesis-narrative {
  max-width: 820px;
  margin-bottom: 44px;
}

.synthesis-profile-section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.synthesis-profile-section:last-child {
  border-bottom: none;
}

.synthesis-profile-section h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.synthesis-profile-section p {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.synthesis-profile-section p:last-child {
  margin-bottom: 0;
}

.synthesis-life-areas {
  margin-bottom: 40px;
}

.synthesis-life-areas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.synthesis-life-area {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface-soft);
}

.synthesis-life-area p:not(.eyebrow) {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.synthesis-life-area p:last-of-type {
  margin-bottom: 0;
}

.synthesis-current-period {
  padding: 22px 24px;
  margin-bottom: 36px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-panel);
  background: var(--surface-warm);
}

.synthesis-current-period__entries {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 14px 0;
}

.synthesis-current-period__entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--glass-control-fill);
}

.synthesis-current-period__entry strong {
  font-family: var(--font-meta);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--gold);
}

.synthesis-current-period__entry span {
  font-size: 15px;
  color: var(--text);
}

.synthesis-current-period__entry small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.synthesis-current-period__note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.synthesis-methodology-warnings {
  margin-bottom: 28px;
}

.synthesis-methodology-warnings__unavailable {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  .synthesis-tension__sides {
    grid-template-columns: 1fr;
  }

  .synthesis-tension__divider {
    justify-self: center;
    transform: rotate(90deg);
  }

  .cross-pillar-synthesis__themes,
  .synthesis-life-areas__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Development-only Intake profile presets. Scoped classes only; fixed-position
   corner widget so it never participates in the Intake/map/source-data layout
   flow (see CLAUDE.md Intake design lock). Only ever present in the DOM when
   config/runtimeConfig.ts's devProfilePresetsEnabled is true.
   ========================================================================== */

.dev-profile-presets {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 40;
  max-width: min(300px, calc(100vw - 28px));
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--glass-chip-fill);
  backdrop-filter: blur(var(--glass-blur-soft));
}

.dev-profile-presets__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.dev-profile-presets__toggle::-webkit-details-marker {
  display: none;
}

.dev-profile-presets__toggle::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
}

.dev-profile-presets[open] .dev-profile-presets__toggle {
  border-bottom: 1px solid var(--line);
}

.dev-profile-presets__panel {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px 12px 12px;
}

.dev-profile-presets__hint {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.dev-profile-presets__options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dev-profile-presets__option {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font-meta);
  font-size: 10px;
  cursor: pointer;
}

.dev-profile-presets__option:hover {
  border-color: var(--ember);
  color: var(--text);
}

.dev-profile-presets__option--reset {
  color: var(--muted);
  border-style: dashed;
}

.dev-profile-presets__status {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .dev-profile-presets {
    left: 10px;
    bottom: 10px;
  }
}
