/* Hermes Neo Command Center — network monitor aesthetic */
.hm-neo { --hm-cyan: #00e5ff; --hm-mag: #ff2d95; --hm-lime: #b8ff3c; --hm-orange: #ff9f43; --hm-purple: #a855f7; --hm-gold: #ffd700; --hm-panel: #0d1219; --hm-border: rgba(0, 229, 255, 0.12); }

.hm-neo-header h1 { font-size: 1.65rem; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.hm-neo-header .hm-sub { color: var(--hm-cyan); font-size: 0.85rem; margin: 0.35rem 0 0; opacity: 0.85; }

/* ── KPI cards (neo style) ── */
.hm-neo-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}
@media (max-width: 1100px) { .hm-neo-kpi-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hm-neo-kpi-row { grid-template-columns: 1fr; } }

.hm-neo-kpi {
  position: relative;
  background: linear-gradient(160deg, rgba(13, 18, 25, 0.95), rgba(8, 12, 18, 0.98));
  border: 1px solid var(--hm-border);
  border-radius: 14px;
  padding: 1rem 1.1rem 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hm-neo-kpi:hover { border-color: rgba(0, 229, 255, 0.35); box-shadow: 0 0 24px rgba(0, 229, 255, 0.08); }
.hm-neo-kpi.highlight { border-color: var(--hm-gold); box-shadow: 0 0 20px rgba(255, 215, 0, 0.12); }

.hm-neo-kpi-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.hm-neo-ring {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--ring-color, var(--hm-cyan)) var(--ring-pct, 75%), rgba(255,255,255,0.06) 0);
  display: grid; place-items: center;
  box-shadow: 0 0 12px color-mix(in srgb, var(--ring-color, var(--hm-cyan)) 40%, transparent);
}
.hm-neo-ring-inner {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--hm-panel); display: grid; place-items: center;
  font-size: 1rem;
}
.hm-neo-kpi-label { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: #64748b; }
.hm-neo-kpi-value { font-size: 2rem; font-weight: 700; line-height: 1.1; color: #f1f5f9; font-variant-numeric: tabular-nums; }
.hm-neo-kpi-sub { font-size: 0.72rem; color: #64748b; margin-top: 0.15rem; }

/* Animated equalizer bars */
.hm-eq {
  display: flex; align-items: flex-end; justify-content: center; gap: 3px;
  height: 28px; margin-top: 0.65rem; padding-top: 0.35rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.hm-eq span {
  width: 5px; border-radius: 2px;
  background: linear-gradient(to top, rgba(0,229,255,0.3), var(--hm-cyan));
  animation: hmEq 0.55s ease-in-out infinite alternate;
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.35);
}
.hm-eq span:nth-child(1) { animation-delay: 0s; }
.hm-eq span:nth-child(2) { animation-delay: 0.08s; }
.hm-eq span:nth-child(3) { animation-delay: 0.16s; }
.hm-eq span:nth-child(4) { animation-delay: 0.24s; }
.hm-eq span:nth-child(5) { animation-delay: 0.32s; }
.hm-eq span:nth-child(6) { animation-delay: 0.12s; }
.hm-eq span:nth-child(7) { animation-delay: 0.2s; }
.hm-eq span:nth-child(8) { animation-delay: 0.28s; }
@keyframes hmEq {
  from { height: 18%; opacity: 0.45; }
  to { height: 92%; opacity: 1; }
}

/* ── Chart panels ── */
.hm-neo-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 900px) { .hm-neo-charts { grid-template-columns: 1fr; } }

.hm-chart-panel {
  background: var(--hm-panel);
  border: 1px solid var(--hm-border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  min-height: 280px;
}
.hm-chart-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem;
}
.hm-chart-head h3 {
  margin: 0; font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #94a3b8; font-weight: 600;
}
.hm-chart-head .hm-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 8px #22c55e; animation: hmPulse 2s infinite;
}
@keyframes hmPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hm-chart-head small { color: #475569; font-size: 0.7rem; }
.hm-chart-wrap { position: relative; height: 220px; }

/* ── Tabs ── */
.hermes-tabs {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  margin: 0 0 1rem; padding: 0.45rem;
  background: rgba(8, 12, 18, 0.8);
  border: 1px solid var(--hm-border);
  border-radius: 12px;
}
.hermes-tab {
  flex: 1 1 auto; min-width: 120px;
  padding: 0.8rem 1.1rem; font-size: 0.88rem; font-weight: 600;
  border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(100, 116, 139, 0.25);
  background: rgba(15, 23, 42, 0.7); color: #94a3b8;
  transition: all 0.15s;
}
.hermes-tab:hover { border-color: rgba(0, 229, 255, 0.4); color: #e2e8f0; }
.hermes-tab.active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(255, 215, 0, 0.08));
  border-color: var(--hm-gold); color: #fef9c3;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.15);
}

/* ── Team roster (no duplicate names) ── */
.hm-team { margin-bottom: 1rem; }
.hm-team h3 { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #64748b; margin: 0 0 0.6rem; }
.hm-team-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.85rem; margin-bottom: 0.45rem;
  background: rgba(13, 18, 25, 0.9);
  border: 1px solid var(--hm-border);
  border-radius: 10px;
}
.hm-team-card.online { border-left: 3px solid #22c55e; }
.hm-team-card .hm-role-badge {
  min-width: 52px; text-align: center;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 0.25rem 0.4rem; border-radius: 6px;
}
.hm-team-card .hm-role-ceo { background: rgba(255, 215, 0, 0.15); color: var(--hm-gold); border: 1px solid rgba(255,215,0,0.3); }
.hm-team-card .hm-role-cto { background: rgba(0, 229, 255, 0.12); color: var(--hm-cyan); border: 1px solid rgba(0,229,255,0.25); }
.hm-team-card .hm-person { flex: 1; }
.hm-team-card .hm-person strong { display: block; font-size: 0.95rem; color: #f1f5f9; }
.hm-team-card .hm-person small { color: #64748b; font-size: 0.72rem; }
.hm-team-card .hm-status-dot { width: 10px; height: 10px; border-radius: 50%; }
.hm-team-card .hm-status-dot.on { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.hm-team-card .hm-status-dot.off { background: #475569; }

.hermes-grid { display: grid; grid-template-columns: 260px 1fr; gap: 1rem; }
@media (max-width: 900px) { .hermes-grid { grid-template-columns: 1fr; } }
.hermes-sidebar { max-height: 72vh; overflow-y: auto; }
.hermes-conv-btn {
  display: flex; align-items: center; gap: 0.5rem; width: 100%; text-align: left;
  margin: 0.3rem 0; padding: 0.5rem 0.65rem;
  background: rgba(13, 18, 25, 0.8); border: 1px solid var(--hm-border);
  border-radius: 8px; color: #e2e8f0; cursor: pointer;
}
.hermes-conv-btn.active { border-color: var(--hm-cyan); box-shadow: 0 0 0 1px var(--hm-cyan); }
.hermes-conv-btn .conv-role { font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.35rem; border-radius: 4px; }

.hermes-feed { max-height: 72vh; display: flex; flex-direction: column; }
.hermes-messages { overflow-y: auto; flex: 1; padding: 0.5rem; }
.hermes-msg {
  margin-bottom: 0.65rem; padding: 0.6rem 0.8rem; border-radius: 8px;
  border-left: 3px solid rgba(100,116,139,0.4);
  background: rgba(13, 18, 25, 0.6);
}
.hermes-msg.msg-in { border-left-color: var(--hm-cyan); background: rgba(0, 229, 255, 0.04); }
.hermes-msg.msg-out { border-left-color: var(--hm-purple); background: rgba(168, 85, 247, 0.05); }
.hermes-msg-meta { font-size: 0.72rem; color: #64748b; display: flex; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.3rem; }
.hermes-msg-body { white-space: pre-wrap; word-break: break-word; font-size: 0.88rem; }

/* PA live */
.hermes-pa-header {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1rem; padding: 0.75rem 1rem;
  background: rgba(0, 229, 255, 0.05); border: 1px solid var(--hm-border); border-radius: 10px;
}
.hermes-pa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 900px) { .hermes-pa-grid { grid-template-columns: 1fr; } }
.hermes-pa-slot { border: 1px solid var(--hm-border); border-radius: 10px; overflow: hidden; background: var(--hm-panel); }
.hermes-pa-slot.status-loading { border-color: var(--hm-cyan); }
.hermes-pa-slot.status-completed { border-color: #22c55e; }
.hermes-pa-slot.status-failed { border-color: #ef4444; }
.hermes-pa-slot-head { display: flex; justify-content: space-between; padding: 0.5rem 0.75rem; background: rgba(0,0,0,0.3); }
.hermes-pa-slot-body { height: 200px; background: #060a10; display: grid; place-items: center; }
.hermes-pa-slot-body img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hermes-pa-placeholder { color: #64748b; font-size: 0.82rem; text-align: center; padding: 1rem; }
.hermes-pa-slot-foot { padding: 0.4rem 0.75rem; font-size: 0.72rem; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.status-badge { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; padding: 0.15rem 0.4rem; border-radius: 4px; }
.status-badge.loading { background: rgba(0,229,255,0.15); color: var(--hm-cyan); }
.status-badge.completed { background: rgba(34,197,94,0.15); color: #22c55e; }
.status-badge.failed { background: rgba(239,68,68,0.12); color: #ef4444; }
.status-badge.waiting, .status-badge.idle { background: rgba(100,116,139,0.15); color: #94a3b8; }
.status-badge.running, .status-badge.comparing { background: rgba(255,159,67,0.15); color: var(--hm-orange); }

.hermes-graph-canvas { height: 480px; border: 1px solid var(--hm-border); border-radius: 10px; background: #060a10; }
.hermes-search-bar { display: flex; gap: 0.5rem; margin: 1rem 0; }
.hermes-search-bar .form-input { flex: 1; }
.hermes-search-hit { padding: 0.65rem; border-bottom: 1px solid var(--hm-border); }
.hermes-control-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.hermes-info-list { list-style: none; padding: 0; }
.hermes-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag { padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.78rem; }
.tag-ok { background: rgba(34,197,94,0.15); color: #22c55e; }
.tag-block { background: rgba(239,68,68,0.12); color: #ef4444; }
.tag-pa { background: rgba(168,85,247,0.15); color: var(--hm-purple); }
.hermes-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.hermes-events { max-height: 360px; overflow-y: auto; }
.hermes-event { padding: 0.45rem 0; border-bottom: 1px solid var(--hm-border); }
.panel-header { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; margin-bottom: 0.65rem; }
.hermes-select { max-width: 200px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.dot-in { background: var(--hm-cyan); }
.dot-out { background: var(--hm-purple); }
.dot-edge { background: var(--hm-orange); }
