/* ============================================================
   bg-trace.css, the ambient background as PURE CSS, all three modules.

   Active when <html data-bgmode="css"> (the default). ?bg=img reverts to the
   JPEGs in assets/. Shift+B toggles live.

   HOW IT WAS BUILT: each source PNG is decomposed by greedy residual fitting
   into elliptical radial-gradients. Every layer is seeded at the current
   worst-error pixel, its geometry grid-searched, and its alpha profile solved
   per ring by least squares as proper alpha-over against what is already
   underneath. Each layer carries a smoothstep tail past its fitted edge so no
   ellipse boundary shows as a visible arc.

   Greedy seeding chases AREA, so it misses corner bleeds, they are small, buy
   almost no global RMSE, and the loop stops before reaching them. On chat-dark
   and dashboard-dark that left the bottom-left corner off by -9 and -14 in the
   BLUE channel while the overall figure still looked fine. So after greedy
   converges, each of the four corners gets an explicit shot at a layer. That
   pass alone took chat-dark from mean 1.94 to 1.08 and chat-light from 0.99 to
   0.65.

   Verified by rendering in headless Chrome and diffing against the source:
     investigation-dark      5 layers   mean 1.79/255   RMSE 2.34   max 14   px>8 0.46%
     investigation-light     6 layers   mean 0.95/255   RMSE 1.35   max  8   px>8 0.00%
     chat-dark               8 layers   mean 1.08/255   RMSE 1.50   max  9   px>8 0.00%
     chat-light              8 layers   mean 0.65/255   RMSE 0.97   max  7   px>8 0.00%
     dashboard-dark          8 layers   mean 1.14/255   RMSE 1.59   max 10   px>8 0.03%
     dashboard-light         9 layers   mean 1.00/255   RMSE 1.48   max 15   px>8 0.05%

   investigation-dark is the original build, untouched and bit-identical.
   ============================================================ */

@property --glow-dx { syntax:"<length>"; inherits:true; initial-value:0px }

/* ---- glow tracking ------------------------------------------------------
   The glow must stay centred on the three mode buttons, which live in the
   stage, so its centre has to move when the nav or history panel opens.
   GLOW layers take `+ var(--glow-dx)`; corner bleeds do NOT, because they are
   viewport framing and sliding them would pull them off their corners.

   Which layers count as glow is decided by hue, not warmth. The original test
   was `R - B > 20`, which only works for Investigation's orange, Chat's glow
   is purple (R < B) and Dashboard's is cyan (R << B), so both would have
   scored zero and nothing would have tracked. Instead: strip luminance from
   each layer colour, take the largest remaining chroma vector as the module's
   accent axis, and tag every layer whose projection onto it exceeds 12.
   On Investigation that selects exactly the same layers `R - B > 20` did.
   Corner-pass layers are excluded outright regardless of hue.

   --glow-dx is written by the bgGlow() observer in app.html, and MUST be set
   on <html>: --bg is declared there, and a var() inside a custom property
   resolves on the element where that property is DECLARED.
   ------------------------------------------------------------------------ */

/* investigation-dark, 5 layers, 3 of them glow (panel-tracking) */
/* .lp-mod is the marketing page's own module-switching showcase (home.html,
   fold 2 of landing Option 2): a boxed reuse of these same three gradients,
   keyed off its OWN element rather than <html>, so its background can be
   "investigation" while the rest of the page stays whatever it is. Declaring
   the custom properties here (rather than duplicating the gradients in
   landing-showcase.css) is what keeps the two surfaces from ever drifting
   apart - one set of numbers, two places it can be asked for (Ameer, 25 Aug:
   "the background... should use our Data Intelligence background/visual
   treatment"). */
html[data-bgmode="css"][data-module="investigation"],.lp-mod[data-module="investigation"],
.l7-chapter[data-module="investigation"]{
  --glow-anchor:48.6%;
  --bgfall:#1d1e21;
  --bg:
    radial-gradient(ellipse 108.5% 232.5% at 3.2% 98.8%, rgba(25,34,54,1.0000) 0%, rgba(25,34,54,1.0000) 1.34%, rgba(25,34,54,1.0000) 4.03%, rgba(25,34,54,0.9322) 6.72%, rgba(25,34,54,0.8178) 9.41%, rgba(25,34,54,0.7079) 12.10%, rgba(25,34,54,0.6116) 14.78%, rgba(25,34,54,0.5233) 17.47%, rgba(25,34,54,0.4525) 20.16%, rgba(25,34,54,0.3980) 22.85%, rgba(25,34,54,0.3480) 25.54%, rgba(25,34,54,0.3105) 28.23%, rgba(25,34,54,0.2830) 30.91%, rgba(25,34,54,0.2585) 33.60%, rgba(25,34,54,0.2340) 36.29%, rgba(25,34,54,0.2043) 38.98%, rgba(25,34,54,0.1691) 41.67%, rgba(25,34,54,0.1116) 44.35%, rgba(25,34,54,0.0657) 47.04%, rgba(25,34,54,0.0434) 49.73%, rgba(25,34,54,0.0434) 52.42%, rgba(25,34,54,0.0347) 55.11%, rgba(25,34,54,0.0191) 57.80%, rgba(25,34,54,0.0182) 60.48%, rgba(25,34,54,0.0182) 63.17%, rgba(25,34,54,0.0174) 68.95%, rgba(25,34,54,0.0154) 73.39%, rgba(25,34,54,0.0124) 77.82%, rgba(25,34,54,0.0091) 82.26%, rgba(25,34,54,0.0058) 86.69%, rgba(25,34,54,0.0028) 91.13%, rgba(25,34,54,0.0008) 95.56%, rgba(25,34,54,0.0000) 100.00%),
    radial-gradient(ellipse 38.8% 38.8% at calc(46.2% + var(--glow-dx,0px)) 0.4%, rgba(140,89,55,1.0000) 0%, rgba(140,89,55,1.0000) 1.34%, rgba(140,89,55,1.0000) 4.03%, rgba(140,89,55,0.9616) 6.72%, rgba(140,89,55,0.8271) 9.41%, rgba(140,89,55,0.7253) 12.10%, rgba(140,89,55,0.6335) 14.78%, rgba(140,89,55,0.5256) 17.47%, rgba(140,89,55,0.4078) 20.16%, rgba(140,89,55,0.2800) 22.85%, rgba(140,89,55,0.2215) 25.54%, rgba(140,89,55,0.1200) 28.23%, rgba(140,89,55,0.0507) 30.91%, rgba(140,89,55,0.0014) 33.60%, rgba(140,89,55,0.0000) 36.29%, rgba(140,89,55,0.0000) 38.98%, rgba(140,89,55,0.0000) 41.67%, rgba(140,89,55,0.0000) 44.35%, rgba(140,89,55,0.0000) 47.04%, rgba(140,89,55,0.0000) 49.73%, rgba(140,89,55,0.0000) 52.42%, rgba(140,89,55,0.0000) 55.11%, rgba(140,89,55,0.0000) 57.80%, rgba(140,89,55,0.0000) 60.48%, rgba(140,89,55,0.0000) 63.17%, rgba(140,89,55,0.0000) 68.95%, rgba(140,89,55,0.0000) 73.39%, rgba(140,89,55,0.0000) 77.82%, rgba(140,89,55,0.0000) 82.26%, rgba(140,89,55,0.0000) 86.69%, rgba(140,89,55,0.0000) 91.13%, rgba(140,89,55,0.0000) 95.56%, rgba(140,89,55,0.0000) 100.00%),
    radial-gradient(ellipse 38.8% 108.5% at calc(58.2% + var(--glow-dx,0px)) -8.6%, rgba(116,82,60,0.9616) 0%, rgba(116,82,60,0.9616) 1.34%, rgba(116,82,60,0.9616) 4.03%, rgba(116,82,60,0.9616) 6.72%, rgba(116,82,60,0.9616) 9.41%, rgba(116,82,60,0.8696) 12.10%, rgba(116,82,60,0.8038) 14.78%, rgba(116,82,60,0.7038) 17.47%, rgba(116,82,60,0.5972) 20.16%, rgba(116,82,60,0.4923) 22.85%, rgba(116,82,60,0.4075) 25.54%, rgba(116,82,60,0.3436) 28.23%, rgba(116,82,60,0.2865) 30.91%, rgba(116,82,60,0.2342) 33.60%, rgba(116,82,60,0.1823) 36.29%, rgba(116,82,60,0.1371) 38.98%, rgba(116,82,60,0.1097) 41.67%, rgba(116,82,60,0.0745) 44.35%, rgba(116,82,60,0.0557) 47.04%, rgba(116,82,60,0.0268) 49.73%, rgba(116,82,60,0.0172) 52.42%, rgba(116,82,60,0.0057) 55.11%, rgba(116,82,60,0.0000) 57.80%, rgba(116,82,60,0.0000) 60.48%, rgba(116,82,60,0.0000) 63.17%, rgba(116,82,60,0.0000) 68.95%, rgba(116,82,60,0.0000) 73.39%, rgba(116,82,60,0.0000) 77.82%, rgba(116,82,60,0.0000) 82.26%, rgba(116,82,60,0.0000) 86.69%, rgba(116,82,60,0.0000) 91.13%, rgba(116,82,60,0.0000) 95.56%, rgba(116,82,60,0.0000) 100.00%),
    radial-gradient(ellipse 62.0% 232.5% at 81.2% -17.6%, rgba(51,51,70,0.9242) 0%, rgba(51,51,70,0.9242) 1.34%, rgba(51,51,70,0.9242) 4.03%, rgba(51,51,70,0.9242) 6.72%, rgba(51,51,70,0.9242) 9.41%, rgba(51,51,70,0.7861) 12.10%, rgba(51,51,70,0.6428) 14.78%, rgba(51,51,70,0.5188) 17.47%, rgba(51,51,70,0.4326) 20.16%, rgba(51,51,70,0.3613) 22.85%, rgba(51,51,70,0.3036) 25.54%, rgba(51,51,70,0.2550) 28.23%, rgba(51,51,70,0.2143) 30.91%, rgba(51,51,70,0.1898) 33.60%, rgba(51,51,70,0.1783) 36.29%, rgba(51,51,70,0.1597) 38.98%, rgba(51,51,70,0.1439) 41.67%, rgba(51,51,70,0.1226) 44.35%, rgba(51,51,70,0.1020) 47.04%, rgba(51,51,70,0.0909) 49.73%, rgba(51,51,70,0.0909) 52.42%, rgba(51,51,70,0.0909) 55.11%, rgba(51,51,70,0.0909) 57.80%, rgba(51,51,70,0.0909) 60.48%, rgba(51,51,70,0.0909) 63.17%, rgba(51,51,70,0.0870) 68.95%, rgba(51,51,70,0.0767) 73.39%, rgba(51,51,70,0.0622) 77.82%, rgba(51,51,70,0.0455) 82.26%, rgba(51,51,70,0.0288) 86.69%, rgba(51,51,70,0.0142) 91.13%, rgba(51,51,70,0.0039) 95.56%, rgba(51,51,70,0.0000) 100.00%),
    radial-gradient(ellipse 108.5% 178.2% at calc(46.2% + var(--glow-dx,0px)) 0.4%, rgba(124,81,53,1.0000) 0%, rgba(124,81,53,1.0000) 1.34%, rgba(124,81,53,1.0000) 4.03%, rgba(124,81,53,0.9698) 6.72%, rgba(124,81,53,0.8531) 9.41%, rgba(124,81,53,0.7337) 12.10%, rgba(124,81,53,0.6296) 14.78%, rgba(124,81,53,0.5297) 17.47%, rgba(124,81,53,0.4458) 20.16%, rgba(124,81,53,0.3745) 22.85%, rgba(124,81,53,0.3145) 25.54%, rgba(124,81,53,0.2647) 28.23%, rgba(124,81,53,0.2219) 30.91%, rgba(124,81,53,0.1839) 33.60%, rgba(124,81,53,0.1523) 36.29%, rgba(124,81,53,0.1248) 38.98%, rgba(124,81,53,0.1009) 41.67%, rgba(124,81,53,0.0878) 44.35%, rgba(124,81,53,0.0727) 47.04%, rgba(124,81,53,0.0577) 49.73%, rgba(124,81,53,0.0477) 52.42%, rgba(124,81,53,0.0400) 55.11%, rgba(124,81,53,0.0298) 57.80%, rgba(124,81,53,0.0208) 60.48%, rgba(124,81,53,0.0133) 63.17%, rgba(124,81,53,0.0128) 68.95%, rgba(124,81,53,0.0113) 73.39%, rgba(124,81,53,0.0091) 77.82%, rgba(124,81,53,0.0067) 82.26%, rgba(124,81,53,0.0042) 86.69%, rgba(124,81,53,0.0021) 91.13%, rgba(124,81,53,0.0006) 95.56%, rgba(124,81,53,0.0000) 100.00%);
}

/* investigation-light, 6 layers, 1 of them glow (panel-tracking) */
html[data-bgmode="css"][data-theme="light"][data-module="investigation"],
html[data-theme="light"] .lp-mod[data-module="investigation"],
html[data-theme="light"] .l7-chapter[data-module="investigation"]{
  --glow-anchor:49.3%;
  --bgfall:#fedbc8;
  --bg:
    radial-gradient(ellipse 85.3% 178.2% at 105.0% 115.0%, rgba(245,244,244,1.0000) 0%, rgba(245,244,244,1.0000) 1.34%, rgba(245,244,244,1.0000) 4.03%, rgba(245,244,244,1.0000) 6.72%, rgba(245,244,244,1.0000) 9.41%, rgba(245,244,244,1.0000) 12.10%, rgba(245,244,244,0.9961) 14.78%, rgba(245,244,244,0.9961) 17.47%, rgba(245,244,244,0.9961) 20.16%, rgba(245,244,244,0.9961) 22.85%, rgba(245,244,244,0.9961) 25.54%, rgba(245,244,244,0.9961) 28.23%, rgba(245,244,244,0.9494) 30.91%, rgba(245,244,244,0.8976) 33.60%, rgba(245,244,244,0.8237) 36.29%, rgba(245,244,244,0.7353) 38.98%, rgba(245,244,244,0.5707) 41.67%, rgba(245,244,244,0.3705) 44.35%, rgba(245,244,244,0.2397) 47.04%, rgba(245,244,244,0.0832) 49.73%, rgba(245,244,244,0.0000) 52.42%, rgba(245,244,244,0.0000) 55.11%, rgba(245,244,244,0.0000) 57.80%, rgba(245,244,244,0.0000) 60.48%, rgba(245,244,244,0.0000) 63.17%, rgba(245,244,244,0.0000) 68.95%, rgba(245,244,244,0.0000) 73.39%, rgba(245,244,244,0.0000) 77.82%, rgba(245,244,244,0.0000) 82.26%, rgba(245,244,244,0.0000) 86.69%, rgba(245,244,244,0.0000) 91.13%, rgba(245,244,244,0.0000) 95.56%, rgba(245,244,244,0.0000) 100.00%),
    radial-gradient(ellipse 85.3% 108.5% at -5.0% 105.0%, rgba(251,235,226,1.0000) 0%, rgba(251,235,226,1.0000) 1.34%, rgba(251,235,226,1.0000) 4.03%, rgba(251,235,226,1.0000) 6.72%, rgba(251,235,226,1.0000) 9.41%, rgba(251,235,226,0.8478) 12.10%, rgba(251,235,226,0.6826) 14.78%, rgba(251,235,226,0.5125) 17.47%, rgba(251,235,226,0.3718) 20.16%, rgba(251,235,226,0.2828) 22.85%, rgba(251,235,226,0.1928) 25.54%, rgba(251,235,226,0.1231) 28.23%, rgba(251,235,226,0.0604) 30.91%, rgba(251,235,226,0.0235) 33.60%, rgba(251,235,226,0.0000) 36.29%, rgba(251,235,226,0.0000) 38.98%, rgba(251,235,226,0.0000) 41.67%, rgba(251,235,226,0.0000) 44.35%, rgba(251,235,226,0.0000) 47.04%, rgba(251,235,226,0.0000) 49.73%, rgba(251,235,226,0.0000) 52.42%, rgba(251,235,226,0.0000) 55.11%, rgba(251,235,226,0.0000) 57.80%, rgba(251,235,226,0.0000) 60.48%, rgba(251,235,226,0.0000) 63.17%, rgba(251,235,226,0.0000) 68.95%, rgba(251,235,226,0.0000) 73.39%, rgba(251,235,226,0.0000) 77.82%, rgba(251,235,226,0.0000) 82.26%, rgba(251,235,226,0.0000) 86.69%, rgba(251,235,226,0.0000) 91.13%, rgba(251,235,226,0.0000) 95.56%, rgba(251,235,226,0.0000) 100.00%),
    radial-gradient(ellipse 108.5% 178.2% at 108.2% 18.4%, rgba(246,243,242,1.0000) 0%, rgba(246,243,242,1.0000) 1.34%, rgba(246,243,242,1.0000) 4.03%, rgba(246,243,242,1.0000) 6.72%, rgba(246,243,242,0.9797) 9.41%, rgba(246,243,242,0.9468) 12.10%, rgba(246,243,242,0.8990) 14.78%, rgba(246,243,242,0.8260) 17.47%, rgba(246,243,242,0.7310) 20.16%, rgba(246,243,242,0.6407) 22.85%, rgba(246,243,242,0.5110) 25.54%, rgba(246,243,242,0.3753) 28.23%, rgba(246,243,242,0.2365) 30.91%, rgba(246,243,242,0.1491) 33.60%, rgba(246,243,242,0.0873) 36.29%, rgba(246,243,242,0.0482) 38.98%, rgba(246,243,242,0.0482) 41.67%, rgba(246,243,242,0.0482) 44.35%, rgba(246,243,242,0.0482) 47.04%, rgba(246,243,242,0.0482) 49.73%, rgba(246,243,242,0.0482) 52.42%, rgba(246,243,242,0.0317) 55.11%, rgba(246,243,242,0.0000) 57.80%, rgba(246,243,242,0.0000) 60.48%, rgba(246,243,242,0.0000) 63.17%, rgba(246,243,242,0.0000) 68.95%, rgba(246,243,242,0.0000) 73.39%, rgba(246,243,242,0.0000) 77.82%, rgba(246,243,242,0.0000) 82.26%, rgba(246,243,242,0.0000) 86.69%, rgba(246,243,242,0.0000) 91.13%, rgba(246,243,242,0.0000) 95.56%, rgba(246,243,242,0.0000) 100.00%),
    radial-gradient(ellipse 108.5% 232.5% at -8.8% 18.4%, rgba(246,242,242,0.9832) 0%, rgba(246,242,242,0.9832) 1.34%, rgba(246,242,242,0.9832) 4.03%, rgba(246,242,242,0.9832) 6.72%, rgba(246,242,242,0.9832) 9.41%, rgba(246,242,242,0.9489) 12.10%, rgba(246,242,242,0.9096) 14.78%, rgba(246,242,242,0.8380) 17.47%, rgba(246,242,242,0.7379) 20.16%, rgba(246,242,242,0.6180) 22.85%, rgba(246,242,242,0.4518) 25.54%, rgba(246,242,242,0.2612) 28.23%, rgba(246,242,242,0.0783) 30.91%, rgba(246,242,242,0.0000) 33.60%, rgba(246,242,242,0.0000) 36.29%, rgba(246,242,242,0.0000) 38.98%, rgba(246,242,242,0.0000) 41.67%, rgba(246,242,242,0.0000) 44.35%, rgba(246,242,242,0.0000) 47.04%, rgba(246,242,242,0.0000) 49.73%, rgba(246,242,242,0.0000) 52.42%, rgba(246,242,242,0.0000) 55.11%, rgba(246,242,242,0.0000) 57.80%, rgba(246,242,242,0.0000) 60.48%, rgba(246,242,242,0.0000) 63.17%, rgba(246,242,242,0.0000) 68.95%, rgba(246,242,242,0.0000) 73.39%, rgba(246,242,242,0.0000) 77.82%, rgba(246,242,242,0.0000) 82.26%, rgba(246,242,242,0.0000) 86.69%, rgba(246,242,242,0.0000) 91.13%, rgba(246,242,242,0.0000) 95.56%, rgba(246,242,242,0.0000) 100.00%),
    radial-gradient(ellipse 85.3% 232.5% at calc(51.2% + var(--glow-dx,0px)) -16.8%, rgba(254,215,192,1.0000) 0%, rgba(254,215,192,1.0000) 1.34%, rgba(254,215,192,1.0000) 4.03%, rgba(254,215,192,1.0000) 6.72%, rgba(254,215,192,0.9443) 9.41%, rgba(254,215,192,0.7903) 12.10%, rgba(254,215,192,0.6266) 14.78%, rgba(254,215,192,0.4940) 17.47%, rgba(254,215,192,0.3853) 20.16%, rgba(254,215,192,0.2943) 22.85%, rgba(254,215,192,0.2124) 25.54%, rgba(254,215,192,0.1409) 28.23%, rgba(254,215,192,0.0842) 30.91%, rgba(254,215,192,0.0429) 33.60%, rgba(254,215,192,0.0099) 36.29%, rgba(254,215,192,0.0000) 38.98%, rgba(254,215,192,0.0000) 41.67%, rgba(254,215,192,0.0000) 44.35%, rgba(254,215,192,0.0000) 47.04%, rgba(254,215,192,0.0000) 49.73%, rgba(254,215,192,0.0000) 52.42%, rgba(254,215,192,0.0000) 55.11%, rgba(254,215,192,0.0000) 57.80%, rgba(254,215,192,0.0000) 60.48%, rgba(254,215,192,0.0000) 63.17%, rgba(254,215,192,0.0000) 68.95%, rgba(254,215,192,0.0000) 73.39%, rgba(254,215,192,0.0000) 77.82%, rgba(254,215,192,0.0000) 82.26%, rgba(254,215,192,0.0000) 86.69%, rgba(254,215,192,0.0000) 91.13%, rgba(254,215,192,0.0000) 95.56%, rgba(254,215,192,0.0000) 100.00%),
    radial-gradient(ellipse 232.5% 108.5% at 67.8% 79.3%, rgba(245,243,243,1.0000) 0%, rgba(245,243,243,1.0000) 1.34%, rgba(245,243,243,1.0000) 4.03%, rgba(245,243,243,1.0000) 6.72%, rgba(245,243,243,1.0000) 9.41%, rgba(245,243,243,0.9974) 12.10%, rgba(245,243,243,0.9881) 14.78%, rgba(245,243,243,0.9769) 17.47%, rgba(245,243,243,0.9592) 20.16%, rgba(245,243,243,0.9293) 22.85%, rgba(245,243,243,0.9004) 25.54%, rgba(245,243,243,0.8719) 28.23%, rgba(245,243,243,0.8557) 30.91%, rgba(245,243,243,0.8531) 33.60%, rgba(245,243,243,0.8397) 36.29%, rgba(245,243,243,0.8143) 38.98%, rgba(245,243,243,0.7844) 41.67%, rgba(245,243,243,0.7523) 44.35%, rgba(245,243,243,0.7175) 47.04%, rgba(245,243,243,0.6868) 49.73%, rgba(245,243,243,0.6474) 52.42%, rgba(245,243,243,0.6110) 55.11%, rgba(245,243,243,0.5731) 57.80%, rgba(245,243,243,0.5379) 60.48%, rgba(245,243,243,0.4947) 63.17%, rgba(245,243,243,0.4735) 68.95%, rgba(245,243,243,0.4174) 73.39%, rgba(245,243,243,0.3382) 77.82%, rgba(245,243,243,0.2474) 82.26%, rgba(245,243,243,0.1565) 86.69%, rgba(245,243,243,0.0773) 91.13%, rgba(245,243,243,0.0213) 95.56%, rgba(245,243,243,0.0000) 100.00%);
}

/* chat-dark, 8 layers, 3 of them glow (panel-tracking) */
html[data-bgmode="css"][data-module="chat"],.lp-mod[data-module="chat"],
.l7-chapter[data-module="chat"]{
  --glow-anchor:48.8%;
  --bgfall:#101117;
  --bg:
    radial-gradient(ellipse 62.0% 178.2% at 105.0% 15.0%, rgba(19,19,24,1.0000) 0%, rgba(19,19,24,1.0000) 1.34%, rgba(19,19,24,1.0000) 4.03%, rgba(19,19,24,1.0000) 6.72%, rgba(19,19,24,1.0000) 9.41%, rgba(19,19,24,0.8708) 12.10%, rgba(19,19,24,0.7744) 14.78%, rgba(19,19,24,0.6230) 17.47%, rgba(19,19,24,0.3994) 20.16%, rgba(19,19,24,0.2480) 22.85%, rgba(19,19,24,0.1253) 25.54%, rgba(19,19,24,0.0540) 28.23%, rgba(19,19,24,0.0000) 30.91%, rgba(19,19,24,0.0000) 33.60%, rgba(19,19,24,0.0000) 36.29%, rgba(19,19,24,0.0000) 38.98%, rgba(19,19,24,0.0000) 41.67%, rgba(19,19,24,0.0000) 44.35%, rgba(19,19,24,0.0000) 47.04%, rgba(19,19,24,0.0000) 49.73%, rgba(19,19,24,0.0000) 52.42%, rgba(19,19,24,0.0000) 55.11%, rgba(19,19,24,0.0000) 57.80%, rgba(19,19,24,0.0000) 60.48%, rgba(19,19,24,0.0000) 63.17%, rgba(19,19,24,0.0000) 68.95%, rgba(19,19,24,0.0000) 73.39%, rgba(19,19,24,0.0000) 77.82%, rgba(19,19,24,0.0000) 82.26%, rgba(19,19,24,0.0000) 86.69%, rgba(19,19,24,0.0000) 91.13%, rgba(19,19,24,0.0000) 95.56%, rgba(19,19,24,0.0000) 100.00%),
    radial-gradient(ellipse 85.3% 178.2% at 105.0% 105.0%, rgba(15,16,22,1.0000) 0%, rgba(15,16,22,1.0000) 1.34%, rgba(15,16,22,1.0000) 4.03%, rgba(15,16,22,1.0000) 6.72%, rgba(15,16,22,0.9559) 9.41%, rgba(15,16,22,0.8918) 12.10%, rgba(15,16,22,0.7591) 14.78%, rgba(15,16,22,0.6883) 17.47%, rgba(15,16,22,0.5996) 20.16%, rgba(15,16,22,0.5157) 22.85%, rgba(15,16,22,0.4355) 25.54%, rgba(15,16,22,0.3750) 28.23%, rgba(15,16,22,0.3277) 30.91%, rgba(15,16,22,0.2539) 33.60%, rgba(15,16,22,0.2013) 36.29%, rgba(15,16,22,0.1174) 38.98%, rgba(15,16,22,0.0826) 41.67%, rgba(15,16,22,0.0390) 44.35%, rgba(15,16,22,0.0126) 47.04%, rgba(15,16,22,0.0000) 49.73%, rgba(15,16,22,0.0000) 52.42%, rgba(15,16,22,0.0000) 55.11%, rgba(15,16,22,0.0000) 57.80%, rgba(15,16,22,0.0000) 60.48%, rgba(15,16,22,0.0000) 63.17%, rgba(15,16,22,0.0000) 68.95%, rgba(15,16,22,0.0000) 73.39%, rgba(15,16,22,0.0000) 77.82%, rgba(15,16,22,0.0000) 82.26%, rgba(15,16,22,0.0000) 86.69%, rgba(15,16,22,0.0000) 91.13%, rgba(15,16,22,0.0000) 95.56%, rgba(15,16,22,0.0000) 100.00%),
    radial-gradient(ellipse 62.0% 178.2% at -5.0% -5.0%, rgba(18,18,25,0.9991) 0%, rgba(18,18,25,0.9991) 1.34%, rgba(18,18,25,0.9991) 4.03%, rgba(18,18,25,0.9991) 6.72%, rgba(18,18,25,0.9991) 9.41%, rgba(18,18,25,0.9464) 12.10%, rgba(18,18,25,0.7412) 14.78%, rgba(18,18,25,0.6261) 17.47%, rgba(18,18,25,0.5329) 20.16%, rgba(18,18,25,0.4240) 22.85%, rgba(18,18,25,0.3185) 25.54%, rgba(18,18,25,0.2301) 28.23%, rgba(18,18,25,0.1501) 30.91%, rgba(18,18,25,0.0877) 33.60%, rgba(18,18,25,0.0372) 36.29%, rgba(18,18,25,0.0060) 38.98%, rgba(18,18,25,0.0000) 41.67%, rgba(18,18,25,0.0000) 44.35%, rgba(18,18,25,0.0000) 47.04%, rgba(18,18,25,0.0000) 49.73%, rgba(18,18,25,0.0000) 52.42%, rgba(18,18,25,0.0000) 55.11%, rgba(18,18,25,0.0000) 57.80%, rgba(18,18,25,0.0000) 60.48%, rgba(18,18,25,0.0000) 63.17%, rgba(18,18,25,0.0000) 68.95%, rgba(18,18,25,0.0000) 73.39%, rgba(18,18,25,0.0000) 77.82%, rgba(18,18,25,0.0000) 82.26%, rgba(18,18,25,0.0000) 86.69%, rgba(18,18,25,0.0000) 91.13%, rgba(18,18,25,0.0000) 95.56%, rgba(18,18,25,0.0000) 100.00%),
    radial-gradient(ellipse 85.3% 108.5% at -5.0% 95.0%, rgba(16,22,35,1.0000) 0%, rgba(16,22,35,1.0000) 1.34%, rgba(16,22,35,1.0000) 4.03%, rgba(16,22,35,1.0000) 6.72%, rgba(16,22,35,1.0000) 9.41%, rgba(16,22,35,0.9539) 12.10%, rgba(16,22,35,0.9209) 14.78%, rgba(16,22,35,0.8903) 17.47%, rgba(16,22,35,0.8863) 20.16%, rgba(16,22,35,0.8522) 22.85%, rgba(16,22,35,0.8173) 25.54%, rgba(16,22,35,0.7781) 28.23%, rgba(16,22,35,0.7534) 30.91%, rgba(16,22,35,0.7259) 33.60%, rgba(16,22,35,0.6691) 36.29%, rgba(16,22,35,0.6216) 38.98%, rgba(16,22,35,0.5679) 41.67%, rgba(16,22,35,0.5329) 44.35%, rgba(16,22,35,0.4751) 47.04%, rgba(16,22,35,0.4148) 49.73%, rgba(16,22,35,0.3576) 52.42%, rgba(16,22,35,0.2958) 55.11%, rgba(16,22,35,0.2557) 57.80%, rgba(16,22,35,0.2228) 60.48%, rgba(16,22,35,0.1958) 63.17%, rgba(16,22,35,0.1873) 68.95%, rgba(16,22,35,0.1652) 73.39%, rgba(16,22,35,0.1338) 77.82%, rgba(16,22,35,0.0979) 82.26%, rgba(16,22,35,0.0619) 86.69%, rgba(16,22,35,0.0306) 91.13%, rgba(16,22,35,0.0084) 95.56%, rgba(16,22,35,0.0000) 100.00%),
    radial-gradient(ellipse 85.3% 38.8% at calc(46.8% + var(--glow-dx,0px)) 1.2%, rgba(94,65,103,1.0000) 0%, rgba(94,65,103,1.0000) 1.34%, rgba(94,65,103,1.0000) 4.03%, rgba(94,65,103,0.7960) 6.72%, rgba(94,65,103,0.4462) 9.41%, rgba(94,65,103,0.2221) 12.10%, rgba(94,65,103,0.1248) 14.78%, rgba(94,65,103,0.0915) 17.47%, rgba(94,65,103,0.0674) 20.16%, rgba(94,65,103,0.0674) 22.85%, rgba(94,65,103,0.0674) 25.54%, rgba(94,65,103,0.0674) 28.23%, rgba(94,65,103,0.0674) 30.91%, rgba(94,65,103,0.0674) 33.60%, rgba(94,65,103,0.0454) 36.29%, rgba(94,65,103,0.0340) 38.98%, rgba(94,65,103,0.0081) 41.67%, rgba(94,65,103,0.0032) 44.35%, rgba(94,65,103,0.0000) 47.04%, rgba(94,65,103,0.0000) 49.73%, rgba(94,65,103,0.0000) 52.42%, rgba(94,65,103,0.0000) 55.11%, rgba(94,65,103,0.0000) 57.80%, rgba(94,65,103,0.0000) 60.48%, rgba(94,65,103,0.0000) 63.17%, rgba(94,65,103,0.0000) 68.95%, rgba(94,65,103,0.0000) 73.39%, rgba(94,65,103,0.0000) 77.82%, rgba(94,65,103,0.0000) 82.26%, rgba(94,65,103,0.0000) 86.69%, rgba(94,65,103,0.0000) 91.13%, rgba(94,65,103,0.0000) 95.56%, rgba(94,65,103,0.0000) 100.00%),
    radial-gradient(ellipse 62.0% 38.8% at 14.3% 2.7%, rgba(28,24,35,1.0000) 0%, rgba(28,24,35,1.0000) 1.34%, rgba(28,24,35,1.0000) 4.03%, rgba(28,24,35,0.9787) 6.72%, rgba(28,24,35,0.9395) 9.41%, rgba(28,24,35,0.8658) 12.10%, rgba(28,24,35,0.7407) 14.78%, rgba(28,24,35,0.6543) 17.47%, rgba(28,24,35,0.5977) 20.16%, rgba(28,24,35,0.4635) 22.85%, rgba(28,24,35,0.3403) 25.54%, rgba(28,24,35,0.2546) 28.23%, rgba(28,24,35,0.2482) 30.91%, rgba(28,24,35,0.2064) 33.60%, rgba(28,24,35,0.1862) 36.29%, rgba(28,24,35,0.1531) 38.98%, rgba(28,24,35,0.1413) 41.67%, rgba(28,24,35,0.1297) 44.35%, rgba(28,24,35,0.0975) 47.04%, rgba(28,24,35,0.0758) 49.73%, rgba(28,24,35,0.0490) 52.42%, rgba(28,24,35,0.0372) 55.11%, rgba(28,24,35,0.0308) 57.80%, rgba(28,24,35,0.0288) 60.48%, rgba(28,24,35,0.0288) 63.17%, rgba(28,24,35,0.0275) 68.95%, rgba(28,24,35,0.0243) 73.39%, rgba(28,24,35,0.0197) 77.82%, rgba(28,24,35,0.0144) 82.26%, rgba(28,24,35,0.0091) 86.69%, rgba(28,24,35,0.0045) 91.13%, rgba(28,24,35,0.0012) 95.56%, rgba(28,24,35,0.0000) 100.00%),
    radial-gradient(ellipse 62.0% 108.5% at calc(55.8% + var(--glow-dx,0px)) -5.5%, rgba(90,63,99,1.0000) 0%, rgba(90,63,99,1.0000) 1.34%, rgba(90,63,99,1.0000) 4.03%, rgba(90,63,99,1.0000) 6.72%, rgba(90,63,99,0.7307) 9.41%, rgba(90,63,99,0.5340) 12.10%, rgba(90,63,99,0.4034) 14.78%, rgba(90,63,99,0.2948) 17.47%, rgba(90,63,99,0.1959) 20.16%, rgba(90,63,99,0.1366) 22.85%, rgba(90,63,99,0.0812) 25.54%, rgba(90,63,99,0.0645) 28.23%, rgba(90,63,99,0.0318) 30.91%, rgba(90,63,99,0.0174) 33.60%, rgba(90,63,99,0.0074) 36.29%, rgba(90,63,99,0.0024) 38.98%, rgba(90,63,99,0.0000) 41.67%, rgba(90,63,99,0.0000) 44.35%, rgba(90,63,99,0.0000) 47.04%, rgba(90,63,99,0.0000) 49.73%, rgba(90,63,99,0.0000) 52.42%, rgba(90,63,99,0.0000) 55.11%, rgba(90,63,99,0.0000) 57.80%, rgba(90,63,99,0.0000) 60.48%, rgba(90,63,99,0.0000) 63.17%, rgba(90,63,99,0.0000) 68.95%, rgba(90,63,99,0.0000) 73.39%, rgba(90,63,99,0.0000) 77.82%, rgba(90,63,99,0.0000) 82.26%, rgba(90,63,99,0.0000) 86.69%, rgba(90,63,99,0.0000) 91.13%, rgba(90,63,99,0.0000) 95.56%, rgba(90,63,99,0.0000) 100.00%),
    radial-gradient(ellipse 108.5% 232.5% at calc(46.8% + var(--glow-dx,0px)) -17.6%, rgba(96,67,106,1.0000) 0%, rgba(96,67,106,1.0000) 1.34%, rgba(96,67,106,1.0000) 4.03%, rgba(96,67,106,1.0000) 6.72%, rgba(96,67,106,0.9477) 9.41%, rgba(96,67,106,0.8322) 12.10%, rgba(96,67,106,0.7111) 14.78%, rgba(96,67,106,0.5917) 17.47%, rgba(96,67,106,0.4848) 20.16%, rgba(96,67,106,0.3923) 22.85%, rgba(96,67,106,0.3159) 25.54%, rgba(96,67,106,0.2543) 28.23%, rgba(96,67,106,0.2046) 30.91%, rgba(96,67,106,0.1654) 33.60%, rgba(96,67,106,0.1335) 36.29%, rgba(96,67,106,0.1079) 38.98%, rgba(96,67,106,0.0877) 41.67%, rgba(96,67,106,0.0730) 44.35%, rgba(96,67,106,0.0633) 47.04%, rgba(96,67,106,0.0556) 49.73%, rgba(96,67,106,0.0503) 52.42%, rgba(96,67,106,0.0451) 55.11%, rgba(96,67,106,0.0390) 57.80%, rgba(96,67,106,0.0315) 60.48%, rgba(96,67,106,0.0230) 63.17%, rgba(96,67,106,0.0220) 68.95%, rgba(96,67,106,0.0194) 73.39%, rgba(96,67,106,0.0157) 77.82%, rgba(96,67,106,0.0115) 82.26%, rgba(96,67,106,0.0073) 86.69%, rgba(96,67,106,0.0036) 91.13%, rgba(96,67,106,0.0010) 95.56%, rgba(96,67,106,0.0000) 100.00%);
}

/* chat-light, 8 layers, 2 of them glow (panel-tracking) */
html[data-bgmode="css"][data-theme="light"][data-module="chat"],
html[data-theme="light"] .lp-mod[data-module="chat"],
html[data-theme="light"] .l7-chapter[data-module="chat"]{
  --glow-anchor:47.5%;
  --bgfall:#dec2f5;
  --bg:
    radial-gradient(ellipse 62.0% 178.2% at 105.0% 95.0%, rgba(245,244,245,1.0000) 0%, rgba(245,244,245,1.0000) 1.34%, rgba(245,244,245,1.0000) 4.03%, rgba(245,244,245,1.0000) 6.72%, rgba(245,244,245,1.0000) 9.41%, rgba(245,244,245,0.9086) 12.10%, rgba(245,244,245,0.7612) 14.78%, rgba(245,244,245,0.6569) 17.47%, rgba(245,244,245,0.5514) 20.16%, rgba(245,244,245,0.5514) 22.85%, rgba(245,244,245,0.5514) 25.54%, rgba(245,244,245,0.5061) 28.23%, rgba(245,244,245,0.3797) 30.91%, rgba(245,244,245,0.2667) 33.60%, rgba(245,244,245,0.1614) 36.29%, rgba(245,244,245,0.0255) 38.98%, rgba(245,244,245,0.0000) 41.67%, rgba(245,244,245,0.0000) 44.35%, rgba(245,244,245,0.0000) 47.04%, rgba(245,244,245,0.0000) 49.73%, rgba(245,244,245,0.0000) 52.42%, rgba(245,244,245,0.0000) 55.11%, rgba(245,244,245,0.0000) 57.80%, rgba(245,244,245,0.0000) 60.48%, rgba(245,244,245,0.0000) 63.17%, rgba(245,244,245,0.0000) 68.95%, rgba(245,244,245,0.0000) 73.39%, rgba(245,244,245,0.0000) 77.82%, rgba(245,244,245,0.0000) 82.26%, rgba(245,244,245,0.0000) 86.69%, rgba(245,244,245,0.0000) 91.13%, rgba(245,244,245,0.0000) 95.56%, rgba(245,244,245,0.0000) 100.00%),
    radial-gradient(ellipse 139.5% 178.2% at 115.0% 15.0%, rgba(244,241,244,0.1778) 0%, rgba(244,241,244,0.1778) 1.34%, rgba(244,241,244,0.1778) 4.03%, rgba(244,241,244,0.1778) 6.72%, rgba(244,241,244,0.1778) 9.41%, rgba(244,241,244,0.1778) 12.10%, rgba(244,241,244,0.1778) 14.78%, rgba(244,241,244,0.1778) 17.47%, rgba(244,241,244,0.1778) 20.16%, rgba(244,241,244,0.1778) 22.85%, rgba(244,241,244,0.1778) 25.54%, rgba(244,241,244,0.1778) 28.23%, rgba(244,241,244,0.1059) 30.91%, rgba(244,241,244,0.0433) 33.60%, rgba(244,241,244,0.0433) 36.29%, rgba(244,241,244,0.0007) 38.98%, rgba(244,241,244,0.0000) 41.67%, rgba(244,241,244,0.0000) 44.35%, rgba(244,241,244,0.0000) 47.04%, rgba(244,241,244,0.0000) 49.73%, rgba(244,241,244,0.0000) 52.42%, rgba(244,241,244,0.0000) 55.11%, rgba(244,241,244,0.0000) 57.80%, rgba(244,241,244,0.0000) 60.48%, rgba(244,241,244,0.0000) 63.17%, rgba(244,241,244,0.0000) 68.95%, rgba(244,241,244,0.0000) 73.39%, rgba(244,241,244,0.0000) 77.82%, rgba(244,241,244,0.0000) 82.26%, rgba(244,241,244,0.0000) 86.69%, rgba(244,241,244,0.0000) 91.13%, rgba(244,241,244,0.0000) 95.56%, rgba(244,241,244,0.0000) 100.00%),
    radial-gradient(ellipse 62.0% 178.2% at 5.0% 115.0%, rgba(245,244,245,1.0000) 0%, rgba(245,244,245,1.0000) 1.34%, rgba(245,244,245,1.0000) 4.03%, rgba(245,244,245,1.0000) 6.72%, rgba(245,244,245,1.0000) 9.41%, rgba(245,244,245,1.0000) 12.10%, rgba(245,244,245,1.0000) 14.78%, rgba(245,244,245,0.9688) 17.47%, rgba(245,244,245,0.8592) 20.16%, rgba(245,244,245,0.7938) 22.85%, rgba(245,244,245,0.7938) 25.54%, rgba(245,244,245,0.7938) 28.23%, rgba(245,244,245,0.7648) 30.91%, rgba(245,244,245,0.6791) 33.60%, rgba(245,244,245,0.6129) 36.29%, rgba(245,244,245,0.5394) 38.98%, rgba(245,244,245,0.4629) 41.67%, rgba(245,244,245,0.3880) 44.35%, rgba(245,244,245,0.3077) 47.04%, rgba(245,244,245,0.2217) 49.73%, rgba(245,244,245,0.1571) 52.42%, rgba(245,244,245,0.0844) 55.11%, rgba(245,244,245,0.0490) 57.80%, rgba(245,244,245,0.0390) 60.48%, rgba(245,244,245,0.0390) 63.17%, rgba(245,244,245,0.0373) 68.95%, rgba(245,244,245,0.0329) 73.39%, rgba(245,244,245,0.0266) 77.82%, rgba(245,244,245,0.0195) 82.26%, rgba(245,244,245,0.0123) 86.69%, rgba(245,244,245,0.0061) 91.13%, rgba(245,244,245,0.0017) 95.56%, rgba(245,244,245,0.0000) 100.00%),
    radial-gradient(ellipse 38.8% 232.5% at calc(62.7% + var(--glow-dx,0px)) -17.6%, rgba(222,195,245,0.8445) 0%, rgba(222,195,245,0.8445) 1.34%, rgba(222,195,245,0.8445) 4.03%, rgba(222,195,245,0.8445) 6.72%, rgba(222,195,245,0.8445) 9.41%, rgba(222,195,245,0.5705) 12.10%, rgba(222,195,245,0.3868) 14.78%, rgba(222,195,245,0.2239) 17.47%, rgba(222,195,245,0.1550) 20.16%, rgba(222,195,245,0.1052) 22.85%, rgba(222,195,245,0.0821) 25.54%, rgba(222,195,245,0.0696) 28.23%, rgba(222,195,245,0.0560) 30.91%, rgba(222,195,245,0.0479) 33.60%, rgba(222,195,245,0.0352) 36.29%, rgba(222,195,245,0.0310) 38.98%, rgba(222,195,245,0.0254) 41.67%, rgba(222,195,245,0.0197) 44.35%, rgba(222,195,245,0.0115) 47.04%, rgba(222,195,245,0.0040) 49.73%, rgba(222,195,245,0.0000) 52.42%, rgba(222,195,245,0.0000) 55.11%, rgba(222,195,245,0.0000) 57.80%, rgba(222,195,245,0.0000) 60.48%, rgba(222,195,245,0.0000) 63.17%, rgba(222,195,245,0.0000) 68.95%, rgba(222,195,245,0.0000) 73.39%, rgba(222,195,245,0.0000) 77.82%, rgba(222,195,245,0.0000) 82.26%, rgba(222,195,245,0.0000) 86.69%, rgba(222,195,245,0.0000) 91.13%, rgba(222,195,245,0.0000) 95.56%, rgba(222,195,245,0.0000) 100.00%),
    radial-gradient(ellipse 85.3% 139.5% at calc(45.8% + var(--glow-dx,0px)) -7.5%, rgba(219,188,245,1.0000) 0%, rgba(219,188,245,1.0000) 1.34%, rgba(219,188,245,1.0000) 4.03%, rgba(219,188,245,1.0000) 6.72%, rgba(219,188,245,0.9522) 9.41%, rgba(219,188,245,0.8434) 12.10%, rgba(219,188,245,0.7665) 14.78%, rgba(219,188,245,0.6601) 17.47%, rgba(219,188,245,0.5487) 20.16%, rgba(219,188,245,0.4541) 22.85%, rgba(219,188,245,0.3746) 25.54%, rgba(219,188,245,0.3096) 28.23%, rgba(219,188,245,0.2459) 30.91%, rgba(219,188,245,0.1908) 33.60%, rgba(219,188,245,0.1456) 36.29%, rgba(219,188,245,0.1101) 38.98%, rgba(219,188,245,0.0889) 41.67%, rgba(219,188,245,0.0711) 44.35%, rgba(219,188,245,0.0543) 47.04%, rgba(219,188,245,0.0355) 49.73%, rgba(219,188,245,0.0190) 52.42%, rgba(219,188,245,0.0069) 55.11%, rgba(219,188,245,0.0000) 57.80%, rgba(219,188,245,0.0000) 60.48%, rgba(219,188,245,0.0000) 63.17%, rgba(219,188,245,0.0000) 68.95%, rgba(219,188,245,0.0000) 73.39%, rgba(219,188,245,0.0000) 77.82%, rgba(219,188,245,0.0000) 82.26%, rgba(219,188,245,0.0000) 86.69%, rgba(219,188,245,0.0000) 91.13%, rgba(219,188,245,0.0000) 95.56%, rgba(219,188,245,0.0000) 100.00%),
    radial-gradient(ellipse 108.5% 232.5% at 108.8% 18.4%, rgba(244,241,244,0.9862) 0%, rgba(244,241,244,0.9862) 1.34%, rgba(244,241,244,0.9862) 4.03%, rgba(244,241,244,0.9862) 6.72%, rgba(244,241,244,0.9862) 9.41%, rgba(244,241,244,0.9516) 12.10%, rgba(244,241,244,0.8962) 14.78%, rgba(244,241,244,0.8108) 17.47%, rgba(244,241,244,0.6903) 20.16%, rgba(244,241,244,0.5690) 22.85%, rgba(244,241,244,0.3905) 25.54%, rgba(244,241,244,0.1659) 28.23%, rgba(244,241,244,0.0000) 30.91%, rgba(244,241,244,0.0000) 33.60%, rgba(244,241,244,0.0000) 36.29%, rgba(244,241,244,0.0000) 38.98%, rgba(244,241,244,0.0000) 41.67%, rgba(244,241,244,0.0000) 44.35%, rgba(244,241,244,0.0000) 47.04%, rgba(244,241,244,0.0000) 49.73%, rgba(244,241,244,0.0000) 52.42%, rgba(244,241,244,0.0000) 55.11%, rgba(244,241,244,0.0000) 57.80%, rgba(244,241,244,0.0000) 60.48%, rgba(244,241,244,0.0000) 63.17%, rgba(244,241,244,0.0000) 68.95%, rgba(244,241,244,0.0000) 73.39%, rgba(244,241,244,0.0000) 77.82%, rgba(244,241,244,0.0000) 82.26%, rgba(244,241,244,0.0000) 86.69%, rgba(244,241,244,0.0000) 91.13%, rgba(244,241,244,0.0000) 95.56%, rgba(244,241,244,0.0000) 100.00%),
    radial-gradient(ellipse 108.5% 178.2% at -7.8% 18.4%, rgba(243,238,244,1.0000) 0%, rgba(243,238,244,1.0000) 1.34%, rgba(243,238,244,1.0000) 4.03%, rgba(243,238,244,1.0000) 6.72%, rgba(243,238,244,0.9778) 9.41%, rgba(243,238,244,0.9397) 12.10%, rgba(243,238,244,0.8797) 14.78%, rgba(243,238,244,0.7907) 17.47%, rgba(243,238,244,0.6879) 20.16%, rgba(243,238,244,0.5859) 22.85%, rgba(243,238,244,0.4627) 25.54%, rgba(243,238,244,0.3301) 28.23%, rgba(243,238,244,0.1566) 30.91%, rgba(243,238,244,0.0000) 33.60%, rgba(243,238,244,0.0000) 36.29%, rgba(243,238,244,0.0000) 38.98%, rgba(243,238,244,0.0000) 41.67%, rgba(243,238,244,0.0000) 44.35%, rgba(243,238,244,0.0000) 47.04%, rgba(243,238,244,0.0000) 49.73%, rgba(243,238,244,0.0000) 52.42%, rgba(243,238,244,0.0000) 55.11%, rgba(243,238,244,0.0000) 57.80%, rgba(243,238,244,0.0000) 60.48%, rgba(243,238,244,0.0000) 63.17%, rgba(243,238,244,0.0000) 68.95%, rgba(243,238,244,0.0000) 73.39%, rgba(243,238,244,0.0000) 77.82%, rgba(243,238,244,0.0000) 82.26%, rgba(243,238,244,0.0000) 86.69%, rgba(243,238,244,0.0000) 91.13%, rgba(243,238,244,0.0000) 95.56%, rgba(243,238,244,0.0000) 100.00%),
    radial-gradient(ellipse 232.5% 108.5% at 81.2% 85.2%, rgba(245,243,245,1.0000) 0%, rgba(245,243,245,1.0000) 1.34%, rgba(245,243,245,1.0000) 4.03%, rgba(245,243,245,0.9993) 6.72%, rgba(245,243,245,0.9958) 9.41%, rgba(245,243,245,0.9931) 12.10%, rgba(245,243,245,0.9829) 14.78%, rgba(245,243,245,0.9727) 17.47%, rgba(245,243,245,0.9626) 20.16%, rgba(245,243,245,0.9550) 22.85%, rgba(245,243,245,0.9494) 25.54%, rgba(245,243,245,0.9427) 28.23%, rgba(245,243,245,0.9374) 30.91%, rgba(245,243,245,0.9303) 33.60%, rgba(245,243,245,0.8946) 36.29%, rgba(245,243,245,0.8545) 38.98%, rgba(245,243,245,0.8262) 41.67%, rgba(245,243,245,0.7932) 44.35%, rgba(245,243,245,0.7623) 47.04%, rgba(245,243,245,0.7247) 49.73%, rgba(245,243,245,0.6896) 52.42%, rgba(245,243,245,0.6516) 55.11%, rgba(245,243,245,0.6174) 57.80%, rgba(245,243,245,0.5779) 60.48%, rgba(245,243,245,0.5375) 63.17%, rgba(245,243,245,0.5144) 68.95%, rgba(245,243,245,0.4535) 73.39%, rgba(245,243,245,0.3674) 77.82%, rgba(245,243,245,0.2688) 82.26%, rgba(245,243,245,0.1701) 86.69%, rgba(245,243,245,0.0840) 91.13%, rgba(245,243,245,0.0231) 95.56%, rgba(245,243,245,0.0000) 100.00%);
}

/* dashboard-dark, 8 layers, 4 of them glow (panel-tracking) */
html[data-bgmode="css"][data-module="dashboard"],.lp-mod[data-module="dashboard"],
.l7-chapter[data-module="dashboard"]{
  --glow-anchor:49.4%;
  --bgfall:#16171b;
  --bg:
    radial-gradient(ellipse 178.2% 108.5% at 105.0% 5.0%, rgba(23,26,31,0.7178) 0%, rgba(23,26,31,0.7178) 1.34%, rgba(23,26,31,0.7178) 4.03%, rgba(23,26,31,0.7178) 6.72%, rgba(23,26,31,0.7178) 9.41%, rgba(23,26,31,0.1333) 12.10%, rgba(23,26,31,0.1333) 14.78%, rgba(23,26,31,0.1333) 17.47%, rgba(23,26,31,0.0000) 20.16%, rgba(23,26,31,0.0000) 22.85%, rgba(23,26,31,0.0000) 25.54%, rgba(23,26,31,0.0000) 28.23%, rgba(23,26,31,0.0000) 30.91%, rgba(23,26,31,0.0000) 33.60%, rgba(23,26,31,0.0000) 36.29%, rgba(23,26,31,0.0000) 38.98%, rgba(23,26,31,0.0000) 41.67%, rgba(23,26,31,0.0000) 44.35%, rgba(23,26,31,0.0000) 47.04%, rgba(23,26,31,0.0000) 49.73%, rgba(23,26,31,0.0000) 52.42%, rgba(23,26,31,0.0000) 55.11%, rgba(23,26,31,0.0000) 57.80%, rgba(23,26,31,0.0000) 60.48%, rgba(23,26,31,0.0000) 63.17%, rgba(23,26,31,0.0000) 68.95%, rgba(23,26,31,0.0000) 73.39%, rgba(23,26,31,0.0000) 77.82%, rgba(23,26,31,0.0000) 82.26%, rgba(23,26,31,0.0000) 86.69%, rgba(23,26,31,0.0000) 91.13%, rgba(23,26,31,0.0000) 95.56%, rgba(23,26,31,0.0000) 100.00%),
    radial-gradient(ellipse 139.5% 62.0% at -5.0% -5.0%, rgba(22,25,30,1.0000) 0%, rgba(22,25,30,1.0000) 1.34%, rgba(22,25,30,1.0000) 4.03%, rgba(22,25,30,1.0000) 6.72%, rgba(22,25,30,1.0000) 9.41%, rgba(22,25,30,0.8996) 12.10%, rgba(22,25,30,0.5678) 14.78%, rgba(22,25,30,0.3709) 17.47%, rgba(22,25,30,0.2672) 20.16%, rgba(22,25,30,0.1783) 22.85%, rgba(22,25,30,0.1484) 25.54%, rgba(22,25,30,0.1245) 28.23%, rgba(22,25,30,0.0944) 30.91%, rgba(22,25,30,0.0649) 33.60%, rgba(22,25,30,0.0256) 36.29%, rgba(22,25,30,0.0000) 38.98%, rgba(22,25,30,0.0000) 41.67%, rgba(22,25,30,0.0000) 44.35%, rgba(22,25,30,0.0000) 47.04%, rgba(22,25,30,0.0000) 49.73%, rgba(22,25,30,0.0000) 52.42%, rgba(22,25,30,0.0000) 55.11%, rgba(22,25,30,0.0000) 57.80%, rgba(22,25,30,0.0000) 60.48%, rgba(22,25,30,0.0000) 63.17%, rgba(22,25,30,0.0000) 68.95%, rgba(22,25,30,0.0000) 73.39%, rgba(22,25,30,0.0000) 77.82%, rgba(22,25,30,0.0000) 82.26%, rgba(22,25,30,0.0000) 86.69%, rgba(22,25,30,0.0000) 91.13%, rgba(22,25,30,0.0000) 95.56%, rgba(22,25,30,0.0000) 100.00%),
    radial-gradient(ellipse 108.5% 178.2% at 105.0% 95.0%, rgba(22,23,27,1.0000) 0%, rgba(22,23,27,1.0000) 1.34%, rgba(22,23,27,1.0000) 4.03%, rgba(22,23,27,1.0000) 6.72%, rgba(22,23,27,0.9394) 9.41%, rgba(22,23,27,0.9047) 12.10%, rgba(22,23,27,0.8308) 14.78%, rgba(22,23,27,0.6658) 17.47%, rgba(22,23,27,0.5502) 20.16%, rgba(22,23,27,0.4563) 22.85%, rgba(22,23,27,0.3422) 25.54%, rgba(22,23,27,0.2177) 28.23%, rgba(22,23,27,0.1697) 30.91%, rgba(22,23,27,0.1697) 33.60%, rgba(22,23,27,0.0978) 36.29%, rgba(22,23,27,0.0943) 38.98%, rgba(22,23,27,0.0943) 41.67%, rgba(22,23,27,0.0943) 44.35%, rgba(22,23,27,0.0943) 47.04%, rgba(22,23,27,0.0943) 49.73%, rgba(22,23,27,0.0943) 52.42%, rgba(22,23,27,0.0876) 55.11%, rgba(22,23,27,0.0555) 57.80%, rgba(22,23,27,0.0108) 60.48%, rgba(22,23,27,0.0000) 63.17%, rgba(22,23,27,0.0000) 68.95%, rgba(22,23,27,0.0000) 73.39%, rgba(22,23,27,0.0000) 77.82%, rgba(22,23,27,0.0000) 82.26%, rgba(22,23,27,0.0000) 86.69%, rgba(22,23,27,0.0000) 91.13%, rgba(22,23,27,0.0000) 95.56%, rgba(22,23,27,0.0000) 100.00%),
    radial-gradient(ellipse 85.3% 139.5% at -5.0% 105.0%, rgba(18,28,47,1.0000) 0%, rgba(18,28,47,1.0000) 1.34%, rgba(18,28,47,1.0000) 4.03%, rgba(18,28,47,1.0000) 6.72%, rgba(18,28,47,1.0000) 9.41%, rgba(18,28,47,0.9292) 12.10%, rgba(18,28,47,0.8241) 14.78%, rgba(18,28,47,0.7395) 17.47%, rgba(18,28,47,0.6467) 20.16%, rgba(18,28,47,0.5644) 22.85%, rgba(18,28,47,0.4744) 25.54%, rgba(18,28,47,0.4067) 28.23%, rgba(18,28,47,0.3306) 30.91%, rgba(18,28,47,0.2687) 33.60%, rgba(18,28,47,0.2191) 36.29%, rgba(18,28,47,0.1708) 38.98%, rgba(18,28,47,0.1327) 41.67%, rgba(18,28,47,0.0948) 44.35%, rgba(18,28,47,0.0701) 47.04%, rgba(18,28,47,0.0399) 49.73%, rgba(18,28,47,0.0257) 52.42%, rgba(18,28,47,0.0087) 55.11%, rgba(18,28,47,0.0000) 57.80%, rgba(18,28,47,0.0000) 60.48%, rgba(18,28,47,0.0000) 63.17%, rgba(18,28,47,0.0000) 68.95%, rgba(18,28,47,0.0000) 73.39%, rgba(18,28,47,0.0000) 77.82%, rgba(18,28,47,0.0000) 82.26%, rgba(18,28,47,0.0000) 86.69%, rgba(18,28,47,0.0000) 91.13%, rgba(18,28,47,0.0000) 95.56%, rgba(18,28,47,0.0000) 100.00%),
    radial-gradient(ellipse 62.0% 232.5% at calc(59.8% + var(--glow-dx,0px)) 9.4%, rgba(18,78,99,0.4253) 0%, rgba(18,78,99,0.4253) 1.34%, rgba(18,78,99,0.4253) 4.03%, rgba(18,78,99,0.2413) 6.72%, rgba(18,78,99,0.1215) 9.41%, rgba(18,78,99,0.0616) 12.10%, rgba(18,78,99,0.0181) 14.78%, rgba(18,78,99,0.0000) 17.47%, rgba(18,78,99,0.0000) 20.16%, rgba(18,78,99,0.0000) 22.85%, rgba(18,78,99,0.0000) 25.54%, rgba(18,78,99,0.0000) 28.23%, rgba(18,78,99,0.0000) 30.91%, rgba(18,78,99,0.0000) 33.60%, rgba(18,78,99,0.0000) 36.29%, rgba(18,78,99,0.0000) 38.98%, rgba(18,78,99,0.0000) 41.67%, rgba(18,78,99,0.0000) 44.35%, rgba(18,78,99,0.0000) 47.04%, rgba(18,78,99,0.0000) 49.73%, rgba(18,78,99,0.0000) 52.42%, rgba(18,78,99,0.0000) 55.11%, rgba(18,78,99,0.0000) 57.80%, rgba(18,78,99,0.0000) 60.48%, rgba(18,78,99,0.0000) 63.17%, rgba(18,78,99,0.0000) 68.95%, rgba(18,78,99,0.0000) 73.39%, rgba(18,78,99,0.0000) 77.82%, rgba(18,78,99,0.0000) 82.26%, rgba(18,78,99,0.0000) 86.69%, rgba(18,78,99,0.0000) 91.13%, rgba(18,78,99,0.0000) 95.56%, rgba(18,78,99,0.0000) 100.00%),
    radial-gradient(ellipse 38.8% 232.5% at calc(50.8% + var(--glow-dx,0px)) -17.6%, rgba(10,128,161,0.5760) 0%, rgba(10,128,161,0.5760) 1.34%, rgba(10,128,161,0.5760) 4.03%, rgba(10,128,161,0.5760) 6.72%, rgba(10,128,161,0.5760) 9.41%, rgba(10,128,161,0.2544) 12.10%, rgba(10,128,161,0.1385) 14.78%, rgba(10,128,161,0.0595) 17.47%, rgba(10,128,161,0.0341) 20.16%, rgba(10,128,161,0.0072) 22.85%, rgba(10,128,161,0.0000) 25.54%, rgba(10,128,161,0.0000) 28.23%, rgba(10,128,161,0.0000) 30.91%, rgba(10,128,161,0.0000) 33.60%, rgba(10,128,161,0.0000) 36.29%, rgba(10,128,161,0.0000) 38.98%, rgba(10,128,161,0.0000) 41.67%, rgba(10,128,161,0.0000) 44.35%, rgba(10,128,161,0.0000) 47.04%, rgba(10,128,161,0.0000) 49.73%, rgba(10,128,161,0.0000) 52.42%, rgba(10,128,161,0.0000) 55.11%, rgba(10,128,161,0.0000) 57.80%, rgba(10,128,161,0.0000) 60.48%, rgba(10,128,161,0.0000) 63.17%, rgba(10,128,161,0.0000) 68.95%, rgba(10,128,161,0.0000) 73.39%, rgba(10,128,161,0.0000) 77.82%, rgba(10,128,161,0.0000) 82.26%, rgba(10,128,161,0.0000) 86.69%, rgba(10,128,161,0.0000) 91.13%, rgba(10,128,161,0.0000) 95.56%, rgba(10,128,161,0.0000) 100.00%),
    radial-gradient(ellipse 38.8% 232.5% at calc(71.2% + var(--glow-dx,0px)) -17.6%, rgba(25,50,61,0.9720) 0%, rgba(25,50,61,0.9720) 1.34%, rgba(25,50,61,0.9720) 4.03%, rgba(25,50,61,0.9720) 6.72%, rgba(25,50,61,0.9720) 9.41%, rgba(25,50,61,0.8788) 12.10%, rgba(25,50,61,0.7839) 14.78%, rgba(25,50,61,0.5736) 17.47%, rgba(25,50,61,0.3949) 20.16%, rgba(25,50,61,0.2035) 22.85%, rgba(25,50,61,0.1387) 25.54%, rgba(25,50,61,0.1024) 28.23%, rgba(25,50,61,0.0452) 30.91%, rgba(25,50,61,0.0372) 33.60%, rgba(25,50,61,0.0279) 36.29%, rgba(25,50,61,0.0140) 38.98%, rgba(25,50,61,0.0016) 41.67%, rgba(25,50,61,0.0000) 44.35%, rgba(25,50,61,0.0000) 47.04%, rgba(25,50,61,0.0000) 49.73%, rgba(25,50,61,0.0000) 52.42%, rgba(25,50,61,0.0000) 55.11%, rgba(25,50,61,0.0000) 57.80%, rgba(25,50,61,0.0000) 60.48%, rgba(25,50,61,0.0000) 63.17%, rgba(25,50,61,0.0000) 68.95%, rgba(25,50,61,0.0000) 73.39%, rgba(25,50,61,0.0000) 77.82%, rgba(25,50,61,0.0000) 82.26%, rgba(25,50,61,0.0000) 86.69%, rgba(25,50,61,0.0000) 91.13%, rgba(25,50,61,0.0000) 95.56%, rgba(25,50,61,0.0000) 100.00%),
    radial-gradient(ellipse 85.3% 178.2% at calc(49.2% + var(--glow-dx,0px)) -8.6%, rgba(11,123,155,1.0000) 0%, rgba(11,123,155,1.0000) 1.34%, rgba(11,123,155,1.0000) 4.03%, rgba(11,123,155,1.0000) 6.72%, rgba(11,123,155,0.9203) 9.41%, rgba(11,123,155,0.8184) 12.10%, rgba(11,123,155,0.7037) 14.78%, rgba(11,123,155,0.5860) 17.47%, rgba(11,123,155,0.4827) 20.16%, rgba(11,123,155,0.3961) 22.85%, rgba(11,123,155,0.3186) 25.54%, rgba(11,123,155,0.2583) 28.23%, rgba(11,123,155,0.2091) 30.91%, rgba(11,123,155,0.1681) 33.60%, rgba(11,123,155,0.1349) 36.29%, rgba(11,123,155,0.1073) 38.98%, rgba(11,123,155,0.0860) 41.67%, rgba(11,123,155,0.0692) 44.35%, rgba(11,123,155,0.0567) 47.04%, rgba(11,123,155,0.0466) 49.73%, rgba(11,123,155,0.0395) 52.42%, rgba(11,123,155,0.0340) 55.11%, rgba(11,123,155,0.0302) 57.80%, rgba(11,123,155,0.0288) 60.48%, rgba(11,123,155,0.0288) 63.17%, rgba(11,123,155,0.0275) 68.95%, rgba(11,123,155,0.0243) 73.39%, rgba(11,123,155,0.0197) 77.82%, rgba(11,123,155,0.0144) 82.26%, rgba(11,123,155,0.0091) 86.69%, rgba(11,123,155,0.0045) 91.13%, rgba(11,123,155,0.0012) 95.56%, rgba(11,123,155,0.0000) 100.00%);
}

/* dashboard-light, 9 layers, 2 of them glow (panel-tracking) */
html[data-bgmode="css"][data-theme="light"][data-module="dashboard"],
html[data-theme="light"] .lp-mod[data-module="dashboard"],
html[data-theme="light"] .l7-chapter[data-module="dashboard"]{
  --glow-anchor:51.9%;
  --bgfall:#bdecf4;
  --bg:
    radial-gradient(ellipse 85.3% 178.2% at 95.0% 85.0%, rgba(243,245,248,1.0000) 0%, rgba(243,245,248,1.0000) 1.34%, rgba(243,245,248,1.0000) 4.03%, rgba(243,245,248,0.7074) 6.72%, rgba(243,245,248,0.7074) 9.41%, rgba(243,245,248,0.7074) 12.10%, rgba(243,245,248,0.7074) 14.78%, rgba(243,245,248,0.6258) 17.47%, rgba(243,245,248,0.4670) 20.16%, rgba(243,245,248,0.2989) 22.85%, rgba(243,245,248,0.1738) 25.54%, rgba(243,245,248,0.0000) 28.23%, rgba(243,245,248,0.0000) 30.91%, rgba(243,245,248,0.0000) 33.60%, rgba(243,245,248,0.0000) 36.29%, rgba(243,245,248,0.0000) 38.98%, rgba(243,245,248,0.0000) 41.67%, rgba(243,245,248,0.0000) 44.35%, rgba(243,245,248,0.0000) 47.04%, rgba(243,245,248,0.0000) 49.73%, rgba(243,245,248,0.0000) 52.42%, rgba(243,245,248,0.0000) 55.11%, rgba(243,245,248,0.0000) 57.80%, rgba(243,245,248,0.0000) 60.48%, rgba(243,245,248,0.0000) 63.17%, rgba(243,245,248,0.0000) 68.95%, rgba(243,245,248,0.0000) 73.39%, rgba(243,245,248,0.0000) 77.82%, rgba(243,245,248,0.0000) 82.26%, rgba(243,245,248,0.0000) 86.69%, rgba(243,245,248,0.0000) 91.13%, rgba(243,245,248,0.0000) 95.56%, rgba(243,245,248,0.0000) 100.00%),
    radial-gradient(ellipse 62.0% 38.8% at 85.0% 5.0%, rgba(232,242,245,1.0000) 0%, rgba(232,242,245,1.0000) 1.34%, rgba(232,242,245,1.0000) 4.03%, rgba(232,242,245,0.9252) 6.72%, rgba(232,242,245,0.9252) 9.41%, rgba(232,242,245,0.8983) 12.10%, rgba(232,242,245,0.7407) 14.78%, rgba(232,242,245,0.3894) 17.47%, rgba(232,242,245,0.3034) 20.16%, rgba(232,242,245,0.2884) 22.85%, rgba(232,242,245,0.1449) 25.54%, rgba(232,242,245,0.1223) 28.23%, rgba(232,242,245,0.1048) 30.91%, rgba(232,242,245,0.1048) 33.60%, rgba(232,242,245,0.1048) 36.29%, rgba(232,242,245,0.0946) 38.98%, rgba(232,242,245,0.0566) 41.67%, rgba(232,242,245,0.0489) 44.35%, rgba(232,242,245,0.0352) 47.04%, rgba(232,242,245,0.0000) 49.73%, rgba(232,242,245,0.0000) 52.42%, rgba(232,242,245,0.0000) 55.11%, rgba(232,242,245,0.0000) 57.80%, rgba(232,242,245,0.0000) 60.48%, rgba(232,242,245,0.0000) 63.17%, rgba(232,242,245,0.0000) 68.95%, rgba(232,242,245,0.0000) 73.39%, rgba(232,242,245,0.0000) 77.82%, rgba(232,242,245,0.0000) 82.26%, rgba(232,242,245,0.0000) 86.69%, rgba(232,242,245,0.0000) 91.13%, rgba(232,242,245,0.0000) 95.56%, rgba(232,242,245,0.0000) 100.00%),
    radial-gradient(ellipse 62.0% 178.2% at 15.0% 95.0%, rgba(241,244,247,1.0000) 0%, rgba(241,244,247,1.0000) 1.34%, rgba(241,244,247,1.0000) 4.03%, rgba(241,244,247,1.0000) 6.72%, rgba(241,244,247,0.7198) 9.41%, rgba(241,244,247,0.5116) 12.10%, rgba(241,244,247,0.3859) 14.78%, rgba(241,244,247,0.3859) 17.47%, rgba(241,244,247,0.3859) 20.16%, rgba(241,244,247,0.3534) 22.85%, rgba(241,244,247,0.3203) 25.54%, rgba(241,244,247,0.2669) 28.23%, rgba(241,244,247,0.2109) 30.91%, rgba(241,244,247,0.0926) 33.60%, rgba(241,244,247,0.0000) 36.29%, rgba(241,244,247,0.0000) 38.98%, rgba(241,244,247,0.0000) 41.67%, rgba(241,244,247,0.0000) 44.35%, rgba(241,244,247,0.0000) 47.04%, rgba(241,244,247,0.0000) 49.73%, rgba(241,244,247,0.0000) 52.42%, rgba(241,244,247,0.0000) 55.11%, rgba(241,244,247,0.0000) 57.80%, rgba(241,244,247,0.0000) 60.48%, rgba(241,244,247,0.0000) 63.17%, rgba(241,244,247,0.0000) 68.95%, rgba(241,244,247,0.0000) 73.39%, rgba(241,244,247,0.0000) 77.82%, rgba(241,244,247,0.0000) 82.26%, rgba(241,244,247,0.0000) 86.69%, rgba(241,244,247,0.0000) 91.13%, rgba(241,244,247,0.0000) 95.56%, rgba(241,244,247,0.0000) 100.00%),
    radial-gradient(ellipse 85.3% 38.8% at calc(44.2% + var(--glow-dx,0px)) 52.7%, rgba(224,240,244,1.0000) 0%, rgba(224,240,244,1.0000) 1.34%, rgba(224,240,244,1.0000) 4.03%, rgba(224,240,244,0.9888) 6.72%, rgba(224,240,244,0.9778) 9.41%, rgba(224,240,244,0.9309) 12.10%, rgba(224,240,244,0.8797) 14.78%, rgba(224,240,244,0.8217) 17.47%, rgba(224,240,244,0.7134) 20.16%, rgba(224,240,244,0.6163) 22.85%, rgba(224,240,244,0.5608) 25.54%, rgba(224,240,244,0.4632) 28.23%, rgba(224,240,244,0.3471) 30.91%, rgba(224,240,244,0.3303) 33.60%, rgba(224,240,244,0.2401) 36.29%, rgba(224,240,244,0.1684) 38.98%, rgba(224,240,244,0.1636) 41.67%, rgba(224,240,244,0.1034) 44.35%, rgba(224,240,244,0.0478) 47.04%, rgba(224,240,244,0.0352) 49.73%, rgba(224,240,244,0.0000) 52.42%, rgba(224,240,244,0.0000) 55.11%, rgba(224,240,244,0.0000) 57.80%, rgba(224,240,244,0.0000) 60.48%, rgba(224,240,244,0.0000) 63.17%, rgba(224,240,244,0.0000) 68.95%, rgba(224,240,244,0.0000) 73.39%, rgba(224,240,244,0.0000) 77.82%, rgba(224,240,244,0.0000) 82.26%, rgba(224,240,244,0.0000) 86.69%, rgba(224,240,244,0.0000) 91.13%, rgba(224,240,244,0.0000) 95.56%, rgba(224,240,244,0.0000) 100.00%),
    radial-gradient(ellipse 38.8% 232.5% at 99.8% 18.4%, rgba(242,245,248,1.0000) 0%, rgba(242,245,248,1.0000) 1.34%, rgba(242,245,248,0.9933) 4.03%, rgba(242,245,248,0.9829) 6.72%, rgba(242,245,248,0.9448) 9.41%, rgba(242,245,248,0.8625) 12.10%, rgba(242,245,248,0.8360) 14.78%, rgba(242,245,248,0.7803) 17.47%, rgba(242,245,248,0.7568) 20.16%, rgba(242,245,248,0.7114) 22.85%, rgba(242,245,248,0.6514) 25.54%, rgba(242,245,248,0.5591) 28.23%, rgba(242,245,248,0.4160) 30.91%, rgba(242,245,248,0.1785) 33.60%, rgba(242,245,248,0.1492) 36.29%, rgba(242,245,248,0.1248) 38.98%, rgba(242,245,248,0.1248) 41.67%, rgba(242,245,248,0.0784) 44.35%, rgba(242,245,248,0.0708) 47.04%, rgba(242,245,248,0.0646) 49.73%, rgba(242,245,248,0.0646) 52.42%, rgba(242,245,248,0.0646) 55.11%, rgba(242,245,248,0.0646) 57.80%, rgba(242,245,248,0.0646) 60.48%, rgba(242,245,248,0.0502) 63.17%, rgba(242,245,248,0.0481) 68.95%, rgba(242,245,248,0.0424) 73.39%, rgba(242,245,248,0.0343) 77.82%, rgba(242,245,248,0.0251) 82.26%, rgba(242,245,248,0.0159) 86.69%, rgba(242,245,248,0.0078) 91.13%, rgba(242,245,248,0.0022) 95.56%, rgba(242,245,248,0.0000) 100.00%),
    radial-gradient(ellipse 38.8% 232.5% at 0.2% 18.4%, rgba(241,244,247,1.0000) 0%, rgba(241,244,247,1.0000) 1.34%, rgba(241,244,247,1.0000) 4.03%, rgba(241,244,247,0.9902) 6.72%, rgba(241,244,247,0.9710) 9.41%, rgba(241,244,247,0.9319) 12.10%, rgba(241,244,247,0.9044) 14.78%, rgba(241,244,247,0.8748) 17.47%, rgba(241,244,247,0.8583) 20.16%, rgba(241,244,247,0.8228) 22.85%, rgba(241,244,247,0.7738) 25.54%, rgba(241,244,247,0.7299) 28.23%, rgba(241,244,247,0.6957) 30.91%, rgba(241,244,247,0.5819) 33.60%, rgba(241,244,247,0.5194) 36.29%, rgba(241,244,247,0.4617) 38.98%, rgba(241,244,247,0.3966) 41.67%, rgba(241,244,247,0.3309) 44.35%, rgba(241,244,247,0.2645) 47.04%, rgba(241,244,247,0.2008) 49.73%, rgba(241,244,247,0.1494) 52.42%, rgba(241,244,247,0.1125) 55.11%, rgba(241,244,247,0.0662) 57.80%, rgba(241,244,247,0.0298) 60.48%, rgba(241,244,247,0.0000) 63.17%, rgba(241,244,247,0.0000) 68.95%, rgba(241,244,247,0.0000) 73.39%, rgba(241,244,247,0.0000) 77.82%, rgba(241,244,247,0.0000) 82.26%, rgba(241,244,247,0.0000) 86.69%, rgba(241,244,247,0.0000) 91.13%, rgba(241,244,247,0.0000) 95.56%, rgba(241,244,247,0.0000) 100.00%),
    radial-gradient(ellipse 232.5% 62.0% at 70.2% 96.1%, rgba(243,244,247,1.0000) 0%, rgba(243,244,247,1.0000) 1.34%, rgba(243,244,247,1.0000) 4.03%, rgba(243,244,247,0.9947) 6.72%, rgba(243,244,247,0.9649) 9.41%, rgba(243,244,247,0.9181) 12.10%, rgba(243,244,247,0.9181) 14.78%, rgba(243,244,247,0.9181) 17.47%, rgba(243,244,247,0.9181) 20.16%, rgba(243,244,247,0.9173) 22.85%, rgba(243,244,247,0.9058) 25.54%, rgba(243,244,247,0.8815) 28.23%, rgba(243,244,247,0.8650) 30.91%, rgba(243,244,247,0.8514) 33.60%, rgba(243,244,247,0.8313) 36.29%, rgba(243,244,247,0.8089) 38.98%, rgba(243,244,247,0.7802) 41.67%, rgba(243,244,247,0.7557) 44.35%, rgba(243,244,247,0.7260) 47.04%, rgba(243,244,247,0.6942) 49.73%, rgba(243,244,247,0.6598) 52.42%, rgba(243,244,247,0.6273) 55.11%, rgba(243,244,247,0.5950) 57.80%, rgba(243,244,247,0.5612) 60.48%, rgba(243,244,247,0.5306) 63.17%, rgba(243,244,247,0.5078) 68.95%, rgba(243,244,247,0.4477) 73.39%, rgba(243,244,247,0.3627) 77.82%, rgba(243,244,247,0.2653) 82.26%, rgba(243,244,247,0.1679) 86.69%, rgba(243,244,247,0.0829) 91.13%, rgba(243,244,247,0.0228) 95.56%, rgba(243,244,247,0.0000) 100.00%),
    radial-gradient(ellipse 85.3% 139.5% at calc(52.2% + var(--glow-dx,0px)) 1.2%, rgba(187,236,244,1.0000) 0%, rgba(187,236,244,1.0000) 1.34%, rgba(187,236,244,1.0000) 4.03%, rgba(187,236,244,0.9798) 6.72%, rgba(187,236,244,0.9107) 9.41%, rgba(187,236,244,0.8234) 12.10%, rgba(187,236,244,0.7327) 14.78%, rgba(187,236,244,0.6299) 17.47%, rgba(187,236,244,0.5461) 20.16%, rgba(187,236,244,0.4639) 22.85%, rgba(187,236,244,0.3865) 25.54%, rgba(187,236,244,0.2966) 28.23%, rgba(187,236,244,0.2100) 30.91%, rgba(187,236,244,0.1351) 33.60%, rgba(187,236,244,0.0666) 36.29%, rgba(187,236,244,0.0131) 38.98%, rgba(187,236,244,0.0000) 41.67%, rgba(187,236,244,0.0000) 44.35%, rgba(187,236,244,0.0000) 47.04%, rgba(187,236,244,0.0000) 49.73%, rgba(187,236,244,0.0000) 52.42%, rgba(187,236,244,0.0000) 55.11%, rgba(187,236,244,0.0000) 57.80%, rgba(187,236,244,0.0000) 60.48%, rgba(187,236,244,0.0000) 63.17%, rgba(187,236,244,0.0000) 68.95%, rgba(187,236,244,0.0000) 73.39%, rgba(187,236,244,0.0000) 77.82%, rgba(187,236,244,0.0000) 82.26%, rgba(187,236,244,0.0000) 86.69%, rgba(187,236,244,0.0000) 91.13%, rgba(187,236,244,0.0000) 95.56%, rgba(187,236,244,0.0000) 100.00%),
    radial-gradient(ellipse 139.5% 232.5% at 89.8% 19.2%, rgba(236,242,246,1.0000) 0%, rgba(236,242,246,1.0000) 1.34%, rgba(236,242,246,1.0000) 4.03%, rgba(236,242,246,1.0000) 6.72%, rgba(236,242,246,0.9555) 9.41%, rgba(236,242,246,0.8752) 12.10%, rgba(236,242,246,0.8354) 14.78%, rgba(236,242,246,0.7931) 17.47%, rgba(236,242,246,0.7679) 20.16%, rgba(236,242,246,0.7410) 22.85%, rgba(236,242,246,0.7410) 25.54%, rgba(236,242,246,0.7407) 28.23%, rgba(236,242,246,0.7407) 30.91%, rgba(236,242,246,0.7407) 33.60%, rgba(236,242,246,0.7407) 36.29%, rgba(236,242,246,0.7397) 38.98%, rgba(236,242,246,0.7397) 41.67%, rgba(236,242,246,0.7397) 44.35%, rgba(236,242,246,0.7397) 47.04%, rgba(236,242,246,0.7397) 49.73%, rgba(236,242,246,0.7397) 52.42%, rgba(236,242,246,0.7397) 55.11%, rgba(236,242,246,0.7397) 57.80%, rgba(236,242,246,0.7397) 60.48%, rgba(236,242,246,0.7397) 63.17%, rgba(236,242,246,0.7079) 68.95%, rgba(236,242,246,0.6241) 73.39%, rgba(236,242,246,0.5056) 77.82%, rgba(236,242,246,0.3698) 82.26%, rgba(236,242,246,0.2340) 86.69%, rgba(236,242,246,0.1156) 91.13%, rgba(236,242,246,0.0318) 95.56%, rgba(236,242,246,0.0000) 100.00%);
}


/* ------------------------------------------------------------
   GRAIN: only when the CSS background is active. TWO-FREQUENCY.

   The JPEGs carry baked-in grain so molecules.css keeps its synthetic grain low
   (.1/.05) to avoid doubling up. The CSS gradients have none, so this carries
   it all, for every module, not just Investigation.

   The source grain is BIMODAL: coarse mottle AND fine speckle. One feTurbulence
   cannot do both, fractalNoise octave power falls as 1/4^i, so the base
   frequency dominates and extra octaves add almost no fine energy. Hence two
   turbulence rects in one SVG: coarse bf .035 (~28px clumps) with a fine bf .4
   (~2.5px speckle) rect over it at opacity .60. Spectral distance to source
   0.117, versus 0.608 for the best single-frequency fit.

   TILE SCALE decides whether grain exists at all. The SVG is 1:1 with
   background-size 330px, so baseFrequency reads directly in px. Do not shrink
   the tile without raising both frequencies, at ~1px the noise hits Nyquist,
   Chrome renders it as an alternating per-pixel checkerboard, and the eye
   averages it back to flat grey. Invisible at ANY opacity.

   AMOUNT: measured, not guessed, and the measurement needs care. Chrome
   DITHERS css gradients, and that dither alone measures 0.64-0.90 high-pass SD,
   which is more than some of these sources' entire grain budget. Measuring the
   finished render therefore mostly measures Chrome. The numbers below come from
   differencing a grained against an ungrained render, the gradient and its
   dither are bit-identical in both and cancel exactly, leaving only grain, then
   solving for the opacity whose grain SD equals the source's own.

       module               source SD   opacity
       investigation dark     1.283       .23
       investigation light    0.503       .21
       chat dark              1.218       .24
       chat light             0.553       .20
       dashboard dark         1.168       .22
       dashboard light        1.191       .46

   investigation-dark solves to .231, independently reproducing the .23 that was
   previously settled by eye, which is the check that this method is sound.

   Two consequences worth knowing. Light is NOT inherently grain-free: the old
   build put it at .10 because the dither floor swamped the measurement, and
   these solve near .21. And dashboard-light is genuinely as grainy as the dark
   sources (SD 1.191), so it needs .46, mix-blend-mode:overlay modulates a
   near-white base far less per unit opacity, which is why the number is double
   everything else rather than the treatment being heavier.
   ------------------------------------------------------------ */
html[data-bgmode="css"]{
  --grain:url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20width='330'%20height='330'><filter%20id='c'><feTurbulence%20type='fractalNoise'%20baseFrequency='0.035'%20numOctaves='3'%20stitchTiles='stitch'/><feColorMatrix%20type='saturate'%20values='0'/><feComponentTransfer><feFuncA%20type='linear'%20slope='0'%20intercept='1'/></feComponentTransfer></filter><filter%20id='f'><feTurbulence%20type='fractalNoise'%20baseFrequency='0.4'%20numOctaves='2'%20stitchTiles='stitch'/><feColorMatrix%20type='saturate'%20values='0'/><feComponentTransfer><feFuncA%20type='linear'%20slope='0'%20intercept='1'/></feComponentTransfer></filter><rect%20width='100%'%20height='100%'%20filter='url%28%23c%29'/><rect%20width='100%'%20height='100%'%20filter='url%28%23f%29'%20opacity='0.60'/></svg>");
}
html[data-bgmode="css"] .screen::before{ background-size:330px 330px; }

html[data-bgmode="css"][data-module="investigation"] .screen::before{ opacity:.23 }
html[data-bgmode="css"][data-theme="light"][data-module="investigation"] .screen::before{ opacity:.21 }
html[data-bgmode="css"][data-module="chat"] .screen::before{ opacity:.24 }
html[data-bgmode="css"][data-theme="light"][data-module="chat"] .screen::before{ opacity:.20 }
html[data-bgmode="css"][data-module="dashboard"] .screen::before{ opacity:.22 }
html[data-bgmode="css"][data-theme="light"][data-module="dashboard"] .screen::before{ opacity:.46 }

/* ============================================================
   LIGHT + DASHBOARD: the deep sea, 20% quieter (Ameer, 3 Sep)
   ============================================================
   "On Spark Light mode we can see a light deep sea colour on the background
   top... tone it down a bit, maybe twenty more percentage. The same thing is
   applicable for the Build Dashboard as well as Dashboards, all the screens."

   ONE VEIL, NOT NINE REWRITTEN GRADIENTS. dashboard-light is nine radial
   layers over --bgfall #bdecf4, and every one of them carries the tint. Editing
   them would mean touching several hundred colour stops, all of them generated,
   and the next re-export from the source would silently undo it. So the ground
   is painted exactly as it was and a flat 20% white sheet is laid over the whole
   stack instead: the layer list is prepended, so this sits above all nine
   gradients, and background-color (--bgfall) paints below every image layer, so
   the fall colour is covered too. Everything moves 20% toward white together,
   which is what "tone it down 20%" means - the tint weakens, nothing shifts hue.

   TWO PASSES, AND THIS IS THE SECOND. The veil went on at .20 first; 30% more
   off what was left (Ameer, same day: "make it thirty more percentage, whatever
   we have right now") makes the surviving tint 0.8 x 0.7 = 0.56 of the
   original, so the sheet is 1 - 0.56 = .44. The container's half of the job is
   --glow in css/tokens.css and moved by the same 30%; the two are always
   changed together, because the page and the boxes on it are the two places
   this colour comes from and toning one alone reads as half a fix.

   MEASURED, on the Dashboards page at 1600x1000:
                            ORIGINAL          20%               +30% (now)
     background, top edge   rgb(202,239,246)  rgb(213,242,248)  rgb(225,245,250)
     the tint itself        53 points         42, -20%          30, -44%

   THE GRAIN IS UNAFFECTED. It is .screen::before, a separate element painted
   over this one, so the veil goes under it and the noise keeps its own amount
   (.46 here, see the block above).

   THE MODULE CROSSFADE STILL WORKS. crossfadeBg() in js/app.js snapshots
   getComputedStyle(.screen).backgroundImage, which is the RESOLVED list, so the
   ghost it lays down on the way out carries this layer too.

   SCOPED TO LIGHT + DASHBOARD, and deliberately: dark was never the complaint,
   and Investigation's orange and Data Intelligence's purple are their own
   grounds at their own strengths. It covers the Build Dashboard module and the
   Dashboards library both, because js/app.js forces data-module="dashboard" on
   <html> for the dashboards and dashboard-view screens as well as the module
   itself (see the setAttribute near the top of render()).

   ONE LINE TO UNDO: delete the rule.
   ------------------------------------------------------------ */
html[data-theme="light"][data-module="dashboard"] .screen{
  background-image:
    linear-gradient(rgba(255,255,255,.44), rgba(255,255,255,.44)),
    var(--bg);
}
