/* Compact chart chrome; keep engine nodes mounted so their interactions survive redraw. */
#terminal #chartPanel>.ph,#terminal #chartPanel>.t-chart-advanced{display:none!important}
#terminal #chartPanel{padding:6px!important}
#terminal #chartPanel #bfPxMain{padding:0!important}
#terminal #bfPxMain .bf-pg-t{display:grid!important;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:0!important}
#terminal #bfPxMain .bf-pg-h{grid-column:1;margin:0!important;padding:6px!important;min-height:38px!important;border:0!important;white-space:nowrap}
#terminal #bfPxMain .bf-pg-h .bf-nm{display:none!important}
#terminal #bfPxMain .chart-essential-tools{grid-column:2;display:flex!important;justify-content:flex-end;flex-wrap:wrap!important;gap:4px!important;padding:4px 6px!important;border:0!important;min-width:0}
#terminal #bfPxMain .bf-vg-per{grid-column:1/-1;display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:3px!important;margin:0!important;padding:4px 6px!important;min-height:34px!important;border-top:1px solid var(--t-border)}
#terminal #bfPxMain .bf-vg-per .bf-pg-zm{position:static!important;display:inline-flex!important;align-items:center;gap:3px;margin-left:auto!important;opacity:1!important;transform:none!important;height:auto!important}
#terminal #bfPxMain .bf-vg-per #bfPxToggle{position:static!important;transform:none!important;margin:0!important;inset:auto!important}
#terminal #bfPxMain .bf-pg-ch,#terminal #bfPxMain .bf-pg-f,#terminal #bfPxMain .bf-drawbar{grid-column:1/-1}
#terminal #bfPxMain .bf-pg-ch{margin-top:0!important}
#terminal #chartPanel .chart-essential-tools button,#terminal #bfPxMain .bf-vg-per button{min-height:30px!important;padding:4px 7px!important;font-size:11px!important;border-radius:4px!important}
#terminal #chartPanel [data-hb="alv"],#terminal #chartPanel [data-zm="eye"],#terminal #chartPanel .bellchip .bell{display:none!important}
#terminal #chartPanel [data-hb="eye"]{font-size:0!important;width:31px!important;min-width:31px!important;position:relative!important}
#terminal #chartPanel [data-hb="eye"]:before{content:"";width:19px;height:19px;display:block;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z' fill='none' stroke='black' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center/contain no-repeat}
#terminal #chartPanel [data-hb="eye"].off:before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m3 3 18 18M10 5c6-1 12 7 12 7s-2 3-5 5M6 6c-3 2-4 6-4 6s4 7 10 7c2 0 3-1 4-1M10 10a3 3 0 0 0 4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")}
#terminal #chartPanel [data-zm="bell"]{font-size:0!important;width:30px}
#terminal #chartPanel [data-zm="bell"]:before{content:"";display:block;width:17px;height:17px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 17h14l-2-3V9a5 5 0 0 0-10 0v5zM10 20h4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
#commonIndicatorsMenu{position:fixed;z-index:10002;background:var(--t-panel);color:var(--t-text);border:1px solid var(--t-border);border-radius:8px;padding:7px;box-shadow:0 10px 30px #0003;width:180px}
#commonIndicatorsMenu[hidden]{display:none!important}
#commonIndicatorsMenu label{display:flex;align-items:center;gap:9px;padding:9px;cursor:pointer;font-size:12px;border-radius:4px}
#commonIndicatorsMenu label:hover{background:var(--t-soft)}
#terminal #chartPanel .chart-essential-tools button[data-hb="eye"],#terminal #bfPxMain .bf-vg-per button[data-zm="bell"]{font-size:0!important}
@media(max-width:600px){#terminal #bfPxMain .bf-pg-t{grid-template-columns:1fr!important}#terminal #bfPxMain .bf-pg-h,#terminal #bfPxMain .chart-essential-tools{grid-column:1!important}#terminal #bfPxMain .chart-essential-tools{justify-content:flex-start}#terminal #chartPanel .chart-essential-tools button,#terminal #bfPxMain .bf-vg-per button{min-height:36px!important}}

#terminal #compact-chart-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;padding:6px;border-bottom:1px solid var(--t-border)}
#terminal .compact-quote{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
#terminal #compact-chart-toolbar #bfPxQuote{position:static!important;transform:none!important;margin:0!important;left:auto!important;top:auto!important;max-width:none!important}
#terminal .compact-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
#terminal .compact-actions button{min-height:30px;padding:4px 8px;font-size:11px}
#terminal #bfPxMain .bf-pg-h,#terminal #bfPxMain .chart-essential-tools{display:none!important}
#terminal #chartPanel [data-proxy="eye"]{width:31px;min-width:31px}
#terminal #chartPanel [data-proxy="eye"]:before{content:"";width:19px;height:19px;display:block;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z' fill='none' stroke='black' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center/contain no-repeat}
#terminal #chartPanel [data-proxy="eye"].off:before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m3 3 18 18M10 5c6-1 12 7 12 7s-2 3-5 5M6 6c-3 2-4 6-4 6s4 7 10 7c2 0 3-1 4-1M10 10a3 3 0 0 0 4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")}

/* Leave native controls in place so periodic renders cannot change the layout. */
html body.terminal-site #terminal #bfPxToggle{display:none!important}
html body.terminal-site #terminal #bfPxMain .bf-pg-t,
html body.terminal-site #terminal #bfPxMain .bf-pg-t:hover{background:transparent!important}
html body.terminal-site #terminal #bfPxMain .bf-pg-ch{position:relative!important}
html body.terminal-site #terminal #bfPxMain .bf-pg-ch>.bf-pg-zm{position:absolute!important;top:-33px!important;right:6px!important;inset-inline-start:auto!important;display:flex!important;align-items:center;gap:3px;opacity:1!important;transform:none!important;height:30px!important;margin:0!important}
html body.terminal-site #terminal #bfPxMain .bf-vg-per{padding-right:112px!important}
html body.terminal-site #terminal #bfPxMain .bf-pg-zm button{min-height:28px!important;min-width:22px;padding:3px!important}
@media(max-width:850px){html body.terminal-site #terminal #bfPxMain .bf-pg-ch>.bf-pg-zm{height:36px!important;top:-39px!important}html body.terminal-site #terminal #bfPxMain .bf-pg-zm button{min-height:36px!important;min-width:28px}html body.terminal-site #terminal #bfPxMain .bf-vg-per{padding-right:130px!important}}

html body.terminal-site #terminal #bfPxMain .bf-vg-per>:is(.bf-qt,.bf-pg-ind,.ivov640b,[data-mm665],[data-ivov],[data-zm=eye]){display:none!important}

html body.terminal-site #terminal #bfPxMain .bf-vg-per{padding-right:145px!important}
