.runtime-tiles-controls{border-block:1px solid var(--line,#52616b);margin:14px 0 18px;padding:14px 0}
.runtime-tiles-controls h3{margin:0;font-size:15px;font-weight:650;line-height:1.3}
.runtime-tiles-controls p{font-size:13px;line-height:1.45;margin:8px 0}
.runtime-tiles-controls .runtime-tiles-note{color:#c7d7d5;margin:6px 0 10px}
.runtime-tiles-controls button{min-height:44px;font-size:13px;padding:9px 12px;cursor:pointer}
.runtime-tiles-controls button:disabled{cursor:default;opacity:.55}
.runtime-tiles-preview{width:100%;background:#bcecf1;color:#11262a;border-color:transparent}
.runtime-tiles-source{display:block;margin-top:12px;font-size:14px;line-height:1.4}
.runtime-tiles-credit{overflow-wrap:anywhere;color:#dbe7e3}
.runtime-tiles-overview{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin-top:12px}
.runtime-tiles-controls label{display:grid;gap:5px;font-size:13px;line-height:1.4}
.runtime-tiles-controls input,.runtime-tiles-controls select{box-sizing:border-box;width:100%;min-width:0;min-height:42px;padding:8px;color:inherit;background:#14242a;border:1px solid #758b8e;border-radius:5px;font:inherit}
.runtime-tiles-controls input[type=checkbox]{width:20px;height:20px;min-height:20px}
.runtime-tiles-controls .runtime-tiles-height-help{font-size:12px;color:#c7d7d5;margin:6px 0 10px}
.runtime-tiles-actions{display:flex;flex-wrap:wrap;gap:8px}
.runtime-tiles-controls .runtime-tiles-status{font-size:13px;line-height:1.45;color:#d7e9e3;margin:10px 0}
.runtime-tiles-controls[data-state=error] .runtime-tiles-status{color:#ffe0ab}
.runtime-tiles-advanced{border:0!important;margin:12px 0 0!important;padding:0!important}
.runtime-tiles-advanced>summary{cursor:pointer;font-size:13px;font-weight:500;padding:3px 0}
.runtime-tiles-advanced form{display:grid;gap:12px;margin-top:12px}
.runtime-tiles-controls [hidden]{display:none}
.runtime-tiles-controls :focus-visible{outline:2px solid #bcecf1;outline-offset:3px}
.runtime-tiles-viewport-credit{position:fixed;z-index:6;left:0;right:0;bottom:0;margin:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));max-height:35vh;overflow-y:auto;background:#0c1218f5;color:#fff;font:12px/1.4 system-ui,sans-serif;overflow-wrap:anywhere;text-align:left}
.runtime-tiles-viewport-credit[hidden]{display:none}
body:has(.runtime-tiles-viewport-credit:not([hidden])) .host-hud,body:has(.runtime-tiles-viewport-credit:not([hidden])) .ride-hud{bottom:calc(22px + var(--runtime-map-credit-height,50px))}

/* A fixed reference is for looking at the city, not operating the ride HUD.
   The live ride and its controls return immediately when the map is removed. */
/* The city reference is a distinct inspect surface, not a second video source.
   Hide every competing source/ride banner while it is active. The attribution
   and explicit Return to ride action are owned by the map view itself. */
body:has(.stage.runtime-map-inspecting) #hostHud,
body:has(.stage.runtime-map-inspecting) #guestPanel,
body:has(.stage.runtime-map-inspecting) .ride-top,
body:has(.stage.runtime-map-inspecting) #mappedWorldStatus,
body:has(.stage.runtime-map-inspecting) #sourceRecovery{display:none!important}
body:has(.stage.runtime-map-inspecting) .stage>.vignette{display:none!important}
/* The footage host's mobile sizing rule must not shrink the city to a strip.
   This also applies while a source changes or the viewport is resized. */
body:has(.stage.runtime-map-inspecting) .stage>#output{
 inset:0!important;width:100%!important;height:100dvh!important;
 object-fit:cover!important;object-position:center!important;
}
.runtime-map-return{position:fixed;z-index:7;right:clamp(14px,3vw,28px);bottom:calc(16px + var(--runtime-map-credit-height,45px) + env(safe-area-inset-bottom));min-height:44px;padding:10px 17px;background:#10262be8;border:1px solid #bcecf1;color:#e7fdf9;border-radius:9px;font:600 13px/1.25 system-ui,sans-serif;box-shadow:0 4px 18px #08121688;cursor:pointer}
.runtime-map-return[hidden]{display:none!important}
.runtime-map-return:focus-visible{outline:3px solid #bcecf1;outline-offset:3px}
@media(max-width:760px){
 .runtime-map-return{right:14px;bottom:calc(12px + var(--runtime-map-credit-height,45px) + env(safe-area-inset-bottom));min-height:48px}
}
