/* Desktop terminal prioritizes the chart; secondary panels stay collapsible. */
@media(min-width:1000px){
 #terminalApp>header{height:64px;min-height:64px;padding:8px 16px;gap:10px;box-sizing:border-box}#terminalApp>header .ibroker-brand-logo{width:128px}#terminalApp>header>nav>button{font-size:11px;padding:7px 9px;min-height:34px;height:34px}#terminalApp>header>.account strong{font-size:17px}#terminalApp>header .mode-switch button{min-height:27px;padding:4px 8px}#terminalApp>header>.primary{min-height:35px;padding:8px 14px}
 #terminalApp .shell{padding:8px 10px 4px 6px;gap:10px}#terminalApp .rail{width:54px;gap:9px}#terminalApp .rail>button{min-height:55px;padding:10px 3px;border-radius:6px;font-size:9px}
 #trade{gap:8px!important;grid-template-columns:216px minmax(0,1fr) 202px!important;align-items:start}#trade.asset-menu-closed{grid-template-columns:minmax(0,1fr) 202px!important}#trade>.watch{max-height:var(--desktop-workspace-height,calc(100dvh - 100px));overflow-y:auto}#trade>.watch,#trade .chart-panel,#trade>.ticket>.panel{border-radius:4px}
 #trade>.workspace{height:var(--desktop-workspace-height,calc(100dvh - 100px));min-height:390px;display:flex;flex-direction:column;gap:6px;min-width:0}#trade>.workspace>.chart-panel{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}#trade .instrument{padding:9px 12px;min-height:43px;box-sizing:border-box;gap:9px}#trade .instrument #pair{font-size:12px}#trade .instrument #price{font-size:17px}#trade .instrument #change{font-size:10px}#trade .toolbar{padding:6px 9px;min-height:38px}#trade .toolbar button,#trade .toolbar select{min-height:29px;font-size:10px;padding:5px 7px}
 #trade .chart-wrap{flex:1;min-height:180px}#trade .chart-wrap .plot{height:auto!important;min-height:180px!important;flex:1}#trade .plot canvas{position:absolute;inset:0;width:100%!important;height:100%!important}#trade .chart-foot{flex-shrink:0;padding:5px 10px;min-height:24px;font-size:9px;box-sizing:border-box}#trade .chart-foot .marker-legend{display:none}
 #trade.desktop-studies-hidden #volumePane,#trade.desktop-studies-hidden #rsiPane{display:none!important}#trade .indicator{height:58px;flex-shrink:0}#trade .indicator canvas{height:40px}
 #trade .positions{flex-shrink:0;margin:0;border-radius:4px;overflow:hidden}#trade .positions .tabs{min-height:32px;padding:0 8px}#trade .positions .tabs button{font-size:10px;padding:6px 8px;min-height:30px}#trade .positions .table-wrap{max-height:170px}#trade .positions #empty{padding:20px;font-size:11px}#trade .positions table td{padding:9px 10px}
 #trade>.ticket{max-height:var(--desktop-workspace-height,calc(100dvh - 100px));overflow-y:auto;scrollbar-width:thin}#trade .ticket>.summary{display:none}#trade .ticket .order{padding:14px 12px}#trade .order h2{font-size:10px;margin:0 0 10px}#trade .order h3{font-size:16px;margin:0 0 17px}#trade .order-field{margin:0 0 14px}#trade .order-field>label{font-size:10px;margin-bottom:6px}#trade .order .expiry-row{gap:6px}#trade .order select{min-height:39px;padding:8px;font-size:11px}#trade .order #countdown{width:40px;height:40px;font-size:10px;border-width:1px}#trade .order .amount{min-height:42px}#trade .order .amount input{font-size:18px;width:55px;padding:7px 3px}#trade .order .amount button{padding:7px;min-width:24px}#trade .quick-values{gap:4px}#trade .quick-values button{font-size:9px;padding:6px 3px;min-height:27px}#trade .returns{margin:18px 0;padding:0;gap:8px}#trade .returns small{font-size:8px}#trade .returns strong{font-size:22px;letter-spacing:-.03em}#trade .order .call,#trade .order .put{min-height:47px;font-size:11px;border-radius:5px;margin-bottom:8px}#trade .order .call small,#trade .order .put small{font-size:9px}#trade .sentiment{margin-top:16px;padding-top:14px}#trade .sentiment small,#trade .sentiment>div:last-child{font-size:9px}#trade .sentiment b{font-size:15px}
 #terminalApp~footer,body>footer{font-size:9px;padding:4px 12px;min-height:18px;box-sizing:border-box}
 .th-drawer{left:70px;top:72px;bottom:26px;width:248px}#trade.history-drawer-open{margin-left:258px;width:calc(100% - 258px);grid-template-columns:minmax(0,1fr) 202px!important}
 #desktopStudiesToggle{font-size:9px;padding:5px 7px;min-height:28px;background:#111;color:#aaa;border:1px solid #333;border-radius:4px}#desktopStudiesToggle[aria-expanded=true]{color:#fff;background:#272727}
}
@media(min-width:1000px) and (max-width:1240px){#terminalApp>header .ibroker-brand-logo{width:108px}#terminalApp>header>nav{gap:0}#terminalApp>header>nav>button{padding-inline:6px;font-size:10px}#terminalApp>header>.account{padding-left:10px}#trade,#trade.asset-menu-closed,#trade.history-drawer-open{grid-template-columns:minmax(0,1fr) 180px!important}#trade:not(.asset-menu-closed):not(.history-drawer-open){grid-template-columns:190px minmax(0,1fr) 180px!important}}
@media(max-width:999px){#desktopStudiesToggle{display:none}}
