/* Shared form sizing and installed-app viewport support. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;color-scheme:dark;scroll-padding-bottom:24px}
input,select,textarea,[contenteditable="true"],[contenteditable=""]{font-size:max(16px,1em)!important;scroll-margin-block:24px}
@supports(height:100dvh){.auth{min-height:100dvh}.modal{max-height:calc(100dvh - 32px)}}
.modal-overlay{top:var(--visual-viewport-offset,0px);bottom:auto;height:var(--visual-viewport-height,100dvh);box-sizing:border-box}
.modal{max-height:calc(var(--visual-viewport-height,100dvh) - 32px);overscroll-behavior:contain}
@media(min-width:781px){.auth-art{min-height:100svh}}
@media(max-width:780px){.auth-art{min-height:260px}.auth-form{padding-bottom:max(45px,env(safe-area-inset-bottom))}}
@media(display-mode:standalone){body{padding-top:env(safe-area-inset-top);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}.sidebar{padding-top:max(23px,env(safe-area-inset-top));padding-bottom:max(14px,env(safe-area-inset-bottom))}.content{padding-bottom:max(90px,calc(24px + env(safe-area-inset-bottom)))}}

/* Mobile navigation shares the server-rendered sidebar permissions. */
.mobile-nav-toggle,.mobile-nav{display:none}
@media(max-width:780px){
 .topbar{position:relative;z-index:10;gap:12px;padding-top:8px;padding-bottom:8px}
 .topbar .crumb{flex:1;min-width:0;overflow-wrap:anywhere}
 .mobile-nav-toggle{display:inline-flex;flex:0 0 44px;width:44px;height:44px;align-items:center;justify-content:center;border:1px solid #31516e;border-radius:9px;background:#11283e;color:#eef6ff;cursor:pointer}
 .mobile-nav-toggle:focus-visible{outline:2px solid #55c5ed;outline-offset:3px}
 .mobile-nav-toggle svg{width:22px;height:22px}
 .mobile-nav:not([hidden]){display:block;position:absolute;top:calc(100% + 6px);right:12px;left:12px;max-height:min(65dvh,520px);overflow:auto;overscroll-behavior:contain;padding:10px 12px max(14px,env(safe-area-inset-bottom));background:#0b1b30;border:1px solid #31516e;border-radius:12px;box-shadow:0 18px 48px #0009}
 .mobile-nav .side-section{margin:14px 14px 7px}
 .mobile-nav .side-link{min-height:44px}
 .mobile-nav .side-link.selected:before{display:none}
 .mobile-nav .side-bottom{display:flex;margin-top:14px;padding-top:14px}
 .mobile-nav .side-bottom a{font-size:12px;min-height:44px;display:flex;align-items:center}
}
