/* Protected header grid; no map/camera ownership. */
.topbar{display:grid;grid-template-columns:44px auto minmax(0,1fr) auto;gap:6px;align-items:center;min-width:0}.topbar #side-toggle{width:44px;min-width:44px}.topbar img.pf-header-logo{width:clamp(82px,22vw,142px);height:36px;max-width:100%;flex:none}.topbar #status{max-width:100%;margin:0;max-inline-size:110px;overflow-wrap:anywhere;font-size:10px;line-height:1.2}.topbar .pf-search-wrap{min-width:0;overflow:visible}.pf-search-wrap form{display:flex;min-width:0;gap:2px;align-items:center;border:1px solid #6b9cce;background:#0a2137b0;border-radius:12px;padding:2px}.pf-search-wrap input{flex:1;min-width:0;width:0;height:36px;color:#edf7ff;background:transparent;border:0;padding:4px;font:inherit;font-size:14px}.pf-search-wrap button{font-size:11px;min-height:36px;min-width:44px;padding:3px;border-radius:9px}.pf-search-results{position:absolute;z-index:15;top:4px;left:50%;transform:translateX(-50%);width:min(500px,96%);max-height:calc(100% - 8px);overflow:auto;background:#102743f5;border:1px solid #6b9cce;border-radius:10px;padding:5px;color:#fff}.pf-search-results button,.pf-work-results button{display:block;width:100%;text-align:left;font-size:13px;margin-block:3px;overflow-wrap:anywhere}.pf-search-results div,.pf-work-results div{padding:8px}.pf-journey-marker{display:grid;place-items:center;width:30px;height:30px;border:2px solid white;color:white;border-radius:50%;font:bold 14px system-ui;background:#1964c5}.pf-journey-marker.start{background:#10765a}.pf-journey-marker.finish{background:#1b66c6}.pf-journey-marker.vehicle{background:#124e95;border-radius:8px}.pf-journey-marker.work{width:36px;height:36px;min-width:36px;min-height:36px;padding:0}.pf-journey-track{display:flex;align-items:center;gap:5px;font-size:11px}.pf-journey-track i{flex:1;height:3px;background:#23d49a}.pf-journey-track i:last-of-type{background:#60a5fa}#pf-journey{position:absolute;z-index:6;right:6px;top:6px;width:min(250px,46%);max-height:calc(100% - 12px);overflow:auto;background:#102743e8;color:#fff;border:1px solid #6b9cce;border-radius:10px;padding:6px}#pf-journey button{font-size:11px;min-height:36px;width:100%;margin:2px 0}#pf-journey-state{font-size:12px;overflow-wrap:anywhere;margin:4px 0}#pf-journey-body{padding-top:4px}#pf-work-panel{width:min(600px,96vw);max-height:90dvh;color:#eaf3ff;background:#102743;border:1px solid #80b5e9;border-radius:14px;padding:12px;overflow:auto}#pf-work-panel::backdrop{background:#0008}#pf-work-panel input,#pf-work-panel select{width:100%;min-height:40px;background:#071c34;border:1px solid #6996c4;border-radius:6px;color:white;padding:6px;font:inherit}#pf-work-panel label{display:block;font-size:13px}#pf-work-panel button{margin:3px;font-size:12px}#pf-work-panel h2{margin:0;font-size:19px}.pf-work-stop{border:1px solid #456c97;border-radius:10px;padding:8px;margin:8px 0}.pf-work-stop h3{margin:0 0 5px;font-size:14px}.pf-work-stop p{margin:4px 0;font-size:12px}.pf-work-results{max-height:160px;overflow:auto}.pf-work-note{font-size:12px;color:#c5dbf2}.pf-work-done{border-color:#26ca9a}.pf-work-bar{display:flex;flex-wrap:wrap;align-items:center;gap:4px}@media(max-width:420px){.topbar{gap:3px;padding-inline:4px}.topbar img.pf-header-logo{width:82px}.topbar #status{max-inline-size:74px}.pf-search-wrap button{font-size:10px}}@media(max-height:500px){#pf-journey{top:3px;right:4px;width:min(240px,35%)}#pf-journey-body{max-height:120px;overflow:auto}.topbar img.pf-header-logo{height:36px}.topbar{padding-block:2px}}

/* QA9: trip actions are menu-only; never float over the map. */
#side-panel #pf-journey{position:static;width:100%;max-height:none;overflow:visible;margin-block:8px;box-sizing:border-box}#side-panel #pf-journey-body{max-height:none;overflow:visible}#side-panel #pf-journey[hidden]{display:none}

.pf-search-results a{display:block;color:#d8edff;text-align:center;padding:12px;margin:4px;border:1px solid #709fc8;border-radius:9px}
