/* ── Session Drawer AI Insight Section (sessions-session-insight-panel.js) ──
   Read-only "quick AI summary" convenience for browsing a single session.
   Follows the same .drw-* structural conventions as the other drawer
   sections (sessions-matrix-drawer.css / feedback.css's Admin Feedback
   section) rather than introducing a new naming scheme. */

.drw-ai-summary-section {
    border-top: 1px solid var(--border-default);
    padding-top: var(--space-4);
    margin-top: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.drw-ai-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.drw-ai-summary-title {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.drw-ai-summary-cached-badge {
    font-size: var(--text-xs);
    color: var(--fg-tertiary);
    font-style: italic;
}

.drw-ai-summary-btn {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
    background: transparent;
    color: var(--fg-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.drw-ai-summary-btn:hover:not(:disabled) {
    background: var(--bg-surface-alt);
    color: var(--fg-primary);
}

.drw-ai-summary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.drw-ai-summary-btn--primary {
    background: var(--color-primary-600);
    border-color: var(--color-primary-600);
    color: var(--bg-surface);
}

.drw-ai-summary-btn--primary:hover:not(:disabled) {
    background: var(--color-primary-700);
    border-color: var(--color-primary-700);
    color: var(--bg-surface);
}

.drw-ai-summary-body {
    display: flex;
    flex-direction: column;
}

.drw-ai-summary-empty {
    font-size: var(--text-sm);
    color: var(--fg-tertiary);
    font-style: italic;
    margin: 0;
}

.drw-ai-summary-error {
    font-size: var(--text-sm);
    color: var(--fg-danger);
    margin: 0 0 var(--space-2);
}

.drw-ai-summary-content {
    background: var(--bg-page);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
}
.drw-ai-summary-content > *:last-child {
    margin-bottom: 0;
}
