/* Keep mobile controls in separate rows and reserve space for the notification bell. */
@media (max-width:700px){
  :root{--mobile-header-height:112px}
  #appScreen #liquidTopNav.liquid-topnav{box-sizing:border-box!important;display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px 44px;grid-template-rows:44px 44px;gap:8px!important;position:fixed!important;inset:0 0 auto!important;width:100%!important;max-width:100%!important;height:calc(var(--mobile-header-height) + env(safe-area-inset-top))!important;padding:calc(8px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left))!important;transform:none!important;opacity:1!important;pointer-events:auto!important;background:#fff!important;border-radius:0!important;overflow:visible!important}
  #liquidTopNav button{transition:background-color .15s,color .15s!important}
  #liquidTopNav .liquid-divider,#liquidTopNav .liquid-logo,#liquidTopNav .liquid-nav-scroll{display:none!important}
  #liquidTopNav .liquid-menu-toggle{display:grid!important;grid-area:1/1;width:44px!important;height:44px!important;margin:0!important}
  #liquidTopNav .global-top-search{grid-area:1/2;box-sizing:border-box;width:100%!important;min-width:0!important;max-width:none!important;height:44px!important;margin:0!important;padding:0 10px!important;overflow:hidden}
  #liquidTopNav .global-top-search input{display:block!important;flex:1;width:0!important;min-width:0!important;font-size:16px!important}
  #liquidTopNav .global-top-search kbd{display:none!important}
  #liquidTopNav .liquid-account-short{grid-area:1/3;width:44px!important;height:44px!important;min-width:0!important;margin:0!important;position:static!important;transform:none!important}
  #liquidTopNav #globalTaxpayer{grid-area:2/1/3/4;box-sizing:border-box;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;position:relative!important}
  #liquidTopNav #globalTaxpayerToggle{box-sizing:border-box;display:flex!important;align-items:center;gap:8px;width:100%!important;min-width:0!important;max-width:none!important;height:44px!important;margin:0!important;padding:6px 10px!important;overflow:hidden}
  #liquidTopNav #globalTaxpayerToggle>div{display:block!important;flex:1;min-width:0!important;text-align:left}
  #liquidTopNav #globalTaxpayerToggle b,#liquidTopNav #globalTaxpayerToggle small{display:block!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.3}
  #liquidTopNav #globalTaxpayerToggle b{font-size:12px!important}#liquidTopNav #globalTaxpayerToggle small{font-size:10px!important}
  #liquidTopNav #globalTaxpayerToggle>span{flex:none;width:8px!important;height:8px!important}
  #liquidTopNav .oa-launch{grid-area:2/4;box-sizing:border-box;position:static!important;width:44px!important;min-width:0!important;height:44px!important;margin:0!important;padding:6px!important;transform:none!important}
  #liquidTopNav .oa-launch>span:not(.oa-spark){display:none!important}
  #liquidTopNav .oa-spark{width:30px!important;height:30px!important}
  .user-notification-center{top:calc(8px + env(safe-area-inset-top))!important;right:max(12px,env(safe-area-inset-right))!important}
  .user-notification-center .notification-bell{box-sizing:border-box;width:44px!important;height:44px!important;margin:0!important;box-shadow:none!important}
  .user-notification-center .notification-popover{top:calc(var(--mobile-header-height) + env(safe-area-inset-top) + 8px)!important;max-height:calc(100dvh - var(--mobile-header-height) - env(safe-area-inset-top) - 24px)!important}
  #appScreen .shell-main{padding-top:calc(var(--mobile-header-height) + env(safe-area-inset-top) + 12px)!important}
  #demoModeBanner{box-sizing:border-box;margin:0 12px 12px!important;padding:12px 14px!important;font-size:12px!important;line-height:1.5!important;overflow-wrap:anywhere}
}

@media(max-width:700px){
 #appScreen #liquidTopNav.liquid-topnav{background:#0D1B3D!important;border-bottom:3px solid #F28705!important}
 #liquidTopNav .liquid-menu-toggle{color:#fff!important;background:transparent!important}
 #liquidTopNav .global-top-search{background:#fff!important;border-color:#E8ECF7!important;color:#1E3A8A!important}
 #liquidTopNav #globalTaxpayerToggle{background:#1E3A8A!important;border-color:#1E3A8A!important;color:#fff!important}
 #liquidTopNav #globalTaxpayerToggle :is(b,small,i){color:#fff!important}
 #liquidTopNav #globalTaxpayerToggle>span{background:#F28705!important}
 #liquidTopNav .liquid-account-short{background:#FDECD3!important;color:#0D1B3D!important;border-color:#F28705!important}
 #liquidTopNav .oa-launch{background:#fff!important;border-color:#E8ECF7!important;color:#1E3A8A!important}
 #liquidTopNav .oa-spark::before{background:conic-gradient(from 0deg,#1E3A8A,#F28705,#0D1B3D,#1E3A8A)!important}
 #liquidTopNav .oa-spark span{background:#F28705!important}
 .user-notification-center .notification-bell{background:#fff!important;color:#1E3A8A!important;border-color:#E8ECF7!important}
 #demoModeBanner{background:#FDECD3!important;color:#0D1B3D!important;border:1px solid #F28705!important}
}

/* General navigation shares the fixed app base used by mobile billing. */
@media(max-width:700px){
 #appScreen .mobile-quickbar{box-sizing:border-box;position:fixed!important;inset:auto 0 0!important;width:100%!important;max-width:none!important;height:calc(76px + env(safe-area-inset-bottom))!important;margin:0!important;padding:8px max(10px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;border:0!important;border-top:1px solid #E5E7EB!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;backdrop-filter:none!important;transform:none!important}
 #appScreen .mobile-quickbar button{box-sizing:border-box;min-width:0;min-height:52px;margin:0;padding:5px 2px;border:0;border-radius:12px;background:transparent;color:#4B5563;font:600 10px/1.3 Inter,system-ui,sans-serif;gap:5px}
 #appScreen .mobile-quickbar button svg{width:23px;height:23px;flex:none;stroke-width:1.8}
 #appScreen .mobile-quickbar button.active{background:#E8ECF7;color:#1E3A8A}
 #appScreen .mobile-quickbar button.active::after{content:'';width:14px;height:3px;border-radius:2px;background:#F28705}
 #appScreen .mobile-quickbar button:focus-visible{outline:2px solid #F28705;outline-offset:-2px}
 #appScreen .shell-main{padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}
 html{scroll-padding-bottom:calc(96px + env(safe-area-inset-bottom))}
}

/* One scale for both mobile navigation surfaces. Browser pinch zoom stays available. */
@media(max-width:700px){
 html{zoom:1!important;-webkit-text-size-adjust:100%;text-size-adjust:100%}
 :root{--mobile-base-height:82px;--mobile-base-icon:24px;--mobile-base-label:11px}
 #appScreen .mobile-quickbar,#appScreen #billingWorkspace .bm-bottom{box-sizing:border-box!important;position:fixed!important;inset:auto 0 0!important;width:100%!important;max-width:none!important;height:calc(var(--mobile-base-height) + env(safe-area-inset-bottom))!important;transform:none!important;margin:0!important;padding:8px max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important;gap:4px!important;border:0!important;border-top:1px solid #E5E7EB!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;backdrop-filter:none!important}
 #appScreen .mobile-quickbar button,#appScreen #billingWorkspace .bm-bottom button{box-sizing:border-box!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px!important;height:65px!important;min-height:65px!important;margin:0!important;padding:6px 2px!important;border:0!important;border-radius:12px!important;font:600 var(--mobile-base-label)/1.3 Inter,system-ui,sans-serif!important;color:#4B5563;transition:background-color .15s,color .15s!important}
 #appScreen .mobile-quickbar button svg,#appScreen #billingWorkspace .bm-bottom button svg{box-sizing:border-box!important;flex:none;width:var(--mobile-base-icon)!important;height:var(--mobile-base-icon)!important;margin:0!important;padding:0!important;stroke-width:1.8}
 #appScreen .mobile-quickbar button.active::after{display:none}
 #appScreen #billingWorkspace .bm-bottom button[data-m-action="go:emit"] svg{border-radius:7px}
 #appScreen #billingWorkspace .bm-app{max-width:100%!important}
 #appScreen .shell-main{padding-bottom:calc(var(--mobile-base-height) + 20px + env(safe-area-inset-bottom))!important}
 html{scroll-padding-bottom:calc(var(--mobile-base-height) + 20px + env(safe-area-inset-bottom))}
}

@media(max-width:1100px){
 #appScreen .shell.sidebar-open .sidebar{display:flex!important;flex-direction:column;transform:translateX(0)!important;z-index:310!important;visibility:visible!important;pointer-events:auto!important}
 #appScreen .shell.sidebar-open .sidebar .sidebar-nav{display:block!important;overflow-y:auto;min-height:0;flex:1}
 #appScreen .shell.sidebar-open .sidebar .module-nav{display:none!important}
 #appScreen .shell.sidebar-open .sidebar .account-menu--sidebar{display:block!important}
}

/* Consistent icon slots, controls and mobile full-view navigation. */
@media(max-width:700px){
 #liquidTopNav :is(.liquid-menu-toggle,.liquid-account-short,.oa-launch),.user-notification-center .notification-bell{border-radius:12px!important}
 #liquidTopNav .liquid-menu-toggle{background:#1E3A8A!important}
 #liquidTopNav .liquid-menu-toggle svg,.user-notification-center .notification-bell svg{width:24px!important;height:24px!important;stroke-width:1.8}
 #liquidTopNav .global-top-search input{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;outline-offset:0}
 #liquidTopNav .oa-spark{background:#1E3A8A!important;border-radius:9px!important;width:26px!important;height:26px!important}
 #liquidTopNav .oa-spark::before,#liquidTopNav .oa-spark::after{display:none!important}
 #liquidTopNav .oa-spark span{animation:none!important;width:12px!important;height:12px!important;border-radius:3px!important;transform:rotate(45deg)}
 #appScreen #billingWorkspace .billing-workspace-nav{display:grid!important;grid-template-columns:minmax(0,1fr);gap:20px!important;padding:16px!important;border-radius:16px!important}
 #appScreen #billingWorkspace .billing-nav-group{width:100%;min-width:0}
 #appScreen #billingWorkspace .billing-nav-group>small{margin:0 0 10px!important;font-size:11px!important;font-weight:700;color:#4B5563}
 #appScreen #billingWorkspace .billing-nav-group nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
 #appScreen #billingWorkspace .billing-nav-group button{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px!important;box-sizing:border-box;width:100%!important;min-width:0!important;height:88px!important;min-height:88px!important;margin:0!important;padding:10px 6px!important;border:1px solid #E5E7EB!important;border-radius:12px!important;background:#fff;color:#0D1B3D;font:600 12px/1.35 Inter,system-ui,sans-serif!important;text-align:center;overflow-wrap:anywhere}
 #appScreen #billingWorkspace .billing-nav-group button svg{width:24px!important;height:24px!important;flex:none!important;margin:0!important;stroke-width:1.8;color:#1E3A8A}
 #appScreen #billingWorkspace .billing-nav-group button.active{background:#E8ECF7!important;border-color:#1E3A8A!important;color:#1E3A8A!important}
 #appScreen #billingWorkspace [data-billing-mobile-return]{width:100%!important;min-height:44px;margin:0 0 12px!important;padding:10px 14px!important;border:1px solid #E5E7EB!important;border-radius:12px!important;background:white!important;color:#1E3A8A!important;font:600 13px Inter,system-ui,sans-serif!important}
 #appScreen .mobile-quickbar button span{font-size:11px!important;line-height:1.3!important;max-width:100%;white-space:nowrap}
}

@media(max-width:700px){
 #liquidTopNav .oa-launch{display:flex!important;align-items:center;justify-content:center;padding:0!important;background:#fff!important;color:#1E3A8A!important}
 #liquidTopNav .oa-launch-icon{display:block;width:24px!important;height:24px!important;flex:none;margin:0;stroke-width:1.8}
 #appScreen #billingWorkspace .bm-bottom button[data-m-action="go:emit"] svg{background:transparent!important;color:currentColor!important;border-radius:0!important;padding:0!important}
}
