/* My Hangar starts as a full-screen saved fleet, with an explicit switch to the map. */
.hangar-panel{position:fixed;inset:0;z-index:180;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:var(--bg,#050e16);color:var(--text,#ddecf5)}
.hangar-panel[hidden]{display:none}.hangar-inner{max-width:1000px;margin:0 auto;padding:max(28px,env(safe-area-inset-top)) 28px calc(32px + env(safe-area-inset-bottom))}
.hangar-heading{display:flex;justify-content:space-between;align-items:center;gap:18px}.hangar-heading h1{font-size:38px;line-height:1.15;margin:8px 0 12px;outline:none}.hangar-heading>button{font-size:28px;width:44px;flex-shrink:0}
.hangar-panel button{font:inherit;border:1px solid #345b70;background:#12354a;color:#dceff8;border-radius:10px;min-height:44px;cursor:pointer}.hangar-panel button:hover{background:#1c455b;border-color:#65accb}.hangar-panel button:focus-visible{outline:2px solid #72d6fa;outline-offset:3px}.hangar-panel button:disabled{cursor:default;opacity:.7}
.hangar-intro{font-size:16px;line-height:1.6;color:#a9c2d2;max-width:600px;margin:8px 0 24px}.hangar-summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:18px 0;border-block:1px solid #234454}.hangar-summary strong{color:#7cd7f7;font-size:24px}.hangar-summary span{font-size:13px;color:#a2bac9}
.hangar-actions{display:flex;flex-wrap:wrap;gap:9px;margin:22px 0 14px}.hangar-actions button{padding:10px 14px;font-size:13px}.hangar-actions .hangar-primary{background:#205b75;border-color:#60a8c8;color:#fff;font-weight:600}
#hangar-status,#hangar-over-limit{font-size:13px;line-height:1.6;margin:12px 0;color:#b5cbd8}#hangar-over-limit{color:#f1c98a}.hangar-aircraft h2{font-size:21px;font-weight:600;margin:28px 0 14px}.hangar-aircraft ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}.hangar-aircraft button{width:100%;height:100%;text-align:left;display:grid;gap:8px;padding:18px;background:#0b283b}.hangar-aircraft strong{font-size:19px;letter-spacing:.4px}.hangar-aircraft span{font-size:12px;line-height:1.5;color:#abc4d3}.hangar-note{color:#93acbd;font-size:12px;line-height:1.7;margin:22px 0 0;max-width:700px}
body.hangar-overview header.topbar{visibility:hidden!important}body.hangar-overview #workspace{visibility:hidden}
.hangar-mode #aircraft-filter-open,.hangar-mode #category-load-status{display:none!important}.hangar-mode #trails-toggle,.hangar-mode #labels-toggle{pointer-events:none;opacity:.65}
/* Keep the fleet map open; the list is available through the My Hangar button. */
.hangar-panel-map{inset:calc(var(--cat-map-top,80px) + 56px) auto auto 14px;width:310px;max-height:calc(100dvh - 250px);z-index:24;border:1px solid #31576c;border-radius:14px;background:#081c2bf5;box-shadow:0 8px 24px #00101b33}
.hangar-panel-map .hangar-inner{padding:12px}.hangar-panel-map .hangar-heading,.hangar-panel-map .hangar-intro,.hangar-panel-map .hangar-aircraft,.hangar-panel-map .hangar-note,.hangar-panel-map #hangar-manage{display:none}.hangar-panel-map .hangar-summary{padding:0;border:0;gap:4px}.hangar-panel-map .hangar-summary strong{font-size:16px}.hangar-panel-map .hangar-summary span{font-size:11px}.hangar-panel-map .hangar-actions{gap:6px;margin:10px 0 0}.hangar-panel-map .hangar-actions button{padding:8px 10px;font-size:12px}.hangar-panel-map #hangar-status{font-size:11px;margin:8px 0 0}.hangar-panel-map #hangar-over-limit{font-size:11px}
@media(max-width:1100px){.hangar-panel-map{right:58px;width:auto;max-width:430px;max-height:calc(100dvh - 300px)}}
@media(max-width:760px){.hangar-inner{padding:max(20px,env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom))}.hangar-heading h1{font-size:31px}.hangar-intro{font-size:14px;margin-bottom:20px}.hangar-summary strong{font-size:22px}.hangar-summary span{font-size:12px}.hangar-actions{gap:8px}.hangar-actions .hangar-primary{flex-basis:100%}.hangar-aircraft ul{grid-template-columns:1fr}.hangar-aircraft button{padding:16px}.hangar-panel-map .hangar-inner{padding:10px}.hangar-panel-map .hangar-summary strong{font-size:15px}.hangar-panel-map .hangar-actions{gap:5px}.hangar-panel-map .hangar-actions button{font-size:11px;padding:7px 9px}.hangar-panel-map #hangar-status{line-height:1.4}}
@media(max-height:550px) and (max-width:1100px){.hangar-panel-map{inset:auto 70px 90px auto;width:280px;max-height:180px}.hangar-panel-map #hangar-status{display:none}}
@media(max-width:760px){body.hangar-mode:has(#workspace.selected #inspector:not([hidden])) .hangar-panel-map{visibility:hidden}}
/* Aircraft, Airports and My Hangar use the same Favorites card treatment. */
#favorites-drawer .favorite-sections>section{min-width:0}
#favorites-hangar-section #favorites-open-hangar{margin:8px 0 12px;min-height:44px;font-size:13px}
#favorites-drawer .favorite-aircraft-row{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;gap:8px;align-items:center}
#favorites-drawer .favorite-aircraft-row .favorite-track{min-width:0;padding:10px 4px}
#favorites-drawer .favorite-aircraft-row .favorite-track :is(strong,small){overflow-wrap:anywhere}
#favorites-drawer .favorite-aircraft-row .favorite-transfer{grid-column:1/-1;justify-self:stretch}
#favorites-drawer .favorite-transfer{min-height:40px;padding:8px 12px;border-color:#315b70;background:#103247;color:#c7eaff;font-size:12px}
#favorites-drawer .hangar-saved-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-items:center}
#favorites-drawer .hangar-saved-row>strong{grid-column:1;overflow-wrap:anywhere;font-size:15px;padding:6px}
#favorites-drawer .hangar-saved-row>.favorite-remove{grid-column:2;grid-row:1}
#favorites-drawer .hangar-saved-row>.favorite-transfer{grid-column:1/-1}
.hangar-aircraft li{display:flex;flex-direction:column;gap:8px;min-width:0}.hangar-aircraft li>button{height:auto;flex:1}.hangar-row-actions{display:flex;gap:6px}.hangar-row-actions button{width:auto;height:auto;display:block;font-size:11px;padding:8px 10px;min-height:40px}.hangar-row-actions button:first-child{flex:1}
.hangar-panel-map #hangar-exit{border-color:#527f94;background:#17394d}
@media(min-width:1200px){#favorites-drawer.nav-content-page .favorite-sections{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.hangar-panel-map .hangar-actions{display:grid;grid-template-columns:1fr 1fr}.hangar-panel-map .hangar-actions button{width:100%;font-size:12px;padding:8px 6px}body.hangar-mode:has(#workspace.selected #inspector:not([hidden])) #hangar-exit{visibility:visible;position:fixed;top:calc(var(--cat-map-top,72px) + 56px);left:14px;width:auto;padding:10px 14px;box-shadow:0 3px 15px #00101b44}}
