.agent-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.agent-card {
  background: rgba(10, 15, 30, 0.92);
  border: 1px solid rgba(96, 116, 255, 0.30);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 0 18px rgba(255, 0, 240, 0.12), 0 0 18px rgba(22, 224, 255, 0.10);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.agent-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 224, 255, 0.52);
}

.agent-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.agent-name {
  font-size: 1.05rem;
  font-weight: 800;
}

.agent-version {
  color: var(--muted);
  font-size: 0.92rem;
}

.agent-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.14);
  white-space: nowrap;
}

.badge-proposed {
  background: rgba(255, 216, 77, 0.16);
  color: var(--yellow);
}

.badge-installed {
  background: rgba(22, 224, 255, 0.16);
  color: var(--cyan);
}

.badge-enabled {
  background: rgba(77, 255, 147, 0.16);
  color: var(--green);
}

.badge-disabled {
  background: rgba(255, 93, 122, 0.16);
  color: var(--red);
}

.meter-block {
  margin: 12px 0 14px;
}

.meter-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.meter-track {
  width: 100%;
  height: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.meter-fill {
  height: 100%;
  width: 0%;
  transition: width 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.fill-proposed {
  background: linear-gradient(90deg, rgba(255,216,77,0.45), rgba(255,216,77,0.95));
  box-shadow: 0 0 14px rgba(255,216,77,0.22);
}

.fill-installed {
  background: linear-gradient(90deg, rgba(22,224,255,0.45), rgba(22,224,255,0.95));
  box-shadow: 0 0 14px rgba(22,224,255,0.22);
}

.fill-enabled {
  background: linear-gradient(90deg, rgba(77,255,147,0.45), rgba(77,255,147,0.95));
  box-shadow: 0 0 14px rgba(77,255,147,0.22);
}

.fill-disabled {
  background: linear-gradient(90deg, rgba(255,93,122,0.45), rgba(255,93,122,0.95));
  box-shadow: 0 0 14px rgba(255,93,122,0.22);
}

.agent-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.agent-actions .action-btn {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.agent-commands {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .agent-actions {
    grid-template-columns: 1fr;
  }
}
