/* ============ Agent Access Section ============ */
.agent-section {
    margin-bottom: 32px;
}

.agent-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.agent-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.agent-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.agent-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.agent-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* API Key List */
.api-key-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.api-key-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.api-key-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.api-key-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.api-key-item-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Agent Prompt */
.agent-prompt-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 12px;
    overflow-x: auto;
}

.agent-prompt-text {
    font-size: 12px;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.6;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
    margin: 0;
}

.agent-prompt-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-prompt-hint {
    font-size: 13px;
    color: var(--text-muted);
}

/* API Key Display (after creation) */
.api-key-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--warning);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--warning);
    text-align: center;
}

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

.api-key-display input {
    flex: 1;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
    font-size: 13px;
}

.api-key-hint {
    font-size: 13px;
    color: var(--text-muted);
}

.api-key-hint code {
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Event log (SSE tab) */
.event-log {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    height: 400px;
    overflow-y: auto;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
}

.event-entry {
    padding: 2px 0;
    border-bottom: 1px solid var(--border);
}
.event-entry:last-child { border-bottom: none; }
.event-upload { color: var(--success); }
.event-delete { color: var(--danger); }
.event-move { color: var(--primary); }
.event-folder_create { color: var(--accent); }
.event-folder_delete { color: var(--warning); }

@media (max-width: 768px) {
    .agent-content {
        grid-template-columns: 1fr;
    }
}

