#frames{display:flex;gap:3px;overflow-x:auto;min-width:100px;max-width:48vw;flex:1;scrollbar-width:thin}#frames button{white-space:nowrap;flex-shrink:0}#timeframeSettings{white-space:nowrap}.timeframe-panel{position:fixed;z-index:100;width:390px;max-width:calc(100vw - 16px);padding:14px;background:var(--panel,#14191f);color:var(--text,#e7edf7);border:1px solid var(--border,#39414d);border-radius:10px;box-shadow:0 12px 38px #0009;overflow:auto}.timeframe-panel[hidden]{display:none}.timeframe-head{display:flex;align-items:center;justify-content:space-between}.timeframe-panel p{font-size:12px;line-height:1.5;color:var(--muted,#9eabbc);margin:7px 0 12px}.timeframe-group{margin:12px 0}.timeframe-group>strong{font-size:12px;color:var(--muted,#9eabbc)}.timeframe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:5px}.timeframe-grid>div{display:flex;min-width:0}.timeframe-grid button:first-child{flex:1;padding:7px 3px}.timeframe-grid button:last-child{padding:7px}.timeframe-grid button[aria-pressed=true]{color:#ffc96b}.timeframe-custom{display:flex;gap:6px;margin-top:8px}.timeframe-custom input{width:70px}.timeframe-custom select{min-width:0;flex:1}.embedded #timeframeSettings{display:none}@media(max-width:700px){#frames{max-width:none;width:100%;flex-basis:100%;order:3}#timeframeSettings{margin-left:auto}.timeframe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

.timeframe-controls{display:flex;align-items:center;gap:5px;min-width:0;flex:1} .timeframe-controls #frames{order:0;width:auto;flex:0 1 auto;justify-content:flex-start;max-width:none;border:0;padding-left:0}#timeframeSettings{flex-shrink:0;font-size:18px;padding:4px 10px}.embedded .timeframe-controls{display:none}@media(max-width:1450px){.timeframe-controls{order:3;flex-basis:100%;width:100%}.timeframe-controls #frames{flex-basis:auto;min-width:0}#timeframeSettings{margin-left:0}}
@media(max-width:760px){.studio-top .top-end{flex-wrap:wrap;max-width:100%;margin-left:0;flex-basis:100%}}
.chart-controls-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;padding:6px 12px;border-bottom:1px solid var(--border);background:var(--panel);min-width:0}.chart-controls-row .timeframe-controls{flex:0 1 auto;max-width:100%;order:0;width:auto;flex-wrap:wrap}.chart-controls-row .timeframe-controls #frames{flex:0 1 auto;flex-wrap:wrap;overflow:visible;min-width:0;max-width:100%;width:auto;order:0;gap:3px}.chart-controls-row #frames button{padding:5px 7px;font-size:11px}.chart-controls-row #timeframeSettings{padding:4px 8px;font-size:15px;margin-left:0}.chart-controls-row .analysis-bar{flex:1 1 auto;min-width:0;padding:0;border:0;min-height:0;justify-content:flex-end}.chart-controls-row .fvg-state{margin-left:0;text-align:right}

#mobileTools{display:none}
.chart-appearance-fields select{min-width:0;max-width:100%}
.chart-appearance-fields label{display:flex;align-items:center;justify-content:space-between;gap:12px}
.chart-appearance-fields label:first-of-type{justify-content:flex-start}
@media(max-width:760px){
  body:not(.embedded) .studio-top{min-height:0;height:auto;padding:5px 8px;gap:4px 6px;align-items:center;justify-content:flex-start}
  body:not(.embedded) .studio-top .top-end{display:contents}
  body:not(.embedded) .studio-top #mobileTools{display:inline-flex;align-items:center;min-height:42px;padding:5px 8px;order:2}
  #mobileTools::after{content:'▾';margin-left:4px}#mobileTools[aria-expanded=true]::after{content:'▴'}
  body:not(.embedded) .studio-top .top-end>*{order:3}
  body:not(.embedded) .studio-top .top-end :is(#indicators,#replayToggle){order:1;font-size:11px;padding:5px}
  body:not(.embedded):not(.mobile-tools-open) .studio-top .top-end>:not(#indicators):not(#replayToggle),
  body:not(.embedded):not(.mobile-tools-open) .chart-toolbar .chart-options,
  body:not(.embedded):not(.mobile-tools-open) .chart-controls-row .analysis-bar{display:none}
  body:not(.embedded) #symbolForm .symbol-picker-button{min-width:0;max-width:120px;padding:4px 7px}
  body:not(.embedded) .chart-toolbar{min-height:0;padding:4px 8px;gap:4px 8px}
  body:not(.embedded) .chart-controls-row{min-width:0;padding:3px 7px;gap:3px}
  body:not(.embedded) .chart-controls-row .timeframe-controls{width:100%;min-width:0;flex-wrap:nowrap}
  body:not(.embedded) .chart-controls-row .timeframe-controls #frames{flex:1;min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
  body:not(.embedded) .chart-controls-row #frames button{flex:none;min-height:36px}
  body:not(.embedded) #timeframeSettings{flex:none;min-height:36px}
  .studio-dialog .mobile-guidance{margin:12px 0;padding:0;border:0;background:transparent}
}
@media(max-width:760px){
  body:not(.embedded):not(.mobile-tools-open) .studio-top>.language-choice{display:none}
  body:not(.embedded) .studio-top>.language-choice{order:3}
  body:not(.embedded) .chart-main:not(.has-multi){min-height:calc(100svh - 62px)}
}