:root {
  --bg-deep: #0a0b1e;
  --bg-panel: rgba(255, 255, 255, 0.055);
  --bg-panel-solid: #15162e;
  --border: rgba(255, 255, 255, 0.09);
  --text-primary: #f4f2ff;
  --text-muted: #a9a3c9;
  --text-faint: #6f6a92;
  --accent-gold: #f4c869;
  --accent-lavender: #b9a8ff;
  --accent-rose: #ff9ec4;
  --accent-teal: #6fd3c7;
  --harmonious: #6fd3a5;
  --challenging: #ff7a7a;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

body {
  background-image:
    radial-gradient(ellipse 60% 40% at 15% 8%, rgba(185, 168, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 35% at 88% 12%, rgba(255, 158, 196, 0.13), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(111, 211, 199, 0.10), transparent 60%),
    var(--bg-deep);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff 100%, transparent), radial-gradient(1px 1px at 80% 10%, #fff 100%, transparent),
    radial-gradient(1px 1px at 60% 70%, #fff 100%, transparent), radial-gradient(1px 1px at 30% 85%, #fff 100%, transparent),
    radial-gradient(1px 1px at 90% 60%, #fff 100%, transparent), radial-gradient(1px 1px at 45% 35%, #fff 100%, transparent),
    radial-gradient(1px 1px at 15% 55%, #fff 100%, transparent), radial-gradient(1px 1px at 70% 90%, #fff 100%, transparent);
  background-size: 100% 100%;
  opacity: 0.35;
}

#app-shell {
  position: relative;
  z-index: 1;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 200px);
}

/* ---- Header ---- */
#app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 10px;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark { font-size: 22px; }
.brand-name { font-family: Georgia, 'Times New Roman', serif; font-size: 19px; letter-spacing: 0.3px; }
.brand-name b { color: var(--accent-gold); font-weight: 600; }

.zodiac-toggle {
  display: flex; background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px; gap: 2px;
}
.zodiac-toggle button {
  border: none; background: transparent; color: var(--text-muted); font-size: 12px;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; font-weight: 600;
}
.zodiac-toggle button.active { background: var(--accent-lavender); color: #1a1730; }

/* ---- Main / views ---- */
#app-main { flex: 1; padding: 6px 16px 100px; }
.view { display: none; animation: fadeIn 0.25s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h1.page-title { font-family: Georgia, serif; font-size: 24px; margin: 6px 0 4px; }
p.page-sub { color: var(--text-muted); font-size: 13.5px; margin: 0 0 18px; }

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
  backdrop-filter: blur(6px);
}
.card-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--accent-lavender); font-weight: 700; margin: 0 0 10px;
}

/* Home hero */
.hero-card {
  background: linear-gradient(135deg, rgba(185,168,255,0.20), rgba(255,158,196,0.10));
  border: 1px solid rgba(255,255,255,0.14);
  text-align: center; padding: 26px 18px;
}
.hero-profile-name { font-family: Georgia, serif; font-size: 21px; margin-bottom: 2px; }
.hero-profile-sub { color: var(--text-muted); font-size: 12.5px; margin-bottom: 16px; }
.big-three { display: flex; justify-content: space-around; gap: 8px; }
.big-three-item { flex: 1; }
.big-three-glyph { font-size: 26px; display: block; margin-bottom: 4px; }
.big-three-label { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; }
.big-three-value { font-size: 13.5px; font-weight: 600; margin-top: 2px; }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-tile {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px; cursor: pointer; transition: transform 0.15s, background 0.15s;
  font-family: inherit; text-align: left; display: block; width: 100%; color: var(--text-primary);
}
.quick-tile:active { transform: scale(0.97); }
.quick-tile:focus-visible, .profile-chip:focus-visible, .sub-tab:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.quick-tile-icon { font-size: 20px; }
.quick-tile-title { font-size: 13.5px; font-weight: 700; margin-top: 6px; }
.quick-tile-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state .glyph { font-size: 40px; display: block; margin-bottom: 10px; }
.btn {
  display: inline-block; background: var(--accent-lavender); color: #1a1730; border: none;
  border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 14px; cursor: pointer;
  text-align: center;
}
.btn.secondary { background: var(--bg-panel); color: var(--text-primary); border: 1px solid var(--border); }
.btn.ghost { background: transparent; color: var(--accent-rose); border: 1px solid rgba(255,158,196,0.4); }
.btn.small { padding: 8px 14px; font-size: 12.5px; }
.btn-row { display: flex; gap: 10px; margin-top: 14px; }
.btn-block { display: block; width: 100%; margin-top: 8px; }

/* Forms */
label.field-label { display: block; font-size: 12px; color: var(--text-muted); margin: 14px 0 6px; font-weight: 600; }
input[type=text], input[type=date], input[type=time], input[type=number], select {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: rgba(255,255,255,0.04); color: var(--text-primary); font-size: 14px;
}
input:focus, select:focus, textarea.ask-question:focus { outline: none; border-color: var(--accent-lavender); }
textarea.ask-question {
  width: 100%; min-height: 76px; margin-top: 10px; padding: 11px 13px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: rgba(255,255,255,0.04); color: var(--text-primary);
  font-size: 14px; font-family: inherit; resize: vertical;
}
.ask-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chip:disabled, .ask-btn:disabled { opacity: 0.6; cursor: wait; }
.ask-saved-q { font-size: 12.5px; color: var(--text-muted); margin-top: 14px; }
.ask-result { margin-top: 8px; white-space: pre-wrap; }
.field-row { display: flex; gap: 10px; }
.field-row > div { flex: 1; }
.field-hint { font-size: 11px; color: var(--text-faint); margin-top: 5px; }
datalist {}

/* Profile chips */
.profile-chip-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 4px; }
.profile-chip {
  flex: none; padding: 8px 14px; border-radius: 999px; background: var(--bg-panel);
  border: 1px solid var(--border); font-size: 12.5px; cursor: pointer; white-space: nowrap;
  font-family: inherit; color: var(--text-primary);
}
.profile-chip.active { background: var(--accent-gold); color: #1a1730; font-weight: 700; border-color: transparent; }

/* Chart view */
.chart-wheel-wrap { display: flex; justify-content: center; margin: 6px 0 14px; }
.chart-wheel-svg { width: 100%; max-width: 420px; height: auto; }

.wheel-outer-bg { fill: rgba(255,255,255,0.02); stroke: rgba(255,255,255,0.18); stroke-width: 1.5; }
.wheel-inner-bg { fill: rgba(10,11,30,0.55); stroke: rgba(255,255,255,0.12); stroke-width: 1; }
.sign-wedge { fill: rgba(255,255,255,0.02); stroke: rgba(255,255,255,0.10); stroke-width: 1; }
.sign-wedge.element-fire { fill: rgba(255,122,122,0.05); }
.sign-wedge.element-earth { fill: rgba(111,211,165,0.05); }
.sign-wedge.element-air { fill: rgba(185,168,255,0.05); }
.sign-wedge.element-water { fill: rgba(111,211,199,0.05); }
.sign-glyph {
  font-size: 17px; fill: var(--accent-lavender); font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols', sans-serif;
  paint-order: stroke; stroke: rgba(0,0,0,0.35); stroke-width: 3px; stroke-linejoin: round;
}
.degree-tick { stroke: rgba(255,255,255,0.14); stroke-width: 1; }
.house-cusp-line { stroke: rgba(255,255,255,0.22); stroke-width: 1; }
.house-cusp-line.angle-line { stroke: var(--accent-gold); stroke-width: 1.75; }
.house-number { font-size: 11px; fill: var(--text-faint); font-weight: 700; }
.angle-label { font-size: 12px; fill: var(--accent-gold); font-weight: 800; letter-spacing: 0.5px; }
.planet-radial-tick { stroke: rgba(255,255,255,0.3); stroke-width: 1; }
.planet-leader-line { stroke: rgba(255,255,255,0.22); stroke-width: 0.75; stroke-dasharray: 1.5 2; }
.planet-glyph {
  font-size: 19px; fill: var(--text-primary); font-weight: 700;
  font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols', sans-serif;
  paint-order: stroke; stroke: var(--bg-deep); stroke-width: 4px; stroke-linejoin: round;
}
.retrograde-mark { font-size: 9px; fill: var(--challenging); font-weight: 800; }
.aspect-line { fill: none; }

.sub-tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }
.sub-tab {
  padding: 7px 13px; border-radius: 999px; background: var(--bg-panel); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted); cursor: pointer; white-space: nowrap; font-weight: 600;
  font-family: inherit;
}
.sub-tab.active { background: var(--accent-lavender); color: #1a1730; }
.sub-view { display: none; }
.sub-view.active { display: block; }

.list-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: none; }
.list-row.learn-row { display: block; }
.learn-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.learn-facts { text-align: right; }
.learn-line { margin: 6px 0 0 32px; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
.learn-together {
  margin: 6px 0 2px 32px; padding-left: 8px; border-left: 2px solid var(--accent-gold);
  font-size: 12.5px; line-height: 1.5; color: var(--text-primary);
}
.aspect-row .learn-line, .aspect-row .learn-together { margin-left: 17px; }

.cycle-switch, .cycle-phases { display: flex; gap: 6px; overflow-x: auto; margin: 10px 0; padding-bottom: 2px; }
.cycle-switch button, .cycle-phase {
  flex: none; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-panel);
  color: var(--text-muted); font: inherit; font-size: 12px; font-weight: 650; padding: 7px 10px; cursor: pointer;
}
.cycle-switch button.active, .cycle-phase.open { background: var(--accent-gold); color: #1a1730; border-color: transparent; }
.cycle-phase.now:not(.open) { border-color: var(--accent-gold); color: var(--accent-gold); }
.cycle-arc { width: 100%; height: auto; display: block; }
.cycle-place { margin: 0; font-size: 13.5px; line-height: 1.5; }
.cycle-focus { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
.cycle-topics { display: grid; gap: 8px; margin-top: 12px; }
.cycle-topic {
  text-align: left; border: 1px solid var(--border); background: transparent; color: var(--text-primary);
  border-radius: 14px; padding: 10px 12px; font: inherit; cursor: pointer;
}
.cycle-topic b { display: block; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.cycle-topic p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.cycle-topic.working b { color: var(--accent-gold); }
.cycle-topic.towards b { color: var(--accent-teal); }
.cycle-topic.leaving b { color: var(--accent-rose); }
.list-row-left { display: flex; align-items: center; gap: 10px; }
.list-glyph { font-size: 17px; width: 22px; text-align: center; color: var(--accent-lavender); }
.list-main { font-size: 13.5px; font-weight: 600; }
.list-sub { font-size: 11.5px; color: var(--text-muted); }
.list-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--text-muted); }
.retro-tag { background: rgba(255,122,122,0.15); color: var(--challenging); }

.aspect-row { padding: 10px 0; border-bottom: 1px solid var(--border); }
.aspect-row:last-child { border-bottom: none; }
.aspect-row-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.aspect-dot { width: 9px; height: 9px; border-radius: 50%; }
.aspect-row-text { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.orb-tag { margin-left: auto; font-size: 10.5px; color: var(--text-faint); }

.report-block { margin-bottom: 16px; }
.report-block h3 { font-size: 14px; margin: 0 0 6px; color: var(--accent-gold); }
.report-block p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0 0 8px; }

/* Settings row inside chart view */
.settings-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pill-select { position: relative; }
.pill-select select {
  appearance: none; padding: 8px 26px 8px 12px; border-radius: 999px; font-size: 12px; width: auto;
}
.pill-select::after { content: '▾'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 9px; color: var(--text-muted); pointer-events: none; }

/* Horoscope */
.date-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.date-nav button { background: var(--bg-panel); border: 1px solid var(--border); color: var(--text-primary); border-radius: 999px; width: 34px; height: 34px; cursor: pointer; font-size: 15px; }
.date-nav .date-label { font-weight: 700; font-size: 14.5px; }
.horoscope-text { font-size: 13.5px; line-height: 1.7; color: var(--text-primary); }
.link-body { white-space: pre-wrap; }
.substance-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.substance-chip {
  display: inline-block; padding: 5px 8px; border-radius: 999px;
  border: 1px solid rgba(244, 200, 105, 0.4); background: rgba(244, 200, 105, 0.12);
  color: var(--accent-gold); font-size: 12px; line-height: 1.35;
}
mark.substance {
  background: rgba(244, 200, 105, 0.22); color: var(--accent-gold);
  border-radius: 4px; padding: 0 3px; font-weight: 650;
}
.basis-row, .basis-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.basis {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
}
.basis.natal { color: #1a1730; background: var(--accent-lavender); }
.basis.transit { color: #10211f; background: var(--accent-teal); }
.basis-note { font-size: 12px; color: var(--text-muted); }
.basis-block { margin-top: 4px; padding-left: 10px; border-left: 3px solid transparent; }
.basis-block:has(.basis.natal) { border-left-color: var(--accent-lavender); }
.basis-block:has(.basis.transit) { border-left-color: var(--accent-teal); }
.basis-block + .basis-block { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.transit-mini { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 12.5px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.transit-mini:last-child { border-bottom: none; }

/* Moon */
.moon-visual { text-align: center; padding: 10px 0 4px; }
.moon-disc { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 14px; position: relative; background: #d8d3f0; box-shadow: inset -8px -4px 20px rgba(0,0,0,0.35), 0 0 40px rgba(185,168,255,0.25); }
.moon-phase-name { font-size: 17px; font-weight: 700; }
.moon-illum { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.moon-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.moon-cal-day { text-align: center; font-size: 10px; color: var(--text-muted); }
.moon-cal-day .disc { width: 22px; height: 22px; border-radius: 50%; margin: 3px auto; background: #46406e; position: relative; overflow: hidden; }
.moon-cal-day .disc .lit { position: absolute; top: 0; bottom: 0; background: #eceaff; }
.moon-cal-day.today { color: var(--accent-gold); font-weight: 800; }

/* Compatibility */
.compat-score-ring { width: 140px; height: 140px; margin: 6px auto 16px; position: relative; }
.compat-score-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.compat-score-num .num { font-size: 30px; font-weight: 800; font-family: Georgia, serif; }
.compat-score-num .lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; }
.compat-pair-select { display: flex; gap: 10px; }
.compat-pair-select > div { flex: 1; }
.compat-placements-head, .compat-placements-row {
  display: grid; grid-template-columns: 60px 1fr 1fr; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); gap: 6px;
}
.compat-placements-row:last-child { border-bottom: none; }
.compat-placements-head { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 700; }
.compat-placements-row { font-size: 13px; font-weight: 600; }

/* Tab bar */
#tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 5;
  width: calc(100% - 28px); max-width: 452px;
  background: rgba(21, 22, 46, 0.86); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 22px;
  display: flex; padding: 8px 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.tab-btn {
  flex: 1; background: none; border: none; color: var(--text-faint); cursor: pointer;
  padding: 8px 2px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: inherit;
}
.tab-btn .icon { font-size: 18px; }
.tab-btn .lbl { font-size: 9.5px; font-weight: 700; letter-spacing: 0.2px; }
.tab-btn.active { color: var(--accent-gold); }

/* Misc */
.section-divider { height: 1px; background: var(--border); margin: 18px 0; }
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 20;
  background: var(--bg-panel-solid); border: 1px solid var(--border); color: var(--text-primary);
  padding: 10px 18px; border-radius: 999px; font-size: 12.5px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.toast.show { opacity: 1; }
.icon-btn { background: var(--bg-panel); border: 1px solid var(--border); color: var(--text-primary); border-radius: 999px; width: 36px; height: 36px; cursor: pointer; font-size: 15px; }

::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

@media (prefers-color-scheme: light) {
  body { background-color: var(--bg-deep); }
}


/* Observatory journal — responsive visual system */
:root {
  color-scheme: light;
  --bg-deep: #f7f6f2; --bg-panel: #fffefa; --bg-panel-solid: #fffefa;
  --border: #dedfd5; --text-primary: #273d34; --text-muted: #6a7469;
  --text-faint: #737b6c; --accent-gold: #8b622c; --accent-lavender: #365b44;
  --accent-rose: #995c4e; --accent-teal: #44756b; --harmonious: #427858;
  --challenging: #b76b51; --radius-lg: 18px; --radius-md: 14px;
}
html, body { background: var(--bg-deep); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
body { background-image: none; }
body::before { display: none; }
button, input, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #8b622c; outline-offset: 4px; }
#app-shell { max-width: 1440px; background: none; padding-left: 222px; }
#app-header { position: fixed; inset: 0 auto 0 0; width: 222px; background: #eeefe7; border-right: 1px solid var(--border); z-index: 8; padding: 38px 24px; display: block; }
.brand { align-items: flex-start; gap: 10px; }
.brand-mark { font-size: 34px; line-height: 1; color: #365b44; }
.brand-name { font: 25px Georgia, serif; letter-spacing: -1px; white-space: nowrap; }
.brand-caption { display: block; font: 10px/1.6 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text-muted); letter-spacing: 0; margin-top: 8px; }
.zodiac-toggle { position: absolute; bottom: 70px; left: 24px; right: 24px; background: #e3e6db; border: 0; border-radius: 9px; padding: 4px; }
.zodiac-toggle::before { content: 'ZODIAC SYSTEM'; position: absolute; bottom: calc(100% + 12px); font-size: 9px; letter-spacing: 1.5px; color: var(--text-muted); }
.zodiac-toggle button { flex: 1; min-height: 34px; padding: 7px; border-radius: 6px; font-size: 11px; }
.zodiac-toggle button.active { background: #fffefa; color: #273d34; box-shadow: 0 1px 4px #273d3410; }
#tabbar { top: 167px; bottom: auto; left: 17px; transform: none; width: 188px; max-width: none; background: none; box-shadow: none; border: 0; border-radius: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; backdrop-filter: none; z-index: 9; }
#tabbar::before { content: 'EXPLORE'; font-size: 9px; letter-spacing: 1.8px; padding: 0 15px 16px; color: var(--text-muted); }
.tab-btn { flex: none; flex-direction: row; gap: 13px; min-height: 48px; padding: 12px 16px; border-radius: 9px; color: #657365; text-align: left; }
.tab-btn .icon { font-size: 23px; line-height: 1; width: 23px; font-family: Georgia, serif; }
.tab-btn .lbl { font-size: 12px; font-weight: 500; letter-spacing: 0; }
.tab-btn.active { background: #dce4d5; color: #2c503c; }
.tab-btn.active::after { content: ''; width: 5px; height: 5px; background: #44684b; border-radius: 50%; margin-left: auto; }
.tab-btn:hover { background: #e1e7da; }
#app-main { padding: 44px 48px 60px; min-width: 0; }
.home-intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 31px; }
.eyebrow { font-size: 9px; font-weight: 600; letter-spacing: 2px; color: #6c7a63; }
.home-intro h1 { font: 39px/1.12 Georgia, serif; letter-spacing: -1.5px; margin: 12px 0 10px; }
.home-intro p { font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.6; }
.today-stamp { text-align: right; flex-shrink: 0; }
.today-stamp span { display: block; font-size: 8px; letter-spacing: 1.8px; color: var(--text-muted); margin-bottom: 9px; }
.today-stamp time { font-size: 11px; }
.profile-chip-list { margin-bottom: 18px; gap: 7px; }
.profile-chip { padding: 9px 14px; font-size: 11px; background: transparent; border-color: var(--border); color: #52634f; min-height: 36px; }
.profile-chip.active { background: #e5eadf; color: #31533e; border: 1px solid #c8d3be; }
.card { box-shadow: none; backdrop-filter: none; padding: 26px; margin-bottom: 20px; background: var(--bg-panel); }
.hero-card { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; overflow: hidden; min-height: 338px; padding: 32px 36px; text-align: left; background: #e9eddf; border-color: #d5ddc9; }
.hero-card::before { content: ''; position: absolute; width: 360px; height: 360px; right: -60px; top: -80px; border: 1px solid #abbc9d40; border-radius: 50%; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.hero-card .eyebrow { font-size: 8px; letter-spacing: 1.8px; }
.hero-profile-name { font: 49px/1.08 Georgia, serif; letter-spacing: -2px; margin: 19px 0 14px; }
.hero-profile-sub { font-size: 10px; line-height: 1.8; margin-bottom: 25px; color: #65725f; }
.big-three { justify-content: flex-start; gap: 0; max-width: 340px; }
.big-three-item { padding: 0 17px; border-left: 1px solid #c6d1b9; }
.big-three-item:first-child { padding-left: 0; border-left: 0; }
.big-three-glyph { float: left; font: 22px/1.3 Georgia, serif; margin-right: 7px; color: #5a7453; }
.big-three-label { font-size: 8px; letter-spacing: 1px; }
.big-three-value { font-size: 12px; font-weight: 500; margin-top: 4px; }
.hero-wheel { position: relative; padding: 0; background: none; border: 0; width: 100%; max-width: 330px; justify-self: end; cursor: pointer; transition: transform .3s; }
.hero-wheel:hover { transform: rotate(3deg); }
.hero-wheel svg { width: 100%; height: auto; display: block; }
.quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 38px; }
.quick-tile { position: relative; background: #fffefa; padding: 20px 16px; min-height: 133px; border-radius: 13px; transition: background .2s, transform .2s, border-color .2s; }
.quick-tile:hover { background: #edf0e6; border-color: #b5c5a5; transform: translateY(-3px); }
.quick-tile::after { content: '↗'; position: absolute; top: 18px; right: 16px; color: #8b977f; font-size: 16px; }
.quick-tile-icon { font: 28px/1 Georgia, serif; color: #708064; margin-bottom: 19px; }
.quick-tile-title { font-size: 12px; font-weight: 600; }
.quick-tile-sub { font-size: 10px; line-height: 1.6; margin-top: 6px; }
.reading-section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; gap: 15px; }
.reading-section-head h2 { font: 28px/1.2 Georgia, serif; letter-spacing: -.7px; margin: 10px 0 0; }
.reading-section-head > span { font-size: 10px; color: var(--text-muted); padding-bottom: 3px; }
.reading-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.reading-grid > .card { min-width: 0; }
.card-title { color: #365b44; font-size: 10px; letter-spacing: 1.8px; margin-bottom: 18px; }
.horoscope-text { font-size: 13px; line-height: 1.9; color: #4b5b4e; }
.reading-disclosure summary { list-style: none; cursor: pointer; display: flex; gap: 20px; justify-content: space-between; align-items: center; font: 24px/1.25 Georgia, serif; margin: 18px 0; letter-spacing: -.5px; }
.reading-disclosure summary::-webkit-details-marker { display: none; }
.reading-disclosure summary::after { content: '+'; font: 22px Georgia, serif; }
.reading-disclosure[open] summary::after { content: '−'; }
.basis-row, .basis-label { gap: 7px; margin-bottom: 13px; }
.basis { font-size: 8px; letter-spacing: 1px; padding: 4px 7px; border-radius: 4px; }
.basis.natal { background: #e8edde; color: #506944; }
.basis.transit { background: #e1ede7; color: #386f61; }
.basis-note { font-size: 10px; line-height: 1.6; }
.basis-block { padding-left: 0; border-left: 0; }
.substance-row { gap: 6px; }
.substance-chip { border-color: #ddd5bd; background: #f2eedf; color: #7a653b; border-radius: 5px; font-size: 10px; line-height: 1.6; }
mark.substance { background: #e9e8ce; color: #495b38; font-weight: 500; }
.btn { background: #365b44; color: #fffefa; border-radius: 8px; font-size: 12px; font-weight: 500; min-height: 43px; transition: background .2s; }
.btn:hover { background: #274633; }
.btn.secondary { background: transparent; color: #486044; }
.btn.secondary:hover { background: #e9edde; }
.btn.ghost { border-color: #ddc8bc; color: #945d4e; }
.btn.ghost:hover { background: #f6ece5; }
.ask-suggestions { gap: 6px; margin: 18px 0 7px; }
.ask-chip { border-radius: 6px; font-size: 10px; }
.ask-chip:hover { background: #e9edde; }
textarea.ask-question, input[type=text], input[type=date], input[type=time], input[type=number], select { background: #f8f8f2; border-color: #d7ddce; color: #273d34; border-radius: 8px; font-size: 13px; line-height: 1.6; }
textarea.ask-question { padding: 16px; min-height: 115px; }
textarea::placeholder, input::placeholder { color: #7a8473; opacity: 1; }
.field-hint { color: var(--text-muted); font-size: 11px; line-height: 1.7; }
.ask-saved { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 5px; }
.ask-saved-q { font: 20px/1.4 Georgia, serif; color: #365b44; margin-bottom: 15px; }
.profile-utilities { border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-top: 10px; }
.profile-utilities > .btn-row { margin-top: 0; }
.profile-utilities .btn { font-size: 10px; min-height: 36px; padding: 9px 13px; }
h1.page-title { font: 40px/1.2 Georgia, serif; letter-spacing: -1px; margin: 0 0 18px; }
#chartContent, #horoscopeContent, #moonContent, #compatContent { max-width: 850px; }
#view-profileForm { max-width: 650px; }
.chart-wheel-svg { max-width: 520px; }
.wheel-outer-bg { fill: #e9eddf; stroke: #9baa8c; }
.wheel-inner-bg { fill: #f4f4e9; stroke: #bbc5ad; }
.sign-wedge { fill: #f1f2e7; stroke: #b9c4aa; }
.sign-wedge.element-fire { fill: #eee2cf; }
.sign-wedge.element-earth { fill: #dce5cd; }
.sign-wedge.element-air { fill: #e9e9d7; }
.sign-wedge.element-water { fill: #dce7df; }
.degree-tick { stroke: #abb69a; }
.house-cusp-line { stroke: #9da98e; }
.planet-radial-tick, .planet-leader-line { stroke: #819374; }
.sign-glyph { fill: #526b46; stroke: none; }
.planet-glyph { fill: #31523d; stroke: #f4f4e9; }
.house-number { fill: #617452; }
.angle-label { fill: #8b622c; }
.sub-tab { background: transparent; min-height: 38px; border-radius: 7px; padding: 9px 15px; }
.sub-tab.active { background: #365b44; color: #fffefa; }
.list-tag { background: #e9edde; }
.report-block p, .learn-line, .learn-together { font-size: 13px; line-height: 1.8; }
.date-nav button { width: 40px; height: 40px; }
.cycle-switch button.active, .cycle-phase.open { background: #365b44; color: #fffefa; }
.moon-disc { background: #dedcc3; box-shadow: inset -8px -4px 20px #33472e55, 0 0 40px #abbf8e33; }
.moon-cal-day .disc { background: #7f8e70; }
.moon-cal-day .disc .lit { background: #ece8ce; }
.toast { border-radius: 9px; box-shadow: 0 8px 40px #273d3420; }
* { scrollbar-width: thin; scrollbar-color: #c5cbbb transparent; }
::-webkit-scrollbar { display: block; width: 6px; height: 4px; }
::-webkit-scrollbar-thumb { background: #c5cbbb; border-radius: 4px; }
@media (min-width: 1440px) { #app-header { left: calc((100vw - 1440px) / 2); } #tabbar { left: calc((100vw - 1440px) / 2 + 17px); } }
@media (max-width: 1100px) {
  #app-shell { padding-left: 190px; } #app-header { width: 190px; padding: 30px 18px; }
  .brand-name { font-size: 22px; } .brand-mark { font-size: 28px; } .brand-caption { font-size: 9px; }
  #tabbar { left: 11px; width: 168px; } #app-main { padding: 35px 28px 50px; }
  .today-stamp { display: none; } .hero-profile-name { font-size: 40px; }
  .hero-card { padding: 28px; } .big-three-item { padding: 0 9px; } .big-three-glyph { float: none; }
  .reading-section-head > span { display: none; }
}
@media (max-width: 760px) {
  #app-shell { padding-left: 0; } #app-header { position: relative; inset: auto; width: 100%; padding: 22px 22px 18px; display: flex; border-right: 0; border-bottom: 1px solid var(--border); background: #f7f6f2; align-items: center; }
  .brand-caption { display: none; } .brand-name { font-size: 23px; } .brand-mark { font-size: 27px; }
  .zodiac-toggle { position: static; margin-left: auto; width: auto; } .zodiac-toggle::before { display: none; }
  .zodiac-toggle button { padding: 5px 10px; min-height: 32px; font-size: 10px; }
  #app-main { padding: 29px 22px calc(110px + env(safe-area-inset-bottom)); }
  .home-intro { margin-bottom: 24px; } .home-intro h1 { font-size: 33px; } .home-intro p { font-size: 11px; max-width: 280px; }
  #tabbar { position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom)); width: auto; flex-direction: row; gap: 0; background: #f4f5ecd9; backdrop-filter: blur(20px); border: 1px solid #d3dcc9; border-radius: 15px; box-shadow: 0 5px 25px #273d3415; padding: 7px 3px; }
  #tabbar::before { display: none; } .tab-btn { flex: 1; flex-direction: column; padding: 9px 2px; min-width: 0; min-height: 50px; gap: 5px; border-radius: 10px; }
  .tab-btn .icon { font-size: 22px; } .tab-btn .lbl { font-size: 8px; } .tab-btn.active::after { display: none; }
  .hero-card { min-height: 300px; padding: 26px; grid-template-columns: 1.1fr 1fr; gap: 8px; }
  .hero-profile-name { font-size: 37px; } .hero-profile-sub { font-size: 9px; }
  .hero-card .eyebrow { font-size: 7px; letter-spacing: 1.3px; }
  .big-three { gap: 10px; } .big-three-item { padding: 0; border: 0; } .big-three-glyph { font-size: 18px; }
  .big-three-label { font-size: 7px; } .big-three-value { font-size: 10px; }
  .quick-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 30px; }
  .quick-tile { min-height: 127px; } .quick-tile-title { font-size: 12px; }
  .reading-grid { grid-template-columns: 1fr; gap: 0; } .reading-section-head h2 { font-size: 26px; }
  .card { padding: 23px; } .hero-card { padding: 24px; }
  .profile-utilities { flex-wrap: wrap; } h1.page-title { font-size: 34px; }
}
@media (max-width: 440px) {
  #app-main { padding-left: 17px; padding-right: 17px; } #app-header { padding-left: 17px; padding-right: 17px; }
  .hero-card { grid-template-columns: 1fr; padding: 27px; }
  .hero-copy { z-index: 2; } .hero-profile-name { font-size: 43px; max-width: 240px; }
  .hero-profile-sub { max-width: 195px; margin-bottom: 20px; }
  .hero-wheel { position: absolute; width: 220px; right: -96px; top: 20px; opacity: .28; z-index: 0; }
  .big-three { max-width: 250px; } .big-three-glyph { float: left; }
  .brand-name { font-size: 21px; } .zodiac-toggle button { padding: 5px 8px; }
  .home-intro h1 { font-size: 31px; }
  .field-row { flex-direction: column; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.ask-saved[hidden] { display: none; }
.ask-saved > summary { font-size: 20px; }
.hero-wheel:focus-visible { border-radius: 50%; }
@media (max-width: 760px) and (min-width: 441px) {
 .hero-profile-name { font-size: 32px; }
}


/* Iteration two: a daily practice, conversations, and a chart to explore. */
:root { --text-primary: #203c2c; --text-muted: #596b59; --text-faint: #65735f; --accent-lavender: #244c35; --accent-gold: #98613d; --border: #d8ddcf; }
.brand-mark { color: #98613d; }
.hero-card { background: #e3e9d7; border-color: #cbd6bd; }
.hero-profile-name { color: #1e3d2a; }
.hero-card .eyebrow { color: #526849; }
.hero-profile-sub { color: #516447; }
.home-intro h1, .reading-section-head h2 { color: #203c2c; }
.eyebrow { color: #6c674a; }
.hero-wheel { max-width: 350px; }
.sign-glyph { font-size: 22px; fill: #3e5a32; }
.planet-glyph { font-size: 24px; }
.hero-wheel .sign-glyph { font-size: 22px; }
.hero-wheel .planet-glyph { font-size: 24px; }
.angle-label { fill: #98613d; }
.btn { background: #244c35; }
.btn:hover { background: #193c28; }
.btn.secondary { color: #31573b; }
.quick-tile-icon, .quick-tile::after { color: #98613d; }
.tab-btn.active { background: #d7e1cb; color: #23442e; }
.daily-preview { display: flex; align-items: center; gap: 21px; border-top: 1px solid #cfbda0; border-bottom: 1px solid #d8c9b0; background: #f0ecdf; padding: 23px 26px; margin: 0 0 23px; border-radius: 3px; }
.daily-orbit { flex: none; width: 52px; height: 52px; border: 1px solid #c6b18d; border-radius: 50%; display: grid; place-items: center; font: 34px Georgia, serif; color: #98613d; }
.daily-copy { flex: 1; min-width: 0; }
.daily-preview .eyebrow { color: #85633c; font-size: 8px; }
.daily-preview h2 { font: 25px/1.2 Georgia, serif; margin: 9px 0 7px; letter-spacing: -.5px; }
.daily-preview p { font-size: 11px; line-height: 1.7; margin: 0; max-width: 540px; color: #5c6552; }
.daily-meta { color: #746b56; font-size: 9px; line-height: 1.7; margin-top: 10px; }
.daily-meta span { margin: 0 5px; color: #aa8b61; }
.daily-open { flex: none; border: 1px solid #bcaa88; background: transparent; color: #614c2e; font-size: 10px; padding: 11px 15px; }
.daily-open:hover { background: #e3dbc8; }
.reading-grid { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); }
.reading-grid .ask-card { border-top: 3px solid #355a3b; }
.reading-grid .link-card { border-top: 3px solid #b88d60; }
.reading-grid .card-title { margin-bottom: 15px; font-size: 8px; line-height: 1.7; }
.ask-heading { font: 31px/1.15 Georgia, serif; margin: 15px 0 9px; letter-spacing: -.7px; }
.ask-intro { font-size: 11px; line-height: 1.8; color: var(--text-muted); margin: 0; }
.ask-form textarea { margin-top: 18px; font-size: 13px; min-height: 125px; background: #f6f7ef; }
.ask-suggestions { margin: 10px 0 14px; }
.ask-chip { min-height: 36px; font-size: 10px; padding: 8px 10px; }
.ask-chip span { margin-left: 5px; color: #98613d; }
.ask-btn { min-height: 45px; }
.ask-status { color: #526d46; font-size: 11px; line-height: 1.7; margin: 12px 0 0; }
.ask-status:empty { display: none; }
.ask-status.error { background: #f6e8de; padding: 12px; border-radius: 6px; color: #8c4939; }
.ask-form[aria-busy=true] textarea { border-style: dashed; }
.horoscope-text { line-height: 1.85; color: #425640; }
.horoscope-text p { margin: 0 0 1.25em; }
.horoscope-text p:last-child { margin-bottom: 0; }
.link-body { white-space: normal; }
mark.substance { background: #e3e7ce; color: #304c2a; padding: 1px 3px; }
.basis-row { margin-bottom: 14px; }
.basis.natal { background: #e4ead9; color: #405b33; }
.basis.transit { background: #e6e5d6; color: #71613f; }
.basis-label { margin-top: 15px; }
.basis-block + .basis-block { padding-top: 8px; }
.reading-preview { max-height: 26em; overflow: hidden; position: relative; }
.reading-preview:not(.expanded):not(.short-reading) { mask-image: linear-gradient(#000 0%, #000 77%, transparent 100%); }
.reading-preview.expanded, .reading-preview.short-reading { max-height: none; mask-image: none; }
.reading-expand, .inspect-related { min-height: 42px; border: 0; background: none; padding: 10px 0; color: #745333; font-size: 11px; font-weight: 600; cursor: pointer; text-align: left; }
.reading-expand[hidden], .history-more[hidden] { display: none; }
.reading-expand:hover, .inspect-related:hover { color: #244c35; text-decoration: underline; text-underline-offset: 4px; }
.reading-history { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.history-heading h3 { font: 22px Georgia, serif; margin: 0; }
.history-count { color: #98613d; font: 18px Georgia, serif; }
.history-note { font-size: 10px; color: var(--text-muted); margin: 8px 0 15px; line-height: 1.7; }
.history-filters { display: flex; gap: 5px; margin-bottom: 12px; }
.history-filters button { min-height: 36px; border: 1px solid transparent; border-radius: 5px; padding: 6px 10px; font-size: 10px; color: var(--text-muted); background: none; cursor: pointer; }
.history-filters button[aria-pressed=true] { background: #e5ebdd; color: #244c35; border-color: #ccd7be; }
.history-entry { border-top: 1px solid var(--border); }
.history-entry summary { position: relative; cursor: pointer; list-style: none; padding: 17px 25px 17px 0; }
.history-entry summary::-webkit-details-marker { display: none; }
.history-entry-meta { display: block; font-size: 8px; letter-spacing: .8px; text-transform: uppercase; color: #7e6c4f; margin-bottom: 7px; }
.history-entry-title { display: block; font-size: 12px; line-height: 1.6; color: #2c4931; font-weight: 500; }
.history-entry-preview { display: block; font-size: 10px; color: var(--text-muted); line-height: 1.7; margin-top: 7px; }
.history-entry-toggle { position: absolute; right: 0; top: 26px; color: #98613d; font-size: 18px; }
.history-entry[open] .history-entry-toggle { transform: rotate(45deg); }
.history-entry[open] .history-entry-preview { display: none; }
.history-entry-body { padding: 0 0 22px; }
.history-settings { font-size: 9px; color: #7c7259; line-height: 1.7; margin: 0 0 12px; }
.history-empty { font-size: 11px; color: var(--text-muted); line-height: 1.8; margin: 16px 0 0; }
#ask-chart { scroll-margin-top: 24px; }
.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; }
.chart-explorer { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(260px,.8fr); align-items: start; gap: 22px; margin: 24px 0; }
.wheel-stage { min-width: 0; padding-top: 12px; }
.wheel-stage .eyebrow, .explorer-hint { text-align: center; }
.explorer-hint { font-size: 11px; color: var(--text-muted); margin: 9px 0 16px; }
.wheel-stage svg { display: block; width: 100%; height: auto; margin: 0 auto; }
.planet-node[role=button] { cursor: pointer; outline: none; }
.planet-hit { fill: transparent; stroke: transparent; stroke-width: 1.5; }
.planet-node[role=button]:hover .planet-hit { fill: #d6dfc5; stroke: #a9ba91; }
.planet-node[role=button]:focus-visible .planet-hit { stroke: #98613d; stroke-width: 3px; }
.planet-node.selected .planet-hit { fill: #d0ddbd; stroke: #6c8b50; }
.planet-node.selected .planet-glyph { fill: #244c35; stroke: #d0ddbd; }
.has-planet-selection .aspect-line { opacity: .06; transition: opacity .2s; }
.has-planet-selection .aspect-line.connected { opacity: .9; stroke-width: 2.5; }
.planet-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; padding: 15px 0; }
.planet-picker button { border: 1px solid var(--border); min-height: 44px; background: #fffefa; border-radius: 6px; color: #53674b; padding: 7px 10px; font-size: 10px; cursor: pointer; }
.planet-picker button span { font-size: 15px; margin-right: 3px; }
.planet-picker button[aria-pressed=true] { background: #244c35; color: #fffefa; border-color: #244c35; }
.planet-inspector { background: #eeefe3; padding: 24px; border-top: 3px solid #aa7c50; }
.planet-inspector .eyebrow { color: #89603a; font-size: 8px; }
.planet-inspector-title { display: flex; align-items: center; gap: 12px; margin: 21px 0 10px; }
.planet-inspector-title > span { font: 35px Georgia, serif; color: #98613d; }
.planet-inspector-title h2 { font: 34px/1.1 Georgia, serif; letter-spacing: -1px; margin: 0; }
.planet-placement { font-size: 11px; line-height: 1.7; color: #697257; margin: 0 0 20px; }
.planet-meaning { font: 18px/1.6 Georgia, serif; color: #344d32; }
.planet-vocabulary { color: #607050; font-size: 11px; line-height: 1.8; margin: 18px 0 24px; }
.planet-vocabulary summary { cursor: pointer; min-height: 32px; }
.inspector-aspects { border-top: 1px solid #ccd5bf; padding-top: 18px; }
.inspector-aspects h3 { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: #6c765e; margin: 0 0 12px; }
.inspector-aspect { border-bottom: 1px solid #d6ddcb; }
.inspector-aspect summary { display: flex; align-items: center; gap: 8px; min-height: 46px; font-size: 10px; line-height: 1.6; cursor: pointer; list-style: none; }
.inspector-aspect summary::-webkit-details-marker { display: none; }
.inspector-aspect summary .aspect-dot { flex: none; width: 6px; height: 6px; }
.inspector-aspect p { font-size: 11px; line-height: 1.8; color: #53674b; }
.inspector-aspect .orb-tag { font-size: 9px; flex: none; }
.inspect-related { font-size: 10px; }
.mobile-ask { display: none; }
.cycle-arc text { fill: #365b44; }
.cycle-arc path[role=button]:focus-visible { outline: none; stroke: #98613d; stroke-width: 3; }
@media (max-width: 1150px) {
 .planet-inspector { margin-bottom: 0; }
 .daily-preview { gap: 16px; padding: 21px; }
 .daily-orbit { display: none; }
 .daily-preview h2 { font-size: 23px; }
 .reading-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
 #app-main { padding-bottom: calc(175px + env(safe-area-inset-bottom)); }
 .daily-preview { flex-wrap: wrap; padding: 23px; gap: 15px; margin-bottom: 20px; }
 .daily-copy { flex-basis: 100%; }
 .daily-preview h2 { font-size: 27px; }
 .daily-preview p { font-size: 12px; }
 .daily-meta { font-size: 9px; }
 .daily-open { min-height: 40px; padding: 10px 14px; }
 .hero-card { min-height: 280px; }
 .reading-grid { display: flex; flex-direction: column; }
 .reading-grid > .card { width: 100%; }
 .reading-grid .ask-card { order: 0; }
 .reading-grid .link-card { order: 1; }
 .reading-preview { max-height: 15em; }
 .ask-heading { font-size: 30px; }
 .ask-form textarea { font-size: 16px; }
 .ask-chip { min-height: 42px; }
 .history-filters button { min-height: 42px; }
 .history-entry-title { font-size: 13px; }
 .history-entry-preview { font-size: 11px; }
 .history-entry-meta { font-size: 9px; }
 .history-note { font-size: 11px; }
 .mobile-ask { position: fixed; right: 20px; bottom: calc(95px + env(safe-area-inset-bottom)); z-index: 10; display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 11px 16px; border: 1px solid #d3ddc3; border-radius: 24px; background: #244c35; color: #fffefa; box-shadow: 0 4px 20px #244c3529; font-size: 11px; cursor: pointer; }
 body[data-view=profileForm] .mobile-ask { display: none; }
 body[data-view=profileForm] #app-main { padding-bottom: 110px; }
 .toast { bottom: calc(150px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 36px); text-align: center; line-height: 1.6; }
 .chart-explorer { gap: 15px; margin-top: 20px; }
 .planet-picker button { font-size: 11px; min-height: 44px; }
 .planet-inspector { padding: 23px; }
 .inspector-aspect summary { font-size: 12px; }
 .planet-meaning { font-size: 20px; }
 .planet-vocabulary { font-size: 12px; }
}

@media (max-width: 980px) { .chart-explorer { grid-template-columns: minmax(0,1fr); } }
@media (min-width: 981px) { .planet-inspector { position: sticky; top: 25px; } }
@media (max-width: 1150px) and (min-width: 761px) { .chart-explorer { gap: 15px; } .planet-inspector { padding: 20px; } .planet-inspector-title h2 { font-size: 29px; } .planet-meaning { font-size: 16px; } }

body.composer-visible .mobile-ask { display: none; }

/* ---- Iteration 2026-11-03 (ui-ux-pro-max audit) ----
   Readable minimum type, reading gets full width, conversation + history side by side,
   profile actions next to the profile switcher. */

/* 1. Type floor: nothing readable under 12px (skill rule: avoid text < 12px) */
.eyebrow, .hero-card .eyebrow, .daily-preview .eyebrow, .planet-inspector .eyebrow,
.today-stamp span, .big-three-label, .basis, .history-entry-meta, .card-title,
.reading-grid .card-title, .inspector-aspects h3, .zodiac-toggle::before, #tabbar::before { font-size: 12px; letter-spacing: 1.2px; }
.today-stamp time, .profile-chip, .hero-profile-sub, .quick-tile-sub, .reading-section-head > span,
.basis-note, .substance-chip, .ask-chip, .field-hint, .profile-utilities .btn, .daily-meta, .daily-open,
.ask-intro, .ask-status, .reading-expand, .inspect-related, .history-note, .history-filters button,
.history-entry-preview, .history-settings, .history-empty, .explorer-hint, .planet-picker button,
.planet-placement, .planet-vocabulary, .inspector-aspect summary, .inspector-aspect p, .inspector-aspect .orb-tag,
.moon-cal-day, .compat-score-num .lbl, .compat-placements-head, .list-tag, .cycle-topic b, .zodiac-toggle button { font-size: 13px; }
.daily-preview p { font-size: 14px; }
.big-three-value { font-size: 15px; }
.hero-name { text-transform: capitalize; }

/* 2. Profile bar: switcher left, profile actions right */
.profile-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.profile-bar > :first-child { margin-bottom: 0; }
.profile-bar .profile-utilities { border-top: 0; padding-top: 0; gap: 8px; }

/* 3. Reading first, full width, comfortable measure; conversation card below */
.reading-grid { grid-template-columns: 1fr; gap: 20px; }
.reading-grid .link-card .horoscope-text { max-width: 68ch; font-size: 16px; line-height: 1.75; }
.reading-grid .link-card .reading-preview { max-height: 22em; }
@media (min-width: 1000px) {
  .reading-grid .ask-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 44px; align-items: start; }
  .reading-grid .ask-card > * { grid-column: 1; }
  .reading-grid .ask-card > .reading-history { grid-column: 2; grid-row: 1 / span 6; margin-top: 0; padding-top: 0; border-top: 0; }
}
.brand-caption { font-size: 12px; }

/* Compatibility: explain the score, name whose planet is whose, tone in words not just color */
.compat-overview { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.compat-overview .compat-score-ring { flex: none; margin: 0; }
.compat-overview-copy { flex: 1; min-width: 240px; }
.compat-band { font: 26px/1.2 Georgia, serif; color: var(--text-primary); margin: 4px 0 10px; }
.compat-basis { font-size: 14px; line-height: 1.7; color: var(--text-muted); margin: 0; max-width: 60ch; }
.compat-key-list { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 10px; font-size: 15px; line-height: 1.7; color: var(--text-primary); max-width: 68ch; }
.compat-meaning { display: block; font-size: 12px; color: var(--text-muted); font-weight: 400; }
.compat-all > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.compat-all > summary::after { content: '+'; font-size: 20px; color: var(--accent-gold); }
.compat-all[open] > summary::after { content: '−'; }
.compat-all > summary .card-title { margin: 0; }
.tone-tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; margin-left: 8px; font-weight: 600; }
.tone-easy { background: #e3eedf; color: #2f5a3a; }
.tone-tense { background: #f6e3dc; color: #8a4430; }
.tone-intense { background: #efe8d6; color: #6d5326; }
.tone-minor { background: #eceee8; color: #5c6656; }
/* Astrological notation shown beside the plain-language text */
.astro-notation { flex: none; margin-left: auto; padding-left: 16px; font: 20px/1.2 Georgia, serif; color: #6d5326; letter-spacing: 2px; white-space: nowrap; text-align: right; }
.astro-notation small { display: block; font: 12px/1.4 var(--font, inherit); letter-spacing: 0; color: var(--text-muted); }
.compat-key-list { list-style: none; padding-left: 0; }
.compat-key-list li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.compat-key-list li:last-child { border-bottom: 0; }
.compat-all .aspect-row-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.daily-life { display: block; margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: #f3efe2; color: #5b4a2c; font-size: 14px; line-height: 1.6; font-style: italic; }
.daily-life b { font-style: normal; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #8b622c; margin-right: 6px; }

/* ---- Life Arc ---- */
.arc-intro { font-size: 15px; line-height: 1.7; color: var(--text-muted); max-width: 70ch; margin: 4px 0 18px; }
.arc-card { padding: 12px 12px 4px; overflow: hidden; }
.arc-svg { width: 100%; height: auto; display: block; }
.arc-horizon { stroke: #d8d2bd; stroke-width: 1; stroke-dasharray: 3 5; }
.arc-band { fill: none; stroke-width: 14; stroke-linecap: butt; opacity: .55; }
.arc-band-now { opacity: 1; }
.arc-stage-label { font: 13px/1 Georgia, serif; fill: #8a7a5c; }
.arc-stage-label.now { fill: #5b3d1f; font-weight: 700; }
.arc-age { font-size: 12px; fill: #9a9585; }
.arc-pin circle { fill: #fffefa; stroke: #8b622c; stroke-width: 2; transition: r .15s; }
.arc-pin-past circle { stroke: #b9b3a2; fill: #efece3; }
.arc-pin-active circle { fill: #c98f4f; stroke: #5b3d1f; }
.arc-pin:hover circle, .arc-pin:focus-visible circle { stroke-width: 3.5; }
.arc-pin:focus-visible { outline: none; }
.arc-pin-glyph { font: 18px/1 Georgia, serif; fill: #6d5326; pointer-events: none; }
.arc-sun { fill: #e0a13a; stroke: #fff6df; stroke-width: 2; }
.arc-sun-halo { fill: #f0c46b; opacity: .35; animation: arcPulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes arcPulse { 0%, 100% { transform: scale(1); opacity: .35; } 50% { transform: scale(1.5); opacity: .12; } }
.arc-here-label { font: 600 14px/1 var(--font, Georgia), serif; fill: #5b3d1f; }
.arc-here-card .arc-stage-name { font: 32px/1.15 Georgia, serif; margin: 6px 0 8px; color: var(--text-primary); }
.arc-stage-text { font-size: 16px; line-height: 1.7; max-width: 68ch; margin: 0 0 16px; }
.arc-here-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 0 0 16px; }
.arc-here-grid > div { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fbf8ef; display: grid; gap: 4px; }
.arc-here-grid b, .arc-work b, .arc-active b, .arc-jung b, .arc-prompt b { display: block; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: #8b622c; }
.arc-here-grid span { font-size: 15px; font-weight: 600; }
.arc-here-grid em { font: italic 15px/1.4 Georgia, serif; color: #5b4a2c; }
.arc-here-grid small { font-size: 13px; color: var(--text-muted); }
.arc-active { padding: 12px 14px; border-radius: 12px; background: #f6e8d2; display: grid; gap: 4px; margin-bottom: 16px; font-size: 15px; }
.arc-work { padding: 14px; border-radius: 12px; background: #eef2e6; font-size: 15px; line-height: 1.7; margin: 0; }
.arc-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 0; }
.arc-item { padding: 18px 0; border-top: 1px solid var(--border); scroll-margin-top: 24px; }
.arc-item:target { background: #fbf3e2; border-radius: 10px; padding-left: 12px; padding-right: 12px; }
.arc-item-head { display: flex; align-items: flex-start; gap: 12px; }
.arc-item-when { font-size: 13px; letter-spacing: .5px; color: #8b622c; }
.arc-item h3 { font: 22px/1.25 Georgia, serif; margin: 6px 0 2px; color: var(--text-primary); }
.arc-item-name { font-size: 13px; color: var(--text-muted); margin: 0 0 8px; }
.arc-item p { font-size: 15px; line-height: 1.7; max-width: 68ch; margin: 0 0 8px; }
.arc-jung, .arc-prompt { padding-left: 12px; border-left: 3px solid #e3d6b8; }
.arc-prompt { font-style: italic; border-left-color: #b9c8a6; }
.arc-item-past { opacity: .62; }
.arc-item-active { background: #fbf1df; border-radius: 12px; padding-left: 14px; padding-right: 14px; }
@media (prefers-reduced-motion: reduce) { .arc-sun-halo { animation: none; } }
/* The arc SVG scales down on phones; enlarge its labels so they stay readable (~12px) */
@media (max-width: 640px) {
  .arc-stage-label { font-size: 26px; }
  .arc-age { font-size: 24px; }
  .arc-here-label { font-size: 26px; }
  .arc-pin-glyph { font-size: 28px; }
  .arc-pin circle { stroke-width: 3; }
}

/* ---- The Oracle ---- */
.oracle-orb { position: fixed; left: 0; top: 0; z-index: 900; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; will-change: transform; }
.oracle-orb-core { position: absolute; inset: 6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8e6 0%, #f3cf86 28%, #c98f4f 55%, #6f5a9c 100%);
  box-shadow: 0 0 22px 6px rgba(240, 196, 107, .45), 0 0 48px 14px rgba(150, 120, 200, .22), inset -6px -8px 14px rgba(60, 40, 90, .35);
  animation: oracleBreathe 5s ease-in-out infinite; }
.oracle-orb:hover .oracle-orb-core, .oracle-orb:focus-visible .oracle-orb-core { box-shadow: 0 0 28px 10px rgba(240, 196, 107, .6), 0 0 60px 20px rgba(150, 120, 200, .3), inset -6px -8px 14px rgba(60, 40, 90, .35); }
.oracle-orb:focus-visible { outline: 2px solid #8b622c; outline-offset: 4px; }
.oracle-orb-label { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); padding: 4px 10px; border-radius: 999px; background: #3b2c1b; color: #fff6df; font: 600 12px/1.2 var(--font, sans-serif); letter-spacing: .5px; white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.oracle-orb.has-selection .oracle-orb-label { opacity: 1; }
.oracle-orb.has-selection .oracle-orb-core { animation-duration: 1.6s; }
.oracle-orb.is-thinking .oracle-orb-core { animation: oracleThink 1.1s ease-in-out infinite; }
.oracle-orb.is-speaking::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(240, 196, 107, .7); animation: oracleRipple 1.4s ease-out infinite; }
@keyframes oracleBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes oracleThink { 0%, 100% { transform: scale(.92); filter: hue-rotate(0deg); } 50% { transform: scale(1.1); filter: hue-rotate(25deg); } }
@keyframes oracleRipple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }
.oracle-panel { position: fixed; z-index: 901; max-height: min(460px, calc(100vh - 24px)); overflow-y: auto; padding: 16px 18px 18px; border-radius: 18px; background: #fffdf6; border: 1px solid #e3d6b8; box-shadow: 0 20px 50px rgba(40, 30, 10, .18); color: var(--text-primary); }
.oracle-panel:focus { outline: none; }
.oracle-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.oracle-title { font: 20px/1 Georgia, serif; margin-right: auto; color: #3b2c1b; }
.oracle-lang { display: inline-flex; padding: 2px; border-radius: 8px; background: #f1ebda; }
.oracle-lang button, .oracle-voice-toggle, .oracle-play { min-height: 30px; border: 0; border-radius: 6px; padding: 4px 9px; background: transparent; font: 600 12px/1 var(--font, sans-serif); color: #5b4a2c; cursor: pointer; }
.oracle-lang button[aria-pressed="true"] { background: #fffdf6; box-shadow: 0 1px 2px rgba(0,0,0,.08); color: #3b2c1b; }
.oracle-voice-toggle { background: #f1ebda; }
.oracle-voice-toggle[aria-pressed="false"] { color: #9a8f78; }
.oracle-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; font-size: 22px; line-height: 1; color: #7a6a4c; cursor: pointer; }
.oracle-close:hover { background: #f1ebda; }
.oracle-quote { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid #e0a13a; background: #fbf3e2; border-radius: 0 8px 8px 0; font: italic 14px/1.5 Georgia, serif; color: #5b4a2c; }
.oracle-body p { font-size: 15px; line-height: 1.75; margin: 0 0 10px; }
.oracle-wait, .oracle-hint { color: var(--text-muted); font-style: italic; display: flex; gap: 10px; align-items: center; }
.oracle-error { color: #8a4430; }
.spinner-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0a13a; flex: none; animation: oracleThink 1.1s ease-in-out infinite; }
.oracle-audio { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.oracle-play { background: #3b2c1b; color: #fff6df; padding: 6px 16px; border-radius: 999px; }
.oracle-audio-note { font-size: 13px; color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) {
  .oracle-orb-core, .oracle-orb.is-thinking .oracle-orb-core, .spinner-dot { animation: none; }
  .oracle-orb.is-speaking::after { animation: none; opacity: .6; }
}
.oracle-audio[hidden], .oracle-play[hidden], .oracle-quote[hidden] { display: none; }
.oracle-orb.is-open .oracle-orb-label { opacity: 0; }
.oracle-voice-toggle { display: inline-flex; align-items: center; justify-content: center; width: 34px; padding: 0; color: #3b2c1b; }
.oracle-voice-toggle[aria-pressed="true"] { background: #f6e3dc; color: #8a4430; }

/* ---- Numbers ---- */
.field-optional { font-weight: 400; color: var(--text-muted); }
.num-big { display: inline-block; min-width: 56px; font: 40px/1 Georgia, serif; color: #6d5326; }
.num-now-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 12px 0; }
.num-cycle { padding: 16px; border-radius: 14px; background: #fbf6ea; border: 1px solid #ecdfbf; }
.num-cycle h3 { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: #8b622c; margin: 0 0 8px; }
.num-cycle p { font-size: 15px; line-height: 1.6; margin: 6px 0; }
.num-name { font: italic 16px/1.4 Georgia, serif; color: #3b2c1b; }
.num-work { font-size: 13px; color: var(--text-muted); font-family: ui-monospace, Menlo, monospace; line-height: 1.6; }
.num-core-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 12px; }
.num-core { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fffefa; }
.num-core-head { display: flex; align-items: center; gap: 14px; }
.num-core-head h3 { font: 20px/1.2 Georgia, serif; margin: 0; }
.num-sub { font-size: 13px; color: var(--text-muted); margin: 2px 0 0; }
.num-core p { font-size: 15px; line-height: 1.65; }
.num-ls b { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #8b622c; margin-right: 4px; }
.num-ls b:nth-of-type(2) { margin-left: 10px; color: #8a4430; }
.num-tag { margin-left: auto; align-self: flex-start; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #efe5fb; color: #5c3f8a; font-weight: 600; }
.num-missing { margin-top: 14px; padding: 14px; border-radius: 12px; background: #f3efe2; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.num-missing p { margin: 0; flex: 1; min-width: 240px; }
.num-periods { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.num-periods li { padding: 14px; border: 1px solid var(--border); border-radius: 14px; display: grid; gap: 10px; }
.num-periods li.current { background: #fbf1df; border-color: #e3c99a; }
.num-period-age { font-size: 13px; color: #8b622c; letter-spacing: .5px; }
.num-period-row { display: flex; gap: 12px; align-items: flex-start; }
.num-period-row p { margin: 2px 0; font-size: 15px; line-height: 1.6; }
.num-period-row small { font-size: 12px; color: var(--text-muted); }
.num-pill { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 20px/1 Georgia, serif; background: #e3eedf; color: #2f5a3a; }
.num-pill.challenge { background: #f6e3dc; color: #8a4430; }
.num-karmic { padding: 12px 14px; border-left: 3px solid #b76b51; background: #fbefe9; border-radius: 0 10px 10px 0; font-size: 15px; line-height: 1.6; }
.num-letters { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 14px; }
.num-letters span { display: grid; justify-items: center; min-width: 40px; padding: 6px; border-radius: 8px; background: #f3efe2; font-size: 13px; color: var(--text-muted); }
.num-letters b { font: 18px/1 Georgia, serif; color: #3b2c1b; }
details > summary { cursor: pointer; font-size: 13px; color: #745333; min-height: 32px; display: flex; align-items: center; }
