:root {
    --ink: #10172f;
    --muted: #666775;
    --paper: #f7f1e8;
    --card: rgba(255, 253, 248, .9);
    --gold: #bb7b38;
    --gold-dark: #91571d;
    --line: #ded2c3;
    --night: #111833;
    --night-soft: #222b4b;
    --rose: #b96661;
    --blue: #536ca0;
    --shadow: 0 18px 60px rgba(28, 27, 43, .1);
    --serif: Iowan Old Style, Baskerville, Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--sans); background: var(--paper); min-height: 100vh; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .35; background-image: radial-gradient(circle at 20% 20%, rgba(187,123,56,.12), transparent 28%), radial-gradient(circle at 85% 10%, rgba(83,108,160,.12), transparent 24%); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(187,123,56,.32); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .55; }

.app-header { position: sticky; top: 0; z-index: 20; height: 72px; padding: 0 max(20px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(222,210,195,.8); background: rgba(247,241,232,.86); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 760; letter-spacing: .08em; }
.brand img { border-radius: 10px; }
.app-header nav { display: flex; gap: 6px; min-width: 0; margin-left: auto; }
.nav-button { border: 0; background: transparent; color: var(--muted); border-radius: 99px; padding: 10px 15px; cursor: pointer; font-weight: 650; }
.nav-button:hover, .nav-button.is-active { background: #fffaf2; color: var(--ink); }
.account-button { color: var(--gold-dark); border: 1px solid var(--line); }
.sign-out-button { color: #8f2929; }
.language-switch { display: flex; flex: 0 0 auto; gap: 3px; margin-left: 8px; padding: 3px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,250,242,.72); }
.language-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 58px; height: 34px; padding: 0 10px; border: 0; border-radius: 99px; color: var(--muted); background: transparent; cursor: pointer; font-size: 13px; }
.language-switch button span { font-size: 17px; line-height: 1; }
.language-switch button b { font-size: 11px; letter-spacing: .04em; }
.language-switch button:hover { color: var(--ink); background: rgba(255,255,255,.65); }
.language-switch button.is-active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(28,27,43,.1); }
.app-notice { position: fixed; z-index: 50; top: 84px; left: 50%; width: min(460px, calc(100% - 28px)); transform: translateX(-50%); padding: 13px 18px; border: 1px solid rgba(63,125,86,.3); border-radius: 14px; color: #285d3a; background: #f2fbf4; box-shadow: var(--shadow); text-align: center; font-size: 14px; font-weight: 700; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 3px; color: white; background: var(--gold-dark); border-radius: 99px; font-size: 11px; }

.app-shell { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: 64px 24px 80px; }
.workspace > *, .result-grid > *, .compatibility-summary > *, .compatibility-aspects > *, .settings-grid > * { min-width: 0; }
.view:not(.is-active) { display: none; }
.intro { max-width: 710px; margin-bottom: 40px; }
.eyebrow { margin: 0 0 8px; color: var(--gold-dark); letter-spacing: .18em; text-transform: uppercase; font-weight: 750; font-size: 12px; }
.intro h1 { margin: 0; font: 500 clamp(42px, 7vw, 72px)/.98 var(--serif); letter-spacing: -.035em; }
.intro > p:last-child, .result-header p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 24px; align-items: stretch; }
.panel, .chart-card, .details-card, .aspects-card { border: 1px solid var(--line); background: var(--card); border-radius: 24px; box-shadow: var(--shadow); }
.form-panel { padding: 34px; }
.section-heading { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.section-heading.compact { margin-top: 34px; }
.section-heading > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-dark); font: 600 13px var(--serif); }
.section-heading h2 { margin: -3px 0 3px; font: 500 25px var(--serif); }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
label { display: grid; gap: 8px; margin: 18px 0; color: #444354; font-size: 13px; font-weight: 700; }
.field-help { color: var(--muted); font-weight: 500; }
.place-search { position: relative; }
.place-suggestions { position: absolute; z-index: 15; top: calc(100% - 14px); left: 0; right: 0; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; padding: 6px; background: #fffdf8; box-shadow: var(--shadow); }
.place-option { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 11px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.place-option:hover, .place-option:focus { background: rgba(187,123,56,.1); outline: none; }
.place-option span { font-weight: 700; }
.place-option small { color: var(--muted); }
.place-search-status { min-height: 18px; margin: -10px 2px 8px; color: var(--muted); font-size: 12px; }
.timezone-status { display: flex; align-items: center; gap: 11px; margin: 16px 0 20px; padding: 12px 14px; border: 1px solid rgba(187,123,56,.28); border-radius: 12px; background: rgba(187,123,56,.07); }
.timezone-status > span { color: var(--gold-dark); font-size: 20px; }
.timezone-status div { display: grid; gap: 2px; }
.timezone-status strong { font-size: 12px; }
.timezone-status small { color: var(--muted); font-size: 12px; }
input, select, textarea { width: 100%; max-width: 100%; min-width: 0; min-height: 49px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; color: var(--ink); background: rgba(255,255,255,.75); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(187,123,56,.13); }
textarea { resize: vertical; }
.field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field-grid > *, label, .section-heading > div { min-width: 0; }
.check-row { grid-template-columns: auto 1fr; align-items: start; padding: 13px; border: 1px solid var(--line); border-radius: 12px; font-weight: 400; cursor: pointer; }
.check-row input { width: 19px; min-height: 19px; margin: 2px 0 0; accent-color: var(--gold); }
.check-row span { display: grid; gap: 2px; }.check-row small { color: var(--muted); font-size: 12px; }
.primary-button, .secondary-button, .danger-button { min-height: 48px; border-radius: 999px; padding: 0 20px; border: 0; cursor: pointer; font-weight: 750; }
.primary-button { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: 28px; color: white; background: var(--night); }
.primary-button:hover { background: var(--night-soft); }
.secondary-button { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.secondary-button:hover { border-color: var(--gold); background: rgba(255,255,255,.5); }
.pro-badge { display: inline-flex; align-items: center; min-height: 18px; padding: 1px 6px; margin-left: 4px; border-radius: 99px; color: #fff; background: var(--gold-dark); font-size: 8px; font-weight: 850; letter-spacing: .08em; vertical-align: middle; }
.danger-button { color: #8f2929; background: transparent; border: 1px solid rgba(143,41,41,.35); }.danger-button:hover { background: rgba(143,41,41,.07); }
.form-message { min-height: 20px; margin: 12px 0 0; color: var(--rose); font-size: 13px; text-align: center; }
.auth-dialog .form-message { min-height: 0; padding: 12px 14px; border: 1px solid rgba(83,108,160,.25); border-radius: 12px; color: #3f527b; background: rgba(83,108,160,.08); line-height: 1.45; }
.auth-dialog .form-message:empty { display: none; }
.auth-dialog .form-message.is-error { border-color: rgba(185,102,97,.35); color: #873d38; background: rgba(185,102,97,.1); }
.auth-dialog .form-message.is-success { border-color: rgba(63,125,86,.3); color: #285d3a; background: rgba(63,125,86,.09); }
.auth-turnstile { min-height: 65px; display: flex; justify-content: center; }
.auth-turnstile:empty { display: none; }
.preview-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 580px; padding: 34px; color: #f6f0e8; background: linear-gradient(155deg, #1c2545, #0d1229); border-color: #29304c; }
.preview-panel::after { content: "✦"; position: absolute; top: 28px; right: 30px; color: #d4a461; font-size: 20px; }
.preview-kicker { color: #d4a461; letter-spacing: .19em; font-size: 11px; font-weight: 800; }
.preview-panel h2 { max-width: 280px; margin: 4px 0 12px; font: 500 38px/1.05 var(--serif); }
.preview-panel > p:not(.preview-kicker) { color: #adb2c8; line-height: 1.6; }
.orbital-art { position: absolute; width: 360px; height: 360px; left: 50%; top: 43%; transform: translate(-50%, -50%); }
.orbit { position: absolute; border: 1px solid rgba(221,184,118,.28); border-radius: 50%; inset: 10%; transform: rotate(-18deg); }
.orbit-two { inset: 25%; }.orbit-three { inset: 39%; }
.sun-mark { position: absolute; inset: 0; display: grid; place-items: center; color: #e2b66d; font-size: 56px; }
.planet-dot { position: absolute; display: block; width: 8px; height: 8px; background: #e2b66d; border-radius: 50%; box-shadow: 0 0 14px #d9a552; }
.dot-one { top: 10%; left: 49%; }.dot-two { top: 57%; left: 23%; }.dot-three { top: 44%; right: 10%; }
.privacy-note { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #adb2c8; font-size: 12px; }
.privacy-note span { color: #d4a461; }.privacy-note p { margin: 0; }.privacy-note strong { color: white; }

.result { margin-top: 72px; scroll-margin-top: 92px; }
.result-header { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.result-header h2 { margin: 0; font: 500 clamp(34px, 5vw, 54px) var(--serif); }.result-header p { margin: 6px 0 0; }
.result-actions { display: flex; gap: 10px; }.result-actions .secondary-button { white-space: nowrap; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 24px; }
.chart-card, .details-card, .aspects-card { padding: 26px; }
#chart-wheel { width: 100%; height: auto; overflow: visible; }.wheel-ring { fill: none; stroke: #b9a993; stroke-width: 1.5; }.wheel-outer { fill: rgba(255,255,255,.2); stroke-width: 2; }.wheel-sign { fill: var(--ink); font-size: 28px; text-anchor: middle; dominant-baseline: central; }.wheel-house-line { stroke: #aa9680; stroke-width: 1.2; }.wheel-house-line.major { stroke: var(--gold-dark); stroke-width: 2.5; }.wheel-house { fill: var(--muted); font-size: 13px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }.wheel-planet-marker { stroke: #927c66; stroke-width: 1.5; }.wheel-planet-circle { fill: #fffaf2; stroke: #927c66; stroke-width: 1.5; }.wheel-planet { fill: var(--ink); font-size: 21px; font-weight: 700; text-anchor: middle; dominant-baseline: central; font-family: var(--serif); }.wheel-aspect { fill: none; stroke-width: 1.7; stroke-linecap: round; opacity: .65; }.aspect-soft { stroke: var(--blue); }.aspect-hard { stroke: var(--rose); }.wheel-center { fill: #f1e4d1; stroke: #aa9680; stroke-width: 1.5; }
.details-card h3, .aspects-card h3 { margin: 28px 0 14px; font: 600 21px var(--serif); }
.big-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.big-card { padding: 14px 8px; text-align: center; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.45); }.big-card span { display: block; font: 32px var(--serif); }.big-card small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; }.big-card strong { display: block; margin-top: 3px; font: 600 14px var(--serif); }
.planet-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 16px; }.planet-row { display: grid; grid-template-columns: 27px 1fr auto; gap: 7px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }.planet-row .glyph { font: 20px var(--serif); }.planet-row small { color: var(--muted); }
.aspects-card { margin-top: 24px; }.aspect-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.aspect-item { display: grid; grid-template-columns: 1fr auto; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }.aspect-item small { color: var(--muted); }
.natal-report { display: grid; min-width: 0; max-width: 100%; gap: 24px; margin-top: 24px; }
.natal-report[hidden] { display: none; }
.report-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.report-heading h2 { margin: 4px 0 0; font: 500 clamp(30px, 5vw, 44px) var(--serif); }
.report-interpretations { display: grid; min-width: 0; max-width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.report-interpretations article, .report-card { min-width: 0; max-width: 100%; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.report-interpretations h3, .report-card h3 { margin: 0 0 10px; font: 600 20px var(--serif); }
.report-interpretations p { margin: 0; overflow-wrap: anywhere; color: var(--muted); line-height: 1.65; }
.report-grid { display: grid; min-width: 0; max-width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.report-data { margin: 0; }.report-data > div { display: grid; grid-template-columns: minmax(130px, .7fr) 1fr; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }.report-data > div:last-child { border-bottom: 0; }.report-data dt { color: var(--muted); }.report-data dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.table-scroll { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }.report-card table { width: 100%; border-collapse: collapse; font-size: 13px; }.report-card th, .report-card td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }.report-card th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }.report-card tbody tr:last-child td { border-bottom: 0; }
.astro-glyph { display: inline-flex; width: 1.35em; min-width: 1.35em; align-items: center; justify-content: center; font-family: var(--serif); line-height: 1; text-align: center; }
.named-planet, .named-aspect { display: inline-grid; grid-template-columns: 1.35em auto; align-items: center; gap: 5px; }
.planet-pair { display: inline-grid; grid-template-columns: 1.35em auto 1em 1.35em auto; align-items: center; column-gap: 5px; }
.pair-separator { text-align: center; }
.report-disclaimer { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }

.history-intro { margin-bottom: 30px; }.library-toolbar { display: grid; grid-template-columns: 1.5fr 1fr 1fr; align-items: end; gap: 16px; margin-bottom: 22px; padding: 18px 22px; }.library-toolbar label { grid-template-rows: auto 52px; align-self: stretch; margin: 0; }.library-toolbar input, .library-toolbar select { height: 52px; min-height: 52px; margin: 0; }.history-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }.history-card { border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); padding: 22px; }.history-card-top { display: flex; justify-content: space-between; align-items: center; }.history-card-top .eyebrow { margin: 0; }.history-card h2 { margin: 8px 0 4px; font: 500 25px var(--serif); }.history-card p { color: var(--muted); font-size: 13px; }.history-notes { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.45; }.chart-tag { display: inline-flex; padding: 5px 9px; color: var(--gold-dark); background: rgba(187,123,56,.1); border-radius: 999px; font-size: 11px; font-weight: 750; }.history-card-actions { display: flex; gap: 8px; margin-top: 18px; }.history-card-actions button { flex: 1; min-height: 40px; padding-inline: 10px; }.icon-button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; font-size: 22px; }.icon-button:hover, .icon-button.is-favorite { color: var(--gold-dark); background: rgba(187,123,56,.1); }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 380px; text-align: center; border: 1px dashed var(--line); border-radius: 24px; padding: 40px; }.empty-state span { font-size: 48px; color: var(--gold); }.empty-state h2 { margin: 8px 0 0; font: 500 30px var(--serif); }.empty-state p { max-width: 520px; margin: 10px 0 0; color: var(--muted); line-height: 1.55; }.empty-state .primary-button { width: auto; gap: 20px; margin-top: 24px; padding-inline: 28px; }
.compact-empty { min-height: 250px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }.settings-card { padding: 26px; }.settings-card h2 { margin: 0 0 15px; font: 500 27px var(--serif); }.settings-card label { margin-bottom: 0; }.settings-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }.file-button { display: inline-flex; align-items: center; margin: 0; }.file-button input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }.methodology-card { grid-column: 1 / -1; }.methodology-card summary { cursor: pointer; font: 500 27px var(--serif); }.methodology-card h3 { margin: 24px 0 5px; font: 600 18px var(--serif); }.methodology-card p, .account-card p { color: var(--muted); line-height: 1.6; }.account-card button:disabled { cursor: not-allowed; opacity: .55; }
.account-danger-actions { padding-top: 20px; margin-top: 24px; border-top: 1px solid var(--line); }
.chart-editor { width: min(560px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; overflow-y: auto; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); background: var(--paper); box-shadow: 0 30px 100px rgba(17,24,51,.35); }.chart-editor::backdrop { background: rgba(17,24,51,.55); backdrop-filter: blur(3px); }.chart-editor form { padding: 28px; }.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }.dialog-heading h2 { margin: 0; font: 500 34px var(--serif); }.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }.dialog-actions .primary-button { width: auto; margin: 0; }
.auth-wide-button { width: 100%; margin-top: 10px; }.auth-separator { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 12px; }.auth-separator::before, .auth-separator::after { content: ""; height: 1px; flex: 1; background: var(--line); }.auth-providers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.provider-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap; }.provider-icon { display: block; width: 18px; height: 18px; flex: 0 0 auto; }.apple-icon { width: 17px; height: 20px; }.text-button { display: block; margin: 18px auto 0; padding: 6px; border: 0; color: var(--gold-dark); background: transparent; cursor: pointer; }.auth-notice { padding: 12px 14px; border: 1px solid rgba(187,123,56,.3); border-radius: 12px; color: var(--muted); background: rgba(187,123,56,.08); font-size: 13px; line-height: 1.5; }
.danger-copy { padding: 14px; border: 1px solid rgba(143,41,41,.3); border-radius: 12px; color: #732323; background: rgba(143,41,41,.06); line-height: 1.55; }
.paywall-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 12px; overflow: auto; background: rgba(17,24,51,.6); backdrop-filter: blur(3px); }
.paywall-overlay[hidden] { display: none; }
.paywall-surface { position: relative; width: min(760px, 100%); min-height: 300px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 30px 100px rgba(17,24,51,.35); }
.paywall-message { margin: 0; padding: 14px 20px; text-align: center; }
.paywall-message:empty { display: none; }
.custom-paywall { padding: clamp(26px, 5vw, 48px); text-align: center; }
.paywall-close { position: absolute; top: 14px; right: 14px; background: rgba(17,24,51,.06); }
.custom-paywall h2 { max-width: 620px; margin: 8px auto 12px; font: 500 clamp(34px, 6vw, 52px)/1.02 var(--serif); letter-spacing: -.025em; }
.paywall-lead { max-width: 590px; margin: 0 auto 24px; color: var(--muted); line-height: 1.55; }
.paywall-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; max-width: 590px; margin: 0 auto 28px; padding: 0; list-style: none; text-align: left; }
.paywall-features li::before { content: "✓"; margin-right: 9px; color: var(--gold-dark); font-weight: 900; }
.paywall-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.paywall-plan { display: grid; gap: 5px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: rgba(255,255,255,.55); cursor: pointer; }
.paywall-plan:hover { border-color: var(--gold); transform: translateY(-1px); }
.paywall-plan.is-featured { color: white; border-color: var(--night); background: var(--night); }
.paywall-plan.is-requested { outline: 3px solid rgba(187,123,56,.42); outline-offset: 3px; }
.paywall-plan span { color: var(--gold-dark); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 850; }
.paywall-plan.is-featured span { color: #e4bd7f; }
.paywall-plan strong { font: 600 32px var(--serif); }
.paywall-plan small { color: var(--muted); }
.paywall-plan.is-featured small { color: #c9ccda; }
.paywall-legal { margin: 18px auto 0; max-width: 620px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.paywall-legal a { color: inherit; }
.compatibility-content { display: grid; gap: 24px; }
.compatibility-picker { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 24px; }
.compatibility-picker label { min-width: 0; margin: 0; }
.compatibility-heart { color: var(--gold); font: 42px var(--serif); }
.compatibility-summary { display: grid; grid-template-columns: .75fr 1.25fr; gap: 24px; }
.score-panel, .compatibility-names { min-height: 270px; padding: 28px; }
.compatibility-score { color: var(--gold-dark); font: 600 64px/1 var(--serif); }
.score-track { height: 8px; margin: 20px 0; overflow: hidden; border-radius: 99px; background: var(--line); }
.score-track span { display: block; width: 50%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rose), var(--gold)); transition: width .35s ease; }
.score-panel > p:not(.eyebrow) { min-height: 44px; color: var(--muted); }
.compatibility-names { display: grid; place-content: center; text-align: center; background: linear-gradient(145deg, var(--night), var(--night-soft)); color: white; }
.compatibility-names > p { max-width: 100%; margin: 0 0 18px; overflow-wrap: anywhere; font: 500 clamp(28px, 5vw, 46px)/1.1 var(--serif); }
#compatibility-signs { display: flex; justify-content: center; gap: 30px; color: #d9ae6a; font: 42px var(--serif); }
.compatibility-aspects { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compatibility-aspects .aspects-card { margin-top: 0; }
.compatibility-aspect-list { display: grid; gap: 8px; }
.compatibility-aspect-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.compatibility-aspect-row:last-child { border-bottom: 0; }
.compatibility-aspect-row > span { min-width: 0; overflow-wrap: anywhere; }
.compatibility-planet-pair { display: inline-grid; grid-template-columns: 1.35em minmax(0, auto) 1.35em 1.35em minmax(0, auto); align-items: center; column-gap: 7px; }
.compatibility-aspect-row .aspect-symbol { color: var(--gold-dark); font-size: 18px; }
.compatibility-aspect-row small { color: var(--muted); font-variant-numeric: tabular-nums; }
.app-footer { max-width: 1180px; margin: 0 auto; padding: 22px 24px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 20px; color: var(--muted); font-size: 12px; }.app-footer span { margin-right: auto; }

@media (max-width: 820px) { .app-shell { padding-top: 40px; }.workspace, .result-grid, .compatibility-summary, .report-grid, .settings-grid { grid-template-columns: 1fr; }.methodology-card { grid-column: auto; }.preview-panel { min-height: 470px; }.result-header { align-items: flex-start; flex-direction: column; }.history-list { grid-template-columns: 1fr 1fr; }.aspect-list { grid-template-columns: 1fr 1fr; }.app-header { align-items: flex-start; height: auto; padding-block: 10px; }.app-header nav { justify-content: flex-end; }.score-panel, .compatibility-names { min-height: 230px; } }
@media (max-width: 560px) { .app-header { height: auto; min-height: 64px; flex-wrap: wrap; gap: 8px; padding: 9px max(15px, env(safe-area-inset-right)) 7px max(15px, env(safe-area-inset-left)); }.brand img { width: 34px; height: 34px; }.brand span { display: none; }.app-header nav { width: calc(100% + 30px); max-width: none; flex-wrap: nowrap; justify-content: flex-start; order: 2; margin-inline: -15px; padding: 1px 15px 3px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }.app-header nav::-webkit-scrollbar { display: none; }.nav-button { min-height: 38px; flex: 0 0 auto; padding: 8px 11px; font-size: 12px; }.account-button { max-width: 154px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.language-switch { margin-left: auto; }.language-switch button { min-width: 54px; height: 36px; padding-inline: 8px; }.app-notice { top: 108px; }.app-shell { padding: 28px 12px 64px; overflow-x: clip; }.intro { margin-bottom: 24px; }.intro h1 { font-size: 38px; }.intro > p:last-child { font-size: 15px; line-height: 1.5; }.form-panel, .chart-card, .details-card, .aspects-card, .settings-card { padding: 18px; border-radius: 18px; }.section-heading { gap: 12px; margin-bottom: 20px; }.section-heading.compact { margin-top: 28px; }.section-heading h2 { font-size: 22px; }.section-heading p { font-size: 12px; line-height: 1.4; }.field-grid, .compatibility-picker, .compatibility-aspects, .report-interpretations, .library-toolbar, .paywall-features, .paywall-plans, .auth-providers { grid-template-columns: minmax(0, 1fr); gap: 12px; }.field-grid label { margin-block: 12px; } input[type="date"], input[type="time"] { display: block; min-width: 0; -webkit-appearance: none; appearance: none; }.check-row { grid-template-columns: 22px minmax(0, 1fr); padding: 12px; }.provider-button { min-height: 48px; white-space: normal; }.place-option > * { min-width: 0; overflow-wrap: anywhere; }.compatibility-picker { padding: 18px; }.compatibility-heart { display: none; }.preview-panel { min-height: 390px; }.result-actions { width: 100%; flex-wrap: wrap; }.result-actions button { flex: 1 1 140px; padding-inline: 10px; }.planet-list, .aspect-list, .history-list { grid-template-columns: 1fr; }.big-card { min-width: 0; }.big-card strong { overflow-wrap: anywhere; }.compatibility-aspect-row { grid-template-columns: 1fr; gap: 5px; }.report-heading { align-items: flex-start; flex-direction: column; }.settings-actions, .dialog-actions { align-items: stretch; flex-direction: column; }.settings-actions button, .settings-actions .file-button, .dialog-actions button { width: 100%; justify-content: center; }.chart-editor { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 20px; }.chart-editor form { padding: 20px; }.dialog-heading { gap: 12px; }.dialog-heading h2 { font-size: 28px; line-height: 1.05; }.auth-dialog label { margin-block: 14px; }.auth-dialog .primary-button { margin-top: 20px; }.paywall-overlay { place-items: start center; padding-block: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-bottom)); }.paywall-surface { margin-block: auto; }.app-footer { flex-wrap: wrap; padding-inline: max(15px, env(safe-area-inset-left)); }.app-footer span { width: 100%; } }
@media (max-width: 560px) { .natal-report { gap: 14px; }.report-heading h2 { font-size: 32px; line-height: 1.05; }.report-interpretations article, .report-card { padding: 18px; }.report-interpretations h3, .report-card h3 { overflow-wrap: anywhere; font-size: 19px; }.report-interpretations p { font-size: 15px; line-height: 1.55; } }
@media (max-width: 380px) { .intro h1 { font-size: 38px; }.big-three { grid-template-columns: 1fr; }.big-card { display: grid; grid-template-columns: 38px 1fr; align-items: center; column-gap: 10px; text-align: left; }.big-card span { grid-row: 1 / 3; }.report-data > div { grid-template-columns: 1fr; gap: 4px; }.report-data dd { text-align: left; }.empty-state { min-height: 300px; padding: 28px 20px; }.dialog-heading h2 { font-size: 28px; }.custom-paywall { padding-inline: 20px; }.custom-paywall h2 { padding-inline: 18px; font-size: 34px; } }
@media print { .app-header, .form-panel, .preview-panel, .result-actions, #copy-report, #print-compatibility, .app-footer { display: none !important; }.app-shell { padding: 0; }.result { margin: 0; }.natal-report { display: grid !important; }.chart-card, .details-card, .aspects-card, .panel, .report-card, .report-interpretations article { box-shadow: none; break-inside: avoid; } }
@media (prefers-reduced-motion: no-preference) { .orbital-art { animation: drift 24s linear infinite; } @keyframes drift { to { transform: translate(-50%, -50%) rotate(360deg); } } }
