/* Trading and Portfolio only: presentation layer for the approved study scenes. */
.workspace-commands summary{cursor:pointer;color:#b9cecc;font-size:12px;padding:7px 0;min-height:32px}
.workspace-commands[open]{padding-bottom:10px}
.workspace-commands>div{margin-top:8px}
@media(min-width:1201px){body.ft-scene #section-history .pf-v2-alloc-body{flex-direction:row!important;flex-wrap:nowrap!important;gap:16px!important}body.ft-scene #section-history .pf-v2-donut{flex:0 0 145px!important;width:145px!important;height:145px!important}body.ft-scene #section-history .pf-v2-asset-slots{min-width:90px;flex:1}body.ft-scene #section-history .pf-v2-allocation{padding-left:18px!important}}
body.ft-scene #section-trading .trd-vnext-head{order:0!important}
body.ft-scene #section-trading .trd-v2-hero-grid{order:1!important}
body.ft-scene #section-trading .trd-v2-search-card{order:0!important}
body.ft-scene #section-trading .trd-stats-row{order:1!important}
body.ft-scene #section-trading .trd-v2-tabs-row{order:2!important}
body.ft-scene #section-trading [id^=trd-panel-]{order:3!important}
body.ft-scene #section-history .pf-kpi-strip{border:0!important}
body.ft-scene #section-history .pf-kpi-strip>.pf-kpi{display:block!important}
body.ft-scene:is([data-page=trading],[data-page=portfolio]){--scene-rail:278px}
body.ft-scene:is([data-page=trading],[data-page=portfolio]) #dash-main>div:nth-child(2){padding:20px 28px 160px!important}
body.ft-scene:is([data-page=trading],[data-page=portfolio]) #right-rail-aside{width:250px!important;right:18px!important;top:270px!important}
body.ft-scene :is(.trd-v2-shell,.pf-v2-shell){padding:0!important;background:transparent!important;border-radius:0!important;max-width:1440px;margin:auto}
body.ft-scene :is(.trd-vnext-head,.pf-v2-header){min-height:118px;align-items:center;margin:0!important;padding:14px 8px 24px!important}
body.ft-scene :is(.trd-vnext-title,.pf-h1){font-size:clamp(30px,3vw,44px)!important;letter-spacing:-1px;line-height:1.3!important}
body.ft-scene :is(.trd-vnext-sub,.pf-sub){font-size:14px!important;line-height:1.7;color:#b7c9cc!important}
body.ft-scene #section-trading .trd-v2-hero-grid{display:flex!important;flex-direction:column;gap:22px!important}
body.ft-scene #section-trading .trd-v2-search-card{padding:0!important;max-width:610px;width:100%;overflow:visible!important}
body.ft-scene #section-trading .trd-v2-card-head{margin-bottom:8px!important}
body.ft-scene :is(.trd-v2-eyebrow,.trd-v2-shortcut,.trd-v2-search-note){display:none!important}
body.ft-scene #section-trading .trd-account-searchbox{background:#07191dd9!important;border:1px solid #a9c8c63d!important;border-radius:7px!important;padding:3px 12px!important}
body.ft-scene #section-trading .trd-account-searchbox input{background:transparent!important;font-size:15px!important}
body.ft-scene #section-trading .trd-stats-row{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));padding:23px 12px!important;background:#081b20e8!important;border:1px solid #a2c8c01c!important;border-radius:8px!important;gap:0!important}
body.ft-scene #section-trading .trd-stat{background:none!important;border:0!important;border-right:1px solid #8baea435!important;border-radius:0!important;padding:2px 20px!important;box-shadow:none!important}
body.ft-scene #section-trading .trd-stat:last-child{border-right:0!important}
body.ft-scene #section-trading .trd-stat__icon{color:#78c7ae!important;opacity:.8}
body.ft-scene #section-trading .trd-v2-tabs-row{padding:16px 0!important;margin:0!important;gap:12px;flex-wrap:wrap}
body.ft-scene #section-trading .trd-frame{border:0!important;border-radius:0!important;background:#06171deb!important;box-shadow:none!important;overflow:visible!important}
body.ft-scene #section-trading .trd-frame__head{background:none!important;border-bottom:1px solid #abc6c12e!important;padding:20px 16px!important;gap:16px;flex-wrap:wrap}
body.ft-scene #section-trading .trd-frame__title{font-size:19px!important}
body.ft-scene #section-trading .trd-frame table{width:100%!important;min-width:820px!important}
body.ft-scene #section-trading .trd-frame table :is(th,td){font-family:'Noto Sans Thai',sans-serif!important;font-size:13px!important;padding:16px 12px!important;background:transparent!important;border-bottom:1px solid #a5c4be26!important}
body.ft-scene #section-trading .trd-frame table th{color:#9fb9bf!important;font-weight:500!important;font-size:12px!important;text-transform:none!important}
body.ft-scene #section-trading .trd-frame table tr:hover{background:#aad9c606!important}
body.ft-scene #section-trading .trd-frame table td button{min-height:36px!important;border-radius:6px!important;font-size:12px!important}
body.ft-scene #section-trading .trd-frame .overflow-x-auto{overflow-x:auto!important}
body.ft-scene :is(.trd-v2-shell,.pf-v2-shell){font-variant-numeric:tabular-nums}
body.ft-scene #section-history .pf-v2-shell{background:#07171ee8!important;padding:22px!important;border-radius:5px!important}
body.ft-scene #section-history .pf-v2-header{min-height:70px;padding-top:0!important}
body.ft-scene #section-history .pf-v2-head-actions{gap:12px;flex-wrap:wrap}
body.ft-scene #section-history .pf-v2-live{display:none!important}
body.ft-scene #history-account-select{min-width:210px;max-width:100%;border-radius:5px!important;border-color:#97bfca40!important}
body.ft-scene #section-history .pf-kpi-strip{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;padding:0!important;margin:0 0 18px!important}
body.ft-scene #section-history .pf-kpi{border:0!important;border-right:1px solid #96bac52b!important;padding:8px 18px!important;min-height:0!important;background:transparent!important}
body.ft-scene #section-history .pf-kpi:last-child{border:0!important}
body.ft-scene #section-history .pf-kpi--hero{grid-column:1/-1!important;position:relative;padding:4px 0 12px!important;border-right:0!important;border-bottom:1px solid #96bac52b!important;margin-bottom:10px}
body.ft-scene #portfolio-total{font-size:clamp(32px,3.8vw,52px)!important;line-height:1.5!important;font-weight:500!important}
body.ft-scene #section-history .pf-spark{display:none!important}
body.ft-scene #section-history .pf-v2-subnav{margin:0!important;overflow-x:auto;flex-wrap:nowrap!important;gap:20px!important;scrollbar-width:thin}
body.ft-scene #section-history .pf-v2-subnav button{white-space:nowrap;font-size:14px!important;border-radius:0!important;min-height:42px!important}
body.ft-scene #section-history .pf-v2-main-grid{display:grid!important;grid-template-columns:minmax(0,1.65fr) minmax(230px,1fr)!important;gap:24px!important;margin-top:18px!important}
body.ft-scene #section-history .pf-card{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;min-width:0}
body.ft-scene #section-history .pf-card-title{font-size:17px!important;font-weight:500!important;color:#dce8ed!important}
body.ft-scene #section-history .pf-v2-allocation{border-left:1px solid #96bac52b!important;padding-left:24px!important}
body.ft-scene #section-history .pf-v2-chart{height:205px!important}
body.ft-scene #section-history .pf-v2-alloc-body{display:flex!important;flex-direction:column;align-items:center;gap:20px!important}
body.ft-scene #section-history .pf-v2-asset-slots{width:100%}
body.ft-scene #section-history .pf-v2-intel-strip{display:flex!important;justify-content:flex-end;gap:24px!important;background:none!important;border:0!important;padding:20px 0!important}
body.ft-scene #section-history .pf-v2-intel-strip>div{background:none!important;border:0!important;padding:0!important;display:flex;gap:10px;align-items:baseline}
body.ft-scene #section-history .pf-v2-intel-strip>div:nth-child(-n+4),body.ft-scene #section-history .pf-v2-intel-strip>div:last-child{display:none!important}
body.ft-scene :is(.pf-v2-positions,.pf-v2-calendar,.pf-v2-monthly,.pf-v2-bottom-grid){border-top:1px solid #96bac52b!important;padding-top:24px!important;margin-top:24px!important}
body.ft-scene #section-history .pf-table :is(th,td){background:transparent!important;padding:14px 10px!important;font-size:13px!important;border-bottom:1px solid #96bac525!important}
body.ft-scene #section-history .pf-table th{font-size:12px!important;color:#a8c0c7!important;text-transform:none!important;font-weight:500!important}
@media(max-width:1200px){body.ft-scene #section-history .pf-v2-main-grid{grid-template-columns:minmax(0,1fr)!important}body.ft-scene #section-history .pf-v2-allocation{border-left:0!important;border-top:1px solid #96bac52b!important;padding:20px 0 0!important}body.ft-scene #section-history .pf-v2-alloc-body{flex-direction:row;flex-wrap:wrap}body.ft-scene #section-history .pf-v2-asset-slots{flex:1;min-width:160px}}
@media(max-width:1023px){body.ft-scene:is([data-page=trading],[data-page=portfolio]) #dash-main>div:nth-child(2){padding:12px 12px 32px!important}body.ft-scene #section-history .pf-v2-shell{padding:16px!important}body.ft-scene #section-history .pf-v2-header{align-items:flex-start;gap:18px;flex-direction:column}body.ft-scene #section-trading .trd-stats-row{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:20px!important}body.ft-scene #section-trading .trd-stat{padding:0 14px!important}body.ft-scene #section-trading .trd-stat:nth-child(2){border-right:0!important}body.ft-scene #section-history .pf-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.ft-scene #section-history .pf-kpi{padding:10px!important}body.ft-scene #section-history .pf-kpi__val{font-size:19px!important}body.ft-scene #section-history .pf-v2-intel-strip{justify-content:flex-start;flex-wrap:wrap}body.ft-scene #section-history .pf-v2-subnav{gap:14px!important}body.ft-scene #section-trading .trd-frame{border-radius:8px!important}body.ft-scene #section-trading .trd-acct-card{background:#0a2025e8!important;border-color:#93b6ad2b!important;padding:18px!important}body.ft-scene #section-history .pf-v2-periods{flex-wrap:wrap}}
