@layer orax-detail-refinement {
 /* Wallet identity is semantic and does not inherit the broker accent. */
 body{--wallet-real-ink:#27d69a;--wallet-demo-ink:#ffad42;--wallet-tournament-ink:#b18bff}
 body.theme-light-mode,html[data-theme="light"] body{--wallet-real-ink:#087f56;--wallet-demo-ink:#b85b00;--wallet-tournament-ink:#7032cc}
 .f380-payout,.f380-status.available{color:var(--wallet-real-ink)!important;-webkit-text-fill-color:currentColor!important}
 .f380-status.available{background:color-mix(in srgb,var(--wallet-real-ink) 10%,var(--flat-panel))!important;border-color:color-mix(in srgb,var(--wallet-real-ink) 30%,var(--flat-line))!important}
 .f380-status.available::before{background:var(--wallet-real-ink)!important}
 body.admin-module-page{--admin-accent-ink:color-mix(in srgb,var(--brand-primary) 55%,#fff)}
 html[data-theme=light] body.admin-module-page{--admin-accent-ink:color-mix(in srgb,var(--brand-primary) 75%,#101820)}
 .admin-module-page :is(.nv.on,.nv:hover,.aw-eyebrow,.admin-smart-strip .material-symbols-outlined,.ops-kpi:not(.danger):not(.warn)>.material-symbols-outlined){color:var(--admin-accent-ink)!important}
 #accountPopup .account-row:is(.real,.sponsored){--wallet-row-ink:var(--wallet-real-ink)}
 #accountPopup .account-row.demo{--wallet-row-ink:var(--wallet-demo-ink)}
 #accountPopup .account-row.tournament{--wallet-row-ink:var(--wallet-tournament-ink)}
 #accountPopup .account-row:is(.real,.demo,.sponsored,.tournament).active{border-color:var(--wallet-row-ink)!important;background:color-mix(in srgb,var(--wallet-row-ink) 9%,var(--flat-panel))!important}
 #accountPopup .account-row:is(.real,.demo,.sponsored,.tournament) .badge{background:color-mix(in srgb,var(--wallet-row-ink) 12%,var(--flat-panel))!important;color:var(--wallet-row-ink)!important}
 #accountPopup .account-row:is(.real,.demo,.sponsored,.tournament) :is(.amount,.account-check,.account-copy strong){color:var(--wallet-row-ink)!important;-webkit-text-fill-color:currentColor!important}
 #accountPopup .orax-demo-reload-inline{color:var(--wallet-demo-ink)!important;border-color:color-mix(in srgb,var(--wallet-demo-ink) 35%,var(--flat-line))!important}
 :is(#accountPopup,#accountSwitch) .balance-real{color:var(--wallet-real-ink)!important;-webkit-text-fill-color:currentColor!important}
 :is(#accountPopup,#accountSwitch) .balance-demo{color:var(--wallet-demo-ink)!important;-webkit-text-fill-color:currentColor!important}
 body.wallet-real :is(#accountPopup,#accountSwitch) [data-current-account]{color:var(--wallet-real-ink)!important}
 body.wallet-demo :is(#accountPopup,#accountSwitch) [data-current-account]{color:var(--wallet-demo-ink)!important}
 body.wallet-sponsored :is(#accountPopup,#accountSwitch) :is([data-current-account],[data-current-balance]){color:var(--wallet-real-ink)!important;-webkit-text-fill-color:currentColor!important}
 body.wallet-tournament :is(#accountPopup,#accountSwitch) :is([data-current-account],[data-current-balance]){color:var(--wallet-tournament-ink)!important;-webkit-text-fill-color:currentColor!important}
 #o389OrderDialog{position:fixed!important;inset:0!important;margin:auto!important;height:fit-content!important;width:min(650px,calc(100vw - 32px))!important;max-height:min(86dvh,740px)!important;background:var(--flat-panel)!important;color:var(--flat-text)!important;border-color:var(--flat-line)!important}
 #o389OrderDialog:not([open]){display:none!important}
 #o389OrderDialog :is(.o389-detail-grid>div,.o389-warning,.o389-close){background:var(--flat-bg)!important;border-color:var(--flat-line)!important;color:var(--flat-text)!important}
 #o389OrderDialog :is(.o389-dialog-head,.o389-dialog-footer){background:var(--flat-panel)!important;border-color:var(--flat-line)!important}
 #o389OrderDialog :is(small,p,.o389-warning){color:var(--flat-muted)!important}
 /* Dialogs moved outside the page container retain the shared appearance. */
 .v383-manager-card{background:var(--flat-panel)!important;color:var(--flat-text)!important;border-color:var(--flat-line)!important}
 .v383-manager-card :is(header,.admin-check-card){border-color:var(--flat-line)!important}
 .v383-manager-card :is(.admin-input,.admin-check-card,header>button){background:var(--flat-bg)!important;color:var(--flat-text)!important;border:1px solid var(--flat-line)!important}
 .v383-manager-card label>span,.v383-manager-card .admin-check-card small{color:var(--flat-muted)!important}
 .v383-manager-card .admin-btn{background:var(--brand-primary)!important;color:#fff!important;border:0!important;border-radius:8px!important;min-height:42px!important;font:inherit!important;font-weight:700!important;cursor:pointer}
 .v383-manager-card input:focus-visible{outline:2px solid var(--brand-primary)!important;outline-offset:2px}
 .v383-doc-viewer-card{background:var(--flat-panel)!important;color:var(--flat-text)!important;border-color:var(--flat-line)!important}
 .v383-doc-viewer :is(.v383-doc-viewer-head,.v383-doc-viewer-foot){background:var(--flat-panel)!important;color:var(--flat-text)!important;border-color:var(--flat-line)!important}
 .v383-doc-viewer :is(h2,button){color:var(--flat-text)!important}
 .v383-doc-viewer-stage{background:var(--flat-bg)!important}
 .v383-doc-viewer-foot span{color:var(--flat-muted)!important}
 .v383-doc-viewer-foot a{color:var(--brand-primary)!important}
 #otcClearDialog{position:fixed!important;inset:0!important;width:min(480px,calc(100vw - 32px))!important;max-width:480px!important;height:fit-content!important;max-height:calc(100dvh - 32px)!important;margin:auto!important;padding:24px!important;box-sizing:border-box!important;border:1px solid var(--flat-line)!important;border-radius:16px!important;background:var(--flat-panel)!important;color:var(--flat-text)!important;box-shadow:0 24px 70px #0005!important;overflow:auto!important}
 #otcClearDialog:not([open]){display:none!important}
 #otcClearDialog h2{font-size:19px!important;margin:0 0 12px!important}
 #otcClearDialog p{font-size:13px!important;line-height:1.6!important;color:var(--flat-muted)!important;margin:0 0 22px!important}
 #otcClearDialog .otc-dialog-actions{display:flex!important;justify-content:flex-end!important;gap:10px!important}
 #otcClearDialog button{min-height:40px!important;padding:9px 15px!important;border:1px solid var(--flat-line)!important;border-radius:8px!important;background:var(--flat-bg)!important;color:var(--flat-text)!important;cursor:pointer}
 #otcClearDialog button[value=clear]{background:#c23c4f!important;color:#fff!important;border-color:#c23c4f!important}
 /* Transparent terminal controls keep the chart and order panel visually continuous. */
 #tradeModeSwitch,#tradeModeSwitch button{background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;border-radius:0!important}
 #tradeModeSwitch{padding:0!important;gap:10px!important;border-bottom:1px solid var(--flat-line)!important}
 #tradeModeSwitch button{position:relative!important;padding:8px 4px 10px!important;color:var(--flat-muted)!important}
 #tradeModeSwitch button.active{color:var(--flat-text)!important}
 #tradeModeSwitch button.active::after{content:"";position:absolute;bottom:-1px;left:4px;right:4px;height:2px;background:var(--brand-primary);border-radius:2px}
 #portfolioDock,#livePortfolio,#livePortfolio .live-portfolio-list{background:transparent!important;background-image:none!important;box-shadow:none!important;backdrop-filter:none!important}
 #portfolioDock{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;align-self:stretch!important}
 #livePortfolio{border:0!important;border-radius:0!important}
 #livePortfolio .portfolio-pro-grid>span{flex-wrap:wrap!important;column-gap:4px!important;row-gap:1px!important;min-width:0!important}
 #livePortfolio .portfolio-pro-grid small{font-size:9px!important;line-height:14px!important;white-space:nowrap!important;flex-shrink:0!important}
 #livePortfolio .portfolio-pro-grid b{font-size:11px!important;line-height:14px!important;margin-left:auto!important;flex-shrink:0!important;white-space:nowrap!important;overflow-wrap:normal!important;font-variant-numeric:tabular-nums!important}
 #livePortfolio .portfolio-pro-grid b .material-symbols-outlined{font-size:14px!important;vertical-align:middle!important}
 #accountPopup .account-summary-deposit{justify-content:center!important;gap:7px!important;min-width:96px!important;padding:10px 12px!important;font-size:12px!important;line-height:18px!important;box-sizing:border-box!important;white-space:nowrap!important;text-align:center!important;border-radius:9px!important;background-image:none!important}
 #accountPopup .account-summary-deposit svg{width:17px!important;height:17px!important;flex:none!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}
 #accountPopup .account-summary-deposit:hover{background:color-mix(in srgb,var(--brand-primary) 85%,#000)!important}
 #accountPopup .account-summary-deposit:focus-visible{outline:2px solid var(--brand-primary)!important;outline-offset:3px!important}
 /* Forex quotes and contract details use aligned rows, independent of P&L. */
 .trade-mode-forex #forexContractInfo{padding:8px 0!important;margin:0!important;display:grid!important;gap:8px!important;border-bottom:1px solid var(--flat-line)!important;text-align:left!important}
 .trade-mode-forex :is(#forexEligibility,#forexMargin,#profitAmount){display:grid!important;gap:5px!important;width:100%!important;min-width:0!important;font-weight:500!important;line-height:1.4!important;color:var(--flat-text)!important}
 .forex-detail-row{display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important;align-items:baseline!important;gap:1px 5px!important;width:100%!important;min-width:0!important}
 .trade-mode-forex .forex-detail-row small{font-size:10px!important;font-weight:500!important;line-height:14px!important;color:var(--flat-muted)!important}
 .trade-mode-forex .forex-detail-row strong{font-size:11px!important;font-weight:650!important;line-height:15px!important;margin:0 0 0 auto!important;max-width:100%!important;text-align:right!important;overflow-wrap:anywhere!important;color:var(--flat-text)!important;font-variant-numeric:tabular-nums!important;letter-spacing:0!important}
 .trade-mode-forex .premium-profit{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:baseline!important;justify-content:space-between!important;gap:7px 4px!important;padding:9px 0!important;text-align:left!important;flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 .trade-mode-forex #tradeProfitLabel{font-size:11px!important;color:var(--flat-muted)!important}
 .trade-mode-forex #payoutPercent{font-size:20px!important;line-height:25px!important;letter-spacing:-.4px!important;font-variant-numeric:tabular-nums!important}
 .trade-mode-forex .premium-profit[data-forex-state=quote] #payoutPercent{color:var(--flat-text)!important}
 .trade-mode-forex .premium-profit[data-forex-state=position] #payoutPercent{color:var(--wallet-real-ink)!important}
 .trade-mode-forex .premium-profit[data-forex-state=position] #payoutPercent.loss{color:#e34c60!important}
 .trade-mode-forex :is(#payoutPercent,.forex-detail-row strong,.forex-detail-row small){-webkit-text-fill-color:currentColor!important;text-shadow:none!important}
 .trade-mode-forex #forexCloseCurrent{width:100%!important}

 #livePortfolio .live-portfolio-head{padding:9px 1px!important;border-bottom:1px solid var(--flat-line)!important}
 #livePortfolio .live-portfolio-list{padding:7px 0 0!important;gap:7px!important}
 #livePortfolio .live-portfolio-list[hidden]{display:none!important}
 #livePortfolio .live-portfolio-list{scrollbar-width:none!important}
 #livePortfolio .live-portfolio-list::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
 #livePortfolio .live-portfolio-item,.forex-portfolio-position{flex-shrink:0!important}
 @media(min-width:961px){
  .rightbar.premium-rightbar{scrollbar-width:none!important}
  .rightbar.premium-rightbar::-webkit-scrollbar{display:none!important}
  #portfolioDock{flex:1 1 0!important;min-height:80px!important;overflow:hidden!important}
  #portfolioDock:has(#livePortfolio[hidden]),#portfolioDock:has(.live-portfolio-list[hidden]){flex:0 0 auto!important;min-height:0!important}
  #livePortfolio:not([hidden]){display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important}
  #livePortfolio:not([hidden]):has(.live-portfolio-list[hidden]){flex:0 0 auto!important}
  #livePortfolio .live-portfolio-head,#postResultActions{flex:0 0 auto!important}
  #livePortfolio .live-portfolio-list{flex:1 1 0!important;min-height:0!important;max-height:none!important;overflow:auto!important}
 }
 #livePortfolio .live-portfolio-item.portfolio-pro{background:transparent!important;border:0!important;border-bottom:1px solid var(--flat-line)!important;border-left:2px solid var(--brand-primary)!important;border-radius:0!important;padding:6px 7px!important;margin:0!important}
 #assetFavBtn.active,#assetFavBtn.active .material-symbols-outlined{color:#f5b91b!important;font-variation-settings:'FILL' 1,'wght' 600!important;text-shadow:none!important}
 #assetFavBtn svg{width:16px!important;height:16px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.6}
 #assetFavBtn.active svg{fill:#f5b91b!important;stroke:#f5b91b!important}
 .user-verification-badge{background-image:none!important;border:0!important;box-shadow:none!important;filter:none!important;text-shadow:none!important}
 .user-verification-badge.unverified{background:#f5b53c!important;color:#322000!important}
 .user-verification-badge.verified{background:#2572df!important;color:white!important}
 .user-verification-badge span{background:transparent!important;color:inherit!important;box-shadow:none!important;border:0!important}
 [data-user-group-tag]{background:color-mix(in srgb,var(--vip-level-color,var(--brand-primary)) 65%,#101820)!important;color:#fff!important;border:0!important;box-shadow:none!important;filter:none!important;text-shadow:none!important}
 /* Keep the tier label readable when the light theme colours bold text. */
 [data-user-group-tag] :is(span,b,svg){color:#fff!important;-webkit-text-fill-color:currentColor!important}
 #profileMenu .profile-vip-progress{background:var(--flat-bg)!important;border:1px solid var(--flat-line)!important;box-shadow:none!important}
 #profileMenu,#profileMenu *{background-image:none!important;text-shadow:none!important;filter:none!important}
 #profileMenu #profileVipLevel{color:var(--flat-text)!important;-webkit-text-fill-color:currentColor!important;background:none!important}
 #profileMenu .profile-vip-progress-track>span{background:var(--brand-primary)!important;box-shadow:none!important}
 .deposit-link>.deposit-btn{color:var(--brand-primary)!important;-webkit-text-fill-color:currentColor!important;background:transparent!important;border:1px solid color-mix(in srgb,var(--brand-primary) 65%,transparent)!important}
 .deposit-link:hover>.deposit-btn,.deposit-link:focus-visible>.deposit-btn,.deposit-link>.deposit-btn:focus-visible{background:var(--brand-primary)!important;background-image:none!important;color:#fff!important;border-color:var(--brand-primary)!important;box-shadow:none!important}
 .deposit-link .deposit-label,.deposit-link .lzx-account-deposit-label{color:inherit!important;-webkit-text-fill-color:currentColor!important}
 .lzx-profile-kpis article{padding:18px 10px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:7px!important;text-align:left!important;border-radius:14px!important;min-width:0!important}
 .lzx-profile-kpis article>.material-symbols-outlined,.lzx-quick-grid a>.material-symbols-outlined{color:var(--flat-muted)!important;background:var(--flat-bg)!important;box-shadow:none!important}
 .lzx-profile-kpis :is(small,em){color:var(--flat-muted)!important}
 .lzx-profile-kpis article>b{font-size:22px!important;letter-spacing:-.5px!important;line-height:1.2!important;white-space:nowrap!important;color:var(--flat-text)!important}
 .lzx-profile-kpis .win>b,#stPnl[data-sign=positive]{color:#0b9b68!important}
 .lzx-profile-kpis .loss>b,#stPnl[data-sign=negative]{color:#e34c60!important}
 .lzx-profile-kpis .pnl>b{font-size:18px!important}
 .lzx-profile-kpis article>b{-webkit-text-fill-color:currentColor!important}
 .lzx-profile-photo label{background:var(--brand-primary)!important;color:white!important;box-shadow:none!important}
 .lzx-profile-main-card{box-shadow:none!important;border-radius:14px!important}
 .lzx-quick-grid a{transition:border-color .15s,background .15s}
 .lzx-quick-grid a:hover{background:var(--flat-bg)!important;border-color:var(--brand-primary)!important}
 .profile-period-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-bottom:18px}
 .profile-period-toolbar>button{min-height:44px!important;height:44px!important;width:auto!important;padding:8px 14px!important}
 .profile-period-toolbar .shell-icon{width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important}
 .lzx-account-body .period-picker{position:relative;z-index:65}
 .lzx-account-body .period-open{display:flex;align-items:center;gap:18px;min-height:44px;border:1px solid var(--flat-line);border-radius:9px;padding:8px 12px;background:var(--flat-panel);color:var(--flat-text);cursor:pointer}
 .lzx-account-body .period-open>span{display:grid;gap:2px;text-align:left}.lzx-account-body .period-open small{position:static;background:none;color:var(--flat-muted);font-size:10px}.lzx-account-body .period-open strong{font-size:12px}
 .lzx-account-body .period-menu{position:absolute;right:0;top:calc(100% + 8px);width:min(390px,calc(100vw - 32px));padding:18px;border:1px solid var(--flat-line);background:var(--flat-panel);border-radius:16px;box-shadow:0 18px 40px #0002;color:var(--flat-text)}
 .lzx-account-body .period-menu[hidden]{display:none!important}
 .lzx-account-body .period-menu-heading{display:flex;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--flat-line)}
 .lzx-account-body .period-menu-heading small{display:block;margin-top:3px;color:var(--flat-muted);font-size:11px}.lzx-account-body .period-menu-heading strong{font-size:14px}
 .lzx-account-body .period-picker .i{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;color:var(--brand-primary)}
 .lzx-account-body .date-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.lzx-account-body .date-pair label{display:grid;gap:6px;font-size:12px;color:var(--flat-muted);min-width:0}
 .lzx-account-body .date-pair input{min-width:0;width:100%;box-sizing:border-box;border:1px solid var(--flat-line);border-radius:8px;background:var(--flat-bg);color:var(--flat-text);padding:11px 8px;font:inherit;color-scheme:dark}.lzx-account-body.theme-light-mode .date-pair input{color-scheme:light}
 .lzx-account-body .period-presets{display:flex;gap:7px;margin-bottom:16px}.lzx-account-body .preset{padding:7px 10px;border:1px solid var(--flat-line);border-radius:8px;background:var(--flat-bg);color:var(--flat-text);cursor:pointer}.lzx-account-body .preset.on{background:var(--flat-tint);color:var(--brand-primary);border-color:var(--brand-primary)}
 .lzx-account-body .period-apply{width:100%;padding:11px;border:0;border-radius:9px;background:var(--brand-primary);color:white;cursor:pointer}.lzx-account-body .period-hint{font-size:11px;line-height:1.5;color:var(--flat-muted);margin-top:12px}
 .service-logo{width:32px;height:32px;object-fit:contain;display:inline-block;flex-shrink:0;vertical-align:middle}
 .service-logo.small{width:16px;height:16px;margin-right:4px}.campaign-brand:has(.service-logo){background:transparent!important;border:1px solid var(--flat-line)!important}
 .campaign-settings{--cp-green:var(--brand-primary)!important;--cp-tint:var(--flat-tint)!important}.campaign-event-list code{color:var(--flat-muted)!important}
 .affiliate-method-title{display:flex;align-items:center;gap:10px;margin-bottom:12px}.affiliate-method-title b{font-size:14px!important}
 .affiliate-method-grid article>span{overflow-wrap:anywhere}.affiliate-method-grid article>small{margin-top:8px}
 @media(max-width:1100px){.lzx-profile-overview-grid{grid-template-columns:1fr!important}.lzx-profile-kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
 @media(max-width:580px){.lzx-profile-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.lzx-profile-kpis article:last-child{grid-column:1 / -1}.profile-period-toolbar{justify-content:flex-start}.lzx-account-body .period-menu{left:0;right:auto}}
}


@layer orax-detail-refinement {
 body:has(#app) :is(#lzxTimeframePortal,#desktopTimeMenu,#desktopTimeMenuTop,#bottomTimeMenu,#expiryPickerPanel){background:var(--flat-panel)!important;color:var(--flat-text)!important;border-color:var(--flat-line)!important;box-shadow:0 12px 32px #0002!important}
 body:has(#app) :is(#lzxTimeframePortal,#desktopTimeMenu,#desktopTimeMenuTop,#bottomTimeMenu) button{background:var(--flat-bg)!important;color:var(--flat-text)!important;border-color:var(--flat-line)!important}
 body:has(#app) :is(#lzxTimeframePortal,#desktopTimeMenu,#desktopTimeMenuTop,#bottomTimeMenu) button.active{background:var(--flat-tint)!important;color:var(--brand-primary)!important;border-color:var(--brand-primary)!important}
 body:has(#app) :is(#lzxTimeframePortal,#desktopTimeMenu,#desktopTimeMenuTop,#bottomTimeMenu) button small{color:var(--flat-muted)!important}
 .admin-module-page .side .nv.on{background:var(--as)!important;color:var(--ac)!important}
 .chart-result-card.draw{--result-fill:rgba(90,109,134,.84)}
 .chart-result-line.draw{border-top-color:#8092ad!important}
}

@layer orax-detail-refinement {
 #livePortfolioList{display:flex!important;flex-direction:column!important;gap:12px!important;padding-top:8px!important}
 #livePortfolioList .live-portfolio-item.portfolio-pro{padding:10px 8px!important;margin:0!important;border-radius:6px!important}
 #livePortfolioList .portfolio-pro-head{padding-bottom:9px!important;margin-bottom:8px!important}
 #livePortfolioList .portfolio-pro-grid{row-gap:5px!important}
 body:has(#app) #lzxTimeframePortal{width:174px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;padding:7px!important;gap:5px!important}
 body:has(#app) #lzxTimeframePortal button{min-height:34px!important;height:34px!important;padding:6px!important;border-radius:7px!important}
 body:has(#app) #lzxTimeframePortal button small{display:none!important}
 body:has(#app) #lzxTimeframePortal button b{font-size:12px!important}
}
