.atlas-pilot-control,
.atlas-pilot-panel {
  font-family: Inter, system-ui, sans-serif;
  color: #f6f1e7;
}

.atlas-pilot-control {
  max-width: min(344px, calc(100vw - 26px));
}

.atlas-pilot-launch {
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: #101b24;
  color: #fff;
  padding: 9px 13px;
  font: 700 12px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: .02em;
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
  cursor: pointer;
}

.atlas-pilot-launch[aria-expanded="true"] { background: #0d6671; }

.atlas-pilot-panel {
  width: min(340px, calc(100vw - 30px));
  max-height: min(72vh, 680px);
  overflow: auto;
  margin-top: 7px;
  border: 1px solid rgba(103,232,249,.62);
  border-radius: 12px;
  background: rgba(5,18,27,.96);
  box-shadow: 0 10px 30px rgba(0,0,0,.42);
  color: #f6f1e7;
  scrollbar-color: #53727c #0c1b24;
}

.atlas-pilot-panel[hidden] { display: none !important; }
.atlas-pilot-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 13px 9px; border-bottom:1px solid rgba(148,163,184,.22); }
.atlas-pilot-head strong { color:#67e8f9; font-size:12px; letter-spacing:.08em; text-transform:uppercase; }
.atlas-pilot-close { border:0; background:transparent; color:#fff; font-size:20px; cursor:pointer; }
.atlas-pilot-body { padding:10px 13px 13px; }
.atlas-pilot-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin:0 0 10px; }
.atlas-pilot-metric { padding:7px 8px; border-radius:8px; background:#10252e; border:1px solid rgba(103,232,249,.15); }
.atlas-pilot-metric b { display:block; font:700 16px/1.2 Inter,system-ui,sans-serif; color:#fde68a; }
.atlas-pilot-metric span { display:block; margin-top:2px; font-size:10px; line-height:1.25; color:#cbd5e1; }
.atlas-pilot-label { display:block; margin:9px 0 4px; color:#cbd5e1; font-size:11px; font-weight:650; }
.atlas-pilot-panel select { width:100%; min-height:34px; padding:6px 8px; border:1px solid #49616c; border-radius:7px; background:#0b1720; color:#fff; font:12px Inter,system-ui,sans-serif; }
.atlas-pilot-views { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; margin:10px 0; }
.atlas-pilot-views button { min-height:34px; padding:5px; border:1px solid #38545f; border-radius:7px; background:#122630; color:#e5edf0; font:650 10px/1.2 Inter,system-ui,sans-serif; cursor:pointer; }
.atlas-pilot-views button[aria-pressed="true"] { border-color:#67e8f9; background:#0d6671; color:#fff; }
.atlas-pilot-count { margin:8px 0; font-size:12px; line-height:1.4; color:#fff; }
.atlas-pilot-note { margin:8px 0; color:#cbd5e1; font-size:10px; line-height:1.45; }
.atlas-pilot-warning { color:#fde68a; }
.atlas-pilot-link { color:#67e8f9; text-decoration:underline; }
.atlas-pilot-state-table { width:100%; border-collapse:collapse; margin-top:9px; font-size:10px; }
.atlas-pilot-state-table th,.atlas-pilot-state-table td { padding:4px 3px; border-bottom:1px solid rgba(148,163,184,.17); text-align:right; }
.atlas-pilot-state-table th:first-child,.atlas-pilot-state-table td:first-child { text-align:left; }
.atlas-pilot-state-table th { color:#67e8f9; font-weight:700; }
.atlas-pilot-legend,.atlas-pilot-analytics { margin:10px 0; padding:9px; border:1px solid rgba(103,232,249,.18); border-radius:8px; background:rgba(16,37,46,.72); }
.atlas-pilot-legend strong,.atlas-pilot-analytics-head strong { display:block; margin-bottom:6px; color:#67e8f9; font-size:11px; }
.atlas-pilot-legend-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px 8px; font-size:10px; }
.atlas-pilot-legend-grid span { display:flex; align-items:center; gap:5px; overflow-wrap:anywhere; }
.atlas-pilot-legend-grid i { display:inline-block; width:10px; height:10px; flex:0 0 10px; border-radius:50%; background:var(--legend-color); border:1px solid rgba(255,255,255,.55); }
.atlas-pilot-legend small { display:block; margin-top:7px; color:#cbd5e1; font-size:9px; line-height:1.4; }
.atlas-pilot-analytics-head span { display:block; color:#e2e8f0; font-size:10px; line-height:1.4; }
.atlas-pilot-analytics details { margin-top:7px; }
.atlas-pilot-analytics summary { cursor:pointer; color:#f6f1e7; font-size:11px; font-weight:650; }
.atlas-pilot-table-scroll { max-width:100%; overflow:auto; }
.atlas-pilot-table-scroll .atlas-pilot-state-table { min-width:520px; }
.atlas-pilot-group-records { max-height:290px; overflow:auto; }
.atlas-pilot-popup hr { border:0; border-top:1px solid #cbd5e1; margin:10px 0; }
.atlas-pilot-popup { min-width:190px; max-width:280px; color:#10202a; font:12px/1.4 Inter,system-ui,sans-serif; }
.atlas-pilot-popup h3 { margin:0 0 6px; font-size:14px; }
.atlas-pilot-popup dl { display:grid; grid-template-columns:auto 1fr; gap:3px 8px; margin:0; }
.atlas-pilot-popup dt { color:#475569; font-weight:650; }
.atlas-pilot-popup dd { margin:0; overflow-wrap:anywhere; }

@media (max-width: 720px) {
  .atlas-pilot-control { max-width:calc(100vw - 18px); }
  .atlas-pilot-panel { width:min(315px,calc(100vw - 22px)); max-height:62vh; }
  .atlas-pilot-launch { padding:8px 10px; font-size:11px; }
  .atlas-pilot-views button { font-size:9px; }
  .atlas-pilot-table-scroll .atlas-pilot-state-table { min-width:500px; }
}
