/* UpTrader Traders Room reference implementation — client pages only. */
body.client-portal-body{--ut-cyan:#12a9df;--ut-mint:#21d5ba;--ut-ink:#292c30;--ut-muted:#92989f;--ut-line:#e8ebee;--ut-bg:#f7f8fa;min-width:0;margin:0;overflow-x:hidden;background:var(--ut-bg)!important;color:var(--ut-ink)!important;font:13px Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important}
.client-portal-body .member-header-top{position:fixed!important;inset:0 0 auto!important;z-index:1500!important;height:70px!important;display:flex!important;align-items:center!important;padding:0 28px!important;background:#fff!important;border:0!important;border-bottom:1px solid #edf0f2!important;box-shadow:0 2px 10px rgba(28,48,65,.035)!important}.client-portal-body .member-logo{height:70px!important;display:flex!important;align-items:center!important;gap:10px!important;color:#222!important;text-decoration:none!important}.client-portal-body .member-logo img{width:31px!important;height:31px!important;object-fit:contain!important;border-radius:0!important}.client-portal-body .member-brand{font-size:0!important}.client-portal-body .member-brand:before{content:"UP";color:var(--ut-cyan);font-size:20px!important;font-weight:450}.client-portal-body .member-brand:after{content:"TRADER";color:#242629;font-size:20px!important;font-weight:450}.client-portal-body .member-header-sp{display:flex!important;align-items:center!important;gap:10px!important;margin-left:auto!important}.client-portal-body .member-user-btn{height:40px!important;min-height:40px!important;display:flex!important;align-items:center!important;gap:9px!important;padding:0 12px!important;border:0!important;border-radius:0!important;background:#fff!important;color:#34383c!important;box-shadow:none!important;font-size:12px!important}.client-portal-body .member-avatar{display:grid!important;width:31px!important;height:31px!important;place-items:center!important;border-radius:50%!important;background:#eef8fb!important;color:var(--ut-cyan)!important}
.client-portal-body .member-nav-bar{position:fixed!important;inset:70px auto 0 0!important;z-index:1400!important;width:225px!important;height:auto!important;display:block!important;padding:24px 0 35px!important;overflow-x:hidden!important;overflow-y:auto!important;background:#fff!important;border:0!important;border-right:1px solid #eceff1!important;box-shadow:none!important}.client-portal-body .member-nav-bar a{position:relative!important;width:100%!important;height:46px!important;min-height:46px!important;display:flex!important;align-items:center!important;gap:13px!important;margin:0!important;padding:0 24px!important;overflow:hidden!important;border:0!important;border-left:3px solid transparent!important;border-radius:0!important;background:#fff!important;color:#51565b!important;text-decoration:none!important;font-size:12px!important;font-weight:500!important;white-space:nowrap!important;text-overflow:ellipsis!important}.client-portal-body .member-nav-bar a:hover{background:#f8fafb!important;color:#1c9fd1!important}.client-portal-body .member-nav-bar a.active{border-left-color:var(--ut-mint)!important;background:#f3f5f6!important;color:#25282b!important;font-weight:650!important}.client-portal-body .member-nav-bar a:after{display:none!important}.client-portal-body .member-nav-mark{width:17px!important;height:17px!important;flex:0 0 17px!important;border:1.4px solid #a6adb2!important;border-radius:2px!important;transform:none!important}.client-portal-body .member-nav-bar a.active .member-nav-mark{border-color:var(--ut-mint)!important;background:linear-gradient(135deg,var(--ut-cyan),var(--ut-mint))!important;box-shadow:inset 0 0 0 4px #fff!important}.client-portal-body .member-nav-bar a:nth-child(4),.client-portal-body .member-nav-bar a:nth-child(6){margin-top:25px!important}.client-portal-body .member-nav-bar a:nth-child(4):before,.client-portal-body .member-nav-bar a:nth-child(6):before{position:absolute;left:24px;top:-17px;color:#a8adb2;font-size:8px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}.client-portal-body .member-nav-bar a:nth-child(4):before{content:"Finances"}.client-portal-body .member-nav-bar a:nth-child(6):before{content:"Trading"}
.client-portal-body .member-main{min-height:100vh!important;margin:0!important;padding:70px 0 0 225px!important;background:var(--ut-bg)!important}.client-portal-body .member-content{width:100%!important;max-width:1450px!important;margin:0 auto!important;padding:34px 42px 50px!important}.client-portal-body .member-page-title{min-height:48px!important;display:flex!important;align-items:flex-end!important;margin:0 0 22px!important;padding:0!important;border:0!important;background:transparent!important}.client-portal-body .member-page-title h2,.client-portal-body .account-open-title h1{margin:0 0 3px!important;color:#282b2e!important;font-size:30px!important;font-weight:400!important;letter-spacing:-.035em!important}.client-portal-body .member-page-title small,.client-portal-body .account-open-title p{color:#a1a6ab!important;font-size:10px!important}
.client-portal-body .broker-stat-grid{display:grid!important;grid-template-columns:repeat(5,minmax(120px,1fr))!important;gap:0!important;margin:0 0 24px!important;padding:0!important;border:0!important;border-bottom:2px solid var(--ut-cyan)!important;background:transparent!important}.client-portal-body .broker-stat{min-height:92px!important;margin:0!important;padding:15px 18px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.client-portal-body .stat-icon{display:none!important}.client-portal-body .stat-label{color:#4e5357!important;font-size:10px!important;font-weight:500!important;text-transform:none!important}.client-portal-body .stat-value{margin-top:8px!important;color:var(--ut-cyan)!important;font-size:27px!important;font-weight:500!important;overflow-wrap:anywhere!important}
.client-portal-body .broker-panel{margin:0 0 20px!important;padding:22px 24px!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:0 3px 12px rgba(35,52,68,.035)!important}.client-portal-body .broker-panel-title{min-height:38px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 16px!important;padding:0 0 12px!important;border-bottom:1px solid #edf0f2!important}.client-portal-body .broker-panel-title h5{margin:0!important;color:#2c3034!important;font-size:18px!important;font-weight:500!important}.client-portal-body .broker-panel-title small{display:block!important;color:#a0a5aa!important;font-size:10px!important}.client-portal-body :is(.mt5-ribbon,.account-type-badge){padding:4px 8px!important;border-radius:12px!important;background:#e5faf5!important;color:#13a889!important;font-size:9px!important}
.client-portal-body .client-account-head{display:grid!important;grid-template-columns:minmax(210px,1.5fr) repeat(3,minmax(105px,.7fr)) 155px!important;gap:10px!important;padding:8px 14px!important;color:#9aa0a5!important;font-size:9px!important;text-transform:uppercase!important}.client-portal-body .broker-panel>.row.g-3{display:block!important;margin:0!important}.client-portal-body .broker-panel>.row.g-3>[class*=col-]{width:100%!important;max-width:none!important;padding:0!important}.client-portal-body .trading-account-card{min-height:70px!important;height:auto!important;display:grid!important;grid-template-columns:minmax(210px,1.5fr) repeat(3,minmax(105px,.7fr)) 155px!important;align-items:center!important;gap:10px!important;margin:0!important;padding:10px 14px!important;border:0!important;border-bottom:1px solid #edf0f2!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}.client-portal-body .trading-account-card>.d-flex:first-child{grid-column:1!important;grid-row:1!important;margin:0!important;justify-content:flex-start!important;gap:10px!important}.client-portal-body .trading-account-card>p{grid-column:1!important;grid-row:1!important;margin:0 0 0 74px!important;font-size:10px!important;font-weight:400!important;color:#8e9499!important}.client-portal-body .trading-account-card>.account-login{grid-column:1!important;grid-row:1!important;margin:30px 0 0!important;color:#168ebc!important;font-size:12px!important;text-align:left!important}.client-portal-body .trading-account-card>.d-flex:nth-of-type(2){display:contents!important}.client-portal-body .trading-account-card .account-source{grid-column:4!important;grid-row:1!important;color:#7b8287!important;font-size:10px!important}.client-portal-body .trading-account-card .text-end{grid-column:2!important;grid-row:1!important;text-align:left!important}.client-portal-body .trading-account-card .account-balance{font-size:15px!important;color:#292d31!important}.client-portal-body .trading-account-card>.d-flex:last-child{grid-column:5!important;grid-row:1!important;margin:0!important}.client-portal-body .trading-account-card .btn{height:35px!important;min-height:35px!important;border:0!important;border-radius:0!important;background:linear-gradient(120deg,var(--ut-cyan),var(--ut-mint))!important;color:#fff!important}.client-portal-body .trading-account-card .btn-outline-secondary{display:none!important}.client-portal-body .new-account-card{min-height:58px!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;margin:12px 0 0!important;padding:8px 0!important;border:1px dashed #d6dade!important;border-radius:0!important;background:#fafafa!important;box-shadow:none!important}.client-portal-body .new-account-card>div{display:flex!important;align-items:center!important;gap:10px!important;padding-right:14px!important}.client-portal-body .new-account-card .plus,.client-portal-body .new-account-card small{display:none!important}.client-portal-body .new-account-card b{margin:0!important;font-size:11px!important}.client-portal-body .new-account-card .btn{border-color:var(--ut-cyan)!important;border-radius:0!important;color:var(--ut-cyan)!important}
.client-portal-body :is(.account-builder,.account-summary,.existing-account,.surface-soft,.selectable-card){border:1px solid var(--ut-line)!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}.client-portal-body .broker-form-grid{display:grid!important;grid-template-columns:repeat(3,minmax(180px,1fr))!important;gap:16px!important}.client-portal-body label{color:#737a80!important;font-size:10px!important;font-weight:500!important}.client-portal-body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,.form-control,.form-select){width:100%!important;height:44px!important;min-height:44px!important;padding:8px 12px!important;border:1px solid #d8dcdf!important;border-radius:0!important;background:#fff!important;color:#303438!important;font-size:12px!important;box-shadow:none!important}.client-portal-body textarea,.client-portal-body textarea.form-control{width:100%!important;min-height:90px!important;padding:10px 12px!important;border:1px solid #d8dcdf!important;border-radius:0!important}.client-portal-body :is(input,select,textarea):focus{border-color:var(--ut-cyan)!important;outline:2px solid rgba(18,169,223,.1)!important}.client-portal-body :is(.btn-broker,.btn-primary,.account-submit){min-height:40px!important;border:0!important;border-radius:0!important;background:linear-gradient(120deg,var(--ut-cyan),var(--ut-mint))!important;color:#fff!important;box-shadow:none!important}.client-portal-body :is(.rounded-pill,.rounded-3){border-radius:0!important}.client-portal-body .account-flow{display:grid!important;grid-template-columns:minmax(0,1fr) 300px!important;gap:16px!important}.client-portal-body .account-type-card{border-radius:0!important}.client-portal-body .account-type input:checked+.account-type-card{border-color:var(--ut-cyan)!important;background:#f2fcfd!important;box-shadow:inset 3px 0 var(--ut-mint)!important}.client-portal-body .account-step,.client-portal-body .existing-account-icon{border-radius:0!important;background:#e9f9fc!important;color:var(--ut-cyan)!important}.client-portal-body .account-summary{top:92px!important}.client-portal-body .broker-table-wrap{width:100%!important;max-width:100%!important;overflow:auto!important;-webkit-overflow-scrolling:touch}.client-portal-body .broker-table{min-width:max-content!important}.client-portal-body .broker-table th{padding:10px 12px!important;background:#fafbfb!important;color:#9ba1a6!important;border-bottom:1px solid #e6e9eb!important;font-size:9px!important;font-weight:500!important}.client-portal-body .broker-table td{padding:12px!important;background:#fff!important;color:#383c40!important;border-bottom:1px solid #eceeef!important;font-size:11px!important}.client-portal-body .broker-table tbody tr:nth-child(even) td{background:#fff!important}.client-portal-body .broker-table tbody tr:hover td{background:#f5fcfd!important}.client-portal-body .broker-empty{min-height:120px!important;border:1px dashed #d7dbde!important;border-radius:0!important;background:#fff!important;color:#a1a6aa!important;box-shadow:none!important}.client-portal-body .modal-content,.client-portal-body .dropdown-menu{border:1px solid var(--ut-line)!important;border-radius:0!important;box-shadow:0 14px 35px rgba(35,52,68,.12)!important}.client-portal-body .impersonation-banner{top:70px!important;left:225px!important}.client-portal-body.impersonating .member-main{padding-top:calc(70px + var(--impersonation-height,34px))!important}.client-portal-body .member-nav-toggle{display:none!important}
@media(max-width:1050px){.client-portal-body .member-content{padding:28px 24px 45px!important}.client-portal-body .broker-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.client-portal-body .account-flow{grid-template-columns:1fr!important}.client-portal-body .account-summary{position:static!important}.client-portal-body .broker-form-grid{grid-template-columns:repeat(2,minmax(160px,1fr))!important}}
@media(max-width:760px){.client-portal-body .member-header-top{height:58px!important;padding:0 10px!important}.client-portal-body .member-logo{height:58px!important}.client-portal-body .member-brand:before,.client-portal-body .member-brand:after{font-size:16px!important}.client-portal-body .member-nav-toggle{display:grid!important;width:36px!important;height:36px!important;min-height:36px!important;place-items:center!important;border:1px solid #dce1e4!important;border-radius:0!important;background:#fff!important;color:#394047!important}.client-portal-body .member-nav-bar{inset:58px auto 0 0!important;width:min(280px,86vw)!important;display:block!important;padding-top:18px!important;transform:translateX(-105%)!important;transition:transform .2s ease!important;box-shadow:8px 0 26px rgba(25,43,57,.14)!important}.client-portal-body .member-nav-bar.open{display:block!important;transform:none!important}.client-portal-body .member-main{padding:58px 0 0!important}.client-portal-body .member-content{padding:22px 12px 36px!important}.client-portal-body .member-page-title h2,.client-portal-body .account-open-title h1{font-size:24px!important}.client-portal-body .broker-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.client-portal-body .broker-panel{padding:15px!important}.client-portal-body .client-account-head{display:none!important}.client-portal-body .trading-account-card{display:grid!important;grid-template-columns:1fr auto!important;grid-template-rows:auto auto auto auto!important;gap:7px!important;padding:13px!important;border:1px solid var(--ut-line)!important;margin-bottom:8px!important}.client-portal-body .trading-account-card>.d-flex:first-child{grid-column:1/3!important}.client-portal-body .trading-account-card>p{grid-column:1/3!important;grid-row:2!important;margin:0!important}.client-portal-body .trading-account-card>.account-login{grid-column:1!important;grid-row:3!important;margin:0!important}.client-portal-body .trading-account-card .text-end{grid-column:2!important;grid-row:2/4!important}.client-portal-body .trading-account-card .account-source{display:none!important}.client-portal-body .trading-account-card>.d-flex:last-child{grid-column:1/3!important;grid-row:4!important}.client-portal-body .new-account-card{justify-content:center!important}.client-portal-body .broker-form-grid{grid-template-columns:1fr!important}.client-portal-body .impersonation-banner{top:58px!important;left:0!important}.client-portal-body.impersonating .member-main{padding-top:calc(58px + var(--impersonation-height,34px))!important}}

.client-portal-body .trading-account-card .account-equity{grid-column:3!important;grid-row:1!important;color:#292d31!important;font-size:11px!important}.client-portal-body .trading-account-card .account-leverage{grid-column:4!important;grid-row:1!important;color:#292d31!important;font-size:11px!important}.client-portal-body .trading-account-card .account-equity small,.client-portal-body .trading-account-card .account-leverage small{display:none!important}.client-portal-body .trading-account-card .account-equity strong,.client-portal-body .trading-account-card .account-leverage strong{font-size:14px!important;font-weight:500!important}.client-portal-body .trading-account-card .account-equity span{color:#7b8287!important;font-size:10px!important}.client-portal-body .trading-account-card .account-source{display:none!important}
@media(max-width:760px){.client-portal-body .trading-account-card .account-equity{grid-column:1!important;grid-row:4!important}.client-portal-body .trading-account-card .account-leverage{grid-column:2!important;grid-row:4!important;text-align:right!important}.client-portal-body .trading-account-card>.d-flex:last-child{grid-column:1/3!important;grid-row:5!important}.client-portal-body .trading-account-card .account-equity small,.client-portal-body .trading-account-card .account-leverage small{display:block!important;color:#8a9299!important;font-size:9px!important;text-transform:uppercase!important}}

/* Functional route icons replace the former anonymous square placeholders. */
.client-portal-body .member-nav-bar .member-nav-mark{display:inline-grid!important;width:18px!important;height:18px!important;flex:0 0 18px!important;place-items:center!important;border:0!important;border-radius:0!important;background:transparent!important;color:#89939a!important;box-shadow:none!important;font-size:14px!important;line-height:1!important;transform:none!important;opacity:1!important}.client-portal-body .member-nav-bar a:hover .member-nav-mark,.client-portal-body .member-nav-bar a.active .member-nav-mark{border:0!important;background:transparent!important;color:var(--ut-mint)!important;box-shadow:none!important}
@media(max-width:480px){.client-portal-body .member-user-btn>span:last-child{display:none!important}.client-portal-body .broker-stat-grid{grid-template-columns:1fr!important}.client-portal-body .account-type-grid,.client-portal-body .existing-account-grid{grid-template-columns:1fr!important}}

/* Client workspace interaction and viewport safety. */
.client-portal-body .member-content,.client-portal-body .broker-panel,.client-portal-body .broker-panel>*{min-width:0!important;max-width:100%!important}
.client-portal-body .account-settings-link{position:relative!important;z-index:5!important;display:inline-grid!important;width:34px!important;height:34px!important;flex:0 0 34px!important;place-items:center!important;margin-left:auto!important;border:1px solid #dfe4e7!important;background:#fff!important;color:#59636b!important;pointer-events:auto!important;cursor:pointer!important}
.client-portal-body .account-settings-link:hover,.client-portal-body .account-settings-link:focus-visible{border-color:var(--ut-cyan)!important;color:var(--ut-cyan)!important;outline:2px solid rgba(18,169,223,.14)!important}
.client-portal-body .trading-account-card>p{pointer-events:none!important}
.client-portal-body .trade-modal .modal-dialog{width:min(900px,calc(100vw - 32px))!important;max-width:900px!important;margin:16px auto!important}
.client-portal-body .trade-modal{z-index:2100!important}
.client-portal-body .modal-backdrop{z-index:2090!important}
.client-portal-body .trade-modal .modal-content{max-height:calc(100dvh - 32px)!important;overflow:hidden!important}
.client-portal-body .trade-modal .modal-header{flex:0 0 auto!important;padding:14px 16px!important}
.client-portal-body .trade-modal .modal-body{min-height:0!important;padding:14px 16px!important;overflow:auto!important;overscroll-behavior:contain!important}
.client-portal-body .trade-modal .broker-table-wrap{max-height:32dvh!important;overflow:auto!important}
.client-portal-body .trade-modal .broker-table{min-width:760px!important}
.client-portal-body .broker-panel-title>*{min-width:0!important}.client-portal-body .broker-panel-title small{overflow-wrap:anywhere!important}
.client-portal-body .broker-form-grid,.client-portal-body .account-controls,.client-portal-body .account-type-grid,.client-portal-body .existing-account-grid{max-width:100%!important}
.client-portal-body .data-toolbar{min-width:0!important;max-width:100%!important;flex-wrap:wrap!important}
.client-portal-body .broker-table-wrap{max-width:100%!important;overflow-x:auto!important}
@media(max-width:760px){
 .client-portal-body .member-content{width:100%!important;max-width:100%!important;padding:14px 10px 32px!important}
 .client-portal-body .broker-panel{padding:12px!important;overflow:hidden!important}
 .client-portal-body .broker-panel-title{align-items:flex-start!important;flex-wrap:wrap!important}
 .client-portal-body .mt5-ribbon{max-width:100%!important;white-space:normal!important}
 .client-portal-body .trading-account-card>.d-flex:first-child{position:relative!important;z-index:4!important;align-items:center!important}
 .client-portal-body .account-settings-link{width:40px!important;height:40px!important;flex-basis:40px!important}
 .client-portal-body .trade-modal .modal-dialog{width:calc(100vw - 12px)!important;max-width:none!important;margin:6px auto!important}
 .client-portal-body .trade-modal .modal-content{height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important}
 .client-portal-body .trade-modal .modal-body{padding:10px!important}
 .client-portal-body .trade-modal .broker-table-wrap{max-height:34dvh!important}
 .client-portal-body .account-controls,.client-portal-body .broker-form-grid{grid-template-columns:minmax(0,1fr)!important}
 .client-portal-body .data-toolbar>*{width:100%!important;max-width:100%!important}
}
.client-portal-body .trading-account-card>.account-login{position:relative!important;z-index:20!important;display:inline-block!important;grid-column:1!important;grid-row:2!important;margin:0!important;pointer-events:auto!important;cursor:pointer!important;touch-action:manipulation!important}
 .client-portal-body #tradeHistoryModal{z-index:2100!important}.client-portal-body #tradeHistoryModal.show{display:block!important;visibility:visible!important}.client-portal-body #tradeHistoryModal .modal-dialog{position:relative!important;z-index:2101!important}
@media(max-width:430px){
 .client-portal-body .broker-stat-grid{grid-template-columns:minmax(0,1fr)!important}
 .client-portal-body .broker-stat{border-right:0!important}
 .client-portal-body .trading-account-card{grid-template-columns:minmax(0,1fr) auto!important}
 .client-portal-body .trading-account-card .text-end{max-width:48vw!important;overflow-wrap:anywhere!important}
}
.client-portal-body .trading-account-card>.account-card-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;margin:0!important}.client-portal-body .trading-account-card .account-password-form{display:block!important;margin:0!important}.client-portal-body .trading-account-card .btn-account-password{display:block!important;background:#eef9fc!important;color:#087ea4!important;border:1px solid #b9e8f1!important}
.client-portal-body .account-password-modal{z-index:2100!important}.client-portal-body .account-password-modal .modal-dialog{width:min(480px,calc(100vw - 24px))!important;max-width:480px!important;margin:12px auto!important}.client-portal-body .account-password-modal .modal-content{height:auto!important;min-height:0!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important}.client-portal-body .account-password-modal .modal-body{padding:20px!important}.client-portal-body .account-password-modal .input-group{display:flex!important;flex-wrap:nowrap!important}.client-portal-body .account-password-modal .input-group .btn{width:auto!important;flex:0 0 auto!important}
