/* PangeaGTM Company Agent (7016) + Prospect Tracking (7018) — ported patterns, Ma Capsule shell */

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

.agent-hub-card {
  background: var(--card);
  border: 1.5px solid var(--bdr);
  border-radius: var(--r18);
  padding: 22px;
  box-shadow: var(--s1);
  transition: var(--tr);
  text-decoration: none;
  color: inherit;
  display: block;
}

.agent-hub-card:hover {
  box-shadow: var(--s2);
  border-color: #c4b5fd;
}

.agent-hub-card h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-hub-card p {
  font-size: 13px;
  color: var(--t2);
  margin: 0;
  line-height: 1.5;
}

.agent-hub-card .ah-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.agent-hub-card.company .ah-ico {
  background: linear-gradient(135deg, #6f42c1, #8b5cf6);
}

.agent-hub-card.prospect .ah-ico {
  background: linear-gradient(135deg, #0d47a1, #1a237e);
}

/* Horizontal subnav (replaces fixed Bootstrap sidebar from Pangea) */
.agent-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  padding: 8px;
  background: var(--bg2);
  border-radius: var(--r18);
  border: 1.5px solid var(--bdr);
}

.agent-tabs a {
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--t2);
  text-decoration: none;
  transition: var(--tr);
}

.agent-tabs a:hover {
  background: var(--card);
  color: var(--text);
}

.agent-tabs a.active {
  background: var(--gp);
  color: #fff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.agent-tabs.prospect a.active {
  background: linear-gradient(135deg, #0d47a1, #3949ab);
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}

/* Stat row — Company Agent colour hints */
.crew-stat-warn {
  border-left: 4px solid #ffc107;
}

.crew-stat-ok {
  border-left: 4px solid #11998e;
}

.crew-stat-danger {
  border-left: 4px solid #eb3349;
}

.crew-stat-info {
  border-left: 4px solid #13a6c3;
}

.crew-stat-muted {
  border-left: 4px solid #6c757d;
}

.crew-placeholder {
  background: var(--bg2);
  border: 1.5px dashed var(--bdr);
  border-radius: var(--r18);
  padding: 20px 22px;
  font-size: 13px;
  color: var(--t2);
  line-height: 1.6;
}

.crew-placeholder code {
  background: var(--card);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}

.badge-pestel,
.badge-swot,
.badge-mcp {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  margin: 2px;
}

.badge-pestel {
  background: rgba(139, 92, 246, 0.2);
  color: var(--purple);
}

.badge-swot {
  background: rgba(17, 153, 142, 0.2);
  color: var(--green);
}

.badge-mcp {
  background: rgba(19, 166, 195, 0.2);
  color: #0e7490;
}
