/* Global tool launcher and movable terminal panels. */
.terminal-dashboard-slot { position: relative; min-width: 0; min-height: 0; flex: 1 1 0; }
.terminal-dashboard-slot[data-slot=fear] { flex: 0 0 auto; margin-top: auto; }
.terminal-dashboard-slot[data-slot=odds] { min-height: 300px; }
@media(min-width:769px) {
 .terminal-dashboard-slot[data-slot=chart] { min-height: 600px; }
 .terminal-dashboard-slot[data-slot=chart]:has(> .terminal-dashboard-original:not([hidden]) > .price-action-view-globe) { min-height: 520px; }
}
.terminal-dashboard-original { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.terminal-dashboard-slot:has(> .is-docked) { flex: 0 0 auto; }
@media(max-width:768px) {
 .terminal-dashboard-slot { flex: none; }
 .terminal-dashboard-slot[data-slot=chart] { order: 3; }
 .terminal-dashboard-slot[data-slot=odds] { order: 5; min-height: 0; }
 .terminal-dashboard-slot[data-slot=fear] { order: 6; }
 .terminal-dashboard-slot[data-slot=map] { order: 7; }
 .terminal-dashboard-original { height: auto; }
}
.terminal-dashboard-original[hidden] { display: none !important; }
.terminal-dashboard-slot.is-swap-hover::after { content: 'HOLD TO REPLACE'; position: absolute; inset: 0; z-index: 60000; display: grid; place-items: center; border: 1px dashed #b18a51; background: #101010cc; color: #e7ba78; pointer-events: none; font: 11px 'JetBrains Mono',monospace; }
.terminal-dashboard-slot.is-swap-ready::after { content: 'RELEASE TO REPLACE'; border: 2px solid #73bc98; color: #73bc98; }
.terminal-dashboard-slot .terminal-window.is-docked { position: relative; inset: auto !important; width: 100% !important; height: 100% !important; min-width: 0; min-height: 0; max-width: none; max-height: none; box-shadow: none; z-index: auto !important; }
.terminal-window.is-docked > .terminal-resize-handle { display: none; }
.pigment-terminal-strip { position: sticky; top: 0; z-index: 30000; display: flex; align-items: center; gap: 8px; min-height: 32px; margin: 0 0 8px; padding: 0 9px; background: #101010; border-block: 1px solid #292929; color: #ccc; font: 11px/1.4 'JetBrains Mono',monospace; }
.pigment-terminal-strip button { border: 0; background: transparent; color: #b18a51; font: inherit; cursor: pointer; padding: 3px 6px; }
.pigment-terminal-strip .terminal-prompt { color: #66b494; font-size: 18px; padding: 0 3px; }
.pigment-terminal-strip input { flex: 1; min-width: 0; height: 30px; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent; color: #eee; font: inherit; box-shadow: none; }
.pigment-terminal-strip input::placeholder { color: #797979; }
.pigment-terminal-strip.is-searching { z-index: 50000; }
.pigment-terminal-strip nav { display: flex; gap: 2px; }
.pigment-terminal-strip nav button { font: 9px/1.2 'JetBrains Mono',monospace; letter-spacing: .05em; padding: 3px 5px; }
.pigment-terminal-strip nav button:hover { color: #e7ba78; background: #211c15; }
.terminal-strip-status { color: #b98c50; font-size: 9px; }
.terminal-key-help { position: absolute; top: 100%; right: 0; width: min(600px,calc(100vw - 24px)); max-height: min(600px,80dvh); overflow: auto; padding: 10px 12px; background: #111; border: 1px solid #414141; box-shadow: 0 12px 30px #000b; font: 10px/1.6 'JetBrains Mono',monospace; color: #aaa; }
.terminal-key-help[hidden] { display: none; }
.terminal-key-help header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #292929; padding-bottom: 4px; }
.terminal-key-help header strong,.terminal-key-help h3 { color: #ddd; font-size: 10px; font-weight: 400; letter-spacing: .04em; }
.terminal-key-help p { margin: 8px 0; color: #888; }
.terminal-key-help code { color: #dca75b; font: inherit; }
.terminal-command-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px 12px; padding: 7px 0; border-block: 1px solid #292929; }
.terminal-command-grid > div { display: flex; align-items: baseline; gap: 8px; }
.terminal-command-grid code { flex: 0 0 4ch; }
.terminal-command-grid span { font-size: 9px; }
.terminal-key-help dl { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 6px 0 10px; }
.terminal-key-help dl > div { display: flex; gap: 8px; }
.terminal-key-help dt { flex: 0 0 7ch; color: #dca75b; }
.terminal-key-help dd { margin: 0; }
.terminal-key-help footer { border-top: 1px solid #292929; padding-top: 6px; color: #777; font-size: 9px; }
.terminal-search-menu { position: absolute; top: 100%; left: 0; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(200px,1fr); width: min(780px,calc(100vw - 24px)); background: #111; border: 1px solid #414141; box-shadow: 0 12px 30px #000b; }
.terminal-search-menu[hidden] { display: none; }
#pigment-terminal-results { max-height: min(430px,65dvh); overflow: auto; }
#pigment-terminal-results button { display: grid; grid-template-columns: 55px 1fr 15px; gap: 5px; width: 100%; padding: 7px 8px; text-align: left; color: #ccc; font-size: 10px; border-bottom: 1px solid #222; }
#pigment-terminal-results button > span:first-child { color: #65ae8d; grid-row: span 2; }
#pigment-terminal-results button strong { font-weight: 400; }
#pigment-terminal-results button small { grid-column: 2; color: #797979; font-size: 9px; }
#pigment-terminal-results button > span:last-child { grid-row: 1; grid-column: 3; color: #666; }
#pigment-terminal-results button:hover,#pigment-terminal-results button[aria-selected=true] { background: #242424; }
.terminal-search-preview { border-left: 1px solid #303030; padding: 12px; font-size: 10px; color: #969696; }
.terminal-search-preview > span { display: block; color: #cda364; }
.terminal-search-preview > strong { display: block; margin-top: 8px; color: #ddd; font-size: 15px; font-weight: 400; }
.terminal-search-preview p { line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.terminal-news-hover { max-height: 330px; overflow: auto; }
.terminal-news-hover > div { padding: 5px 0; border-bottom: 1px solid #262626; }
.terminal-news-hover small { color: #777; font-size: 8px; }
.terminal-news-hover p { margin: 3px 0; color: #ccc; -webkit-line-clamp: 2; }
.terminal-window { position: fixed; z-index: 40000; display: flex; flex-direction: column; width: min(720px,calc(100vw - 16px)); height: min(560px,calc(100dvh - 90px)); min-width: min(340px,calc(100vw - 16px)); min-height: 230px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); resize: both; overflow: hidden; border: 1px solid #39594e; border-radius: 0; background: #101010; color: #ccc; box-shadow: 0 14px 40px #000b; font: 10px 'JetBrains Mono',monospace; }
.terminal-window-head { flex: 0 0 26px; display: flex; align-items: center; gap: 4px; padding: 0 4px; background: #212121; border-bottom: 1px solid #383838; cursor: move; touch-action: none; }
.terminal-window-grip { color: #666; font-size: 13px; }
.terminal-window-tabs { display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.terminal-window button { background: transparent; border: 0; color: #999; padding: 5px; font: inherit; cursor: pointer; white-space: nowrap; }
.terminal-window-head button { min-height: 24px; padding: 3px 5px; font-size: 9px; }
.terminal-window-tabs button { border-bottom: 2px solid transparent; }
.terminal-window-tabs button[aria-selected=true] { color: #e0e0e0; border-bottom-color: #ac854f; }
.terminal-window-head nav { display: flex; }
.terminal-window-head button:hover { color: #ddd; background: #303030; }
.terminal-window-head button[aria-pressed=true] { color: #73bc98; }
.terminal-window-head .terminal-window-close { color: #fff; background: #d82c35; border-bottom: 2px solid #811c22; padding: 2px 5px; margin-left: 4px; }
.terminal-window-body { flex: 1; min-height: 0; overflow: auto; }
.terminal-window-body iframe { display: block; width: 100%; height: 100%; border: 0; background: #101010; }
.terminal-window.is-moving iframe { pointer-events: none; }
.terminal-window[data-active] { border-color: #65ae8d; }
.terminal-window { resize: none; }
.terminal-window[data-tool=fear] { min-height: 132px; }
.terminal-window.is-resizing iframe { pointer-events: none; }
.terminal-window .terminal-resize-handle { position: absolute; z-index: 2; padding: 0; border: 0; background: transparent; touch-action: none; }
.terminal-resize-right { right: 0; top: 26px; bottom: 16px; width: 8px; cursor: ew-resize; }
.terminal-resize-bottom { bottom: 0; left: 0; right: 16px; height: 8px; cursor: ns-resize; }
.terminal-resize-corner { right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; }
.terminal-resize-corner::after { content: ''; position: absolute; right: 3px; bottom: 3px; width: 9px; height: 9px; border-right: 2px solid #65ae8d; border-bottom: 2px solid #65ae8d; }
.terminal-resize-handle:hover,.terminal-resize-handle:focus-visible { background: #65ae8d22; }
.terminal-window.is-expanded .terminal-resize-handle { display: none; }
.terminal-window.is-expanded { inset: 42px 8px 8px !important; width: auto !important; height: auto !important; max-height: none; max-width: none; resize: none; }
.terminal-widget-placeholder { width: 100%; min-height: 50px; border: 1px dashed #393939; background: #101010; color: #898989; font: 10px 'JetBrains Mono',monospace; cursor: pointer; }
.terminal-window-body .terminal-portaled-widget { width: 100% !important; height: 100% !important; max-height: none !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-sizing: border-box; }
.terminal-window :focus-visible,.pigment-terminal-strip button:focus-visible { outline: 1px solid #c49b5e; outline-offset: -2px; }
/* Use the same sideways tape in native and iframe news panels. */
:is(.terminal-window,.terminal-native-panel) #news-feed-container { display: flex; flex-direction: column; background: #0b0c0d; }
:is(.terminal-window,.terminal-native-panel) #news-feed-container .news-header { flex: 0 0 26px; }
:is(.terminal-window,.terminal-native-panel) #news-items-list:not([hidden]) { display: block; flex: 1; height: auto; min-height: 0; overflow-x: auto; overflow-y: hidden; padding: 0; scroll-behavior: auto; }
:is(.terminal-window,.terminal-native-panel) #news-track { display: flex; width: max-content; height: 100%; margin: 0; }
:is(.terminal-window,.terminal-native-panel) .news-item { flex: 0 0 clamp(250px,45vw,310px); min-width: 250px; width: 310px; max-width: 310px; height: 100%; margin: 0 !important; }
:is(.terminal-window,.terminal-native-panel) .news-headline { -webkit-line-clamp: 6; line-clamp: 6; }
@media(max-width:768px),(hover:none),(pointer:coarse) {
 .terminal-window { display: none !important; }
 /* Phone search, Tracked Fish style: one slim bordered bar (gold prompt, ★ TF badge), one-line results with code chips. */
 .pigment-terminal-strip { min-height: 32px; margin: 0 0 6px; padding: 0 4px 0 9px; gap: 6px; background: #08090b; border: 1px solid #1d2024; border-radius: 3px; font-size: 12px; }
 .pigment-terminal-strip.is-searching { border-color: #e0ac55; }
 .pigment-terminal-strip .terminal-prompt { color: #e0ac55; font-size: 12px; padding: 0; opacity: .8; }
 .pigment-terminal-strip input { height: 30px; font-size: 16px; letter-spacing: .02em; }
 .pigment-terminal-strip input::placeholder { font-size: 10.5px; letter-spacing: .14em; color: #555a61; }
 .pigment-terminal-strip nav button:not([data-quick=tracked]), .pigment-terminal-strip .terminal-strip-status { display: none; }
 .pigment-terminal-strip nav button[data-quick=tracked] { background: transparent; color: #e0ac55; border: 1px solid rgba(224,172,85,.45); border-radius: 2px; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; padding: 3px 6px; }
 .terminal-search-menu { left: -1px; right: -1px; width: auto; grid-template-columns: 1fr; background: #050607; border: 1px solid #e0ac55; border-top-color: #2e3238; box-shadow: 0 14px 30px #000c; }
 .terminal-search-preview { display: none; }
 #pigment-terminal-results { max-height: 60dvh; }
 #pigment-terminal-results button { grid-template-columns: 52px minmax(0,1fr) 14px; align-items: center; min-height: 42px; padding: 0 10px; font-size: 13px; border-bottom: 1px solid #12151a; }
 #pigment-terminal-results button > span:first-child { grid-row: auto; justify-self: start; padding: 0 5px; border: 1px solid #5a4724; color: #e0ac55; font-size: 10px; letter-spacing: .06em; line-height: 16px; }
 #pigment-terminal-results button strong { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
 #pigment-terminal-results button small { display: none; }
 #pigment-terminal-results button > span:last-child { grid-row: auto; grid-column: auto; color: #4b5057; }
 #pigment-terminal-results button[aria-selected=true] { background: #14110a; box-shadow: inset 2px 0 0 #e0ac55; }
 #pigment-terminal-results p { padding: 12px 10px; margin: 0; color: #9aa0a8; font-size: 12px; }
}
/* Only launcher embeds use this compact chrome; full pages retain their layout. */
html.terminal-embed[data-terminal-native] body > :not(.terminal-native-panel):not(.radar-indicator-panel):not(script):not(style) { display: none !important; }
html.terminal-embed[data-terminal-native] body { padding: 0 !important; margin: 0 !important; }
.terminal-native-panel { position: fixed; inset: 0; background: #111; }
html.terminal-embed .pigment-terminal-strip,html.terminal-embed .header { display: none !important; }
html.terminal-embed:is([data-terminal-panel=tracer],[data-terminal-panel=gex],[data-terminal-panel=charm],[data-terminal-panel=chains],[data-terminal-panel=tide],[data-terminal-panel=iv],[data-terminal-panel=pulse],[data-terminal-panel=desk]) .header { display: flex !important; min-height: 26px; padding: 0 5px; margin: 0; gap: 0; border-bottom: 1px solid #292929; background: #101010; }
html.terminal-embed:is([data-terminal-panel=tracer],[data-terminal-panel=gex],[data-terminal-panel=charm],[data-terminal-panel=chains],[data-terminal-panel=tide],[data-terminal-panel=iv],[data-terminal-panel=pulse],[data-terminal-panel=desk]) .header .header-copy,html.terminal-embed:is([data-terminal-panel=tracer],[data-terminal-panel=gex],[data-terminal-panel=charm],[data-terminal-panel=chains],[data-terminal-panel=tide],[data-terminal-panel=iv],[data-terminal-panel=pulse],[data-terminal-panel=desk]) .header .back-button { display: none !important; }
html.terminal-embed:is([data-terminal-panel=tracer],[data-terminal-panel=gex],[data-terminal-panel=charm],[data-terminal-panel=chains],[data-terminal-panel=tide],[data-terminal-panel=iv],[data-terminal-panel=pulse],[data-terminal-panel=desk]) .header .header-actions { width: 100%; justify-content: flex-end; }
html.terminal-embed:is([data-terminal-panel=tracer],[data-terminal-panel=gex],[data-terminal-panel=charm],[data-terminal-panel=chains],[data-terminal-panel=tide],[data-terminal-panel=iv],[data-terminal-panel=pulse],[data-terminal-panel=desk]) .header .controls { margin-left: auto; gap: 4px; }
html.terminal-embed:is([data-terminal-panel=tracer],[data-terminal-panel=gex],[data-terminal-panel=charm],[data-terminal-panel=chains],[data-terminal-panel=tide],[data-terminal-panel=iv],[data-terminal-panel=pulse],[data-terminal-panel=desk]) .header .ticker-active-display { height: 24px; padding: 0 8px; font-size: 12px; }
html.terminal-embed:is([data-terminal-panel=tracer],[data-terminal-panel=gex],[data-terminal-panel=charm],[data-terminal-panel=chains],[data-terminal-panel=tide],[data-terminal-panel=iv],[data-terminal-panel=pulse],[data-terminal-panel=desk]) .header .controls button { height: 24px; padding: 0 7px; font-size: 9px; }
html.terminal-embed:is([data-terminal-panel=tracer],[data-terminal-panel=gex],[data-terminal-panel=charm],[data-terminal-panel=chains],[data-terminal-panel=tide],[data-terminal-panel=iv],[data-terminal-panel=pulse],[data-terminal-panel=desk]) .header .controls :is(.cal-icon-btn,.trifecta-add-btn) { width: 24px; min-width: 24px; padding: 0; }
html.terminal-embed body::after { display: none !important; }
html.terminal-embed .page-shell,html.terminal-embed .main-content { padding: 0 !important; max-width: none !important; width: 100% !important; margin: 0 !important; }
html.terminal-embed .gex-mini-chart-band,html.terminal-embed .heat-zoom-toggle-mobile,html.terminal-embed #gex-options-rail,html.terminal-embed #gex-depth-rail,html.terminal-embed #gex-strike-trace { display: none !important; }
html.terminal-embed .gex-primary-workspace,html.terminal-embed body:not(.is-trifecta) #trifecta-container { display: block !important; height: auto !important; min-width: 0 !important; overflow: visible !important; }
html.terminal-embed .map-card { width: 100% !important; margin: 0 !important; }
html.terminal-embed body.is-trifecta .gex-primary-workspace { height: calc(100dvh - 26px) !important; margin: 0 !important; overflow: hidden !important; }
html.terminal-embed body.is-trifecta #trifecta-container { display: flex !important; flex-direction: row !important; align-items: stretch; gap: 2px; height: 100% !important; min-width: 0; padding: 0; overflow: hidden !important; }
html.terminal-embed body.is-trifecta .map-card { flex: 1 1 0; width: 0 !important; min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
html.terminal-embed body.is-trifecta .map-body { flex: 1 1 auto; min-height: 0; max-height: none !important; overflow-y: auto; }
html.terminal-embed body.is-trifecta .gex-mini-chart-shell,html.terminal-embed body.is-trifecta .map-meta,html.terminal-embed body.is-trifecta .map-headers { flex-shrink: 0; }
html.terminal-embed[data-terminal-panel=tracer] #primary-map-card .gex-expanded-detail { display: none !important; }
html.terminal-embed[data-terminal-panel=tracer] #tracer-underlying-ticker-wrapper { display: none !important; }
html.terminal-embed[data-terminal-panel=tracer] .tracer-canvas { height: calc(100dvh - 70px) !important; min-height: 240px !important; }
html.terminal-embed[data-terminal-panel=tracer] #primary-map-card > .map-meta { padding: 3px 6px !important; min-height: 30px; }
html.terminal-embed[data-terminal-panel=tracer] #primary-map-card > .map-meta > .tracer-annotations-toggle { flex-shrink: 0; font: 9px 'JetBrains Mono',monospace; padding: 2px 0; }
html.terminal-embed[data-terminal-panel=dossier] .radar-title-row,html.terminal-embed[data-terminal-panel=dossier] .radar-control-panel,html.terminal-embed[data-terminal-panel=dossier] .radar-queue-panel { display: none !important; }
html.terminal-embed[data-terminal-panel=dossier] .radar-split { display: block !important; }
html.terminal-embed[data-terminal-panel=dossier] .radar-shell,html.terminal-embed[data-terminal-panel=dossier] .radar-main { padding: 0 !important; display: block !important; }
html.terminal-embed[data-terminal-panel=dossier] #radar-detail-panel { width: 100% !important; max-width: none !important; margin: 0 !important; }
html.terminal-embed[data-terminal-panel=dossier] .terminal-dossier-command:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; margin-bottom: 5px; padding: 0 7px; background: #101010; border-bottom: 1px solid #292929; font: 10px 'JetBrains Mono',monospace; }
html.terminal-embed[data-terminal-panel=dossier] .terminal-dossier-ticker { display: inline-flex; align-items: center; gap: 5px; color: #66b494; }
html.terminal-embed[data-terminal-panel=dossier] .terminal-dossier-ticker input { width: calc(var(--ticker-length,6) * 1ch + 2px); max-width: 13ch; min-width: 2ch; border: 0; border-radius: 0; outline: 0; background: transparent; color: #ddd; padding: 2px 0; font: inherit; caret-color: #dca75b; box-shadow: none; }
html.terminal-embed[data-terminal-panel=dossier] .terminal-dossier-cursor { width: 1px; height: .9em; background: #dca75b; animation: terminal-dossier-blink 1s step-end infinite; }
html.terminal-embed[data-terminal-panel=dossier] .terminal-dossier-ticker:focus-within .terminal-dossier-cursor { visibility: hidden; animation: none; }
html.terminal-embed[data-terminal-panel=dossier] #terminal-dossier-radar { padding: 3px 0; border: 0; background: transparent; color: #b18a51; font: 9px 'JetBrains Mono',monospace; cursor: pointer; white-space: nowrap; }
html.terminal-embed[data-terminal-panel=dossier] #terminal-dossier-radar:hover { color: #e7ba78; }
html.terminal-embed[data-terminal-panel=dossier] .terminal-dossier-command :focus-visible { outline: 1px solid #c49b5e; outline-offset: 2px; }
@keyframes terminal-dossier-blink { 50% { opacity: 0; } }
@media(prefers-reduced-motion:reduce) { html.terminal-embed[data-terminal-panel=dossier] .terminal-dossier-cursor { animation: none; } }
html.terminal-embed[data-terminal-panel=radar] .radar-title-row,html.terminal-embed[data-terminal-panel=radar] .radar-control-panel,html.terminal-embed[data-terminal-panel=radar] #radar-detail-panel,html.terminal-embed[data-terminal-panel=radar] .radar-tv-chart-shell { display: none !important; }
html.terminal-embed[data-terminal-panel=radar] .radar-shell { padding: 0; }
html.terminal-embed[data-terminal-panel=radar] .radar-stage-map-body { height: calc(100dvh - 36px); }
html.terminal-embed[data-terminal-panel=fish] .terminal-fish-flow-navigation:not([hidden]) { display: flex; position: sticky; top: 0; z-index: 20; padding: 5px 8px; background: #101010; border-bottom: 1px solid #292929; }
html.terminal-embed[data-terminal-panel=fish] .terminal-fish-flow-navigation button { padding: 2px 0; border: 0; background: transparent; color: #b18a51; font: 9px 'JetBrains Mono',monospace; cursor: pointer; }
html.terminal-embed[data-terminal-panel=fish] .terminal-fish-flow-navigation button:hover { color: #e7ba78; }
html.terminal-embed[data-terminal-panel=fish] .terminal-fish-flow-navigation button:focus-visible { outline: 1px solid #c49b5e; outline-offset: 2px; }
/* Theme Tape shares the rotation renderer, with chrome sized to its floating panel. */
html.terminal-embed[data-terminal-panel=theme],html.terminal-embed[data-terminal-panel=theme] body { height: 100%; margin: 0; padding: 0 !important; overflow: hidden; background: #101010; }
html.terminal-embed[data-terminal-panel=theme] .main-content { height: 100dvh; }
html.terminal-embed[data-terminal-panel=theme] #view-rotation.active { display: flex; height: 100%; min-height: 0; margin: 0; padding: 0; box-sizing: border-box; }
html.terminal-embed[data-terminal-panel=theme] #view-rotation .net-premium-card { min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: #101010; box-shadow: none; }
html.terminal-embed[data-terminal-panel=theme] #view-rotation .net-premium-chart-area { min-height: 0 !important; padding: 0 !important; overflow: hidden; }
html.terminal-embed[data-terminal-panel=theme] .rotation-topline { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; padding: 3px 8px; border-bottom: 1px solid #292929; }
html.terminal-embed[data-terminal-panel=theme] .rotation-topline .net-premium-title { display: none !important; }
html.terminal-embed[data-terminal-panel=theme] :is(.rotation-mode-toggle,.rrg-timeframe-toggle) { gap: 8px; flex-wrap: nowrap; justify-content: flex-start; }
html.terminal-embed[data-terminal-panel=theme] :is(.rotation-mode-btn,.rrg-tf-btn) { padding: 4px 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: #888; font: 9px 'JetBrains Mono',monospace; white-space: nowrap; }
html.terminal-embed[data-terminal-panel=theme] :is(.rotation-mode-btn,.rrg-tf-btn).active { color: #dca75b; border-bottom-color: #b18a51; }
html.terminal-embed[data-terminal-panel=theme] .rotation-sector-tape { flex-shrink: 0; gap: 8px; margin: 0; padding: 6px 8px; background: #101010; border-bottom: 1px solid #242424; }
html.terminal-embed[data-terminal-panel=theme] :is(.rotation-tape-label,.rotation-tape-item,.rotation-tape-divider,.rotation-as-of) { font: 9px 'JetBrains Mono',monospace; letter-spacing: 0; }
html.terminal-embed[data-terminal-panel=theme] .rrg-custom-legend { flex: 0 1 auto; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 10px; max-height: 130px; overflow-y: auto; margin: 0; padding: 3px 8px; background: #101010; }
html.terminal-embed[data-terminal-panel=theme] .theme-rank-row { grid-template-columns: 14px 5px 39px minmax(0,1fr) 52px; gap: 5px; min-height: 24px; padding: 3px 2px; }
html.terminal-embed[data-terminal-panel=theme] :is(.theme-rank-number,.theme-rank-ticker,.theme-rank-name,.theme-rank-change) { font: 9px 'JetBrains Mono',monospace; }
html.terminal-embed[data-terminal-panel=theme] .theme-rank-swatch { width: 5px; height: 5px; box-shadow: none; }
html.terminal-embed[data-terminal-panel=theme] #view-rotation .rotation-chart-shell { flex: 1 1 0; height: auto; min-height: 140px; padding: 0 4px 3px; overflow: hidden; }
html.terminal-embed[data-terminal-panel=theme] .rotation-panel { min-height: 0; min-width: 0; }
html.terminal-embed[data-terminal-panel=theme] .rotation-topline :focus-visible { outline: 1px solid #c49b5e; outline-offset: 2px; }
@media(max-width:640px) { html.terminal-embed[data-terminal-panel=theme] .rrg-custom-legend { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 110px; } }
@media(max-width:460px) { html.terminal-embed[data-terminal-panel=theme] .rrg-custom-legend { grid-template-columns: 1fr; max-height: 85px; } html.terminal-embed[data-terminal-panel=theme] .rotation-topline { gap: 5px; padding-inline: 5px; } html.terminal-embed[data-terminal-panel=theme] .rotation-mode-toggle { gap: 5px; } }
@media(max-width:900px) {
 html.terminal-embed[data-terminal-panel=tracer] .tracer-canvas.has-pip { height: calc(100dvh - 100px) !important; }
}
/* Standalone Gamma tools reuse their original rail and canvas renderers. */
html.terminal-embed:is([data-terminal-panel=chains],[data-terminal-panel=tide],[data-terminal-panel=iv],[data-terminal-panel=pulse],[data-terminal-panel=desk]) .gex-primary-workspace { display: flex !important; height: calc(100dvh - 26px) !important; overflow: hidden !important; margin: 0 !important; padding: 0 !important; }
html.terminal-embed:is([data-terminal-panel=chains],[data-terminal-panel=tide],[data-terminal-panel=iv],[data-terminal-panel=pulse],[data-terminal-panel=desk]) body #trifecta-container { display: none !important; }
html.terminal-embed:is([data-terminal-panel=chains],[data-terminal-panel=tide],[data-terminal-panel=iv]) #gex-options-rail,
html.terminal-embed[data-terminal-panel=pulse] #gex-strike-trace { display: flex !important; flex: 1 1 auto !important; width: 100% !important; height: 100% !important; min-height: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
html.terminal-embed:is([data-terminal-panel=chains],[data-terminal-panel=tide],[data-terminal-panel=iv],[data-terminal-panel=pulse],[data-terminal-panel=desk]) #trifecta-add-btn,
html.terminal-embed:is([data-terminal-panel=tide],[data-terminal-panel=iv],[data-terminal-panel=pulse],[data-terminal-panel=desk]) #gex-cal-btn { display: none !important; }
html.terminal-embed[data-terminal-panel=tide] #gex-chain-companion { display: grid !important; grid-template-rows: auto minmax(0,1fr); padding: 0; gap: 0; }
html.terminal-embed[data-terminal-panel=tide] :is(#gex-companion-back,.gex-companion-card[aria-label="One-month IV history"]) { display: none !important; }
html.terminal-embed[data-terminal-panel=tide] .gex-companion-toolbar { min-height: 28px; padding: 3px 8px; border-bottom: 1px solid #292929; }
html.terminal-embed[data-terminal-panel=tide] .gex-companion-identity { margin-left: auto; }
html.terminal-embed[data-terminal-panel=tide] .gex-companion-card { border: 0; border-radius: 0; box-shadow: none; background: #101010; }
/* Panel content fills the frame; management controls overlay the top edge. */
.terminal-window-head{position:absolute;inset:0 0 auto;z-index:10;flex:none;height:7px;min-height:0;padding:0 4px;overflow:hidden;background:transparent;border:0}
.terminal-window-head>*{opacity:0;pointer-events:none}
.terminal-window-head:hover,.terminal-window-head:focus-within,.terminal-window.is-moving>.terminal-window-head{height:26px;overflow:visible}
.terminal-window-head:hover>*,.terminal-window-head:focus-within>*,.terminal-window.is-moving>.terminal-window-head>*{opacity:1;pointer-events:auto}
.terminal-window-head nav{margin-left:auto;background:#151515eb}
.terminal-window-grip{background:#151515eb;padding:3px}
.terminal-window-tabs{display:none}
.terminal-window.has-multiple-tabs .terminal-window-tabs{display:flex;background:#151515ed}
.terminal-window-tabs button{border-bottom-width:1px}
.terminal-window-body{height:100%}
.terminal-resize-right{top:7px}

.terminal-hyperliquid-brand{display:inline-flex;align-items:center;gap:5px;color:#ffad48}.terminal-hyperliquid-brand img{width:14px;height:12px;object-fit:contain}.terminal-window-tabs button[data-tool=perp]{color:#ffad48}.terminal-window-tabs button[data-tool=perp]::before{content:"";display:inline-block;width:13px;height:11px;background:url('/assets/hyperliquid-mark.svg') center/contain no-repeat;margin-right:5px;vertical-align:middle}
/* Keep expiry coverage available in the mini GEX map, including narrow panels. */
html.terminal-embed[data-terminal-panel=gex] .gex-mini-chart-band{display:block!important;margin:0!important;padding:0!important;flex-shrink:0}
html.terminal-embed[data-terminal-panel=gex] .view-toggle-rail{display:block!important;min-height:0;padding:0;border-bottom:1px solid #252525}
html.terminal-embed[data-terminal-panel=gex] .view-rail-left{display:block!important;width:100%;min-width:0;padding:0}
html.terminal-embed[data-terminal-panel=gex] .map-topline{display:flex!important;min-height:28px;padding:0 7px}
html.terminal-embed[data-terminal-panel=gex] :is(.map-status-cluster,.freshness-stamp,.view-toggle,.heat-zoom-toggle-mobile){display:none!important}
html.terminal-embed[data-terminal-panel=gex] .heat-zoom-toggle{display:flex!important;border:0;border-radius:0;gap:12px;overflow-x:auto}
html.terminal-embed[data-terminal-panel=gex] .heat-zoom-btn{padding:5px 2px;font-size:10px;white-space:nowrap}

/* IV-only companion uses the existing historical renderer in its own frame. */
html.terminal-embed[data-terminal-panel=iv] #gex-chain-companion { display:grid!important; grid-template-rows:auto minmax(0,1fr); padding:0; gap:0; height:100%; min-height:0; }
html.terminal-embed[data-terminal-panel=iv] :is(#gex-companion-back,.gex-companion-card[aria-label="Market tide"],#gex-options-rail > header) { display:none!important; }
html.terminal-embed[data-terminal-panel=iv] .gex-companion-toolbar { min-height:28px; padding:3px 8px; border-bottom:1px solid #292929; }
html.terminal-embed[data-terminal-panel=iv] .gex-companion-identity { margin-left:auto; }
html.terminal-embed[data-terminal-panel=iv] .gex-companion-card { display:flex; flex-direction:column; min-height:0; height:100%; border:0; border-radius:0; box-shadow:none; background:#101010; }
html.terminal-embed[data-terminal-panel=iv] .gex-companion-chart-wrap { flex:1; height:auto; min-height:0; }

html.terminal-embed[data-terminal-panel=iv] #expiry-select, html.terminal-embed[data-terminal-panel=iv] #gex-companion-spot { display:none!important; }

/* Header widgets sit flush above the divider without moving branding or controls. */
.terminal-header-group { display:contents; }
.terminal-header-slot { position:absolute; top:0; width:var(--terminal-dock-width,420px); height:100% !important; display:none; pointer-events:auto; }
.terminal-header-slot[data-position="0"] { left:140px; }
.terminal-header-slot[data-position="1"] { left:565px; }
.terminal-header-slot[data-position="2"] { left:990px; }
.terminal-header-slot[data-position="3"] { right:20px; }
.terminal-header-slot[data-position="4"] { right:445px; }
.terminal-header-slot[data-position="5"] { right:870px; }
.terminal-header-slot:has(> .is-docked) { display:block; z-index:105; }
.terminal-header-targets .terminal-header-slot:not(:has(> .is-docked))[data-position="0"] { display:block; inset:0; width:100%; pointer-events:none; }
.terminal-header-placeholder { height:100%; display:grid; place-items:center; border:1px dashed #615039; color:#b99a69; background:#10101088; font:10px 'JetBrains Mono',monospace; }
.terminal-header-placeholder[hidden] { display:none !important; }
.terminal-header-slot .terminal-window.is-docked { border:0; background:#000; }
.terminal-header-slot .terminal-window-head { max-width:100%; }
.terminal-header-slot .terminal-window-body { background:#000; }
.terminal-header-slot.is-swap-hover::after { content:'HOLD TO DOCK'; }
.terminal-header-slot.is-swap-ready::after { content:'RELEASE TO DOCK'; }
.main-header:has(.is-header-docked)::after { content:''; position:absolute; left:0; right:0; bottom:-2px; height:2px; z-index:110; background:var(--border-color,#1769d2); pointer-events:none; }
@media(max-width:1499px) { .terminal-header-slot { display:none !important; } .terminal-window [data-action=dock] { display:none; } }
/* Tide and Pulse retain their renderers and live data in a shallow dock. */
html.terminal-header-docked:is([data-terminal-panel=tide],[data-terminal-panel=pulse],[data-terminal-panel=desk]) .header { min-height:20px !important; height:20px; background:#000 !important; }
html.terminal-header-docked:is([data-terminal-panel=tide],[data-terminal-panel=pulse],[data-terminal-panel=desk]) .header .ticker-active-display { height:18px !important; padding:0 5px !important; font-size:10px !important; }
html.terminal-header-docked:is([data-terminal-panel=tide],[data-terminal-panel=pulse],[data-terminal-panel=desk]) .header .controls button { height:18px !important; padding:0 5px !important; font-size:8px !important; }
html.terminal-header-docked:is([data-terminal-panel=tide],[data-terminal-panel=pulse],[data-terminal-panel=desk]) .gex-primary-workspace { height:calc(100dvh - 20px) !important; }
html.terminal-header-docked[data-terminal-panel=pulse] .gex-strike-trace-header { min-height:22px; padding:2px 6px; background:#000; }
html.terminal-header-docked[data-terminal-panel=pulse] .gex-rail-title-block { display:flex; align-items:center; gap:6px; }
html.terminal-header-docked[data-terminal-panel=pulse] .gex-rail-display-title { font:600 10px 'JetBrains Mono',monospace; }
html.terminal-header-docked[data-terminal-panel=pulse] .gex-strike-trace-subtitle { font:8px 'JetBrains Mono',monospace; margin:0; }
html.terminal-header-docked[data-terminal-panel=pulse] .gex-strike-trace-legend { min-height:16px; padding:2px 6px; background:#000; }
html.terminal-header-docked[data-terminal-panel=pulse] .gex-strike-trace-status { font:8px 'JetBrains Mono',monospace; }
html.terminal-header-docked[data-terminal-panel=pulse] #gex-strike-trace { background:#000 !important; }
html.terminal-header-docked[data-terminal-panel=pulse] #gex-strike-trace::before { display:none; }
html.terminal-header-docked[data-terminal-panel=tide] .gex-companion-toolbar { min-height:20px; padding:1px 6px; }
html.terminal-header-docked[data-terminal-panel=tide] .gex-companion-identity { font-size:9px; }
html.terminal-header-docked[data-terminal-panel=tide] .gex-companion-card-header { min-height:20px; padding:2px 6px; font:10px 'JetBrains Mono',monospace; }
html.terminal-header-docked[data-terminal-panel=tide] .gex-companion-card-header small { font-size:8px; }
html.terminal-header-docked[data-terminal-panel=tide] .gex-companion-card { min-height:0; background:#000; }
html.terminal-header-docked[data-terminal-panel=tide] .gex-companion-chart-wrap { min-height:0; padding:0; }
html.terminal-header-docked[data-terminal-panel=tide] .gex-companion-chart-wrap canvas { border-radius:0; }
html.terminal-header-docked:is([data-terminal-panel=gex],[data-terminal-panel=charm]) .gex-mini-chart-band { display:none !important; }
html.terminal-header-docked:is([data-terminal-panel=gex],[data-terminal-panel=charm]) .gex-primary-workspace { height:calc(100dvh - 26px) !important; overflow:hidden !important; margin:0 !important; }
html.terminal-header-docked:is([data-terminal-panel=gex],[data-terminal-panel=charm]) #trifecta-container { height:100% !important; min-height:0 !important; padding:0 !important; overflow:hidden !important; }
html.terminal-header-docked:is([data-terminal-panel=gex],[data-terminal-panel=charm]) .map-card { height:100%; min-height:0; display:flex; flex-direction:column; margin:0; border:0; border-radius:0; }
html.terminal-header-docked:is([data-terminal-panel=gex],[data-terminal-panel=charm]) .map-meta { padding:2px 5px; min-height:20px; flex-shrink:0; }
html.terminal-header-docked:is([data-terminal-panel=gex],[data-terminal-panel=charm]) .map-headers { flex-shrink:0; }
html.terminal-header-docked:is([data-terminal-panel=gex],[data-terminal-panel=charm]) .map-body { flex:1; min-height:0; max-height:none !important; overflow:auto; }
html.terminal-embed.terminal-header-docked:is([data-terminal-panel=gex],[data-terminal-panel=charm]) body:not(.is-trifecta) #trifecta-container { height:100% !important; display:flex !important; flex-direction:column; }
html.terminal-embed.terminal-header-docked:is([data-terminal-panel=gex],[data-terminal-panel=charm]) .map-card { height:100% !important; min-height:0 !important; flex:1 1 0 !important; overflow:hidden !important; }
html.terminal-embed.terminal-header-docked:is([data-terminal-panel=gex],[data-terminal-panel=charm]) .gex-mini-chart-shell { display:none !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=gex] .gex-mini-chart-band { display:block !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=gex] .map-topline { min-height:18px; padding:0 5px; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=gex] .heat-zoom-btn { padding:2px; font-size:8px; }
html.terminal-embed.terminal-header-docked:is([data-terminal-panel=gex],[data-terminal-panel=charm]) .gex-primary-workspace { display:flex !important; flex-direction:column; }
html.terminal-embed.terminal-header-docked:is([data-terminal-panel=gex],[data-terminal-panel=charm]) body:not(.is-trifecta) #trifecta-container { height:auto !important; flex:1 1 0 !important; min-height:0 !important; }
/* Canvas-first dock views; full controls return when floated. */
html.terminal-embed.terminal-header-docked:is([data-terminal-panel=tide],[data-terminal-panel=pulse],[data-terminal-panel=desk]) .header { display:none !important; }
html.terminal-embed.terminal-header-docked:is([data-terminal-panel=tide],[data-terminal-panel=pulse]) .gex-primary-workspace { height:100dvh !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=tide] .gex-companion-toolbar { display:none !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=tide] .gex-companion-card-header { min-height:16px; height:16px; padding:1px 6px; font-size:9px; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=pulse] .gex-strike-trace-header { min-height:16px; height:16px; padding:1px 6px; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=pulse] .gex-strike-trace-legend { min-height:13px; height:13px; padding:1px 6px; }
html.terminal-embed.terminal-header-docked:is([data-terminal-panel=gex],[data-terminal-panel=charm]) .gex-primary-workspace { height:calc(100dvh - 52px) !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=charm] .gex-primary-workspace { height:calc(100dvh - 26px) !important; }
/* More canvas in floating Tide / Pulse terminals as well as docked ones. */
html.terminal-embed[data-terminal-panel=pulse] .gex-strike-trace-header { min-height:24px; padding:3px 7px; }
html.terminal-embed[data-terminal-panel=pulse] .gex-rail-title-block { display:flex; align-items:center; gap:7px; }
html.terminal-embed[data-terminal-panel=pulse] .gex-strike-trace-subtitle { margin:0; }
html.terminal-embed[data-terminal-panel=pulse] .gex-strike-trace-legend { min-height:16px; padding:2px 7px; }
html.terminal-embed[data-terminal-panel=tide] .gex-companion-toolbar { display:none !important; }
html.terminal-embed[data-terminal-panel=tide] #gex-chain-companion { grid-template-rows:minmax(0,1fr); }
html.terminal-embed[data-terminal-panel=tide] .gex-companion-card-header { min-height:21px; padding:2px 7px; }
html.terminal-header-docked[data-terminal-panel=pulse] .gex-rail-display-title::before { display:inline; content:var(--terminal-dock-symbol,''); color:#a5ada8; }
html.terminal-header-docked[data-terminal-panel=tide] .gex-companion-card-header > span::before { content:var(--terminal-dock-symbol,''); color:#a5ada8; }
/* Any vacant header slot can show the docking cue, including the second one. */
.terminal-header-slot:is(.is-swap-hover,.is-swap-ready) { display:block; inset:0 !important; width:100%; z-index:106; pointer-events:none; }
.terminal-header-slot.is-swap-hover::after { border-color:#65ae8d; color:#91d8b8; }
/* GEX dock: commands share the expiry rail; the ledger gets the remaining height. */
html.terminal-embed.terminal-header-docked[data-terminal-panel=gex] .header { position:absolute; top:0; right:0; width:110px; height:20px !important; min-height:20px !important; padding:0 4px !important; margin:0 !important; border:0 !important; z-index:4; background:#000 !important; display:flex !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=gex] .header .controls { width:100%; gap:6px; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=gex] .header :is(#gex-ticker-display,#trifecta-add-btn,#gex-cal-btn) { display:none !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=gex] .header :is(#gex-find-btn,#refresh-button) { height:20px !important; min-height:0 !important; padding:0 2px !important; font:8px 'JetBrains Mono',monospace !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=gex] .view-toggle-rail { min-height:20px !important; height:20px !important; padding:0 112px 0 4px !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=gex] .map-topline { min-height:20px !important; padding:0 !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=gex] .gex-primary-workspace { height:calc(100dvh - 20px) !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=gex] .map-meta { min-height:18px !important; height:18px; padding:1px 5px !important; flex-wrap:nowrap; gap:5px; font:9px 'JetBrains Mono',monospace; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=gex] .map-meta :is(.pigment-watermark-3d,.gex-mini-radar-toggle,.gex-expanded-detail) { display:none !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=gex] .map-meta :is(.status-symbol,.status-spot) { font:9px 'JetBrains Mono',monospace !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=gex] .map-headers { padding:2px 5px 2px 0 !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=gex] .date-header { font:8px/12px 'JetBrains Mono',monospace !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=gex] .map-body { padding:0 5px 0 0 !important; }

/* Navigation artwork occupies two independent, replaceable dashboard slots. */
.terminal-dashboard-slot:is([data-slot="flow-button"],[data-slot="gamma-button"]) { flex:0 0 auto; }
.terminal-window-body :is(#terminal-flow-launcher,#terminal-gamma-launcher) { display:flex; align-items:center; justify-content:center; }
.terminal-dashboard-slot:is([data-slot="flow-button"],[data-slot="gamma-button"]):has(.terminal-dashboard-original:not([hidden]) .terminal-widget-placeholder) { min-height:160px; }

/* Saved bounds include the panel border when fitting smaller screens. */
.terminal-window { box-sizing:border-box; }

/* Dock surfaces cover header content, including descendants with their own z-index. */
.main-header:has(.is-header-docked) > :not(.terminal-header-group,.terminal-header-rail,.terminal-header-scroll) {
    isolation: isolate;
    z-index: 0 !important;
}
.terminal-dashboard-slot:has(> .is-docked) { isolation: isolate; background: #000; }
.terminal-header-slot:has(> .is-docked) { background: #000; contain: paint; }

/* Each docked widget slides independently within the header. */
.terminal-header-rail { position:absolute; inset:0; z-index:105; display:none; overflow:hidden; pointer-events:none; }
.terminal-header-rail:has(.is-header-docked), .terminal-header-targets .terminal-header-rail { display:block; }
.terminal-header-rail .terminal-header-slot { position:absolute; top:0 !important; bottom:0 !important; right:auto !important; left:var(--terminal-dock-x,0px) !important; width:var(--terminal-dock-width,420px); }
.terminal-header-targets .terminal-header-rail .terminal-header-slot:not(:has(> .is-docked))[data-position="0"] { inset:0 !important; width:100%; }
.terminal-window:not(.is-header-docked) :is([data-action=slide-left],[data-action=slide-right]) { display:none; }
/* FIT only for Live TV, and not in the top rail, whose slot is already sized for the picture */
.terminal-window:not([data-tool=tv]) [data-action=fit], .terminal-window.is-header-docked [data-action=fit] { display:none; }
.terminal-window :is([data-action=slide-left],[data-action=slide-right]) { width:16px; padding:0; font:16px/20px monospace; color:#c9a16d; }
.terminal-window :is([data-action=slide-left],[data-action=slide-right]):disabled { color:#444; cursor:default; }
@media(max-width:1499px) { .terminal-header-rail { display:none !important; } }

.terminal-header-rail .terminal-header-slot { transition:left .12s ease-out; }
.terminal-header-rail .terminal-header-slot:has(> .is-moving) { transition:none; }
@media(prefers-reduced-motion:reduce) { .terminal-header-rail .terminal-header-slot { transition:none; } }

.terminal-header-rail .terminal-header-slot:is(.is-swap-hover,.is-swap-ready):not(:has(> .is-docked)) { left:0 !important; width:100%; }

/* Bottom-left minimize control mirrors the bottom-right resize grip. */
.terminal-window .terminal-minimize-toggle { position:absolute; bottom:0; left:0; z-index:11; width:22px; height:20px; padding:0; color:#65ae8d; background:#101010e6; font:18px/20px monospace; }
.terminal-minimize-toggle:hover,.terminal-minimize-toggle:focus-visible { background:#20342b; color:#b3e4cc; }
.terminal-window .terminal-minimized-tab { display:none; }
.terminal-window.is-minimized { width:fit-content !important; height:28px !important; min-width:0 !important; min-height:0 !important; max-width:min(320px,calc(100vw - 16px)); box-shadow:none; }
.terminal-window.is-minimized > :not(.terminal-minimized-tab) { display:none !important; }
.terminal-window.is-minimized .terminal-minimized-tab { display:block; width:100%; height:100%; overflow:hidden; text-overflow:ellipsis; padding:0 10px; text-align:left; color:#aaa; font:10px 'JetBrains Mono',monospace; }
.terminal-minimized-tab::before { content:'↗'; margin-right:8px; color:#65ae8d; }
.terminal-minimized-tab:hover,.terminal-minimized-tab:focus-visible { background:#19231e; color:#ddd; }

.terminal-window.is-expanded.is-minimized { inset:42px auto auto 8px !important; max-width:min(320px,calc(100vw - 16px)); }

/* Floating exposure maps keep a bounded ledger from initial load onward. */
html.terminal-embed:is([data-terminal-panel=gex],[data-terminal-panel=charm]):not(.terminal-header-docked) .page-shell { display:flex !important; flex-direction:column; height:100dvh; min-height:0; overflow:hidden; }
html.terminal-embed:is([data-terminal-panel=gex],[data-terminal-panel=charm]):not(.terminal-header-docked) .page-shell > :is(.header,.gex-mini-chart-band,.view-toggle-rail) { flex-shrink:0; }
html.terminal-embed:is([data-terminal-panel=gex],[data-terminal-panel=charm]):not(.terminal-header-docked) .gex-primary-workspace { display:flex !important; flex:1 1 0; height:auto !important; min-height:0; margin:0 !important; overflow:hidden !important; }
html.terminal-embed:is([data-terminal-panel=gex],[data-terminal-panel=charm]):not(.terminal-header-docked) #trifecta-container { flex:1 1 0; height:100% !important; min-height:0; overflow:hidden !important; }
html.terminal-embed:is([data-terminal-panel=gex],[data-terminal-panel=charm]):not(.terminal-header-docked) body:not(.is-trifecta) #trifecta-container { display:flex !important; flex-direction:column; }
html.terminal-embed:is([data-terminal-panel=gex],[data-terminal-panel=charm]):not(.terminal-header-docked) .map-card { display:flex; flex-direction:column; flex:1 1 0; height:100%; min-height:0; }
html.terminal-embed:is([data-terminal-panel=gex],[data-terminal-panel=charm]):not(.terminal-header-docked) .map-card > :is(.gex-mini-chart-shell,.map-meta,.map-headers) { flex-shrink:0; }
html.terminal-embed:is([data-terminal-panel=gex],[data-terminal-panel=charm]):not(.terminal-header-docked) .map-body { flex:1 1 0; min-height:0; max-height:none !important; overflow:auto !important; }

/* Brief terminal collapse outline never intercepts the live restore tab. */
.terminal-minimize-outline { position:fixed; pointer-events:none; z-index:2147483647; box-sizing:border-box; border:1px solid #65ae8d; background:#10171333; transform-origin:top left; }
.terminal-window.is-minimized .terminal-minimized-tab { border:1px solid transparent; }

/* Tide + 1M IV stacked on the left, GEX Pulse beside them at the same height. */
html.terminal-embed[data-terminal-panel=desk] .gex-primary-workspace { flex-direction: row !important; gap: 0; }
html.terminal-embed[data-terminal-panel=desk] #gex-options-rail { order: 2; display: flex !important; flex: 1 1 50% !important; width: 50% !important; min-width: 0 !important; height: 100% !important; min-height: 0 !important; margin: 0 !important; border: 0 !important; border-left: 1px solid #292929 !important; border-radius: 0 !important; }
html.terminal-embed[data-terminal-panel=desk] #gex-strike-trace { order: 1; display: flex !important; flex: 1 1 50% !important; width: 50% !important; min-width: 0 !important; height: 100% !important; min-height: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
html.terminal-embed[data-terminal-panel=desk] #gex-chain-companion { display: grid !important; grid-template-rows: auto minmax(0,1fr) minmax(0,1fr); padding: 0; gap: 0; height: 100%; min-height: 0; }
html.terminal-embed[data-terminal-panel=desk] #gex-companion-back { display: none !important; }
html.terminal-embed[data-terminal-panel=desk] .gex-companion-toolbar { min-height: 28px; padding: 3px 8px; border-bottom: 1px solid #292929; }
html.terminal-embed[data-terminal-panel=desk] .gex-companion-identity { margin-left: auto; }

/* Desk, Godel-style: flat sections, one hairline between them, small plain headers, charts edge to edge. */
html.terminal-embed[data-terminal-panel=desk] :is(#gex-strike-trace,#gex-options-rail,.gex-companion-card) { background: #050505 !important; box-shadow: none !important; border-radius: 0 !important; }
html.terminal-embed[data-terminal-panel=desk] :is(#gex-strike-trace,#gex-options-rail,.gex-companion-card)::before,
html.terminal-embed[data-terminal-panel=desk] :is(#gex-strike-trace,#gex-options-rail,.gex-companion-card)::after { display: none !important; }
html.terminal-embed[data-terminal-panel=desk] #gex-options-rail { border-left: 1px solid #222 !important; }
html.terminal-embed[data-terminal-panel=desk] #gex-chain-companion { padding: 0 !important; gap: 0 !important; }
html.terminal-embed[data-terminal-panel=desk] .gex-companion-card { border: 0 !important; margin: 0 !important; padding: 0 !important; }
html.terminal-embed[data-terminal-panel=desk] .gex-companion-card + .gex-companion-card { border-top: 1px solid #222 !important; }
html.terminal-embed[data-terminal-panel=desk] :is(.gex-strike-trace-header,.gex-companion-card-header,.gex-companion-toolbar) { min-height: 17px !important; height: 17px; padding: 0 8px !important; margin: 0 !important; display: flex !important; align-items: center !important; gap: 8px; background: transparent !important; border: 0 !important; border-bottom: 1px solid #1c1c1c !important; font: 400 9px 'JetBrains Mono', monospace !important; letter-spacing: 0 !important; color: #9a9a9a !important; }
html.terminal-embed[data-terminal-panel=desk] .gex-strike-trace-header .gex-rail-title-block { display: flex !important; align-items: baseline; gap: 8px; }
html.terminal-embed[data-terminal-panel=desk] .gex-strike-trace-header .gex-rail-display-title { font: 600 9px 'JetBrains Mono', monospace !important; letter-spacing: .06em !important; color: #e0ac55 !important; text-shadow: none !important; }
html.terminal-embed[data-terminal-panel=desk] .gex-strike-trace-header .gex-rail-display-title::before,
html.terminal-embed[data-terminal-panel=desk] .gex-strike-trace-header .gex-rail-display-title::after { display: none !important; }
html.terminal-embed[data-terminal-panel=desk] :is(.gex-strike-trace-subtitle,.gex-strike-trace-status) { font: 8px 'JetBrains Mono', monospace !important; margin: 0 !important; color: #777 !important; }
html.terminal-embed[data-terminal-panel=desk] .gex-strike-trace-status { margin-left: auto !important; }
html.terminal-embed[data-terminal-panel=desk] .gex-strike-trace-legend { min-height: 14px !important; padding: 1px 8px !important; border-bottom: 1px solid #141414 !important; background: transparent !important; }
html.terminal-embed[data-terminal-panel=desk] .gex-companion-card-header > span { font: 600 9px 'JetBrains Mono', monospace !important; color: #e0ac55 !important; letter-spacing: .06em; }
html.terminal-embed[data-terminal-panel=desk] .gex-companion-card-header small { font-size: 8px !important; color: #6c6c6c !important; letter-spacing: 0; font-weight: 400; }
html.terminal-embed[data-terminal-panel=desk] .gex-companion-card-header strong { margin-left: auto; font: 600 9px 'JetBrains Mono', monospace !important; }
html.terminal-embed[data-terminal-panel=desk] .gex-companion-toolbar { justify-content: flex-end; }
html.terminal-embed[data-terminal-panel=desk] .gex-companion-identity :is(.gex-companion-symbol,.gex-companion-spot) { font: 600 9px 'JetBrains Mono', monospace !important; }
html.terminal-embed[data-terminal-panel=desk] .gex-companion-symbol-logo { width: 13px !important; height: 13px !important; flex: 0 0 13px !important; border: 0 !important; background: transparent !important; margin-right: 1px; }
html.terminal-embed[data-terminal-panel=desk] .gex-companion-symbol-logo img { border-radius: 2px; image-rendering: auto; }
html.terminal-embed[data-terminal-panel=desk] .gex-companion-chart-wrap { padding: 2px 4px 0 !important; }
/* Desk window header (ticker / FIND / REFRESH) slimmed to match. */
html.terminal-embed[data-terminal-panel=desk] .header { min-height: 18px !important; height: 18px; background: #050505 !important; border-bottom: 1px solid #1c1c1c !important; }
html.terminal-embed[data-terminal-panel=desk] .header .ticker-active-display { height: 16px !important; padding: 0 5px !important; font-size: 9px !important; }
html.terminal-embed[data-terminal-panel=desk] .header .controls button { height: 16px !important; padding: 0 5px !important; font-size: 8px !important; }
html.terminal-embed[data-terminal-panel=desk] .gex-primary-workspace { height: calc(100dvh - 18px) !important; }
html.terminal-embed[data-terminal-panel=desk] .gex-companion-chart-wrap { padding: 0 2px !important; }

/* Docked in the short header slot: three columns, Pulse | 1M IV | Tide, each full height. */
html.terminal-embed.terminal-header-docked[data-terminal-panel=desk] .header { display: none !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=desk] .gex-primary-workspace { height: 100dvh !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=desk] #gex-strike-trace { flex: 1 1 33% !important; width: 33% !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=desk] #gex-options-rail { flex: 2 1 67% !important; width: 67% !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=desk] #gex-chain-companion { grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; grid-template-rows: auto minmax(0,1fr) !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=desk] .gex-companion-toolbar { grid-column: 1 / -1; min-height: 15px !important; height: 15px; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=desk] .gex-companion-card + .gex-companion-card { border-top: 0 !important; border-left: 1px solid #222 !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=desk] .gex-companion-legend { display: none !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=desk] .gex-strike-trace-legend { display: none !important; }

/* Tracked Fish shortcut in the quick bar: gold star. */
.terminal-quick-tracked{color:#e0ac55}
/* Tracked Fish mark (three tailed stars), white; replaces the old star. */
.tf-mark { display:inline-block; width:1.05em; height:1.05em; vertical-align:-0.18em; background:currentColor; -webkit-mask:url(/assets/tracked-fish-mark.svg) center/contain no-repeat; mask:url(/assets/tracked-fish-mark.svg) center/contain no-repeat; }
.terminal-quick-tracked .tf-mark{color:#fff;margin-right:2px;width:1.45em;height:1.45em;vertical-align:-.38em}

/* Price Action with a docked terminal as a tab: PA header stays; the terminal fills the widget body. */
#live-price-action.pa-has-dock { display: flex; flex-direction: column; }
#live-price-action.pa-has-dock > .terminal-window.is-docked { display: none; position: relative; inset: auto !important; width: 100% !important; height: auto !important; flex: 1 1 auto; min-height: 0; border: 0; box-shadow: none; z-index: auto !important; }
#live-price-action.pa-show-dock > .terminal-window.is-docked { display: flex; }
#live-price-action.pa-show-dock > .widget-content { display: none !important; }
#live-price-action.pa-has-dock > .terminal-window.is-docked > .terminal-window-head,
#live-price-action.pa-has-dock > .terminal-window.is-docked > .terminal-resize-handle,
#live-price-action.pa-has-dock > .terminal-window.is-docked > .terminal-minimize-toggle { display: none !important; }
#live-price-action.pa-has-dock > .terminal-window.is-docked > .terminal-window-body { flex: 1 1 auto; height: 100%; }
.price-action-view-btn.pa-dock-tab { display: inline-flex; align-items: center; gap: 5px; }
.price-action-view-btn.pa-dock-tab .pa-dock-undock { opacity: .55; font-size: 10px; padding: 0 2px; cursor: pointer; }
.price-action-view-btn.pa-dock-tab .pa-dock-undock:hover { opacity: 1; color: #e0ac55; }
.pa-undock-btn { margin-left: auto; margin-right: 8px; padding: 2px 8px; background: none; border: 1px solid #3c3c3c; color: #c7c7c7; font: 600 9px 'JetBrains Mono', monospace; letter-spacing: .08em; cursor: pointer; white-space: nowrap; }
.pa-undock-btn:hover { border-color: #e0ac55; color: #e0ac55; }

/* 1M IV + Pulse panel: Tide removed; 1M IV fills the companion column (floating and docked). */
html.terminal-embed[data-terminal-panel=desk] #gex-chain-companion .gex-companion-card[aria-label="Market tide"] { display: none !important; }
html.terminal-embed[data-terminal-panel=desk] #gex-chain-companion { grid-template-rows: auto minmax(0,1fr) !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=desk] #gex-chain-companion { grid-template-columns: minmax(0,1fr) !important; grid-template-rows: auto minmax(0,1fr) !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=desk] #gex-strike-trace { flex: 1 1 50% !important; width: 50% !important; }
html.terminal-embed.terminal-header-docked[data-terminal-panel=desk] #gex-options-rail { flex: 1 1 50% !important; width: 50% !important; }

/* 1M IV context strip (Ratio-style): 1D/1W change, IV rank, realised vol, premium, next earnings. */
.gex-iv-strip { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 2px 8px 3px; border-bottom: 1px solid #141414; font: 9px/1.35 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; color: #d5d5d5; }
.gex-iv-strip:empty { display: none; }
.gex-iv-strip .gis-cell { display: inline-flex; gap: 4px; align-items: baseline; white-space: nowrap; }
.gex-iv-strip i { font-style: normal; color: #6b7178; letter-spacing: .06em; }
.gex-iv-strip b { font-weight: 400; color: #e6e6e6; padding: 0 1px; }
.gex-iv-strip b.up, .gex-iv-strip b.rich { color: #ff4466; }
.gex-iv-strip b.down, .gex-iv-strip b.cheap { color: #45e08a; }
.gex-iv-strip b.warm, .gex-iv-strip b.soon { color: #e0ac55; }
.gex-iv-strip b.hot { color: #ff4466; }
.gex-iv-strip b.dim { color: #8f959b; }
.gex-iv-strip.is-arriving .gis-cell { animation: gis-tick .3s steps(3, end) both; }
.gex-iv-strip.is-arriving .gis-cell:nth-child(2) { animation-delay: .04s; }
.gex-iv-strip.is-arriving .gis-cell:nth-child(3) { animation-delay: .08s; }
.gex-iv-strip.is-arriving .gis-cell:nth-child(4) { animation-delay: .12s; }
.gex-iv-strip.is-arriving .gis-cell:nth-child(5) { animation-delay: .16s; }
.gex-iv-strip.is-arriving .gis-cell:nth-child(6) { animation-delay: .20s; }
@keyframes gis-tick { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }
.gex-iv-strip .gis-cell.flash b { animation: gis-flash .9s ease-out; }
@keyframes gis-flash { 0% { background: #e0ac55; color: #000; } 100% { background: transparent; } }
html.terminal-header-docked .gex-iv-strip { gap: 0 8px; padding: 1px 6px; font-size: 8px; }
@media (prefers-reduced-motion: reduce) { .gex-iv-strip.is-arriving .gis-cell, .gex-iv-strip .gis-cell.flash b { animation: none; } }

/* AGENT card: same shell as KEYS, with a copyable prompt for AI agents. */
.terminal-agent-card { width: min(460px, calc(100vw - 24px)); }
.terminal-agent-prompt { margin: 6px 0; padding: 7px 8px; white-space: pre-wrap; background: #0a0a0a; border: 1px solid #2a2a2a; border-left: 2px solid #e0ac55; color: #d6d6d6; font: 10px/1.5 'JetBrains Mono', monospace; }
.terminal-agent-actions { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.terminal-agent-actions button, .terminal-agent-actions a { padding: 1px 8px; border: 1px solid #e0ac55; color: #e0ac55; background: none; font: 600 9px 'JetBrains Mono', monospace; letter-spacing: .06em; text-decoration: none; cursor: pointer; }
.terminal-agent-card dt { color: #d0d0d0; }
.terminal-agent-card dl { display: block; }
.terminal-agent-card dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; border-bottom: 1px solid #1d1d1d; }
.terminal-agent-card dt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terminal-agent-card dd { margin: 0; white-space: nowrap; color: #8a8a8a; }
