/* overlay.css — translucent glass panels floating over the HUD. Token vars only. */

.hud-panel-wrap {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.hud-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0.45);
  backdrop-filter: blur(2px);
}

.hud-panel {
  position: relative;
  width: min(860px, 92vw);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--accent-glow), 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: fadeInUp var(--dur-med) var(--ease) both;
}

.hud-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline);
}

.hud-panel-title {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.2em;
}

.hud-panel-close {
  color: var(--text-faint);
  font-size: 22px;
  line-height: 1;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.hud-panel-close:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.hud-panel-body {
  padding: 20px;
  overflow-y: auto;
  min-height: 120px;
}

/* health view — three titled sections: breakers / providers / anomalies */
.health-section { margin-bottom: 20px; }
.health-section:last-child { margin-bottom: 0; }

.health-section-title {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  padding: 0 0 8px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 6px;
}

.health-breakers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px 18px;
}

.health-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 4px;
  font-size: 12px;
  color: var(--text);
}

.health-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  align-self: center;
}
.health-dot-ok { background: var(--status-ok); box-shadow: 0 0 6px var(--status-ok); }
.health-dot-degraded { background: var(--status-degraded); box-shadow: 0 0 6px var(--status-degraded); }
.health-dot-warn { background: var(--status-warn); box-shadow: 0 0 6px var(--status-warn); }

.health-item-name { flex: 1; text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.health-item-state { font-size: 10px; letter-spacing: 0.08em; flex-shrink: 0; }
.health-item-detail { font-size: 10px; color: var(--text-faint); flex-shrink: 0; }
.health-fails { font-size: 10px; color: var(--status-warn); }

.health-item .status-ok { color: var(--status-ok); }
.health-item .status-degraded { color: var(--status-degraded); }
.health-item .status-warn { color: var(--status-warn); }

.health-anomaly-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--text-dim);
  border-left: 2px solid var(--status-degraded);
  margin-bottom: 4px;
}
.health-anomaly-time { color: var(--text-faint); font-size: 10px; flex-shrink: 0; }
.health-anomaly-kind { color: var(--status-degraded); flex-shrink: 0; }
.health-anomaly-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* audit view rows (new P9 view) */
.audit-row {
  display: flex;
  gap: 14px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-dim);
}
.audit-row .mono:first-child { color: var(--accent); min-width: 28px; }
