:root{
  --bg:#0b1220;
  --card:#101a2e;
  --muted:#7f8ba7;
  --text:#eaf0ff;
  --accent:#4fd1c5;
  --line:#1c2a46;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}
#app{min-height:100vh}
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
}
.brand{display:flex; gap:10px; align-items:center}
.dot{width:10px;height:10px;border-radius:999px;background:var(--accent)}
.title{font-weight:700; letter-spacing:.2px}
.subtitle{color:var(--muted); font-size:12px; margin-top:2px}
.status{color:var(--muted); font-size:13px}
.layout{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
  padding:14px;
}
@media (max-width: 900px){
  .layout{grid-template-columns:1fr}
}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
}
.primaryHeader{display:flex; justify-content:space-between; gap:10px}
.primaryTop{display:flex;align-items:center;gap:12px}
.airlineLogo{width:44px;height:44px;border-radius:12px;flex:0 0 auto;border:1px solid var(--line);background:rgba(255,255,255,.06)}
.airlineLogo.hidden{display:none}
.callsign{font-size:28px;font-weight:800; letter-spacing:.5px}
.route{color:var(--muted); margin-top:4px}
.model{margin-top:10px; font-size:14px}
.meta{min-width:160px}
.metaRow{display:flex; justify-content:space-between; gap:10px; font-size:12px; padding:3px 0}
.metaRow .k{color:var(--muted)}
.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-top:14px;
}
.stat{
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(0,0,0,.12);
}
.stat .k{color:var(--muted); font-size:11px}
.stat .v{font-size:18px; font-weight:750; margin-top:3px}
.footerLine{
  display:flex; justify-content:space-between; gap:10px;
  margin-top:14px;
  color:var(--muted);
  font-size:12px;
}
.listHeader{display:flex; justify-content:space-between; align-items:baseline}
.listTitle{font-weight:700}
.listHint{color:var(--muted); font-size:12px}
.row{
  display:flex; justify-content:space-between; gap:10px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.row:last-child{border-bottom:none}
.row .left{display:flex; flex-direction:column; gap:2px}
.row .cs{font-weight:700}
.row .sub{color:var(--muted); font-size:12px}
.badge{font-size:12px; color:var(--muted)}
.version{
  position:fixed; right:10px; bottom:10px;
  opacity:.6; font-size:12px;
}
.errBox{
  position:fixed;
  left:10px; bottom:10px;
  max-width:min(600px,calc(100vw - 20px));
  background:rgba(0,0,0,.65);
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  padding:10px 12px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:12px;
  white-space:pre-wrap;
}
.hidden{display:none}
