:root{
  --bg:#0b1220;
  --card:#111a2e;
  --muted:#8ea0c4;
  --text:#e7eeff;
  --accent:#6aa6ff;
  --good:#4ade80;
  --warn:#fbbf24;
  --bad:#fb7185;
  --line:#223055;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --pad: 18px;
  --max: 1080px;
  font-synthesis-weight:none;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 700px at 20% 10%, rgba(106,166,255,.18), transparent 50%),
              radial-gradient(900px 500px at 90% 30%, rgba(74,222,128,.10), transparent 55%),
              radial-gradient(700px 500px at 40% 90%, rgba(251,191,36,.10), transparent 55%),
              var(--bg);
  color:var(--text);
}
a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:22px}
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:14px 16px; border:1px solid var(--line);
  background:rgba(17,26,46,.78); backdrop-filter: blur(10px);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.brand{display:flex; align-items:center; gap:10px}
.logo{
  width:34px; height:34px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(106,166,255,.95), rgba(74,222,128,.85));
  box-shadow: 0 12px 24px rgba(106,166,255,.12);
}
.brand .title{font-weight:700; letter-spacing:.2px}
.badge{
  font-size:12px; padding:6px 10px; border-radius: 999px;
  border:1px solid rgba(142,160,196,.35);
  color:var(--muted); background:rgba(34,48,85,.35);
}
.help{display:flex; gap:8px; align-items:center}
.btn{
  border:1px solid rgba(142,160,196,.35);
  color:var(--text); background:rgba(34,48,85,.35);
  padding:10px 14px; border-radius: 14px; cursor:pointer;
  transition: transform .06s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{background:rgba(34,48,85,.55); border-color: rgba(106,166,255,.55)}
.btn:active{transform: translateY(1px)}
.btn.primary{
  background: linear-gradient(135deg, rgba(106,166,255,.95), rgba(106,166,255,.70));
  border-color: rgba(106,166,255,.7);
}
.btn.primary:hover{border-color: rgba(106,166,255,.9)}
.btn.good{
  background: linear-gradient(135deg, rgba(74,222,128,.95), rgba(74,222,128,.70));
  border-color: rgba(74,222,128,.7);
}
.btn.ghost{background:transparent}
.grid{
  display:grid; grid-template-columns: 1.15fr .85fr; gap:18px; margin-top:18px;
}
@media (max-width: 860px){ .grid{grid-template-columns:1fr} }
.card{
  border:1px solid var(--line);
  background:rgba(17,26,46,.78);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--pad);
}
.h1{font-size:26px; margin:0 0 6px}
.sub{color:var(--muted); margin:0 0 14px; line-height:1.35}
.progress{
  width:100%; height:10px; border-radius: 99px; background: rgba(34,48,85,.6);
  border:1px solid rgba(142,160,196,.18);
  overflow:hidden;
}
.progress > div{height:100%; width: 30%; background: linear-gradient(90deg, rgba(106,166,255,.9), rgba(74,222,128,.85))}
.kv{display:grid; grid-template-columns: 160px 1fr; gap:10px; align-items:center; margin:10px 0}
.kv .k{color:var(--muted); font-size:13px}
.kv .v{font-weight:600}
.field{margin:10px 0}
.label{font-size:13px; color:var(--muted); margin-bottom:6px}
.input, select{
  width:100%; padding:11px 12px; border-radius: 14px;
  border:1px solid rgba(142,160,196,.3);
  background: rgba(11,18,32,.35);
  color: var(--text);
  outline:none;
}
.row{display:flex; gap:10px}
.row > *{flex:1}
.pills{display:flex; gap:8px; flex-wrap:wrap}
.pill{
  padding:8px 10px; border-radius:999px; font-size:12px;
  border:1px solid rgba(142,160,196,.28); color:var(--muted);
  background: rgba(34,48,85,.32);
}
.pill.good{border-color: rgba(74,222,128,.45); color: rgba(198,255,219,.95)}
.pill.warn{border-color: rgba(251,191,36,.45); color: rgba(255,237,176,.95)}
.pill.bad{border-color: rgba(251,113,133,.45); color: rgba(255,201,209,.95)}
.footer{
  display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:14px;
}
.hr{height:1px; background: rgba(34,48,85,.8); margin:14px 0}
.small{font-size:12px; color:var(--muted); line-height:1.4}
.code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(11,18,32,.45);
  border:1px solid rgba(142,160,196,.22);
  padding:10px 12px; border-radius: 14px; overflow:auto;
}
.map{
  height:240px; border-radius: 18px; border:1px solid rgba(142,160,196,.22);
  background:
    radial-gradient(180px 120px at 20% 30%, rgba(106,166,255,.15), transparent 70%),
    radial-gradient(200px 140px at 70% 60%, rgba(74,222,128,.12), transparent 75%),
    linear-gradient(135deg, rgba(34,48,85,.75), rgba(11,18,32,.45));
  position:relative; overflow:hidden;
}
.pin{position:absolute; width:14px; height:14px; border-radius:50%; background:rgba(106,166,255,.95); box-shadow:0 0 0 6px rgba(106,166,255,.18)}
.pin.b{background:rgba(74,222,128,.95); box-shadow:0 0 0 6px rgba(74,222,128,.16)}
.arrow{position:absolute; left:22%; top:46%; right:22%; height:2px; background: rgba(142,160,196,.35)}
.arrow:after{
  content:""; position:absolute; right:-2px; top:-4px; width:10px; height:10px;
  border-right:2px solid rgba(142,160,196,.55);
  border-top:2px solid rgba(142,160,196,.55);
  transform: rotate(45deg);
}
.gauge{
  height:240px; border-radius: 18px; border:1px solid rgba(142,160,196,.22);
  background: linear-gradient(180deg, rgba(34,48,85,.75), rgba(11,18,32,.45));
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
}
.gnum{font-size:48px; font-weight:800; letter-spacing:.5px}
.glabel{color:var(--muted)}
.list{margin:0; padding-left:18px; color:var(--muted); line-height:1.5}
.table{
  width:100%; border-collapse:separate; border-spacing:0 8px;
}
.table td{
  padding:10px 12px; background: rgba(11,18,32,.35);
  border:1px solid rgba(142,160,196,.18);
}
.table tr td:first-child{border-top-left-radius:14px; border-bottom-left-radius:14px}
.table tr td:last-child{border-top-right-radius:14px; border-bottom-right-radius:14px}
.pilot-callout{display:flex;align-items:center;justify-content:space-between;gap:18px}
@media (max-width:700px){.pilot-callout{align-items:flex-start;flex-direction:column}}
