/* Mobile-only navigation; desktop layout stays as before. */
.mobile-nav{display:none}
.pwa-install{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 15px;border:1px solid #f9fbf6;border-radius:13px;background:#eef0ed;color:#142b43;font:500 12px/1.35 "Segoe UI",system-ui,sans-serif;box-shadow:5px 5px 12px #d5dbd5,-5px -5px 12px #fff;cursor:pointer}
.pwa-install svg{width:18px;height:18px;flex:none}
.pwa-install[hidden]{display:none!important}
.pwa-install:focus-visible,.mobile-tab:focus-visible,.mobile-more-dialog a:focus-visible,.mobile-more-dialog button:focus-visible{outline:2px solid #9e6b73;outline-offset:3px}
.mobile-more-dialog{display:none}
.mobile-more-dialog[open]{display:block}
@media(max-width:760px){
  :root{--mobile-nav-height:78px}
  html{scroll-padding-bottom:calc(var(--mobile-nav-height) + 24px + env(safe-area-inset-bottom,0px))}
  body.pwa-public,body.pwa-admin{padding-bottom:calc(var(--mobile-nav-height) + 26px + env(safe-area-inset-bottom,0px))}
  .pwa-public .page-shell,.pwa-admin .admin-main{scroll-margin-bottom:100px}
  .mobile-nav{position:fixed;z-index:1000;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;align-items:center;min-height:var(--mobile-nav-height);padding:8px max(12px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));background:#eef0ed;border-top:1px solid #f9fbf7;box-shadow:0 -5px 24px rgba(31,51,63,.12)}
  .mobile-nav-admin{grid-template-columns:repeat(5,minmax(0,1fr))}
  .mobile-tab{display:flex;min-width:0;min-height:58px;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:6px 2px;border:0;border-radius:14px;background:transparent;color:#526575;font:500 11px/1.2 "Segoe UI",system-ui,sans-serif;text-decoration:none;cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent}
  .mobile-tab svg{display:block;flex:none;width:23px;height:23px}
  .mobile-tab.is-active{background:#e5e9e5;color:#142b43;box-shadow:inset 3px 3px 7px #d3dad3,inset -3px -3px 7px #f9fbf7}
  .mobile-tab.is-active svg{color:#a06b75}
  .pwa-admin .side-nav,.pwa-admin .sidebar-bottom{display:none}
  .pwa-admin .admin-sidebar{padding-bottom:10px}
  .pwa-admin .sidebar-brand{padding-bottom:0}
  .pwa-public .page-footer{padding-bottom:24px}
  .pwa-login .login-side{padding-bottom:calc(25px + env(safe-area-inset-bottom,0px))}
  .pwa-public input,.pwa-admin input,.pwa-admin select,.pwa-login input{font-size:16px}
  .mobile-more-dialog{width:min(calc(100% - 28px),440px);max-height:calc(100dvh - 120px);margin:auto auto calc(90px + env(safe-area-inset-bottom,0px));padding:18px;border:1px solid #f9fbf6;border-radius:22px;background:#eef0ed;color:#142b43;box-shadow:0 15px 40px rgba(20,43,67,.24);overflow-y:auto}
  .mobile-more-dialog::backdrop{background:rgba(20,43,67,.38)}
  .mobile-more-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
  .mobile-more-head h2{font-size:18px;font-weight:500;margin:0}
  .mobile-more-head button{width:40px;height:40px;border:0;border-radius:12px;color:#526575;background:#e5e9e5;font-size:16px;cursor:pointer}
  .mobile-more-dialog>a,.mobile-more-dialog>button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:47px;padding:10px 13px;margin:9px 0;border:0;border-radius:12px;text-align:left;text-decoration:none;color:#142b43;background:#eef0ed;box-shadow:4px 4px 10px #d6dcd6,-4px -4px 10px #fff;font:500 13px/1.4 "Segoe UI",system-ui,sans-serif;cursor:pointer}
  .mobile-more-dialog>[data-mobile-logout]{color:#9e4b5a}
}
@media(max-width:350px){.mobile-tab{font-size:10px}.mobile-tab svg{width:21px;height:21px}.mobile-nav{gap:3px;padding-left:7px;padding-right:7px}}
@media print{.mobile-nav,.mobile-more-dialog,.pwa-install{display:none!important}}

