/* --- 4. VISTA AGENCIA: MI EQUIPO (4 SLOTS), NIVELES 1-10, SINERGIAS, GUIA DE ROLES Y TOOLTIP --- */

.agency-tab-pane {
  display: none;
}

.agency-tab-pane.active {
  display: block;
}

.ag-roles-guide-card {
  width: min(760px, 96%);
}

#ag-roles-guide-overlay .int-guide-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ag-roles-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 7px;
}

.ag-role-guide-item {
  background: #0b1226;
  border: 2px solid #334155;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ag-role-icon-box {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090e1c;
  border: 2px solid #475569;
}

.ag-role-guide-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ag-role-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ag-role-guide-head strong {
  font-family: var(--font-px-title) !important;
  font-size: clamp(12px, 1.5vmin, 15px);
}

.ag-role-guide-desc {
  font-size: clamp(10px, 1.25vmin, 12px);
  line-height: 1.3;
  color: #cbd5e1;
}

.int-tier-unlock-card {
  width: min(440px, 92%);
}

/* Ventana ejecutiva 32-bit centrada al clicar un puesto de la Oficina */

.ag-role-guide-cat {
  font-family: var(--font-px-title) !important;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 5px;
  background: #1e293b;
  border: 1px solid #475569;
  color: #cbd5e1;
}

.ag-role-guide-desc {
  font-size: 14.5px;
  line-height: 1.15;
  color: #e2e8f0;
}

.int-role-hover-wrap {
  cursor: help !important;
  border-color: rgba(37, 99, 235, 0.55) !important;
}

.int-role-q {
  font-family: var(--font-px-title) !important;
  font-size: 11px;
  color: #1d4ed8;
  margin-left: 3px;
}

.ag-role-tooltip {
  position: fixed;
  z-index: 990;
  pointer-events: none;
  background: #0b1226;
  border: 2px solid #ffd447;
  box-shadow: 3px 4px 0 #050812;
  padding: 7px 9px;
  max-width: 260px;
  color: #f8fafc;
  display: none;
  flex-direction: column;
  gap: 3px;
}

.ag-role-tip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ag-role-tip-head strong {
  font-family: var(--font-px-title) !important;
  font-size: 16px;
}

.ag-role-tip-cat {
  font-family: var(--font-px-title) !important;
  font-size: 11.5px;
  padding: 1px 5px;
  background: #1e293b;
  border: 1px solid #475569;
  color: #cbd5e1;
}

.ag-role-tip-desc {
  font-size: 15px;
  line-height: 1.15;
  color: #e2e8f0;
}

.ag-role-tip-pas {
  font-size: 14px;
  line-height: 1.15;
  color: #fde047;
}

/* --- 5. BARRA DE EQUIPO EN VIVO DENTRO DE #view-game --- */
.agency-injected-syn-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  padding: 2px 4px;
}

.agency-live-bar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #0c1428;
  border: 2px solid #2e4b8a;
  padding: 3px 5px;
  margin-bottom: 2px;
}

.ag-live-signal {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border: 1px solid #334155;
  background: #080d1a;
  color: #93c5fd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-live-signal.bull {
  border-color: #22c55e;
  color: #86efac;
  background: #052e16;
}

.ag-live-signal.bear {
  border-color: #ef4444;
  color: #fca5a5;
  background: #3b0a12;
}

.ag-live-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.ag-live-card {
  background: #131f3d;
  border: 2px solid #475569;
  padding: 2px 4px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ag-live-card-top {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #cbd5e1;
}

.ag-live-card-meta {
  font-size: 8px;
  color: #94a3b8;
}

.ag-live-cd-txt {
  font-size: 8.5px;
  font-weight: 700;
  color: #60a5fa;
  text-align: center;
  padding: 1px 0;
}

.ag-live-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.ag-live-act-btn {
  border: 2px solid #0f172a;
  padding: 1px 3px;
  font-family: var(--font-px-title);
  font-size: 8.5px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: #334155;
}

.ag-live-act-btn.bull { background: #16a34a; }
.ag-live-act-btn.bear { background: #dc2626; }
.ag-live-act-btn.gold { background: #d97706; }
.ag-live-act-btn.green { background: #0d9488; }

.ag-live-act-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #1e293b;
}

