/* R9.7.4: Mobile bottom navigation; presentation only, existing application routes. */
.pkg-mobile-bar,.pkg-mobile-backdrop,.pkg-mobile-sheet{display:none}
@media (max-width:767px){
 body:not(.activation-required) .pkg-mobile-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;position:fixed;left:0;right:0;bottom:0;z-index:41;min-height:68px;padding:7px max(9px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left));border-top:1px solid var(--line,#dbe6e0);background:var(--card,#fff);box-shadow:0 -8px 24px rgba(8,48,28,.12)}
 .pkg-mobile-bar button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-width:0;min-height:48px;line-height:1.15;padding:5px 2px;border:0;border-radius:12px;background:transparent;color:var(--muted,#66776c);font-weight:700;font-size:11px;white-space:nowrap;cursor:pointer}
 .pkg-mobile-bar button svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
 .pkg-mobile-bar button[aria-current="page"],.pkg-mobile-bar button[aria-expanded="true"]{background:color-mix(in srgb,var(--pri,#0f5132) 13%,var(--card,#fff));color:var(--pri,#0f5132)}
 .pkg-mobile-bar button:focus-visible,.pkg-mobile-sheet button:focus-visible,.pkg-mobile-sheet input:focus-visible{outline:3px solid #d5a641;outline-offset:2px}
 body:not(.activation-required) .main #view{padding-bottom:calc(120px + env(safe-area-inset-bottom))!important}
 body:not(.activation-required) .toast-wrap{bottom:calc(87px + env(safe-area-inset-bottom))}
 body:not(.activation-required) .r7-update-banner{bottom:calc(82px + env(safe-area-inset-bottom))!important;max-height:60dvh;overflow-y:auto}
 .pkg-mobile-backdrop[aria-hidden="false"]{display:block;position:fixed;inset:0;z-index:80;background:rgba(2,25,14,.56);backdrop-filter:blur(2px)}
 .pkg-mobile-sheet[aria-hidden="false"]{display:flex;flex-direction:column;position:fixed;z-index:81;left:0;right:0;bottom:0;max-height:min(84dvh,750px);padding:15px 15px calc(17px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;background:var(--card,#fff);color:var(--text,#1d342b);box-shadow:0 -16px 50px #06180f44}
 .pkg-mobile-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:11px}
 .pkg-mobile-sheet h2{font-size:17px;font-weight:800;margin:0;color:var(--text,#20342a)}
 .pkg-mobile-sheet-close{border:1px solid var(--line,#dbe6e0);background:var(--card,#fff);color:var(--text,#20342a);border-radius:10px;min-width:44px;min-height:44px;font-size:24px}
 .pkg-mobile-search{width:100%;min-height:45px;border:1px solid var(--line,#dbe6e0);border-radius:11px;padding:10px 12px;margin-bottom:9px;background:var(--bg,#f8faf6);color:var(--text,#20342a);font-size:16px}
 .pkg-mobile-sheet-items{overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;display:grid;gap:4px}
 .pkg-mobile-sheet-group{padding:13px 7px 4px;font-size:11px;letter-spacing:.075em;text-transform:uppercase;color:var(--muted,#76867d);font-weight:800}
 .pkg-mobile-sheet-item{border:1px solid var(--line,#dbe6e0);background:var(--card,#fff);border-radius:10px;padding:12px 13px;text-align:left;display:flex;align-items:center;gap:10px;min-height:46px;color:var(--text,#20342a);font-weight:600;font-size:14px}
 .pkg-mobile-sheet-item[aria-current="page"]{border-color:var(--pri,#0f5132);color:var(--pri,#0f5132)}
 .pkg-mobile-sheet-item .pkg-icon{width:25px;text-align:center;flex:none}
 .pkg-mobile-sheet-item[hidden],.pkg-mobile-sheet-group[hidden]{display:none!important}
 body.pkg-mobile-sheet-open .r7-update-banner{display:none!important}
 .pkg-mobile-sheet-empty{font-size:13px;color:var(--muted,#66776c);padding:18px 8px}
 body.pkg-mobile-sheet-open{overflow:hidden}
 body:has(#accountGate:not(.is-unlocked)) .pkg-mobile-bar,body:has(.modal.show) .pkg-mobile-bar{display:none!important}
 body:has(.modal.show) .pkg-mobile-backdrop,body:has(.modal.show) .pkg-mobile-sheet{display:none!important}
}
@media(min-width:768px){.pkg-mobile-bar,.pkg-mobile-backdrop,.pkg-mobile-sheet{display:none!important}}
@media print{.pkg-mobile-bar,.pkg-mobile-backdrop,.pkg-mobile-sheet{display:none!important}.main #view{padding-bottom:0!important}}
