/* SPDX-License-Identifier: AGPL-3.0-or-later */
:root {
  --bg: #faf6ef;
  --surface: #ffffff;
  --text: #221d33;
  --muted: #6a6478;
  --line: #e2dbcf;
  --accent: #b4441f;
  --accent-ink: #ffffff;
  --accent-soft: #fbeee7;
  --band-1: #231c4a;
  --band-2: #4a2a5e;
  --band-ink: #fff8ec;
  --gold: #e3a43a;
  --ok: #2f7d4f;
  --ok-bg: #e5f2ea;
  --warn: #9a6400;
  --warn-bg: #fcf1db;
  --bad: #a3322a;
  --bad-bg: #f9e3e0;
  --hidden-num: #7a5cb8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(34, 29, 51, .06), 0 4px 16px rgba(34, 29, 51, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15131c; --surface: #1f1c29; --text: #eeeaf5; --muted: #a9a3b8; --line: #343044;
    --accent: #ec8a62; --accent-ink: #1b1622; --accent-soft: #3a2620; --band-1: #120f24; --band-2: #2a1838;
    --band-ink: #f6efe3; --gold: #f0b85a; --ok: #7cc79a; --ok-bg: #1d3328; --warn: #e8bd6b;
    --warn-bg: #3a2f17; --bad: #ef8f86; --bad-bg: #3d2220; --hidden-num: #b9a2ee;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
/* The consultation reads as a continuous folio, with the evidence beside the reading. */
.folio { margin: 22px 0; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; overflow: clip; }
.folio-cover { padding: 38px 40px 32px; display: grid; grid-template-columns: 1fr 220px; gap: 36px; align-items: center;
  background: var(--band-1); color: var(--band-ink); }
.folio-kicker { text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 700; margin: 0 0 12px; color: var(--accent); }
.folio-cover .folio-kicker { color: var(--gold); }
.folio-cover h2 { font-family: Georgia, "Nirmala UI", serif; font-size: clamp(28px, 3.3vw, 43px); font-weight: 400; line-height: 1.18; margin: 0 0 18px; }
.folio-cover p:not(.folio-kicker) { max-width: 58ch; opacity: .85; }
.folio-date { font-size: 12px; margin-top: 24px; }
.folio-chart { margin: 0; background: #fffaf1; padding: 13px; border-radius: 3px; color: #221d33; }
.folio-chart svg { width: 100%; height: auto; display: block; }
.folio-chart figcaption { text-align: center; font-size: 11px; margin: 9px 0 2px; }
.folio-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 16px 32px; border-bottom: 1px solid var(--line); background: var(--bg); }
.folio-nav a { font-size: 13px; color: var(--text); text-decoration-color: var(--line); text-underline-offset: 5px; }
.folio-section { padding: 34px 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.folio-section:last-child { border: 0; }
.folio-section > h2 { font: 400 28px/1.3 Georgia, "Nirmala UI", serif; margin: 0 0 18px; }
.folio-lead { font-size: 17px; line-height: 1.8; max-width: 78ch; }
.folio-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 24px 0; }
.folio-themes > div { border-left: 2px solid var(--gold); padding-left: 18px; }
.folio-themes h3 { margin: 0 0 8px; font-size: 14px; }
.folio-themes p { font-size: 14px; color: var(--muted); margin: 0; }
.folio-current { border-block: 1px solid var(--line); padding: 16px 0; margin: 24px 0; }
.folio-current > span { font-size: 12px; color: var(--accent); font-weight: 700; }
.folio-current > p { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.folio-window { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: baseline; gap: 12px; font-size: 13px; padding: 9px 0; }
.folio-window > :last-child { text-align: right; color: var(--muted); }
.folio-window span { overflow-wrap: anywhere; }
.folio-ai { display: flex; align-items: center; gap: 26px; margin: 28px 0 0; }
.folio-ai > div { flex: 1; }
.folio-ai h3 { font-size: 17px; margin: 0; }
.folio-ai .hint { margin: 8px 0 0; }
.folio-ai button { background: var(--accent); color: var(--accent-ink); border: 0; padding: 12px 18px; border-radius: 6px; font-size: 14px; font-weight: 600; max-width: 240px; }
.folio-ai button:disabled { opacity: .6; cursor: wait; }
.ai-picker { max-width: 390px; font-size: 13px; margin: 16px 0; }
.ai-picker select { font-size: 14px; min-height: 42px; }
.folio-index { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-bottom: 30px; }
.folio-index a { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 14px; }
.folio-index a span { color: var(--accent); font-size: 12px; min-width: 22px; }
.folio-index a:hover { color: var(--accent); }
.folio-chapter { border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.folio-chapter > summary { display: flex; gap: 18px; align-items: center; padding: 20px 0; cursor: pointer; font-size: 19px; font-weight: 600; list-style: none; }
.folio-chapter > summary::after { content: "+"; margin-left: auto; font-weight: 400; color: var(--accent); }
.folio-chapter[open] > summary::after { content: "−"; }
.folio-chapter small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.folio-number { color: var(--accent); font: 22px Georgia, serif; min-width: 32px; }
.folio-chapter-body { padding: 0 0 26px 50px; }
.folio-chapter-body > .folio-lead { margin-top: 0; }
.folio-balance { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 26px 0 18px; }
.folio-balance h4 { font-size: 12px; letter-spacing: .04em; border-bottom: 2px solid var(--line); padding-bottom: 10px; margin: 0; }
.folio-balance > :first-child h4 { border-color: var(--ok); }
.folio-balance > :last-child h4 { border-color: var(--gold); }
.folio-evidence { list-style: none; padding: 0; margin: 0; }
.folio-evidence li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.folio-evidence p { margin: 0 0 5px; font-size: 13px; line-height: 1.7; }
.folio .src { font-size: 11px; }
.folio-chapter-body > details { margin: 14px 0; font-size: 14px; }
.folio details summary { cursor: pointer; }
.folio-yoga { padding: 24px 0; border-top: 1px solid var(--line); }
.folio-yoga-heading { display: flex; align-items: baseline; gap: 18px; justify-content: space-between; }
.folio-yoga-heading h3 { margin: 0; font-size: 21px; font-family: Georgia, "Nirmala UI", serif; font-weight: 400; }
.folio-yoga-heading span { color: var(--muted); font-size: 12px; }
.folio-yoga > p { max-width: 80ch; }
.folio-match { border-left: 2px solid var(--line); padding: 4px 0 4px 20px; margin: 22px 0; font-size: 14px; }
.folio-match h4 { color: var(--accent); margin: 0; }
.folio-match ul { padding-left: 18px; line-height: 1.8; }
.folio-period { border-top: 1px solid var(--line); padding: 6px 0; }
.folio-period > summary { list-style: none; }
.folio-period[open] { border-left: 2px solid var(--gold); padding-left: 16px; }
.folio-period p, .folio-period li { font-size: 13px; }
.folio-narration { border-left: 2px solid var(--accent); padding: 6px 0 6px 20px; margin: 24px 0; }
.folio-narration h4 { color: var(--accent); font-size: 12px; margin: 0; }
.folio-narration p { font-size: 15px; line-height: 1.85; }
.folio-narration summary { font-size: 12px; color: var(--muted); }
.report-appendix > summary { font-weight: 600; cursor: pointer; }
@media (max-width: 680px) {
  .folio-cover { padding: 26px 22px; grid-template-columns: 1fr; gap: 20px; }
  .folio-chart { width: 180px; }
  .folio-section { padding: 28px 20px; }
  .folio-section > h2 { font-size: 25px; }
  .folio-nav { padding: 16px 20px; gap: 10px 18px; }
  .folio-index, .folio-balance, .folio-themes { grid-template-columns: 1fr; gap: 16px; }
  .folio-ai { align-items: stretch; flex-direction: column; gap: 16px; }
  .folio-ai button { max-width: none; }
  .folio-chapter-body { padding-left: 0; }
  .folio-chapter > summary { font-size: 17px; gap: 12px; }
  .folio-window { grid-template-columns: 1fr 1fr; gap: 5px 12px; }
  .folio-window > :last-child { grid-column: 1 / -1; text-align: left; }
  .folio-yoga-heading { align-items: flex-start; }
}
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif; }
.band { background: linear-gradient(135deg, var(--band-1), var(--band-2)); color: var(--band-ink); }
.top, main, footer { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.top { position: relative; padding-top: 22px; padding-bottom: 26px; display: flex; gap: 14px; align-items: center; }
.logo { width: 52px; height: 52px; flex: none; color: var(--gold); }
.top h1 { margin: 0; font-size: 28px; letter-spacing: .2px; padding-right: 150px; }
.top .sub { margin: 2px 0 0; color: var(--band-ink); opacity: .85; }
.lang { position: absolute; top: 22px; right: 16px; display: flex; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; overflow: hidden; }
.lang button { background: transparent; border: 0; padding: 6px 14px; color: var(--band-ink); font-size: 14px; }
.lang button[aria-pressed=true] { background: var(--gold); color: #231c4a; font-weight: 700; }
html[lang=hi] body { font-family: "Nirmala UI", "Noto Sans Devanagari", "Mangal", system-ui, sans-serif; }
.hint { color: var(--muted); font-size: 13px; font-weight: 400; }
.req { color: var(--accent); font-size: 12px; font-weight: 400; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  margin: 18px 0; box-shadow: var(--shadow); }
form.card { max-width: 860px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px 18px; }
label { display: block; font-weight: 600; font-size: 15px; margin: 10px 0; }
input, select { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; min-height: 46px; }
input:focus, select:focus, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 1px; border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.check input { width: 20px; min-height: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
button { font: inherit; cursor: pointer; }
button[type=submit] { margin-top: 18px; padding: 13px 30px; background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 12px; font-weight: 700; font-size: 17px; box-shadow: 0 2px 6px rgba(180, 68, 31, .3); }
button[type=submit]:hover { filter: brightness(1.06); }
@media (max-width: 520px) { button[type=submit] { width: 100%; } }
.adv summary { cursor: pointer; font-weight: 600; margin-top: 10px; }
.adv h3 { font-size: 15px; margin: 16px 0 0; }
.combo { position: relative; }
.list { position: absolute; z-index: 5; left: 0; right: 0; margin: 2px 0 0; padding: 4px 0; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; max-height: 260px; overflow: auto; }
.list li { padding: 6px 10px; cursor: pointer; font-weight: 400; }
.list li[aria-selected=true], .list li:hover { background: var(--bg); }
.error { color: var(--bad); min-height: 1em; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 8px; }
.tabs button { background: none; border: 0; padding: 10px 16px; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs button[aria-selected=true] { color: var(--text); border-color: var(--accent); font-weight: 600; }
h2 { font-size: 18px; margin: 0 0 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat .k { color: var(--muted); font-size: 13px; }
.stat .v { font-size: 20px; font-weight: 700; }
.stat .s { font-size: 13px; color: var(--muted); }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.charts figure { margin: 0; }
.charts figcaption { font-weight: 600; margin-bottom: 6px; }
.chart { width: 100%; max-width: 440px; height: auto; display: block; }
.chart .frame, .chart .cell { fill: var(--surface); stroke: var(--text); stroke-width: 1.5; }
.chart .line { fill: none; stroke: var(--text); stroke-width: 1.5; }
.chart .asc { stroke: var(--accent); stroke-width: 2; }
.chart .num { fill: var(--muted); }
.chart .pl { fill: var(--text); font-weight: 600; }
.chart .title { fill: var(--muted); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-bad { background: var(--bad-bg); color: var(--bad); }
.note { background: var(--warn-bg); color: var(--text); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.bar { height: 8px; background: var(--line); border-radius: 4px; min-width: 80px; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
details.dasha summary { cursor: pointer; padding: 6px 0; }
details.dosha { border-top: 1px solid var(--line); padding: 8px 0; }
details.dosha summary { cursor: pointer; }
details.dosha[open] summary { margin-bottom: 8px; }
td.wrap { white-space: normal; min-width: 260px; }
h3 { font-size: 15px; margin: 18px 0 6px; }
label.inline { display: flex; gap: 8px; align-items: center; max-width: 520px; }
label.inline select { margin: 0; }
.tabs .pdf { margin-left: auto; color: var(--accent); font-weight: 600; border: 1px solid var(--accent);
  border-radius: 8px; padding: 6px 14px; margin-bottom: 6px; }
.tabs .pdf:disabled { opacity: .6; cursor: wait; }
#varga-info { align-self: center; }
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
fieldset.partner { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px 12px; margin: 0; min-width: 0; }
fieldset.partner legend { font-weight: 700; padding: 0 6px; }
.verdict-good { color: var(--ok); }
.verdict-bad { color: var(--bad); }
.src { color: var(--muted); font-size: 12px; white-space: normal; }
tr.picked-row td { background: var(--ok-bg); }
.show-combo { padding: 2px 10px; margin: 0; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; margin-top: -14px; position: relative; }
.modes button { background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: var(--radius);
  padding: 16px; text-align: left; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 2px;
  box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.modes button:hover { transform: translateY(-1px); border-color: var(--accent); }
.modes .m-icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; }
.modes .m-icon svg { width: 24px; height: 24px; }
.modes .m-title { font-size: 17px; font-weight: 700; }
.modes .m-sub { font-size: 13px; color: var(--muted); }
.modes button[aria-selected=true] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.modes button[aria-selected=true] .m-sub { color: var(--accent-ink); opacity: .9; }
.modes button[aria-selected=true] .m-icon { background: rgba(255, 255, 255, .2); color: var(--accent-ink); }
/* Plain-language summary */
.simple h2 { font-size: 24px; margin-bottom: 14px; }
.simple h3 { font-size: 18px; margin: 22px 0 6px; }
.answer { display: grid; grid-template-columns: 28px 1fr; gap: 4px 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.answer:first-of-type { border-top: 0; }
.answer .dot { width: 18px; height: 18px; border-radius: 50%; margin-top: 3px; background: var(--line); }
.dot.green { background: var(--ok); } .dot.amber { background: var(--warn); } .dot.red { background: var(--bad); } .dot.grey { background: var(--line); }
.answer .q { font-weight: 600; } .answer .a { font-weight: 700; }
.answer .why { grid-column: 2; color: var(--muted); font-size: 14px; }
.verdict { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); margin: 4px 0 12px; }
.verdict.green { background: var(--ok-bg); } .verdict.amber { background: var(--warn-bg); } .verdict.red { background: var(--bad-bg); }
.verdict .big { font-size: 22px; font-weight: 800; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px; }
.fact { border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 14px 16px; background: var(--bg); }
.fact .k { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.fact .v { font-size: 23px; font-weight: 800; margin-top: 2px; }
.fact .why { font-size: 13px; color: var(--muted); margin-top: 4px; }
.reading-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.reading { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 14px; background: var(--bg); }
.reading h4 { margin: 0 0 4px; font-size: 16px; }
.reading p { margin: 0 0 6px; }
button.more { margin-top: 10px; background: none; border: 1px solid var(--accent); color: var(--accent); border-radius: 8px; padding: 8px 16px; font-weight: 600; }
button.secondary { background: none; border: 1px dashed var(--line); border-radius: 8px; padding: 6px 14px; color: var(--text); margin-top: 4px; }
.event-row { display: grid; grid-template-columns: 1fr 170px 36px; gap: 8px; margin: 6px 0; align-items: center; }
.event-row select, .event-row input { margin: 0; }
.event-row .remove { background: none; border: 1px solid var(--line); border-radius: 8px; height: 36px; color: var(--muted); }
@media (max-width: 520px) { .event-row { grid-template-columns: 1fr 36px; } .event-row input { grid-column: 1; } .event-row .remove { grid-row: 1; grid-column: 2; } }
.timeline { position: relative; margin: 8px 0 16px; }
.timeline figcaption { font-weight: 600; margin-bottom: 4px; }
.tl { width: 100%; height: auto; display: block; }
.tl .band-a { fill: var(--bg); }
.tl .band-b { fill: var(--surface); }
.tl .grid { stroke: var(--line); stroke-width: 1; }
.tl .axis { fill: var(--muted); font-size: 11px; }
.tl .tl-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tl .tl-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.tl .cross { stroke: var(--muted); stroke-width: 1; }
.tl .hit { fill: transparent; cursor: crosshair; }
.timeline .tip { position: absolute; top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 10px; font-size: 13px; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,.12); white-space: nowrap; }
.loshu { display: grid; grid-template-columns: repeat(3, 1fr); width: min(330px, 100%); border: 2px solid var(--text); }
.loshu div { aspect-ratio: 1; border: 1px solid var(--line); display: flex; flex-direction: column;
  align-items: center; justify-content: center; position: relative; }
.loshu .cellno { position: absolute; top: 4px; left: 6px; font-size: 11px; color: var(--muted); }
.loshu .digits { font-size: 24px; font-weight: 700; letter-spacing: 2px; }
.loshu .digits .h { color: var(--hidden-num); }
.loshu .empty { color: var(--muted); font-size: 13px; }
.legend { font-size: 13px; color: var(--muted); }
.legend .h { color: var(--hidden-num); font-weight: 700; }
footer { color: var(--muted); font-size: 13px; padding-top: 24px; padding-bottom: 32px; }
@media (max-width: 520px) {
  .top { flex-wrap: wrap; padding-top: 64px; }
  .top h1 { font-size: 23px; padding-right: 0; }
  .logo { width: 42px; height: 42px; }
  .card { padding: 16px; }
  th, td { padding: 6px; }
}

/* ---------- life report and numerology summary ---------- */
.dot.violet { background: var(--hidden-num); }
.sum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; margin-bottom: 8px; }
.sum { border-radius: 12px; padding: 12px 14px; }
.sum.good { background: var(--ok-bg); } .sum.care { background: var(--bad-bg); }
.sum h3 { margin: 0 0 6px; font-size: 16px; }
.sum.good h3 { color: var(--ok); } .sum.care h3 { color: var(--bad); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 15px; }
.todos { list-style: none; margin: 0; padding: 0; }
.todo { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.todo:first-child { border-top: 0; }
.todo .dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 5px; }
.todo .why-line { color: var(--muted); font-size: 14px; }
.todo .do { font-weight: 500; }
.mantra { font-size: 14px; margin-top: 2px; }
details.area { border-top: 1px solid var(--line); padding: 10px 0; }
details.area summary { cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 17px; list-style: none; }
details.area summary::-webkit-details-marker { display: none; }
details.area summary::after { content: "▸"; margin-left: auto; color: var(--muted); }
details.area[open] summary::after { content: "▾"; }
details.area summary .dot { width: 16px; height: 16px; border-radius: 50%; flex: none; }
details.area summary .q { font-weight: 600; } details.area summary .a { font-weight: 700; }
.reasons { list-style: none; padding: 0; margin: 10px 0; }
.reasons li { position: relative; padding: 4px 0 4px 26px; }
.reasons li::before { position: absolute; left: 4px; top: 4px; font-weight: 700; }
.reasons li.plus::before { content: "✓"; color: var(--ok); }
.reasons li.minus::before { content: "✗"; color: var(--bad); }
.reasons li.zero::before { content: "•"; color: var(--muted); }
.when { margin: 8px 0 0; }
.periods { list-style: none; padding: 0; margin: 0; }
.periods li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.periods li:first-child { border-top: 0; }
.periods li.now { background: var(--accent-soft); border-radius: 10px; padding: 10px 8px; }
.periods .dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; }
.periods .why { color: var(--muted); font-size: 14px; }
.numcard { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.numcard:first-of-type { border-top: 0; }
.numcard h3 { margin: 0 0 4px; font-size: 17px; }
.numcard p { margin: 0 0 4px; }
.big-n { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 30px; font-weight: 800;
  background: var(--accent-soft); color: var(--accent); }

/* ---------- numerology reliability ---------- */
.reliability { border-left: 4px solid var(--warn); }
.reliability dl { margin: 0; }
.reliability dt { font-weight: 700; margin-top: 10px; }
.reliability dd { margin: 2px 0 0; }
.common { font-size: 14px; color: var(--text); margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-size: 12px; border-radius: 999px; padding: 1px 10px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
.tag.t-own, .tag.t-nobasis, .tag.t-inferred { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.tag.t-tested { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.tag.t-older, .tag.t-book1926 { background: var(--ok-bg); color: var(--ok); border-color: transparent; }

/* ---------- ask about my chart ---------- */
.ask .ideas { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.ask .idea { background: var(--accent-soft); color: var(--accent); border: 1px solid transparent; border-radius: 999px;
  padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.ask .idea:hover { border-color: var(--accent); }
.ask-log .turn { border-top: 1px solid var(--line); padding: 10px 0; }
.ask-log .you { font-weight: 600; margin-bottom: 4px; }
.ask-row { display: flex; gap: 8px; align-items: flex-end; }
.ask-row textarea { flex: 1; min-width: 0; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); resize: vertical; }

/* ---------- birth star in the Vedas ---------- */
.vedic .verse { font-size: 20px; line-height: 1.7; margin: 4px 0; color: var(--accent); }

/* ---------- Book a pandit ---------- */
.market .acct { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; font-size: 14px; color: var(--muted); }
button.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }
.subnav { margin: 8px 0 14px; }
.pandits { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.pandit, .booking { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); margin-bottom: 12px; }
.p-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.p-head h2, .p-head h3 { margin: 0; }
.p-meta { color: var(--muted); font-size: 14px; margin-top: 4px; overflow-wrap: anywhere; }
.p-price { margin: 8px 0; }
.stars { color: var(--gold); font-weight: 700; }
.market .facts .fact .v { font-size: 16px; font-weight: 600; }
.card-inner { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 8px; }
.market textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.check.inline { display: inline-flex; margin: 4px 14px 4px 0; }
.market fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; }
.offers input[type=number] { width: 7em; }
.daylist { padding-left: 18px; }
.daylist li { margin: 6px 0; }
.daylist .src { font-size: 12px; color: var(--muted); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin: 2px; font-size: 13px; }
.note.ok { background: var(--ok-bg); }
.review { border-top: 1px solid var(--line); padding: 8px 0; }
.mk-signin { max-width: 640px; }
.badge.green { background: var(--ok-bg); color: var(--ok); } .badge.amber { background: var(--warn-bg); color: var(--warn); }
.badge.grey { background: var(--line); color: var(--muted); }

/* ---------- saved charts, install bar, offline note ---------- */
.profiles .p-head { margin-bottom: 4px; }
.prof-list { list-style: none; padding: 0; margin: 8px 0 0; }
.prof-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.prof-list .prof-name { font-weight: 700; }
.prof-list .acts { margin: 0 0 0 auto; }
.filebtn { display: inline-block; border: 1px dashed var(--line); border-radius: 8px; padding: 6px 14px; margin-top: 4px; cursor: pointer; }
.install { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; background: var(--accent-soft); font-size: 14px; }
.install[hidden] { display: none; }
.offline-note { display: none; margin: 0; padding: 8px 16px; text-align: center; background: var(--warn-bg); font-size: 14px; }
body.offline .offline-note { display: block; }

/* ---------- privacy, terms, complaints pages ---------- */
.legal { max-width: 860px; margin: 16px auto; }
.legal h2 { margin-top: 22px; }
.legal td, .legal th { white-space: normal; vertical-align: top; }
a.home { color: inherit; text-decoration: none; }
.mk-loc-row { margin: 8px 0; grid-column: 1 / -1; }

/* ---------- Prashna answer ---------- */
.p-answer .q { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.p-answer .verdict { border-radius: var(--radius); padding: 14px 16px; margin: 8px 0; }
.p-answer .verdict.green { background: var(--ok-bg); } .p-answer .verdict.amber { background: var(--warn-bg); }
.p-answer .verdict.red { background: var(--bad-bg); } .p-answer .verdict.grey { background: var(--bg); border: 1px solid var(--line); }
.p-answer .v-word { font-size: 26px; font-weight: 800; }
.why-list { padding-left: 0; list-style: none; }
.why-list li { padding: 6px 0 6px 24px; border-top: 1px solid var(--line); position: relative; }
.why-list li::before { position: absolute; left: 4px; font-weight: 800; }
.why-list li.plus::before { content: "+"; color: var(--ok); } .why-list li.minus::before { content: "−"; color: var(--bad); }
.why-list li.zero::before { content: "·"; color: var(--muted); }
.why-list .src { font-size: 12px; color: var(--muted); }
/* Connected consultation: keep the reading quiet and evidence easy to inspect. */
.folio-evidence-drawer, .folio-context { margin: 1rem 0; border-top: 1px solid #ded5c5; padding-top: .8rem; }
.folio-evidence-drawer > summary, .folio-context > summary { font-weight: 650; cursor: pointer; }
.folio-reflection { border-left: 3px solid #b4441f; padding: .2rem 1.2rem; margin: 1.2rem 0; background: #faf5eb; }
.folio-reflection h4 { margin-bottom: .45rem; }
.folio-narration > p { max-width: 76ch; line-height: 1.85; }
#historical-library { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #ded5c5; }

/* The personal reading leads; technical details stay within reach. */
.reader-prose { max-width: 74ch; font-size: 18px; line-height: 1.9; }
.reader-prose p { margin: 0 0 1.1em; }
.reader-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 32px 0; }
.reader-takeaway { padding: 22px 20px; background: #faf6ee; border-top: 3px solid #b4441f; }
.reader-takeaway h3 { margin: 0 0 12px; font-size: 19px; }
.reader-takeaway p { margin: 0; line-height: 1.8; font-size: 15px; }
.reading-progress { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin: 12px 0 24px; }
.reading-progress:has(#narration-status:empty):has(button[hidden]) { display: none; }
.reader-summary-sources { font-size: 14px; color: var(--muted); margin-top: 24px; }
.reader-summary-sources > summary { cursor: pointer; }
@media (max-width: 800px) { .reader-highlights { grid-template-columns: 1fr; gap: 14px; } .reader-prose { font-size: 17px; } }
