/* Selection windows: fixed header/actions, one bounded scroll area. */
.game-mode .route-inspector{display:flex;flex-direction:column;top:180px;bottom:auto;max-height:calc(100dvh - 352px);overflow:hidden;padding:0;z-index:15;isolation:isolate}
.game-mode .route-inspector>.inspector-head{position:relative;inset:auto;flex:0 0 auto;align-items:center;padding:10px 12px;background:var(--surface);border-bottom:1px solid var(--line);z-index:1;min-width:0}
.game-mode .inspector-head>div{min-width:0}.game-mode .inspector-head h2{font-size:21px;margin-top:4px;overflow-wrap:anywhere}
.game-mode .inspector-head>button{margin:0;min-width:44px;min-height:44px;flex:none}
.game-mode .route-inspector>.inspector-actions{position:relative;inset:auto;flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);padding:8px 12px;gap:8px;margin:0;border-bottom:1px solid var(--line);background:var(--surface);z-index:1}
.game-mode .inspector-actions>.game-button{min-width:0;min-height:44px;font-size:11px;line-height:1.5;padding:8px 6px;white-space:normal;overflow-wrap:anywhere}
.game-mode .inspector-actions>.game-button:only-child{grid-column:1/-1}
.game-mode .inspector-body>.inspector-find-flight{display:flex;align-items:center;justify-content:center;gap:6px;margin:8px 14px 0;width:calc(100% - 28px);min-height:44px;font-size:11px}
.game-mode .flight-preview-note{margin:8px 14px 0;font-size:10px;line-height:1.6;color:var(--muted)}
.game-mode .inspector-body{position:relative;min-height:0;min-width:0;flex:0 1 auto;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding:12px;padding-bottom:12px;touch-action:pan-y;}
.game-mode .inspector-body:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}
.game-mode .inspector-body>.inspector-sub{width:auto;min-height:24px;margin:10px 14px 0;font-size:11px;gap:8px;line-height:1.6;flex-wrap:wrap}
.game-mode .inspector-sub>span{display:inline-block;flex:none;font-size:10px}
.game-mode .inspector-body>.inspector-plane{position:relative;inset:auto;width:auto;height:auto;min-height:0;margin:0 14px;padding:0;border-bottom:1px solid var(--line);background:none;overflow:hidden}
.game-mode .inspector-plane>.aircraft-preview{position:relative;inset:auto;width:100%;height:132px;min-height:0}
.game-mode .inspector-plane>.aircraft-preview>.aircraft-photo-tools{left:0;bottom:2px}
.game-mode .inspector-plane>span{position:static;inset:auto;display:flex;gap:8px;justify-content:space-between;padding:6px 0 10px;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.game-mode .inspector-plane small{font-size:10px;flex:none}
.game-mode .inspector-body>.route-active{margin:12px 14px 0;font-size:11px;line-height:1.6;gap:7px;flex-wrap:wrap}
.game-mode .route-active>span{margin-left:0;font-size:10px;overflow-wrap:anywhere}
.game-mode .route-active>i{flex:none}
.game-mode .inspector-body>.inspector-metrics{position:static;width:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);padding:14px;gap:10px}
.game-mode .inspector-metrics>div{min-width:0;border:0}.game-mode .inspector-metrics>div:last-child{padding:0}
.game-mode .inspector-metrics small{font-size:10px;line-height:1.5;margin-bottom:6px}
.game-mode .inspector-metrics strong,.game-mode .inspector-metrics strong.positive,.game-mode .inspector-metrics strong.negative{font-size:23px;overflow-wrap:anywhere}
.game-mode .inspector-body>.inspector-fare{position:static;inset:auto;width:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 14px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.game-mode .inspector-fare>div:first-child{min-width:0}.game-mode .inspector-fare>div:last-child{position:static;inset:auto;display:flex;flex:none;gap:6px}
.game-mode .inspector-fare small{font-size:10px;line-height:1.6}.game-mode .inspector-fare strong{font-size:18px}
.game-mode .inspector-fare button{width:44px;height:44px;min-width:44px;min-height:44px;display:grid;place-items:center}
.game-mode .inspector-fare .icon{width:14px;height:14px}
.game-mode .inspector-body>.route-details{display:block;margin:14px 14px 0}
.game-mode .route-details>span,.game-mode .route-details b{font-size:11px;line-height:1.6;gap:12px}
.game-mode .inspector-body .network-route-list button{min-height:44px;flex-wrap:wrap}
@media(max-width:640px){
 .game-mode .route-inspector{--inspector-top:calc(var(--safe-top) + 200px);--inspector-bottom:calc(var(--safe-bottom) + 172px);position:fixed;top:auto;bottom:var(--inspector-bottom);left:12px;right:12px;width:auto;max-height:min(480px,calc(100dvh - var(--inspector-top) - var(--inspector-bottom)))}
 .game-mode .inspector-head .game-kicker{font-size:8px}.game-mode .inspector-actions>.game-button{font-size:12px}
 .game-mode #game-panel-root:has(.route-inspector) .mission-tracker{top:calc(var(--safe-top) + 146px)}
 .game-mode #game-panel-root:has(.route-inspector) .mission-tracker>header{padding:0 8px 0 11px}
}
@media(max-width:359px){.game-mode .route-inspector{--inspector-bottom:calc(var(--safe-bottom) + 216px)}.game-mode .inspector-actions>.game-button{font-size:11px}}
@media(max-height:700px){.game-mode .route-inspector{--inspector-top:calc(var(--safe-top) + 72px)}}
@media(max-height:600px) and (min-width:641px){.game-mode .route-inspector{top:calc(var(--safe-top) + 84px);max-height:calc(100dvh - var(--safe-top) - var(--safe-bottom) - 250px)}}
@media(max-height:700px){
 .game-mode .route-inspector>.inspector-head{padding:0 10px}.game-mode .inspector-head .game-kicker{display:none}.game-mode .inspector-head h2{font-size:18px;margin:0}
 .game-mode .route-inspector>.inspector-actions{padding:0 10px}.game-mode .inspector-actions>.game-button{font-size:10px;padding:4px 6px}
 .game-mode .inspector-plane>.aircraft-preview{height:80px}
 .game-mode .inspector-plane>span{padding:2px 0;font-size:10px;line-height:1.5}
}
@media(max-height:500px){.game-mode .inspector-plane>.aircraft-preview{height:24px}.game-mode .inspector-body{scroll-padding:0}}
/* New connections remain fixed actions; every existing pair stays in the scrolling body. */
.game-mode .airport-existing-routes{display:grid;gap:7px;min-width:0}
.game-mode .airport-existing-routes>.game-button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;width:100%;height:auto;padding:10px;text-align:left;white-space:normal}
.game-mode .airport-existing-routes>.game-button>span{min-width:0;overflow-wrap:anywhere}
.game-mode .airport-existing-routes strong{display:block;font-size:12px}
.game-mode .airport-existing-routes small{display:block;font-size:10px;line-height:1.7;color:var(--muted);margin-top:5px}
