/* ═══ LYNQx AMBIENT BACKGROUND — ALL-BLACK-FRONT-END LAW (v7.9.397, owner
   directive, PERMANENT; SUPERSEDES AMBIENT-FADE v7.9.279 dark lane) ═══
   DARK scheme: the front end is SOLID PURE BLACK (#000000) — no gradient,
   no slate/indigo fade stops, zero purple anywhere. Light scheme untouched
   (THEME-PARTITION LAW): it keeps its approved white→mist-blue fade. */
body{
  background:#000000 !important;
}
/* LIGHT-ONLY-APP LAW (v7.9.290 — owner BRAIN RULE: "ZERO black boxes or
   breakouts"): the light fade ends at mist blue, NEVER charcoal — short
   pages must not bottom out into a dark slab.
   PERF-SCROLL LAW (v7.9.452): the `fixed` attachment is RETIRED — it forced
   full-page repaints that ghost-duplicated sections while scrolling (owner
   video 2026-11-11). The gradient is tall enough to read identically. */
html[data-lx-theme="light"] body{
  /* DS v1.0 preview: calm ice fade (white -> ice-weak -> ice-soft) */
  background:linear-gradient(180deg,
    #FFFFFF 0%, #F4FAFF 30%, #EAF7FF 60%, #D6F0FF 100%) !important;
}
/* ── ADAPTIVE-TEXT: shared blocks carry their own contrast so copy stays
   legible at every point of the fade (white blocks w/ dark text on dark
   scheme; ink blocks w/ white text on light scheme) ── */
/* ALL-BLACK-BOX LAW (v7.9.448 — owner directive, PERMANENT BRAIN RULE:
   "There is no background colour allowed other than black including boxes!").
   The dark scheme must NOT paint cards white — the v7.9.288 white-card rule
   below was a direct violation that produced white boxes on /workplace/ and
   every dark front-end page. Dark-scheme cards are now near-black panels with
   light text; the LIGHT scheme (data-lx-theme="light") keeps Pure White cards
   per lx-light.css (that rule lives below and is untouched). */
.card,.panel,.fcard,.app-card,.hub-card{
  background:rgba(16,16,24,0.92)!important;
  border-color:rgba(255,255,255,0.10)!important;
  color:#E8E8F0!important;
}
.card p,.card .small,.card .muted,.card .sub,.card td,.card li,
.panel p,.panel .muted,.app-card p,.hub-card p,
.card h1,.card h2,.card h3,.card h4,.panel h2,.panel h3{color:#C9CBD4!important}
/* dark-scheme labels inside cards carry a muted light tone */
.card label,.panel label,.fcard label,.app-card label,.hub-card label{color:#9A9CAB!important}
.card legend,.panel legend{color:#9A9CAB!important}
/* VAR-ADAPT LAW (v7.9.288): cards carry their OWN palette — dark scheme
   resolves card vars to the light-on-black set so inline var(--text) inside
   a card stays legible on the near-black panel. */
.card,.panel,.fcard,.app-card,.hub-card{--text:#E8E8F0;--text1:#E8E8F0;--text2:#C9CBD4;--text3:#9A9CAB}
html[data-lx-theme="light"] .card,
html[data-lx-theme="light"] .panel,
html[data-lx-theme="light"] .fcard,
html[data-lx-theme="light"] .app-card,
html[data-lx-theme="light"] .hub-card{
  background:rgba(255,255,255,0.96)!important;
  border-color:#D5DCDD!important;
  color:#0A0A0A!important;
}
html[data-lx-theme="light"] .card p,
html[data-lx-theme="light"] .card .small,
html[data-lx-theme="light"] .card .muted,
html[data-lx-theme="light"] .card .sub,
html[data-lx-theme="light"] .card td,
html[data-lx-theme="light"] .card li,
html[data-lx-theme="light"] .panel p,
html[data-lx-theme="light"] .panel .muted,
html[data-lx-theme="light"] .app-card p,
html[data-lx-theme="light"] .hub-card p{color:#3A3F44!important}
html[data-lx-theme="light"] .card,html[data-lx-theme="light"] .panel,html[data-lx-theme="light"] .fcard,html[data-lx-theme="light"] .app-card,html[data-lx-theme="light"] .hub-card{--text:#0A0A0A;--text1:#0A0A0A;--text2:#3A3F44;--text3:#6B7280}

/* ── AMBIENT-FADE v2 legibility extensions (QA-verified) ── */
.step-card{background:rgba(255,255,255,0.94)!important;border-color:rgba(255,255,255,0.5)!important;color:#0A0A0A!important}
.step-card p,.step-card span,.step-card div,.step-card h3,.step-card h4{color:#1D1D1F!important}
html[data-lx-theme="light"] .step-card{background:rgba(255,255,255,0.96)!important;border-color:#D5DCDD!important}
html[data-lx-theme="light"] .step-card p,
html[data-lx-theme="light"] .step-card span,
html[data-lx-theme="light"] .step-card div,
html[data-lx-theme="light"] .step-card h3,
html[data-lx-theme="light"] .step-card h4{color:#1D1D1F!important}
/* dark-marketing navs (psychology etc.) — keep brand + CTA readable on black crown */
.lxnav a{color:#e8e8f0!important}
.lxnav .logo,.lxnav b,.lxnav strong{color:#fff!important}
.lxnav .btn,.lxnav a[style*="background"]{color:#0A0A0A!important}
/* white-on-white guard: white text sitting directly on a white block flips to ink */
.panel[style*="background"],div[style*="background:#fff"],div[style*="background: #fff"]{color:#0A0A0A!important}


/* ── ALL-BLACK-FRONT-END LAW (v7.9.397): the cinematic veil's colour wash
   (slate/indigo gradient) is REMOVED. Dark scheme: the veil is a neutral
   black scrim only — pure black page, zero colour tint. Light scheme rules
   below stay untouched (THEME-PARTITION LAW). ── */
.cinematic-veil{
  background:linear-gradient(90deg,rgba(0,0,0,0.55) 0%,rgba(0,0,0,0.40) 34%,rgba(0,0,0,0.18) 62%,rgba(0,0,0,0.10) 100%) !important;
}
html[data-lx-theme="light"] .cinematic-veil{
  background:linear-gradient(180deg,rgba(255,255,255,0.55) 0%,rgba(244,250,255,0.38) 30%,rgba(214,240,255,0.30) 65%,rgba(161,221,255,0.18) 100%) !important;
}
/* pages with fixed body::before scrims (radial glow layers) must not pin
   the whole viewport to the top-of-fade tone: keep them translucent. */

/* ── LIGHT-COASTAL LAW (v7.9.279): on light pages the brand card/panel
   palette stays LIGHT (Luxury Coastal Tech) — only the page fade darkens
   toward the bottom. Content blocks must never turn into black slabs. ── */
html[data-lx-theme="light"] .card,
html[data-lx-theme="light"] .panel,
html[data-lx-theme="light"] .fcard,
html[data-lx-theme="light"] .app-card,
html[data-lx-theme="light"] .hub-card,
html[data-lx-theme="light"] .step-card{
  background:#FFFFFF!important;
  border-color:#D5DCDD!important;
  color:#0A0A0A!important;
  box-shadow:0 1px 6px rgba(10,10,10,0.08)!important;
}
html[data-lx-theme="light"] .card p,
html[data-lx-theme="light"] .card .small,
html[data-lx-theme="light"] .card .muted,
html[data-lx-theme="light"] .card .sub,
html[data-lx-theme="light"] .card td,
html[data-lx-theme="light"] .card li,
html[data-lx-theme="light"] .panel p,
html[data-lx-theme="light"] .panel .muted,
html[data-lx-theme="light"] .app-card p,
html[data-lx-theme="light"] .hub-card p,
html[data-lx-theme="light"] .step-card p,
html[data-lx-theme="light"] .step-card span,
html[data-lx-theme="light"] .step-card div,
html[data-lx-theme="light"] .step-card h3,
html[data-lx-theme="light"] .step-card h4,
html[data-lx-theme="light"] .card h1,
html[data-lx-theme="light"] .card h2,
html[data-lx-theme="light"] .card h3,
html[data-lx-theme="light"] .card h4,
html[data-lx-theme="light"] .panel h2,
html[data-lx-theme="light"] .panel h3{color:#1D1D1F!important}
/* light-scheme veil over cinematic art: white at top → charcoal at bottom,
   soft enough for ink text to read everywhere */
html[data-lx-theme="light"] .cinematic-veil{
  background:linear-gradient(180deg,rgba(255,255,255,0.60) 0%,rgba(244,245,247,0.42) 30%,rgba(210,214,222,0.30) 60%,rgba(60,64,72,0.26) 100%) !important;
}

/* ── PERFECT-TRANSITION LAW (v7.9.279): text adapts to the fade. Light
   scheme: ink text in the bright zone, white text as the page darkens.
   Section containers carry a soft scrim so copy reads at every stop. ── */
html[data-lx-theme="light"] body{color:#0A0A0A}
html[data-lx-theme="light"] h1,html[data-lx-theme="light"] h2,
html[data-lx-theme="light"] h3,html[data-lx-theme="light"] p,
html[data-lx-theme="light"] li,html[data-lx-theme="light"] td,
html[data-lx-theme="light"] span,html[data-lx-theme="light"] div{color:inherit}
/* ── FADE-INK LAW (v7.9.489 — owner report 2026-11-16: washed-out sections on
   light pages; PERFECT-TRANSITION v7.9.279 SUPERSEDED): the light fade bottoms
   at #9dc3d1 (luminance ~0.5 — WHITE TEXT FAILS CONTRAST ON IT) and LIGHT-COASTAL
   paints cards white, so the old "white text from section 4 down" rule produced
   white-on-white headings and copy fleet-wide (proof: /wearables/ section 5+
   headings invisible). Sections on light are now INK at every stop of the fade.
   Footer rules unchanged — lx-light.css owns #lx-footer with id-level wins, and
   bare dark-slab footers keep their white text. ── */
html[data-lx-theme="light"] section:nth-of-type(n+4) h1,
html[data-lx-theme="light"] section:nth-of-type(n+4) h2,
html[data-lx-theme="light"] section:nth-of-type(n+4) h3,
html[data-lx-theme="light"] section:nth-of-type(n+4) p,
html[data-lx-theme="light"] section:nth-of-type(n+4) span,
html[data-lx-theme="light"] section:nth-of-type(n+4) a:not(.btn):not([class*="gold"]){color:#0A0A0A!important}
html[data-lx-theme="light"] footer,html[data-lx-theme="light"] footer a,
html[data-lx-theme="light"] .lx-footer,html[data-lx-theme="light"] .lx-footer a{color:#F0F2F5!important}
html[data-lx-theme="light"] section,html[data-lx-theme="light"] .section,
html[data-lx-theme="light"] .band-wrap,html[data-lx-theme="light"] main>div{
  background:linear-gradient(180deg,rgba(255,255,255,0.001),rgba(255,255,255,0.001));
}
/* universal crumb/eyebrow/status contrast */
.crumb,.lx-exp-eyebrow,.tag{color:inherit;opacity:.85}
html[data-lx-theme="light"] .crumb,html[data-lx-theme="light"] .lx-exp-eyebrow{color:#3A3F44!important}

/* ── LIGHT-READS LAW (v7.9.280): light scheme — ALL body copy renders in
   brand ink (#0A0A0A). White-on-white washed copy (dashboard panels,
   avatar-pick names, flyout links, setup text) is banned. ── */
html[data-lx-theme="light"] #dashAvatarPick *,
html[data-lx-theme="light"] #avatarSuite *{color:#1D1D1F!important}
html[data-lx-theme="light"] #dashAvatarPick .lxACC,
html[data-lx-theme="light"] #dashAvatarPick .lxDF{border-color:#94a3b8!important;color:#1D1D1F!important}
html[data-lx-theme="light"] .panel,html[data-lx-theme="light"] .panel *{color:#1D1D1F!important}
html[data-lx-theme="light"] .panel h2,html[data-lx-theme="light"] .panel h3{color:#0A0A0A!important}
html[data-lx-theme="light"] #lxRailFly a{color:#1D1D1F!important}
html[data-lx-theme="light"] #lxRailFly{background:#ffffff!important;border-right-color:#D5DCDD!important}
html[data-lx-theme="light"] #lxRailFly h3{color:#1B2F7E!important}
html[data-lx-theme="light"] #lxRailFly .lxr-sub{color:#5b6470!important}
html[data-lx-theme="light"] #lxRailFly .lxr-sec{color:#1B2F7E!important}
html[data-lx-theme="light"] #lxRail{background:rgba(255,255,255,0.94)!important;border-right-color:#D5DCDD!important}
html[data-lx-theme="light"] #lxRail .lxr-btn{color:#1D1D1F!important}
/* avatar pick tiles: pale disc so transparent cut-outs show in light mode */
html[data-lx-theme="light"] #dashAvatarGrid>div>div:first-child,
html[data-lx-theme="light"] #avatarGrid>*>div:first-child{background:#EAF5F7!important;border-color:#D5DCDD!important}
/* name labels under faces */
html[data-lx-theme="light"] #dashAvatarGrid div,html[data-lx-theme="light"] #avatarGrid div{color:#1D1D1F!important}

/* ── light flyout panel (declared in dashboard inline CSS) ── */
html[data-lx-theme="light"] #lxRailFly{background:#ffffff!important}
html[data-lx-theme="light"] #lxRailFly a{color:#1D1D1F!important}
html[data-lx-theme="light"] #lxRailFly .lxr-sub{color:#5b6470!important}
html[data-lx-theme="light"] #lxRailFly .lxr-sec{color:#1B2F7E!important}

/* ── INK-ON-LIGHT-CARDS LAW (v7.9.280): any element whose own inline style
   sets near-white text while sitting inside a white/light card, panel,
   modal or flyout is flipped to ink — in BOTH schemes (these blocks are
   white in dark scheme and must stay light in light scheme). ── */
.card [style*="color:rgba(255,255,255"],.card [style*="color:#fff"],
.panel [style*="color:rgba(255,255,255"],.panel [style*="color:#fff"],
.fcard [style*="color:rgba(255,255,255"],.app-card [style*="color:rgba(255,255,255"],
.hub-card [style*="color:rgba(255,255,255"],
div[style*="background:#fff"] [style*="color:rgba(255,255,255"],
div[style*="background: #fff"] [style*="color:rgba(255,255,255"],
div[style*="background:#fff"] [style*="color:#fff"],
div[style*="background: #fff"] [style*="color:#fff"]{color:#1D1D1F!important}
/* and the converse: ink-styled text on dark blocks flips to white */
[style*="background:#0"][style*="color:#0A0A0A"],
[style*="background: rgb(10,10,10)"] *{color:#F5F6F7!important}

/* ═══ LOGO-LOCK LAW (v7.9.444 — owner directive: "Every logo MUST be
   identical") ═══ Canonical wordmark: Inter 18px / weight 800 /
   letter-spacing -0.5px, gold x. Hero-scale wordmarks (font-size >= 24px)
   keep their size; everything smaller snaps to canon. */
a.logo, .lxnav .logo, span.logo, div.logo{font-family:'Inter',sans-serif !important;font-weight:800 !important;letter-spacing:-0.5px !important}
