/* ── TYPESAFE AI DECISION TELEMETRY HUD ─────────────────────────────────
   Floating machine-native telemetry dashboard in bottom right.
   ───────────────────────────────────────────────────────────────────────── */

.decision-hud {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9990;
  width: 330px;
  max-width: calc(100vw - 30px);
  background: #0A0A0F;
  border: 1px solid rgba(255, 102, 0, 0.35);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 102, 0, 0.1);
  font-family: var(--f-mono, ui-monospace, 'Cascadia Mono', monospace);
  color: #E2E2E8;
  overflow: hidden;
  user-select: none;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

.decision-hud-header {
  height: 32px;
  background: #121218;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  cursor: pointer;
}

.hud-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
}

.hud-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF6600;
  box-shadow: 0 0 6px #FF6600;
  animation: hud-dot-pulse 1.8s infinite ease-in-out;
}

@keyframes hud-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.hud-toggle-btn {
  background: transparent;
  border: none;
  color: #8C8C9A;
  font-family: inherit;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}

.hud-toggle-btn:hover {
  color: #FF6600;
  background: rgba(255, 102, 0, 0.1);
}

.decision-hud-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.72rem;
  line-height: 1.4;
}

.hud-subject-tag {
  color: #FF6600;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  border-bottom: 1px dashed rgba(255, 102, 0, 0.25);
  padding-bottom: 4px;
}

.hud-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.hud-label {
  color: #7A7A8C;
}

.hud-value {
  color: #E2E2E8;
  text-align: right;
  font-weight: 500;
}

.hud-value.accent {
  color: #00D4B2;
}

.hud-confidence-bar {
  width: 100%;
  height: 4px;
  background: #1A1A24;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 3px;
}

.hud-confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6600, #03AA5C);
  width: 98%;
  transition: width 0.4s ease;
}

/* Collapsed state */
.decision-hud.is-collapsed .decision-hud-body {
  display: none;
}

@media (max-width: 600px) {
  .decision-hud {
    bottom: 12px;
    right: 12px;
    width: 270px;
  }
}
