/* v1.0 responsive field controls. User-controlled red night mode avoids map overexposure. */
.tf15Actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:6px 0}
.tf15Actions button{font-size:12px;min-height:44px;border:1px solid #47728c;border-radius:8px;background:#142b40;color:#def4ff;cursor:pointer;padding:6px 10px}
.tf15Thumbnail{width:94px;height:94px;flex:0 0 94px;object-fit:contain;background:#071827;border-radius:100%;border:1px solid #4c7488}
.tf15Row{display:grid;grid-template-columns:94px minmax(0,1fr);gap:10px;padding:8px;border-bottom:1px solid #3b5970;min-width:0}
.tf15Row main{display:flex;flex-direction:column;gap:4px;min-width:0}
.tf15Row strong,.tf15Row small{overflow-wrap:anywhere}
.tf15Row .tf15Clock{color:#a3e5ff;font-size:19px;font-weight:800}
.tf15Danger{background:#280809;border:1px solid #ff554e;padding:10px;border-radius:9px;color:#ffcebd}
.tf15Tour{position:fixed;inset:0;display:grid;place-items:center;background:#000b;z-index:500;padding:20px}
.tf15Tour[hidden]{display:none!important}
.tf15Tour article{max-width:480px;background:#122436;color:#f1f7fb;border:1px solid #5199c2;padding:24px;border-radius:18px;box-shadow:0 12px 50px #0008}
.tf15Tour button{min-height:44px;margin:5px;padding:6px 16px}
body.tf15-night{background:#080000!important;color:#ff9999!important;filter:none}
body.tf15-night #app,body.tf15-night .panel,body.tf15-night .topbar{background:#140102!important;color:#ffaaa4!important}
body.tf15-night #mapTiles,body.tf15-night #terrainFallback{filter:grayscale(1) brightness(.28) sepia(1) saturate(6) hue-rotate(315deg)!important}
body.tf15-night .blueButton,body.tf15-night button{border-color:#9f2b24;color:#ffb0a4}
@media(max-width:760px){.tf15Row{grid-template-columns:76px minmax(0,1fr)}.tf15Thumbnail{width:76px;height:76px;flex-basis:76px}.tf15Actions button{flex:1}.tf15Row small{font-size:12px}}

#aircraftPanel small,#aircraftPanel figcaption,#aircraftPanel #aircraftSource,#aircraftPanel #r11HeroTime,#aircraftPanel #transitDesc,#aircraftPanel #airDist,#aircraftPanel .stats3 small{font-size:max(12px,1em)!important}

/* v1.0.1 mobile upcoming drawer: three snap heights, never above the selected transit. */
@media (max-width:760px){
 #upcomingPanel:not([hidden]){position:fixed!important;top:auto!important;bottom:0!important;height:auto!important;max-height:none!important;z-index:25!important;transition:height .19s ease-out}
 #upcomingPanel[data-snap="peek"]:not([hidden]){height:174px!important}
 #upcomingPanel[data-snap="half"]:not([hidden]){height:50dvh!important}
 #upcomingPanel[data-snap="full"]:not([hidden]){height:82dvh!important}
 #upcomingPanel .panelHeading{position:sticky;top:0;background:#142334;z-index:2}
 #upcomingPanel .tf101Handle{position:sticky;top:65px;z-index:2}
 body:has(#aircraftPanel:not([hidden])) #upcomingPanel{display:none!important}
}
@media(max-height:500px) and (orientation:landscape){#upcomingPanel:not([hidden]){top:0!important;bottom:0!important;right:0!important;left:auto!important;width:min(420px,50vw)!important;height:auto!important;max-height:100dvh!important}#upcomingPanel[data-snap="peek"]:not([hidden]){height:38dvh!important}#upcomingPanel[data-snap="half"]:not([hidden]){height:65dvh!important}#upcomingPanel[data-snap="full"]:not([hidden]){height:96dvh!important}}
.tf101Handle{height:26px;display:grid;place-items:center;touch-action:none;cursor:ns-resize;background:#1a3047}
.tf101Handle span{width:64px;height:5px;border-radius:9px;background:#9ab3c9}
.tf15Row{display:grid;grid-template-columns:94px minmax(0,1fr);grid-template-areas:"thumb info" "actions actions";gap:10px;align-items:start}
.tf15Row>.tf15Thumbnail{grid-area:thumb}
.tf15Row>button[data-select-pass]{grid-area:info;min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:left}
.tf15Row>.tf15Actions{grid-area:actions;display:flex;flex-wrap:nowrap;gap:6px;width:100%}
.tf15Row>.tf15Actions button{flex:1;min-width:0;padding:8px 5px}
.tf101ModelLabel{display:block;font-size:12px;color:#a6c6d4;margin-top:3px}
#upcomingPanel label:has(#chaseRadius){display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#chaseRadius{width:auto;min-width:86px}
#toast,.toast{position:fixed!important;top:max(78px,env(safe-area-inset-top,0px))!important;bottom:auto!important;z-index:170!important;pointer-events:none}
#targetBodyLabel,#pinTransit,#shareTransit,#transitNote,#transitDesc,#airDist,#statusNote,#mapZoom,.planeText,.planeText small,.brandwords,.mapSwitch button,.layerSwitch button,#aircraftSource,#r11HeroTime{font-size:max(12px,1em)!important}
#aircraftPanel button,#upcomingPanel button{font-size:max(12px,1em)}
@media (max-height:500px) and (orientation:landscape){#aircraftPanel .astrodisc{width:min(70dvh,260px)!important;max-width:none!important;height:min(70dvh,260px)!important}#transitCanvas{height:100%!important}}
body.tf15-night .airMark,body.tf15-night .planeText,body.tf15-night .teamPresenceMarker,body.tf15-night .observer,body.tf15-night #mapPaths,body.tf15-night .brandmark,body.tf15-night #mapMarkers{filter:sepia(1) saturate(3) hue-rotate(300deg)!important;color:#ff7a74!important}

/* 1.0.2 compact phones and landscape */
.tf15Actions button{min-height:44px;white-space:normal;line-height:1.25}
.tf15Row>button[data-select-pass]{display:flex;flex-direction:column;align-items:flex-start;gap:5px;overflow:visible!important;line-height:1.35}
#aircraftPanel .panelHeading,#aircraftPanel #aircraftName{white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere}
#toast,.toast{top:max(120px,calc(env(safe-area-inset-top,0px) + 105px))!important}
.eyebrow,.subheading,.sectionLabel,#targetBodyLabel,#r13FeedStatus,.transitStats{font-size:max(12px,1em)!important}
body.tf15-night .eyebrow,body.tf15-night .layerSwitch .active{color:#f55!important;filter:sepia(1) saturate(5) hue-rotate(320deg)}
@media(max-height:500px) and (orientation:landscape){#aircraftPanel .astrodisc{width:70dvh!important;height:70dvh!important;min-width:70dvh!important;min-height:70dvh!important;max-width:none!important;max-height:none!important}#aircraftPanel{overflow-y:auto!important}#upcomingPanel[data-snap=full]:not([hidden]){height:100dvh!important;max-height:100dvh!important}}
#autoTransitTab{position:fixed;left:12px;bottom:12px;z-index:23;max-width:min(480px,92vw);max-height:32dvh;overflow:auto;background:#102136;color:#eef5ff;border:1px solid #5d829e;border-radius:12px;padding:8px;box-shadow:0 4px 24px #0007}
#autoTransitTab[hidden]{display:none!important}
#autoTransitTab h3{font-size:13px;margin:3px 6px 7px}
.autoTransitEntry{display:block;min-height:44px;width:100%;margin:3px 0;text-align:left;white-space:normal;overflow-wrap:anywhere;border-radius:8px;font-size:12px;padding:7px}
@media(max-width:760px){#autoTransitTab{bottom:calc(78px + env(safe-area-inset-bottom,0px));max-height:22dvh}body:has(#upcomingPanel:not([hidden])) #autoTransitTab{bottom:calc(190px + env(safe-area-inset-bottom,0px))}}

/* 1.0.3 layout and accessible tap targets */
#aircraftPanel{overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain}
#aircraftPanel .panelHeading,#aircraftPanel figcaption,#aircraftPanel .operatorCaption{height:auto!important;max-height:none!important;overflow:visible!important;white-space:normal!important;overflow-wrap:anywhere}
#aircraftPanel .actiongrid,#aircraftPanel .predictionActions,#aircraftPanel #r12Footer{position:relative!important;bottom:auto!important;inset:auto!important;z-index:1!important;display:flex!important;flex-wrap:wrap!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
#aircraftPanel button,#upcomingPanel button,#autoTransitTab button{min-height:44px!important}
#aircraftPanel small,#aircraftPanel .minor,#aircraftPanel figcaption,#targetBodyLabel,.eyebrow,.sectionLabel,.subheading,.transitStats,small{font-size:max(12px,1em)!important}
#upcomingPanel[data-snap=peek] #upcomingList{display:block!important;max-height:65px!important;overflow:hidden!important}
@media(max-width:760px){#aircraftPanel{padding-bottom:env(safe-area-inset-bottom)!important}#autoTransitTab{position:fixed;bottom:calc(188px + env(safe-area-inset-bottom))!important;max-height:22dvh!important;z-index:22!important}#autoTransitTab.expanded{inset:calc(55px + env(safe-area-inset-top)) 8px auto!important;max-width:none!important;max-height:55dvh!important}}
@media(max-height:500px) and (orientation:landscape){#aircraftPanel .astrodisc{width:70dvh!important;height:70dvh!important;max-width:none!important}#aircraftPanel .actiongrid{position:relative!important}#autoTransitTab{bottom:8px!important;max-height:33dvh!important}}
body.tf15-night .topbar button,body.tf15-night #liveDot,body.tf15-night .observer,body.tf15-night #mapTiles,body.tf15-night .mapSwitch .active{color:#fa5a56!important;background-color:#260606!important;border-color:#822522!important;filter:sepia(1) saturate(4) hue-rotate(308deg)!important}
#brand .logo{object-fit:contain;flex-shrink:0;width:52px;height:52px}

#autoTransitToggle{min-height:44px;width:100%;border:1px solid #7996aa;border-radius:8px;background:#142e46;color:white;font-weight:700}#autoTransitEntries[hidden]{display:none}#autoTransitEntries .autoTransitEntry{display:flex;align-items:center;gap:12px}#autoTransitEntries .tf15Thumbnail{width:72px;height:72px;flex:0 0 72px}#autoTransitTab:not(.expanded){max-height:66px;overflow:hidden}#autoTransitTab.expanded{max-height:58dvh;overflow:auto}

#offlineNotice:not([hidden]){position:fixed;top:72px;left:4%;right:4%;z-index:500;background:#582e0e;color:white;padding:14px;border-radius:8px;text-align:center;font-size:14px}

/* v1.0.5 landscape side sheet and safe transit tab. */
@media(max-height:500px) and (orientation:landscape){#aircraftPanel:not([hidden]){inset:0 0 0 auto!important;width:min(500px,59vw)!important;max-width:min(500px,59vw)!important;height:100dvh!important;overflow:auto!important}#autoTransitTab{left:8px!important;right:auto!important;max-width:38vw!important}#aircraftPanel #r12Footer{position:static!important}}
@media(max-width:760px) and (orientation:portrait){#aircraftPanel:not([hidden]){top:auto!important;bottom:0!important;height:52dvh!important;max-height:92dvh!important;overflow-y:auto!important}#autoTransitTab{z-index:25!important}}

/* v1.0.5 avoid overlaying astronomical disc with footer */
#r12Footer{position:relative!important;inset:auto!important;transform:none!important;z-index:1!important;margin-top:12px!important;}
#astrodisc{position:relative!important;z-index:2!important;max-width:100%;}
#aircraftPanel .r13PhotoCaption,#aircraftPanel .operatorCaption{overflow:visible!important;white-space:normal!important;max-height:none!important;}
@media (orientation:landscape) and (max-height:550px){#aircraftPanel{width:min(500px,60vw)!important;max-height:100dvh!important;overflow-y:auto!important;}#r12Footer{position:relative!important;}#astrodisc{height:min(70dvh,270px)!important;width:auto!important;}}
