:root {
  --bg-1: #f7f2e7;
  --bg-2: #efe8d8;
  --ink: #14233b;
  --ink-soft: #5a6479;
  --card: rgba(255, 252, 245, 0.7);
  --line: rgba(20, 35, 59, 0.14);
  --accent: #8a6a2b;
  --accent-ink: #fbf7ec;
  --star: rgba(138, 106, 43, 0.35);
  --error: #9b4a4a;
  --shadow: 0 20px 60px rgba(20, 35, 59, 0.08);
  --serif: "Cormorant Garamond", "Noto Serif Devanagari", "Iowan Old Style", Georgia, serif;
  --body: "Source Serif 4", "Noto Serif Devanagari", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

/* Dark follows the device unless the visitor chose a theme with the moon/sun button
   (which sets data-theme on <html>). The same values appear twice because CSS cannot share them. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-1: #0a1830;
    --bg-2: #11264a;
    --ink: #f3ecd9;
    --ink-soft: #a9b1c2;
    --card: rgba(255, 248, 230, 0.04);
    --line: rgba(201, 169, 97, 0.22);
    --accent: #c9a961;
    --accent-ink: #0a1830;
    --star: rgba(243, 236, 217, 0.6);
    --error: #e0a0a0;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg-1: #0a1830;
  --bg-2: #11264a;
  --ink: #f3ecd9;
  --ink-soft: #a9b1c2;
  --card: rgba(255, 248, 230, 0.04);
  --line: rgba(201, 169, 97, 0.22);
  --accent: #c9a961;
  --accent-ink: #0a1830;
  --star: rgba(243, 236, 217, 0.6);
  --error: #e0a0a0;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  background: linear-gradient(170deg, var(--bg-1), var(--bg-2)) fixed;
  display: flex;
  flex-direction: column;
}

/* The backdrop, built by sky.js: night (twinkling stars and a half moon) in dark mode,
   day (a soft sun and line-art space objects) in light mode. Always behind, always quiet. */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.scene { position: absolute; inset: 0; }
.scene-night { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .scene-night { display: block; }
  :root:not([data-theme="light"]) .scene-day { display: none; }
}
:root[data-theme="dark"] .scene-night { display: block; }
:root[data-theme="dark"] .scene-day { display: none; }

/* Night */
.star { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #e6edf5; opacity: var(--lo, 0.3); animation: twinkle var(--t, 5s) ease-in-out var(--d, 0s) infinite; }
.spark { position: absolute; width: 12px; height: 12px; opacity: 0.2; transform: translate(-50%, -50%); animation: twinkle-spark var(--t, 6s) ease-in-out var(--d, 0s) infinite; }
.spark::before, .spark::after { content: ""; position: absolute; }
.spark::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); background: linear-gradient(transparent, #e6edf5, transparent); }
.spark::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); background: linear-gradient(90deg, transparent, #e6edf5, transparent); }
@keyframes twinkle { 0%, 100% { opacity: var(--lo, 0.3); } 50% { opacity: 1; } }
@keyframes twinkle-spark { 0%, 100% { opacity: 0.15; transform: translate(-50%, -50%) scale(0.7); } 50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.1); } }
.moon { position: absolute; top: clamp(18px, 5vh, 56px); right: clamp(12px, 6vw, 96px); width: clamp(88px, 11vw, 140px); height: auto; animation: breathe-moon 14s ease-in-out infinite alternate; }
@keyframes breathe-moon { from { opacity: 0.58; } to { opacity: 0.76; } }

/* Day */
.scene-day { color: var(--accent); }
.sun-system { position: absolute; top: clamp(2px, 2vh, 24px); right: clamp(-34px, 3vw, 70px); width: clamp(120px, 19vw, 210px); aspect-ratio: 1; }
.sun-system .sun { position: absolute; inset: 0; width: 100%; height: 100%; }
.sun-system .orbits { position: absolute; left: 50%; top: 50%; width: 330%; height: auto; transform: translate(-50%, -50%); }
.sun-rays { transform-box: fill-box; transform-origin: center; animation: slow-turn 180s linear infinite; }
@keyframes slow-turn { to { transform: rotate(360deg); } }
.planet { position: absolute; }
.planet-ringed { left: clamp(8px, 5vw, 84px); top: 60vh; width: clamp(92px, 12vw, 150px); height: auto; animation: drift 26s ease-in-out infinite alternate; }
.planet-small { right: clamp(14px, 9vw, 150px); top: 66vh; width: clamp(42px, 5vw, 66px); height: auto; animation: drift 32s ease-in-out -8s infinite alternate; }
.planet-tiny { left: 24vw; top: 15vh; width: 26px; height: auto; }
.comet { position: absolute; left: clamp(6px, 13vw, 200px); top: 24vh; width: clamp(84px, 10vw, 130px); height: auto; opacity: 0.85; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-9px); } }
.dot { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: var(--accent); opacity: 0.2; }
/* more of the day sky: Orion, a day moon, a satellite, a few rocks, and a shooting star */
.orion { position: absolute; right: clamp(8px, 5vw, 80px); top: 38vh; width: clamp(70px, 8vw, 112px); height: auto; opacity: 0.9; }
.orion-star { animation: twinkle 5s ease-in-out var(--d, 0s) infinite; --lo: 0.35; }
.day-moon { position: absolute; left: clamp(14px, 7vw, 120px); top: 8vh; width: clamp(34px, 4vw, 52px); height: auto; animation: drift 22s ease-in-out -4s infinite alternate; }
.satellite { position: absolute; left: -70px; top: 46vh; width: clamp(40px, 4.6vw, 58px); height: auto; opacity: 0; animation: cross-sky 70s linear 4s infinite; }
.asteroids { position: absolute; left: clamp(4px, 3vw, 60px); bottom: 7vh; width: clamp(90px, 11vw, 150px); height: auto; }
.rock { transform-box: fill-box; transform-origin: center; animation: tumble 28s linear infinite; }
.rock.r2 { animation-duration: 36s; animation-direction: reverse; }
.rock.r3 { animation-duration: 32s; }
.rock.r4 { animation-duration: 24s; animation-direction: reverse; }
.shooter { position: absolute; left: 30vw; top: 12vh; width: clamp(60px, 7vw, 90px); height: auto; opacity: 0; animation: shoot 16s ease-in 3s infinite; }
@keyframes cross-sky { 0% { transform: translate(0, 0) rotate(-8deg); opacity: 0; } 6% { opacity: 0.8; } 94% { opacity: 0.8; } 100% { transform: translate(calc(100vw + 140px), -90px) rotate(-8deg); opacity: 0; } }
@keyframes tumble { to { transform: rotate(360deg); } }
@keyframes shoot { 0%, 78% { transform: translate(0, 0); opacity: 0; } 80% { opacity: 0.9; } 90%, 100% { transform: translate(34vw, 16vh); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .satellite { animation: none; opacity: 0.6; left: 62vw; top: 52vh; } .shooter, .rock, .orion-star, .day-moon { animation: none; } .shooter { display: none; } }

main, footer { position: relative; z-index: 1; }

main {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 2rem;
  flex: 1;
}

.hero { text-align: center; margin-bottom: 2.5rem; }

.brand {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em; /* balances the trailing letter-spacing so it stays centred */
  text-transform: uppercase;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  line-height: 1.1;
}
h1 em { font-style: italic; color: var(--accent); }

.lede {
  margin: 1rem auto 0;
  max-width: 26rem;
  color: var(--ink-soft);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.field { display: block; margin-bottom: 1.4rem; position: relative; }
.field > span, .field > label > span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.field small { opacity: 0.7; margin-left: 0.4rem; font-size: 0.75rem; }

input[type="text"], input[type="date"], input[type="time"] {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
input:disabled { opacity: 0.45; }

.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.check input { accent-color: var(--accent); width: 1rem; height: 1rem; }

#place-list {
  position: absolute;
  left: 0; right: 0;
  margin: 0.3rem 0 0;
  padding: 0.3rem;
  list-style: none;
  z-index: 5;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
}
#place-list li button {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  font: inherit;
  text-align: left;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 0.6rem;
  cursor: pointer;
}
#place-list li button:hover,
#place-list li button:focus-visible { background: color-mix(in srgb, var(--accent) 16%, transparent); outline: none; }
#place-list .none { padding: 0.6rem 0.8rem; color: var(--ink-soft); font-size: 0.9rem; }

.error { margin: 0 0 1rem; color: var(--error); font-size: 0.92rem; }

.btn {
  display: block;
  width: 100%;
  padding: 0.95rem 1.5rem;
  font: inherit;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:disabled { opacity: 0.55; cursor: progress; transform: none; box-shadow: none; }
.btn.ghost { margin-top: 2.5rem; background: transparent; color: var(--ink-soft); border-color: var(--line); }

/* Results */
#result-view, #form-view { animation: rise 1s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.big-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.big-three > div {
  text-align: center;
  padding: 1.2rem 0.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
}
.big-three .label { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.big-three .glyph { font-family: var(--serif); font-size: 2rem; line-height: 1.3; color: var(--accent); }
.big-three .sign { font-family: var(--serif); font-size: 1.3rem; }
.big-three .deg { font-size: 0.8rem; color: var(--ink-soft); }

.reading h2 {
  margin: 2rem 0 0.4rem;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--accent);
}
.reading h2:first-child { margin-top: 0; }
.reading p { margin: 0 0 1rem; }
.pending { color: var(--ink-soft); font-style: italic; text-align: center; animation: breathe 3.5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.4; } }
.reading.error-state p { color: var(--error); }

.planets { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; color: var(--ink-soft); }
.planets summary { cursor: pointer; font-size: 0.9rem; letter-spacing: 0.06em; }
.planets ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.planets li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; font-size: 0.95rem; border-bottom: 1px dashed var(--line); }
.planets li span:first-child { color: var(--ink); }

footer { padding: 1.5rem 1.25rem 2rem; text-align: center; font-size: 0.78rem; color: var(--ink-soft); }
footer p { margin: 0 auto; max-width: 28rem; }

[hidden] { display: none !important; }

@media (max-width: 380px) {
  .big-three { gap: 0.5rem; }
  .big-three .sign { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Chart wheel */
.wheel { max-width: 26rem; margin: 0 auto 2.5rem; animation: rise 1.4s ease both; }
.wheel-svg { display: block; width: 100%; height: auto; overflow: visible; }
.wheel-svg .ring { fill: none; stroke: color-mix(in srgb, var(--ink-soft) 45%, transparent); stroke-width: 1; }
.wheel-svg .divider { stroke: color-mix(in srgb, var(--ink-soft) 35%, transparent); stroke-width: 1; }
.wheel-svg .divider.faint { opacity: 0.6; }
.wheel-svg .tick { stroke: var(--accent); stroke-width: 1.5; }
.wheel-svg .asc { stroke: var(--accent); stroke-width: 1.5; }
.wheel-svg text { text-anchor: middle; dominant-baseline: central; }
.wheel-svg .sign-glyph { font-family: var(--serif); font-size: 17px; fill: var(--ink-soft); }
.wheel-svg .planet-glyph { font-family: var(--serif); font-size: 21px; fill: var(--ink); }
.wheel-svg .house-num { font-family: var(--sans); font-size: 8px; fill: var(--ink-soft); opacity: 0.8; }
.wheel-svg .asc-label { font-family: var(--sans); font-size: 9px; letter-spacing: 0.1em; fill: var(--accent); }
.wheel-svg .aspect { stroke-width: 1; opacity: 0.45; }
.wheel-svg .aspect.soft { stroke: var(--accent); }
.wheel-svg .aspect.hard { stroke: var(--ink-soft); stroke-dasharray: 3 3; }

/* Chart style switch + North Indian chart */
.chart-tabs { display: flex; justify-content: center; gap: 0.25rem; width: fit-content; margin: 0 auto 1.25rem; padding: 0.25rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.chart-tabs button { padding: 0.45rem 1.1rem; font: inherit; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--ink-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; transition: background 0.3s, color 0.3s; }
.chart-tabs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.chart-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wheel { margin-bottom: 0.75rem; }
.chart-caption { margin: 0 0 0.2rem; text-align: center; font-size: 0.8rem; letter-spacing: 0.05em; color: var(--ink-soft); }

.north-svg { display: block; width: 100%; height: auto; }
.north-svg .frame { fill: none; stroke: color-mix(in srgb, var(--ink-soft) 55%, transparent); stroke-width: 1.2; }
.north-svg text { text-anchor: middle; dominant-baseline: central; }
.north-svg .sign-num { font-family: var(--sans); font-size: 11px; fill: var(--accent); }
.north-svg .n-planet { font-family: var(--sans); font-size: 11px; fill: var(--ink); }
.north-svg .n-asc { font-family: var(--sans); font-size: 10px; letter-spacing: 0.08em; fill: var(--accent); }

/* Provider choice */
.provider { border: 0; padding: 0; min-inline-size: 0; }
.provider legend { padding: 0; }
.provider-options { display: flex; gap: 1.5rem; }
.provider-options .check { margin-top: 0; }

/* Ask a question */
.ask { margin-top: 3rem; padding: 1.75rem 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: 1.5rem; }
.ask h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.6rem; color: var(--accent); }
.ask-hint { margin: 0.2rem 0 1.25rem; font-size: 0.88rem; color: var(--ink-soft); }
.chat-log { display: flex; flex-direction: column; gap: 0.75rem; }
.chat-log:not(:empty) { margin-bottom: 1rem; }
.bubble { max-width: 88%; padding: 0.7rem 1rem; border-radius: 1.1rem; white-space: pre-wrap; overflow-wrap: anywhere; animation: rise 0.6s ease both; }
.bubble.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 0.3rem; }
.bubble.assistant { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 0.3rem; }
.bubble.pending { color: var(--ink-soft); animation: breathe 2.5s ease-in-out infinite; }
.bubble.error-state { color: var(--error); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.chips:empty { display: none; }
.chip { padding: 0.45rem 0.9rem; font: inherit; font-size: 0.85rem; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: border-color 0.3s, color 0.3s; }
.chip:hover, .chip:focus-visible { color: var(--ink); border-color: var(--accent); outline: none; }
.chat-form { display: flex; gap: 0.5rem; }
.chat-form input { flex: 1; min-width: 0; padding: 0.75rem 1rem; font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; }
.chat-form input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.chat-form .btn { width: auto; padding-inline: 1.5rem; }

/* Language switch, Today line, privacy page */
.lang { position: absolute; top: 1.25rem; right: 0; display: flex; align-items: center; gap: 0.2rem; font-size: 0.78rem; color: var(--ink-soft); }
.lang button { padding: 0.25rem 0.4rem; font: inherit; letter-spacing: 0.08em; color: inherit; background: none; border: 0; border-bottom: 1px solid transparent; cursor: pointer; transition: color 0.3s; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.lang button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sky-line { margin: 0 0 2.5rem; text-align: center; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ink-soft); }
.sky-line:empty { margin-bottom: 2.3rem; }

footer a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color 0.3s; }
footer a:hover, footer a:focus-visible { color: var(--accent); }

.doc { max-width: 36rem; }
.doc .back { margin: 0 0 2rem; font-size: 0.85rem; letter-spacing: 0.06em; }
.doc .back a { color: var(--ink-soft); text-decoration: none; }
.doc .back a:hover { color: var(--accent); }
.doc h1 { font-size: clamp(2rem, 6vw, 2.6rem); margin-bottom: 0.5rem; }
.doc .lede { margin: 0 0 2rem; max-width: none; }
.doc h2 { margin: 1.8rem 0 0.3rem; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.4rem; color: var(--accent); }
.doc p { margin: 0 0 0.9rem; }
html[lang="hi"] .doc .en, html[lang="en"] .doc .hi { display: none; }

/* Devanagari has no italic: keep it upright, and size the headline for its taller letters */
html[lang="hi"] em,
html[lang="hi"] .reading h2,
html[lang="hi"] .ask h2,
html[lang="hi"] .doc h2 { font-style: normal; }
html[lang="hi"] h1 { font-size: clamp(2rem, 6.5vw, 2.8rem); line-height: 1.3; }
html[lang="hi"] .reading h2 { font-size: 1.45rem; }

/* Menu: Chart | ORION AI */
.hero { margin-bottom: 1.5rem; }
.menu { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; }
.menu a { padding: 0.3rem 0.1rem; font-size: 0.88rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft); border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s; }
.menu a:hover { color: var(--ink); }
.menu a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.menu a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
html[lang="hi"] .menu a { letter-spacing: 0.04em; text-transform: none; font-size: 0.95rem; }

#ai-pane { animation: rise 0.8s ease both; }
#ai-pane .ask { margin-top: 0; }
.ai-empty { text-align: center; padding: 0.5rem 0 0.25rem; color: var(--ink-soft); }
.ai-empty p { margin: 0 auto 1.25rem; max-width: 22rem; }
.ai-empty .btn.ghost { margin-top: 0; display: inline-block; width: auto; padding-inline: 1.75rem; }

/* ---- Mobile and touch polish ------------------------------------------------ */

body { min-height: 100vh; min-height: 100dvh; -webkit-tap-highlight-color: transparent; }
main {
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}
footer { padding-bottom: max(2rem, env(safe-area-inset-bottom)); }

/* Comfortable touch targets */
.lang button { padding: 0.6rem 0.65rem; }
.menu a { padding: 0.75rem 0.2rem; }
.chart-tabs button { padding: 0.6rem 1.1rem; }
.check input { width: 1.15rem; height: 1.15rem; }

/* Chart labels were too small to read on a phone */
.wheel-svg .house-num { font-size: 10px; }
.wheel-svg .asc-label { font-size: 11px; }
.north-svg .sign-num { font-size: 13px; }
.north-svg .n-planet { font-size: 13.5px; }
.north-svg .n-asc { font-size: 12px; }

/* ORION AI: the conversation sits directly on the page (no card around it),
   so the bubbles get the full width. One outline for the input: the pill. */
.ask { margin-top: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.ask-hint { margin-bottom: 1.5rem; }
.bubble { max-width: 92%; }
.chat-form {
  position: sticky;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  margin-top: 1rem;
  padding: 0.35rem;
  background: color-mix(in srgb, var(--bg-1) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.chat-form input { padding: 0.6rem 0.9rem; border: 0; border-radius: 999px; }
.chat-form input:focus-visible { box-shadow: none; }
.chat-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.chat-form .btn { padding: 0.6rem 1.35rem; }

@media (max-width: 480px) {
  main { padding-top: 3.25rem; padding-bottom: 1.5rem; }
  .hero { margin-bottom: 1.25rem; }
  .brand { font-size: 1.8rem; }
  .menu { gap: 1.5rem; margin-bottom: 1.5rem; }

  .card { padding: 1.5rem 1.15rem; border-radius: 1.25rem; }

  .big-three { gap: 0.5rem; margin-bottom: 2rem; }
  .big-three > div { padding: 1rem 0.35rem; border-radius: 1rem; }
  .big-three .glyph { font-size: 1.7rem; }
  .big-three .sign { font-size: 1.15rem; }

  .chart-tabs { width: 100%; max-width: 20rem; }
  .chart-tabs button { flex: 1; padding-inline: 0.5rem; }
  .wheel { margin-inline: -0.5rem; } /* use a little more of the screen width */

  .reading p { font-size: 1.02rem; }
  .sky-line { margin-bottom: 2rem; }
  .btn.ghost { margin-top: 2rem; }
  .bubble { max-width: 94%; }
}

/* The place suggestions can overhang the card: keep them above the footer, and scroll if long */
main { z-index: 2; }
#place-list { max-height: 15rem; overflow-y: auto; overscroll-behavior: contain; }

/* Account link (top left, mirrors the language switch) */
.account { position: absolute; top: 1.25rem; left: 0; display: flex; align-items: center; gap: 0.15rem; max-width: 55%; font-size: 0.78rem; color: var(--ink-soft); }
.account span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 0.4rem; }
.account button { padding: 0.6rem 0.65rem; font: inherit; letter-spacing: 0.08em; color: inherit; background: none; border: 0; border-bottom: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: color 0.3s; }
.account button:hover { color: var(--ink); }
.account button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#ai-signin .btn.ghost { margin-top: 0; }
#ai-signin .error { margin: 1rem 0 0; }

/* Sign-in popup (native <dialog>: focus is trapped and Esc closes it) */
.modal {
  width: min(22rem, calc(100% - 2.5rem));
  padding: 0;
  color: var(--ink);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}
.modal[open] { animation: rise 0.45s ease both; }
.modal::backdrop { background: rgba(25, 35, 55, 0.4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade 0.45s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card { position: relative; padding: 2.25rem 1.5rem 1.5rem; text-align: center; }
.modal-card h2 { margin: 0 0 0.6rem; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--ink); }
.modal-card p { margin: 0 0 1.25rem; color: var(--ink-soft); font-size: 0.95rem; }
.modal-card .error { margin: 1rem 0 0; }
.modal-card .modal-note { margin: 1.1rem 0 0; font-size: 0.8rem; }
.modal-close { position: absolute; top: 0.4rem; right: 0.5rem; width: 2.75rem; height: 2.75rem; font: inherit; font-size: 1.6rem; line-height: 1; color: var(--ink-soft); background: none; border: 0; border-radius: 50%; cursor: pointer; transition: color 0.3s; }
.modal-close:hover, .modal-close:focus-visible { color: var(--ink); outline: none; }
.modal-close:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
html[lang="hi"] .modal-card h2 { font-size: 1.5rem; }

/* Your days ahead: a soft line through the week, and four gentle bars for the chosen day */
.daily { margin: 0 0 2.5rem; text-align: center; animation: rise 1s ease both; }
.daily-title { margin: 0 0 0.4rem; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.45rem; color: var(--accent); }
html[lang="hi"] .daily-title { font-style: normal; font-size: 1.35rem; }
.daily-svg { display: block; width: 100%; height: auto; overflow: visible; }
.daily-stop-top { stop-color: var(--accent); stop-opacity: 0.28; }
.daily-stop-bottom { stop-color: var(--accent); stop-opacity: 0; }
.daily-base { stroke: var(--line); stroke-width: 1; }
.daily-area { fill: url(#daily-grad); opacity: 0; animation: fade 1.4s ease 0.7s forwards; }
.daily-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.9s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.daily-pt { fill: var(--accent); opacity: 0.35; }
.daily-dot { transition: transform 0.7s cubic-bezier(0.3, 0.7, 0.2, 1); }
.daily-halo { fill: var(--accent); opacity: 0.16; }
.daily-core { fill: var(--accent); stroke: var(--bg-1); stroke-width: 2; }
.daily.static .daily-line, .daily.static .daily-area { animation: none; }
.daily.static .daily-line { stroke-dashoffset: 0; }
.daily.static .daily-area { opacity: 1; }

.daily-days { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 0.1rem; }
.daily-days button { min-height: 44px; padding: 0 0.1rem; font: inherit; font-size: 0.78rem; letter-spacing: 0.05em; color: var(--ink-soft); background: none; border: 0; border-bottom: 1px solid transparent; border-radius: 0.5rem; cursor: pointer; transition: color 0.3s, border-color 0.3s; }
.daily-days button:hover { color: var(--ink); }
.daily-days button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.daily-days button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.daily-note { margin: 0.9rem auto 1.4rem; max-width: 26rem; font-size: 0.98rem; }
.daily-bars { display: grid; gap: 1rem; max-width: 26rem; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
.daily-row { display: flex; justify-content: space-between; margin-bottom: 0.4rem; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--ink-soft); }
.daily-level { color: var(--ink); }
.daily-track { height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink-soft) 18%, transparent); overflow: hidden; }
.daily-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 50%, transparent), var(--accent)); transition: width 0.9s cubic-bezier(0.3, 0.7, 0.2, 1); }
.daily-foot { max-width: 24rem; margin: 1.4rem auto 0; font-size: 0.76rem; line-height: 1.6; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  .daily-line { stroke-dashoffset: 0; }
  .daily-area { opacity: 1; }
}
@media (max-width: 480px) {
  .daily { margin-bottom: 2rem; }
  .daily-days button { font-size: 0.72rem; letter-spacing: 0.02em; }
}


/* Days ahead has its own page now */
#days-pane { animation: rise 0.8s ease both; }
#days-pane .daily { margin-top: 0.5rem; }
#days-pane .pending { margin: 1.5rem 0; }
.menu { gap: 2rem; }
@media (max-width: 480px) {
  .menu { gap: 1.1rem; }
  .menu a { font-size: 0.76rem; letter-spacing: 0.08em; }
  html[lang="hi"] .menu a { font-size: 0.9rem; letter-spacing: 0.02em; }
}


/* Theme switch (sits first in the language row) */
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; padding: 0; color: inherit; background: none; border: 0; border-radius: 50%; cursor: pointer; transition: color 0.3s; }
.theme-btn:hover { color: var(--ink); }
.theme-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


/* The partner form's place list matches the main form's */
#m-place-list {
  position: absolute;
  left: 0; right: 0;
  margin: 0.3rem 0 0;
  padding: 0.3rem;
  list-style: none;
  z-index: 5;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
}
#m-place-list li button {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  font: inherit;
  text-align: left;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 0.6rem;
  cursor: pointer;
}
#m-place-list li button:hover,
#m-place-list li button:focus-visible { background: color-mix(in srgb, var(--accent) 16%, transparent); outline: none; }
#m-place-list .none { padding: 0.6rem 0.8rem; color: var(--ink-soft); font-size: 0.9rem; }
#m-place-list { max-height: 15rem; overflow-y: auto; overscroll-behavior: contain; }
/* Backdrop on small screens: fewer, smaller objects, kept clear of the header controls */
.planet-tiny { left: auto; right: 22vw; top: 40vh; }
@media (max-width: 560px) {
  .comet, .planet-tiny { display: none; }
  .sun-system { top: -4px; right: -30px; width: 112px; opacity: 0.8; }
  .planet-ringed { top: 72vh; left: -16px; opacity: 0.85; }
  .planet-small { top: 82vh; right: 10px; }
  .moon { top: 46px; right: 8px; width: 78px; }
}

/* ---- Match: kundali matching ---------------------------------------------------------- */
#match-pane { animation: rise 0.8s ease both; }
.match-title { margin: 0 0 0.4rem; text-align: center; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.6rem; color: var(--accent); }
html[lang="hi"] .match-title { font-style: normal; }
.match-lede { max-width: 26rem; margin: 0 auto 1.6rem; text-align: center; font-size: 0.92rem; color: var(--ink-soft); }
#match-formbox { margin-bottom: 1rem; }

.match-roles { margin: 0 0 1.4rem; padding: 0; border: 0; min-inline-size: 0; }
.match-roles legend { padding: 0; margin-bottom: 0.5rem; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--ink-soft); }
.match-role-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-radio { position: relative; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-radio span { display: inline-block; padding: 0.5rem 0.95rem; font-size: 0.85rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.chip-radio input:checked + span { color: var(--ink); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.match-hint { margin: 0.6rem 0 0; font-size: 0.78rem; line-height: 1.55; color: var(--ink-soft); }

/* The two circles */
.match-graphic { margin: 0.5rem 0 0; }
.match-svg { display: block; width: 100%; max-width: 27rem; height: auto; margin: 0 auto; overflow: visible; }
.match-circle { fill: var(--accent); stroke: var(--accent); stroke-width: 1; transform-box: fill-box; transform-origin: center; }
.match-circle-a { fill-opacity: 0.08; stroke-opacity: 0.55; animation: circle-in 1.1s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
.match-circle-b { fill-opacity: 0.05; stroke-opacity: 0.4; animation: circle-in 1.1s cubic-bezier(0.3, 0.7, 0.2, 1) 0.15s both; }
@keyframes circle-in { from { opacity: 0; transform: scale(0.88); } }
.match-lens, .match-lens-glow { fill: var(--accent); animation: lens-in 1.6s ease 0.5s both; }
@keyframes lens-in { from { opacity: 0 !important; } }
.match-star { fill: var(--accent); opacity: 0.35; }
.match-glyph, .match-score, .match-of, .match-name { text-anchor: middle; dominant-baseline: central; }
.match-glyph { font-family: var(--serif); font-size: 30px; fill: var(--accent); }
.match-score { font-family: var(--serif); font-size: 40px; font-weight: 500; fill: var(--ink); }
.match-of { font-family: var(--sans); font-size: 10px; letter-spacing: 0.1em; fill: var(--ink-soft); }
.match-name { font-family: var(--sans); font-size: 12px; letter-spacing: 0.04em; fill: var(--ink-soft); }

.match-verdict { margin: 0.4rem 0 0; text-align: center; font-family: var(--serif); font-size: 1.7rem; line-height: 1.25; }
.match-sub { margin: 0.35rem 0 2rem; text-align: center; font-size: 0.85rem; letter-spacing: 0.03em; color: var(--ink-soft); }
.match-bars { gap: 1.25rem; }
.match-trad { color: var(--ink-soft); font-size: 0.78rem; }
.match-desc { margin: 0.4rem 0 0; font-size: 0.8rem; line-height: 1.5; color: var(--ink-soft); }
.match-notes { max-width: 26rem; margin: 1.75rem auto 0; text-align: center; font-size: 0.92rem; line-height: 1.75; white-space: pre-line; }
#match-result .btn.ghost { margin-top: 1.75rem; }
.together { max-width: 26rem; margin: 2rem auto 0; padding: 1.4rem 1.1rem; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 1.2rem; }
.together[hidden] { display: none; }
.together-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.together-status { margin: 0.6rem 0 0; font-size: 0.88rem; color: var(--ink-soft); }
.together-status:empty { display: none; }
.together-verdict { margin: 0.8rem 0 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }
.together-uneven { margin: 0.9rem 0 0; font-size: 0.88rem; line-height: 1.6; color: var(--accent); }
.tg-hero { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; text-align: left; }
.tg-ring-box { flex: none; width: 8.2rem; color: var(--ink); }
.tg-ring { display: block; width: 100%; height: auto; }
.tg-ring-arc { stroke: var(--accent); }
.tg-ring-num { font-family: var(--serif); font-size: 34px; fill: currentColor; }
.tg-ring-cap { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--ink-soft); }
.tg-hero-text { min-width: 0; }
.tg-hero-text .together-verdict { margin: 0; font-size: 1.2rem; }
.tg-risk { display: inline-block; margin: 0.6rem 0 0; padding: 0.2rem 0.75rem; font-size: 0.74rem; letter-spacing: 0.08em; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
.tg-risk.low { color: #3f8473; border-color: #3f847366; }
.tg-risk.moderate { color: #b0702a; border-color: #b0702a66; }
.tg-risk.high { color: #b4533a; border-color: #b4533a66; }
.tg-feel { display: grid; gap: 0.7rem; margin-top: 1.1rem; text-align: left; }
.tg-person { padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 1rem; background: color-mix(in srgb, var(--card) 70%, transparent); }
.tg-person-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.tg-person-head b { font-weight: 500; font-size: 0.95rem; overflow-wrap: anywhere; }
.tg-chip { flex: none; padding: 0.12rem 0.65rem; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--ink); }
.tg-chip.sensitive { background: color-mix(in srgb, #c9863d 22%, transparent); }
.tg-chip.tense { background: color-mix(in srgb, #b4533a 24%, transparent); }
.tg-chip.bright { background: color-mix(in srgb, #4f9a89 24%, transparent); }
.tg-person p { margin: 0.5rem 0 0; font-size: 0.88rem; line-height: 1.55; color: var(--ink-soft); }
.tg-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 0.7rem; }
.tg-meter span { display: flex; justify-content: space-between; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.tg-meter-track { height: 6px; margin-top: 0.3rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.tg-meter-fill { height: 100%; border-radius: inherit; background: var(--accent); transition: width 0.6s ease; }
.tg-h { margin: 1.5rem 0 0.4rem; font-weight: 500; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.tg-chart-box { color: var(--ink); }
.tg-chart { display: block; width: 100%; height: auto; }
.tg-axis { font-size: 8.5px; fill: var(--ink-soft); }
.tg-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1rem; margin: 0.4rem 0 0; padding: 0; list-style: none; font-size: 0.74rem; color: var(--ink-soft); }
.tg-legend li { display: flex; align-items: center; gap: 0.35rem; }
.tg-legend i { width: 14px; height: 3px; border-radius: 2px; }
.tg-legend .k-talk { background: #3f9d63; }
.tg-legend .k-understand { background: var(--accent); }
.tg-legend .k-risk { background: repeating-linear-gradient(90deg, #d0483a 0 5px, transparent 5px 8px); }
.tg-windows { margin: 1.2rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; text-align: left; }
.tg-window { padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 1rem; background: color-mix(in srgb, var(--card) 70%, transparent); }
.tg-window-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.tg-window-head b { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: 0.95rem; }
.tg-window-head b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.tg-window-head small { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-soft); }
.tg-window > p { margin: 0.25rem 0 0; font-size: 0.8rem; color: var(--ink-soft); }
.tg-window.talk { --dot: #3f9d63; }
.tg-window.understand { --dot: var(--accent); }
.tg-window.tense { --dot: #d0483a; }
.tg-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 0; padding: 0; list-style: none; }
.tg-pills li { padding: 0.25rem 0.7rem; font-size: 0.82rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--dot) 55%, transparent); background: color-mix(in srgb, var(--dot) 12%, transparent); white-space: nowrap; }
.tg-pills li.none { border-style: dashed; background: none; color: var(--ink-soft); white-space: normal; }
@media (max-width: 380px) { .tg-hero { flex-direction: column; text-align: center; } .tg-meters { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .match-verdict { font-size: 1.5rem; } .chip-radio span { padding: 0.5rem 0.8rem; } }
.match-of { fill: var(--ink); opacity: 0.72; }
.match-bars .daily-level { white-space: nowrap; }
.match-bars .daily-row { gap: 0.2rem 0.75rem; }

/* A brighter, softly glowing moon */
.moon { filter: drop-shadow(0 0 14px rgba(240, 245, 255, 0.2)) saturate(0.9); }
.moon { top: clamp(48px, 8vh, 88px); }
@media (max-width: 560px) { .moon { top: 54px; } }

/* ---- Admin ------------------------------------------------------------------------------ */
.admin h1 { margin-bottom: 0.4rem; }
.admin .lede { margin-bottom: 1.5rem; }
.admin h2 { margin-top: 2.2rem; }
.admin-totals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.admin-tile { padding: 1.1rem 1rem; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 1.1rem; }
.admin-value { font-family: var(--serif); font-size: 1.9rem; line-height: 1.15; }
.admin-label { margin-top: 0.15rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.admin-note { margin-top: 0.45rem; font-size: 0.74rem; line-height: 1.45; color: var(--ink-soft); }
.admin-prices, .admin-foot { margin: 0.9rem 0 0; font-size: 0.78rem; line-height: 1.6; color: var(--ink-soft); }
.admin-people { margin: 0; padding: 0; list-style: none; }
.admin-person { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.admin-who { min-width: 0; }
.admin-email { font-size: 0.98rem; overflow-wrap: anywhere; }
.admin-meta { margin-top: 0.15rem; font-size: 0.78rem; color: var(--ink-soft); }
.admin-cost { flex: none; font-family: var(--serif); font-size: 1.25rem; color: var(--accent); }
.admin-totals + h2, .admin-totals + .admin-prices + h2 { margin-top: 1.6rem; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.4rem 0 0.2rem; }
.admin-tools input, .admin-tools select { flex: 1 1 11rem; min-width: 0; padding: 0.6rem 0.8rem; font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 0.8rem; }
.admin-tools .btn { flex: none; width: auto; padding: 0.55rem 1.1rem; }
.admin-badge { display: inline-block; margin-left: 0.45rem; padding: 0.05rem 0.55rem; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; vertical-align: middle; }
.admin-empty { padding: 1rem 0; color: var(--ink-soft); }
.admin-anon { color: var(--ink-soft); font-size: 0.92rem; }
.admin #admin-refresh { margin-top: 2rem; }
.admin #admin-google { width: auto; padding-inline: 2rem; }
@media (min-width: 640px) { .admin-totals { grid-template-columns: repeat(4, 1fr); } .admin-value { font-size: 1.6rem; } }

/* The admin link next to the account name, shown only to the admin */
.account a { padding: 0.6rem 0.65rem; color: inherit; text-decoration: none; letter-spacing: 0.08em; white-space: nowrap; }
.account a:hover { color: var(--ink); }

/* Personal greeting: one quiet line above the chart */
.greeting { margin: 0 0 1.6rem; text-align: center; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.45rem; line-height: 1.45; color: var(--ink); animation: rise 1.2s ease both; }
.greeting:empty { display: none; }
html[lang="hi"] .greeting { font-style: normal; font-size: 1.2rem; }

/* "Save as an image": a small text link, never a button */
.share-row { margin: -1.4rem 0 2.2rem; text-align: center; }
.daily .share-row, #match-result .share-row { margin: 1rem 0 0; }
.share-link { font: inherit; font-size: 0.8rem; letter-spacing: 0.05em; color: var(--ink-soft); background: none; border: 0; border-bottom: 1px solid var(--line); padding: 0.45rem 0.1rem; cursor: pointer; transition: color 0.3s, border-color 0.3s; }
.share-link:hover, .share-link:focus-visible { color: var(--accent); border-color: var(--accent); outline: none; }

.share-modal { width: min(25rem, calc(100% - 2rem)); }
.share-preview { margin: 0 auto 1rem; max-width: 15rem; aspect-ratio: 4 / 5; border-radius: 1rem; overflow: hidden; border: 1px solid var(--line); display: grid; place-items: center; }
.share-preview img { display: block; width: 100%; height: auto; }
.share-preview img[hidden], .share-preview .pending[hidden] { display: none; }
.share-preview .pending { margin: 0; }
.share-actions { display: grid; gap: 0.6rem; margin-top: 1rem; }
.share-actions .btn, .share-actions .btn.ghost { margin: 0; }
.share-actions [hidden] { display: none; }

/* Sky notes and gentle alerts */
.skynotes { margin-top: 3rem; text-align: center; }
.sn-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.sn-list li { padding: 1.2rem 1rem; border: 1px solid var(--line); border-radius: 1.2rem; background: color-mix(in srgb, var(--bg-1) 55%, transparent); }
.sn-when { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.sn-title { margin: 0.35rem 0 0.45rem; font-family: var(--body); font-size: 1.35rem; color: var(--accent); }
.sn-body, .sn-you { margin: 0.2rem 0 0; font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }
.sn-you { color: var(--ink); }
.sn-none { color: var(--ink-soft); font-size: 0.92rem; }
.sn-signin { margin: 1.2rem 0 0; }
.sn-alerts { justify-content: center; margin-top: 1.4rem; text-align: left; }
.sn-note { display: block; margin-top: 0.15rem; font-size: 0.75rem; color: var(--ink-soft); }
.alert-line { margin: -0.8rem 0 1.6rem; text-align: center; font-size: 0.88rem; line-height: 1.55; color: var(--accent); }
.alert-line[hidden] { display: none; }

.sn-art { display: block; width: 11rem; height: 5.1rem; margin: 0 auto 0.4rem; color: var(--accent); overflow: visible; }

/* "Does this feel true?": two small outline icons, then an optional line */
.fb { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.35rem 0.6rem; margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--ink-soft); }
.fb-slot { margin: 0.6rem 0 2rem; }
.fb-slot[hidden] { display: none; }
.chat-log .fb { justify-content: flex-start; margin: 0.15rem 0 0.9rem 0.4rem; }
.fb-btn { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; color: var(--ink-soft); background: none; border: 1px solid transparent; border-radius: 50%; cursor: pointer; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.fb-btn:hover, .fb-btn:focus-visible { color: var(--accent); border-color: var(--line); outline: none; }
.fb-btn svg { width: 1.1rem; height: 1.1rem; }
.fb-note { display: flex; gap: 0.5rem; width: 100%; max-width: 22rem; }
.chat-log .fb-note { max-width: 100%; }
.fb-note input { flex: 1; min-width: 0; font: inherit; font-size: 0.85rem; padding: 0.55rem 0.8rem; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; }
.fb-note input:focus { outline: none; border-color: var(--accent); }
.fb-note .share-link { white-space: nowrap; }

/* Optional feedback popup for ORION AI */
.fb-reasons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0 0 1rem; }
.fb-text { width: 100%; font: inherit; font-size: 0.9rem; padding: 0.7rem 1rem; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; }
.fb-text:focus { outline: none; border-color: var(--accent); }
#fb-dialog .share-actions { margin-top: 1.1rem; }
#fb-dialog .btn.ghost { margin-top: 0; }

/* The ORION mark above the wordmark */
.logo-mark { display: block; width: 3.6rem; height: 3.6rem; margin: 1.4rem auto 0.4rem; color: var(--accent); animation: rise 1.2s ease both; }

/* Today's panchang sits right under the Moon line */
#sky-line:not(:empty) { margin-bottom: 0.35rem; }
.panchang-line { margin-top: 0; }
.panchang-line:empty { display: none; }

/* Today's panchang in pictures */
.panchang-card { --pg-rahu: #c98f95; --pg-good: #7fb59b; --pg-sun: #e8b46e; margin-top: 3rem; text-align: center; }
:root[data-theme="dark"] .panchang-card { --pg-rahu: #e2a4aa; --pg-good: #93d1b6; --pg-sun: #f2c98b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .panchang-card { --pg-rahu: #e2a4aa; --pg-good: #93d1b6; --pg-sun: #f2c98b; } }
.panchang-card[hidden] { display: none; }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.2rem; margin: 1.2rem 0 0; }
.pg-panel { margin: 0; padding: 1.2rem 0.8rem 1.1rem; border: 1px solid var(--line); border-radius: 1.4rem; background: color-mix(in srgb, var(--bg-1) 55%, transparent); color: var(--accent); }
.pg-title { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.pg-svg { display: block; width: 100%; max-width: 13.5rem; height: auto; margin: 0.4rem auto 0; overflow: visible; }
.pg-caption { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
.pg-sub { margin-top: 0.15rem; font-size: 0.82rem; color: var(--ink-soft); }
.pg-name { font-family: var(--serif); font-size: 21px; fill: var(--ink); }
.pg-pada, .pg-time { font-family: var(--sans); font-size: 11px; fill: var(--ink-soft); letter-spacing: 0.04em; }
.pg-legend { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.8rem; color: var(--ink-soft); }
.pg-key { display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.5rem; border-radius: 50%; }
.pg-key.rahu { background: var(--pg-rahu); }
.pg-key.good { background: var(--pg-good); }
.pg-dot { animation: pgfade 1.2s ease both; animation-delay: calc(var(--i, 0) * 45ms); }
.pg-pulse { transform-box: fill-box; transform-origin: center; animation: pgpulse 5s ease-in-out infinite; }
@keyframes pgfade { from { opacity: 0; } }
@keyframes pgpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.pg-halo { transform-box: fill-box; transform-origin: center; animation: pghalo 6s ease-in-out infinite; }
.pg-active { animation: pgfade 1.2s ease both, pgglow 3.2s ease-in-out 2.8s infinite; animation-delay: calc(var(--i, 0) * 45ms), 2.8s; }
@keyframes pghalo { 0%, 100% { transform: scale(0.95); opacity: 0.05; } 50% { transform: scale(1.12); opacity: 0.14; } }
@keyframes pgglow { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .pg-dot, .pg-pulse, .pg-halo, .pg-active { animation: none; } }

/* Hours: good and poor hours of the day for four goals */
.hours { margin: 0 0 2.5rem; text-align: center; animation: rise 1s ease both; }
.hours-lede, .hours-where, .hours-mood { max-width: 28rem; margin: 0.5rem auto 0; font-size: 0.86rem; line-height: 1.6; color: var(--ink-soft); }
.hours-where .share-link { margin-left: 0.25rem; }
.hours-mood { color: var(--ink); }
.hours-goals { display: grid; grid-template-columns: repeat(4, 1fr); margin: 1.4rem 0 1rem; }
.hours-goals button { min-height: 44px; padding: 0 0.2rem; font: inherit; font-size: 0.82rem; letter-spacing: 0.06em; color: var(--ink-soft); background: none; border: 0; border-bottom: 1px solid transparent; border-radius: 0.5rem; cursor: pointer; transition: color 0.3s, border-color 0.3s; }
.hours-goals button:hover { color: var(--ink); }
.hours-goals button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.hours-goals button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hours-detail { max-width: 30rem; min-height: 3.2em; margin: 0.9rem auto 0; font-size: 0.88rem; line-height: 1.6; }
.hours-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.4rem; text-align: left; }
.hours h3 { margin: 0 0 0.4rem; font-family: var(--body); font-weight: 400; font-size: 1.1rem; color: var(--accent); }
.hours-sub { margin-top: 1.6rem; }
.hours ul { margin: 0; padding: 0; list-style: none; font-size: 0.86rem; line-height: 1.7; }
.hours ul li { padding: 0.15rem 0 0.15rem 0.9rem; border-left: 2px solid var(--line); margin-bottom: 0.3rem; }
.hours ul li.hr-good { border-left-color: var(--accent); }
.hours ul li.hr-poor { border-left-color: color-mix(in srgb, var(--error) 70%, transparent); }
.hours ul li.hr-none { color: var(--ink-soft); }
.hours-people, .hours-day { text-align: left; max-width: 34rem; margin-left: auto !important; margin-right: auto !important; }
.hours-tithi { max-width: 28rem; margin: 1rem auto 0; font-size: 0.8rem; color: var(--ink-soft); font-style: italic; }
@media (max-width: 480px) {
  .hours-lists { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .hours { animation: none; } }
.hours-sub { max-width: 34rem; margin-left: auto; margin-right: auto; text-align: left; }

/* Hours: the day's meetings checked against the hours */
.hours-hint { max-width: 34rem; margin: 0.2rem auto 0.7rem; font-size: 0.8rem; line-height: 1.6; color: var(--ink-soft); text-align: left; }
.mt-text { display: block; width: 100%; max-width: 34rem; margin: 0 auto; padding: 0.8rem 1rem; font: inherit; font-size: 0.9rem; line-height: 1.6; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 1rem; resize: vertical; }
.mt-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mt-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1.2rem; max-width: 34rem; margin: 0.8rem auto 0.3rem; }
.mt-actions .btn { margin-top: 0; width: auto; padding-inline: 1.6rem; }
.mt-import { cursor: pointer; }
.mt-list { max-width: 34rem; margin: 0.4rem auto 0 !important; text-align: left; }
.hours ul.mt-list li.mt-item { padding: 0.55rem 0 0.55rem 0.9rem; margin-bottom: 0.6rem; }
.hours ul.mt-list li.mt-item.hr-fair { border-left-color: color-mix(in srgb, var(--accent) 38%, transparent); }
.mt-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; }
.mt-head strong { font-weight: 500; white-space: nowrap; }
.mt-head span { flex: 1; min-width: 6rem; }
.mt-head select { min-height: 32px; padding: 0 0.5rem; font: inherit; font-size: 0.78rem; color: var(--ink-soft); background: var(--card); border: 1px solid var(--line); border-radius: 0.6rem; }
.mt-item p { margin: 0.25rem 0 0; font-size: 0.84rem; color: var(--ink-soft); }
.mt-item p.mt-tip { color: var(--ink); }
.mt-tip .share-link { margin-left: 0.2rem; }

/* Hours: the "Today in 30 seconds" card */
.hours-today { max-width: 34rem; margin: 1.2rem auto 0; padding: 1.2rem 1.3rem; text-align: left; }
.hours .hours-today h3 { margin: 0 0 0.5rem; font-size: 1.2rem; text-align: left; }
.ht-now { margin: 0 0 0.7rem; font-size: 0.92rem; line-height: 1.6; color: var(--ink); }
.hours ul.ht-best { margin: 0 0 0.6rem; }
.hours ul.ht-best li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.1rem 1rem; padding-top: 0.2rem; padding-bottom: 0.2rem; margin-bottom: 0.2rem; }
.ht-best strong, .ht-row strong { font-weight: 500; }
.ht-row { display: flex; flex-wrap: wrap; gap: 0.1rem 0.9rem; margin: 0.45rem 0 0; font-size: 0.86rem; line-height: 1.6; color: var(--ink-soft); }
.ht-row strong { min-width: 5.5rem; color: var(--ink); }
.ht-row span { flex: 1; min-width: 12rem; }

/* The menu now has five entries: one tidy row on a phone, never wrapping, scrolling only as a last resort */
.menu { flex-wrap: nowrap; }
.menu a { white-space: nowrap; }
@media (max-width: 480px) {
  .menu { gap: 0; justify-content: space-between; margin-left: -0.25rem; margin-right: -0.25rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { flex: 0 0 auto; padding: 0.75rem 0.45rem; font-size: 0.72rem; letter-spacing: 0.07em; }
  html[lang="hi"] .menu a { font-size: 0.84rem; letter-spacing: 0; }
}
@media (max-width: 340px) {
  .menu a { padding-inline: 0.25rem; font-size: 0.7rem; letter-spacing: 0.02em; }
  html[lang="hi"] .menu a { font-size: 0.78rem; }
}

/* Saved charts */
.saved-charts { max-width: 34rem; margin: 0 auto 1.6rem; text-align: left; }
.saved-charts .daily-title { text-align: center; }
.sc-list { margin: 0.4rem 0 0; padding: 0; list-style: none; }
.sc-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.3rem 1rem; padding: 0.7rem 1rem; margin-bottom: 0.5rem; background: var(--card); border: 1px solid var(--line); border-radius: 1rem; }
.sc-info { display: flex; flex-direction: column; min-width: 0; }
.sc-info strong { font-weight: 500; overflow-wrap: anywhere; }
.sc-info span { font-size: 0.78rem; color: var(--ink-soft); }
.sc-actions { display: flex; gap: 1rem; }
.sc-actions .share-link { min-height: 36px; }
.save-chart { max-width: 24rem; margin: 1.8rem auto 0; text-align: center; }
.save-signedout { margin: 0; }
.save-form .field { text-align: left; margin-bottom: 0.8rem; }
.save-form .btn { margin-top: 0; width: auto; padding-inline: 1.75rem; }
.save-chart .hours-hint { text-align: center; }

/* The home-screen app and the morning notification */
.hours-habit { max-width: 34rem; margin: 1.8rem auto 0; padding: 1.2rem 1.3rem; text-align: left; }
.hours .hours-habit h3 { margin: 0 0 0.6rem; font-size: 1.2rem; text-align: left; }
.habit-block { margin-top: 0.9rem; }
.habit-block > p:first-child { margin: 0 0 0.6rem; font-size: 0.9rem; line-height: 1.6; }
.habit-block .hours-hint { text-align: left; margin-left: 0; }
.habit-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.7rem 1rem; }
.habit-controls .field { margin: 0; min-width: 8.5rem; }
.habit-controls select { width: 100%; min-height: 44px; padding: 0 0.7rem; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 0.75rem; }
.habit-controls .btn, .habit-block > .btn { margin-top: 0; width: auto; padding-inline: 1.5rem; }

/* The scorecard */
.hours-rate { max-width: 34rem; margin: 1.8rem auto 0; padding: 1.2rem 1.3rem; text-align: left; }
.hours .hours-rate h3 { margin: 0 0 0.7rem; font-size: 1.2rem; text-align: left; }
.rate-buttons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
.rate-buttons button { min-height: 48px; padding: 0 0.2rem; font: inherit; font-size: 0.8rem; color: var(--ink-soft); background: var(--card); border: 1px solid var(--line); border-radius: 0.8rem; cursor: pointer; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.rate-buttons button:hover:not(:disabled) { color: var(--ink); border-color: var(--accent); }
.rate-buttons button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.rate-buttons button:disabled { opacity: 0.55; cursor: not-allowed; }
.rate-buttons button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hours-rate .hours-hint { text-align: left; margin-left: 0; }
.scorecard { margin-top: 0.6rem; }
.sc-line { margin: 0.6rem 0 0.4rem; font-size: 0.9rem; line-height: 1.65; }
.sc-meter { height: 6px; margin: 0.5rem 0; background: var(--line); border-radius: 3px; overflow: hidden; }
.sc-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.6s ease; }
.habit-evening { margin: 0.2rem 0 0.9rem; }
@media (max-width: 380px) { .rate-buttons button { font-size: 0.72rem; } }

/* Bars that flow when the goal changes: each moves a beat after its neighbour */
.swap { animation: swapin 0.45s ease both; }
@keyframes swapin { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .swap { animation: none; }
}

/* Progress ring and step badges on the home-screen card */
.habit-title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.hours .habit-title-row h3 { margin: 0; }
.habit-ring { position: relative; width: 40px; height: 40px; flex: none; }
.habit-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.habit-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.7rem; letter-spacing: 0.02em; color: var(--ink); }
.habit-ring .ring-todo { stroke: var(--line); }
.habit-ring .ring-done { stroke: var(--accent); transition: stroke 0.4s ease; }
.habit-step { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.6rem; }
.habit-step p { margin: 0; flex: 1; font-size: 0.9rem; line-height: 1.6; }
.step-badge { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-top: 0.1rem; font-size: 0.78rem; line-height: 1; color: var(--ink-soft); background: transparent; border: 1.5px solid var(--line); border-radius: 50%; transition: background 0.4s, border-color 0.4s, color 0.4s; }
.step-badge[data-state="current"] { color: var(--ink); border-color: var(--accent); }
.step-badge[data-state="done"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.habit-block > .btn, .habit-block > .hours-hint, .habit-block > .habit-controls, .habit-block > .habit-evening { margin-left: 2.35rem; }
@media (max-width: 380px) { .habit-block > .btn, .habit-block > .hours-hint, .habit-block > .habit-controls, .habit-block > .habit-evening { margin-left: 0; } }

/* The day's mood picture, top right of the summary card */
.ht-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; }
.ht-top-text { min-width: 0; flex: 1; }
.ht-art { flex: none; width: 7.2rem; margin: -0.3rem -0.2rem 0 0; color: var(--accent); opacity: 0.95; }
.ht-art svg { display: block; width: 100%; height: auto; }
@media (max-width: 420px) { .ht-art { width: 5.4rem; } }

/* The sky now */
.sky-now { max-width: 34rem; margin: 0 auto 1.8rem; padding: 1.3rem 1.2rem 1.1rem; text-align: center; }
.sky-now .daily-title { margin-bottom: 0.5rem; }
.skynow-pic { max-width: 20rem; margin: 0 auto; color: var(--accent); }
.skynow-svg { display: block; width: 100%; height: auto; overflow: visible; }
.skynow-sign { fill: currentColor; opacity: 0.7; }
.skynow-moondark { fill: color-mix(in srgb, var(--ink) 14%, transparent); stroke: currentColor; stroke-opacity: 0.4; }
.skynow-moonlit { fill: var(--accent); fill-opacity: 0.92; }
.skynow-planet text { fill: var(--ink); }
.skynow-bubble { fill: var(--card); stroke: currentColor; stroke-opacity: 0.55; stroke-width: 1.2; }
.skynow-planet.is-sun .skynow-bubble { fill: #f7d9a0; stroke: #e9b25c; stroke-opacity: 0.9; }
.skynow-planet.is-sun text { fill: #8a5a16; }
.skynow-orbit { transform-origin: 160px 160px; animation: skynow-turn 240s linear infinite; }
.skynow-twinkle { animation: skynow-glow 5s ease-in-out infinite; }
.skynow-twinkle:nth-child(3) { animation-delay: -1.6s; }
.skynow-twinkle:nth-child(4) { animation-delay: -3.2s; }
@keyframes skynow-turn { to { transform: rotate(360deg); } }
@keyframes skynow-glow { 50% { opacity: 0.25; } }
.skynow-caption { margin: 0.7rem 0 0.3rem; font-size: 0.9rem; color: var(--ink); }
.skynow-details { max-width: 22rem; margin: 0.3rem auto 0; text-align: left; font-size: 0.82rem; color: var(--ink-soft); }
.skynow-details summary { cursor: pointer; text-align: center; }
.skynow-list { margin: 0.6rem 0 0; padding: 0; list-style: none; }
.skynow-list li { display: flex; justify-content: space-between; padding: 0.2rem 0.2rem; border-bottom: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .skynow-orbit, .skynow-twinkle { animation: none; } }

/* The "now" dial */
.hours-dial { position: relative; width: min(100%, 23rem); margin: 0.2rem auto 0.8rem; color: var(--accent); }
#dial-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dial-halo { fill: color-mix(in srgb, var(--accent) 6%, transparent); }
.dial-arc { fill: none; stroke-width: 24; cursor: pointer; transition: stroke 0.45s ease calc(var(--i, 0) * 18ms), stroke-width 0.25s ease, opacity 0.6s ease calc(var(--i, 0) * 22ms); }
.dial-arc.hr-good { stroke: var(--accent); }
.dial-arc.hr-fair { stroke: color-mix(in srgb, var(--accent) 38%, transparent); }
.dial-arc.hr-poor { stroke: color-mix(in srgb, var(--error) 55%, transparent); }
.dial-arc.is-sel { stroke-width: 32; }
.dial-arc:hover { stroke-width: 28; }
.dial-arc.is-sel:hover { stroke-width: 32; }
.dial-tick { stroke: var(--ink-soft); stroke-width: 1.5; stroke-linecap: round; }
.dial-label { fill: var(--ink-soft); font-size: 11px; letter-spacing: 0.04em; }
.dial-dot { fill: var(--ink); stroke: var(--card); stroke-width: 3.5; filter: drop-shadow(0 1px 3px color-mix(in srgb, var(--ink) 40%, transparent)); }
.dial-center { position: absolute; inset: 22%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.dial-center .share-link { pointer-events: auto; margin-top: 0.3rem; font-size: 0.74rem; }
.dial-goal { margin: 0; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
html[lang="hi"] .dial-goal { text-transform: none; letter-spacing: 0.02em; }
.dial-state { margin: 0.1rem 0 0.15rem; font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 1.1; color: var(--ink); transition: color 0.4s; }
.hours-dial[data-level="good"] .dial-state { color: var(--accent); }
.hours-dial[data-level="poor"] .dial-state { color: var(--error); }
.dial-sub { margin: 0; max-width: 11rem; font-size: 0.74rem; line-height: 1.45; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .dial-arc, .dial-state { transition: none; } }
/* the Today ring: it draws itself in, breathes, turns slowly, and the dot for now sends out a ripple */
.dial-halo { transform-box: fill-box; transform-origin: center; animation: dial-breathe 6s ease-in-out infinite; }
.dial-orbit { fill: none; stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 1; stroke-dasharray: 1.5 7; stroke-linecap: round; transform-box: view-box; transform-origin: 160px 160px; animation: dial-turn 90s linear infinite reverse; }
.dial-sweep { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; opacity: 0.6; transform-origin: 160px 160px; animation: dial-turn 24s linear infinite; }
.dial-ping { fill: none; stroke: var(--accent); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: dial-ripple 2.8s ease-out infinite; pointer-events: none; }
.dial-arc.is-now { animation: dial-now 3.4s ease-in-out infinite; }
#dial-svg[data-intro] .dial-arc { stroke-dasharray: 1; animation: dial-draw 1.1s cubic-bezier(0.4, 0, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes dial-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dial-breathe { 0%, 100% { transform: scale(0.97); opacity: 0.7; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes dial-turn { to { transform: rotate(360deg); } }
@keyframes dial-ripple { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes dial-now { 50% { filter: drop-shadow(0 0 7px var(--accent)); } }
@media (prefers-reduced-motion: reduce) { .dial-halo, .dial-orbit, .dial-sweep, .dial-ping, .dial-arc.is-now, #dial-svg[data-intro] .dial-arc { animation: none; } .dial-sweep, .dial-ping { display: none; } #dial-svg[data-intro] .dial-arc { stroke-dasharray: none; } }

/* The scorecard chart */
.sc-chart { margin: 0.7rem 0 0.2rem; color: var(--accent); }
.scchart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.scchart-grid { stroke: var(--line); stroke-width: 1; }
.scchart-axis { stroke: var(--ink-soft); stroke-opacity: 0.5; stroke-width: 1; }
.scchart-label, .scchart-note, .scchart-title { fill: var(--ink-soft); font-size: 11px; font-family: var(--sans); }
.scchart-title { letter-spacing: 0.02em; }
.scchart-split { stroke: var(--ink-soft); stroke-opacity: 0.55; stroke-width: 1.2; stroke-dasharray: 2 5; stroke-linecap: round; }
.scchart-band { fill: var(--accent); fill-opacity: 0.16; stroke: none; }
.scchart-line { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.scchart-dot { fill: var(--accent); fill-opacity: 0.72; stroke: var(--card); stroke-width: 1.5; }
.scchart-dot.is-today { fill-opacity: 1; stroke: var(--ink); stroke-width: 2; }

.sky-now[data-state="error"] .skynow-details, .sky-now[data-state="error"] .daily-foot { display: none; }

/* The dial is the one graph: its arcs take the keyboard focus, and two buttons step through the hours */
.dial-arc:focus { outline: none; }
.dial-arc:focus-visible { stroke-width: 34; outline: 2px solid var(--ink); outline-offset: 3px; }
.dial-steps { display: flex; justify-content: center; gap: 1.6rem; margin: 0 0 0.5rem; }
.dial-steps .share-link { min-height: 44px; padding: 0 0.6rem; }
.dial-steps .share-link:disabled { opacity: 0.35; cursor: default; }

/* ---- Contact page ---- */
.contact-grid { display: grid; gap: 0.9rem; margin: 2rem 0 0; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.15rem; color: var(--ink); text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 1.2rem; backdrop-filter: blur(6px); transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.contact-card:hover, .contact-card:focus-visible { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 28px -16px var(--accent); }
.contact-icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 50%; }
.contact-icon svg { width: 1.45rem; height: 1.45rem; }
.contact-body { flex: 1; min-width: 0; display: grid; gap: 0.15rem; }
.contact-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.contact-value { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; overflow-wrap: anywhere; }
.contact-note { font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); }
.contact-go { flex: none; font-size: 1.2rem; color: var(--accent); transition: transform 0.25s; }
.contact-card:hover .contact-go, .contact-card:focus-visible .contact-go { transform: translateX(4px); }
.contact-help { margin-top: 2.2rem; padding: 1.2rem 1.25rem 0.4rem; background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid var(--line); border-radius: 1.2rem; }
.contact-help h2 { margin-top: 0; font-size: 1.15rem; }
.contact-help h2 ~ h2 { margin-top: 1.2rem; }
html[lang="hi"] .contact-help.en, html[lang="en"] .contact-help.hi { display: none; }
@media (max-width: 420px) { .contact-card { padding: 1rem; } .contact-value { font-size: 1.1rem; } .contact-go { display: none; } }

.tg-notify { margin-top: 1.2rem; padding: 1rem; text-align: center; border: 1px dashed var(--line); border-radius: 1rem; }
.tg-notify[hidden] { display: none; }
.tg-notify p { margin: 0 0 0.7rem; font-size: 0.88rem; line-height: 1.55; color: var(--ink-soft); }
.tg-notify .hours-hint { margin: 0.6rem 0 0; }
.tg-notify .hours-hint:empty { display: none; }

.match-saved { max-width: 34rem; margin: 0 auto 1.4rem; text-align: left; }
.match-saved .daily-title { text-align: center; }
.match-saved .sc-actions .share-link:first-child { color: var(--accent); }
.match-save { margin: 1.4rem 0 0; text-align: center; }
.match-save .btn { width: auto; padding-inline: 1.6rem; }
.match-save .hours-hint { display: block; margin-top: 0.5rem; }
.match-save .hours-hint:empty { display: none; }

/* ---- Lucky colour and number (Today page) ---- */
.lucky { max-width: 34rem; margin: 1.6rem auto 0; padding: 1.3rem 1.1rem; text-align: center; }
.lucky[hidden] { display: none; }
.lucky-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.lucky-main { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1rem; }
.lucky-tile { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 1rem 0.5rem; border: 1px solid var(--line); border-radius: 1.1rem; background: color-mix(in srgb, var(--card) 70%, transparent); }
.lucky-orb { width: 6.6rem; height: 6.6rem; margin-top: -0.2rem; }
.orb { display: block; width: 100%; height: 100%; overflow: visible; }
.orb-number { font-family: inherit; font-weight: 400; font-variant-numeric: lining-nums; font-size: 38px; fill: #2a3b57; letter-spacing: -0.02em; }
.lucky-tile { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), color-mix(in srgb, var(--card) 80%, transparent)); }
.lucky { background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%), var(--card); }
/* slow, quiet movement: the orbs breathe, the water drifts, the air rises */
.orb-body { transform-origin: 60px 60px; animation: orb-breathe 7s ease-in-out infinite; }
.orb-halo { transform-origin: 60px 62px; animation: orb-glow 7s ease-in-out infinite; }
.orb-ripple { transform-origin: 60px 60px; animation: orb-ripple 7s ease-out infinite; }
.orb-ripple.r2 { animation-delay: 2.4s; }
.orb-wave.w1 { animation: orb-drift 9s linear infinite; }
.orb-wave.w2 { animation: orb-drift 13s linear infinite reverse; }
.orb-bubble { animation: orb-rise 9s ease-in infinite; opacity: 0; }
.orb-bubble.b2 { animation-delay: 3s; animation-duration: 11s; }
.orb-bubble.b3 { animation-delay: 6s; animation-duration: 8s; }
@keyframes orb-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes orb-glow { 0%, 100% { opacity: 0.3; transform: scale(0.96); } 50% { opacity: 0.5; transform: scale(1.06); } }
@keyframes orb-ripple { 0% { transform: scale(0.88); opacity: 0.5; } 100% { transform: scale(1.12); opacity: 0; } }
@keyframes orb-drift { from { transform: translateX(0); } to { transform: translateX(-90px); } }
@keyframes orb-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 0.9; } 80% { opacity: 0.5; } 100% { transform: translateY(-46px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .orb-body, .orb-halo, .orb-ripple, .orb-wave, .orb-bubble { animation: none; } .orb-bubble { opacity: 0.6; } }
.lucky-label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.lucky-value { font-weight: 500; font-size: 1.05rem; }
.lucky-why { margin: 1rem 0 0; font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); }
.lucky-more { margin: 0.9rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; font-size: 0.85rem; text-align: left; }
.lucky-more li { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.8rem; border: 1px solid var(--line); border-radius: 0.8rem; }
.lucky-dot { flex: none; width: 0.95rem; height: 0.95rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--lucky, #ccc) 45%, white), var(--lucky, #ccc) 60%, color-mix(in srgb, var(--lucky, #ccc) 80%, black)); box-shadow: 0 2px 8px -2px var(--lucky, #999); }
@media (max-width: 360px) { .lucky-main { grid-template-columns: 1fr; } }

.promise { margin: 0.9rem auto 0; max-width: 30rem; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink-soft); }
.promise a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }


/* ---- Navy, ivory and muted gold: serif type, generous space, a quiet homepage ---- */
:root { --gold: var(--accent); }
input, button, select, textarea { font-family: var(--body); }
.card, .ask, .big-three > div { border-radius: 0.5rem; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.btn { border-radius: 0.25rem; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.85rem; }
.btn:hover { box-shadow: none; }
input[type="text"], input[type="date"], input[type="time"], .chat-form input { border-radius: 0.25rem; }
.btn.ghost { border-color: var(--accent); color: var(--accent); }
h1 { font-weight: 400; }
.field > span, .field > label > span { font-size: 0.95rem; letter-spacing: 0.02em; }

/* Homepage: only the mark, the promise and the form. */
main { max-width: 32rem; padding-top: 5rem; }
.hero { margin-bottom: 3.5rem; }
.logo-mark { width: 3rem; height: 3rem; margin: 0 auto 1.5rem; display: block; color: var(--accent); }
.eyebrow { display: none; }
.brand { font-size: clamp(1.6rem, 5vw, 2rem); margin-bottom: 1.75rem; }
h1 { font-size: clamp(2.6rem, 8vw, 3.8rem); }
.lede { margin-top: 1.5rem; font-size: 1.2rem; }
.promise { margin: 1.5rem 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.promise a { color: var(--accent); }
.lang, .account { font-family: var(--body); font-size: 0.88rem; opacity: 1; }

/* The five-tab menu: one row that fits every phone from 320px up, never scrolling sideways.
   Tracked capitals do not fit five tabs at a readable size, so phones get sentence case in a size
   that follows the screen width; from 641px the capitals return. */
.menu { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 0; margin: 0 -0.25rem 3rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.menu::-webkit-scrollbar { display: none; }
.menu a { flex: 0 0 auto; min-width: 2.75rem; text-align: center; padding: 0.75rem 0.25rem 0.65rem; font-family: var(--body); font-size: clamp(0.78rem, 3.9vw, 0.95rem); letter-spacing: 0.01em; text-transform: none; white-space: nowrap; }
html[lang="hi"] .menu a { font-size: clamp(0.78rem, 3.9vw, 0.95rem); letter-spacing: 0; text-transform: none; }
@media (min-width: 641px) {
  .menu { justify-content: center; gap: 1.3rem; margin: 0 0 3rem; overflow: visible; }
  .menu a { padding: 0.75rem 0.2rem; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; }
  html[lang="hi"] .menu a { font-size: 0.95rem; letter-spacing: 0.04em; text-transform: none; }
}

/* Account and language links across the top: tighter on small phones so they never run into each other */
@media (max-width: 400px) {
  .account, .lang { font-size: 0.82rem; }
  .account a, .account button, .lang button { padding-inline: 0.4rem; letter-spacing: 0.02em; }
  #account-name { display: none; } /* squeezed to a few pixels beside Sign out and Membership, so a clipped name only adds noise */
}
#form-view.card { padding: 2.5rem 1.75rem; }

/* The free preview of the dossier: the headline of the dossier and a list of what the rest holds. */
.preview { animation: rise 1s ease both; }
.pv-kicker { margin: 0 0 0.6rem; text-align: center; font-size: 0.85rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.pv-intro { max-width: 26rem; margin: 0 auto 2rem; text-align: center; color: var(--ink-soft); }
.pv-approx { text-align: center; margin: -1rem 0 2rem; }
.pv-block { margin: 0 0 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.pv-block h3 { margin: 0 0 0.75rem; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--ink); }
.pv-period { margin: 0 0 0.5rem; font-size: 1.15rem; }
.pv-held { margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.pv-year { margin: 0; padding: 0; list-style: none; }
.pv-year li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.pv-verdict { font-weight: 500; letter-spacing: 0.04em; color: var(--ink-soft); }
.pv-verdict.strong, .pv-verdict.good { color: var(--accent); }
.pv-outline { margin: 0; padding: 0; list-style: none; counter-reset: pv; }
.pv-outline li { position: relative; display: grid; gap: 0.1rem; padding: 0.7rem 0 0.7rem 2rem; border-bottom: 1px solid var(--line); counter-increment: pv; }
.pv-outline li::before { content: counter(pv); position: absolute; left: 0; top: 0.7rem; color: var(--accent); }
.pv-outline li span { font-size: 0.92rem; color: var(--ink-soft); }
.pv-cta { margin: 0 0 1rem; text-align: center; }
.pv-cta .hours-hint { margin: 0.75rem 0 0; }
.pv-offer { margin: 1rem 0 0; font-size: 0.9rem; }
.pv-offer a { color: var(--ink-soft); }
.pv-offer a:hover { color: var(--accent); }

/* Devanagari takes neither capitals nor wide letter-spacing, which pulls its letters apart */
html[lang="hi"] .btn, html[lang="hi"] .pv-kicker, html[lang="hi"] .eyebrow { letter-spacing: 0.02em; text-transform: none; }

/* birth-time confidence and the optional dossier areas */
.field select { width: 100%; padding: 0.8rem 1rem; font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 0.9rem; }
.field select option { color: #14233b; }
.extras { border: 0; padding: 0; min-inline-size: 0; }
.extras legend { padding: 0; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--ink-soft); }
.extras .check { display: inline-flex; margin-right: 1.5rem; }

/* Every button, link-button and single-line field is a pill (fully oval). */
button, .btn, a.btn, input[type="button"], input[type="submit"], select,
input[type="text"], input[type="date"], input[type="time"], input[type="email"], input[type="search"], input[type="number"], input[type="tel"], input[type="password"],
.chat-form input, .fb-note input, .mt-head select, .admin-tools input, .admin-tools select, .field select { border-radius: 999px !important; }
textarea, .fb-text, .mt-text { border-radius: 1.4rem !important; }
.btn, .chat-form button, .chat-form .btn { padding-inline: 1.9rem; }

/* Elements: fire, earth, air and water, counted from the chart */
.elements { margin: 2.5rem 0 0; text-align: center; }
.el-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.el-list li { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; min-width: 0; }
.el-count { font-family: var(--serif); font-size: 1.3rem; line-height: 1; color: var(--ink-soft); }
.el-list li.lead .el-count { color: var(--accent); }
.el-bar { position: relative; display: flex; align-items: flex-end; width: 2.6rem; height: 9.5rem; padding: 3px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.el-list li.lead .el-bar { border-color: var(--accent); }
.el-bar i { display: block; width: 100%; min-height: 0; border-radius: 999px; background: linear-gradient(0deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent)); transition: height 1.4s cubic-bezier(0.3, 0.7, 0.2, 1); }
.el-list svg { width: 2.1rem; height: 2.1rem; margin-top: 0.4rem; fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.el-list b { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }
.el-list small { font-size: 0.7rem; line-height: 1.35; color: var(--ink-soft); overflow-wrap: anywhere; text-align: center; }
@media (prefers-reduced-motion: reduce) { .el-bar i { transition: none; } }
.el-note { margin: 1.1rem auto 0; max-width: 28rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.5; }
.el-how { margin: 0.6rem auto 0; font-size: 0.78rem; color: var(--ink-soft); }

/* The logo is the menu button, centred; its list opens in the middle of the screen. */
.logo-btn { display: block; margin: 0 auto; padding: 0.4rem; color: var(--accent); background: none; border: 0; cursor: pointer; line-height: 0; }
.logo-btn .logo-mark { margin: 0; }
.logo-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
main > .logo-btn:first-child { margin-bottom: 1rem; }
.nav-dialog { width: min(92vw, 24rem); max-height: 92vh; margin: auto; padding: 1.8rem 1.5rem 1.3rem; overflow-y: auto; color: var(--ink); text-align: center;
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--bg-1);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 1.6rem; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.nav-dialog[open] { animation: nav-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.nav-dialog::backdrop { background: rgba(4, 10, 22, 0.72); backdrop-filter: blur(6px); }
@keyframes nav-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.nav-head { display: grid; justify-items: center; gap: 0.5rem; margin-bottom: 0.9rem; color: var(--accent); }
.nav-head svg { width: 2.6rem; height: 2.6rem; }
.nav-head p { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 1.2rem; letter-spacing: 0.4em; text-indent: 0.4em; color: var(--ink); }
.nav-list { display: grid; gap: 1.1rem; text-align: left; }
.nav-group { display: grid; border-top: 1px solid var(--line); }
.nav-group.about { border-top-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.nav-list a { display: grid; grid-template-columns: 2.2rem 1fr 1.1rem; align-items: center; gap: 0.4rem; padding: 0.5rem 0.2rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); opacity: 0; animation: nav-row 0.6s ease both; animation-delay: calc(0.12s + var(--i, 0) * 0.04s); transition: color 0.3s, padding 0.3s; }
@keyframes nav-row { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.nav-list .n { font-family: var(--serif); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--accent); }
.nav-list .t { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; line-height: 1.2; }
.nav-group.about a .t { font-size: 1.15rem; font-style: italic; color: var(--ink-soft); }
.nav-list a svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translateX(-4px); transition: opacity 0.3s, transform 0.3s; }
.nav-list a:hover, .nav-list a:focus-visible { color: var(--accent); padding-left: 0.5rem; }
.nav-list a:hover svg, .nav-list a:focus-visible svg { opacity: 1; transform: none; }
.nav-list a:focus-visible { outline: none; }
.nav-list a[aria-current="page"] .t { color: var(--accent); }
.nav-close { position: absolute; top: 0.7rem; right: 0.7rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; color: var(--ink-soft); background: none; border: 1px solid var(--line); cursor: pointer; }
.nav-close svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.nav-close:hover { color: var(--accent); border-color: var(--accent); }
html[lang="hi"] .nav-head p { letter-spacing: 0.3em; }
@media (prefers-reduced-motion: reduce) { .nav-dialog[open], .nav-list a { animation: none; opacity: 1; } }
.menu-pill { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem auto 0; padding: 0.45rem 1.1rem; font: inherit; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid var(--accent); border-radius: 999px; cursor: pointer; }
.menu-pill svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.menu-pill:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.menu-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
html[lang="hi"] .menu-pill { letter-spacing: 0; }

/* The page names live in the logo menu now, not on the screen. */
.menu { display: none !important; }

/* Vedic life reading */
.vedic { margin: 3rem 0 0; text-align: center; }
.vd-lede { margin: 0.2rem auto 1.1rem; max-width: 28rem; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); }
.vd-body { display: grid; gap: 0.7rem; margin-top: 1rem; text-align: left; }
.vd-card { display: grid; gap: 0.15rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 1.2rem; }
.vd-card small { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
html[lang="hi"] .vd-card small { letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
.vd-card b { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.25; }
.vd-card p { margin: 0.2rem 0 0; font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft); }
.vd-now { border-color: var(--accent); gap: 0.6rem; }
.vd-now > div { display: grid; gap: 0.1rem; }
.vd-sub { margin: 1.2rem 0 0; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.25rem; color: var(--accent); text-align: center; }
.vd-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 1px solid var(--line); margin-left: 0.6rem; }
.vd-timeline li { position: relative; display: grid; gap: 0.1rem; padding: 0.6rem 0 0.6rem 1.1rem; }
.vd-timeline li::before { content: ""; position: absolute; left: -0.3rem; top: 1.05rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--bg-1); border: 1px solid var(--accent); }
.vd-timeline li.now::before { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.vd-timeline b { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.vd-timeline li.now b { color: var(--accent); }
.vd-timeline span { font-size: 0.8rem; color: var(--ink-soft); }
.vd-timeline small { font-size: 0.85rem; color: var(--ink-soft); }
.vd-area.strong, .vd-area.good { border-color: var(--accent); }
.vd-tabs { max-width: 100%; flex-wrap: wrap; justify-content: center; }

/* Life periods as one slow, thin wave */
.vd-ribbon-wrap { display: grid; gap: 1rem; }
.vd-ribbon { position: relative; padding-top: 1.9rem; }
.vd-wave { display: block; width: 100%; height: auto; overflow: visible; fill: none; color: var(--accent); }
.vd-wseg { cursor: pointer; outline: none; }
.vd-whit { stroke: transparent; stroke-width: 22; stroke-linecap: butt; pointer-events: stroke; }
.vd-wline { stroke: color-mix(in srgb, var(--accent) calc(38% + var(--n, 0) * 14%), transparent); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; animation: vd-draw 3.2s cubic-bezier(0.45, 0, 0.25, 1) both; animation-delay: var(--d, 0s); transition: stroke 0.9s ease, stroke-width 0.9s ease, filter 0.9s ease; }
.vd-wseg:hover .vd-wline, .vd-wseg[aria-pressed="true"] .vd-wline { stroke: var(--accent); stroke-width: 2.4; }
.vd-wseg.now .vd-wline { stroke: var(--accent); stroke-width: 3; filter: drop-shadow(0 0 3px var(--accent)); }
.vd-wseg:focus-visible .vd-wline { stroke: var(--accent); stroke-width: 3.2; filter: drop-shadow(0 0 5px var(--accent)); }
@keyframes vd-draw { 0% { stroke-dashoffset: 1; opacity: 0; } 3% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
.vd-wnow { animation: vd-fade 2.4s ease 2s both; }
.vd-wnow line { stroke: var(--accent); stroke-width: 0.6; stroke-dasharray: 2 2.5; opacity: 0.7; }
.vd-wnow circle { fill: var(--accent); stroke: none; filter: drop-shadow(0 0 5px var(--accent)); animation: vd-breathe 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes vd-breathe { 0%, 100% { transform: scale(0.85); opacity: 0.85; } 50% { transform: scale(1.25); opacity: 1; } }
.vd-tag { position: absolute; top: 0; transform: translateX(-50%); padding: 0.05rem 0.7rem; font-family: var(--serif); font-style: italic; font-size: 0.8rem; white-space: nowrap; color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--bg-1) 85%, transparent); animation: vd-fade 2.4s ease 2s both; }
.vd-labels { position: relative; height: 1.2rem; margin-top: 0.15rem; }
.vd-labels span { position: absolute; transform: translateX(-50%); font-family: var(--serif); font-style: italic; font-size: 0.82rem; white-space: nowrap; color: var(--ink-soft); }
.vd-axis { position: relative; height: 0.9rem; margin-top: 0.1rem; font-size: 0.62rem; letter-spacing: 0.08em; color: color-mix(in srgb, var(--ink-soft) 70%, transparent); }
.vd-axis span { position: absolute; transform: translateX(-50%); }
.vd-axis span:first-child { transform: none; }
.vd-axis span:last-child { transform: translateX(-100%); }
@keyframes vd-fade { from { opacity: 0; } to { opacity: 1; } }
.vd-detail { text-align: left; animation: vd-fade 0.9s ease both; }
.vd-detail.swap { animation: vd-swap 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@keyframes vd-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.vd-list summary { cursor: pointer; font-size: 0.85rem; color: var(--ink-soft); text-align: center; padding: 0.4rem; transition: color 0.6s; }
.vd-list summary:hover { color: var(--accent); }
.vd-list .vd-timeline { margin-top: 0.6rem; }
@media (prefers-reduced-motion: reduce) { .vd-wline { animation: none; stroke-dashoffset: 0; opacity: 1; transition: none; } .vd-wnow, .vd-tag, .vd-wnow circle, .vd-detail, .vd-detail.swap { animation: none; } }

/* A chart that tells its story: planets can be tapped, and the wheel draws itself once */
.wheel-svg .planet, .north-svg .n-planet { cursor: pointer; outline: none; }
.north-svg .n-planet { stroke: transparent; stroke-width: 9px; paint-order: stroke; transition: fill 0.6s ease; }
.wheel-svg .planet-halo { fill: transparent; stroke: transparent; stroke-width: 1; transition: stroke 0.7s ease, fill 0.7s ease; }
.wheel-svg .planet:hover .planet-halo, .wheel-svg .planet:focus-visible .planet-halo { stroke: color-mix(in srgb, var(--accent) 55%, transparent); }
.wheel-svg .planet.selected .planet-halo { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 14%, transparent); filter: drop-shadow(0 0 5px var(--accent)); }
.wheel-svg .planet.selected .planet-glyph, .north-svg .n-planet.selected { fill: var(--accent); }
.north-svg .n-planet:hover, .north-svg .n-planet:focus-visible { fill: var(--accent); }
.planet-card { margin: 1rem auto 0; max-width: 28rem; text-align: left; min-height: 4.2rem; align-content: center; }
.planet-card.hint { border-style: dashed; text-align: center; }
.planet-card.hint p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.planet-card.swap { animation: vd-swap 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.wheel-svg.w-anim .ring, .wheel-svg.w-anim .divider { stroke-dasharray: 1; stroke-dashoffset: 1; animation: w-draw 2.8s cubic-bezier(0.45, 0, 0.25, 1) forwards; animation-delay: calc(var(--i, 0) * 0.25s); }
.wheel-svg.w-anim .divider { animation-delay: 0.9s; }
.wheel-svg.w-anim .sign-glyph, .wheel-svg.w-anim .house-num { animation: w-fade 1.6s ease both 1.6s; }
.wheel-svg.w-anim .aspects { animation: w-fade 2.2s ease both 2.6s; }
.wheel-svg.w-anim .planet, .wheel-svg.w-anim .tick { animation: w-fade 1.6s ease both; animation-delay: calc(2.4s + var(--i, 0) * 0.22s); }
@keyframes w-draw { to { stroke-dashoffset: 0; } }
@keyframes w-fade { from { opacity: 0; } to { opacity: 1; } }
.north-svg.n-anim .frame { stroke-dasharray: 1; stroke-dashoffset: 1; animation: w-draw 2.8s cubic-bezier(0.45, 0, 0.25, 1) forwards; animation-delay: calc(var(--i, 0) * 0.35s); }
.north-svg.n-anim .sign-num { animation: w-fade 1.4s ease both; animation-delay: calc(1.8s + var(--i, 0) * 0.08s); }
.north-svg.n-anim .n-planet, .north-svg.n-anim .n-asc { animation: w-fade 1.6s ease both; animation-delay: calc(2.6s + var(--i, 0) * 0.14s); }
@media (prefers-reduced-motion: reduce) {
  .north-svg.n-anim * { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1; }
  .wheel-svg.w-anim * { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1; }
  .planet-card.swap { animation: none; }
}

/* Area-of-life dial: four arcs, each filled by its verdict */
.vd-dial-wrap { display: grid; gap: 0.9rem; }
.vd-dial-box { position: relative; max-width: 22rem; margin: 0 auto; width: 100%; }
.vd-dial { display: block; width: 100%; height: auto; overflow: visible; fill: none; color: var(--accent); }
.vd-arc { cursor: pointer; outline: none; }
.vd-track { stroke: color-mix(in srgb, var(--ink-soft) 28%, transparent); stroke-width: 6; stroke-linecap: round; }
.vd-fill { stroke: color-mix(in srgb, var(--accent) 70%, transparent); stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray 2.4s cubic-bezier(0.22, 0.61, 0.36, 1), stroke 0.8s ease, stroke-width 0.8s ease, filter 0.8s ease; transition-delay: var(--d, 0s), 0s, 0s, 0s; }
.vd-ahit { stroke: transparent; stroke-width: 34; stroke-linecap: butt; pointer-events: stroke; }
.vd-alabel { font-family: var(--serif); font-style: italic; font-size: 12px; fill: var(--ink-soft); stroke: none; dominant-baseline: central; transition: fill 0.8s ease; }
.vd-arc:hover .vd-fill, .vd-arc:focus-visible .vd-fill { stroke: var(--accent); }
.vd-arc[aria-pressed="true"] .vd-fill { stroke: var(--accent); stroke-width: 8; filter: drop-shadow(0 0 5px var(--accent)); }
.vd-arc[aria-pressed="true"] .vd-alabel { fill: var(--ink); }
.vd-dial-centre { position: absolute; inset: 0; display: grid; place-content: center; gap: 0.15rem; padding: 0 26%; text-align: center; pointer-events: none; }
.vd-dial-centre small { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
html[lang="hi"] .vd-dial-centre small { letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
.vd-dial-centre b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.05rem; line-height: 1.25; }
.vd-detail p { margin: 0.2rem 0 0; }
.vd-detail p span { color: var(--ink-soft); }
.vd-detail p em { font-style: normal; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .vd-fill { transition: none; } }

/* Dial, refined: hairline frame, gradient fills, a bead at the end of each fill */
.vd-track { stroke-width: 1.4; stroke: color-mix(in srgb, var(--ink-soft) 38%, transparent); }
.vd-fill { stroke: url(#dial-grad); stroke-width: 3.2; opacity: 0.85; }
.vd-arc:hover .vd-fill, .vd-arc:focus-visible .vd-fill { stroke: url(#dial-grad); opacity: 1; }
.vd-arc[aria-pressed="true"] .vd-fill { stroke: url(#dial-grad); stroke-width: 4.4; opacity: 1; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 80%, transparent)); }
.vd-end { fill: var(--accent); stroke: var(--bg-1); stroke-width: 1.4; opacity: 0; animation: vd-fade 1.4s ease both; animation-delay: var(--d, 2s); transition: r 0.8s ease, filter 0.8s ease; }
.vd-arc[aria-pressed="true"] .vd-end { r: 4.6px; filter: drop-shadow(0 0 5px var(--accent)); }
.vd-hair { fill: none; stroke: color-mix(in srgb, var(--accent) 35%, transparent); stroke-width: 0.6; }
.vd-hair.faint { stroke-dasharray: 1 3; stroke: color-mix(in srgb, var(--ink-soft) 40%, transparent); }
.vd-ticks { transform-origin: 0 0; animation: vd-turn 360s linear infinite; }
.vd-ticks path { stroke: color-mix(in srgb, var(--ink-soft) 45%, transparent); stroke-width: 0.6; fill: none; }
@keyframes vd-turn { to { transform: rotate(360deg); } }
.vd-alabel { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; font-style: normal; font-family: var(--serif); font-weight: 500; }
html[lang="hi"] .vd-alabel { letter-spacing: 0; text-transform: none; font-size: 12px; }
.vd-dial-centre small { letter-spacing: 0.2em; }
.vd-dial-centre b { font-size: 1.12rem; }
.vd-dial-box::before { content: ""; position: absolute; inset: 8% 14%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 12%, transparent), transparent); pointer-events: none; }
.vd-dial-wrap .vd-detail { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent); }
.vd-dial-wrap .vd-detail small { letter-spacing: 0.2em; }
.vd-dial-wrap .vd-detail > b { font-style: italic; font-weight: 400; font-size: 1.35rem; }
@media (prefers-reduced-motion: reduce) { .vd-ticks, .vd-end { animation: none; } .vd-end { opacity: 1; } }

/* Dial centre: sized to the ring, so the words stay inside it at any width */
.vd-dial-box { container-type: inline-size; }
.vd-dial-centre { padding: 0 33%; gap: 0.1rem; }
.vd-dial-centre small { font-size: 2.7cqw; line-height: 1.25; letter-spacing: 0.1em; }
.vd-dial-centre b { font-size: 4cqw; line-height: 1.2; }
html[lang="hi"] .vd-dial-centre small { font-size: 3.2cqw; }
html[lang="hi"] .vd-dial-centre b { font-size: 4.2cqw; }

/* Element bars: the fill is water, with two slow waves always moving across its surface */
.el-bar { padding: 0; }
.el-bar i { position: relative; border-radius: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--accent) 88%, transparent), color-mix(in srgb, var(--accent) 52%, transparent)); }
.el-bar i.empty { display: none; }
/* the body of the water is alive too: light swirling through it, drifting currents and bubbles rising */
.el-bar i {
  background:
    radial-gradient(circle 3.5px at 50% 50%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.15) 70%, transparent) 0 0 / 31px 63px,
    radial-gradient(circle 2.5px at 50% 50%, rgba(255, 255, 255, 0.7), transparent) 11px 20px / 43px 89px,
    radial-gradient(ellipse 45% 30% at 50% 50%, rgba(255, 255, 255, 0.42), transparent) 0 0 / 60px 80px,
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(255, 255, 255, 0.3), transparent) 30px 40px / 52px 100px,
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(60, 30, 0, 0.22), transparent) 20px 30px / 64px 120px,
    linear-gradient(0deg, color-mix(in srgb, var(--accent) 92%, #3a2200), color-mix(in srgb, var(--accent) 52%, transparent));
  animation: el-flow 11s ease-in-out infinite alternate, el-morph 7s ease-in-out infinite alternate;
}
@keyframes el-flow {
  to { background-position: 14px -126px, -18px -178px, 70px -60px, -50px 90px, -60px 110px, 0 0; }
}
@keyframes el-morph {
  from { background-size: 31px 63px, 43px 89px, 60px 80px, 52px 100px, 64px 120px, 100% 100%; }
  to { background-size: 31px 63px, 43px 89px, 86px 112px, 70px 70px, 90px 90px, 100% 100%; }
}
.el-bar i::before, .el-bar i::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8' preserveAspectRatio='none'%3E%3Cpath d='M0 8V4Q10 0 20 4T40 4V8Z'/%3E%3C/svg%3E") repeat-x 0 0 / 40px 10px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8' preserveAspectRatio='none'%3E%3Cpath d='M0 8V4Q10 0 20 4T40 4V8Z'/%3E%3C/svg%3E") repeat-x 0 0 / 40px 10px;
}
.el-bar i::before { top: -8px; background: color-mix(in srgb, var(--accent) 45%, transparent); animation: el-wave 5.5s linear infinite reverse, el-bob 4.2s ease-in-out infinite; }
.el-bar i::after { top: -5px; background: color-mix(in srgb, var(--accent) 88%, transparent); animation: el-wave 3.6s linear infinite, el-bob 3.1s ease-in-out infinite reverse; }
@keyframes el-wave { to { -webkit-mask-position-x: 40px; mask-position-x: 40px; } }
@keyframes el-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(1.5px); } }
@media (prefers-reduced-motion: reduce) { .el-bar i, .el-bar i::before, .el-bar i::after { animation: none; } }

/* Today's sky strip */
.today-strip { margin: 1.4rem auto 1.4rem; max-width: 28rem; padding: 1rem 1.1rem 0.9rem; text-align: left; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 1.4rem; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent); }
.ts-title { margin: 0 0 0.6rem; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.15rem; text-align: center; color: var(--accent); }
.ts-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.9rem; }
.ts-moon-svg { display: block; width: 3.9rem; height: 3.9rem; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 35%, transparent)); }
.ts-dark { fill: color-mix(in srgb, var(--ink-soft) 16%, transparent); stroke: color-mix(in srgb, var(--ink-soft) 40%, transparent); stroke-width: 0.8; }
.ts-lit { fill: #fffdf4; opacity: 0.95; }
:root[data-theme="light"] .ts-lit { fill: color-mix(in srgb, var(--accent) 55%, #fffdf4); }
.ts-text { display: grid; gap: 0.05rem; min-width: 0; }
.ts-text b { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; line-height: 1.25; }
.ts-text span { font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--ink-soft); }
.ts-text small { margin-top: 0.15rem; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--accent); }
.ts-arc-svg { display: block; width: 6.2rem; height: 6.2rem; overflow: visible; }
.ts-orbit { fill: none; stroke: color-mix(in srgb, var(--ink-soft) 40%, transparent); stroke-width: 0.8; stroke-dasharray: 1 3; stroke-linecap: round; }
.ts-horizon { stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 0.8; }
.ts-body { transition: transform 1.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.ts-s circle:last-child { fill: var(--accent); }
.ts-glow { fill: color-mix(in srgb, var(--accent) 28%, transparent); animation: vd-breathe 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ts-m circle:first-child { fill: #fffdf4; }
.ts-m .ts-cut { fill: var(--bg-1); }
.ts-note { margin: 0.7rem 0 0; font-size: 0.7rem; text-align: center; color: color-mix(in srgb, var(--ink-soft) 80%, transparent); }
@media (max-width: 400px) { .ts-row { grid-template-columns: auto 1fr; } .ts-arc { grid-column: 1 / -1; justify-self: center; } }
@media (prefers-reduced-motion: reduce) { .ts-glow { animation: none; } .ts-body { transition: none; } }

/* Chart page: each part is set apart by space and a small divider, so it is clear where one ends and the next begins */
#result-view > .elements,
#result-view > .vedic,
#result-view > .reading,
#result-view > .planets,
#result-view > .save-chart,
#result-view > .dossier-box { position: relative; margin-top: 4.2rem; padding-top: 2.6rem; }
#result-view > .elements::before,
#result-view > .vedic::before,
#result-view > .reading::before,
#result-view > .planets::before,
#result-view > .save-chart::before,
#result-view > .dossier-box::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(18rem, 70%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 55%, var(--line)) 30%, color-mix(in srgb, var(--accent) 55%, var(--line)) 70%, transparent);
}
#result-view > .elements::after,
#result-view > .vedic::after,
#result-view > .reading::after,
#result-view > .planets::after,
#result-view > .save-chart::after,
#result-view > .dossier-box::after {
  content: ""; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px; transform: translateX(-50%) rotate(45deg);
  background: var(--accent); opacity: 0.8;
}
/* the follow-up bits stay with the part they belong to */
#result-view > .fb-slot { margin-top: 1rem; }
#result-view > .today-strip { margin-bottom: 0.6rem; }
#result-view > .planets { border-top: 0; }

/* The same divider on every page: Days ahead, panchang, the sky ahead, the preview blocks, and the text pages */
#days-pane > .daily,
#days-pane > .panchang-card,
#days-pane > .skynotes,
.pv-block,
.doc section > h2:not(:first-of-type),
.contact-help > h2:not(:first-of-type) { position: relative; margin-top: 4.2rem; padding-top: 2.6rem; border-top: 0; }
#days-pane > .daily { margin-bottom: 0; }
#days-pane > .daily::before, #days-pane > .panchang-card::before, #days-pane > .skynotes::before, .pv-block::before,
.doc section > h2:not(:first-of-type)::before, .contact-help > h2:not(:first-of-type)::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(18rem, 70%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 55%, var(--line)) 30%, color-mix(in srgb, var(--accent) 55%, var(--line)) 70%, transparent);
}
#days-pane > .daily::after, #days-pane > .panchang-card::after, #days-pane > .skynotes::after, .pv-block::after,
.doc section > h2:not(:first-of-type)::after, .contact-help > h2:not(:first-of-type)::after {
  content: ""; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px; transform: translateX(-50%) rotate(45deg); background: var(--accent); opacity: 0.8;
}
.doc section > h2:not(:first-of-type) { margin-bottom: 0.6rem; }

/* Planet strength: seven slim bars in the same water style */
.ps-title { margin: 2rem 0 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.2rem; color: var(--accent); }
.ps-list { grid-template-columns: repeat(7, 1fr); gap: 0.25rem; margin-top: 1rem; }
.ps-list li { gap: 0.3rem; }
.ps-glyph { font-family: var(--serif); font-size: 1.15rem; line-height: 1; color: var(--ink-soft); }
.ps-list li.lead .ps-glyph { color: var(--accent); }
.ps-list .el-bar { width: 1.5rem; height: 6.8rem; }
.ps-list b { font-size: 0.78rem; text-align: center; overflow-wrap: anywhere; }
.ps-list small { min-height: 1.5em; font-size: 0.62rem; line-height: 1.25; text-align: center; color: var(--accent); }
.ps-list .el-bar i::before { top: -7px; }
.ps-list .el-bar i::after { top: -4px; }

/* Gentle page transitions: the page you open rises softly into place */
.pane-in { animation: pane-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@keyframes pane-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pane-in { animation: none; } }

/* Illustrated empty states: a small moon with stars while something loads, a sparkle where there is nothing yet */
.pending::before, .ai-empty::before {
  content: ""; display: block; width: 3.2rem; height: 3.2rem; margin: 0 auto 0.8rem;
  background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent));
  animation: empty-float 7s ease-in-out infinite;
}
.pending::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 6A18 18 0 1 0 42 30A14 14 0 0 1 24 6Z'/%3E%3Cpath d='M38 5Q38 10 43 10Q38 10 38 15Q38 10 33 10Q38 10 38 5Z'/%3E%3Cpath d='M10 7Q10 10 13 10Q10 10 10 13Q10 10 7 10Q10 10 10 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 6A18 18 0 1 0 42 30A14 14 0 0 1 24 6Z'/%3E%3Cpath d='M38 5Q38 10 43 10Q38 10 38 15Q38 10 33 10Q38 10 38 5Z'/%3E%3Cpath d='M10 7Q10 10 13 10Q10 10 10 13Q10 10 7 10Q10 10 10 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ai-empty::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 6Q25 20 38 24Q25 28 24 42Q23 28 10 24Q23 20 24 6Z'/%3E%3Cpath d='M39 5Q39 9 43 9Q39 9 39 13Q39 9 35 9Q39 9 39 5Z'/%3E%3Cpath d='M9 33Q9 37 13 37Q9 37 9 41Q9 37 5 37Q9 37 9 33Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 6Q25 20 38 24Q25 28 24 42Q23 28 10 24Q23 20 24 6Z'/%3E%3Cpath d='M39 5Q39 9 43 9Q39 9 39 13Q39 9 35 9Q39 9 39 5Z'/%3E%3Cpath d='M9 33Q9 37 13 37Q9 37 9 41Q9 37 5 37Q9 37 9 33Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes empty-float { 0%, 100% { transform: translateY(0) rotate(-2deg); opacity: 0.8; } 50% { transform: translateY(-4px) rotate(2deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pending::before, .ai-empty::before { animation: none; } }

/* Year heat-strip: twelve soft cells, deeper colour for more support, the best three ringed in gold */
.vd-year-wrap { display: grid; gap: 0.55rem; }
.vd-year { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.vd-month { display: grid; justify-items: center; gap: 0.35rem; width: 100%; padding: 0; font: inherit; color: var(--ink-soft); background: none; border: 0; cursor: pointer; animation: vd-fade 1.2s ease both; animation-delay: var(--d, 0s); }
.vd-month i { display: block; width: 100%; height: 3.1rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.8s ease, border-color 0.8s ease; }
.vd-month i { background: color-mix(in srgb, var(--accent) calc(10% + var(--lvl, 0.5) * 74%), transparent); }
.vd-month.best i { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent), 0 0 14px color-mix(in srgb, var(--accent) 55%, transparent); }
.vd-month:hover i, .vd-month[aria-pressed="true"] i { transform: translateY(-3px); border-color: var(--accent); }
.vd-month:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 0.6rem; }
.vd-month span { font-size: 0.6rem; letter-spacing: 0.02em; }
.vd-month.best span { color: var(--accent); font-weight: 600; }
.vd-ycap { margin: 0.2rem 0 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.vd-ykey { margin: 0; text-align: center; font-size: 0.7rem; color: color-mix(in srgb, var(--ink-soft) 80%, transparent); }
@media (prefers-reduced-motion: reduce) { .vd-month { animation: none; } }

/* the note that stands in for a Plus page */
.plus-gate { display: grid; justify-items: center; gap: 0.9rem; max-width: 30rem; margin: 3rem auto; padding: 2rem 1.4rem; text-align: center; border: 1px solid var(--line, rgba(138, 106, 43, 0.25)); border-radius: 1.2rem; }
.plus-gate h2 { margin: 0; font-family: "Cormorant Garamond", serif; font-weight: 400; font-size: 1.5rem; }
.plus-gate p { margin: 0; color: var(--ink-soft, inherit); line-height: 1.6; }
