:root {
  color-scheme: dark;
  --color-bg: #0e0e17;
  --color-surface: #171723;
  --color-text: #f7f2e8;
  --color-muted: #aaa5b8;
  --color-accent: #e9bd67;
  --bg: #0e0e17;
  --surface: #171723;
  --surface-2: #1f1f2e;
  --surface-3: #28283a;
  --text: #f7f2e8;
  --muted: #aaa5b8;
  --gold: #e9bd67;
  --gold-soft: rgba(233, 189, 103, .14);
  --violet: #9e8cff;
  --line: rgba(255, 255, 255, .09);
  --danger: #ff9e9e;
  --success: #82d9ae;
  --shadow: 0 20px 70px rgba(0, 0, 0, .32);
  font-family: "Dana", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; scroll-padding-top: 84px; background: var(--bg); }
body { min-height: 100vh; margin: 0; color: var(--text); background:
  radial-gradient(circle at 82% -12%, rgba(118, 89, 190, .28), transparent 35rem),
  radial-gradient(circle at 5% 96%, rgba(183, 116, 73, .14), transparent 30rem), var(--bg); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; }
.topbar { height: 72px; padding: 0 clamp(18px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(14, 14, 23, .78); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 30; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 1.15rem; font-weight: 800; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: #15121e; border-radius: 50%; background: linear-gradient(135deg, #f4d58b, #c69041); box-shadow: 0 0 30px rgba(233, 189, 103, .25); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.wallet-button { padding: 8px 12px; color: var(--gold); border: 1px solid rgba(233,189,103,.35); border-radius: 11px; background: rgba(233,189,103,.08); cursor: pointer; white-space: nowrap; }
.wallet-button[data-state="empty"] { color: var(--danger); border-color: rgba(255,158,158,.3); background: rgba(255,100,100,.07); }
.wallet-button strong { font-variant-numeric: tabular-nums; }
.connection-status { color: var(--muted); font-size: .78rem; }
.connection-status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--gold); }
.connection-status.online::before { background: var(--success); }
.connection-status.offline::before { background: var(--danger); }
.ghost-button { padding: 9px 13px; color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.03); }
.logout-button { cursor: pointer; }
.logout-button:hover, .logout-button:focus-visible { color: var(--danger); border-color: rgba(255,158,158,.35); outline: none; }
.ghost-button:disabled { cursor: wait; opacity: .55; }

.workspace { width: min(1500px, 100%); height: calc(100dvh - 72px); margin: 0 auto; padding: 16px clamp(14px, 3vw, 42px); display: grid; grid-template-columns: minmax(230px, 280px) minmax(0, 980px); justify-content: center; gap: 30px; overflow: hidden; }
.topic-panel { align-self: stretch; min-height: 0; overflow: auto; padding: 0 0 18px 4px; scrollbar-gutter: stable; }
.panel-heading { padding: 6px 4px 20px; }
.eyebrow, .pin-label { margin: 0 0 8px; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.panel-heading h1 { margin: 0 0 12px; font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.4; }
.panel-heading p:last-child { margin: 0; color: var(--muted); line-height: 1.9; font-size: .9rem; }
.suggested-questions { display: grid; gap: 8px; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.mode-button { padding: 9px; color: var(--muted); border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.mode-button.is-active { color: #18131e; font-weight: 800; background: linear-gradient(135deg, #f0cf86, #d69c4b); }
.forecast-range { display: grid; gap: 12px; margin: 0 0 16px; padding: 15px; border: 1px solid rgba(233,189,103,.42); border-radius: 16px; background: linear-gradient(145deg,rgba(233,189,103,.13),rgba(158,140,255,.075)); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.forecast-range-heading { display: flex; align-items: center; gap: 9px; }
.forecast-range-heading > span { display: grid; place-items: center; width: 32px; height: 32px; color: #18131e; border-radius: 10px; background: var(--gold); font-size: 1.05rem; }
.forecast-range-heading div { display: grid; gap: 2px; }
.forecast-range-heading strong { color: var(--text); font-size: .82rem; }
.forecast-range-heading small { color: var(--muted); font-size: .66rem; }
.forecast-date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.free-question-range { margin-top: 8px; display: grid; gap: 8px; color: var(--muted); font-size: .72rem; }
.free-question-range > label { display: flex; align-items: center; gap: 8px; }
.free-question-range .forecast-date-fields label { display: grid; gap: 4px; }
.free-question-range .forecast-date-fields input { width: 100%; min-width: 0; padding: 8px; color: var(--text); background: rgba(14,14,23,.72); border: 1px solid rgba(255,255,255,.13); border-radius: 8px; direction: ltr; }
.reading-choice { min-width: 0; margin: 10px 2px 5px; padding: 12px; border: 1px solid rgba(158,140,255,.32); border-radius: 15px; background: linear-gradient(135deg,rgba(158,140,255,.10),rgba(233,189,103,.04)); }
.reading-choice legend { padding: 0 6px; color: #ded4fb; font-size: .78rem; font-weight: 700; }
.reading-choice-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.reading-choice-card { position: relative; cursor: pointer; min-width: 0; }
.reading-choice-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.reading-choice-content { display: grid; gap: 4px; height: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: rgba(14,14,23,.58); line-height: 1.6; transition: border-color .2s, background .2s, transform .2s; }
.reading-choice-content strong { color: var(--text); font-size: .78rem; }
.reading-choice-content strong small { margin-right: 4px; color: var(--muted); font-size: .6rem; font-weight: 400; }
.reading-choice-content > span { font-size: .66rem; }
.reading-choice-card input:checked + .reading-choice-content { border-color: rgba(233,189,103,.65); background: rgba(233,189,103,.11); box-shadow: inset 0 0 0 1px rgba(233,189,103,.1); }
.reading-choice-card input:focus-visible + .reading-choice-content { outline: 2px solid var(--gold); outline-offset: 2px; }
.reading-choice-card input:disabled + .reading-choice-content { opacity: .55; cursor: wait; }
.reading-choice-card:hover .reading-choice-content { transform: translateY(-1px); }
.reading-choice p { margin: 9px 2px 0; color: #c3b9d6; font-size: .68rem; line-height: 1.8; }
.reading-choice[data-mode="open"] { border-color: rgba(158,140,255,.55); }
.open-reading-message { border: 1px solid rgba(158,140,255,.38); background: linear-gradient(145deg,rgba(57,43,78,.8),rgba(27,27,41,.98)); }
.open-reading-context { margin-top: 13px; padding: 11px 12px; border-right: 2px solid var(--violet); border-radius: 9px; color: #d5caee; background: rgba(158,140,255,.12); font-size: .72rem; line-height: 1.9; }
@media(max-width:600px) { .reading-choice-options { grid-template-columns: 1fr; } }
.forecast-range label { display: grid; gap: 5px; color: var(--muted); font-size: .7rem; }
.forecast-range input { width: 100%; min-width: 0; padding: 10px 8px; direction: ltr; text-align: center; color: var(--text); border: 1px solid rgba(255,255,255,.13); border-radius: 10px; outline: none; background: rgba(14,14,23,.72); }
.forecast-range input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233,189,103,.12); }
.forecast-range p { margin: 0; color: #938d9e; font-size: .66rem; line-height: 1.75; }
.forecast-range .forecast-range-summary { min-height: 20px; padding-top: 7px; color: var(--gold); border-top: 1px solid rgba(255,255,255,.08); }
.forecast-range-summary[data-state="invalid"] { color: var(--danger); }
.forecast-range-summary[data-state="valid"] { color: var(--success); }
.interpretation-style { display: grid; gap: 10px; margin: 0 0 16px; padding: 14px; border: 1px solid rgba(158,140,255,.22); border-radius: 16px; background: rgba(158,140,255,.055); }
.interpretation-style[data-inactive="true"] { opacity: .55; }
.interpretation-style[data-inactive="true"] .interpretation-style-options label { cursor: not-allowed; }
.interpretation-style[data-inactive="true"] .interpretation-style-options input:disabled + span { cursor: not-allowed; }
.interpretation-style legend { padding: 0 5px; color: var(--text); font-size: .82rem; font-weight: 700; }
.interpretation-style > p { margin: 0; color: var(--muted); font-size: .67rem; line-height: 1.7; }
.interpretation-style-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.interpretation-style-options label { position: relative; min-width: 0; cursor: pointer; }
.interpretation-style-options input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.interpretation-style-options span { display: grid; gap: 3px; min-height: 66px; padding: 9px 7px; text-align: center; border: 1px solid var(--line); border-radius: 11px; background: rgba(14,14,23,.58); transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.interpretation-style-options strong { color: #ddd7e6; font-size: .72rem; }
.interpretation-style-options small { color: #8f8998; font-size: .57rem; line-height: 1.55; }
.interpretation-style-options input:checked + span { border-color: rgba(233,189,103,.7); background: rgba(233,189,103,.11); box-shadow: 0 0 0 1px rgba(233,189,103,.09); }
.interpretation-style-options input:checked + span strong { color: var(--gold); }
.interpretation-style-options input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.interpretation-style-options input:disabled + span { cursor: wait; opacity: .55; }
.interpretation-style .interpretation-style-help { padding: 9px 10px; color: #c7bfe0; border-right: 2px solid var(--violet); border-radius: 8px; background: rgba(158,140,255,.08); }
.interpretation-style .interpretation-style-help[hidden] { display: none; }
.topic-button { width: 100%; padding: 13px 14px; text-align: right; color: #ded9e7; border: 1px solid transparent; border-radius: 13px; background: rgba(255,255,255,.035); cursor: pointer; transition: .18s ease; }
.topic-button:hover, .topic-button:focus-visible, .topic-button.is-selected { color: var(--text); border-color: rgba(233,189,103,.42); background: var(--gold-soft); transform: translateX(-3px); outline: none; }
.topic-button.is-selected::before { content: "●"; margin-left: 8px; color: var(--gold); font-size: .55rem; }

.chat-panel { min-width: 0; min-height: 0; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.chart-card { position: relative; z-index: 2; margin-bottom: 10px; border: 1px solid rgba(233,189,103,.22); border-radius: 22px; overflow: hidden; background: linear-gradient(145deg, rgba(35,31,47,.97), rgba(22,22,34,.97)); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.chart-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.chart-card-header h2 { margin: 0; font-size: 1.05rem; }
.chart-card-header p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; }
.chart-focus-status { display: inline-flex; align-items: center; gap: 6px; color: #ccb574 !important; }
.chart-focus-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.pin-label { margin-bottom: 4px !important; }
.icon-button { flex: 0 0 auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; }
.chart-content { display: grid; grid-template-columns: minmax(340px, 440px) minmax(250px, 1fr); gap: 24px; padding: 20px; max-height: min(38dvh, 520px); overflow: auto; transition: .2s ease; }
.chart-card.chart-unavailable .chart-content { grid-template-columns: 1fr; }
.chart-card.chart-unavailable .chart-summary { display: none; }
.chart-visual { position: relative; display: grid; place-items: center; min-height: 280px; border-radius: 17px; background: radial-gradient(circle, rgba(158,140,255,.11), transparent 61%); }
#natal-chart { width: 100%; height: auto; max-height: 440px; overflow: visible; }
.chart-empty-state { position: absolute; display: grid; justify-items: center; gap: 14px; padding: 22px; text-align: center; }
.chart-empty-state[hidden], .chart-profile-cta[hidden] { display: none; }
.chart-empty-state p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.9; }
.chart-profile-cta { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; color: #18131e; border-radius: 11px; background: linear-gradient(135deg,#f0cf86,#d69c4b); box-shadow: 0 9px 25px rgba(214,156,75,.18); font-size: .78rem; font-weight: 800; text-decoration: none; }
.chart-profile-cta:hover, .chart-profile-cta:focus-visible { filter: brightness(1.06); outline: 2px solid rgba(233,189,103,.3); outline-offset: 3px; }
.chart-tooltip { position: absolute; z-index: 12; max-width: 260px; padding: 9px 11px; color: var(--text); border: 1px solid rgba(233,189,103,.34); border-radius: 10px; background: rgba(16,15,25,.96); box-shadow: 0 12px 35px rgba(0,0,0,.45); font-size: .72rem; line-height: 1.7; pointer-events: none; }
#natal-chart [data-chart-feature] { cursor: help; outline: none; }
#natal-chart [data-chart-feature]:hover, #natal-chart [data-chart-feature]:focus { filter: drop-shadow(0 0 7px rgba(255,213,122,.9)); }
.chart-ring { fill: none; stroke: rgba(233,189,103,.52); stroke-width: 1.2; }
.chart-ring.inner { stroke: rgba(255,255,255,.14); }
.zodiac-line, .house-line { stroke: rgba(255,255,255,.11); stroke-width: 1; }
.house-line { stroke: rgba(233,189,103,.18); }
.aspect-line { stroke-width: 1.4; opacity: .52; transition: opacity .18s ease, stroke-width .18s ease, filter .18s ease; }
.aspect-harmonious { stroke: #78baa9; }
.aspect-dynamic { stroke: #dc7d83; }
.aspect-neutral { stroke: #b29fe5; }
.zodiac-label { fill: #d8bf88; font-size: 17px; text-anchor: middle; dominant-baseline: central; }
.planet-marker { transition: opacity .18s ease, filter .18s ease; }
.planet-guide { stroke: rgba(233,189,103,.28); stroke-width: .75; transition: opacity .18s ease, stroke-width .18s ease; }
.planet-halo { fill: rgba(16,15,25,.94); stroke: rgba(233,189,103,.38); stroke-width: 1; }
.planet-label { fill: #fff6e3; font-size: 19px; text-anchor: middle; dominant-baseline: central; filter: drop-shadow(0 2px 5px #000); }
.house-label { fill: #777187; font-size: 10px; text-anchor: middle; dominant-baseline: central; }
.angle-label { fill: var(--gold); font-size: 10px; font-weight: 800; }
.chart-summary { min-width: 0; }
.chart-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 12px; }
.highlight { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.035); }
.highlight span { display: block; color: var(--muted); font-size: .68rem; }
.highlight strong { display: block; margin-top: 5px; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-details { border-top: 1px solid var(--line); padding-top: 10px; }
.chart-details summary, .message-evidence summary { color: var(--gold); cursor: pointer; font-size: .82rem; }
.placement-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.placement { display: flex; justify-content: space-between; gap: 8px; padding: 7px 9px; border-radius: 9px; background: rgba(255,255,255,.035); font-size: .73rem; }
.placement-list .placement { width: 100%; min-height: 42px; align-items: center; color: var(--text); text-align: right; border: 1px solid transparent; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.placement-list .placement:hover, .placement-list .placement:focus-visible, .placement-list .placement[aria-pressed="true"] { border-color: rgba(233,189,103,.65); background: rgba(233,189,103,.13); outline: none; }
.placement-list .placement[aria-pressed="true"] > span:first-child { color: var(--gold); }
.placement span:last-child { color: var(--muted); }

.conversation-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scroll-behavior: smooth; }
.conversation-heading { display: flex; align-items: center; gap: 10px; margin: 6px 4px 10px; padding: 8px 0 12px; border-bottom: 1px solid var(--line); }
.conversation-heading div { display: grid; gap: 2px; }
.conversation-heading strong { font-size: .88rem; }
.conversation-heading span:last-child { color: var(--muted); font-size: .7rem; }
.assistant-avatar, .turn-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; color: #18131e; border-radius: 50%; background: linear-gradient(135deg, #f0cf86, #d69c4b); }
.messages { display: flex; flex-direction: column; gap: 18px; min-height: 260px; padding: 8px 4px 18px; }
.load-older-messages { display: block; margin: 4px auto 10px; padding: 7px 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); cursor: pointer; }
.load-older-messages:hover, .load-older-messages:focus-visible { color: var(--text); border-color: rgba(233,189,103,.3); outline: none; }
.load-older-messages[hidden] { display: none; }
.chat-turn { display: flex; align-items: flex-end; gap: 9px; width: 100%; }
.assistant-turn { justify-content: flex-start; }
.user-turn { justify-content: flex-start; flex-direction: row-reverse; }
.turn-avatar { width: 28px; height: 28px; font-size: .72rem; }
.user-turn .turn-avatar { color: #f7f2e8; background: #65529d; }
.message { max-width: min(82%, 760px); padding: 15px 18px; border-radius: 19px; line-height: 2.05; font-size: .93rem; white-space: pre-wrap; box-shadow: 0 10px 35px rgba(0,0,0,.14); }
.assistant-message { border: 1px solid var(--line); border-bottom-right-radius: 6px; background: var(--surface); }
.assistant-message.assistant-notice { border-color: rgba(233,189,103,.3); background: linear-gradient(135deg, rgba(233,189,103,.095), rgba(123,99,184,.075)); }
.assistant-message.welcome-message { position: relative; max-width: min(92%, 800px); padding: 20px; border-color: rgba(233,189,103,.38); background: radial-gradient(circle at 92% 0,rgba(233,189,103,.13),transparent 36%),linear-gradient(145deg,rgba(43,37,58,.98),rgba(25,24,39,.98)); box-shadow: 0 18px 55px rgba(0,0,0,.25),inset 0 0 0 1px rgba(255,255,255,.025); }
.welcome-badge { display: inline-flex; margin-bottom: 11px; padding: 4px 9px; color: #f2cf82; border: 1px solid rgba(233,189,103,.28); border-radius: 999px; background: rgba(233,189,103,.08); font-size: .68rem; font-weight: 700; letter-spacing: .02em; }
.welcome-message > p { color: #f1edf5; font-size: .96rem; line-height: 2.15; }
.welcome-message .message-evidence { margin-top: 16px; border-top-color: rgba(233,189,103,.2); }
.user-message { border-bottom-left-radius: 6px; background: linear-gradient(135deg, #7962b8, #5c4b92); }
.intro-message { color: #d7d1df; }
.message p { margin: 0; }
.message p.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-right: 4px; vertical-align: -.18em; background: var(--gold); animation: cursor-blink .7s steps(1) infinite; }
.cache-badge { display: inline-flex; margin-top: 9px; padding: 3px 7px; color: var(--success); border: 1px solid rgba(130,217,174,.22); border-radius: 999px; font-size: .62rem; }
.interpretation-style-badge { display: inline-flex; margin-top: 9px; margin-inline-start: 6px; padding: 3px 7px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font-size: .62rem; }
.notice-badge { display: inline-flex; margin-top: 10px; padding: 4px 8px; color: var(--gold); border: 1px solid rgba(233,189,103,.25); border-radius: 999px; background: rgba(233,189,103,.07); font-size: .66rem; }
@keyframes cursor-blink { 50% { opacity: 0; } }
.message-evidence { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); white-space: normal; }
.evidence-list { display: grid; gap: 7px; margin-top: 9px; }
.evidence-chart-link { justify-self: start; padding: 7px 10px; color: var(--gold); border: 1px solid rgba(233,189,103,.25); border-radius: 9px; background: rgba(233,189,103,.07); cursor: pointer; }
.evidence-fact { padding: 10px 12px; border: 1px solid transparent; border-right: 2px solid var(--gold); border-radius: 9px; color: #d8d1df; background: rgba(233,189,103,.065); font-size: .78rem; line-height: 1.85; cursor: pointer; transition: .18s ease; }
.evidence-fact:hover, .evidence-fact:focus-visible, .evidence-fact.is-active { border-color: rgba(233,189,103,.3); background: rgba(233,189,103,.12); outline: none; }
.evidence-meta { display: block; margin-top: 3px; color: #888296; font-size: .68rem; }
.chart-card.evidence-active { border-color: rgba(233,189,103,.52); box-shadow: 0 20px 75px rgba(0,0,0,.36), 0 0 0 1px rgba(233,189,103,.08); }
#natal-chart [data-chart-feature].is-dimmed { opacity: .11; }
#natal-chart [data-chart-feature].is-highlighted { opacity: 1; filter: drop-shadow(0 0 7px rgba(255,213,122,.95)); }
#natal-chart .aspect-line.is-highlighted { stroke-width: 3.5; }
#natal-chart .house-line.is-highlighted, #natal-chart .zodiac-line.is-highlighted { stroke-width: 3; }
#natal-chart .house-label.is-highlighted, #natal-chart .zodiac-label.is-highlighted { fill: #ffe09a; font-size: 20px; }
.request-status { display: flex; align-items: center; gap: 10px; margin: 0 4px 12px; color: var(--muted); font-size: .82rem; }
.status-orbit { width: 14px; height: 14px; border: 2px solid rgba(233,189,103,.25); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-banner { margin: 0 4px 12px; padding: 10px 13px; color: var(--danger); border: 1px solid rgba(255,158,158,.22); border-radius: 11px; background: rgba(255,100,100,.07); font-size: .8rem; }
.error-banner button { margin-right: 8px; color: var(--text); border: 0; border-bottom: 1px solid currentColor; background: none; cursor: pointer; }
.topup-dialog { width: min(440px,calc(100% - 28px)); padding: 0; color: var(--text); border: 1px solid rgba(233,189,103,.3); border-radius: 22px; background: #1b1927; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.topup-dialog::backdrop { background: rgba(8,8,14,.78); backdrop-filter: blur(5px); }
.topup-card { display: grid; gap: 18px; padding: 24px; }
.topup-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.topup-heading h2 { margin: 3px 0 0; }
.topup-card > p { margin: 0; color: var(--muted); line-height: 1.9; }
.dialog-close { width: 34px; height: 34px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; font-size: 1.3rem; }
.topup-field { display: grid; gap: 8px; color: var(--muted); font-size: .78rem; }
.topup-field input { width: 100%; padding: 13px; direction: ltr; text-align: center; color: var(--text); border: 1px solid var(--line); border-radius: 12px; outline: none; background: rgba(12,12,20,.65); }
.topup-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233,189,103,.1); }
.topup-field input[aria-invalid="true"] { border-color: var(--danger); }
.topup-field input[aria-invalid="true"]:focus { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255,100,100,.12); }
.topup-message { padding: 10px 12px; border-radius: 10px; background: rgba(158,140,255,.08); }
.topup-message[data-state="error"] { color: var(--danger); background: rgba(255,100,100,.07); }
.composer { position: relative; z-index: 2; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 19px; background: rgba(27,27,41,.98); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.composer textarea { display: block; width: 100%; min-height: 52px; max-height: 170px; resize: none; padding: 10px 12px; color: var(--text); border: 0; outline: none; background: transparent; line-height: 1.8; }
.composer textarea::placeholder { color: #777184; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px; }
.composer-context { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; color: var(--gold); font-size: .72rem; }
.composer-note { margin: 7px 6px 0; color: #777184; font-size: .66rem; line-height: 1.7; }
.send-button, .text-button { border: 0; cursor: pointer; }
.send-button { padding: 10px 17px; color: #18131e; font-weight: 800; border-radius: 12px; background: linear-gradient(135deg, #f0cf86, #d69c4b); }
.send-button:disabled { cursor: wait; opacity: .55; }
.text-button { color: var(--muted); background: transparent; font-size: .76rem; }

/* Shared application-page contract used by login.html and profile.html. */
.auth-page, .profile-page { min-height: 100vh; color: var(--color-text); background: var(--color-bg); }
.auth-page main, .profile-page main { width: min(860px, calc(100% - 28px)); margin: 0 auto; padding: clamp(28px, 6vw, 72px) 0; }
.auth-card, .profile-card { padding: clamp(20px, 4vw, 34px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.auth-card h1, .profile-card h1 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field.full-width { grid-column: 1 / -1; }
.form-field label { color: var(--muted); font-size: .8rem; }
.form-field input, .form-field select { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--text); border: 1px solid var(--line); border-radius: 11px; outline: none; background: var(--surface-2); }
.form-field input:focus, .form-field select:focus { border-color: rgba(233,189,103,.55); box-shadow: 0 0 0 3px var(--gold-soft); }
.field-hint { color: var(--muted); font-size: .67rem; }
.primary-button { min-height: 44px; padding: 10px 17px; color: #18131e; font-weight: 800; border: 0; border-radius: 12px; background: linear-gradient(135deg, #f0cf86, #d69c4b); cursor: pointer; }
.secondary-button { min-height: 44px; padding: 10px 17px; color: var(--text); border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.page-message { margin-top: 14px; padding: 10px 12px; border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.04); }
.page-message.is-error { color: var(--danger); background: rgba(255,100,100,.07); }
.profile-intro, .auth-intro { color: var(--muted); line-height: 1.9; }
.manual-toggle { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; }
.manual-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.city-results { display: grid; gap: 6px; max-height: 260px; overflow: auto; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.city-option { padding: 10px 12px; text-align: right; color: var(--text); border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.city-option:hover, .city-option:focus-visible { background: var(--gold-soft); outline: none; }
.selected-city { padding: 10px 12px; color: var(--success); border: 1px solid rgba(130,217,174,.22); border-radius: 10px; background: rgba(130,217,174,.06); font-size: .78rem; }
.geo-attribution { justify-self: end; color: #777184; font-size: .65rem; }
.wide-button { width: 100%; margin-top: 16px; }
.privacy-note { margin: 18px 0 0; color: #777184; font-size: .68rem; line-height: 1.8; }

.landing-page { overflow-x: hidden; background: radial-gradient(circle at 15% 20%, rgba(158,140,255,.22), transparent 28rem), radial-gradient(circle at 90% 80%, rgba(233,189,103,.13), transparent 32rem), var(--bg); }
.landing-page .landing-shell { width: min(1180px, calc(100% - 30px)); min-height: min(860px, 100svh); margin: 0 auto; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(330px,.75fr); align-items: center; gap: clamp(30px,6vw,84px); padding: 42px 0; }
.landing-story { position: relative; min-width: 0; min-height: 590px; display: flex; flex-direction: column; justify-content: center; }
.landing-story .brand { position: absolute; top: 0; right: 0; }
.landing-story h1 { position: relative; z-index: 2; max-width: 760px; margin: 18px 0; font-size: clamp(2.35rem,4.6vw,4.7rem); line-height: 1.28; letter-spacing: -.04em; }
.landing-story h1 span { color: transparent; background: linear-gradient(100deg,#f5d995,#d6a756 46%,#a991ff); -webkit-background-clip: text; background-clip: text; }
.landing-lead { position: relative; z-index: 2; max-width: 650px; color: #c4bfcc; font-size: clamp(.95rem,1.35vw,1.12rem); line-height: 2.05; }
.landing-proof { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; max-width: 680px; margin-top: 28px; }
.landing-proof div { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); backdrop-filter: blur(10px); }
.landing-proof strong, .landing-proof span { display: block; }.landing-proof strong { font-size: .82rem; }.landing-proof span { margin-top: 5px; color: var(--muted); font-size: .67rem; line-height: 1.7; }
.login-card { position: relative; z-index: 3; min-width: 0; padding: clamp(24px,4vw,38px); background: linear-gradient(145deg,rgba(35,31,47,.94),rgba(22,22,34,.96)); backdrop-filter: blur(20px); }
.login-card h2 { margin: 6px 0 8px; font-size: clamp(1.35rem,2.2vw,1.85rem); }
.orbit-art { position: absolute; left: -5%; top: 5%; width: min(35vw,460px); aspect-ratio: 1; opacity: .55; }
.orbit-art i { position: absolute; inset: 12%; border: 1px solid rgba(233,189,103,.26); border-radius: 50%; transform: rotate(22deg); }.orbit-art i:nth-child(2){inset:25%;border-color:rgba(158,140,255,.35);transform:rotate(66deg)}.orbit-art i:nth-child(3){inset:39%;border-color:rgba(255,255,255,.14)}.orbit-art b{position:absolute;inset:0;display:grid;place-items:center;color:var(--gold);font-size:3rem;text-shadow:0 0 40px var(--gold)}

.field-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; color: var(--muted); font-size: .68rem; line-height: 1.6; }
.field-status[data-state="ready"] { color: var(--success); }
.field-status[data-state="error"] { color: var(--danger); }
.inline-retry { padding: 3px 8px; color: var(--text); border: 1px solid currentColor; border-radius: 7px; background: transparent; cursor: pointer; font: inherit; white-space: nowrap; }
.city-search-status { margin: 0; padding: 10px; color: var(--muted); font-size: .76rem; line-height: 1.8; }
.primary-button:disabled { cursor: wait; opacity: .55; }
.topup-card .primary-button:disabled { cursor: not-allowed; }

.landing-page { scroll-behavior: smooth; }
.landing-page .landing-main { width: 100%; margin: 0; padding: 0; }
.landing-nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(20px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(14,14,23,.78); backdrop-filter: blur(18px); }
.landing-nav nav { display: flex; align-items: center; gap: 22px; }
.landing-nav nav a { color: var(--muted); text-decoration: none; font-size: .78rem; transition: color .18s ease; }
.landing-nav nav a:hover, .landing-nav nav a:focus-visible { color: var(--text); outline: none; }
.landing-nav .nav-cta { padding: 8px 12px; color: #18131e; font-weight: 800; border-radius: 10px; background: linear-gradient(135deg,#f0cf86,#d69c4b); }
.landing-hero { padding-top: 104px !important; padding-bottom: 64px !important; }
.landing-actions { position: relative; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.landing-primary, .landing-secondary { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.landing-secondary { background: rgba(255,255,255,.025); }
.landing-section { width: min(1120px, calc(100% - 30px)); margin: 0 auto; padding: clamp(76px,10vw,128px) 0; scroll-margin-top: 76px; }
.section-heading { max-width: 750px; margin-bottom: 36px; }
.section-heading h2, .forecast-copy h2, .evidence-section h2, .landing-final-cta h2 { margin: 6px 0 14px; font-size: clamp(1.8rem,4vw,3.2rem); line-height: 1.4; }
.section-heading > p:last-child, .forecast-copy > p, .evidence-section > div > p:last-child, .landing-final-cta > p { color: #b9b4c3; line-height: 2.1; }
.capability-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.capability-grid article { min-height: 220px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.018)); }
.capability-grid article > span { display: grid; place-items: center; width: 42px; height: 42px; color: var(--gold); border: 1px solid rgba(233,189,103,.25); border-radius: 13px; background: var(--gold-soft); font-size: 1.2rem; }
.capability-grid h3 { margin: 20px 0 9px; font-size: 1rem; }
.capability-grid p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 2; }
.monthly-horoscope-section { width: min(1180px,calc(100% - 30px)); padding-inline: clamp(18px,4vw,54px); border: 1px solid rgba(233,189,103,.2); border-radius: 32px; background: radial-gradient(circle at 8% 10%,rgba(158,140,255,.13),transparent 30rem),linear-gradient(145deg,rgba(31,29,44,.96),rgba(20,20,31,.98)); box-shadow: 0 30px 90px rgba(0,0,0,.22); }
.monthly-horoscope-heading { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 22px; }
.monthly-horoscope-heading > div:first-child { max-width: 770px; }
.monthly-horoscope-heading h2 { margin: 6px 0 14px; font-size: clamp(1.8rem,4vw,3.2rem); line-height: 1.45; }
.monthly-horoscope-heading > div:first-child > p:last-child { margin: 0; color: #b9b4c3; line-height: 2.1; }
.horoscope-period { display: grid; grid-template-columns: 42px minmax(150px,auto) 42px; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.03); }
.monthly-horoscope-heading .horoscope-period { justify-self: start; }
.horoscope-period div { display: grid; justify-items: center; gap: 3px; }
.horoscope-period span { color: var(--muted); font-size: .63rem; }
.horoscope-period strong { font-size: .84rem; white-space: nowrap; }
.horoscope-period button { display: grid; place-items: center; min-width: 42px; min-height: 42px; color: var(--gold); border: 1px solid rgba(233,189,103,.22); border-radius: 12px; background: var(--gold-soft); cursor: pointer; }
.horoscope-period button:hover, .horoscope-period button:focus-visible { border-color: rgba(233,189,103,.55); outline: none; }
.horoscope-period button:disabled { color: #686374; border-color: var(--line); background: rgba(255,255,255,.02); cursor: not-allowed; }
.horoscope-signs { display: grid; grid-template-columns: repeat(12,minmax(66px,1fr)); gap: 7px; margin: 34px 0 18px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.horoscope-sign { min-width: 66px; min-height: 86px; padding: 10px 5px; color: var(--muted); border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); cursor: pointer; transition: transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease; }
.horoscope-sign > span, .horoscope-sign > strong, .horoscope-sign > small { display: block; }
.horoscope-sign > span { color: var(--gold); font-size: 1.35rem; }
.horoscope-sign > strong { margin-top: 5px; color: var(--text); font-size: .74rem; }
.horoscope-sign > small { margin-top: 2px; font-size: .56rem; }
.horoscope-sign:hover, .horoscope-sign:focus-visible { transform: translateY(-2px); border-color: rgba(233,189,103,.4); outline: none; }
.horoscope-sign.is-selected { color: #d6c9ee; border-color: rgba(233,189,103,.55); background: linear-gradient(145deg,rgba(233,189,103,.16),rgba(158,140,255,.1)); box-shadow: inset 0 0 0 1px rgba(233,189,103,.08),0 12px 25px rgba(0,0,0,.16); }
.horoscope-reader { min-height: 390px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: rgba(10,10,17,.42); }
.horoscope-state { min-height: 390px; display: grid; place-content: center; justify-items: center; max-width: 620px; margin: auto; padding: 38px 24px; text-align: center; }
.horoscope-state h3 { margin: 14px 0 8px; }
.horoscope-state p { margin: 0 0 20px; color: var(--muted); line-height: 2; }
.horoscope-state-icon { display: grid; place-items: center; width: 58px; height: 58px; color: var(--gold); border: 1px solid rgba(233,189,103,.28); border-radius: 50%; background: var(--gold-soft); font-size: 1.7rem; }
.horoscope-loading span { width: 30px; height: 30px; border: 2px solid rgba(233,189,103,.2); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
.horoscope-loading p { margin-top: 16px; }
.horoscope-content { padding: clamp(24px,5vw,52px); }
.horoscope-content > header { display: flex; align-items: center; gap: 17px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.horoscope-sign-symbol { display: grid; flex: 0 0 auto; place-items: center; width: 64px; height: 64px; color: #18131e; border-radius: 19px; background: linear-gradient(135deg,#f0cf86,#d69c4b); box-shadow: 0 12px 34px rgba(214,156,75,.2); font-size: 2rem; }
.horoscope-content header p { margin: 0 0 4px; color: var(--gold); font-size: .68rem; }
.horoscope-content header h3 { margin: 0; font-size: clamp(1.35rem,3vw,2rem); }
.horoscope-sections { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 25px; }
.horoscope-sections > section, .horoscope-sections > p { margin: 0; padding: 20px; border: 1px solid rgba(255,255,255,.07); border-radius: 17px; background: rgba(255,255,255,.025); }
.horoscope-sections h4 { margin: 0 0 9px; color: #f0cf86; font-size: .86rem; }
.horoscope-sections p { margin: 0; color: #d6d0dc; line-height: 2.15; font-size: .86rem; white-space: pre-line; }
.horoscope-content > footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.horoscope-content > footer p { max-width: 650px; margin: 0; color: #817b8d; font-size: .68rem; line-height: 1.85; }
.horoscope-content > footer a { flex: 0 0 auto; color: var(--gold); text-decoration: none; font-size: .76rem; }
.horoscope-content > footer a:hover, .horoscope-content > footer a:focus-visible { text-decoration: underline; outline: none; }
.forecast-showcase, .evidence-section { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.72fr); align-items: center; gap: clamp(36px,8vw,100px); }
.forecast-showcase { width: min(1180px,calc(100% - 30px)); padding-inline: clamp(22px,5vw,68px); border: 1px solid rgba(158,140,255,.17); border-radius: 30px; background: linear-gradient(125deg,rgba(158,140,255,.12),rgba(233,189,103,.045)); }
.forecast-copy ul { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; color: #d7d1df; font-size: .82rem; }
.forecast-copy li::before { content: "✦"; margin-left: 9px; color: var(--gold); }
.forecast-orbit { position: relative; display: grid; place-items: center; min-height: 360px; }
.forecast-center { display: grid; place-items: center; width: 112px; height: 112px; border: 1px solid rgba(233,189,103,.4); border-radius: 50%; color: var(--gold); background: rgba(14,14,23,.72); box-shadow: 0 0 55px rgba(233,189,103,.08); }
.forecast-track { position: absolute; width: 280px; height: 280px; border: 1px solid rgba(158,140,255,.34); border-radius: 50%; transform: rotate(-22deg); }
.forecast-track i { position: absolute; top: 12px; left: 46px; width: 18px; height: 18px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 22px var(--violet); }
.forecast-track span { position: absolute; top: 12px; left: 70px; color: #c8befd; font-size: .7rem; }
.forecast-orbit > p { position: absolute; bottom: 18px; color: var(--muted); font-size: .72rem; letter-spacing: .12em; }
.method-section { border-top: 1px solid var(--line); }
.method-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.method-steps li { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); }
.method-steps li > span { display: grid; place-items: center; width: 32px; height: 32px; color: #17131c; border-radius: 50%; background: var(--gold); font-weight: 900; }
.method-steps h3 { margin: 18px 0 8px; font-size: .95rem; }
.method-steps p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.95; }
.evidence-section { padding-inline: clamp(20px,5vw,58px); border: 1px solid rgba(233,189,103,.14); border-radius: 28px; background: rgba(255,255,255,.018); }
.evidence-demo { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 18px; direction: ltr; }
.demo-chart { position: relative; width: 190px; aspect-ratio: 1; border: 1px solid rgba(233,189,103,.45); border-radius: 50%; background: radial-gradient(circle,rgba(158,140,255,.13),transparent 60%); }
.demo-chart::before, .demo-chart::after { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.demo-chart::after { inset: 62px; border-color: rgba(233,189,103,.22); }
.demo-chart span { position: absolute; z-index: 2; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: #fff4d6; background: #242234; box-shadow: 0 0 16px rgba(233,189,103,.28); }
.demo-chart span:nth-child(1){top:10px;left:80px}.demo-chart span:nth-child(2){right:17px;bottom:42px}.demo-chart span:nth-child(3){left:18px;bottom:38px}
.demo-chart i, .demo-chart b { position: absolute; top: 92px; left: 38px; width: 116px; height: 1px; background: #82c9b8; transform: rotate(28deg); transform-origin: center; }.demo-chart b{transform:rotate(-31deg);background:#dd7e84}
.demo-facts { display: grid; gap: 8px; direction: rtl; }
.demo-facts p { margin: 0; padding: 10px 12px; color: #dcd5e4; border-right: 2px solid var(--gold); border-radius: 9px; background: rgba(233,189,103,.065); font-size: .72rem; }
.limits-section { border-top: 1px solid var(--line); }
.limits-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.limits-grid p { margin: 0; padding: 20px; color: var(--muted); border: 1px solid var(--line); border-radius: 16px; font-size: .78rem; line-height: 2; }
.limits-grid strong { display: block; margin-bottom: 7px; color: var(--text); font-size: .9rem; }
.landing-final-cta { width: min(900px,calc(100% - 30px)); margin: 0 auto clamp(70px,10vw,120px); padding: clamp(50px,8vw,90px); text-align: center; border: 1px solid rgba(233,189,103,.22); border-radius: 30px; background: radial-gradient(circle at 50% 0,rgba(233,189,103,.13),transparent 65%),var(--surface); }
.landing-final-cta > p { max-width: 620px; margin: 0 auto 25px; }
.landing-final-cta .eyebrow { margin-bottom: 7px; }
.landing-footer { display: flex; justify-content: space-between; gap: 20px; width: min(1120px,calc(100% - 30px)); margin: 0 auto; padding: 24px 0 36px; color: #777184; border-top: 1px solid var(--line); font-size: .7rem; }

@media (max-width: 880px) {
  .workspace { grid-template-columns: 1fr; height: auto; min-height: calc(100dvh - 72px); padding-top: 18px; overflow: visible; }
  .topic-panel { position: static; max-height: none; }
  .panel-heading { padding-bottom: 12px; }
  .suggested-questions { display: flex; overflow-x: auto; padding-bottom: 5px; }
  .interpretation-style-options span { min-height: 60px; }
  .topic-button { flex: 0 0 auto; width: auto; white-space: nowrap; }
  .chat-panel { position: sticky; top: 80px; height: calc(100dvh - 92px); }
  .chart-content { grid-template-columns: minmax(300px, 420px) minmax(240px, 1fr); }
	.capability-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.method-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.horoscope-signs { grid-template-columns: repeat(6,minmax(82px,1fr)); }
}
@media (min-width: 621px) and (max-width: 1050px) {
	.landing-page .landing-shell { grid-template-columns: minmax(0,1fr) minmax(300px,.72fr); gap: 28px; }
	.landing-story h1 { font-size: clamp(2.25rem,5vw,3.65rem); }
	.landing-proof div { padding: 12px; }
}
@media (max-width: 620px) {
	html { scroll-padding-top: 72px; }
  .topbar { height: 64px; padding: 0 13px; }
  .connection-status { display: none; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .ghost-button { padding: 7px 9px; font-size: .68rem; }
  .topbar-actions .landing-link { display: none; }
  .workspace { padding: 13px 10px 28px; gap: 16px; }
  .interpretation-style-options { grid-template-columns: 1fr; }
  .interpretation-style-options span { min-height: 0; text-align: right; }
  .chat-panel { top: 70px; height: calc(100dvh - 78px); }
  .chart-card { border-radius: 17px; }
  .chart-card-header { padding: 13px 14px; }
  .chart-content { grid-template-columns: 1fr; padding: 10px; max-height: 32dvh; }
  .chart-visual { min-height: 280px; }
  #natal-chart { max-height: 340px; }
  .chart-highlights { grid-template-columns: repeat(3, 1fr); }
  .highlight { padding: 9px 7px; }
  .placement-list { grid-template-columns: 1fr; }
  .message { max-width: calc(100% - 37px); padding: 13px 14px; font-size: .88rem; }
  .assistant-message.welcome-message { max-width: calc(100% - 37px); padding: 16px; }
  .composer { margin-top: 7px; }
  .composer-actions { align-items: flex-end; }
  .composer-context { display: grid; gap: 3px; }
  .composer-note { font-size: .62rem; }
  .form-grid { grid-template-columns: 1fr; }
	.manual-fields { grid-template-columns: 1fr; }
	.landing-page .landing-shell { grid-template-columns: minmax(0,1fr); min-height: auto; margin: 0 auto; gap: 38px; }
	.landing-story { min-height: auto; padding-top: 44px; }
	.landing-proof { grid-template-columns: 1fr; }
	.orbit-art { width: 280px; left: -100px; top: 10px; }
	.landing-nav { height: 64px; padding: 0 14px; background: rgba(14,14,23,.97); box-shadow: 0 10px 28px rgba(0,0,0,.28); }
	.landing-nav .brand { flex: 0 0 auto; min-width: 0; gap: 8px; font-size: 1rem; }
	.landing-nav .brand-mark { width: 32px; height: 32px; }
	.landing-nav nav { flex: 0 0 auto; gap: 0; }
	.landing-section, .monthly-horoscope-section { scroll-margin-top: 72px; }
	.landing-nav nav a:not(.nav-cta) { display: none; }
	.landing-nav .nav-cta { padding: 7px 9px; font-size: .7rem; }
	.landing-hero { padding-top: 82px !important; padding-bottom: 52px !important; }
	.landing-page .landing-story h1 { max-width: 100%; font-size: clamp(1.85rem,9vw,2.8rem); line-height: 1.38; text-wrap: wrap; overflow-wrap: anywhere; }
	.landing-story h1 span { display: block; }
	.landing-story, .login-card, .landing-actions, .landing-proof { min-width: 0; max-width: 100%; }
	.landing-proof > div { min-width: 0; overflow-wrap: anywhere; }
	.landing-nav { inset: 0 0 auto; width: 100%; max-width: none; min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) max-content; gap: 8px; }
	.landing-nav .brand { justify-self: start; max-width: 100%; overflow: hidden; white-space: nowrap; }
	.landing-nav .brand-mark { flex: 0 0 32px; }
	.landing-nav nav { min-width: 0; justify-self: end; }
	.landing-nav .nav-cta { white-space: nowrap; }
	.orbit-art { width: min(58vw,220px); opacity: .24; }
	.landing-actions > * { width: 100%; }
	.capability-grid, .method-steps, .limits-grid { grid-template-columns: 1fr; }
	.monthly-horoscope-section { padding-block: 52px; padding-inline: 14px; border-radius: 24px; }
	.monthly-horoscope-heading { grid-template-columns: 1fr; align-items: stretch; gap: 22px; }
	.horoscope-period { grid-template-columns: 44px 1fr 44px; }
	.horoscope-signs { display: flex; gap: 7px; margin-top: 24px; scroll-snap-type: x proximity; }
	.horoscope-sign { flex: 0 0 76px; min-height: 82px; scroll-snap-align: start; }
	.horoscope-reader, .horoscope-state { min-height: 350px; }
	.horoscope-content { padding: 21px 16px; }
	.horoscope-sign-symbol { width: 54px; height: 54px; border-radius: 16px; font-size: 1.65rem; }
	.horoscope-sections { grid-template-columns: 1fr; }
	.horoscope-sections > section, .horoscope-sections > p { padding: 17px; }
	.horoscope-content > footer { align-items: flex-start; flex-direction: column; }
	.capability-grid article { min-height: auto; }
	.forecast-showcase, .evidence-section { grid-template-columns: 1fr; gap: 24px; }
	.forecast-showcase { padding-block: 55px; }
	.forecast-orbit { min-height: 300px; }
	.forecast-track { width: 235px; height: 235px; }
	.evidence-demo { grid-template-columns: 1fr; justify-items: center; }
	.demo-facts { width: 100%; }
	.landing-final-cta { padding-inline: 22px; }
	.landing-footer { flex-direction: column; text-align: center; }
}
@media (min-width: 621px) and (max-width: 780px) {
  .chart-content { grid-template-columns: 1fr; }
  #natal-chart { max-height: 390px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* The observatory: a compact conversation with its chart in a separate layer. */
body { background:
  radial-gradient(ellipse at 84% 5%, rgba(117,89,176,.22), transparent 38rem),
  radial-gradient(ellipse at 0 85%, rgba(174,123,68,.13), transparent 32rem),
  linear-gradient(140deg, #0d101b, #11101c 55%, #14111d); }
body::before { content: "☉  ☿  ♀  ☽  ♄  ♃"; position: fixed; left: -1rem; bottom: -1.5rem; z-index: 0; width: min(55vw,720px); color: rgba(233,189,103,.045); font: 6rem Georgia,serif; letter-spacing: .17em; line-height: 1.4; pointer-events: none; transform: rotate(-17deg); }
.app-shell, .landing-main { position: relative; z-index: 1; }
.topbar, .landing-nav { border-bottom-color: rgba(233,189,103,.16); }
.panel-heading h1, .section-heading h2, .landing-story h1 { text-wrap: balance; }
.topic-panel { border-left: 1px solid rgba(233,189,103,.12); }
.settings-toggle { display: none; }
.settings-panel-heading { display: none; }
.settings-backdrop { display: none; }
.chart-launcher { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border: 1px solid rgba(233,189,103,.22); border-radius: 15px; background: linear-gradient(100deg,rgba(233,189,103,.09),rgba(158,140,255,.07) 70%,rgba(21,20,35,.9)); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.chart-launcher > div { min-width: 0; display: flex; align-items: center; gap: 11px; }
.chart-launcher > div > span { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; color: var(--gold); border: 1px solid rgba(233,189,103,.33); font-size: 1.15rem; }
.chart-launcher strong { font-size: .82rem; white-space: nowrap; }
.chart-launcher small { color: var(--muted); font-size: .69rem; }
.chart-open { flex: 0 0 auto; padding: 8px 13px; color: #211829; border: 0; border-radius: 10px; background: linear-gradient(135deg,#f5d699,#dba958); font-size: .76rem; font-weight: 800; cursor: pointer; }
.chart-open:hover, .chart-open:focus-visible { filter: brightness(1.1); outline: 2px solid var(--gold); outline-offset: 2px; }
.chart-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; width: min(920px,96vw); max-width: none; max-height: none; height: 100dvh; color: var(--text); border: 0; border-left: 1px solid rgba(233,189,103,.38); background: #171723; box-shadow: -25px 0 100px rgba(0,0,0,.65); overflow: hidden; }
.chart-dialog::backdrop { background: rgba(4,5,13,.73); backdrop-filter: blur(8px); }
.chart-dialog[open] { animation: chart-enter .24s ease-out; }
@keyframes chart-enter { from { transform: translateX(20px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
.chart-dialog .chart-card { height: 100%; min-height: 0; margin: 0; display: flex; flex-direction: column; border: 0; border-radius: 0; background: radial-gradient(circle at 20% 10%,rgba(158,140,255,.12),transparent 45%),linear-gradient(145deg,#242031,#151622 75%); box-shadow: none; }
.chart-dialog .chart-card-header { flex: 0 0 auto; padding: 22px clamp(16px,3vw,32px); }
.chart-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; justify-content: end; }
.chart-dialog .dialog-close { flex: 0 0 auto; }
.chart-content { flex: 1; min-height: 0; max-height: none; grid-template-columns: minmax(0,1.25fr) minmax(250px,.75fr); align-items: start; gap: clamp(12px,2vw,28px); padding: 22px clamp(15px,3vw,30px) 42px; overflow: auto; }
.chart-visual { min-width: 0; aspect-ratio: 1; min-height: 0; background: radial-gradient(circle,rgba(158,140,255,.14),transparent 68%),repeating-radial-gradient(circle,transparent 0 49px,rgba(233,189,103,.045) 50px 51px); }
#natal-chart { max-height: none; }
.chart-download-status { margin: 0; padding: 10px 20px; color: var(--danger); }
.chart-evidence { margin: 13px 0 17px; padding: 15px; border: 1px solid rgba(233,189,103,.25); border-radius: 14px; background: rgba(233,189,103,.06); }
.chart-evidence h3 { margin: 0 0 10px; color: var(--gold); font-size: .84rem; }
.chart-evidence-list, #chart-evidence-list { display: grid; gap: 7px; }
#chart-evidence-list button { width: 100%; padding: 9px 11px; color: var(--text); text-align: right; line-height: 1.8; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: rgba(20,19,31,.6); cursor: pointer; }
#chart-evidence-list button:hover, #chart-evidence-list button:focus-visible { border-color: var(--gold); outline: none; }
.icon-button:disabled { opacity: .45; cursor: not-allowed; }
.conversation-scroll { min-height: 0; }
.composer { max-height: min(38dvh,360px); overflow: auto; overscroll-behavior: contain; }

@media (max-width: 880px) {
  .workspace { height: calc(100dvh - 72px); min-height: 0; grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); gap: 10px; overflow: hidden; padding-block: 9px; }
  .topic-panel { min-width: 0; width: 100%; align-self: start; overflow: visible; padding: 0; border: 0; }
  .settings-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 42px; padding: 7px 13px; color: var(--text); background: rgba(32,29,46,.93); border: 1px solid rgba(233,189,103,.25); border-radius: 12px; cursor: pointer; }
  .settings-toggle[aria-expanded="true"] span:last-child { transform: rotate(180deg); }
  .settings-content { display: none; }
  .settings-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 49; background: rgba(4,5,13,.65); backdrop-filter: blur(5px); }
  .settings-content.is-open { display: block; position: fixed; inset: 0 0 0 auto; z-index: 50; width: min(420px,100vw); max-width: 100vw; max-height: 100dvh; margin: 0; padding: 0 16px 30px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 1px solid rgba(233,189,103,.27); border-radius: 0; background: #1b1a29; box-shadow: -20px 0 70px rgba(0,0,0,.6); }
  .settings-content.is-open > * { min-width: 0; }
  .settings-panel-heading { display: flex; position: sticky; top: 0; z-index: 2; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; margin: 0 -16px 12px; padding: 10px 16px; color: var(--gold); border-bottom: 1px solid var(--line); background: #1b1a29; }
  .settings-panel-heading button { width: 34px; height: 34px; color: var(--text); border: 1px solid var(--line); border-radius: 9px; background: transparent; font-size: 1.2rem; cursor: pointer; }
  .settings-content .suggested-questions { max-width: 100%; }
  .chat-panel { position: relative; top: auto; height: 100%; min-height: 0; }
  .chart-content { grid-template-columns: minmax(0,1.1fr) minmax(240px,.9fr); }
}
@media (max-width: 620px) {
  .workspace { height: calc(100dvh - 64px); padding: 8px 9px; gap: 7px; }
  .topbar .brand { font-size: .9rem; gap: 5px; }
  .topbar .brand-mark { width: 29px; height: 29px; }
  .topbar-actions .ghost-button { padding: 7px; font-size: .64rem; }
  .wallet-button { padding: 7px; font-size: .68rem; }
  .chart-launcher { padding: 7px 9px; }
  .chart-launcher > div { gap: 6px; }
  .chart-launcher small { display: none; }
  .chart-launcher strong { font-size: .73rem; }
  .chart-launcher > div > span { width: 29px; height: 29px; flex-basis: 29px; }
  .chart-open { padding: 7px 9px; font-size: .71rem; }
  .composer { max-height: 32dvh; }
  .chart-dialog { width: 100vw; border-left: 0; }
  .chart-dialog .chart-card-header { padding: 12px 14px; align-items: start; }
  .chart-dialog .chart-card-header h2 { font-size: .95rem; }
  .chart-tools { max-width: 175px; gap: 5px; }
  .chart-tools .icon-button { padding: 6px 7px; font-size: .68rem; }
  .chart-content { display: block; max-height: none; padding: 12px 14px 40px; }
  .chart-visual { width: min(100%,480px); margin-inline: auto; }
  #natal-chart { max-height: none; }
  .chart-summary { margin-top: 12px; }
}
.reading-showcase { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 26px; }
.reading-showcase article { min-width: 0; padding: 23px; border: 1px solid rgba(233,189,103,.19); border-radius: 20px; background: linear-gradient(145deg,rgba(42,34,54,.83),rgba(24,25,38,.93)); }
.profile-card, .auth-card { border-color: rgba(233,189,103,.18); background: linear-gradient(145deg,rgba(35,31,47,.96),rgba(21,22,35,.96)); }
.reading-showcase article > span { display: inline-grid; place-items: center; width: 38px; height: 38px; color: var(--gold); border: 1px solid rgba(233,189,103,.26); border-radius: 50%; font: 1.3rem Georgia,serif; }
.reading-showcase h3 { margin: 16px 0 8px; font-size: 1rem; }
.reading-showcase p { margin: 0; color: var(--muted); font-size: .81rem; line-height: 2; }
@media (max-width: 700px) { .reading-showcase { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .chart-launcher strong { font-size: .67rem; } .topbar-actions { gap: 3px; } }
@media (max-width: 350px) { .landing-nav .brand span:last-child { display: none; } }

/* Queue status must remain readable above the composer on narrow screens. */
.request-status { align-items: flex-start; line-height: 1.8; }
.request-status .status-orbit { flex-shrink: 0; margin-top: .3em; }
#request-status-text { min-width: 0; overflow-wrap: anywhere; }
