.chart-fullscreen-shell{min-width:0;}
.chart-fullscreen-toggle{margin-left:auto;flex:0 0 36px;width:36px;height:34px;padding:6px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(100,116,139,.3);border-radius:8px;background:rgba(100,116,139,.08);color:inherit;cursor:pointer;}
.chart-fullscreen-toggle:hover{background:rgba(100,116,139,.2);border-color:#60a5fa;}
.chart-fullscreen-toggle:focus-visible{outline:2px solid #60a5fa;outline-offset:2px;}
.chart-fullscreen-shell:is(:fullscreen,.is-fullscreen){position:fixed;inset:0;z-index:10000;width:100%;height:100vh;height:100dvh;max-width:none;min-width:0;margin:0;padding:8px;box-sizing:border-box;display:flex;flex-direction:column;background:#fff;overflow:hidden;}
body.dark-mode .chart-fullscreen-shell:is(:fullscreen,.is-fullscreen){background:#111;color:#eee;}
.chart-fullscreen-shell::backdrop{background:#111;}
.chart-fullscreen-shell.is-fullscreen>#kinfo{flex:0 0 auto;min-height:28px;box-sizing:border-box;white-space:nowrap;overflow:hidden;}
.chart-fullscreen-shell.is-fullscreen>.chartCard{flex:1 1 0;min-height:0;display:flex;flex-direction:column;width:100%;border-radius:8px;}
.chart-fullscreen-shell.is-fullscreen .chartTabs{flex:0 0 auto;min-width:0;overflow-x:auto;white-space:nowrap;}
.chart-fullscreen-shell.is-fullscreen .chartTabs>button{flex-shrink:0;}
.chart-fullscreen-shell.is-fullscreen .chartWrap{flex:1 1 0;height:auto!important;min-height:0;width:100%;}
.chart-fullscreen-shell.is-fullscreen #fixedTooltip{z-index:10020;max-width:calc(100vw - 32px);}
.chart-fullscreen-shell.is-fullscreen .compare-k-panel{z-index:10030;}

/* Float above the bottom-right chart corner, clear of axis labels. */
.chart-fullscreen-toggle{position:absolute;right:76px;bottom:38px;z-index:80;margin:0;width:36px;height:36px;background:rgba(255,255,255,.72);color:#334155;box-shadow:0 2px 8px rgba(0,0,0,.15);}
body.dark-mode .chart-fullscreen-toggle{background:rgba(30,34,40,.68);color:#e2e8f0;}
.chart-fullscreen-toggle:hover{background:rgba(96,165,250,.85);color:#fff;}

/* Fullscreen-only left-edge reveal of the original market and CALL/PUT panel. */
.fullscreen-quotes-edge,.fullscreen-quotes-drawer{display:none;}
.is-fullscreen>.fullscreen-quotes-edge{display:block;position:absolute;left:0;top:0;bottom:0;width:8px;margin:0;padding:0;border:0;border-radius:0;z-index:10060;cursor:e-resize;background:transparent;}
.is-fullscreen>.fullscreen-quotes-edge:hover,.is-fullscreen>.fullscreen-quotes-edge:focus-visible{background:rgba(96,165,250,.35);outline:none;}
.is-fullscreen>.fullscreen-quotes-drawer{display:flex;flex-direction:column;position:absolute;left:0;top:0;bottom:0;width:min(var(--panelW,460px),calc(100% - 32px));max-width:calc(100% - 32px);min-width:0;box-sizing:border-box;padding:12px 10px 12px 14px;z-index:10061;background:#fff;border-right:1px solid rgba(100,116,139,.25);border-radius:0 14px 14px 0;box-shadow:12px 0 32px rgba(0,0,0,.3);transform:translateX(-105%);opacity:0;pointer-events:none;transition:transform 200ms ease-out,opacity 160ms ease-out;}
body.dark-mode .is-fullscreen>.fullscreen-quotes-drawer{background:#141414;}
.is-fullscreen>.fullscreen-quotes-drawer.is-open{transform:translateX(0);opacity:1;pointer-events:auto;}
.fullscreen-quotes-drawer>.tpanel{display:flex;flex-direction:column;width:100%;min-width:0;min-height:0;height:100%;}
.fullscreen-quotes-drawer #txBar{flex:0 0 auto;}
.fullscreen-quotes-drawer .tbox{display:flex;flex-direction:column;flex:1 1 0;min-height:0;}
.fullscreen-quotes-drawer .thead{flex:0 0 auto;}
.fullscreen-quotes-drawer .tbody{flex:1 1 0;min-height:0;max-height:none!important;overflow:auto;overscroll-behavior:contain;}
@media(prefers-reduced-motion:reduce){.is-fullscreen>.fullscreen-quotes-drawer{transition:none;}}

/* Fullscreen info shares the tab row, with tabs kept usable. */
.chart-fullscreen-shell.is-fullscreen .chartTabs{overflow-x:auto;align-items:center;flex-wrap:nowrap;}
.chart-fullscreen-shell.is-fullscreen .chartTabs>#fixedTooltip{position:static!important;inset:auto!important;margin-left:auto;flex:0 1 auto;min-width:0;max-width:none;overflow-x:auto;white-space:nowrap;box-shadow:none;padding:6px 10px;font-size:12px;}
