/* ============================================================================
   RISHI — MIDNIGHT SKIN · COMPONENTS
   Reproduces Marisha's "Rishi — Brand & App" design on the app's REAL structure.
   Every rule is scoped under body[data-skin="midnight"] so Atelier (default) and
   Astra are untouched. midnight-tokens.css already flips color/type/radius; this
   file carries the component-level fidelity (type scale, pull-quote brass rule,
   "In your chart" wells, the nav, the wheel, the reading layout).
   Principles kept literal from her boards:
     • Light arrives, it doesn't pop (opacity + 8px rise, no scale-from-0, no bounce)
     • Draw, don't appear (lines write themselves)
     • Never decorative — brass only on hairlines, the mark and the chart ring
   ============================================================================ */

body[data-skin="midnight"]{
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body[data-skin="midnight"] #phone{ background: var(--cream); color: var(--ink); }

/* --- base type map onto her three faces ---------------------------------- */
body[data-skin="midnight"] .serif,
body[data-skin="midnight"] .greet,
body[data-skin="midnight"] .sectitle,
body[data-skin="midnight"] .era,
body[data-skin="midnight"] h1,
body[data-skin="midnight"] h2{ font-family: var(--serif); font-weight: 300; letter-spacing: -0.02em; }

body[data-skin="midnight"] .micro,
body[data-skin="midnight"] .f.micro,
body[data-skin="midnight"] .confrow .k,
body[data-skin="midnight"] .chartcap,
body[data-skin="midnight"] .lmeta,
body[data-skin="midnight"] .readlabel,
body[data-skin="midnight"] #readlabel{
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: var(--tr-micro);
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}
body[data-skin="midnight"] .micro.gold,
body[data-skin="midnight"] .gold{ color: var(--gold); }

/* --- the one quiet section point between blocks (her "·" / brass dot) ------ */
body[data-skin="midnight"] .titleorn{ color: var(--gold); opacity:.8; font-size:14px; }

/* ===== THE CAST (casting cinematic) =====================================
   Her choreography is already the right one — "light arrives, draw-don't-appear":
   the grid traces itself, the medallion ignites, the glyphs settle. On midnight
   we only correct the GROUND (the default rule paints #casting with var(--ink),
   which on midnight is PARCHMENT — wrong; the sky must be deep night) and retune
   the brass so the wheel writes itself in her exact Brass, not Atelier's.
   ------------------------------------------------------------------------ */
body[data-skin="midnight"] #casting{ background: var(--cream); }
body[data-skin="midnight"][data-tone="vellum"] #casting{ background: var(--canvas); }
/* the message under the wheel — tracked mono, brass-hi, "slow as the sky" */
body[data-skin="midnight"] .castmsg{
  font-family: var(--mono); font-weight:500; letter-spacing:.30em; color: var(--goldBright);
}
/* recolor the drawn wheel to midnight Brass (SVG attrs were Atelier's #B08D4A).
   lines + ring + medallion rings → Brass; the ignition sparks → Brass-hi. */
body[data-skin="midnight"] #castchart .cg,
body[data-skin="midnight"] #castsvg .ln,
body[data-skin="midnight"] #castsvg .ring,
body[data-skin="midnight"] #castsvg .med{ stroke: var(--gold); }
body[data-skin="midnight"] #castchart .cign circle,
body[data-skin="midnight"] #castchart .cglow + *{ stroke: var(--gold); }
/* glyphs + name engrave in parchment, ASC cell in a faint brass wash */
body[data-skin="midnight"] #castchart .cgl text{ fill: var(--parch); }
/* the ambient glow behind the wheel follows Brass, softly */
body[data-skin="midnight"] .castglow{
  background: radial-gradient(circle, var(--gold-glow), rgba(200,164,106,.05) 46%, transparent 70%);
}

/* ===== ONBOARDING ======================================================== */
body[data-skin="midnight"] .ob{ background: var(--cream); padding: 0 28px 40px; }
body[data-skin="midnight"] .ob h2{
  font-family: var(--serif); font-weight:300;
  font-size: 46px; line-height:1.04; letter-spacing:-0.028em; color: var(--ink);
}
body[data-skin="midnight"] .ob .lead{
  font-family: var(--sans); font-size:17px; line-height:1.6; color: var(--sec);
}
body[data-skin="midnight"] .ob .ornwrap svg{ filter:none; }
body[data-skin="midnight"] .stepdots i{ background: var(--hair); }
body[data-skin="midnight"] .stepdots i.on{ background: var(--gold); }
body[data-skin="midnight"] .obback{ color: var(--sec); }

/* primary CTA — Night: parchment fill, dark text (her exact spec) */
body[data-skin="midnight"] .btn-ink{
  background: var(--cta-fill); color: var(--cta-text);
  font-family: var(--sans); font-weight:500; font-size:16px;
  height:56px; border-radius:16px; border:0; letter-spacing:0;
  box-shadow:none; text-transform:none;
}
body[data-skin="midnight"] .btn-ink:active{ transform: translateY(1px); opacity:.92; }
body[data-skin="midnight"] .btn-ghost{
  background:transparent; color: var(--sec); border:0; font-weight:400; height:44px;
}

/* form fields — input wells = Surface, hairline border, brass caret */
body[data-skin="midnight"] input[type=text],
body[data-skin="midnight"] input[type=date],
body[data-skin="midnight"] input[type=time]{
  background: var(--card); color: var(--ink);
  border:1px solid var(--hair); border-radius:14px;
  font-family: var(--sans); font-size:17px; caret-color: var(--gold);
}
body[data-skin="midnight"] input::placeholder{ color: var(--text-3); }
body[data-skin="midnight"] .switchrow{ color: var(--sec); }
body[data-skin="midnight"] .sw{ background: var(--hair); }
body[data-skin="midnight"] .sw.on{ background: var(--gold); }

/* confirm card */
body[data-skin="midnight"] .card{
  background: var(--card); border:1px solid var(--hair); border-radius:18px;
}
body[data-skin="midnight"] .confrow{ border-top:1px solid var(--hair-2); }
body[data-skin="midnight"] .confrow .v{ font-family: var(--mono); font-size:12px; letter-spacing:.04em; color: var(--gold); }

/* ===== TODAY ============================================================= */
body[data-skin="midnight"] .pagehead .micro{ color: var(--text-3); }
body[data-skin="midnight"] .greet{ font-size: var(--t-display); letter-spacing: var(--tr-display); color: var(--ink); }

/* moon medallion card — on midnight it is NOT an ink panel; ground + hairline,
   the moon glows in moonlight, a mono data line reads MOON 24°06′ CANCER */
body[data-skin="midnight"] .inkpanel,
body[data-skin="midnight"] .medcard{
  background: transparent; color: var(--ink);
  border:0; border-radius:0; box-shadow:none;
}
body[data-skin="midnight"] .medcard{ padding: 10px 0 0; border:0; }
body[data-skin="midnight"] .medcard .txt .micro{ color: var(--moon); }
body[data-skin="midnight"] .medcard .era{ font-family: var(--serif); font-weight:300; color: var(--ink); font-size:26px; letter-spacing:-0.02em; }
body[data-skin="midnight"] .medcard .sub{ font-family: var(--mono); font-size:12px; letter-spacing:.06em; color: var(--moon); }

/* "A note from your astrologer" — a quiet lead, serif, no card chrome */
body[data-skin="midnight"] .presencecard{
  background: transparent; border:0; border-top:1px solid var(--hair); border-bottom:1px solid var(--hair);
  border-radius:0; box-shadow:none; margin:28px 0; padding:24px 0;
}
body[data-skin="midnight"] .presencecard .micro{ color: var(--gold); }
body[data-skin="midnight"] .presencebody{
  font-family: var(--serif); font-weight:400; font-size:22px; line-height:32px;
  letter-spacing:-0.005em; color: var(--ink);
}

/* scope pills (day/week/month) — mono, hairline, brass when on */
body[data-skin="midnight"] .scopes{ gap:0; border-bottom:1px solid var(--hair); }
body[data-skin="midnight"] .scope{
  background:transparent; border:0; border-bottom:2px solid transparent;
  color: var(--text-3); font-family: var(--mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase;
  border-radius:0;
}
body[data-skin="midnight"] .scope.on{ color: var(--gold); border-bottom-color: var(--gold); }

/* today reading cards — her "Lean into / Go slowly with" are small hairline wells;
   the long reading is serif lead + sans body */
body[data-skin="midnight"] #todaycards .tcard,
body[data-skin="midnight"] #todaycards .card{
  background: var(--card); border:1px solid var(--hair); border-radius:14px; box-shadow:none;
}
body[data-skin="midnight"] #todaycards p{ font-family: var(--sans); font-size:17px; line-height:28px; color: var(--ink-2); }
body[data-skin="midnight"] #todaycards p:first-of-type,
body[data-skin="midnight"] #todaycards .lead{ font-family: var(--serif); font-weight:400; font-size:22px; line-height:32px; color: var(--ink); }

/* the Moon drawing recolors to moonlight on midnight */
body[data-skin="midnight"] .medcard svg path[fill]{ fill: var(--moon); }
body[data-skin="midnight"] .medcard svg circle[stroke]{ stroke: var(--moon); }

/* ===== READING PLATE ===================================================== */
body[data-skin="midnight"] .subhead{ background: var(--cream); border-bottom:1px solid var(--hair); }
body[data-skin="midnight"] .backbtn,
body[data-skin="midnight"] .ghostmini{ color: var(--gold); font-family: var(--sans); background:transparent; }
body[data-skin="midnight"] .secpage .micro.gold{ color: var(--gold); }
body[data-skin="midnight"] .sectitle{
  font-family: var(--serif); font-weight:300;
  font-size: var(--t-title); line-height:42px; letter-spacing: var(--tr-title); color: var(--ink);
}

/* the reading body — her chapter: serif LEAD paragraph, then sans body,
   brass-ruled pull-quotes, mono "In your chart" data wells */
body[data-skin="midnight"] .reading{ color: var(--ink-2); }
body[data-skin="midnight"] .reading h2{
  font-family: var(--serif); font-weight:300; font-size:36px; line-height:42px;
  letter-spacing:-0.02em; color: var(--ink); margin: 56px 0 0;
}
body[data-skin="midnight"] .reading h3{
  font-family: var(--serif); font-weight:400; font-size:22px; line-height:30px;
  letter-spacing:-0.01em; color: var(--ink); margin: 40px 0 0;
}
body[data-skin="midnight"] .reading h4{
  font-family: var(--serif); font-weight:500; font-size:18px; line-height:26px;
  letter-spacing:-0.005em; color: var(--ink); margin: 32px 0 0;
}
body[data-skin="midnight"] .reading h5{
  font-family: var(--sans); font-weight:600; font-size:13px; line-height:20px;
  letter-spacing:.06em; text-transform:uppercase; color: var(--ink-2); margin: 28px 0 0;
}
body[data-skin="midnight"] .reading p{
  font-family: var(--sans); font-size:17px; line-height:28px; letter-spacing:.003em; color: var(--ink-2);
  margin: 24px 0 0;
}
/* her signature: the FIRST paragraph of each chapter is the serif lead (20/32) */
body[data-skin="midnight"] .reading > p:first-of-type,
body[data-skin="midnight"] .reading .acc-b > p:first-of-type{
  font-family: var(--serif); font-weight:400; font-size:20px; line-height:32px;
  letter-spacing:0; color: var(--ink); margin-top: 32px;
}
/* pull-quote — 40px brass rule above, Newsreader italic in brass-hi */
body[data-skin="midnight"] .pullquote{
  /* canonical "quote" role: 26/36 · 300 italic · −.01em · brass-hi */
  font-family: var(--serif); font-style:italic; font-weight:300;
  font-size:var(--t-pull); line-height:var(--lh-pull); letter-spacing:var(--tr-pull); color: var(--goldBright);
  border:0; background:transparent; margin:48px 0; padding:20px 0 0; position:relative;
}
body[data-skin="midnight"] .pullquote::before{
  content:""; position:absolute; top:0; left:0; width:40px; height:1px; background: var(--gold);
}
body[data-skin="midnight"] .reading hr{
  border:0; height:0; margin:84px auto; width:5px; overflow:visible; position:relative;
}
body[data-skin="midnight"] .reading hr::after{
  content:""; position:absolute; left:50%; top:0; width:5px; height:5px; margin-left:-2.5px;
  border-radius:50%; background: var(--gold);
}
/* placement chips — mono brass pills with hairline */
body[data-skin="midnight"] .chips{ gap:8px; }
body[data-skin="midnight"] .chip{
  font-family: var(--mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  color: var(--gold); background:transparent; border:1px solid var(--hair); border-radius:8px; padding:7px 10px;
}

/* accordion heads keep her serif, hairline dividers */
body[data-skin="midnight"] .acc-h{ border-top:1px solid var(--hair); color: var(--ink); }
body[data-skin="midnight"] .acc-h .acc-x{ color: var(--gold); }

/* "In your chart" data box — Surface-2, mono rows, brass values */
body[data-skin="midnight"] .chartbox,
body[data-skin="midnight"] .inchart{
  background: var(--card-2); border:1px solid var(--hair); border-radius:16px;
}

/* ===== MY CHART (wheel) ================================================== */
body[data-skin="midnight"] .chartpanel{
  background:#0E1018; border:1px solid var(--hair); border-radius:26px; box-shadow:none; padding:14px;
}
body[data-skin="midnight"][data-tone="vellum"] .chartpanel{ background: var(--raised); }
body[data-skin="midnight"] .chartcap{
  font-family: var(--mono); font-size:11px; letter-spacing:.06em; text-transform:none; color: var(--gold); text-align:center;
}
/* chart-style segmented toggle (Square / Wheel) */
body[data-skin="midnight"] .charttabs{
  display:grid; grid-template-columns:1fr 1fr; gap:0; padding:4px; margin:16px 0;
  background: var(--card); border:1px solid var(--hair); border-radius:14px;
}
body[data-skin="midnight"] .charttab{
  height:40px; border:0; border-radius:10px; background:transparent; color: var(--sec);
  font-family: var(--sans); font-size:14px; font-weight:500; cursor:pointer;
}
body[data-skin="midnight"] .charttab.on{ background: var(--raised); color: var(--ink); }
body[data-skin="midnight"][data-tone="vellum"] .charttab.on{ background: var(--cream); }

/* section rows (plates) — hairline list, serif title, mono plate label */
body[data-skin="midnight"] .secrow{
  background:transparent; border:0; border-bottom:1px solid var(--hair-2); border-radius:0; box-shadow:none;
  padding:18px 0;
}
body[data-skin="midnight"] .secrow .t{ font-family: var(--serif); font-weight:300; font-size:20px; letter-spacing:-0.01em; color: var(--ink); }
body[data-skin="midnight"] .secrow .micro{ color: var(--text-3); }
body[data-skin="midnight"] .secrow .chev{ color: var(--gold); }
body[data-skin="midnight"] .secrow.locked .lockglyph{ color: var(--text-3); }
body[data-skin="midnight"] .lockbadge{ color: var(--gold); border-color: var(--hair); }
body[data-skin="midnight"] .readbadge{ color: var(--text-3); border-color: var(--hair); }

/* life-chapter timeline — rail + nodes, current in brass */
body[data-skin="midnight"] .lifetl{ border-left:1px solid var(--hair); }
body[data-skin="midnight"] .lnode{ background: var(--hair); }
body[data-skin="midnight"] .lchap.now .lnode{ background: var(--gold); }
body[data-skin="midnight"] .ltheme{ font-family: var(--serif); color: var(--ink); }
body[data-skin="midnight"] .lchap.past{ opacity:.5; }

/* ===== THE ORACLE (chat) ================================================= */
body[data-skin="midnight"] #chatlog .msg-u,
body[data-skin="midnight"] .bubble-u{
  background: var(--raised); color: var(--ink); border-radius:20px 20px 6px 20px;
  font-family: var(--sans); font-size:16px; line-height:1.5;
}
body[data-skin="midnight"] #chatlog .reading p:first-of-type{
  font-family: var(--serif); font-style:italic; font-weight:300; font-size:25px; line-height:34px;
  letter-spacing:-0.01em; color: var(--ink);
}
body[data-skin="midnight"] #chatlog .reading p{ font-family: var(--sans); font-size:17px; line-height:28px; color: var(--ink-2); }
body[data-skin="midnight"] .chip-q,
body[data-skin="midnight"] #chips .chip{
  background:transparent; border:1px solid var(--hair); border-radius:22px; color: var(--ink);
  font-family: var(--sans); font-size:15px;
}
/* "Remembering…" — the Oracle says when it's drawing on your stored life.
   Tracked mono, brass, sits just above the think-shimmer bubble. */
body[data-skin="midnight"] .rememberlabel{
  font-family: var(--mono); font-size:var(--t-micro); letter-spacing:var(--tr-micro);
  text-transform:uppercase; color: var(--gold); opacity:.85; margin:2px 0 8px;
  animation: mnFadeIn .6s var(--ease) both;
}
/* the think-shimmer bubble inherits .thinkbub; on midnight pin it to Surface + Brass */
body[data-skin="midnight"] .thinkbub{ background: var(--card); border:1px solid var(--hair); box-shadow:none; }
body[data-skin="midnight"] .thinkbub i{ background: var(--gold); }
/* placement tags — the astronomer's hand. DM Mono, brass, hairline chip.
   md()/inline() wrap degrees/signs/houses in .placetag across chat + readings. */
/* Marisha 22 Nov: no chip. A pill breaks the reading line; placements read as
   plain gold bold text, same as **bold** emphasis. */
body[data-skin="midnight"] .placetag{
  font:inherit; font-weight:700; color: var(--gold);
  background:none; border:0; padding:0; white-space:normal;
}

/* ===== MOBILE CLIP GUARD (midnight) ======================================
   At phone width the Today glance / medcard / presence sit in a single column.
   These are belt-and-suspenders rules so no long token or inline tag can ever
   push a card past the right edge (the phone frame is overflow:hidden → any
   spill reads as a clip, not a scroll). Purely defensive — no visual change at
   normal content; a stray long placetag simply wraps instead of clipping.
   Scoped to midnight + ≤480px, so Atelier/Astra and desktop are untouched. */
@media (max-width:480px){
  body[data-skin="midnight"] #glanceslot,
  body[data-skin="midnight"] .glance,
  body[data-skin="midnight"] .medcard,
  body[data-skin="midnight"] #presencecard,
  body[data-skin="midnight"] #todaycards,
  body[data-skin="midnight"] #reflectslot{
    max-width:100%; min-width:0; box-sizing:border-box; overflow-wrap:anywhere;
  }
  /* meters row: let each ring cell shrink rather than force overflow */
  body[data-skin="midnight"] .glance .meters{ min-width:0; }
  body[data-skin="midnight"] .glance .meter{ min-width:0; }
  /* a long inline placement tag wraps as a last resort instead of clipping */
  body[data-skin="midnight"] .glance .placetag,
  body[data-skin="midnight"] .medcard .placetag,
  body[data-skin="midnight"] #presencecard .placetag{
    white-space:normal; overflow-wrap:anywhere;
  }
}

/* ===== TOAST =============================================================
   Base #toast is background:var(--ink) + color:var(--goldBright). In Atelier
   --ink is dark ink, so it's a dark pill with bright-gold text. Midnight inverts
   --ink to parchment, so the toast became a cream pill with light-gold text —
   near-illegible when it shows ("Opening checkout…", "Signed out", tier-up).
   Pin it to a dark raised pill with a brass hairline so it reads on the dark UI. */
body[data-skin="midnight"] #toast{
  background: var(--raised);
  color: var(--goldBright);
  border:1px solid var(--hair);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.7);
}

/* ===== MEMBERSHIP — featured "Oracle" upsell card (free state) ===========
   The base .tier.ink card paints background:var(--ink) + color:var(--parch).
   In Atelier --ink is dark ink, so it's a dark feature card with light text.
   Midnight INVERTS --ink to parchment (#EDE6D6), so .tier.ink became a cream
   card with same-colour (invisible) text on the dark page — the heading, lead,
   and every bullet vanished. Repaint it in midnight's own language: a raised
   dark card with a brass edge-of-light (same as .pw-plan-best), parchment text
   restored, bullets legible. The gold CTA already reads fine and is kept. */
body[data-skin="midnight"] .tier.ink{
  background: linear-gradient(180deg, var(--raised), var(--card));
  border:1px solid var(--gold);
  box-shadow: 0 0 0 1px var(--gold-glow), 0 18px 48px -30px rgba(0,0,0,.7);
  color: var(--ink);
}
body[data-skin="midnight"] .tier.ink h4{ color: var(--ink); }
body[data-skin="midnight"] .tier.ink .price{ color: var(--goldBright); }
body[data-skin="midnight"] .tier.ink ul{ color: var(--ink-2); }
body[data-skin="midnight"] .tier.ink ul li::before{ color: var(--gold); }
body[data-skin="midnight"] .tier.ink .btn-ink{ background: var(--gold); color: #231A0B; }

/* ===== PAYWALL SHEET =====================================================
   The real markup is .pw-ov > .pw-sheet > .pw-plan (showPaywall). The default
   sheet is already dark + token-driven, so most of it inherits midnight for free;
   here we correct the HARDCODED hexes (Atelier-dark navy + its brass rgba) to her
   exact Night ground + Brass, and give the "best value" plan a brass edge of light. */
body[data-skin="midnight"] .pw-ov.in{ background: rgba(5,6,10,.66); }
body[data-skin="midnight"] .pw-sheet{
  background: var(--card); border-top:1px solid var(--hair);
  box-shadow: 0 -20px 60px rgba(0,0,0,.6);
}
body[data-skin="midnight"] .pw-grab{ background: var(--hair); }
body[data-skin="midnight"] .pw-plan{
  background: transparent; border:1px solid var(--hair);
}
body[data-skin="midnight"] .pw-plan-best{
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-glow), rgba(200,164,106,.03));
}
/* chosen plan reads as a point of light, not a loud fill — brass hairline + sheen */
body[data-skin="midnight"] .pw-plan:active{ transform: scale(.98); }
body[data-skin="midnight"] .pw-plan-r{ color: var(--ink); }
body[data-skin="midnight"] .pw-tick,
body[data-skin="midnight"] .pw-plan-note,
body[data-skin="midnight"] .pw-eyebrow{ color: var(--goldBright); }
/* the little mark at the top uses --as-gold fallback; pin it to Brass on midnight */
body[data-skin="midnight"] .pw-mark svg circle[stroke],
body[data-skin="midnight"] .pw-mark svg path[fill]{ stroke: var(--gold); }
body[data-skin="midnight"] .pw-mark svg path[fill]{ fill: var(--gold); }

/* ===== BOTTOM NAV ======================================================== */
body[data-skin="midnight"] #tabbar{
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border-top:1px solid var(--hair-2);
}
/* U5 fix — desktop sidebar logo. The Atelier lockup paints the "Rishi" wordmark in
   dark ink (#17171B) on a light sidebar; on midnight's dark sidebar it reads as an
   invisible/clipped smudge. Repaint it: brass glyph + parchment wordmark, with a
   clear gutter so the mark and wordmark never collide. */
@media (min-width:1024px){
  body[data-skin="midnight"] #tabbar{
    background: linear-gradient(180deg, rgba(17,20,29,.72), rgba(10,12,18,.66));
    border-right:1px solid var(--hair-2); border-top:none;
    box-shadow:1px 0 0 rgba(255,255,255,.03) inset, 18px 0 40px -30px rgba(0,0,0,.6);
  }
  body[data-skin="midnight"] #tabbar::before{
    height:34px; margin:6px 12px 28px;
    background:no-repeat left center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 44'><g fill='none' stroke='%23C8A46A' stroke-width='1.4'><circle cx='22' cy='22' r='18'/><circle cx='22' cy='22' r='5.5'/><line x1='22' y1='4' x2='22' y2='16.5'/><line x1='22' y1='27.5' x2='22' y2='40'/><line x1='4' y1='22' x2='16.5' y2='22'/><line x1='27.5' y1='22' x2='40' y2='22'/></g><circle cx='22' cy='22' r='1.6' fill='%23E6CC95'/><text x='58' y='31' font-family='Georgia,serif' font-size='27' fill='%23EDE6D6'>Rishi</text></svg>");
  }

  /* --- YOU / ACCOUNT · desktop reading-room (midnight) --------------------
     The base desktop rule (index.html) builds the 2-col grid; here we flush the
     section side-margins so the panels sit against the content column edges (the
     40px grid gap is the gutter now), and tune the sub-nav for the dark ground. */
  body[data-skin="midnight"][data-tab="account"] .acctsubnav a{ color:var(--sec); }
  body[data-skin="midnight"][data-tab="account"] .acctsubnav a:hover{ background:#11141D; color:var(--ink); }
  body[data-skin="midnight"][data-tab="account"] .acctsubnav a[aria-current="true"]{ background:#151925; color:var(--ink); box-shadow:inset 2px 0 0 var(--goldBright); }
  /* zero the horizontal margins the mobile skin applied to each section so they
     fill grid-column 2 (vertical rhythm + id/onclick hooks are untouched) */
  body[data-skin="midnight"][data-tab="account"] .youcard.card,
  body[data-skin="midnight"][data-tab="account"] .sectionlabel.micro,
  body[data-skin="midnight"][data-tab="account"] .pcard,
  body[data-skin="midnight"][data-tab="account"] .predhead,
  body[data-skin="midnight"][data-tab="account"] .tier:not(.ink),
  body[data-skin="midnight"][data-tab="account"] .factadd,
  body[data-skin="midnight"][data-tab="account"] #memwrap > p,
  body[data-skin="midnight"][data-tab="account"] #aboutwrap .aboutsec{ margin-left:0; margin-right:0; padding-left:0; padding-right:0; }
  body[data-skin="midnight"][data-tab="account"] .tier.ink,
  body[data-skin="midnight"][data-tab="account"] .rpthero,
  body[data-skin="midnight"][data-tab="account"] #acctbox,
  body[data-skin="midnight"][data-tab="account"] .rv[style*="20px"],
  body[data-skin="midnight"][data-tab="account"] .notice{ margin-left:0 !important; margin-right:0 !important; }
  /* the profile header becomes the design's name-left / chips-right row */
  body[data-skin="midnight"][data-tab="account"] .youcard .youhead{ align-items:flex-end; }
  body[data-skin="midnight"][data-tab="account"] .skypanel{ margin-left:0; margin-right:0; }
}
body[data-skin="midnight"] #tabbar .tab{ color: var(--text-3); font-family: var(--sans); font-size:11px; }
body[data-skin="midnight"] #tabbar .tab.on{ color: var(--ink); }
body[data-skin="midnight"] #tabbar .tab svg{ stroke: currentColor; }
/* the one filled-accent icon: Ask Rishi — a brass-ringed eye orb (her spec:
   "one filled-accent icon per screen at most: Ask Rishi, in brass"). */
body[data-skin="midnight"] #tabbar .tab.center .orb{
  width:52px; height:52px; border-radius:50%;
  background: var(--card); border:1px solid var(--gold);
  display:flex; align-items:center; justify-content:center;
}
body[data-skin="midnight"] #tabbar .tab.center .orb svg{ fill: var(--gold); width:22px; height:22px; }

/* NO glow behind content — her design bans glows + star-field wallpaper.
   Kill the Atelier chartpanel radial + any mask/halo that would bleed in. */
body[data-skin="midnight"] .chartpanel::before,
body[data-skin="midnight"] .chartpanel::after{ display:none !important; }
body[data-skin="midnight"] .oracle-mark::before{ display:none !important; }

/* ===== MOTION — light arrives, it doesn't pop ============================ */
body[data-skin="midnight"] .rv{ animation-timing-function: var(--ease); }
body[data-skin="midnight"] .rv{ opacity:0; transform: translateY(8px); animation: mnArrive .9s var(--ease) forwards; }
@keyframes mnArrive{ from{ opacity:0; transform: translateY(8px); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){
  body[data-skin="midnight"] .rv{ animation:none; opacity:1; transform:none; }
}

/* the mark + wheel "draw" themselves */
body[data-skin="midnight"] .mn-draw{ stroke-dasharray:1; stroke-dashoffset:1; animation: mnDraw 1.6s var(--draw) .1s forwards; }
@keyframes mnDraw{ to{ stroke-dashoffset:0; } }
body[data-skin="midnight"] .mn-fade{ opacity:0; animation: mnFadeIn 1s ease .9s forwards; }
@keyframes mnFadeIn{ to{ opacity:1; } }
/* FAST re-cast (return visits to My Chart) — the ceremony replays every tab-open so
   the chart feels alive daily, but a returning user gets a quick 0.5s redraw, not the
   full 1.6s ritual, so it never taxes a habit user. (product-design §5: rare→room for
   ceremony, frequent→minimal.) The chart drawing itself is purposeful, not wallpaper,
   so it is allowed on midnight where decorative starfields are not. */
body[data-skin="midnight"] .fastcast .mn-draw{ animation-duration:.52s; animation-delay:.04s; }
body[data-skin="midnight"] .fastcast .mn-fade{ animation-duration:.4s; animation-delay:.34s; }
@media(prefers-reduced-motion:reduce){
  body[data-skin="midnight"] .mn-draw{ animation:none; stroke-dashoffset:0; }
  body[data-skin="midnight"] .mn-fade{ animation:none; opacity:1; }
}

/* ===================================================================
   THE LIVING SKY  ·  streak + depth-tier panel (Today + You)
   Skin-agnostic (uses --gold/--ink/--sec tokens that exist in every
   skin) but tuned for midnight's deep-ink ground. Reduced-motion safe.
=================================================================== */
@keyframes skyTw { 0%,100%{ opacity:var(--_o,.5); } 50%{ opacity:1; } }
.skypanel{
  position:relative; margin:0 0 2px; border-radius:20px; overflow:hidden;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(200,164,106,.07), transparent 60%),
    linear-gradient(180deg, var(--card,#11141D), var(--card-2,#0F1219));
  border:1px solid var(--hair,#262A36);
  padding:14px 16px 16px;
  -webkit-tap-highlight-color:transparent;
}
body:not([data-skin="midnight"]) .skypanel{
  background:linear-gradient(180deg, var(--card,#FBF8F2), var(--card,#FBF8F2));
}
.skypanel:not(.big){ cursor:pointer; transition:transform .4s var(--spring-soft, cubic-bezier(.22,1,.36,1)); }
.skypanel:not(.big):active{ transform:scale(.985); }
.sky-field{ position:relative; width:100%; line-height:0; margin:-2px 0 8px; }
.livingsky{ display:block; }
.livingsky .skystar{ transition:opacity .9s ease; }
.sky-meta{ display:flex; flex-direction:column; gap:5px; }
/* Warm tier line — sentence case, serif, brass. NOT the uppercase .micro look. */
.sky-tier{ color:var(--goldBright,#E6CC95); font-size:16px; line-height:1.35; letter-spacing:.005em; }
.sky-blurb{ color:var(--parch,#EDE6D6); font-size:16px; line-height:1.45; margin:1px 0 2px; }
.sky-streak{ color:var(--sec,#A9A293); font-size:13px; letter-spacing:.01em; }
.sky-depthbar{ height:3px; border-radius:3px; background:rgba(200,164,106,.16); overflow:hidden; margin-top:4px; }
.sky-depthbar > i{ display:block; height:100%; border-radius:3px;
  background:linear-gradient(90deg, var(--gold-dim,#8C6E3E), var(--goldBright,#E6CC95));
  transition:width 1.1s var(--spring-soft, cubic-bezier(.22,1,.36,1)); }
.sky-next{ color:var(--sec,#A9A293); opacity:.85; margin-top:2px; font-size:12.5px; letter-spacing:.01em; }
.skypanel.big{ margin:4px 0 2px; padding:18px 18px 20px; }
.skypanel.big .sky-field{ margin:-4px 0 12px; }
/* today-only scarcity line under the reading header */
.skymoved{ color:var(--sec,#A9A293); font-size:12.5px; font-style:italic; letter-spacing:.01em;
  display:flex; align-items:center; gap:7px; margin:-2px 0 2px; }
.skymoved::before{ content:""; width:4px; height:4px; border-radius:50%; background:var(--gold,#C8A46A); opacity:.7; flex:0 0 auto; }
@media (prefers-reduced-motion: reduce){
  .livingsky .skystar{ animation:none !important; }
  .sky-depthbar > i{ transition:none; }
}

/* =====================================================================
   PILL VARIANTS ON MIDNIGHT  (P0 fix — Windows category pills)
   ---------------------------------------------------------------------
   The base .pill.o-/.f- rules (index.html ~234-242) were authored for the
   cream Atelier theme: ink/blush text renders near-black, invisible on the
   midnight ground. Here every category accent (ink/blush/oxide/gold) gets a
   LIGHT/cream text + a LOW-ALPHA TINTED fill so it reads on dark — covering
   every Windows category: money/self/voice/career → ink, home/love/
   partnership → blush, health/transformation → oxide, purpose/spirit/
   life_phase → gold. Alpha fills work on BOTH midnight tones (night + vellum).
   ===================================================================== */
body[data-skin="midnight"] .pill{ backdrop-filter:none; }

/* INK (money · self · voice · career · gains) — neutral brass-parchment, NOT black */
body[data-skin="midnight"] .pill.o-ink{
  border:1px solid rgba(237,230,214,.30); color:var(--parch,#EDE6D6);
  background:rgba(237,230,214,.07); }
body[data-skin="midnight"] .pill.f-ink{
  border:1px solid rgba(237,230,214,.22); color:#F3EEE1;
  background:rgba(237,230,214,.16); }

/* BLUSH (home & family · love & creativity · partnership) — warm rose on dark */
body[data-skin="midnight"] .pill.o-blush{
  border:1px solid rgba(214,150,132,.42); color:#E8B9A6;
  background:rgba(201,113,78,.10); }
body[data-skin="midnight"] .pill.f-blush{
  border:1px solid rgba(214,150,132,.34); color:#F4D9CD;
  background:rgba(201,113,78,.22); }

/* OXIDE (health & work · transformation) — ember */
body[data-skin="midnight"] .pill.o-oxide{
  border:1px solid rgba(201,113,78,.50); color:#E79B7B;
  background:rgba(201,113,78,.12); }
body[data-skin="midnight"] .pill.f-oxide{
  border:1px solid rgba(201,113,78,.40); color:#FBE6DB;
  background:rgba(201,113,78,.26); }

/* GOLD (purpose & fortune · spirit & release · life phase) — brass */
body[data-skin="midnight"] .pill.o-gold{
  border:1px solid rgba(200,164,106,.55); color:var(--goldBright,#E6CC95);
  background:rgba(200,164,106,.10); }
body[data-skin="midnight"] .pill.f-gold{
  border:1px solid rgba(200,164,106,.45); color:#20170A;
  background:rgba(230,204,149,.82); }

/* ============ SKELETONS on dark (U3 fix) ============
   The base .sk gradient is cream/foil (built for Atelier's parchment ground). On
   near-black midnight that reads as a bright metallic bar "pasted from a light
   mockup" — the least-premium moment in the app. Re-tone the shimmer to a low-alpha
   white shade of the Surface family so loading reads as the sky thinking, not a bug.
   (product-design §4: on dark, skeletons are rgba(255,255,255,.06) shades.) */
body[data-skin="midnight"] .sk{
  --sk-bg:linear-gradient(90deg,
    rgba(255,255,255,.035) 0%,
    rgba(255,255,255,.055) 18%,
    rgba(200,164,106,.10) 32%,
    rgba(255,255,255,.055) 46%,
    rgba(255,255,255,.035) 64%); }
body[data-skin="midnight"] .sk-card{ background:var(--card,#11141D); box-shadow:none; border:1px solid var(--hair,#262A36); }
/* loading ring: the conic brass arc already reads on dark, just soften its base */
body[data-skin="midnight"] .sk-ring{
  background:conic-gradient(from 0deg,rgba(200,164,106,.22),rgba(255,255,255,.04) 55%,rgba(200,164,106,.22)); }
/* NB: .shimmer (streaming-text sweep) is intentionally left alone — on midnight its
   base already resolves to parchment→brass→parchment (readable light text on dark),
   which is correct. The bug was only the solid .sk-* placeholder bars above. */


/* ============================================================================
   TODAY — ELEVATED · the living sky (midnight)
   Ports the approved proof design-proofs/today-elevated.html onto the real app's
   #view/.screen structure. The sky is full-bleed behind the hero, hour-aware
   (data-tod night|dawn|day|dusk), breathing + drifting; the hero verdict + the
   emotion-first ask sit over it; the body below is calm editorial on the ground.
   Glance is demoted from a ring grid to a quiet horizontal stat row.
   All motion is reduced-motion gated at the foot of this block.
   ============================================================================ */

/* the screen is the scroll container; the sky is painted at its very top and the
   content flows over it. z-order: sky(0) → fade(1) → hero/ask/body(2). */
body[data-skin="midnight"] [data-tab="today"] .screen,
body[data-skin="midnight"] .screen:has(.t-sky){ background: var(--cream); }

/* ---- THE LIVING SKY -------------------------------------------------------- */
body[data-skin="midnight"] .t-sky{
  position:absolute; left:0; right:0; top:0; height:540px; overflow:hidden; z-index:0;
  pointer-events:none;
}
body[data-skin="midnight"] .t-sky .t-moon{ pointer-events:auto; cursor:pointer; }
body[data-skin="midnight"] .t-sky-grad{ position:absolute; inset:0; transition:opacity 2s ease; }

/* NIGHT — deep indigo-ink warming to a low amber horizon-of-dawn hint */
body[data-skin="midnight"] .t-sky[data-tod="night"] .t-sky-grad{
  background:
    radial-gradient(150% 90% at 50% -22%, #1A1B2A 0%, #101222 34%, #0A0B14 60%, #07080C 100%),
    radial-gradient(120% 60% at 78% 4%, rgba(201,165,94,.10), transparent 60%);
}
/* DAWN — warm rose-amber lifting off the horizon into cooling blue above */
body[data-skin="midnight"] .t-sky[data-tod="dawn"] .t-sky-grad{
  background:
    radial-gradient(150% 100% at 50% 118%, rgba(201,165,94,.30) 0%, rgba(201,125,84,.18) 26%, transparent 60%),
    radial-gradient(150% 90% at 50% -18%, #2A2740 0%, #1A1B2E 40%, #0C0D18 72%, #07080C 100%);
}
/* DAY — open, luminous blue warming at the base; the sky is "wide open" */
body[data-skin="midnight"] .t-sky[data-tod="day"] .t-sky-grad{
  background:
    radial-gradient(150% 100% at 50% 120%, rgba(201,165,94,.14), transparent 56%),
    radial-gradient(150% 92% at 50% -16%, #27344F 0%, #1C2740 38%, #101726 70%, #0A0F18 100%);
}
/* DUSK — gold turning to ember on the horizon under a deepening sky */
body[data-skin="midnight"] .t-sky[data-tod="dusk"] .t-sky-grad{
  background:
    radial-gradient(150% 100% at 50% 120%, rgba(201,165,94,.34) 0%, rgba(156,91,68,.20) 32%, transparent 62%),
    radial-gradient(150% 90% at 50% -16%, #241F34 0%, #181527 42%, #0C0D16 74%, #07080C 100%);
}

/* a low pre-dawn warmth sitting on the horizon line — "it will warm by dawn" */
body[data-skin="midnight"] .t-horizon{
  position:absolute; left:-10%; right:-10%; bottom:-6%; height:46%;
  background:radial-gradient(90% 120% at 50% 120%, rgba(201,165,94,.22) 0%, rgba(156,91,68,.10) 34%, transparent 66%);
  filter:blur(2px); opacity:.9;
}
body[data-skin="midnight"] .t-sky[data-tod="day"] .t-horizon{ opacity:.5; }

/* slow nebular drift = the heavens breathing */
body[data-skin="midnight"] .t-neb{ position:absolute; border-radius:50%; filter:blur(46px); }
body[data-skin="midnight"] .t-neb.a{
  right:-16%; top:-12%; width:58%; height:40%;
  background:radial-gradient(closest-side,rgba(201,165,94,.16),transparent);
  animation:tDrift 30s ease-in-out infinite alternate;
}
body[data-skin="midnight"] .t-neb.b{
  left:-22%; top:18%; width:66%; height:46%;
  background:radial-gradient(closest-side,rgba(78,95,140,.20),transparent);
  animation:tDrift2 38s ease-in-out infinite alternate;
}
@keyframes tDrift{ to{ transform:translate(-20px,16px) scale(1.09); } }
@keyframes tDrift2{ to{ transform:translate(18px,-14px) scale(1.1); } }

/* starfield */
body[data-skin="midnight"] .t-star{
  position:absolute; border-radius:50%; background:#EDE6D6; animation:tTw var(--d,6s) ease-in-out infinite;
}
@keyframes tTw{ 0%,100%{ opacity:.14; } 50%{ opacity:var(--mx,.85); } }
/* day: the stars recede */
body[data-skin="midnight"] .t-sky[data-tod="day"] .t-star{ opacity:.06 !important; animation:none; }

/* the moon — real-phase-lit orb, softly breathing */
body[data-skin="midnight"] .t-moon{
  position:absolute; right:36px; top:88px; width:88px; height:88px; border-radius:50%;
  background:radial-gradient(circle at 38% 34%, #FBF3DE 0%, #ECDDBD 46%, #CBB488 72%, #A9926A 100%);
  box-shadow:0 0 60px -6px rgba(201,165,94,.45), inset -16px -12px 26px rgba(10,11,20,.55);
  animation:tLunar 9s ease-in-out infinite; -webkit-tap-highlight-color:transparent;
}
@keyframes tLunar{
  0%,100%{ transform:translateY(0);  box-shadow:0 0 60px -6px rgba(201,165,94,.42), inset -16px -12px 26px rgba(10,11,20,.55); }
  50%    { transform:translateY(-4px); box-shadow:0 0 76px -4px rgba(201,165,94,.55), inset -16px -12px 26px rgba(10,11,20,.5); }
}
body[data-skin="midnight"] .t-moon .t-terminator{
  position:absolute; inset:0; border-radius:50%;
  background:radial-gradient(circle at 128% 50%, transparent 40%, rgba(7,8,12,.62) 58%);
}

/* two luminaries + a near star, breathing out of phase */
body[data-skin="midnight"] .t-lum{ position:absolute; border-radius:50%; }
body[data-skin="midnight"] .t-lum i{ position:absolute; inset:0; border-radius:50%; display:block; animation:tBreathe 7s ease-in-out infinite; }
body[data-skin="midnight"] .t-lum.l1{ left:52px; top:184px; width:7px; height:7px; }
body[data-skin="midnight"] .t-lum.l1 i{ background:#F6E6BE; box-shadow:0 0 14px 3px rgba(231,207,155,.8); }
body[data-skin="midnight"] .t-lum.l2{ left:140px; top:116px; width:5px; height:5px; }
body[data-skin="midnight"] .t-lum.l2 i{ background:#CFE0F6; box-shadow:0 0 12px 3px rgba(165,190,230,.7); animation-delay:1.4s; }
body[data-skin="midnight"] .t-lum.l3{ right:132px; top:230px; width:4px; height:4px; }
body[data-skin="midnight"] .t-lum.l3 i{ background:#F2D9B3; box-shadow:0 0 10px 2px rgba(201,165,94,.7); animation-delay:.7s; }
@keyframes tBreathe{ 0%,100%{ transform:scale(.9); opacity:.75; } 50%{ transform:scale(1.18); opacity:1; } }

/* the sky dissolves into the ground below — no hard seam */
body[data-skin="midnight"] .t-sky-fade{
  position:absolute; left:0; right:0; bottom:0; height:220px; z-index:1; pointer-events:none;
  background:linear-gradient(180deg, transparent 0%, rgba(11,13,20,.5) 52%, var(--cream) 100%);
}

/* ---- HERO over the sky ----------------------------------------------------- */
body[data-skin="midnight"] .t-hero{ position:relative; z-index:2; padding:62px 28px 0; }
body[data-skin="midnight"] .t-eyebrow{
  font-family:var(--mono); font-size:10px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--goldBright); opacity:.86;
}
body[data-skin="midnight"] .t-greet{
  font-family:var(--serif); font-weight:300; font-size:30px; line-height:1.1;
  letter-spacing:-.01em; color:var(--cream, #F2ECE1); color:var(--ink); margin-top:10px;
}
body[data-skin="midnight"] .t-greet .t-thin{ color:var(--parch-dim); opacity:.72; }
/* the verdict band — moon phase + where-you-are, laid over the sky */
body[data-skin="midnight"] .t-verdict{ margin-top:112px; }
body[data-skin="midnight"] .t-verdict .micro{ display:block; margin-bottom:10px; }
body[data-skin="midnight"] .t-phase-line{
  font-family:var(--serif); font-weight:300; font-style:italic; font-size:24px; line-height:1.34;
  letter-spacing:-.01em; color:#F4ECD8; max-width:20ch; margin:0;
}
body[data-skin="midnight"] .t-phase-line b{ color:var(--goldBright); font-style:italic; font-weight:300; }
body[data-skin="midnight"] .t-phase-sub{
  font-family:var(--mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--text-3); margin-top:12px;
}
body[data-skin="midnight"] .t-phase-sub:empty{ display:none; }

/* ---- EMOTION-FIRST ENTRY --------------------------------------------------- */
body[data-skin="midnight"] .t-ask{
  position:relative; z-index:2; margin:32px 22px 0; padding:18px;
  border-radius:20px; border:1px solid var(--hair);
  background:linear-gradient(180deg, rgba(237,230,214,.05), rgba(237,230,214,.02));
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  display:flex; align-items:center; gap:14px; cursor:text;
  transition:transform .4s var(--spring-soft, cubic-bezier(.22,1,.36,1)), border-color .3s ease;
}
body[data-skin="midnight"] .t-ask:active{ transform:scale(.99); border-color:rgba(200,164,106,.4); }
body[data-skin="midnight"] .t-ask-q{ flex:1; min-width:0; }
body[data-skin="midnight"] .t-ask-lab{
  font-family:var(--mono); font-size:9px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--goldBright); opacity:.82;
}
body[data-skin="midnight"] .t-ask-txt{
  font-family:var(--serif); font-weight:300; font-style:italic; font-size:16.5px;
  color:var(--parch-dim); margin-top:5px;
}
body[data-skin="midnight"] .t-ask-send{
  flex:none; width:38px; height:38px; border-radius:50%; display:grid; place-items:center;
  background:radial-gradient(circle at 42% 38%, #F2D9A6, #C9A55E 70%);
  box-shadow:0 6px 18px -8px rgba(201,165,94,.8);
}
body[data-skin="midnight"] .t-ask-send svg{ width:16px; height:16px; display:block; }

/* ---- CALM EDITORIAL BODY --------------------------------------------------- */
body[data-skin="midnight"] .t-body{ position:relative; z-index:2; padding:0 28px 40px; }
/* section micro-labels, proof spacing */
body[data-skin="midnight"] .t-body .sec-lab{
  font-family:var(--mono); font-size:10px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--text-3); margin:36px 0 16px;
}
/* astrologer note — a quiet lead, no card chrome, hairline above */
body[data-skin="midnight"] .t-body .presencecard{
  background:transparent; border:0; border-radius:0; box-shadow:none;
  border-top:1px solid var(--hair); margin:34px 0 0; padding:0;
}
body[data-skin="midnight"] .t-body .presencecard::before{ display:none; }
body[data-skin="midnight"] .t-body .presencecard .sec-lab{ color:var(--gold); margin:36px 0 14px; }
body[data-skin="midnight"] .t-body .presencebody{
  font-family:var(--serif); font-weight:300; font-size:21px; line-height:1.5;
  letter-spacing:-.005em; color:var(--ink);
}

/* scopes keep their hairline-underline treatment from the base midnight block,
   just re-spaced for the editorial column */
body[data-skin="midnight"] .t-body .scopes{ margin:36px 0 0; }
body[data-skin="midnight"] .t-body .todayhead{
  display:flex; align-items:center; justify-content:space-between; margin:20px 0 6px;
}
body[data-skin="midnight"] .t-body .todayhead .sec-lab{ margin:0; }
body[data-skin="midnight"] .t-body .regen{
  background:transparent; border:0; color:var(--gold); font-size:15px; line-height:1;
  width:30px; height:30px; border-radius:50%; cursor:pointer;
}
body[data-skin="midnight"] .t-body .regen:active{ opacity:.6; }

/* today reading cards sit flush in the column (no boxed card chrome on the lead) */
body[data-skin="midnight"] .t-body #todaycards{ margin-top:4px; }

/* ---- GLANCE demoted to a quiet horizontal stat row ------------------------- */
body[data-skin="midnight"] .t-body .glance-lab{ color:var(--text-3); margin:40px 0 14px; }
body[data-skin="midnight"] .t-body .glance{
  background:transparent; border:0; border-radius:0; box-shadow:none; padding:0; margin:0;
  display:flex; gap:0;
}
/* hide the framed-card chrome + the ring; show word + hairline bar per cell */
body[data-skin="midnight"] .t-body .glance .glabel{ display:none; }
body[data-skin="midnight"] .t-body .glance .meters{ display:flex; gap:0; width:100%; }
body[data-skin="midnight"] .t-body .glance .meter{
  flex:1; display:block; align-items:flex-start; text-align:left;
  padding:4px 14px; position:relative; gap:0;
}
body[data-skin="midnight"] .t-body .glance .meter:first-child{ padding-left:0; }
body[data-skin="midnight"] .t-body .glance .meter + .meter::before{
  content:""; position:absolute; left:0; top:2px; bottom:16px; width:1px; background:var(--hair);
}
body[data-skin="midnight"] .t-body .glance .meter svg{ display:none; } /* demote the ring */
body[data-skin="midnight"] .t-body .glance .meter .mval{
  font-family:var(--serif); font-weight:300; font-size:22px; line-height:1.1;
  letter-spacing:-.01em; color:var(--ink); margin:0;
}
body[data-skin="midnight"] .t-body .glance .meter.low .mval{ color:var(--oxide); }
body[data-skin="midnight"] .t-body .glance .meter.hi .mval{ color:var(--goldBright); }
body[data-skin="midnight"] .t-body .glance .meter .mlab{
  font-family:var(--mono); font-size:9px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--text-3); margin-top:7px;
}
body[data-skin="midnight"] .t-body .glance .meter .gbar{
  height:2px; border-radius:2px; background:rgba(237,230,214,.1); margin-top:11px; overflow:hidden;
}
body[data-skin="midnight"] .t-body .glance .meter .gbar i{
  display:block; height:100%; border-radius:2px;
  background:linear-gradient(90deg,var(--gold-dim),var(--goldBright));
}
body[data-skin="midnight"] .t-body .glance .meter.low .gbar i{
  background:linear-gradient(90deg,#7A4535,var(--oxide));
}
/* the free locked glance keeps its own designed state (rings shown) even here */
body[data-skin="midnight"] .t-body .glance .glock .meter svg{ display:block; }
body[data-skin="midnight"] .t-body .glance .glock .meter{ display:flex; flex-direction:column; align-items:center; }
body[data-skin="midnight"] .t-body .glance:has(.glock){ display:block; }

/* ---- closing ornament ------------------------------------------------------ */
body[data-skin="midnight"] .t-closing{ text-align:center; margin-top:44px; }
body[data-skin="midnight"] .t-orn{ color:var(--gold); font-size:15px; letter-spacing:.5em; opacity:.7; }
body[data-skin="midnight"] .t-cl{
  font-family:var(--serif); font-weight:300; font-style:italic; font-size:15px;
  color:var(--text-3); margin-top:14px; line-height:1.5;
}

/* ---- ARRIVAL staged fade-in (reuses the midnight .rv arrive easing) --------- */
/* .rv is already mnArrive on midnight; nothing extra needed — the staggered
   animation-delay inline styles choreograph greeting→verdict→prompt→reading. */

/* ---- REDUCED MOTION -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  body[data-skin="midnight"] .t-neb,
  body[data-skin="midnight"] .t-star,
  body[data-skin="midnight"] .t-moon,
  body[data-skin="midnight"] .t-lum i{ animation:none !important; }
  body[data-skin="midnight"] .t-sky-grad{ transition:none; }
}

/* ============================================================================
   TODAY — ELEVATED on VELLUM (light tone of midnight)
   The living sky becomes a soft lamplit morning rather than a night sky, so the
   full-bleed hero still reads over a light ground without inverting the text.
   ============================================================================ */
body[data-skin="midnight"][data-tone="vellum"] .screen:has(.t-sky){ background:var(--cream); }
body[data-skin="midnight"][data-tone="vellum"] .t-sky[data-tod] .t-sky-grad{
  background:
    radial-gradient(150% 100% at 50% 120%, rgba(168,134,76,.22), transparent 58%),
    radial-gradient(150% 92% at 50% -16%, #E9E0CE 0%, #EFE7D8 44%, var(--cream) 100%);
}
body[data-skin="midnight"][data-tone="vellum"] .t-star{ background:#B9A678; }
body[data-skin="midnight"][data-tone="vellum"] .t-sky-fade{
  background:linear-gradient(180deg, transparent 0%, rgba(244,239,230,.5) 52%, var(--cream) 100%);
}
body[data-skin="midnight"][data-tone="vellum"] .t-greet,
body[data-skin="midnight"][data-tone="vellum"] .t-phase-line{ color:var(--ink); }
body[data-skin="midnight"][data-tone="vellum"] .t-phase-line b{ color:var(--goldBright); }
body[data-skin="midnight"][data-tone="vellum"] .t-ask-txt{ color:var(--sec); }

/* ============================================================================
   TODAY — THE LIVING SKY in ATELIER (default skin) · "DAYLIGHT"
   ----------------------------------------------------------------------------
   A LIGHT dawn/day treatment of the same immersive Today screen. Same geometry,
   same elements (.t-sky/.t-sky-grad/.t-neb/.t-star/.t-moon/.t-horizon/.t-hero/
   .t-ask/.t-body), same motion (reuses the midnight keyframes tDrift/tTw/tLunar/
   tBreathe/tLunar) — only the palette changes: a warm cream→soft-gold/blush
   dawn sky instead of the night radial, a soft SUN instead of the bright night
   moon, faint daytime sparkle instead of stars, a light-tuned horizon.
   Scoped to body:not([data-skin]) + body[data-skin="atelier"] ONLY — midnight
   and astra are untouched. Avoids --mono/--text-3 (midnight-only tokens); uses
   --sans/--sec which exist in the Atelier base (tokens.css).
   ============================================================================ */
body:not([data-skin]) .screen:has(.t-sky),
body[data-skin="atelier"] .screen:has(.t-sky){ background:var(--cream); }

/* ---- THE DAYLIGHT SKY ------------------------------------------------------ */
body:not([data-skin]) .t-sky,
body[data-skin="atelier"] .t-sky{
  display:block; position:absolute; left:0; right:0; top:0; height:460px;
  overflow:hidden; z-index:0; pointer-events:none;
}
body:not([data-skin]) .t-sky .t-moon,
body[data-skin="atelier"] .t-sky .t-moon{ pointer-events:auto; cursor:pointer; }
body:not([data-skin]) .t-sky-grad,
body[data-skin="atelier"] .t-sky-grad{ position:absolute; inset:0; transition:opacity 2s ease; }

/* NIGHT — pre-dawn: cool dove-grey cream brightening to a warm gold base */
body:not([data-skin]) .t-sky[data-tod="night"] .t-sky-grad,
body[data-skin="atelier"] .t-sky[data-tod="night"] .t-sky-grad{
  background:
    radial-gradient(150% 100% at 50% 122%, rgba(201,165,94,.22) 0%, rgba(184,154,120,.12) 30%, transparent 62%),
    linear-gradient(180deg, #E6DECB 0%, #EDE6D6 40%, var(--cream) 100%);
}
/* DAWN — warm blush-gold lifting off the horizon into soft cream above */
body:not([data-skin]) .t-sky[data-tod="dawn"] .t-sky-grad,
body[data-skin="atelier"] .t-sky[data-tod="dawn"] .t-sky-grad{
  background:
    radial-gradient(150% 110% at 50% 120%, rgba(224,178,120,.42) 0%, rgba(214,154,124,.22) 28%, transparent 64%),
    linear-gradient(180deg, #F0E8D8 0%, #F4EEE2 46%, var(--cream) 100%);
}
/* DAY — open, luminous: bright warm cream, the softest gold at the base */
body:not([data-skin]) .t-sky[data-tod="day"] .t-sky-grad,
body[data-skin="atelier"] .t-sky[data-tod="day"] .t-sky-grad{
  background:
    radial-gradient(150% 100% at 50% 124%, rgba(201,165,94,.16), transparent 58%),
    linear-gradient(180deg, #F6F1E7 0%, #F7F2E9 48%, var(--cream) 100%);
}
/* DUSK — amber-rose glow settling on the horizon under warming cream */
body:not([data-skin]) .t-sky[data-tod="dusk"] .t-sky-grad,
body[data-skin="atelier"] .t-sky[data-tod="dusk"] .t-sky-grad{
  background:
    radial-gradient(150% 110% at 50% 120%, rgba(214,150,96,.40) 0%, rgba(192,110,78,.20) 32%, transparent 64%),
    linear-gradient(180deg, #EEE4D2 0%, #F1E9DA 46%, var(--cream) 100%);
}

/* a low warmth sitting on the horizon line — the sun's wash on the land */
body:not([data-skin]) .t-horizon,
body[data-skin="atelier"] .t-horizon{
  position:absolute; left:-10%; right:-10%; bottom:-6%; height:44%;
  background:radial-gradient(90% 120% at 50% 120%, rgba(201,165,94,.26) 0%, rgba(214,150,96,.12) 36%, transparent 68%);
  filter:blur(2px); opacity:.9;
}
body:not([data-skin]) .t-sky[data-tod="day"] .t-horizon,
body[data-skin="atelier"] .t-sky[data-tod="day"] .t-horizon{ opacity:.6; }

/* slow drifting warmth — soft gold haze, like morning light moving */
body:not([data-skin]) .t-neb,
body[data-skin="atelier"] .t-neb{ position:absolute; border-radius:50%; filter:blur(50px); }
body:not([data-skin]) .t-neb.a,
body[data-skin="atelier"] .t-neb.a{
  right:-16%; top:-10%; width:58%; height:40%;
  background:radial-gradient(closest-side,rgba(201,165,94,.20),transparent);
  animation:tDrift 30s ease-in-out infinite alternate;
}
body:not([data-skin]) .t-neb.b,
body[data-skin="atelier"] .t-neb.b{
  left:-22%; top:16%; width:66%; height:46%;
  background:radial-gradient(closest-side,rgba(214,150,96,.16),transparent);
  animation:tDrift2 38s ease-in-out infinite alternate;
}

/* daytime sparkle — faint warm motes, not night stars */
body:not([data-skin]) .t-star,
body[data-skin="atelier"] .t-star{
  position:absolute; border-radius:50%; background:#C9A66B;
  animation:tTw var(--d,6s) ease-in-out infinite;
}
/* the sparkle is always faint in daylight; near-gone at high day */
body:not([data-skin]) .t-star,
body[data-skin="atelier"] .t-star{ opacity:.10; }
body:not([data-skin]) .t-sky[data-tod="day"] .t-star,
body[data-skin="atelier"] .t-sky[data-tod="day"] .t-star{ opacity:.05 !important; animation:none; }

/* the SUN — a soft warm light source where the night moon sat, gently breathing */
body:not([data-skin]) .t-moon,
body[data-skin="atelier"] .t-moon{
  position:absolute; right:40px; top:84px; width:76px; height:76px; border-radius:50%;
  background:radial-gradient(circle at 42% 38%, #FFF6E2 0%, #FBE7B8 44%, #E9C77E 74%, #D4A85A 100%);
  box-shadow:0 0 72px 10px rgba(224,184,110,.42), 0 0 28px 2px rgba(201,165,94,.30);
  animation:tLunar 9s ease-in-out infinite; -webkit-tap-highlight-color:transparent;
}
/* no terminator in daylight — the sun is a full disc, not a phase-lit moon */
body:not([data-skin]) .t-moon .t-terminator,
body[data-skin="atelier"] .t-moon .t-terminator{ display:none; }

/* two warm luminaries + a near point — soft, out of phase (low opacity by day) */
body:not([data-skin]) .t-lum,
body[data-skin="atelier"] .t-lum{ position:absolute; border-radius:50%; }
body:not([data-skin]) .t-lum i,
body[data-skin="atelier"] .t-lum i{ position:absolute; inset:0; border-radius:50%; display:block; animation:tBreathe 7s ease-in-out infinite; }
body:not([data-skin]) .t-lum.l1,
body[data-skin="atelier"] .t-lum.l1{ left:52px; top:176px; width:6px; height:6px; }
body:not([data-skin]) .t-lum.l1 i,
body[data-skin="atelier"] .t-lum.l1 i{ background:#E6CC95; box-shadow:0 0 12px 2px rgba(201,165,94,.45); opacity:.5; }
body:not([data-skin]) .t-lum.l2,
body[data-skin="atelier"] .t-lum.l2{ left:138px; top:110px; width:4px; height:4px; }
body:not([data-skin]) .t-lum.l2 i,
body[data-skin="atelier"] .t-lum.l2 i{ background:#D8BE8A; box-shadow:0 0 10px 2px rgba(201,165,94,.40); opacity:.4; animation-delay:1.4s; }
body:not([data-skin]) .t-lum.l3,
body[data-skin="atelier"] .t-lum.l3{ right:128px; top:214px; width:4px; height:4px; }
body:not([data-skin]) .t-lum.l3 i,
body[data-skin="atelier"] .t-lum.l3 i{ background:#E0B878; box-shadow:0 0 9px 2px rgba(201,165,94,.38); opacity:.42; animation-delay:.7s; }

/* the sky dissolves into the cream ground below — no hard seam */
body:not([data-skin]) .t-sky-fade,
body[data-skin="atelier"] .t-sky-fade{
  position:absolute; left:0; right:0; bottom:0; height:200px; z-index:1; pointer-events:none;
  background:linear-gradient(180deg, transparent 0%, rgba(242,236,225,.55) 54%, var(--cream) 100%);
}

/* ---- HERO over the daylight sky (ink text reads on the light ground) ------- */
body:not([data-skin]) .t-hero,
body[data-skin="atelier"] .t-hero{ position:relative; z-index:2; padding:54px 22px 0; }
body:not([data-skin]) .t-eyebrow,
body[data-skin="atelier"] .t-eyebrow{
  font:600 9.5px var(--sans); letter-spacing:.2em; text-transform:uppercase; color:var(--goldText);
}
body:not([data-skin]) .t-greet,
body[data-skin="atelier"] .t-greet{
  font-family:var(--serif); font-weight:300; font-size:30px; line-height:1.1;
  letter-spacing:-.01em; color:var(--ink); margin-top:10px;
}
body:not([data-skin]) .t-greet .t-thin,
body[data-skin="atelier"] .t-greet .t-thin{ color:var(--sec); opacity:.82; }
body:not([data-skin]) .t-verdict,
body[data-skin="atelier"] .t-verdict{ margin-top:92px; }
body:not([data-skin]) .t-verdict .micro,
body[data-skin="atelier"] .t-verdict .micro{ display:block; margin-bottom:10px; }
body:not([data-skin]) .t-phase-line,
body[data-skin="atelier"] .t-phase-line{
  font-family:var(--serif); font-weight:300; font-style:italic; font-size:23px; line-height:1.34;
  letter-spacing:-.01em; color:var(--ink); max-width:20ch; margin:0;
}
body:not([data-skin]) .t-phase-line b,
body[data-skin="atelier"] .t-phase-line b{ color:var(--goldText); font-style:italic; font-weight:400; }
body:not([data-skin]) .t-phase-sub,
body[data-skin="atelier"] .t-phase-sub{
  font:500 9.5px var(--sans); letter-spacing:.1em; text-transform:uppercase; color:var(--sec); margin-top:12px;
}
body:not([data-skin]) .t-phase-sub:empty,
body[data-skin="atelier"] .t-phase-sub:empty{ display:none; }

/* ---- EMOTION-FIRST ENTRY (light card over the sky) ------------------------- */
body:not([data-skin]) .t-ask,
body[data-skin="atelier"] .t-ask{
  position:relative; z-index:2; margin:30px 22px 0; padding:17px 18px; border-radius:18px;
  border:1px solid var(--hair);
  background:linear-gradient(180deg, rgba(255,255,255,.62), rgba(250,246,238,.42));
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  box-shadow:var(--e1);
  display:flex; align-items:center; gap:14px; cursor:pointer;
  transition:transform .4s var(--spring-soft, cubic-bezier(.22,1,.36,1)), border-color .3s ease;
}
body:not([data-skin]) .t-ask:active,
body[data-skin="atelier"] .t-ask:active{ transform:scale(.99); border-color:rgba(176,141,74,.4); }
body:not([data-skin]) .t-ask-q,
body[data-skin="atelier"] .t-ask-q{ flex:1; min-width:0; }
body:not([data-skin]) .t-ask-lab,
body[data-skin="atelier"] .t-ask-lab{ font:600 9px var(--sans); letter-spacing:.18em; text-transform:uppercase; color:var(--goldText); }
body:not([data-skin]) .t-ask-txt,
body[data-skin="atelier"] .t-ask-txt{ font-family:var(--serif); font-style:italic; font-size:16px; color:var(--sec); margin-top:5px; }
body:not([data-skin]) .t-ask-send,
body[data-skin="atelier"] .t-ask-send{
  flex:none; width:36px; height:36px; border-radius:50%; display:grid; place-items:center;
  background:radial-gradient(circle at 42% 38%, #E9C77E, #C9A55E 72%);
  box-shadow:0 6px 16px -8px rgba(201,165,94,.7);
}
body:not([data-skin]) .t-ask-send svg,
body[data-skin="atelier"] .t-ask-send svg{ width:15px; height:15px; display:block; }

/* ---- EDITORIAL BODY (flush in the 22px column, flows over the fade) -------- */
body:not([data-skin]) .t-body,
body[data-skin="atelier"] .t-body{ position:relative; z-index:2; padding:0 22px 40px; }
body:not([data-skin]) .t-closing,
body[data-skin="atelier"] .t-closing{ text-align:center; margin-top:44px; }
body:not([data-skin]) .t-orn,
body[data-skin="atelier"] .t-orn{ color:var(--gold); letter-spacing:.5em; opacity:.7; }
body:not([data-skin]) .t-cl,
body[data-skin="atelier"] .t-cl{ font-family:var(--serif); font-style:italic; font-size:14px; color:var(--sec); margin-top:12px; }

/* the daylight sun/sparkle hold still under reduced motion */
@media (prefers-reduced-motion: reduce){
  body:not([data-skin]) .t-neb,  body[data-skin="atelier"] .t-neb,
  body:not([data-skin]) .t-star, body[data-skin="atelier"] .t-star,
  body:not([data-skin]) .t-moon, body[data-skin="atelier"] .t-moon,
  body:not([data-skin]) .t-lum i,body[data-skin="atelier"] .t-lum i{ animation:none !important; }
  body:not([data-skin]) .t-sky-grad, body[data-skin="atelier"] .t-sky-grad{ transition:none; }
}

/* ============================================================================
   ATELIER (cream) CONTRAST FIXES — Today "at a glance" rings, the YOUR SKY
   constellation, and low-contrast text.
   ---------------------------------------------------------------------------
   The beige port inherited the shared .skypanel / .mring / .sky-* rules that
   were authored for the dark midnight ground, so their light tokens (--parch,
   faint 7% tracks, pale stars at 12% opacity) all but vanish on cream. These
   rules re-contrast each real element for the parchment ground. Scoped to
   body:not([data-skin]) + body[data-skin="atelier"] ONLY — midnight & astra
   are untouched. Tokens are Atelier's own (tokens.css).
   ============================================================================ */

/* ---- (2) the four glance rings read as deliberate gauges, not spinners ----
   Give the track real presence (soft ink on cream) and make every value arc a
   legible gold/wine on cream. The pale --goldBright on the "hi" ring was the
   only low-contrast arc; map it to the darker legible gold here. */
body:not([data-skin]) .meter .mring-track,
body[data-skin="atelier"] .meter .mring-track{ stroke:rgba(23,23,27,.14); stroke-width:4; }
body:not([data-skin]) .meter .mring-val,
body[data-skin="atelier"] .meter .mring-val{ stroke-width:4; filter:none; }
/* color the arc by tone — override mring()'s inline stroke so cream stays legible */
body:not([data-skin]) .meter .mring-val,
body[data-skin="atelier"] .meter .mring-val{ stroke:var(--gold) !important; }        /* mid */
body:not([data-skin]) .meter.low .mring-val,
body[data-skin="atelier"] .meter.low .mring-val{ stroke:var(--oxide) !important; }    /* low */
body:not([data-skin]) .meter.hi  .mring-val,
body[data-skin="atelier"] .meter.hi  .mring-val{ stroke:var(--goldText) !important; } /* hi — legible, not pale */
/* the "hi" value word matches the arc's legible gold (was pale --goldText already,
   keep it; the "mid"/low words stay ink/oxide per base). */

/* ---- (3) YOUR SKY constellation — a real constellation on cream, not loading dots.
   The living-sky SVG paints stars/lines with var(--gold*) + inline opacities tuned
   for deep ink. On cream the faint ones (0.12–0.14) disappear. Floor the opacity of
   every star and connecting line, and darken the unlit stars to ink so they read as
   quiet-but-present points, not noise. */
body:not([data-skin]) .skypanel .livingsky circle,
body[data-skin="atelier"] .skypanel .livingsky circle{ opacity:1 !important; }
/* lit stars + glow halos: confident gold */
body:not([data-skin]) .skypanel .livingsky circle[fill*="goldBright"],
body:not([data-skin]) .skypanel .livingsky circle[fill*="--gold"],
body[data-skin="atelier"] .skypanel .livingsky circle[fill*="goldBright"],
body[data-skin="atelier"] .skypanel .livingsky circle[fill*="--gold"]{ fill:var(--gold); }
/* unlit "ember" stars were var(--sec) at 0.14 → near-invisible; make them a quiet ink point */
body:not([data-skin]) .skypanel .livingsky circle[fill*="--sec"],
body[data-skin="atelier"] .skypanel .livingsky circle[fill*="--sec"]{ fill:rgba(23,23,27,.34); }
/* the glow halo circles (the +2.2r soft discs) read too hot at full opacity — soften */
body:not([data-skin]) .skypanel .livingsky circle:not(.skystar),
body[data-skin="atelier"] .skypanel .livingsky circle:not(.skystar){ opacity:.16 !important; }
/* connecting lines: visible gold hairline so the constellation reads as linked */
body:not([data-skin]) .skypanel .livingsky line,
body[data-skin="atelier"] .skypanel .livingsky line{ stroke:var(--gold) !important; opacity:.5 !important; stroke-width:1; }

/* ---- (5) kill the dead void — scale the constellation down and center it with the
   copy so the card is a deliberate composition, not a floating field over emptiness.
   The sky-field height was sized for the dark hero; constrain it on cream. */
body:not([data-skin]) .skypanel .sky-field,
body[data-skin="atelier"] .skypanel .sky-field{ max-width:300px; margin:0 auto 8px; }
body:not([data-skin]) .skypanel .livingsky,
body[data-skin="atelier"] .skypanel .livingsky{ max-height:112px; }
body:not([data-skin]) .skypanel.big .sky-field,
body[data-skin="atelier"] .skypanel.big .sky-field{ max-width:330px; margin:2px auto 10px; }
body:not([data-skin]) .skypanel.big .livingsky,
body[data-skin="atelier"] .skypanel.big .livingsky{ max-height:128px; }

/* ---- (4) low-contrast text on cream ---------------------------------------- */
/* the YOUR SKY card copy used midnight's light tokens */
body:not([data-skin]) .skypanel .sky-tier,
body[data-skin="atelier"] .skypanel .sky-tier{ color:var(--goldText); }
body:not([data-skin]) .skypanel .sky-blurb,
body[data-skin="atelier"] .skypanel .sky-blurb{ color:var(--ink-soft); }   /* was --parch (invisible) */
body:not([data-skin]) .skypanel .sky-streak,
body[data-skin="atelier"] .skypanel .sky-streak{ color:var(--sec); }
body:not([data-skin]) .skypanel .sky-next,
body[data-skin="atelier"] .skypanel .sky-next{ color:var(--sec); }
/* "Tell Rishi — he's reading your sky already." was --sec (borderline); darken */
body:not([data-skin]) .t-ask-txt,
body[data-skin="atelier"] .t-ask-txt{ color:var(--ink-soft); }
/* the today-only "sky moved" line, same light-token issue if it surfaces on cream */
body:not([data-skin]) .skymoved,
body[data-skin="atelier"] .skymoved{ color:var(--sec); }

/* ============================================================================
   ROLLOUT — ELEVATED COHESION  (midnight)
   Brings Windows · My Chart · You · Oracle · Reports · the Paywall up to the
   approved elevated-Today bar: calm editorial, hairline rules instead of boxed
   cards, mono section labels, serif leads, one gold accent, generous 28px gutter,
   demoted stats, soft tinted shadows. Pure skin — every id/onclick/data hook on
   each render fn is untouched; Atelier + Astra are unaffected (scoped to midnight).
   Vocabulary is taken literally from the Today proof (.sec-lab / .rule / .rep).
   ============================================================================ */

/* shared editorial rhythm — the page heads match Today's hero spacing + scale */
body[data-skin="midnight"][data-tab="windows"] .pagehead,
body[data-skin="midnight"][data-tab="chart"]   .pagehead,
body[data-skin="midnight"][data-tab="account"] .pagehead,
body[data-skin="midnight"][data-tab="chat"]    .pagehead,
body[data-skin="midnight"][data-tab="reports"] .pagehead{
  padding:40px 28px 10px;
}
body[data-skin="midnight"][data-tab="windows"] .greet,
body[data-skin="midnight"][data-tab="chart"]   .greet,
body[data-skin="midnight"][data-tab="account"] .greet,
body[data-skin="midnight"][data-tab="chat"]    .greet,
body[data-skin="midnight"][data-tab="reports"] .greet{
  font-size:34px; letter-spacing:-.02em; line-height:1.04; margin-top:8px;
}
/* a shared hairline-ruled section label (the Today "sec-lab" look) wherever a
   screen uses .sectionlabel or .monthhead */
body[data-skin="midnight"] .sectionlabel.micro{
  padding:0 28px; margin:36px 0 14px;
  font-family:var(--mono); font-size:10px; letter-spacing:.18em; text-transform:uppercase; color:var(--text-3);
}

/* ---- WINDOWS --------------------------------------------------------------
   Replace the dense boxed event cards with a calm, hairline-ruled editorial
   list: the date becomes a quiet serif + mono stamp, the title leads, the
   category reads as one small accent. No fills, no shadows — just rhythm. */
body[data-skin="midnight"][data-tab="windows"] .chiprow{ padding:10px 28px 2px; }
body[data-skin="midnight"][data-tab="windows"] #callist > .micro{ padding:6px 28px 2px !important; color:var(--text-3) !important; }
body[data-skin="midnight"] .monthhead.micro{
  padding:40px 28px 0; font-family:var(--mono); font-size:10px; letter-spacing:.18em;
  text-transform:uppercase; color:var(--text-3);
}
body[data-skin="midnight"] .monthhead::after{
  margin-top:12px; height:1px; background:var(--hair);
}
/* the event row — a hairline-ruled editorial entry, flush in the 28px column */
body[data-skin="midnight"] .evcard{
  background:transparent; border:0; border-radius:0; box-shadow:none;
  border-bottom:1px solid var(--hair); margin:0 28px; padding:22px 0; gap:18px;
}
body[data-skin="midnight"] .evcard:active{
  transform:none; box-shadow:none; background:rgba(237,230,214,.03);
}
body[data-skin="midnight"] .evcard .evdate{
  flex:0 0 42px; border-right:0; padding:2px 0; text-align:left;
}
body[data-skin="midnight"] .evcard .evdate .d{
  font-family:var(--serif); font-weight:300; font-size:30px; line-height:1; color:var(--ink); letter-spacing:-.02em;
}
body[data-skin="midnight"] .evcard .evdate .m{
  font-family:var(--mono); font-size:9px; letter-spacing:.16em; text-transform:uppercase; color:var(--gold); margin-top:7px;
}
body[data-skin="midnight"] .evcard .evtitle{
  font-family:var(--serif); font-weight:300; font-size:20px; line-height:1.3; color:var(--ink);
  letter-spacing:-.01em; margin-bottom:10px;
}
body[data-skin="midnight"] .evcard .evhouse{
  font-family:var(--sans); font-size:12.5px; color:var(--sec); margin-top:9px; letter-spacing:.005em;
}
/* life-phase window — not a dark filled panel; a brass-edged quiet plate */
body[data-skin="midnight"] .phasecard.inkpanel{
  background:linear-gradient(170deg, rgba(200,164,106,.07), rgba(200,164,106,.02));
  border:1px solid var(--hair); border-radius:20px; box-shadow:none;
  margin:16px 28px; padding:22px;
}
body[data-skin="midnight"] .phasecard .phasedate{
  font-family:var(--mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--gold);
}
body[data-skin="midnight"] .phasecard .evtitle{
  color:var(--ink); font-size:21px; margin:10px 0 8px;
}
body[data-skin="midnight"] .phasecard .evhouse{ color:var(--sec); }
/* the empty-state line + the Ask-Rishi win-hook sit in the 28px column */
body[data-skin="midnight"][data-tab="windows"] #callist > p{ padding:30px 28px !important; color:var(--sec); }
body[data-skin="midnight"][data-tab="windows"] #winhook{ margin:10px 28px 2px !important; }

/* ---- MY CHART ------------------------------------------------------------
   The plate rows already use the hairline secrow treatment; only soften the
   wheel panel so it reads as a quiet field, not a heavy boxed card, and bring
   the chart tabs + plate list into the 28px editorial column. */
body[data-skin="midnight"][data-tab="chart"] .charttabs{ margin:16px 28px; }
body[data-skin="midnight"][data-tab="chart"] .chartpanel{
  background:radial-gradient(130% 100% at 50% 0%, rgba(200,164,106,.05), transparent 58%), #0C0E16;
  border:1px solid var(--hair); border-radius:24px; margin:0 28px; padding:16px;
}
body[data-skin="midnight"][data-tone="vellum"][data-tab="chart"] .chartpanel{
  background:radial-gradient(130% 100% at 50% 0%, rgba(168,134,76,.10), transparent 58%), var(--raised);
}
body[data-skin="midnight"][data-tab="chart"] .chartcap{ margin-top:4px; }
body[data-skin="midnight"][data-tab="chart"] .secrow{ margin:0 28px; padding:20px 0; }
/* a mono section label introducing the plates, mirroring Today's sec-lab rhythm */
body[data-skin="midnight"][data-tab="chart"] #view .charttabs + .secrow{ border-top:1px solid var(--hair); }

/* ---- YOU / ACCOUNT ------------------------------------------------------
   The profile stops being a boxed card and becomes an editorial header: name
   as a serif display line, birth details as a quiet caption, a text "edit"
   affordance. Soul-family + membership tiers lose their heavy fills for the
   hairline plate language. */
body[data-skin="midnight"] .youcard.card{
  background:transparent; border:0; border-radius:0; box-shadow:none;
  margin:4px 28px 0; padding:20px 0 24px; border-bottom:1px solid var(--hair); text-align:left;
}
body[data-skin="midnight"] .youcard .youname{
  font-family:var(--serif); font-weight:300; font-size:32px; letter-spacing:-.02em; color:var(--ink); margin-bottom:8px;
}
body[data-skin="midnight"] .youcard .youline{
  font-family:var(--sans); font-size:14px; line-height:1.7; color:var(--sec);
}
body[data-skin="midnight"] .youcard .btn-ghost{
  margin-top:16px; padding:0; height:auto; color:var(--gold);
  font-family:var(--mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase; text-align:left;
}
/* the living-sky panel + account box keep their design but align to 28px */
body[data-skin="midnight"][data-tab="account"] .rv[style*="20px"]{ }
body[data-skin="midnight"][data-tab="account"] #acctbox,
body[data-skin="midnight"][data-tab="account"] .skypanel{ }
/* soul-family person rows → hairline list, not boxed cards */
body[data-skin="midnight"] .pcard{
  background:transparent; border:0; border-radius:0; box-shadow:none;
  border-bottom:1px solid var(--hair-2); margin:0 28px; padding:18px 0;
}
body[data-skin="midnight"] .pcard .micro.gold{
  font-family:var(--mono); font-size:9px; letter-spacing:.16em; text-transform:uppercase; color:var(--gold);
}
body[data-skin="midnight"] .pcard .nm{
  font-family:var(--serif); font-weight:300; font-size:20px; color:var(--ink); margin-top:5px; letter-spacing:-.01em;
}
body[data-skin="midnight"] .pcard .bd{ font-family:var(--sans); font-size:12.5px; color:var(--sec); margin-top:4px; }
/* generic "add a person" / backup / notification ghost buttons → quiet text links */
body[data-skin="midnight"][data-tab="account"] .btn-ghost{
  color:var(--gold); font-family:var(--sans); font-weight:400;
}
/* membership — the free "Seeker" tier becomes a hairline plate; the featured
   Oracle card keeps its brass edge-of-light (already styled) but softens its box */
body[data-skin="midnight"] .tier:not(.ink){
  background:transparent; border:0; border-top:1px solid var(--hair); border-radius:0; box-shadow:none;
  margin:0 28px; padding:22px 0;
}
body[data-skin="midnight"] .tier:not(.ink) h4{
  font-family:var(--serif); font-weight:300; font-size:22px; color:var(--ink); letter-spacing:-.01em;
}
body[data-skin="midnight"] .tier:not(.ink) .price{
  font-family:var(--mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--text-3);
}
body[data-skin="midnight"] .tier.ink{
  margin:16px 28px 0; border-radius:20px; padding:24px;
}
/* the two foldable headers (Memory / About / feedback) → hairline-ruled rows */
body[data-skin="midnight"] .predhead{
  padding:0 28px; margin-top:0; border-top:1px solid var(--hair); min-height:56px; align-items:center;
}
body[data-skin="midnight"] .predhead .micro{
  font-family:var(--mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--text-3);
}
body[data-skin="midnight"] .predhead .car{ color:var(--gold); }
body[data-skin="midnight"][data-tab="account"] .rpthero{ margin:6px 28px 0; }
body[data-skin="midnight"][data-tab="account"] .notice{ margin:28px 28px 0; }
body[data-skin="midnight"] .factadd{ margin:12px 28px 0; }
body[data-skin="midnight"] #memwrap > p,
body[data-skin="midnight"] #aboutwrap .aboutsec{ padding-left:28px; padding-right:28px; }

/* ---- ORACLE (chat) ------------------------------------------------------
   The empty state becomes left-aligned editorial (like Today) rather than a
   centered generic hero: the mark stays as a quiet signature, the lead sits
   left, the copy reads as the astrologer speaking. Everything wired stays. */
body[data-skin="midnight"][data-tab="chat"] .oracle-empty{
  text-align:left; align-items:flex-start; padding:30px 28px 0;
}
body[data-skin="midnight"][data-tab="chat"] .oracle-mark{ margin-bottom:26px; }
body[data-skin="midnight"][data-tab="chat"] .oracle-h{
  font-family:var(--serif); font-weight:300; font-size:30px; line-height:1.14;
  letter-spacing:-.02em; color:var(--ink); margin-bottom:16px;
}
body[data-skin="midnight"][data-tab="chat"] .oracle-p{
  font-family:var(--serif); font-weight:300; font-size:18px; line-height:1.6;
  color:var(--sec); margin:0 0 24px; max-width:34ch; text-align:left;
}
body[data-skin="midnight"][data-tab="chat"] .oracle-add{
  color:var(--gold); font-family:var(--mono); font-size:10px; letter-spacing:.14em;
  text-transform:uppercase; padding:0; height:auto; text-align:left;
}
body[data-skin="midnight"][data-tab="chat"] .freeribbon{ margin:2px 28px 0; }
body[data-skin="midnight"][data-tab="chat"] .pagehead{ padding-bottom:0; }

/* ---- DEEP REPORTS -------------------------------------------------------
   Replace the loud filled cards + big cream buttons with the Today ".rep"
   language: hairline-bordered calm plates, a soft brass corner glow, a serif
   title, a quiet gold price/CTA as text — not a shouting button. */
body[data-skin="midnight"][data-tab="reports"] .rpthero{
  margin:16px 28px 0; padding:24px; border-radius:20px;
  background:linear-gradient(170deg, rgba(200,164,106,.07), rgba(200,164,106,.02));
  border:1px solid var(--hair);
}
body[data-skin="midnight"][data-tab="reports"] .rpthero::after{ display:none; }
body[data-skin="midnight"][data-tab="reports"] .rpthero .k{
  font-family:var(--mono); font-size:10px; letter-spacing:.18em; text-transform:uppercase; color:var(--gold);
}
body[data-skin="midnight"][data-tab="reports"] .rpthero h2{
  font-family:var(--serif); font-weight:300; font-size:24px; line-height:1.24; color:var(--ink); margin:12px 0 8px; letter-spacing:-.01em;
}
body[data-skin="midnight"][data-tab="reports"] .rpthero p{ color:var(--sec); font-size:14px; line-height:1.6; }
/* the report plate — hairline, calm, brass corner glow; no heavy fill */
body[data-skin="midnight"] .rptcard{
  margin:12px 28px 0; padding:22px; border-radius:20px;
  background:linear-gradient(170deg, rgba(237,230,214,.045), rgba(237,230,214,.012));
  border:1px solid var(--hair); box-shadow:none; position:relative; overflow:hidden;
}
body[data-skin="midnight"] .rptcard::before{
  content:""; position:absolute; right:-40px; top:-40px; width:140px; height:140px; border-radius:50%;
  background:radial-gradient(closest-side, rgba(200,164,106,.14), transparent); pointer-events:none;
}
body[data-skin="midnight"] .rptcard.owned{ border-color:rgba(200,164,106,.4); }
body[data-skin="midnight"] .rptcard .rpttitle{
  font-family:var(--serif); font-weight:300; font-size:20px; line-height:1.25; color:var(--ink); letter-spacing:-.01em; position:relative;
}
body[data-skin="midnight"] .rptcard .rptteaser{
  font-family:var(--sans); font-size:14px; line-height:1.62; color:var(--sec); margin-top:10px; max-width:34ch; position:relative;
}
/* price badge → a quiet brass tag, not a filled pill */
body[data-skin="midnight"] .rptcard .rptbadge{
  background:transparent; border:1px solid var(--hair); color:var(--gold);
  font-family:var(--mono); font-size:9.5px; letter-spacing:.12em; padding:5px 9px; border-radius:8px;
}
body[data-skin="midnight"] .rptcard .rptbadge.owned{ color:#9FB49A; border-color:rgba(159,180,154,.4); }
/* the buy affordance → a brass text CTA (the ".rep .rpr" move), not a cream button block */
body[data-skin="midnight"] .rptcard .rptbuy{ margin-top:16px; position:relative; }
body[data-skin="midnight"] .rptcard .rptbuy .btn-ink{
  display:inline-flex; align-items:center; width:auto; height:auto; padding:10px 18px;
  background:transparent; border:1px solid var(--gold); color:var(--gold);
  font-family:var(--mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase; border-radius:10px;
}
body[data-skin="midnight"] .rptcard .rptbuy .btn-ink:active{ background:var(--gold-glow); transform:none; }
body[data-skin="midnight"] .rptcard .rptread{
  display:inline-flex; width:auto; height:auto; margin-top:16px; padding:10px 18px;
  background:transparent; border:1px solid var(--gold); color:var(--gold);
  font-family:var(--mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase; border-radius:10px;
}
body[data-skin="midnight"][data-tab="reports"] .rptnote{ margin:18px 28px 0; color:var(--text-3); font-size:12px; line-height:1.6; }
body[data-skin="midnight"][data-tab="reports"] .rptgen{ margin:14px 28px; color:var(--sec); }

/* ---- PAYWALL SHEET polish ----------------------------------------------
   The sheet is already elevated; fix the real bug (title overflow clip) and
   tune the title scale so it wraps inside the sheet gutter. */
body[data-skin="midnight"] .pw-sheet .pw-title{
  font-size:25px; line-height:1.2; letter-spacing:-.01em;
  max-width:26ch; margin-left:auto; margin-right:auto; overflow-wrap:break-word;
}

/* ---- ARRIVAL on these screens: .rv already carries mnArrive on midnight,
   so the staggered animation-delay inline styles choreograph each list in. --- */

/* ========================================================================
   CARDS THAT POP — correction (10 Nov). The rollout over-minimised browse
   items into flat hairline lists; they didn't stand out on the near-black
   ground. Omvana's whole UX is cards that lift + are easy to scan. Restore
   real raised card surfaces (lifted bg + soft shadow + radius) for the
   browsable/standout items. Hero (living sky) + reading body stay as-is.
   ======================================================================== */
body[data-skin="midnight"] .tier,
body[data-skin="midnight"] .rep,
body[data-skin="midnight"] .secrow,
body[data-skin="midnight"] .evcard{
  background: var(--raised);
  border:1px solid rgba(201,164,106,.14);
  border-radius:18px;
  box-shadow:0 16px 36px -18px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04);
  padding:20px; margin:14px 0;
}
body[data-skin="midnight"] .tier:hover,
body[data-skin="midnight"] .rep:hover,
body[data-skin="midnight"] .secrow:hover,
body[data-skin="midnight"] .evcard:hover{
  border-color: rgba(201,164,106,.32);
  box-shadow:0 22px 48px -18px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
  transform: translateY(-1px);
}
/* membership: unmistakably a card, with a real Manage button (was floating text) */
body[data-skin="midnight"] .tier{ padding:24px; }
body[data-skin="midnight"] .tier .btn-ghost{
  display:block; width:100%; margin-top:18px; padding:13px 0; text-align:center;
  background: var(--card); border:1px solid var(--hair); border-radius:12px;
  color: var(--gold); font-family: var(--sans); font-weight:600; font-size:14px;
}

/* ===== event / transit DETAIL SHEET — dark raised card, legible title =====
   It was rendering as a light sheet with a light (invisible) title. Make it a
   proper dark sheet so the parchment title + content read clearly. */
body[data-skin="midnight"] #sheet{
  background: var(--raised); color: var(--ink);
  border-top:1px solid rgba(201,164,106,.18);
  box-shadow:0 -24px 64px -20px rgba(0,0,0,.9);
}
body[data-skin="midnight"] #sheet .sheet-title{ color: var(--ink); }
body[data-skin="midnight"] #sheet .grab{ background: var(--hair); }
body[data-skin="midnight"] #sheet .rule{ border-color: var(--hair); }
body[data-skin="midnight"] #sheet .btn-ink{
  background: var(--gold); color: #1A140A; font-weight:700; border-radius:14px;
}
body[data-skin="midnight"] #sheet .reading p:first-of-type{
  font-family: var(--serif); font-weight:400; font-size:21px; line-height:31px; color: var(--ink);
}
body[data-skin="midnight"] #sheet .reading p{ font-family: var(--sans); font-size:16px; line-height:27px; color: var(--ink-2); }
