/* Local refinements of the existing terminal and workspace surfaces. */
.terminal-workbench .order-ticket>label,.terminal-workbench .order-protection-inputs label { align-items:stretch; justify-content:flex-start; text-align:left; }
.terminal-workbench .order-ticket input:not([type=checkbox]) { width:100%; min-width:0; box-sizing:border-box; }
.terminal-workbench .order-ticket .order-protection { display:flex; flex-direction:row; align-items:center; justify-content:flex-start; gap:8px; }
.terminal-workbench .order-ticket input[type=checkbox] { flex:0 0 18px; width:18px; height:18px; min-height:0; margin:0; padding:0; }
.order-protection-inputs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.order-protection-inputs[hidden] { display:none; }
.terminal-workbench #terminalPlanForm>label { display:grid; text-align:left; justify-content:stretch; gap:5px; }
.terminal-workbench #terminalPlanForm>label :is(input,select,textarea) { width:100%; }
.terminal-workbench .terminal-drawing-tools { flex-basis:48px; width:48px; padding:5px 4px 5px 8px; box-sizing:border-box; }
.terminal-symbol-results>button { display:flex; align-items:center; justify-content:flex-start; gap:10px; width:100%; text-align:left; }
.terminal-symbol-results .instrument-mark,.terminal-compare-current .instrument-mark { flex:0 0 28px; width:28px; height:28px; }
.terminal-symbol-label { display:grid; gap:3px; min-width:0; }
.terminal-symbol-label :is(strong,small) { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.terminal-symbol-label small { color:var(--muted); font-size:12px; }
.terminal-compare-current button { display:inline-flex; align-items:center; gap:6px; }
.terminal-stage .instrument-quick-item .watch-symbol :is(strong,small) { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.terminal-workbench .terminal-chart-card>header { align-items:center; min-height:44px; }
body[data-visual-workspace="3"] .terminal-workbench :is([data-expand-chart],[data-detach-chart],.instrument-favorite) { display:grid; place-items:center; flex:0 0 28px; min-width:28px; max-width:28px; width:28px; height:28px; min-height:28px; padding:4px; margin:0; border-radius:5px; box-sizing:border-box; }
.terminal-stage .instrument-favorite { right:3px; top:50%; transform:translateY(-50%); }
.terminal-workbench [data-keep-watch],.terminal-workbench [data-keep-panel] { padding:4px 6px; min-height:28px; font-size:11px; white-space:nowrap; }
#terminalIntervalMenu { display:flex; align-items:center; gap:8px; }
#terminalIntervalMenu::after { content:''; width:5px; height:5px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg) translateY(-2px); }
@media(min-width:1001px) {
 [data-view-panel=sync]>.sync-layout { display:contents; }
 .sync-layout>.sync-history { grid-column:1; grid-row:4/7; }
 .sync-layout>.sync-pipeline { grid-column:2; grid-row:5; }
 .sync-layout>.latency-surface { grid-column:2; grid-row:6; }
}
.calendar-day .calendar-number { display:inline-grid; place-items:center; flex:0 0 24px; width:24px; height:24px; border-radius:6px; line-height:1; }
.rail :is(.nav-item,.task-nav-item) { border:1px solid transparent; border-radius:8px; }
.rail :is(.nav-item,.task-nav-item).active { background:var(--surface-raised); border-color:var(--line-strong); color:var(--text); }
.rail :is(.nav-item,.task-nav-item).active>svg { color:var(--vertux-soft); }
.rail .nav-item.active::before { display:none; }
.rail :is(.navigation,.task-navigation) { position:relative; isolation:isolate; }
.rail :is(.navigation,.task-navigation) { margin-left:-10px; padding-left:10px; }
.rail .rail-footer>.rail-active-indicator { left:-9px; }
.rail-active-indicator { position:absolute; left:1px; top:0; width:2px; height:24px; border-radius:2px; background:var(--vertux-soft); pointer-events:none; z-index:2; }
@media(prefers-reduced-motion:reduce) { .rail-active-indicator { transition:none; } }
:root[data-visual-effects=off] .rail-active-indicator { transition:none; }
.instrument-picker-trigger { display:flex; align-items:center; gap:10px; width:100%; min-width:0; min-height:44px; padding:8px 10px; text-align:left; border:1px solid var(--line-strong); border-radius:6px; background:var(--surface); color:var(--text); font:inherit; }
.instrument-picker-trigger>span:not(.instrument-mark),.instrument-picker-popup [data-picker-uid]>span:not(.instrument-mark) { display:grid; gap:3px; min-width:0; flex:1; }
.instrument-picker-trigger :is(strong,small),.instrument-picker-popup :is(strong,small) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.instrument-picker-trigger small,.instrument-picker-popup small { color:var(--muted); font-size:12px; }
.instrument-picker-trigger i { font-style:normal; color:var(--muted); }
:is(.instrument-picker-trigger,.instrument-picker-popup) .instrument-mark { width:30px; height:30px; flex:0 0 30px; }
.instrument-picker-popup { position:fixed; z-index:1600; width:390px; max-width:calc(100vw - 16px); max-height:calc(100dvh - 16px); box-sizing:border-box; padding:12px; overflow:auto; border:1px solid var(--line-strong); border-radius:8px; background:var(--surface-raised); color:var(--text); box-shadow:0 12px 30px #0005; }
.instrument-picker-popup[hidden] { display:none; }
.instrument-picker-popup header { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.instrument-picker-popup header button { width:30px; height:30px; min-height:30px; padding:0; }
.instrument-picker-popup input { width:100%; }
.instrument-picker-popup [data-picker-results] { margin-top:8px; max-height:min(340px,50dvh); overflow:auto; }
.instrument-picker-popup [data-picker-uid] { display:flex; align-items:center; gap:10px; width:100%; min-height:52px; padding:8px; border:0; border-radius:5px; background:transparent; color:var(--text); text-align:left; font:inherit; }
.instrument-picker-popup [data-picker-uid]:is(:hover,:focus-visible,[aria-pressed=true]) { background:var(--accent-surface); }
.instrument-picker-trigger:focus-visible,.instrument-picker-popup :is(input,button):focus-visible { outline:2px solid var(--vertux-soft); outline-offset:2px; }
.deep-instrument-toolbar>label { display:grid; grid-template-columns:minmax(0,1fr); flex:1; min-width:0; max-width:470px; gap:6px; text-align:left; }
.deep-instrument-toolbar>label>input,.deep-instrument-toolbar .deep-selected-mark,.deep-instrument-toolbar>label>select[hidden],.company-selection select[hidden] { display:none!important; }
.company-selection>label { flex:1; min-width:0; }
.terminal-compare-chip>[data-compare-toggle] { display:inline-flex; align-items:center; gap:5px; }
.terminal-compare-chip .instrument-mark { flex:0 0 20px; width:20px; height:20px; }
.terminal-tab-context-menu { position:fixed; z-index:1500; max-width:calc(100vw - 16px); padding:5px; background:var(--surface-raised); border:1px solid var(--line-strong); border-radius:7px; box-shadow:0 10px 30px #0005; }
.terminal-tab-context-menu[hidden] { display:none; }
.terminal-tab-context-menu button { min-height:36px; padding:8px 12px; border:0; color:var(--text); background:transparent; }
.terminal-tab-context-menu button:is(:hover,:focus-visible) { background:var(--accent-surface); }
.closed-summary-link { display:block; padding:5px 0; border:0; background:transparent; color:var(--vertux-soft); font:inherit; font-size:12px; text-align:left; text-decoration:underline; text-underline-offset:3px; }
.closed-summary-link[hidden] { display:none; }
.terminal-popover .terminal-study-row input[type=checkbox] { flex:0 0 18px; width:18px; height:18px; min-height:0; padding:0; margin:0; }
