/* PIPLYTIX — navy / cyan neumorphic theme (v1.34.0).
   SINGLE SOURCE OF TRUTH for tokens. Declared on both :root and html[data-theme="dark"]
   so no other block can shadow them by specificity. Do not redeclare these elsewhere. */
:root,html[data-theme="dark"]{
  color-scheme:dark;
  --ice:#22d3ee; --ice2:#0891b2; --ice3:#67e8f9; --ice-soft:rgba(34,211,238,.12); --ice-line:rgba(34,211,238,.32);
  --d-bg:#071426; --d-panel:#0b1b31; --d-tile:#0d2038; --d-line:rgba(128,174,220,.18); --d-text:#eff8ff; --d-muted:#91a9c2;
  --spx-bg:#071426; --spx-panel:#0b1b31; --spx-panel-2:#102743; --spx-border:rgba(128,174,220,.20); --spx-border-hot:rgba(34,211,238,.58);
  --spx-cyan:#22d3ee; --spx-blue:#188bdf; --spx-green:#00d7bd; --spx-text:#eff8ff; --spx-muted:#91a9c2;
}
html[data-theme="dark"],html[data-theme="dark"] body{background:var(--d-bg)!important;color:var(--d-text)!important}
html[data-theme="dark"] body{background-image:none!important}

/* Brand gradients / buttons: red -> ice blue */
html[data-theme="dark"] [class*="from-red-600"],html[data-theme="dark"] [class*="from-rose-600"],
html[data-theme="dark"] [class*="from-red-500"],html[data-theme="dark"] [class*="from-rose-500"]{--tw-gradient-from:var(--ice2)!important}
html[data-theme="dark"] [class*="to-rose-600"],html[data-theme="dark"] [class*="to-red-500"],
html[data-theme="dark"] [class*="to-rose-500"],html[data-theme="dark"] [class*="to-red-600"],
html[data-theme="dark"] [class*="to-rose-400"]{--tw-gradient-to:var(--ice)!important}
html[data-theme="dark"] [class*="shadow-red-600"],html[data-theme="dark"] [class*="shadow-rose-600"]{--tw-shadow-color:rgba(34,211,238,.25)!important}
html[data-theme="dark"] button.bg-red-600:not(.animate-pulse):is([class*="shadow"],[class*="px-1.5"]),
html[data-theme="dark"] [class*="bg-gradient-to-r from-red-600 to-rose-600"]{background:linear-gradient(90deg,var(--ice2),var(--ice))!important;color:#fff!important}
html[data-theme="dark"] button.bg-red-600:hover,html[data-theme="dark"] button[class*="hover:bg-red-500"]:hover{background:var(--ice3)!important}
html[data-theme="dark"] button[class~="bg-red-600/90"],html[data-theme="dark"] button[class~="bg-rose-600/90"]{background:var(--ice2)!important;color:#fff!important}
html[data-theme="dark"] button[class~="bg-red-600/90"]:hover,html[data-theme="dark"] button[class~="bg-rose-600/90"]:hover{background:var(--ice)!important}
html[data-theme="dark"] button[class~="bg-red-600/20"]{background:var(--ice-soft)!important;color:var(--ice3)!important;border-color:var(--ice-line)!important}
html[data-theme="dark"] .bg-red-500\/10,html[data-theme="dark"] .bg-red-600\/10,
html[data-theme="dark"] .bg-rose-500\/10,html[data-theme="dark"] .bg-rose-600\/10,
html[data-theme="dark"] .bg-red-500\/15,html[data-theme="dark"] .bg-red-600\/15,
html[data-theme="dark"] .bg-rose-500\/15{background-color:var(--ice-soft)!important}
html[data-theme="dark"] .border-red-500\/20,html[data-theme="dark"] .border-red-500\/30,
html[data-theme="dark"] .border-red-500\/40,html[data-theme="dark"] .border-rose-500\/20,
html[data-theme="dark"] .border-rose-500\/30,html[data-theme="dark"] .border-red-600\/20{border-color:var(--ice-line)!important}
html[data-theme="dark"] [class*="focus:border-red-500"]:focus{border-color:var(--ice)!important}
html[data-theme="dark"] [class*="ring-red-500"]{--tw-ring-color:rgba(34,211,238,.3)!important}
/* Brand accent icons (loss / error text uses rose-400 and stays red) */
html[data-theme="dark"] svg.text-red-500,html[data-theme="dark"] svg.text-red-400{color:var(--ice3)!important}
html[data-theme="dark"] svg.fill-red-500{color:var(--ice3)!important;fill:var(--ice3)!important}

html[data-theme="dark"] aside [class*="from-[#140b0f]"]{background:linear-gradient(180deg,#0d2038,#081a2e)!important}
html[data-theme="dark"] aside .text-red-400{color:#ff5470!important}

/* Logo + active nav */
html[data-theme="dark"] .pxl-mark{background:linear-gradient(135deg,#22d3ee,var(--ice2))!important;box-shadow:0 8px 24px rgba(34,211,238,.30)!important}
html[data-theme="dark"] .pxl-name{color:#fff!important}
html[data-theme="dark"] .pxl-tag{color:var(--d-muted)!important}
html[data-theme="dark"] aside nav button.active{background:linear-gradient(90deg,var(--ice2),var(--ice))!important;color:#fff!important;box-shadow:0 8px 22px -10px rgba(34,211,238,.7)!important}

/* Trading DNA ring (colors baked into the JS bundle) */
html[data-theme="dark"] svg circle[stroke="#d6e1d9"]{stroke:#1d3a58!important}
html[data-theme="dark"] svg circle[stroke="#059669"]{stroke:var(--ice)!important}
html[data-theme="dark"] svg circle[fill="#ffffff"]{fill:#08182b!important}
html[data-theme="dark"] svg circle[stroke="#ef4444"]{stroke:var(--ice)!important}

/* Trading calendar */
html[data-theme="dark"] .pxc{background:var(--d-panel)!important;border-color:var(--d-line)!important;color:var(--d-text)!important;box-shadow:none!important}
html[data-theme="dark"] .pxc h3,html[data-theme="dark"] .pxc-month{color:#fff!important}
html[data-theme="dark"] .pxc-title span,html[data-theme="dark"] .pxc-dow,html[data-theme="dark"] .pxc-stat span,
html[data-theme="dark"] .pxc-d,html[data-theme="dark"] .pxc-n,html[data-theme="dark"] .pxc-wk small{color:#8b95a5!important}
html[data-theme="dark"] .pxc-btn{background:#0a1a30!important;border-color:var(--d-line)!important;color:var(--d-text)!important}
html[data-theme="dark"] .pxc-btn:hover{background:#102743!important;border-color:var(--ice-line)!important;color:var(--ice3)!important}
html[data-theme="dark"] .pxc-stat{background:var(--d-tile)!important;border-color:var(--d-line)!important;color:var(--d-text)!important}
html[data-theme="dark"] .pxc-stat b{color:#fff!important}
html[data-theme="dark"] .pxc-stat b[style*="52, 211, 153"],html[data-theme="dark"] .pxc-stat b[style*="#34d399"]{color:#34d399!important}
html[data-theme="dark"] .pxc-stat b[style*="251, 113, 133"],html[data-theme="dark"] .pxc-stat b[style*="#fb7185"]{color:#fb7185!important}
html[data-theme="dark"] .pxc-cell{background:#0a1a30!important;border-color:#1a3350!important;color:var(--d-text)!important}
html[data-theme="dark"] button.pxc-cell:hover{background:#102743!important;border-color:var(--ice-line)!important}
html[data-theme="dark"] .pxc-cell.out{background:#071426!important;opacity:.5}
html[data-theme="dark"] .pxc-cell.today{box-shadow:inset 0 0 0 1px var(--ice)!important}
html[data-theme="dark"] .pxc-cell.sel{box-shadow:0 0 0 2px rgba(34,211,238,.4)!important}
html[data-theme="dark"] .pxc-d{color:#c3cbd6!important}
html[data-theme="dark"] .pxc-dot{background:var(--ice)!important}
html[data-theme="dark"] .pxc-wk{background:#081a2e!important;border-color:#20405f!important;color:var(--d-text)!important}
html[data-theme="dark"] .pxc-day{background:var(--d-tile)!important;border-color:var(--d-line)!important;color:var(--d-text)!important}
html[data-theme="dark"] .pxc-row{background:#0a1a30!important;border-color:var(--d-line)!important;color:var(--d-text)!important}
html[data-theme="dark"] .pxc-row:hover{background:#102743!important;border-color:var(--ice-line)!important}

/* Lot-size calculator + account switcher (these styles only existed in the light file) */
html[data-theme="dark"] .pxlc-trigger{display:inline-flex!important;align-items:center!important;gap:6px!important;height:32px!important;padding:0 10px!important;border:1px solid var(--d-line)!important;border-radius:10px!important;background:#0a1a30!important;color:var(--d-text)!important;font:600 11px/1 ui-monospace,monospace!important;cursor:pointer!important}
html[data-theme="dark"] .pxlc-trigger:hover,html[data-theme="dark"] .pxlc-trigger[aria-expanded="true"]{border-color:var(--ice-line)!important;background:#102743!important;color:var(--ice3)!important}
html[data-theme="dark"] .pxlc-icon{width:15px!important;height:15px!important;color:var(--ice)!important}
html[data-theme="dark"] .pxlc-pop{position:absolute!important;right:0!important;top:calc(100% + 10px)!important;width:390px!important;z-index:70!important;padding:14px!important;border:1px solid var(--d-line)!important;border-radius:18px!important;background:#0b1b31!important;color:var(--d-text)!important;box-shadow:0 24px 60px -20px rgba(0,0,0,.8)!important}
html[data-theme="dark"] .pxlc-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;padding:2px 2px 12px!important;border-bottom:1px solid var(--d-line)!important}
html[data-theme="dark"] .pxlc-kicker{font:700 9px/1 ui-monospace,monospace!important;letter-spacing:.16em!important;color:var(--ice3)!important}
html[data-theme="dark"] .pxlc-title{margin-top:5px!important;font:700 17px/1.15 'Space Grotesk',system-ui,sans-serif!important;color:#fff!important}
html[data-theme="dark"] .pxlc-sub{margin-top:4px!important;font:400 10px/1.4 ui-monospace,monospace!important;color:var(--d-muted)!important}
html[data-theme="dark"] .pxlc-close{width:28px!important;height:28px!important;border:1px solid var(--d-line)!important;border-radius:9px!important;background:#0a1a30!important;color:var(--d-muted)!important;font:600 18px/1 system-ui,sans-serif!important;cursor:pointer!important}
html[data-theme="dark"] .pxlc-close:hover{color:var(--ice3)!important;border-color:var(--ice-line)!important}
html[data-theme="dark"] .pxlc-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;padding-top:12px!important}
html[data-theme="dark"] .pxlc-field{display:block!important;min-width:0!important}
html[data-theme="dark"] .pxlc-field>span{display:block!important;margin:0 0 5px!important;font:700 9px/1 ui-monospace,monospace!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:var(--d-muted)!important}
html[data-theme="dark"] .pxlc-field input,html[data-theme="dark"] .pxlc-field select{width:100%!important;box-sizing:border-box!important;height:34px!important;padding:0 9px!important;border:1px solid var(--d-line)!important;border-radius:9px!important;background:#08182b!important;color:var(--d-text)!important;outline:none!important;font:600 11px/1 ui-monospace,monospace!important}
html[data-theme="dark"] .pxlc-field input:focus,html[data-theme="dark"] .pxlc-field select:focus{border-color:var(--ice)!important;box-shadow:0 0 0 3px rgba(34,211,238,.14)!important}
html[data-theme="dark"] .pxlc-riskrow{display:grid!important;grid-template-columns:58px 1fr!important;gap:6px!important}
html[data-theme="dark"] .pxlc-note{margin-top:10px!important;padding:8px 9px!important;border:1px solid var(--ice-line)!important;border-radius:9px!important;background:rgba(34,211,238,.06)!important;color:var(--d-muted)!important;font:500 9px/1.45 ui-monospace,monospace!important}
html[data-theme="dark"] .pxlc-result{margin-top:10px!important;padding:11px!important;border:1px solid var(--ice-line)!important;border-radius:12px!important;background:linear-gradient(135deg,rgba(34,211,238,.12),#0b1b31)!important}
html[data-theme="dark"] .pxlc-result-main{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
html[data-theme="dark"] .pxlc-result-main span{font:700 10px/1.2 ui-monospace,monospace!important;color:var(--d-muted)!important;text-transform:uppercase!important;letter-spacing:.06em!important}
html[data-theme="dark"] .pxlc-result-main strong{font:800 24px/1 ui-monospace,monospace!important;color:var(--ice3)!important}
html[data-theme="dark"] .pxlc-result-meta{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:7px!important;margin-top:10px!important;padding-top:9px!important;border-top:1px solid var(--d-line)!important}
html[data-theme="dark"] .pxlc-result-meta span{font:500 8px/1.25 ui-monospace,monospace!important;color:var(--d-muted)!important}
html[data-theme="dark"] .pxlc-result-meta b{display:block!important;margin-top:3px!important;color:var(--d-text)!important;font-weight:700!important}
html[data-theme="dark"] .pxr-acct-capital{margin-top:3px!important;color:var(--ice3)!important;font:700 10px/1.2 ui-monospace,monospace!important}
html[data-theme="dark"] .pxs-capital{font-weight:700!important}
@media(max-width:720px){
  html[data-theme="dark"] .pxlc-trigger-label{display:none!important}
  html[data-theme="dark"] .pxlc-trigger{width:32px!important;padding:0!important;justify-content:center!important}
  html[data-theme="dark"] .pxlc-pop{position:fixed!important;right:12px!important;top:64px!important;width:min(390px,calc(100vw - 24px))!important}
  html[data-theme="dark"] .pxlc-grid{grid-template-columns:1fr!important}
}
html[data-theme="dark"] .pxs-premium{background:linear-gradient(135deg,#0d2038,#081a2e)!important;border:1px solid var(--d-line)!important;color:var(--d-text)!important}
html[data-theme="dark"] .pxs-premium .pxs-lab,html[data-theme="dark"] .pxs-premium .pxs-chev{color:var(--d-muted)!important}
html[data-theme="dark"] .pxs-premium .pxs-name{color:#fff!important}
html[data-theme="dark"] .pxs-premium .pxs-live i{background:#10b981!important;box-shadow:0 0 0 4px rgba(16,185,129,.12)!important}
html[data-theme="dark"] [role="listbox"][aria-label="Trading accounts"]{background:#0b1b31!important;border-color:var(--d-line)!important}
html[data-theme="dark"] [role="listbox"][aria-label="Trading accounts"] .pxs-item{color:var(--d-text)!important}
html[data-theme="dark"] [role="listbox"][aria-label="Trading accounts"] .pxs-item:hover{background:#102743!important}
html[data-theme="dark"] [role="listbox"][aria-label="Trading accounts"] .pxs-item[aria-selected="true"]{background:var(--ice-soft)!important}

/* Plans & Pricing (in-app) */
html[data-theme="dark"] .pxp-card{background:linear-gradient(180deg,#0d2038,#0a1a30)!important;border:1px solid var(--d-line)!important;color:var(--d-text)!important}
html[data-theme="dark"] .pxp-card:hover{border-color:var(--ice-line)!important}
html[data-theme="dark"] .pxp-pop{border-color:var(--ice-line)!important;box-shadow:0 0 0 1px rgba(34,211,238,.15),0 24px 50px -24px rgba(34,211,238,.35)!important}
html[data-theme="dark"] .pxp-pill{background:linear-gradient(90deg,var(--ice2),var(--ice))!important;color:#fff!important}
html[data-theme="dark"] .pxp-name,html[data-theme="dark"] .pxp-amt,html[data-theme="dark"] .pxp-list li.pxp-limit{color:#fff!important}
html[data-theme="dark"] .pxp-tagline,html[data-theme="dark"] .pxp-per,html[data-theme="dark"] .pxp-state,html[data-theme="dark"] .pxp-note{color:var(--d-muted)!important}
html[data-theme="dark"] .pxp-list li{color:#c3cbd6!important}
html[data-theme="dark"] .pxp-price{border-bottom-color:var(--d-line)!important}
html[data-theme="dark"] .pxp-btn{background:#0a1a30!important;border:1px solid var(--d-line)!important;color:var(--d-text)!important}
html[data-theme="dark"] .pxp-btn:hover{border-color:var(--ice)!important;background:#102743!important}
html[data-theme="dark"] .pxp-btn-pop{background:linear-gradient(135deg,var(--ice2),var(--ice))!important;border-color:transparent!important;color:#fff!important}
html[data-theme="dark"] .pxp-on{color:#34d399!important;border-color:rgba(16,185,129,.4)!important;background:rgba(16,185,129,.10)!important}
html[data-theme="dark"] .pxp-soon{color:#fbbf24!important;border-color:rgba(245,158,11,.4)!important;background:rgba(245,158,11,.10)!important}
html[data-theme="dark"] .pxp-skel{background:linear-gradient(90deg,#0c1d34 25%,#10233b 37%,#0c1d34 63%)!important;border-color:var(--d-line)!important}
html[data-theme="dark"] .pxp-card .pxp-list svg{color:#10b981!important}
html[data-theme="dark"] [class*="from-[#141722]"]{background:linear-gradient(180deg,#0d2038,#0a1a30)!important}

/* Inputs */
html[data-theme="dark"] input:focus,html[data-theme="dark"] select:focus,html[data-theme="dark"] textarea:focus{border-color:var(--ice)!important;box-shadow:0 0 0 3px rgba(34,211,238,.14)!important}
html[data-theme="dark"] .account-form-shell:before{background:linear-gradient(90deg,rgba(34,211,238,.75),rgba(34,211,238,.05),transparent)!important}
html[data-theme="dark"] .account-input:focus,html[data-theme="dark"] .account-select:focus{border-color:rgba(34,211,238,.75)!important;box-shadow:0 0 0 3px rgba(34,211,238,.12)!important}

/* Sign-in / Create account (.pxa-*) */
html[data-theme="dark"] .pxa-hero{background:radial-gradient(900px 520px at 12% 8%,rgba(34,211,238,.20),transparent 60%),radial-gradient(700px 500px at 95% 100%,rgba(24,139,223,.12),transparent 60%),#071426!important}
html[data-theme="dark"] .pxa-panel{background:radial-gradient(520px 340px at 50% 0%,rgba(34,211,238,.12),transparent 70%)!important}
html[data-theme="dark"] .pxa-mark{background:linear-gradient(135deg,#22d3ee,var(--ice2))!important;box-shadow:0 10px 28px -8px rgba(34,211,238,.7)!important}
html[data-theme="dark"] .pxa-h1 span:nth-child(3){background:linear-gradient(90deg,var(--ice3),var(--ice2) 60%,#67e8f9)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent!important}
html[data-theme="dark"] .pxa-ind{background:linear-gradient(135deg,var(--ice2),var(--ice))!important;box-shadow:0 8px 22px -8px rgba(34,211,238,.8),inset 0 1px 0 rgba(255,255,255,.22)!important}
html[data-theme="dark"] .pxa-btn{background:linear-gradient(135deg,var(--ice2),var(--ice))!important;box-shadow:0 14px 34px -12px rgba(34,211,238,.7),inset 0 1px 0 rgba(255,255,255,.25)!important}
html[data-theme="dark"] .pxa-kick{color:var(--ice3)!important}
html[data-theme="dark"] .pxa-kick:before{background:var(--ice3)!important}
html[data-theme="dark"] .pxa-chip b{color:var(--ice3)!important}
html[data-theme="dark"] .pxa-chip i{background:var(--ice3)!important;box-shadow:0 0 10px var(--ice3)!important}
html[data-theme="dark"] .pxa-track span:after{color:var(--ice)!important}
html[data-theme="dark"] .pxa-input:focus{border-color:var(--ice)!important;box-shadow:0 0 0 3px rgba(34,211,238,.16)!important}
html[data-theme="dark"] .pxa-root #pxaLn stop:nth-child(1){stop-color:#67e8f9!important}
html[data-theme="dark"] .pxa-root #pxaLn stop:nth-child(2){stop-color:#22d3ee!important}
html[data-theme="dark"] .pxa-root #pxaLn stop:nth-child(3){stop-color:#10b981!important}
html[data-theme="dark"] .pxa-root #pxaAr stop{stop-color:#22d3ee!important}
html[data-theme="dark"] .pxa-ring{fill:var(--ice3)!important}
html[data-theme="dark"] .pxa-dot{stroke:var(--ice)!important}

/* Account & Risk Settings / Plans header (.pxr-*) + account switcher (.pxs-*) */
html[data-theme="dark"] .pxr-head{background:radial-gradient(120% 140% at 0% 0%,rgba(34,211,238,.18),transparent 55%),linear-gradient(135deg,#0d2038 0%,#0a1a30 60%,#071426 100%)!important;border-color:rgba(34,211,238,.22)!important;box-shadow:0 20px 50px -28px rgba(34,211,238,.5),inset 0 1px 0 rgba(255,255,255,.04)!important}
html[data-theme="dark"] .pxr-head::after{background:conic-gradient(from 200deg,rgba(34,211,238,.26),transparent 40%,rgba(56,208,238,.10),transparent 80%)!important}
html[data-theme="dark"] .pxr-kicker,html[data-theme="dark"] .pxr-eyebrow,html[data-theme="dark"] .pxs-lab{color:var(--ice3)!important}
html[data-theme="dark"] .pxr-kicker::before{background:linear-gradient(90deg,transparent,var(--ice3))!important}
html[data-theme="dark"] .pxr-title{background:linear-gradient(90deg,#fff 0%,#bdeaf6 55%,var(--ice3) 100%)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important}
html[data-theme="dark"] .pxr-planrow{background:linear-gradient(120deg,rgba(34,211,238,.12),rgba(34,211,238,.02) 60%)!important;border-color:rgba(34,211,238,.25)!important}
html[data-theme="dark"] .pxr-badge{background:linear-gradient(135deg,var(--ice),var(--ice2))!important;box-shadow:0 8px 20px -8px rgba(34,211,238,.8),inset 0 1px 0 rgba(255,255,255,.3)!important}
html[data-theme="dark"] .pxr-tile::before{background:linear-gradient(var(--ice3),var(--ice2))!important}
html[data-theme="dark"] .pxr-bar i{background:linear-gradient(90deg,var(--ice2),var(--ice3))!important;box-shadow:0 0 10px rgba(34,211,238,.6)!important}
html[data-theme="dark"] .pxr-acct:hover{border-color:rgba(34,211,238,.4)!important;box-shadow:0 14px 30px -20px rgba(34,211,238,.6)!important}
html[data-theme="dark"] .pxr-avatar{background:linear-gradient(135deg,var(--ice3),#005f8a)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 8px 18px -8px rgba(34,211,238,.8)!important}
html[data-theme="dark"] .pxr-formline{background:linear-gradient(90deg,rgba(34,211,238,.4),transparent)!important}
html[data-theme="dark"] .pxr-in:focus{border-color:var(--ice)!important;background:#0a1a30!important;box-shadow:0 0 0 3px rgba(34,211,238,.16)!important}
html[data-theme="dark"] .pxr-btn-primary{background:linear-gradient(180deg,#38d9f0 0%,var(--ice) 48%,#087d9e 100%)!important;box-shadow:0 14px 28px -12px rgba(34,211,238,.8),inset 0 1px 0 rgba(255,255,255,.4),inset 0 -2px 0 rgba(0,0,0,.25)!important}
html[data-theme="dark"] .pxr-btn-primary:hover:not(:disabled){box-shadow:0 18px 34px -12px rgba(34,211,238,.95),inset 0 1px 0 rgba(255,255,255,.45),inset 0 -2px 0 rgba(0,0,0,.25)!important}
html[data-theme="dark"] .pxr-btn-ghost:hover{border-color:rgba(34,211,238,.5)!important;background:rgba(34,211,238,.08)!important}
html[data-theme="dark"] .pxs-premium{border-color:rgba(34,211,238,.28)!important;box-shadow:0 12px 28px -14px rgba(34,211,238,.55),inset 0 1px 0 rgba(255,255,255,.06)!important}
html[data-theme="dark"] .pxs-premium::before{background:radial-gradient(90% 120% at 0% 0%,rgba(34,211,238,.14),transparent 60%)!important}
html[data-theme="dark"] .pxs-premium:hover{border-color:rgba(34,184,220,.6)!important;box-shadow:0 16px 34px -14px rgba(34,211,238,.75),inset 0 1px 0 rgba(255,255,255,.1)!important}
html[data-theme="dark"] .pxs-premium:focus-visible,html[data-theme="dark"] .pxl-brand:focus-visible{outline-color:var(--ice3)!important}
html[data-theme="dark"] .pxs-premium .pxs-chev,html[data-theme="dark"] .pxs-chev{color:var(--ice3)!important;background:rgba(34,211,238,.12)!important;border-color:rgba(34,211,238,.3)!important}
html[data-theme="dark"] .pxl-brand:hover{background:rgba(34,211,238,.08)!important}
html[data-theme="dark"] .pxl-brand:hover .pxl-mark{box-shadow:0 10px 26px -6px rgba(34,211,238,.75)!important}
html[data-theme="dark"] .pxp-btn-pop:hover{background:linear-gradient(180deg,#38d9f0,var(--ice) 50%,#087d9e)!important}

/* =========================================================
   JOURNAL — P/L COLORS ONLY
   ========================================================= */

/* Positive / Profit */
html[data-theme="dark"] .journal .text-emerald-400,
html[data-theme="dark"] .journal .text-emerald-500,
html[data-theme="dark"] .journal .text-green-400,
html[data-theme="dark"] .journal .text-green-500{
  color:#34d399!important;
}

/* Negative / Loss */
html[data-theme="dark"] .journal .text-red-400,
html[data-theme="dark"] .journal .text-red-500{
  color:#fb7185!important;
}
/* =========================================================
   JOURNAL — P/L COLOR FIX
   Profit = Green
   Loss   = Red
   ========================================================= */

html[data-theme="dark"] .journal .text-emerald-400,
html[data-theme="dark"] .journal .text-emerald-500,
html[data-theme="dark"] .journal .text-green-400,
html[data-theme="dark"] .journal .text-green-500{
  color:#34d399!important;
}

html[data-theme="dark"] .journal .text-red-400,
html[data-theme="dark"] .journal .text-red-500{
  color:#fb7185!important;
}
/* =========================================================
   JOURNAL P/L — ACTUAL APP CLASSES
   Profit = Green
   Loss   = Red
   ========================================================= */

html[data-theme="dark"] .pnl-positive{
  color:#34d399!important;
}

html[data-theme="dark"] .pnl-negative{
  color:#fb7185!important;
}



/* PIPLYTIX currency switch + premium price display: dark theme */
html[data-theme="dark"] .pxp-currency,html[data-theme="dark"] .pxp-major,html[data-theme="dark"] .pxp-minor,html[data-theme="dark"] .pxp-amt-text{color:#fff!important}

/* v1.31.3 - Profile popup follows the theme (was red) */
html[data-theme="dark"] .plx-pm-head{background:linear-gradient(90deg,rgba(34,211,238,.16),rgba(34,211,238,.05) 55%,transparent)!important}
html[data-theme="dark"] .plx-pm-badge{background:var(--ice-soft)!important;color:var(--ice3)!important;border:1px solid var(--ice-line)!important}
html[data-theme="dark"] .plx-pm-ico{color:var(--ice3)!important}


/* === Spatial UI reference polish (Option 1: styling only; no layout/logic changes) === */

html[data-theme="dark"] body,
html[data-theme="dark"] #root {
  background-color: var(--spx-bg) !important;
  color: var(--spx-text);
}

/* Existing component/card hooks used by the app */
html[data-theme="dark"] .panel-card,
html[data-theme="dark"] .panel-card-accent,
html[data-theme="dark"] .pxp-card,
html[data-theme="dark"] .pxs-premium {
  background-color: var(--spx-panel) !important;
  border-color: var(--spx-border) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24),
              inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

html[data-theme="dark"] .panel-card:hover,
html[data-theme="dark"] .pxp-card:hover,
html[data-theme="dark"] .pxs-premium:hover {
  border-color: var(--spx-border-hot) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .28),
              0 0 18px rgba(22, 213, 255, .07) !important;
}

html[data-theme="dark"] aside,
html[data-theme="dark"] header.h-14 {
  background-color: rgba(5, 12, 26, .96) !important;
  border-color: var(--spx-border) !important;
}

html[data-theme="dark"] aside.w-56 > div:first-child > nav > button {
  border-radius: 10px;
}

html[data-theme="dark"] aside.w-56 > div:first-child > nav > button[class*="bg-blue"],
html[data-theme="dark"] aside.w-56 > div:first-child > nav > button[aria-current="page"] {
  box-shadow: inset 0 0 0 1px rgba(155, 210, 255, .18),
              0 0 20px rgba(40, 124, 255, .18) !important;
}

html[data-theme="dark"] :is(input, select, textarea) {
  background-color: rgba(5, 13, 29, .92);
  border-color: var(--spx-border);
}

html[data-theme="dark"] :is(input, select, textarea):focus {
  border-color: var(--spx-border-hot) !important;
  box-shadow: 0 0 0 3px rgba(22, 213, 255, .10) !important;
}

html[data-theme="dark"] :is(button, .btn, [role="button"]) {
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

html[data-theme="dark"] :is(button, .btn, [role="button"]):hover {
  border-color: var(--spx-border-hot);
}

html[data-theme="dark"] ::selection {
  background: rgba(22, 213, 255, .28);
  color: #fff;
}
/* === End Spatial UI reference polish === */

/* Single PIPLYTIX theme: deep navy, cyan/teal, and restrained neumorphic depth. */
html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] #root {
  background-color: var(--spx-bg) !important;
  color: var(--spx-text) !important;
}
html[data-theme="dark"] body {
  background-image:
    radial-gradient(900px 600px at 88% -8%, rgba(24, 139, 223, .20), transparent 64%),
    radial-gradient(780px 540px at 4% 100%, rgba(0, 215, 189, .09), transparent 62%) !important;
  background-attachment: fixed !important;
}
html[data-theme="dark"] #root [class*="rounded-2xl"][class*="border"][class*="bg-"],
html[data-theme="dark"] #root [class*="rounded-xl"][class*="border"][class*="bg-"],
html[data-theme="dark"] #root .panel-card,
html[data-theme="dark"] #root .panel-card-accent,
html[data-theme="dark"] #root .pxc,
html[data-theme="dark"] #root .pxc-stat,
html[data-theme="dark"] #root .pxc-cell,
html[data-theme="dark"] #root .pxc-day,
html[data-theme="dark"] #root .pxc-row {
  border-color: var(--spx-border) !important;
  box-shadow: 7px 7px 18px rgba(1, 7, 19, .58),
              -5px -5px 15px rgba(47, 79, 119, .14),
              inset 1px 1px 0 rgba(255, 255, 255, .035) !important;
}
html[data-theme="dark"] #root [class*="rounded-2xl"][class*="border"][class*="bg-"],
html[data-theme="dark"] #root .panel-card,
html[data-theme="dark"] #root .panel-card-accent {
  background-image: linear-gradient(145deg, rgba(18, 41, 68, .92), rgba(9, 25, 45, .96)) !important;
}
html[data-theme="dark"] #root aside,
html[data-theme="dark"] #root header.h-14 {
  background-color: rgba(6, 20, 38, .96) !important;
  border-color: var(--spx-border) !important;
  box-shadow: 8px 0 24px rgba(1, 7, 19, .38), inset -1px 0 0 rgba(255, 255, 255, .035) !important;
}
html[data-theme="dark"] #root :is(input, select, textarea) {
  background-color: #08182b !important;
  border-color: var(--spx-border) !important;
  color: var(--spx-text) !important;
  box-shadow: inset 3px 3px 8px rgba(1, 7, 19, .45),
              inset -2px -2px 6px rgba(47, 79, 119, .10) !important;
}
html[data-theme="dark"] #root :is(input, select, textarea):focus {
  border-color: var(--spx-border-hot) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .12),
              inset 2px 2px 6px rgba(1, 7, 19, .36) !important;
}
html[data-theme="dark"] #root :is(button, .btn, [role="button"]) {
  --tw-ring-color: rgba(34, 211, 238, .36);
}
html[data-theme="dark"] #root button.bg-red-600.animate-pulse,
html[data-theme="dark"] #root button.bg-red-600.animate-pulse:hover {
  background: #b91c3a !important;
  border-color: rgba(251, 113, 133, .55) !important;
  box-shadow: 0 6px 16px rgba(185, 28, 58, .28) !important;
}
html[data-theme="dark"] #root .pxr-page {
  --pxr-rose: #22d3ee;
  --pxr-deep: #087d9e;
  --pxr-line: rgba(128, 174, 220, .20);
}
html[data-theme="dark"] #root :is(.pxr-kicker, .pxr-eyebrow, .pxs-lab, .pxp-pill) {
  color: var(--ice3) !important;
}
html[data-theme="dark"] #root :is(.pxr-tile, .pxr-panel, .pxr-card, .pxr-stat) {
  border-color: var(--spx-border) !important;
  background-color: #0b1b31 !important;
  box-shadow: 6px 6px 16px rgba(1, 7, 19, .52),
              -4px -4px 12px rgba(47, 79, 119, .12),
              inset 1px 1px 0 rgba(255, 255, 255, .035) !important;
}
html[data-theme="dark"] #root :is(.pxr-tile::before, .pxr-bar i, .pxr-icon, .pxr-btn-primary, .pxp-pill) {
  background: linear-gradient(135deg, #22d3ee, #087d9e) !important;
  box-shadow: 0 6px 18px rgba(0, 190, 220, .22) !important;
}
html[data-theme="dark"] #root .pxr-in:focus {
  border-color: var(--ice) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .14) !important;
}
html[data-theme="dark"] #root [class*="text-red-"],
html[data-theme="dark"] #root [class*="text-rose-"] {
  color: var(--ice3) !important;
}
html[data-theme="dark"] #root :is(.pxr-btn-del, .pnl-negative, .journal [class*="text-red-"], .journal [class*="text-rose-"], [role="alert"], .error, .error-message) {
  color: #fb7185 !important;
}
html[data-theme="dark"] #root :is(button[title*="Delete"], button[class*="text-red-500/80"]) {
  color: #fb7185 !important;
}
html[data-theme="dark"] #root :is([role="alert"], .error, .error-message) {
  background-color: rgba(127, 29, 49, .24) !important;
  border-color: rgba(251, 113, 133, .34) !important;
}
html[data-theme="dark"] #root .pnl-negative {
  background-color: rgba(190, 24, 59, .12) !important;
  border-color: rgba(251, 113, 133, .28) !important;
}
html[data-theme="dark"] #root ::selection {
  background: rgba(34, 211, 238, .3);
}
html[data-theme="dark"] #root .pxa-root {
  background: #071426 !important;
  color: #eff8ff !important;
}
html[data-theme="dark"] #root .pxa-hero {
  background-image: radial-gradient(900px 520px at 12% 8%, rgba(34, 211, 238, .15), transparent 60%),
                    radial-gradient(700px 500px at 95% 100%, rgba(24, 139, 223, .14), transparent 60%),
                    linear-gradient(145deg, #0d2038, #071426) !important;
  border-color: var(--spx-border) !important;
}
html[data-theme="dark"] #root .pxa-panel {
  background-color: #0b1b31 !important;
  background-image: radial-gradient(520px 340px at 50% 0%, rgba(34, 211, 238, .10), transparent 70%) !important;
}
html[data-theme="dark"] #root .pxa-tabs {
  background: #0a1a30 !important;
  border-color: var(--spx-border) !important;
}
html[data-theme="dark"] #root .pxa-input {
  background: #08182b !important;
  border-color: var(--spx-border) !important;
  color: var(--spx-text) !important;
  box-shadow: inset 3px 3px 8px rgba(1, 7, 19, .42),
              inset -2px -2px 6px rgba(47, 79, 119, .10) !important;
}
html[data-theme="dark"] #root .pxa-input:focus {
  border-color: var(--spx-border-hot) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .12) !important;
}
html[data-theme="dark"] #root [class~="bg-[#040508]"],
html[data-theme="dark"] #root [class~="bg-[#05070c]"],
html[data-theme="dark"] #root [class~="bg-[#07090f]"],
html[data-theme="dark"] #root [class*="bg-[#06070a]"],
html[data-theme="dark"] #root [class*="bg-[#07080c]"],
html[data-theme="dark"] #root [class*="bg-[#080a10]"],
html[data-theme="dark"] #root [class*="bg-[#090b11]"],
html[data-theme="dark"] #root [class*="bg-[#090c14]"],
html[data-theme="dark"] #root [class*="bg-[#0a0709]"],
html[data-theme="dark"] #root [class*="bg-[#0a0c12]"],
html[data-theme="dark"] #root [class*="bg-[#0a0c14]"],
html[data-theme="dark"] #root [class*="bg-[#0b0f18]"],
html[data-theme="dark"] #root [class*="bg-[#0c0e14]"],
html[data-theme="dark"] #root [class*="bg-[#0c0f17]"],
html[data-theme="dark"] #root [class*="bg-[#0e111a]"],
html[data-theme="dark"] #root [class*="bg-[#0f121a]"],
html[data-theme="dark"] #root [class*="bg-[#0f131d]"],
html[data-theme="dark"] #root [class*="bg-[#0f1422]"],
html[data-theme="dark"] #root [class*="bg-[#10131c]"],
html[data-theme="dark"] #root [class*="bg-[#10141e]"],
html[data-theme="dark"] #root [class*="bg-[#12151f]"],
html[data-theme="dark"] #root [class*="bg-[#121622]"],
html[data-theme="dark"] #root [class*="bg-[#141720]"],
html[data-theme="dark"] #root [class*="bg-[#141722]"],
html[data-theme="dark"] #root [class*="bg-[#141822]"],
html[data-theme="dark"] #root [class*="bg-[#161a25]"],
html[data-theme="dark"] #root [class*="bg-[#181d2a]"],
html[data-theme="dark"] #root [class*="bg-[#1a1c26]"],
html[data-theme="dark"] #root [class*="bg-[#1a1e29]"],
html[data-theme="dark"] #root [class*="bg-[#1a2030]"] {
  background-color: #0b1b31 !important;
}

/* Sidebar: restore a soft neumorphic hover only for inactive navigation items. */
html[data-theme="dark"] #root aside.w-56 > div:first-child > nav > button[class*="hover:bg-[#0e111a]"]:not([class*="bg-gradient-to-r from-red-600 to-rose-600"]) {
  background-color: transparent !important;
  box-shadow: none !important;
  transition: background-color .18s ease, box-shadow .18s ease, color .18s ease !important;
}
html[data-theme="dark"] #root aside.w-56 > div:first-child > nav > button[class*="hover:bg-[#0e111a]"]:not([class*="bg-gradient-to-r from-red-600 to-rose-600"]):hover {
  background: linear-gradient(145deg, #112d49, #0c1d33) !important;
  box-shadow: 5px 5px 12px rgba(1, 7, 19, .42),
              -3px -3px 9px rgba(47, 79, 119, .10),
              inset 1px 1px 0 rgba(255, 255, 255, .035),
              0 0 12px rgba(34, 211, 238, .12) !important;
  color: #d8f9ff !important;
}

/* Targeted polish: prevent Settings, in-app Plans & Pricing, and calendar from rendering near-black. */
html[data-theme="dark"] #root .pxr-head,
html[data-theme="dark"] #root .pxr-page .pxr-head {
  background: radial-gradient(120% 140% at 0% 0%, rgba(34,211,238,.14), transparent 58%),
              linear-gradient(145deg, #102743 0%, #0b1b31 58%, #0a1a2d 100%) !important;
  border-color: var(--spx-border) !important;
}
html[data-theme="dark"] #root :is(.pxr-tile, .pxr-panel, .pxr-card, .pxr-stat, .pxs-premium) {
  background: linear-gradient(145deg, #102743, #0b1b31) !important;
  border-color: var(--spx-border) !important;
}
html[data-theme="dark"] #root :is(.pxp-card, .pxp-pop) {
  background: linear-gradient(145deg, #102743 0%, #0b1b31 70%, #0a1a2d 100%) !important;
  border-color: var(--spx-border) !important;
  box-shadow: 7px 7px 18px rgba(1,7,19,.48), -4px -4px 12px rgba(47,79,119,.10), inset 1px 1px 0 rgba(255,255,255,.035) !important;
}
html[data-theme="dark"] #root .pxp-btn:not(.pxp-btn-pop) {
  background: linear-gradient(145deg, #102743, #0b1b31) !important;
  border-color: var(--spx-border) !important;
}
html[data-theme="dark"] #root :is(.pxc, .pxc-stat, .pxc-cell, .pxc-day, .pxc-row, .pxc-wk) {
  background: linear-gradient(145deg, #102743, #0b1b31) !important;
  border-color: var(--spx-border) !important;
  color: var(--spx-text) !important;
  box-shadow: 5px 5px 14px rgba(1,7,19,.42), -3px -3px 9px rgba(47,79,119,.09), inset 1px 1px 0 rgba(255,255,255,.025) !important;
}
html[data-theme="dark"] #root .pxc-cell.out { background: #0a1a2d !important; opacity: .58; }
html[data-theme="dark"] #root :is(.pxc-btn, .pxc-row):hover,
html[data-theme="dark"] #root button.pxc-cell:hover { background: #15314d !important; border-color: var(--spx-border-hot) !important; }

/* Focused repair: Settings/account panels and Lot Size Calculator only.
   Calendar and Trading DNA rules intentionally remain untouched. */
html[data-theme="dark"] #root .pxr-shell,
html[data-theme="dark"] #root .pxr-page .pxr-shell,
html[data-theme="dark"] #root .pxr-page .pxr-card,
html[data-theme="dark"] #root .pxr-page .pxr-list,
html[data-theme="dark"] #root .pxr-page .pxr-acct,
html[data-theme="dark"] #root .pxr-page .pxr-form,
html[data-theme="dark"] #root .pxr-page .pxr-formwrap {
  background: linear-gradient(145deg, #102743 0%, #0b1b31 62%, #09192c 100%) !important;
  border-color: var(--spx-border) !important;
  color: var(--spx-text) !important;
  box-shadow: 7px 7px 18px rgba(1,7,19,.40), -3px -3px 10px rgba(47,79,119,.08), inset 1px 1px 0 rgba(255,255,255,.025) !important;
}
html[data-theme="dark"] #root .pxr-page .pxr-planrow {
  background: linear-gradient(120deg, rgba(34,211,238,.14), rgba(11,27,49,.92) 72%) !important;
  border-color: rgba(34,211,238,.30) !important;
}
html[data-theme="dark"] #root .pxr-page .pxr-acct,
html[data-theme="dark"] #root .pxr-page .pxr-list,
html[data-theme="dark"] #root .pxr-page .pxr-formwrap {
  background-color: #0b1b31 !important;
}
html[data-theme="dark"] #root .pxr-page .pxr-in,
html[data-theme="dark"] #root .pxr-page input.pxr-in,
html[data-theme="dark"] #root .pxr-page select.pxr-in,
html[data-theme="dark"] #root .pxr-page textarea.pxr-in {
  background: #08182b !important;
  color: #eff8ff !important;
  border-color: var(--spx-border) !important;
  box-shadow: inset 3px 3px 8px rgba(1,7,19,.38), inset -2px -2px 6px rgba(47,79,119,.08) !important;
}
html[data-theme="dark"] #root .pxr-page .pxr-in::placeholder { color: #66819f !important; }

/* Lot Size modal: replace the explicit charcoal fill with the app's navy/cyan surfaces. */
html[data-theme="dark"] #root .pxlc-pop {
  background: linear-gradient(145deg, #102743 0%, #0b1b31 60%, #08182b 100%) !important;
  border-color: rgba(34,211,238,.30) !important;
  color: #eff8ff !important;
  box-shadow: 10px 10px 26px rgba(1,7,19,.55), -4px -4px 12px rgba(47,79,119,.10), inset 1px 1px 0 rgba(255,255,255,.035) !important;
}
html[data-theme="dark"] #root .pxlc-pop .pxlc-head { border-bottom-color: rgba(128,174,220,.20) !important; }
html[data-theme="dark"] #root .pxlc-pop .pxlc-title,
html[data-theme="dark"] #root .pxlc-pop .pxlc-field,
html[data-theme="dark"] #root .pxlc-pop label { color: #eff8ff !important; }
html[data-theme="dark"] #root .pxlc-pop :is(input, select) {
  background: #08182b !important;
  border-color: rgba(128,174,220,.24) !important;
  color: #eff8ff !important;
}
html[data-theme="dark"] #root .pxlc-pop .pxlc-note {
  background: rgba(34,211,238,.07) !important;
  border-color: rgba(34,211,238,.25) !important;
}
html[data-theme="dark"] #root .pxlc-pop .pxlc-result {
  background: linear-gradient(145deg, rgba(34,211,238,.10), #0b1b31 78%) !important;
  border-color: rgba(34,211,238,.30) !important;
}
html[data-theme="dark"] #root .pxlc-pop .pxlc-close {
  background: #0a1a2d !important;
  border-color: rgba(128,174,220,.20) !important;
  color: #b8d4ed !important;
}

/* Targeted Log New Execution modal theme repair. CSS only; no trade logic changed. */
html[data-theme="dark"] #root .fixed.inset-0:has(input[placeholder="EURUSD / BTCUSD"]) {
  background: rgba(3, 12, 27, .78) !important;
  backdrop-filter: blur(8px) !important;
}
html[data-theme="dark"] #root .fixed.inset-0:has(input[placeholder="EURUSD / BTCUSD"]) > div {
  background: linear-gradient(155deg, #102641 0%, #0b1b30 58%, #091626 100%) !important;
  border: 1px solid #244766 !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(75, 190, 226, .08) !important;
  color: #e7f2ff !important;
}
html[data-theme="dark"] #root .fixed.inset-0:has(input[placeholder="EURUSD / BTCUSD"]) > div > :first-child {
  background: linear-gradient(100deg, #0d2037, #102944) !important;
  border-bottom: 1px solid #244766 !important;
}
html[data-theme="dark"] #root .fixed.inset-0:has(input[placeholder="EURUSD / BTCUSD"]) input,
html[data-theme="dark"] #root .fixed.inset-0:has(input[placeholder="EURUSD / BTCUSD"]) select,
html[data-theme="dark"] #root .fixed.inset-0:has(input[placeholder="EURUSD / BTCUSD"]) textarea {
  background: #0a1b2e !important;
  color: #e8f4ff !important;
  border-color: #244766 !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .18) !important;
}
html[data-theme="dark"] #root .fixed.inset-0:has(input[placeholder="EURUSD / BTCUSD"]) input::placeholder,
html[data-theme="dark"] #root .fixed.inset-0:has(input[placeholder="EURUSD / BTCUSD"]) textarea::placeholder {
  color: #6f879f !important;
}
html[data-theme="dark"] #root .fixed.inset-0:has(input[placeholder="EURUSD / BTCUSD"]) .bg-slate-950 {
  background: #091a2d !important;
  border-color: #244766 !important;
}
html[data-theme="dark"] #root .fixed.inset-0:has(input[placeholder="EURUSD / BTCUSD"]) .bg-slate-900 {
  background: #0d2037 !important;
}
html[data-theme="dark"] #root .fixed.inset-0:has(input[placeholder="EURUSD / BTCUSD"]) .bg-slate-800 {
  background: #18314c !important;
}
html[data-theme="dark"] #root .fixed.inset-0:has(input[placeholder="EURUSD / BTCUSD"]) .border-slate-800,
html[data-theme="dark"] #root .fixed.inset-0:has(input[placeholder="EURUSD / BTCUSD"]) .border-slate-700 {
  border-color: #244766 !important;
}
html[data-theme="dark"] #root .fixed.inset-0:has(input[placeholder="EURUSD / BTCUSD"]) button[type="submit"] {
  background: linear-gradient(110deg, #08a9d1, #087da9) !important;
  box-shadow: 0 8px 22px rgba(0, 173, 215, .18) !important;
}
html[data-theme="dark"] #root .fixed.inset-0:has(input[placeholder="EURUSD / BTCUSD"]) button[type="submit"]:hover {
  background: linear-gradient(110deg, #17c2e8, #0895c4) !important;
}
html[data-theme="dark"] #root .fixed.inset-0:has(input[placeholder="EURUSD / BTCUSD"]) .sticky.bottom-0 {
  background: #0d2037 !important;
  border-color: #244766 !important;
}



/* Journal > View Trade details: targeted navy/cyan surfaces only. */
html[data-theme="dark"] #root .fixed.inset-0:has(.bg-emerald-950\/20) .bg-slate-950 {
  background: linear-gradient(145deg, #0c2037, #0a192c) !important;
  border-color: #244766 !important;
}
html[data-theme="dark"] #root .fixed.inset-0:has(.bg-emerald-950\/20) .border-slate-800,
html[data-theme="dark"] #root .fixed.inset-0:has(.bg-emerald-950\/20) .border-slate-700 {
  border-color: #244766 !important;
}
html[data-theme="dark"] #root .fixed.inset-0:has(.bg-emerald-950\/20) .bg-emerald-950\/20 {
  background: linear-gradient(120deg, rgba(0, 181, 216, .10), rgba(13, 32, 55, .82)) !important;
  border-color: rgba(0, 190, 225, .24) !important;
}
html[data-theme="dark"] #root .fixed.inset-0:has(.bg-emerald-950\/20) > div {
  border-color: #244766 !important;
}
html[data-theme="dark"] #root .fixed.inset-0:has(.bg-emerald-950\/20) > div > :first-child,
html[data-theme="dark"] #root .fixed.inset-0:has(.bg-emerald-950\/20) > div > :last-child {
  background: #071426 !important;
  border-color: #244766 !important;
}

/* Journal > View Trade modal: target the actual max-w-2xl trade-detail dialog.
   Keep the chart image itself untouched; recolor only the UI surfaces. */
html[data-theme="dark"] #root [class~="max-w-2xl"][class~="max-h-[90vh]"] {
  background: linear-gradient(180deg, #10243b 0%, #0b1b30 100%) !important;
  border-color: #244564 !important;
}
html[data-theme="dark"] #root [class~="max-w-2xl"][class~="max-h-[90vh]"] [class~="bg-slate-950"] {
  background: linear-gradient(145deg, #0e2036, #0a192b) !important;
  border-color: #24435f !important;
}
html[data-theme="dark"] #root [class~="max-w-2xl"][class~="max-h-[90vh]"] [class~="bg-slate-900"] {
  background: linear-gradient(180deg, #122942, #0c1e33) !important;
  border-color: #244564 !important;
}
html[data-theme="dark"] #root [class~="max-w-2xl"][class~="max-h-[90vh]"] [class~="bg-slate-900/80"] {
  background: #0b1a2c !important;
}
html[data-theme="dark"] #root [class~="max-w-2xl"][class~="max-h-[90vh]"] [class~="bg-emerald-950/20"] {
  background: linear-gradient(135deg, rgba(5, 74, 88, .38), rgba(8, 35, 55, .72)) !important;
  border-color: rgba(34, 211, 238, .26) !important;
}
html[data-theme="dark"] #root [class~="max-w-2xl"][class~="max-h-[90vh]"] [class~="border-slate-800"],
html[data-theme="dark"] #root [class~="max-w-2xl"][class~="max-h-[90vh]"] [class~="border-slate-700"] {
  border-color: #24435f !important;
}
html[data-theme="dark"] #root [class~="max-w-2xl"][class~="max-h-[90vh]"] [class~="bg-black/40"] {
  background-color: rgba(3, 10, 20, .42) !important;
}

/* Global negative P&L: keep red text, remove red filled box across Journal, Analytics, Reports. */
html[data-theme="dark"] #root .pnl-negative,
html[data-theme="dark"] #root td.pnl-negative,
html[data-theme="dark"] #root [class~="pnl-negative"] {
  color: #fb7185 !important;
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
/* Table cells that highlight a losing P&L with a red tint; leave the red value text intact. */
html[data-theme="dark"] #root td:has(.pnl-negative),
html[data-theme="dark"] #root [role="cell"]:has(.pnl-negative),
html[data-theme="dark"] #root td:has([class*="text-red-"]),
html[data-theme="dark"] #root td:has([class*="text-rose-"]) {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Arbitrary near-black border classes from the Tailwind build -> theme border token (exact class tokens only). */
html[data-theme="dark"] #root [class~="border-[#0a0c12]"],
html[data-theme="dark"] #root [class~="border-[#141720]"],
html[data-theme="dark"] #root [class~="border-[#151821]"],
html[data-theme="dark"] #root [class~="border-[#161a25]"],
html[data-theme="dark"] #root [class~="border-[#161b29]"],
html[data-theme="dark"] #root [class~="border-[#1a1e29]"],
html[data-theme="dark"] #root [class~="border-[#1a1f2e]"],
html[data-theme="dark"] #root [class~="border-[#1a2233]"],
html[data-theme="dark"] #root [class~="border-[#1b202e]"],
html[data-theme="dark"] #root [class~="border-[#1c2233]"],
html[data-theme="dark"] #root [class~="border-[#202534]"]{
  border-color:var(--spx-border)!important;
}

/* ===== LOG TRADE — primary action (single definition; v1.34.3) =====
   Markup (unchanged): button.plx-log-trade-btn > .plx-log-trade-glow + .plx-log-trade-icon + .plx-log-trade-label > .plx-log-trade-arrow */
html[data-theme="dark"] #root .plx-log-trade-btn{
  isolation:isolate;
  border:1px solid rgba(34,211,238,.50)!important;
  background:linear-gradient(145deg,#12385a 0%,#0b2440 55%,#08182b 100%)!important;
  color:#eff8ff!important;
  box-shadow:0 10px 26px -8px rgba(34,211,238,.38),7px 7px 18px rgba(1,7,19,.5),-4px -4px 12px rgba(47,79,119,.14),inset 0 1px 0 rgba(255,255,255,.16)!important;
  transition:transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .28s ease,border-color .28s ease,filter .28s ease;
  will-change:transform;
}
/* soft glow behind the icon */
html[data-theme="dark"] #root .plx-log-trade-glow{
  background:radial-gradient(circle at 14% 50%,rgba(34,211,238,.32),transparent 46%)!important;
  transition:opacity .3s ease;opacity:.85;
}
/* light sweep: drifts slowly when idle, races across on hover */
html[data-theme="dark"] #root .plx-log-trade-btn::before{
  content:"";position:absolute;top:-30%;bottom:-30%;left:-60%;width:38%;z-index:1;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.28),transparent);
  transform:skewX(-18deg) translateX(0);
  animation:plxLogSheen 5.5s ease-in-out 1.5s infinite;
}
/* thin top highlight for the "glass edge" */
html[data-theme="dark"] #root .plx-log-trade-btn::after{
  content:"";position:absolute;left:14px;right:14px;top:0;height:1px;z-index:2;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);
}
html[data-theme="dark"] #root .plx-log-trade-icon{
  z-index:2;
  background:linear-gradient(145deg,#67e8f9 0%,#22d3ee 40%,#0891b2 100%)!important;
  box-shadow:inset -1px 0 0 rgba(255,255,255,.22),inset 0 1px 0 rgba(255,255,255,.45),6px 0 18px -6px rgba(34,211,238,.65)!important;
}
html[data-theme="dark"] #root .plx-log-trade-icon svg{transition:transform .45s cubic-bezier(.2,.8,.2,1),filter .3s ease;filter:drop-shadow(0 1px 2px rgba(0,60,80,.55))}
html[data-theme="dark"] #root .plx-log-trade-label{
  z-index:2;color:#eff8ff!important;text-shadow:0 1px 10px rgba(34,211,238,.35);
  transition:letter-spacing .3s ease,text-shadow .3s ease;
}
html[data-theme="dark"] #root .plx-log-trade-arrow{color:#67e8f9!important}

/* hover / keyboard focus */
html[data-theme="dark"] #root .plx-log-trade-btn:hover,
html[data-theme="dark"] #root .plx-log-trade-btn:focus-visible{
  transform:translateY(-2px) scale(1.025);
  border-color:rgba(103,232,249,.95)!important;
  filter:brightness(1.08) saturate(1.1);
  box-shadow:0 0 0 3px rgba(34,211,238,.16),0 16px 38px -6px rgba(34,211,238,.62),0 0 34px rgba(34,211,238,.32),inset 0 1px 0 rgba(255,255,255,.28)!important;
  outline:none;
}
html[data-theme="dark"] #root .plx-log-trade-btn:hover::before,
html[data-theme="dark"] #root .plx-log-trade-btn:focus-visible::before{animation:plxLogSweep .75s ease-out 1}
html[data-theme="dark"] #root .plx-log-trade-btn:hover .plx-log-trade-glow{opacity:1}
html[data-theme="dark"] #root .plx-log-trade-btn:hover .plx-log-trade-icon svg{transform:rotate(90deg) scale(1.15);filter:drop-shadow(0 0 6px rgba(255,255,255,.8))}
html[data-theme="dark"] #root .plx-log-trade-btn:hover .plx-log-trade-label{letter-spacing:.13em;text-shadow:0 0 14px rgba(103,232,249,.75)}
/* press */
html[data-theme="dark"] #root .plx-log-trade-btn:active{transform:translateY(0) scale(.975);transition-duration:.08s;filter:brightness(.96)}

@keyframes plxLogSheen{0%,62%{transform:skewX(-18deg) translateX(0)}100%{transform:skewX(-18deg) translateX(620%)}}
@keyframes plxLogSweep{from{transform:skewX(-18deg) translateX(0)}to{transform:skewX(-18deg) translateX(620%)}}
@media (prefers-reduced-motion:reduce){
  html[data-theme="dark"] #root .plx-log-trade-btn,html[data-theme="dark"] #root .plx-log-trade-btn *{transition:none!important}
  html[data-theme="dark"] #root .plx-log-trade-btn::before{animation:none!important}
  html[data-theme="dark"] #root .plx-log-trade-btn:hover{transform:none}
}
