/* ===== NEXUS dark theme, extended =====
   Surfaces, mockups and text for every component built after the original theme sheet. */
html[data-nx-theme="dark"] body .nx31-site{background-image:none!important;background-color:#0B1120!important}
html[data-nx-theme="dark"] body .nx31-site section.nx31-grey{background-image:none!important;background-color:#0E1526!important}

/* --- page surfaces --- */
html[data-nx-theme="dark"] body .nx31-site :is(.nxcmp,.nxrg-pane,.nxrg-paneb,.nxrg-tbl,.nxrg-disc,.nxrg-v,.nxrg-vb,.nxrs-c,.nxct-card,.nxct-map,.nxsp-split,.nxsp-rail,.nxsp-check,.nxsp-spec,.nxwl-kit,.nxfl-flow,.nxst-row,.nxcs-panel,.nxcs-k,.nxsoc,.nxrg-band,.nxc-cmp,.nx49-float,.nxp){background-color:#0F1729!important;background-image:none!important;border-color:#1F2A44!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxcmp-hd,.nxcmp-lb,.nxrg-note,.nxrg-soon,.nxrs-note,.nxct-foot,.nxwl-kh,.nxfl-back,.nxst-pt,.nxc-k,.nxsoc-hd,.nxsoc-ft,.nx31-fld){background-color:#121C31!important;background-image:none!important;border-color:#1F2A44!important}
html[data-nx-theme="dark"] body .nx31-site .nxcmp-cl{background-color:#13203A!important;box-shadow:inset 0 0 0 1px rgba(47,111,228,.28)!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxcmp-c,.nxcmp-r,.nxrg-tr,.nxrg-th,.nxrg-li,.nxsp-row,.nxsp-ci,.nxsp-sr,.nxrs-c,.nxct-r,.nxcs-row,.nxcs-hd,.nxst-row){border-color:#1C2740!important}

/* --- product mockups: dark screens with light type --- */
html[data-nx-theme="dark"] body .nx31-site :is(.nx31-win,.nxh-win,.nxw,.nxbh,.nx34-thread,.nx38-phone,.nxst-screen,.nxst-stage,.nxm-win,.nxo-win){background-color:#0E1627!important;border-color:#24314D!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nx31-wbar,.nxh-bar,.nxw-tb,.nxbh-bar,.nx34-tbar,.nxm-tb,.nxo-tb,.nxbp-bar){background-color:#121C31!important;border-bottom-color:#24314D!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nx31-wbody,.nx31-side,.nxh-side,.nxh-main,.nxw-body,.nxw-side,.nxbh-side,.nxbh-main,.nx34-tbody,.nxm-body,.nxo-body,.nxst-screen){background-color:#0B1324!important;border-right-color:#1C2740!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-k,.nxh-pan,.nxh-f,.nxh-mkt,.nxw-c,.nxw-fld,.nxbh-k,.nxbh-pn,.nx31-hold,.nx31-ph-v,.nxm-foot,.nxo-bars,.nxcs-panel,.nx34-chip,.nx40-tag,.nx38-note,.nx43-cal,.nx44-map,.nx42-photo,.nx42-tph,.nx32-chb,.nx36-guardsec){background-color:#111B2E!important;border-color:#24314D!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-tr,.nxh-row,.nxw-row,.nxbh-tr,.nxcs-tr,.nxm-row,.nxo-row){border-color:#1C2740!important}

/* --- type: anything that was near-black goes light --- */
html[data-nx-theme="dark"] body .nx31-site :is(h1,h2,h3,h4,h5,h6){color:#F1F5FB!important;-webkit-text-fill-color:#F1F5FB!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxcmp-t,.nxcmp-v,.nxrg-pt,.nxrg-h2,.nxrg-dt,.nxrg-vt,.nxrg-mod,.nxrs-t,.nxct-h,.nxct-v,.nxsp-t,.nxst-t,.nxwl-t,.nxcs-t,.nxcs-kv,.nxcs-b,.nxh-hi,.nxh-kv,.nxh-tn,.nxh-big,.nxh-pname,.nxh-sv,.nxh-as,.nxw-t,.nxw-v,.nxbh-hi,.nxbh-kv,.nxbh-pt,.nx31-hn,.nx31-hv2,.nx31-ph-v,.nx31-mt,.nx31-sv,.nxm-t,.nxo-t,.nxst-pt,.nxc-kv,.nx34-mt,.nx32-cht){color:#F1F5FB!important;-webkit-text-fill-color:#F1F5FB!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxcmp-lb,.nxcmp-s,.nxrg-sub,.nxrg-dp,.nxrg-gp,.nxrg-note,.nxrg-soon,.nxrs-p,.nxrs-k,.nxrs-note,.nxct-s,.nxct-k,.nxct-v2,.nxct-foot,.nxsp-p,.nxst-p,.nxcs-sub,.nxcs-kl,.nxcs-bl,.nxcs-am,.nxh-hs,.nxh-kl,.nxh-sl,.nxh-psub,.nxh-axis,.nxh-foot,.nxw-l,.nxbh-hs,.nxbh-kl,.nx31-hs,.nx31-sl,.nx31-ph-l,.nxm-s,.nxo-s,.nx32-chs,.nx32-albl){color:#9FB0C9!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-tr,.nxw-row,.nxbh-tr,.nxcs-row,.nx31-tr,.nx35-tr){color:#C9D5E6!important}

/* --- chips, tags, tracks --- */
html[data-nx-theme="dark"] body .nx31-site :is(.nxrg-chip,.nxcs-chip,.nxwl-chip,.nxcmp-tag,.nxct-i,.nxrg-ni,.nxw-chip,.nxh-chip,.nx31-sample,.nx34-chip,.nx40-tag){background-color:#16213A!important;border-color:#24314D!important;color:#C9D7EC!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxrg-eye,.nxh-wb){background-color:#111A2E!important;border-color:#22304A!important;color:#8FBBFF!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxcs-track,.nxsp-track,.nxh-track){background-color:#1C2740!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-cb2,.nxbh-btn2,.nx31-ph-btn){background-color:#16213A!important;border-color:#24314D!important;color:#D7E1F0!important}

/* --- brand preview modal --- */
html[data-nx-theme="dark"] body .nxbp-m{background:#0F1729!important;border-color:#1F2A44!important}
html[data-nx-theme="dark"] body .nxbp-h{color:#F1F5FB!important}
html[data-nx-theme="dark"] body :is(.nxbp-s,.nxbp-note,.nxbp-cap,.nxbp-l){color:#9FB0C9!important}
html[data-nx-theme="dark"] body .nxbp-in{background:#0B1120!important;border-color:#24314D!important;color:#E6ECF5!important}
html[data-nx-theme="dark"] body .nxbp-stage{background:#0B1120!important;border-left-color:#1F2A44!important}
html[data-nx-theme="dark"] body :is(.nxbp-x,.nxbp-a2){background:#16213A!important;border-color:#24314D!important;color:#D7E1F0!important}
html[data-nx-theme="dark"] body .nxbp-seg{background:#121C31!important;border-color:#24314D!important}
html[data-nx-theme="dark"] body .nxbp-sg{color:#9FB0C9!important}
html[data-nx-theme="dark"] body .nxbp-sg.on{background:#1C2840!important;color:#F1F5FB!important}
html[data-nx-theme="dark"] body .nxbp-pick{background:#0B1120!important;border-color:#24314D!important}
html[data-nx-theme="dark"] body .nxbp-hex{color:#E6ECF5!important}

/* --- floating dock --- */
html[data-nx-theme="dark"] body .nxdk-b{background:rgba(17,26,46,.94)!important;border-color:#2A3753!important;color:#8FBBFF!important}
html[data-nx-theme="dark"] body .nxdk-p{background:linear-gradient(180deg,#4F98F5,#2F6FE4)!important;border-color:#2F6FE4!important;color:#fff!important}

/* ===== Mockups: a real dark design rather than patched light styles =====
   Kill every light gradient inside a mock screen, give panels one consistent dark card
   treatment (same as the stat cards), and keep borders a quiet grey-blue instead of glowing. */
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-win,.nx31-win,.nxw,.nxbh,.nx34-thread,.nx38-phone,.nxst-screen) :is(div,span,section,header,article,li,td,th,p,h1,h2,h3,h4){background-image:none!important}

/* window shell: one hairline, a soft drop shadow, no glow ring */
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-win,.nx31-win,.nxw,.nxbh,.nx34-thread,.nxst-screen){box-shadow:0 0 0 1px #1F2A44,0 40px 90px -45px rgba(0,0,0,.85)!important;border-color:#1F2A44!important}

/* panels inside the screen, all on the stat-card treatment */
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-hero2,.nxh-k,.nxh-pan,.nxh-mkt,.nxp,.nxh-f,.nxh-2c,.nxh-act,.nxw-c,.nxw-fld,.nxbh-k,.nxbh-pn,.nxcs-panel,.nxcs-k,.nxst-ch){background-color:#111B2E!important;border:1px solid #1F2A44!important;box-shadow:none!important}

/* table headers and rows */
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-th,.nxcs-hd,.nxw-th,.nxbh-th,.nx31-th,.nx35-tr.nx31-th){background-color:#0E1627!important;color:#8FA0B8!important;border-color:#1F2A44!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-tr,.nxcs-row,.nxw-row,.nxbh-tr,.nx35-tr){background-color:transparent!important;border-color:#1C2740!important;color:#C9D5E6!important}

/* type scale inside the screens: label grey, value white */
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-win,.nx31-win,.nxw,.nxbh,.nxst-screen) :is(.nxh-kl,.nxh-sl,.nxh-tl,.nxh-hs,.nxh-psub,.nxh-axis,.nxh-wb,.nxw-l,.nxbh-kl,.nxbh-hs,.nx31-sl,.nxcs-kl,.nxcs-sub){color:#8FA0B8!important;-webkit-text-fill-color:#8FA0B8!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-win,.nx31-win,.nxw,.nxbh,.nxst-screen) :is(.nxh-hi,.nxh-kv,.nxh-tn,.nxh-big,.nxh-pname,.nxh-sv,.nxh-as,.nxw-t,.nxw-v,.nxbh-hi,.nxbh-kv,.nxbh-pt,.nx31-sv,.nx31-mt,.nxcs-t,.nxcs-kv,.nxcs-b){color:#F1F5FB!important;-webkit-text-fill-color:#F1F5FB!important}

/* chrome: address bar, tags, sidebar */
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-url,.nx31-wurl,.nxw-url,.nxbp-url){background-color:#0B1324!important;color:#8FA0B8!important;border-color:#1F2A44!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-tag,.nxh-chip,.nx31-sample,.nxw-tag,.nxcs-chip){background-color:#16213A!important;color:#9FB0C9!important;border-color:#24314D!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-brand,.nxw-brand,.nxbh-wm,.nx31-brand){color:#F1F5FB!important;-webkit-text-fill-color:#F1F5FB!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-ni,.nxw-ni,.nxbh-ni,.nx31-sitem){color:#9FB0C9!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-non,.nxw-non,.nxbh-non,.nx31-sitem-act){background-color:#16213A!important;color:#8FBBFF!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-sgrp,.nx31-sgrp,.nxw-sgrp){color:#6E7F9A!important}

/* secondary buttons inside screens */
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-cb2,.nxbh-btn2,.nx31-ph-btn,.nxcs-cb2,.nxh-tb){background-color:#16213A!important;border-color:#24314D!important;color:#D7E1F0!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-tb-on,.nxcs-tb-on){color:#FFFFFF!important}

/* separators everywhere in the site: quiet, never bright */
html[data-nx-theme="dark"] body .nx31-site :is(hr,.nxh-sep,.nxw-sep,.nxcs-sep){border-color:#1C2740!important;background-color:#1C2740!important}

/* ===== final pass: headline figures, floating cards and coin marks ===== */
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-big,.nxh-tn,.nxh-amt,.nxbh-big,.nxcs-big,.nxp-big,.nxh-pv,.nxh-total){color:#F1F5FB!important;-webkit-text-fill-color:#F1F5FB!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-f,.nx49-float,.nxh-float){background-color:#16213A!important;border:1px solid #28364F!important;box-shadow:0 18px 40px -26px rgba(0,0,0,.9)!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-f-t,.nxh-ft,.nx49-ft){color:#F1F5FB!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-f-s,.nxh-fs,.nx49-fs){color:#9FB0C9!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-cn,.nx31-coin,.nxw-coin,.nxbh-coin,.nxcs-cn){color:#FFFFFF!important;-webkit-text-fill-color:#FFFFFF!important}
html[data-nx-theme="dark"] body .nx31-site :is(.nx31-ph-b,.nxh-ph-b){color:#F1F5FB!important}
/* any remaining pale panel inside a mock screen */
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-win,.nx31-win,.nxw,.nxbh,.nxst-screen) :is([class*="-pan"],[class*="-card"],[class*="-box"],[class*="-tile"]){background-color:#111B2E!important;border-color:#1F2A44!important}

/* ===== borders: grey hairlines, never white ===== */
html[data-nx-theme="dark"] body .nx31-site :is(.nxh-win,.nx31-win,.nxw,.nxbh,.nx34-thread,.nxst-screen) *{border-color:#26334D!important}
html[data-nx-theme="dark"] body .nx31-site :is([class*="-pan"],[class*="-card"],[class*="-tile"],[class*="-box"],[class*="-row"],[class*="-tbl"],[class*="-k"],table,thead,tbody,tr,td,th){border-color:#26334D!important}
