/* v7.4b additions */
.qvs11-outl{margin-top:10px;padding-top:8px;border-top:1px dashed var(--q9-line,rgba(128,128,128,.35))}
.qvs11-outl .row{margin-top:6px}
html body label.toggle.qvs11-hide,html body .row.qvs11-hide{display:none!important}

/* ---- preview stays pinned while the settings scroll (desktop) ---- */
html{scroll-behavior:auto!important}
@media(min-width:901px){
 html body .v5-workspace.studio-grid{align-items:start!important;margin-bottom:-300px!important}
 html body .v5-workspace.studio-grid::after{content:'';grid-area:auto;grid-column:1/-1;grid-row:2;height:300px;pointer-events:none}
 html body .site-footer{position:relative;z-index:1}
 html body .v5-workspace.studio-grid>.panel.preview{position:sticky!important;top:10px!important;align-self:start!important;z-index:30}
 html body .v5-workspace.studio-grid>.controls,html body .v5-workspace.studio-grid>.settings-rail{position:sticky!important;top:10px!important;align-self:start!important;max-height:calc(100dvh - 20px)!important;overflow-y:auto!important}
 /* wheel scrolling must chain to the page from every panel, never get stuck */
 html body .controls,html body .settings-rail,html body .preview,html body .preview-viewport,html body .settings-pane,html body .sync-review-panel{overscroll-behavior:auto!important}
}

/* ---- phone: bottom sheet fixed by default ---- */
@media(max-width:820px){
 body.qvs11-sheet-fixed{--qvs9-sheet-h:var(--qvs11-h)!important}
 body.qvs11-sheet-fixed .qvs9-sheet{height:var(--qvs11-h)!important;max-height:var(--qvs11-h)!important;transition:none!important}
 body.qvs11-sheet-fixed .qvs9-handle{pointer-events:none!important;cursor:default!important;height:14px!important}
 body.qvs11-sheet-fixed .qvs9-handle span{opacity:.35}
 body.qvs11-sheet-fixed .qvs9-sheet-body{overflow-y:auto!important}
 body.qvs11-sheet-fixed .qvs9-sheet[data-state] .qvs9-sheet-body{overflow-y:auto!important}
}
.qvs11-sheetopt{display:none;flex:1 0 100%;font-size:12px;opacity:.85;margin:2px 0 0!important}
@media(max-width:820px){.qvs11-sheetopt{display:flex}}

/* ---- phone main menu ---- */
.qvs11-menubtn{display:none!important}
@media(max-width:820px){html body .site-header .header-actions>.qvs11-menubtn{display:inline-flex!important}}
.qvs11-menu{position:fixed;z-index:100001;inset-inline-end:8px;right:8px;min-width:210px;max-width:calc(100vw - 16px);background:var(--q9-bg,#0c151c);border:1px solid var(--q9-teal,#2dd4a8);border-radius:14px;padding:6px;box-shadow:0 14px 34px #000a;display:flex;flex-direction:column;gap:2px;direction:rtl}
.qvs11-menu.hidden{display:none}
.qvs11-mi{appearance:none;border:0;background:transparent;color:var(--q9-tx,#e8f1f5);text-align:start;font:inherit;font-size:15px;padding:12px 14px;border-radius:10px;min-height:44px}
.qvs11-mi:active,.qvs11-mi:hover{background:rgba(45,212,168,.16)}
@media(min-width:821px){.qvs11-menu.hidden{display:none!important}}

/* ---- phone: tidy top bar + transport row (equal size, even spacing) ---- */
@media(max-width:820px){
 html body .site-header .header-actions{justify-content:space-between!important;gap:0!important;padding:0 2px!important}
 html body .site-header .header-actions>*,html body .site-header .header-actions>select,html body .site-header .header-actions>.qvs10-lang,html body .site-header .header-actions>.qvs10-theme{width:34px!important;min-width:34px!important;max-width:34px!important;height:38px!important;min-height:38px!important;margin:0!important;padding:0!important;border-radius:11px!important;font-size:15px!important;text-align:center!important;text-align-last:center!important;border:1px solid var(--q9-line,rgba(128,128,128,.35))!important;background-color:transparent!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important}
 html body .site-header .header-actions>select{font-size:12px!important;font-weight:700!important;-webkit-appearance:none!important;appearance:none!important;background-image:none!important}
 html body .panel.preview .clip-transport{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px!important;align-items:stretch!important}
 html body .panel.preview .clip-transport>button,html body .panel.preview .clip-transport>#playBtn,html body .panel.preview .clip-transport>#stopBtn{width:auto!important;min-width:0!important;flex:none!important;height:38px!important;padding:0 2px!important;font-size:10.5px!important;line-height:1.1!important;white-space:normal!important;overflow:hidden;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center}
}
@media(max-width:820px){
 html body .panel.preview .clip-transport>#stopBtn{font-size:0!important}
 html body .site-header .header-actions>select.qvs10-lang,html body .site-header .header-actions>select.qvs10-theme,html body .site-header .header-actions>select#interfaceLanguage,html body .site-header .header-actions>select#themeSelect{width:34px!important;min-width:34px!important;max-width:34px!important;flex:0 0 34px!important}
}
@media(min-width:821px){html body .site-header .header-actions>.qvs11-menubtn{display:inline-flex!important}}
@media(max-width:820px){html body .site-header .header-actions>select.qvs10-theme,html body .site-header .header-actions>select#themeSelect{font-size:16px!important;color:var(--q9-tx,#e8f1f5)!important;text-indent:0!important;overflow:visible!important;opacity:1!important}}
/* v1.0.3: the menu button is on desktop too and holds the guide */
@media(min-width:821px){html body .qvs11-menu{right:auto!important;left:8px!important;inset-inline-end:auto!important;width:220px!important;min-width:0!important}}
