/* v1.2.5: mobile topbar with a dedicated second row, independent of scroll position */
.top-right #syncNow{min-width:83px;white-space:nowrap;line-height:1.1}
.top-right .logout-danger{white-space:nowrap;line-height:1.1}
@media(max-width:760px){
 .topbar{height:auto!important;min-height:101px!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:3px!important;padding:8px 11px 7px!important;align-items:center!important;position:relative!important;z-index:9!important}
 .top-left{width:100%;min-width:0;display:flex;align-items:center;gap:9px}
 .top-left>div{flex:1;min-width:0}
 .top-left h2{font-size:17px!important;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .top-subtitle{max-width:100%!important;font-size:10px!important}
 .top-right{display:flex!important;justify-content:flex-end!important;align-items:center!important;flex-wrap:nowrap!important;gap:9px!important;width:100%!important;min-width:0!important}
 .top-right .conn{font-size:11px!important;margin-right:auto!important;flex:none!important}
 .top-right #syncNow,.top-right .logout-danger{display:inline-flex!important;align-items:center;justify-content:center;flex:none!important;min-height:36px!important;border-radius:9px!important;padding:8px 11px!important;font-size:12px!important;min-width:72px!important;width:auto!important;max-width:none!important;white-space:nowrap!important}
}
#routeMap{height:430px!important;min-height:430px!important;background:#e8eef4;isolation:isolate;touch-action:none;position:relative;overflow:hidden}
.pbs-map-tilelayer,.pbs-map-overlay{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}
.pbs-map-tilelayer{z-index:0;background:linear-gradient(145deg,#e8efe5,#d2e0e8);overflow:hidden}
.pbs-map-tilelayer img{position:absolute;display:block;border:0;max-width:none!important;object-fit:fill;user-select:none;-webkit-user-drag:none}
.pbs-map-overlay{z-index:1;background:none!important}
.pbs-map-route-glow{stroke:#fff;stroke-width:7;fill:none;stroke-linecap:round;stroke-linejoin:round;opacity:.96}
.pbs-map-route{stroke-width:4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.pbs-map-controls{position:absolute;z-index:3;right:10px;top:11px;display:grid;gap:7px}
.pbs-map-controls button{width:39px;height:39px;border:1px solid #bdcddc;background:#fff;color:#163955;border-radius:9px;font-size:21px;font-weight:900;box-shadow:0 4px 12px #17395725}
.pbs-map-controls button:active{background:#e7eff5}
.pbs-map-legend{position:absolute;left:11px;top:11px;z-index:3;background:#fffef4e8;padding:9px 11px;border-radius:9px;font-size:10px;color:#17334f;pointer-events:none;box-shadow:0 2px 13px #162b4125}
.pbs-line-legend{display:inline-block;width:15px;height:4px;background:#078cc1;vertical-align:middle}
.pbs-gps-legend{display:inline-block;width:8px;height:8px;background:#116dcf;border-radius:100%;vertical-align:middle}
.pbs-map-attribution{position:absolute;z-index:4;right:3px;bottom:3px;background:#fffffff0;border-radius:4px;padding:3px 6px;font-size:9px;max-width:92%;text-align:right}
.pbs-map-attribution a{color:#17436d;text-decoration:underline}
.pbs-map-teststamp{position:absolute;z-index:3;bottom:28px;left:8px;pointer-events:none;transform:rotate(-8deg);background:#fff5dfdf;border:2px solid #d7811f;color:#ac5800;border-radius:10px;font-size:15px;font-weight:900;line-height:1.2;padding:8px;letter-spacing:.2px}
.pbs-map-status{margin:8px 0 10px;background:#e9f4fd;border:1px solid #a9cbe5;border-radius:8px;color:#16466d;font-size:11px;line-height:1.5;padding:10px 12px}
.pbs-map-status.located{background:#e8fbef;border-color:#94d3ad;color:#19613e}
.pbs-map-status.outside{background:#fff4e7;border-color:#ead099;color:#885816}
.pbs-map-status.test{background:#fff2da;border-color:#d69a44;color:#985210}
.pbs-map-warning{font-size:10px;color:#5b748b;padding:6px 4px}
.pbs-map-basemap-label{font-size:11px;display:flex;gap:6px;align-items:center}
.pbs-map-basemap-label select{margin:0;min-height:39px;font-size:12px}
.pbs-test-toggle{border-color:#ceaa50!important;color:#955800!important;background:#fff7e7!important}
@keyframes pbsPulse{0%{transform:scale(.5);opacity:.9}75%{transform:scale(1.8);opacity:.15}100%{transform:scale(2);opacity:0}}
.pbs-gps-pulse{transform-box:fill-box;transform-origin:center;animation:pbsPulse 1.6s ease-out infinite}
@media(max-width:760px){#routeMap{height:410px!important;min-height:410px!important}.pbs-map-basemap-label{width:100%;justify-content:flex-end}.pbs-map-basemap-label select{max-width:185px}.pbs-map-legend{top:10px;left:8px}.pbs-map-controls{right:8px;top:10px}}
@media(prefers-reduced-motion:reduce){.pbs-gps-pulse{animation:none;opacity:.45}}
