/* V52: a tactile pastel atlas. Reading surfaces stay quiet and high contrast. */
:root {
  color-scheme: light;
  --cream: #f4e5fa;
  --cream-2: #fffafd;
  --pink: #efb9dd;
  --pink-soft: #f4dcf1;
  --rose: #77528f;
  --berry: #43245d;
  --lavender: #c4a1ec;
  --peach: #ffb394;
  --gold: #76508c;
  --mint: #c5e3dd;
  --ink: #352244;
  --muted: #685570;
  --line: #d8bfdf;
  --shadow: 0 16px 38px #7a46851a, 0 3px 7px #75408b0c;
  --radius-lg: 30px;
  --radius-md: 22px;
  --control-radius: 16px;
  --font-display: var(--font-ui);
}
html { background: var(--cream); }
body {
  color: var(--ink);
  background: radial-gradient(ellipse at 3% 6%, #ffd8c7 0, transparent 48%),
    radial-gradient(ellipse at 100% 30%, #d9b7f4 0, transparent 52%),
    linear-gradient(155deg, #fae8ef, #efdcf9 65%, #fce2d6);
  background-attachment: fixed;
}
.paper-grain, .celestial-corner { display: none; }
h1,h2,h3,h4,.brand { color: var(--ink); }
.brand { font-size: 1.1rem; letter-spacing: -.02em; text-transform: none; gap: 10px; }
.brand-mark {
  display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px;
  color: #68428d; font-size: 1.5rem; border-radius: 15px;
  background: linear-gradient(145deg, #fff4ff, #e4b9f1);
  border: 1px solid #ffffffc9; box-shadow: inset 2px 2px 5px #fff9, 0 4px 8px #65307921;
}
.topbar {
  max-width: 1440px; padding: 22px 32px 14px; gap: 14px;
  border: 0; flex-wrap: wrap;
}
.main-nav {
  display: flex; flex-wrap: wrap; gap: 3px; padding: 6px;
  background: linear-gradient(145deg,#fff2f9eb,#e8cef5eb);
  border: 1px solid #fff9; border-radius: 22px;
  box-shadow: inset 0 2px 3px #fff9, 0 6px 16px #74438a18;
}
.nav-pill {
  display: flex; align-items: center; gap: 7px; min-height: 46px; padding: 9px 12px;
  color: #614874; border-radius: 15px; font-weight: 600; font-size: .833rem;
  background: transparent; transition: background .18s, box-shadow .18s;
}
.nav-pill::before { display: none; }
.nav-icon { display: grid; place-items: center; flex: 0 0 auto; }
.nav-icon svg { display: block; width: 21px; height: 21px; }
.nav-pill:hover,.nav-pill.active,.nav-pill.nav-accent.active {
  background: linear-gradient(145deg,#f6e6ff,#d8b3ee); color: #412056;
  box-shadow: inset 1px 2px 3px #fff9, 0 3px 6px #6534791c; transform: none;
}
.nav-pill.nav-accent,.nav-pill.nav-accent:hover {
  color: #512849; background: linear-gradient(145deg,#ffd5c2,#ffb495); transform: none;
}
.credit-badge { color: var(--berry); border: 1px solid #fff; border-radius: 16px; background: #fff7fd; box-shadow: 0 3px 10px #70367e14; }
.credit-badge span { color: #8f467e; }
.app-shell { max-width: 1440px; padding: 16px 32px 38px; }
.section-heading { border: 0; padding-bottom: 8px; }
.section-heading h2 { font-size: clamp(1.8rem,3.8vw,2.65rem); line-height: 1.2; }
.section-heading p,.lead,.intro-card .lead { color: var(--muted); }
.eyebrow { color: #775189; font-size: .889rem; letter-spacing: .015em; }
.tarot-frame::before,.intro-card::after,.method-card::before,.period-card::after,.prompt-panel::before { display: none; }
#birth { grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); gap: 26px; align-items: stretch; }
#birth .intro-card {
  order: 1; min-height: 0; padding: clamp(26px,3.2vw,46px);
  border: 1px solid #fff; border-radius: 32px;
  background: linear-gradient(145deg,#fffafdf5,#fff3faf5);
  box-shadow: inset 2px 2px 8px #fff, var(--shadow);
}
#birth-title { font-size: clamp(1.8rem,3.25vw,2.65rem); max-width: 20ch; margin: 0 0 12px; }
.intro-card .lead { margin: 0 0 18px; }
.offer-summary { padding: 12px 16px; border: 1px solid #e7caed; border-radius: 16px; background: #f3e5fa; color: #58396e; font-size: .944rem; }
.birth-form { gap: 15px; }
.birth-form label,.location-dialog-card label { color: #594263; letter-spacing: 0; font-weight: 600; }
.birth-form input,.atlas-form input,.atlas-form textarea,.atlas-form select,
.location-dialog-card select,.date-finder select,.route-picker select,
#ask .route-picker select,#ask .question-form textarea {
  border: 1px solid #c6a8cf; border-radius: 15px; min-height: 52px;
  padding: 12px 14px; background: #fffafd; color: #352244;
  box-shadow: inset 0 2px 4px #76488909; font-family: var(--font-ui); font-size: 1rem;
}
input::placeholder,textarea::placeholder,#ask .question-form textarea::placeholder { color: #786480; opacity: 1; font-weight: 400; }
.birth-form input:focus,.atlas-form input:focus,.atlas-form textarea:focus,.atlas-form select:focus,
.location-dialog-card select:focus,#ask .route-picker select:focus,#ask .question-form textarea:focus {
  border-color: #8550a5; outline: 2px solid #8550a5; outline-offset: 2px;
  box-shadow: 0 0 0 5px #d9b8ee55; caret-color: #6b3788;
}
.primary-button,#ask .question-form button[type=submit] {
  min-height: 56px; padding: 14px 20px; border: 1px solid #ffdece;
  border-radius: 18px; background: linear-gradient(160deg,#ffcaad,#ff9d78);
  color: #47203c; font-weight: 750; font-size: 1rem; line-height: 1.4; letter-spacing: 0;
  box-shadow: inset 0 2px 3px #fff8, inset 0 -3px 4px #cb623d20, 0 7px 16px #c2695530;
}
.primary-button:hover,#ask .question-form button[type=submit]:hover {
  background: linear-gradient(160deg,#ffd5bf,#ffa681); transform: translateY(-1px);
  box-shadow: inset 0 2px 3px #fff8, 0 9px 20px #b9645338;
}
.primary-button:active { transform: translateY(1px); box-shadow: inset 0 2px 4px #b6583926; }
.primary-button:disabled { opacity: .6; transform: none; cursor: wait; }
.soft-button,.package-card,.chart-insight-button,.suggestions button,.atlas-actions button {
  border-radius: 14px; border-color: #d5b9df; background: #f8effb; color: var(--berry);
  box-shadow: inset 0 1px 2px #fff9;
}
.soft-button:hover,.chart-insight-button:hover,.suggestions button:hover { background: #edddf5; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline: 3px solid #8245a1; outline-offset: 3px; }
.form-status { color: #695079; }
.form-status.error { color: #a32d4f; }
.form-note,.prototype-note { color: var(--muted); letter-spacing: 0; text-align: left; }
.time-help { margin: 0; }
.web-entry p { color: var(--muted); }
.web-entry .primary-button { background: #f3e3fa; border-color: #ddc2e8; color: #57396e; box-shadow: inset 0 1px 3px #fff,0 3px 10px #73478512; }
#birth .method-card {
  order: 0; position: relative; isolation: isolate; display: flex; flex-direction: column;
  min-height: 720px; padding: 32px; overflow: hidden; gap: 18px;
  border: 1px solid #fce9ff; border-radius: 34px; background: #be9bd0;
  box-shadow: inset 2px 2px 9px #fff9,0 18px 40px #804a8629;
}
.method-card .atelier-illustration {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  min-height: 0; max-height: none; margin: 0; border: 0; object-fit: cover;
  object-position: 50% 35%; filter: none;
}
.method-card::after {
  content: ""; display: block; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #6d407c05 28%, #56305d24 43%, #40234fde 75%, #352043f5);
}
.method-card .orbit-label {
  position: relative; top: auto; left: auto; right: auto; align-self: flex-start;
  padding: 8px 14px; border: 1px solid #fff8; border-radius: 99px;
  background: #fff3f4e8; color: #624174; font-size: .833rem; letter-spacing: .025em;
}
.method-card .method-copy {
  position: relative; inset: auto; margin-top: auto; padding: 0; max-width: 530px;
  color: #fff7ff; text-shadow: none;
}
.method-card .method-copy > small { color: #f2d5fa; letter-spacing: .05em; }
.method-card .method-copy h3 { color: #fff7ff; font-size: clamp(1.8rem,3vw,2.45rem); line-height: 1.2; margin: 10px 0 16px; }
.method-card .method-copy h3 em { color: #ffcab8; }
.method-card .method-copy p { color: #fff1fb; font-size: 1rem; margin-bottom: 12px; }
.method-card .method-copy .method-features { display: flex; flex-flow: row wrap; gap: 8px; margin-top: 18px; padding: 0; border: 0; }
.method-card .method-copy .method-features li { width: auto; padding: 7px 12px; border: 1px solid #e1c4e250; border-radius: 99px; background: #fff1ff0c; color: #ffeefa; font-size: .778rem; }
.method-card .method-index { display: none; }
.wheel-card,.timeline-card,.chat-card,.prompt-panel,.positions-card,.local-card,
.chart-interactions,.chart-location-panel,.natal-report-shell,.synastry-form-card,
.synastry-result-card,.atlas-panel,.payment-dialog-card,.location-dialog-card {
  background: #fffafd; color: var(--ink); border: 1px solid #fff; border-radius: 26px;
  box-shadow: inset 0 2px 3px #fff, var(--shadow);
}
.wheel-card { background: radial-gradient(circle at 50% 40%,#fff,#f7eafb); padding-top: 60px; }
.demo-ribbon { background: #efddf7; border: 0; border-radius: 99px; color: #634079; font-size: .833rem; padding: 7px 12px; }
/* The chart is layered glass SVG: keep gradients intact, including on mobile. */
.natal-wheel { filter: drop-shadow(0 12px 9px #68428526); overflow: visible; }
.wheel-card {
  background: radial-gradient(ellipse at 20% 22%,#fffdf4c9,transparent 40%),
    radial-gradient(ellipse at 80% 64%,#a77bce57,transparent 46%),
    linear-gradient(135deg,#ffffffa8,#dec8ed8f 52%,#f9e7dfb3);
  border: 1px solid #fff; box-shadow: inset 0 2px 2px #fff,inset 0 -3px 10px #9b70b82b,0 18px 40px #59377524;
  -webkit-backdrop-filter: blur(20px) saturate(125%); backdrop-filter: blur(20px) saturate(125%);
}
.natal-wheel .house-lines { stroke: #866d9d; stroke-opacity: .65; }
.natal-wheel .house-lines .axis-line { stroke: #624579; stroke-width: 1.6; stroke-opacity: .9; }
.natal-wheel .sign-line { stroke: #997ca9; stroke-opacity: .5; }
.natal-wheel .planet .planet-hit-area { fill: url(#wheelLens); fill-opacity: .48; stroke: #ffffff70; stroke-width: 1; }
.natal-wheel .planet:hover .planet-hit-area,
.natal-wheel .planet:focus-visible .planet-hit-area { fill: #fff9ff; stroke: #77508e; stroke-width: 1.7; }
.natal-wheel #aspect-lines .aspect-visible { opacity: .67; }
.natal-wheel .wheel-core-title { fill: #43245d; }
.natal-wheel .wheel-core-sub { fill: #5b406e; }
.zodiac-glyphs,.wheel-core-title,.house-lines text { fill: var(--berry); }
.planet-glyphs { fill: #73458d; }
.wheel-core-sub { fill: #6f557e; }
.mini-card { border: 1px solid #fff; border-radius: 23px; box-shadow: inset 0 2px 4px #fff9,0 5px 15px #77477a10; }
.mini-card::after { display: none; }
.sun-card { background: linear-gradient(140deg,#fff2e5,#ffe1d6); }
.moon-card { background: linear-gradient(140deg,#f7eafe,#e7cef7); }
.asc-card { background: linear-gradient(140deg,#edfaf6,#d2ebe5); }
.mini-symbol { display: grid; place-items: center; border-radius: 20px; background: #fffbff88; box-shadow: inset 1px 2px 3px #fff9,0 4px 8px #694a7719; }
.mini-symbol svg { width: 34px; height: 34px; color: #704a8e; }
.mini-card small { color: #705776; text-transform: none; letter-spacing: 0; }
.mini-card p,.mini-card h3 { color: var(--ink); }
.chart-location-switch span { background: #f5eafa; border-color: #d8c0e2; border-radius: 14px; }
.chart-location-switch input:checked + span { background: #684087; color: #fff8ff; border-color: #684087; }
.chart-location-panel details { color: var(--muted); }
.positions-head,.position-row,.timeline-head { border-color: #ddcce4; }
.position-name b { color: #80549a; }
.timeline-point span,.timeline-point.current span,.period-icon {
  border: 1px solid #fff; background: linear-gradient(145deg,#fff6ff,#dcbbed);
  box-shadow: inset 1px 2px 5px #fff,0 6px 12px #8052952e;
}
.timeline-action:hover span,.timeline-action[aria-expanded="true"] span { box-shadow: inset 1px 2px 5px #fff,0 7px 18px #8052954d; }
.timeline-line { background: #c7a0dc; }
.period-card { border: 1px solid #fff9; border-radius: 26px; background: linear-gradient(145deg,#edd6fa,#d1afea 60%,#f6cfdb); color: var(--ink); box-shadow: var(--shadow); }
.period-card p,.period-card h3,.period-card small,.period-card .progression-aspects p { color: var(--ink); }
.progression-summary,.date-finder,.date-result,.natal-report-location,.progression-insight { background: #f5eafa; border: 1px solid #dec9e8; border-radius: 18px; color: var(--ink); }
.date-result { background: #fffafd; }
.date-finder select { background: #fffafd; }
.chat-topline,#ask .chat-topline { background: linear-gradient(125deg,#714690,#56346f); color: #fff8ff; border: 0; padding: 22px 24px; }
#ask .chat-topline small { color: #f0daf8; }
.online-dot { background: #f7c99b; box-shadow: 0 0 0 6px #fff2; }
.prompt-panel { background: linear-gradient(145deg,#fcf4ff,#f0e1f7); }
.prompt-panel h2,.prompt-panel > p { color: var(--ink); }
.question-rules { border-color: #d6bde0; border-radius: 18px; overflow: hidden; background: #fffafd; }
.question-rules h3 { background: #e9d5f3; color: #503463; padding: 12px 16px; font-family: var(--font-ui); }
.question-rules li { border-color: #e4d4eb; color: #574462; }
.message p { border: 1px solid #e4d1eb; background: #f5eafa; color: var(--ink); border-radius: 6px 20px 20px; }
.user-message p { color: #fff5ff; background: #70458a; border-color: #70458a; border-radius: 20px 6px 20px 20px; }
.avatar { border-radius: 12px; color: #6d4887; background: #eddef5; border-color: #ddc5e7; }
#ask .question-form,#ask .route-picker { gap: 12px; }
.route-card { border-color: #fff; border-radius: 23px; box-shadow: inset 0 2px 4px #fff,0 7px 18px #75478b16; background: #fff8fd; }
.route-card:nth-child(3n+2) { background: #f0e1fa; }
.route-card:nth-child(3n) { background: #ffe9df; }
.route-card:hover { background: #eddbf5; }
.natal-report-section,.interaction-level,.locked-level-card,.saved-followup,.atlas-record,.synastry-metrics div,.atlas-metrics article { border-color: #e0cde8; border-radius: 18px; background: #faf2fd; }
.natal-report-section { margin-top: 8px; }
.natal-report-copy p,.natal-report-copy h4,.natal-report-evidence strong { color: var(--ink); }
.natal-report-evidence .chart-insight-button { color: #533568; background: #efdef8; border-color: #d5b5e4; border-radius: 13px; }
.natal-report-paywall,.synastry-paywall { background: linear-gradient(145deg,#714690,#503265); border-color: #bd94d0; border-radius: 22px; color: #fff7ff; }
.synastry-paywall { box-shadow: 0 8px 22px #63397423; }
.synastry-paywall > small,.synastry-paywall .synastry-terms-link { color: #f3d5ff; }
.natal-report-paywall p,.synastry-paywall p,.natal-report-paywall h3,.synastry-paywall h3 { color: #fff7ff; }
.planet-dialog { border: 1px solid #e9cef4; border-radius: 26px; background: #fffafd; color: var(--ink); box-shadow: 0 24px 80px #4721524d; }
.planet-dialog-heading { background: #65417c; color: #fff8ff; padding: 12px 16px 12px 22px; }
.planet-dialog-heading button,.dialog-close { border-radius: 14px; min-width: 44px; min-height: 44px; border-color: #d6b4e2; }
.planet-dialog::backdrop,.payment-dialog::backdrop,.location-dialog::backdrop { background: #38204691; }
.planet-dialog-meta,.planet-dialog-note { color: var(--muted); }
.planet-dialog-retro { background: #f0e2f7; border-radius: 14px; }
.package-card { background: #f4e7f9; }
.package-card.featured { background: #694482; color: #fff6ff; border-color: #9865b5; }
.package-card.featured small { color: #f4d9ff; }
.package-card:hover { transform: translateY(-2px); box-shadow: 0 6px 12px #72448620; }
.date-chip { border-radius: 16px; background: #fff8fd; border-color: #d6bedf; }
.date-chip input { background: #f4e9fa; color: var(--ink); border-radius: 10px; }
.atlas-answer,.answer-section,.answer-section h4 { color: var(--ink); }
footer { border: 0; color: #71587c; }
@media (min-width:761px) {
  .topbar { display:grid; grid-template-columns:minmax(0,1fr) auto; position:relative; z-index:30; isolation:isolate; }
  .topbar .brand { grid-column:1; grid-row:1; justify-self:start; min-width:0; }
  .topbar .credit-badge { grid-column:2; grid-row:1; justify-self:end; max-width:none; }
  .topbar .main-nav { grid-column:1 / -1; grid-row:2; justify-content:center; min-width:0; max-width:100%; backdrop-filter:none; -webkit-backdrop-filter:none; }
  .main-nav { position: static; inset: auto; width: auto; }
}
@media (min-width:761px) and (max-width:1120px) {
  .main-nav { order: 3; flex-basis: 100%; justify-content: center; }
  .topbar,.app-shell { padding-left: 22px; padding-right: 22px; }
  #birth { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 18px; }
  #birth .intro-card { padding: 28px; }
  #birth .method-card { padding: 24px; }
}
@media (max-width:760px) {
  :root { --mobile-nav-height: 82px; }
  body,body.telegram-app { padding-bottom: calc(var(--mobile-nav-height) + var(--atlas-safe-bottom) + 28px); background-attachment: scroll; }
  .topbar { padding: calc(10px + var(--atlas-safe-top)) 16px 10px; gap: 8px; background: #f4e5fa; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .brand { font-size: 1rem; flex: 1 1 170px; max-width: 100%; }
  .brand-mark { flex-basis: 36px; width: 36px; height: 36px; border-radius: 12px; }
  .credit-badge { padding: 8px 10px; font-size: .778rem; max-width: 44%; }
  .main-nav {
    inset: auto calc(10px + var(--atlas-safe-right)) calc(8px + var(--atlas-safe-bottom)) calc(10px + var(--atlas-safe-left));
    width: auto; max-width: 540px; min-height: 76px; margin: 0 auto; padding: 7px 5px;
    display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 2px;
    border: 1px solid #ffffffd9; border-radius: 26px;
    background: linear-gradient(145deg,#fcecf9f5,#e2c8f1f5);
    box-shadow: inset 0 2px 3px #fff9,0 8px 25px #61357035;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .main-nav .nav-pill { display: grid; gap: 4px; min-height: 62px; padding: 3px 1px; font-size: .778rem; line-height: 1.2; border-radius: 18px; color: #614373; }
  .main-nav .nav-birth { display: none; }
  .nav-icon { width: 34px; height: 34px; border-radius: 13px; background: #f5e4ff; box-shadow: inset 1px 1px 3px #fff,0 3px 5px #6d3e811c; }
  .nav-icon svg { width: 23px; height: 23px; }
  .nav-pill[data-go="chart"] .nav-icon { background: #e2c4f5; }
  .nav-pill[data-go="synastry"] .nav-icon { background: #f6c3dd; }
  .nav-pill[data-go="transits"] .nav-icon { background: #ffcfb8; }
  .nav-pill[data-go="ask"] .nav-icon { background: #ffc0a2; }
  .nav-pill[data-go="cabinet"] .nav-icon { background: #c8e6de; }
  .main-nav .nav-pill.active,.main-nav .nav-pill:hover { color: #412252; background: #ffffff92; box-shadow: inset 0 1px 2px #fff; }
  .main-nav .nav-pill.nav-accent:not(.active) { color: #614373; background: transparent; }
  .app-shell { padding: 8px 12px 24px; }
  #birth { grid-template-columns: minmax(0,1fr); gap: 14px; }
  #birth .method-card { order: 0; height: 230px; min-height: 230px; padding: 20px; border-radius: 26px; }
  .method-card .atelier-illustration { position: absolute; height: 100%; margin: 0; object-position: 50% 38%; }
  .method-card::after { display: block; background: linear-gradient(180deg,#49265c00 30%,#40284a9c 100%); }
  .method-card .orbit-label { padding: 5px 10px; font-size: .778rem; }
  .method-card .method-copy { position: relative; inset: auto; padding: 0; margin-top: auto; text-shadow: 0 1px 5px #39274350; }
  .method-card .method-copy > small,.method-card .method-copy p,.method-card .method-copy .method-features { display: none; }
  .method-card .method-copy h3 { margin: 0; font-size: 1.5rem; line-height: 1.2; }
  .method-card .method-copy h3 em { color: #ffe3da; }
  #birth .intro-card { order: 1; padding: 25px 20px; border-radius: 26px; }
  #birth-title { font-size: 1.8rem; }
  .field-row,.location-row { grid-template-columns: minmax(0,1fr); }
  .birth-form label { font-size: .944rem; }
  .primary-button { padding: 13px 16px; }
  .section-heading h2 { font-size: 1.9rem; }
  .chart-layout,.progression-layout,.chat-layout { grid-template-columns: minmax(0,1fr); }
  .wheel-card { padding: 64px 8px 16px; border-radius: 24px; }
  .wheel-card.wheel-expanded { border-radius: 0; padding-top: calc(44px + var(--atlas-safe-top)); }
  .mini-card { padding: 16px; border-radius: 21px; }
  .mini-symbol { flex-basis: 52px; width: 52px; height: 52px; }
  .chart-interactions,.chart-location-panel,.natal-report-shell,.timeline-card,.period-card,.atlas-panel,.synastry-form-card,.synastry-result-card { border-radius: 23px; }
  .chat-card,.prompt-panel { min-height: 0; border-radius: 24px; }
  .prompt-panel { padding: 26px 20px; }
  .prompt-panel h2 { font-size: 1.8rem; }
  #ask .chat-topline { padding: 20px; }
  .date-finder { padding: 18px 14px; }
  .planet-dialog-content { padding: 22px 20px; }
  .planet-dialog-content h3 { font-size: 1.6rem; }
  .payment-dialog-card,.location-dialog-card { border-radius: 26px 26px 0 0; }
}
@media (prefers-reduced-motion:reduce) {
  .primary-button,.nav-pill,.soft-button { transition: none; }
}

/* House settings: one legible selector; optional explanations stay collapsed. */
.house-system-control { width: 100%; min-width: 0; margin: 14px 0; }
.house-system-control > label { display: block; margin-bottom: 8px; color: var(--ink, #34264e); font: inherit; font-weight: 650; text-transform: none; letter-spacing: normal; }
.house-system-control select { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 52px; padding: 12px 32px 12px 14px; border: 1px solid #ae92c2; border-radius: 16px; background: #fff8fc; color: #34264e; font: inherit; font-size: 18px; text-overflow: ellipsis; }
.house-system-description,.house-system-help p,.house-system-help dd { color: #51425f; font: inherit; font-size: 18px; line-height: 1.55; margin: 10px 0; }
.house-system-help summary { min-height: 44px; padding: 8px 0; color: #563775; cursor: pointer; font: inherit; font-weight: 600; }
.house-system-help dt { margin-top: 16px; font-weight: 700; color: #34264e; }
.house-system-help dd { margin-left: 0; }
.house-system-control select:focus-visible,.house-system-help summary:focus-visible { outline: 3px solid #7250ac; outline-offset: 3px; }
#house-system-status:empty { display: none; }

/* A calm daily working surface, with one reading and one personal observation. */
#today h1 { font-size: clamp(2rem,4vw,3rem); margin: 6px 0; }
#today h2 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 12px; }
.daily-place:not(:empty)::before { content: ' · '; }
.daily-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:24px; align-items:start; }
.daily-reading,.daily-journal,.daily-week-card,.daily-next,.daily-empty { border:1px solid #ffffffdc; border-radius:28px; padding:28px; background:#fff9fc; box-shadow:0 10px 30px #69407c12; min-width:0; }
.daily-reading { background:linear-gradient(160deg,#f7e7ff,#fff9fc 65%); }
.daily-sky { display:flex; gap:18px; align-items:center; margin-bottom:28px; }
.daily-sky img { flex:0 0 76px; width:76px; height:76px; object-fit:contain; }
.daily-sky h2 { margin:6px 0!important; }
.daily-sky p { margin:0; }
.daily-free { display:block; color:#674980; font-size:.889rem; margin-bottom:12px; }
.daily-focus p { font-size:1.1rem; line-height:1.65; }
.daily-signal { border-top:1px solid #e0cbe8; padding:4px 0; }
.daily-signal summary,.daily-method summary { padding:14px 0; cursor:pointer; font-weight:600; line-height:1.5; }
.daily-signal p,.daily-method p { font-size:1rem; line-height:1.6; }
.daily-method { margin-bottom:16px; }
.daily-journal p { line-height:1.55; }
.daily-moods { border:0; padding:0; margin:20px 0; min-width:0; }
.daily-moods legend { font-size:1rem; font-weight:600; padding:0 0 10px; }
#daily-moods { display:flex; flex-wrap:wrap; gap:10px; }
#daily-moods label { position:relative; display:block; cursor:pointer; }
#daily-moods input { position:absolute; opacity:0; width:1px; height:1px; }
#daily-moods span { display:block; padding:10px 14px; min-height:46px; border:1px solid #c7aacd; border-radius:15px; color:#493256; background:#fff; font-size:1rem; }
#daily-moods input:checked+span { background:#634184; color:#fff; border-color:#634184; }
#daily-moods input:focus-visible+span { outline:3px solid #8e61b1; outline-offset:3px; }
#daily-checkin>label { display:block; font-weight:600; margin-bottom:8px; }
#daily-note { display:block; width:100%; min-height:115px; resize:vertical; padding:14px; border:1px solid #c7aacd; border-radius:16px; background:#fff; color:#34264e; font:inherit; line-height:1.5; box-sizing:border-box; }
#daily-note-submit { margin-top:16px; width:100%; }
.daily-week-card { margin-top:24px; }
.daily-week { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; margin:22px 0 12px; }
.daily-day { padding:10px 3px; border:1px solid #dcc8e2; border-radius:16px; background:#fff; color:#644c70; min-width:0; cursor:pointer; }
.daily-day p { margin:0; font-size:1rem; line-height:1.5; }
.daily-day p:nth-child(2) { font-size:1.2rem; font-weight:700; }
.daily-day.recorded { background:#efdcf7; color:#452758; }
.daily-day[aria-pressed="true"] { outline:2px solid #754d94; outline-offset:2px; }
.daily-next { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:24px; margin-top:24px; background:#ffebe4; }
.daily-next p { margin:12px 0 0; line-height:1.6; }
#daily-action-status { grid-column:1/-1; margin:0; }
.daily-cabinet-link { display:flex; flex-wrap:wrap; gap:16px; align-items:center; justify-content:space-between; margin:16px 0; }
@media(max-width:760px) {
 .main-nav .nav-pill[data-go="transits"] { display:none; }
 .main-nav .nav-today .nav-icon { background:#ffcfb8; }
 .daily-grid,.daily-next { grid-template-columns:minmax(0,1fr); gap:18px; }
 .daily-reading,.daily-journal,.daily-week-card,.daily-next,.daily-empty { padding:22px 18px; border-radius:24px; }
 .daily-week { gap:5px; }
 .daily-day p { font-size:.889rem; }
 .daily-sky { gap:12px; margin-bottom:22px; }
 #daily-calendar { width:100%; }
}
.daily-personal { color:#69457f; font-size:.944rem!important; line-height:1.5!important; }
.daily-week-picker { display:flex; gap:12px; flex-wrap:wrap; align-items:center; font-size:1rem; }
.daily-week-picker input { color:#493256; background:#fff; border:1px solid #c7aacd; border-radius:12px; padding:10px; font:inherit; min-height:46px; max-width:100%; }

.daily-personal-story { display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.15fr); gap:24px; margin-bottom:24px; align-items:start; }
.daily-picture-card,.daily-plan-card { min-width:0; border:1px solid #e1cbed; border-radius:28px; background:#fffafd; box-shadow:0 12px 36px #63347712; overflow:hidden; }
.daily-scene-frame { position:relative; width:100%; aspect-ratio:1/1; max-height:480px; overflow:hidden; background:#e9d4f3; }
.daily-scene-frame img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center top; display:block; }
.daily-scene-frame span { position:absolute; left:16px; bottom:16px; max-width:calc(100% - 32px); padding:8px 14px; border-radius:20px; background:#fff9f3f0; color:#492b5e; font-size:.85rem; font-weight:600; }
.daily-picture-controls { padding:18px 22px 20px; }
.daily-picture-controls button { width:100%; }
.daily-picture-controls p { margin:12px 0 0; font-size:.89rem; line-height:1.5; color:#614e6e; }
.daily-plan-card { padding:26px 28px; }
.daily-plan-card > h2 { margin:10px 0 20px; font-size:1.65rem; line-height:1.25; }
#daily-plan-steps section { padding:16px 0; border-top:1px solid #e9dced; }
#daily-plan-steps h3 { margin:0 0 8px; font:650 1.05rem/1.3 var(--font-ui); color:#673d87; }
#daily-plan-steps p { margin:0; font-size:1rem; line-height:1.6; }
#daily-plan-source { margin:12px 0 0; font-size:.85rem; }
.daily-focus > summary { cursor:pointer; font-weight:650; font-size:1.05rem; color:#593b6d; padding:10px 0; }
.avatar-dialog { position:fixed; width:min(620px,calc(100% - 28px)); max-height:calc(100dvh - var(--atlas-safe-top,0px) - var(--atlas-safe-bottom,0px) - 32px); inset:var(--atlas-safe-top,0px) 0 var(--atlas-safe-bottom,0px); margin:auto; padding:0; border:1px solid #dcc1e8; border-radius:26px; background:#fffafd; color:#39244c; box-shadow:0 24px 80px #37213e66; overflow:auto; }
.avatar-dialog::backdrop { background:#30203894; }
.avatar-dialog-header { position:sticky; top:0; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; background:#69478a; color:white; z-index:2; }
.avatar-dialog-header h2 { margin:0; font-size:1.2rem; line-height:1.35; }
.avatar-dialog-header button { flex:0 0 44px; width:44px; height:44px; border:1px solid #d8bfe7; border-radius:14px; color:white; background:#ffffff15; font-size:1.8rem; cursor:pointer; }
.avatar-dialog-content { padding:22px; }
#avatar-preview { display:block; width:100%; height:240px; object-fit:contain; border-radius:18px; background:#eedff4; }
.avatar-dialog-content p { font-size:1rem; line-height:1.55; }
.avatar-dialog-content .atlas-muted { font-size:.89rem; }
.avatar-dialog label { display:block; margin-bottom:8px; font:600 .95rem/1.4 var(--font-ui); letter-spacing:0; text-transform:none; }
.avatar-options { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px; margin:20px 0; }
.avatar-options select { display:block; width:100%; min-width:0; margin-top:6px; padding:10px; min-height:48px; border:1px solid #b99acc; border-radius:12px; background:#fff; color:#39244c; font:400 1rem/1.4 var(--font-ui); }
.avatar-dialog .avatar-checkbox { display:flex; align-items:flex-start; gap:12px; font-weight:400; }
.avatar-checkbox input { flex:0 0 22px; width:22px; height:22px; margin:2px 0 0; accent-color:#8552b0; }
.avatar-consent { padding:14px; border-radius:14px; background:#f0e5f6; }
#avatar-photo { width:100%; padding:12px 0; font:inherit; }
#avatar-submit { width:100%; }
#avatar-status:empty,#daily-visual-status:empty { display:none; }
#avatar-status { padding:12px; border-radius:12px; background:#eee0f5; }
.avatar-dialog button:focus-visible,.avatar-dialog select:focus-visible,.avatar-dialog input:focus-visible { outline:3px solid #9b60c7; outline-offset:3px; }
@media(max-width:760px){
 .daily-personal-story { grid-template-columns:minmax(0,1fr); gap:18px; }
 .daily-scene-frame { aspect-ratio:4/3; max-height:340px; }
 .daily-picture-controls { padding:16px 18px; }
 .daily-plan-card { padding:22px 20px; border-radius:24px; }
 .daily-plan-card > h2 { font-size:1.5rem; }
 .avatar-dialog-content { padding:18px; }
 #avatar-preview { height:200px; }
}
@media(max-width:360px){.avatar-options{grid-template-columns:minmax(0,1fr);}}

/* All-access and geographic exploration share the reading surfaces of the Atlas. */
.daily-discover { display:flex; align-items:center; flex-wrap:wrap; gap:16px; margin:0 0 22px; }
#access h1,#places h1 { font-size:clamp(2rem,4vw,3rem); line-height:1.15; margin:8px 0; }
.access-intro,.access-plans>article,.access-conditions,.access-details,.places-paywall,.places-start,.places-city-form,.places-reading-grid>article,.cabinet-access { border:1px solid #ddc5e8; border-radius:24px; padding:24px; background:#fffafd; min-width:0; }
.access-intro p,.access-details p,.places-reading-grid p,.places-start p,.places-paywall p { font-size:1rem; line-height:1.65; }
.access-plans { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:24px 0; align-items:stretch; }
.access-plans>article { display:flex; flex-direction:column; gap:12px; }
.access-plans h2 { font-size:1.4rem; margin:0; }
.access-plans .primary-button { flex-direction:column; align-items:flex-start; gap:10px; margin-top:auto; }
.access-price { font-size:1.2rem; white-space:nowrap; }
.access-plans .access-featured { background:#f0e2fa; border:2px solid #8a5fb1; }
.access-conditions { margin-bottom:20px; }
.access-details { margin:20px 0; }
.access-details summary { cursor:pointer; min-height:44px; font-weight:650; }
.places-profile { font-size:1rem; line-height:1.6; }
.places-paywall,.places-start { margin-bottom:20px; }
.places-goal-picker { margin:24px 0; padding:26px; border:1px solid #d8bfe8; border-radius:26px; background:linear-gradient(135deg,#fffafd 0%,#f4e7fb 100%); }
.places-goal-picker h2 { margin:0 0 6px; font-size:1.55rem; }
.places-goal-picker>div>p { margin:0; color:#62506f; }
.places-goal-tabs { display:flex; flex-wrap:wrap; gap:9px; margin:18px 0 22px; }
.places-goal-tabs button { border:1px solid #b48bca; border-radius:999px; padding:11px 15px; color:#49325d; background:#fffafd; font:inherit; cursor:pointer; }
.places-goal-tabs button[aria-selected=true] { color:#fff; background:#6c4384; border-color:#6c4384; box-shadow:0 6px 16px rgba(84,50,110,.18); }
.places-recommendations { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.places-recommendations>.atlas-muted { grid-column:1 / -1; margin:0 0 2px; }
.place-recommendation { display:flex; flex-direction:column; gap:11px; padding:18px; border:1px solid #d9c4e5; border-radius:18px; background:rgba(255,255,255,.84); min-width:0; }
.place-recommendation-featured { border:2px solid #9064ad; background:#fffaff; }
.place-recommendation .eyebrow { color:#74478d; font-size:.76rem; }
.place-recommendation h3 { margin:0; font-size:1.2rem; line-height:1.2; }
.place-recommendation p { margin:0; line-height:1.48; color:#584064; }
.place-recommendation .soft-button { margin-top:auto; align-self:flex-start; }
.place-recommendation details { font-size:.92rem; color:#62506f; }
.place-recommendation summary { cursor:pointer; }
.places-map-details { margin:20px 0; padding:20px 0 0; border-top:1px solid #dbc7e6; }
.places-map-details>summary { cursor:pointer; font-size:1.08rem; font-weight:650; color:#4a305d; }
.places-map-details>summary::marker { color:#7a4f94; }
.places-buy-options { display:flex; flex-wrap:wrap; gap:16px; margin:18px 0; }
.places-buy-options .soft-button { display:flex; gap:16px; align-items:center; }
.places-tools { display:flex; justify-content:space-between; flex-wrap:wrap; align-items:end; gap:16px; margin:20px 0 12px; }
.places-tools>div { display:flex; flex-wrap:wrap; gap:8px; }
.places-tools .soft-button { min-width:44px; min-height:44px; }
.places-tools select,.places-city-form input,.places-city-form select { color:#39244c; background:#fff; border:1px solid #9a79ac; border-radius:12px; font:inherit; min-height:50px; padding:10px 14px; max-width:100%; min-width:0; }
.places-tools label { display:flex; flex-direction:column; gap:6px; font-size:1rem; }
.places-map-frame { overflow:hidden; border:1px solid #c2b5cb; border-radius:24px; background:#e4eef1; }
#places-map { display:block; width:100%; height:auto; min-height:260px; max-height:560px; }
#places-map [role=button] { cursor:pointer; }
#places-map [role=button]:focus { stroke:#f39944; stroke-width:4; }
.places-attribution { font-size:.8rem; color:#62506f; margin:10px 0; }
.places-line-buttons { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0; }
.places-line-buttons .soft-button { font-size:.94rem; }
.places-city-form { margin:20px 0; }
.places-city-form>div { display:flex; gap:12px; margin-top:8px; flex-wrap:wrap; }
.places-city-form input,.places-city-form select { flex:1; width:100%; }
.places-city-form #places-city-results { flex-direction:column; align-items:start; }
.places-reading-grid { display:grid; grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr); gap:20px; }
.places-reading-grid>article:empty { display:none; }
.places-reading-grid h3 { font-size:1.35rem; line-height:1.35; }
.places-near-line { display:block; width:100%; margin-top:12px; padding:16px; text-align:left; font:inherit; line-height:1.5; color:#483057; border:1px solid #c5a8d7; border-radius:14px; background:#f6ecfb; cursor:pointer; }
.places-reading-grid summary { cursor:pointer; padding:14px 0; font-weight:650; }
.cabinet-access { display:flex; gap:18px; align-items:center; justify-content:space-between; margin-bottom:20px; background:#f0e2fa; }
.cabinet-access p { margin:8px 0 0; }
@media(max-width:760px){
 .main-nav .nav-places { display:none; }
 .access-plans,.places-reading-grid,.places-recommendations { grid-template-columns:minmax(0,1fr); }
 .access-intro,.access-plans>article,.access-conditions,.access-details,.places-paywall,.places-start,.places-city-form,.places-reading-grid>article,.cabinet-access { padding:20px 18px; }
 .access-plans .primary-button { flex-direction:row; align-items:center; flex-wrap:wrap; }
 .places-buy-options,.cabinet-access { flex-direction:column; align-items:stretch; }
 .places-goal-picker { padding:20px 18px; }
 .daily-discover { justify-content:space-between; gap:10px; }
 .daily-discover .soft-button { padding:12px; font-size:.94rem; }
}

/* Glass surfaces carry through the natal chart and its reading cards. */
#chart .chart-location-panel,#chart .positions-card,#chart .chart-interactions {
  background: linear-gradient(125deg,#ffffffcf,#f0e2f88c 60%,#ffffffad);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 2px 2px #fff,inset 0 -2px 6px #ac87c429,0 10px 28px #6743811f;
}
#chart .mini-card { position: relative; overflow: hidden; border: 1px solid #fff;
  box-shadow: inset 0 2px 2px #fff,inset 0 -3px 9px #8d60a32b,0 12px 24px #67438120; }
#chart .sun-card { background: linear-gradient(135deg,#fffcf1eb,#f7d3bba3 55%,#fff5eacf); }
#chart .moon-card { background: linear-gradient(135deg,#fffaffeb,#cdb0e59c 55%,#f4e5ffcf); }
#chart .asc-card { background: linear-gradient(135deg,#f7fffdeb,#afd4cd9c 55%,#e8fbf6cf); }
#chart .mini-symbol { border: 1px solid #fff; background: radial-gradient(ellipse at 30% 12%,#fff,transparent 60%),#ffffff52;
  box-shadow: inset 0 2px 3px #fff,inset 0 -4px 6px #ffffff99,0 5px 10px #64427e26; }

/* v73: an unobstructed diagram, exact ticks and separate label positions. */
#chart .wheel-card { align-content: start; gap: 12px; padding: 20px 18px; min-height: 0; }
#chart .natal-wheel { width: 100%; max-width: 680px; }
.natal-wheel .degree-tick { stroke: #766285; stroke-width: .55; opacity: .6; }
.natal-wheel .degree-tick.major { stroke-width: .9; opacity: .85; }
.natal-wheel .zodiac-plain { font: 24px 'Segoe UI Symbol','Noto Sans Symbols 2',serif; }
.natal-wheel .element-0 { fill: #b54c42; }
.natal-wheel .element-1 { fill: #41734e; }
.natal-wheel .element-2 { fill: #946916; }
.natal-wheel .element-3 { fill: #3f70a7; }
.natal-wheel .house-lines { stroke: #c5becb; stroke-width: .8; stroke-opacity: 1; }
.natal-wheel .house-lines .axis-line { stroke: #786286; stroke-width: 1.2; }
.natal-wheel .house-number { fill: #75667f; font-size: 12px; }
.natal-wheel .axis-label { fill: #46344f; font-size: 12px; }
.natal-wheel .axis-degree { fill: #594865; stroke: none; text-anchor: middle; font: 11px var(--font-ui); }
.natal-wheel .planet .planet-hit-area { fill: #fff; fill-opacity: .94; stroke: none; }
.natal-wheel .planet:hover .planet-hit-area,.natal-wheel .planet:focus-visible .planet-hit-area { fill: #f0e7f6; stroke: #8b6da0; fill-opacity: 1; }
.natal-wheel .planet-glyphs .planet .planet-symbol { fill: #44334f; font-size: 23px; }
.natal-wheel .planet-glyphs .planet .planet-degree { fill: #42374a; font: 12px var(--font-ui); letter-spacing: -.35px; }
.natal-wheel .planet-pointer { stroke: #877492; stroke-width: .8; }
.natal-wheel .planet-position { fill: #665074; }
.natal-wheel #aspect-lines .aspect-visible { opacity: .82; stroke-width: 1.4; }
.natal-wheel #aspect-lines .aspect-hard { --aspect-color: #cf454c; stroke: var(--aspect-color); }
.natal-wheel #aspect-lines .aspect-soft { --aspect-color: #3175b8; stroke: var(--aspect-color); }
.natal-wheel #aspect-lines .aspect-neutral { --aspect-color: #8c589f; stroke: var(--aspect-color); stroke-dasharray: 2 2; }
.natal-wheel #aspect-lines .aspect-angle-60 { stroke-dasharray: 4 2; }
.natal-wheel #aspect-lines .aspect-interactive:hover .aspect-visible,
.natal-wheel #aspect-lines .aspect-interactive:focus-visible .aspect-visible,
.natal-wheel #aspect-lines .aspect-selected .aspect-visible { stroke: var(--aspect-color); stroke-width: 3; opacity: 1; }
.wheel-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; color: #5b4967; font-size: 14px; }
.wheel-legend span { display: inline-flex; align-items: center; gap: 7px; }
.wheel-legend i { display: inline-block; width: 19px; height: 0; border-top: 2px solid; }
.legend-hard { color: #cf454c; }.legend-soft { color: #3175b8; }.legend-neutral { color: #8c589f; border-top-style: dotted !important; }
#chart .planet-help { margin: 2px 4px; font-size: 14px; }
#chart .prototype-note { display: none; }
@media (max-width:760px) {
  #chart .wheel-card { padding: 14px 4px 18px; gap: 10px; }
  #chart .wheel-card.wheel-expanded { padding-top: calc(44px + var(--atlas-safe-top)); align-content: center; }
  #chart .wheel-expanded .natal-wheel { width: min(96vw,680px); max-height: 72dvh; }
  .wheel-legend { gap: 6px 12px; padding: 0 8px; font-size: 12px; }
}

.natal-wheel .planet-glyphs .planet .planet-sign { font: 12px "Segoe UI Symbol","Noto Sans Symbols 2",serif; }

#chart .demo-ribbon { display: none; }
.natal-wheel .planet-pointer { stroke: #9a8ca3; stroke-width: .65; }
