/* Paramètres → Agents : règles propres à la page (les composants viennent d’atk-ui). */

/* Pastille carrée d’une ligne (agent, jeton) : icône teintée, grisée si inactif. */
.agent-avatar {
  display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px;
  border-radius: var(--radius-small); background: var(--selection); color: var(--accent);
}
.agent-avatar-muted { background: var(--surface-2); color: var(--text-muted); }

/* Tickets en cours d’un agent : puces compactes qui passent à la ligne. */
.agent-claims { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.claim-chip {
  display: inline-flex; align-items: baseline; gap: var(--space-2); max-width: 100%;
  padding: 2px var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-small);
  background: var(--surface); color: var(--text); font-size: var(--text-sm); text-decoration: none;
}
.claim-chip:hover { border-color: var(--accent); }
.claim-key { flex: none; font-family: var(--mono); font-size: var(--text-xs); font-weight: 600; color: var(--accent); }
.claim-title { max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Onglets dans l’éditeur de ligne : panneau plus serré que sur une page. */
.agent-row .tab-panel { padding-top: var(--space-4); }
.agent-form { gap: var(--space-6); }
.agent-tokens, .agent-snippets { display: grid; gap: var(--space-4); min-width: 0; }

/* Portées d’un jeton : pastilles qui passent à la ligne. */
.token-scopes { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.token-secret code { overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .agent-avatar { width: 32px; height: 32px; }
  .claim-title { max-width: 24ch; }
}
