/* v1.0.10 - reliable full-viewport map and restrained, high-density live markers */
html,body,#app{height:100%;height:100dvh!important;width:100%;overflow:hidden!important;overscroll-behavior:none!important}
#app{display:flex;flex-direction:column;min-height:0}
.topbar{flex:none!important;position:relative!important;isolation:isolate;z-index:90!important}
#workarea{flex:1 1 auto!important;height:auto!important;min-height:0!important;position:relative!important;overflow:hidden!important}
#mapScreen,#mapViewport{position:absolute;inset:0;overflow:hidden!important;overscroll-behavior:none!important}
#mapViewport{touch-action:none}
#mapTiles{contain:layout style;overflow:hidden!important}
#mapViewport #mapMarkers{position:absolute;inset:0;z-index:18!important;pointer-events:none!important}
#mapViewport #mapMarkers .airMark{min-width:42px!important;min-height:42px!important;pointer-events:auto!important;cursor:pointer!important;z-index:2!important;touch-action:manipulation!important;transform:translate(-20px,-20px)!important;gap:3px!important;padding:5px!important;isolation:isolate}
#mapViewport #mapMarkers .airMark.active{z-index:31!important}
#mapViewport #mapMarkers .airMark .tf18MapGlyph{display:grid;place-items:center;width:26px;height:26px;flex:0 0 26px;pointer-events:none!important}
#mapViewport #mapMarkers .airMark .tf110TypeIcon{height:25px!important;width:25px!important;min-width:25px!important;min-height:25px!important;max-width:25px!important;max-height:25px!important;object-fit:contain!important;display:block!important;filter:brightness(0) saturate(100%) invert(89%) sepia(15%) saturate(738%) hue-rotate(170deg)!important;pointer-events:none!important;transform-origin:center!important}
#mapViewport #mapMarkers .airMark.active .tf110TypeIcon{filter:brightness(0) saturate(100%) invert(62%) sepia(91%) saturate(2400%) hue-rotate(165deg)!important}
#mapViewport #mapMarkers .airMark .planeText{line-height:1.15!important;max-width:105px!important;font-size:11px!important;padding:4px 6px!important;border-radius:6px!important;pointer-events:none!important}
#mapViewport #mapMarkers .airMark .planeText strong{font-size:11px!important}
#mapViewport #mapMarkers .airMark.tf110HideLabel .planeText{display:none!important}
#mapViewport #mapMarkers .airMark:hover .planeText,#mapViewport #mapMarkers .airMark.active .planeText{display:flex!important;white-space:nowrap!important}
#mapViewport #mapMarkers .airMark .planeText small{font-size:10px!important}
#mapViewport #mapMarkers .airMark .tf19IcaoPlane{display:none!important}
#mapViewport #mapMarkers .airMark:focus-visible{outline:2px solid #bdeeff;outline-offset:2px}
#mapViewport #mapMarkers .observer{pointer-events:none}
/* Right-side upcoming strip is always accessible, with a live countdown. */
#tf110Rail{position:absolute;z-index:25;top:18px;right:18px;width:min(335px,calc(100vw - 30px));max-height:min(74dvh,730px);display:flex;flex-direction:column;overflow:hidden;background:#102335ed;border:1px solid #63839d;border-radius:15px;color:#e9f7ff;box-shadow:0 10px 48px #0007;backdrop-filter:blur(13px)}
#tf110Rail[hidden]{display:none!important}
.tf110RailHead{padding:13px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #30495d}
.tf110RailHead div{display:flex;flex-direction:column;gap:5px}
.tf110RailHead span{font-size:10px;letter-spacing:.15em;color:#7ebceb;font-weight:700}
.tf110RailHead strong{font-size:18px}
.tf110RailHead button{background:#192f43;color:#e7f3ff;border:1px solid #4c7189;border-radius:8px;min-width:34px;min-height:34px}
#tf110RailRows,#tf110ISSRows{padding:8px 10px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#tf110RailRows{max-height:34dvh}
#tf110ISSRows{border-top:1px solid #334d62;max-height:23dvh}
.tf110ISSHead{padding:7px 3px;color:#b4d8fb;font-size:12px;font-weight:750}
.tf110Pass{display:grid;gap:5px;width:100%;text-align:left;min-height:62px;margin:5px 0;background:#1a3547;color:#eefaff;border:1px solid #395f7c;border-radius:10px;padding:9px 11px;cursor:pointer}
.tf110Pass.direct{border-color:#d5b76a;background:#423920}
.tf110Pass.iss{background:#253044;border-color:#556c91}
.tf110Pass strong{font-size:12px;line-height:1.4}
.tf110Countdown{font:700 16px/1.25 system-ui;color:#8ed8ff;font-variant-numeric:tabular-nums}
.tf110Pass small,.tf110Empty{font-size:11px;color:#bdd0df;line-height:1.4}
.tf110Empty{margin:8px 3px;padding:5px}
#tf110RailNote{font-size:10px;color:#9abbd2;margin:7px 12px 12px}
#tf110Rail.collapsed #tf110RailRows,#tf110Rail.collapsed #tf110ISSRows,#tf110Rail.collapsed #tf110RailNote{display:none}
#tf110ISSDetail{position:absolute;z-index:45;right:365px;top:20px;padding:20px;width:min(380px,calc(100vw - 28px));max-height:70dvh;overflow:auto;line-height:1.5}
#tf110ISSDetail[hidden]{display:none!important}
#tf110ISSClose{float:right;min-width:36px;min-height:36px;background:#1a334d;color:white;border:1px solid #597891;border-radius:6px}
#tf110ISSModelLink{color:#b3e6ff;font-size:13px}
#tf110ISSDescription{font-size:13px;padding:10px 0}
.tf110FAAStatus{font-size:12px;line-height:1.5;color:#b5daec;padding:0 18px}
.tf110AuthAudit{color:#7be0b3!important}
/* Clear selected card at right of the transit rail: no overlap. */
@media(min-width:1120px){#mapScreen>#aircraftPanel:not([hidden]){right:365px!important;left:auto!important;max-width:400px!important;width:min(394px,33vw)!important}#mapScreen>#upcomingPanel:not([hidden]){left:18px!important}#mapScreen>.map-label{top:58px!important}}
@media(min-width:760px) and (max-width:1119px){#tf110Rail{top:auto;bottom:85px;max-height:46dvh;width:280px}#mapScreen>#aircraftPanel:not([hidden]){right:310px!important;width:340px!important}#tf110ISSDetail{right:310px!important}}
@media(max-width:759px){
 #tf110Rail{top:auto;bottom:calc(12px + env(safe-area-inset-bottom));right:10px;left:auto;width:min(285px,calc(100vw - 24px));max-height:23dvh;z-index:22}
 #tf110Rail:not(.collapsed){max-height:32dvh}#tf110ISSRows{max-height:12dvh}#tf110RailRows{max-height:14dvh}
 body:has(#aircraftPanel:not([hidden])) #tf110Rail,body:has(#locationPanel:not([hidden])) #tf110Rail,body:has(#routesPanel:not([hidden])) #tf110Rail{display:none!important}
 #tf110ISSDetail{right:9px;left:9px;top:calc(104px + env(safe-area-inset-top));width:auto!important;max-height:65dvh}
 #mapViewport #mapMarkers .airMark .tf110TypeIcon{width:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important;max-width:23px!important;max-height:23px!important}
 #mapViewport #mapMarkers .airMark .planeText{max-width:88px!important}
 .topbar{min-height:0!important;max-height:60px}
}
@media(max-height:500px){#tf110Rail{top:auto;bottom:8px;max-height:60dvh;width:270px}#mapScreen>#aircraftPanel:not([hidden]){right:290px!important}}

#tf110IssAlertLabel{display:flex;align-items:center;gap:8px;font-size:11px;color:#d0e1ef;padding:9px 12px 2px}#tf110IssAlertLabel input{width:16px;height:16px}

/* Scaled previous raster imagery prevents blank half-maps during a wheel zoom. */
#mapViewport .tf110TileCarry{position:absolute;inset:0;overflow:hidden;z-index:0;pointer-events:none!important}
#mapViewport .tf110CarriedTile{position:absolute;width:256px;height:256px;object-fit:fill;image-rendering:auto;pointer-events:none;user-select:none}
#mapViewport .tf110CarriedTile.labels{z-index:1}
#mapViewport #mapTiles{z-index:1}
