/* Shared operation region, visible in every step including route discovery. */
#app>header{position:sticky;top:0;z-index:40}
#app>.activity-region{grid-column:2;grid-row:2;position:sticky;top:var(--header-height,89px);z-index:30;min-width:0}
#activity-region:has(>#progress[hidden]):has(>#operation-banner[hidden]):has(>#connection-status[hidden]){display:none}
#activity-region .progress{margin:0;padding:16px 28px;border:0;border-radius:0;background:#edf3fc;box-shadow:0 1px 0 #dbe3ef;font-size:13px}
#progress .progress-heading{align-items:center;gap:18px;margin-bottom:12px}#progress-title{font-size:14px;font-weight:600}
#progress-title::before{content:"";display:inline-block;width:12px;height:12px;margin-right:9px;border:2px solid #c7dbf7;border-top-color:#087eff;border-radius:50%;vertical-align:-2px;animation:progress-spin .9s linear infinite}
@keyframes progress-spin{to{transform:rotate(360deg)}}
.progress-actions{display:flex;gap:10px;align-items:center;flex-shrink:0}.progress-actions button{white-space:normal}
#progress-bar{height:9px;display:block;width:100%;border:1px solid #d1d7e1;border-radius:8px;overflow:hidden;background:#dfe5ed}
#progress-bar::-webkit-progress-bar{background:#dfe5ed}#progress-bar::-webkit-progress-value{background:#087eff;border-radius:8px}#progress-bar::-moz-progress-bar{background:#087eff;border-radius:8px}
#progress-bar:indeterminate{background:linear-gradient(100deg,#dfe5ed 20%,#90baff 45%,#dfe5ed 70%);background-size:250% 100%;animation:progress-loading 1.8s linear infinite}
@keyframes progress-loading{to{background-position:-250% 0}}
#progress .progress-timing{margin:14px 0 0;color:var(--muted);gap:8px;justify-content:flex-start;font-variant-numeric:tabular-nums}#progress-remaining{margin-left:auto;text-align:right}#progress-count{white-space:nowrap;font-variant-numeric:tabular-nums}
.activity-region .operation-banner{padding:12px 28px;background:#eff9f2;display:flex;align-items:center;gap:16px;font-size:13px;overflow-wrap:anywhere}.activity-region .operation-banner.has-error{background:#fff4ea}#banner-text{flex:1;white-space:pre-line;max-height:220px;overflow:auto}#dismiss-notice{background:transparent;color:inherit;flex-shrink:0}
.connection-status{margin:0;padding:10px 28px;background:#fff4ea;color:#955300}
#route-map{min-width:0}.map-heading{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;margin-bottom:16px;padding:0 2px}.map-legend{display:flex;flex-direction:column;gap:7px;flex-shrink:0;color:var(--muted);font-size:12px}.map-legend .main{background:#1f6bd1}.map-legend .alternate{background:#ed8b17}.map-frame{position:relative;border-radius:18px;overflow:hidden;border:1px solid #cddbd3;isolation:isolate}.interactive-map{height:480px;width:100%;background:#cde4f3;font-family:inherit;z-index:0}.map-fit{position:absolute;top:12px;right:12px;z-index:5;background:#fffffff0!important;box-shadow:0 2px 8px #172f4426;font-size:12px}.map-status{position:absolute;bottom:27px;left:12px;right:12px;z-index:5;background:#fff8e9f2;padding:9px;border-radius:10px;font-size:12px;color:#815019;margin:0}.airport-map-label{background:#fffffff2;border:0;box-shadow:0 2px 6px #203c4d29;border-radius:11px;font:600 12px ui-monospace,monospace;color:#314a46;padding:5px 9px}.leaflet-control-attribution{font-size:10px!important}.leaflet-container .leaflet-control-attribution a{color:#22677e}.leaflet-container a.leaflet-control-zoom-in,.leaflet-container a.leaflet-control-zoom-out{color:#344653;background:#fff}.leaflet-control-zoom{border:1px solid #ffffff9c!important;border-radius:7px!important;overflow:hidden}.leaflet-tooltip{white-space:nowrap}#route-fuel{padding:16px 0;border:0;background:transparent}#route-fuel h2{font-size:14px;display:inline-block;margin-right:18px}#corridor-choices .route-choice{margin-top:12px}
.result-card:has(table){border-radius:18px;padding:22px;background:#fff}.retain{display:flex;flex-direction:row;align-items:center;gap:7px;color:inherit;font-weight:400}.retain input{width:17px;height:17px}#filter-heading{margin-top:24px}.route-choice:focus-within{scroll-margin-top:190px}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #80b3ff;outline-offset:3px}button,summary{touch-action:manipulation}.route-select strong{user-select:text}
.fir-field{display:flex;gap:10px;align-items:center}.fir-field label{flex:1;font-size:0}.fir-field input{font-size:13px;background:#fff}.fir-field button{white-space:nowrap}.fir-selected{grid-column:2;display:flex;gap:8px;flex-wrap:wrap}.fir-selected button{border-radius:20px;background:#edf3fc;font-size:12px}.fir-picker{border-radius:12px}.route-overview{align-items:center}#brief .grid label{color:var(--muted)}#loaded-results .result-card{box-shadow:none}
@media(min-width:1021px){.route-comparison{grid-template-columns:minmax(0,1fr) minmax(0,1.12fr)}#app>.panel{max-width:1420px}.interactive-map{height:clamp(340px,60vh,580px)}}
@media(max-width:680px){#activity-region .progress{padding:13px 16px}#progress .progress-heading{align-items:flex-start;flex-wrap:wrap;gap:8px}.progress-actions{margin-left:auto}#progress-title{font-size:13px}#progress .progress-timing{flex-wrap:wrap;font-size:11px}#progress-remaining{max-width:65%}.activity-region .operation-banner{padding:12px 16px}.interactive-map{height:390px}.map-heading{flex-wrap:wrap}.map-heading>.mono{max-width:100%}.map-legend{flex-direction:row;flex-wrap:wrap}.connection-status{padding:10px 16px}#progress-label{max-width:65%}}
@media(prefers-reduced-motion:reduce){#progress-bar:indeterminate,#progress-title::before{animation:none}}
@media(max-width:680px){.fir-selected{grid-column:1}.fir-field{min-width:0}.fir-field input{min-width:0;width:100%}}

/* Automatic encrypted study history. The drawer replaces the former manual library. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.study-drawer-toggle{position:static;z-index:72;flex:0 0 38px;width:38px;height:38px;padding:8px!important;display:grid;place-items:center;background:#ffffff16!important;color:#fff!important;border:1px solid #ffffff24;border-radius:10px!important}
.study-drawer-toggle:hover{background:#ffffff28!important}.study-drawer-toggle svg,.study-search svg,.study-history-delete svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.study-drawer-scrim{position:fixed;z-index:79;inset:0;width:100%;height:100%;padding:0!important;border:0!important;border-radius:0!important;background:#0a172b70!important;backdrop-filter:blur(2px)}
.study-drawer{position:fixed;z-index:80;inset:0 auto 0 0;width:min(370px,calc(100vw - 28px));padding:24px 18px 18px;display:flex;flex-direction:column;background:#f7f9f8;border-right:1px solid #dbe2df;box-shadow:18px 0 45px #0715292b;transform:translateX(-105%);transition:transform .22s ease;overflow:hidden}
.study-drawer.open{transform:translateX(0)}body.study-drawer-open{overflow:hidden}
.study-drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 4px 17px}.study-drawer-heading h2{font-size:24px;margin:2px 0 0}.study-drawer-heading .eyebrow{margin:0}.study-drawer-heading>div:last-child{display:flex;gap:7px}.study-drawer-heading button{width:38px;height:38px;padding:0;font-size:24px;background:#fff;color:#25313a;border:1px solid #d6dfdc}
.study-search{position:relative;display:block;margin:0 2px 14px}.study-search svg{position:absolute;left:13px;top:50%;width:18px;height:18px;transform:translateY(-50%);color:#61717a;pointer-events:none}.study-search input{width:100%;padding:11px 12px 11px 41px;background:#fff;border-color:#ccd8d4;font-size:15px}
.study-history{display:flex;flex-direction:column;gap:5px;overflow:auto;min-height:90px;padding:2px 2px 16px}.study-history-empty{padding:18px 12px;color:var(--muted);font-size:13px}
.study-history-item{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:5px;border-left:4px solid transparent;border-radius:11px;padding:4px;background:transparent}.study-history-item:hover{background:#fff}.study-history-item.active{background:#fff;border-left-color:#0b8d7b;box-shadow:0 1px 0 #dfe7e4}
.study-history-open{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;text-align:left;background:transparent!important;color:#1e2c35!important;padding:9px 8px!important;font-weight:400}.study-history-open strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.study-history-open span{color:#74828a;font-size:11px;white-space:nowrap}.study-history-open small{grid-column:1/-1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#65757e;font-size:11px}
.study-history-delete{align-self:center;width:32px;height:32px;padding:7px!important;background:transparent!important;color:#a4afb4!important}.study-history-delete:hover:not(:disabled){color:#b13b2e!important;background:#fff0ee!important}.study-history-delete:disabled{visibility:hidden}
.legacy-study-section{flex:0 0 auto;border-top:1px solid #dfe5e2;padding:12px 4px 0;max-height:180px;overflow:auto}.legacy-study-section summary{font-size:12px;color:#61717a}.legacy-study-open{display:block;width:100%;margin:3px 0;text-align:left;background:transparent;color:#26353d;padding:8px;font-size:12px}
.study-autosave-note{margin:auto 4px 0;padding-top:12px;border-top:1px solid #dfe5e2;color:#718087;font-size:11px}
@media(max-width:680px){.study-drawer{padding-top:18px}.study-drawer-heading h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){.study-drawer{transition:none}}
