/* ═══ LYNQx LIGHT SCHEME — Luxury Coastal Tech (v4.95.13) ═══
   Activated by <html data-lx-theme="light"> via lx-theme.js.
   Maps the dark app-shell variables onto the light lock-up palette:
   Very Pale Coastal Blue #F4FAFF (hero workspace bg, preferred),
   Pure White #FFFFFF cards, Midnight Ink #0A0A0A primary text,
   Slate Grey #3A3F44 secondary, Silver Line #D5DCDD hairlines,
   LYNQx Gold #223EA1 accents (reserved for premium/key actions). */
html[data-lx-theme="light"]{
  --bg:#F4FAFF;
  --bg2:#EFF7F9;
  --card:#FFFFFF;
  /* NO-BLACK-BOX LAW (v7.9.306 — owner: "Black boxes still appearing on
     dasboard"): --card2 was missing here, so every inline var(--card2)
     (Agent Cloud cards, .decision, .pulse, .action-card…) fell back to the
     dark :root value and rendered black on the light dashboard. The engine
     must map EVERY dark variable — never patch page by page. */
  --card2:#F5F6F7;
  /* NO-BLACK-BOX LAW (v7.9.509 — owner: "run a sweep for black on every page
     from dashboard… still serving breaking brain rules"): --panel2 was never
     mapped, so every var(--panel2) surface (feature chips, input lanes,
     board columns on /projects/ etc.) rendered the dark :root value —
     #11111A black cards with near-black text on the light field. */
  --panel2:#FFFFFF;
  --panel:#FFFFFF;
  --surface:#F5F6F7;
  --border:#D5DCDD;
  --hairline:#D5DCDD;
  --text:#0A0A0A;
  --text1:#0A0A0A;
  --text2:#3A3F44;
  --text3:#6B7280;
  --muted:#6B7280;
  --nav-bg:#1D1D1F;
  color-scheme:light;
}
html[data-lx-theme="light"] body{
  background:#F4FAFF;
  color:#0A0A0A;
}
/* white cards on ocean-blue backgrounds for clarity and depth */
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:#FFFFFF;
  border-color:#D5DCDD;
  color:#0A0A0A;
  box-shadow:0 1px 4px rgba(10,10,10,.05);
}
html[data-lx-theme="light"] .card p,
html[data-lx-theme="light"] .card .small,
html[data-lx-theme="light"] .muted,
html[data-lx-theme="light"] .sub,
html[data-lx-theme="light"] .sec-sub{color:#3A3F44}
/* inputs */
html[data-lx-theme="light"] input.lx,
html[data-lx-theme="light"] textarea.lx,
html[data-lx-theme="light"] select.lx,
html[data-lx-theme="light"] input:not([type=checkbox]):not([type=radio]),
html[data-lx-theme="light"] textarea,
html[data-lx-theme="light"] select{
  background:#FFFFFF;
  border-color:#D5DCDD;
  color:#0A0A0A;
}
html[data-lx-theme="light"] input:focus,
html[data-lx-theme="light"] textarea:focus{border-color:#223EA1;outline:none}
html[data-lx-theme="light"] ::placeholder{color:#6B7280;opacity:.75}
/* shell header keeps Deep Charcoal navigation per palette §4 — nav stays dark for contrast */
html[data-lx-theme="light"] header.lx{background:#1D1D1F;color:#fff}
/* ghost buttons */
html[data-lx-theme="light"] .btn.ghost{
  background:rgba(255,255,255,.7);
  border-color:#D5DCDD;
  color:#0A0A0A;
}
html[data-lx-theme="light"] .btn.ghost:hover{border-color:#223EA1;color:#1B2F7E}
/* cinematic heroes: soften to coastal light */
/* LIGHT-ONLY-APP LAW (v7.9.290): the photo itself is washed to a faint
   coastal watermark — no dark band survives on app surfaces */
html[data-lx-theme="light"] .cinematic-hero::before{
  filter:brightness(2.1) saturate(.35);opacity:.3;
}
html[data-lx-theme="light"] .cinematic-hero::after{
  background:linear-gradient(180deg,rgba(244,250,255,.55) 0%,rgba(244,250,255,.85) 60%,rgba(244,250,255,.96) 100%);
}
html[data-lx-theme="light"] .cinematic-hero p{color:rgba(10,10,10,.75)}
html[data-lx-theme="light"] .cinematic-hero .hero-badge{
  background:rgba(255,255,255,.75);border-color:#D5DCDD;color:#3A3F44;
}
/* grids/tables */
html[data-lx-theme="light"] table.lx thead th,
html[data-lx-theme="light"] thead th{color:#3A3F44;border-color:#D5DCDD;background:#F5F6F7}
html[data-lx-theme="light"] tbody td{border-color:#E5EAEB;color:#0A0A0A}
/* overlays */
html[data-lx-theme="light"] .menu-overlay,
/* footer */
html[data-lx-theme="light"] #lx-footer footer{background:#EFF7F9!important;border-color:#D5DCDD!important;color:#3A3F44!important}
html[data-lx-theme="light"] #lx-footer a,html[data-lx-theme="light"] #lx-footer span,html[data-lx-theme="light"] #lx-footer div{color:#3A3F44!important}
html[data-lx-theme="light"] #lx-footer a:hover{color:#1B2F7E!important}
html[data-lx-theme="light"] #lx-footer a span{color:#0A0A0A!important}
html[data-lx-theme="light"] #lx-footer [style*="border"]{border-color:#D5DCDD!important}
/* scrollbars stay gold */
/* stage surfaces that must stay dark regardless (video meeting stage, canvas demos) */
html[data-lx-theme="light"] .stage{background:#000;color:#fff}

/* text — every heading/strong flips to Midnight Ink */
html[data-lx-theme="light"] h1:not(.lx-logo):not(.cinematic-hero h1),
html[data-lx-theme="light"] h2,
html[data-lx-theme="light"] h3,
html[data-lx-theme="light"] h4,
html[data-lx-theme="light"] h5,
html[data-lx-theme="light"] main h1,
html[data-lx-theme="light"] main h2,
html[data-lx-theme="light"] main h3,
html[data-lx-theme="light"] b,
html[data-lx-theme="light"] strong{color:#0A0A0A}
html[data-lx-theme="light"] .cinematic-hero h1{color:#0A0A0A;text-shadow:0 2px 18px rgba(255,255,255,.55)}
html[data-lx-theme="light"] .cinematic-hero h1 span{color:#1B2F7E!important} /* ONE-TEAL LAW (v7.9.290) */
html[data-lx-theme="light"] .hero-badge{color:#3A3F44}
html[data-lx-theme="light"] label{color:#3A3F44}
html[data-lx-theme="light"] .lx h1,html[data-lx-theme="light"] .lx h2,html[data-lx-theme="light"] .lx h3{color:#0A0A0A}
/* v4.95.18: shell h1 span was hardcoded #fff in shell.css — invisible on light hero */
html[data-lx-theme="light"] h1.lx span{color:#1B2F7E}
/* v4.95.18 light-mode legibility correctives (luminance-audit flagged) */
html[data-lx-theme="light"] .cat-tab.active{color:#0A0A0A;background:rgba(34,62,161,0.25);border-color:rgba(34,62,161,0.45)}
html[data-lx-theme="light"] .badge.free{color:#0A7C66;background:rgba(62,91,199,0.12)}
html[data-lx-theme="light"] .agent-footer .cost .highlight,html[data-lx-theme="light"] .highlight{color:#1B2F7E;font-weight:700}
html[data-lx-theme="light"] .msg.sys{color:rgba(0,0,0,0.5)}
html[data-lx-theme="light"] .privacy{color:rgba(0,0,0,0.55)}
html[data-lx-theme="light"] .composer .icon-btn{color:#1D1D1F;background:rgba(0,0,0,0.05);border-color:rgba(0,0,0,0.15)}
html[data-lx-theme="light"] .plat-badges .badge.category{color:#1D1D1F}
html[data-lx-theme="light"] .pricing .unlock{color:#1B2F7E;background:rgba(34,62,161,0.12);border-color:rgba(34,62,161,0.3)}
html[data-lx-theme="light"] .composer .icon-btn span.e,html[data-lx-theme="light"] .icon-btn .e{color:#1D1D1F}
/* dim text inside dark-footer blocks (platforms page inline footer) — brighten for legibility.
   Scoped via :not(#lx-footer) so the shared light footer carve-out above is untouched. */
html[data-lx-theme="light"] body>footer:not(#lx-footer),html[data-lx-theme="light"] body>footer:not(#lx-footer) div,html[data-lx-theme="light"] body>footer:not(#lx-footer) p{color:rgba(255,255,255,0.75)}
html[data-lx-theme="light"] a{color:#0A0A0A}
html[data-lx-theme="light"] a:hover{color:#1B2F7E}
html[data-lx-theme="light"] li{color:#3A3F44}
html[data-lx-theme="light"] li strong,html[data-lx-theme="light"] p strong{color:#0A0A0A}
/* gold buttons keep black text; white text on dark chips stays */
html[data-lx-theme="light"] .btn.gold,html[data-lx-theme="light"] .hub-btn.gold{color:#000}
/* section labels */
html[data-lx-theme="light"] .sec-label,html[data-lx-theme="light"] .sec-title{color:#0A0A0A}

/* Contrast pass: secondary copy in Slate Grey per brand guidelines */
html[data-lx-theme="light"] p{color:#3A3F44}
html[data-lx-theme="light"] .sec-sub,html[data-lx-theme="light"] .hero-sub{color:#3A3F44}
html[data-lx-theme="light"] .cinematic-hero p{color:#2A2F34}
html[data-lx-theme="light"] small,html[data-lx-theme="light"] .muted{color:#4A5157}
html[data-lx-theme="light"] .lx p{color:#3A3F44}

/* Cinematic scheme transition */

body,.card,.lx,header.lx,.cinematic-hero,.goldcard,.btn.ghost,table,th,td,#lx-footer footer{transition:background-color .6s cubic-bezier(.4,0,.2,1),color .6s cubic-bezier(.4,0,.2,1),border-color .6s cubic-bezier(.4,0,.2,1),box-shadow .6s cubic-bezier(.4,0,.2,1)}

/* ===== v4.95.15 LEGIBILITY FORENSIC ===== */
/* Explainer cards: ink on white in light mode */
html[data-lx-theme="light"] .lx-exp-card{background:#FFFFFF;border-color:#D5DCDD}
html[data-lx-theme="light"] .lx-exp-card h3{color:#0A0A0A}
html[data-lx-theme="light"] .lx-exp-card .lx-exp-sub{color:#3A3F44}
html[data-lx-theme="light"] ul.lx-exp-list li{color:#1D1D1F;border-bottom-color:#D5DCDD}
html[data-lx-theme="light"] .lx-explain h2.lx-exp-h{color:#0A0A0A}
html[data-lx-theme="light"] .lx-explain p.lx-exp-p{color:#3A3F44}
html[data-lx-theme="light"] .lx-exp-close{color:#3A3F44;background:#F2E6B2;border-left-color:#1B2F7E}
/* Any leftover faint-on-light text: raise everything to Slate or Ink */
html[data-lx-theme="light"] td,html[data-lx-theme="light"] th{color:#1D1D1F}
html[data-lx-theme="light"] code,html[data-lx-theme="light"] pre{color:#0A0A0A;background:#F5F6F7}
html[data-lx-theme="light"] a{color:#1D1D1F}
html[data-lx-theme="light"] nav a,html[data-lx-theme="light"] .hmenu a,html[data-lx-theme="light"] .hamburger-menu a,html[data-lx-theme="light"] .hamburger-panel a,html[data-lx-theme="light"] .hamburger-panel-body a,html[data-lx-theme="light"] .header a,html[data-lx-theme="light"] .nav-fixed a{color:rgba(255,255,255,0.85)}
html[data-lx-theme="light"] nav a:hover,html[data-lx-theme="light"] .hamburger-menu a:hover,html[data-lx-theme="light"] .hamburger-panel a:hover,html[data-lx-theme="light"] .header a:hover,html[data-lx-theme="light"] .nav-fixed a:hover{color:#FFFFFF}
html[data-lx-theme="light"] nav a.cta,html[data-lx-theme="light"] .header a.nav-cta,html[data-lx-theme="light"] .nav-fixed a.nav-cta{color:#0A0A0A}
html[data-lx-theme="light"] #lx-footer nav a,html[data-lx-theme="light"] footer nav a,html[data-lx-theme="light"] #lx-footer a,html[data-lx-theme="light"] footer a{color:#1D1D1F}
html[data-lx-theme="light"] #lx-footer a:hover,html[data-lx-theme="light"] footer a:hover{color:#1B2F7E}
html[data-lx-theme="light"] .hamburger-panel-body a.hp-primary,html[data-lx-theme="light"] .hamburger-menu a.hp-primary,html[data-lx-theme="light"] nav a.hp-primary{color:#0A0A0A}
html[data-lx-theme="light"] a:hover{color:#1B2F7E}
html[data-lx-theme="light"] .btn,html[data-lx-theme="light"] button{color:#0A0A0A}
html[data-lx-theme="light"] .btn.gold{color:#000!important}
/* NAV STAYS DARK + GOLD HAMBURGER ON EVERY PAGE (law) */
html[data-lx-theme="light"] header.lx .nav-links a{color:rgba(255,255,255,0.82)}
html[data-lx-theme="light"] header.lx .nav-links a:hover,html[data-lx-theme="light"] header.lx .nav-links a.cta{color:#fff}
html[data-lx-theme="light"] header.lx .nav-links a.app-loc{color:#8A6D1F}
.hbtn span{background:#223EA1!important}
html[data-lx-theme="light"] .hbtn{background:rgba(34,62,161,0.08);border-color:rgba(34,62,161,0.45)}
html[data-lx-theme="light"] .hmenu{background:#1D1D1F!important;color:#fff}
html[data-lx-theme="light"] .hmenu a{color:rgba(255,255,255,0.88)!important}
html[data-lx-theme="light"] .hmenu a:hover{color:#8A6D1F!important}

/* v4.95.15 — audit round 2 fixes */
/* 1. Native select dropdowns: force light popup palette */
html[data-lx-theme="light"] select option{background:#FFFFFF;color:#0A0A0A}
/* 2. Non-shell pages keep NAV DARK + GOLD hamburger in light mode too (site-nav.js family) */
html[data-lx-theme="light"] nav{background:#1D1D1F!important;color:#fff}
html[data-lx-theme="light"] nav a,html[data-lx-theme="light"] nav span,html[data-lx-theme="light"] nav button{color:rgba(255,255,255,0.88)!important}
html[data-lx-theme="light"] nav a:hover{color:#8A6D1F!important}

/* v4.95.15 — round 3: Projects tab bar + generic tab bars */
html[data-lx-theme="light"] .tabs,html[data-lx-theme="light"] .tabs.no-print{background:#FFFFFF!important;color:#0A0A0A;border-color:#D5DCDD}
html[data-lx-theme="light"] .tabs a,html[data-lx-theme="light"] .tabs button,html[data-lx-theme="light"] .tabs span{color:#1D1D1F!important}
html[data-lx-theme="light"] .tabs a:hover,html[data-lx-theme="light"] .tabs button:hover{color:#1B2F7E!important}

/* v4.95.15 — round 4: generic secondary/ghost CTA buttons on light heroes */
html[data-lx-theme="light"] .hero-cta .secondary,html[data-lx-theme="light"] .price-btn.secondary,html[data-lx-theme="light"] a.secondary{background:#FFFFFF;border-color:#D5DCDD;color:#1D1D1F!important}
html[data-lx-theme="light"] .hero-cta .secondary:hover,html[data-lx-theme="light"] a.secondary:hover{border-color:#223EA1;color:#1B2F7E!important}

/* v4.95.16 — CoS research-page light scheme (section headings, ledes, cards, steps, CTAs) */
html[data-lx-theme="light"] .section h2{color:#0A0A0A}
html[data-lx-theme="light"] .section>.lede,html[data-lx-theme="light"] .lede{color:#3A3F44}
html[data-lx-theme="light"] .lede strong,html[data-lx-theme="light"] .lede b{color:#1B2F7E}
html[data-lx-theme="light"] .feature-card,html[data-lx-theme="light"] .f-card{background:#FFFFFF;border-color:#D5DCDD}
html[data-lx-theme="light"] .feature-card h3,html[data-lx-theme="light"] .feature-card h4,html[data-lx-theme="light"] .f-card h3,html[data-lx-theme="light"] .f-card h4{color:#0A0A0A}
html[data-lx-theme="light"] .feature-card p,html[data-lx-theme="light"] .f-card p,html[data-lx-theme="light"] .f-text{color:#3A3F44}
html[data-lx-theme="light"] .feature-card p strong,html[data-lx-theme="light"] .feature-card p b{color:#1B2F7E}
html[data-lx-theme="light"] .how-step{background:#FFFFFF;border-color:#D5DCDD}
html[data-lx-theme="light"] .how-step p,html[data-lx-theme="light"] .how-step{color:#3A3F44}
html[data-lx-theme="light"] .how-num{color:#1B2F7E}
html[data-lx-theme="light"] .price-big{background:none;-webkit-text-fill-color:#0A0A0A;color:#0A0A0A}
html[data-lx-theme="light"] .price-lbl,html[data-lx-theme="light"] .price-note{color:#3A3F44}
html[data-lx-theme="light"] .price-note strong{color:#1B2F7E}
html[data-lx-theme="light"] .stat b{background:none;-webkit-text-fill-color:#0A0A0A;color:#0A0A0A}
html[data-lx-theme="light"] .stat span{color:#3A3F44}
html[data-lx-theme="light"] .replaces-adv{color:#3A3F44}
html[data-lx-theme="light"] .cta-section h2{color:#0A0A0A}
html[data-lx-theme="light"] .cta-section p{color:#3A3F44}
html[data-lx-theme="light"] .trial-note{color:#6B7280}
html[data-lx-theme="light"] .btn-ghost{background:#FFFFFF;border-color:#D5DCDD;color:#1D1D1F}
html[data-lx-theme="light"] .btn-ghost:hover{border-color:#223EA1;color:#1B2F7E}
html[data-lx-theme="light"] .ent-cta div[style*="color:rgba(255,255,255"]{color:#3A3F44!important}
html[data-lx-theme="light"] .ent-cta div[style*="font-weight:800"]{color:#0A0A0A!important}
html[data-lx-theme="light"] .hero p{color:#3A3F44}
html[data-lx-theme="light"] .hero h1{color:#0A0A0A}
html[data-lx-theme="light"] select,html[data-lx-theme="light"] input{background:#FFFFFF;border-color:#D5DCDD;color:#0A0A0A}

/* v4.97.1 RETIRED (v7.9.290): the old "imaged heroes keep white text in
   light theme" !important block pre-dates FRONT-END DARK-ONLY — the only
   light surfaces left are app pages, where white hero text is invisible on
   the pale field. Hero text on light is ink/teal, always. */
html[data-lx-theme="light"] .hero h1 span{color:#1B2F7E}
html[data-lx-theme="light"] .hero .trial-note{color:#6B7280}
/* LIGHT-ONLY-APP LAW: gold CTA buttons become teal on app surfaces */
html[data-lx-theme="light"] .btn-gold{background:#223EA1;color:#FFFFFF}
/* LIGHT-SCROLLBAR LAW (v7.9.445 — owner directive: "Meetings has a black and
   gold scroll bar - critical fail… check every scroll bar in back end to be
   light"): scrollbars are theme-partitioned — LIGHT ocean scrollbars on every
   light/back-end surface; the gold shimmer survives ONLY on the all-black
   customer-facing front end (supersedes GOLD-SCROLLBAR LAW v6.6.0 scope). */
html[data-lx-theme="light"] ::-webkit-scrollbar{width:9px;height:9px}
html[data-lx-theme="light"] ::-webkit-scrollbar-track{background:#EAF3F8}
html[data-lx-theme="light"] ::-webkit-scrollbar-thumb{background:#B9CFDA;border-radius:5px;animation:none}
html[data-lx-theme="light"] ::-webkit-scrollbar-thumb:hover{background:#93B6C6}
html[data-lx-theme="light"]{scrollbar-width:thin;scrollbar-color:#B9CFDA #EAF3F8}
html[data-lx-theme="dark"] ::-webkit-scrollbar{width:8px;height:8px}
html[data-lx-theme="dark"] ::-webkit-scrollbar-track{background:#0a0a12}
html[data-lx-theme="dark"] ::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#1B2F7E,#3E5BC7,#A1DDFF,#223EA1,#1B2F7E);background-size:100% 200%;border-radius:4px;animation:scrollShimmer 3s ease-in-out infinite}
html[data-lx-theme="dark"] ::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#3E5BC7,#A1DDFF,#FFF8DC,#A1DDFF,#3E5BC7)}
@keyframes scrollShimmer{0%,100%{background-position:0% 0%}50%{background-position:0% 100%}}
html[data-lx-theme="dark"]{scrollbar-width:thin;scrollbar-color:#223EA1 #0a0a12}

/* v6.6.0 NO-HSCROLL LAW: off-canvas shell menus must never create horizontal scroll */
html,body{overflow-x:hidden}

/* v7.9.76 LIGHT-LEGIBILITY: gold text fails WCAG on the light field —
   all explicit gold text shifts to the dark-gold reading tone. */
html[data-lx-theme="light"] [style*="color:#223EA1"],html[data-lx-theme="light"] [style*="color: #223EA1"],
html[data-lx-theme="light"] [style*="color:#223EA1"],html[data-lx-theme="light"] [style*="color: #223EA1"],
html[data-lx-theme="light"] [style*="color:var(--gold)"],html[data-lx-theme="light"] [style*="color: var(--gold)"],
html[data-lx-theme="light"] .gold,html[data-lx-theme="light"] .gold-text,html[data-lx-theme="light"] .text-gold{color:#8A6D1F!important}

/* v7.9.81 BAND-LEGIBILITY LAW (BRAIN RULE — absolute): the cinematic bands
   (brain-band / eco-band / reach band / any dark .band-wrap child) are ALWAYS
   dark panels. The light scheme must NEVER recolour their text dark-on-dark,
   and dark mode must never leave them uncoloured. Pins apply in BOTH themes
   because this file ships on every themed page. */
.brain-band h2,.eco-band h2,.brain-band p,.eco-band .lede{color:#FFFFFF}
html[data-lx-theme="light"] .brain-band h2,html[data-lx-theme="light"] .eco-band h2{color:#FFFFFF!important}
html[data-lx-theme="light"] .brain-band p,html[data-lx-theme="light"] .eco-band>.lede{color:rgba(255,255,255,0.78)!important}
html[data-lx-theme="light"] .brain-band strong,html[data-lx-theme="light"] .eco-band strong{color:#FFFFFF!important}
.eco-card h3{color:#FFFFFF}
html[data-lx-theme="light"] .eco-card h3{color:#FFFFFF!important}
html[data-lx-theme="light"] .eco-card h3 span,html[data-lx-theme="light"] .eco-band h2 span{color:#223EA1!important;-webkit-text-fill-color:#223EA1!important}
.eco-card p{color:rgba(255,255,255,0.72)}
html[data-lx-theme="light"] .eco-card p{color:rgba(255,255,255,0.72)!important}
html[data-lx-theme="light"] .brain-stat span{color:rgba(255,255,255,0.68)!important}
/* LYNQx Reach band: translucent-gold strip turns near-white in light mode —
   pin it dark so its white copy stays legible */
html[data-lx-theme="light"] .lxr-band{background:#101018!important;border-color:rgba(34,62,161,0.4)!important}
html[data-lx-theme="light"] .lxr-band div{color:#FFFFFF!important}
html[data-lx-theme="light"] .lxr-band span{color:#223EA1!important}

/* ══════════════════════════════════════════════════════════════════
   v7.9.290 LIGHT-ONLY-APP LAW (owner BRAIN RULE) — universal app-surface
   light lock-up. The dashboard and every page off it: Very Pale Coastal
   Blue field #F4FAFF, Pure White boxes, Midnight Ink text, ONE teal for
   every icon (#223EA1 — the Apps-dashboard glyph colour), light-blue
   buttons. ZERO black boxes, ZERO gold accents on app surfaces.
   Specificity html[attr] (0,1,1) beats every page-level :root (0,1,0). */
html[data-lx-theme="light"]{
  --bg:#F4FAFF;--bg2:#EFF7F9;--bg3:#F5F6F7;
  --card:#FFFFFF;--panel:#FFFFFF;--surface:#F5F6F7;
  --border:#D5DCDD;--hairline:#D5DCDD;
  --text:#0A0A0A;--text1:#0A0A0A;--text2:#3A3F44;--text3:#6B7280;--muted:#6B7280;
  --gold:#223EA1;--accent:#223EA1;--accent2:#0E9E72;--primary:#223EA1;
  --sel:rgba(34,62,161,.10);
  --appbar:#FFFFFF;
}
/* page field — kill every hardcoded dark body/field on app surfaces */
html[data-lx-theme="light"] body,
html[data-lx-theme="light"] main,
html[data-lx-theme="light"] .wrap,
html[data-lx-theme="light"] .page,
html[data-lx-theme="light"] .stage-lite{background:#F4FAFF;color:#0A0A0A}
/* chrome bars — white, never black */
html[data-lx-theme="light"] .appbar,
html[data-lx-theme="light"] .toolbar,
html[data-lx-theme="light"] .topbar,
html[data-lx-theme="light"] .ribbon,
html[data-lx-theme="light"] .side,
html[data-lx-theme="light"] .sidebar,
html[data-lx-theme="light"] .rail,
html[data-lx-theme="light"] .mnav,
html[data-lx-theme="light"] .tabbar{
  background:#FFFFFF;color:#0A0A0A;border-color:#D5DCDD;
}
html[data-lx-theme="light"] .appbar *,html[data-lx-theme="light"] .toolbar *{color:inherit}
/* boxes — white cards only, zero black boxes */
html[data-lx-theme="light"] .box,
html[data-lx-theme="light"] .tile,
html[data-lx-theme="light"] .widget,
html[data-lx-theme="light"] .kpi,
html[data-lx-theme="light"] .stat-card,
html[data-lx-theme="light"] .mrow,
html[data-lx-theme="light"] .lrow{
  background:#FFFFFF;border-color:#D5DCDD;color:#0A0A0A;
}
/* buttons — light blue per the Apps dashboard reference */
html[data-lx-theme="light"] .btn,
html[data-lx-theme="light"] button.btn,
html[data-lx-theme="light"] .ad-btn{
  background:#EAF7FF;background-image:none;color:#0A3A4A;border:1px solid #D6F0FF;box-shadow:none;
}
html[data-lx-theme="light"] .btn:hover,
html[data-lx-theme="light"] .ad-btn:hover{background:#CDE8F3;color:#083243;border-color:#9FD3E4}
html[data-lx-theme="light"] .btn.ghost{background:#FFFFFF;color:#0A0A0A;border-color:#D5DCDD}
/* primary CTAs that must pop keep ONE teal accent */
html[data-lx-theme="light"] .btn.primary,
html[data-lx-theme="light"] .btn.cta,
html[data-lx-theme="light"] .btn.gold{background:#223EA1;background-image:none;color:#FFFFFF!important;border-color:#17A276}
html[data-lx-theme="light"] .btn.primary:hover,
html[data-lx-theme="light"] .btn.cta:hover,
html[data-lx-theme="light"] .btn.gold:hover{background:#189B71;color:#FFFFFF!important}
/* every icon glyph on app surfaces: the single Apps-dashboard teal */
html[data-lx-theme="light"] .lx-ai,
html[data-lx-theme="light"] .tic,
html[data-lx-theme="light"] .app-ic,
html[data-lx-theme="light"] .ic{color:#223EA1}
/* gold-tinted chips/rows become teal-tinted */
html[data-lx-theme="light"] .on,
html[data-lx-theme="light"] .active{background-color:rgba(34,62,161,.07)}
html[data-lx-theme="light"] .mtab.on,
html[data-lx-theme="light"] .ltab.on{background:rgba(34,62,161,.10);color:#1B2F7E;border-color:rgba(34,62,161,.30)}
/* modal windows read as white cards */
html[data-lx-theme="light"] .mwin,
html[data-lx-theme="light"] .modal-box{background:#FFFFFF;color:#0A0A0A;border-color:#D5DCDD}
/* text safety net inside app chrome */
html[data-lx-theme="light"] .appbar h1,html[data-lx-theme="light"] .appbar b,
html[data-lx-theme="light"] .toolbar b,html[data-lx-theme="light"] .ribbon b{color:#0A0A0A}

/* v7.9.290 — the shell header & nav go LIGHT on app surfaces too: a dark
   bar across a light page is a "black breakout" (owner rule: zero).
   Supersedes NAV-STAYS-DARK on post-signup surfaces only; the pre-signup
   front end is dark-only so these selectors never match there. */
html[data-lx-theme="light"] header.lx{background:#FFFFFF!important;color:#0A0A0A!important;border-bottom:1px solid #D5DCDD}
html[data-lx-theme="light"] nav{background:#FFFFFF!important;color:#0A0A0A}
html[data-lx-theme="light"] header.lx .nav-links a,
html[data-lx-theme="light"] nav a,html[data-lx-theme="light"] nav span,html[data-lx-theme="light"] nav button{color:#3A3F44!important}
html[data-lx-theme="light"] header.lx .nav-links a:hover,html[data-lx-theme="light"] nav a:hover{color:#1B2F7E!important}
html[data-lx-theme="light"] header.lx .nav-links a.cta,html[data-lx-theme="light"] nav a.cta{color:#1B2F7E!important}
html[data-lx-theme="light"] header.lx .nav-links a.app-loc{color:#1B2F7E!important}
html[data-lx-theme="light"] .hbtn{background:rgba(34,62,161,.06);border-color:rgba(34,62,161,.35)}
html[data-lx-theme="light"] .hbtn span{background:#223EA1!important}
html[data-lx-theme="light"] .hmenu{background:#FFFFFF!important;color:#0A0A0A}
html[data-lx-theme="light"] .hmenu a{color:#3A3F44!important}
html[data-lx-theme="light"] .hmenu a:hover{color:#1B2F7E!important}

/* ═══ NO-BLACK-BOX SWEEP (v7.9.509 — owner directive 2026-11-19, verbatim:
   "run a sweep for black on every page from dashboard inc dashboard, as they
   are still serving breaking brain rules"). On light app surfaces, hardcoded
   near-black fills and near-black-on-dark text are forced onto the light
   lock-up. Covers the unreadable dark feature cards (inline styles and
   rgba() fills authored dark) across every dashboard-reachable page. ═══ */
html[data-lx-theme="light"] [style*="background:#0"],
html[data-lx-theme="light"] [style*="background: #0"],
html[data-lx-theme="light"] [style*="background:#1"],
html[data-lx-theme="light"] [style*="background: #1"],
html[data-lx-theme="light"] [style*="background-color:#0"],
html[data-lx-theme="light"] [style*="background-color:#1"],
html[data-lx-theme="light"] [style*="background:rgba(10,10,15"],
html[data-lx-theme="light"] [style*="background:rgba(0,0,0"],
html[data-lx-theme="light"] [style*="background:linear-gradient(180deg,#"],
html[data-lx-theme="light"] [style*="background:linear-gradient(180deg, #"]{
  background:#FFFFFF!important;
  color:#0A0A0A!important;
}
/* text authored near-black INSIDE what used to be a dark box — after the
   box is forced white the text must read as Slate/Ink, not invisible grey */
html[data-lx-theme="light"] [style*="color:rgba(255,255,255"],
html[data-lx-theme="light"] [style*="color: rgba(255,255,255"]{
  color:#3A3F44!important;
}
/* hardcoded white heading text inside forced-white panels stays ink */
html[data-lx-theme="light"] [style*="color:#fff"],
html[data-lx-theme="light"] [style*="color: #fff"],
html[data-lx-theme="light"] [style*="color:#FFF"],
html[data-lx-theme="light"] [style*="color: #FFF"]{
  color:#0A0A0A!important;
}
/* the bands that are dark BY LAW (brain-band / eco-band / stage) keep their
   white copy — exempt them from the sweep above */
html[data-lx-theme="light"] .brain-band [style*="color:#fff"],
html[data-lx-theme="light"] .eco-band [style*="color:#fff"],
html[data-lx-theme="light"] .brain-band [style*="color:rgba(255,255,255"],
html[data-lx-theme="light"] .eco-band [style*="color:rgba(255,255,255"]{
  color:#FFFFFF!important;
}
/* board columns & chips on /projects/-style pages map through the variables */
html[data-lx-theme="light"] .board-col{background:#F5F6F7;border-color:#D5DCDD}
html[data-lx-theme="light"] .gantt-wrap{background:#FFFFFF;border-color:#D5DCDD}
html[data-lx-theme="light"] .modal{background:#FFFFFF;color:#0A0A0A;border-color:#D5DCDD}
html[data-lx-theme="light"] .micro-nav a{background:#FFFFFF;border-color:#D5DCDD;color:#3A3F44}
html[data-lx-theme="light"] .micro-nav a:hover{color:#1B2F7E}
html[data-lx-theme="light"] details.why summary{color:#0A0A0A}
html[data-lx-theme="light"] .kpi .v{color:#0A0A0A}
html[data-lx-theme="light"] .tabs{background:#FFFFFF;border-color:#D5DCDD}
html[data-lx-theme="light"] table.t th{color:#3A3F44;border-color:#D5DCDD}
html[data-lx-theme="light"] table.t td{border-color:#E5EAEB;color:#0A0A0A}
