/* v1.0.12 — Transit Finder field-first UI. Familiar controls, honest data. */
:root{--tf111-accent:#3b9fff;--tf111-canvas:#0a1420;--tf111-outline:#36536c}
body,#app{background:#091320!important;font-family:Inter,"Segoe UI",Arial,sans-serif}
.topbar{height:58px!important;min-height:58px!important;padding:0 16px!important;gap:12px!important;background:#0a1522f5!important;border-bottom:1px solid #253e53!important}
#workarea{height:calc(100% - 58px)}
.brand{gap:8px!important;min-width:215px!important;flex:1!important}
.brand .logo{height:40px!important;width:40px!important;border-radius:10px!important;filter:none!important}
.brandwords{font-size:19px!important;letter-spacing:-.035em!important}
.brandwords small{font-size:8px!important;letter-spacing:.10em!important;color:#91a9b9}
.tool-pill{height:35px!important;background:#132437e0!important;font-size:12px!important;border:1px solid #3a5269!important;border-radius:8px!important;padding:0 10px!important}
.toptools{gap:7px!important}.tool-pill .symbol{font-size:16px}
#mapScreen{background:#18312f!important}
#mapViewport{background:#1b3340!important}
.map-vignette{background:linear-gradient(180deg,#0001,transparent 20%,transparent 78%,#06152366)!important;pointer-events:none!important}
#mapScreen>.map-label{top:12px!important;left:18px!important;background:#0e2034c9;padding:8px 11px;border-radius:8px;border:1px solid #345168}
#mapScreen>.map-label strong{font-size:12px!important}
#mapScreen>.map-label .eyebrow{font-size:9px!important}
#mapScreen>.bottomBar{left:12px!important;bottom:9px!important;right:15px!important}
#mapScreen>.mapTools{left:12px!important;bottom:76px!important}
#mapScreen>.mapTools button{height:35px!important;width:36px!important;font-size:21px}
#mapViewport #mapMarkers .airMark{min-height:46px!important;min-width:46px!important}
#mapViewport #mapMarkers .airMark .planeText{border-color:#365773!important;background:#071622e8!important;max-width:118px!important}
#mapViewport #mapMarkers .airMark .tf110TypeIcon{width:28px!important;height:28px!important;max-width:28px!important;max-height:28px!important}
#mapViewport #mapMarkers .airMark.active .planeText{border-color:#54b1ff!important}
#mapScreen>.rightDrawer,#mapScreen>.leftDrawer{border:1px solid #44627c!important;border-radius:12px!important;background:#0a1a2af4!important;backdrop-filter:blur(14px);box-shadow:0 12px 30px #000a}
#mapScreen>#aircraftPanel:not([hidden]){top:18px!important;max-height:calc(100% - 40px)!important;padding:0!important}
#mapScreen>#aircraftPanel .panelHeading{padding:15px 15px 7px!important}
#mapScreen>#aircraftPanel .stats3{margin:1px 12px 0;padding:7px 0 11px}
#mapScreen>#aircraftPanel #aircraftTitle{font-size:21px!important}
#mapScreen>#aircraftPanel .transitArea{padding:12px!important;gap:10px!important}
#mapScreen>#aircraftPanel #astrodisc{width:112px;height:112px}
#mapScreen>#aircraftPanel .actiongrid{gap:4px!important}
#mapScreen>#aircraftPanel .tf101ModelLabel{font-size:10px}
/* Compact, realistic transit watch anchored to the right. Never flood map. */
#tf110Rail{right:12px!important;top:14px!important;width:310px!important;max-height:min(69dvh,665px)!important;background:#0a1827f4!important;border:1px solid #3c5e78!important;border-radius:12px!important;box-shadow:0 12px 30px #02090dc0!important;backdrop-filter:blur(10px)}
.tf110RailHead{padding:11px 12px!important}.tf110RailHead span{font-size:9px!important;color:#91b6cd}.tf110RailHead strong{font-size:16px!important}
#tf110RailRows{max-height:39dvh!important;padding:5px 8px!important}
#tf110ISSRows{max-height:19dvh!important;padding:4px 8px!important}
.tf110ISSHead{font-size:11px!important}
.tf110Pass.tf111Pass{display:grid!important;grid-template-columns:45px minmax(0,1fr) auto!important;align-items:center!important;gap:9px!important;min-height:67px!important;margin:5px 0!important;padding:7px!important;background:#10253a!important;border:1px solid #2c506a!important;border-radius:8px!important}
.tf110Pass.tf111Pass:hover{background:#193a54!important;border-color:#66a6d5!important}
.tf110Pass.tf111Pass.direct{border-color:#a88a43!important;background:#1b2b31!important}
.tf111Disc{width:45px;height:45px;border-radius:7px;background:#0b1526;display:grid;place-items:center;overflow:hidden;position:relative}
.tf111Disc::before{content:"";position:absolute;width:36px;height:36px;border-radius:50%;box-shadow:0 0 6px #ffd67a60;background:radial-gradient(circle at 37% 30%,#fff1be 0%,#fbd374 34%,#d98125 78%,#8a410c 100%)}
.tf111Disc.moon::before{background-image:url('/assets/moon-full.webp');background-size:cover;background-position:center;box-shadow:0 0 6px #d8e7fc55}
.tf111Silhouette{color:#07111c;font-size:15px;position:relative;z-index:1;transform:rotate(38deg)}
.tf111PassInfo{display:grid;min-width:0;gap:3px}.tf111PassInfo strong{font-size:12px!important;color:#f5faff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tf111PassInfo small{font-size:10px!important;color:#b5cbda;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tf111PassTime{display:grid;text-align:right;gap:5px;align-items:center}.tf111PassTime .tf110Countdown{color:#8accff;font-size:12px!important;font-weight:760!important;white-space:nowrap}.tf111PassTime small{font-size:9px;color:#abc4d7}
#tf110RailNote{font-size:9px!important;margin:6px 10px 8px!important}
#tf110IssAlertLabel{padding:5px 10px 3px!important;font-size:10px!important}
#tf110Rail .tf110Pass.iss{min-height:52px!important;border-color:#334a71!important;background:#14253b!important;padding:7px!important}
#tf110Rail .tf110Pass.iss strong{font-size:11px}
#tf110ISSDetail{right:335px!important;top:14px!important;width:350px!important}
#tf111IssCanvas{display:block;width:100%;height:auto;border-radius:8px;background:radial-gradient(circle at 50% 45%,#244259,#081522);touch-action:pan-y;cursor:grab}
#tf111IssModelStatus{font-size:11px!important}
/* The old r15/r16 night mode dimmed imagery to near-black. Keep a low-glare, visible map. */
body.tf15-night #mapTiles,body.tf15-night #terrainFallback,body.tf15-night #mapTiles img,body.tf15-night #mapViewport .maptile{filter:grayscale(.15) brightness(.67) sepia(.12)!important;opacity:1!important}
body.tf15-night #mapViewport,body.tf15-night #mapViewport *{visibility:visible!important}
body.tf15-night #mapViewport .tf110TileCarry{filter:none!important}
/* Release notes are a one-time modal, only from a per-user acknowledged release. */
#tf111WhatsNew[hidden],#tf111GroupPanel[hidden]{display:none!important}
#tf111WhatsNew{position:fixed;inset:0;z-index:600;background:#03101acb;display:grid;place-items:center;padding:15px}
#tf111WhatsNew article{max-width:445px;width:100%;border-radius:15px;border:1px solid #477091;background:#0d2134;color:#eaf4ff;box-shadow:0 18px 75px #000c;padding:23px}
#tf111WhatsNew h2{margin:3px 0 10px;font-size:23px}#tf111WhatsNew p{color:#b6d0e4;font-size:13px;line-height:1.5}
#tf111WhatsNew ul{margin:10px 0 18px;padding-left:20px;color:#e1edf7;font-size:13px;line-height:1.7}
#tf111WhatsNew button{width:100%;min-height:44px;border:1px solid #75bbff;border-radius:9px;background:#1265ae;color:white}
#tf111GroupPanel{padding:10px;border:1px solid #47657d;background:#10253b;border-radius:10px;display:grid;gap:9px;margin:12px}
#tf111GroupPanel button,#tf111GroupPanel input{min-height:38px;border:1px solid #456783;border-radius:7px;background:#13283e;color:#e8f8ff;padding:8px;width:100%}
#tf111GroupPanel h3{margin:0;font-size:14px}
.tf111GroupMember{font-size:12px;display:flex;align-items:center;gap:8px;padding:5px 3px}.tf111GroupMember img{width:32px;height:32px;object-fit:cover;border-radius:50%}
.tf111GroupMapAvatar{position:absolute;z-index:20;transform:translate(-50%,-50%);width:36px;height:36px;border-radius:50%;border:2px solid #58bbfa;background:#17354d;overflow:hidden;box-shadow:0 0 0 5px #3eb7e633;pointer-events:none}
.tf111GroupMapAvatar img{width:100%;height:100%;object-fit:cover}
/* desktop responsive */
@media(min-width:1120px){#mapScreen>#aircraftPanel:not([hidden]){right:334px!important;width:345px!important;max-width:345px!important}#mapScreen>.map-label{max-width:210px}}
@media(min-width:761px) and (max-width:1119px){#tf110Rail{width:270px!important;bottom:72px!important;top:auto!important;max-height:47dvh!important}#mapScreen>#aircraftPanel:not([hidden]){right:290px!important;width:318px!important;max-width:318px!important}}
/* Mobile: preserve visible map; aircraft card is a sheet; transit rail expands on request. */
@media(max-width:760px){
 .topbar{height:58px!important;min-height:58px!important;padding:0 9px!important}.brand{min-width:40px!important;width:40px;max-width:40px;flex:0 0 40px!important}.brand .logo{height:40px!important;width:40px!important}.brandwords{display:none!important}
 .toptools{justify-content:flex-end!important}.tool-pill{height:36px!important;padding:0 7px!important}
 #mapScreen>.map-label{top:6px!important;left:8px!important;max-width:175px!important;padding:5px 7px!important}
 #mapScreen>.map-label .eyebrow{font-size:8px!important}#mapScreen>.map-label strong{font-size:10px!important}
 #tf110Rail{top:auto!important;left:9px!important;right:9px!important;bottom:calc(76px + env(safe-area-inset-bottom))!important;width:auto!important;max-height:154px!important;border-radius:13px!important;z-index:32!important}
 #tf110Rail:not(.collapsed){max-height:min(48dvh,410px)!important}
 #tf110RailRows{max-height:24dvh!important}#tf110ISSRows{max-height:13dvh!important}
 #tf110Rail.collapsed{max-height:45px!important}
 #mapScreen>#aircraftPanel:not([hidden]){position:fixed!important;z-index:110!important;top:auto!important;left:4px!important;right:4px!important;bottom:calc(4px + env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;max-height:70dvh!important;height:auto!important;overflow:auto!important;border-radius:17px 17px 12px 12px!important}
 #mapScreen>#aircraftPanel #astrodisc{height:105px;width:105px}
 #mapScreen>#aircraftPanel .panelHeading{padding:12px 16px 7px!important}
 #mapScreen>#aircraftPanel .transitArea{padding:9px!important}
 #tf110ISSDetail{top:65px!important;left:7px!important;right:7px!important;bottom:70px!important;width:auto!important;max-height:none!important}
 #mapScreen>.mapTools{left:9px!important;bottom:calc(235px + env(safe-area-inset-bottom))!important}
 #r10MobileNav.tf18Nav{bottom:calc(5px + env(safe-area-inset-bottom))!important;background:#081828f7!important;border:1px solid #365e7b!important;border-radius:14px!important;left:7px!important;right:7px!important;width:auto!important}
 #mapScreen .bottomBar{bottom:calc(64px + env(safe-area-inset-bottom))!important}
 #mapViewport #mapMarkers .airMark .planeText small{display:none!important}
}

#tf111Recovery[hidden]{display:none!important}
#tf111Recovery{position:fixed;z-index:650;inset:0;display:grid;place-items:center;background:#02101cd9;padding:14px}
#tf111Recovery>div{background:#102336;border:1px solid #5b82a1;border-radius:14px;width:min(410px,100%);padding:20px;box-shadow:0 25px 80px #000a}
#tf111Recovery h2{margin:0 0 6px;font-size:22px}
#tf111Recovery p{font-size:13px;line-height:1.5;color:#b9d4e5}
#tf111Recovery form{display:grid;gap:10px}
#tf111Recovery label{font-size:12px;display:grid;gap:5px}
#tf111Recovery input{height:43px;padding:9px;border:1px solid #4d6981;border-radius:7px;background:#071a2c;color:white}
#tf111Recovery button{min-height:42px;border-radius:8px}

#tf111ActivityFeed{margin:12px 16px;border:1px solid #43617d;border-radius:10px;padding:12px;background:#0e2437}
#tf111ActivityFeed h3{font-size:14px;margin:0 0 8px}
.tf111ActivityRow{font-size:11px;line-height:1.5;color:#cfdfef;border-top:1px solid #355169;padding:7px 0}
