:root{font-family:Tahoma,Arial,sans-serif;color:#e8f3ff;background:#07111d;--panel:#0c1929;--panel2:#10243a;--line:#24435f;--text2:#9db6cc}
*{box-sizing:border-box}body{margin:0;overflow:hidden}button{border:0;border-radius:11px;padding:10px 13px;background:#2675dc;color:#fff;cursor:pointer;font-weight:700}button:hover{filter:brightness(1.08)}button.ghost{background:#12283d;border:1px solid #31516d;color:#d7eaff}.warn{background:#b97825}.danger{background:#9e3341}.tiny{padding:5px 8px;font-size:11px}.hidden{display:none!important}
header{height:64px;background:#0b1828;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 18px}.brand{display:flex;align-items:baseline;gap:12px}.brand b{font-size:18px}.brand span{font-size:11px;color:var(--text2)}.topStatus{display:flex;align-items:center;gap:8px;font-size:12px}.dot{width:10px;height:10px;border-radius:50%;background:#d55}.dot.ok{background:#55d98a}
main{height:calc(100vh - 64px);display:grid;grid-template-columns:58% 42%;direction:ltr}.mapPanel,.chatPanel{position:relative;min-width:0}.mapPanel{border-right:1px solid var(--line)}#map{height:100%;background:#0b1828}.mapTools{position:absolute;z-index:700;top:12px;right:12px;display:flex;gap:6px;direction:rtl}.flightInfo{position:absolute;z-index:650;left:12px;bottom:12px;width:min(420px,80%);background:#091725eF;border:1px solid #31516d;border-radius:14px;padding:12px;direction:rtl;box-shadow:0 10px 30px #0007}.flightInfo .kpi{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:9px}.kpi div{background:#10243a;border-radius:9px;padding:7px;text-align:center}.kpi small{display:block;color:var(--text2);font-size:10px}
.chatPanel{direction:rtl;display:flex;background:#081421}.rail{width:78px;padding:10px 7px;background:#0b1828;border-left:1px solid var(--line);display:flex;flex-direction:column;gap:7px}.rail button{min-height:55px;padding:6px 3px;background:#10263d;border:1px solid #244965;font-size:19px}.rail button.off{opacity:.55}.rail small{display:block;font-size:9px;margin-top:4px}.chatCore{flex:1;display:flex;flex-direction:column;min-width:0}.contextBar{height:42px;background:#0b1828;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px;padding:0 12px;font-size:12px}.messages{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:10px}.msg{max-width:89%;padding:11px 13px;border-radius:14px;line-height:1.9;font-size:13px;white-space:pre-wrap}.msg.ai{align-self:flex-start;background:#10263d;border:1px solid #294a66}.msg.user{align-self:flex-end;background:#2168bf}.msg.error{background:#481c26;border:1px solid #8b3948}#chatForm{display:flex;gap:8px;padding:10px;background:#0b1828;border-top:1px solid var(--line)}#chatInput{flex:1;min-width:0;background:#0e1f31;color:#fff;border:1px solid #31516d;border-radius:12px;padding:12px;outline:none}
.queryResults{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.resultCard{background:#0e2033;border:1px solid #31516d;text-align:right;display:flex;flex-direction:column;gap:6px;min-height:122px;padding:12px}.resultCard span,.resultCard small{font-weight:400;color:#b8cee1;font-size:11px}.resultHead{display:flex;align-items:center;justify-content:space-between;gap:6px}.resultMeta{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.flightMosaic{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.planeMarkerWrap{background:transparent;border:0}.planeMarker{width:30px;height:30px;display:grid;place-items:center;background:transparent;color:#2f8df4;border:0;box-shadow:none;font-size:15px;line-height:1}.planeMarker svg{width:30px;height:30px;fill:currentColor;filter:none}.drawer{position:fixed;z-index:2000;top:64px;left:0;width:min(590px,97vw);height:calc(100vh - 64px);background:#0b1828;border-right:1px solid var(--line);box-shadow:12px 0 35px #0009;overflow:auto;direction:rtl}.drawerHead{position:sticky;top:0;z-index:2;background:#0b1828;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:12px}.drawerHead button{background:transparent;font-size:24px}.drawerBody,#drawerBody{padding:14px}.card{background:#0e2033;border:1px solid #294963;border-radius:13px;padding:12px;margin-bottom:10px}.card h4{margin:0 0 8px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.badge{display:inline-block;padding:3px 7px;border-radius:7px;background:#1a3a57;font-size:10px;margin:2px}.flightRow{cursor:pointer}.flightRow:hover{border-color:#4d91d2}label{display:block;font-size:11px;color:#abc1d3;margin:8px 0 4px}input,select,textarea{width:100%;background:#081624;color:#fff;border:1px solid #31516d;border-radius:9px;padding:9px}textarea{min-height:70px}.tabs{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:10px}.tabs button{padding:7px 9px;font-size:11px}.stat{font-size:22px;font-weight:bold}.muted{color:var(--text2);font-size:11px}.okText{color:#65df96}.badText{color:#ef7883}
.modal{position:fixed;z-index:3000;inset:0;background:#0009;display:grid;place-items:center}.modalCard{width:min(560px,95vw);max-height:90vh;overflow:auto;background:#0b1828;border:1px solid #31516d;border-radius:16px;direction:rtl}#modalBody{padding:14px}.trackChart{width:100%;height:130px;background:#071421;border:1px solid #27455e;border-radius:10px;margin-top:8px}
@media(max-width:950px){body{overflow:auto}header{height:58px}.brand span{display:none}main{height:auto;display:flex;flex-direction:column}.mapPanel{height:45vh}.chatPanel{height:calc(100vh - 58px)}.queryResults{grid-template-columns:repeat(2,minmax(0,1fr))}.flightMosaic{grid-template-columns:repeat(2,minmax(0,1fr))}.drawer{top:58px;height:calc(100vh - 58px)}}

.topLink{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.mapFallback{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;text-align:center;background:#0b1828}.mapFallback span{opacity:.7}


/* radar05 richer flight cards */
.resultCard{overflow:hidden}
.aircraftLine,.routeLine{display:flex;justify-content:space-between;gap:8px;align-items:center;color:#bfd3e5;font-size:12px}
.routeLine{padding:6px 0;border-top:1px solid #27445f;border-bottom:1px solid #27445f}.routeLine span{opacity:.75}.routeLine b{font-size:12px;color:#eef7ff}
.metricGrid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:2px}.metric{background:#0a1928;border:1px solid #233f59;border-radius:8px;padding:6px;display:flex;flex-direction:column;gap:2px}.metric span{font-size:10px!important;opacity:.7}.metric b{font-size:11px;color:#eef7ff}
.navAlt,.distance{font-size:10px;color:#b9d1e5}.planeMarkerWrap{background:transparent!important;border:0!important}.planeMarker{width:30px;height:30px;display:grid;place-items:center;transform-origin:50% 50%;filter:drop-shadow(0 1px 3px #000)}.planeMarker svg{width:28px;height:28px;fill:#4ea1ff;stroke:#e9f5ff;stroke-width:.5}
@media(max-width:600px){.queryResults{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.resultCard{padding:9px;min-height:178px}.resultHead b{font-size:15px}.metricGrid{gap:4px}.metric{padding:5px}.routeLine b{max-width:105px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

.serviceField select{width:100%;padding:10px;border:1px solid #31506c;border-radius:9px;background:#0b1828;color:#fff}.resultCard{overflow:hidden}.resultCard .badge{max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.planeMarker.stale{opacity:.42;filter:grayscale(.7) drop-shadow(0 1px 3px #000)} .planeMarker.stale svg{fill:#8b99a6;stroke:#d2d8dd}


/* radar09 responsive/mobile layout and clean aircraft marker */
html,body{width:100%;max-width:100%;min-height:100%;overflow-x:hidden}
.planeMarkerWrap{background:transparent!important;border:0!important;box-shadow:none!important}
.planeMarker{width:30px!important;height:30px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:transparent!important;padding:0!important;display:block!important;transform-origin:50% 50%;filter:drop-shadow(0 1px 2px #001a)}
.planeMarker svg{display:block;width:30px!important;height:30px!important;fill:#2488ff;stroke:#f1f8ff;stroke-width:.7}
.planeMarker.stale{opacity:.38;filter:grayscale(.65) drop-shadow(0 1px 2px #001a)}
@media(max-width:950px){
  body{overflow-y:auto!important;overflow-x:hidden!important}
  header{position:sticky;top:0;z-index:1900;height:auto;min-height:58px;padding:8px 10px;gap:8px;flex-wrap:wrap}
  .brand{min-width:0;flex:1}.brand b{font-size:16px}.topStatus{font-size:11px;max-width:100%;flex-wrap:wrap}
  main{height:auto!important;min-height:0;display:flex!important;flex-direction:column!important;direction:ltr}
  .mapPanel{height:46svh!important;min-height:300px;border-right:0;border-bottom:1px solid var(--line)}
  #map{height:100%!important;min-height:300px}
  .mapTools{top:8px;right:8px;max-width:calc(100% - 16px);flex-wrap:wrap}.mapTools button{font-size:12px;padding:8px 10px}
  .flightInfo{left:8px;right:8px;bottom:8px;width:auto!important;max-width:none;max-height:45%;overflow:auto;padding:9px}.flightInfo .kpi{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.kpi div{padding:5px;font-size:11px}
  .chatPanel{height:auto!important;min-height:54svh;display:flex!important;flex-direction:column!important;direction:rtl}
  .rail{order:0;width:100%!important;height:auto!important;padding:6px;flex-direction:row!important;overflow-x:auto;overflow-y:hidden;border-left:0;border-bottom:1px solid var(--line);gap:5px;scrollbar-width:thin}
  .rail button{flex:0 0 78px;min-height:52px;font-size:17px}.rail small{font-size:9px}
  .chatCore{order:1;min-height:58svh;width:100%}
  .contextBar{position:sticky;top:0;z-index:5;min-height:42px;height:auto;flex-wrap:wrap;padding:7px 10px}
  .messages{min-height:46svh;padding:10px;gap:9px;overflow:visible}
  .msg{max-width:96%;font-size:14px;line-height:1.8;padding:10px 12px}
  #chatForm{position:sticky;bottom:0;z-index:10;padding:8px;gap:6px}#chatInput{font-size:16px;padding:11px}#chatForm button{padding:10px 14px}
  .queryResults,.flightMosaic{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px}
  .resultCard{min-width:0;min-height:150px;padding:9px}.resultHead b{font-size:14px}.resultMeta{grid-template-columns:1fr 1fr;gap:4px}
  .drawer{top:0!important;left:0;width:100vw!important;height:100svh!important;border:0}.modalCard{width:96vw;max-height:92svh}
}
@media(max-width:430px){
  .brand b{font-size:15px}.topLink{padding:7px 9px}.flightInfo .kpi{grid-template-columns:1fr 1fr}
  .queryResults,.flightMosaic{grid-template-columns:repeat(2,minmax(0,1fr))!important}.resultCard{padding:7px;min-height:145px}.resultCard .badge{max-width:75px}
}


/* radar10: pure aircraft glyph, no circle/halo, compact mobile selection card */
.planeMarker,.planeMarker.stale{filter:none!important;box-shadow:none!important;text-shadow:none!important;background:transparent!important;border:0!important;border-radius:0!important}
.planeMarker svg{filter:none!important;overflow:visible}
@media(max-width:600px){
  .mapPanel{height:42svh!important;min-height:260px!important}#map{min-height:260px!important}
  .flightInfo{max-height:34%!important;left:6px!important;right:6px!important;bottom:5px!important;padding:7px!important;border-radius:10px!important}
  .flightInfo .kpi{grid-template-columns:repeat(2,minmax(0,1fr))!important}.flightInfo .kpi div{padding:4px!important}
  .rail{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;overflow:visible!important;width:100%!important}
  .rail button{min-width:0!important;width:100%!important;min-height:48px!important;flex:none!important;font-size:15px!important}
}


/* radar11: fixed application shell, real header/footer, internal chat scrolling */
html,body{height:100%;min-height:100%;overflow:hidden!important}
body{min-height:100dvh}
.appShell{height:100dvh;width:100%;display:grid;grid-template-rows:64px minmax(0,1fr) 30px;overflow:hidden;background:#07111d}
.appShell>.appHeader{position:relative!important;inset:auto;height:auto!important;min-height:0;margin:0;padding:0 18px;z-index:1900}
.appShell>main{height:auto!important;min-height:0!important;overflow:hidden!important}
.appFooter{height:30px;min-height:30px;background:#081421;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 12px;color:#8eabc3;font-size:10px;white-space:nowrap;overflow:hidden;z-index:1900}
.chatPanel,.chatCore,.messages{min-height:0!important}
.chatCore{overflow:hidden}
.messages{overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
#chatForm{flex:0 0 auto}
@media(max-width:950px){
  .appShell{grid-template-rows:56px minmax(0,1fr) 26px!important;height:100dvh!important}
  .appShell>.appHeader{height:56px!important;min-height:56px!important;padding:6px 10px!important;flex-wrap:nowrap!important;overflow:hidden}
  .brand{min-width:0;flex:0 1 auto}.brand b{font-size:15px;white-space:nowrap}.brand span{display:none!important}
  .topStatus{min-width:0;flex:1;justify-content:flex-start;font-size:10px;gap:5px;overflow:hidden}.topStatus #feedText{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topLink{flex:0 0 auto;padding:6px 8px!important}
  .appShell>main{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:minmax(210px,40%) minmax(0,60%)!important;direction:ltr!important;overflow:hidden!important}
  .mapPanel{height:auto!important;min-height:0!important;border-right:0;border-bottom:1px solid var(--line);overflow:hidden!important}
  #map{height:100%!important;min-height:0!important}
  .chatPanel{height:auto!important;min-height:0!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important;direction:rtl!important}
  .rail{order:0!important;width:100%!important;height:auto!important;min-height:54px!important;padding:5px!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;border-left:0!important;border-bottom:1px solid var(--line);gap:5px;scrollbar-width:thin}
  .rail button{flex:0 0 70px!important;width:70px!important;min-width:70px!important;min-height:44px!important;height:44px!important;padding:3px!important;font-size:15px!important}.rail small{font-size:8px!important;margin-top:2px!important}
  .chatCore{order:1!important;width:100%!important;height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;overflow:hidden!important}
  .contextBar{position:relative!important;top:auto!important;min-height:38px!important;height:auto!important;flex:0 0 auto;padding:5px 8px!important;z-index:4}
  .messages{height:auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:9px!important;gap:8px!important;overscroll-behavior:contain!important}
  #chatForm{position:relative!important;bottom:auto!important;z-index:5!important;padding:7px!important;background:#0b1828!important;padding-bottom:max(7px,env(safe-area-inset-bottom))!important}
  #chatInput{font-size:16px!important;padding:10px!important}.msg{max-width:96%!important;font-size:14px!important;line-height:1.75!important;padding:9px 11px!important}
  .mapTools{top:7px!important;right:7px!important}.mapTools button{font-size:11px!important;padding:7px 9px!important}
  .flightInfo{left:6px!important;right:6px!important;bottom:6px!important;width:auto!important;max-width:none!important;max-height:42%!important;overflow:auto!important;padding:7px!important}
  .queryResults,.flightMosaic{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}.resultCard{min-width:0!important;min-height:140px!important;padding:7px!important}
  .appFooter{height:26px!important;min-height:26px!important;font-size:9px!important;padding:0 8px!important;padding-bottom:env(safe-area-inset-bottom)}
  .drawer{top:0!important;height:100dvh!important}.modalCard{max-height:92dvh!important}
}
@media(max-width:430px){
  .appShell>main{grid-template-rows:minmax(190px,36%) minmax(0,64%)!important}
  .rail button{flex-basis:64px!important;width:64px!important;min-width:64px!important}
  .flightInfo{max-height:38%!important}.queryResults,.flightMosaic{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}


/* radar18: compact flight result cards */
.queryResults,.flightMosaic{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important;gap:5px!important}
.resultCard{min-height:92px!important;padding:6px 7px!important;gap:3px!important;border-radius:9px!important}
.resultCard .resultHead{gap:4px!important}.resultCard .resultHead b{font-size:12px!important}.resultCard .badge{font-size:8px!important;padding:2px 5px!important;max-width:68px!important}
.resultCard>span{font-size:9px!important;line-height:1.25!important}.resultCard .resultMeta{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:2px!important}.resultCard .resultMeta small{font-size:8.5px!important;line-height:1.2!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.flightInfo{max-width:430px!important;padding:7px!important}.flightInfo .kpi{gap:4px!important}.flightInfo .kpi div{padding:4px!important;font-size:10px!important}.flightInfo .kpi small{font-size:8px!important}
@media(max-width:950px){.queryResults,.flightMosaic{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}.resultCard{min-height:88px!important;padding:5px!important}.resultCard>span{font-size:8px!important}.resultCard .resultMeta small{font-size:7.8px!important}}
@media(max-width:600px){.queryResults,.flightMosaic{grid-template-columns:repeat(2,minmax(0,1fr))!important}.resultCard{min-height:96px!important;padding:5px!important}.resultCard .resultHead b{font-size:11px!important}.resultCard .resultMeta{grid-template-columns:1fr 1fr!important}}
