/* v7.4 */
.qvs9-modes,.qvs9-zbar,.qvs9-zoom,.qvs9-toasts{display:none!important}
#autosaveInfo{display:none!important}
html body .settings-nav [data-settings-tab=advanced]{display:inline-flex!important}
/* search + templates in one row */
html body .qvs9-tools{display:flex;flex-wrap:nowrap;gap:6px;align-items:center;margin:6px 0 8px}
html body .qvs9-search{flex:1 1 auto;min-width:0}
html body .qvs9-search input{min-height:36px;font-size:13px;border-radius:12px;padding:0 10px}
html body .qvs9-tpl-btn{flex:0 0 auto;min-height:36px;padding:0 10px;border-radius:12px;font-size:12px;display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
/* restored notice: tiny, vanishes by itself */
.qvs9-restored{position:fixed;z-index:100000;top:8px;left:50%;transform:translateX(-50%);width:26px;height:26px;border-radius:13px;background:#0c151cdd;color:#2dd4a8;font-size:14px;display:flex;align-items:center;justify-content:center;pointer-events:none;transition:opacity .3s}
.qvs9-restored.out{opacity:0}
/* lock chip */
.qvs9-lockchip{position:fixed;z-index:100001;width:40px;height:40px;border-radius:20px;border:1px solid #ffd447;background:#0c151cf0;color:#ffd447;font-size:18px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 16px #0009}
.qvs9-lockchip.hidden{display:none}
/* decor canvas, background selection, shape bar */
.qvs10-decor{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
#stage .mask-layer{z-index:2}
.qvs10-bgsel{outline:2px dashed #2dd4a8;outline-offset:-3px}
.qvs10-bgchip{position:absolute;z-index:70;top:6px;left:50%;transform:translateX(-50%);max-width:92%;padding:4px 10px;border-radius:12px;background:#0c151ce6;color:#2dd4a8;font-size:11px;white-space:nowrap;pointer-events:none}
.qvs10-bgchip.hidden,.qvs10-shapebar.hidden,.qvs10-notice.hidden,.qvs10-tplmodal.hidden{display:none!important}
.qvs10-shapebar{position:absolute;z-index:70;bottom:6px;left:50%;transform:translateX(-50%);display:flex;gap:4px;align-items:center;padding:4px 6px;border-radius:14px;background:#0c151cf0;border:1px solid #2b3d4b;direction:rtl}
.qvs10-shapebar button,.qvs10-sb-c{width:30px;height:30px;border-radius:10px;border:1px solid #2b3d4b;background:#16232e;color:#e8f1f0;font-size:16px;padding:0;display:flex;align-items:center;justify-content:center}
.qvs10-sb-c input{width:26px;height:26px;border:0;padding:0;background:none}
.qvs10-sb-t{font-size:11px;color:#8aa0ac;padding:0 4px;white-space:nowrap}
/* review notice popup */
.qvs10-notice{position:fixed;z-index:100002;background:var(--qvs-gold-soft,#2a2410);color:var(--qvs-ink-2,#f1e9c8);border:1px solid var(--qvs-gold,#ffd447);border-radius:12px;padding:10px 12px;font-size:12px;line-height:1.7;box-shadow:0 10px 30px #000a;direction:rtl;background-color:#1a1a12}
body.light .qvs10-notice,body[data-theme=light] .qvs10-notice{background-color:#fff8dc;color:#3a2f10}
.qvs10-notice strong{display:block;margin-bottom:3px}
/* mask sliders, background position */
.qvs10-masksz{margin-bottom:6px}
/* top bar compaction + export arrow */
html body .qvs10-lang,html body .qvs10-theme{width:auto!important;min-width:0!important;max-width:60px;padding:0 6px!important;font-size:12px!important;text-align:center;background-image:none!important}
html body .qvs10-xtoggle{display:inline-flex;align-items:center;gap:1px;padding:0 6px;font-size:14px}
html body .qvs10-xtoggle i{font-style:normal;font-size:10px;transition:transform .2s}
html body .qvs10-xtoggle.on i{transform:rotate(180deg)}
body.qvs10-xbar-hidden .global-commandbar{display:none!important}
/* templates dialog */
.qvs10-tpl{max-width:560px;width:calc(100vw - 20px);max-height:88vh;display:flex;flex-direction:column}
.qvs10-tbody{overflow:auto;padding:4px 2px 8px}
.qvs10-sec h3{margin:10px 0 6px;font-size:13px;color:var(--q9-teal)}
.qvs10-row{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:thin}
.qvs10-card,.qvs10-sw{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:4px;background:none;border:2px solid transparent;border-radius:12px;padding:4px;color:var(--q9-tx);font-size:11px;width:84px}
.qvs10-card.sm{width:64px}.qvs10-card.on{border-color:var(--q9-teal)}
.qvs10-card span,.qvs10-sw span{text-align:center;line-height:1.3}
.qvs10-th{width:54px;height:96px;border-radius:8px;border:1px solid var(--q9-line)}
.qvs10-card.sm .qvs10-th{zoom:.75}
.qvs10-sw{width:62px}.qvs10-sw i{display:block;width:48px;height:36px;border-radius:12px;border:1px solid var(--q9-line)}
.qvs10-sw.sh canvas{width:44px;height:44px;border-radius:10px;background:#16232e;color:#ffd447}
.qvs10-note{font-size:11px;color:var(--q9-mut);margin-top:2px}
.qvs10-del{font-style:normal;margin-inline-start:4px}
.qvs10-clr{margin-top:6px}
/* mobile tab bar: one consistent smaller shape */
html body .qvs9-sheet-body > .settings-nav,html body .qvs9-sheet .settings-nav{gap:4px!important;padding:2px 4px!important;flex-wrap:nowrap!important}
html body .qvs9-sheet-body .settings-nav .settings-tab{flex:1 1 0!important;min-height:30px!important;height:30px!important;padding:0 6px!important;border-radius:10px!important;font-size:11px!important;flex-direction:row!important;gap:4px!important;white-space:nowrap}
html body .qvs9-sheet-body .settings-nav .settings-tab *{font-size:11px!important}
html body .qvs9-sheet-body .settings-nav .settings-tab svg,html body .qvs9-sheet-body .settings-nav .settings-tab .tab-icon,html body .qvs9-sheet-body .settings-nav .settings-tab i{width:12px!important;height:12px!important;font-size:11px!important}
@media(max-width:700px){
 html body .brand-copy,html body .brand-text,html body .brand h1,html body .brand strong{display:none!important}
 html body .qvs9-sheet-body .settings-nav .settings-tab{padding:0 3px!important}
}
@media(max-width:700px){html body .qvs9-sheet-body .settings-nav .settings-tab>:not(:last-child):not(:only-child){display:none!important}html body .qvs9-sheet-body .settings-nav .settings-tab{justify-content:center}}
@media(max-width:700px){
 html body .qvs9-sheet-body .settings-nav .settings-tab::before,html body .qvs9-sheet-body .settings-nav .settings-tab::after{display:none!important;content:none!important}
}
html body .header-actions{gap:4px!important;flex-wrap:nowrap!important;align-items:center}
html body .header-actions .qvs10-lang,html body .header-actions .qvs10-theme{flex:0 0 auto!important;width:46px!important;min-height:34px!important;height:34px!important;padding:0 4px!important;-webkit-appearance:none;appearance:none;text-align:center;text-align-last:center}
html body .header-actions .icon-btn{flex:0 0 auto!important;width:auto!important;min-width:34px;height:34px!important;min-height:34px!important;padding:0 7px!important}
@media(max-width:700px){html body .qvs9-sheet-body .settings-nav .settings-tab{font-size:10px!important;padding:0 2px!important;letter-spacing:-.2px;overflow:hidden;text-overflow:clip}}
/* desktop: timeline opening grows the workspace instead of spilling over the footer */
@media(min-width:901px){
 html body .v5-workspace.studio-grid{height:auto!important;max-height:none!important;grid-template-rows:none!important;grid-auto-rows:minmax(0,auto)!important;align-items:start!important}
 html body .v5-workspace.studio-grid>.panel.preview{height:auto!important;max-height:none!important;overflow:visible!important}
 html body .studio-view{height:auto!important;min-height:0!important;padding-bottom:16px}
}
/* v7.4b: tidy top bar + logo */
.brand-mark .qvs10-logo{width:100%;height:100%;display:block;border-radius:inherit}
html body .brand-mark{background:none!important;box-shadow:none!important;padding:0!important;overflow:hidden}
html body .site-header .header-actions{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-evenly!important;gap:0!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;flex:1 1 auto;min-width:0}
html body .site-header .header-actions>*{flex:0 0 auto!important;box-sizing:border-box!important;width:40px!important;min-width:40px!important;height:38px!important;min-height:38px!important;margin:0!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:16px!important;line-height:1!important;border-radius:12px!important;text-align:center;text-align-last:center}
html body .site-header .header-actions>select{width:48px!important;min-width:48px!important;font-size:13px!important;font-weight:700;padding:0 2px!important}
html body .qvs10-xtoggle i{display:none!important}
html body .qvs10-xtoggle span{display:inline-block;transition:transform .2s}
html body .qvs10-xtoggle.on span{transform:rotate(180deg)}
@media(max-width:700px){html body .site-header{gap:8px!important;align-items:center!important}html body .site-header .brand{flex:0 0 auto}html body .site-header .brand-mark{width:40px!important;height:40px!important}}
