/* Floating panels extend the native page. No separate layout-manager interface. */
.thfp-home,.thfp-surface,.thfp-dialog,.thfp-pip-body{--fw-bg:var(--void,#080d12);--fw-panel:var(--panel,#111820);--fw-line:var(--line,#26313e);--fw-text:var(--ink,var(--text,#e0e8f0));--fw-muted:var(--mute,var(--muted,#99a7b7));--fw-accent:var(--signal,#36c9e5);color:var(--fw-text);font-family:var(--font-sans,Inter,system-ui,sans-serif)}
.thfp-home [hidden],.thfp-surface [hidden],.thfp-surface[hidden]{display:none!important}
.thfp-home *,.thfp-surface,.thfp-surface *,.thfp-dialog *{box-sizing:border-box}
.thfp-popout{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;padding:4px;margin-left:auto;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--muted,#99a7b7);cursor:pointer}
.thfp-popout:hover{color:var(--signal,#36c9e5);border-color:var(--line,#26313e)}
.thfp-popout:focus-visible,.thfp-home :focus-visible,.thfp-dialog :focus-visible{outline:2px solid var(--signal,#36c9e5);outline-offset:2px}
.thfp-dialog button,.thfp-dialog select{font:inherit;font-size:12px;color:var(--fw-text);border:1px solid var(--fw-line);background:var(--fw-panel);min-height:30px;padding:5px 9px;cursor:pointer}
.thfp-notice{margin:0;padding:8px;font-size:12px;color:var(--fw-muted)}.thfp-notice--error{color:var(--danger,#ff8590)}
.thfp-surface.live-term{display:flex!important;flex-direction:column!important;align-items:stretch!important;position:relative;isolation:isolate;gap:0!important;width:100%;max-width:none;min-width:0;margin:10px 0;background:var(--fw-bg);border:1px solid var(--fw-line);border-radius:6px;overflow:hidden;container-type:inline-size}
.thfp-window-head{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;height:28px;padding:0 6px 0 8px;flex:0 0 28px;border-bottom:1px solid var(--fw-line);background:var(--fw-bg);font-size:11px;min-width:0}
.thfp-window-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;color:var(--fw-muted)}
.thfp-window-head .thfp-return{display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;min-width:26px;height:24px;min-height:24px;padding:3px;border:1px solid transparent;border-radius:3px;background:transparent;color:var(--fw-muted);cursor:pointer}
.thfp-window-head .thfp-return:hover{border-color:var(--fw-line);color:var(--fw-accent)}
.thfp-fallback-note{margin:0;padding:7px 10px;color:var(--fw-muted);font-size:11px;border-bottom:1px solid var(--fw-line)}
.thfp-surface{height:min(85vh,900px);min-height:360px;scroll-margin-top:12px}
.thfp-content.live-term__side{display:block!important;flex:1 1 auto;min-width:0!important;max-width:none!important;width:100%!important;min-height:0;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--fw-line) transparent}
.thfp-content>.widget-card,.thfp-content>.live-term__main,.thfp-content>.liqmap-card{width:100%;margin:0!important;border-radius:0;min-width:0!important;max-width:none!important}
.thfp-content .tape-command-header{position:relative;top:auto}
.thfp-content .livechart-card{width:100%!important;max-width:none!important;min-width:0!important}.thfp-content .livechart-canvas-wrap{min-height:140px!important;max-height:none!important}.thfp-content .livechart-resize-handle,.thfp-content .panel-drag-handle{display:none!important}
.thfp-content .liqmap-card{overflow:visible}.thfp-content .liqmap-toolbar{flex-wrap:wrap;min-width:0}.thfp-content .liq-sidebar__list{max-height:none;overflow:visible}.thfp-content .wc-split{display:flex;flex-wrap:wrap}.thfp-content .wc-split-col{flex:1 1 250px;min-width:0!important}
.thfp-surface [data-thfp-popout]{display:none}.thfp-placeholder{min-width:0;border:1px dashed var(--line,#26313e);border-radius:6px;display:grid;place-content:center;padding:20px}.thfp-placeholder-content{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;color:var(--muted,#99a7b7);font-size:12px}.thfp-placeholder button{font:inherit;color:var(--text,#e0e8f0);border:1px solid var(--line,#26313e);background:var(--panel,#111820);border-radius:4px;padding:7px 10px;cursor:pointer}
.thfp-pip-body{margin:0!important;padding:0!important;background:var(--void,#080d12)!important;overflow:hidden!important}.thfp-pip-shell#terminal-shell{display:block!important;width:100%!important;height:100dvh!important;max-width:none!important;padding:0!important;margin:0!important;overflow:hidden}.thfp-pip-shell>.thfp-surface.live-term{height:100%;min-height:0;margin:0;border:0;border-radius:0}.thfp-pip-shell .thfp-content{overscroll-behavior:contain}
.thfp-portals{display:contents}.thfp-empty{display:grid;place-content:center;gap:12px;padding:30px;min-height:180px;font-size:13px}
.thfp-dialog{width:min(420px,calc(100vw - 24px));padding:20px;border:1px solid var(--fw-line);border-radius:8px;background:var(--fw-panel);color:var(--fw-text);box-shadow:0 20px 70px #0008}.thfp-dialog::backdrop{background:#0009}.thfp-dialog h3{font-size:16px;margin:0 0 16px}.thfp-dialog form{display:flex;flex-wrap:wrap;gap:10px}.thfp-dialog p{font-size:12px;line-height:1.6;width:100%;margin:0 0 8px}.thfp-field{display:grid;gap:6px;width:100%;font-size:12px}
@container(max-width:620px){.thfp-content .livechart-toolbar,.thfp-content .livechart-ticker,.thfp-content .tape-toolbar{flex-wrap:wrap}.thfp-content .liqmap-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.thfp-content .liqmap-mobile-controls{display:flex!important;flex-wrap:wrap}.thfp-window-head{gap:6px}}
@media(prefers-reduced-motion:reduce){.thfp-home *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.thfp-surface.live-term[hidden]{display:none!important}

/* The temporary document inherits the site's html overflow-y:scroll unless reset here. */
html.thfp-pip-document{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;overscroll-behavior:none}
.thfp-pip-document .thfp-surface.live-term{align-items:stretch!important}
.thfp-surface:fullscreen{height:100dvh!important;min-height:0;margin:0;border:0;border-radius:0}
#terminal-shell .thfp-content{padding:0!important}
#terminal-shell .thfp-content>.widget-card,#terminal-shell .thfp-content>.live-term__main,#terminal-shell .thfp-content>.liqmap-card{box-sizing:border-box;width:100%!important;max-width:100%!important;margin:0!important;border:0!important;border-radius:0!important}
#terminal-shell .thfp-content>.livechart-card{padding:0!important}
/* Keep the native High/Low/Price/Vol/OI strip, including its original styling. */
#terminal-shell .thfp-content .livechart-ticker,#terminal-shell .thfp-content .livechart-chart-stats{flex-shrink:0}
/* The native mobile rules are scoped to #crypto-tape-root. A moved chart
   loses that ancestor, but must retain the same ticker and 767px stats strip.
   Values below match live-tape.css and mobile-crypto-v375.css; no data is copied. */
@media(max-width:640px){
 #terminal-shell .thfp-content .livechart-ticker{margin:0 0 2px;padding:2px 4px}
 #terminal-shell .thfp-content .livechart-ticker__stat{min-height:18px;padding:1px 2px}
}
@media(max-width:767px){
 #terminal-shell .thfp-content .livechart-ticker{margin-bottom:3px!important;padding:3px 4px 2px!important}
 #terminal-shell .thfp-content .livechart-ticker__stat{padding:1px!important}
 #terminal-shell .thfp-content .livechart-ticker__stat-label{font-size:8.5px!important}
 #terminal-shell .thfp-content .livechart-card[data-panel="livechart"] .livechart-ticker{display:flex;align-items:center;gap:4px}
 #terminal-shell .thfp-content .livechart-card[data-panel="livechart"] .livechart-ticker__stats{flex:1;min-width:0}
 #terminal-shell .thfp-content .livechart-card[data-panel="livechart"] .livechart-ticker>.livechart-timezone{width:116px;max-width:40%;min-width:0;height:26px;min-height:26px;margin:0;padding:2px 3px;font-size:9px}
 #terminal-shell .thfp-content .livechart-card[data-panel="livechart"] .livechart-ticker__stats>.livechart-ticker__extra{display:none}
 #terminal-shell .thfp-content .livechart-card[data-panel="livechart"] .livechart-ticker__stat--price{flex:1;width:100%;flex-direction:row;align-items:baseline;justify-content:center;gap:4px;padding:2px}
 #terminal-shell .thfp-content .livechart-card[data-panel="livechart"] .livechart-ticker__stat--price .livechart-ticker__stat-label{display:none}
 #terminal-shell .thfp-content .livechart-card[data-panel="livechart"] .livechart-ticker__pricechg{gap:4px}
 #terminal-shell .thfp-content .livechart-card[data-panel="livechart"] .livechart-ticker__price{font-size:13px}
 #terminal-shell .thfp-content .livechart-card[data-panel="livechart"] .livechart-ticker__change{font-size:9px}
 #terminal-shell .thfp-content .livechart-chart-stats:not([hidden]){display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:2px 10px;padding:2px 0;margin:3px 0 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
 #terminal-shell .thfp-content .livechart-chart-stats .livechart-ticker__extra{display:contents}
}
#terminal-shell .thfp-content .livechart-chart-row{margin:0!important;min-height:0}
#terminal-shell .thfp-content .livechart-canvas-wrap{border:0!important;border-radius:0!important;min-height:140px!important;max-height:none!important}
#terminal-shell .thfp-content .livechart-subpane{margin:0!important;border-right:0;border-left:0;border-bottom:0;border-radius:0}
#terminal-shell .thfp-content .livechart-subpane:not(#livechart-volume-pane) .livechart-subpane-resize-handle{display:none!important}
/* Explicitly arrange the native groups; the original market wrapper is block
   outside #crypto-tape-root, which previously stacked symbol/timeframe/type. */
#terminal-shell .thfp-content .livechart-toolbar{display:flex;align-items:center;flex-wrap:wrap!important;gap:4px!important;min-width:0;width:100%;padding:5px 6px!important;margin:0!important;overflow:visible}
#terminal-shell .thfp-content .livechart-market-controls{display:flex;align-items:center;flex-wrap:nowrap;gap:4px;flex:0 1 auto;min-width:0}
#terminal-shell .thfp-content .livechart-market-controls>.tape-toolbar__group{display:flex;flex:0 0 auto;min-width:0}
#terminal-shell .thfp-content .livechart-controls-group{display:flex;flex:1 1 auto!important;min-width:0;margin:0!important;padding:0!important;border:0}
#terminal-shell .thfp-content .livechart-overflow{display:contents}
#terminal-shell .thfp-content .livechart-overflow-panel:not([hidden]){display:flex!important;position:static;align-items:center;flex-direction:row;flex-wrap:wrap!important;gap:4px!important;flex:1 1 auto;min-width:0;max-width:100%;width:auto;max-height:none;padding:0;border:0;box-shadow:none;overflow:visible;background:transparent}
#terminal-shell .thfp-content .livechart-overflow-panel>.filter-control{flex:0 0 auto;width:auto}
/* Native mobile menus use 100%-wide commands. These commands stay inline
   in a floating toolbar, including Studio and active/toggled buttons. */
#terminal-shell .thfp-content .livechart-overflow-panel>.toolbar-btn,#terminal-shell .thfp-content .livechart-overflow-panel>.filter-control>.toolbar-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;flex-shrink:0;width:28px;min-width:28px}
#terminal-shell .thfp-content .livechart-toolbar>.tape-toolbar__group--right{display:flex;align-self:center;align-items:center;justify-content:center;flex:0 0 28px;width:28px;min-width:0;margin:0;padding:0;border:0;gap:0}
#terminal-shell .thfp-content .livechart-toolbar .toolbar-btn,#terminal-shell .thfp-content .livechart-toolbar .tape-toolbar__select{height:28px;min-height:28px;max-width:100%;margin:0;padding:3px 6px;font-size:11px}
#terminal-shell .thfp-content .livechart-toolbar .toolbar-btn__label{display:none!important}
/* Keep the add-chart action on the same compact baseline as the other tools.
   The native phone toolbar reserves 32/36px and adds a separate-row border. */
#terminal-shell .thfp-content .livechart-card[data-panel="livechart"] .livechart-toolbar{position:relative;padding-right:38px!important}
#terminal-shell .thfp-content .livechart-card[data-panel="livechart"] .livechart-toolbar>.tape-toolbar__group--right{position:absolute;top:5px;right:6px;height:28px}
#terminal-shell .thfp-content .livechart-toolbar :is(#livechart-add-second-btn,#livechart-type-btn,#livechart2-type-btn){display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;min-width:28px;max-width:28px;height:28px;min-height:28px;margin:0;padding:0;gap:0;box-sizing:border-box}
#terminal-shell .thfp-content #livechart-add-second-btn:not(:disabled):hover{color:var(--fw-text);background:var(--panel-hover,var(--fw-panel));border-color:var(--mute-dim,var(--fw-line))}
#terminal-shell .thfp-content #livechart-add-second-btn:focus-visible{outline:2px solid var(--fw-accent);outline-offset:2px}
/* Terminal square-corner rules must not turn the tracking status into a box. */
#terminal-shell .thfp-content .livechart-autoscroll-btn__dot{border-radius:50%!important}
#terminal-shell .thfp-content .livechart-timezone-select{max-width:130px!important;width:100px}
#terminal-shell .thfp-content .livechart-toolbar .thfp-popout{margin:0}
#terminal-shell .thfp-content .live-tape{min-height:0!important;height:auto!important;max-height:none;flex:1 1 auto}
#terminal-shell .thfp-content .liq-sidebar{overflow:visible}
#terminal-shell .thfp-content .liq-sidebar__list{max-height:none!important;overflow:visible!important}
#terminal-shell .thfp-content .liqmap-stage{min-height:180px!important;max-height:none!important;border-radius:0}
#terminal-shell .thfp-content .liqmap-toolbar{overflow:visible;flex-wrap:wrap}
#terminal-shell .thfp-content .liqmap-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
#terminal-shell .thfp-content .wc-split-body{display:flex;flex-wrap:wrap;gap:12px}
#terminal-shell .thfp-content .wc-split-col{flex:1 1 250px;min-width:0!important;max-width:100%}
#terminal-shell .thfp-content .widget-card__head{min-width:0;max-width:100%;box-sizing:border-box}
@container(max-width:600px){
 #terminal-shell .thfp-content .liqmap-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 #terminal-shell .thfp-content .wc-split-col{flex-basis:100%;padding-left:0;border-left:0}
}
/* Preserve the map's six fields without the native four-column named-area
   template creating implicit columns in a narrow floating window. */
#terminal-shell .thfp-content .liqmap-summary{grid-template-areas:none!important;grid-template-rows:auto!important}
#terminal-shell .thfp-content .liqmap-summary>div{grid-area:auto!important;display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;padding:7px 8px}
#terminal-shell .thfp-content .liqmap-summary strong{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#terminal-shell .thfp-content .liqmap-summary small{max-width:100%;white-space:normal;justify-self:start}
#terminal-shell .thfp-content .liqmap-chart-meta{flex-wrap:wrap;gap:5px 10px}
#terminal-shell .thfp-content .liqmap-seg{flex-wrap:wrap;min-width:0;max-width:100%}
#terminal-shell .thfp-content .term-identity-bar{flex-wrap:wrap;white-space:normal;overflow:visible;gap:6px}
#terminal-shell .thfp-content>.widget-card{padding:0!important}
#terminal-shell .thfp-content>.widget-card>.widget-card__head{width:100%;max-width:100%;margin:0!important;padding:6px 8px}
#terminal-shell .thfp-content>.widget-card>.widget-card__body{padding:8px!important}
#terminal-shell .thfp-content .liqmap-head,#terminal-shell .thfp-content .liqmap-title,#terminal-shell .thfp-content .liqmap-health{flex-wrap:wrap;min-width:0;max-width:100%}
#terminal-shell .thfp-content .liqmap-model-badge{display:inline-flex!important;max-width:100%;white-space:normal}
#terminal-shell .thfp-content .liqmap-coverage{max-width:100%;white-space:normal}
#terminal-shell .thfp-content .pulseflow-card>.widget-card__head h4{display:flex;align-items:center;flex-wrap:wrap;gap:4px;min-width:0;white-space:normal}
@container(max-width:600px){#terminal-shell .thfp-content .liqmap-health{flex-basis:100%;margin-left:0}}

/* The site's stable scrollbar gutter otherwise reserves space even when html
   overflow is hidden. PiP has its own single, explicitly chosen scroll owner. */
html.thfp-pip-document{scrollbar-gutter:auto!important}
#terminal-shell.thfp-pip-shell{position:static!important;inset:auto!important;transform:none!important;box-sizing:border-box}
#terminal-shell .thfp-content>.widget-card>.widget-card__head{display:flex!important;align-items:center;flex-wrap:wrap;gap:6px}
#terminal-shell .thfp-content>.widget-card>.widget-card__head h4{flex:1 1 150px;min-width:0;white-space:normal}
/* Only these two existing siblings move for Volume; ancillary analytics stay home. */
#terminal-shell .thfp-surface[data-widget="volume"]>.thfp-content{display:flex!important;flex-direction:column;overflow:hidden}
#terminal-shell .thfp-content>.tape-command-header{position:relative;top:auto;flex:0 0 auto;width:100%;min-width:0;container:trade-tape / inline-size;z-index:5}
#terminal-shell .thfp-content>.live-term__tape-frame{height:auto!important;min-height:0!important;max-height:none!important;flex:1 1 0;overflow:hidden;border:0;margin:0}
#terminal-shell .thfp-content .live-tape{overflow-y:auto;overflow-x:hidden;scrollbar-gutter:auto;overscroll-behavior:contain}
#terminal-shell .thfp-content .term-identity-bar{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;padding:3px 6px;min-height:26px;overflow:visible;white-space:nowrap}
#terminal-shell .thfp-content .term-identity-bar__brand{font-size:10.5px;letter-spacing:0;flex:0 0 auto}
#terminal-shell .thfp-content .term-identity-bar__status{display:flex;align-items:center;gap:6px;min-width:0;flex:0 1 auto}
#terminal-shell .thfp-content .term-identity-bar__sep{display:none}
#terminal-shell .thfp-content .term-identity-bar__item{display:flex;align-items:center;gap:4px;font-size:10px;letter-spacing:0}
#terminal-shell .thfp-content .term-clock-chip{display:flex;align-items:center;position:static;flex:0 0 auto;margin:0 0 0 auto;padding:1px 4px;font-size:10px;white-space:nowrap}
#terminal-shell .thfp-content .tape-selected-metric{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;font:10px var(--font-mono);color:var(--mute)}
#terminal-shell .thfp-content .tape-selected-metric.asset-pill__chg--up{color:var(--pulse)}
#terminal-shell .thfp-content .tape-selected-metric.asset-pill__chg--down{color:var(--danger)}
#terminal-shell .thfp-content .asset-command-row{display:flex;align-items:center;flex-wrap:nowrap;gap:4px;min-width:0;padding:3px 4px}
#terminal-shell .thfp-content .tape-asset-select{display:block;flex:0 0 100px;width:100px;min-width:0;height:28px;padding:0 5px;background:var(--panel);color:var(--signal);border:1px solid var(--line);font:10px var(--font-mono)}
#terminal-shell .thfp-content .asset-command-row .asset-select{display:none;min-width:0;padding:0}
#terminal-shell .thfp-content .asset-quick-controls{display:flex;align-items:center;flex:1 1 auto;min-width:0;flex-wrap:nowrap;justify-content:flex-end;gap:3px;padding:0;border:0}
#terminal-shell .thfp-content .asset-quick-controls>.filter-control{flex:0 0 auto}
#terminal-shell .thfp-content .asset-quick-controls .toolbar-btn{flex:0 0 auto;width:28px;min-width:28px;height:28px;min-height:28px;padding:0}
#terminal-shell .thfp-content .asset-quick-controls .toolbar-btn__label{display:none}
#terminal-shell .thfp-content .asset-quick-controls #tape-cluster-btn{width:64px;min-width:64px;flex-basis:64px;gap:4px;padding:0 4px;justify-content:center;font-size:10px}
#terminal-shell .thfp-content #tape-cluster-btn .toolbar-btn__label{display:inline!important}
#terminal-shell #crypto-tape-root .term-identity-bar>[data-thfp-popout]{margin-left:0}
/* Restore the native navigation order without a manager button before the tabs. */
#terminal-shell .term-tabs__list{margin-right:auto}
/* Every liquidation timeframe and event field stays available. The outer
   content scrolls vertically; event rows do not sit inside another fixed viewport. */
#terminal-shell .thfp-content .liq-sidebar{height:auto!important;max-height:none!important;overflow:visible;flex:none}
#terminal-shell .thfp-content .liq-sidebar>.widget-card__body{height:auto;max-height:none;overflow:visible;flex:none}
#terminal-shell .thfp-content .liq-sidebar__list{height:auto!important;min-height:0!important;max-height:none!important;flex:0 0 auto;overflow:visible!important;scrollbar-gutter:auto}
#terminal-shell .thfp-content .liq-sidebar__empty{min-height:80px}
#terminal-shell .thfp-content .liq-multi{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%;max-width:none;margin:0 0 8px}
#terminal-shell .thfp-content .liq-multi-block{display:flex;flex-direction:column;gap:6px;padding:6px 2px;min-width:0}
#terminal-shell .thfp-content .liq-multi-block__sides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:4px}
#terminal-shell .thfp-content .liq-multi-block__side{flex-direction:column;align-items:center;gap:3px}
#terminal-shell .thfp-content .liq-multi-block__value{font-size:12px}
#terminal-shell .thfp-content .liq-sidebar__row,#terminal-shell .thfp-content .liq-sidebar__head-row{display:grid;grid-template-columns:20px minmax(50px,1fr) 42px minmax(58px,1fr) 60px;gap:4px;padding:5px 4px}
#terminal-shell .thfp-content .liq-sidebar__row>span,#terminal-shell .thfp-content .liq-sidebar__head-row>span{width:auto;min-width:0;font-size:11px}
@container(max-width:480px){
 #terminal-shell .thfp-content .term-identity-bar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:3px 6px}
 #terminal-shell .thfp-content .term-identity-bar__status{justify-content:flex-end}
 #terminal-shell .thfp-content .term-identity-bar__status>.term-identity-bar__item:not(#term-identity-ws){display:none}
 #terminal-shell .thfp-content .tape-selected-metric{grid-row:2;grid-column:1/-1;text-align:left}
 #terminal-shell .thfp-content .term-clock-chip{grid-column:3;grid-row:1}
 #terminal-shell .thfp-content .liq-multi{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container trade-tape (min-width:680px){
 #terminal-shell .thfp-content .tape-asset-select{display:none}
 #terminal-shell .thfp-content .asset-command-row .asset-select{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:1 1 auto;gap:4px}
 #terminal-shell .thfp-content .asset-quick-controls{flex:0 0 auto}
 #terminal-shell .thfp-content .asset-pill{min-width:0;margin:0;padding:3px 5px;gap:4px;flex-direction:row;align-items:center;justify-content:center;font-size:10px;letter-spacing:0}
 #terminal-shell .thfp-content .asset-pill__label{white-space:nowrap}
 #terminal-shell .thfp-content .asset-pill__chg{font-size:10px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #terminal-shell .thfp-content .tape-selected-metric{display:none}
}

/* Density, font-size and pause remain the original tape preferences. */
#terminal-shell .thfp-content .tape-row{height:26px;min-height:26px;max-height:26px;padding-top:0;padding-bottom:0;overflow:hidden}
#terminal-shell .thfp-surface.tape-mode--compact .tape-row{height:22px;min-height:22px;max-height:22px}
#terminal-shell .thfp-surface.tape-mode--large .tape-row{height:34px;min-height:34px;max-height:34px}
#terminal-shell .thfp-content .tape-row__cluster{height:18px;display:inline-flex;align-items:center;justify-content:center;padding-top:0;padding-bottom:0}

/* Native PiP is sized by its window controls; fullscreen is not offered there. */
html.thfp-pip-document #terminal-shell .thfp-content :is(#livechart-fullscreen-btn,#livechart2-fullscreen-btn,#tape-fullscreen-btn,#liqmap-fullscreen-btn){display:none!important}

/* Volume has one native identity row; its return icon occupies the pop-out slot. */
#terminal-shell .thfp-content .term-identity-bar>.thfp-return{display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:24px;min-height:24px;margin:0;padding:3px;border:1px solid transparent;background:transparent;color:var(--fw-muted)}
#terminal-shell .thfp-content .term-identity-bar>.thfp-return:hover{color:var(--fw-accent);border-color:var(--fw-line)}
@container(max-width:480px){
 #terminal-shell .thfp-content .term-identity-bar{grid-template-columns:auto minmax(0,1fr) auto 26px}
 #terminal-shell .thfp-content .term-identity-bar>.thfp-return{grid-column:4;grid-row:1}
}
/* Docked Market Pulse uses its content height instead of the chart-sized shell. */
.thfp-home>.thfp-surface[data-widget="pulse"]{height:auto;min-height:0;max-height:85vh}
.thfp-home>.thfp-surface[data-widget="pulse"]>.thfp-content{flex:0 1 auto;max-height:calc(85vh - 28px)}

/* Native PiP owns the title/return chrome. The docked fallback still
   needs its in-page return control. */
html.thfp-pip-document .thfp-window-head,
html.thfp-pip-document .thfp-return { display:none!important; }
@container(max-width:480px){
 html.thfp-pip-document #terminal-shell .thfp-content .term-identity-bar{grid-template-columns:auto minmax(0,1fr) auto}
}

/* Manual Volume resizing must not scroll-anchor or shift the plot width. */
html.thfp-pip-document .thfp-surface[data-widget="chart"] > .thfp-content { scrollbar-gutter:stable; overflow-anchor:none; }
