:root{--navy:#06133f;--navy-2:#0a1c55;--blue:#183b8d;--orange:#f5a000;--orange-2:#ffbc3c;--ink:#17213d;--muted:#71809e;--line:#dfe5f0;--surface:#fff;--bg:#f4f6fa;--success:#16a56f;--shadow:0 16px 40px rgba(7,20,63,.08)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.app-shell{min-height:100vh;padding-bottom:86px}.topbar{height:72px;padding:10px max(20px,calc((100vw - 1180px)/2));display:flex;align-items:center;gap:18px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.brand{height:48px;display:flex;align-items:center;min-width:0}.brand img{width:152px;height:46px;object-fit:cover;object-position:center}.product-name{font-size:12px;font-weight:900;letter-spacing:.22em;color:var(--orange);border-left:1px solid var(--line);padding-left:11px;margin-left:4px}.connection-pill{margin-left:auto;background:#effaf6;color:#087b54;border:1px solid #cceee1;border-radius:999px;padding:8px 13px;font-size:12px;font-weight:800;display:flex;align-items:center;gap:8px}.pulse{width:8px;height:8px;background:#10b981;border-radius:50%;box-shadow:0 0 0 5px rgba(16,185,129,.12)}.avatar{width:38px;height:38px;border-radius:50%;border:0;background:var(--navy);color:#fff;font-weight:800}main{max-width:1180px;margin:auto;padding:36px 20px}.view{display:none}.view.active{display:block;animation:appear .26s ease}@keyframes appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}.eyebrow{font-size:12px;font-weight:900;letter-spacing:.14em;color:var(--blue);margin:0 0 14px 2px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}.hero-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(230px,.8fr);gap:18px}.flight-card{padding:25px 28px}.phase-row,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.phase-badge{background:#eaf0ff;color:var(--blue);border-radius:8px;padding:7px 10px;font-size:11px;font-weight:900;letter-spacing:.1em}.live-label{font-size:11px;font-weight:900;color:#df5f38}.route{display:grid;grid-template-columns:auto 1fr auto;gap:22px;align-items:center;margin:23px 0 17px}.route div:not(.route-line){display:flex;flex-direction:column}.route strong{font-size:34px;line-height:1;color:var(--navy);letter-spacing:-.04em}.route span{font-size:12px;color:var(--muted);margin-top:7px}.destination{text-align:right}.route-line{display:flex;align-items:center;gap:10px;color:var(--orange)}.route-line i{height:1px;background:#cfd7e6;flex:1}.progress-track{height:7px;border-radius:10px;background:#e6eaf2;overflow:hidden}.progress-track span{display:block;height:100%;background:linear-gradient(90deg,var(--orange),var(--orange-2));border-radius:inherit}.route-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;margin-top:10px}.route-meta strong{color:var(--navy)}.accent-panel{padding:26px;color:#fff;background:linear-gradient(145deg,var(--navy),#12327d);border:none;position:relative;overflow:hidden}.accent-panel:after{content:"";position:absolute;width:170px;height:170px;border:35px solid rgba(255,255,255,.05);border-radius:50%;right:-85px;bottom:-95px}.label{font-size:10px;font-weight:900;letter-spacing:.13em;color:var(--muted);text-transform:uppercase}.accent-panel .label{color:#aebfe9}.arrival-card>strong{display:block;font-size:51px;line-height:1;margin:18px 0 22px}.arrival-card>strong span{font-size:17px;color:var(--orange);margin-left:4px}.arrival-card>div{border-top:1px solid rgba(255,255,255,.15);padding-top:14px;display:flex;justify-content:space-between}.arrival-card p{font-weight:800;color:#68e2b0;font-size:13px;margin:12px 0 0}.metrics-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.metric{padding:19px 21px;display:grid;grid-template-columns:1fr auto;align-items:end}.metric>span{grid-column:1/-1;color:var(--muted);font-size:10px;font-weight:900;letter-spacing:.11em}.metric strong{font-size:25px;color:var(--navy);margin-top:8px}.metric small{font-size:12px;color:var(--muted)}.metric em{font-style:normal;font-size:10px;font-weight:900;color:var(--orange)}.map-card{padding:25px}.section-heading h2{margin:5px 0 0;font-size:21px;color:var(--navy)}.ghost-button{border:1px solid var(--line);background:#fff;border-radius:11px;padding:10px 14px;font-weight:800;color:var(--blue)}.map-visual{height:270px;margin-top:19px;border-radius:18px;overflow:hidden;position:relative;background:linear-gradient(160deg,#eff4fa,#dce6f2)}.grid-lines{position:absolute;inset:0;background-image:linear-gradient(rgba(13,43,94,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(13,43,94,.05) 1px,transparent 1px);background-size:34px 34px}.map-visual svg{width:100%;height:100%;position:relative}.land{fill:#cbd9e7;stroke:#b4c6d8;stroke-width:2}.planned-route{fill:none;stroke:var(--orange);stroke-width:4;stroke-dasharray:8 7;stroke-linecap:round}.airport{fill:#fff;stroke:var(--navy);stroke-width:4}.plane path{fill:var(--navy)}.map-label{position:absolute;background:var(--navy);color:#fff;padding:4px 7px;border-radius:6px;font-size:10px;font-weight:900}.map-label.origin{left:27%;bottom:20%}.map-label.dest{left:58%;top:22%}.weather-chip{position:absolute;bottom:15px;right:15px;background:rgba(255,255,255,.9);padding:8px 10px;border-radius:9px;font-size:11px;font-weight:700;color:var(--blue)}.bottom-nav{position:fixed;z-index:30;bottom:16px;left:50%;transform:translateX(-50%);background:rgba(6,19,63,.96);backdrop-filter:blur(16px);padding:7px;border-radius:20px;display:flex;gap:3px;box-shadow:0 15px 40px rgba(6,19,63,.28)}.bottom-nav button{min-width:104px;border:0;background:transparent;color:#9eabd1;padding:9px 16px;border-radius:14px;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:7px}.bottom-nav button span{font-size:16px}.bottom-nav button.active{background:#fff;color:var(--navy)}.full-map{padding:25px}.map-visual.large{height:min(64vh,580px)}.counter{font-size:12px;font-weight:900;color:var(--success);background:#eaf9f3;border-radius:20px;padding:8px 11px}.map-flight-chip{position:absolute;left:48%;top:33%;background:#fff;border-left:4px solid var(--orange);padding:9px 12px;border-radius:8px;box-shadow:var(--shadow);display:flex;flex-direction:column;font-size:11px}.map-flight-chip span{color:var(--muted);margin-top:2px}.autopilot{padding:25px}.toggle{width:48px;height:27px;border:0;border-radius:20px;background:#cdd4e0;padding:3px;position:relative}.toggle:after{content:"";display:block;width:21px;height:21px;background:white;border-radius:50%;box-shadow:0 2px 5px #8b95a7;transition:.2s}.toggle.active{background:var(--success)}.toggle.active:after{transform:translateX(21px)}.control-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:24px}.control-grid label{background:#f6f8fb;border:1px solid var(--line);border-radius:15px;padding:14px;font-size:11px;font-weight:900;color:var(--muted);position:relative}.control-grid label>div{display:flex;align-items:center;margin-top:8px}.control-grid input{width:100%;min-width:0;text-align:center;border:0;background:transparent;font-size:23px;font-weight:900;color:var(--navy);outline:0}.control-grid label>span{position:absolute;right:13px;bottom:7px;font-size:8px;color:#9ba7bc}.step{width:26px;height:26px;flex:0 0 26px;border:1px solid #d5dce8;background:#fff;border-radius:7px;font-size:17px;color:var(--blue)}.systems-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.systems-grid>article{padding:25px}.systems-grid h2{color:var(--navy);margin:5px 0 20px}.switch-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.switch-row{padding:12px 13px;border:1px solid var(--line);background:#f8f9fc;border-radius:11px;display:flex;align-items:center;justify-content:space-between;color:var(--ink);font-weight:700}.switch-row i{width:30px;height:17px;border-radius:10px;background:#c8cfdb;padding:2px}.switch-row i:after{content:"";display:block;width:13px;height:13px;border-radius:50%;background:white;transition:.2s}.switch-row.active i{background:var(--orange)}.switch-row.active i:after{transform:translateX(13px)}.action-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.action-grid button{border:1px solid var(--line);background:#f8f9fc;border-radius:12px;padding:14px 6px;color:var(--navy);font-size:20px}.action-grid button span{display:block;font-size:10px;font-weight:800;color:var(--muted);margin-top:6px}.va-grid{display:grid;grid-template-columns:1.4fr .8fr .9fr;gap:18px}.va-grid>article{padding:25px}.va-grid h2{color:var(--navy);margin:5px 0 18px}.schedule{padding:13px 12px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr auto;gap:4px;font-size:12px}.schedule b{color:var(--navy)}.schedule span{grid-row:2;color:var(--muted)}.schedule em{grid-column:2;grid-row:1/-1;align-self:center;font-style:normal;color:var(--muted);font-weight:700}.schedule.active{border:1px solid #ffd98c;background:#fff8e9;border-radius:12px}.schedule.active em{color:#bc7600}.stat-card>strong{font-size:52px;color:var(--navy);display:block;margin-top:20px}.stat-card>p{color:var(--muted);margin-top:0}.mini-stats{border-top:1px solid var(--line);padding-top:17px;display:flex;justify-content:space-between}.mini-stats span{font-size:9px;color:var(--muted);text-transform:uppercase}.mini-stats b{display:block;font-size:16px;color:var(--navy);margin-bottom:3px}.sync-ok{background:#eaf9f3;color:#087b54;border-radius:10px;padding:11px;font-size:12px;font-weight:800;margin:20px 0 14px}.status-card p{color:var(--muted);font-size:12px;line-height:1.55}.primary-button{width:100%;border:0;background:var(--navy);color:#fff;border-radius:12px;padding:13px;font-weight:800;margin-top:9px}.toast{position:fixed;z-index:50;left:50%;bottom:105px;transform:translate(-50%,20px);background:#101b38;color:#fff;padding:11px 16px;border-radius:10px;font-size:12px;font-weight:700;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:760px){.topbar{height:64px;padding:8px 14px}.brand img{width:118px}.product-name{font-size:10px}.connection-pill span:last-child{display:none}.connection-pill{padding:9px}.avatar{width:34px;height:34px}main{padding:24px 14px}.hero-grid{grid-template-columns:1fr}.arrival-card{display:grid;grid-template-columns:1fr auto;align-items:center}.arrival-card>strong{font-size:42px;margin:8px 0}.arrival-card>div{grid-column:1/-1}.arrival-card p{position:absolute;right:22px;bottom:16px}.metrics-grid{grid-template-columns:1fr 1fr}.metric{padding:15px}.route{gap:10px}.route strong{font-size:27px}.route-line{gap:5px}.map-card,.full-map,.autopilot,.systems-grid>article,.va-grid>article{padding:19px}.map-visual{height:230px}.bottom-nav{width:calc(100% - 24px);bottom:10px;justify-content:space-around}.bottom-nav button{min-width:0;flex:1;padding:9px 4px;flex-direction:column;gap:2px;font-size:9px}.control-grid{grid-template-columns:1fr 1fr}.systems-grid,.va-grid{grid-template-columns:1fr}.map-visual.large{height:58vh}.action-grid{grid-template-columns:repeat(4,1fr)}.weather-chip{font-size:9px}.eyebrow{font-size:10px}}
@media(max-width:390px){.metrics-grid{grid-template-columns:1fr}.switch-list{grid-template-columns:1fr}.route span{font-size:10px}.brand img{width:104px}.product-name{display:none}}
.avatar-link{display:grid;place-items:center;text-decoration:none}.button-link{display:block;text-align:center;text-decoration:none}.brand{text-decoration:none}.back-link{margin-left:auto;color:var(--blue);font-size:12px;font-weight:800;text-decoration:none}.topbar form{margin:0}.auth-page{min-height:100vh;background:linear-gradient(120deg,#051039 0%,#0a235d 52%,#f4f6fa 52%)}.auth-shell{min-height:100vh;max-width:1180px;padding:56px 30px;margin:auto;display:grid;grid-template-columns:1fr 420px;align-items:center;gap:100px}.auth-brand{color:#fff}.auth-brand img{width:220px;filter:brightness(0) invert(1);margin-bottom:50px}.auth-kicker{display:block;font-size:11px;color:var(--orange);font-weight:900;letter-spacing:.22em}.auth-brand h1{font-size:55px;line-height:1.02;letter-spacing:-.05em;margin:16px 0 20px}.auth-brand p{max-width:490px;color:#b9c7e8;line-height:1.7}.auth-status{margin-top:35px;font-size:12px;font-weight:700;color:#d5def4;display:flex;align-items:center;gap:9px}.auth-status i{width:8px;height:8px;border-radius:50%;background:#39d39f;box-shadow:0 0 0 5px rgba(57,211,159,.12)}.login-card{background:#fff;border-radius:28px;padding:38px;box-shadow:0 28px 70px rgba(0,0,0,.18)}.login-card h2{font-size:26px;color:var(--navy);margin:8px 0}.login-card>p{color:var(--muted);font-size:13px;margin:0 0 24px}.login-card form>label:not(.remember){display:block;font-size:11px;font-weight:900;color:var(--ink);margin:14px 0}.login-card input[type=email],.login-card input[type=password]{display:block;width:100%;margin-top:7px;border:1px solid var(--line);border-radius:11px;padding:13px;font:inherit;outline:0}.login-card input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(24,59,141,.1)}.remember{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;margin:18px 0}.form-error{color:#bf3a3a;background:#fff0f0;padding:10px;border-radius:9px;font-size:12px}.login-card small{display:block;text-align:center;color:#9aa4b6;margin-top:18px}.devices-page{padding-bottom:70px}.devices-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:25px}.devices-heading h1{color:var(--navy);font-size:34px;margin:0 0 8px}.devices-heading p{color:var(--muted);max-width:680px;margin:0;line-height:1.6}.pairing-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:18px;align-items:stretch}.pair-card{padding:26px;display:grid;grid-template-columns:auto 1fr;gap:17px}.pair-card form{grid-column:1/-1}.pair-card h2,.device-list h2{color:var(--navy);margin:5px 0 8px}.pair-card p,.pairing-result p,.empty-device p{color:var(--muted);font-size:12px;line-height:1.55}.step-number{width:32px;height:32px;border-radius:50%;background:#fff4dd;color:#b87300;display:grid;place-items:center;font-weight:900}.pairing-result{padding:25px;display:flex;align-items:center;justify-content:space-between;gap:25px;background:linear-gradient(145deg,#fff,#f5f8ff)}.pairing-result strong{display:block;font-size:38px;letter-spacing:.12em;color:var(--navy);margin:12px 0}.pairing-result small{font-weight:800;color:#b56f00}.pairing-result img{width:155px;height:155px;border-radius:14px}.device-list{margin-top:32px}.device-row{padding:17px 20px;margin-top:11px;display:grid;grid-template-columns:auto 1fr auto auto auto;align-items:center;gap:18px}.device-icon{width:45px;height:45px;border-radius:12px;background:#edf2ff;color:var(--blue);display:grid;place-items:center;font-size:20px}.device-main{display:flex;flex-direction:column}.device-main strong{color:var(--navy)}.device-main span,.device-seen{font-size:10px;color:var(--muted);margin-top:5px}.device-state{font-size:11px;color:var(--muted);font-weight:800;display:flex;align-items:center;gap:6px}.device-state i{width:7px;height:7px;border-radius:50%;background:#aab2bf}.device-state.online{color:#078157}.device-state.online i{background:#13b67d}.device-seen{text-align:right;margin:0}.device-seen b{color:var(--ink)}.remove-button{width:31px;height:31px;border:1px solid #f0d7d7;background:#fff8f8;color:#b94b4b;border-radius:9px;font-size:20px}.empty-device{padding:28px;text-align:center;margin-top:12px}.notice{padding:12px 15px;border-radius:11px;margin-bottom:16px;font-size:12px;font-weight:700}.notice.success{background:#eaf9f3;color:#087b54}
.connection-pill.offline{background:#f5f6f8;color:#737d91;border-color:#e0e4eb}.connection-pill.offline .pulse{background:#9da6b5;box-shadow:0 0 0 5px rgba(157,166,181,.12)}.metric strong b{font:inherit}
@media(max-width:760px){.auth-page{background:var(--bg)}.auth-shell{display:block;padding:0}.auth-brand{padding:28px 23px 65px;background:linear-gradient(145deg,var(--navy),#12327d)}.auth-brand img{width:150px;margin-bottom:30px}.auth-brand h1{font-size:38px}.auth-status{margin-top:22px}.login-card{margin:-34px 14px 25px;position:relative;padding:27px 22px}.back-link{font-size:0}.back-link:after{content:'←';font-size:22px}.devices-heading h1{font-size:27px}.pairing-grid{grid-template-columns:1fr}.pairing-result{padding:20px}.pairing-result strong{font-size:30px}.pairing-result img{width:110px;height:110px}.device-row{grid-template-columns:auto 1fr auto;gap:12px}.device-state{grid-column:2}.device-seen{display:none}.device-row form{grid-column:3;grid-row:1/3}.topbar .ghost-button{padding:8px}.topbar form{margin-left:0}}
@media(max-width:390px){.pairing-result{display:block}.pairing-result img{margin-top:15px}.auth-brand p{font-size:13px}}

/* Theme, identity and live maps */
html{color-scheme:light}html[data-theme=dark]{color-scheme:dark;--ink:#eef3ff;--muted:#92a3c6;--line:#22365f;--surface:#0d1d3d;--bg:#061029;--shadow:0 18px 48px rgba(0,0,0,.24)}body,.topbar,.panel,.login-card,.control-grid label,.switch-row,.action-grid button,.step,.ghost-button{transition:background-color .22s ease,border-color .22s ease,color .22s ease}.topbar{background:var(--surface)}.brand img{width:154px;height:49px;object-fit:contain;object-position:left center}.brand .logo-dark{display:none}.auth-brand img{filter:none;object-fit:contain;object-position:left center}.route-plane{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.theme-toggle{width:38px;height:38px;border:1px solid var(--line);background:var(--surface);color:var(--navy);border-radius:12px;display:grid;place-items:center;padding:0;cursor:pointer}.theme-toggle svg{grid-area:1/1;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.theme-toggle .sun-icon{display:none}.theme-toggle-floating{position:fixed;right:22px;top:22px;z-index:20;background:rgba(255,255,255,.9);box-shadow:var(--shadow)}
.leaflet-shell{position:relative;background:#dce6f2}.leaflet-map{position:absolute;inset:0;width:100%;height:100%;z-index:1}.leaflet-shell .leaflet-map svg{position:static;width:auto;height:auto}.leaflet-shell .leaflet-control-attribution{font-size:8px;background:rgba(255,255,255,.8);color:#53617d}.leaflet-shell .leaflet-control-attribution a{color:#173b8f}.leaflet-shell .leaflet-bar{border:0;box-shadow:0 5px 20px rgba(7,20,63,.18)}.leaflet-shell .leaflet-bar a{background:rgba(255,255,255,.94);color:#07143f;border:0}.map-live-badge{position:absolute;z-index:500;left:14px;top:14px;background:rgba(255,255,255,.92);color:#173b8f;border:1px solid rgba(255,255,255,.7);box-shadow:0 7px 24px rgba(7,20,63,.12);backdrop-filter:blur(8px);padding:7px 10px;border-radius:999px;font-size:9px;font-weight:900;letter-spacing:.08em;display:flex;align-items:center;gap:7px}.map-live-badge i{width:7px;height:7px;border-radius:50%;background:#13b67d;box-shadow:0 0 0 4px rgba(19,182,125,.15)}.eagle-plane-marker{background:transparent;border:0}.plane-marker-core{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#f6a000,#ffbd3d);border:3px solid #fff;box-shadow:0 7px 18px rgba(7,20,63,.34)}.plane-marker-core svg{width:23px!important;height:23px!important;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.eagle-airport-marker{background:transparent;border:0;text-align:center}.eagle-airport-marker span{display:block;width:12px;height:12px;border:3px solid #fff;background:#173b8f;border-radius:50%;box-shadow:0 2px 8px rgba(7,20,63,.35);margin:0 auto}.eagle-airport-marker b{display:inline-block;margin-top:3px;background:#07143f;color:#fff;padding:3px 6px;border-radius:6px;font:900 9px/1 Inter,sans-serif;box-shadow:0 3px 9px rgba(7,20,63,.2)}.planned-flight-line{stroke-linecap:round}.map-flight-chip{z-index:500}.leaflet-tooltip{border:0;border-radius:8px;color:#07143f;font-size:10px;font-weight:800;box-shadow:0 5px 16px rgba(7,20,63,.16)}
html[data-theme=dark] .brand .logo-light{display:none}html[data-theme=dark] .brand .logo-dark{display:block}html[data-theme=dark] .theme-toggle{color:#ffb629;background:#10254b}html[data-theme=dark] .theme-toggle .moon-icon{display:none}html[data-theme=dark] .theme-toggle .sun-icon{display:block}html[data-theme=dark] body{background:var(--bg);color:var(--ink)}html[data-theme=dark] .topbar{background:#081632;border-color:var(--line)}html[data-theme=dark] .panel,html[data-theme=dark] .login-card{background:var(--surface);border-color:var(--line)}html[data-theme=dark] .route strong,html[data-theme=dark] .section-heading h2,html[data-theme=dark] .metric strong,html[data-theme=dark] .systems-grid h2,html[data-theme=dark] .va-grid h2,html[data-theme=dark] .devices-heading h1,html[data-theme=dark] .device-main strong,html[data-theme=dark] .pair-card h2,html[data-theme=dark] .device-list h2,html[data-theme=dark] .login-card h2,html[data-theme=dark] .schedule b,html[data-theme=dark] .stat-card>strong,html[data-theme=dark] .mini-stats b{color:#f2f5ff}html[data-theme=dark] .control-grid label,html[data-theme=dark] .switch-row,html[data-theme=dark] .action-grid button,html[data-theme=dark] .step,html[data-theme=dark] .ghost-button{background:#102347;border-color:var(--line);color:#eef3ff}html[data-theme=dark] .control-grid input{color:#fff}html[data-theme=dark] .schedule.active{background:#2b2518;border-color:#765c27}html[data-theme=dark] .pairing-result{background:linear-gradient(145deg,#0d1d3d,#10264d)}html[data-theme=dark] .pairing-result strong{color:#fff}html[data-theme=dark] .device-icon{background:#132b56;color:#95afff}html[data-theme=dark] .primary-button{background:#f5a000;color:#07143f}html[data-theme=dark] .bottom-nav{background:rgba(3,10,28,.96);border:1px solid #22365f}html[data-theme=dark] .bottom-nav button.active{background:#f5a000;color:#07143f}html[data-theme=dark] .map-flight-chip,html[data-theme=dark] .map-live-badge{background:rgba(8,22,50,.92);color:#eef3ff;border-color:#243b68}html[data-theme=dark] .leaflet-tile-pane{filter:invert(100%) hue-rotate(180deg) brightness(64%) contrast(112%) saturate(65%)}html[data-theme=dark] .leaflet-shell{background:#07142e}html[data-theme=dark] .leaflet-shell .leaflet-control-attribution{background:rgba(5,15,37,.82);color:#a7b4ce}html[data-theme=dark] .leaflet-shell .leaflet-control-attribution a{color:#f5b23a}html[data-theme=dark] .leaflet-shell .leaflet-bar a{background:#0d2045;color:#fff}html[data-theme=dark] .leaflet-tooltip{background:#0d2045;color:#fff}html[data-theme=dark] .leaflet-tooltip:before{border-top-color:#0d2045}html[data-theme=dark] .auth-page{background:linear-gradient(120deg,#020a20 0%,#07173b 52%,#061029 52%)}html[data-theme=dark] .login-card input[type=email],html[data-theme=dark] .login-card input[type=password]{background:#091833;border-color:var(--line);color:#fff}html[data-theme=dark] .theme-toggle-floating{background:#10254b}html[data-theme=dark] .sync-ok{background:#0b342e;color:#65deb1}html[data-theme=dark] .form-error{background:#3a171b;color:#ffaaaa}
@media(max-width:760px){.theme-toggle{width:34px;height:34px;border-radius:10px}.theme-toggle-floating{right:14px;top:14px}.brand img{width:120px;height:43px}.leaflet-shell .leaflet-control-attribution{max-width:210px;white-space:nowrap;overflow:hidden}.map-live-badge{left:10px;top:10px}.plane-marker-core{width:38px;height:38px}.auth-brand img{object-fit:contain;object-position:left;width:165px;height:auto;margin-bottom:30px}}
.fcu-engagement{display:flex;gap:7px}.fcu-button{position:relative;height:34px;min-width:46px;border:1px solid var(--line);border-radius:9px;background:#f3f6fb;color:var(--navy);font-size:11px;font-weight:900}.fcu-button.wide{min-width:58px}.fcu-button.active{background:var(--success);border-color:var(--success);color:#fff;box-shadow:0 0 0 3px rgba(16,185,129,.14)}.fcu-mode{position:absolute;top:10px;right:10px;border:0;border-radius:999px;padding:4px 7px;background:#e9eef7;color:#687895;font-size:7px;font-weight:900;letter-spacing:.06em}.fcu-mode.managed{background:#dfe9ff;color:#174a9b}.control-grid label{padding-top:34px}.eagle-plane-marker{width:34px!important;height:34px!important}.plane-marker-core{width:34px;height:34px;border-width:2px}.plane-marker-core svg{width:18px!important;height:18px!important}html[data-theme=dark] .fcu-button,html[data-theme=dark] .fcu-mode{background:#102347;border-color:var(--line);color:#eef3ff}html[data-theme=dark] .fcu-button.active{background:#137b60}html[data-theme=dark] .fcu-mode.managed{background:#173a72;color:#cbdcff}@media(max-width:760px){.autopilot .section-heading{align-items:flex-start;flex-direction:column}.fcu-engagement{width:100%}.fcu-button{flex:1}.fcu-mode{font-size:6px}}
.leaflet-shell .map-flight-chip{left:auto;right:14px;top:14px}html[data-theme=dark] .route-meta strong{color:#f2f5ff}html[data-theme=dark] .progress-track{background:#21365c}
.brand .header-mark{filter:brightness(0) saturate(100%) invert(14%) sepia(35%) saturate(3420%) hue-rotate(200deg) brightness(83%) contrast(105%)}html[data-theme=dark] .brand .header-mark{display:block;filter:none}.arrival-card p{margin:20px 0 0;text-align:left}@media(max-width:760px){.arrival-card p{position:static;right:auto;bottom:auto;grid-column:1/-1;margin:10px 0 0;text-align:left}}

/* Confirmed FCU state and staged changes */
.fcu-state-layout{display:grid;grid-template-columns:1.1fr .9fr;gap:12px;margin:4px 0 18px}.fcu-state-card{border:1px solid var(--line);border-radius:14px;padding:15px;background:#f8faff}.fcu-state-card.pending{background:#fffaf0}.fcu-current-values{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px}.fcu-current-values span{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.08em}.fcu-current-values b{color:var(--navy);font-size:18px;letter-spacing:0}.fcu-current-modes{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.fcu-current-modes span{padding:5px 7px;border-radius:999px;background:#edf1f7;color:#66748d;font-size:7px;font-weight:900}.fcu-current-modes span.managed{background:#dfe9ff;color:#174a9b}.fcu-pending-heading{display:flex;justify-content:space-between;align-items:center}.fcu-pending-heading button{border:0;background:transparent;color:var(--blue);font-size:9px;font-weight:900}.fcu-pending-list{display:grid;gap:6px;min-height:52px;margin:10px 0}.fcu-pending-list>p{margin:auto 0;color:var(--muted);font-size:10px}.fcu-pending-row{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:9px;background:#fff;border:1px solid #f0e2c4}.fcu-pending-row span{display:flex;flex:1;justify-content:space-between;gap:8px}.fcu-pending-row b,.fcu-pending-row small{font-size:9px}.fcu-pending-row em{font-style:normal;font-size:7px;font-weight:900;color:#a86c00}.fcu-pending-row.acknowledged em{color:#087b54}.fcu-pending-row.failed em{color:#b94b4b}.fcu-pending-row i{width:16px;height:16px;border-radius:50%;display:grid;place-items:center;background:#ffe5e5;color:#a22;font-size:9px}.fcu-submit{width:100%;border:0}.fcu-submit:disabled{opacity:.42;cursor:not-allowed}.fcu-editor-label{display:flex;justify-content:space-between;align-items:center;margin:2px 0 9px}.fcu-editor-label small{color:var(--muted);font-size:9px}.fcu-button.pending-on,.fcu-button.pending-off{border-color:#e5a000;box-shadow:0 0 0 2px rgba(245,160,0,.18)}.fcu-button.pending-on::after,.fcu-button.pending-off::after{content:"";position:absolute;top:4px;right:4px;width:7px;height:7px;border:2px solid #fff;border-radius:50%;background:#f5a000;box-sizing:border-box}.fcu-mode.pending{outline:2px solid #f5a000;outline-offset:1px}
html[data-theme=dark] .fcu-state-card{background:#0b1a38;border-color:var(--line)}html[data-theme=dark] .fcu-state-card.pending{background:#211d16}html[data-theme=dark] .fcu-current-values b{color:#f2f5ff}html[data-theme=dark] .fcu-current-modes span{background:#142749;color:#aebcda}html[data-theme=dark] .fcu-current-modes span.managed{background:#173a72;color:#cbdcff}html[data-theme=dark] .fcu-pending-row{background:#102347;border-color:#3b3428}
@media(max-width:760px){.fcu-state-layout{grid-template-columns:1fr}.fcu-current-values b{font-size:16px}.fcu-editor-label{align-items:flex-start;flex-direction:column;gap:4px}}
.fuel-card{display:flex;flex-direction:column}.fuel-quantity{display:flex;align-items:end;gap:8px;margin:18px 0 14px}.fuel-quantity strong{font-size:42px;line-height:.9;color:var(--navy);letter-spacing:-.04em}.fuel-quantity span{font-size:10px;font-weight:900;color:var(--muted)}.fuel-gauge{height:10px;border-radius:999px;background:#e8edf5;overflow:hidden}.fuel-gauge i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#f5a000,#ffc85b);transition:width .35s ease}.fuel-meta{display:flex;justify-content:space-between;gap:15px;margin-top:12px;color:var(--muted);font-size:9px}.fuel-meta span{display:flex;flex-direction:column;gap:4px}.fuel-meta span:last-child{text-align:right}.fuel-meta b{color:var(--ink);font-size:11px}html[data-theme=dark] .fuel-quantity strong{color:#f2f5ff}html[data-theme=dark] .fuel-gauge{background:#1c3157}@media(max-width:760px){.fuel-quantity strong{font-size:36px}}

/* Balanced identity and navigation icons */
.topbar .brand{height:46px;gap:8px}.topbar .brand img.header-mark{width:108px;height:37px;object-fit:contain;object-position:left center}.topbar .brand .product-name{margin-left:0;padding-left:9px;font-size:9px;letter-spacing:.18em}.bottom-nav button{min-height:48px}.bottom-nav .nav-icon{display:block;flex:0 0 auto;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.bottom-nav .nav-label{font-size:11px;line-height:1}.bottom-nav .vatsim-logo{width:36px;height:18px;object-fit:contain;stroke:none}.bottom-nav .vatsim-nav{gap:5px}
@media(max-width:760px){.topbar .brand img.header-mark{width:88px;height:31px}.topbar .brand .product-name{font-size:8px;padding-left:7px}.bottom-nav .nav-icon{width:21px;height:21px}.bottom-nav .vatsim-logo{width:34px;height:17px}.bottom-nav .nav-label{font-size:9px}}
@media(max-width:390px){.topbar .brand img.header-mark{width:80px}.topbar .brand .product-name{display:inline-block}}

/* Final brand proportions: compact Eagle lockup and consistent navigation glyphs */
.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}
.topbar .brand{gap:10px}.topbar .brand img.header-mark{width:98px;height:auto;max-height:34px}.topbar .brand .product-name{margin:0;padding:5px 7px;border:0;border-radius:999px;background:rgba(245,160,0,.13);color:#c77f00;font-size:9px;line-height:1;letter-spacing:.16em}
.bottom-nav{align-items:stretch;padding:6px}.bottom-nav button{min-width:96px;min-height:52px;padding:7px 13px;gap:6px}.bottom-nav .nav-icon{width:22px;height:22px}.bottom-nav .nav-label{font-size:10px;font-weight:800}.bottom-nav button.active .nav-icon{stroke-width:2}.bottom-nav .vatsim-nav{min-width:104px;padding-inline:14px}.bottom-nav .vatsim-logo{width:62px;height:25px;max-width:none}.bottom-nav .vatsim-nav.active{background:#fff;color:var(--navy)}html[data-theme=dark] .bottom-nav .vatsim-nav.active{background:#fff;color:var(--navy)}html[data-theme=dark] .topbar .brand .product-name{background:rgba(245,160,0,.16);color:#ffb629}
@media(max-width:760px){.topbar .brand{gap:7px}.topbar .brand img.header-mark{width:86px;max-height:30px}.topbar .brand .product-name{padding:4px 6px;font-size:8px}.bottom-nav{padding:5px}.bottom-nav button{min-width:0;min-height:52px;padding:6px 3px;gap:3px}.bottom-nav .nav-icon{width:22px;height:22px}.bottom-nav .nav-label{font-size:9px}.bottom-nav .vatsim-nav{min-width:0;padding-inline:5px}.bottom-nav .vatsim-logo{width:48px;height:22px}}
@media(max-width:390px){.topbar .brand img.header-mark{width:76px}.topbar .brand .product-name{font-size:7px}.bottom-nav .vatsim-logo{width:43px}}

/* Explicit offline state */
.map-offline-state{position:absolute;z-index:510;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:24px;text-align:center;background:rgba(237,242,248,.84);backdrop-filter:blur(3px);color:var(--navy)}.map-offline-state span{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#8b98ac;font-size:20px;box-shadow:0 8px 24px rgba(7,20,63,.1)}.map-offline-state strong{font-size:15px}.map-offline-state small{max-width:270px;color:var(--muted);font-size:10px;line-height:1.45}.map-offline-state[hidden],.map-live-badge[hidden],.map-flight-chip[hidden]{display:none!important}.connection-pill.offline .pulse{animation:none}.autopilot button:disabled,.autopilot input:disabled,.switch-row:disabled{cursor:not-allowed;opacity:.48}.switch-row:disabled{color:var(--muted)}html[data-theme=dark] .map-offline-state{background:rgba(6,16,41,.84);color:#f2f5ff}html[data-theme=dark] .map-offline-state span{background:#10254b;color:#92a3c6}
.vatsim-panel{padding:25px}.vatsim-heading{display:flex;justify-content:space-between;align-items:center;gap:18px}.vatsim-heading h2{margin:5px 0 0;color:var(--navy)}.vatsim-connection{display:grid;grid-template-columns:auto auto;gap:2px 8px;align-items:center;color:var(--muted);font-size:10px;font-weight:800}.vatsim-connection i{width:8px;height:8px;border-radius:50%;background:#aab2bf;grid-row:1/3}.vatsim-connection b{color:var(--navy);font-size:12px}.vatsim-connection.online{color:#078157}.vatsim-connection.online i{background:#13b67d;box-shadow:0 0 0 5px rgba(19,182,125,.12)}.vatsim-feed{height:min(62vh,580px);overflow:auto;margin-top:22px;border:1px solid var(--line);border-radius:18px;background:#f7f9fc;padding:12px;display:flex;flex-direction:column;gap:9px}.vatsim-message{background:#fff;border:1px solid var(--line);border-left:4px solid #8491a8;border-radius:12px;padding:12px 14px}.vatsim-message.private{border-left-color:#315eb6}.vatsim-message.radio{border-left-color:#12a575}.vatsim-message.selcal{border-left-color:#f5a000;background:#fffaf0}.vatsim-message.broadcast{border-left-color:#b94b4b}.vatsim-message-meta{display:flex;align-items:center;gap:9px;font-size:9px;color:var(--muted)}.vatsim-message-meta em{font-style:normal;font-weight:900;color:#66748d;background:#eef2f8;padding:4px 6px;border-radius:6px}.vatsim-message-meta b{color:var(--navy);font-size:11px}.vatsim-message-meta time{margin-left:auto}.vatsim-message p{margin:9px 0 1px;font-size:13px;line-height:1.55;white-space:pre-wrap}.vatsim-empty{margin:auto;max-width:410px;text-align:center;color:var(--muted);display:flex;flex-direction:column;gap:8px;line-height:1.5}.vatsim-empty strong{color:var(--navy)}.vatsim-nav{position:relative}.vatsim-nav>b{position:absolute;right:5px;top:3px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#e05252;color:#fff;font-size:9px;line-height:17px}.vatsim-nav>b[hidden]{display:none}html[data-theme=dark] .vatsim-feed{background:#071630}html[data-theme=dark] .vatsim-message{background:#0e2245}html[data-theme=dark] .vatsim-message.selcal{background:#241f15}html[data-theme=dark] .vatsim-message-meta em{background:#172e56;color:#b5c3de}html[data-theme=dark] .vatsim-connection b,html[data-theme=dark] .vatsim-empty strong{color:#f2f5ff}@media(max-width:760px){.bottom-nav button{min-width:56px;padding:9px 5px;font-size:9px;flex-direction:column;gap:2px}.vatsim-panel{padding:17px}.vatsim-heading{align-items:flex-start}.vatsim-feed{height:58vh}.vatsim-message-meta{flex-wrap:wrap}.vatsim-message-meta time{margin-left:auto}}

.fcu-pmdg-nav{display:flex;justify-content:flex-end;gap:8px;margin:10px 0 16px}.fcu-pmdg-nav[hidden]{display:none}.fcu-pmdg-nav .fcu-button{min-width:72px}@media(max-width:760px){.fcu-pmdg-nav{gap:10px;margin:10px 0 18px}}
.pmdg-lights[hidden],[data-light-profile][hidden]{display:none!important}.pmdg-lights{display:grid;gap:12px}.light-selector-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.light-selector-row{display:flex;flex-direction:column;gap:7px;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:#f8f9fc;color:var(--ink);font-size:11px;font-weight:800}.light-selector-row.wide{grid-column:1/-1}.light-selector-row select{width:100%;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--navy);padding:9px;font-size:10px;font-weight:900;outline:none}.pmdg-switch-list{margin-top:0}.lights-panel .label b{color:var(--blue)}html[data-theme=dark] .light-selector-row{background:#102347;color:#eef3ff}html[data-theme=dark] .light-selector-row select{background:#091833;color:#fff}@media(max-width:390px){.light-selector-grid{grid-template-columns:1fr}.light-selector-row.wide{grid-column:auto}}
/* Keep global navigation above Leaflet and its disconnected-state veil. */
.bottom-nav{z-index:1200}.toast{z-index:1300}
@media(max-width:760px){.app-shell{padding-bottom:calc(112px + env(safe-area-inset-bottom))}.bottom-nav{bottom:max(10px,env(safe-area-inset-bottom))}}
/* Pending MCP changes are already listed in the confirmation card. Avoid a
   second transient amber state on buttons while acknowledgements are polled. */
.fcu-button.pending-on,.fcu-button.pending-off{border-color:var(--line);box-shadow:none}.fcu-button.pending-on::after,.fcu-button.pending-off::after{display:none}.fcu-mode.pending{outline:0}

/* Official Eagle identity */
.eagle-login-button{width:100%;min-height:50px;border:1px solid #143879;background:linear-gradient(135deg,#07143f,#12337c);color:#fff;border-radius:13px;padding:10px 16px;display:flex;align-items:center;justify-content:center;gap:11px;text-decoration:none;font-size:13px;font-weight:900;box-shadow:0 10px 25px rgba(7,20,63,.17)}.eagle-login-button img{width:38px;height:28px;object-fit:contain;filter:brightness(0) invert(1)}.eagle-login-button.pending{opacity:.68}.login-separator{display:flex;align-items:center;gap:10px;margin:20px 0 4px;color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.login-separator:before,.login-separator:after{content:"";height:1px;background:var(--line);flex:1}.login-card>.form-error{margin-top:14px}html[data-theme=dark] .eagle-login-button{border-color:#34558d;background:linear-gradient(135deg,#112a5c,#173d88)}

/* Installed mobile app: use the complete viewport and its safe areas. */
html,body{min-height:100%;min-height:100dvh}@media (display-mode:standalone){body{min-height:100dvh}.app-shell{min-height:100dvh}.topbar{height:calc(64px + env(safe-area-inset-top));padding-top:calc(8px + env(safe-area-inset-top));padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}.bottom-nav{bottom:max(8px,env(safe-area-inset-bottom));max-width:calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 20px)}.auth-shell{min-height:100dvh;padding-bottom:max(30px,env(safe-area-inset-bottom))}}@media (display-mode:standalone) and (max-width:760px){main{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}.auth-shell{padding:0}.auth-brand{padding-top:calc(28px + env(safe-area-inset-top));padding-left:max(23px,env(safe-area-inset-left));padding-right:max(23px,env(safe-area-inset-right))}.login-card{margin-bottom:max(25px,env(safe-area-inset-bottom))}}
