/* Connection → API (docs/05-views.md, mockup "keyline") */
.keyline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-left: 4px solid var(--lime);
  border-radius: var(--radius);
  background: var(--lime-tint);
  color: var(--on-lime-tint);
}

.keyline code {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
  user-select: all;
}

/* Holds its hidden text, so the text stays inside the table's scroll area on a phone. */
.api-keys__never-used {
  position: relative;
}

/* A revoked key's chip, time and revoker, below its name (#1205). */
.api-keys__revocation {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.api-keys__empty {
  color: var(--muted);
}

/* Profile → "Your own AI": the MCP connection (its token banner is the keyline above), the AI view
   control and, for an Admin, the hint where the organization's API keys are managed. */
.profile__ai h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.profile__ai .note {
  margin: 0 0 12px;
}

.profile__connection {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: var(--border);
}

.profile__api-keys {
  margin: 16px 0 0;
}

/* The new token's banner in "Your own AI": its message, then the token and the instruction for the AI,
   each a read-only field with its own copy button (profiles/_copy_field, #2633). */
.profile__new-token {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
}

.profile__new-token > p {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
}

.profile__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin-bottom: 12px;
}

.profile__new-token .profile__copy {
  margin-bottom: 0;
}

.profile__copy-label {
  font-size: 13px;
  font-weight: 600;
}

.profile__copy-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
}

.profile__copy-value {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  user-select: all;
}

/* The token stays on one line and scrolls inside its field. */
.profile__copy-value--mono {
  font-family: var(--f-mono);
  white-space: nowrap;
  overflow-x: auto;
  overflow-wrap: normal;
}

.profile__copy-row .btn {
  flex: none;
}

.profile__instruction-hint {
  margin: -6px 0 12px;
  color: var(--muted);
}
