* { box-sizing:border-box; }
  body { margin:0; background:var(--cream); color:var(--ink);
         font-family:var(--font-sans); font-size:15px; line-height:1.6; }
  /* Grid and flex children default to min-width:auto, which lets a wide table
     push the whole page sideways. This is the rule the signed-in mockup was
     missing on all seventeen routes. */
  .l-wrap > *, .l-sec > * { min-width:0; }
  .l-wrap { max-width:var(--wrap); margin:0 auto; padding:0 16px; }
  .l-sec { padding:38px 0; }
  .l-alt { background:var(--surface-2); border-block:1px solid var(--line-soft); }
  .l-sub { font-size:var(--text-base); line-height:1.62; color:var(--ink-2);
           margin:0; max-width:66ch; }
  /* A link in a lede had no colour and came out in the browser's own
     -webkit-link — rgb(158,158,255) in dark, #0000EE in light. .l-sub is on
     every page, so this was one page today and any page that adds a link to a
     lede tomorrow. Set here rather than on the page that happened to have
     one. */
  .l-sub a { color:var(--gold-dk); text-underline-offset:2px; }
  /* A CENTRED SECTION, for pages whose head is centred too. Lives here rather
     than in a page's stylesheet because two clusters use it now — it was
     .ai-c in ai_astrologer.py, and pages/dasha.py picked up the class without
     the rule, so its ledes rendered left under centred heads and looked like
     an oversight. margin-inline is not optional: .l-sub caps at 66ch, so
     centring the text without centring the box leaves a centred column
     sitting on the left of the wrap.
     Only the lede. Lists, tables and cards inside a .l-ctr stay left —
     centred body copy is ragged on both edges and a centred bulleted list
     stops forming a column to scan. */
  .l-ctr .l-sub { text-align:center; margin-inline:auto; }
  /* TWO LEDES GO SIDE BY SIDE. One is fine stacked: 66ch keeps a line
     readable and the grid or panel under it carries the width. Two of them
     stacked is not — they fill the left half of the band, the right half is
     empty, and under a full-width heading with a full-width panel below it
     the pair reads as a column that has been cut off rather than as air.
     Measured at 1280: 582px of a 1180px section, 49% of it, twice over.

     A track each, so both keep the SAME measure they had — this is a layout
     fix, not a wider line. Stretching one paragraph across 1180px would give
     150 characters to a line that is already at 74.

     auto-fit rather than two fixed columns, because the home page has a pair
     inside a half-width column; there they stack again rather than becoming
     two forty-character ribbons.

     .l-sub KEEPS ITS 66ch. Each track comes out at 552px against a 582px
     cap, so the track is what governs in two columns and the cap is what
     governs when it falls back to one — which is the width it has today.
     Overriding the cap to none looked tidier and gave a 736px tablet a
     93-character line, which is the fault this rule exists to avoid.

     min(400px, 100%), NOT 400px. A minimum track wider than the container
     does not shrink — it overflows it, and at 320px the whole page scrolled
     sideways by 26px. min() caps the floor at whatever room there is. */
  .l-lede { display:grid; gap:10px 44px; margin-bottom:20px;
            grid-template-columns:repeat(auto-fit, minmax(min(400px, 100%), 1fr)); }
  .l-mb { margin-bottom:20px; }
  .l-mt { margin-top:22px; }
  /* ── the header's two menus (language, account) ─────── */
  .c-dd { position:relative; }
  .c-dd > summary { list-style:none; }
  .c-dd > summary::-webkit-details-marker { display:none; }
  /* The theme toggle's size and shape (ui .c-th-t), so the three read as
     one set: 34px under a mouse, 44px under a finger. */
  .c-dd-b { display:grid; place-items:center; width:34px; height:34px; border-radius:10px;
            border:1px solid var(--line); background:var(--surface); color:var(--ink-2);
            cursor:pointer; }
  @media (pointer:coarse) { .c-dd-b { width:44px; height:44px; border-radius:12px; } }
  .c-dd-b:hover, .c-dd[open] > .c-dd-b { border-color:var(--gold); color:var(--gold-dk); }
  .c-dd-aa { font-size:13px; font-weight:700; letter-spacing:-.02em; }
  .c-dd-m { position:absolute; top:calc(100% + 8px); left:50%; transform:translateX(-50%); z-index:60;
            min-width:170px; padding:6px; border-radius:12px; border:1px solid var(--line);
            background:var(--surface); box-shadow:0 10px 30px rgba(0,0,0,.14);
            display:flex; flex-direction:column; gap:2px; }
  .c-dd-r { left:auto; right:0; transform:none; }
  .c-dd-i { display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:8px;
            min-height:44px; box-sizing:border-box;
            font-size:14.5px; color:var(--ink); text-decoration:none; white-space:nowrap; }
  .c-dd-i i { font-style:normal; width:18px; text-align:center; color:var(--ink-3); }
  .c-dd-i:hover { background:var(--gold-bg); }
  .c-dd-i.c-on { color:var(--gold-dk); font-weight:650; }
  .c-dd-i.c-on i { color:var(--gold-dk); }
  .l-act-u { display:flex; align-items:center; gap:8px; }
  /* Theme, language, account and the menu at 320px ran the menu button
     to the screen's edge, into the 16px gutter every page keeps. */
  @media (max-width:359px) { .l-act-u { gap:2px; } }
  /* The drawer's sign-in card (design A, 6 Nov 2026). Below 360px the
     account icon also leaves the header for it. */
  .c-drawer-acct { display:flex; flex-direction:column; gap:10px; margin:8px 0 14px; padding:14px;
                   border-radius:14px; background:var(--gold-bg); border:1px solid var(--gold-lt); }
  .c-drawer-acct > b { font-size:16px; color:var(--ink); }
  .c-drawer-acct > span:not(.c-drawer-acct-b) { margin-top:-8px; font-size:13px; line-height:18px; color:var(--ink-2); }
  .c-drawer-acct-b { display:flex; gap:8px; }
  .c-drawer-acct-b a { flex:1; display:grid; place-items:center; min-height:44px; border-radius:10px;
                       font-size:14.5px; font-weight:700; text-decoration:none; text-align:center; }
  .c-da-in { background:var(--gold-solid); color:var(--gold-solid-text); }
  .c-da-up { background:var(--surface); color:var(--ink); border:1px solid var(--line); }
  :root[lang="hi"] .c-drawer-acct > span:not(.c-drawer-acct-b) { font-size:14.5px; line-height:21px; }
  @media (max-width:359px) {
    .c-top-r:has(.l-lang) .l-acct { display:none; }
  }
  /* THE THEME, AT THE DRAWER'S FOOT, the pill from design B (Rohit, 6 Nov
     2026): it leaves the bar wherever there is a drawer. !important because
     the toggle's own theme rules (ui.py: :root[data-theme] and the
     #th-*:checked ones) outrank this and put the button back the moment a
     theme was chosen (Rohit, 6 Nov 2026: no theme button in the header). */
  @media (max-width:989px) { .l-act-u .c-th-t { display:none !important; } }
  .c-thp-l { font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-3); }
  :root[lang="hi"] .c-thp-l { font-size:14px; letter-spacing:0; }
  .c-thp { --thp-on:#8A1F17; --thp-on-t:#FFF6E6; display:flex; align-self:stretch; padding:3px; border-radius:22px;
           background:var(--surface); border:1.5px solid var(--gold-lt); }
  :root[data-theme="dark"] .c-thp, #th-dark:checked ~ * .c-thp { --thp-on:var(--gold-solid); --thp-on-t:var(--gold-solid-text); }
  .c-thp-o { flex:1; display:flex; align-items:center; justify-content:center; gap:7px; min-height:40px;
             border-radius:20px; cursor:pointer; font-size:14.5px; font-weight:800; color:var(--ink-2);
             -webkit-tap-highlight-color:transparent; }
  .c-thp-o svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.9;
                 stroke-linecap:round; stroke-linejoin:round; }
  .c-thp-li, :root[data-theme="dark"] .c-thp-dk, #th-dark:checked ~ * .c-thp-dk { background:var(--thp-on); color:var(--thp-on-t); }
  :root[data-theme="dark"] .c-thp-li, #th-dark:checked ~ * .c-thp-li { background:transparent; color:var(--ink-2); }
  #th-light:checked ~ * .c-thp-li { background:var(--thp-on); color:var(--thp-on-t); }
  #th-light:checked ~ * .c-thp-dk { background:transparent; color:var(--ink-2); }
  .c-thp-legal { align-self:center; font-size:12.5px; color:var(--ink-3); text-align:center; }
  .c-thp-legal a { color:var(--gold-dk); }
  /* Date and time are one question, asked once. Both values are short enough
     to sit side by side even at 360px, and pairing them stops the form
     reading as five separate chores. */
  /* Date and time side by side, and STACKED on the narrowest phones. The two
     were always a 1fr 1fr grid; what changed is that the time trigger now
     reads 09:15 PM as four flex spans rather than one string, so its
     min-content is wider than half of a 288px card and the card grew to 311 —
     7px of sideways scroll on the page the whole site links to. minmax(0,1fr)
     alone would have kept the row and clipped the readout instead. */
  .l-dt { display:grid; grid-template-columns:1fr; gap:10px; }
  @media (min-width:360px) {
    .l-dt { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  }
  /* Part of the hero's left column, not a band of its own. It anchors the
     bottom of that column so it finishes level with the form card. */
  /* Inside the form card the list sits under the button, separated by a rule
     rather than by more whitespace — it is what pressing the button gets you,
     so it should read as part of the button's promise. */
  .l-cardsub { margin:2px 0 14px; }
  .l-cardinc { margin-top:14px; padding-top:14px;
               border-top:1px solid var(--line-soft); }
  .l-inc { list-style:none; margin:0; padding:0; display:grid; gap:9px; }
  .l-inc li { display:flex; align-items:flex-start; gap:9px; }
  .l-inc svg { flex:none; margin-top:2px; color:var(--gold-dk); }
  .l-inc span { font-size:14px; line-height:1.45; color:var(--ink-2); }

  .l-samp { display:flex; align-items:center; gap:13px; padding:14px 16px;
            text-decoration:none; color:var(--ink); border:1px solid var(--line);
            border-radius:var(--r-card); background:var(--surface); }
  .l-samp:hover { border-color:var(--gold); background:var(--gold-bg); }
  /* Between the two-column breakpoint and 1024 the left column runs 9px past
     the card, because the headline takes an extra line before the columns are
     wide enough. Four pixels off the padding and four off the stack gap close
     it without anyone being able to tell the difference. */

  .l-samp > svg:first-child { flex:none; color:var(--gold-dk); }
  .l-samp > svg:last-child { flex:none; color:var(--ink-3); margin-left:auto; }
  .l-samp span { min-width:0; }
  .l-samp b { display:block; font-size:14.5px; font-weight:700; }
  .l-samp i { display:block; font-style:normal; font-size:12.5px;
              color:var(--ink-3); margin-top:2px; line-height:1.45; }
  .l-dt .c-pf { margin-bottom:0; }
  .l-dth { margin:6px 0 var(--space-3); }
  .l-mb2 { margin-bottom:16px; }

  .l-mark { display:block; width:34px; height:34px; flex:none; }
  .l-mark img { display:block; width:100%; height:100%; border-radius:19%; }

  /* proof row */
  .l-proof { background:var(--gold-bg); border-block:1px solid var(--line); }
  .l-pfr { display:grid; grid-template-columns:repeat(2,1fr); gap:0;
           padding:4px 0; }
  .l-pf { padding:18px 4px 18px 18px; }
  /* Hairlines, not a colour change, do the separating — and only between
     cells that are actually side by side, which changes at each breakpoint. */
  .l-pf:nth-child(2n) { border-left:1px solid var(--line); }
  .l-pf:nth-child(n+3) { border-top:1px solid var(--line); }
  .l-pf:first-child { padding-left:0; }
  .l-pf b { display:block; font-family:var(--font-serif); font-size:29px;
            line-height:1.05; font-weight:600; color:var(--gold-dk);
            letter-spacing:-.015em; }
  .l-pf span { display:block; font-size:13.5px; font-weight:650; margin-top:5px;
               color:var(--ink); }
  .l-pf i { display:block; font-style:normal; font-size:12.5px; color:var(--ink-3);
            margin-top:2px; }
  @media (min-width:760px) {
    .l-pfr { grid-template-columns:repeat(4,1fr); }
    .l-pf:nth-child(n+3) { border-top:0; }
    .l-pf:nth-child(n+2) { border-left:1px solid var(--line); }
  }

  /* panchang */
  .l-panch { display:grid; gap:8px; grid-template-columns:repeat(2,1fr); }
  .l-pc { padding:13px 14px; border:1px solid var(--line); border-radius:var(--r-in);
          background:var(--surface); }
  .l-pc span { display:block; font-family:var(--font-mono); font-size:9px;
               letter-spacing:.13em; color:var(--ink-3); }
  .l-pc b { display:block; font-size:15px; margin-top:5px; }
  .l-pc i { display:block; font-style:normal; font-size:12px; color:var(--ink-3); }
  .l-pc.c-t-good b { color:var(--good); } .l-pc.c-t-bad b { color:var(--bad); }
  @media (min-width:700px) { .l-panch { grid-template-columns:repeat(3,1fr); } }
  @media (min-width:1000px) { .l-panch { grid-template-columns:repeat(6,1fr); } }

  /* rashifal */
  .l-rsg { display:grid; gap:7px; grid-template-columns:repeat(3,1fr); }
  .l-rs { display:flex; flex-direction:column; align-items:center; gap:1px;
          min-height:98px; justify-content:center; padding:12px 5px;
          border:1px solid var(--line); border-radius:var(--r-in);
          background:var(--surface); text-decoration:none; color:var(--ink);
          text-align:center; }
  .l-rs:hover { border-color:var(--gold); background:var(--gold-bg); }
  .l-rs .c-sym { color:var(--gold-dk); margin-bottom:4px; }
  .l-rs b { font-size:12.5px; font-weight:650; }
  .l-rs i { font-style:normal; font-size:10.5px; color:var(--ink-3); }
  .l-rs u { text-decoration:none; font-size:12px; color:var(--gold-dk); }
  @media (min-width:560px) { .l-rsg { grid-template-columns:repeat(4,1fr); } }
  @media (min-width:900px) { .l-rsg { grid-template-columns:repeat(6,1fr); } }

  /* tools */
  .l-tools { display:grid; gap:12px; }
  .l-ti { display:grid; place-items:center; width:40px; height:40px;
          border-radius:11px; color:var(--gold-dk); background:var(--gold-bg);
          margin-bottom:11px; }
  .l-tl { display:flex; flex-wrap:wrap; gap:6px; margin-top:13px; }
  .l-tl a { display:inline-flex; align-items:center; min-height:44px;
            font-size:12.5px; font-weight:600; padding:0 14px;
            border-radius:var(--r-pill); color:var(--ink-2);
            border:1px solid var(--line); background:var(--surface);
            text-decoration:none; }
  .l-tl a:hover { color:var(--gold-dk); border-color:var(--gold);
                  background:var(--gold-bg); }
  @media (min-width:720px) { .l-tools { grid-template-columns:repeat(2,1fr); } }


  /* The unknown-birth-time escape hatch belongs inside the time picker, where
     someone reaches it at the exact moment they realise they cannot answer. */
  .l-unk { margin-top:14px; padding-top:12px; border-top:1px solid var(--line-soft); }
  .l-faq { margin-top:16px; }


/* ── page head ────────────────────────────────────────── */
.s-crumb { padding-top:16px; }
.s-top { padding:22px 0 6px; }
.s-head { max-width:64ch; }
/* With a form beside it the header is the full width and the two columns
   share it, so the reading underneath is not squeezed into a rail. */
.s-head-2 { max-width:none; display:grid; gap:26px;
            grid-template-columns:minmax(0,1fr); align-items:start; }
.s-head-2 > * { min-width:0; }
@media (min-width:960px) {
  .s-head-2 { grid-template-columns:minmax(0,1fr) minmax(0,380px); }
}
.s-head-t { max-width:64ch; }
.s-eyebrow { display:inline-block; font-family:var(--font-mono); font-size:10px;
             letter-spacing:.14em; text-transform:uppercase; color:var(--gold-dk);
             padding:5px 10px; border-radius:var(--r-pill);
             background:var(--gold-bg); margin-bottom:14px; }
.s-h1 { font-family:var(--font-serif); font-size:clamp(27px,5.2vw,42px);
        line-height:1.08; letter-spacing:-.021em; font-weight:600;
        margin:0 0 13px; text-wrap:balance; }
.s-h1 em { font-style:normal; color:var(--gold-dk); }
.s-dek { font-size:var(--text-md); line-height:1.62; color:var(--ink-2);
         margin:0; max-width:58ch; }
/* What the page gives back, named. See page_head() for why it is only on the
   fourteen with a full birth-details form. */
.s-ret { margin-top:18px; max-width:58ch; }
.s-ret ul { margin:8px 0 0; padding:0; list-style:none; display:grid;
            gap:5px; }
.s-ret li { position:relative; padding-left:18px; font-size:14px;
            line-height:1.55; color:var(--ink-2); }
.s-ret li::before { content:''; position:absolute; left:2px; top:9px;
                    width:5px; height:5px; border-radius:50%;
                    background:var(--gold-solid); }
@media (min-width:960px) {
  .s-head-fill { align-items:stretch; }
  .s-head-fill > .s-head-t { display:flex; flex-direction:column; }
  .s-head-fill .s-meta { margin-top:auto; padding-top:16px; }
}
/* The facts a dek would otherwise carry as adjectives. Mono, so they read as
   data rather than as more sentence. */
/* THE CENTRED HEAD, for pages that are not asking for a birth time. The
   default sits beside a form card and runs to 64ch down the left; a page
   whose top is a choice rather than a form leaves that whole right-hand
   column empty, and the text reads as the caption of something that failed
   to load. Two pages want this — the tarot hub, whose top half is six
   readings, and the astrologer pages, whose top half is a roster — so it
   lives here rather than being written twice. */
.s-head-c { max-width:700px; margin-inline:auto; text-align:center; }
.s-head-c .s-eyebrow { font-size:11.5px; letter-spacing:.09em; font-weight:700;
          border:1px solid var(--gold-lt); padding:5px 13px; margin-bottom:16px; }
.s-head-c .s-h1 { font-size:clamp(30px,5.6vw,46px); }
.s-head-c .s-dek { margin-inline:auto; max-width:62ch; }
.s-head-c .s-meta { justify-content:center; }

.s-meta { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:16px;
          font-family:var(--font-mono); font-size:11px; letter-spacing:.04em;
          color:var(--ink-3); }
.s-meta span { display:flex; align-items:center; gap:7px; }
.s-meta span + span::before { content:''; width:3px; height:3px; flex:none;
          border-radius:50%; background:var(--line); margin-left:-11px; }
/* A price the API could not give takes its chip, and the dot after it, away. */
.s-meta > span:has(> .c-px-gone) { display:none; }
.s-meta > span:has(> .c-px-gone) + span::before { display:none; }

/* ── related ──────────────────────────────────────────── */
.s-rel { display:grid; gap:10px; grid-template-columns:1fr; }
@media (min-width:620px) { .s-rel { grid-template-columns:repeat(2,1fr); } }
@media (min-width:960px) { .s-rel { grid-template-columns:repeat(3,1fr); } }
.s-rel > * { min-width:0; }
.s-rel-i { display:flex; align-items:flex-start; gap:12px; padding:14px 16px;
           min-height:44px; text-decoration:none; color:var(--ink);
           background:var(--surface); border:1px solid var(--line);
           border-radius:var(--r-card); }
.s-rel-i:hover { border-color:var(--gold); background:var(--gold-bg); }
.s-rel-k { flex:none; display:grid; place-items:center; width:32px; height:32px;
           border-radius:9px; background:var(--gold-bg); color:var(--gold-dk); }
.s-rel-x { min-width:0; display:flex; flex-direction:column; line-height:1.4; }
.s-rel-x b { font-size:14px; font-weight:650; }
.s-rel-x i { font-style:normal; font-size:12.5px; color:var(--ink-3);
             margin-top:2px; }

/* ── closing CTA ──────────────────────────────────────── */
.s-cta { display:grid; gap:20px; align-items:center; padding:28px;
         border-radius:var(--r-card); border:1px solid var(--gold-lt);
         background:
           radial-gradient(120% 140% at 88% 0%, var(--gold-bg) 0%, transparent 64%),
           var(--surface); }
@media (min-width:820px) {
  .s-cta { grid-template-columns:1fr auto; gap:34px; padding:32px 36px; } }
.s-cta > * { min-width:0; }
.s-cta h2 { font-family:var(--font-serif); font-size:clamp(21px,3.4vw,28px);
            line-height:1.16; letter-spacing:-.018em; font-weight:600;
            margin:0 0 9px; text-wrap:balance; }
.s-cta p { font-size:var(--text-base); line-height:1.6; color:var(--ink-2);
           margin:0; max-width:52ch; }
.s-cta-b { display:flex; flex-wrap:wrap; gap:10px; }
.s-cta-b > * { flex:1 1 auto; }
.s-cta-alt { display:inline-flex; align-items:center; justify-content:center;
             gap:8px; text-decoration:none; white-space:nowrap; }
.s-cta-alt svg { color:var(--gold-dk); }

/* The banner: the page's line, then the astrologers and the reports. */
.s-cta.s-pro { display:block; position:relative; overflow:hidden;
  padding:36px 20px 26px;
  background:radial-gradient(120% 80% at 50% 0%, var(--gold-bg) 0%, transparent 70%), var(--cream); }
@media (min-width:760px) { .s-cta.s-pro { padding:44px 40px 36px; } }
/* The line art: faint, behind everything, never in the way. */
.s-pro-deco { position:absolute; top:0; pointer-events:none; display:block;
  background:var(--gold); opacity:.8;
  -webkit-mask:var(--m) no-repeat top / contain; mask:var(--m) no-repeat top / contain; }
.s-pro-sun { left:0; width:340px; aspect-ratio:340 / 250; -webkit-mask-position:left top; mask-position:left top; }
.s-pro-moon { right:0; width:404px; aspect-ratio:404 / 250; -webkit-mask-position:right top; mask-position:right top; }
/* Smaller and fainter behind a narrower headline; on a phone, a corner of
   each, inside the edge. */
@media (max-width:1099px) { .s-pro-sun { width:250px; } .s-pro-moon { width:290px; } }
@media (max-width:759px) { .s-pro-deco { opacity:.75; } .s-pro-sun { width:44%; left:-5%; }
  .s-pro-moon { width:48%; right:-4%; }
  /* The faces show at the edges, as in the mobile mock: the headline keeps
     to the middle. */
  .s-cta.s-pro .s-pro-h h2 { max-width:78%; margin-inline:auto; } }
.s-pro-h { position:relative; text-align:center; max-width:780px; margin:0 auto 28px; }
.s-cta.s-pro .s-pro-h h2 { font-size:clamp(28px,4.6vw,46px); line-height:1.08; margin:0; }
.s-cta.s-pro .s-pro-h p { margin:12px auto 0; max-width:60ch; font-size:17px; color:var(--ink-2); }
.s-pro-go1 { margin-top:20px; display:inline-flex; gap:10px; align-items:center; padding:0 26px;
  min-height:52px; font-size:16px; box-shadow:0 8px 22px -12px rgba(90,55,10,.55); }
.s-pro-g { position:relative; display:grid; gap:18px; grid-template-columns:minmax(0,1fr); }
/* Side by side from 1000px: narrower, the covers shrink under the chat card
   and no amount of tightening makes the two end together. */
@media (min-width:1000px) { .s-pro-g { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.s-pro-c { display:flex; flex-direction:column; align-items:flex-start; gap:10px; min-width:0;
  padding:22px 20px; border:1px solid var(--line); border-radius:20px; background:var(--surface);
  color:inherit; text-decoration:none; transition:border-color .15s; }
@media (min-width:760px) { .s-pro-c { padding:26px 28px; } }
.s-pro-c:hover { border-color:var(--gold-lt); }
.s-pro-c h3 { font-family:var(--font-serif); font-size:clamp(24px,2.6vw,32px); font-weight:600;
  line-height:1.15; margin:6px 0 0; color:var(--ink); }
.s-pro-t { font-size:15px; line-height:1.55; color:var(--ink-2); }
.s-pro-p { font-size:15px; font-weight:600; color:var(--gold-dk); }
.s-pro-fs { display:flex; text-decoration:none; }
.s-pro-f { width:68px; height:68px; border-radius:50%; overflow:hidden; border:3px solid var(--surface);
  margin-left:-10px; background:var(--surface-2); box-shadow:0 0 0 1px var(--gold-lt); }
.s-pro-f:first-child { margin-left:0; }
/* Six across a phone's card: 44px at 320, 54 from 380. */
@media (max-width:759px) { .s-pro-f { width:44px; height:44px; margin-left:-10px; border-width:2px; } }
@media (min-width:380px) and (max-width:759px) { .s-pro-f { width:54px; height:54px; margin-left:-8px; } }
@media (min-width:760px) { .s-pro-f { width:76px; height:76px; margin-left:-12px; } }
.s-pro-f img { width:100%; height:100%; object-fit:cover; display:block; }
/* The four, as tiles with their subject's icon. */
.s-pro-rs { display:grid; gap:8px; grid-template-columns:repeat(2,minmax(0,1fr)); align-self:stretch; margin-top:4px; }
@media (min-width:480px) { .s-pro-rs { gap:10px; } }
.s-pro-r { display:flex; align-items:center; gap:10px; min-width:0; padding:11px 12px;
  border-radius:12px; background:var(--gold-bg); }
.s-pro-r svg { flex:none; color:var(--gold-dk); }
.s-pro-r > span { display:flex; flex-direction:column; min-width:0; }
.s-pro-r b { font-size:15px; font-weight:650; color:var(--ink); }
.s-pro-r i { font-style:normal; font-size:13.5px; color:var(--ink-2); }

.s-pro-qs { display:flex; flex-direction:column; gap:8px; align-self:stretch; margin-top:4px; }
.s-pro-qs > i { font-style:normal; font-size:12px; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--ink-3); }
.s-pro-q { display:flex; align-items:center; min-height:44px; padding:10px 14px; border-radius:12px;
  background:var(--gold-bg); color:var(--ink); font-size:14.5px; line-height:1.4; text-decoration:none; }
.s-pro-q:hover { background:var(--gold-lt); }
.s-pro-bs { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; align-self:stretch; margin-top:6px; }
/* A price abroad is longer than ₹5 ("Chat from $0.10/min"), and at 320
   the nowrap button ran past the screen. Wrap there instead. */
@media (max-width:374px) { .s-pro-bs .c-btn { white-space:normal; flex-wrap:wrap; text-align:center; } }
@media (min-width:1000px) { .s-pro-bs { grid-template-columns:repeat(2,minmax(0,1fr)); } }
/* The rate sits beside its label, one line. */
.s-pro-bs .c-btn { display:flex; justify-content:center; align-items:center; gap:8px; white-space:nowrap;
  min-height:52px; font-size:16px; }
.s-pro-bs .c-as-rate { font-weight:650; }
.s-pro-fine { font-size:13px; color:var(--ink-3); }
/* ── THE PHONE (Rohit's mobile mock, 28 Sep 2026) ──
   The chat card centred — faces, heading, the line under it — with the
   four as one-row tiles, icon beside the name; Chat and Call full width,
   one over the other. The reports card leads with its heading, then the
   covers, the words, and Explore full width. Everything a little closer. */
@media (max-width:759px) {
  .s-cta.s-pro { padding:24px 12px 14px; }
  .s-pro-h { margin-bottom:18px; }
  .s-cta.s-pro .s-pro-h p { margin-top:8px; font-size:16px; }
  .s-pro-go1 { margin-top:14px; width:100%; max-width:360px; justify-content:center; }
  .s-pro-g { gap:14px; }
  .s-pro-c { padding:18px 12px; gap:10px; border-radius:18px; }
  .s-pro-g > .s-pro-c:first-child { align-items:center; text-align:center; }
  .s-pro-g > .s-pro-c:first-child .s-pro-fs { justify-content:center; }
  .s-pro-c h3 { margin-top:2px; font-size:26px; }
  .s-pro-rs { gap:8px; }
  .s-pro-r { flex-direction:row; align-items:center; gap:7px; padding:9px 8px; text-align:left; }
  .s-pro-r svg { width:20px; height:20px; }
  .s-pro-r b { font-size:14px; white-space:nowrap; }
  .s-pro-r i { font-size:12.5px; line-height:1.3; }
  .s-pro-rs { gap:6px; }
  .s-pro-bs { gap:8px; margin-top:2px; }
  .s-pro-bs .c-btn { min-height:50px; }
  .s-pro-fine { text-align:center; }
  .s-pro-rep h3 { order:-1; margin:0; text-align:center; align-self:stretch; }
  .s-pro-rep .s-pro-cvs { gap:10px; }
  .s-pro-go { align-self:stretch; justify-content:center; margin-top:4px; }
}
/* The smallest phones: a 66px name column cannot hold "Astro Vaidya" beside
   an icon, so the icon goes above it there. */
@media (max-width:359px) {
  .s-pro-r { flex-direction:column; align-items:flex-start; gap:5px; }
  .s-pro-r b { white-space:normal; }
}

/* THE TWO CARDS END TOGETHER (Rohit, 28 Sep 2026: "the right card has
   empty space, shrink the left to match"). Side by side the covers set the
   height, and they shrink with the card: from 1280px the two already match
   to a few pixels; between 1000 and 1279 the chat card is tightened —
   smaller faces, slimmer tiles, closer rows — to fit under the covers.
   Both cards' buttons sit on the bottom edge, so what little is left over
   falls above them and the two rows of buttons line up. */
.s-pro-g > .s-pro-c:first-child .s-pro-bs { margin-top:auto; }
@media (min-width:1000px) and (max-width:1279px) {
  .s-pro-g > .s-pro-c:first-child { gap:8px; }
  .s-pro-g > .s-pro-c:first-child .s-pro-f { width:58px; height:58px; margin-left:-10px; }
  .s-pro-g > .s-pro-c:first-child .s-pro-f:first-child { margin-left:0; }
  .s-pro-g > .s-pro-c:first-child h3 { margin-top:2px; font-size:clamp(22px,2.2vw,28px); }
  .s-pro-g > .s-pro-c:first-child .s-pro-t { font-size:14px; }
  .s-pro-rs { gap:8px; margin-top:2px; }
  .s-pro-r { padding:8px 12px; gap:10px; }
  .s-pro-r svg { width:22px; height:22px; }
  .s-pro-r b { font-size:14.5px; }
  .s-pro-r i { font-size:13px; }
  .s-pro-bs .c-btn { min-height:48px; }
}
/* The reports: the covers big, then the words, then the button. */
.s-pro-cvs { display:flex; gap:14px; align-items:flex-start; align-self:stretch; }
.s-pro-cv { flex:1 1 0; max-width:190px; border-radius:6px; overflow:hidden;
  box-shadow:0 10px 24px -14px rgba(60,30,5,.6); }
.s-pro-cv img { width:100%; height:auto; display:block; }
.s-pro-rep h3 { margin-top:10px; }
.s-pro-go { margin-top:auto; display:inline-flex; align-items:center; gap:8px; min-height:52px;
  padding:0 24px; font-size:16px; }
.s-pro-c .s-pro-p + .s-pro-go { margin-top:12px; }

  /* ── THE WRAPPER IS TRANSPARENT. A page's own `.x span { … }` rules also
     match the span t() wraps a string in — "Not sure who to ask?" came out
     at the 13px of `.as-ask-h span` instead of its heading's 18px, and the
     "Available now" words were drawn as the badge's 7px dot. So the wrapper
     draws no box and takes its type from its parent, whatever else matches
     it. :root lifts this above any `.x span`; the Hindi rules below are
     more specific again. ── */
  :root [data-hi] { display:contents; font:inherit; color:inherit;
                    letter-spacing:inherit; text-transform:inherit; }
  /* ── the swap (lib/i18n.py): hidden until it has happened, never
     English first, and shown anyway after 1.2 s if the script failed. ── */
  :root[data-lang="hi"]:not(.l-ready) [data-hi] {
    visibility:hidden; animation:l-late 0s 1.2s forwards; }
  @keyframes l-late { to { visibility:visible; } }
  /* Devanagari's matras sit above and below the line; at the body's 1.5 a
     second line's ि touches the first line's ु. */
  :root[data-lang="hi"][data-i18n] body { line-height:1.6; }
  /* THE APP'S HINDI RULE (CLAUDE.md, rule 15): under 15px goes up by 2,
     never past 15 — Devanagari at 10–13px is not readable on a phone.
     max(1em, min(1em + 2px, 15px)) is that rule in one line.
     And no tracking, caps or slant: letter-spacing pulls a conjunct apart
     ("आ ज"), and Devanagari has no italic, only a fake slant. */
  :root[data-lang="hi"] [data-hi] {
    font-size:max(1em, min(calc(1em + 2px), 15px));
    letter-spacing:0; text-transform:none; font-style:normal; }
  :root[data-lang="hi"] [data-hi] [data-hi] { font-size:1em; }
  /* The same for small caps-and-tracking labels a script writes in Hindi,
     which carry no data-hi: "आगे पूछें", a caption's name. */
  :root[data-lang="hi"] .cv-next-l, :root[data-lang="hi"] .cl-cap i,
  :root[data-lang="hi"] .d-mkt, :root[data-lang="hi"] .d-grp b {
    letter-spacing:0; text-transform:none; }
  /* AND NOT MONO. The shell's section rule, the small field labels and the
     section head are set in the mono face for English positions; the data-hi
     wrapper inherits that face, so untracking alone left Devanagari in a
     typewriter font, still reading spaced out. One rule here rather than an
     override on every page (dasha, transits and kundli each grew one). */
  :root[data-lang="hi"] .d-mkt, :root[data-lang="hi"] .h-f-l,
  :root[data-lang="hi"] .c-sh-t, :root[data-lang="hi"] .d-mkd {
    font-family:var(--font-sans); letter-spacing:0; text-transform:none;
    font-style:normal; }

  /* The switch in the top bar: the public header's language menu (common
     .c-dd), the same 34px square as a mouse sees it and 44px under a finger. */
  .d-lang { position:relative; flex:none; }
  .d-lang > summary { list-style:none; }
  .d-lang > summary::-webkit-details-marker { display:none; }
  .d-lang-b { display:grid; place-items:center; width:34px; height:34px; border-radius:10px;
              border:1px solid var(--line); background:var(--surface); color:var(--ink-2);
              cursor:pointer; }
  @media (pointer:coarse) { .d-lang-b { width:44px; height:44px; border-radius:12px; } }
  .d-lang-b:hover, .d-lang[open] > .d-lang-b { border-color:var(--gold); color:var(--gold-dk); }
  .d-lang-b:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
  .d-lang-aa { font-size:13px; font-weight:700; letter-spacing:-.02em; }
  :root[data-lang="hi"] .d-lang-aa { font-size:13px; }
  .d-lang-m { position:absolute; top:calc(100% + 8px); right:0; z-index:60;
              min-width:170px; padding:6px; border-radius:12px; border:1px solid var(--line);
              background:var(--surface); box-shadow:0 10px 30px rgba(0,0,0,.14);
              display:flex; flex-direction:column; gap:2px; }
  .d-lang-i { display:flex; align-items:center; gap:10px; width:100%; min-height:44px;
              padding:9px 12px; border:0; border-radius:8px; background:none; cursor:pointer;
              font:inherit; font-size:14.5px; color:var(--ink); text-align:left; white-space:nowrap; }
  .d-lang-i i { font-style:normal; width:18px; text-align:center; color:var(--ink-3); }
  .d-lang-i:hover { background:var(--gold-bg); }
  .d-lang-i:focus-visible { outline:2px solid var(--gold); outline-offset:-2px; }
  .d-lang-i[aria-pressed="true"], .d-lang-i[aria-pressed="true"] i { color:var(--gold-dk); font-weight:650; }

  .hx-tb { display:none; }
  @media (max-width:620px) {
    .d-tabs .hx-tb { display:flex; }
    .d-tabs .d-main { padding-bottom:calc(112px + max(16px, env(safe-area-inset-bottom, 0px))); }
  }
  .hx-tb { position:fixed; left:0; right:0; bottom:0; z-index:30; align-items:flex-start;
           /* MainTabNavigator: 60 tall plus the bottom inset, never under 16 */
           height:calc(60px + max(16px, env(safe-area-inset-bottom, 0px)));
           padding:8px 0 max(16px, env(safe-area-inset-bottom, 0px)); background:var(--surface);
           border-top:1px solid var(--line); }
  /* As measured on the app: the icon 16 below the bar's edge, the label 7 under it. */
  /* The label 13 semibold, as the app's tabBarLabelStyle (fs(13), 600). */
  .hx-tb-i { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; min-height:48px; padding-top:5px;
             font-size:13px; line-height:16px; font-weight:600; color:#9A8B75; text-decoration:none; }
  .hx-tb-on { color:var(--gold-solid); }
  /* NO SQUARE ON A PRESS. A phone browser flashes a grey box over a tapped
     link; the app's tabs give no feedback at all (React Navigation's tab
     button is a plain Pressable) and its centre button only shrinks. A
     keyboard still gets a ring. */
  .hx-tb a { -webkit-tap-highlight-color:transparent; -webkit-touch-callout:none; user-select:none; outline:none; }
  .hx-tb a:focus-visible { outline:2px solid var(--gold); outline-offset:-2px; border-radius:12px; }
  /* The app's centre button: an 86 box raised 24, the rings centred in it. */
  .hx-tb-ask { flex:1; display:flex; justify-content:center; align-items:center; position:relative; top:-21px; height:86px; }
  .hx-tb-ring { display:grid; place-items:center; width:68px; height:68px; border-radius:34px;
                background:rgba(154,139,117,.125); border:2px solid rgba(154,139,117,.27); }
  .hx-tb-btn { display:grid; place-items:center; width:52px; height:52px; border-radius:26px;
               background:linear-gradient(135deg, #6B4708, #8A5A0B 50%, #C6943E);
               /* No shadow until its tab is open: the app's is coloured transparent. */
               border:2px solid rgba(255,255,255,.2);
               transition:transform .12s; }
  /* The centre button shrinks to 0.9 while pressed and springs back (the
     app's handlePressIn/Out). :active alone does not hold on a phone, which
     drops it as soon as a touch might be a scroll; PRESS_JS sets the class. */
  .hx-tb-btn { transition:transform .18s cubic-bezier(.34,1.56,.64,1); }
  .hx-tb-ask:active .hx-tb-btn, .hx-tb-ask.hx-tb-down .hx-tb-btn { transform:scale(.9); transition-duration:.08s; }
  .hx-tb-ask.hx-tb-on .hx-tb-ring { position:relative; background:rgba(138,90,11,.18); border-color:rgba(138,90,11,.4);
                                    box-shadow:0 6px 18px rgba(138,90,11,.45); }
  .hx-tb-ask.hx-tb-on .hx-tb-btn { border-color:rgba(255,255,255,.35); box-shadow:0 4px 14px rgba(0,0,0,.35); }
  .hx-tb-ring i { position:absolute; left:50%; top:50%; width:3px; height:3px; margin:-1.5px; border-radius:2px;
                  background:#C6943E; transform:rotate(var(--a)) translateY(-38px);
                  animation:hx-mote var(--t) ease-in-out var(--d) infinite alternate; }
  @keyframes hx-mote {
    from { transform:rotate(var(--a)) translateY(-38px) scale(.6); opacity:.3; }
    to { transform:rotate(var(--a)) translateY(-46px) scale(1); opacity:1; } }
  @media (prefers-reduced-motion:reduce) { .hx-tb-ring i { animation:none; } }

  .pm { display:none; }
  @media (max-width:620px) {
    /* .d-shell first: the shell's own drawer rule (264px) comes later in the
       sheet and would otherwise win. */
    .d-shell .d-rail { width:min(84vw, 420px); padding:0; gap:0; background:#FFF8E8; overflow:hidden;
                       display:flex; flex-direction:column; }
    .d-shell .d-rail > :not(.pm) { display:none !important; }
    .pm { display:flex; flex-direction:column; flex:1; min-height:0; color:#17120C;
          font-family:"Cosmiqe Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif; }
  }
  .pm-h { flex:none; display:flex; align-items:center; gap:12px;
          padding:calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; }
  .pm-av { flex:none; width:54px; height:54px; padding:3px; border-radius:27px; border:2px solid #8A1F17;
           transition:width .15s, height .15s; }
  .pm-av span { display:grid; place-items:center; height:100%; border-radius:24px; border:1px solid #8A1F17;
                background:#FBEFD2; font:700 19px/1 Martel, Georgia, serif; color:#8A1F17; }
  .pm-who { flex:1; min-width:0; }
  .pm-who b { display:block; font:700 19px/1.4 Martel, Georgia, serif; color:#8A1F17;
              white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .pm-who i { display:block; font-style:normal; font-size:13px; line-height:17px; color:#6B5D48; }
  .pm-who i:empty { display:none; }
  .pm.pm-c .pm-av { width:46px; height:46px; }
  .pm.pm-c .pm-who i { display:none; }
  .pm-x { flex:none; display:grid; place-items:center; width:38px; height:38px; border-radius:19px;
          border:1px solid #E2B76A; background:#FFFDF6; color:#8A1F17; cursor:pointer; }
  .pm-b { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; display:flex; flex-direction:column;
          gap:14px; padding:2px 14px calc(24px + env(safe-area-inset-bottom, 0px)); }

  .pm-patri { display:flex; flex-direction:column; border:1px solid #E8DCC8; border-radius:16px; background:#FFFDF6;
              overflow:hidden; text-decoration:none; color:#17120C; }
  .pm-seals { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:4px; padding:14px 6px 12px; }

  .pm-sc { min-width:0; display:flex; flex-direction:column; align-items:center; gap:6px; }
  .pm-seal { width:80px; height:80px; box-sizing:border-box; padding:3px; border-radius:40px; border:2px solid; }
  .pm-seal > span { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%;
                    padding:0 4px; border-radius:37px; border:1px solid; text-align:center; }
  .pm-gl { font-size:15px; line-height:1; margin-bottom:2px; }
  /* Devanagari's reph and bindu stand above the letters (कर्क, सिंह): more
     room under the glyph, and a taller line, or the two touch. */
  :root[data-lang="hi"] .pm-gl, :root[lang="hi"] .pm-gl { margin-bottom:5px; }
  :root[data-lang="hi"] .pm-seal b, :root[lang="hi"] .pm-seal b { line-height:1.45; }
  .pm-seal b { font:700 16px/1.2 "Noto Serif", Georgia, serif; white-space:nowrap; }
  :root[data-lang="hi"] .pm-seal b, :root[lang="hi"] .pm-seal b { font-family:inherit; font-weight:800; font-size:17px; }
  .pm-seal em { font-style:normal; font-size:10.5px; color:#6B5D48; white-space:nowrap; }
  /* Under each seal: what it is (Sun Sign, Moon Sign, Lagna). */
  .pm-lb { display:flex; flex-direction:column; align-items:center; text-align:center; }
  .pm-lb b { font-size:13px; font-weight:800; }
  :root[data-lang="hi"] .pm-lb b, :root[lang="hi"] .pm-lb b { font-size:14.5px; }

  /* The menu's seals as the app's drawer draws them (PatriSeal size 80,
     labelSize 15, under, caption): the Indian name in Martel 15 in the ring,
     the English name 13 under it, the label 13 bold in the seal's colour
     pulled up 6 to it. The landing page's card keeps SEAL_CSS as it is. */
  .pm .pm-sc2 .pm-seal b { font:700 15px/1.4 Martel, Georgia, serif; }
  :root[data-lang="hi"] .pm .pm-sc2 .pm-seal b { font-family:inherit; font-weight:700; font-size:15px; }
  .pm .pm-sc2 .pm-gl { font-size:15px; line-height:19px; margin-bottom:1px; }
  .pm-un { font-size:13px; color:#6B5D48; white-space:nowrap; }
  .pm .pm-sc2 .pm-un + .pm-lb { margin-top:-6px; }
  .pm .pm-sc2 .pm-lb b { font-size:13px; line-height:18px; font-weight:700; }
  /* A 320-360px phone: the drawer is ~270px and three 80px seals ran over
     the card's edge; smaller rings, the names fitted inside them (fit()). */
  @media (max-width:359px) {
    .pm .pm-sc2 .pm-seal { width:68px; height:68px; padding:2px; }
    .pm .pm-sc2 .pm-seal > span { padding:0 3px; }
  }

  .pm-tiles { display:flex; gap:10px; }
  .pm-tile { flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:10px;
             border-radius:14px; border:1px solid #E8DCC8; background:#FFFDF6; text-decoration:none; color:#17120C; }
  .pm-tt { align-self:stretch; display:flex; align-items:center; justify-content:space-between; gap:6px; min-height:26px; }
  .pm-tt i { font-style:normal; font-size:13px; color:#6B5D48; }
  .pm-tile b { font-size:15px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
  .pm-tile em { font-style:normal; font-size:13px; font-weight:700; color:#92600A; }
  .pm-tile strong { font:700 19px/1.4 Martel, Georgia, serif; color:#8A1F17; }
  .pm-add { display:inline-flex; align-items:center; min-height:30px; padding:0 12px; border-radius:15px;
            background:#8A5A0B; color:#FFF9F0; font-size:13px; font-weight:700; white-space:nowrap; }
  .pm-faces { display:flex; }
  .pm-faces span { display:grid; place-items:center; width:26px; height:26px; border-radius:13px; background:#FBEFD2;
                   border:1.5px solid #E2B76A; font-size:13px; font-weight:700; color:#92600A; }
  .pm-faces span + span { margin-left:-8px; }
  .pm-faces .add { border-style:dashed; background:#FFFDF6; font-size:15px; }

  /* DESIGN A (Rohit, 6 Nov 2026), as the signed-out drawer: a small grey
     heading, the section's rows in a card, a rule between them, each icon
     in a rounded tile. flex:none: the menu's body is a flex column that
     scrolls, and would otherwise squeeze the cards. */
  .pm-sec { flex:none; display:flex; flex-direction:column; gap:8px; }
  .pm-sec h3 { margin:6px 6px 0; font-size:15px; font-weight:600; color:#6B5D48; }
  .pm-card { border:1px solid #E8DCC8; border-radius:16px; background:#FFFDF6; overflow:hidden; }
  .pm-r { display:flex; align-items:center; gap:12px; padding:9px 14px; min-height:60px; box-sizing:border-box;
          text-decoration:none; color:#92600A; }
  .pm-r + .pm-r { border-top:1px solid #F0E6D4; }
  .pm-r:active { background:#FBEFD2; }
  .pm-ic { flex:none; display:grid; place-items:center; width:40px; height:40px; border-radius:11px;
           background:#FBEFD2; color:#92600A; }
  .pm-r > svg:last-child { color:#8A7B64; flex:none; width:16px; height:16px; }
  .pm-rt { flex:1; min-width:0; }
  .pm-rt b { display:block; font-size:15px; font-weight:600; color:#17120C; }
  .pm-rt i { display:block; margin-top:1px; font-style:normal; font-size:13px; line-height:20px; color:#6B5D48; }
  .pm-out { display:flex; align-items:center; justify-content:center; gap:8px; min-height:48px; margin-top:4px;
            border-radius:24px; border:1.5px solid #B3261E; background:none; color:#B3261E;
            font:inherit; font-size:15px; font-weight:700; cursor:pointer; }
  .pm-foot { margin:0; text-align:center; font-size:13px; color:#6B5D48; }
  .pm-foot a { font-weight:700; color:#92600A; text-decoration:none; }

  .cx-sh .hx-sh-b { gap:12px; }
  .cx-sh .hx-sh-b > * { flex:none; }
  .cx-sh button { font-family:inherit; }
  /* SheetHead: the Hindi line over the title, the count, the round close. */
  .cx-shh { position:relative; padding:2px 44px 0; text-align:center; }
  .cx-shh p { margin:0; }
  .cx-shh .cx-hi { font-size:13px; font-weight:700; color:#B3261E; }
  .cx-shh h2 { margin:0; font-family:"Noto Serif", Georgia, serif; font-size:21px; line-height:27px; font-weight:700; color:#8A1F17; }
  :root[data-lang="hi"] .cx-shh h2 { font-family:inherit; font-weight:800; }
  .cx-shh .cx-n { margin-top:2px; font-size:13px; color:#6B5D48; }
  .cx-x { position:absolute; right:0; top:0; display:grid; place-items:center; width:38px; height:38px; border-radius:19px;
          border:1px solid #E2B76A; background:#FFFDF6; color:#8A1F17; cursor:pointer; }
  .cx-search { display:flex; align-items:center; gap:8px; height:46px; padding:0 16px; border-radius:23px; border:1.5px solid #E2B76A; background:#fff; color:#6B5D48; }
  .cx-search input { flex:1; min-width:0; border:0; outline:0; background:none; font:inherit; font-size:15px; color:#17120C; }
  .cx-search input::-webkit-search-cancel-button { display:none; }
  .cx-search .cx-clr { display:grid; place-items:center; width:28px; height:28px; margin-right:-6px; border:0; background:none; color:#6B5D48; cursor:pointer; }
  .cx-search .cx-clr[hidden] { display:none; }
  :root[data-lang="hi"] .cx-search input { font-size:16px; }
  .cx-chips { display:flex; gap:7px; margin:0 -16px; padding:0 16px; overflow-x:auto; scrollbar-width:none; }
  .cx-chips[hidden] { display:none; }
  .cx-chips::-webkit-scrollbar { display:none; }
  .cx-chip { flex:none; display:inline-flex; align-items:center; gap:6px; height:34px; padding:0 13px; border-radius:17px; border:1px solid #E2B76A; background:#FFFDF6;
             font-size:13px; font-weight:800; color:#8A1F17; cursor:pointer; white-space:nowrap; }
  .cx-chip.cx-face { padding-left:3px; }
  .cx-chip img { width:26px; height:26px; border-radius:13px; object-fit:cover; background:#E6D9C3; }
  .cx-chip[aria-pressed="true"] { background:#8A1F17; border-color:#8A1F17; color:#FFF6E6; }
  :root[data-lang="hi"] .cx-chip { font-size:14.5px; }
  .cx-row { display:flex; align-items:flex-start; gap:12px; padding:11px 0; text-decoration:none; color:inherit; }
  .cx-row + .cx-row { border-top:1px dashed #E2B76A; }
  .cx-ring { flex:none; padding:2px; border-radius:26px; border:2px solid #E2B76A; }
  .cx-ring img, .cx-ph { display:grid; place-items:center; width:44px; height:44px; border-radius:22px; object-fit:cover; background:#F3E7CD; color:#92600A; }
  .cx-row > span:nth-child(2) { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
  .cx-top { display:flex; align-items:center; gap:8px; }
  .cx-top b { flex:1; min-width:0; font-size:15px; font-weight:800; color:#17120C; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .cx-top i { flex:none; font-style:normal; font-size:12px; color:#6B5D48; }
  .cx-ask { font-size:14px; line-height:19px; font-weight:600; color:#17120C; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .cx-ask.cx-call { font-weight:700; }
  .cx-meta { font-size:12px; color:#6B5D48; }
  :root[data-lang="hi"] .cx-top b { font-size:16px; } :root[data-lang="hi"] .cx-ask { font-size:15px; line-height:22px; }
  :root[data-lang="hi"] .cx-top i, :root[data-lang="hi"] .cx-meta { font-size:13.5px; }
  .cx-bin { flex:none; display:grid; place-items:center; width:36px; height:36px; margin:-4px -6px 0 0; border:0; background:none; color:#6B5D48; cursor:pointer; }
  .cx-empty { display:flex; flex-direction:column; align-items:center; gap:10px; padding:20px 4px; text-align:center; }
  .cx-empty i { display:grid; place-items:center; width:66px; height:66px; border-radius:33px; border:2px solid #E2B76A; color:#92600A; font-style:normal; }
  .cx-empty p { margin:0; font-size:14px; line-height:20px; color:#6B5D48; }
  :root[data-lang="hi"] .cx-empty p { font-size:15px; line-height:22px; }
  .cx-more { display:flex; justify-content:center; width:100%; padding:10px 0; border:0; border-top:1px dashed #E2B76A; background:none; font-size:13.5px; font-weight:800; color:#92600A; cursor:pointer; }
  .cx-sk { display:flex; gap:12px; padding:11px 0; }
  .cx-sk + .cx-sk { border-top:1px dashed #E2B76A; }
  /* the delete sheet */
  .cx-dcard { display:flex; align-items:center; gap:12px; padding:10px; border-radius:14px; border:1px solid #E8DCC8; background:#FFFDF6; }
  .cx-dcard .cx-ring img, .cx-dcard .cx-ph { width:38px; height:38px; }
  .cx-dcard > span:nth-child(2) { flex:1; min-width:0; display:flex; flex-direction:column; }
  .cx-note { margin:0; font-size:14px; line-height:20px; color:#6B5D48; text-align:center; }
  .cx-pair { display:flex; gap:10px; }
  .cx-pair button { flex:1; min-height:50px; border-radius:25px; font-size:15px; font-weight:800; cursor:pointer; }
  .cx-keep { border:1.5px solid #8A1F17; background:none; color:#8A1F17; }
  .cx-go { border:0; background:#B3261E; color:#FFF6E6; }

  .tu-sh .hx-sh-b { gap:14px; }
  .tu-sh .hx-sh-b > * { flex:none; }
  .tu-sh button, .tu-sh input { font-family:inherit; }
  .tu-shh { position:relative; padding:2px 44px 0; text-align:center; }
  .tu-shh p { margin:0; }
  .tu-shh .tu-hi { font-size:13px; font-weight:700; color:#B3261E; }
  .tu-shh h2 { margin:0; font-family:Martel, Georgia, serif; font-size:20px; line-height:30px; font-weight:700; color:#8A1F17; }
  :root[data-lang="hi"] .tu-shh h2 { font-family:inherit; font-weight:700; }
  .tu-shh .tu-n { margin-top:2px; font-size:13px; color:#6B5D48; }
  .tu-x { position:absolute; right:0; top:0; display:grid; place-items:center; width:38px; height:38px; border-radius:19px;
          border:1px solid #E2B76A; background:#FFFDF6; color:#8A1F17; cursor:pointer; }
  .tu-soft { margin:0; font-size:13px; color:#6B5D48; text-align:center; }
  .tu-soft b { font-weight:700; color:#17120C; }
  /* The amount on the left, the field itself, in the app's font at 32 (Rohit, 22 Nov 2026: "make it normal"),
     with the two quick "+" buttons beside it (the admin's two smallest amounts). */
  .tu-amt { display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding-top:2px; }
  .tu-amt .tu-soft, .tu-amt .tu-err { text-align:left; }
  .tu-arow { align-self:stretch; display:flex; align-items:center; gap:8px; }
  .tu-line { flex:1; min-width:0; display:flex; align-items:baseline; gap:4px; padding:0 0 2px; border:0;
             border-bottom:2px dashed #E2B76A; background:none; cursor:pointer; color:inherit; text-align:left; }
  .tu-line.tu-on { border-bottom-style:solid; border-bottom-color:#8A1F17; align-items:center; cursor:text; }
  .tu-line.tu-on.tu-bad { border-bottom-color:#B3261E; }
  .tu-cur { font-size:22px; font-weight:700; color:#6B5D48; }
  .tu-big { font-size:32px; line-height:44px; font-weight:700; color:#8A1F17; }
  .tu-in { flex:1; min-width:70px; width:auto; padding:0; border:0; outline:0; background:none; text-align:left; caret-color:#8A1F17;
           font-size:32px; line-height:44px; font-weight:700; color:#8A1F17; }
  .tu-in::placeholder { color:#C9B99E; }
  .tu-quick { flex:none; display:flex; gap:8px; }
  .tu-qb { min-height:40px; padding:0 10px; border-radius:12px; border:1px solid #E2B76A; background:#FFFDF6;
           font-size:15px; font-weight:700; color:#8A1F17; cursor:pointer; white-space:nowrap; }
  .tu-spin { width:16px; height:16px; border-radius:8px; border:2px solid #E8DCC8; border-top-color:#8A1F17; animation:tu-r .8s linear infinite; }
  @keyframes tu-r { to { transform:rotate(360deg); } }
  .tu-err { margin:0; font-size:13px; font-weight:700; color:#B3261E; text-align:center; }
  .tu-ok { margin:0; font-size:13px; font-weight:700; color:#2F7A57; }
  /* The admin's amounts as cards, each with what it buys under it. */
  .tu-grid { display:grid; grid-template-columns:repeat(3, 31.5%); justify-content:space-between; row-gap:18px; padding-top:10px; }
  .tu-card { position:relative; display:flex; flex-direction:column; padding:0; border-radius:14px; border:2px solid #E5CF9E; background:#FFFDF6;
             color:inherit; cursor:pointer; text-align:center; }
  .tu-card[aria-checked="true"] { border-color:#8A1F17; background:#FBEFD2; }
  .tu-card > b { display:flex; align-items:center; justify-content:center; min-height:54px; font-size:19px; line-height:26px; font-weight:700; color:#8A1F17; }
  .tu-card > span:not(.tu-badge) { display:block; padding:3px 4px; border-radius:0 0 12px 12px; background:#EAF3ED; font-size:13px; line-height:20px; font-weight:600;
             color:#2F7A57; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .tu-badge { position:absolute; top:-11px; left:-8px; right:-8px; display:flex; justify-content:center; pointer-events:none; }
  .tu-badge span { padding:1px 6px; border-radius:6px; background:#92600A; font-size:13px; line-height:18px; font-weight:700; color:#FFF6E6; white-space:nowrap; }
  .tu-link { display:block; margin:0 auto; padding:4px 0; border:0; background:none; text-decoration:none; font-size:15px; font-weight:700; color:#92600A; cursor:pointer; }
  .tu-cp { display:flex; flex-direction:column; gap:6px; }
  .tu-cprow { display:flex; gap:8px; }
  .tu-cpin { flex:1; min-width:0; height:46px; padding:0 16px; border-radius:23px; border:1.5px solid #E2B76A; background:#fff; outline:0;
             font-size:15px; font-weight:700; color:#17120C; }
  .tu-cpin::placeholder { text-transform:none; font-weight:400; color:#A8977C; }
  .tu-cpin.tu-bad { border-color:#B3261E; }
  .tu-cpbtn { flex:none; display:grid; place-items:center; min-width:96px; height:46px; padding:0 16px; border-radius:23px; border:1.5px solid #8A1F17;
              background:none; font-size:15px; font-weight:700; color:#8A1F17; cursor:pointer; }
  .tu-note { display:flex; align-items:center; gap:8px; padding:10px; border-radius:12px; border:1px solid #E8DCC8; background:#FFFDF6;
             font-size:13px; line-height:20px; color:#4A3F31; }
  .tu-note svg { flex:none; color:#92600A; }
  .tu-foot { display:flex; flex-direction:column; gap:8px; }
  .tu-payline { display:flex; align-items:center; justify-content:space-between; gap:8px; }
  .tu-payline span { flex:1; min-width:0; font-size:13px; color:#4A3F31; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .tu-payline b { font-size:13px; font-weight:700; color:#17120C; }
  .tu-btn { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:50px; padding:0 18px; border:0; border-radius:25px;
            background:#92600A; font-size:15px; font-weight:700; color:#FFF6E6; cursor:pointer; text-decoration:none; white-space:nowrap; overflow:hidden; }
  .tu-btn:disabled { background:#E8DCC8; color:#8A7B64; cursor:default; }
  .tu-btn.tu-line2 { border:1.5px solid #8A1F17; background:none; color:#8A1F17; }
  .tu-methods { margin:0; font-size:13px; color:#6B5D48; text-align:center; }
  .tu-pair { display:flex; gap:10px; }
  .tu-pair > * { flex:1; min-width:0; }
  .tu-center { display:flex; flex-direction:column; align-items:center; gap:8px; padding:8px 0; text-align:center; }
  .tu-center .tu-t { margin:0; font-family:Martel, Georgia, serif; font-size:20px; line-height:30px; font-weight:700; color:#8A1F17; }
  .tu-center .tu-t.tu-sm { font-size:19px; line-height:29px; }
  :root[data-lang="hi"] .tu-center .tu-t { font-family:inherit; font-weight:700; }
  .tu-center .tu-s { margin:0; padding:0 8px; font-size:15px; line-height:23px; color:#6B5D48; white-space:pre-line; }
  .tu-seal { display:block; width:84px; height:84px; margin-bottom:4px; padding:4px; border-radius:42px; border:2px solid currentColor; }
  .tu-seal > span { display:grid; place-items:center; height:100%; border-radius:38px; border:1px solid currentColor; }
  .tu-seal .tu-spin { width:30px; height:30px; border-radius:15px; border-width:3px; border-color:#F0E2C4; border-top-color:currentColor; }
  .tu-closerow { display:flex; justify-content:flex-end; }
  .tu-closerow .tu-x { position:static; }
  .tu-bill { padding:6px 14px; border-radius:14px; border:1px solid #E8DCC8; background:#FFFDF6; }
  .tu-bill div { display:flex; justify-content:space-between; gap:12px; padding:7px 0; font-size:15px; color:#4A3F31; }
  .tu-bill div b { font-weight:600; color:#17120C; font-variant-numeric:tabular-nums; }
  .tu-bill div:last-child { margin-top:2px; border-top:1px dashed #E2B76A; font-weight:700; color:#17120C; }
  .tu-bill div:last-child b { font-weight:700; }
  /* the shape of the sheet that arrives */
  .tu-sk { display:flex; flex-direction:column; gap:14px; }
  .tu-sk .tu-skl { display:flex; flex-direction:column; justify-content:center; }
  .tu-sk .tu-arow > i:first-child { flex:none; }
  .tu-sk .tu-grid i { width:100% !important; }

  /* ── the welcome gift ── */
  .d-bon { position:fixed; inset:0; z-index:60; display:flex;
           align-items:center; justify-content:center; padding:20px; }
  .d-bon[hidden] { display:none; }
  .d-bon-x { position:absolute; inset:0; background:rgba(0,0,0,.5); }
  .d-bon-c { position:relative; width:100%; max-width:390px; text-align:center;
             padding:26px 26px 20px; border-radius:18px;
             border:1px solid var(--line); background:var(--surface);
             box-shadow:0 18px 50px rgba(0,0,0,.22);
             max-height:calc(100dvh - 40px); overflow-y:auto; }
  .d-bon-g { display:inline-flex; align-items:center; justify-content:center;
             width:62px; height:62px; border-radius:50%;
             background:var(--gold-bg); color:var(--gold-dk);
             margin-bottom:13px; }
  .d-bon-c h2 { font-family:var(--font-serif); font-size:23px; font-weight:600;
                margin:0; color:var(--ink); letter-spacing:-.01em; }
  .d-bon-s { margin:5px 0 16px; font-size:13.5px; color:var(--ink-2); }
  .d-bon-amt { padding:15px; border-radius:var(--r-card);
               background:var(--gold-bg); margin-bottom:16px; }
  .d-bon-amt span { display:block; font-family:var(--font-mono);
                    font-size:10px; letter-spacing:.14em; color:var(--ink-3);
                    text-transform:uppercase; }
  .d-bon-amt b { display:block; margin:5px 0 4px; font-family:var(--font-serif);
                 font-size:38px; font-weight:600; line-height:1;
                 color:var(--gold-dk); }
  .d-bon-amt i { font-style:normal; font-size:12px; color:var(--ink-2); }
  .d-bon-l { list-style:none; margin:0 0 18px; padding:0; display:grid;
             gap:8px; text-align:left; }
  .d-bon-l li { position:relative; padding-left:20px; font-size:13px;
                color:var(--ink-2); }
  .d-bon-l li::before { content:''; position:absolute; left:4px; top:.5em;
                width:6px; height:6px; border-radius:50%;
                background:var(--gold-dk); }
  .d-bon-go { position:relative; width:100%; }
  .d-bon-go .d-bon-lb { transition:opacity .12s linear; }
  .d-bon-go[aria-busy="true"] .d-bon-lb { opacity:0; }
  .d-bon-go[aria-busy="true"] { pointer-events:none; }
  .d-bon-sp { position:absolute; top:50%; left:50%; width:20px; height:20px;
              margin:-10px 0 0 -10px; opacity:0; pointer-events:none; }
  .d-bon-go[aria-busy="true"] .d-bon-sp { opacity:1; }
  .d-bon-no { display:block; width:100%; margin-top:9px; font:inherit;
              font-size:12.5px; padding:7px; border:0; background:none;
              color:var(--ink-3); cursor:pointer; }
  .d-bon-no:hover { color:var(--ink-2); text-decoration:underline; }
  .d-bon-e { margin:9px 0 0; font-size:12.5px; color:var(--bad); }
  .d-bon-e[hidden] { display:none; }

  /* The row for whoever closed it. Money nobody has taken should not be
     invisible because a modal was dismissed once. */
  .d-bonr { display:flex; align-items:center; gap:13px; flex-wrap:wrap;
            padding:13px 16px; margin:0 0 18px;
            border:1px solid var(--gold); border-radius:var(--r-card);
            background:var(--gold-bg); }
  .d-bonr[hidden] { display:none; }
  .d-bonr-g { flex:none; color:var(--gold-dk); display:flex; }
  .d-bonr-t { flex:1 1 210px; min-width:0; font-size:13.5px; color:var(--ink); }
  .d-bonr-t b { font-weight:650; }
  .d-bonr-x { flex:none; font:inherit; font-size:12.5px; border:0;
              background:none; color:var(--ink-3); cursor:pointer;
              padding:6px 8px; }
  .d-bonr-x:hover { color:var(--ink-2); text-decoration:underline; }

  /* ── shell ── */
  .d-shell { display:grid; grid-template-columns:248px minmax(0,1fr);
             min-height:100vh; background:var(--cream); }
  .d-col2 { min-width:0; }
  .d-rail { background:var(--rail); border-right:1px solid var(--line);
            padding:16px 12px 12px; display:flex; flex-direction:column;
            gap:3px; position:sticky; top:0; height:100vh; overflow-y:auto; }
  .d-brand { display:flex; align-items:center; gap:10px; padding:4px 8px 16px;
             color:inherit; text-decoration:none;
             font-family:var(--font-serif); font-size:16px; font-weight:600; }
  .d-grp { margin-top:14px; padding:0 8px 6px; }
  .d-grp b { display:block; font-family:var(--font-mono); font-size:9.5px;
             letter-spacing:.14em; text-transform:uppercase; font-weight:600;
             color:var(--ink-3); }
  .d-grp i { display:block; font-family:var(--font-serif); font-style:italic;
             font-size:11.5px; color:var(--ink-3); }
  .d-nav { display:flex; align-items:center; gap:10px; padding:9px 10px;
           border-radius:var(--r-in); font-size:13.5px; font-weight:500;
           color:var(--ink-2); text-decoration:none; min-height:40px; }
  .d-nav:hover { background:var(--surface); color:var(--ink); }
  .d-nav .c-ico { width:18px; height:18px; flex:none; }
  .d-nl { flex:1; min-width:0; }
  .d-on { background:var(--pill-ink); color:var(--pill-text); font-weight:650; }
  .d-tail { font-family:var(--font-mono); font-size:10px; padding:1px 5px;
            border-radius:5px; background:var(--gold-bg); color:var(--gold-dk); }
  .d-on .d-tail { background:var(--surface); color:var(--ink); }
  .d-acct { position:relative; margin-top:auto; padding-top:12px;
            border-top:1px solid var(--line); }
  .d-acct-c { display:flex; align-items:center; gap:9px; padding:9px;
              border:1px solid var(--line); border-radius:var(--r-in);
              background:var(--surface); text-decoration:none;
              cursor:pointer; }
  .d-acct-c:hover { border-color:var(--gold-lt); }
  .d-acct-c .c-ico { flex:none; color:var(--ink-3);
                     transition:transform .16s; }
  #d-ac-o:checked ~ .d-acct-c .c-ico { transform:rotate(180deg); }
  /* UPWARD. It is the last thing in the rail with the viewport floor under
     it, so a menu hanging below it would open off the bottom of the screen.
     Same checkbox the profile switcher uses rather than the prototype's
     :hover, which on a touch screen is a menu that opens and will not close. */
  .d-ac-m { display:none; position:absolute; left:0; right:0;
            bottom:calc(100% + 7px); z-index:40; padding:6px;
            border-radius:var(--r-card); background:var(--surface);
            border:1px solid var(--line);
            box-shadow:0 18px 44px -18px rgba(0,0,0,.5); }
  #d-ac-o:checked ~ .d-ac-m { display:block; }
  .d-ac-x { display:none; }
  #d-ac-o:checked ~ .d-ac-x { display:block; position:fixed; inset:0;
                              z-index:35; }
  .d-ac-i { display:flex; align-items:center; gap:11px; width:100%;
            padding:9px 10px; border:0; border-radius:var(--r-in);
            background:none; cursor:pointer; text-align:left; font:inherit;
            font-size:13px; color:var(--ink); text-decoration:none; }
  .d-ac-i:hover { background:var(--surface-2); }
  .d-ac-i .c-ico { flex:none; color:var(--ink-3); }
  .d-ac-sep { height:1px; background:var(--line); margin:5px 8px; }
  /* No icon, and the only red thing in the rail: it is the one row here that
     does something rather than going somewhere. */
  .d-ac-out { padding-left:37px; color:var(--bad); font-weight:600; }
  @media (prefers-reduced-motion:reduce) {
    .d-acct-c .c-ico { transition:none; }
  }
  .d-av { width:30px; height:30px; border-radius:50%; flex:none;
          display:grid; place-items:center; font-size:12px; font-weight:700;
          background:var(--gold-solid); color:var(--gold-solid-text); }
  .d-who { min-width:0; flex:1; }
  .d-who b { display:block; font-size:13px; color:var(--ink); }
  .d-who i { display:block; font-style:normal; font-size:11.5px;
             color:var(--ink-3); }

  /* ── top bar ── */
  .d-top { display:flex; align-items:center; gap:12px; padding:11px 22px;
           border-bottom:1px solid var(--line); background:var(--cream);
           position:sticky; top:0; z-index:20; }
  .d-crumb { font-size:13px; color:var(--ink-3); min-width:0; }
  .d-crumb b { color:var(--ink); font-weight:600; }
  .d-tb { margin-left:auto; display:flex; align-items:center; gap:8px; }
  .d-chip { display:flex; align-items:center; gap:6px; font-size:12.5px;
            padding:6px 11px; border:1px solid var(--line);
            border-radius:var(--r-pill); background:var(--surface); }
  .d-chip i { font-style:normal; font-family:var(--font-mono); font-size:9.5px;
              letter-spacing:.05em; padding:1px 5px; border-radius:4px;
              background:var(--gold-bg); color:var(--gold-dk); }
  .d-wallet { display:flex; align-items:center; gap:7px; font-size:13px;
              font-weight:700; padding:6px 7px 6px 12px; text-decoration:none;
              border-radius:var(--r-pill); border:1px solid var(--gold);
              background:var(--gold-bg); color:var(--gold-dk); }
  .d-plus { display:grid; place-items:center; width:18px; height:18px;
            border-radius:50%; background:var(--gold-solid);
            color:var(--gold-solid-text); font-size:12px; line-height:1; }
  .d-burger { display:none; }
  .d-scrim { display:none; }

  /* ── main ── */
  /* FILLS THE SCREEN, at every width. It stopped at --wrap (1360px) pinned
     to the left, so a 1920px monitor showed 312px of empty cream on the
     right of every signed-in page, and 2560px showed 952. Rohit's call, 27
     Sep 2026: fill the column, no cap and no centring. */
  .d-main { padding:26px 22px 56px; max-width:none; }
  .d-h1 { font-family:var(--font-serif); font-size:clamp(27px,3.2vw,42px);
          line-height:1.08; letter-spacing:-.015em; font-weight:600;
          margin:0 0 9px; text-wrap:balance; }
  .d-h1 em { font-style:italic; color:var(--gold-dk); }
  .d-sub { display:flex; align-items:baseline; gap:8px; margin:0;
           color:var(--ink-2); font-size:14.5px; line-height:1.6;
           max-width:640px; }
  .d-sub b { color:var(--ink); font-weight:650; }
  /* NOT .d-dot. This CSS used to live inside /home/ where a page owned its
     own class names; moving it into lib/ made every name here global, and
     pages/views/biorhythm.py has been drawing its chart's data points with
     a .d-dot for months. The shell is the newcomer, so the shell renames. */
  /* Prose links. Scoped to <p> on purpose: every signed-in page puts the
     odd link in a caption or an empty-state sentence, and without this they
     render browser-default blue in the middle of a gold page. Anchors that
     are structure rather than prose — rail items, rashi tiles, roster cards,
     the profile menu — are never inside a paragraph, so they keep their own
     styling and this cannot reach them. */
  .d-main p a { color:var(--gold-dk); text-underline-offset:2px; }
  .d-main p a:hover { color:var(--gold); }

  .d-live { width:7px; height:7px; border-radius:50%; background:var(--good);
           flex:none; }
  /* WRAP, so on a phone a long title keeps the width and the grey line goes
     under it — unwrapped, "Favourable Days of the Month" and its aside were
     squeezed into two narrow columns side by side. */
  .d-mk { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 10px;
          margin:32px 0 13px; }
  .d-mk0 { margin:0 0 13px; }
  /* PLAIN HEADINGS. These were "01 · YOUR KUNDLI · at a glance": a number,
     tracked mono capitals and a serif italic aside, which reads as a design
     magazine to somebody who came for their rashifal. A heading in the
     page's own face, in title case, says the same thing the way every
     app they use says it; the number says nothing a reader acts on. */
  .d-mkn { display:none; }
  /* An h2/h3 now, so the browser's own heading margin and 1.5em size have
     to go — the row is a flex baseline and a UA margin would shove it. */
  .d-mkt { font-family:var(--font-sans); font-size:19px; line-height:1.3; letter-spacing:0;
           text-transform:none; font-weight:700; margin:0; color:var(--ink); }
  .d-mkd { font-family:var(--font-sans); font-style:normal; font-size:14px;
           color:var(--ink-3); }
  .d-card { background:var(--surface); border:1px solid var(--line);
            border-radius:var(--r-card); padding:20px; }
  /* minmax(0,1fr): a bare grid column is as wide as its widest child, and
     a row of fixed-width tabs inside a card pushed the card off a phone. */
  .d-row { display:grid; gap:15px; grid-template-columns:minmax(0,1fr); }
  .d-row > * { min-width:0; }
  /* THE LEFT CARD SETS THE HEIGHT AND BEST HOURS FITS ITSELF INTO IT.
     Stretching the pair to their tallest is not the same thing: the tallest
     is whichever has more to say, so the void simply moves to the other
     column — which is exactly what happened when Best hours grew from three
     rows to seven. The slot is an empty positioned box, so it contributes
     nothing to the row; the card fills the slot absolutely and gives up
     rows to its scroller instead of giving up its shape.

     min-height so the pair cannot collapse when the left card is in one of
     its short states — no birth details, or a chart that would not load. */
  @media (min-width:980px) {
    .d-2 { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); }
    .d-hslot { position:relative; min-height:280px; }
    .d-hslot > .d-hrs { position:absolute; inset:0; }
  }
  /* On one column there is nothing to match, so the card is its own height
     and the whole list is simply there. */
  @media (max-width:979.98px) { .d-hslot { display:contents; } }
  .d-read { font-size:14.5px; line-height:1.65; color:var(--ink-2); margin:0; }
  .d-read b { color:var(--ink); font-weight:650; }

  /* ── profile switcher ── */
  .d-pf { position:relative; }
  .d-pf-t { display:flex; align-items:center; gap:9px; cursor:pointer;
            padding:5px 9px 5px 6px; border:1px solid var(--line);
            border-radius:var(--r-pill); background:var(--surface);
            max-width:230px; }
  .d-pf-t:hover { border-color:var(--gold-lt); }
  .d-pf-n { min-width:0; text-align:left; }
  .d-pf-n b { display:block; font-size:12.5px; font-weight:650; color:var(--ink);
              white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .d-pf-n i { display:block; font-style:normal; font-family:var(--font-mono);
              font-size:10px; color:var(--ink-3); }
  .d-pf-t .c-ico { flex:none; color:var(--ink-3); }
  .d-pf-m { display:none; position:absolute; top:calc(100% + 7px); left:0;
            z-index:40; min-width:250px; padding:6px; border-radius:var(--r-card);
            background:var(--surface); border:1px solid var(--line);
            box-shadow:0 18px 44px -18px rgba(0,0,0,.5); }
  /* The input sits INSIDE .d-top, so the menu and the catcher are its
     siblings there — not descendants of .d-shell, which is what the
     first version reached for and never matched. */
  #d-pf-o:checked ~ .d-pf .d-pf-m { display:block; }
  /* A full-screen catcher so the next click anywhere closes it — without one
     the menu stays open behind whatever you clicked next. */
  .d-pf-x { display:none; }
  #d-pf-o:checked ~ .d-pf-x { display:block; position:fixed;
            inset:0; z-index:35; }
  .d-pf-i { display:flex; align-items:center; gap:9px; width:100%;
            padding:8px 9px; border:0; border-radius:var(--r-in);
            background:none; cursor:pointer; text-align:left;
            text-decoration:none; font:inherit; }
  .d-pf-i:hover { background:var(--surface-2); }
  .d-pf-on { background:var(--gold-bg); }
  .d-pf-on .d-pf-n b { color:var(--gold-dk); }
  .d-pf-add { border-top:1px solid var(--line-soft); border-radius:0 0 9px 9px;
              margin-top:4px; padding-top:11px; }
  .d-pf-add .d-av { background:var(--surface-2); color:var(--ink-2); }
  /* max-width:150px used to sit here too and had never once applied: the
     phone block further down sets max-width:none at the same specificity and
     later in the file, so it won every time. The date of birth is what this
     rule is actually for. */
  @media (max-width:560px) { .d-pf-n i { display:none; } }

  /* ── waiting ── */
  /* A grey block the shape of the answer, not a spinner in the middle of an
     empty page: the layout is already correct, so nothing jumps when the real
     values land. */
  /* A SWEEP, NOT A PULSE. The old rule faded --line-soft in and out, and
     --line-soft sits 1.07:1 against the card it lies on in dark — so the bar
     was invisible at its brightest and more invisible at its dimmest, which
     reads as a page that has finished loading and has nothing to say. The
     band travelling left to right is the part that says "still coming"; the
     bar underneath it is what says "and it will be about this big". */
  .d-sk { display:block; min-height:1em; width:100%; border-radius:6px;
          /* The &nbsp; that gives the span its height must not be seen. */
          color:transparent; user-select:none;
          background-color:var(--sk);
          background-image:linear-gradient(100deg, rgba(0,0,0,0) 34%,
                           var(--sk-hi) 50%, rgba(0,0,0,0) 66%);
          background-size:280% 100%; background-repeat:no-repeat;
          animation:d-sheen 1.45s linear infinite; }
  .d-sk + .d-sk { margin-top:7px; }
  @keyframes d-sheen { from { background-position:170% 0; }
                       to { background-position:-70% 0; } }
  /* Stationary, not still-but-invisible: reduced motion keeps the bar and
     drops only the travel. */
  @media (prefers-reduced-motion:reduce) {
    .d-sk { animation:none; background-image:none; }
  }

  /* IN A FLEX PARENT A SKELETON COLLAPSES. .d-sub is a flex row, so a
     `<span class="d-sk">&nbsp;</span>` shrink-wrapped its one space and came
     out 3px wide — five screens opened with a crumb of grey under the
     headline where a line of type was about to appear. Width here, and a
     shorter one for the sub, because a full-column bar promises a paragraph
     the line will not deliver. */
  .d-sub .d-sk { flex:0 0 auto; width:min(26ch, 100%); }

  /* Seen only when a live reading could not be fetched and the page is
     showing what was built into it. It is a caveat on real data, not an
     error — amber, in the subtitle, not a banner across the page. It lives
     here because every signed-in page that reads a dated snapshot needs the
     same sentence, and three copies would drift. */
  .d-stale { color:var(--mid); font-size:13px; }
  .d-stale b { color:var(--mid); font-weight:650; }
  /* Same collapse, in the top bar. The profile chip and the wallet pill both
     size to their contents, so a width:100% child resolves against nothing —
     3px and 13px respectively. These are the widths a name and a balance
     actually take, so the chrome does not resize when they arrive. */
  .d-pf-n .d-sk { width:9ch; }
  .d-wallet .d-sk { width:4.5ch; }

  /* ── the rail becomes a drawer ── */
  @media (max-width:900px) {
    .d-shell { grid-template-columns:minmax(0,1fr); }
    .d-burger { display:grid; place-items:center; width:44px; height:44px;
                flex:none; cursor:pointer; border:1px solid var(--line);
                border-radius:10px; background:var(--surface);
                color:var(--ink-2); }
    /* HEIGHT FROM ITS EDGES, NOT 100vh. The desktop rail's height:100vh
       came along, and 100vh is the screen with the browser's bars put
       away: with the address bar showing the drawer ran 80px past the
       bottom on Android Chrome (40px under Safari's toolbar), so the
       account card at its foot could not be reached. In-app browsers
       (WhatsApp, Instagram) can work 100vh out from a smaller window than
       the one showing, which leaves the drawer covering part of the screen.
       top:0 + bottom:0 is the visible screen in every one of them. */
    .d-rail { position:fixed; top:0; left:0; bottom:0; height:auto;
              width:264px; z-index:40;
              transform:translateX(-100%); transition:transform .2s ease; }
    #d-menu:checked ~ .d-shell .d-rail { transform:none; }
    #d-menu:checked ~ .d-shell .d-scrim { display:block; position:fixed;
              inset:0; z-index:30; background:rgba(0,0,0,.45); }
    .d-main { padding:20px 16px 48px; }
    .d-top { padding:10px 16px; }
  }
  /* ── ONE ROW ON A PHONE ──
     The bar holds a burger, the profile chip, a breadcrumb, a date, a wallet
     and the theme toggle: 473px of controls in 358px at 390. Letting it wrap
     kept everything on screen and made the header 116px of a 844px phone —
     two rows, the second one shoved to the right by margin-left:auto with
     124px of dead space beside it. It read as a header that had come apart,
     not one that had been designed.
     Two things go instead of wrapping. The breadcrumb, because it names the
     page a reader is looking at. And the date chip, because it is the only
     thing on the bar that is not a control — every page that turns on the
     date says so in its own heading, and what a phone needs up here is the
     way out (burger), who this is cast for (profile), and the money.
     What is left is 191px of fixed controls, so the profile takes the rest
     and truncates. That is why .d-pf gets min-width:0: it is a flex item, its
     min-width defaults to its content, and without this the name would push
     the wallet off the edge rather than ellipsing — the same trap that gave
     the roster card a 326px floor. */
  @media (max-width:620px) {
    .d-top { flex-wrap:nowrap; gap:8px; }
    .d-crumb { display:none; }
    .d-chip { display:none; }
    .d-tb { margin-left:auto; flex:none; gap:8px; }
    /* FITS ITS NAME, and shrinks only when the row runs out. flex defaults to
       0 1 auto, so the chip is as wide as its contents and no wider; the
       max-width is the ceiling a long name truncates at, and min-width:0 is
       what lets it give way at 320 rather than widening the page.
       It used to be flex:1 1 auto with width:100%, which stretched it across
       whatever the bar had spare — a chip holding "Rohit Singh" sat 167px
       wide with the name floating in the left third of it. */
    .d-pf { min-width:0; }
    .d-pf-t { max-width:190px; }
  }
  @media (prefers-reduced-motion:reduce) { .d-rail { transition:none; } }
  /* ── 11px IS THE FLOOR ON A PHONE, EVERYWHERE INSIDE THE SHELL ──
     Thirty-six rules across four files set text between 8.5px and 10.5px on
     these pages: axis labels, table headings, row labels, the segment names
     inside the dasha bars, date pills, the notification-time caption. Each was
     a fair call at 1280px, where the same component has half again the room.
     On a phone they are collectively most of the words on the screen, and
     8.5px is not a size anybody reads on a bus.
     ONE BLOCK, NOT THIRTY-SIX EDITS, because scattering the same override
     through four files is how the thirty-seventh gets written at 9px and
     nobody notices. .d-main prefixes every selector because page CSS is
     emitted AFTER the shell's, so this needs specificity rather than position
     to win — and from here it wins wherever the base rule lives.
     Anything that genuinely cannot hold 11px gets room made for it instead of
     being allowed back under the floor.
     THREE OF THESE WERE INVISIBLE LOCALLY. .d-fx (the dashboard's tithi /
     nakshatra / yoga / karana row) and .c-tl-now (the "now" marker on the day
     timeline) only render when there is live panchang data, and a local build
     runs with COSMIQE_STALE_OK=1. They were found by running the check
     against production after deploying, which is now the only way to see
     them — worth remembering before trusting a local pass on these pages. */
  @media (max-width:640px) {
    .d-main .c-lb-i i,
              .d-main .c-pf-l,
              .d-main .c-scl-l,
              .d-main .c-scl-t,
              .d-main .c-scl-tag,
              .d-main .c-scl-v,
              .d-main .c-table th,
              .d-main .c-tl-c b,
              .d-main .c-tl-lbl,
              .d-main .c-tl-night i,
              .d-main .c-tl-now i,
              .d-main .d-fx s,
              .d-main .d-fx i,
              .d-main .c-tl-t i,
              .d-main .d-flc s,
              .d-main .d-lk s,
              .d-main .d-ovl,
              .d-main .d-rate,
              .d-main .d-scl,
              .d-main .dl-lab i,
              .d-main .dl-lab s,
              .d-main .dl-life-t,
              .d-main .dl-ls b,
              .d-main .dl-ls i,
              .d-main .dl-seg,
              .d-main .dl-sg-h s,
              .d-main .dl-sg-r s,
              /* .dl-tbl th was here. The dasha table stacks on a phone and
                 hides its heads, so there is no width at which this rendered
                 — see the block at the end of dasha_app.py. */
              .d-main .h-dl-r .h-dl-pc,
              .d-main .h-f-b u,
              .d-main .h-f-bn,
              .d-main .h-f-hint,
              .d-main .h-f-l,
              .d-main .h-f-luck-t,
              .d-main .h-f-tile i,
              .d-main .h-trend,
              /* ── THE THREE THAT MIX THEIR OWN TEXT WITH A CHILD ──
                 Missed for a reason in the checks rather than in the page:
                 shell-mobile.mjs only measured elements with no element
                 children at all, so anything shaped like
                 <text>Finance<tspan>87</tspan></text> or
                 <span><svg/>Tithi<i>…</i></span> was never looked at, on five
                 horoscope pages and panchang. The eyebrow is 10.5, the anga
                 heading 10, and the radar label 8.5 in an SVG that renders it
                 at 9.0 on a 320 screen. */
              .d-main .h-f-eyebrow,
              .d-main .h-radar-l,
              .d-main .p-anga-h,
              .d-main .p-ch-h,
              .d-main .p-per-h,
              .d-main .p-sum i { font-size:11px; }
  }
  /* THE DAY STRIP'S ROW NAMES AS PLAIN LABELS, like every other label behind
     sign-in: Tithi, Nakshatra, Choghadiya in the page's face, not spaced
     mono capitals. After the floor above so its 12px wins at every width. */
  .d-main .c-tl-lbl { font-family:var(--font-sans); font-size:12px;
                      letter-spacing:0; text-transform:none; }
  /* THE DIAMOND, SIGNED IN (Rohit, 27 Sep 2026: the two big kundlis read as
     wireframes). A gold frame and gold lines, the lagna's box shaded — every
     reading starts there — and the grahas in the page's own face at a size
     that reads, rather than 11px mono floating in empty boxes. The numbers
     stay small and grey: they are the frame. Kundli, Transits and Matching. */
  .d-main .c-nc { border-radius:12px; overflow:hidden; box-shadow:0 0 0 1.5px var(--gold); }
  .d-main .c-nc-bg { fill:var(--gold-lt); }
  .d-main .c-nc-h1 { fill:var(--gold-bg); }
  /* 12, not 13: three grahas stacked in a side box sit 13 units apart, and
     at 13px "Su / Ju / Ve" touched (shell-mobile's chartClash, on the
     fixture's crowded 3rd bhava). */
  .d-main .c-nc-p { font-family:var(--font-sans); font-size:12px; font-weight:700; }
  .d-main .c-nc-s { font-size:10px; font-weight:600; }
  .d-main .c-nc-rx { font-size:8.5px; }
  /* THE PLAIN DIAMOND, the public one: thin lines, no gold frame, no
     shaded lagna box (Rohit, 28 Sep 2026: "the kundli design i want the
     public one for logged in page as well, simple"; and Transits the same
     as Kundli, 21 Oct 2026). On the wrapper, so Kundli and Transits share
     one rule; Matching and the dashboard keep the gold. */
  .d-main .c-nc-plain .c-nc { border-radius:0; box-shadow:none; }
  .d-main .c-nc-plain .c-nc-bg { fill:var(--line); }
  .d-main .c-nc-plain .c-nc-h1 { fill:var(--surface); }
  .d-main .c-nc-plain .c-nc-p { font-family:var(--font-mono); font-size:11px; }
  .d-main .c-nc-plain .c-nc-s { font-size:9.5px; font-weight:400; }
  .d-main .c-nc-plain .c-nc-rx { font-size:6.5px; }
  /* 44px UNDER A FINGER (the signed-in review, 28 Sep 2026): by pointer, not
     by width, so a tablet gets it too — the size of a fingertip is not a
     property of the window. */
  @media (pointer:coarse) {
    .d-wallet { min-height:44px; }
  }
  /* THE THREE MENUS ARE CHECKBOXES, and the checkbox is off-screen, so a
     keyboard user tabbing onto one saw nothing move. The ring goes on the
     control they are actually looking at. */
  #d-pf-o:focus-visible ~ .d-pf .d-pf-t, #d-ac-o:focus-visible ~ .d-acct-c,
  #d-menu:focus-visible ~ .d-shell .d-burger { outline:2px solid var(--gold); outline-offset:2px; }

  /* ── THE ROSTER CARDS IN A ROW (was the dashboard's own) ── */
  .d-ags { display:grid; gap:15px; align-items:start; }
  .d-cell { display:flex; }
  .d-cell > * { flex:1; }
  /* SYMMETRIC CARDS. Side by side, every card is the same four rows of the
     grid they sit in (subgrid, twice: the cell, then the card): name,
     practice, rating and languages, buttons. A name that wraps makes that
     row taller in all three, so the lines and both price buttons line up
     across the row and the cards end at one height. The card's own head
     wrappers step aside (display:contents) so their parts sit on those rows. */
  @media (min-width:900px) {
    .d-ags { grid-template-columns:repeat(3,minmax(0,1fr)); row-gap:0; align-items:stretch; }
    .d-ags > .d-cell { display:grid; grid-row:span 4; grid-template-rows:subgrid;
                       row-gap:0; margin-bottom:15px; }
    .d-ags .c-as { grid-row:span 4; display:grid; grid-template-rows:subgrid; row-gap:0;
                   grid-template-columns:64px minmax(0,1fr); column-gap:13px; }
    .d-ags .c-as-h, .d-ags .c-as-id { display:contents; }
    .d-ags .c-as-h > :first-child { grid-column:1; grid-row:1 / span 3; align-self:start; }
    .d-ags .c-as-id > b { grid-column:2; grid-row:1; align-self:end; }
    .d-ags .c-as-sp { grid-column:2; grid-row:2; align-self:start; }
    .d-ags .c-as-r { grid-column:2; grid-row:3; align-self:start; }
    .d-ags .c-as-buy { grid-column:1 / -1; grid-row:4; align-self:end; }
    /* THE CARD CANNOT BE A CONTAINER HERE. ui.py makes .c-as a size
       container (container "as", for its button rules), and a container
       has layout containment, which turns subgrid into none: the card then
       sized its own rows, the practice line collapsed to its overflow
       minimum and the rating line sat on top of it (Rohit, 20 Oct 2026,
       /home/matching/). The buttons are what those rules change, so their
       row is the container instead. */
    .d-ags .c-as { container-type:normal; }
    .d-ags .c-as-buy { container-type:inline-size; container-name:as; }
  }
  /* The name on one line (the corner tag sits above it instead of taking
     the end of it) and each button on one line: on a narrow card the struck
     price goes, the card's "50% OFF" still says it. */
  .d-ags .c-as:has(.c-as-off:not(:empty)) { padding-top:30px; }
  .d-ags .c-as:has(.c-as-off:not(:empty)) .c-as-id > b { padding-right:0; }
  @container as (max-width:300px) {
    .d-ags .c-as-rate[data-was]:not(:empty)::before { content:none; }
  }

  /* ── ASK AN ASTROLOGER, under a page's reading ── */
  .c-askb { margin-top:22px; }
  .c-askb-h { margin:0 0 4px; font-family:var(--font-sans); font-size:16px;
              font-weight:700; color:var(--ink); }
  .c-askb-why { margin:0 0 12px; padding:8px 12px; border-radius:10px;
                background:var(--gold-bg); font-size:13.5px; line-height:1.55;
                color:var(--ink-2); max-width:760px; }
  .c-askb-why:empty { display:none; }
  .c-askb-all { display:inline-flex; align-items:center; min-height:44px;
                font-size:14px; font-weight:600; color:var(--gold-dk); }
  :root[data-lang="hi"] .c-askb-why { font-size:15px; }
  /* ON A PHONE, A ROW YOU SWIPE (Rohit, 27 Sep 2026: "optimize for phone").
     Three roster cards stacked were ~1,300px under every page that offers
     them. One whole card and the edge of the next says there are more; the
     row bleeds to the screen edge (.d-main's 16px), snaps card by card, and
     fades at its right edge — the report banner's way of saying it goes on. */
  @media (max-width:640px) {
    .c-askb .d-ags { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:86%;
      gap:12px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory;
      scroll-padding:0 16px; margin:0 -16px; padding:0 16px 8px; scrollbar-width:none;
      -webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 28px), transparent);
      mask-image:linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
    .c-askb .d-ags::-webkit-scrollbar { display:none; }
    .c-askb .d-ags > .d-cell { scroll-snap-align:start; margin:0; }
  }

  /* Everything on the kundli is namespaced j-. The shell owns c-, h-, l-, s-
     and sg-; restyling a bare class one of those owns is what checks/clash.py
     exists to catch, and it has caught it twice. */

  /* The example caption lives under the form in the hero — see the aside in
     pages/kundli.py. Nothing here styles it. */

  /* ── the tabs ───────────────────────────────────────────────── */
  .j-tabs { margin-top:24px; }
  /* Zero-height scroll anchors, one per tab, sitting immediately above the
     strip. :target lands HERE rather than on a panel — target a panel and the
     browser scrolls that panel's top edge to the top of the viewport, which
     throws the strip you just clicked off the screen every single time. The
     margin is the sticky site header plus a little air. */
  .j-tt { display:block; height:0; scroll-margin-top:82px; }
  /* ── z-index 4, AND THE 40 IT WAS IS WHY THE DRAWER LOST ──
     .d-rail is the phone drawer at z-index:40 and its scrim is 30. This
     strip was 40 as well, and equal z-index is settled by DOM order — the
     rail is written before the column that holds this — so the tabs painted
     straight over an open drawer.
     4, not 40: the only thing this has to sit above is the page scrolling
     under it, and it has to sit UNDER .d-top (5), which it tucks beneath at
     top:60px. Above 5 it would cover the site header on the way past. */
  .j-tn { position:sticky; top:60px; z-index:4; display:flex; gap:8px;
    margin:0 0 8px; padding:10px 0; overflow-x:auto; overflow-y:hidden;
    background:var(--cream); border-bottom:1px solid var(--line);
    scrollbar-width:none; }
  .j-tn::-webkit-scrollbar { display:none; }
  .j-tn a { flex:none; display:flex; flex-direction:column;
    justify-content:center; gap:1px; min-height:44px; padding:6px 15px;
    text-decoration:none; border:1px solid var(--line);
    border-radius:var(--r-pill); background:var(--surface); }
  .j-tn a > b { font-size:13.5px; font-weight:650; color:var(--ink-2);
    white-space:nowrap; }
  .j-tn a > i { font-style:normal; font-size:11px; color:var(--ink-3);
    white-space:nowrap; }
  .j-tn a:hover { border-color:var(--gold-lt); }
  /* Which tab is open by default, and which link is lit for it, are generated
     from DEFAULT_TAB — see tab_css(). Nothing here names a tab. */
  .j-tp { display:none; }
  /* The panel's own h2. The tab link above already names it and the panel
     opens with a visible section head of its own, so a third printing of the
     same words would be noise — but the heading has to EXIST for the document
     outline and for aria-labelledby to point at something. */
  .j-tp-h { position:absolute; width:1px; height:1px; margin:-1px;
    overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .j-gap { height:8px; }
  @media (max-width:559px) {
    /* ALL FOUR ACROSS on a phone, sharing the width: as a scrolling row of
       pills, "Dasha" sat off the right edge and nobody knew it was there.
       A long name takes two lines; the sub-label is a nicety and goes. */
    .j-tn { gap:6px; overflow:visible; }
    .j-tn a > i { display:none; }
    .j-tn a { flex:1 1 0; min-width:0; padding:6px 6px; align-items:center;
      text-align:center; border-radius:12px; }
    .j-tn a > b { white-space:normal; font-size:13px; line-height:1.2; }
  }
  /* PRINTING. Five tabs would otherwise print as one, and a kundli somebody
     prints for their pandit ji with four fifths missing is worse than no print
     stylesheet at all. Every panel, and every one of the twenty-three vargas,
     because a printed janam kundli traditionally carries them. */
  @media print {
    .j-tn { display:none; }
    .j-tt { display:none; }
    .j-tp { display:block !important; }
    .j-cp { display:block !important; break-inside:avoid; }
    .j-tabs { margin-top:0; }
  }
  /* An explainer, not body copy. At 14px/1.75 in --ink-2 over 68ch these read
     as the point of the section; they are the caption under the point, and the
     thing they caption is the table or the drawing below them. */
  /* Full width, as the tables under them are (Rohit, 28 Sep 2026: "make it
     use full width"); at 62ch a note stopped halfway across. */
  .j-note { margin:-8px 0 18px; font-size:13px;
    line-height:1.7; color:var(--ink-3); }
  .j-note b { color:var(--ink-2); font-weight:650; }
  .j-sub { display:block; font-style:normal; font-size:11.5px;
    color:var(--ink-3); margin-top:2px; }

  /* ── the lagna band ─────────────────────────────────────────── */
  .j-lb { padding:22px 24px 18px; border:1px solid var(--gold-lt);
    border-radius:var(--r-card); background:var(--gold-bg); margin-bottom:20px; }
  .j-lb-top { display:grid; gap:20px 28px; grid-template-columns:1fr; }
  @media (min-width:880px) {
    /* The two that lead take more room than the two that follow. */
    /* start, not center. Centred, the shorter pair floats against the taller
       one and the four eyebrow labels sit on two different lines 7px apart —
       close enough to read as a mistake rather than as a decision. */
    .j-lb-top { grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
      align-items:start; }
  }
  .j-lb-lead, .j-lb-rest { display:grid; gap:18px 22px;
    grid-template-columns:repeat(2,minmax(0,1fr)); min-width:0; }
  .j-lb-l, .j-lb-s { min-width:0; }
  .j-lb-l > b { display:block; font-family:var(--font-serif); font-size:30px;
    font-weight:600; line-height:1.12; color:var(--gold-dk); margin:5px 0 3px; }
  /* Half the size and in the ink ramp, not in gold. Four values in 26px gold
     was four things shouting at the same volume. */
  .j-lb-s > b { display:block; font-family:var(--font-serif); font-size:19px;
    font-weight:600; line-height:1.2; color:var(--ink); margin:4px 0 2px; }
  .j-lb-l > i, .j-lb-s > i { display:block; font-style:normal; font-size:12.5px;
    color:var(--ink-2); }
  /* The settings, as four facts rather than one mono sentence. Not hidden:
     the section under this page argues that two sites disagree because they
     pick different ones. */
  .j-lb-f { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px;
    padding-top:16px; border-top:1px solid var(--gold-lt); }
  .j-lb-f > span { display:flex; align-items:baseline; gap:6px;
    padding:5px 11px; border-radius:var(--r-pill);
    border:1px solid var(--gold-lt); background:var(--surface);
    font-size:12px; color:var(--ink); }
  .j-lb-f i { font-style:normal; font-family:var(--font-mono); font-size:9.5px;
    letter-spacing:.11em; text-transform:uppercase; color:var(--ink-3); }
  @media (max-width:520px) {
    /* TWO ACROSS, NOT ONE. This flattened both pairs to a single column, so
       the four facts a kundli opens with — lagna, rashi, nakshatra, surya —
       were four full-width rows and the section was a column of headings
       before the chart itself. They stay in their pairs: the two that lead
       above the two that follow, two on each line. The lead type comes down
       again to fit a half-width column, and the sub lines wrap rather than
       clip, since a nakshatra plus its pada and lord is longer than a sign
       name. */
    .j-lb-lead, .j-lb-rest { gap:14px 16px; }
    .j-lb-l > b { font-size:21px; }
    .j-lb-s > b { font-size:16px; }
    .j-lb-l > i, .j-lb-s > i { overflow-wrap:break-word; }
  }
  /* Below 360 there is not room for two 26-character sub lines side by side,
     and the pair goes back to one column — the same floor the report shelf
     uses, and for the same reason. */
  @media (max-width:359px) {
    .j-lb-lead, .j-lb-rest { grid-template-columns:1fr; }
  }

  /* ── legend ─────────────────────────────────────────────────── */
  .j-leg { display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center;
    margin-top:18px; padding:14px 16px; border:1px solid var(--line-soft);
    border-radius:var(--r-in); background:var(--surface-2); }
  .j-leg > span { display:flex; align-items:baseline; gap:6px;
    font-size:12.5px; color:var(--ink-2); }
  .j-leg > span > b { font-family:var(--font-mono); font-size:11px;
    font-weight:700; color:var(--ink); }
  .j-leg-n { flex-basis:100%; display:block; font-size:12.5px;
    line-height:1.7; color:var(--ink-3); }

  /* ── tables ─────────────────────────────────────────────────── */
  .j-tbl { border:1px solid var(--line); border-radius:var(--r-card);
    background:var(--surface); overflow:auto; }
  .j-tbl table { width:100%; border-collapse:collapse; font-size:13px;
    min-width:640px; }
  /* Eight columns carrying eleven fields need the room; below this the
     wrapper scrolls sideways, which is what it is for. */
  .j-tbl-pl table { min-width:900px; }
  /* The header row is NOT sticky, and the rule that claimed it was is gone.
     .j-tbl is overflow:auto for the sideways scroll a nine-column table needs
     on a phone, and an ancestor with overflow resolves sticky against ITSELF
     rather than the viewport — so `top:0` pinned the row to the top of a box
     that never scrolls vertically, which is to say it did nothing at all. It
     measured 406px above the fold. .q-tbl on the calculators gets away with
     the same rule because it also caps max-height, so its box really is a
     scrollport; these tables are nine and twelve rows and do not want to be a
     scrollbox inside a page. */
  .j-tbl thead th { background:var(--surface);
    text-align:left; font-family:var(--font-mono); font-size:9.5px;
    letter-spacing:.11em; text-transform:uppercase; color:var(--ink-3);
    font-weight:400; padding:12px 14px; border-bottom:1px solid var(--line);
    white-space:nowrap; }
  .j-tbl tbody th { text-align:left; font-weight:600; color:var(--ink);
    padding:11px 14px; border-bottom:1px solid var(--line-soft);
    white-space:nowrap; }
  .j-tbl tbody th > b { display:block; font-weight:650; }
  .j-tbl tbody th > i { display:block; font-style:normal; font-size:11.5px;
    font-weight:400; color:var(--ink-3); margin-top:1px; }
  .j-tbl td { padding:11px 14px; border-bottom:1px solid var(--line-soft);
    color:var(--ink-2); vertical-align:top; }
  .j-tbl tbody tr:last-child > * { border-bottom:0; }
  .j-num { font-family:var(--font-mono); font-variant-numeric:tabular-nums;
    white-space:nowrap; }
  .j-mean { color:var(--ink-3); font-size:12.5px; line-height:1.55;
    min-width:190px; }
  .j-tbl-sm table { min-width:260px; }
  /* The row that is yours — the first bhava, the running mahadasha. Gold
     ground, and the left rule so it survives a horizontal scroll that puts
     the tinted cells off-screen. */
  .j-mine > * { background:var(--gold-bg); }
  .j-mine > :first-child { box-shadow:inset 3px 0 0 var(--gold); }

  .j-g { display:inline-block; padding:2px 7px; margin:0 4px 4px 0;
    border-radius:var(--r-pill); border:1px solid var(--line);
    background:var(--surface-2); font-family:var(--font-mono); font-size:11px;
    color:var(--ink); }

  /* Dignity. The one place colour carries meaning on this page, and it is the
     product's own three semantic tokens rather than a fourth palette. Each
     pairs its own -bg, which is what makes them clear 4.5:1 in both themes. */
  .j-dig { display:inline-block; padding:2px 9px; border-radius:var(--r-pill);
    font-size:11.5px; font-weight:600; white-space:nowrap;
    background:var(--surface-2); color:var(--ink-2); }
  .j-dig-good { background:var(--good-bg); color:var(--good); }
  .j-dig-mid { background:var(--mid-bg); color:var(--mid); }
  .j-dig-bad { background:var(--bad-bg); color:var(--bad); }

  .j-st { display:inline-block; padding:2px 8px; border-radius:var(--r-pill);
    border:1px solid var(--line); background:var(--surface-2);
    font-size:11px; font-style:normal; color:var(--ink-2); white-space:nowrap; }
  .j-st-w { border-color:transparent; background:var(--mid-bg);
    color:var(--mid); }
  .j-st-good { border-color:transparent; background:var(--good-bg);
    color:var(--good); }
  .j-st-mid { border-color:transparent; background:var(--mid-bg);
    color:var(--mid); }
  .j-st-r { border-color:var(--gold); background:var(--gold-bg);
    color:var(--gold-dk); font-weight:600; }
  .j-st-bad { border-color:transparent; background:var(--bad-bg);
    color:var(--bad); }

  /* ── the graha table ────────────────────────────────────────── */
  /* The dignity spine. Six columns of flat text told you Venus was
     Moolatrikona and Jupiter was in an enemy rashi in the same weight as
     everything else; a 3px rule down the left of the row says it before you
     have read a word, and the chip in the last column says which. This is the
     only colour in the table and it is the product's own three semantic
     tokens, not a fourth palette. */
     Each tone rule is written at .j-tbl-pl depth on purpose: `.j-pl-good > th`
     alone is (0,1,1) against the base's (0,2,2), so the base won and all nine
     spines painted --line. The spine was invisible in the first build. */
  .j-tbl-pl tbody th { box-shadow:inset 3px 0 0 var(--line); }
  .j-tbl-pl .j-pl-good > th { box-shadow:inset 3px 0 0 var(--good); }
  .j-tbl-pl .j-pl-mid > th { box-shadow:inset 3px 0 0 var(--mid); }
  .j-tbl-pl .j-pl-bad > th { box-shadow:inset 3px 0 0 var(--bad); }
  .j-tbl-pl tbody tr:nth-child(even) > * { background:var(--surface-2); }
  .j-tbl-pl td > b { display:block; font-weight:600; color:var(--ink); }
  .j-tbl-pl td > b em { font-style:normal; font-weight:400; color:var(--ink-3); }
  /* The drawing and the name, side by side. iconset draws the nine rather
     than setting them in a font — see the note above GLYPH in lib/iconset.py
     for why the Unicode graha block is not trustworthy on Android. */
  .j-tbl-pl tbody th { display:flex; align-items:center; gap:9px; }
  .j-pl-i { display:grid; place-items:center; width:26px; height:26px;
    flex:none; border-radius:50%; border:1px solid var(--line);
    background:var(--surface-2); color:var(--ink-2); }
  /* The name and its Sanskrit, stacked. .j-tbl tbody th > b sets display:block
     but these are grandchildren of the th now that the drawing shares the
     cell, so the child combinator stopped matching and the two ran together
     as "SunSurya". */
  .j-pl-n { min-width:0; }
  .j-pl-n > b { display:block; font-weight:650; color:var(--ink); }
  .j-pl-n > i { display:block; font-style:normal; font-size:11.5px;
    font-weight:400; color:var(--ink-3); margin-top:1px; }
  /* The bhava is the answer to "where is my Saturn", so it is a disc rather
     than a digit in a column of digits. */
  .j-hn { display:grid; place-items:center; width:30px; height:30px;
    border-radius:50%; border:1px solid var(--gold-lt);
    background:var(--gold-bg); font-family:var(--font-mono); font-size:13px;
    font-weight:700; color:var(--gold-dk); }
  .j-key { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:12px; }
  .j-key > span { display:flex; align-items:center; gap:7px; font-size:12px;
    color:var(--ink-3); }
  .j-key i { width:14px; height:3px; border-radius:2px; flex:none; }
  .j-key-good { background:var(--good); }
  .j-key-mid { background:var(--mid); }
  .j-key-bad { background:var(--bad); }
  .j-key-na { background:var(--line); }

  /* ── the twelve bhavas ──────────────────────────────────────── */
  .j-bh-g12 { display:grid; gap:12px; grid-template-columns:1fr; }
  @media (min-width:560px) {
    .j-bh-g12 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  }
  @media (min-width:900px) {
    .j-bh-g12 { grid-template-columns:repeat(3,minmax(0,1fr)); }
  }
  @media (min-width:1120px) {
    .j-bh-g12 { grid-template-columns:repeat(4,minmax(0,1fr)); }
  }
  .j-bh { position:relative; overflow:hidden; min-width:0; padding:16px 18px 15px;
    border:1px solid var(--line); border-radius:var(--r-card);
    background:var(--surface); }
  /* The bhava number, large and set back. It is the thing the eye lands on and
     it is also the one value on the card that never needs reading twice. */
  .j-bh-n { position:absolute; top:2px; right:12px; font-family:var(--font-serif);
    font-size:56px; font-weight:600; line-height:1; color:var(--line);
    pointer-events:none; }
  .j-bh > b { position:relative; display:block; font-family:var(--font-serif);
    font-size:20px; font-weight:600; color:var(--ink); margin:5px 0 1px; }
  .j-bh > i { position:relative; display:block; font-style:normal;
    font-size:12px; color:var(--ink-3); }
  .j-bh-g { position:relative; display:flex; flex-wrap:wrap; gap:5px;
    margin:12px 0 0; min-height:24px; }
  .j-bh-g em { font-style:normal; font-size:12px; color:var(--ink-3); }
  .j-bh > p { position:relative; margin:11px 0 0; padding-top:10px;
    border-top:1px solid var(--line-soft); font-size:12.5px; line-height:1.55;
    color:var(--ink-2); }
  /* The lagna. Everything is counted from it, so it is the one card that is
     not on --surface. */
  .j-bh-on { border-color:var(--gold-lt); background:var(--gold-bg); }
  .j-bh-on .j-bh-n { color:var(--gold-lt); }
  .j-bh-on > b { color:var(--gold-dk); }
  /* A bhava with nothing in it is not a defect, and it should not read as a
     card that failed to load — it recedes rather than showing an em dash. */
  .j-bh-mt { background:var(--surface-2); }

  /* ── the day you were born ──────────────────────────────────── */
  .j-dy { margin:0 0 20px; }
  .j-dy-b0 { position:relative; height:40px; border-radius:var(--r-sm);
    background:var(--surface-2); border:1px solid var(--line);
    overflow:visible; }
  /* --gold-lt, not --gold-bg. The first version drew daylight in --gold-bg on
     a --surface-2 track, which measures 1.02:1 against it — the band was
     geometrically correct and completely invisible, and all a reader could see
     were the two hairline borders. A band nobody can see is not a band. */
  .j-dy-day { position:absolute; top:0; bottom:0; background:var(--gold-lt); }
  /* Rahu kaal is hatched rather than filled: it is a window to avoid, not a
     value, and a solid band the same weight as daylight would read as another
     phase of the day. */
  .j-dy-rk { position:absolute; top:0; bottom:0;
    background:repeating-linear-gradient(135deg,
      var(--mid) 0 3px, transparent 3px 7px);
    border-left:1px solid var(--mid); border-right:1px solid var(--mid); }
  .j-dy-b { position:absolute; top:-5px; bottom:-5px; width:0; }
  .j-dy-b > b { position:absolute; top:0; bottom:0; left:-1px; width:2px;
    background:var(--ink); }
  .j-dy-b i { position:absolute; left:50%; top:100%; transform:translateX(-50%);
    margin-top:5px; white-space:nowrap; font-style:normal;
    font-family:var(--font-mono); font-size:11px; font-weight:700;
    color:var(--ink); }
  .j-dy-t { position:relative; height:16px; margin-top:22px; }
  .j-dy-t > span { position:absolute; transform:translateX(-50%);
    font-size:11px; color:var(--ink-3); white-space:nowrap; }
  .j-dy-k { display:flex; flex-wrap:wrap; gap:6px 16px; margin-top:10px; }
  .j-dy-k > span { display:flex; align-items:center; gap:6px; font-size:11.5px;
    color:var(--ink-3); }
  .j-dy-k i { width:14px; height:10px; border-radius:2px; flex:none;
    border:1px solid var(--line); }
  .j-dy-kd { background:var(--gold-lt); border-color:var(--gold-lt); }
  .j-dy-kr { border-color:var(--mid); background:repeating-linear-gradient(
      135deg, var(--mid) 0 3px, transparent 3px 7px); }
  .j-dy-kn { background:var(--surface-2); }

  /* ── panchang / avakhada ────────────────────────────────────── */
  .j-two { display:grid; gap:18px; grid-template-columns:1fr;
    align-items:stretch; }
  @media (min-width:880px) { .j-two { grid-template-columns:1fr 1fr; } }
  .j-card { min-width:0; padding:20px 22px; border:1px solid var(--line);
    border-radius:var(--r-card); background:var(--surface); }
  .j-card-h { margin-bottom:16px; padding-bottom:14px;
    border-bottom:1px solid var(--line-soft); }
  .j-card-h > b { display:block; font-family:var(--font-serif); font-size:19px;
    font-weight:600; color:var(--ink); }
  .j-card-h > i { display:block; font-style:normal; font-size:13px;
    line-height:1.6; color:var(--ink-3); margin-top:4px; }
  .j-kvs { display:grid; gap:14px 18px;
    grid-template-columns:repeat(auto-fit,minmax(118px,1fr)); }
  .j-kv { min-width:0; }
  .j-kv > b { display:block; font-size:14.5px; font-weight:600;
    color:var(--ink); margin-top:3px; }

  /* ── the chart picker's chips (chart_card) ──────────────────────────────────────── */
  .j-ctg + .j-ctg { margin-top:14px; }
  .j-cts { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
  .j-ct { display:flex; flex-direction:column; gap:1px; min-width:62px;
    padding:8px 11px; border:1px solid var(--line); border-radius:var(--r-in);
    background:var(--surface); cursor:pointer; }
  .j-ct > b { font-family:var(--font-mono); font-size:12px; font-weight:700;
    color:var(--ink); }
  .j-ct > i { font-style:normal; font-size:10.5px; color:var(--ink-3); }
  .j-ct:hover { border-color:var(--gold-lt); }
  /* The checked state is generated by ui.selectable_css — it sets the gold
     border and ground on label[for=...] for all twenty-three at once. */
  /* All twenty-three stacked in one grid cell, only the checked one shown —
     so the section's height does not jump as you page through them. */
  .j-cpanels { display:grid; }
  .j-cp { display:none; grid-area:1/1; }
  .j-cp-in { display:grid; gap:24px; align-items:center;
    grid-template-columns:1fr; padding:22px; border:1px solid var(--line);
    border-radius:var(--r-card); background:var(--surface); }
  @media (min-width:820px) {
    /* Chart first and fixed; the reading takes whatever is left. */
    .j-cp-in { grid-template-columns:minmax(0,360px) minmax(0,1fr);
      align-items:start; }
  }
  .j-cp-i > b { display:block; font-family:var(--font-serif); font-size:23px;
    font-weight:600; color:var(--ink); margin:5px 0 8px; }
  .j-cp-i > p { margin:0; font-size:14px; line-height:1.7; color:var(--ink-2);
    max-width:52ch; }
  .j-cp-d { margin:0; display:flex; flex-direction:column; gap:12px;
    align-items:center; }
  .j-cp-d .c-nc { max-width:360px; }
  .j-cp-d figcaption { display:flex; flex-wrap:wrap; justify-content:center;
    gap:6px 18px; font-size:12.5px; color:var(--ink-3); }
  .j-cp-d figcaption b { color:var(--gold-dk); font-weight:650; }
  /* Where the grahas landed in the chart on the right. Reading a varga off
     a diamond means counting bhavas round from the top, which is the work
     this saves — and on the D60 it is the only way the panel is usable. */
  /* No cap. It was 430px inside a 750px column, which put 320px of nothing
     between the table and the drawing — the cap was fixing sparseness caused
     by the column being too wide, and the column is the right width now. */
  .j-cp-t { margin-top:18px; border:1px solid var(--line-soft);
    border-radius:var(--r-in); overflow:auto; }
  .j-cp-t tbody tr:nth-child(even) > * { background:var(--surface-2); }
  .j-cp-t table { width:100%; border-collapse:collapse; font-size:12.5px;
    min-width:220px; }
  .j-cp-t thead th { text-align:left; font-family:var(--font-mono);
    font-size:9px; letter-spacing:.11em; text-transform:uppercase;
    color:var(--ink-3); font-weight:400; padding:8px 12px;
    border-bottom:1px solid var(--line-soft); }
  .j-cp-t tbody th { text-align:left; font-weight:600; color:var(--ink);
    padding:6px 12px; white-space:nowrap; }
  .j-cp-t td { padding:6px 12px; color:var(--ink-2); }
  /* A graha that moved. The arrow column is 1ch wide and does the work; the
     ink on the row does the rest, so the nine can be scanned rather than
     compared name by name. */
  .j-cp-x { width:1px; padding-left:0; color:var(--gold-dk);
    font-size:13px; }
  .j-cp-mv > th, .j-cp-mv > td { color:var(--ink); font-weight:600; }
  .j-cp-n { margin:10px 0 0; font-size:12px; color:var(--ink-3); }
  /* The note is the table's last line, inside its box, so it stays under
     the table whatever sits beside it. */
  .j-cp-t > .j-cp-n { margin:0; padding:10px 14px; border-top:1px solid var(--line-soft); }
  .j-cp-n b { color:var(--ink-2); font-weight:650; }

  /* ── doshas ─────────────────────────────────────────────────── */
  .j-v-g { display:grid; gap:16px; grid-template-columns:1fr;
    align-items:stretch; margin-bottom:26px; }
  @media (min-width:840px) {
    .j-v-g { grid-template-columns:repeat(3,1fr); }
  }
  .j-v { min-width:0; display:flex; flex-direction:column;
    padding:20px 22px; border:1px solid var(--line);
    border-radius:var(--r-card); background:var(--surface); }
  .j-v-h > b { display:block; font-family:var(--font-serif); font-size:30px;
    font-weight:600; line-height:1.1; color:var(--ink); margin:5px 0 4px; }
  .j-v-h > i { display:block; font-style:normal; font-size:12.5px;
    line-height:1.6; color:var(--ink-2); }
  /* ── the dosha instruments ──────────────────────────────────
     Each dosha is a rule about a countable thing and each rule draws
     differently: mangal is three reference points, kaal sarp is seven grahas
     inside an arc or not, sade sati is three phases of two and a half years.
     A shared label/value grid described all three and showed none of them. */
  .j-vz { margin-top:16px; padding-top:15px;
    border-top:1px solid var(--line-soft); }
  .j-vz-t { margin:0 0 12px; font-size:12.5px; line-height:1.5;
    color:var(--ink-3); }
  .j-vz-t b { color:var(--ink); font-weight:650; }
  .j-vz-n { margin:11px 0 0; font-size:12.5px; line-height:1.55;
    color:var(--ink-3); }
  .j-vz-n b { color:var(--ink); font-weight:700; }

  /* mangal — the three places Mars is counted from */
  .j-vz-g { display:grid; gap:7px; }
  .j-vz-r { display:flex; align-items:baseline; gap:9px; flex-wrap:wrap;
    padding:8px 11px; border-radius:var(--r-in);
    border:1px solid var(--line); background:var(--surface); }
  .j-vz-r > .h-f-l { flex:1; min-width:90px; }
  .j-vz-r > b { font-size:13px; font-weight:650; color:var(--ink); }
  .j-vz-r > i { font-style:normal; font-size:11px; color:var(--ink-3); }
  .j-vz-on { border-color:var(--mid); background:var(--mid-bg); }
  .j-vz-on > b, .j-vz-on > i { color:var(--mid); }
  .j-vz-sc { display:flex; align-items:center; gap:10px; flex-wrap:wrap;
    margin-top:12px; }
  .j-vz-sc > div { display:flex; gap:4px; }
  .j-vz-s { padding:3px 10px; border-radius:var(--r-pill);
    border:1px solid var(--line); background:var(--surface);
    font-size:11px; color:var(--ink-3); }
  .j-vz-s-on { border-color:var(--mid); background:var(--mid);
    color:var(--pill-text); font-weight:650; }

  /* kaal sarp — seven pips, filled where the graha is inside the arc */
  .j-vz-ps { display:flex; flex-wrap:wrap; gap:6px; }
  .j-vz-p { display:grid; place-items:center; width:34px; height:34px;
    border-radius:50%; border:1px dashed var(--line);
    background:var(--surface); font-family:var(--font-mono); font-size:11px;
    color:var(--ink-3); }
  .j-vz-p-on { border-style:solid; border-color:var(--gold);
    background:var(--gold-solid); color:var(--gold-solid-text);
    font-weight:700; }

  /* sade sati — the three phases, the running one lit */
  .j-vz-phs { display:grid; gap:6px; grid-template-columns:repeat(3,1fr); }
  .j-vz-ph { min-width:0; padding:9px 9px 10px; border-radius:var(--r-in);
    border:1px solid var(--line); background:var(--surface); }
  .j-vz-ph > b { display:block; font-size:12.5px; font-weight:650;
    color:var(--ink); margin:3px 0 2px; }
  .j-vz-ph > i { display:block; font-style:normal; font-family:var(--font-mono);
    font-size:10px; line-height:1.4; color:var(--ink-3); }
  .j-vz-ph-on { border-color:var(--gold); background:var(--gold-solid); }
  .j-vz-ph-on > b, .j-vz-ph-on > i, .j-vz-ph-on > .h-f-l {
    color:var(--gold-solid-text); }
  .j-v > p { margin:14px 0 0; padding-top:14px;
    border-top:1px solid var(--line-soft); font-size:13px; line-height:1.7;
    color:var(--ink-2); }
  /* Present, and absent. Not red and green: a dosha is a condition with
     remedies, not an error, and the site's --bad is reserved for things that
     have actually gone wrong. */
  .j-v-mid { border-color:var(--gold-lt); background:var(--gold-bg); }
  .j-v-mid .j-v-h > b { color:var(--gold-dk); }
  .j-v-good .j-v-h > b { color:var(--good); }

  /* ── yogas ──────────────────────────────────────────────────── */
  /* Columns, not a grid. Ten yogas in a three-track grid is 3+3+3+1, and the
     last row was one card beside two thirds of nothing; the cards are also all
     different lengths, so a grid row is as tall as its longest card and the
     other two carry the slack. Multi-column packs them and balances the
     heights. The reading order becomes column-wise, which is the right trade
     for an unordered set. */
  .j-y-g { columns:3 300px; column-gap:14px; }
  .j-y { break-inside:avoid; margin-bottom:14px; padding:16px 18px 18px;
    border:1px solid var(--line); border-left:3px solid var(--line);
    border-radius:var(--r-card); background:var(--surface); }
  /* Strength as a spine, the same encoding the graha table uses for dignity.
     Ten cards that differ only in a word are ten cards nobody ranks. */
  .j-y-good { border-left-color:var(--good); }
  .j-y-mid { border-left-color:var(--mid); }
  /* A difficult yoga that forms: the one red spine on the page. */
  .j-y-bad { border-left-color:var(--bad); }
  .j-ygw[hidden] { display:none; }
  .j-y-h { display:flex; align-items:baseline; gap:9px; flex-wrap:wrap; }
  .j-y-h > b { font-family:var(--font-serif); font-size:18px; font-weight:600;
    color:var(--ink); }
  .j-y-hi { font-size:13px; color:var(--ink-3); }
  .j-y-m { display:flex; align-items:center; gap:7px; flex-wrap:wrap;
    margin:10px 0 0; }
  .j-y-f { display:block; font-style:normal; font-family:var(--font-mono);
    font-size:11.5px; line-height:1.6; color:var(--ink-3); margin-top:10px; }
  .j-y .j-fold-more > p { margin:11px 0 0; padding-top:11px;
    border-top:1px solid var(--line-soft); font-size:13px; line-height:1.7;
    color:var(--ink-2); }
  /* The counts, as one sentence: of 47 checked, this many of each kind.
     Two boxes both ending "of 23 tested" read as the same number twice. */
  .j-yc { max-width:70ch; margin:0 0 12px; font-size:15px; line-height:1.6;
    color:var(--ink-2); }
  .j-yc b { color:var(--gold-dk); font-weight:700; }
  /* No difficult yoga: said, and what was checked, folded. */
  .j-ychk { margin-bottom:8px; }
  .j-ychk-h { margin:0 0 8px; font-size:14px; color:var(--good); font-weight:600; }
  .j-ychk details { max-width:80ch; font-size:13px; color:var(--ink-2); }
  .j-ychk summary { cursor:pointer; color:var(--gold-dk); font-weight:600; }
  .j-ychk ul { margin:10px 0 0; padding-left:18px; }
  .j-ychk li { margin-bottom:8px; line-height:1.65; }
  .j-ychk li b { color:var(--ink); }

  .j-rem-g { display:grid; gap:14px; grid-template-columns:1fr;
    margin-top:22px; }
  @media (min-width:720px) {
    .j-rem-g { grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
  }
  .j-rem { min-width:0; padding:16px 18px; border:1px solid var(--line);
    border-radius:var(--r-card); background:var(--surface); }
  .j-rem-why { margin:8px 0 0; font-size:12.5px; line-height:1.6; color:var(--ink-3); }
  .j-rem ul { margin:8px 0 0; padding-left:17px; }
  .j-rem li { font-size:12.5px; line-height:1.75; color:var(--ink-2); }

  /* ── dasha ──────────────────────────────────────────────────── */
  .j-rb { margin-bottom:22px; }
  .j-rb-b { display:flex; height:46px; border:1px solid var(--line);
    border-radius:var(--r-in); overflow:hidden; background:var(--surface); }
  .j-rb-s { position:relative; display:flex; align-items:center;
    justify-content:center; min-width:0; background:var(--surface-2);
    border-right:1px solid var(--line); overflow:hidden; }
  .j-rb-s:last-child { border-right:0; }
  /* A name that does not fit its period is hidden whole by the script
     (fitRibbon), never clipped to "Manga" or run into the next one — the
     title and the table below still name it. */
  .j-rb-s > b { font-family:var(--font-sans); font-size:12px; white-space:nowrap;
    font-weight:600; color:var(--ink-3); padding:0 3px; }
  .j-rb-s > b.j-rb-x { visibility:hidden; }
  /* Alternating grounds so eighteen periods read as eighteen rather than as
     one bar with tick marks. Even ones sit a shade back. */
  .j-rb-s:nth-child(even) { background:var(--surface); }
  /* .j-rb-s.j-rb-on, NOT .j-rb-on. A bare class is one specificity point and
     :nth-child(even) above is two, so on every chart whose running mahadasha
     happened to land on an even segment the stripe won and the lit cell kept
     the unlit ground — while `> b` below, having nothing to compete with,
     still repainted the label to the ON colour. Dark text on the dark
     ground: the one period the reader is actually in was the only one they
     could not read. Odd-numbered charts looked perfect, which is why this
     survived the example. */
  .j-rb-s.j-rb-on { background:var(--gold-solid);
                    border-right-color:var(--gold-solid); }
  .j-rb-s.j-rb-on > b { color:var(--gold-solid-text); font-weight:700; }
  .j-rb-t { display:flex; justify-content:space-between; margin-top:6px;
    font-family:var(--font-mono); font-size:11px; color:var(--ink-3); }

  .j-now { padding:22px 24px; border:1px solid var(--gold-lt);
    border-radius:var(--r-card); background:var(--gold-bg);
    margin-bottom:20px; }
  .j-dls { display:grid; gap:16px; grid-template-columns:1fr; }
  @media (min-width:660px) {
    .j-dls { grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); }
  }
  .j-dl { min-width:0; }
  .j-dl > b { display:block; font-family:var(--font-serif); font-size:25px;
    font-weight:600; line-height:1.15; color:var(--gold-dk); margin:4px 0 3px; }
  .j-dl > i { display:block; font-style:normal; font-family:var(--font-mono);
    font-size:11.5px; color:var(--ink-2); }
  .j-now-b { margin:18px 0 0; padding-top:16px;
    border-top:1px solid var(--gold-lt); font-size:13.5px; line-height:1.75;
    color:var(--ink-2); }
  .j-now-b b { color:var(--ink); font-weight:650; }
  .j-ds-g { display:grid; gap:14px; grid-template-columns:1fr;
    margin-top:18px; }
  /* Two by two: auto-fit gave three across and left the fourth, "At
     work", alone on a row. An odd one out spans the row. */
  @media (min-width:760px) {
    .j-ds-g { grid-template-columns:repeat(2,1fr); }
    .j-ds-g > .j-ds:last-child:nth-child(odd) { grid-column:1 / -1; }
  }
  .j-ds { min-width:0; padding:14px 16px; border-radius:var(--r-in);
    background:var(--surface); }
  .j-ds > p { margin:6px 0 0; font-size:12.5px; line-height:1.7;
    color:var(--ink-2); }

  /* The three sub-levels, side by side. Nine rows and four columns each, so
     they line up and the drill from years to months to weeks reads across
     rather than down. */
  .j-d-three { display:grid; gap:16px; grid-template-columns:1fr;
    align-items:start; margin-top:4px; }
  @media (min-width:700px) {
    .j-d-three { grid-template-columns:repeat(2,minmax(0,1fr)); }
  }
  @media (min-width:1060px) {
    .j-d-three { grid-template-columns:repeat(3,minmax(0,1fr)); }
  }
  .j-d-three > * { min-width:0; }
  .j-tbl-sm table { table-layout:auto; }
  .j-tbl-sm thead th { padding:10px 11px; vertical-align:bottom; }
  .j-tbl-sm thead th i { display:block; font-style:normal; margin-top:2px; }
  .j-tbl-sm thead th b { font-weight:700; color:var(--gold-dk); }
  .j-tbl-sm td, .j-tbl-sm tbody th { padding:9px 11px; }
  .j-note-t { margin-top:18px; }
  /* The mahadasha and antardasha lords read together — same planet, friend,
     enemy — which the API works out and nothing printed. */
  .j-now-p { margin:16px 0 0; padding:12px 14px; border-radius:var(--r-in);
    background:var(--surface); font-size:13px; line-height:1.65;
    color:var(--ink-2); }
  .j-now-p b { color:var(--gold-dk); font-weight:650; }


  /* THE CHART ON A PHONE. It is drawn in a 340-unit box and shown at ~270px
     on a 320 screen, so the rashi numbers came out at 7.6px and the grahas
     under 9 (review, 28 Sep 2026) — the one thing the page is for, too small
     for the parents it is often read to. The signed-in shell's faces
     (appshell, .d-main), a size up: sans, which is narrower than the mono,
     so the side-by-side names keep their 22-unit gap. */
  @media (max-width:520px) {
    .j-cc .c-nc-p { font-family:var(--font-sans); font-size:12px; }
    .j-cc .c-nc-s { font-size:11px; font-weight:600; }
    .j-cc .c-nc-rx { font-size:9px; }
  }

  /* ── MOVED FROM pages/kundli_app.py (28 Sep 2026), for both pages: the
     glance row, go deeper, and the chart card. Last in the sheet so the
     card's rules beat the panel rules they refine at equal weight. ── */
  /* ── at a glance: the four answers a family asks first ── */
  .k-gls { display:grid; gap:10px; grid-template-columns:repeat(2,minmax(0,1fr));
           margin:16px 0 4px; }
  @media (min-width:900px) { .k-gls { grid-template-columns:repeat(4,minmax(0,1fr)); } }
  .k-gl { display:flex; flex-direction:column; gap:4px; min-width:0;
          padding:12px 14px; border:1px solid var(--line); border-radius:var(--r-card);
          background:var(--surface); color:inherit; text-decoration:none; }
  .k-gl:hover { border-color:var(--gold-lt); }
  .k-gl:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
  .k-gl b { font-family:var(--font-serif); font-size:19px; font-weight:600;
            color:var(--ink); line-height:1.2; }
  .k-gl i { font-style:normal; font-size:12.5px; line-height:1.45; color:var(--ink-2); }
  /* Present — the one a family will ask about — is lit, not alarmed. */
  .k-gl-on { border-color:var(--gold-lt); background:var(--gold-bg); }
  .k-gl-on b { color:var(--gold-dk); }

  /* ── go deeper: the report that reads this tab ── */
  .k-next { margin-top:34px; padding-top:22px; border-top:1px solid var(--line); }
  .k-next-h { margin:0 0 12px; font-family:var(--font-sans); font-size:14px; font-weight:600;
              color:var(--ink-2); }
  :is(:root[data-lang="hi"], :root[lang^="hi"]) .k-next-h { font-family:inherit; font-size:15px; }
  .k-nxs { display:grid; gap:14px; grid-template-columns:1fr; }
  @media (min-width:900px) { .k-nxs { grid-template-columns:repeat(2,minmax(0,1fr)); } }
  .k-nx[hidden] { display:none; }
  .k-nx { display:flex; flex-direction:column; gap:6px; min-width:0; }
  .k-nx-why { margin:0; padding:8px 12px; border-radius:10px; background:var(--gold-bg);
              font-size:13px; line-height:1.55; color:var(--ink-2); }
  .k-nx-why:empty { display:none; }
  .k-nx .rv-c { flex:1; }
  .k-next .c-askb { margin-top:26px; }

  /* ── the chart card: one chart and its table, from all twenty-three ── */
  .j-cc { padding:20px 22px 22px; border:1px solid var(--line); border-radius:var(--r-card);
          background:var(--surface); }
  .j-cc-top { margin-bottom:16px; }
  .j-cc .c-pf { display:inline-block; margin:0; min-width:min(320px, 100%); }
  .j-cc .c-pf-l { font-family:var(--font-sans); font-size:12.5px; letter-spacing:0;
                  text-transform:none; font-weight:600; }
  .j-cc .c-pf-t { border-radius:999px; border-color:var(--gold-lt); padding:0 16px; min-height:46px; }
  .j-cc .c-pf-t b { font-size:15.5px; }
  .j-cc .c-pf-t svg { color:var(--gold-dk); }
  @media (min-width:640px) {
    .j-cc .c-pf-c { width:min(640px, calc(100vw - 320px)); max-width:none; padding:16px 18px; }
  }
  /* The panels sit in the card: no second border inside the first. */
  .j-cc .j-cp-in { padding:0; border:0; background:none; gap:22px 32px; }
  @media (min-width:900px) {
    .j-cc .j-cp-in { grid-template-columns:minmax(0,400px) minmax(0,1fr); }
  }
  .j-cc .j-cp-d .c-nc { max-width:400px; }
  .j-cc .j-cp-i > b { font-size:21px; margin:3px 0 4px; }
  .j-cc .j-cp-i > p { font-size:13.5px; line-height:1.6; }
  .j-cc .j-cp-t { margin-top:14px; }
  /* THE SELECTOR AND THE TABLE ON ONE TOP LINE, THE CHART'S NAME UNDER THE
     DRAWING (Rohit, 28 Sep 2026: "align kundli top line with the right
     table top line", "selector on left", "show [D1, Rashi Chart (Lagna),
     what it is read for] below the chart"). On a wide screen the left
     column is the selector (shared by the 23 panes, so placed at the card's
     top left rather than moved into each), the drawing, and the chart's
     name and line; the right is the table and its note, from the top. The
     right column opens up (display:contents) so its parts can take those
     places; the left's last row takes any spare height. Phones stay
     stacked. */
  @media (min-width:900px) {
    .j-cc { position:relative; }
    .j-cc-top { position:absolute; top:20px; left:22px; width:min(400px, calc(40% - 22px));
                margin:0; z-index:3; }
    .j-cc .c-pf { display:block; min-width:0; }
    .j-cc .j-cp-in { grid-template-rows:auto auto auto 1fr; row-gap:0; align-items:start; }
    .j-cc .j-cp-i { display:contents; }
    .j-cc .j-cp-d { grid-column:1; grid-row:1; margin-top:var(--j-pick, 92px); }
    /* Under the drawing, centred like its Lagna line, as one caption:
       "D1 · Rashi Chart (Lagna)", then what it is read for. */
    .j-cc .j-cp-i > .h-f-l { display:none; }
    .j-cc .j-cp-i > b { grid-column:1; grid-row:3; margin-top:16px; text-align:center; }
    .j-cc .j-cp-i > b[data-code]::before { content:attr(data-code) " · "; }
    .j-cc .j-cp-i > p:not(.j-cp-n) { grid-column:1; grid-row:4; max-width:none; text-align:center; }
    .j-cc .j-cp-t { grid-column:2; grid-row:1 / span 4; margin-top:0; }
  }
  .j-cc .j-cp-t table { font-size:14px; }
  .j-cc .j-cp-t tbody th, .j-cc .j-cp-t td { padding:9px 12px; vertical-align:middle; }
  .j-cc .j-cp-t tbody tr:nth-child(even) > * { background:none; }
  .j-cc .j-cp-t tbody tr + tr > * { border-top:1px solid var(--line-soft); }
  .j-cc-d1 .j-pl-i { display:inline-grid; vertical-align:-3px; margin-right:8px; color:var(--gold-dk); }
  .j-cc-d1 td[data-cc="sign"] b { font-weight:600; color:var(--ink); }
  .j-cc-d1 .j-sub { display:block; font-style:normal; font-size:12.5px; color:var(--ink-3); margin-top:1px; }
  .j-cc-r { font-size:11.5px; font-weight:700; color:var(--bad); }
  .j-cp-w { white-space:nowrap; font-size:12px; font-weight:700; color:var(--good); }
  .j-cp-mv .j-cp-x { padding-right:12px; }
  /* A PHONE: the chart full width, the table under it, the degree left out
     (the rashi, its nakshatra and the bhava are what a reader looks for). */
  @media (max-width:640px) {
    .j-cc { padding:16px 14px 18px; }
    .j-cc .c-pf { display:block; min-width:0; }
    .j-cc-deg { display:none; }
    .j-cc .j-cp-t tbody th, .j-cc .j-cp-t td { padding:9px 8px; }
  }
  :is(:root[data-lang="hi"], :root[lang^="hi"]) .j-cc-d1 .j-sub, :is(:root[data-lang="hi"], :root[lang^="hi"]) .j-cp-w { font-size:14px; }
  /* ON A PHONE THE REPORTS ARE A ROW YOU SWIPE, like the astrologers under
     them (lib/askers): one whole card and the edge of the next, instead of
     two tall cards stacked under every tab. */
  @media (max-width:640px) {
    .k-nxs { display:grid; grid-template-columns:none; grid-auto-flow:column;
      grid-auto-columns:86%; gap:12px; overflow-x:auto; overscroll-behavior-x:contain;
      scroll-snap-type:x mandatory; scroll-padding:0 16px; margin:0 -16px; padding:0 16px 8px;
      scrollbar-width:none;
      -webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 28px), transparent);
      mask-image:linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
    .k-nxs::-webkit-scrollbar { display:none; }
    .k-nx { scroll-snap-align:start; }
  }
  /* HINDI, FOR WHAT THE SCRIPT WRITES: under 15px goes up by 2, never
     past 15 (CLAUDE.md 15). Signed in switches with data-lang; the public
     /hi/ pages are lang="hi" from the start. */
  :is(:root[data-lang="hi"], :root[lang^="hi"]) .k-gl i { font-size:14.5px; }
  :is(:root[data-lang="hi"], :root[lang^="hi"]) .k-nx-why { font-size:15px; }
  :is(:root[data-lang="hi"], :root[lang^="hi"]) .j-cc-r { font-size:13.5px; }

  /* ── THE PHONE (28 Sep 2026: "have you checked mobile?") ──────────────
     The chart tab was 4,800px on a 390 screen and yogas 7,550: every yoga
     card open, twelve bhava cards one per row, the panchang and avakhada
     at full length, and a five-column mahadasha table cut off at the edge.
     Folds (fold_btn) shut a yoga to its name and grahas and the day you
     were born to one row; the bhavas go two across; the dasha table keeps
     three columns and carries what each period is read for under its
     graha. Above 640px nothing here applies. */
  .j-fold, .j-tbl .j-md-m { display:none; }
  @media (max-width:640px) {
    [data-fold] { position:relative; }
    .j-fold { display:inline-flex; align-items:center; gap:8px; min-height:44px;
      padding:0; margin-top:2px; border:0; background:none; cursor:pointer;
      font:600 14px/1.2 var(--font-sans); color:var(--gold-dk); }
    /* Shut, the whole card is the target; open, only the button, so the
       text can be read and selected without closing it. */
    [data-fold]:not(.j-fold-on) .j-fold::after { content:''; position:absolute; inset:0;
      border-radius:var(--r-card); }
    .j-fold:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
    .j-fold-c, .j-fold-on .j-fold-o { display:none; }
    .j-fold-on .j-fold-c { display:inline; }
    .j-fold-x { width:7px; height:7px; margin-top:-3px; flex:none;
      border-right:2px solid currentColor; border-bottom:2px solid currentColor;
      transform:rotate(45deg); }
    .j-fold-on .j-fold-x { margin-top:3px; transform:rotate(-135deg); }
    [data-fold]:not(.j-fold-on) .j-fold-more { display:none; }
    .j-y:not(.j-fold-on) { padding-bottom:6px; }
    /* The day you were born: a row of its own, the two cards under it. */
    .j-fold-row { display:flex; width:100%; justify-content:space-between;
      min-height:50px; margin:0; padding:0 16px; border:1px solid var(--line);
      border-radius:var(--r-card); background:var(--surface); }
    .j-dayw.j-fold-on .j-fold-row { margin-bottom:14px; }

    /* The bhavas, two across. */
    .j-bh-g12 { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .j-bh { padding:12px 12px 11px; }
    .j-bh-n { font-size:38px; right:8px; }
    .j-bh > b { font-size:16px; line-height:1.25; }
    .j-bh-g { margin-top:9px; }

    /* The mahadashas in three columns: Length and Read for go, and what
       each is read for sits under its graha. */
    .j-tbl-md :is(th, td):nth-child(4), .j-tbl-md :is(th, td):nth-child(5) { display:none; }
    .j-tbl-md table { min-width:0; width:100%; }
    .j-tbl-md .j-md-m { display:block; }
    /* The graha cell wraps (the table's own th is nowrap) and gives the two
       dates the room they need. */
    .j-tbl-md tbody th { white-space:normal; width:40%; }
    .j-tbl-md :is(th, td) { padding-left:10px; padding-right:10px; }
  }
  @media (max-width:360px) {
    .j-tbl-md .j-num { font-size:12px; }
    .j-tbl-md :is(th, td) { padding-left:7px; padding-right:7px; }
    .j-tbl-md tbody th { width:auto; }
  }
  :is(:root[data-lang="hi"], :root[lang^="hi"]) .j-fold { font-size:15px; }
  /* The signed-in kundli draws the plain diamond: lib/appshell's
     .c-nc-plain, on the figure below. */
#jc-D1:checked ~ .j-cp-D1,
#jc-D1:checked ~ * .j-cp-D1 { display:block; }
#jc-D1:checked ~ label[for="jc-D1"],
#jc-D1:checked ~ * label[for="jc-D1"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D1:focus-visible ~ label[for="jc-D1"],
#jc-D1:focus-visible ~ * label[for="jc-D1"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-D9:checked ~ .j-cp-D9,
#jc-D9:checked ~ * .j-cp-D9 { display:block; }
#jc-D9:checked ~ label[for="jc-D9"],
#jc-D9:checked ~ * label[for="jc-D9"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D9:focus-visible ~ label[for="jc-D9"],
#jc-D9:focus-visible ~ * label[for="jc-D9"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-chalit:checked ~ .j-cp-chalit,
#jc-chalit:checked ~ * .j-cp-chalit { display:block; }
#jc-chalit:checked ~ label[for="jc-chalit"],
#jc-chalit:checked ~ * label[for="jc-chalit"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-chalit:focus-visible ~ label[for="jc-chalit"],
#jc-chalit:focus-visible ~ * label[for="jc-chalit"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-sun_chart:checked ~ .j-cp-sun_chart,
#jc-sun_chart:checked ~ * .j-cp-sun_chart { display:block; }
#jc-sun_chart:checked ~ label[for="jc-sun_chart"],
#jc-sun_chart:checked ~ * label[for="jc-sun_chart"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-sun_chart:focus-visible ~ label[for="jc-sun_chart"],
#jc-sun_chart:focus-visible ~ * label[for="jc-sun_chart"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-moon_chart:checked ~ .j-cp-moon_chart,
#jc-moon_chart:checked ~ * .j-cp-moon_chart { display:block; }
#jc-moon_chart:checked ~ label[for="jc-moon_chart"],
#jc-moon_chart:checked ~ * label[for="jc-moon_chart"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-moon_chart:focus-visible ~ label[for="jc-moon_chart"],
#jc-moon_chart:focus-visible ~ * label[for="jc-moon_chart"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-D2:checked ~ .j-cp-D2,
#jc-D2:checked ~ * .j-cp-D2 { display:block; }
#jc-D2:checked ~ label[for="jc-D2"],
#jc-D2:checked ~ * label[for="jc-D2"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D2:focus-visible ~ label[for="jc-D2"],
#jc-D2:focus-visible ~ * label[for="jc-D2"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-D3:checked ~ .j-cp-D3,
#jc-D3:checked ~ * .j-cp-D3 { display:block; }
#jc-D3:checked ~ label[for="jc-D3"],
#jc-D3:checked ~ * label[for="jc-D3"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D3:focus-visible ~ label[for="jc-D3"],
#jc-D3:focus-visible ~ * label[for="jc-D3"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-D4:checked ~ .j-cp-D4,
#jc-D4:checked ~ * .j-cp-D4 { display:block; }
#jc-D4:checked ~ label[for="jc-D4"],
#jc-D4:checked ~ * label[for="jc-D4"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D4:focus-visible ~ label[for="jc-D4"],
#jc-D4:focus-visible ~ * label[for="jc-D4"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-D5:checked ~ .j-cp-D5,
#jc-D5:checked ~ * .j-cp-D5 { display:block; }
#jc-D5:checked ~ label[for="jc-D5"],
#jc-D5:checked ~ * label[for="jc-D5"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D5:focus-visible ~ label[for="jc-D5"],
#jc-D5:focus-visible ~ * label[for="jc-D5"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-D6:checked ~ .j-cp-D6,
#jc-D6:checked ~ * .j-cp-D6 { display:block; }
#jc-D6:checked ~ label[for="jc-D6"],
#jc-D6:checked ~ * label[for="jc-D6"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D6:focus-visible ~ label[for="jc-D6"],
#jc-D6:focus-visible ~ * label[for="jc-D6"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-D7:checked ~ .j-cp-D7,
#jc-D7:checked ~ * .j-cp-D7 { display:block; }
#jc-D7:checked ~ label[for="jc-D7"],
#jc-D7:checked ~ * label[for="jc-D7"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D7:focus-visible ~ label[for="jc-D7"],
#jc-D7:focus-visible ~ * label[for="jc-D7"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-D8:checked ~ .j-cp-D8,
#jc-D8:checked ~ * .j-cp-D8 { display:block; }
#jc-D8:checked ~ label[for="jc-D8"],
#jc-D8:checked ~ * label[for="jc-D8"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D8:focus-visible ~ label[for="jc-D8"],
#jc-D8:focus-visible ~ * label[for="jc-D8"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-D10:checked ~ .j-cp-D10,
#jc-D10:checked ~ * .j-cp-D10 { display:block; }
#jc-D10:checked ~ label[for="jc-D10"],
#jc-D10:checked ~ * label[for="jc-D10"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D10:focus-visible ~ label[for="jc-D10"],
#jc-D10:focus-visible ~ * label[for="jc-D10"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-D11:checked ~ .j-cp-D11,
#jc-D11:checked ~ * .j-cp-D11 { display:block; }
#jc-D11:checked ~ label[for="jc-D11"],
#jc-D11:checked ~ * label[for="jc-D11"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D11:focus-visible ~ label[for="jc-D11"],
#jc-D11:focus-visible ~ * label[for="jc-D11"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-D12:checked ~ .j-cp-D12,
#jc-D12:checked ~ * .j-cp-D12 { display:block; }
#jc-D12:checked ~ label[for="jc-D12"],
#jc-D12:checked ~ * label[for="jc-D12"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D12:focus-visible ~ label[for="jc-D12"],
#jc-D12:focus-visible ~ * label[for="jc-D12"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-D16:checked ~ .j-cp-D16,
#jc-D16:checked ~ * .j-cp-D16 { display:block; }
#jc-D16:checked ~ label[for="jc-D16"],
#jc-D16:checked ~ * label[for="jc-D16"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D16:focus-visible ~ label[for="jc-D16"],
#jc-D16:focus-visible ~ * label[for="jc-D16"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-D20:checked ~ .j-cp-D20,
#jc-D20:checked ~ * .j-cp-D20 { display:block; }
#jc-D20:checked ~ label[for="jc-D20"],
#jc-D20:checked ~ * label[for="jc-D20"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D20:focus-visible ~ label[for="jc-D20"],
#jc-D20:focus-visible ~ * label[for="jc-D20"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-D24:checked ~ .j-cp-D24,
#jc-D24:checked ~ * .j-cp-D24 { display:block; }
#jc-D24:checked ~ label[for="jc-D24"],
#jc-D24:checked ~ * label[for="jc-D24"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D24:focus-visible ~ label[for="jc-D24"],
#jc-D24:focus-visible ~ * label[for="jc-D24"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-D27:checked ~ .j-cp-D27,
#jc-D27:checked ~ * .j-cp-D27 { display:block; }
#jc-D27:checked ~ label[for="jc-D27"],
#jc-D27:checked ~ * label[for="jc-D27"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D27:focus-visible ~ label[for="jc-D27"],
#jc-D27:focus-visible ~ * label[for="jc-D27"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-D30:checked ~ .j-cp-D30,
#jc-D30:checked ~ * .j-cp-D30 { display:block; }
#jc-D30:checked ~ label[for="jc-D30"],
#jc-D30:checked ~ * label[for="jc-D30"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D30:focus-visible ~ label[for="jc-D30"],
#jc-D30:focus-visible ~ * label[for="jc-D30"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-D40:checked ~ .j-cp-D40,
#jc-D40:checked ~ * .j-cp-D40 { display:block; }
#jc-D40:checked ~ label[for="jc-D40"],
#jc-D40:checked ~ * label[for="jc-D40"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D40:focus-visible ~ label[for="jc-D40"],
#jc-D40:focus-visible ~ * label[for="jc-D40"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-D45:checked ~ .j-cp-D45,
#jc-D45:checked ~ * .j-cp-D45 { display:block; }
#jc-D45:checked ~ label[for="jc-D45"],
#jc-D45:checked ~ * label[for="jc-D45"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D45:focus-visible ~ label[for="jc-D45"],
#jc-D45:focus-visible ~ * label[for="jc-D45"] { outline:2px solid var(--gold); outline-offset:2px; }
#jc-D60:checked ~ .j-cp-D60,
#jc-D60:checked ~ * .j-cp-D60 { display:block; }
#jc-D60:checked ~ label[for="jc-D60"],
#jc-D60:checked ~ * label[for="jc-D60"] { border-color:var(--gold); background:var(--gold-bg); }
#jc-D60:focus-visible ~ label[for="jc-D60"],
#jc-D60:focus-visible ~ * label[for="jc-D60"] { outline:2px solid var(--gold); outline-offset:2px; }.j-tp-chart { display:block; }
.j-tn a[href="#j-t-chart"] { border-color:var(--gold); background:var(--gold-solid); }
.j-tn a[href="#j-t-chart"] > b,
.j-tn a[href="#j-t-chart"] > i { color:var(--gold-solid-text); }
#j-t-chart:target ~ .j-tps > .j-tp-chart,
#j-t-grahas:target ~ .j-tps > .j-tp-grahas,
#j-t-yogas:target ~ .j-tps > .j-tp-yogas,
#j-t-dasha:target ~ .j-tps > .j-tp-dasha { display:block; }
#j-t-grahas:target ~ .j-tps > .j-tp-chart,
#j-t-yogas:target ~ .j-tps > .j-tp-chart,
#j-t-dasha:target ~ .j-tps > .j-tp-chart { display:none; }
#j-t-chart:target ~ .j-tn a[href="#j-t-chart"],
#j-t-grahas:target ~ .j-tn a[href="#j-t-grahas"],
#j-t-yogas:target ~ .j-tn a[href="#j-t-yogas"],
#j-t-dasha:target ~ .j-tn a[href="#j-t-dasha"] { border-color:var(--gold); background:var(--gold-solid); }
#j-t-chart:target ~ .j-tn a[href="#j-t-chart"] b,
#j-t-chart:target ~ .j-tn a[href="#j-t-chart"] i,
#j-t-grahas:target ~ .j-tn a[href="#j-t-grahas"] b,
#j-t-grahas:target ~ .j-tn a[href="#j-t-grahas"] i,
#j-t-yogas:target ~ .j-tn a[href="#j-t-yogas"] b,
#j-t-yogas:target ~ .j-tn a[href="#j-t-yogas"] i,
#j-t-dasha:target ~ .j-tn a[href="#j-t-dasha"] b,
#j-t-dasha:target ~ .j-tn a[href="#j-t-dasha"] i { color:var(--gold-solid-text); }
#j-t-grahas:target ~ .j-tn a[href="#j-t-chart"],
#j-t-yogas:target ~ .j-tn a[href="#j-t-chart"],
#j-t-dasha:target ~ .j-tn a[href="#j-t-chart"] { border-color:var(--line); background:var(--surface); }
#j-t-grahas:target ~ .j-tn a[href="#j-t-chart"] b,
#j-t-yogas:target ~ .j-tn a[href="#j-t-chart"] b,
#j-t-dasha:target ~ .j-tn a[href="#j-t-chart"] b { color:var(--ink-2); }
#j-t-grahas:target ~ .j-tn a[href="#j-t-chart"] i,
#j-t-yogas:target ~ .j-tn a[href="#j-t-chart"] i,
#j-t-dasha:target ~ .j-tn a[href="#j-t-chart"] i { color:var(--ink-3); }

  .rp-pub .d-main { margin-inline:auto; }
  /* ── the redesigned report pages, prefix rv- ─────────────────────── */
  .rv { --rv-hi: 'Kohinoor Devanagari','Noto Serif Devanagari','Noto Sans Devanagari',
               'Mangal','Nirmala UI',var(--font-serif); }
  .rv [lang="hi"] { font-family:var(--rv-hi); }
  /* THE SITE'S WIDTH, not a narrower one of its own (Rohit, 28 Sep 2026:
     "its content width is lower compared to other pages, the content seems
     centered"). It was 1120px against every other public page's --wrap
     (1360px, lib/common .l-wrap), so at 1440 the shelf sat 240px narrower,
     floating in the middle. */
  .rv-wrap { max-width:var(--wrap); margin-inline:auto; padding-inline:16px; }
  .rv-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px;
            min-height:44px; padding:0 18px; border-radius:10px; font-weight:650;
            font-size:14.5px; text-decoration:none; background:var(--gold-solid);
            color:var(--gold-solid-text); border:1px solid var(--gold-solid); }
  .rv-btn:hover { filter:brightness(1.06); }
  .rv-btn:focus-visible, .rv a:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
  .rv-btn-ghost { background:transparent; color:var(--ink); border-color:var(--line); }

  /* ── the offer banner ── ITS OWN PALETTE, ONE PER THEME. It was one look
     in both, the deep brown of the report covers, and on the cream light
     page that was a near-black slab from another app. Light is now the warm
     saffron-cream of a sweet-shop offer board, with the dark covers standing
     out on it; dark keeps the brown, with a gold edge so it does not melt
     into the page. The tokens are the banner's own (--bn-*) because the
     discount seal and the covers need the same warmth in both. */
  .rv-ban { --bn-bg:linear-gradient(115deg, #FFF4DE 0%, #FDE6B8 55%, #F8D08A 100%);
            --bn-line:rgba(138,90,11,.07); --bn-ink:#2B170A; --bn-accent:#7A4E08;
            --bn-mute:#6E5638; --bn-btn:#5A3313; --bn-btn-ink:#FFF3DF; --bn-btn-hi:#6E4119;
            --bn-dot:rgba(90,51,19,.28); --bn-arrow:rgba(255,255,255,.55);
            --bn-edge:rgba(138,90,11,.22); --bn-shadow:0 10px 28px rgba(138,90,11,.16);
            --bn-fade:#FBDCA0; }
  :root[data-theme="dark"] .rv-ban {
            --bn-bg:radial-gradient(120% 140% at 85% 20%, #5A3313 0%, #2B170A 55%, #1B0F07 100%);
            --bn-line:rgba(232,201,138,.05); --bn-ink:#FFF3DF; --bn-accent:#E8C98A;
            --bn-mute:#CDB693; --bn-btn:#E8C98A; --bn-btn-ink:#2B170A; --bn-btn-hi:#F1D9A6;
            --bn-dot:rgba(255,243,223,.35); --bn-arrow:rgba(0,0,0,.2);
            --bn-edge:rgba(232,201,138,.3); --bn-shadow:0 0 0 1px rgba(232,201,138,.08), 0 14px 34px rgba(0,0,0,.45);
            --bn-fade:#3A200C; }
  .rv-ban-w { background:var(--surface-2); padding:14px 0 0; }
  .rv-ban { position:relative; border-radius:16px; overflow:hidden;
            background:var(--bn-bg); color:var(--bn-ink); border:1px solid var(--bn-edge);
            box-shadow:var(--bn-shadow); }
  .rv-ban::before { content:""; position:absolute; inset:0; pointer-events:none;
            background:repeating-linear-gradient(45deg, var(--bn-line) 0 1px, transparent 1px 22px),
                       repeating-linear-gradient(-45deg, var(--bn-line) 0 1px, transparent 1px 22px); }
  /* The kundli line drawing gave way to each slide's photo. */
  .rv-ban-mark { display:none; }
  .rv-ban-track { position:relative; z-index:1; display:flex; overflow-x:auto; scroll-snap-type:x mandatory;
            scrollbar-width:none; overscroll-behavior-x:contain; }
  .rv-ban-track::-webkit-scrollbar { display:none; }
  .rv-ban-track:focus-visible { outline:2px solid var(--bn-accent); outline-offset:-4px; }
  /* min-width:0 and border-box: with the photo's side padding a slide's
     min-content ran wider than the track, every slide after the first
     started early, and the last one's photo showed down its left edge. */
  .rv-ban-s { position:relative; flex:0 0 100%; min-width:0; max-width:100%; box-sizing:border-box;
            overflow:hidden; scroll-snap-align:start; display:grid;
            grid-template-columns:96px 1fr; gap:16px; align-items:center; padding:128px 18px 46px; }
  @media (min-width:760px) { .rv-ban-s { grid-template-columns:150px minmax(0,1fr); gap:30px;
            padding:26px 42% 50px 40px; } }
  .rv-ban-s > :not(.rv-ban-ph) { position:relative; z-index:1; }
  /* THE PHOTO. On a phone a band across the top that fades down into the
     banner; wider, the right side of the slide, fading left into it. The
     text column stops where the photo starts (padding-right above), so no
     word is ever set on a picture. --bn-fade is the banner's colour at
     that edge, per theme. */
  .rv-ban-ph { position:absolute; left:0; right:0; top:0; height:150px; z-index:0; pointer-events:none; }
  .rv-ban-ph img { display:block; width:100%; height:100%; object-fit:cover; object-position:var(--pos, 50% 50%); }
  .rv-ban-ph::after { content:""; position:absolute; inset:0;
            background:linear-gradient(180deg, transparent 35%, var(--bn-fade) 100%); }
  @media (min-width:760px) {
    .rv-ban-ph { left:auto; top:0; bottom:0; height:auto; width:46%; }
    .rv-ban-ph::after { background:linear-gradient(90deg, var(--bn-fade) 0%, transparent 38%); }
  }
  .rv-ban-art { position:relative; }
  .rv-ban-art img { display:block; width:100%; height:auto; border-radius:8px; transform:rotate(-3deg);
            box-shadow:0 12px 26px rgba(0,0,0,.45); border:1px solid rgba(232,201,138,.35); }
  /* THE SEAL — the discount as a stamped roundel, the shape a sale sticker
     takes on any Indian shop shelf. Empty (and so hidden) until the
     catalogue confirms an offer for this report. */
  /* Bottom corner of the cover, clear of the book's own title and of the
     headline beside it. */
  .rv-ban-seal { position:absolute; left:-10px; bottom:-10px; }
  @media (min-width:760px) { .rv-ban-seal { left:auto; right:-18px; bottom:-8px; } }
  .rv-ban-seal .c-rp-off { display:grid; place-items:center; width:54px; height:54px; margin:0;
            border-radius:50%; background:#C0392B; color:#FFF3DF; border:2px dashed rgba(255,243,223,.7);
            box-shadow:0 0 0 3px #C0392B; font-family:var(--font-sans); font-style:normal;
            font-size:11.5px; font-weight:800; line-height:1.05; text-align:center; letter-spacing:0;
            text-transform:uppercase; padding:4px; transform:rotate(8deg); flex-basis:auto; }
  .rv-ban-seal .c-rp-off[hidden] { display:none; }
  @media (min-width:760px) { .rv-ban-seal .c-rp-off { width:78px; height:78px; font-size:16px; } }
  .rv-ban-k { margin:0; font-size:12.5px; letter-spacing:.02em; color:var(--bn-accent); }
  .rv-ban-k > span:first-of-type:not(.rv-ban-tag) { text-transform:uppercase; letter-spacing:.08em;
            font-family:var(--font-mono); font-size:11px; }
  .rv-ban-tag:not([hidden]) { display:inline-block; margin-right:8px; padding:2px 8px; border-radius:99px;
            background:var(--bn-btn); color:var(--bn-btn-ink); font-weight:700; font-size:11px; }
  .rv-ban-tag i { font-style:normal; }
  .rv-ban-t { margin:6px 0 0; font-family:var(--font-serif); font-size:clamp(19px,3.4vw,30px);
            line-height:1.22; color:var(--bn-ink); text-wrap:balance; max-width:26ch; }
  .rv-ban-t[lang="hi"] { font-family:var(--rv-hi); font-weight:600; line-height:1.4; }
  .rv-ban-pay { margin-top:12px; display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; }
  .rv .rv-ban-pr { display:flex; align-items:baseline; gap:8px; width:auto; margin:0;
            justify-content:flex-start; font-family:var(--font-sans); }
  .rv .rv-ban-pr b { flex-basis:auto; font-size:26px; font-weight:800; color:var(--bn-ink);
            font-variant-numeric:tabular-nums; }
  .rv .rv-ban-pr s { font-size:14px; color:var(--bn-mute); }
  .rv-ban-buy { display:inline-flex; align-items:center; min-height:44px; padding:0 18px;
            border-radius:10px; background:var(--bn-btn); color:var(--bn-btn-ink); font-weight:750;
            font-size:14.5px; text-decoration:none; border:0; }
  .rv-ban-buy:hover { background:var(--bn-btn-hi); }
  .rv-ban-more { display:inline-flex; align-items:center; min-height:44px;
            color:var(--bn-accent); font-size:13.5px; font-weight:600; text-decoration:underline;
            text-underline-offset:3px; }
  .rv-ban a:focus-visible, .rv-ban button:focus-visible { outline:2px solid var(--bn-ink); outline-offset:2px; }
  /* z-index:2, above the track's 1: the track covers the whole banner, so
     without it every arrow and dot click landed on a slide instead. */
  .rv-ban-nav { position:absolute; left:0; right:0; bottom:10px; z-index:2; display:flex;
            align-items:center; justify-content:center; gap:12px; pointer-events:none; }
  .rv-ban-nav > * { pointer-events:auto; }
  .rv-ban-dots { display:flex; gap:4px; }
  .rv-ban-dot { width:24px; height:24px; border:0; background:none; padding:0; cursor:pointer;
            display:grid; place-items:center; }
  .rv-ban-dot::before { content:""; width:8px; height:8px; border-radius:99px; background:var(--bn-dot);
            transition:width .25s; }
  .rv-ban-dot[aria-current="true"]::before { width:22px; background:var(--bn-accent); }
  .rv-ban-arrow { width:32px; height:32px; border-radius:50%; border:1px solid var(--bn-edge);
            background:var(--bn-arrow); color:var(--bn-ink); font-size:20px; line-height:1; cursor:pointer;
            display:grid; place-items:center; }
  @media (prefers-reduced-motion:reduce) { .rv-ban-dot::before { transition:none; } }
  @media (pointer:coarse) { .rv-ban-arrow { width:44px; height:44px; } .rv-ban-dot { width:44px; height:44px; }
                             .rv-ban-dots { gap:0; } }
  .rv-ban-w + .rv-head { padding-top:22px; }

  /* head */
  .rv-head { position:relative; overflow:hidden; background:var(--surface-2);
             border-bottom:1px solid var(--line); padding:34px 0 26px; }
  .rv-head .rv-wrap { position:relative; }
  .rv-mark { fill:none; stroke:var(--gold); stroke-width:1.2; vector-effect:non-scaling-stroke; }
  /* The header's kundli: a real chart, not an outline (_head_chart), in the
     signed-in pages' dress — gold frame and lines, the lagna's box shaded,
     the grahas in the page's face, big enough to read. Its own column beside
     the heading, the lede and the four facts (it sat on top of the fourth),
     and not at all on a phone. */
  @media (min-width:760px) {
    .rv-head .rv-wrap:has(> .rv-hchart) { display:grid; grid-template-columns:minmax(0,1fr) 240px;
                                          column-gap:36px; align-items:center; }
    .rv-head .rv-wrap:has(> .rv-hchart) > :not(.rv-hchart) { grid-column:1; }
    .rv-hchart { grid-column:2; grid-row:1 / span 4; }
  }
  .rv-hchart .c-nc { max-width:none; border-radius:12px; overflow:hidden;
                     box-shadow:0 0 0 1.5px var(--gold); background:var(--surface); }
  .rv-hchart .c-nc-bg { fill:var(--gold-lt); }
  .rv-hchart .c-nc-h1 { fill:var(--gold-bg); }
  .rv-hchart .c-nc-p { font-family:var(--font-sans); font-size:18px; font-weight:700; }
  .rv-hchart .c-nc-s { font-size:13.5px; font-weight:600; }
  .rv-hchart .c-nc-rx { font-size:10px; }
  @media (max-width:759px) { .rv-hchart { display:none; } }
  /* ONE LINE, NOT TWO: the page's 20ch cap broke "Reports read from your
     kundli" after "read". */
  .rv[lang] .rv-head .rv-h1 { max-width:none; }
  .rv-sec-h b[lang="en"], .rv-shelf-h h2 b[lang="en"] { font-family:var(--font-serif);
      font-weight:600; }
  .rv-pick-a > b[lang="en"] { font-family:var(--font-serif); font-size:16px; }
  .rv-facts b[lang="en"] { font-family:var(--font-sans); font-size:14px; }
  .rv-moment span[lang="en"] { color:var(--gold-dk); }
  /* The Hindi page: the Hindi name is the title, the English one under it. */
  .rv[lang="hi"] .rv-btn { font-family:var(--rv-hi); font-weight:600; }
  .rv-t-hi { font-family:var(--rv-hi); font-weight:600; font-size:19px; color:var(--ink); }
  .rv-c-en { font-size:12.5px; color:var(--ink-3); margin-top:1px; }
  .rv-c-en:empty, .rv-dh1 span:empty { display:none; }
  .rp-pv-gap { display:none; }
  .rv[lang="hi"] .rv-h1 { font-family:var(--rv-hi); font-weight:600; line-height:1.3; max-width:22ch; }
  .rv[lang="hi"] .rv-c-d, .rv[lang="hi"] .rv-lede, .rv[lang="hi"] .rv-tell li,
  .rv[lang="hi"] .rv-steps span, .rv[lang="hi"] .rv-pandit p, .rv[lang="hi"] .rv-who p
    { line-height:1.7; }
  .rv[lang="hi"] .rv-steps b, .rv[lang="hi"] .rv-pandit b, .rv[lang="hi"] .rv-who b
    { font-family:var(--rv-hi); font-weight:600; }
  .rv[lang="hi"] .rv-eyebrow { font-size:16px; }
  .rv[lang="hi"] .rv-ask { font-family:var(--rv-hi); font-size:14px; letter-spacing:0;
      text-transform:none; color:var(--ink-2); }
  .rv-eyebrow { margin:0 0 4px; font-size:17px; color:var(--gold-dk); font-weight:600; }
  .rv-h1 { margin:0; font-family:var(--font-serif); font-size:clamp(27px,5vw,40px);
           line-height:1.12; color:var(--ink); text-wrap:balance; max-width:20ch; }
  .rv-lede { margin:10px 0 0; max-width:60ch; font-size:15.5px; line-height:1.6;
             color:var(--ink-2); }
  .rv-facts { list-style:none; margin:20px 0 0; padding:0; display:grid; gap:10px;
              grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rv-facts li { display:flex; flex-direction:column; gap:2px; padding:10px 12px;
                 background:var(--surface); border:1px solid var(--line); border-radius:10px; }
  .rv-facts b[lang="hi"] { font-size:14.5px; color:var(--ink); font-weight:600; }
  .rv-facts span { font-size:12.5px; line-height:1.4; color:var(--ink-3); }
  .rv-facts span b { color:var(--ink-2); font-weight:650; }
  @media (min-width:760px) { .rv-facts { grid-template-columns:repeat(4,minmax(0,1fr)); } }

  /* moment picker */
  .rv-ask { margin:26px 0 10px; font-family:var(--font-mono); font-size:11px;
            letter-spacing:.08em; text-transform:uppercase; color:var(--ink-3); }
  .rv-pick { display:grid; gap:10px; grid-template-columns:1fr; }
  @media (min-width:640px) { .rv-pick { grid-template-columns:repeat(3,minmax(0,1fr)); } }
  .rv-pick-a { display:grid; grid-template-columns:auto 1fr auto; grid-template-rows:auto auto;
               column-gap:12px; align-items:center; padding:12px 14px; border-radius:12px;
               background:var(--surface); border:1px solid var(--line); text-decoration:none;
               color:var(--ink); }
  .rv-pick-a:hover { border-color:var(--gold); }
  .rv-pick-a > .rv-pick-i { grid-row:1/3; grid-column:1; display:grid; place-items:center;
               width:38px; height:38px; border-radius:50%; background:var(--gold-bg);
               color:var(--gold-dk); }
  .rv-pick-a > b { grid-row:1; grid-column:2; font-size:16.5px; font-weight:600; line-height:1.3; }
  .rv-pick-a > span:not(.rv-pick-i) { grid-row:2; grid-column:2; font-size:12.5px; color:var(--ink-3); }
  .rv-pick-a > i { grid-row:1/3; grid-column:3; font-style:normal; font-family:var(--font-mono);
                 font-size:11px; color:var(--ink-3); }

  /* shelves */
  .rv-shelf { margin-top:38px; scroll-margin-top:84px; }
  .rv-shelf-h { display:grid; grid-template-columns:auto 1fr; column-gap:12px;
                align-items:center; margin-bottom:14px; padding-bottom:12px;
                border-bottom:1px solid var(--line); }
  .rv-shelf-i { grid-row:1/3; display:grid; place-items:center; width:42px; height:42px;
                border-radius:50%; border:1px solid var(--gold-lt); color:var(--gold-dk); }
  .rv-shelf-h h2 { margin:0; display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; }
  .rv-shelf-h h2 b { font-size:clamp(21px,3.4vw,26px); font-weight:600; color:var(--ink); }
  .rv-shelf-h h2 span { font-family:var(--font-serif); font-size:16px; color:var(--ink-2); }
  .rv-shelf-h p { grid-column:2; margin:3px 0 0; font-size:13.5px; line-height:1.5;
                  color:var(--ink-3); max-width:70ch; }
  .rv-grid { display:grid; gap:12px; grid-template-columns:1fr; }
  @media (min-width:900px) { .rv-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

  /* the card */
  .rv-c { position:relative; display:grid; grid-template-columns:78px 1fr; gap:14px;
          padding:14px; border-radius:14px; background:var(--surface);
          border:1px solid var(--line); }
  .rv-c:hover { border-color:var(--gold-lt); }
  @media (min-width:520px) { .rv-c { grid-template-columns:96px 1fr; } }
  /* THE NARROWEST PHONES: a smaller cover and a three-line description, so
     a card stays under a third of a 320px phone's screen. */
  @media (max-width:360px) {
    .rv-c { grid-template-columns:62px 1fr; gap:11px; padding:12px; }
    .rv-c-d { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
    .rv-c-pay { padding-top:10px; gap:8px; }
    .rv .rv-pr b { font-size:19px; }
  }
  .rv-c-cov img, .rv-c-img { display:block; width:100%; height:auto; border-radius:6px;
                             box-shadow:0 2px 8px rgba(23,18,12,.18); }
  .rv-c-b { min-width:0; display:flex; flex-direction:column; }
  .rv-c-t { margin:0; font-family:var(--font-serif); font-size:18px; line-height:1.25; }
  .rv-c-a { color:var(--ink); text-decoration:none; }
  .rv-c-a::after { content:""; position:absolute; inset:0; border-radius:14px; }
  .rv-c-d { margin:6px 0 0; font-size:13.5px; line-height:1.5; color:var(--ink-2); }
  .rv-c-m { margin:6px 0 0; display:flex; flex-wrap:wrap; gap:4px 12px; font-size:12px;
            color:var(--ink-3); }
  .rv-c-m span { white-space:nowrap; }
  .rv-c-pay { margin-top:auto; padding-top:12px; display:flex; align-items:center;
              justify-content:space-between; gap:10px; flex-wrap:wrap; }
  .rv-c-btn { position:relative; z-index:1; min-height:44px; font-size:14px; }
  /* THE SHARED PRICE HOOKS, laid out for this card. .c-rp-pr and its
     children carry global rules for the old portrait card (figure on its own
     line, badge full width, mono); scoped here to one row. */
  .rv .rv-pr { display:flex; flex-wrap:nowrap; align-items:baseline; justify-content:flex-start;
               gap:8px; width:auto; margin:0; font-family:var(--font-sans); }
  .rv .rv-pr b { flex-basis:auto; font-size:21px; font-weight:700; color:var(--ink);
                 letter-spacing:-.01em; font-variant-numeric:tabular-nums; min-width:3.2ch; }
  .rv .rv-pr s { font-size:13px; color:var(--ink-3); }
  /* Placed on the row; drawn as every offer badge is (ui's .c-rp-off). */
  .rv .rv-pr .c-rp-off { flex-basis:auto; margin:0; width:auto; }
  .rv .rv-pr .c-rp-off[hidden] { display:none; }
  .rv-tag:not([hidden]) { position:absolute; top:-9px; right:14px; z-index:1;
             font-size:11px; font-weight:650; padding:2px 9px; border-radius:99px;
             background:var(--gold-solid); color:var(--gold-solid-text); }
  .rv-tag i { font-style:normal; }

  /* the package */
  .rv-bundle { grid-template-columns:1fr; background:var(--gold-bg); border-color:var(--gold-lt); }
  @media (min-width:900px) { .rv-bundle { grid-column:1/-1; grid-template-columns:auto 1fr; align-items:center; } }
  .rv-b-fan { display:flex; padding-left:14px; }
  .rv-b-cov { width:52px; margin-left:-14px; }
  .rv-b-cov img { display:block; width:100%; height:auto; border-radius:5px;
                  box-shadow:0 2px 6px rgba(23,18,12,.25); border:2px solid var(--surface); }

  /* how it works, and the pandit */
  .rv-how { margin:48px 0 40px; }
  .rv-sec-h { margin:0 0 14px; display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; }
  .rv-sec-h b { font-size:clamp(20px,3vw,24px); font-weight:600; color:var(--ink); }
  .rv-sec-h span { font-family:var(--font-serif); font-size:16px; color:var(--ink-2); }
  .rv-steps { list-style:none; counter-reset:rv; margin:0; padding:0; display:grid; gap:10px; }
  @media (min-width:760px) { .rv-steps { grid-template-columns:repeat(3,minmax(0,1fr)); } }
  .rv-steps li { counter-increment:rv; position:relative; padding:14px 14px 14px 52px;
                 border-radius:12px; background:var(--surface); border:1px solid var(--line); }
  .rv-steps li::before { content:counter(rv); position:absolute; left:14px; top:14px;
                         width:26px; height:26px; border-radius:50%; display:grid; place-items:center;
                         font-size:13px; font-weight:700; background:var(--gold-bg);
                         color:var(--gold-dk); border:1px solid var(--gold-lt); }
  .rv-steps b { display:block; font-size:15px; color:var(--ink); }
  .rv-steps span { display:block; margin-top:3px; font-size:13px; line-height:1.5; color:var(--ink-2); }
  .rv-pandit { margin-top:12px; display:grid; grid-template-columns:auto 1fr; gap:14px;
               align-items:center; padding:16px; border-radius:12px;
               border:1px dashed var(--gold-lt); background:var(--surface-2); }
  .rv-pandit-m .rv-mark { width:52px; height:52px; display:block; opacity:.9; }
  .rv-pandit b { font-size:15.5px; color:var(--ink); }
  .rv-pandit p { margin:4px 0 0; font-size:13.5px; line-height:1.55; color:var(--ink-2); max-width:78ch; }

  /* PLAIN HEADINGS AND LABELS, the Dashboard's and the Horoscope screen's:
     a heading in the page's own face and title case, labels in sans — not
     spaced mono capitals with an italic aside. Numbers, degrees and the
     graha abbreviations keep the mono, where it lines them up. */
  .d-main .c-sh { align-items:baseline; }
  .d-main .c-sh-t { font-family:var(--font-sans); font-size:19px; line-height:1.3;
                    letter-spacing:0; text-transform:none; font-weight:700; color:var(--ink); }
  .d-main .c-sh-a { font-family:var(--font-sans); font-style:normal; font-size:14px;
                    color:var(--ink-3); }
  .d-main :is(.h-f-l, .j-lb-f i, .j-tbl thead th, .j-cp-t thead th, .j-vz-p,
              .j-vz-ph > i, .j-dl > i, .j-dy-b i) {
    font-family:var(--font-sans); letter-spacing:0; text-transform:none; }
  .d-main :is(.h-f-l, .j-tbl thead th, .j-cp-t thead th) { font-size:12.5px; }
  /* A yoga's "why" line, in the card's own text rather than a code block. */
  .d-main .j-y-f { font-family:var(--font-sans); letter-spacing:0; font-size:13px;
                   line-height:1.55; }
  /* How the chart was calculated, as a footnote. */
  .d-main .j-calc { margin:14px 0 0; font-size:13px; color:var(--ink-3); }

  /* Own prefix k-. Everything the kundli itself draws is j-, and owned by
     pages/kundliview.py — this page only positions it. */
  .k-veil { display:none; }
  .k-veil.k-on { display:block; }
  .k-wait { padding:16px 0 40px; }
  .k-wait p { margin:16px 0 0; font-size:14px; color:var(--ink-2); }
  .k-wait-band { display:grid; gap:22px; grid-template-columns:repeat(4,1fr);
                 padding:20px 22px; }
  @media (max-width:760px) {
    .k-wait-band { grid-template-columns:repeat(2,1fr); }
  }
  .k-wait-two { display:grid; gap:16px; margin-top:16px;
                grid-template-columns:1fr; }
  @media (min-width:860px) {
    .k-wait-two { grid-template-columns:1fr 1fr; }
  }
  .k-wait-two .d-card { padding:20px; }
  /* The band's three tiers at the heights they really are: the mono label,
     the serif answer under it, the caption under that. */
  .k-sk-lbl { width:62%; height:10px; min-height:10px; }
  .k-sk-big { width:88%; height:26px; min-height:26px; margin-top:10px; }
  .k-sk-sub { width:70%; height:11px; min-height:11px; margin-top:9px; }
  /* A diamond chart is square. */
  .k-sk-sq { aspect-ratio:1 / 1; width:100%; border-radius:10px; }
  .k-err { color:var(--bad); }

  /* kv's sections are built for the public column, which is wider and
     centres its heads. Scoped under .d-main, never bare — the public page
     owns these classes and checks/clash.py is why. */
  .d-main .j-tabs { margin-top:18px; }
  /* DEVANAGARI IS NOT TRACKED. The mono, letter-spaced, uppercase labels
     are an English device; in Hindi they pulled "जन्म का वार" apart into
     three loose words. */
  :root[data-lang="hi"] .d-main .h-f-l, :root[data-lang="hi"] .d-main .j-lb-f i,
  :root[data-lang="hi"] .d-main .c-sh-t {
    font-family:inherit; letter-spacing:0; text-transform:none; }
  :root[data-lang="hi"] .d-main .h-f-l, :root[data-lang="hi"] .d-main .j-lb-f i {
    font-size:12px; }
  /* The same for the "formed by" line, set in mono for English positions
     ("Mars in Aries, 7th house"); mono Devanagari reads as a typewriter. */
  :root[data-lang="hi"] .d-main .j-y-f { font-family:inherit; font-size:15px; }

  /* The glance row, go deeper and the chart card are kv's (both pages). */

  /* The key under the chart is a caption, not a box of its own. */
  .d-main .j-leg { padding:12px 2px 0; border:0; border-top:1px solid var(--line-soft);
                   border-radius:0; background:none; }
  /* The reports' heading, as loud as the astrologers' under it. */
  .d-main .k-next-h { font-size:16px; font-weight:700; color:var(--ink); }


  /* The app's type (Home typography review, 11 Nov 2026): Cosmiqe Sans
     (Google Sans, OFL, cut to Latin and Devanagari and renamed as its
     trademark notice asks of a modified copy) and Martel for the patri,
     self-hosted, one file per script so an English page fetches no Hindi.
     The version is in the name: /assets/ is cached for a year. */
  @font-face { font-family:'Cosmiqe Sans'; font-weight:400; font-display:swap; src:url(/assets/fonts/cq-sans-400-latin.v1.woff2) format('woff2'); unicode-range:U+0000-024F, U+2000-206F, U+20B9, U+2122, U+2190-2193, U+2212, U+FEFF; }
  @font-face { font-family:'Cosmiqe Sans'; font-weight:400; font-display:swap; src:url(/assets/fonts/cq-sans-400-deva.v1.woff2) format('woff2'); unicode-range:U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }
  @font-face { font-family:'Cosmiqe Sans'; font-weight:600; font-display:swap; src:url(/assets/fonts/cq-sans-600-latin.v1.woff2) format('woff2'); unicode-range:U+0000-024F, U+2000-206F, U+20B9, U+2122, U+2190-2193, U+2212, U+FEFF; }
  @font-face { font-family:'Cosmiqe Sans'; font-weight:600; font-display:swap; src:url(/assets/fonts/cq-sans-600-deva.v1.woff2) format('woff2'); unicode-range:U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }
  @font-face { font-family:'Cosmiqe Sans'; font-weight:700; font-display:swap; src:url(/assets/fonts/cq-sans-700-latin.v1.woff2) format('woff2'); unicode-range:U+0000-024F, U+2000-206F, U+20B9, U+2122, U+2190-2193, U+2212, U+FEFF; }
  @font-face { font-family:'Cosmiqe Sans'; font-weight:700; font-display:swap; src:url(/assets/fonts/cq-sans-700-deva.v1.woff2) format('woff2'); unicode-range:U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }
  @font-face { font-family:'Martel'; font-weight:700; font-display:swap; src:url(/assets/fonts/martel-700-latin.v1.woff2) format('woff2'); unicode-range:U+0000-024F, U+2000-206F, U+2122; }
  @font-face { font-family:'Martel'; font-weight:700; font-display:swap; src:url(/assets/fonts/martel-700-deva.v1.woff2) format('woff2'); unicode-range:U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+25CC, U+A8E0-A8FF; }
  .hx-top { display:none; }
  @media (max-width:620px) {
    /* The app's header takes the shell's top bar's place. */
    .d-top { display:none; }
    .d-main { padding-top:0; }
    .hx-top { display:flex; }
  }
  .hx-top { position:sticky; top:0; z-index:20; align-items:center; gap:10px;
            min-height:52px; margin:0 -16px; padding:8px 16px 10px; background:var(--cream);
            font-family:"Cosmiqe Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif; }
  .hx-av { position:relative; flex:none; display:grid; place-items:center; width:44px; height:44px;
           border-radius:22px; background:var(--gold-bg); border:1px solid var(--gold-lt); cursor:pointer; }
  .hx-av b { font-size:15px; font-weight:700; color:var(--gold-dk); }
  .hx-av i { position:absolute; right:-4px; bottom:-4px; display:grid; place-items:center;
             width:22px; height:22px; border-radius:11px; background:var(--gold-solid);
             border:2px solid var(--cream); }
  .hx-av:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
  /* An inner screen: the arrow's 40px box starts 6px in (HeaderV2's barInner). */
  .hx-back { flex:none; display:grid; place-items:center; width:40px; height:42px; margin-left:-10px; padding:0; border:0; background:none; color:var(--ink); text-decoration:none; cursor:pointer; -webkit-tap-highlight-color:transparent; }
  .hx-top.hx-inner { gap:10px; }
  .hx-tt { flex:1; min-width:0; }
  .hx-ttl { margin:0; font-size:19px; line-height:25px; font-weight:700; color:var(--ink);
            white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  :root[data-lang="hi"] .hx-ttl { line-height:30px; padding-top:2px; }
  /* The page's line under the title: a plain line, or Home's place button. */
  .hx-st { display:block; margin-top:1px; font-size:13px; line-height:18px; color:var(--ink-3);
           white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  :root[data-lang="hi"] .hx-st { line-height:21px; }
  .hx-st:empty { display:none; }
  .hx-sub { display:block; max-width:100%; margin-top:1px; padding:0; border:0; background:none;
            font-family:inherit; font-size:13px; line-height:18px; font-weight:600; color:var(--gold-dk); cursor:pointer;
            text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  :root[data-lang="hi"] .hx-sub { line-height:21px; }
  /* A 320-360px phone: a page with its own button (the Astrologers clock)
     left the title ~79px and cut "Astrologers"; a little less gap and a
     smaller clock give it the room. */
  @media (max-width:359px) {
    .hx-ttl { font-size:15px; }
    .hx-top { gap:8px; } .hx-ib { width:36px; height:36px; } .hx-wal { padding-left:9px; }
  }
  /* Bones until the profile lands: a bare title and a lone arrow read as a
     broken header for the second the chart takes. */
  .hx-top .hx-bone { display:inline-block; vertical-align:middle; background:#E6D9C3; }
  /* SkeletonV2's bone and its sweep, for every app-style page. */
  /* Words for a screen reader only ("₹49, was ₹549"). */
  .hx-vh { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .hx-bone { display:block; background:#E6D9C3; overflow:hidden; position:relative; }
  .hx-bone::after { content:""; position:absolute; inset:0; transform:translateX(-100%);
                    background:linear-gradient(90deg, transparent, rgba(255,250,243,.95), transparent);
                    animation:hx-sheen 1.55s ease-in-out infinite; }
  @keyframes hx-sheen { 0% { transform:translateX(-100%); } 84%, 100% { transform:translateX(100%); } }
  .hx-ib { flex:none; display:grid; place-items:center; width:40px; height:40px; border-radius:20px;
           background:var(--surface); border:1px solid var(--line); color:var(--ink); }
  /* HeaderV2's active action (a picker showing someone else): filled gold */
  .hx-ib[aria-pressed="true"] { background:#8A5A0B; border-color:#8A5A0B; color:#FFF9F0; }
  .hx-wal { flex:none; display:flex; align-items:center; gap:6px; height:40px; padding:0 5px 0 12px;
            border-radius:999px; background:var(--surface); border:1px solid var(--line);
            text-decoration:none; font-size:15px; font-weight:700; color:var(--ink); }
  .hx-wal i { display:grid; place-items:center; width:30px; height:30px; border-radius:15px;
              background:var(--gold-solid); }

  /* THE BOTTOM SHEET (SheetV2): Home's place sheet, the Kundli's sheets.
     .hx-sh-pa is the janam patri's paper with its gold grab (the Kundli's
     sheets); .hx-sh-b scrolls under a .hx-sh-f footer that stays put. */
  .hx-sheet { position:fixed; inset:0; z-index:80; display:flex; align-items:flex-end; }
  .hx-sheet[hidden] { display:none; }
  .hx-sh-x { position:absolute; inset:0; background:rgba(0,0,0,.45); }
  .hx-sh-c { position:relative; width:100%; max-height:80vh; overflow:auto; padding:10px 16px 24px;
             border-radius:20px 20px 0 0; background:var(--cream); }
  .hx-sh-grab { display:block; width:40px; height:4px; margin:0 auto 12px; border-radius:2px; background:var(--line); }
  .hx-sh-c.hx-sh-pa { display:flex; flex-direction:column; max-height:90vh; max-height:90dvh; overflow:hidden;
                      padding:0; background:#FFF8E8; }
  .hx-sh-pa .hx-sh-grab { flex:none; width:44px; height:24px; margin:0 auto; padding:10px 0; border:0;
                          background:none; cursor:pointer; }
  .hx-sh-pa .hx-sh-grab::before { content:""; display:block; height:4px; border-radius:2px; background:#E2B76A; }
  .hx-sh-b { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain;
             display:flex; flex-direction:column; gap:14px; padding:2px 16px 18px; }
  .hx-sh-f { flex:none; padding:10px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }

  /* WHOSE PAGE (the app's ProfilePickerSheetV2, one picker for every screen,
     Rohit 15 Nov 2026): the title and close, the saved profiles with the
     primary first, a radio on the chosen one; Add or edit profiles under them. */
  .pw-h { display:flex; align-items:center; justify-content:space-between; padding-top:4px; }
  .pw-h p { margin:0; font-size:19px; font-weight:800; color:#17120C; }
  .pw-x { flex:none; display:grid; place-items:center; width:36px; height:36px; padding:0; border:0; border-radius:18px; background:#FBF3E3; color:#4A3F31; cursor:pointer; }
  .pw-l { border-radius:16px; background:#fff; border:1px solid #E8DCC8; overflow:hidden; }
  .pw-r { display:flex; align-items:center; gap:12px; width:100%; min-height:64px; padding:12px 14px; border:0;
          background:none; font-family:inherit; text-align:left; cursor:pointer; color:inherit; }
  .pw-r + .pw-r { border-top:1px solid #F0E7D6; }
  .pw-r > i { flex:none; display:grid; place-items:center; width:42px; height:42px; border-radius:21px; background:#FBF3E3;
              border:1px solid #E8C98A; font-style:normal; font-size:15px; font-weight:800; color:#92600A; }
  .pw-r > span { flex:1; min-width:0; }
  .pw-r b { font-size:16px; font-weight:700; color:#17120C; }
  .pw-r small { display:block; margin-top:2px; font-size:13px; color:#756853; }
  .pw-r em { margin-left:8px; padding:2px 6px; border-radius:6px; background:#FBF3E3; font-style:normal; font-size:11px;
             font-weight:800; color:#92600A; vertical-align:2px; }
  .pw-r > u { flex:none; display:grid; place-items:center; width:24px; height:24px; border-radius:12px; border:2px solid #E8DCC8; color:#FFF9F0; }
  .pw-r[aria-checked="true"] > u { border-color:#8A5A0B; background:#8A5A0B; }
  .pw-e { margin:24px 0; font-size:14px; color:#756853; text-align:center; }
  .pw-m { display:flex; align-items:center; justify-content:center; gap:8px; height:48px; border-radius:14px;
          background:#fff; border:1px solid #E8DCC8; font-size:15px; font-weight:700; color:#92600A; text-decoration:none; }

  /* the paper: its dashed line is the outer edge (PatriFrame plain) */
  .pa-paper { border-radius:16px; background:#FFF8E8; }
  .pa-dash { display:flex; flex-direction:column; align-items:center; gap:4px; padding:14px 12px 12px;
             border-radius:16px; border:1.5px dashed #C6943E; text-align:center; }
  /* the framed paper (PatriFrame, not plain): a red border, a gold rule, then the dashed line */
  .pa-outer { display:block; border-radius:20px; padding:8px; background:#B3261E; }
  .pa-frame { border-radius:13px; padding:5px; background:#FFF8E8; border:2px solid #E2B76A; }
  .pa-frame > .pa-dash { border-radius:9px; border-width:1px; }
  .pa-om { display:block; font-size:13px; font-weight:700; color:#B3261E; }
  .pa-title { display:block; margin:0; font-family:Martel, Georgia, serif; font-size:22px; line-height:1.4;
              font-weight:700; color:#8A1F17; }
  /* Martel for English (the app's patri serif); Hindi in the bold sans, as
     the app sets it: Martel's ी loses its stem on Android (11 Nov 2026). */
  :root[data-lang="hi"] .pa-title { font-family:inherit; font-weight:700; }

  /* the thin red line with the dotted line inside (PatriFrame line: Today's
     rashifal, Home's janam patri), instead of the red band and gold rule */
  .pa-paper.pa-line { padding:5px; border:2px solid #B3261E; }
  .pa-line > .pa-dash { border-radius:11px; border-width:1.5px; }

  /* WHAT HELPS WITH A DOSHA (the app's DoshaHelps: Sade Sati and Mangal Dosha):
     numbered rows, each with why it helps, then all of the person's remedies. */
  .pa-dash.pa-helps { align-items:stretch; gap:0; padding-left:12px; padding-right:12px; text-align:left; }
  .pa-help { display:flex; gap:10px; padding:10px 0; }
  .pa-help + .pa-help { border-top:1px dashed #C6943E; }
  .pa-help > i { flex:none; display:grid; place-items:center; width:26px; height:26px; margin-top:1px; border-radius:13px; background:#FBEFD2;
                 font-style:normal; font-size:13px; line-height:20px; font-weight:700; color:#8A1F17; }
  .pa-help > span { flex:1; min-width:0; display:flex; flex-direction:column; }
  .pa-help b { font-size:15px; line-height:23px; font-weight:700; color:#17120C; }
  .pa-help small { font-size:13px; line-height:20px; color:#6B5D48; }
  .pa-help-all { display:block; padding:10px 0; border-top:1px dashed #C6943E; font-size:15px; line-height:23px; font-weight:700; color:#8A1F17; text-decoration:none; }

  /* the seals, three to a row */
  .pa-seals { display:flex; justify-content:center; gap:8px; align-self:stretch; margin:14px 0 4px; }
  .pa-sc { flex:1; min-width:0; max-width:98px; display:flex; flex-direction:column; align-items:center; gap:6px; }
  .pa-seal { display:block; width:92px; height:92px; padding:4px; border-radius:46px; border:2px solid; }
  .pa-seal.pa-dashed { border-style:dashed; }
  .pa-seal > span { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%;
                    padding:0 6px; border-radius:46px; border:1px solid; overflow:hidden; }
  .pa-seal.pa-dashed > span { border-color:transparent !important; }
  .pa-seal i { font-style:normal; font-size:13px; font-weight:600; white-space:nowrap; }
  .pa-seal b { font-family:Martel, Georgia, serif; font-size:15px; line-height:1.4; font-weight:700; white-space:nowrap; }
  .pa-seal b.pa-big { font-size:22px; }
  /* A two-word name ("Uttara Bhadrapada", "Purva Phalguni") takes two lines:
     on one it was cut to "Uttara" in the app (31 Oct 2026). */
  .pa-seal b.pa-two { font-size:13px; line-height:16px; white-space:normal; text-align:center; }
  .pa-seal em { font-style:normal; font-size:13px; color:#6B5D48; white-space:nowrap; }
  .pa-cap { font-size:13px; line-height:1.35; color:#6B5D48; text-align:center; }
  .pa-cap.pa-warn { color:#9A5B0B; font-weight:700; }
  /* below: the label under the ring in the seal's colour, over the caption
     (the app's PatriSeal labelBelow: Home's season seals, the Kundli's). */
  .pa-lb { font-size:13px; line-height:18px; font-weight:600; text-align:center; white-space:nowrap; }
  .pa-lb + .pa-cap { margin-top:-6px; line-height:18px; }
  .pa-cap.pa-cc { font-weight:700; }
  :root[data-lang="hi"] .pa-seal b { font-family:inherit; font-weight:700; }

  /* THE PATRI SHEETS' PIECES, shared by the Kundli and Today: the eyebrow and
     serif title, the head with its close button, the boxes, and the two
     footer buttons (an outline one, the deep red ask pill with the
     astrologer's photo). kx- because the Kundli had them first. */
  .kx-eb { margin:0; font-size:13px; font-weight:700; color:#B3261E; }
  .kx-st { margin:0; font-family:Martel, Georgia, serif; font-size:20px; line-height:30px; font-weight:700; color:#8A1F17; }
  :root[data-lang="hi"] .kx-st { font-family:inherit; font-weight:700; }
  /* a sheet's two buttons: an outline one and the ask pill */
  .kx-btns { display:flex; gap:10px; }
  .kx-out, .kx-ask, .kx-solid { display:flex; align-items:center; justify-content:center; gap:6px; min-width:0;
                                text-decoration:none; font-family:inherit; font-size:15px; }
  .kx-out { flex:1; height:48px; padding:0 10px; border-radius:14px; background:#fff; border:1px solid #E8DCC8;
            color:#17120C; font-weight:700; text-align:center; }
  .kx-solid { flex:1.3; height:48px; padding:0 10px; border-radius:14px; background:#8A5A0B; color:#FFF9F0; font-weight:700; text-align:center; }
  .kx-btns.kx-pills .kx-out { height:52px; border-radius:26px; }
  .kx-ask { flex:1.3; justify-content:flex-start; gap:10px; height:52px; padding:0 16px 0 6px; border-radius:26px;
            background:#8A1F17; color:#FFF6E6; font-weight:700; line-height:18px; box-shadow:0 3px 8px rgba(138,31,23,.28); }
  .kx-ask:only-child { justify-content:center; }
  .kx-ask img { flex:none; width:40px; height:40px; border-radius:20px; border:2px solid #FFF6E6; object-fit:cover; background:#E6D9C3; }
  .kx-ask span, .kx-out span { overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  /* A 320-360px phone: side by side, "Ask Acharya Chanakya" was cut. */
  @media (max-width:359px) { .kx-btns.kx-pills { flex-direction:column; } .kx-btns.kx-pills > * { flex:none; } }
  /* the patri sheets' pieces: head with a close button, boxes */
  .kx-ph2 { display:flex; align-items:flex-start; gap:12px; }
  .kx-ph2 > span { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
  .kx-x { flex:none; display:grid; place-items:center; width:40px; height:40px; border-radius:20px; border:1px solid #E2B76A;
          background:#FFFDF6; color:#8A1F17; cursor:pointer; }
  .kx-box { display:flex; flex-direction:column; gap:10px; padding:14px; border-radius:16px; background:#FFFDF6; border:1px solid #E8DCC8; }
  .kx-box.kx-tight { gap:0; }
  .kx-bk-k { margin:0; font-size:13px; font-weight:700; color:#756853; }
  .kx-para { margin:0; font-size:15px; line-height:23px; color:#2C241A; }
  .kx-para b { font-weight:700; }


  /* the road (Patri.road) */
  .pa-road { width:100%; aspect-ratio:346 / 170; }
  .pa-road svg { display:block; width:100%; height:100%; }
  /* THE PATRI'S PAGES: the head (Hindi line, serif title) and the report
     booklet (ReportBooklet), shared by the Kundli and Today. */
  .pa-dash.kx-pg { align-items:stretch; gap:0; padding:14px 14px 12px; text-align:left; }
  .kx-top { display:block; font-size:13px; font-weight:700; color:#B3261E; text-align:center; }
  .kx-pt { margin:0 0 6px; font-family:Martel, Georgia, serif; font-size:20px; line-height:30px; font-weight:700;
           color:#8A1F17; text-align:center; }
  :root[data-lang="hi"] .kx-pt { font-family:inherit; font-weight:700; }
  /* the report booklet */
  .pa-dash.kx-bk { gap:12px; }
  .kx-book { display:flex; gap:14px; align-items:center; }
  .kx-book img { flex:none; width:84px; height:auto; border-radius:4px; box-shadow:0 2px 6px rgba(0,0,0,.18); }
  .kx-book > span { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
  .kx-book b { font-size:19px; font-weight:700; color:#17120C; }
  .kx-book small { font-size:13px; line-height:20px; color:#6B5D48; }
  .kx-price { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; }
  .kx-price b { font-size:22px; font-weight:700; }
  .kx-price s { font-size:13px; color:#9A8B75; }
  .kx-price em { padding:2px 7px; border-radius:8px; background:#E7F3EA; color:#2F7A57; font-style:normal; font-size:13px;
                 font-weight:700; }
  .kx-chips { display:flex; flex-wrap:wrap; gap:6px; padding-top:10px; border-top:1px dashed #E2B76A; }
  .kx-chips span { padding:4px 10px; border-radius:12px; background:#fff; border:1px solid #E8DCC8; font-size:13px; font-weight:700; color:#17120C; }
  .kx-bkb { display:flex; gap:10px; }
  .kx-gold { display:grid; place-items:center; height:50px; padding:0 18px; border:0; border-radius:25px; background:#8A5A0B;
             color:#FFF9F0; font-family:inherit; font-size:15px; font-weight:700; text-decoration:none; cursor:pointer; }
  .kx-bkb .kx-gold { flex:1; padding:0 10px; }
  .kx-bkb .kx-ask { flex:2; height:50px; justify-content:center; gap:7px; padding:0 10px 0 6px; box-shadow:none; }
  .kx-bkb .kx-ask img { width:34px; height:34px; }
  .kx-bk > p { margin:0; font-size:13px; color:#6B5D48; text-align:center; }
  @media (max-width:359px) {
    .kx-bkb { flex-direction:column; }
    .pa-dash .kx-bkb > .kx-gold, .pa-dash .kx-bkb > .kx-ask { flex:none; }
  }
  .kx-gold { white-space:nowrap; }

  /* A CARD'S HEAD (the app's PatriTitle): the Hindi line over the English
     title (not shown on a Hindi page), the serif title, a line under it.
     Martel 22 is drawn at 20 on a 30 line (App.tsx: 33 × 20/22). */
  .pa-pt { align-self:stretch; text-align:center; }
  .pa-pt > p { margin:0; }
  .pa-pt .pa-pth { font-size:13px; line-height:20px; font-weight:700; color:#B3261E; }
  .pa-pt .pa-ptt { font-family:Martel, Georgia, serif; font-size:20px; line-height:30px; font-weight:700; color:#8A1F17; }
  .pa-pt .pa-pts { font-size:13px; line-height:20px; color:#6B5D48; }
  .pa-pt.pa-left { text-align:left; }
  :root[data-lang="hi"] .pa-pt .pa-pth { display:none; }
  :root[data-lang="hi"] .pa-pt .pa-ptt { font-family:inherit; }

  /* ASK, WITH THE QUESTION THE CHAT OPENS WITH (the app's AskOpensWith,
     Remedies and Numerology): photo, title, astrologer and rate, Ask; the
     question in a box under them. */
  .pa-ask { display:flex; flex-direction:column; gap:10px; padding:12px; border-radius:16px; border:1px solid #E2B76A; background:#FBEFD2;
            text-decoration:none; color:inherit; text-align:left; }
  .pa-ask-t { display:flex; align-items:center; gap:12px; }
  .pa-ask-t img { flex:none; width:46px; height:46px; border-radius:23px; object-fit:cover; background:#E6D9C3; }
  .pa-ask-t > span { flex:1; min-width:0; display:flex; flex-direction:column; }
  .pa-ask-t b { font-size:15px; line-height:23px; font-weight:700; color:#17120C; }
  .pa-ask-t small { font-size:13px; line-height:20px; color:#6B5D48; }
  .pa-ask-t > i { flex:none; display:grid; place-items:center; min-height:40px; padding:0 18px; border-radius:20px; background:#8A1F17;
                  font-style:normal; font-size:15px; font-weight:700; color:#FFF6E6; }
  .pa-ask-q { display:flex; flex-direction:column; gap:2px; padding:8px 12px; border-radius:12px; background:#FFFDF6; }
  .pa-ask-q small { font-size:13px; font-weight:700; color:#92600A; }
  .pa-ask-q span { font-size:15px; line-height:23px; color:#17120C; }

  /* A 320-360px phone: three 92px seals and their gaps are wider than the
     paper, and the outer two hung over its edge (Home, 3 Nov 2026). */
  @media (max-width:359px) {
    .pa-seals { gap:5px; }
    .pa-seal { width:76px; height:76px; padding:3px; }
    .pa-seal > span { padding:0 4px; }
    .pa-seal b { font-size:14px; }
  }

  .kx-tap { fill:transparent; cursor:pointer; outline:none; }
  .kx-tap:focus-visible { fill:rgba(179,38,30,.10); }

  .kx { display:none; }
  @media (max-width:620px) {
    .kx { display:flex; flex-direction:column; gap:20px; padding:4px 0 24px; }
    /* The app's screen takes the page: the shell's heading, the old
       sections and their tabs stay for wider screens. */
    .d-main > :not(.kx):not(.hx-top) { display:none; }
  }
  .kx-when { font-size:13px; line-height:1.45; color:#6B5D48; }
  .kx-when b { color:#9E5A18; font-weight:700; }

  /* no birth time: what it costs, and the way to add it */
  .kx-notice { align-self:stretch; display:flex; align-items:center; gap:10px; margin-top:10px; padding:10px 12px;
               border-radius:12px; background:#FBEFD2; border:1px solid #E2B76A; text-align:left; text-decoration:none; }
  .kx-notice svg { flex:none; color:#92600A; }
  .kx-notice span { flex:1; font-size:13px; line-height:20px; color:#17120C; }
  .kx-notice b { flex:none; display:grid; place-items:center; height:32px; padding:0 12px; border-radius:16px;
                 background:#8A5A0B; color:#FFF9F0; font-size:13px; font-weight:700; }

  /* the chart's tabs, as chips */
  .kx-tabs { display:flex; flex-wrap:wrap; justify-content:center; gap:5px; margin:12px 0 8px; }
  .kx-tab { display:inline-flex; align-items:center; gap:3px; min-height:34px; padding:0 11px; border-radius:17px;
            border:1px solid #E2B76A; background:none; font-family:inherit; font-size:13px; font-weight:600;
            color:#6B4510; text-decoration:none; cursor:pointer; white-space:nowrap; }
  .kx-tab[aria-selected="true"] { background:#8A1F17; border-color:#8A1F17; color:#FFF6E6; font-weight:700; }
  .kx-tab.kx-lock { border-style:dashed; border-color:#D8C7A4; color:#9A8B75; }

  /* the chart */
  .kx-chart { align-self:stretch; aspect-ratio:1 / 1; }
  .kx-chart svg { display:block; width:100%; height:100%; }
  .kx-legend { display:flex; flex-wrap:wrap; justify-content:center; gap:4px 18px; margin-top:10px; }
  .kx-legend span { display:inline-flex; align-items:center; gap:5px; font-size:13px; color:#6B5D48; }
  .kx-legend b { min-width:10px; font-size:15px; font-weight:700; color:#B3261E; text-align:center; }
  .kx-hint { margin:2px 0 0; font-size:13px; color:#756853; }
  .kx-note { margin:6px 0 0; padding:0 4px; font-size:13px; line-height:20px; color:#6B5D48; }

  /* the day of birth, at the patri's foot */
  .kx-foot { align-self:stretch; display:flex; align-items:center; gap:8px; margin-top:6px; padding:10px 0 0;
             border:0; border-top:1px dashed #E2B76A; background:none; font-family:inherit; text-align:left; cursor:pointer; }
  .kx-foot span { flex:1; font-size:13px; line-height:20px; color:#4A3F31; }
  .kx-foot b { flex:none; font-size:13px; font-weight:700; color:#92600A; white-space:nowrap; }

  /* loading and failing */
  .kx-sk { display:flex; flex-direction:column; align-items:center; gap:6px; align-self:stretch; }
  .kx-sk-row { display:flex; justify-content:center; gap:5px; margin-top:8px; }
  .kx-fail { align-self:stretch; aspect-ratio:1 / 1; display:flex; flex-direction:column; align-items:center;
             justify-content:center; gap:10px; margin-top:12px; padding:20px; border:2px dashed #EAD3AE; border-radius:6px; }
  .kx-fail i { display:grid; place-items:center; width:56px; height:56px; border-radius:28px; background:#FBF0E4; color:#9E5A18; }
  .kx-fail h2 { margin:0; font-size:19px; font-weight:700; color:#17120C; }
  .kx-fail p { margin:0; font-size:13px; line-height:20px; color:#756853; }
  .kx-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:48px; padding:0 24px;
            border:0; border-radius:14px; background:#8A5A0B; color:#FFF9F0; font-family:inherit; font-size:15px;
            font-weight:700; text-decoration:none; cursor:pointer; }

  /* ── section 2: the dasha journey ── */
  .kx-sec { display:flex; flex-direction:column; gap:12px; }
  .kx-sec[hidden] { display:none; }
  .kx-h2 { margin:0; font-size:19px; font-weight:700; color:#17120C; }
  .kx-card { display:flex; flex-direction:column; gap:10px; padding:16px; border-radius:20px; background:#FCF4E2; border:1px solid #F0E7D6; }
  .kx-djn { display:flex; gap:8px; padding:8px 10px; border-radius:12px; background:#FBEFD2; border:1px solid #E2B76A;
            font-size:13px; line-height:20px; color:#4A3F31; text-decoration:none; }
  .kx-djn svg { flex:none; margin-top:1px; color:#92600A; }
  .kx-djn b { color:#8A5A0B; font-weight:700; }
  .kx-dj-eb { margin:0; font-size:13px; font-weight:700; color:#92600A; }
  .kx-dj-t { margin:4px 0 0; font-family:Martel, Georgia, serif; font-size:20px; line-height:30px; font-weight:700; color:#17120C; }
  .kx-dim { margin:0; font-size:13px; color:#4A3F31; }
  .kx-ad { margin:0; font-size:15px; line-height:23px; color:#17120C; }
  .kx-ad b { font-weight:700; }
  .kx-bar { height:8px; border-radius:4px; background:#EFE3CB; overflow:hidden; }
  .kx-bar i { display:block; height:8px; border-radius:4px; background:#8A5A0B; }
  .kx-two { display:flex; justify-content:space-between; gap:8px; font-size:13px; color:#756853; }
  .kx-prn { align-self:flex-start; padding:4px 10px; border-radius:10px; background:#fff; border:1px solid #EAD9B8;
           font-size:13px; color:#4A3F31; }
  .kx-acts { display:flex; gap:10px; margin-top:4px; }
  .kx-acts .kx-ask { flex:1; height:auto; min-height:48px; padding:0 14px 0 5px; }
  .kx-acts .kx-ask img { width:38px; height:38px; border-radius:19px; }
  .kx-acts .kx-ask span { font-size:15px; line-height:23px; padding-left:4px; }
  .kx-tl { flex:none; display:grid; place-items:center; min-height:48px; padding:0 16px; border-radius:26px; background:#fff;
           border:1.5px solid #E2B76A; font-size:15px; font-weight:700; color:#6B4510; text-decoration:none; white-space:nowrap; }
  .kx-djf { align-items:center; padding:22px 16px; text-align:center; }
  .kx-djf b { font-size:15px; font-weight:700; color:#17120C; }
  .kx-djf p { margin:0; font-size:15px; line-height:23px; color:#4A3F31; }
  .kx-djf button { height:44px; margin-top:4px; padding:0 20px; border:0; border-radius:22px; background:#8A5A0B; color:#FFF9F0;
                   font-family:inherit; font-size:15px; font-weight:700; cursor:pointer; }
  :root[data-lang="hi"] .kx-dj-t { font-family:inherit; font-weight:700; }
  /* A 320-360px phone: side by side, "Ask Acharya Parashara" was cut to
     "Ask Ac…"; one above the other, both read whole. */
  @media (max-width:359px) {
    .kx-acts { flex-direction:column; }
    .kx-acts .kx-ask { min-height:52px; }
  }

  /* ── sections 3-5: the patri's second page, the grahas, the report ── */
  .kx-psub { margin:-4px 0 6px; font-size:13px; color:#6B5D48; text-align:center; }
  .kx-row { display:flex; align-items:center; gap:12px; width:100%; padding:12px 2px; border:0; background:none;
            font-family:inherit; text-align:left; cursor:pointer; }
  .kx-row + .kx-row, .kx-rule { border-top:1px dashed #E2B76A; }
  .kx-row[disabled] { cursor:default; }
  a.kx-row { text-decoration:none; color:inherit; }
  .kx-row > span { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
  .kx-row b { font-size:15px; font-weight:700; color:#17120C; }
  .kx-row small { font-size:13px; line-height:20px; color:#6B5D48; }
  /* a round verdict stamp, a little askew as if pressed by hand */
  .kx-stamp { flex:none; display:block; padding:3px; border-radius:50%; border:2px solid; }
  /* the stamps, seals and dots share their rows with the words beside them;
     the words take the room (flex:1), these keep their size */
  .kx-row > .kx-stamp, .kx-gk > .kx-gseal, .kx-gr > .kx-gseal, .kx-ph2 > .kx-gseal, .kx-yr > .kx-dots { flex:none; min-width:auto; }
  .kx-stamp > span { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%;
                     padding:0 4px; border-radius:50%; border:1px solid; text-align:center; }
  .kx-stamp i { font-style:normal; font-weight:700; font-size:13px; line-height:16px; }
  .kx-stamp i.kx-num { font-size:19px; line-height:22px; }
  .kx-stamp i.kx-dev { font-size:13px; line-height:20px; }
  .kx-stamp em { font-style:normal; font-weight:700; font-size:13px; line-height:16px; }
  .kx-stamp em.kx-dev { font-size:13px; line-height:20px; }
  .kx-gem { display:flex; align-items:center; gap:12px; margin-top:8px; padding:12px; border-radius:12px; background:#FBEFD2;
            border:1px solid #E2B76A; font-family:inherit; text-align:left; cursor:pointer; width:100%; }
  .kx-gem > span { flex:1; min-width:0; display:flex; flex-direction:column; }
  .kx-gem i { font-style:normal; font-size:13px; font-weight:700; color:#B3261E; }
  .kx-gem b { font-size:15px; font-weight:700; color:#17120C; }
  .kx-gem small { font-size:13px; color:#6B5D48; }
  .kx-chev { flex:none; color:#92600A; }
  .kx-pfail { display:flex; align-items:center; gap:10px; margin-top:8px; padding:12px; border-radius:12px; background:#FBF0E4; border:1px solid #EBCDA8; }
  .kx-pfail > span { flex:1; }
  .kx-pfail b { display:block; font-size:15px; font-weight:700; color:#17120C; }
  .kx-pfail small { font-size:13px; color:#6B5D48; }
  .kx-pfail button { flex:none; height:36px; padding:0 14px; border:0; border-radius:18px; background:#8A5A0B; color:#FFF9F0;
                     font-family:inherit; font-size:13px; font-weight:700; cursor:pointer; }
  /* the grahas */
  .kx-gk { display:flex; align-items:center; gap:12px; width:100%; padding:11px 0; border:0; border-top:1px dashed #E2B76A;
           background:none; font-family:inherit; text-align:left; cursor:pointer; }
  .kx-gk > span { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
  .kx-gk i { font-style:normal; font-size:13px; font-weight:700; color:#92600A; }
  .kx-gk b { font-size:15px; font-weight:700; color:#17120C; }
  .kx-gk small { font-size:13px; color:#6B5D48; }
  .kx-gseal { flex:none; display:grid; place-items:center; padding:2px; border-radius:50%; border:2px solid; background:#FFFDF6; }
  .kx-gseal > span { display:grid; place-items:center; width:100%; height:100%; border-radius:50%; border:1px solid;
                     font-family:Martel, Georgia, serif; font-weight:700; }
  :root[data-lang="hi"] .kx-gseal > span { font-family:inherit; }
  .kx-gr-k { margin:0; padding:12px 0 4px; border-top:1px dashed #E2B76A; font-size:13px; font-weight:700; color:#6B5D48; }
  .kx-gr { display:flex; align-items:center; gap:10px; width:100%; padding:8px 0; border:0; background:none; font-family:inherit;
           text-align:left; cursor:pointer; }
  .kx-gr + .kx-gr { border-top:1px dashed #E2B76A; }
  /* The name wraps rather than cut off; where it sits keeps its one line (the app). */
  .kx-gr b { flex:1; min-width:0; font-size:15px; font-weight:700; color:#17120C; }
  .kx-gr small { font-size:13px; color:#6B5D48; white-space:nowrap; }

  .kx-ease { display:flex; align-items:flex-start; gap:12px; }
  .kx-ease > i { flex:none; display:grid; place-items:center; width:34px; height:34px; border-radius:17px; background:#E7F3EA; color:#2F7A57; }
  .kx-ease b { display:block; font-size:15px; line-height:23px; font-weight:700; color:#17120C; }
  .kx-ease small { display:block; font-size:13px; line-height:20px; color:#6B5D48; }
  .kx-why { display:flex; gap:8px; margin:0; font-size:15px; line-height:23px; color:#4A3F31; }
  .kx-why svg { flex:none; margin-top:1px; color:#2F7A57; }
  .kx-wear { display:grid; grid-template-columns:1fr 1fr; padding-top:6px; border-top:1px dashed #E2B76A; }
  .kx-wear > span { display:flex; flex-direction:column; gap:1px; padding:5px 0; }
  .kx-wear small { font-size:13px; color:#6B5D48; }
  .kx-wear b { font-size:15px; font-weight:700; color:#17120C; }
  .kx-states { margin:0; font-size:13px; font-weight:700; }
  .kx-stone { display:flex; gap:12px; align-items:center; }
  .kx-stone > span { flex:1; display:flex; flex-direction:column; gap:1px; }
  .kx-stone b { font-size:15px; font-weight:700; color:#17120C; }
  .kx-stone small { font-size:13px; color:#6B5D48; }
  .kx-mind { display:flex; flex-direction:column; gap:3px; }
  .kx-mind + .kx-mind { margin-top:12px; padding-top:12px; border-top:1px dashed #E2B76A; }
  .kx-mind > b { font-size:15px; font-weight:700; color:#8A1F17; }
  .kx-mind small { font-size:13px; color:#6B5D48; }
  .kx-mantra { margin:0; font-family:Martel, Georgia, serif; font-size:15px; line-height:23px; font-weight:700; color:#17120C; }
  :root[data-lang="hi"] .kx-mantra { font-family:inherit; }
  .kx-stamps { display:flex; justify-content:space-around; }
  .kx-ytop { display:flex; flex-direction:column; gap:6px; padding:14px; border-radius:16px; background:#FBEFD2; border:1px solid #E2B76A; }
  .kx-ytop > i { font-style:normal; font-size:13px; font-weight:700; color:#92600A; }
  .kx-ytop > b { font-family:Martel, Georgia, serif; font-size:19px; line-height:29px; font-weight:700; color:#8A1F17; }
  :root[data-lang="hi"] .kx-ytop > b { font-family:inherit; font-weight:700; }
  .kx-ytop > small { font-size:13px; line-height:20px; color:#6B5D48; }
  .kx-yr { display:flex; align-items:flex-start; gap:10px; padding:10px 0; }
  .kx-yr + .kx-yr { border-top:1px dashed #E2B76A; }
  .kx-yr > span { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
  .kx-yr b { font-size:15px; line-height:23px; font-weight:700; color:#17120C; }
  .kx-yr small { font-size:13px; line-height:20px; color:#6B5D48; }
  .kx-dots { flex:none; display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
  .kx-dots > span { display:flex; gap:3px; }
  .kx-dots i { width:8px; height:8px; border-radius:4px; background:#E8DCC8; }
  .kx-dots small { font-size:13px; font-weight:700; color:#6B5D48; }
  .kx-more { display:block; width:100%; padding:10px 0; border:0; border-top:1px dashed #E2B76A; background:none;
             font-family:inherit; font-size:15px; font-weight:700; color:#92600A; text-align:left; cursor:pointer; }
  .kx-sky { align-self:center; width:100%; max-width:300px; aspect-ratio:300 / 272; }
  .kx-sky svg { display:block; width:100%; height:100%; }

  /* ── the sheets ── */
  .kx-ss { margin:2px 0 0; font-size:13px; color:#756853; }
  .kx-bmap { align-self:center; width:86%; max-width:320px; aspect-ratio:1 / 1; }
  .kx-bmap svg { display:block; width:100%; height:100%; }
  .kx-bkey { display:flex; justify-content:center; gap:16px; margin-top:-4px; }
  .kx-bkey span { display:inline-flex; align-items:center; gap:5px; font-size:13px; color:#4A3F31; }
  .kx-bkey i { width:11px; height:11px; border-radius:2px; border:1px solid; }
  .kx-ledger { padding:0 14px; border-radius:14px; background:#FFFDF6; border:1px solid #E8DCC8; }
  .kx-dot { display:flex; gap:10px; margin:0; padding:10px 0; font-size:15px; line-height:23px; color:#17120C; }
  .kx-dot + .kx-dot { border-top:1px solid #F0E7D6; }
  .kx-dot > i { flex:none; width:10px; height:10px; margin-top:5px; border-radius:5px; }
  .kx-dot b { font-weight:700; }
  .kx-steps { display:flex; align-items:center; gap:6px; }
  .kx-steps > span { margin-right:4px; font-size:13px; color:#756853; }
  .kx-steps button { display:grid; place-items:center; width:36px; height:36px; border-radius:18px; border:1px solid #E2B76A;
                     background:none; font-family:inherit; font-size:15px; font-weight:700; color:#6B4510; cursor:pointer; }
  .kx-steps button[aria-current="true"] { background:#8A1F17; border-color:#8A1F17; color:#FFF6E6; cursor:default; }


  /* birth details: the panchang card and the Avakhada Chakra */
  .kx-pc { padding:14px 14px 6px; border-radius:16px; background:#FFFDF6; border:1px solid #E8DCC8; }
  .kx-pc-h { display:flex; align-items:center; gap:10px; margin-bottom:6px; }
  .kx-pc-h > i { flex:none; display:grid; place-items:center; width:40px; height:40px; border-radius:20px;
                 background:#FBEFD2; border:1px solid #E2B76A; color:#92600A; }
  .kx-pc-h b { display:block; font-size:15px; font-weight:700; color:#17120C; }
  .kx-pc-h span { display:block; font-size:13px; color:#4A3F31; }
  .kx-cells { display:grid; grid-template-columns:1fr 1fr; column-gap:14px; }
  .kx-cell { padding:8px 0; border-top:1px solid #F0E7D6; }
  .kx-cell i { display:block; font-style:normal; font-size:13px; color:#756853; }
  .kx-cell b { font-size:15px; font-weight:700; color:#17120C; }
  .kx-cell em { font-style:normal; font-size:15px; color:#17120C; }
  .kx-cell em.kx-good { color:#2F7A57; font-weight:700; } .kx-cell em.kx-mid { color:#9E5A18; font-weight:700; }
  .kx-chk { display:flex; flex-direction:column; align-items:center; gap:1px; margin-top:4px; text-align:center; }
  .kx-chk small { font-size:13px; font-weight:700; color:#B3261E; }
  .kx-chk h3 { margin:0; font-family:Martel, Georgia, serif; font-size:20px; font-weight:700; color:#8A1F17; }
  :root[data-lang="hi"] .kx-chk h3 { font-family:inherit; font-weight:700; }
  .kx-chk p { margin:0; font-size:13px; color:#756853; }
  .kx-ak { padding:3px; border:2px solid #B3261E; border-radius:4px; background:#FFFDF6; }
  .kx-ak-in { border:1px solid #E2B76A; }
  .kx-ak-g { display:grid; grid-template-columns:1fr 1fr; }
  .kx-ak-c { min-width:0; padding:9px 10px; border-bottom:1px solid #E7C9A0; }
  .kx-ak-c:nth-child(odd) { border-right:1px solid #E7C9A0; }
  .kx-ak-c.kx-last { border-bottom:0; }
  .kx-ak-c i { display:block; font-style:normal; font-size:13px; font-weight:700; color:#9E5A18; white-space:nowrap;
               overflow:hidden; text-overflow:ellipsis; }
  .kx-ak-c b { font-size:15px; font-weight:700; color:#17120C; }
  .kx-ak-c em { font-style:normal; font-size:15px; color:#6B5D48; }
  .kx-nm { display:flex; align-items:center; gap:14px; padding:12px; border-top:2px solid #B3261E; background:#FBEFD2; }
  .kx-nm > i { flex:none; display:grid; place-items:center; width:64px; height:64px; border-radius:32px;
               border:2px solid #8A1F17; font-style:normal; font-size:22px; font-weight:700; color:#8A1F17; }
  .kx-nm small { display:block; font-size:13px; font-weight:700; color:#8A1F17; }
  .kx-nm b { display:block; font-size:19px; font-weight:700; color:#17120C; }
  .kx-nm span { display:block; font-size:13px; color:#4A3F31; }

  /* more charts */
  .kx-vg { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .kx-v { display:flex; align-items:center; gap:10px; min-width:0; padding:10px; border-radius:14px; background:#FFFDF6;
          border:1px solid #E8DCC8; font-family:inherit; text-align:left; cursor:pointer; }
  .kx-v > i { flex:none; display:grid; place-items:center; width:38px; height:38px; border-radius:19px; border:1.5px solid #B3261E;
              font-style:normal; font-family:Martel, Georgia, serif; font-size:13px; font-weight:700; color:#B3261E; }
  .kx-v span { min-width:0; }
  .kx-v b { display:block; font-size:15px; font-weight:700; color:#17120C; }
  .kx-v small { display:block; font-size:13px; line-height:1.3; color:#756853; }
  .kx-v[aria-pressed="true"] { background:#8A1F17; border-color:#8A1F17; }
  .kx-v[aria-pressed="true"] > i { border-color:#F2C879; color:#F2C879; }
  .kx-v[aria-pressed="true"] b { color:#FFF6E6; } .kx-v[aria-pressed="true"] small { color:#F1D9C0; }
  :root[data-lang="hi"] .kx-v > i { font-family:inherit; font-size:15px; }
  .kx-rule { height:1px; background:#EAD9B8; }
  .kx-k { margin:0; font-size:13px; font-weight:700; color:#756853; }
  .kx-sty { display:flex; gap:10px; }
  .kx-sty button { flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; padding:12px; border-radius:14px;
                   background:#FFFDF6; border:1px solid #E8DCC8; font-family:inherit; font-size:15px; font-weight:700;
                   color:#4A3F31; cursor:pointer; }
  .kx-sty button[aria-pressed="true"] { border:2px solid #8A1F17; padding:11px; color:#17120C; font-weight:700; }

  /* whose kundli */

  /* The wrapper t() puts round each Hindi string: no box, the parent's type. */
  :root .l-hi { display:contents; font:inherit; color:inherit; }
  /* The same Hindi rules as the signed-in pages (CSS above): matras need the
     taller line; under 15px goes up by 2, never past 15; no tracking, caps
     or slant, which pull a conjunct apart. */
  :root[lang^="hi"] body { line-height:1.6; }
  /* HEADINGS TOO. The display headings are set at ~1.1 for Latin, and in
     Devanagari that let one line's lower matra meet the next line's upper
     one: the ू of लो शू ग्रिड ran into the ी of "आपकी जन्म तिथि से". */
  :root[lang^="hi"] :is(h1, h2, h3) { line-height:1.32; }
  /* NO TRACKING ANYWHERE ON A HINDI PAGE. Eyebrows, field labels, the
     "example" tag and section heads are letter-spaced for Latin capitals;
     in Devanagari the spacing splits a word at its conjuncts ("मु फ़्त").
     One rule, and it wins, rather than a list that misses the next label. */
  :root[lang^="hi"] body * { letter-spacing:0 !important; }
  :root[lang^="hi"] .l-hi {
    font-size:max(1em, min(calc(1em + 2px), 15px));
    letter-spacing:0; text-transform:none; font-style:normal; }
  :root[lang^="hi"] .l-hi .l-hi { font-size:1em; }
  /* AND NOT MONO. The small labels are set in the mono face for English;
     Devanagari in it reads as a typewriter. On a Hindi page the mono face
     is the sans. */
  :root[lang^="hi"] { --font-mono:var(--font-sans); }
  /* AND A DEVANAGARI FACE IN THE SERIF. The serif stack names Latin faces
     only, so a Hindi heading fell through to whatever the system had: on a
     Mac that is Devanagari MT, which sets पें apart from the next letter
     ("पें टाकल्स", /hi/tarot/ card names). The Latin in a heading keeps the
     serif; the Devanagari gets the face the body text already uses. */
  :root[lang^="hi"] { --font-serif:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,
    "Kohinoor Devanagari","Nirmala UI","Noto Serif Devanagari","Noto Sans Devanagari",serif; }
  /* THE SHARED PARTS THAT CARRY HINDI WITHOUT t(): the header and drawer
     (common.chrome writes them in Hindi), the pickers, the report cards,
     the astrologer rate, the notes and the footer. The .l-hi rule above
     never reached them, so a /hi/ page had 9.5-13.5px Devanagari and tracked
     capitals in its menu (review, 28 Sep 2026: measured against the English
     twin, class by class). Each is its English size +2, never past 15. */
  :root[lang^="hi"] .c-nav-i, :root[lang^="hi"] .c-nav-px b,
  :root[lang^="hi"] .c-dd-i, :root[lang^="hi"] .c-pf-done, :root[lang^="hi"] .c-unknown,
  :root[lang^="hi"] .c-btn .c-as-rate, :root[lang^="hi"] .rv-btn,
  :root[lang^="hi"] .c-nav-mi, :root[lang^="hi"] .c-nav-mm,
  :root[lang^="hi"] .rv-c-d { font-size:15px; }
  :root[lang^="hi"] .c-nav-px i, :root[lang^="hi"] .c-note,
  :root[lang^="hi"] .c-as-rate { font-size:14.5px; }
  :root[lang^="hi"] .rv-c-m, :root[lang^="hi"] .p-hb-k,
  :root[lang^="hi"] .p-hb-k > * { font-size:14px; }
  :root[lang^="hi"] .c-drawer-h > *, :root[lang^="hi"] .c-drawer-h, :root[lang^="hi"] .c-dp-wd,
  :root[lang^="hi"] .c-nav-mh, :root[lang^="hi"] .c-field label {
    letter-spacing:0; text-transform:none; font-family:var(--font-sans); }
  :root[lang^="hi"] .c-drawer-h > span { font-size:13px; }
  :root[lang^="hi"] .c-dp-wd { font-size:11px; }
  :root[lang^="hi"] .c-nav-mh { font-size:11.5px; }