/* ═══ ALICIA TOOLTIP SYSTEM ═════════════════════════════════════════════════ */
#alicia-tip {
  position: fixed;
  z-index: 99999;
  max-width: 310px;
  min-width: 200px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition: opacity .15s ease, transform .15s ease;
  background: rgba(3,8,15,0.97);
  border: 1px solid rgba(56,189,248,0.22);
  border-radius: 10px;
  padding: 12px 15px 13px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6),
              0 0 0 1px rgba(56,189,248,0.06),
              inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.5;
}
#alicia-tip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Header row */
.tip-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.tip-icon {
  font-size: 14px;
  flex-shrink: 0;
}
.tip-title {
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Content sections */
.tip-section {
  margin-bottom: 6px;
  color: #94a3b8;
}
.tip-section:last-child { margin-bottom: 0; }
.tip-section strong {
  color: #38bdf8;
  font-weight: 600;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: block;
  margin-bottom: 2px;
}
.tip-section span {
  color: #cbd5e1;
  font-size: 11px;
}

/* Live data section (anomaly details) */
.tip-detail {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #64748b;
}
.tip-detail:empty { display: none; }
.tip-kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1px 0;
}
.tip-kv .tk { color: #475569; }
.tip-kv .tv { color: #94a3b8; font-weight: 700; }
.tip-kv .tv.warn { color: #f59e0b; }
.tip-kv .tv.crit { color: #ef4444; }
.tip-kv .tv.ok   { color: #10b981; }

/* Corr bar inside tooltip */
.tip-corr-wrap {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tip-corr-track {
  flex: 1; height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px; overflow: hidden;
}
.tip-corr-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #a855f7, #38bdf8);
  transition: width .3s ease;
}
