/* Shared logo: keep the supplied transparent PNG intact. */
.qoq-mobile-logo,.qoq-language-short{display:none!important}
@media(max-width:900px){
 .qoq-backend-logo .qoq-desktop-brand,.site-header .brand-logo-image,.site-header .brand-text,.site-header .brand-mark{display:none!important}
 .qoq-backend-logo .qoq-mobile-logo,.site-header .brand .qoq-mobile-logo{display:block!important;width:66px!important;height:44px!important;max-width:66px!important;object-fit:contain!important;flex:0 0 auto}
 .site-header .brand{min-width:0;flex:0 0 auto;gap:0}
 body.qoq-admin-context .qoq-backend-topbar{height:62px;min-height:62px;padding:8px 12px;gap:12px;flex-wrap:nowrap}
 body.qoq-admin-context .qoq-backend-topbar-start{flex:1 1 auto;gap:12px;min-width:0}
 body.qoq-admin-context .qoq-backend-logo{display:flex;align-items:center;flex:0 0 66px;width:66px;min-width:0}
 body.qoq-admin-context .qoq-backend-topbar .qoq-admin-menu-trigger{flex:0 0 44px;width:44px;min-width:44px;height:44px;padding:0}
 body.qoq-admin-context .qoq-backend-topbar-actions{flex:0 0 auto;gap:0;min-width:0}
 /* Compact preview action; sign out remains in the navigation drawer. */
 body.qoq-admin-context .qoq-backend-topbar-actions>a{display:none!important}
 .qoq-admin-language .qoq-language-full{display:none}
 .qoq-admin-language .qoq-language-short{display:inline!important}
 .qoq-admin-language summary{display:flex;align-items:center;justify-content:center;min-width:54px;min-height:44px;padding:8px 10px;font-size:14px;line-height:1}
 .qoq-admin-language nav{max-width:calc(100vw - 24px);min-width:180px;max-height:calc(100dvh - 82px);overflow-y:auto}
 body.qoq-admin-context .qoq-admin-stage h1{font-size:clamp(28px,6vw,42px);line-height:1.15;overflow-wrap:anywhere}
 body.qoq-admin-context .qoq-admin-stage .form-card{padding:clamp(16px,4vw,28px);min-width:0}
 body.qoq-admin-context .qoq-admin-stage .form-grid{grid-template-columns:1fr}
 body.qoq-admin-context .qoq-admin-stage input,body.qoq-admin-context .qoq-admin-stage select,body.qoq-admin-context .qoq-admin-stage textarea{max-width:100%;min-width:0}
 body.qoq-admin-context .qoq-admin-stage .btn,body.qoq-admin-context .qoq-admin-stage .mini-btn{white-space:normal;text-align:center;max-width:100%}
}

@media(max-width:900px){
 body.qoq-admin-context .qoq-backend-topbar-actions{gap:6px}
 body.qoq-admin-context .qoq-backend-topbar-actions>form{display:block;flex:0 0 44px}
 body.qoq-admin-context .qoq-backend-topbar-actions>form button{font-size:0!important;width:44px;min-height:44px;display:grid;place-items:center;border:1px solid #806c54!important;border-radius:4px}
 body.qoq-admin-context .qoq-backend-topbar-actions>form button:after{content:'↗';font-size:20px;line-height:1}
 body.qoq-admin-context .qoq-backend-topbar-actions>form button>span{display:none}
}

/* Public desktop wordmark; compact symbol is reserved for mobile and admin. */
.qoq-backend-logo .qoq-desktop-brand{display:none!important}
.qoq-backend-logo .qoq-mobile-logo{display:block!important;width:66px!important;height:44px!important;max-width:66px!important;object-fit:contain}
@media(min-width:901px){
 .site-header .brand{flex:0 0 auto;min-width:0}
 .site-header .brand .qoq-public-full-logo{display:block;width:clamp(220px,24vw,340px);height:auto;max-width:100%;max-height:none;object-fit:contain}
}
