/* ApiWidget — shared API Access modal (api-widget.js): key management +
   docs links. Modal shell comes from agents-widget.css (.aw-*); these are
   the key-list styles. Loaded by both products. */

.auth-submit-btn {
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: white;
    background: var(--blue, #2451c9);
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.auth-submit-btn:hover {
    background: var(--blue-deep, #1a3d9e);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* API / Agents Modals */
.api-modal-card {
    max-width: 640px;
}

.modal-subtitle {
    margin: 4px 0 0;
    color: var(--text-muted, #9ca3af);
    font-size: 13px;
    line-height: 1.45;
}

.api-keys-list {
    margin-bottom: 16px;
}

.api-key-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border, rgba(55, 65, 81, 0.12));
}

.api-key-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.api-key-prefix {
    font-size: 13px;
    color: var(--text, #374151);
}

.api-key-label {
    font-size: 12px;
    color: var(--text-light, #6b7280);
}

.api-key-meta {
    font-size: 11px;
    color: var(--text-muted, #9ca3af);
}

.api-key-revoke {
    font-size: 12px;
    color: var(--error, #ef4444);
    background: none;
    border: 1px solid var(--error, #ef4444);
    border-radius: 4px;
    padding: 3px 8px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.api-key-revoke:hover {
    background: var(--error, #ef4444);
    color: white;
}

.api-key-created {
    background: var(--bg, #fdfcf9);
    border: 1px solid var(--border, rgba(55, 65, 81, 0.12));
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.api-key-warning {
    font-size: 12px;
    color: #f59e0b;
    margin-bottom: 8px;
    font-weight: 500;
}

.api-key-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-key-display code {
    font-size: 12px;
    background: var(--border, rgba(55, 65, 81, 0.12));
    padding: 6px 10px;
    border-radius: 4px;
    flex: 1;
    word-break: break-all;
}

.api-key-generate {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.api-key-label-input {
    flex: 1;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid var(--border, rgba(55, 65, 81, 0.12));
    border-radius: 6px;
    background: var(--bg, #fdfcf9);
    color: var(--text, #374151);
    font-family: inherit;
}

.api-key-label-input::placeholder {
    color: var(--text-muted, #9ca3af);
}

.api-key-note {
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 16px;
}

.api-doc-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.api-doc-link {
    font-size: 13px;
    color: var(--blue, #2451c9);
    text-decoration: none;
    padding: 6px 0;
}

.api-doc-link:hover {
    text-decoration: underline;
}

.api-doc-button {
    padding: 6px 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

