/* R9.54: touch navigation, forms and document viewers. Screen only. */
@media screen and (max-width:760px){
 body:is(.apr-mobile-admin,.apr-mobile-client){--apr-bottom-space:calc(78px + env(safe-area-inset-bottom,0px))}
 :is(.hb-app,.hb-client,.apr-smartstudio){min-width:0}
 :is(.hb-app,.hb-client,.apr-smartstudio) :is(button.hb-btn,.hb-icon,.ss-primary,.ss-secondary,.apr-r912-primary,.apr-viewerprogress>button,.apr-viewerpaging>button){min-height:44px}
 :is(.hb-app,.hb-client,.apr-smartstudio) :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]){font-size:16px!important;min-height:44px;max-width:100%}
 :is(.hb-app,.hb-client,.apr-smartstudio) :is(input[type=checkbox],input[type=radio]){width:20px;height:20px;flex:0 0 20px}
 :is(.hb-app,.hb-client) :is(.hb-title,.hb-sectionline,.hb-formfooter,.hb-projectactions){flex-wrap:wrap;gap:12px;min-width:0}
 :is(.hb-app,.hb-client) :is(h1,h2,h3,p,.hb-docrow strong){overflow-wrap:anywhere}
 body.apr-mobile-admin .hb-content{padding:18px 14px calc(var(--apr-bottom-space) + 20px)}
 body.apr-mobile-admin .hb-topbar{padding:8px 14px;gap:12px;min-height:64px;height:auto}
 body.apr-mobile-admin .hb-topsearch{flex:1;min-width:0}
 body.apr-mobile-admin .apr-globalsearch{display:flex;align-items:center;width:100%;min-height:44px;min-width:0;gap:9px;text-align:left}
 body.apr-mobile-admin .apr-globalsearch span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:14px}
 body.apr-mobile-admin .apr-globalsearch kbd{display:none}
 body.apr-mobile-admin .hb-topactions{flex:0 0 auto;gap:8px}
 body.apr-mobile-ready .hb-topactions>:is(.hb-help,.hb-avatar),
 body.apr-mobile-ready .hb-mobilemenu,
 body.apr-mobile-ready .hb-homev2 .apr-r931-search{display:none!important}
 body.apr-mobile-admin .hb-newwrap>.hb-btn{min-height:44px;padding:10px 13px;font-size:14px;gap:7px}
 body.apr-mobile-admin #apr-new-menu{max-width:calc(100vw - 28px);width:290px;max-height:calc(var(--apr-vvh,100dvh) - 100px);overflow-y:auto;overscroll-behavior:contain;z-index:210}
 body.apr-mobile-admin #apr-new-menu>button{min-height:46px;font-size:15px}
 body.apr-mobile-admin .apr-r9-menuclose{min-height:44px;display:flex;align-items:center;gap:8px}
 body.apr-mobile-admin .hb-sidebar{max-height:var(--apr-vvh,100dvh);padding-bottom:calc(var(--apr-bottom-space) + 16px)}
 body.apr-mobile-admin .apr-mobile-nav{min-height:72px;padding:7px 6px calc(7px + env(safe-area-inset-bottom,0px))}
 body.apr-mobile-admin .apr-mobile-nav button{min-height:52px;font-size:11px;line-height:1.3}
 body.apr-mobile-admin .apr-mobile-nav button:disabled{opacity:.4;cursor:default}
 body.apr-mobile-admin .apr-mobile-nav button[aria-current=page]{color:#142447;background:#edf1f8}
 body.apr-keyboard-open :is(.apr-mobile-nav,.hb-client .hb-clientside nav){display:none!important}
 body.apr-keyboard-open.apr-mobile-admin .hb-content{padding-bottom:28px}
 .hb-dialogveil{inset:var(--apr-vv-top,0px) 0 auto;height:var(--apr-vvh,100dvh);max-height:var(--apr-vvh,100dvh);padding:0;align-items:stretch}
 .hb-dialogveil .hb-dialog{width:100%;max-width:100%;height:100%;max-height:100%;border-radius:0;padding:18px 16px calc(22px + env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain}
 .hb-dialogveil .hb-dialoghead{top:-18px;gap:12px;align-items:flex-start;padding:15px 0;background:#fff}
 .hb-dialogveil .hb-dialoghead h2{font-size:21px;line-height:1.3}
 .hb-dialogveil .hb-dialoghead>.hb-icon{flex:0 0 44px;min-width:44px}
 .hb-dialogveil .hb-formfooter .hb-btn{width:100%;min-height:48px;font-size:15px}
 :is(.hb-app,.hb-client) :is(.hb-projecttabs,.hb-filefilters,.hb-filtertabs){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap;scrollbar-width:thin}
 .hb-client .hb-clientside{padding:16px!important}
 .hb-client .hb-clientbrand{padding:0;gap:10px;align-items:center}
 .hb-client .hb-clientbrand img{width:56px!important;height:44px!important}
 .hb-client .hb-clientside>div:last-child{display:flex!important;align-items:center;justify-content:flex-end;margin-top:6px;padding:0}
 .hb-client .hb-clientside>div:last-child>:is(.hb-avatar,strong){display:none}
 .hb-client .hb-clientside>div:last-child .hb-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:12px}
 .hb-client .hb-clientside>select{display:block;width:100%;min-height:44px;margin:12px 0 0}
 .hb-client .hb-clientside nav{
  display:grid;grid-template-columns:repeat(var(--apr-client-tabs,5),minmax(0,1fr));gap:2px;
  position:fixed;inset:auto 0 0;z-index:180;margin:0;padding:7px 5px calc(7px + env(safe-area-inset-bottom,0px));
  min-height:72px;overflow:visible;border-top:1px solid #314765;background:#0b1535;box-shadow:0 -4px 20px #0b153512;
 }
 .hb-client .hb-clientside nav>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;width:100%;min-height:52px;margin:0;padding:6px 2px;white-space:normal;font-size:10px;line-height:1.3;border-radius:10px;color:#d5dfef}
 .hb-client .hb-clientside nav>button svg{width:20px;height:20px}
 .hb-client .hb-clientside nav>button.active{background:#233b60!important;color:#fff!important;box-shadow:inset 0 -2px #d7bf8d}
 body.apr-mobile-modal-open .hb-client .hb-clientside nav{display:none}
 .hb-client .hb-clientcontent{padding:20px 14px calc(var(--apr-bottom-space,100px) + 20px)}
 .hb-client .hb-clienthero{margin:0 12px 14px;padding:24px 18px}
 .hb-client .hb-clienthero h1{font-size:27px;line-height:1.25}
 .hb-client .hb-clienthero .hb-btn{font-size:13px;min-height:44px}
 .hb-client .hb-clienthero>div>.hb-btn{gap:6px;font-size:13px}
 .hb-client .hb-clienthero p{font-size:13px;line-height:1.6}
 .hb-client .apr-r948-premium{padding:0 12px}
 .hb-client .apr-r948-card{padding:18px 16px}
 .hb-client .apr-r948-heroactions>button{min-height:46px}
 .hb-client .hb-clientmessages>.hb-sectionline{padding:17px 14px}
 .hb-client .hb-clientmessages .hb-sectionline .hb-btn{font-size:13px;min-height:44px}
 .hb-client .hb-messagebubble :is(p,h3){font-size:14px;line-height:1.7}
 .hb-client .hb-messagebubble small{font-size:11px}
 .hb-mailcomposer{max-width:100%;min-width:0}
 .hb-mailcomposer>textarea{min-height:160px;font-size:16px}
 .hb-mailcomposer>footer{display:flex;flex-wrap:wrap;gap:10px}
 .hb-mailcomposer>footer button{min-height:46px}
 .apr-smartstudio:not(.apr-smartviewer){max-height:var(--apr-vvh,100dvh);height:var(--apr-vvh,100dvh)}
 .apr-smartstudio .apr-smarttop{gap:9px;padding:12px;align-items:center}
 .apr-smartstudio .apr-smartname{min-width:0;flex:1}
 .apr-smartstudio .apr-smartname input{min-width:0;width:100%}
 .apr-smartstudio .apr-smarttools{width:100%;display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start}
 .apr-smartstudio .apr-smarttools>.hb-icon{min-width:44px;min-height:44px}
 .apr-smartstudio .apr-smarttools>.hb-btn{min-height:44px;font-size:13px;padding:10px 12px;white-space:normal}
 .apr-smartstudio:not(.apr-smartviewer) .apr-smarttools>.hb-btn.dark{flex:1 1 150px}
 .apr-smartviewer{height:var(--apr-vvh,100dvh)!important;max-height:var(--apr-vvh,100dvh)!important}
 .apr-smartviewer .apr-smarttools>.hb-btn{font-size:12px;min-height:44px}
 .apr-smartviewer>.apr-viewerprogress>button{min-height:44px;font-size:12px;padding:9px 12px}
 .apr-smartviewer .apr-viewerpaging{flex-wrap:wrap;padding:16px 12px calc(18px + env(safe-area-inset-bottom,0px))}
 .apr-smartviewer .apr-viewerpaging button{min-height:46px;font-size:13px}
 .apr-smartviewer .apr-viewerpaging small{font-size:12px}
 .apr-smartviewer .apr-r912-top{grid-template-columns:minmax(0,1fr)}
 .apr-smartviewer .apr-r912-total{border-left:0;border-top:1px solid #ffffff35;padding:10px 0 0}
 .apr-smartviewer .apr-r912-steptxt strong{font-size:12px}
 .apr-smartviewer .apr-r912-steptxt small{font-size:11px;line-height:1.5}
 .apr-smartviewer .apr-r912-status{font-size:10px}
 .apr-smartviewer .apr-r912-next :is(strong,p){font-size:12px}
 .apr-smartviewer .apr-r912-primary{min-height:46px;font-size:13px}
 .apr-smartviewer>.apr-viewercanvas{padding:12px 8px 24px}
 .apr-mobile-options-toggle,.apr-smartside{scroll-margin-top:150px}
 :is(.hb-app,.hb-client) :is(.apr-toast,.hb-alert){max-width:calc(100vw - 24px);overflow-wrap:anywhere}
 .apr-toast{bottom:calc(var(--apr-bottom-space,90px) + 12px);left:12px;right:12px;width:auto;transform:none}
}
@media screen and (max-width:380px){
 .hb-client .hb-clientside nav>button{font-size:9px}
 body.apr-mobile-admin .hb-topbar{padding-inline:10px;gap:8px}
 .apr-smartstudio .apr-smarttools>.hb-btn{flex:1 1 130px}
}
@media print{.apr-mobile-nav{display:none!important}}
