#mobile-more,#mobile-more-panel{display:none!important}
@media(max-width:700px){
 .nav-shell{position:relative;z-index:500;overflow:visible}
 .nav-shell .nav-arrow{display:none!important}
 #main-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;overflow:visible;touch-action:manipulation;scroll-snap-type:none}
 #main-nav button{min-width:0!important;width:100%;padding:5px 1px!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.15;font-size:clamp(10px,2.7vw,12px);min-height:54px}
 #main-nav :is(#trip-mode,#traffic-mode,#stats-mode){display:none!important}
 #main-nav #mobile-more{display:flex!important;--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='5' cy='12' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='19' cy='12' r='2'/%3E%3C/svg%3E")}
 #mobile-more.more-active,#mobile-more[aria-expanded=true]{background:#123a2d;color:#86efac;border-color:#225e45}
 #mobile-more-panel:not([hidden]){position:absolute;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;bottom:calc(100% + 6px);left:8px;right:8px;padding:12px;background:#122033;border:1px solid #34475e;border-radius:14px;box-shadow:0 8px 26px #0008;max-height:50dvh;overflow:auto}
 #mobile-more-panel :is(button,a){display:flex;align-items:center;justify-content:center;text-align:center;min-height:48px;padding:8px;color:#dbe7f6;background:#1b2c40;border:1px solid #34475e;border-radius:9px;font:inherit;font-size:13px;text-decoration:none;overflow-wrap:anywhere}
 #mobile-more-panel button[aria-pressed=true]{background:#173b30;color:#86efac;border-color:#225e45}
}
/* Mobile polish: retain all source and license links. */
@media(max-width:700px){
 #mobile-more-panel:not([hidden]){gap:7px;padding:10px;z-index:2}
 #mobile-more-panel .mobile-more-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:0 2px;color:#edf4ff;font-size:15px}
 #mobile-more-panel .mobile-more-heading button{min-height:44px;width:44px;padding:0;font-size:24px;background:transparent;border:0}
 #mobile-more-panel > :is(button,a){flex-direction:column;gap:6px;min-height:68px;font-size:12px;line-height:1.25}
 #mobile-more-panel > :is(button,a) svg{width:22px;height:22px;flex-shrink:0;color:#a8bed5}
 body > footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:3px 8px;padding:6px 9px;font-size:10px;line-height:1.4}
 body > footer > span:first-child{grid-column:1/-1}
 body > footer > #updated{white-space:normal;overflow-wrap:anywhere}
 body > footer > span:last-child{text-align:right}
 body > footer #privacy-settings{font-size:inherit;line-height:inherit}
 .mapwrap .legend{gap:4px 8px;line-height:1.35}
}
