/* ============================================================================
   RISHI — WEB SKIN  (body[data-skin="web"])
   Faithful reproduction of Marisha's Rishi WEB boards (W1–W6, V1–V2).
   BOTH themes via body[data-tone="night"|"vellum"]; "follow the sky" picks the
   tone by time of day. Every value lifted from /tmp/rishi-web-spec/W1.css (Night)
   and V1.css (Vellum). Desktop (>=1024px) = left sidebar + center + right rail;
   mobile keeps the app's existing bottom-tabbar UI.
   Every rule is scoped body[data-skin="web"] so it can never leak into another skin.
   ========================================================================== */

/* ---- TOKENS: NIGHT (default evening/night) ---- */
body[data-skin="web"]{
  --w-ground:#0B0D14; --w-surface:#11141D; --w-raised:#181C27; --w-raised2:#1C202B;
  --w-navact:#151925; --w-hair:#262A36;
  --w-head:#EDE6D6; --w-body:#DCD4C3; --w-t2:#A9A293; --w-t3:#8A8475;
  --w-moon:#A9B8D0; --w-brass:#C8A46A; --w-brassHi:#E6CC95; --w-warn:#D89A8E;
  --w-accent:#C8A46A; --w-accentHi:#E6CC95;
  --w-btnFill:#EDE6D6; --w-btnText:#0A0B10;
  --w-cardShadow:none;
  --w-navActShadow:inset 2px 0 0 #C8A46A;
  --w-chartField:#0B0D14; /* chart stays night in both tones */
  --w-side:#0A0C12;        /* sidebar is darker than ground (her board) */
  --w-sideHair:#1C202B;    /* sidebar divider */
  --w-raisedBorder:#1C202B;
  --w-skyTop:#0F1424; --w-skyBot:#0B0D14; /* Today hero gradient (night) */
  --w-skyMid:#0F1424;
  /* New York serif she chose off the live app — iPhone gets real New York, others get Newsreader (closest web twin). Display headlines only; body + UI stay Google Sans. */
  --w-serif:'New York','Newsreader','Hoefler Text','Iowan Old Style',Georgia,serif;
}
/* ---- TOKENS: VELLUM (daytime) ---- */
body[data-skin="web"][data-tone="vellum"]{
  --w-ground:#F4EFE6; --w-surface:#FBF8F2; --w-raised:#FFFFFF; --w-raised2:#FBF8F2;
  --w-navact:#FBF8F2; --w-hair:#E2DACB;
  --w-head:#17161C; --w-body:#2A2722; --w-t2:#4F4A3F; --w-t3:#6E6858;
  --w-moon:#4E5F7D; --w-brass:#7A5C28; --w-brassHi:#A4522F; --w-warn:#A4522F;
  --w-accent:#2F4A7A; --w-accentHi:#1F2D4D;
  --w-btnFill:#0B0D14; --w-btnText:#F4EFE6;
  --w-cardShadow:0 1px 2px rgba(23,22,28,.04),0 12px 32px -20px rgba(31,45,77,.25);
  --w-navActShadow:inset 2px 0 0 #2F4A7A,0 1px 2px rgba(23,22,28,.06);
  --w-side:#EDE6D9;        /* vellum sidebar (her V1 board) */
  --w-sideHair:#E2DACB;
  --w-raisedBorder:#E2DACB;
  /* V1 daytime sky header: #D7E0EE → #E7E7E6 → #F4EFE6 */
  --w-skyTop:#D7E0EE; --w-skyMid:#E7E7E6; --w-skyBot:#F4EFE6;
}

/* ---- SYSTEMIC CONTRAST FIX (item 18): remap the legacy ATELIER content tokens to
   the web-skin palette so ANY base class that leaks into a web view (.reading, .chip,
   .micro, .sec, var(--sec)/var(--muted)/var(--ink)/var(--card)...) is automatically
   legible in BOTH tones — no more cream-theme dark text on a dark ground, and no
   light-theme tokens bleeding into Night. One source of truth, both tones. ---- */
body[data-skin="web"]{
  --ink:var(--w-head); --sec:var(--w-t2); --muted:var(--w-t2); --faint:var(--w-t3);
  --parch:var(--w-head); --cream:var(--w-head);
  --card:var(--w-surface); --canvas:var(--w-ground); --bg:var(--w-ground);
  --hair:var(--w-hair); --hairInk:var(--w-hair);
  --gold:var(--w-brass); --goldBright:var(--w-accentHi); --goldText:var(--w-brass); --goldDim:var(--w-brass);
  --oxide:var(--w-warn); --blush:var(--w-warn);
}

/* ---- CATEGORY PILLS (Windows events, sheets, hero) ----
   The base `.pill.f-ink`/`.o-ink` used var(--ink)/var(--parch), which the remap
   above both point at --w-head → cream-on-cream (Night) / dark-on-dark (Vellum),
   i.e. an invisible "SELF"/"MONEY" blob. Give every family a legible tinted-chip
   treatment that reads as a button in BOTH tones. Outline = soft tint; filled
   (major events) = solid category colour with ground-dark text. ---- */
body[data-skin="web"] .pill{ border:1px solid transparent; }
body[data-skin="web"] .pill.o-ink{
  color:var(--w-t2);
  background:color-mix(in srgb, var(--w-t2) 12%, transparent);
  border-color:color-mix(in srgb, var(--w-t2) 30%, transparent); }
body[data-skin="web"] .pill.f-ink{
  color:var(--w-ground); background:var(--w-t2); border-color:transparent; }
body[data-skin="web"] .pill.o-gold{
  color:var(--w-brassHi);
  background:color-mix(in srgb, var(--w-brass) 13%, transparent);
  border-color:color-mix(in srgb, var(--w-brass) 32%, transparent); }
body[data-skin="web"] .pill.f-gold{
  color:var(--w-ground); background:var(--w-brass); border-color:transparent; }
body[data-skin="web"] .pill.o-blush,
body[data-skin="web"] .pill.o-oxide{
  color:var(--w-warn);
  background:color-mix(in srgb, var(--w-warn) 13%, transparent);
  border-color:color-mix(in srgb, var(--w-warn) 32%, transparent); }
body[data-skin="web"] .pill.f-blush,
body[data-skin="web"] .pill.f-oxide{
  color:var(--w-ground); background:var(--w-warn); border-color:transparent; }

/* ---- LIVE-SENT CHAT BUBBLE (same --ink/--parch trap as the pills) ----
   sendChat() appends the user's question as class `.msg-u` (NOT the `.wk-u` the web
   chat render uses for restored history). The base `.msg-u` rule is
   `background:var(--ink); color:var(--parch)`, and the remap above points BOTH at
   --w-head → cream-on-cream (Night) / dark-on-dark (Vellum) = an invisible "white
   block" the instant you send a question on mobile (reported 2026-11-14). Style the
   sent bubble unconditionally (both breakpoints, both tones) to match .wk-u, so a
   just-sent question reads the same as the restored history ones. Scoped to the
   chat log so it can't touch anything else. ---- */
body[data-skin="web"] #chatlog .msg-u,
body[data-skin="web"] .wk-log .msg-u{
  background:var(--w-raised); color:var(--w-head);
  border:0; border-radius:20px 20px 6px 20px;
  box-shadow:none; margin-left:auto; width:fit-content; max-width:min(82%,440px);
}
body[data-skin="web"][data-tone="night"] #chatlog .msg-u,
body[data-skin="web"][data-tone="night"] .wk-log .msg-u{ background:#181C27; }
body[data-skin="web"][data-tone="vellum"] #chatlog .msg-u,
body[data-skin="web"][data-tone="vellum"] .wk-log .msg-u{ background:#ECE4D6; color:var(--w-head); }

/* ---- FONT: her exact chain. Her boards flatten ALL serif/mono families to Google
   Sans (one typeface), but they KEEP intentional italics (greeting, closing line,
   reading numbers, the Ask lead). So: flatten the family only, never the style. The
   base app's accidental Newsreader/serif italics are flattened to roman explicitly
   by class below (.wt-read etc), not globally. ---- */
body[data-skin="web"],
body[data-skin="web"] *{
  font-family:'Google Sans',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
}
body[data-skin="web"] .serif,
body[data-skin="web"] .mono,
body[data-skin="web"] [style*="Newsreader"],
body[data-skin="web"] [style*="DM Mono"]{
  font-family:'Google Sans',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif !important;
}
/* ---- DISPLAY HEADLINES → New York serif (the font she chose off the live app). Body, labels, UI stay Google Sans. ---- */
body[data-skin="web"] .wt-h1,
body[data-skin="web"] .wc-h1,
body[data-skin="web"] .ww-h1,
body[data-skin="web"] .wy-name,
body[data-skin="web"] .wk-empty-h,
body[data-skin="web"] .wc-cap-t,
body[data-skin="web"] .wy-h2,
body[data-skin="web"] .ww-d-h{
  font-family:'Google Sans','Google Sans Flex',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif !important;
}

/* ---- GROUND + the slow follow-the-sky crossfade (~1s, "like the light, not a switch") ---- */
body[data-skin="web"]{
  background:var(--w-ground); color:var(--w-body);
  transition:background-color 1s ease, color 1s ease;
  -webkit-font-smoothing:antialiased;
}
body[data-skin="web"] #phone{ background:var(--w-ground); transition:background-color 1s ease; }
body[data-skin="web"] #view{ background:transparent; }
body[data-skin="web"] a{ color:var(--w-accent); text-decoration:none; }
body[data-skin="web"] a:hover{ color:var(--w-accentHi); }

/* overline / micro type — her boards use the DM-Mono class at 10-11px / 0.14em.
   (flattened to Google Sans 700, tracking kept at her exact 0.14em) */
body[data-skin="web"] .w-over{
  font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--w-brass);
}
body[data-skin="web"] .w-over-sm{ font-size:10px; }
body[data-skin="web"] .w-t2{ color:var(--w-t2); }
body[data-skin="web"] .w-t3{ color:var(--w-t3); }
/* the sidebar life-phase card + logo lockup are desktop-only; hidden in the mobile bottom-tabbar */
body[data-skin="web"] .w-side-phase{ display:none; }
body[data-skin="web"] .w-brand{ display:none; }
body[data-skin="web"] .w-themeseg{ display:none; }  /* desktop sidebar only; mobile toggles tone via the moon */
@media (min-width:1024px){ body[data-skin="web"].inapp #tabbar .w-brand{ display:flex; } }
/* below 1024 the web layout chrome (decorative hero band, right rails) is hidden so
   the mobile reading stacks cleanly on the app's existing surface */
@media (max-width:1023px){
  body[data-skin="web"] .wt-stars,
  body[data-skin="web"] .wt-horizon,
  body[data-skin="web"] .wt-moon-glow,
  body[data-skin="web"] .wc-rail .wc-progress{ display:none; }
  body[data-skin="web"] .wt-hero{ min-height:0; background:none; padding:0; margin:0; overflow:visible; }
  body[data-skin="web"] .wt-moon{ position:static; width:auto; height:auto; }
}

/* card, press, lift (lifted) */
body[data-skin="web"] .w-card{
  border-radius:18px; background:var(--w-surface); border:1px solid var(--w-hair);
  box-shadow:var(--w-cardShadow);
}
body[data-skin="web"] .w-press{ transition:transform .14s cubic-bezier(.23,1,.32,1), border-color .2s ease; }
body[data-skin="web"] .w-press:active{ transform:scale(.985); }
body[data-skin="web"] .w-lift{ transition:transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, border-color .2s ease; }
@media (hover:hover) and (pointer:fine){
  body[data-skin="web"] .w-lift:hover{ transform:translateY(-2px); border-color:var(--w-brass); }
}

/* arrive motion (lifted: fade+rise+deblur .8s) */
@keyframes wArrive{ from{opacity:0;transform:translateY(8px);filter:blur(3px)} to{opacity:1;transform:none;filter:blur(0)} }
@keyframes wBarDraw{ from{transform:scaleX(0)} to{transform:scaleX(1)} }
body[data-skin="web"] .w-in{ opacity:0; animation:wArrive .8s cubic-bezier(.22,1,.36,1) forwards; }
body[data-skin="web"] .w-bar{ transform-origin:left; animation:wBarDraw 1.1s cubic-bezier(.22,1,.36,1) .4s both; }
@media (prefers-reduced-motion:reduce){
  body[data-skin="web"] .w-in{ animation:none; opacity:1; }
  body[data-skin="web"] .w-bar{ animation:none; }
  body[data-skin="web"]{ transition:none; }
}

/* ===== WINDOWS DRAWN ARCHES (S2) — GLOBAL structure + colours =====
   Lives OUTSIDE any @media so BOTH desktop (≥1024) and mobile (<1024) get the
   stroke colours. Without this, SVG paths default to fill:black on mobile (a black
   blob) — the same desktop-only-media trap that hid the SELF/MONEY pills before. */
body[data-skin="web"] .ww-arches{ width:100%; height:150px; display:block; overflow:visible; }
body[data-skin="web"] .ww-ax-line{ stroke:var(--w-hair); stroke-width:1; vector-effect:non-scaling-stroke; }
body[data-skin="web"] .ww-ax-tick{ stroke:var(--w-hair); stroke-width:1; vector-effect:non-scaling-stroke; }
body[data-skin="web"] .ww-ax-today{ fill:var(--w-head); }
body[data-skin="web"] .ww-ax-lab{ font:700 7px var(--sans,'Google Sans',system-ui); letter-spacing:.08em; fill:var(--w-t3); }
body[data-skin="web"] .ww-arch{ cursor:pointer; }
body[data-skin="web"] .ww-arch-line{ fill:none; stroke-width:1.4; vector-effect:non-scaling-stroke; transition:stroke-width .2s; }
body[data-skin="web"] .ww-arch-in{ fill:none; stroke-width:.7; stroke-opacity:.38; vector-effect:non-scaling-stroke; }
body[data-skin="web"] .ww-arch-foot{ fill:none; opacity:0; transition:opacity .25s; }
body[data-skin="web"] .ww-arch-dot{ fill:var(--w-head); }
/* category tones: solid stroke that reads on both night + vellum */
body[data-skin="web"] .ww-arch-brass .ww-arch-line, body[data-skin="web"] .ww-arch-brass .ww-arch-in{ stroke:var(--w-brass); }
body[data-skin="web"] .ww-arch-brass .ww-arch-foot{ fill:var(--w-brass); }
body[data-skin="web"] .ww-arch-love  .ww-arch-line, body[data-skin="web"] .ww-arch-love  .ww-arch-in,
body[data-skin="web"] .ww-arch-warn  .ww-arch-line, body[data-skin="web"] .ww-arch-warn  .ww-arch-in{ stroke:var(--w-warn); }
body[data-skin="web"] .ww-arch-love  .ww-arch-foot, body[data-skin="web"] .ww-arch-warn  .ww-arch-foot{ fill:var(--w-warn); }
body[data-skin="web"] .ww-arch-moon  .ww-arch-line, body[data-skin="web"] .ww-arch-moon  .ww-arch-in{ stroke:var(--w-moon); }
body[data-skin="web"] .ww-arch-moon  .ww-arch-foot{ fill:var(--w-moon); }
body[data-skin="web"] .ww-arch:hover .ww-arch-line{ stroke-width:2; }
body[data-skin="web"] .ww-arch:hover .ww-arch-foot{ opacity:.22; }
body[data-skin="web"] .ww-arch.on .ww-arch-line{ stroke-width:2.4; }
body[data-skin="web"] .ww-arch.on .ww-arch-foot{ opacity:.35; }
body[data-skin="web"] .ww-arch:focus-visible{ outline:none; }
body[data-skin="web"] .ww-arch:focus-visible .ww-arch-line{ stroke-width:2.4; }
body[data-skin="web"] .ww-empty{ padding:14px 2px 2px; }
body[data-skin="web"] .ww-draw{ stroke-dasharray:1; stroke-dashoffset:1; animation:wwArchDraw 1.3s cubic-bezier(.65,0,.35,1) both; animation-delay:var(--ad,0s); }
@keyframes wwArchDraw{ to{ stroke-dashoffset:0; } }
@media (prefers-reduced-motion:reduce){
  body[data-skin="web"] .ww-draw{ animation:none; stroke-dashoffset:0; }
}

/* ---- GOLD SKY motion (ported from S2 "cards, art & motion"): the moon breathes,
   the orbit lines etch themselves in, stars twinkle, the live dot glows. ---- */
@keyframes wGsBreathe{ 0%,100%{transform:scale(1)} 50%{transform:scale(1.025)} }
@keyframes wGsDraw{ from{stroke-dashoffset:1} to{stroke-dashoffset:0} }
@keyframes wGsTw{ 0%,100%{opacity:.25} 50%{opacity:.9} }
@keyframes wGsGlow{ 0%,100%{opacity:.35} 50%{opacity:.85} }
@keyframes wGsPop{ from{opacity:0;transform:scale(.2)} to{opacity:1;transform:none} }
body[data-skin="web"] .wt-goldsky .gs-breathe{ transform-box:fill-box; transform-origin:center; animation:wGsBreathe 6s ease-in-out infinite; }
body[data-skin="web"] .wt-goldsky .gs-draw{ stroke-dasharray:1; animation:wGsDraw 1.6s cubic-bezier(.65,0,.35,1) both; }
body[data-skin="web"] .wt-goldsky .gs-tw1{ animation:wGsTw 3.2s ease-in-out infinite; }
body[data-skin="web"] .wt-goldsky .gs-tw2{ animation:wGsTw 4.6s 1.3s ease-in-out infinite; }
body[data-skin="web"] .wt-goldsky .gs-glow{ animation:wGsGlow 3s ease-in-out infinite; }
body[data-skin="web"] .wt-goldsky .gs-pop{ transform-box:fill-box; transform-origin:center; animation:wGsPop .5s .9s cubic-bezier(.34,1.5,.5,1) both; }
@media (prefers-reduced-motion:reduce){
  body[data-skin="web"] .wt-goldsky .gs-breathe,
  body[data-skin="web"] .wt-goldsky .gs-draw,
  body[data-skin="web"] .wt-goldsky .gs-tw1,
  body[data-skin="web"] .wt-goldsky .gs-tw2,
  body[data-skin="web"] .wt-goldsky .gs-glow,
  body[data-skin="web"] .wt-goldsky .gs-pop{ animation:none; }
}

/* ---- 7-DAY MOON STRIP (S2 "Today → the Moon this week") ---- */
body[data-skin="web"] .wt-moonweek{
  position:relative; z-index:2; display:flex; gap:6px; flex-wrap:wrap; margin-top:6px;
}
body[data-skin="web"] .wt-mw-day{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:9px 8px; border-radius:12px; min-width:50px;
  background:color-mix(in srgb, var(--w-surface) 60%, transparent);
  border:1px solid var(--w-hair);
}
body[data-skin="web"] .wt-mw-today{
  background:color-mix(in srgb, var(--w-brass) 14%, transparent);
  border-color:color-mix(in srgb, var(--w-brass) 42%, transparent);
}
body[data-skin="web"] .wt-mw-d{
  font:700 10px var(--sans,'Google Sans',system-ui); letter-spacing:.08em;
  color:var(--w-t3); font-variant-numeric:tabular-nums;
}
body[data-skin="web"] .wt-mw-today .wt-mw-d{ color:var(--w-brassHi); }

/* ============================================================================
   DESKTOP SHELL (>=1024px): sidebar + center + right rail
   The app's #phone becomes the grid; the existing #tabbar is restyled into the
   left sidebar; #view holds the per-screen web layout.
   ========================================================================== */
@media (min-width:1024px){
  body[data-skin="web"].inapp #phone{
    display:grid;
    grid-template-columns:260px 1fr;
    max-width:none; width:100%; min-height:100vh; height:auto; margin:0;
    background:var(--w-ground);
    overflow:visible; border-radius:0; box-shadow:none; border:0; position:relative;
  }
  body[data-skin="web"].inapp{ overflow-y:auto; }
  html:has(body[data-skin="web"].inapp){ overflow-y:auto; }

  /* ---- LEFT SIDEBAR (restyle #tabbar) ---- */
  body[data-skin="web"].inapp #tabbar{
    display:flex !important; position:static; flex-direction:column; align-items:stretch;
    width:260px; height:100vh; gap:2px; padding:28px 16px;
    background:var(--w-side); border:0; border-right:1px solid var(--w-sideHair);
    box-shadow:none; backdrop-filter:none;
    position:sticky; top:0; overflow:hidden;
  }
  /* real logo lockup (crescent-circle SVG + "rishi" wordmark), mounted by
     mountWebSidebar(). Matches rishi-web.html: flex gap12, pad 0 8, mark 30px,
     wordmark Google Sans 28/700 -0.56ls cream. The old faked ::before/::after
     blob is explicitly killed below. */
  body[data-skin="web"].inapp #tabbar::before,
  body[data-skin="web"].inapp #tabbar::after{ content:none !important; display:none !important; }
  body[data-skin="web"].inapp #tabbar .w-brand{
    order:0; display:flex; align-items:center; gap:12px; padding:0 8px;
    margin:0 0 20px; flex:none;
  }
  body[data-skin="web"].inapp #tabbar .w-brand-mark{ width:30px; height:30px; flex:0 0 30px; }
  body[data-skin="web"].inapp #tabbar .w-brand-wm{
    font-family:'Google Sans','Google Sans Flex',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
    font-size:28px; font-weight:700; letter-spacing:-.56px; color:var(--w-head); line-height:1;
  }
  /* kill the base skin's gold active tick (we use the inset bar instead) */
  body[data-skin="web"].inapp #tabbar .tab.active::before,
  body[data-skin="web"].inapp #tabbar .tab::before{ content:none !important; display:none !important; }
  /* nav order to match her board: Today / My Chart / Windows / Ask Rishi / You */
  body[data-skin="web"].inapp #tabbar .tab[data-tab="today"]{ order:1; }
  body[data-skin="web"].inapp #tabbar .tab[data-tab="chart"]{ order:2; }
  body[data-skin="web"].inapp #tabbar .tab[data-tab="windows"]{ order:3; }
  body[data-skin="web"].inapp #tabbar .tab[data-tab="sky"]{ order:4; }
  body[data-skin="web"].inapp #tabbar .tab[data-tab="chat"]{ order:5; }
  body[data-skin="web"].inapp #tabbar .tab[data-tab="account"]{ order:6; }
  body[data-skin="web"].inapp #tabbar .tab[data-tab="reports"]{ order:7; }
  /* nav items (lifted .nav) */
  body[data-skin="web"].inapp #tabbar .tab{
    display:flex !important; flex-direction:row; align-items:center; gap:12px;
    min-height:44px; padding:0 12px; margin:0; border-radius:10px;
    color:var(--w-t2); font-size:15px; font-weight:500; width:auto; flex:none;
    text-transform:none; letter-spacing:0;
    transition:background-color .2s ease, color .2s ease; cursor:pointer;
  }
  body[data-skin="web"].inapp #tabbar .tab svg{ width:20px; height:20px; stroke:currentColor; opacity:.85; margin:0; }
  body[data-skin="web"].inapp #tabbar .tab:hover{ background:var(--w-surface); color:var(--w-head); }
  /* the app sets .active (not .on/aria-current) on the current tab — match her
     board's active row: dark bg #151925 + gold inset tick + cream text */
  body[data-skin="web"].inapp #tabbar .tab.active,
  body[data-skin="web"].inapp #tabbar .tab.on,
  body[data-skin="web"].inapp #tabbar .tab[aria-current="page"]{
    background:var(--w-navact); color:var(--w-head); box-shadow:var(--w-navActShadow);
  }
  /* the center "Oracle" tab becomes a NORMAL "Ask Rishi" row — identical to its
     siblings (icon + label, inherits the row colour). Strip the floating-orb look:
     no pulse ring, no gold fill, no negative margin, no scale-up — just a 20px glyph
     in currentColor so it's always visible and never styled "weird". */
  body[data-skin="web"].inapp #tabbar .tab.center{ order:4; flex:none !important; margin:0 !important; position:relative; }
  body[data-skin="web"].inapp #tabbar .tab.center .orb{ width:20px; height:20px; min-width:20px; margin:0 !important; background:none !important; box-shadow:none !important; border:0 !important; border-radius:0; display:flex; align-items:center; justify-content:center; }
  body[data-skin="web"].inapp #tabbar .tab.center .orb::before,
  body[data-skin="web"].inapp #tabbar .tab.center .orb::after{ content:none !important; display:none !important; animation:none !important; }
  body[data-skin="web"].inapp #tabbar .tab.center .orb svg{ width:20px; height:20px; margin:0; fill:currentColor !important; stroke:none; opacity:.85; }
  body[data-skin="web"].inapp #tabbar .tab.center.active .orb svg{ opacity:1; }
  body[data-skin="web"].inapp #tabbar .tab.center::after{ content:"Ask Rishi"; color:inherit; }

  /* ---- pinned "YOUR LIFE PHASE" card at the bottom of the sidebar (her board) ---- */
  body[data-skin="web"].inapp #tabbar .w-side-phase{
    order:20; margin-top:auto; display:flex; flex-direction:column; gap:6px;
    padding:16px; border-radius:14px; background:var(--w-surface);
    border:1px solid var(--w-raisedBorder);
  }
  body[data-skin="web"] .w-side-phase-lab{ color:var(--w-t3); }
  body[data-skin="web"] .w-side-phase-v{ font-size:18px; font-weight:300; color:var(--w-head); }
  body[data-skin="web"] .w-side-phase-track{ height:3px; border-radius:2px; background:var(--w-hair); overflow:hidden; display:block; }
  body[data-skin="web"] .w-side-phase-fill{ display:block; width:5%; height:100%; background:var(--w-brass); }

  /* ---- Light / Dark / Auto theme segment (pinned bottom, above Life Phase) ---- */
  body[data-skin="web"].inapp #tabbar .w-themeseg{
    order:19; margin-top:auto; display:grid; grid-template-columns:1fr 1fr 1fr; gap:2px;
    background:var(--w-surface); border:1px solid var(--w-raisedBorder); border-radius:12px; padding:4px;
  }
  body[data-skin="web"].inapp #tabbar .w-themeseg + .w-side-phase{ margin-top:12px; }
  body[data-skin="web"] .w-themeseg button{
    display:flex; align-items:center; justify-content:center; gap:5px;
    border:0; background:none; cursor:pointer; border-radius:8px; padding:8px 4px;
    font:600 12px var(--w-serif); font-family:'Google Sans',ui-sans-serif,system-ui,sans-serif;
    color:var(--w-t2); transition:background-color .2s ease, color .2s ease;
  }
  body[data-skin="web"] .w-themeseg button svg{ opacity:.85; }
  body[data-skin="web"] .w-themeseg button.on{ background:var(--w-btnFill); color:var(--w-btnText); }

  /* ---- hide the floating mobile chatbar; web screens own their own input ---- */
  body[data-skin="web"].inapp #chatbar{ display:none; }

  /* ---- CENTER / main column ---- */
  body[data-skin="web"].inapp #view{
    grid-column:2; position:relative; inset:auto; min-height:100vh; padding:0; overflow-x:hidden;
  }
  /* web screens own their own width/scroll — undo the base 760px cap + absolute pin +
     the slide-in transform so content always flows in the grid (never off-screen) */
  body[data-skin="web"].inapp #view > .screen{
    position:relative; inset:auto; max-width:none; margin:0; min-height:100vh;
    overflow-y:visible; padding-bottom:0; animation:none !important; transform:none !important; opacity:1 !important;
  }

  /* onboarding stays single-column centred (no sidebar) */
  body[data-skin="web"]:not(.inapp) #phone{ display:block; max-width:520px; margin:0 auto; }
  body[data-skin="web"]:not(.inapp) #tabbar{ display:none !important; }
}

/* ============================================================================
   TODAY (W1 / V1)
   ========================================================================== */
@media (min-width:1024px){
  /* her W1: main column (max 680px of reading) + 260px aside, gap clamp(32–64px).
     We give the aside a fixed 300px so the rail cards read like her board. */
  body[data-skin="web"].inapp .web-today{
    display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:clamp(32px,4vw,64px);
    max-width:1120px; margin:0 auto; padding:0 clamp(24px,4vw,56px) 72px; align-items:start;
  }
  body[data-skin="web"] .wt-main{ min-width:0; }

  /* ---- SKY-BAND HERO (her 290px gradient band) ---- */
  body[data-skin="web"] .wt-hero{
    position:relative; overflow:hidden; min-height:290px;
    margin:0 calc(-1 * clamp(24px,4vw,56px)); padding:40px clamp(24px,4vw,56px) 32px;
    background:linear-gradient(180deg,var(--w-skyTop) 0%,var(--w-skyMid) 55%,var(--w-skyBot) 100%);
  }
  body[data-skin="web"][data-tone="night"] .wt-hero{
    background:linear-gradient(180deg,var(--w-skyTop) 0%,var(--w-skyBot) 100%);
  }
  body[data-skin="web"] .wt-stars{ position:absolute; inset:0; pointer-events:none; }
  body[data-skin="web"] .wt-star{ position:absolute; border-radius:50%; background:var(--w-head); animation:wTw 5s ease-in-out infinite; }
  body[data-skin="web"][data-tone="vellum"] .wt-star{ display:none; } /* daytime sky, no stars */
  body[data-skin="web"] .wt-horizon{ position:absolute; left:0; bottom:0; width:100%; height:290px; }
  /* moon rides HIGH in the top-right of the sky band (her board), clear of the
     headline at every width/line-wrap. It sits in the band's top strip above the
     eyebrow, and the copy column is width-capped below so a long headline can
     never slide under it. z-index keeps text above the moon if they ever meet. */
  body[data-skin="web"] .wt-moon{
    position:absolute; right:clamp(28px,7%,96px); top:30px; width:46px; height:46px;
    background:none; border:0; cursor:pointer; padding:0; line-height:0; z-index:1;
  }
  body[data-skin="web"] .wt-moon svg{ width:46px; height:46px; position:relative; }
  body[data-skin="web"] .wt-moon-glow{
    position:absolute; inset:-26px; border-radius:50%;
    background:radial-gradient(closest-side,rgba(169,184,208,.5),rgba(169,184,208,0));
  }
  /* ---- GOLD SKY (S2 "cards, art & motion") — a large etched moon drawing, in
     gold, built from the real chart + today's Moon. Rides the top-right of the
     hero behind the copy; the small crescent button sits on top of it. On the
     gold sky, hide the plain crescent glyph (the drawing IS the moon). ---- */
  body[data-skin="web"] .wt-goldsky{
    position:absolute; right:clamp(-20px,2%,40px); top:-14px; width:clamp(280px,30vw,360px);
    aspect-ratio:1/1; z-index:1; pointer-events:none;
    -webkit-mask-image:radial-gradient(60% 60% at 60% 42%,#000 60%,transparent 100%);
            mask-image:radial-gradient(60% 60% at 60% 42%,#000 60%,transparent 100%);
  }
  body[data-skin="web"] .wt-goldsky svg{ width:100%; height:100%; display:block; overflow:visible; }
  body[data-skin="web"].inapp .wt-hero:has(.wt-goldsky) .wt-moon{ display:none; }
  body[data-skin="web"] .wt-hero-copy{ position:relative; z-index:2; max-width:min(640px,calc(100% - 140px)); display:flex; flex-direction:column; gap:10px; }
  body[data-skin="web"] .wt-eyebrow{ color:var(--w-t2); }
  /* her greeting: intentional italic, weight 300, 20px, secondary color */
  body[data-skin="web"] .wt-greet{ font-size:20px; color:var(--w-head); font-weight:600; font-style:normal; }
  body[data-skin="web"] .wt-h1{
    margin:0; font-size:clamp(38px,4vw,56px); line-height:1.04; font-weight:700; letter-spacing:-.02em;
    color:var(--w-head); max-width:none;
  }
  /* desktop shows the single sky-band moon (her board) — hide the inline headline
     glyph so the headline never has a moon wrapping into its text */
  body[data-skin="web"] .wt-headrow{ display:block; }
  body[data-skin="web"] .wt-headmoon{ display:none; }

  /* ---- floating ask bar: overlaps the hero by -24px (her board) ---- */
  body[data-skin="web"] .wt-ask{
    position:relative; top:-8px; margin-bottom:8px; display:flex; align-items:center; gap:12px;
    padding:8px 8px 8px 20px; cursor:text; border-radius:18px; max-width:none;
    box-shadow:0 20px 40px -24px rgba(0,0,0,.7);
  }
  body[data-skin="web"] .wt-ask-txt{ flex:1; min-width:0; color:var(--w-t3); font-size:19px; font-weight:300; }
  body[data-skin="web"] .wt-ask-k{ font-size:11px; font-weight:700; letter-spacing:.08em; color:var(--w-t3); padding:4px 8px; border:1px solid var(--w-hair); border-radius:6px; }
  body[data-skin="web"] .wt-ask-send{
    flex:none; width:44px; height:44px; border-radius:12px; border:0; cursor:pointer;
    display:grid; place-items:center; background:var(--w-btnFill);
    transition:transform .14s cubic-bezier(.23,1,.32,1);
  }
  body[data-skin="web"] .wt-ask-send:active{ transform:scale(.94); }

  body[data-skin="web"] .wt-body{ display:flex; flex-direction:column; }

  /* ---- scope segmented control with sliding white thumb (her board, max 420px) ---- */
  body[data-skin="web"] .wt-scopes{
    position:relative; display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
    padding:4px; border-radius:12px; background:var(--w-surface); border:1px solid var(--w-hair);
    max-width:420px; margin-top:28px;
  }
  body[data-skin="web"] .wt-thumb{
    position:absolute; top:4px; bottom:4px; left:4px; border-radius:8px; background:var(--w-btnFill);
    transition:transform .45s cubic-bezier(.34,1.25,.5,1), width .45s cubic-bezier(.34,1.25,.5,1);
  }
  body[data-skin="web"] .wt-scope{
    position:relative; height:38px; border:0; background:transparent; cursor:pointer;
    font-size:14px; font-weight:500; color:var(--w-t2); transition:color .3s ease;
  }
  body[data-skin="web"] .wt-scope.on{ color:var(--w-btnText); }

  /* ---- A NOTE FROM RISHI: brass overline + 26px lead + 18px body ---- */
  body[data-skin="web"] .wt-note{ display:flex; flex-direction:column; }
  body[data-skin="web"] .wt-note-over{ margin-top:32px; color:var(--w-brass); }
  /* the presence stream is the LEAD line: 26px serif-weight, tight tracking */
  body[data-skin="web"] .wt-note-lead{
    margin:14px 0 0; font-size:26px; line-height:1.4; letter-spacing:-.01em;
    color:var(--w-head); font-weight:300; font-style:normal;
  }
  body[data-skin="web"] .wt-note-lead strong{ color:var(--w-head); font-weight:700; }

  /* the day reading (#todaycards) is the BODY: 18px, secondary color */
  body[data-skin="web"] .wt-read{ font-size:18px; line-height:1.7; color:var(--w-body); }
  body[data-skin="web"] .wt-read p{ margin:18px 0 0; }
  body[data-skin="web"] .wt-read h2,
  body[data-skin="web"] .wt-read h3{ color:var(--w-head); font-weight:700; letter-spacing:-.01em; }
  /* skeleton tone */
  body[data-skin="web"] .wt-read .sk{
    --sk-bg:linear-gradient(90deg,var(--w-raised) 0%,var(--w-raised2) 30%,rgba(200,164,106,.14) 50%,var(--w-raised2) 70%,var(--w-raised) 100%);
  }
  body[data-skin="web"] .wt-read .sk-card{ background:var(--w-raised); box-shadow:none; }
  body[data-skin="web"] .wt-read .sk-pull{ width:70%; }
  /* blend the base skin's cream readcard/tcard plates into flowing prose */
  body[data-skin="web"] .wt-read .card,
  body[data-skin="web"] .wt-read .readcard,
  body[data-skin="web"] .wt-read .tcard{
    background:transparent !important; box-shadow:none !important; border:0 !important;
    border-radius:0 !important; padding:0 !important; margin:0 !important;
  }
  body[data-skin="web"] .wt-read .tcard{ padding:4px 0 0 !important; margin:10px 0 0 !important; }
  body[data-skin="web"] .wt-read .tcard .tcorner{ display:none; }
  body[data-skin="web"] .wt-read .tcbody,
  body[data-skin="web"] .wt-read .tcbody.reading,
  body[data-skin="web"] .wt-read .readcard p{ color:var(--w-body); font-size:18px; line-height:1.7; }
  body[data-skin="web"] .wt-read .tcbody strong{ color:var(--w-head); }
  body[data-skin="web"] .wt-read .tctitle{ color:var(--w-head); }
  body[data-skin="web"] .wt-read .tcicon{ color:var(--w-brass); }
  body[data-skin="web"] .wt-read .pullquote{ color:var(--w-head); border-left-color:var(--w-brass); }
  body[data-skin="web"] .wt-read .micro,
  body[data-skin="web"] .wt-read .sec-lab{ color:var(--w-t3); }
  body[data-skin="web"] .wt-read .dayrow .daychip{ background:var(--w-raised); color:var(--w-brass); border-color:var(--w-hair); }
  body[data-skin="web"] .wt-read .daytxt{ color:var(--w-body); }

  /* ---- THE ONE MOVE TODAY: gold-tinted card, brass border ---- */
  body[data-skin="web"] .wt-one{
    margin-top:28px; padding:22px 24px; display:flex; flex-direction:column; gap:8px;
    border-radius:18px; border:1px solid #3A3424; background:rgba(200,164,106,0.06);
  }
  body[data-skin="web"][data-tone="vellum"] .wt-one{ border-color:#D8C49A; background:rgba(122,92,40,0.07); }
  body[data-skin="web"] .wt-one-over{ color:var(--w-brass); }
  body[data-skin="web"] .wt-one-txt{ color:var(--w-head); font-size:22px; line-height:1.35; font-weight:300; }

  /* ---- reflect = her "WHAT I'M NOTICING" card (themed for BOTH tones) ---- */
  body[data-skin="web"] #reflectslot{ margin-top:14px; display:block; }
  body[data-skin="web"] #reflectslot .reflectcard{
    margin:0 !important; padding:20px 24px !important; border-radius:18px !important;
    background:var(--w-surface) !important; border:1px solid var(--w-hair) !important;
    box-shadow:var(--w-cardShadow) !important;
  }
  body[data-skin="web"] #reflectslot .reflectcard::before{ color:var(--w-brass) !important; }
  body[data-skin="web"] #reflectslot .reflectcard .micro.gold{ color:var(--w-brass) !important; font-weight:700; letter-spacing:.14em; font-size:10px; text-transform:uppercase; }
  body[data-skin="web"] #reflectslot .reflectcard .serif{ color:var(--w-body) !important; font-size:16px !important; font-weight:400 !important; }
  body[data-skin="web"] #reflectslot .reflectcard .rbtn{
    min-height:44px; padding:0 18px; border-radius:22px; border:0; background:var(--w-btnFill);
    color:var(--w-btnText); font-size:14px; font-weight:500; cursor:pointer;
  }
  body[data-skin="web"] #reflectslot .reflectcard .rbtn.ghost{ background:transparent; border:1px solid var(--w-hair); color:var(--w-head); }
  body[data-skin="web"] #reflectslot .reflectin{
    background:var(--w-raised) !important; border:1px solid var(--w-hair) !important; color:var(--w-body) !important;
  }
  body[data-skin="web"] #reflectslot .btn-ink{ background:var(--w-btnFill) !important; color:var(--w-btnText) !important; }

  /* ---- You and [person] this week: synastry glyph + sub + chev ---- */
  body[data-skin="web"] .wt-pair{
    margin-top:14px; padding:20px 24px; display:flex; align-items:center; gap:18px;
    cursor:pointer; text-decoration:none; color:var(--w-head);
    border-radius:18px; background:var(--w-surface); border:1px solid var(--w-hair);
    box-shadow:var(--w-cardShadow);
  }
  body[data-skin="web"] .wt-pair-c{ flex:1; display:flex; flex-direction:column; gap:3px; }
  body[data-skin="web"] .wt-pair-t{ font-size:19px; color:var(--w-head); font-weight:300; }
  body[data-skin="web"] .wt-pair-sub{ font-size:14px; color:var(--w-t2); }

  /* ---- closing italic line ---- */
  body[data-skin="web"] .wt-closer{ margin:40px 0 0; font-style:italic; font-size:16px; color:var(--w-t3); }

  /* ---- RIGHT RAIL: at-a-glance meters + coming-up ---- */
  body[data-skin="web"] .wt-rail{ position:sticky; top:40px; display:flex; flex-direction:column; gap:14px; }
  body[data-skin="web"] .wt-rg{ padding:22px; }
  body[data-skin="web"] .wt-rg-h{ color:var(--w-t3); }
  body[data-skin="web"] .wt-rg-list{ margin-top:12px; display:flex; flex-direction:column; gap:16px; }
  body[data-skin="web"] .wrg-meter{ display:flex; flex-direction:column; gap:6px; }
  body[data-skin="web"] .wrg-meter-top{ display:flex; justify-content:space-between; align-items:baseline; }
  body[data-skin="web"] .wrg-k{ font-size:14px; color:var(--w-t2); }
  body[data-skin="web"] .wrg-v{ font-size:18px; font-weight:300; }
  body[data-skin="web"] .wrg-track{ height:3px; border-radius:2px; background:var(--w-hair); overflow:hidden; display:block; }
  body[data-skin="web"] .wrg-fill{ display:block; height:100%; }
  body[data-skin="web"] .wrg-why{ font-size:13px; line-height:1.45; color:var(--w-t2); }

  body[data-skin="web"] .wt-cu{ padding:22px; display:flex; flex-direction:column; gap:12px; }
  body[data-skin="web"] .wt-cu-head{ display:flex; justify-content:space-between; align-items:baseline; }
  body[data-skin="web"] .wt-cu-all{ font-size:13px; color:var(--w-accent); }
  body[data-skin="web"] .wt-cu-list{ display:flex; flex-direction:column; gap:12px; }
  body[data-skin="web"] .wcu-row{ display:grid; grid-template-columns:52px minmax(0,1fr); gap:12px; align-items:baseline; min-height:44px; color:var(--w-head); text-decoration:none; }
  body[data-skin="web"] .wcu-d{ font-size:12px; font-weight:700; letter-spacing:.08em; color:var(--w-brass); }
  body[data-skin="web"] .wcu-c{ display:flex; flex-direction:column; gap:2px; }
  body[data-skin="web"] .wcu-t{ font-size:15px; color:var(--w-head); }
  body[data-skin="web"] .wcu-s{ font-size:13px; color:var(--w-t2); }
}

/* ============================================================================
   MY CHART (W2)
   ========================================================================== */
@media (min-width:1024px){
  /* her W2: chart (flex 1 1 520px) + readings rail (flex 1 1 360px) */
  body[data-skin="web"].inapp .web-chart{
    display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:clamp(28px,3vw,48px);
    max-width:1120px; margin:0 auto; padding:40px clamp(24px,4vw,56px) 72px; align-items:start;
  }
  body[data-skin="web"] .wc-main{ min-width:0; display:flex; flex-direction:column; }
  /* text column (eyebrow + headline + birth line) stacks on the left and takes the
     full remaining width; the Square/Wheel toggle pins top-right. Grid areas keep
     the headline from being squeezed into one-word-per-line (serif wrap bug). */
  body[data-skin="web"] .wc-head{
    display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:20px; row-gap:6px;
    grid-template-areas:"over toggle" "h1 toggle" "birth toggle";
    align-items:start; margin-bottom:24px;
  }
  body[data-skin="web"] .wc-head > .wc-over{ grid-area:over; }
  body[data-skin="web"] .wc-head > .wc-h1{ grid-area:h1; }
  body[data-skin="web"] .wc-head > .wc-birth{ grid-area:birth; }
  body[data-skin="web"] .wc-head > .wc-toggle{ grid-area:toggle; align-self:start; }
  body[data-skin="web"] .wc-h1{ margin:0; font-size:clamp(34px,3.4vw,52px); font-weight:700; letter-spacing:-.03em; color:var(--w-head); max-width:none; line-height:1.04; text-wrap:balance; }
  /* square/wheel toggle: single-line 210px pill (105+105), sliding thumb.
     The thumb is an absolute first child; the two buttons sit on ONE row. */
  body[data-skin="web"] .wc-toggle{ position:relative; display:grid; grid-template-columns:105px 105px; width:210px; gap:0; padding:4px; border-radius:12px; background:var(--w-surface); border:1px solid var(--w-hair); flex:none; }
  body[data-skin="web"] .wc-toggle .wc-tg-thumb{ position:absolute; top:4px; left:4px; width:calc(50% - 4px); height:calc(100% - 8px); border-radius:8px; background:var(--w-btnFill); box-shadow:0 1px 2px rgba(0,0,0,.18); transition:transform .32s cubic-bezier(.22,1,.36,1); z-index:0; }
  body[data-skin="web"] .wc-toggle.wheel .wc-tg-thumb{ transform:translateX(100%); }
  body[data-skin="web"] .wc-tg{ position:relative; z-index:1; text-align:center; background:none; border:0; cursor:pointer; height:38px; font-size:14px; font-weight:500; color:var(--w-t2); border-radius:8px; transition:color .25s ease; }
  body[data-skin="web"] .wc-tg.on{ background:none; color:var(--w-btnText); }

  /* chart always on a NIGHT field (dark even in Vellum) — her #0E1018, radius 28, pad 18 */
  body[data-skin="web"] .wc-panel{
    background:#0E1018; border:1px solid #262A36; border-radius:28px; padding:18px;
    position:relative; z-index:1; overflow:hidden; margin:0;
    box-shadow:0 20px 48px -34px rgba(0,0,0,.45);
  }
  body[data-skin="web"] .wc-panel > svg{ display:block; width:100%; height:auto; max-width:520px; max-height:58vh; margin:0 auto; }

  /* caption: brass kicker (0.14em) + 26px title + italic 21px/300 descriptive line */
  body[data-skin="web"] .wc-cap{ margin-top:32px; position:relative; z-index:2; padding:22px 24px; display:flex; flex-direction:column; gap:10px; }
  body[data-skin="web"] .wc-cap-k{ color:var(--w-brass); }
  body[data-skin="web"] .wc-cap-t{ font-size:26px; font-weight:700; line-height:1.2; color:var(--w-head); letter-spacing:-.005em; }
  body[data-skin="web"] .wc-cap-line{ font-style:italic; font-weight:300; font-size:21px; line-height:1.45; color:var(--w-body); }
  body[data-skin="web"] .wc-cap-link{ font-size:14px; font-weight:500; color:var(--w-accent); }

  /* ---- right rail: your ten readings ---- */
  body[data-skin="web"] .wc-rail{ position:sticky; top:40px; }
  body[data-skin="web"] .wc-rail-head{ display:flex; align-items:baseline; justify-content:space-between; }
  body[data-skin="web"] .wc-rail-title{ margin:0; font-size:28px; font-weight:300; letter-spacing:-.02em; color:var(--w-head); }
  body[data-skin="web"] .wc-count{ font-size:11px; font-weight:700; letter-spacing:.14em; color:var(--w-brass); text-transform:uppercase; }
  /* 10-segment progress bar */
  body[data-skin="web"] .wc-progress{ margin-top:12px; display:grid; grid-template-columns:repeat(10,minmax(0,1fr)); gap:4px; }
  body[data-skin="web"] .wc-progress span{ height:3px; border-radius:2px; background:var(--w-hair); }
  body[data-skin="web"] .wc-progress span.on{ background:var(--w-brass); }

  body[data-skin="web"] .wc-read-list{ margin-top:12px; display:flex; flex-direction:column; }
  body[data-skin="web"] .wc-read-row{
    display:grid; grid-template-columns:44px minmax(0,1fr) auto; gap:12px; align-items:center;
    min-height:68px; padding:10px 12px; margin:0 -12px; border-radius:12px; cursor:pointer;
    border-bottom:1px solid var(--w-raisedBorder); transition:background .18s ease;
  }
  body[data-skin="web"] .wc-read-row:hover{ background:var(--w-surface); }
  /* reading number = italic serif 22px/300; brass when unread, muted when read */
  body[data-skin="web"] .wc-rn{ font-style:italic; font-weight:300; font-size:22px; color:var(--w-brass); }
  body[data-skin="web"] .wc-read-row.read .wc-rn{ color:var(--w-t3); }
  body[data-skin="web"] .wc-rc{ min-width:0; display:flex; flex-direction:column; gap:2px; }
  body[data-skin="web"] .wc-rt{ font-size:19px; font-weight:300; color:var(--w-head); }
  body[data-skin="web"] .wc-rs{ font-size:14px; line-height:1.3; color:var(--w-t2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  body[data-skin="web"] .wc-status{ font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--w-t3); }
  body[data-skin="web"] .wc-status.read{ color:var(--w-t3); }
  body[data-skin="web"] .wc-lock{ font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--w-brass); border:1px solid var(--w-brass); border-radius:6px; padding:1px 6px; }
  body[data-skin="web"] .wc-chev{ color:var(--w-t3); }
  body[data-skin="web"] .wc-read-row.locked .wc-rt{ color:var(--w-t2); }

  /* the XI synastry footer card (bordered) */
  body[data-skin="web"] .wc-syn-card{
    margin-top:18px; display:flex; align-items:center; gap:16px; padding:18px 20px;
    border-radius:18px; border:1px solid var(--w-hair); background:var(--w-surface);
    color:var(--w-head); text-decoration:none;
  }
  body[data-skin="web"] .wc-syn-glyph{ flex:none; }
  body[data-skin="web"] .wc-syn-c{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
  body[data-skin="web"] .wc-syn-t{ font-size:17px; font-weight:300; color:var(--w-head); }
  body[data-skin="web"] .wc-syn-s{ font-size:13px; }
}

/* ============================================================================
   ASK RISHI (W5)
   ========================================================================== */
@media (min-width:1024px){
  body[data-skin="web"].inapp .web-ask{
    display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:44px;
    max-width:1200px; margin:0 auto; padding:40px clamp(24px,4vw,56px) 150px; align-items:start; min-height:100vh;
  }
  body[data-skin="web"] .wk-main{ min-width:0; }
  /* her log column is centered, max 780px; user & answer carry their own vertical rhythm */
  body[data-skin="web"] .wk-log{ display:flex; flex-direction:column; max-width:780px; width:100%; margin:0 auto; }
  /* USER bubble: #181C27, asymmetric radius, max 440px (her exact values) */
  body[data-skin="web"] .wk-u{
    align-self:flex-end; max-width:440px; background:var(--w-raised); color:var(--w-head);
    border:0; border-radius:20px 20px 6px 20px; padding:14px 18px; font-size:16px; line-height:1.5;
    margin-top:26px;
  }
  body[data-skin="web"][data-tone="night"] .wk-u{ background:#181C27; }
  /* Rishi's answer: LEAD para = italic 27px weight 300; rest = 17px body (board W5) */
  body[data-skin="web"] .wk-a{ align-self:stretch; margin-top:28px; }
  body[data-skin="web"] .wk-a .reading{ font-size:17px; line-height:1.7; color:var(--w-body); }
  body[data-skin="web"] .wk-a .reading > p{ margin:16px 0 0; color:var(--w-body); opacity:1; }
  /* her W5 answer has no ✦ glyph above the lead — hide the base chat marker */
  body[data-skin="web"] .wk-a > .reading::before{ content:none; display:none; }
  body[data-skin="web"] .wk-a .reading > p:first-child,
  body[data-skin="web"] .wk-a .reading > :first-child{
    font-style:italic; font-weight:300; font-size:27px; line-height:1.35; letter-spacing:0;
    color:var(--w-body); margin:0;
  }
  body[data-skin="web"] .wk-a .reading strong{ color:var(--w-head); }
  /* her empty state: the sample Q as a dashed card + muted body, not a big hero */
  body[data-skin="web"] .wk-empty{ padding:20px 0 0; max-width:780px; }
  body[data-skin="web"] .wk-empty-h{
    font-size:22px; font-weight:700; letter-spacing:-.01em; color:var(--w-head); margin:0; line-height:1.3;
    padding:28px; border-radius:20px; border:1px dashed var(--w-hair); background:transparent;
  }
  body[data-skin="web"] .wk-empty-p{ font-size:15px; line-height:1.6; color:var(--w-t2); margin-top:16px; }

  /* right rail */
  body[data-skin="web"] .wk-rail{ position:sticky; top:40px; display:flex; flex-direction:column; gap:30px; }
  body[data-skin="web"] .wk-rc-list{ margin-top:12px; display:flex; flex-direction:column; gap:12px; }
  body[data-skin="web"] .wk-rc{ background:var(--w-surface); border:1px solid var(--w-hair); border-radius:14px; padding:13px 15px; }
  body[data-skin="web"] .wk-rc-h{ color:var(--w-brass); }
  body[data-skin="web"] .wk-rc-s{ font-size:13.5px; line-height:1.4; margin-top:5px; }
  body[data-skin="web"] .wk-mem-list{ margin-top:12px; display:flex; flex-direction:column; gap:12px; }
  body[data-skin="web"] .wk-mem{ font-size:14px; line-height:1.5; color:var(--w-body); }
  body[data-skin="web"] .wk-mem-link{ display:inline-block; margin-top:14px; font-size:13.5px; font-weight:500; color:var(--w-accent); }

  /* right-rail suggested questions — a clean, scannable list that follows the chat.
     Tapping one drops it into the composer (railAsk) rather than floating over the reading. */
  body[data-skin="web"] .wk-qlist{ margin-top:4px; display:flex; flex-direction:column; }
  body[data-skin="web"] .wk-qcat{ font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
    color:var(--w-t3); margin:16px 0 2px; }
  body[data-skin="web"] .wk-qcat:first-child{ margin-top:2px; }
  body[data-skin="web"] .wk-q{ all:unset; box-sizing:border-box; display:block; width:100%; cursor:pointer;
    padding:10px 0; font-size:14px; line-height:1.4; color:var(--w-body);
    border-bottom:1px solid var(--w-hair); transition:color .18s; }
  body[data-skin="web"] .wk-q:hover{ color:var(--w-brassHi); }
  body[data-skin="web"] .wk-q:last-child{ border-bottom:none; }
  body[data-skin="web"] .wk-q:focus-visible{ color:var(--w-brassHi); outline:1px solid color-mix(in srgb,var(--w-brass) 50%,transparent); outline-offset:3px; border-radius:4px; }

  /* ---- composer (#chatbar) restyled + centered over the column on the chat tab ---- */
  body[data-skin="web"].inapp[data-tab="chat"] #chatbar{
    display:flex !important; position:fixed; left:260px; right:0; bottom:0;
    justify-content:center; padding:20px 48px 28px; z-index:40;
    background:linear-gradient(to top, var(--w-ground) 55%, transparent);
    backdrop-filter:none; border:0; box-shadow:none;
  }
  body[data-skin="web"].inapp[data-tab="chat"] #chatbar .inputrow{
    width:100%; max-width:760px; background:var(--w-surface); border:1px solid var(--w-hair);
    border-radius:16px; box-shadow:var(--w-cardShadow); padding:8px 8px 8px 18px; align-items:center;
  }
  body[data-skin="web"].inapp[data-tab="chat"] #chatbar #chatinput{
    background:transparent; color:var(--w-body); font-size:15.5px; border:0;
  }
  body[data-skin="web"].inapp[data-tab="chat"] #chatbar #chatinput::placeholder{ color:var(--w-t3); }
  body[data-skin="web"].inapp[data-tab="chat"] #chatbar #sendbtn{
    background:var(--w-btnFill); border-radius:12px; width:40px; height:40px;
  }
  body[data-skin="web"].inapp[data-tab="chat"] #chatbar #sendbtn svg{ fill:var(--w-btnText); }
  body[data-skin="web"].inapp[data-tab="chat"] #chatbar #micbtn{ color:var(--w-t2); }
  /* Desktop: suggested questions live in the right rail (.wk-qlist), so the floating
     composer chip cluster is hidden here — it used to overlap the reading. Mobile keeps
     #chatchips (the rail is hidden < 1024px). */
  body[data-skin="web"].inapp[data-tab="chat"] #chatbar #chatchips{ display:none !important; }
}

/* ============================================================================
   YOU (W6)
   ========================================================================== */
@media (min-width:1024px){
  body[data-skin="web"].inapp .web-you{
    display:grid; grid-template-columns:200px minmax(0,1fr); gap:48px;
    max-width:1180px; margin:0 auto; padding:40px 48px 80px; align-items:start;
  }
  body[data-skin="web"] .wy-nav{ position:sticky; top:40px; display:flex; flex-direction:column; gap:2px; }
  body[data-skin="web"] .wy-nav-h{ margin-bottom:10px; color:var(--w-t3); }
  body[data-skin="web"] .wy-nav a{ font-size:14.5px; color:var(--w-t2); padding:7px 0; transition:color .18s; }
  body[data-skin="web"] .wy-nav a:hover{ color:var(--w-head); }
  body[data-skin="web"] .wy-main{ min-width:0; max-width:860px; }

  body[data-skin="web"] .wy-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:28px; }
  body[data-skin="web"] .wy-name{ margin:0; font-size:clamp(40px,4.2vw,56px); font-weight:700; letter-spacing:-.03em; color:var(--w-head); line-height:1; }
  body[data-skin="web"] .wy-born{ margin-top:12px; font-size:14.5px; }
  body[data-skin="web"] .wy-edit{ display:inline-block; margin-top:10px; font-size:13.5px; font-weight:500; color:var(--w-accent); }
  body[data-skin="web"] .wy-chips{ display:flex; gap:10px; flex:none; }
  body[data-skin="web"] .wy-chip{ background:var(--w-surface); border:1px solid var(--w-hair); border-radius:12px; padding:10px 16px; min-width:74px; }
  body[data-skin="web"] .wy-chip .w-over{ color:var(--w-t3); }
  body[data-skin="web"] .wy-chip .w-over{ font-size:9px; }
  body[data-skin="web"] .wy-chip-s{ margin-top:4px; font-size:17px; font-weight:400; color:var(--w-head); letter-spacing:0; }

  body[data-skin="web"] .wy-card{ padding:28px; margin-bottom:18px; border-radius:20px; }
  /* Rishi's Memory — closed-by-default accordion (her instruction: don't leave it exposed) */
  body[data-skin="web"] .wy-acc-toggle{ display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; background:none; border:0; padding:0; cursor:pointer; color:inherit; text-align:left; }
  body[data-skin="web"] .wy-acc-meta{ display:flex; align-items:center; gap:12px; flex:none; }
  body[data-skin="web"] .wy-count-pill{ font-size:13px; font-weight:600; color:var(--w-brass); background:color-mix(in srgb,var(--w-brass) 14%, transparent); border:1px solid color-mix(in srgb,var(--w-brass) 34%, transparent); border-radius:999px; padding:4px 11px; font-variant-numeric:tabular-nums; }
  body[data-skin="web"] .wy-acc-chev{ color:var(--w-t3); transition:transform .28s cubic-bezier(.22,1,.36,1); }
  body[data-skin="web"] .wy-acc-body{ max-height:0; overflow:hidden; opacity:0; margin-top:0; transition:max-height .4s cubic-bezier(.22,1,.36,1), opacity .25s ease, margin-top .3s ease; }
  body[data-skin="web"] .wy-acc.wy-acc-open .wy-acc-body{ max-height:3000px; opacity:1; margin-top:18px; }
  body[data-skin="web"] .wy-acc.wy-acc-open .wy-acc-chev{ transform:rotate(180deg); }
  body[data-skin="web"] .wy-card-head{ display:flex; align-items:baseline; justify-content:space-between; }
  /* her H2 = 26px weight 400 (not bold) */
  body[data-skin="web"] .wy-h2{ margin:0; font-size:26px; font-weight:400; letter-spacing:-.005em; color:var(--w-head); }
  body[data-skin="web"] .wy-count{ color:var(--w-brass); }
  body[data-skin="web"] .wy-card-sub{ margin:10px 0 18px; font-size:14.5px; line-height:1.55; max-width:62ch; }
  body[data-skin="web"] .wy-fact-list{ display:flex; flex-direction:column; }
  body[data-skin="web"] .wy-fact{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px 0; border-top:1px solid var(--w-hair); }
  body[data-skin="web"] .wy-fact-t{ font-size:15.5px; color:var(--w-head); }
  body[data-skin="web"] .wy-forget{ flex:none; background:var(--w-raised); border:1px solid var(--w-hair); color:var(--w-t2); border-radius:9px; padding:7px 15px; font-size:13px; cursor:pointer; transition:border-color .2s,color .2s; }
  body[data-skin="web"] .wy-forget:hover{ color:var(--w-head); border-color:var(--w-t3); }
  body[data-skin="web"] .wy-add{ display:inline-block; margin-top:16px; font-size:14px; font-weight:500; color:var(--w-accent); }

  body[data-skin="web"] .wy-people-list{ display:flex; flex-direction:column; }
  body[data-skin="web"] .wy-person{ display:flex; align-items:center; gap:16px; padding:14px 0; border-top:1px solid var(--w-hair); cursor:pointer; }
  body[data-skin="web"] .wy-people-list .wy-person:first-child{ border-top:0; }
  body[data-skin="web"] .wy-person-av{ flex:none; width:40px; height:40px; border-radius:50%; border:1px solid var(--w-brass); position:relative; }
  body[data-skin="web"] .wy-person-av::before,
  body[data-skin="web"] .wy-person-av::after{ content:""; position:absolute; top:9px; width:22px; height:22px; border-radius:50%; border:1px solid var(--w-brass); opacity:.6; }
  body[data-skin="web"] .wy-person-av::before{ left:4px; }
  body[data-skin="web"] .wy-person-av::after{ left:13px; }
  body[data-skin="web"] .wy-person-c{ flex:1; min-width:0; }
  body[data-skin="web"] .wy-person-rel{ color:var(--w-brass); }
  body[data-skin="web"] .wy-person-n{ font-size:17px; font-weight:500; color:var(--w-head); margin-top:2px; }
  body[data-skin="web"] .wy-person-b{ font-size:13px; margin-top:2px; }

  /* membership card */
  body[data-skin="web"] .wy-member-top{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; }
  body[data-skin="web"] .wy-plan{ color:var(--w-brass); }
  body[data-skin="web"] .wy-member-benefits{ display:grid; grid-template-columns:1fr 1fr; gap:10px 32px; margin:18px 0 22px; font-size:14.5px; color:var(--w-body); }
  body[data-skin="web"] .wy-member-cta{ display:flex; gap:12px; }
  body[data-skin="web"] .wy-btn-primary{ background:var(--w-btnFill); color:var(--w-btnText); border:0; border-radius:12px; padding:12px 22px; font-size:14.5px; font-weight:500; cursor:pointer; }
  body[data-skin="web"] .wy-btn-ghost{ background:none; border:1px solid var(--w-hair); color:var(--w-head); border-radius:12px; padding:12px 22px; font-size:14.5px; font-weight:500; cursor:pointer; }

  /* appearance / follow-the-sky settings card */
  body[data-skin="web"] .wy-set-row{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
  body[data-skin="web"] .wy-set-c{ min-width:0; display:flex; flex-direction:column; }
  body[data-skin="web"] .wy-set-t{ display:block; font-size:17px; color:var(--w-head); }
  body[data-skin="web"] .wy-set-s{ display:block; font-size:14px; line-height:1.5; margin-top:3px; max-width:46ch; }
  body[data-skin="web"] .wy-seg{ display:flex; gap:2px; padding:3px; border-radius:999px; background:var(--w-raised); border:1px solid var(--w-hair); flex:none; }
  body[data-skin="web"] .wy-seg-b{ background:none; border:0; cursor:pointer; font-size:13px; font-weight:500; color:var(--w-t2); padding:6px 14px; border-radius:999px; transition:background .2s,color .2s; }
  body[data-skin="web"] .wy-seg-b.on{ background:var(--w-btnFill); color:var(--w-btnText); }
  body[data-skin="web"] .wy-set-link{ display:inline-block; margin-top:16px; font-size:14px; font-weight:500; color:var(--w-accent); }

  /* preferences card: rows separated by hairlines, toggle switch on the right */
  body[data-skin="web"] #wy-prefs{ display:flex; flex-direction:column; }
  body[data-skin="web"] #wy-prefs .wy-set-row{ width:100%; text-align:left; background:none; border:0; border-top:1px solid var(--w-hair); padding:16px 0; cursor:pointer; }
  body[data-skin="web"] #wy-prefs .wy-set-row:first-child{ border-top:0; }
  body[data-skin="web"] .wy-switch{ flex:none; width:46px; height:28px; border-radius:14px; background:var(--w-hair); position:relative; transition:background .25s ease; }
  body[data-skin="web"] .wy-switch.on{ background:var(--w-accent); }
  body[data-skin="web"] .wy-switch i{ position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:50%; background:var(--w-head); transition:transform .25s cubic-bezier(.22,1,.36,1); }
  body[data-skin="web"] .wy-switch.on i{ transform:translateX(18px); background:var(--w-btnText); }

  /* your data card */
  body[data-skin="web"] .wy-data-list{ display:flex; flex-direction:column; }
  body[data-skin="web"] .wy-data-row{ display:flex; align-items:center; gap:14px; text-align:left; background:none; border:0; border-top:1px solid var(--w-hair); color:var(--w-head); font-size:15.5px; padding:15px 0; cursor:pointer; width:100%; }
  body[data-skin="web"] .wy-data-row:first-child{ border-top:0; }
  body[data-skin="web"] .wy-data-row:hover{ color:var(--w-accent); }
  body[data-skin="web"] .wy-data-ic{ flex:none; width:20px; height:20px; }
  body[data-skin="web"] .wy-data-static{ cursor:default; }
  body[data-skin="web"] .wy-data-static:hover{ color:var(--w-head); }
  body[data-skin="web"] .wy-data-sub{ color:var(--w-t2); }
  body[data-skin="web"] .wy-foot{ margin:18px 4px 0; font-size:12px; line-height:1.6; color:var(--w-t3); }
  body[data-skin="web"] .wy-foot a{ color:var(--w-accent); text-decoration:underline; }

  /* ---- READING ROOM (chapter article + left reading-nav I→XI) ---- */
  body[data-skin="web"].inapp .web-reading{
    display:grid; grid-template-columns:240px minmax(0,1fr); gap:48px;
    max-width:1120px; margin:0 auto; padding:40px clamp(24px,4vw,56px) 96px; align-items:start; min-height:100vh;
  }
  body[data-skin="web"] .wr-nav{ position:sticky; top:40px; display:flex; flex-direction:column; gap:2px; }
  body[data-skin="web"] .wr-nav-back{ display:inline-block; color:var(--w-t2); font-size:14px; margin-bottom:14px; }
  body[data-skin="web"] .wr-nav-back:hover{ color:var(--w-head); }
  body[data-skin="web"] .wr-nav-h{ color:var(--w-t3); margin-bottom:8px; }
  body[data-skin="web"] .wr-nav-row{ display:grid; grid-template-columns:30px 1fr; gap:10px; align-items:center; padding:9px 12px; margin:0 -12px; border-radius:10px; cursor:pointer; }
  body[data-skin="web"] .wr-nav-row:hover{ background:var(--w-surface); }
  body[data-skin="web"] .wr-nav-row.on{ background:var(--w-navact); box-shadow:var(--w-navActShadow); }
  body[data-skin="web"] .wr-nav-rn{ font-size:16px; font-weight:700; letter-spacing:-.02em; color:var(--w-brass); text-align:center; }
  body[data-skin="web"] .wr-nav-row.read .wr-nav-rn{ color:var(--w-t3); }
  body[data-skin="web"] .wr-nav-row.on .wr-nav-rn{ color:var(--w-accentHi); }
  body[data-skin="web"] .wr-nav-t{ font-size:14.5px; color:var(--w-t2); line-height:1.3; }
  body[data-skin="web"] .wr-nav-row.on .wr-nav-t,
  body[data-skin="web"] .wr-nav-row:hover .wr-nav-t{ color:var(--w-head); }
  body[data-skin="web"] .wr-nav-syn{ margin-top:8px; border-top:1px solid var(--w-hair); padding-top:14px; }

  body[data-skin="web"] .wr-article{ max-width:720px; }
  body[data-skin="web"] .wr-chapbar{ margin-bottom:24px; }
  body[data-skin="web"] .wr-crumb{ color:var(--w-t3); }
  body[data-skin="web"] .wr-numeral{ display:block; color:var(--w-brass); font-size:64px; font-weight:700; letter-spacing:-.03em; line-height:1; }
  body[data-skin="web"] .wr-chlabel{ display:block; color:var(--w-t3); margin-top:14px; }
  body[data-skin="web"] .wr-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
  body[data-skin="web"] .wr-timeline{ margin-top:22px; }
  body[data-skin="web"] .wr-body{ margin-top:22px; font-size:18px; line-height:1.75; color:var(--w-body); }
  body[data-skin="web"] .wr-body .pullquote{ color:var(--w-accentHi); font-size:30px; font-weight:700; line-height:1.3; letter-spacing:-.02em; margin:24px 0; }
  body[data-skin="web"] .wr-body h2,
  body[data-skin="web"] .wr-body h3{ color:var(--w-head); }
  body[data-skin="web"] .wr-body strong{ color:var(--w-head); }
}

/* mobile reading room: single column, nav collapses to a horizontal scroller */
@media (max-width:1023px){
  body[data-skin="web"] .web-reading{ display:block; padding:12px 20px 120px; }
  body[data-skin="web"] .wr-nav{ position:static; display:flex; flex-direction:row; flex-wrap:nowrap; overflow-x:auto; gap:6px; -webkit-overflow-scrolling:touch; margin:0 -20px 16px; padding:0 20px 8px; }
  body[data-skin="web"] .wr-nav-back{ display:none; }
  body[data-skin="web"] .wr-nav-h{ display:none; }
  body[data-skin="web"] .wr-nav-row{ flex:none; grid-template-columns:auto; margin:0; padding:8px 12px; border:1px solid var(--w-hair); border-radius:999px; }
  body[data-skin="web"] .wr-nav-row .wr-nav-t{ display:none; }
  body[data-skin="web"] .wr-nav-row.on{ background:var(--w-btnFill); box-shadow:none; }
  body[data-skin="web"] .wr-nav-row.on .wr-nav-rn{ color:var(--w-btnText); }
  body[data-skin="web"] .wr-numeral{ font-size:48px; }
  body[data-skin="web"] .wr-body{ font-size:16.5px; }
}

/* ----------------------------------------------------------------------------
   YOU (W6) — MOBILE. The full .wy-* component set above lives inside
   @media(min-width:1024px), so on the phone its icons (.wy-data-ic) rendered
   at their intrinsic SVG size (≈170px) and the .wy-switch collapsed to 0×0 and
   rows lost their flex layout. This block gives every You row proper mobile
   sizing: single-column cards, 20px icons, a real toggle, flexed rows.
   ------------------------------------------------------------------------- */
@media (max-width:1023px){
  body[data-skin="web"] .web-you{ display:block; }
  body[data-skin="web"] .wy-nav{ display:none; }                 /* desktop sub-nav hidden on phone */
  body[data-skin="web"] .wy-main{ min-width:0; width:100%; }

  /* header: name + born + chips stack */
  body[data-skin="web"] .wy-top{ display:block; margin-bottom:22px; }
  body[data-skin="web"] .wy-name{ margin:0; font-size:clamp(34px,10vw,44px); font-weight:700; letter-spacing:-.03em; color:var(--w-head); line-height:1; }
  body[data-skin="web"] .wy-born{ margin-top:10px; font-size:14px; }
  body[data-skin="web"] .wy-edit{ display:inline-block; margin-top:8px; font-size:13.5px; font-weight:500; color:var(--w-accent); }
  body[data-skin="web"] .wy-chips{ display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-top:18px; }
  body[data-skin="web"] .wy-chip{ background:var(--w-surface); border:1px solid var(--w-hair); border-radius:14px; padding:12px 14px; min-width:0; }
  body[data-skin="web"] .wy-chip .w-over{ font-size:9px; color:var(--w-t3); }
  body[data-skin="web"] .wy-chip-s{ margin-top:4px; font-size:17px; color:var(--w-head); }

  /* cards: full-width, comfortable phone padding */
  body[data-skin="web"] .wy-card{ padding:20px; margin-bottom:14px; border-radius:18px; }
  body[data-skin="web"] .wy-h2{ margin:0; font-size:22px; font-weight:400; letter-spacing:-.005em; color:var(--w-head); }
  body[data-skin="web"] .wy-card-sub{ margin:8px 0 14px; font-size:14px; line-height:1.55; }

  /* Rishi's Memory accordion */
  body[data-skin="web"] .wy-acc-toggle{ display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; background:none; border:0; padding:0; cursor:pointer; color:inherit; text-align:left; }
  body[data-skin="web"] .wy-acc-meta{ display:flex; align-items:center; gap:10px; flex:none; }
  body[data-skin="web"] .wy-count-pill{ font-size:12.5px; font-weight:600; color:var(--w-brass); background:color-mix(in srgb,var(--w-brass) 14%, transparent); border:1px solid color-mix(in srgb,var(--w-brass) 34%, transparent); border-radius:999px; padding:3px 10px; font-variant-numeric:tabular-nums; }
  body[data-skin="web"] .wy-acc-chev{ width:16px; height:16px; color:var(--w-t3); transition:transform .28s cubic-bezier(.22,1,.36,1); }
  body[data-skin="web"] .wy-acc-body{ max-height:0; overflow:hidden; opacity:0; margin-top:0; transition:max-height .4s cubic-bezier(.22,1,.36,1), opacity .25s ease, margin-top .3s ease; }
  body[data-skin="web"] .wy-acc.wy-acc-open .wy-acc-body{ max-height:3000px; opacity:1; margin-top:14px; }
  body[data-skin="web"] .wy-acc.wy-acc-open .wy-acc-chev{ transform:rotate(180deg); }
  body[data-skin="web"] .wy-fact-list{ display:flex; flex-direction:column; }
  body[data-skin="web"] .wy-fact{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 0; border-top:1px solid var(--w-hair); }
  body[data-skin="web"] .wy-fact-t{ font-size:15px; color:var(--w-head); }
  body[data-skin="web"] .wy-forget{ flex:none; background:var(--w-raised); border:1px solid var(--w-hair); color:var(--w-t2); border-radius:9px; padding:6px 13px; font-size:12.5px; cursor:pointer; }
  body[data-skin="web"] .wy-add{ display:inline-block; margin-top:14px; font-size:14px; font-weight:500; color:var(--w-accent); }

  /* Your people */
  body[data-skin="web"] .wy-people-list{ display:flex; flex-direction:column; }
  body[data-skin="web"] .wy-person{ display:flex; align-items:center; gap:14px; padding:13px 0; border-top:1px solid var(--w-hair); cursor:pointer; }
  body[data-skin="web"] .wy-people-list .wy-person:first-child{ border-top:0; }
  body[data-skin="web"] .wy-person-av{ flex:none; width:38px; height:38px; border-radius:50%; border:1px solid var(--w-brass); position:relative; }
  body[data-skin="web"] .wy-person-c{ flex:1; min-width:0; }
  body[data-skin="web"] .wy-person-rel{ color:var(--w-brass); }
  body[data-skin="web"] .wy-person-n{ font-size:16px; font-weight:500; color:var(--w-head); margin-top:2px; }
  body[data-skin="web"] .wy-person-b{ font-size:12.5px; margin-top:2px; }

  /* Membership card */
  body[data-skin="web"] .wy-member-top{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; }
  body[data-skin="web"] .wy-plan{ color:var(--w-brass); }
  body[data-skin="web"] .wy-member-benefits{ display:flex; flex-direction:column; gap:9px; margin:16px 0 18px; font-size:14.5px; color:var(--w-body); }
  body[data-skin="web"] .wy-member-cta{ display:flex; flex-direction:column; gap:10px; }
  body[data-skin="web"] .wy-btn-primary{ background:var(--w-btnFill); color:var(--w-btnText); border:0; border-radius:12px; padding:13px 20px; font-size:15px; font-weight:500; cursor:pointer; width:100%; }
  body[data-skin="web"] .wy-btn-ghost{ background:none; border:1px solid var(--w-hair); color:var(--w-head); border-radius:12px; padding:13px 20px; font-size:14.5px; font-weight:500; cursor:pointer; width:100%; }

  /* tappable row cards (Deep Reports, Appearance) */
  body[data-skin="web"] .wy-row-btn{ width:100%; text-align:left; background:var(--w-surface); cursor:pointer; }
  body[data-skin="web"] .wy-set-row{ display:flex; align-items:center; justify-content:space-between; gap:16px; }
  body[data-skin="web"] .wy-set-c{ min-width:0; display:flex; flex-direction:column; }
  body[data-skin="web"] .wy-set-t{ display:block; font-size:16px; color:var(--w-head); }
  body[data-skin="web"] .wy-set-s{ display:block; font-size:13.5px; line-height:1.5; margin-top:3px; max-width:none; }
  body[data-skin="web"] .wy-row-chev{ flex:none; width:18px; height:18px; }

  /* Notifications & preferences — the "7:30 time to your Moon" row + switch */
  body[data-skin="web"] #wy-prefs{ display:flex; flex-direction:column; }
  body[data-skin="web"] #wy-prefs .wy-set-row{ width:100%; text-align:left; background:none; border:0; border-top:1px solid var(--w-hair); padding:15px 0; cursor:pointer; }
  body[data-skin="web"] #wy-prefs .wy-set-row:first-child{ border-top:0; }
  body[data-skin="web"] .wy-switch{ flex:none; width:46px; height:28px; border-radius:14px; background:var(--w-hair); position:relative; transition:background .25s ease; }
  body[data-skin="web"] .wy-switch.on{ background:var(--w-accent); }
  body[data-skin="web"] .wy-switch i{ position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:50%; background:var(--w-head); transition:transform .25s cubic-bezier(.22,1,.36,1); }
  body[data-skin="web"] .wy-switch.on i{ transform:translateX(18px); background:var(--w-btnText); }

  /* Your data — the "Synced in / Download / Restore" rows + their icons */
  body[data-skin="web"] .wy-data-list{ display:flex; flex-direction:column; }
  body[data-skin="web"] .wy-data-row{ display:flex; align-items:center; gap:13px; text-align:left; background:none; border:0; border-top:1px solid var(--w-hair); color:var(--w-head); font-size:15px; padding:14px 0; cursor:pointer; width:100%; }
  body[data-skin="web"] .wy-data-row:first-child{ border-top:0; }
  body[data-skin="web"] .wy-data-ic{ flex:none; width:20px; height:20px; }
  body[data-skin="web"] .wy-data-static{ cursor:default; }
  body[data-skin="web"] .wy-data-sub{ color:var(--w-t2); }
  body[data-skin="web"] .wy-data-static .wy-set-c{ min-width:0; }
  body[data-skin="web"] .wy-data-static .wy-set-t{ font-size:15px; }
  body[data-skin="web"] .wy-data-static .wy-set-s{ font-size:13px; margin-top:2px; }

  body[data-skin="web"] .wy-foot{ margin:16px 2px 0; font-size:12px; line-height:1.6; color:var(--w-t3); }
  body[data-skin="web"] .wy-foot a{ color:var(--w-accent); text-decoration:underline; }
}

/* ============================================================================
   SKY (S1 living-sky surface) — the in-app "Sky" tab (iframe mount)
   ========================================================================== */
body[data-skin="web"] .web-sky{ width:100%; }
body[data-skin="web"] .web-sky-head{ padding:0 0 6px; }
body[data-skin="web"] .web-sky-k{ color:var(--w-brass); }
body[data-skin="web"] .web-sky-h1{ margin:8px 0 0; font-size:clamp(30px,3.4vw,46px); font-weight:700; letter-spacing:-.02em; color:var(--w-head); line-height:1.04; }
body[data-skin="web"] .web-sky-sub{ margin:12px 0 0; font-size:15.5px; line-height:1.6; max-width:640px; }
body[data-skin="web"] .web-sky-frame{ display:block; width:100%; min-height:560px; border:0; border-radius:20px; overflow:hidden; background:transparent; margin-top:18px; }
body[data-skin="web"] .web-sky-empty{ max-width:560px; margin:8vh auto 0; text-align:center; display:flex; flex-direction:column; align-items:center; gap:4px; color:var(--w-body); }
@media (min-width:1024px){
  body[data-skin="web"].inapp .web-sky{ max-width:1180px; margin:0 auto; padding:40px clamp(24px,4vw,56px) 72px; }
}
@media (max-width:1023px){
  body[data-skin="web"] .web-sky{ padding:18px 18px 110px; }
  body[data-skin="web"] .web-sky-frame{ border-radius:16px; }
}

/* ============================================================================
   WINDOWS (W4)
   ========================================================================== */
@media (min-width:1024px){
  body[data-skin="web"].inapp .web-win{ max-width:1120px; margin:0 auto; padding:40px clamp(24px,4vw,56px) 72px; }
  body[data-skin="web"] .ww-range{ color:var(--w-t3); }
  body[data-skin="web"] .ww-h1{ margin:8px 0 0; font-size:clamp(38px,4vw,52px); font-weight:700; letter-spacing:-.03em; color:var(--w-head); line-height:1.02; }
  body[data-skin="web"] .ww-sub{ margin:12px 0 0; font-size:17px; line-height:1.6; color:var(--w-t2); max-width:620px; }

  /* timeline — S2 DRAWN ARCHES: desktop layout (structure/colours are GLOBAL below) */
  body[data-skin="web"] .ww-timeline{ margin-top:26px; padding:20px 26px 14px; position:relative; }

  /* filters */
  body[data-skin="web"] .ww-filters{ margin:22px 0 0; display:flex; gap:8px; flex-wrap:wrap; }
  body[data-skin="web"] .ww-chip{ background:var(--w-surface); border:1px solid var(--w-hair); color:var(--w-t2); border-radius:999px; padding:7px 16px; font-size:13.5px; cursor:pointer; transition:all .2s; }
  body[data-skin="web"] .ww-chip.on{ background:var(--w-raised); color:var(--w-head); border-color:var(--w-brass); }

  /* body: list + detail */
  body[data-skin="web"] .ww-body{ display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:40px; margin-top:24px; align-items:start; }
  body[data-skin="web"] .ww-list{ min-width:0; }
  body[data-skin="web"] .ww-list .evcard{ background:transparent !important; box-shadow:none !important; border:0 !important; border-bottom:1px solid var(--w-hair) !important; border-radius:0 !important; padding:16px 2px !important; margin:0 !important; }
  body[data-skin="web"] .ww-list .evcard .evtitle{ color:var(--w-head); }
  body[data-skin="web"] .ww-list .evcard .evdate .d{ color:var(--w-brass); }
  body[data-skin="web"] .ww-list .evcard .evdate .m,
  body[data-skin="web"] .ww-list .evcard .evmeta,
  body[data-skin="web"] .ww-list .evcard .evhouse{ color:var(--w-t2); }
  body[data-skin="web"] .ww-list .evcard .evwhat,
  body[data-skin="web"] .ww-list .evcard .evsub{ color:var(--w-body); }
  body[data-skin="web"] .ww-list .winhero,
  body[data-skin="web"] .ww-list .winhero-lab{ display:none; } /* the web layout leads with the timeline instead */

  /* detail panel: #11141D, border #262A36, radius 22, pad 28 (her W4) */
  body[data-skin="web"] .ww-detail{ position:sticky; top:40px; padding:28px; border-radius:22px; background:var(--w-raised); border:1px solid var(--w-hair); }
  body[data-skin="web"][data-tone="night"] .ww-detail{ background:#11141D; border-color:#262A36; }
  body[data-skin="web"] .ww-d-cat{ color:var(--w-t2); letter-spacing:.1em; }
  /* detail H2 = 34px weight 300, -0.02em (her exact) */
  body[data-skin="web"] .ww-d-h{ margin:8px 0 0; font-size:34px; font-weight:700; letter-spacing:-.02em; color:var(--w-head); line-height:1.08; }
  body[data-skin="web"] .ww-d-b{ margin:12px 0 0; font-size:16px; line-height:1.65; color:var(--w-body); }
  /* THE MOVE = gold-tinted sub-card (her brass border + rgba tint) */
  body[data-skin="web"] .ww-move{ margin-top:18px; border-radius:16px; border:1px solid #3A3424; background:rgba(200,164,106,0.06); padding:18px 20px; display:flex; flex-direction:column; gap:6px; }
  body[data-skin="web"][data-tone="vellum"] .ww-move{ border-color:#D8C49A; background:rgba(122,92,40,0.07); }
  body[data-skin="web"] .ww-move .w-over{ color:var(--w-brass); }
  body[data-skin="web"] .ww-move-t{ font-size:20px; color:var(--w-head); line-height:1.35; font-weight:300; }
  /* two-button action row */
  body[data-skin="web"] .ww-d-actions{ margin-top:18px; display:flex; flex-wrap:wrap; gap:10px; }
  body[data-skin="web"] .ww-d-primary{ min-height:48px; padding:0 20px; border-radius:12px; border:0; background:var(--w-btnFill); color:var(--w-btnText); font-size:15px; font-weight:500; cursor:pointer; }
  body[data-skin="web"] .ww-d-ghost{ min-height:48px; padding:0 20px; border-radius:12px; border:1px solid var(--w-hair); background:transparent; color:var(--w-head); font-size:15px; cursor:pointer; }
  body[data-skin="web"] .ww-d-ghost:hover{ border-color:var(--w-brass); }
  body[data-skin="web"] .ww-detail .reading{ color:var(--w-body); font-size:15px; line-height:1.65; margin-top:14px; }
}

/* ============================================================================
   DEEP REPORTS (board W) — desktop
   ========================================================================== */
@media (min-width:1024px){
  body[data-skin="web"].inapp .web-reports{ max-width:1080px; margin:0 auto; padding:40px clamp(24px,4vw,56px) 80px; }
  /* gold-tinted hero (her .rpthero) */
  body[data-skin="web"] .web-reports .rpthero{
    display:flex; flex-direction:column; gap:10px; padding:34px;
    border-radius:24px; border:1px solid #3A3424; background:rgba(200,164,106,0.06);
    box-shadow:var(--w-cardShadow);
  }
  body[data-skin="web"][data-tone="vellum"] .web-reports .rpthero{ border-color:#D8C49A; background:rgba(122,92,40,0.07); }
  body[data-skin="web"] .web-reports .rpthero .rk{ color:var(--w-brass); }
  body[data-skin="web"] .web-reports .rpthero h1{ margin:0; font-size:40px; line-height:1.05; letter-spacing:-.02em; font-weight:700; color:var(--w-head); }
  body[data-skin="web"] .web-reports .rpthero p{ margin:0; color:var(--w-body); font-size:17px; line-height:1.55; max-width:620px; }
  /* 2-col grid of bordered cards */
  body[data-skin="web"] .web-reports .rptgrid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-top:16px; }
  body[data-skin="web"] .web-reports .rptcard{
    display:flex; flex-direction:column; gap:10px; min-height:190px; padding:24px;
    border-radius:20px; background:var(--w-surface); border:1px solid var(--w-hair);
    box-shadow:var(--w-cardShadow);
  }
  body[data-skin="web"] .web-reports .rptcard.wide{ grid-column:1 / -1; min-height:0; }
  body[data-skin="web"] .web-reports .rptcard[role="button"]{ cursor:pointer; }
  body[data-skin="web"] .web-reports .rptico{ width:30px; height:30px; stroke:var(--w-brass); fill:none; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
  body[data-skin="web"] .web-reports .rt{ font-size:22px; font-weight:700; letter-spacing:-.01em; color:var(--w-head); }
  body[data-skin="web"] .web-reports .rteaser{ flex:1; color:var(--w-body); font-size:15px; line-height:1.5; }
  body[data-skin="web"] .web-reports .rptbadge{
    align-self:flex-start; background:var(--w-brass); color:var(--w-btnText);
    font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
    border-radius:6px; padding:4px 8px;
  }
  body[data-skin="web"] .web-reports .rfoot{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:4px; }
  body[data-skin="web"] .web-reports .rprice{ font-size:20px; color:var(--w-head); }
  body[data-skin="web"] .web-reports .rprice small{ color:var(--w-t2); font-size:13px; }
  body[data-skin="web"] .web-reports .rptunlock{
    flex:none; min-height:44px; padding:0 18px; border:0; border-radius:12px; cursor:pointer;
    background:var(--w-btnFill); color:var(--w-btnText); font-size:14px; font-weight:500;
  }
  body[data-skin="web"] .web-reports .rptowned{ display:flex; align-items:center; gap:8px; color:var(--w-brass); font-size:14px; font-weight:500; }
  body[data-skin="web"] .web-reports .rptgen{ color:var(--w-t2); font-size:15px; padding:20px 2px; }
  /* explainer: what a deep report is + the 3-step journey */
  body[data-skin="web"] .web-reports .rptsteps{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:16px; }
  body[data-skin="web"] .rptstep{ display:flex; gap:12px; align-items:flex-start; padding:16px 18px; border-radius:16px; background:var(--w-surface); border:1px solid var(--w-hair); }
  body[data-skin="web"] .rptstep-n{ flex:none; width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--w-brass); color:var(--w-btnText); font-size:12px; font-weight:700; }
  body[data-skin="web"] .rptstep-t{ font-size:15.5px; font-weight:600; color:var(--w-head); }
  body[data-skin="web"] .rptstep-s{ font-size:13.5px; line-height:1.5; margin-top:3px; }
  /* report read view (reading-room column) */
  body[data-skin="web"] .web-reports .rptread{ max-width:760px; margin:0 auto; }
  body[data-skin="web"] .web-reports .rptread-top{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; }
  body[data-skin="web"] .web-reports .rptread-h{ margin:8px 0 0; font-size:38px; line-height:1.05; letter-spacing:-.02em; font-weight:700; color:var(--w-head); }
  body[data-skin="web"] .web-reports .rptread .rk{ color:var(--w-brass); }
  body[data-skin="web"] .web-reports .rptread-doc{ margin-top:24px; font-size:18px; line-height:1.75; color:var(--w-body); }
  body[data-skin="web"] .web-reports .rptread-doc .pullquote{ color:var(--w-accentHi); font-size:28px; font-weight:700; line-height:1.3; margin:22px 0; }
  body[data-skin="web"] .web-reports .rptread-doc h2,
  body[data-skin="web"] .web-reports .rptread-doc h3{ color:var(--w-head); }
  body[data-skin="web"] .web-reports .rptread-doc strong{ color:var(--w-head); }
  body[data-skin="web"] .web-reports .rptread-foot{ margin-top:36px; font-size:13px; }
}
/* DEEP REPORTS — mobile (single column, board register) */
@media (max-width:1023px){
  body[data-skin="web"] .web-reports{ display:block; padding:56px 28px 140px; max-width:640px; margin:0 auto; }
  body[data-skin="web"] .web-reports .rpthero{
    display:flex; flex-direction:column; gap:10px; padding:26px;
    border-radius:22px; border:1px solid #3A3424; background:rgba(200,164,106,0.06);
  }
  body[data-skin="web"][data-tone="vellum"] .web-reports .rpthero{ border-color:#D8C49A; background:rgba(122,92,40,0.07); }
  body[data-skin="web"] .web-reports .rpthero .rk{ color:var(--w-brass);
    font:700 11px/1 "Google Sans",ui-sans-serif,system-ui,sans-serif; letter-spacing:.14em; text-transform:uppercase; }
  body[data-skin="web"] .web-reports .rpthero h1{ margin:0; font-size:32px; line-height:1.08; letter-spacing:-.02em; font-weight:700; color:var(--w-head); }
  body[data-skin="web"] .web-reports .rpthero p{ margin:0; color:var(--w-body); font-size:15.5px; line-height:1.55; }
  body[data-skin="web"] .web-reports .rptgrid{ display:flex; flex-direction:column; gap:14px; margin-top:16px; }
  body[data-skin="web"] .web-reports .rptcard{
    display:flex; flex-direction:column; gap:10px; padding:22px;
    border-radius:20px; background:var(--w-surface); border:1px solid var(--w-hair); box-shadow:var(--w-cardShadow);
  }
  body[data-skin="web"] .web-reports .rptcard[role="button"]{ cursor:pointer; }
  body[data-skin="web"] .web-reports .rptico{ width:28px; height:28px; stroke:var(--w-brass); fill:none; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
  body[data-skin="web"] .web-reports .rt{ font-size:21px; font-weight:700; letter-spacing:-.01em; color:var(--w-head); }
  body[data-skin="web"] .web-reports .rteaser{ color:var(--w-body); font-size:15px; line-height:1.5; }
  body[data-skin="web"] .web-reports .rptbadge{ align-self:flex-start; background:var(--w-brass); color:var(--w-btnText); font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; border-radius:6px; padding:4px 8px; }
  body[data-skin="web"] .web-reports .rfoot{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:2px; }
  body[data-skin="web"] .web-reports .rprice{ font-size:19px; color:var(--w-head); }
  body[data-skin="web"] .web-reports .rprice small{ color:var(--w-t2); font-size:13px; }
  body[data-skin="web"] .web-reports .rptunlock{ flex:none; min-height:44px; padding:0 18px; border:0; border-radius:12px; cursor:pointer; background:var(--w-btnFill); color:var(--w-btnText); font-size:14px; font-weight:500; }
  body[data-skin="web"] .web-reports .rptowned{ display:flex; align-items:center; gap:8px; color:var(--w-brass); font-size:14px; font-weight:500; }
  body[data-skin="web"] .web-reports .rptgen{ color:var(--w-t2); font-size:15px; padding:18px 2px; }
}

/* ============================================================================
   MOBILE APP SKIN  (max-width:1023px, body[data-skin="web"])
   Lifted verbatim from Marisha's 390px phone boards in /tmp/rishi-final.
   Night + Vellum both drive off the same web tokens (data-tone). This block is
   the "native-feel" app surface her boards specify — it replaces the thin
   desktop-reused mobile render with the exact board composition. Desktop
   (>=1024px) is untouched; every rule here is gated max-width:1023px.
   Motion: her spec — ease.arrive cubic-bezier(.22,1,.36,1) [light arrives, 8px
   rise, no scale-from-zero], ease.draw cubic-bezier(.65,0,.35,1) [lines draw].
   ========================================================================== */
@media (max-width:1023px){
  /* ---- SHELL: one responsive design. The SAME web markup lays out as a clean
     single-column app from 0–1023px (phone → tablet), full-width-safe, never a
     430px frame marooned in a void. The base app's bottom tab-bar is kept as-is
     (it's already the mobile nav); we only ensure #phone/#view flow full-width
     and nothing can exceed the viewport. ---- */
  body[data-skin="web"] #phone{ max-width:none; width:100%; margin:0; }
  body[data-skin="web"] #view{ padding:0; width:100%; overflow-x:hidden; }
  body[data-skin="web"] #view > .screen{ max-width:none; width:100%; }
  /* on tablet, centre the reading column so lines don't run edge-to-edge, but the
     background + nav still fill the width (no floating phone frame) */
  body[data-skin="web"] .web-today,
  body[data-skin="web"] .web-chart,
  body[data-skin="web"] .web-win,
  body[data-skin="web"] .web-ask,
  body[data-skin="web"] .web-you{ width:100%; max-width:640px; margin:0 auto; }
  /* universal overflow guard: no web element may exceed the column */
  body[data-skin="web"] .web-today *,
  body[data-skin="web"] .web-chart *,
  body[data-skin="web"] .web-win *,
  body[data-skin="web"] .web-ask *,
  body[data-skin="web"] .web-you *{ max-width:100%; }
  body[data-skin="web"] .web-chart svg,
  body[data-skin="web"] .wc-panel > svg{ max-width:100%; height:auto; }

  /* ===== TODAY (board 3) ===== */
  body[data-skin="web"] .web-today{ display:block; }
  body[data-skin="web"] .wt-main{ padding:0; }
  body[data-skin="web"] .wt-hero{ padding:56px 28px 0 !important; position:relative; overflow:hidden; }
  body[data-skin="web"] .wt-hero-copy{ display:flex; flex-direction:column; gap:14px; }
  /* gold sky on mobile: a smaller etched moon in the top-right, behind the copy;
     the drawing is the moon, so hide the inline headline crescent glyph. */
  body[data-skin="web"] .wt-goldsky{
    position:absolute; right:-72px; top:-40px; width:210px; aspect-ratio:1/1; z-index:0; pointer-events:none; opacity:.92;
    -webkit-mask-image:radial-gradient(58% 58% at 64% 44%,#000 52%,transparent 100%);
            mask-image:radial-gradient(58% 58% at 64% 44%,#000 52%,transparent 100%);
  }
  body[data-skin="web"] .wt-goldsky svg{ width:100%; height:100%; display:block; overflow:visible; }
  body[data-skin="web"] .wt-hero:has(.wt-goldsky) .wt-headmoon{ display:none; }
  body[data-skin="web"] .wt-hero-copy{ position:relative; z-index:2; }
  body[data-skin="web"] .wt-eyebrow{
    font:700 11px/1 "Google Sans",ui-sans-serif,system-ui,sans-serif;
    letter-spacing:.14em; text-transform:uppercase; color:var(--w-t3);
  }
  body[data-skin="web"] .wt-greet{
    font-size:20px; font-weight:300; font-style:italic; color:var(--w-t2);
    line-height:1.35; letter-spacing:-.005em; margin:0;
  }
  /* headline + moon glyph row — her board: big serif-register headline left,
     moon phase glyph top-right of the block */
  body[data-skin="web"] .wt-headrow{
    display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
  }
  body[data-skin="web"] .wt-h1{
    font-size:44px; font-weight:300; line-height:1.02; letter-spacing:-.028em;
    color:var(--w-head); margin:0; flex:1; min-width:0;
  }
  body[data-skin="web"] .wt-headmoon{ flex:none; margin-top:6px; }
  body[data-skin="web"] .wt-headmoon svg{ width:46px; height:46px; }
  body[data-skin="web"] .wt-moondata{
    font:700 11px/1.4 "Google Sans",ui-sans-serif,system-ui,sans-serif;
    letter-spacing:.14em; text-transform:uppercase; color:var(--w-moon);
    margin-top:2px;
  }
  /* no floating ask bar on mobile — her board has none; the orb nav covers Ask */
  body[data-skin="web"] .wt-ask{ display:none; }
  /* hide the orphan top-left crescent button; the headline moon glyph is the
     tap-to-change-sky affordance on mobile (her board 3) */
  body[data-skin="web"] .wt-moon{ display:none !important; }
  body[data-skin="web"] .wt-headmoon{ cursor:pointer; }
  body[data-skin="web"] .wt-body{ padding:0 28px 140px; gap:0; }

  /* scope control — small, quiet, under the hero (keeps the real feature) */
  body[data-skin="web"] .wt-scopes{
    margin-top:28px; align-self:flex-start;
  }

  /* TODAY'S READING: her brass overline label + hairline above */
  body[data-skin="web"] .wt-note{
    margin-top:28px; padding-top:28px; border-top:1px solid var(--w-hair);
  }
  /* her board 3 label over this card is "TODAY'S READING" — swap the presence
     "A note from Rishi" copy for the board wording on mobile only */
  body[data-skin="web"] .wt-note-over{ margin-top:0 !important; color:var(--w-brass);
    font:0/1 "Google Sans",ui-sans-serif,system-ui,sans-serif; }
  body[data-skin="web"] .wt-note-over::before{
    content:"Today's reading"; font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  }
  body[data-skin="web"] .wt-note-lead{
    font-size:23px; line-height:1.38; font-weight:300; color:var(--w-head);
    margin-top:14px; letter-spacing:-.01em;
  }
  body[data-skin="web"] .wt-read{ color:var(--w-body); font-size:17px; line-height:1.65; margin-top:16px; }
  body[data-skin="web"] .wt-read p{ margin:0 0 16px; }

  /* LEAN INTO / GO SLOWLY WITH — two cards, her board grid */
  body[data-skin="web"] .wt-lean{
    display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:28px;
  }
  body[data-skin="web"] .wt-lean-c{
    display:flex; flex-direction:column; gap:8px; padding:16px;
    border:1px solid var(--w-hair); border-radius:14px; background:var(--w-surface);
  }
  body[data-skin="web"] .wt-lean-c .w-over{ color:var(--w-t3); }
  body[data-skin="web"] .wt-lean-t{ font-size:16px; line-height:1.3; color:var(--w-head); font-weight:400; }

  /* desktop-only companion card hidden on mobile */
  body[data-skin="web"] .wt-desk-only{ display:none; }
  body[data-skin="web"] .wt-closer{ margin-top:28px; color:var(--w-t3); font-size:13px; }

  /* ---- PHONE: the right-rail content (Today at a glance + Coming up) now shows as
     full-width stacked cards below the reading (was desktop-only; this is the piece
     that made the phone look "old"). Inner meter/row styles are re-declared here
     because the desktop versions live inside @media(min-width:1024px). ---- */
  body[data-skin="web"] .wt-rail{ display:flex; flex-direction:column; gap:14px; margin:30px 20px 0; }
  body[data-skin="web"] .wt-rg,
  body[data-skin="web"] .wt-cu{ border:1px solid var(--w-hair); border-radius:18px; background:var(--w-surface); padding:20px; box-shadow:var(--w-cardShadow); }
  body[data-skin="web"] .wt-rg-h{ color:var(--w-t3); }
  body[data-skin="web"] .wt-rg-list{ margin-top:14px; display:flex; flex-direction:column; gap:16px; }
  body[data-skin="web"] .wrg-meter{ display:flex; flex-direction:column; gap:6px; }
  body[data-skin="web"] .wrg-meter-top{ display:flex; justify-content:space-between; align-items:baseline; }
  body[data-skin="web"] .wrg-k{ font-size:14px; color:var(--w-t2); }
  body[data-skin="web"] .wrg-v{ font-size:18px; font-weight:300; }
  body[data-skin="web"] .wrg-track{ height:3px; border-radius:2px; background:var(--w-hair); overflow:hidden; display:block; }
  body[data-skin="web"] .wrg-fill{ display:block; height:100%; }
  body[data-skin="web"] .wrg-why{ font-size:13px; line-height:1.45; color:var(--w-t2); }
  body[data-skin="web"] .wt-cu{ display:flex; flex-direction:column; gap:12px; }
  body[data-skin="web"] .wt-cu-head{ display:flex; justify-content:space-between; align-items:baseline; }
  body[data-skin="web"] .wt-cu-all{ font-size:13px; color:var(--w-accent); }
  body[data-skin="web"] .wt-cu-list{ display:flex; flex-direction:column; gap:12px; }
  body[data-skin="web"] .wcu-row{ display:grid; grid-template-columns:52px minmax(0,1fr); gap:12px; align-items:baseline; min-height:44px; color:var(--w-head); text-decoration:none; }
  body[data-skin="web"] .wcu-d{ font-size:12px; font-weight:700; letter-spacing:.08em; color:var(--w-brass); }
  body[data-skin="web"] .wcu-c{ display:flex; flex-direction:column; gap:3px; min-width:0; }
  body[data-skin="web"] .wcu-t{ font-size:15px; color:var(--w-head); }
  body[data-skin="web"] .wcu-s{ font-size:13px; line-height:1.4; color:var(--w-t2); }

  /* ===== MY CHART (board 7) ===== */
  body[data-skin="web"] .web-chart{ display:block; padding:56px 28px 140px; }
  body[data-skin="web"] .wc-main{ padding:0; }
  body[data-skin="web"] .wc-head{ display:flex; flex-direction:column; gap:10px; }
  body[data-skin="web"] .wc-over{
    font:700 11px/1 "Google Sans",ui-sans-serif,system-ui,sans-serif;
    letter-spacing:.14em; text-transform:uppercase; color:var(--w-t3);
  }
  body[data-skin="web"] .wc-h1{
    font-size:38px; font-weight:700; line-height:1.05; letter-spacing:-.025em;
    color:var(--w-head); margin:0;
  }
  body[data-skin="web"] .wc-birth{
    font:700 11px/1 "Google Sans",ui-sans-serif,system-ui,sans-serif;
    letter-spacing:.06em; text-transform:uppercase; color:var(--w-brass); margin-top:2px;
  }
  /* segmented Square / Wheel toggle — her board pill with sliding thumb */
  body[data-skin="web"] .wc-toggle{
    position:relative; display:grid; grid-template-columns:1fr 1fr; gap:0;
    margin-top:18px; padding:4px; border-radius:14px;
    background:var(--w-surface); border:1px solid var(--w-hair);
  }
  body[data-skin="web"] .wc-tg-thumb{
    position:absolute; top:4px; left:4px; width:calc(50% - 4px); height:calc(100% - 8px);
    border-radius:10px; background:var(--w-raised);
    box-shadow:0 1px 2px rgba(0,0,0,.18); border:1px solid var(--w-hair);
    transition:transform .32s cubic-bezier(.22,1,.36,1);
  }
  body[data-skin="web"][data-tone="vellum"] .wc-tg-thumb{ background:#fff; }
  body[data-skin="web"] .wc-toggle.wheel .wc-tg-thumb{ transform:translateX(calc(100% + 0px)); }
  body[data-skin="web"] .wc-tg{
    position:relative; z-index:1; height:40px; border:0; background:none; cursor:pointer;
    font-size:14px; font-weight:500; color:var(--w-t2);
    transition:color .25s ease;
  }
  body[data-skin="web"] .wc-tg.on{ color:var(--w-head); }
  /* chart panel */
  body[data-skin="web"] .wc-panel{ margin-top:22px; display:flex; justify-content:center; }
  /* house-detail caption → board sheet */
  body[data-skin="web"] .wc-cap{
    margin-top:22px; padding:22px; border-radius:20px;
    background:var(--w-surface); border:1px solid var(--w-hair);
  }
  body[data-skin="web"] .wc-cap-k{ color:var(--w-brass);
    font:700 11px/1.4 "Google Sans",ui-sans-serif,system-ui,sans-serif; letter-spacing:.14em; text-transform:uppercase; }
  body[data-skin="web"] .wc-cap-t{ font-size:26px; font-weight:700; line-height:1.15; letter-spacing:-.02em; color:var(--w-head); margin-top:8px; }
  body[data-skin="web"] .wc-cap-line{ font-size:15px; line-height:1.55; color:var(--w-t2); margin-top:10px; }
  body[data-skin="web"] .wc-cap-link{ display:inline-flex; margin-top:14px; color:var(--w-brass); font-size:15px; }
  /* ten-readings list below (real feature, keep; style as board A3 rows) */
  body[data-skin="web"] .wc-rail{ margin-top:36px; }
  body[data-skin="web"] .wc-rail-head{ display:flex; align-items:baseline; justify-content:space-between; }
  body[data-skin="web"] .wc-rail-title{ font-size:24px; font-weight:300; letter-spacing:-.02em; color:var(--w-head); margin:0; }
  body[data-skin="web"] .wc-count{ font:700 10px/1 "Google Sans",sans-serif; letter-spacing:.14em; color:var(--w-t3); }
  /* 10-segment progress bar (keep on mobile — small + useful) */
  body[data-skin="web"] .wc-progress{ margin-top:14px; display:grid; grid-template-columns:repeat(10,minmax(0,1fr)); gap:4px; }
  body[data-skin="web"] .wc-progress span{ height:3px; border-radius:2px; background:var(--w-hair); }
  body[data-skin="web"] .wc-progress span.on{ background:var(--w-brass); }

  /* ---- the TEN READINGS list: real padded plate rows (THE cramped-card fix).
     number column | title+sub | status/lock+chevron. Breathing room, no overflow. */
  body[data-skin="web"] .wc-read-list{ margin-top:16px; display:flex; flex-direction:column; gap:10px; }
  body[data-skin="web"] .wc-read-row{
    display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:14px; align-items:center;
    min-height:68px; padding:16px; margin:0; border-radius:16px; cursor:pointer;
    background:var(--w-surface); border:1px solid var(--w-hair); box-shadow:var(--w-cardShadow);
    transition:transform .14s cubic-bezier(.23,1,.32,1), border-color .2s ease;
  }
  body[data-skin="web"] .wc-read-row:active{ transform:scale(.99); }
  body[data-skin="web"] .wc-rn{ font-style:italic; font-weight:300; font-size:22px; line-height:1; color:var(--w-brass); align-self:start; margin-top:2px; }
  body[data-skin="web"] .wc-read-row.read .wc-rn{ color:var(--w-t3); }
  body[data-skin="web"] .wc-rc{ min-width:0; display:flex; flex-direction:column; gap:3px; }
  body[data-skin="web"] .wc-rt{ font-size:18px; font-weight:400; line-height:1.25; color:var(--w-head); }
  body[data-skin="web"] .wc-rs{ font-size:14px; line-height:1.4; color:var(--w-t2); }
  body[data-skin="web"] .wc-read-row.locked .wc-rt{ color:var(--w-t2); }
  body[data-skin="web"] .wc-status{ font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--w-t3); flex:none; }
  body[data-skin="web"] .wc-lock{ font-size:9px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--w-brass); border:1px solid var(--w-brass); border-radius:6px; padding:2px 6px; }
  body[data-skin="web"] .wc-chev{ color:var(--w-t3); flex:none; }
  /* the XI synastry footer card */
  body[data-skin="web"] .wc-syn-card{
    margin-top:14px; display:flex; align-items:center; gap:14px; padding:16px 18px;
    border-radius:16px; border:1px solid var(--w-hair); background:var(--w-surface);
    box-shadow:var(--w-cardShadow); color:var(--w-head); text-decoration:none;
  }
  body[data-skin="web"] .wc-syn-glyph{ flex:none; }
  body[data-skin="web"] .wc-syn-c{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
  body[data-skin="web"] .wc-syn-t{ font-size:16px; font-weight:400; color:var(--w-head); }
  body[data-skin="web"] .wc-syn-s{ font-size:13px; color:var(--w-t2); }

  /* ===== WINDOWS (board A5 / W4) ===== */
  body[data-skin="web"] .web-win{ display:block; padding:56px 28px 140px; }
  body[data-skin="web"] .ww-head{ display:flex; flex-direction:column; gap:6px; }
  body[data-skin="web"] .ww-range{
    font:700 11px/1 "Google Sans",ui-sans-serif,system-ui,sans-serif;
    letter-spacing:.14em; text-transform:uppercase; color:var(--w-t3);
  }
  body[data-skin="web"] .ww-h1{ font-size:38px; font-weight:700; line-height:1.03; letter-spacing:-.028em; color:var(--w-head); margin:0; }
  body[data-skin="web"] .ww-sub{ font-size:16px; line-height:1.55; color:var(--w-t2); margin:0; }
  /* S2 arches are responsive SVG, so they read on phone too — keep them, compact. */
  body[data-skin="web"] .ww-timeline{ margin-top:18px; padding:16px 16px 10px; }
  body[data-skin="web"] .ww-arches{ height:118px; }
  /* filters: horizontal scroll chip row, no wrap-clip, momentum */
  body[data-skin="web"] .ww-filters{
    margin:22px 0 0; display:flex; gap:8px; flex-wrap:nowrap; overflow-x:auto;
    -webkit-overflow-scrolling:touch; scrollbar-width:none; padding-bottom:2px;
  }
  body[data-skin="web"] .ww-filters::-webkit-scrollbar{ display:none; }
  body[data-skin="web"] .ww-chip{
    flex:none; background:var(--w-surface); border:1px solid var(--w-hair); color:var(--w-t2);
    border-radius:999px; padding:8px 16px; font-size:13.5px; cursor:pointer;
  }
  body[data-skin="web"] .ww-chip.on{ background:var(--w-raised); color:var(--w-head); border-color:var(--w-brass); }
  /* body: single column (no side detail panel on mobile) */
  body[data-skin="web"] .ww-body{ display:block; margin-top:20px; }
  body[data-skin="web"] .ww-list{ min-width:0; }
  /* the sticky desktop detail panel stacks below the list on mobile, padded as a card */
  body[data-skin="web"] .ww-detail{
    margin-top:18px; padding:22px; border-radius:20px;
    background:var(--w-surface); border:1px solid var(--w-hair);
  }
  body[data-skin="web"][data-tone="night"] .ww-detail{ background:var(--w-raised); border-color:var(--w-hair); }
  body[data-skin="web"] .ww-d-cat{ color:var(--w-t2); letter-spacing:.1em; }
  body[data-skin="web"] .ww-d-h{ margin:8px 0 0; font-size:26px; font-weight:700; letter-spacing:-.02em; color:var(--w-head); line-height:1.1; }
  body[data-skin="web"] .ww-d-b{ margin:12px 0 0; font-size:16px; line-height:1.6; color:var(--w-body); }
  body[data-skin="web"] .ww-move{ margin-top:16px; border-radius:16px; border:1px solid var(--w-hair); background:rgba(200,164,106,0.06); padding:16px 18px; display:flex; flex-direction:column; gap:6px; }
  body[data-skin="web"][data-tone="vellum"] .ww-move{ border-color:#D8C49A; background:rgba(122,92,40,0.07); }
  body[data-skin="web"] .ww-move .w-over{ color:var(--w-brass); }
  body[data-skin="web"] .ww-move-t{ font-size:18px; color:var(--w-head); line-height:1.35; font-weight:300; }
  body[data-skin="web"] .ww-d-actions{ margin-top:16px; display:flex; flex-wrap:wrap; gap:10px; }
  body[data-skin="web"] .ww-d-primary{ min-height:48px; padding:0 20px; border-radius:12px; border:0; background:var(--w-btnFill); color:var(--w-btnText); font-size:15px; font-weight:500; cursor:pointer; }
  body[data-skin="web"] .ww-d-ghost{ min-height:48px; padding:0 20px; border-radius:12px; border:1px solid var(--w-hair); background:transparent; color:var(--w-head); font-size:15px; cursor:pointer; }

  /* ===== APPEARANCE (board 8) ===== */
  body[data-skin="web"] .wy-row-btn{ width:100%; text-align:left; background:var(--w-surface); cursor:pointer; }
  body[data-skin="web"] .wy-row-chev{ flex:none; align-self:center; }

  /* ===== ORACLE / chat (board 5) ===== */
  body[data-skin="web"] .web-ask{ display:block; }
  body[data-skin="web"] .wk-main{ padding:0; }
  body[data-skin="web"] .wk-rail{ display:none; }            /* desktop rail → hidden on mobile */
  body[data-skin="web"] .wk-head{ display:flex; align-items:center; gap:12px; padding:56px 28px 16px; }
  body[data-skin="web"] .wk-head-mark svg{ width:34px; height:34px; }
  body[data-skin="web"] .wk-head-c{ display:flex; flex-direction:column; gap:2px; }
  body[data-skin="web"] .wk-head-name{ font-size:20px; font-weight:300; letter-spacing:-.01em; color:var(--w-head); }
  body[data-skin="web"] .wk-head-sub{ font:700 10px/1 "Google Sans",sans-serif; letter-spacing:.14em; text-transform:uppercase; color:var(--w-t3); }
  body[data-skin="web"] .wk-log{ padding:8px 28px 150px; display:flex; flex-direction:column; gap:22px; }
  /* user bubble — her board: dark rounded, right-aligned, tail bottom-right */
  body[data-skin="web"] .wk-u{
    align-self:flex-end; max-width:82%; padding:14px 18px;
    border-radius:20px 20px 6px 20px; background:var(--w-raised);
    color:var(--w-head); font-size:16px; line-height:1.5;
  }
  body[data-skin="web"][data-tone="vellum"] .wk-u{ background:#ECE4D6; }
  /* Rishi answer — no bubble; big italic lead on the first line, prose below */
  body[data-skin="web"] .wk-a{ align-self:stretch; }
  body[data-skin="web"] .wk-a .reading{ color:var(--w-body); font-size:17px; line-height:1.65; }
  body[data-skin="web"] .wk-a .reading > p:first-child{
    font-size:22px; line-height:1.4; font-weight:300; font-style:italic; color:var(--w-head); margin-bottom:14px;
  }
  /* chart-tag pills (SATURN · AQUARIUS · 4TH) if present in the answer */
  body[data-skin="web"] .wk-a .chip, body[data-skin="web"] .chat-tag{
    display:inline-block; padding:7px 10px; border-radius:8px; border:1px solid var(--w-hair);
    font:700 10px/1 "Google Sans",sans-serif; letter-spacing:.08em; color:var(--w-brass); margin:4px 6px 0 0;
  }
  /* empty state → board register */
  body[data-skin="web"] .wk-empty{ padding:8px 0 0; }
  body[data-skin="web"] .wk-empty-h{ font-size:30px; font-weight:700; line-height:1.15; letter-spacing:-.02em; color:var(--w-head); margin:0; }
  body[data-skin="web"] .wk-empty-p{ font-size:16px; line-height:1.6; margin-top:14px; }

  /* ===== YOU (board A6 / W6) — full single-column treatment (was unstyled) ===== */
  body[data-skin="web"] .web-you{ display:block; padding:56px 28px 140px; }
  /* the left sub-nav is a desktop affordance; on mobile the sections ARE the page */
  body[data-skin="web"] .wy-nav{ display:none; }
  body[data-skin="web"] .wy-main{ min-width:0; max-width:none; }
  body[data-skin="web"] .wy-top{ display:flex; flex-direction:column; align-items:flex-start; gap:16px; margin-bottom:24px; }
  body[data-skin="web"] .wy-id{ min-width:0; }
  body[data-skin="web"] .wy-name{ margin:0; font-size:40px; font-weight:700; letter-spacing:-.03em; color:var(--w-head); line-height:1; }
  body[data-skin="web"] .wy-born{ margin-top:10px; font-size:14px; line-height:1.5; color:var(--w-t2); }
  body[data-skin="web"] .wy-edit{ display:inline-block; margin-top:10px; font-size:13.5px; font-weight:500; color:var(--w-accent); }
  body[data-skin="web"] .wy-chips{ display:flex; gap:10px; flex-wrap:wrap; }
  body[data-skin="web"] .wy-chip{ background:var(--w-surface); border:1px solid var(--w-hair); border-radius:12px; padding:10px 15px; min-width:72px; }
  body[data-skin="web"] .wy-chip .w-over{ color:var(--w-t3); font-size:9px; }
  body[data-skin="web"] .wy-chip-s{ margin-top:4px; font-size:16px; font-weight:400; color:var(--w-head); }

  body[data-skin="web"] .wy-card{ padding:22px; margin-bottom:14px; border-radius:20px; background:var(--w-surface); border:1px solid var(--w-hair); box-shadow:var(--w-cardShadow); }
  /* Rishi's Memory — collapsible accordion MUST work on mobile too (was desktop-only) */
  body[data-skin="web"] .wy-acc-toggle{ display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; background:none; border:0; padding:0; cursor:pointer; color:inherit; text-align:left; }
  body[data-skin="web"] .wy-acc-meta{ display:flex; align-items:center; gap:12px; flex:none; }
  body[data-skin="web"] .wy-count-pill{ font-size:13px; font-weight:600; color:var(--w-brass); background:color-mix(in srgb,var(--w-brass) 14%, transparent); border:1px solid color-mix(in srgb,var(--w-brass) 34%, transparent); border-radius:999px; padding:4px 11px; font-variant-numeric:tabular-nums; }
  body[data-skin="web"] .wy-acc-chev{ color:var(--w-t3); transition:transform .28s cubic-bezier(.22,1,.36,1); }
  body[data-skin="web"] .wy-acc-body{ max-height:0; overflow:hidden; opacity:0; margin-top:0; transition:max-height .4s cubic-bezier(.22,1,.36,1), opacity .25s ease, margin-top .3s ease; }
  body[data-skin="web"] .wy-acc.wy-acc-open .wy-acc-body{ max-height:3000px; opacity:1; margin-top:16px; }
  body[data-skin="web"] .wy-acc.wy-acc-open .wy-acc-chev{ transform:rotate(180deg); }
  body[data-skin="web"] .wy-h2{ margin:0; font-size:23px; font-weight:400; letter-spacing:-.005em; color:var(--w-head); }
  body[data-skin="web"] .wy-card-sub{ margin:10px 0 16px; font-size:14px; line-height:1.55; color:var(--w-t2); }
  body[data-skin="web"] .wy-fact-list{ display:flex; flex-direction:column; }
  body[data-skin="web"] .wy-fact{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 0; border-top:1px solid var(--w-hair); }
  body[data-skin="web"] .wy-fact-t{ font-size:15px; line-height:1.4; color:var(--w-head); min-width:0; }
  body[data-skin="web"] .wy-forget{ flex:none; background:var(--w-raised); border:1px solid var(--w-hair); color:var(--w-t2); border-radius:9px; padding:7px 14px; font-size:13px; cursor:pointer; }
  body[data-skin="web"] .wy-add{ display:inline-block; margin-top:16px; font-size:14px; font-weight:500; color:var(--w-accent); }

  body[data-skin="web"] .wy-people-list{ display:flex; flex-direction:column; }
  body[data-skin="web"] .wy-person{ display:flex; align-items:center; gap:14px; padding:14px 0; border-top:1px solid var(--w-hair); cursor:pointer; }
  body[data-skin="web"] .wy-people-list .wy-person:first-child{ border-top:0; }
  body[data-skin="web"] .wy-person-av{ flex:none; width:38px; height:38px; border-radius:50%; border:1px solid var(--w-brass); position:relative; }
  body[data-skin="web"] .wy-person-c{ flex:1; min-width:0; }
  body[data-skin="web"] .wy-person-rel{ color:var(--w-brass); font-size:9px; }
  body[data-skin="web"] .wy-person-n{ font-size:16px; font-weight:500; color:var(--w-head); margin-top:2px; }
  body[data-skin="web"] .wy-person-b{ font-size:13px; color:var(--w-t3); margin-top:2px; }

  body[data-skin="web"] .wy-member-top{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
  body[data-skin="web"] .wy-plan{ color:var(--w-brass); font-size:9px; }
  body[data-skin="web"] .wy-member-benefits{ display:grid; grid-template-columns:1fr; gap:9px; margin:16px 0 18px; font-size:14.5px; line-height:1.4; color:var(--w-body); }
  body[data-skin="web"] .wy-member-cta{ display:flex; flex-direction:column; gap:10px; }
  body[data-skin="web"] .wy-btn-primary{ width:100%; min-height:48px; background:var(--w-btnFill); color:var(--w-btnText); border:0; border-radius:12px; padding:0 20px; font-size:15px; font-weight:500; cursor:pointer; }
  body[data-skin="web"] .wy-btn-ghost{ width:100%; min-height:48px; background:none; border:1px solid var(--w-hair); color:var(--w-head); border-radius:12px; padding:0 20px; font-size:15px; font-weight:500; cursor:pointer; }

  /* appearance row-button + data card */
  body[data-skin="web"] .wy-row-btn{ width:100%; text-align:left; cursor:pointer; }
  body[data-skin="web"] .wy-set-row{ display:flex; align-items:center; justify-content:space-between; gap:16px; }
  body[data-skin="web"] .wy-set-c{ min-width:0; display:flex; flex-direction:column; }
  body[data-skin="web"] .wy-set-t{ display:block; font-size:16px; color:var(--w-head); }
  body[data-skin="web"] .wy-set-s{ display:block; font-size:14px; line-height:1.45; color:var(--w-t2); margin-top:3px; }
  body[data-skin="web"] .wy-row-chev{ flex:none; align-self:center; }
  body[data-skin="web"] .wy-data-list{ display:flex; flex-direction:column; }
  body[data-skin="web"] .wy-data-row{ display:flex; align-items:center; text-align:left; background:none; border:0; border-top:1px solid var(--w-hair); color:var(--w-head); font-size:15px; padding:15px 0; cursor:pointer; width:100%; }
  body[data-skin="web"] .wy-data-row:first-child{ border-top:0; }
}

/* ============================================================================
   MOTION SPEC ALIGNMENT (web skin) — her 05 Motion principles, verbatim tokens.
   ease.arrive cubic-bezier(.22,1,.36,1) · ease.draw cubic-bezier(.65,0,.35,1)
   "light arrives, it doesn't pop" (opacity + 8px rise, no scale-from-zero/bounce)
   "draw, don't appear" (stroke-dashoffset along the path)
   Scoped to body[data-skin="web"] so other skins keep their own motion.
   ========================================================================== */
body[data-skin="web"]{ --ease-arrive:cubic-bezier(.22,1,.36,1); --ease-draw:cubic-bezier(.65,0,.35,1); }
/* cast: the chart DRAWS itself along the path on ease.draw (not --expo) */
body[data-skin="web"] #castchart .cg,
body[data-skin="web"] #castsvg .ln,
body[data-skin="web"] #castsvg .ring{ animation-timing-function:cubic-bezier(.65,0,.35,1) !important; }
/* "light arrives, it doesn't pop": the medallion ignite + glow arrive by opacity +
   a small rise, NOT a scale-from-small (her principle: nothing scales from zero) */
@keyframes wCastArrive{ from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
body[data-skin="web"] #castchart .cign{ animation:wCastArrive .85s cubic-bezier(.22,1,.36,1) forwards !important; }
body[data-skin="web"] #castchart .cgl{ animation:wCastArrive .6s cubic-bezier(.22,1,.36,1) forwards !important; }
@media (prefers-reduced-motion:reduce){
  body[data-skin="web"] #castchart .cg,
  body[data-skin="web"] #castchart .cign,
  body[data-skin="web"] #castchart .cgl,
  body[data-skin="web"] #castsvg .ln,
  body[data-skin="web"] #castsvg .ring{ animation:none !important; opacity:1 !important; stroke-dashoffset:0 !important; transform:none !important; }
}
/* onboarding under the web skin: flatten serif/mono to Google Sans (her boards use
   ONE family) — the base app uses Newsreader serif which drifts from her boards */
body[data-skin="web"] .ob h2,
body[data-skin="web"] .ob .lead,
body[data-skin="web"] .ob .serif,
body[data-skin="web"] .ob [style*="Newsreader"]{
  font-family:"Google Sans",ui-sans-serif,system-ui,-apple-system,sans-serif !important;
}
body[data-skin="web"] .ob h2{ font-weight:300 !important; letter-spacing:-.025em; }
body[data-skin="web"] .castmsg,
body[data-skin="web"] .castmsg *{ font-family:"Google Sans",ui-sans-serif,system-ui,sans-serif !important; }

/* Appearance screen — shown at all widths (it's a full sub-screen) */
body[data-skin="web"] .web-appear{ padding:56px 28px 120px; max-width:560px; margin:0 auto; }
body[data-skin="web"] .ap-back{ width:44px; height:44px; margin:0 0 20px -12px; display:flex; align-items:center; justify-content:center; border:0; background:none; cursor:pointer; }
body[data-skin="web"] .ap-over{
  font:700 11px/1 "Google Sans",ui-sans-serif,system-ui,sans-serif;
  letter-spacing:.14em; text-transform:uppercase; color:var(--w-t3);
}
body[data-skin="web"] .ap-h1{ font-size:46px; font-weight:300; line-height:1.04; letter-spacing:-.028em; color:var(--w-head); margin:18px 0 0; }
body[data-skin="web"] .ap-sub{ font-size:16px; line-height:1.6; color:var(--w-t2); margin:16px 0 0; max-width:34ch; }
body[data-skin="web"] .ap-preview{ margin-top:32px; padding:20px 20px 16px; border-radius:24px; background:var(--w-surface); border:1px solid var(--w-hair); }
body[data-skin="web"] .ap-pv-head{ display:flex; align-items:center; justify-content:space-between; }
body[data-skin="web"] .ap-pv-k{ color:var(--w-brass);
  font:700 11px/1 "Google Sans",ui-sans-serif,system-ui,sans-serif; letter-spacing:.14em; text-transform:uppercase; }
body[data-skin="web"] .ap-pv-clock{ font:700 13px/1 "Google Sans",ui-sans-serif,system-ui,sans-serif; letter-spacing:.04em; color:var(--w-head); }
body[data-skin="web"] .ap-arc{ width:100%; height:auto; display:block; margin-top:14px; }
body[data-skin="web"] .ap-arc .ap-sun-l{ font:700 9px "Google Sans",sans-serif; letter-spacing:1px; fill:var(--w-t3); }
body[data-skin="web"] .ap-glow{ animation:apGlow 3.6s ease-in-out infinite; transform-origin:center; }
@keyframes apGlow{ 0%,100%{opacity:.35} 50%{opacity:.7} }
body[data-skin="web"] .ap-scrub-lab{ font-size:13px; color:var(--w-t2); margin-top:4px; }
body[data-skin="web"] .ap-range{ -webkit-appearance:none; appearance:none; width:100%; height:44px; background:transparent; margin:0; cursor:pointer; }
body[data-skin="web"] .ap-range::-webkit-slider-runnable-track{ height:2px; border-radius:1px; background:var(--w-hair); }
body[data-skin="web"] .ap-range::-webkit-slider-thumb{ -webkit-appearance:none; width:22px; height:22px; margin-top:-10px; border-radius:50%; background:var(--w-brass); border:4px solid var(--w-surface); box-shadow:0 0 0 1px var(--w-hair); }
body[data-skin="web"] .ap-range::-moz-range-track{ height:2px; background:var(--w-hair); }
body[data-skin="web"] .ap-range::-moz-range-thumb{ width:16px; height:16px; border-radius:50%; background:var(--w-brass); border:4px solid var(--w-surface); }
body[data-skin="web"] .ap-modes{ margin-top:24px; display:flex; flex-direction:column; border-top:1px solid var(--w-hair); }
body[data-skin="web"] .ap-mode{ display:flex; align-items:center; gap:14px; padding:18px 0; border:0; border-bottom:1px solid var(--w-hair); background:none; text-align:left; cursor:pointer; }
body[data-skin="web"] .ap-mode-c{ flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
body[data-skin="web"] .ap-mode-n{ font-size:21px; font-weight:300; line-height:1.2; color:var(--w-head); }
body[data-skin="web"] .ap-mode-s{ font-size:14px; line-height:1.45; color:var(--w-t2); }
body[data-skin="web"] .ap-radio{ flex:none; width:22px; height:22px; border-radius:50%; border:1px solid var(--w-hair); display:flex; align-items:center; justify-content:center; transition:border-color .25s ease; }
body[data-skin="web"] .ap-radio-dot{ width:10px; height:10px; border-radius:50%; background:transparent; transition:background .25s ease, transform .3s cubic-bezier(.34,1.4,.5,1); }
body[data-skin="web"] .ap-mode.sel .ap-radio{ border-color:var(--w-brass); }
body[data-skin="web"] .ap-mode.sel .ap-radio-dot{ background:var(--w-brass); }
body[data-skin="web"] .ap-note{ font-size:13px; line-height:1.55; color:var(--w-t3); margin-top:22px; }

/* below 1024 the app's own mobile layout is used untouched for non-today screens
   (progressively brought to board fidelity screen-by-screen above). */

/* ============================================================================
   CONTRAST / READABILITY SWEEP — 2026-11-14
   Root cause of the invisible-text bugs: the base app's "primitives" — the
   bottom SHEET (#sheet), the dark INK PANELS (.inkpanel / .compgate / paywall),
   the primary BUTTON (.btn-ink), and the CHAT CHIPS (.chip) — were authored for
   the cream Atelier theme and were NEVER remapped to the web tone system. The
   token remap at top (lines ~52) rebinds --ink/--parch/--cream all to --w-head,
   so these primitives collapse to same-colour-on-same-colour in one or both
   tones (e.g. .btn-ink gets bg:var(--ink) AND text:var(--parch) → BOTH --w-head
   → a fully invisible label). The prior "global contrast fix" only patched
   .btn-ink inside #reflectslot (line ~423). This block fixes every primitive at
   the source, so every surface built from them is correct in BOTH tones.
   ============================================================================ */

/* ---- 0. THE BOTTOM NAV (#tabbar) — OPAQUE, Safari-safe.
   The base #tabbar is a translucent cream gradient whose legibility depends
   ENTIRELY on backdrop-filter:blur(). On iOS Safari that blur degrades to nothing
   under Low Power Mode, Reduce Transparency, or older iOS — leaving a flat, near-
   white bar over cream content = "the nav is all white, I can barely see it".
   Fix: give the nav a real OPAQUE tone surface + a visible hairline + readable
   tab text, so it NEVER relies on backdrop-filter to be seen. Tone-correct in
   both Vellum (white) and Night (dark). Mobile-first (no media query → applies on
   her phone). ---- */
body[data-skin="web"] #tabbar{
  background:var(--w-raised) !important;            /* opaque: white in Vellum, dark in Night */
  background-image:none !important;                 /* kill the cream translucent gradient */
  backdrop-filter:none !important;                  /* stop depending on blur for contrast */
  -webkit-backdrop-filter:none !important;
  border-top:1px solid var(--w-hair) !important;    /* a hairline that's actually visible */
  box-shadow:0 -10px 30px -22px rgba(0,0,0,.45) !important;
}
body[data-skin="web"] #tabbar .tab{ color:var(--w-t2) !important; }   /* readable idle label */
body[data-skin="web"] #tabbar .tab.active{ color:var(--w-head) !important; } /* strong active label */
body[data-skin="web"] #tabbar .tab svg{ stroke:currentColor !important; }

/* ---- 0b. THE Today SCOPE CONTROL (Today / This week / This month) — MOBILE.
   The grid + sliding-thumb styling for .wt-scopes lived ONLY inside a
   @media(min-width:1024px) block, so on her phone the control fell back to the
   base .scopes{display:flex} with 20px side margins, while positionScopeThumb()
   still placed the thumb using grid geometry — the thumb landed off its label and
   the three tabs looked "mixed up / scrambled". This mobile-first copy restores
   the real 3-column grid on the phone and zeroes the thumb's base offset so the
   JS translateX(offsetLeft) lands it exactly under the active tab. ---- */
body[data-skin="web"] .wt-scopes{
  position:relative; display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0; padding:4px; margin:28px 0 0; width:100%; max-width:420px; align-self:flex-start;
  border-radius:12px; background:var(--w-surface); border:1px solid var(--w-hair);
  box-shadow:none;
}
body[data-skin="web"] .wt-thumb{
  position:absolute; top:4px; bottom:4px; left:0; /* base 0 → JS translateX(offsetLeft) is exact */
  border-radius:8px; background:var(--w-btnFill); pointer-events:none; z-index:0;
  transition:transform .4s cubic-bezier(.34,1.2,.5,1), width .4s cubic-bezier(.34,1.2,.5,1);
}
body[data-skin="web"] .wt-scope{
  position:relative; z-index:1; flex:none; height:38px; padding:0; margin:0;
  border:0; background:transparent; cursor:pointer; border-radius:8px;
  font-size:14px; font-weight:500; color:var(--w-t2); letter-spacing:.01em;
  white-space:nowrap; transition:color .3s ease;
}
body[data-skin="web"] .wt-scope.on{ color:var(--w-btnText) !important; background:transparent !important; box-shadow:none !important; }

/* ---- 1. THE BOTTOM SHEET (#sheet) — its own light->tone surface + readable text.
   openSheet() surfaces: question library, event detail, About, partner "Your
   Story Together" (openPerson), add/edit person, sign-in. All ride #sheet. ---- */
body[data-skin="web"] #sheet{
  background:var(--w-raised) !important;          /* real raised surface per tone (dark in night, white in vellum) */
  backdrop-filter:none !important;                /* kill the cream-glass blur that fought the tone */
  -webkit-backdrop-filter:none !important;
  color:var(--w-body) !important;
  border-top:1px solid var(--w-hair);
  box-shadow:0 -12px 50px rgba(0,0,0,.28),0 0 0 .5px var(--w-hair) inset !important;
}
body[data-skin="web"] #sheet .grab{ background:var(--w-t3); opacity:.5; }
body[data-skin="web"] #sheet .sheet-title,
body[data-skin="web"] #sheet .serif,
body[data-skin="web"] #sheet b,
body[data-skin="web"] #sheet strong{ color:var(--w-head) !important; }
/* story body + any bare paragraph in a sheet → strong body text, not muted grey */
body[data-skin="web"] #sheet p,
body[data-skin="web"] #sheet li,
body[data-skin="web"] #sheet .qrow{ color:var(--w-body) !important; }
body[data-skin="web"] #sheet .micro,
body[data-skin="web"] #sheet .w-t2{ color:var(--w-t2) !important; }
body[data-skin="web"] #sheet .micro.gold,
body[data-skin="web"] #sheet .gold{ color:var(--w-brass) !important; }
/* cards/rows inside the sheet (question rows, relation chips, inputs) ride the tone */
body[data-skin="web"] #sheet .qrow,
body[data-skin="web"] #sheet .chip,
body[data-skin="web"] #sheet input,
body[data-skin="web"] #sheet textarea{
  background:var(--w-surface) !important; border-color:var(--w-hair) !important; color:var(--w-body) !important;
}
body[data-skin="web"] #sheet input::placeholder,
body[data-skin="web"] #sheet textarea::placeholder{ color:var(--w-t3); }

/* ---- 2. DARK INK PANELS used mid-page (.inkpanel, .compgate, paywall card).
   These are dark gradients with cream text in Atelier. In vellum the text token
   flips to dark ink → dark-on-dark. Pin the panel dark in BOTH tones (an
   intentional dark feature panel reads fine on the vellum page) and force the
   text/label back to the night-cream values regardless of tone. ---- */
body[data-skin="web"] .inkpanel,
body[data-skin="web"] .compgate{
  background:linear-gradient(168deg,#181C27 0%,#101016 100%) !important;
  color:#EDE6D6 !important;
}
body[data-skin="web"] .inkpanel .serif,
body[data-skin="web"] .inkpanel b,
body[data-skin="web"] .compgate .cg-lead,
body[data-skin="web"] .compgate .serif,
body[data-skin="web"] .compgate b,
body[data-skin="web"] .compgate li{ color:#EDE6D6 !important; }
body[data-skin="web"] .inkpanel p,
body[data-skin="web"] .compgate .cg-note,
body[data-skin="web"] .compgate .cg-list,
body[data-skin="web"] .inkpanel .w-t2{ color:rgba(237,230,214,.72) !important; }
body[data-skin="web"] .compgate .cg-k,
body[data-skin="web"] .inkpanel .micro.gold,
body[data-skin="web"] .inkpanel .gold{ color:var(--w-brassHi) !important; }

/* ---- 3. PRIMARY BUTTON (.btn-ink) — the invisible cream-on-cream CTA.
   Base: bg:var(--ink) + text:var(--parch). Under web both resolve to --w-head
   → identical colour → invisible label. Bind to the paired fill/text tokens
   (same mechanism that already works for #reflectslot). Applies to the compat
   UNLOCK button, paywall CTAs, sheet buttons, everywhere. On the DARK ink/compat
   panels the pill must stay cream w/ dark label in BOTH tones (not flip w/ tone),
   so pin it explicitly inside those panels. ---- */
body[data-skin="web"] .btn-ink{
  background:var(--w-btnFill) !important;
  color:var(--w-btnText) !important;
}
body[data-skin="web"] .inkpanel .btn-ink,
body[data-skin="web"] .compgate .btn-ink,
body[data-skin="web"] .paywall .btn-ink{
  background:#EDE6D6 !important;    /* cream pill on the dark panel, both tones */
  color:#0B0D14 !important;         /* dark label — the fix for the invisible unlock label */
}
body[data-skin="web"] .btn-ghost{ color:var(--w-t2) !important; border-color:var(--w-hair) !important; }
/* secondary link under a dark-panel CTA ("or $9.99 / month") */
body[data-skin="web"] .inkpanel a,
body[data-skin="web"] .compgate a,
body[data-skin="web"] .paywall a{ color:var(--w-brassHi) !important; }

/* ---- 4. CHAT CHIPS (.chip) on the page surface (not the on-state) ---- */
body[data-skin="web"] .chip{ background:var(--w-surface) !important; color:var(--w-body) !important; border-color:var(--w-hair) !important; }
body[data-skin="web"] .chip.qchip{ color:var(--w-brass) !important; border-color:color-mix(in srgb,var(--w-brass) 55%,transparent) !important; }
body[data-skin="web"] .chip.on{ background:var(--w-btnFill) !important; color:var(--w-btnText) !important; border-color:var(--w-btnFill) !important; }

/* ---- 5. Ask Rishi: suggested-question chips (#chatchips) belong to the EMPTY
   state only. JS now hides #chatchips once a conversation exists; this guarantees
   the fixed composer gradient reads in-tone and the last answer clears the bar. */
body[data-skin="web"] #chatbar{
  background:linear-gradient(180deg,color-mix(in srgb,var(--w-ground) 0%,transparent),var(--w-ground) 28%) !important;
}
body[data-skin="web"] #chatlog{ padding-bottom:132px; }   /* clear the fixed composer so the last answer is fully readable */
@media (min-width:1024px){ body[data-skin="web"] #chatlog{ padding-bottom:140px; } }

/* ---- 6. THE FEEDBACK SHEET (.sheet2 — "Tell us anything") is a SEPARATE
   overlay from #sheet with its own cream bg → invisible in night. Give it the
   tone surface + readable text + in-tone tabs/inputs. ---- */
body[data-skin="web"] .sheet2{ background:var(--w-raised) !important; color:var(--w-body) !important; border-top:1px solid var(--w-hair); }
body[data-skin="web"] .sheet2 .grab2{ background:var(--w-t3); opacity:.5; }
body[data-skin="web"] .sheet2 .micro{ color:var(--w-t2) !important; }
body[data-skin="web"] .sheet2 .fbtabs span{ color:var(--w-t2) !important; border-color:var(--w-hair) !important; }
body[data-skin="web"] .sheet2 .fbtabs span.on{ background:var(--w-btnFill) !important; color:var(--w-btnText) !important; border-color:var(--w-btnFill) !important; }
body[data-skin="web"] .sheet2 .fbinput,
body[data-skin="web"] .sheet2 .fbinput1{ background:var(--w-surface) !important; border-color:var(--w-hair) !important; color:var(--w-body) !important; }
body[data-skin="web"] .sheet2 .fbinput::placeholder,
body[data-skin="web"] .sheet2 .fbinput1::placeholder{ color:var(--w-t3); }

/* ============================================================================
   XI · SYNASTRY — THE GOLD CARD  (faithful to S2 "Cards, art & motion")
   The old .wc-syn-card was var(--w-surface)+var(--w-hair) = cream-on-cream in
   Vellum (invisible/"beige, not readable") and plain in Night. This reskins the
   synastry entry to S2's gold membership-card treatment — the same warm
   #2A2216→#8A6B38 gradient + #6B5530 edge + cream-gold type + etched rings +
   a slow sheen — so it reads with strong contrast in BOTH tones and the most
   valuable reading finally looks like it. Global (not media-gated) so it wins
   over the desktop (~622) and mobile (~1351) surface rules and applies at every
   width in both tones.
   ========================================================================== */
body[data-skin="web"] .wc-syn-card.wc-syn-gold{
  position:relative; overflow:hidden;
  background:linear-gradient(135deg,#2A2216 0%,#4A3A20 45%,#8A6B38 100%);
  border:1px solid #6B5530;
  box-shadow:0 30px 60px -30px rgba(0,0,0,.8);
  color:#F3E3BC; isolation:isolate;
  transition:transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease;
}
body[data-skin="web"] .wc-syn-gold .wc-syn-etch{
  position:absolute; right:-54px; top:50%; transform:translateY(-50%);
  opacity:.28; pointer-events:none; z-index:0;
}
body[data-skin="web"] .wc-syn-gold .wc-syn-sheen{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(110deg,transparent 30%,rgba(255,248,230,.32) 48%,transparent 62%);
  transform:translateX(-130%);
}
body[data-skin="web"] .wc-syn-gold:hover{ transform:translateY(-3px); border-color:#8A6B38; box-shadow:0 36px 64px -28px rgba(0,0,0,.85); }
body[data-skin="web"] .wc-syn-gold:hover .wc-syn-sheen{ animation:wcSynSheen 1s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes wcSynSheen{ to{ transform:translateX(130%); } }
body[data-skin="web"] .wc-syn-gold .wc-syn-glyph,
body[data-skin="web"] .wc-syn-gold .wc-syn-c,
body[data-skin="web"] .wc-syn-gold .wc-syn-go{ position:relative; z-index:2; }
body[data-skin="web"] .wc-syn-gold .wc-syn-k{
  font:700 10px var(--sans,'Google Sans',system-ui); letter-spacing:.14em; text-transform:uppercase;
  color:#D9C291;
}
body[data-skin="web"] .wc-syn-gold .wc-syn-t{ font-size:21px; font-weight:400; line-height:1.15; color:#F3E3BC; }
body[data-skin="web"] .wc-syn-gold .wc-syn-s{ font-size:13.5px; line-height:1.5; color:#E7D4A6; }
body[data-skin="web"] .wc-syn-gold .wc-syn-go{
  flex:none; align-self:center; font:700 12px var(--sans,'Google Sans',system-ui); letter-spacing:.04em;
  color:#F3E3BC; opacity:.92;
}
body[data-skin="web"] .wc-syn-gold:focus-visible{ outline:2px solid #E6CC95; outline-offset:3px; }
@media (prefers-reduced-motion:reduce){
  body[data-skin="web"] .wc-syn-gold,
  body[data-skin="web"] .wc-syn-gold:hover{ transition:none; transform:none; }
  body[data-skin="web"] .wc-syn-gold:hover .wc-syn-sheen{ animation:none; }
}

/* ===== GOLD MEMBERSHIP CARD (S2 "You → Membership") =====
   Same gold system as .wc-syn-gold — a credit-card-aspect etched gold card. Owns
   its own dark gold ground so it reads in BOTH tones (night + vellum). */
body[data-skin="web"] .wy-goldcard{
  position:relative; overflow:hidden; isolation:isolate;
  width:100%; max-width:380px; aspect-ratio:1.586/1;
  border-radius:18px; padding:22px;
  display:flex; flex-direction:column; justify-content:space-between;
  background:linear-gradient(135deg,#2A2216 0%,#4A3A20 45%,#8A6B38 100%);
  border:1px solid #6B5530; color:#F3E3BC;
  box-shadow:0 30px 60px -30px rgba(0,0,0,.8);
  margin:0 0 24px;
}
body[data-skin="web"] .wy-goldcard-free{ opacity:.9; }
body[data-skin="web"] .wy-gc-etch{
  position:absolute; right:-60px; top:-50px; z-index:0;
  opacity:.28; pointer-events:none;
}
body[data-skin="web"] .wy-gc-sheen{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(110deg,transparent 30%,rgba(255,248,230,.35) 48%,transparent 62%);
  transform:translateX(-130%);
  animation:wyGcSheen 5s 1s ease-in-out infinite;
}
@keyframes wyGcSheen{ 0%{transform:translateX(-130%)} 35%,100%{transform:translateX(130%)} }
body[data-skin="web"] .wy-gc-brand{ position:relative; z-index:2; display:flex; align-items:center; gap:10px; }
body[data-skin="web"] .wy-gc-word{
  font:300 24px var(--serif,'Newsreader',Georgia,serif); letter-spacing:-.02em; color:#F3E3BC;
}
body[data-skin="web"] .wy-gc-foot{ position:relative; z-index:2; display:flex; justify-content:space-between; align-items:flex-end; gap:12px; }
body[data-skin="web"] .wy-gc-id{ display:flex; flex-direction:column; gap:5px; min-width:0; }
body[data-skin="web"] .wy-gc-name{ font:700 12px var(--sans,'Google Sans',system-ui); letter-spacing:.2em; color:#F3E3BC; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body[data-skin="web"] .wy-gc-since{ font:700 9px var(--sans,'Google Sans',system-ui); letter-spacing:.14em; color:#D9C291; }
body[data-skin="web"] .wy-gc-rising{ font:700 9px var(--sans,'Google Sans',system-ui); letter-spacing:.14em; color:#D9C291; text-align:right; flex:none; }
@media (prefers-reduced-motion:reduce){
  body[data-skin="web"] .wy-gc-sheen{ animation:none; }
}

/* ---- Karma tests: "Your tests" card + the next-day check-back (Today) ---- */
body[data-skin="web"] #ktcheck:empty, body[data-skin="web"] #ktcard:empty{ display:none; }
body[data-skin="web"] .kt-check{ margin-top:28px; padding:22px 22px 20px; display:flex; flex-direction:column; gap:14px; position:relative; }
body[data-skin="web"] .kt-over{ color:var(--w-brass); }
body[data-skin="web"] .kt-q{ margin:0; font-size:20px; line-height:1.35; font-weight:600; color:var(--w-head); }
body[data-skin="web"] .kt-day{ margin:-6px 0 0; font-size:14px; color:var(--w-t3); }
body[data-skin="web"] .kt-row{ display:flex; gap:8px; }
body[data-skin="web"] .kt-btn{ flex:1; min-height:46px; padding:0 18px; border-radius:23px; font:500 15px var(--sans,'Google Sans',system-ui); cursor:pointer; transition:transform .14s cubic-bezier(.23,1,.32,1); }
body[data-skin="web"] .kt-btn:active{ transform:scale(.97); }
body[data-skin="web"] .kt-btn:focus-visible{ outline:2px solid var(--w-brass); outline-offset:2px; }
body[data-skin="web"] .kt-pri{ border:0; background:var(--w-btnFill); color:var(--w-btnText); }
body[data-skin="web"] .kt-ghost{ border:1px solid var(--w-hair); background:transparent; color:var(--w-head); }
body[data-skin="web"] .kt-fit{ flex:none; }
body[data-skin="web"] .kt-foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
body[data-skin="web"] .kt-foot .kt-btn{ flex:none; }
body[data-skin="web"] .kt-called{ font-size:14px; color:var(--w-t2); font-variant-numeric:tabular-nums; }
body[data-skin="web"] .kt-pass{ display:flex; align-items:baseline; gap:12px; }
body[data-skin="web"] .kt-plus{ font-size:40px; font-weight:700; letter-spacing:-.02em; color:var(--w-brass); font-variant-numeric:tabular-nums; animation:ktpop .5s cubic-bezier(.22,1,.36,1) both; }
body[data-skin="web"] .kt-passt{ font-size:20px; font-weight:600; color:var(--w-head); }
body[data-skin="web"] .kt-line{ margin:0; font-size:16px; line-height:1.5; color:var(--w-body); }
body[data-skin="web"] .kt-lineb{ font-size:18px; font-weight:500; color:var(--w-head); }
body[data-skin="web"] .kt-total{ margin:0; font-size:14px; color:var(--w-t2); font-variant-numeric:tabular-nums; }
body[data-skin="web"] .kt-card{ margin-top:28px; padding:22px 24px; display:flex; flex-direction:column; gap:14px;
  border-radius:18px; border:1px solid #3A3424; background:rgba(200,164,106,0.06); }
body[data-skin="web"][data-tone="vellum"] .kt-card{ border-color:#D8C49A; background:rgba(122,92,40,0.07); }
body[data-skin="web"] .kt-head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; }
body[data-skin="web"] .kt-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:16px; }
body[data-skin="web"] .kt-item{ display:flex; flex-direction:column; gap:4px; padding-left:14px; border-left:2px solid color-mix(in srgb, var(--w-brass) 35%, transparent); }
body[data-skin="web"] .kt-iday{ font-size:14px; font-weight:700; color:var(--w-brass); }
body[data-skin="web"] .kt-iw{ font-size:16px; line-height:1.45; color:var(--w-head); }
body[data-skin="web"] .kt-id{ font-size:16px; line-height:1.45; color:var(--w-t2); }
body[data-skin="web"] .kt-item b{ font-weight:700; }
body[data-skin="web"] .kt-note{ margin:0; font-size:14px; line-height:1.5; color:var(--w-t2); }
@keyframes ktpop{ from{ opacity:0; transform:translateY(6px) scale(.92); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce){ body[data-skin="web"] .kt-plus{ animation:none; } }

/* ============================================================================
   LIVE-QA 2026-11-24 — the onboarding hand-off screens (casting + "read backward")
   were authored for the old cream Atelier theme with bg:var(--ink) + text:var(--parch).
   The web remap points BOTH at --w-head, so in Night the screen went CREAM with cream
   text (title, "That's true" label invisible) and in Vellum it went near-BLACK between
   two beige screens with a navy caption on black. Bind every part to the active tone
   so onboarding -> casting -> read-backward -> Today is ONE theme end to end.
   ========================================================================== */
body[data-skin="web"] #casting{ background:var(--w-ground) !important; }
body[data-skin="web"] #casting .castmsg{ color:var(--w-brass) !important; }
body[data-skin="web"] #casting .castglow{ opacity:.5; }
body[data-skin="web"][data-tone="vellum"] #castchart{ filter:drop-shadow(0 14px 30px rgba(31,45,77,.14)); }
/* the SVG hard-codes light-on-dark fills; in Vellum re-ink them (CSS beats presentation attrs) */
body[data-skin="web"][data-tone="vellum"] #castchart text{ fill:var(--w-t3); }
body[data-skin="web"][data-tone="vellum"] #castchart text[fill^="rgba(217"]{ fill:var(--w-brass); }
body[data-skin="web"][data-tone="vellum"] #castchart .cgl text,
body[data-skin="web"][data-tone="vellum"] #castchart g.cgf text[font-family^="Georgia"]{ fill:var(--w-head); }

body[data-skin="web"] .pc-ink{ background:var(--w-ground); color:var(--w-head); min-height:100dvh; }
body[data-skin="web"] .pc-skip,
body[data-skin="web"] .pc-ink > .micro{ color:var(--w-t3) !important; }
body[data-skin="web"] .pc-title{ color:var(--w-head); }
body[data-skin="web"] .pc-sub{ color:var(--w-t2); }
body[data-skin="web"] .pc-ink .orn{ color:var(--w-brass); }
body[data-skin="web"] .pc-card{ background:var(--w-surface); color:var(--w-body); border:1px solid var(--w-hair); box-shadow:var(--w-cardShadow); }
body[data-skin="web"] .pc-card .per,
body[data-skin="web"] .pc-card .mark{ color:var(--w-brass); }
body[data-skin="web"] .pc-card .st{ color:var(--w-body); }
body[data-skin="web"] .pc-yes{ background:var(--w-btnFill); color:var(--w-btnText); border-color:var(--w-btnFill); }
body[data-skin="web"] .pc-no{ color:var(--w-t2); border-color:var(--w-hair); }
body[data-skin="web"] .pc-close .line{ color:var(--w-head); }
body[data-skin="web"] .pc-begin{ background:var(--w-btnFill); color:var(--w-btnText); }

/* the rest of the legacy bg:var(--ink)+color:var(--parch) primitives that had no web
   remap yet (Soul Family search/request buttons, memory "add", tier cards) */
body[data-skin="web"] .fg-search button,
body[data-skin="web"] .fg-res button,
body[data-skin="web"] .fg-req-btns .acc,
body[data-skin="web"] .factadd button,
body[data-skin="web"] .tier.ink{ background:var(--w-btnFill) !important; color:var(--w-btnText) !important; border-color:var(--w-btnFill) !important; }
body[data-skin="web"] .tcard.t-ink,
body[data-skin="web"] .tdeck .tcard.t-cover{ background:var(--w-raised) !important; border-color:var(--w-hair) !important; color:var(--w-head); }
