/**
 * AI Command Center — Agents (CEO & CTO)
 * CEO Operating Rhythm and CTO Autonomous Growth Engineering styles.
 */
/* ==========================================================================
   GROUP AI CTO: AUTONOMOUS GROWTH ENGINEERING STYLES
   ========================================================================== */

.cto-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cto-health-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cto-health-card:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.12);
}

.cto-health-card .label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cto-health-card .score {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.cto-health-card .score span {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
}

.cto-health-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.2rem;
}

.cto-health-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Priority Tier Badges */
.cto-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cto-tier-critical {
  background: #ffe4e6;
  color: #be123c;
  border: 1px solid #fecdd3;
  font-weight: 700;
}

.cto-tier-high {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
  font-weight: 700;
}

.cto-tier-medium {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-weight: 700;
}

.cto-tier-low {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  font-weight: 700;
}

[data-theme="dark"] .cto-tier-critical {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .cto-tier-high {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

[data-theme="dark"] .cto-tier-medium {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

[data-theme="dark"] .cto-tier-low {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Category Filter Tabs */
.cto-filter-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.cto-filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cto-filter-pill:hover,
.cto-filter-pill.active {
  background: #f3e8ff;
  border-color: #d8b4fe;
  color: #6b21a8;
  font-weight: 700;
}

[data-theme="dark"] .cto-filter-pill {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
}

[data-theme="dark"] .cto-filter-pill:hover,
[data-theme="dark"] .cto-filter-pill.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: #c084fc;
  color: #e9d5ff;
}

/* Opportunity Cards */
.cto-opportunity-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.cto-opportunity-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

.cto-opp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cto-opp-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.cto-opp-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.cto-opp-evidence {
  font-size: 0.76rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
}

.cto-opp-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 0.65rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Autonomous Queue List */
.cto-queue-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.cto-queue-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(147, 51, 234, 0.3);
}

