
/* Trading Terminal V2: compact high-signal visual shell. Legacy research panels remain accessible. */
#trading-command-shell .td4-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px;position:sticky;top:138px;background:#0a1421;z-index:39;border:1px solid #24364a;border-radius:14px}
#trading-command-shell .td4-primary-nav{display:flex;flex:1;gap:5px;overflow:auto;scrollbar-width:thin}
#trading-command-shell .td4-primary-nav button{border:0;background:transparent;color:#95aabd;white-space:nowrap;min-width:95px;border-radius:9px;padding:12px 14px;font-size:13px;font-weight:700;cursor:pointer}
#trading-command-shell .td4-primary-nav button.active{background:#273b4d;color:#f3c35c}
#trading-command-shell .td4-nav-tools{display:flex;gap:6px;align-items:center}
#trading-command-shell .td4-nav-tools select,#trading-command-shell .td4-nav-tools button{border:1px solid #334459;border-radius:8px;background:#111f2e;color:#cbd6e1;padding:10px;font-size:12px;cursor:pointer}
#trading-command-shell .td4-terminal{display:grid;gap:18px;max-width:1650px;margin:auto}
#trading-command-shell .td4-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid #2c3b4a;padding:24px;border-radius:18px;background:linear-gradient(115deg,#122b3d,#0d1725)}
#trading-command-shell .td4-hero h1{font-size:28px;line-height:1.1;margin:8px 0}
#trading-command-shell .td4-hero p{font-size:13px;line-height:1.55;color:#aabcca;max-width:700px}
#trading-command-shell .td4-hero-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#trading-command-shell .td4-mode{font-size:10px;font-weight:900;letter-spacing:.1em;color:#e9c872;border:1px solid #876c3d;background:rgba(220,160,58,.08);padding:9px 12px;border-radius:8px;white-space:nowrap}
#trading-command-shell .td4-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#trading-command-shell .td4-stat-grid .td3-metric{padding:18px}
#trading-command-shell .td4-stat-grid .td3-metric>b{font-size:26px;letter-spacing:-.03em}
#trading-command-shell .td4-overview-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,1fr);gap:16px;align-items:start}
#trading-command-shell .td4-overview-grid .td3-panel{min-height:280px;margin:0}
#trading-command-shell .td4-equity{width:100%;height:170px;background:repeating-linear-gradient(0deg,transparent 0 38px,rgba(255,255,255,.035) 39px 40px);margin-top:14px}
#trading-command-shell .td4-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}
#trading-command-shell .td4-section-head h2{font-size:18px;margin:0}
#trading-command-shell .td4-section-head p{color:#90a4b7;font-size:12px;margin:3px 0}
#trading-command-shell .td4-alerts{display:grid;gap:9px;max-height:340px;overflow:auto}
#trading-command-shell .td4-alert{border:1px solid #314154;border-left:3px solid #d7a74a;border-radius:10px;padding:11px;display:grid;gap:5px}
#trading-command-shell .td4-alert b{font-size:13px}
#trading-command-shell .td4-alert small{font-size:11px;color:#93a7b5}
#trading-command-shell .td4-terminal .td3-table{font-size:13px}
#trading-command-shell .td4-terminal .td3-table th{font-size:10px;padding:12px}
#trading-command-shell .td4-terminal .td3-table td{padding:13px 12px}
#trading-command-shell .td4-action-strip{display:flex;align-items:center;gap:14px;background:#17263a;border-radius:12px;border:1px solid #334458;padding:13px 16px}
#trading-command-shell .td4-action-strip span{color:#a9bbca;font-size:12px}
#trading-command-shell .td4-legacy{border:1px solid #2c4153;padding:13px;border-radius:12px}
#trading-command-shell .td4-legacy>summary{font-size:13px;color:#ccbc93;font-weight:700;cursor:pointer;padding:9px}
#trading-command-shell .td4-legacy[open] summary{margin-bottom:12px}
#trading-command-shell .td4-ticket{display:grid;gap:16px;padding:16px 0}
#trading-command-shell .td4-ticket p{color:#9ab0c1;font-size:13px;line-height:1.55}
#trading-command-shell .td4-field{display:grid;gap:7px;font-size:13px;color:#bacada;font-weight:700}
#trading-command-shell .td4-field input,#trading-command-shell .td4-field select,#trading-command-shell .td4-field textarea{min-width:0;width:100%;background:#122439;border:1px solid #416074;border-radius:9px;color:#f1f5f9;font-size:14px;padding:12px}
#trading-command-shell .td4-ticket-reference{display:grid;gap:4px;font-size:13px}
#trading-command-shell .td4-ticket-reference span{color:#91a6b5;overflow-wrap:anywhere}
#trading-command-shell .td4-ticket-actions{display:flex;gap:12px}
#trading-command-shell .td4-ticket-actions button{font-size:13px;flex:1;padding:13px}
#trading-command-shell .td4-ticket-actions button:disabled{opacity:.45;cursor:not-allowed}
#trading-command-shell #td4-preview-result{font-size:13px;display:grid;gap:8px;color:#c7d4e0}
.shell.td4-light #trading-command-shell{color:#263543}
.shell.td4-light #trading-command-shell .td4-nav,.shell.td4-light #trading-command-shell .td4-hero,.shell.td4-light #trading-command-shell .td3-panel,.shell.td4-light #trading-command-shell .td3-metric,.shell.td4-light #trading-command-shell .td4-action-strip{background:#f2f6f9;color:#273545;border-color:#cbd5df}
.shell.td4-light #trading-command-shell .td4-nav-tools select,.shell.td4-light #trading-command-shell .td4-nav-tools button{background:#e1e9ef;color:#263443}
.shell.td4-light #trading-command-shell .td4-primary-nav button{color:#34536c}
.shell.td4-light #trading-command-shell .td4-primary-nav button.active{background:#d6e3eb;color:#725116}
.shell.td4-light #trading-command-shell .td4-hero p,.shell.td4-light #trading-command-shell .td4-action-strip span{color:#455768}
@media(max-width:1150px){#trading-command-shell .td4-overview-grid{grid-template-columns:1fr}#trading-command-shell .td4-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#trading-command-shell .td4-nav{flex-wrap:wrap}}
@media(max-width:700px){#trading-command-shell .td4-hero{flex-direction:column;align-items:flex-start;padding:18px}#trading-command-shell .td4-stat-grid{grid-template-columns:1fr}#trading-command-shell .td4-primary-nav button{min-width:auto;padding:12px 9px}#trading-command-shell .td4-nav-tools{width:100%;justify-content:space-between}#trading-command-shell .td4-action-strip{flex-direction:column;align-items:flex-start}}

#trading-command-shell .td4-search-label{display:flex;align-items:center;gap:10px;flex:1;font-size:13px;font-weight:700;color:#b7c7d4}
#trading-command-shell .td4-search-label input{flex:1;min-width:180px;max-width:420px;border:1px solid #38526a;border-radius:9px;background:#0a192a;color:#f0f4f7;padding:11px;font-size:13px}
#trading-command-shell .td4-strategy-name{display:block;text-align:left;border:0;padding:0;background:transparent;color:#e5eff6;font-weight:800;font-size:13px;cursor:pointer}
#trading-command-shell .td4-strategy-name+small{display:block;font-size:11px;color:#95aabd;margin-top:5px}
#trading-command-shell .td4-terminal .td3-table button:disabled{opacity:.34;cursor:not-allowed}
.shell.td4-light #trading-command-shell .td4-strategy-name{color:#24394a}
.shell.td4-light #trading-command-shell .td4-search-label{color:#34495c}

#trading-command-shell .td4-research-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#trading-command-shell .td4-research-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,290px);gap:16px;align-items:start}
#trading-command-shell .td4-research-grid .td3-page-head{display:none}
#trading-command-shell .td4-side-panel{position:sticky;top:225px;display:grid;gap:13px;padding:20px;background:#132338;border:1px solid #304457;border-radius:14px}
#trading-command-shell .td4-side-panel h2{font-size:18px;margin:0}
#trading-command-shell .td4-side-panel p{color:#aabbcb;font-size:13px;line-height:1.55;margin:0}
#trading-command-shell .td4-info-note{padding:12px;border:1px solid #4b4233;border-radius:10px}
#trading-command-shell .td4-issue{display:flex;justify-content:space-between;align-items:start;gap:10px;border-bottom:1px solid rgba(167,184,204,.14);padding:13px 0}
#trading-command-shell .td4-issue>div{display:grid;gap:5px;min-width:0}
#trading-command-shell .td4-issue b{font-size:13px}
#trading-command-shell .td4-issue small{font-size:12px;line-height:1.4;color:#9cafc0;overflow-wrap:anywhere}
#trading-command-shell .td4-activity-tape .td3-page-head{display:none}
.shell.td4-light #trading-command-shell .td4-side-panel{background:#f2f6f9;border-color:#cbd5df}
.shell.td4-light #trading-command-shell .td4-side-panel p,.shell.td4-light #trading-command-shell .td4-issue small{color:#435467}
@media(max-width:1150px){#trading-command-shell .td4-research-grid{grid-template-columns:1fr}#trading-command-shell .td4-side-panel{position:static}#trading-command-shell .td4-research-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#trading-command-shell .td4-research-summary{grid-template-columns:1fr}}

#trading-command-shell .td5-chart-panel{min-width:0;overflow:hidden}
#trading-command-shell .td5-chart-controls{display:flex;gap:5px;flex-wrap:wrap;align-items:center}
#trading-command-shell .td5-chart-controls select{background:#101e31;color:#e9f1f5;border:1px solid #41546b;padding:10px;border-radius:8px;max-width:190px}
#trading-command-shell .td5-chart-controls .td3-btn{padding:10px;font-size:12px}
#trading-command-shell .td5-chart{height:370px;background:repeating-linear-gradient(0deg,transparent 0 63px,rgba(175,196,212,.06) 64px 65px);border:1px solid #324455;border-radius:12px;padding:12px;color:#9bafbd;overflow:hidden}
#trading-command-shell .td5-chart svg{display:block;height:100%;width:100%;cursor:crosshair;touch-action:pan-y}
#trading-command-shell .td5-chart-caption{padding:11px;font-size:12px;color:#adbfcd;font-variant-numeric:tabular-nums}
#trading-command-shell .td5-spark{height:38px;width:110px;max-width:100%}
#trading-command-shell .td5-no-sample{color:#8ca2b4;font-size:12px}
.shell.td4-light #trading-command-shell .td5-chart-controls select{background:#f3f7fa;color:#283b4d}
@media(max-width:700px){#trading-command-shell .td5-chart{height:260px}#trading-command-shell .td5-chart-controls{width:100%;justify-content:space-between}}

#trading-command-shell .td6-owner,#trading-command-shell .td6-pct{display:block;margin-top:5px;font-size:11px;font-variant-numeric:tabular-nums}
#trading-command-shell .td6-owner{max-width:245px;color:#93aabe;line-height:1.45}
#trading-command-shell .td6-pct{color:inherit;font-size:12px;font-weight:700}
#trading-command-shell .td6-exits{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
#trading-command-shell .td6-target,#trading-command-shell .td6-stop{display:inline-flex;padding:5px 8px;border-radius:7px;font-size:12px;font-weight:750;white-space:nowrap;font-variant-numeric:tabular-nums}
#trading-command-shell .td6-target{background:rgba(40,194,120,.10);border:1px solid rgba(40,194,120,.30);color:#61dca0}
#trading-command-shell .td6-stop{background:rgba(236,107,117,.10);border:1px solid rgba(236,107,117,.30);color:#fa9da6}
#trading-command-shell .td6-exits+small{display:block;margin-top:5px;color:#93aabe;font-size:10px}
.shell.td4-light #trading-command-shell .td6-owner,.shell.td4-light #trading-command-shell .td6-exits+small{color:#496171}
.shell.td4-light #trading-command-shell .td6-target{color:#116a43}
.shell.td4-light #trading-command-shell .td6-stop{color:#ad3041}
