/* Dense operational information, warm depth and restrained terminal accents. */
.terminal-bar,.terminal-tools,.terminal-tabs{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.terminal-bar{justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:20px}.terminal-tabs button{font-size:12px;padding:11px 14px;border-radius:30px}.terminal-tabs .active{background:var(--ink);color:var(--panel)}.terminal-unit{font:10px Consolas,monospace;letter-spacing:1.8px;color:var(--muted)}.terminal-tools{margin:18px 0;align-items:flex-end}.terminal-tools label{margin:0;min-width:140px}.terminal-tools input{margin-top:5px}.terminal-tools label:first-child{flex:1}.terminal-tools button{margin-bottom:1px}.terminal-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:22px}.terminal-metric{padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--panel);display:flex;flex-direction:column;gap:10px}.terminal-metric strong{font-size:29px;letter-spacing:-1px;font-weight:500;font-variant-numeric:tabular-nums}.terminal-metric small{font-size:11px}.terminal-metric span{font-size:10px;color:var(--muted);line-height:1.5}.terminal-card{border:1px solid var(--line);border-radius:18px;background:var(--panel);padding:24px;margin-bottom:18px;min-width:0}.terminal-card h2{font-size:22px;letter-spacing:-.7px}.terminal-split{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:18px}.terminal-table{font-variant-numeric:tabular-nums}.terminal-table th{font-size:9px;letter-spacing:.5px;padding:14px 10px}.terminal-table td{font-size:12px;padding:16px 10px}.terminal-status{display:inline-block;font-size:10px;letter-spacing:.2px;padding:6px 9px;border:1px solid var(--line);border-radius:6px;white-space:nowrap}.terminal-status.ok{background:#28755914;color:#287559}.terminal-status.watch{background:#b87b2015;color:#9b6619}.terminal-status.intervene{background:#b238321c;color:#b23832;border-color:#b2383266}.terminal-status.unknown{color:var(--muted);border-style:dashed}[data-theme=dark] .terminal-status.ok{color:#98c9ae}[data-theme=dark] .terminal-status.watch{color:#e7bf77}[data-theme=dark] .terminal-status.intervene{color:#ffa094;background:#b2383228}.trader-select{padding:8px 9px;background:transparent;border:0;text-align:left;white-space:nowrap;color:var(--ink);font-weight:600}.trader-select.selected{background:color-mix(in srgb,var(--mint) 15%,var(--panel));color:var(--mint)}.focus-card{background:linear-gradient(150deg,color-mix(in srgb,var(--mint) 6%,var(--panel)),var(--panel));border-top:2px solid var(--mint)}.focus-card>.terminal-status{margin-bottom:16px}.focus-card>p{font-size:12px;line-height:1.8}.focus-card>.primary{width:100%;margin:18px 0 10px}.terminal-foot{font-size:11px;line-height:1.7;padding:8px;color:var(--muted);max-width:950px}.terminal-card progress{width:100%;height:9px;accent-color:#c68c60}.terminal-chart{padding:20px;border:1px solid var(--line);border-radius:14px;color:#c79064;background:repeating-linear-gradient(0deg,transparent,transparent 44px,var(--line) 45px,transparent 46px)}.terminal-chart svg{width:100%;max-height:240px}.terminal-chart small{display:block;text-align:right}.replay-banner{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px 20px;background:#ad643a1a;border:1px solid #bf8c64;border-radius:12px}.replay-banner strong{color:var(--mint)}.replay-banner span{font-size:12px;color:var(--muted)}.replay-banner button{margin-left:auto}.terminal-tools input[type=range]{flex-basis:100%;accent-color:var(--mint)}.journal-form,.group-form{display:grid;gap:16px;margin:20px 0}.journal-form textarea{width:100%;min-height:120px;padding:16px;background:var(--bg);border:1px solid var(--line);border-radius:12px;color:var(--ink);font:inherit;resize:vertical}.journal-note{padding:16px 0;border-top:1px solid var(--line)}.journal-note p{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0}.journal-note small{font-size:11px}.terminal-insight{padding:20px;background:color-mix(in srgb,var(--mint) 8%,var(--panel));border-left:2px solid var(--mint);line-height:1.8}.group-choices{display:flex;gap:12px;flex-wrap:wrap}.group-choices label{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:8px;padding:10px 13px;margin:0}.group-choices input{width:auto;margin:0;accent-color:var(--mint)}.terminal-pane{animation:live-enter .35s ease-out}.terminal-card .table-scroll{margin:12px 0}.terminal-card td{max-width:380px;white-space:normal}.terminal-tools input:focus,.journal-form textarea:focus{outline:2px solid var(--mint);outline-offset:2px}
@media(min-width:1151px){body:has(#terminalView:not([hidden])) .page-heading h1{font-size:36px}body:has(#terminalView:not([hidden])) .page-heading{margin-bottom:24px}}
@media(max-width:1250px){.terminal-split{grid-template-columns:1fr}.focus-card .table-scroll{max-height:340px;overflow:auto}}
@media(max-width:700px){.terminal-metrics{grid-template-columns:1fr 1fr;gap:8px}.terminal-metric{padding:15px}.terminal-metric strong{font-size:24px}.terminal-card{padding:16px}.terminal-tabs{flex-wrap:nowrap;overflow:auto;width:100%}.terminal-tabs button{white-space:nowrap}.terminal-tools label{min-width:120px}.terminal-tools label:first-child{flex-basis:100%}.terminal-unit{display:none}}
@media(prefers-reduced-motion:reduce){.terminal-pane{animation:none}}
[data-motion=reduced] .terminal-pane{animation:none}
.replay-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin-top:20px}.heat-loss,.heat-profit,.heat-unknown{display:block;min-width:65px;padding:8px;border-radius:4px;font-variant-numeric:tabular-nums}.heat-loss{background:#b23e351c;color:#b23e35}.heat-profit{background:#2d79511c;color:#2d7951}.heat-unknown{color:var(--muted);border:1px dashed var(--line)}[data-theme=dark] .heat-loss{color:#ffa395;background:#b23e3538}[data-theme=dark] .heat-profit{color:#a3d8bb;background:#2d795138}
body:has(#terminalView:not([hidden])) main{padding-top:8px}body:has(#terminalView:not([hidden])) .page-heading{margin-bottom:14px;gap:10px}body:has(#terminalView:not([hidden])) .page-heading h1{font-size:28px;margin-bottom:6px}body:has(#terminalView:not([hidden])) .page-heading .eyebrow{font-size:8px;margin-bottom:8px}body:has(#terminalView:not([hidden])) .heading-actions{display:none}.terminal-bar{margin-bottom:10px;padding-bottom:10px}.terminal-tools{margin:10px 0}.terminal-tools input{padding:9px 12px}.terminal-metric{padding:14px 18px;gap:7px}.terminal-metric strong{font-size:26px}.terminal-metrics{margin-bottom:16px}.terminal-card{padding:20px}.terminal-card h2{margin-bottom:10px}

/* Sem's desk: the live session is the canvas, follow-up stays within reach. */
.desk-management{position:relative}.desk-management>summary{list-style:none;cursor:pointer;white-space:nowrap;padding:13px 15px;font-size:12px;color:var(--muted)}.desk-management>summary::-webkit-details-marker{display:none}.desk-management-menu{position:absolute;right:0;top:100%;min-width:210px;display:grid;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:0 15px 40px #0002;z-index:40}.desk-management-menu button{width:100%;text-align:left;justify-content:flex-start}.desk-management-menu button:hover{transform:none}.desk-management:not([open]) .desk-management-menu{display:none}
@media(max-width:1150px){.shell>aside nav{overflow:visible}.desk-management-menu{right:0}.shell>aside nav>button{flex:1}}
@media(min-width:1100px){.desk-grid th:nth-child(-n+6),.desk-grid td:nth-child(-n+6){position:sticky;z-index:3;box-sizing:border-box;background:var(--panel)}.desk-grid th:nth-child(-n+6){z-index:4;background:var(--bg)}.desk-grid th:nth-child(1),.desk-grid td:nth-child(1){left:0;min-width:158px;max-width:158px}.desk-grid th:nth-child(2),.desk-grid td:nth-child(2){left:158px;min-width:136px;max-width:136px}.desk-grid th:nth-child(3),.desk-grid td:nth-child(3){left:294px;min-width:105px;max-width:105px}.desk-grid th:nth-child(4),.desk-grid td:nth-child(4){left:399px;min-width:96px;max-width:96px}.desk-grid th:nth-child(5),.desk-grid td:nth-child(5){left:495px;min-width:100px;max-width:100px}.desk-grid th:nth-child(6),.desk-grid td:nth-child(6){left:595px;min-width:62px;max-width:62px;border-right:1px solid var(--line)}}
body:has(#terminalView:not([hidden])) main{max-width:1900px;padding-inline:28px}
body:has(#terminalView:not([hidden])) header{max-width:1900px;min-height:48px;padding-block:10px}
body:has(#terminalView:not([hidden])) .shell>aside{max-width:1844px;border-radius:12px;padding:10px 18px;top:8px}
body:has(#terminalView:not([hidden])) .page-heading{padding:12px 0 18px;border-bottom:1px solid var(--line)}
body:has(#terminalView:not([hidden])) .page-heading h1{font-size:30px;font-weight:550;letter-spacing:-1.1px}
body:has(#terminalView:not([hidden])) .page-heading p:last-child{font-size:12px;margin:0}
.desk-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.desk-actions button{font-size:11px;padding:9px 12px}
.terminal-tabs button{border-radius:7px;font-size:12px;padding:10px 15px}
.terminal-metrics{gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel)}
.terminal-metric{border:0;border-right:1px solid var(--line);border-radius:0;padding:16px 22px;position:relative;background:transparent}
.terminal-metric:last-child{border-right:0}.terminal-metric:first-child:before{content:'';position:absolute;left:0;top:22%;height:56%;width:3px;background:#c88753;border-radius:3px}
.terminal-metric small{text-transform:uppercase;letter-spacing:1px;font-size:9px}.terminal-metric strong{font-family:Consolas,'SFMono-Regular',monospace;font-size:30px}.terminal-metric span{font-size:10px}
.terminal-tools{gap:16px;margin:20px 0}.terminal-tools label{min-width:110px;font-size:10px}.terminal-tools label:first-child{max-width:340px}.terminal-tools input{border-radius:7px;height:36px}
.desk-filters{display:flex;gap:4px;margin-right:auto;padding-bottom:1px;flex-wrap:wrap}.desk-filters button{padding:9px 12px;font-size:11px;border-radius:7px}.desk-filters .active{background:var(--ink);color:var(--panel)}
.desk-raster{padding:0;overflow:hidden;border-radius:12px;box-shadow:0 8px 30px #31261905}.desk-raster-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:22px 24px 18px}.desk-raster-head .eyebrow{font-size:9px;letter-spacing:1.8px;margin:0 0 9px}.desk-raster-head h2{font-size:21px;margin:0 0 7px}.desk-raster-head p.muted{font-size:11px;margin:0}
.desk-raster .desk-raster-scroll{margin:0;max-height:65vh;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--mint) var(--bg)}
.desk-grid{width:100%;border-collapse:separate;border-spacing:0;white-space:nowrap}.desk-grid th{position:sticky;top:0;z-index:2;background:var(--bg);height:40px;text-align:left;border-bottom:1px solid var(--line);font-size:9px;letter-spacing:.4px}.desk-grid td{height:49px;padding:5px 9px;border-bottom:1px solid color-mix(in srgb,var(--line) 65%,transparent);white-space:nowrap;max-width:none;background:var(--panel);font-size:11px}.desk-grid th:first-child,.desk-grid td:first-child{position:sticky;left:0;z-index:3;min-width:158px;border-right:1px solid var(--line);background:var(--panel)}.desk-grid th:first-child{z-index:4;background:var(--bg)}.desk-grid tr:hover td{background:color-mix(in srgb,var(--mint) 5%,var(--panel))}.desk-grid .trader-select{padding:8px 4px;min-width:125px;font-size:12px}.desk-grid .terminal-status{font-size:9px;padding:5px 7px}.desk-grid td:nth-child(n+7){font-family:Consolas,'SFMono-Regular',monospace;padding:4px 3px;min-width:86px;text-align:right}.desk-grid th:nth-child(n+7){text-align:center;min-width:86px}.desk-grid .heat-loss,.desk-grid .heat-profit,.desk-grid .heat-unknown,.desk-grid .heat-neutral{padding:10px 8px;min-width:76px;border-radius:3px;font-size:12px;font-variant-numeric:tabular-nums}.heat-neutral{display:block;background:var(--bg);color:var(--muted)}.desk-grid .heat-unknown{border:0;background:repeating-linear-gradient(135deg,transparent,transparent 5px,var(--line) 6px,transparent 7px);opacity:.6}
.desk-legend{font-size:10px;color:var(--muted);padding:14px 24px;margin:0;border-top:1px solid var(--line)}.desk-support{display:grid;grid-template-columns:1fr;gap:18px}.desk-support:has(.focus-card){grid-template-columns:1fr 1fr}.desk-queue{border-radius:12px}.desk-queue>.eyebrow{font-size:9px;letter-spacing:1.5px}.desk-queue h2{font-size:18px}.desk-queue>.muted{font-size:12px}.desk-queue-row{display:flex;align-items:center;gap:14px;border-top:1px solid var(--line);padding:17px 0}.desk-queue-row>div{flex:1;min-width:0}.desk-queue-row p{font-size:12px;line-height:1.6;margin:5px 0;overflow-wrap:anywhere}.desk-queue-row .secondary{white-space:nowrap;font-size:11px}.focus-card{border-radius:12px}.focus-card .journal-form textarea{min-height:85px}.desk-contact-history{padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--panel);margin-bottom:16px}.desk-analytics>summary{padding:18px 0;cursor:pointer;color:var(--muted);font-size:12px}.desk-disconnected{opacity:.5;outline:2px solid var(--red)}
.desk-wall .shell>aside,.desk-wall header,.desk-wall .page-heading,.desk-wall footer{display:none}.desk-wall main{max-width:none;padding:14px}.desk-wall .shell{padding:0}.desk-wall .desk-raster-scroll{max-height:74vh}.desk-wall .terminal-bar{position:sticky;top:0;background:var(--bg);z-index:25;padding-top:8px}.desk-wall .terminal-foot{display:none}
@media(max-width:1000px){.desk-support:has(.focus-card){grid-template-columns:1fr}.desk-filters{order:4;flex-basis:100%}.desk-raster-head{align-items:flex-start}.desk-grid th:first-child,.desk-grid td:first-child{min-width:125px}.desk-grid .trader-select{min-width:100px}body:has(#terminalView:not([hidden])) main{padding-inline:16px}}
@media(max-width:650px){.terminal-metrics{grid-template-columns:1fr 1fr}.terminal-metric{padding:14px;border-bottom:1px solid var(--line)}.terminal-metric strong{font-size:25px}.terminal-metric:nth-child(2){border-right:0}.terminal-bar{align-items:flex-start}.desk-raster-head{flex-direction:column;padding:18px}.desk-actions{gap:5px}.desk-queue-row{flex-wrap:wrap}.desk-queue-row>div{min-width:150px}.desk-queue-row>.secondary{margin-left:auto}.desk-legend{line-height:1.7;padding:12px 18px}.terminal-tools label:first-child{max-width:none}.desk-grid td,.desk-grid th{font-size:10px}}

/* Live by default; history stays visibly distinct. */
.desk-time-controls{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--line,#ded5ca);border-radius:18px;background:var(--surface,transparent)}
.desk-time-controls label{font-size:11px}.desk-time-controls input{max-width:142px;font-variant-numeric:tabular-nums}.desk-time-controls button{white-space:nowrap}
#deskLive.active{box-shadow:0 0 0 3px #78a58a22}#deskLive.active::before{content:'';display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#91d6a8;animation:desk-live-breathe 3s ease-in-out infinite}
.desk-reviewing .replay-banner{border:1px solid #ba8d52;background:#ba8d521c;border-radius:18px;display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding:16px}.replay-banner[hidden]{display:none}.review-live-alert{color:var(--danger,#b64b48)}
.brand-mark{width:34px;height:34px;display:block;flex:none}.desk-time-controls button:disabled{cursor:wait;opacity:.6}
@keyframes desk-live-breathe{50%{box-shadow:0 0 0 5px #91d6a818;opacity:.65}}
@media(prefers-reduced-motion:reduce){#deskLive.active::before{animation:none}}
/* Live desk is an operational table, separate from the dashboard canvas. */
body:has(#terminalView:not([hidden])) .page-heading{display:none}
#terminalView .terminal-bar{padding:6px 0 10px;margin-bottom:0}
#terminalView .terminal-card{border-radius:6px;box-shadow:none}
#terminalView .terminal-metrics{border-radius:5px;margin:10px 0}
#terminalView .terminal-metric{padding:10px 16px;gap:4px}
#terminalView .terminal-metric strong{font-size:23px}
#terminalView .terminal-metric:first-child:before{display:none}
#terminalView .desk-raster-head{padding:14px 18px}
#terminalView .desk-raster-head .eyebrow{display:none}
#terminalView .desk-raster-head h2{font-size:17px}
#terminalView .desk-grid td{height:42px}
#terminalView .desk-time-controls{border:0;padding:0;border-radius:0}
#terminalView .terminal-tools{margin:12px 0;gap:10px}
.desk-switcher{display:flex;gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.desk-view-tabs{display:flex;gap:4px;background:var(--panel);padding:4px;border:1px solid var(--line);border-radius:7px;margin-right:auto}
.desk-view-tabs button{border:0;padding:11px 18px;border-radius:4px;font-size:13px;color:var(--muted)}
.desk-view-tabs button.active{background:var(--ink);color:var(--panel)}
.desk-switcher label{display:flex;gap:10px;align-items:center;font-size:11px;color:var(--muted);margin:0}
.desk-switcher select{max-width:260px;min-width:160px;width:auto;padding:10px;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:5px;font:inherit}
.desk-switcher>.secondary{font-size:11px}.desk-total-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.desk-total-head h2{font-size:28px}.desk-total-head .muted{font-size:12px}
.desk-total-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:20px 0;border-block:1px solid var(--line);padding:12px 0}
#terminalView .desk-total-stats strong{font-size:32px}
.desk-direction{display:flex;gap:25px;flex-wrap:wrap;padding:6px 16px 24px;font-size:13px}.desk-direction strong{margin-right:auto}.desk-direction span{font-family:Consolas,monospace}
#terminalView .desk-total .terminal-chart{border-radius:3px;margin-top:16px}
#terminalView [hidden]{display:none!important}
@media(max-width:650px){.desk-switcher{gap:10px}.desk-view-tabs{width:100%}.desk-view-tabs button{flex:1}.desk-switcher select{max-width:180px}.desk-total-stats{grid-template-columns:1fr}.desk-total-stats .terminal-metric{border-right:0}.desk-total-head{align-items:flex-start;flex-direction:column}}
[data-motion=reduced] #deskLive.active::before{animation:none}
