/* BeQuantum PYXIS V340.40 — PURE SINGLE THEME REBUILD
   Final runtime override. One UI only: ivory / champagne gold. */
:root{
 --px-bg:#f7f3e9;--px-surface:#fffdf8;--px-white:#fff;--px-text:#17191d;--px-muted:#5d626a;
 --px-gold:#b97806;--px-gold2:#d7a233;--px-gold3:#f4d783;--px-line:rgba(185,119,4,.72);--px-soft:rgba(185,119,4,.30);
 --px-green:#079455;--px-red:#db3434;--px-blue:#1479ce;--px-purple:#7457d8;--px-wait:#b67600;
 --px-shadow:0 2px 8px rgba(88,57,8,.07),0 10px 24px rgba(88,57,8,.05)
}
*{box-sizing:border-box}
html,body{background:linear-gradient(180deg,#fbf8f1,#f5f0e6)!important;color:var(--px-text)!important}
body{font-family:"Montserrat","Segoe UI",Arial,sans-serif!important;padding:10px!important}
body *:not(.pyxisPremiumLogin):not(.pyxisPremiumLogin *){text-shadow:none!important}

/* GLOBAL SURFACES */
body .top,body .marketbar,body .signal,body .chartCard,body .side .panel,body .sidewayPanel,body .emaManager,
body .v166GuideRadar,body .v977Filter,body .sem-panel,body .pyxisSwingH1,body #strategyEngineManager,
body .aiDeepseekPanel,body .tradePanel,body .smcLayerMenu,body .signalModeMenu{
 background:linear-gradient(180deg,#fff 0%,#fffdf8 100%)!important;
 color:var(--px-text)!important;border:1.5px solid var(--px-line)!important;border-radius:14px!important;box-shadow:var(--px-shadow)!important
}

/* HEADER */
body .top,body .marketbar{padding:10px 12px!important;margin-bottom:9px!important}
body .brand h1{color:#15171b!important;font-size:21px!important;font-weight:900!important}
body .sub{color:#666b72!important;font-size:11px!important}
body .badge,body .pill,body .top button,body .marketbar button,body .pyxisIndicatorPill{
 background:#fff!important;border:1.25px solid var(--px-soft)!important;color:#24262a!important;border-radius:10px!important;padding:7px 11px!important;font-weight:850!important;box-shadow:none!important
}
body .pill.active,body .top button.active,body .marketbar button.active,body .pyxisIndicatorPill.active{
 background:linear-gradient(180deg,#fff3c9,#e0ad3d)!important;border-color:#b97806!important;color:#241704!important;box-shadow:inset 0 1px #fff9,0 3px 8px #a86b161f!important
}
body #liveDot.on{background:var(--px-green)!important;box-shadow:none!important}

/* DECISION */
body .signal{border-width:1.5px!important;padding:12px 14px!important}
body .decision{font-family:inherit!important;font-size:30px!important;color:var(--px-wait)!important;font-weight:950!important}
body .reason{font-family:inherit!important;color:#555b63!important;font-size:12px!important}
body .conf{font-family:inherit!important;font-size:30px!important;color:#9d6804!important;font-weight:900!important}
body .signal.buy .decision{color:var(--px-green)!important}body .signal.sell .decision{color:var(--px-red)!important}

/* MAIN + CHART */
body .main{grid-template-columns:minmax(0,1fr) 320px!important;gap:10px!important}
body .chartCard{padding:10px!important}body .ct{color:#8c5c05!important;font-weight:900!important}
body #chart{background:#fff!important}body .chartCard canvas{filter:contrast(1.045) saturate(1.035)}
body .chartActions button{background:#fff!important;color:#6f4905!important;border:1px solid var(--px-soft)!important;border-radius:9px!important;font-weight:900!important}

/* INDICATOR BAR */
body .pyxisIndicatorBar{background:#fffdf8!important;border:1.5px solid var(--px-line)!important;border-radius:13px!important;box-shadow:var(--px-shadow)!important}
body .pyxisIndicatorBarTitle{color:#9b6808!important}body .pyxisIndicatorPill{font-size:11px!important}

/* RIGHT SIDEBAR — FORCE LIGHT */
body .side{gap:9px!important;background:transparent!important;color:var(--px-text)!important}
body .side .panel{padding:10px!important;margin:0!important}
body .side .panel h3{color:#9b6808!important;font-size:12px!important;font-weight:950!important;margin:0 0 8px!important}
body .side .panel .row{border-bottom:1px solid #eadfc8!important;padding:7px 0!important;font-size:12px!important}
body .side .panel .row span{color:#697079!important;opacity:1!important}
body .side .panel .row b{font-family:inherit!important;color:#24272b!important;font-weight:900!important}
body .mtfSummary,body .mtfDetail,body .mtfDetail.noData{
 background:#fff!important;border:1.25px solid var(--px-soft)!important;border-radius:11px!important;box-shadow:0 2px 7px rgba(83,55,8,.04)!important;color:#222!important;opacity:1!important
}
body .mtfSummary{padding:8px 9px!important;font-family:inherit!important;font-size:11px!important}
body .mtfSummary b{font-size:17px!important}body .mtfSummary span{color:#5b6169!important}
body .mtfDetail{padding:8px!important;margin-bottom:7px!important}
body .mtfTop{font-family:inherit!important;font-size:11px!important;color:#202328!important}
body .mtfFlowState{font-size:10px!important;color:var(--px-blue)!important;font-weight:900!important}
body .mtfNums{font-family:inherit!important;font-size:10px!important;gap:5px!important}
body .mtfNums span{background:#fffdf8!important;border:1px solid #ead8af!important;color:#666b72!important;border-radius:8px!important;padding:5px!important}
body .mtfNums b{font-size:12px!important;font-weight:950!important}
body .mtfMini{font-family:inherit!important;color:#6d7178!important;font-size:9px!important}
body .up{color:var(--px-green)!important}body .dn{color:var(--px-red)!important}body .warn{color:var(--px-wait)!important}

/* SMC PRO */
body .side .panel:has(#smcBias){background:#fff!important}
body .side .panel:has(#smcBias) .row b{color:#25282d!important}
body #smcBias.warn,body #smcBos.warn,body #smcChoch.warn{color:var(--px-wait)!important}

/* AI ASSISTANT */
body .aiDeepseekPanel,body .aiDeepseekPanel *{font-family:"Montserrat","Segoe UI",Arial,sans-serif!important}
body .aiQuickBtns{gap:7px!important}
body .aiQuickBtns button,body .aiDeepseekPanel button{
 background:#fff!important;color:#303339!important;border:1.25px solid var(--px-soft)!important;border-radius:9px!important;padding:8px 10px!important;font-weight:850!important;box-shadow:none!important
}
body .aiQuickBtns .aiMainBtn,body #beqMentorBtn.active{background:linear-gradient(180deg,#fff1bd,#dda83a)!important;color:#251902!important;border-color:#b97806!important}
body .aiMentorModeTag{background:#fff7df!important;border:1px solid #dfbd72!important;color:#936006!important}
body .aiQuestion,body .aiAnswer{background:#fff!important;color:#30343a!important;border:1.25px solid var(--px-soft)!important;border-radius:10px!important}
body .aiAnswer{max-height:220px!important}

/* SIDEWAY */
body .sidewayPanel{color:#202328!important}
body .sidewayPanel .swStatus,body .sidewayPanel .swAction,body .sidewayPanel .swGrid span{background:#fffdf8!important;border:1.25px solid var(--px-soft)!important;color:#33373d!important}
body .sidewayPanel.sideway .swStatus,body .sidewayPanel.sideway .swAction{color:var(--px-wait)!important;border-color:#d5ad52!important;background:#fff9e8!important}
body .sidewayPanel.trend .swStatus,body .sidewayPanel.trend .swAction{color:var(--px-green)!important;border-color:#7ebc9d!important;background:#f2fff8!important}
body .sidewayPanel .swGrid span{color:#666b72!important}body .sidewayPanel .swGrid b{color:#2c3035!important;font-size:13px!important}

/* GUIDE/RADAR — ALL LEGACY V166 */
body .v166GuideRadar,body .chartCard>.v166GuideRadar{position:relative!important;right:auto!important;bottom:auto!important;width:auto!important;max-width:none!important;color:#25282d!important;overflow:visible!important}
body .v166GuideTop,body .v166GuideMeta,body .v166GuideProb,body .v166GuideRows,body .v166GuideCard{background:transparent!important;color:#25282d!important}
body .v166GuideIcon,body .v166GuideMeta span,body .v166GuideProb span,body .v166GuideCard{background:#fff!important;border:1.25px solid var(--px-soft)!important;border-radius:10px!important;color:#333!important}
body .v166GuideTitle h3{color:#17191c!important;font-weight:950!important}body .v166GuideTitle p{color:#666b72!important}
body .v166GuideEdge b{color:#a66c03!important}
body .v166GuideProb .buy b,body .v166GuideCard.buy b{color:var(--px-green)!important}
body .v166GuideProb .sell b,body .v166GuideCard.sell b{color:var(--px-red)!important}
body .v166GuideProb .wait b,body .v166GuideCard.wait b{color:var(--px-wait)!important}
body .v166GuideBtns button{background:linear-gradient(180deg,#fff1bd,#dda83a)!important;color:#251902!important;border:1.25px solid #b97806!important}

/* VOICE — NEVER NAVY */
body #v166VoiceBtn,body .voiceBar,body .voiceButton,body [id*="VoiceBtn"]{background:linear-gradient(180deg,#fff1bd,#dda83a)!important;color:#251902!important;border:1.25px solid #b97806!important;border-radius:9px!important;font-weight:950!important;box-shadow:none!important}

/* SIGNAL FILTER V97.7 */
body .v977Filter{display:block!important;visibility:visible!important;opacity:1!important;margin:12px 0!important;padding:14px!important;background:#fff!important;border:1.5px solid var(--px-line)!important;border-radius:14px!important;color:var(--px-text)!important}
body .v977Head b{color:#9b6808!important;font-size:15px!important;font-weight:950!important}body .v977Head small{color:#6e7278!important}
body .v977Head button{background:#fff!important;color:#7f5404!important;border:1.25px solid var(--px-soft)!important}
body .v977Checks label{background:#fffdf8!important;border:1px solid var(--px-soft)!important;color:#454a51!important;font-size:11px!important}
body .v977Nums label{color:#646970!important;font-size:10px!important}
body .v977Nums input{background:#fff!important;color:#17191c!important;border:1.25px solid var(--px-soft)!important;font-weight:850!important}
body .v977Status{background:#fffaf0!important;color:#333!important;border:1px solid #ead8af!important}
body .v977Status b{color:#5e6268!important}
body .v977Actions button{background:#fff!important;color:#222!important;border:1.25px solid var(--px-soft)!important;font-weight:900!important}
body .v977Actions #v977Save{background:linear-gradient(180deg,#ffe99c,#dda721)!important;color:#251902!important;border-color:#ae7003!important}

/* STRATEGY ENGINE — FORCE LIGHT AFTER LEGACY */
body #strategyEngineManager.sem-panel,body .sem-panel{margin:10px 0 16px!important;overflow:hidden!important;background:#fff!important;color:var(--px-text)!important}
body .sem-head{background:#fffdf8!important;border-bottom:1px solid #ead8af!important;padding:11px 13px!important}
body .sem-head b{color:#9b6808!important;font-size:14px!important;font-weight:950!important}body .sem-head small{color:#6e7278!important}
body .sem-head button{background:#fff!important;color:#7f5404!important;border:1.25px solid var(--px-soft)!important}
body .sem-master{background:#fff!important;border:0!important;border-bottom:1px solid #ead8af!important;padding:9px 13px!important;color:#62676f!important}
body .sem-master label{color:#62676f!important}body .sem-master select{background:#fff!important;color:#17191c!important;border:1.25px solid var(--px-soft)!important}
body .sem-master #sem-summary{color:#8f5e05!important}
body .sem-grid{grid-template-columns:repeat(3,minmax(220px,1fr))!important;gap:9px!important;padding:11px!important;background:#fff!important}
body .sem-card{background:#fff!important;border:1.25px solid var(--px-soft)!important;border-radius:11px!important;padding:10px!important;box-shadow:0 2px 7px rgba(91,60,10,.04)!important;color:#222!important}
body .sem-card header b{color:#202328!important;font-size:12px!important}body .sem-card header small{color:#767b82!important}
body .sem-card header small[data-state=running]{color:var(--px-green)!important}body .sem-card header small[data-state=standby]{color:var(--px-wait)!important}body .sem-card header small[data-state=off]{color:var(--px-red)!important}
body .sem-row label{color:#656a72!important}body .sem-row select,body .sem-row input{background:#fff!important;color:#17191c!important;border:1.25px solid var(--px-soft)!important}
body .sem-checks{color:#5f646b!important}body .sem-runtime span,body .sem-runtime strong{background:#fffaf0!important;border:1px solid #ead8af!important;color:#5f646b!important}
body .sem-runtime strong[data-side=BUY]{color:var(--px-green)!important}body .sem-runtime strong[data-side=SELL]{color:var(--px-red)!important}body .sem-runtime strong[data-side=BLOCK]{color:var(--px-wait)!important}
body .sem-reason{color:#777b82!important}body .sem-switch span{background:#ded8ca!important;border:1px solid #c8b991!important}body .sem-switch span:after{background:#fff!important}
body .sem-switch input:checked+span{background:linear-gradient(180deg,#e4b84f,#c98a0c)!important}body .sem-switch input:checked+span:after{background:#fff!important}

/* MANUAL TRADE */
body #tradePanel.tradePanel{position:fixed!important;left:18px!important;top:92px!important;width:335px!important;max-width:calc(100vw - 36px)!important;background:#fffdf8!important;border:1.6px solid var(--px-line)!important;border-radius:15px!important;box-shadow:0 12px 32px rgba(82,52,5,.16)!important;color:#17191c!important;padding:12px!important}
body #tradePanel .tradeDrag{background:linear-gradient(135deg,#17150f,#33240a)!important;color:#f2cd73!important;border:1.25px solid #c79229!important;border-radius:10px!important;padding:10px!important;margin-bottom:10px!important;font-weight:950!important}
body #tradePanel .tradeDrag button{background:#2f2817!important;color:#fff2c9!important;border:1px solid #b98b36!important}
body #tradePanel .buyBtn{background:linear-gradient(180deg,#16c975,#079b55)!important;color:#fff!important;border:1px solid #087f49!important}
body #tradePanel .sellBtn{background:linear-gradient(180deg,#ff4b4b,#dc3030)!important;color:#fff!important;border:1px solid #bd2424!important}
body #tradePanel .tradeGrid label,body #tradePanel label{color:#555b63!important}
body #tradePanel input,body #tradePanel select{background:#fff!important;color:#17191c!important;border:1.25px solid var(--px-soft)!important;border-radius:8px!important}
body #tradePanel #manualSmartSmcWrap{background:#fff8e5!important;border:1.25px solid #d9b861!important;color:#6d4905!important}
body #tradePanel #manualSmartPreview{color:#666!important}
body #tradePanel .manualRiskBox>div{background:linear-gradient(145deg,#171714,#2b220f)!important;border:1.25px solid #c89328!important;border-radius:10px!important}
body #tradePanel .manualRiskBox b{color:#ffd76f!important}
body #tradePanel>button:not(.warnBtn):not(.buyBtn):not(.sellBtn){background:linear-gradient(180deg,#ffe99c,#dda721)!important;color:#251902!important;border:1.25px solid #ae7003!important;font-weight:950!important}
body #tradePanel .warnBtn{background:#fff!important;color:#d52d2d!important;border:1.25px solid #e36868!important}
body .manualTradeLauncher{background:linear-gradient(135deg,#17150f,#33240a)!important;border:1.25px solid #c79229!important;color:#f2cd73!important;box-shadow:0 6px 18px rgba(70,44,5,.20)!important}
body .manualTradeLauncher small{color:#e7c36f!important}

/* SWING H1 — CLEAN */
body .pyxisSwingH1{margin:10px 0 18px!important;padding:14px!important;background:#fff!important;border:1.5px solid var(--px-line)!important;border-radius:14px!important;box-shadow:var(--px-shadow)!important;color:#222!important}
body .pshHead{display:flex!important;justify-content:space-between!important;gap:12px!important;align-items:center!important;border-bottom:1px solid #ead8af!important;padding-bottom:10px!important;margin-bottom:12px!important}
body .pshHead b{color:#9b6808!important;font-size:15px!important;font-weight:950!important}body .pshHead small{color:#696e75!important}
body .pshState{padding:7px 12px!important;border:1.25px solid #d9b861!important;border-radius:999px!important;background:#fff8e5!important;color:#9a6504!important;font-weight:950!important}
body .pshGroup{border:1.25px solid var(--px-soft)!important;border-radius:11px!important;background:#fff!important;padding:10px!important;margin-bottom:10px!important}
body .pshGroupTitle{color:#8f5d04!important;font-weight:950!important;font-size:11px!important;margin-bottom:8px!important}
body .pshGrid{display:grid!important;grid-template-columns:repeat(4,minmax(125px,1fr))!important;gap:9px!important}
body .pshGrid label{font-size:10px!important;color:#666b72!important;font-weight:800!important}
body .pshGrid input,body .pshGrid select{width:100%!important;min-height:36px!important;margin-top:4px!important;background:#fff!important;color:#17191c!important;border:1.25px solid var(--px-soft)!important;border-radius:7px!important;padding:7px 8px!important;font-weight:850!important}
body .pshChecks{padding:8px 0!important;color:#555b63!important;font-size:11px!important}
body .pshStatus{display:grid!important;grid-template-columns:repeat(6,1fr)!important;gap:7px!important;margin-top:8px!important}
body .pshStatus span{background:#fffaf0!important;border:1px solid #ead8af!important;border-radius:8px!important;padding:7px!important}
body .pshStatus small{display:block!important;color:#777b82!important;font-size:9px!important}body .pshStatus b{display:block!important;margin-top:2px!important;color:#222!important;font-size:12px!important}
body .pshActions{display:flex!important;gap:8px!important;margin-top:10px!important}body .pshActions button{min-width:160px!important;border-radius:9px!important;padding:10px 14px!important;font-weight:950!important}
body .pshSave{background:linear-gradient(180deg,#ffe99c,#dda721)!important;color:#251902!important;border:1.25px solid #ae7003!important}body .pshOff{background:#fff!important;color:#d52d2d!important;border:1.25px solid #e36868!important}
body .pshNote{margin-top:8px!important;color:#777b82!important;font-size:10px!important;line-height:1.45!important}

/* POPUPS + TOAST — LIGHT */
body .toast{background:#fffdf8!important;color:#222!important;border:1.5px solid var(--px-line)!important;box-shadow:var(--px-shadow)!important;font-family:inherit!important}
body .smcLayerMenu,body .signalModeMenu{background:#fffdf8!important;color:#222!important;border:1.5px solid var(--px-line)!important}
body .smcLayerMenu b,body .signalModeMenu b{color:#9b6808!important}
body .smcLayerMenu label{color:#444!important}

/* FINAL LOCK — KILL NAVY ON DASHBOARD COMPONENTS */
body:not(:has(#loginOverlay:not(.hide))) .side [style*="background"],
body:not(:has(#loginOverlay:not(.hide))) .sem-panel [style*="background"],
body:not(:has(#loginOverlay:not(.hide))) .v977Filter [style*="background"]{background-color:transparent}

@media(max-width:1100px){body .main{grid-template-columns:1fr!important}body .side{display:grid!important;grid-template-columns:1fr!important;position:static!important;max-height:none!important;overflow:visible!important}body .sem-grid{grid-template-columns:repeat(2,minmax(220px,1fr))!important}body .pshGrid{grid-template-columns:repeat(3,minmax(120px,1fr))!important}body .pshStatus{grid-template-columns:repeat(3,1fr)!important}}
@media(max-width:650px){body{padding:7px!important}body .sem-grid{grid-template-columns:1fr!important}body .pshGrid{grid-template-columns:repeat(2,minmax(110px,1fr))!important}body .pshStatus{grid-template-columns:repeat(2,1fr)!important}body #tradePanel.tradePanel{left:8px!important;right:8px!important;top:78px!important;width:auto!important}body .pshActions{flex-direction:column!important}body .pshActions button{width:100%!important}}
