/* Size screen forms to the usable browser/PWA viewport; print layouts are unchanged. */
@media screen and (max-height:800px){
 .future-login #loginScreen{min-height:100dvh;grid-template-columns:minmax(0,1fr) minmax(320px,420px);padding:16px 24px;gap:12px 28px;align-content:center;align-items:center;overflow:visible}
 .future-login .future-hero{min-height:0;height:100%;overflow:hidden}
 .future-login .future-hero-art{inset:0 -16px 0 -16px;background-position:center 15%}
 .future-login #loginForm{padding:22px 26px;gap:10px;border-radius:16px}
 .future-login .future-brand{margin:0}
 .future-login .future-brand img{width:76px;height:76px}
 .future-login #loginForm h1{font-size:24px}
 .future-login #loginForm label{font-size:12px;gap:5px}
 .future-login #loginForm input,.future-login #loginForm select{min-height:44px;padding:8px 10px;font-size:14px}
 .future-login #loginForm button[type=submit]{min-height:46px;font-size:15px}
 .future-login #loginForm #toggleLoginPassword{margin:0;min-height:30px}
 .future-login #loginForm>.language-picker{gap:4px;width:76%}
 .future-login #loginForm .language-picker select{min-height:36px;font-size:12px;padding:6px 9px}
 .future-login #loginForm #loginInstallSoftpos{min-height:36px}
 .future-login .future-hero h2{font-size:clamp(24px,4vw,44px)}
 .future-login .future-hero-copy{padding:0 8px 12px}
 .future-login .future-kicker{margin-bottom:10px}
 .future-login .future-footer{font-size:10px}
}
@media screen and (max-width:850px) and (max-height:800px){
 .future-login #loginScreen{grid-template-columns:minmax(0,420px);justify-content:center;padding:14px;gap:10px}
 .future-login .future-hero{display:none}
}
@media screen and (max-height:600px){
 .future-login #loginScreen{padding:10px 18px;gap:8px 24px}
 .future-login #loginForm{padding:16px 22px;gap:8px}
 .future-login .future-brand img{width:56px;height:56px}
 .future-login #loginForm h1{font-size:22px}
 .future-login #loginForm label{gap:4px}
 .future-login #loginForm input{min-height:40px}
}
@media screen and (min-width:601px) and (max-width:1199px){
 #appScreen.workspace-shell>.topbar{min-height:62px;padding:7px 14px;gap:12px}
 #appScreen.workspace-shell>.topbar .header-logo{width:40px;height:40px}
 #appScreen.workspace-shell #companyName{font-size:clamp(15px,1.65vw,18px)}
 #appScreen.workspace-shell .top-actions{gap:8px}
 #appScreen.workspace-shell .shop-label{font-size:12px;gap:6px}
 #appScreen.workspace-shell .shop-label select{min-width:140px;max-width:190px;font-size:13px}
 .workspace-tree{--workspace-panel:228px}
 .workspace-tree .workspace-panel-pages button{min-height:36px;padding:7px 8px;font-size:13px;overflow-wrap:normal;word-break:normal}
 .workspace-tree .workspace-menu-section>:is(.workspace-group-toggle,.workspace-group-link){min-height:40px;font-size:13px}
 #appScreen.workspace-shell .ops-form{padding:14px;gap:12px;font-size:14px}
 #appScreen.workspace-shell .ops-form .form-grid{gap:10px 14px}
 #appScreen.workspace-shell .ops-form label{font-size:13px}
 #appScreen.workspace-shell .ops-form :is(input,select,textarea){font-size:14px;min-width:0}
 #appScreen.workspace-shell .ops-form :is(input:not([type=checkbox]):not([type=radio]),select){min-height:42px;padding:8px 10px}
 #appScreen.workspace-shell :is(.section-header,.workspace-page-heading) h2{font-size:clamp(18px,2vw,23px)}
}
@media screen and (max-height:800px){
 dialog:not(#workspaceProductDrawer):not(#mobileMoreDialog){max-height:calc(100dvh - 20px);max-width:calc(100vw - 20px);overflow:auto;overscroll-behavior:contain}
 dialog:not(#workspaceProductDrawer):not(#mobileMoreDialog)>.dialog-card{min-width:0}
 #workspaceProductDrawer{height:100dvh;max-height:100dvh}
 #workspaceProductDrawerBody{padding-left:16px;padding-right:16px}
 #workspaceProductDrawerBody .form-grid{gap:10px 14px}
 #workspaceProductDrawerBody :is(input,select){min-height:40px;padding:8px 10px;font-size:14px}
 #workspaceProductDrawerBody .product-edit-actions{padding:10px 0}
}

@media screen and (min-width:601px){#appScreen.workspace-shell>.workspace-shade{background:rgba(16,42,67,.18)!important}}
