/* ============================================
   API Keys — agent / bearer auth (Phase 1)
   Loaded globally via the :app glob (no view-level stylesheet_link_tag).
   Uses design-system tokens only — no hardcoded colors/spacing.
   ============================================ */

.api-key-intro {
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 640px;
}

/* One-time plaintext reveal after minting a key */
.api-key-reveal {
  border: 1px solid var(--green);
  background: var(--green-tint);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}

.api-key-reveal-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.api-key-reveal-warning {
  color: var(--amber);
  font-size: 12px;
  margin-top: 8px;
}

.api-key-token-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.api-key-token-value {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--ink);
}

.api-key-prefix {
  font-family: var(--font-mono);
  color: var(--muted);
}

/* New-key form */
.api-key-form-card {
  max-width: 640px;
  margin-bottom: 32px;
}

.api-key-scope-options,
.api-key-grant-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.api-key-scope-option,
.api-key-grant-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.api-key-scope-option .api-key-scope-desc {
  color: var(--muted);
  font-size: 12px;
}

.api-key-all-companies {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px dashed var(--amber);
  border-radius: var(--radius-sm);
  background: var(--amber-tint);
}

/* Status pills reuse the shared badge conventions */
.api-key-status-active { color: var(--green); font-weight: 600; }
.api-key-status-revoked { color: var(--muted); }
.api-key-status-expired { color: var(--amber); font-weight: 600; }

.api-key-empty {
  color: var(--muted);
  padding: 24px 0;
}
