/* =================================================================
 * CONTEXT & SESSION HISTORY WINDOWS
 * ================================================================= */

/* --- Modal Overlay (Background) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

/* --- Context Window Panel (The actual window) --- */
.context-window-panel {
    position: relative;
    width: 98%;
    max-width: 1100px;
    height: 85vh;
    max-height: 700px;
    background: var(--window-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- Main Context Window (Legacy - keeping for compatibility) --- */
.context-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 98%;
    max-width: 1100px;
    height: 90vh;
    background: var(--window-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
    z-index: var(--z-context-window);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.context-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--elevated-bg);
    transition: all 0.3s ease;
}

.context-header.hidden-for-detail {
    display: none;
}

.context-header .header-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.context-header .header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.context-header h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
}

.sync-context-btn {
    display: none !important;
}

.close-context-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
}

.close-context-btn:hover {
    background: var(--hover-bg);
    color: var(--accent-color);
}

.context-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    position: relative;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    /* Smooth scroll anchoring */
    overflow-anchor: auto;
}

.context-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* --- List and Detail Views --- */
#context-list-view {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#context-list-view.hidden {
    display: none;
}

#context-detail-view {
    display: block;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

#context-detail-view::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

#context-detail-view.hidden {
    display: none;
}

/* =================================================================
 * FLAT TITLE SESSION LIST — GLASS UI EDITION
 * ================================================================= */

/* Staggered entrance animation */
@keyframes sessionItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Date group separator */
.session-date-group {
    display: flex;
    flex-direction: column;
}

.session-date-group-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0.55;
    user-select: none;
}

.session-date-group-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0.08), transparent);
}

.session-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    box-shadow: none;
    padding: 13px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    min-height: 48px;
    /* Entrance animation */
    animation: sessionItemFadeIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
    transition: background 0.18s ease;
    position: relative;
}

.session-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 2px;
    background: var(--accent-color);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transform: scaleY(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.session-item:last-child {
    border-bottom: none;
}

.session-item:hover {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.05);
}

.session-item:hover::before {
    opacity: 0.7;
    transform: scaleY(1);
}

.session-item:active {
    background: rgba(255, 255, 255, 0.08);
}

.dark-mode .session-item:hover {
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.04);
}

/* Stagger delay helpers (applied by JS using data-index) */
.session-item[data-anim-index="0"]  { animation-delay: 0ms; }
.session-item[data-anim-index="1"]  { animation-delay: 20ms; }
.session-item[data-anim-index="2"]  { animation-delay: 40ms; }
.session-item[data-anim-index="3"]  { animation-delay: 60ms; }
.session-item[data-anim-index="4"]  { animation-delay: 80ms; }
.session-item[data-anim-index="5"]  { animation-delay: 100ms; }
.session-item[data-anim-index="6"]  { animation-delay: 120ms; }
.session-item[data-anim-index="7"]  { animation-delay: 140ms; }
.session-item[data-anim-index="8"]  { animation-delay: 160ms; }
.session-item[data-anim-index="9"]  { animation-delay: 180ms; }
.session-item[data-anim-index="10"] { animation-delay: 200ms; }
.session-item[data-anim-index="11"] { animation-delay: 215ms; }
.session-item[data-anim-index="12"] { animation-delay: 228ms; }
.session-item[data-anim-index="13"] { animation-delay: 240ms; }
.session-item[data-anim-index="14"] { animation-delay: 250ms; }

.session-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    overflow: hidden;
}

.session-title {
    font-weight: 400;
    color: var(--text-color);
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    transition: color 0.18s ease;
}

.session-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.5;
    white-space: nowrap;
    flex-shrink: 0;
}

.session-arrow {
    font-size: 0.6rem;
    color: var(--text-secondary);
    opacity: 0.25;
    flex-shrink: 0;
    transition: opacity 0.18s ease, transform 0.2s cubic-bezier(0.4,0,0.2,1);
}

.session-item:hover .session-arrow {
    opacity: 0.55;
    transform: translateX(3px);
}

.session-item:hover .session-title {
    color: var(--accent-color);
}

/* Hide old meta */
.session-meta {
    display: none;
}

/* =================================================================
 * PAST SESSION HEADER (Full-screen sticky bar) — GLASS UI EDITION
 * ================================================================= */

@keyframes pastHeaderSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.past-session-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    /* Glassmorphism surface */
    background: rgba(14, 14, 18, 0.72);
    -webkit-backdrop-filter: blur(28px) saturate(1.8);
    backdrop-filter: blur(28px) saturate(1.8);
    /* Luminous bottom border */
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    /* Subtle top rim light */
    box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset,
                0 4px 20px rgba(0,0,0,0.25);
    margin: 0 -14px;
    width: calc(100% + 28px);
    animation: pastHeaderSlideDown 0.24s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.past-session-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.past-session-back-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.past-session-back-btn:active {
    transform: scale(0.93);
}

.past-session-title {
    flex: 1;
    min-width: 0;
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.015em;
    opacity: 0.9;
}

.past-session-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* --- Session Selection Controls --- */
.selection-controls {
    grid-column: 1 / -1;
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.selection-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.selection-actions.hidden {
    display: none;
}

.selected-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.use-selected-btn,
.clear-selection-btn {
    padding: 5px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.use-selected-btn {
    background: var(--accent-color);
    color: white;
}

.clear-selection-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.use-selected-btn:hover {
    background: var(--accent-hover);
}

.clear-selection-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.session-select {
    padding-top: 1px;
}

.session-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: var(--window-bg);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 12px;
    font-weight: bold;
    color: white;
    transition: all 0.2s ease;
}

.session-item:hover .custom-checkbox {
    border-color: var(--accent-color);
}

.session-checkbox:checked+.custom-checkbox {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.session-checkbox:checked+.custom-checkbox::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Legacy support for old checkbox-label class */
.checkbox-label {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--window-bg);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-label i.fa-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 12px;
    color: white;
    transition: all 0.2s ease;
}

.session-item:hover .checkbox-label {
    border-color: var(--accent-color);
}

.session-checkbox:checked+.checkbox-label {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.session-checkbox:checked+.checkbox-label i.fa-check {
    transform: translate(-50%, -50%) scale(1);
}

.session-item.selected {
    border-color: var(--accent-color);
    background-color: var(--accent-muted);
}

.dark-mode .session-item.selected {
    background-color: rgba(60, 80, 220, 0.15);
    border-color: var(--primary-700);
}

/* --- Session Detail View (Unified History) --- */
.session-details-view .conversation-messages {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 16px 24px;
    box-shadow: none;
}

/* =================================================================
 * UNIFIED CONTEXT/FILE VIEWER (POPUP)
 * ================================================================= */

.selected-context-viewer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 98%;
    max-width: 700px;
    height: 85vh;
    background: var(--window-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    z-index: var(--z-selected-context-viewer);
}

.selected-context-viewer.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.context-viewer-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.context-viewer-header h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-color);
    margin: 0;
}

.context-viewer-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--elevated-bg);
}

.viewer-tab {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.viewer-tab:hover {
    color: var(--text-color);
    background: var(--hover-bg);
}

.viewer-tab.active {
    color: var(--accent-color);
    background: var(--accent-muted);
    border-bottom: 2px solid var(--accent-color);
}

.viewer-tab i {
    font-size: 0.9rem;
}

.context-viewer-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: none;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    /* Smooth scroll anchoring */
    overflow-anchor: auto;
}

.tab-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.tab-content.active {
    display: block;
}

.context-preview-content,
.files-preview-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.close-viewer-btn {
    background: none;
    border: none;
    color: var(--icon-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.close-viewer-btn:hover {
    color: var(--accent-color);
    background: var(--hover-bg);
}

/* Session Header for Detail View - Hidden, replaced by inline back button */
.session-header {
    display: none;
}

.back-button {
    background: none;
    border: none;
    color: var(--icon-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    width: 32px;
    height: 32px;
}

.back-button:hover {
    color: var(--accent-color);
    background: var(--hover-bg);
}

.back-button i {
    font-size: 1rem;
}

.back-button span {
    display: none;
}

.session-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* --- Empty States and Loading --- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    text-align: center;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.empty-state.error-state {
    color: var(--error-500);
}

.empty-state.error-state i {
    color: var(--error-500);
}

.retry-load-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.retry-load-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.error-hint {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.session-item-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    grid-column: 1 / -1;
}

.loading-more-indicator {
    grid-column: 1 / -1;
    padding: 16px;
    text-align: center;
}

.loading-more-indicator .session-item-loading {
    padding: 16px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Conversation History in Detail View --- */
.conversation-history {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    /* Smooth scroll anchoring */
    overflow-anchor: auto;
}

.conversation-history::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.conversation-messages {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Inline header with back button and title */
.conversation-inline-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
    background: transparent;
}

.conversation-inline-header .back-button {
    flex-shrink: 0;
}

.conversation-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-messages .message {
    padding: 0;
    border-radius: 0;
    line-height: 1.6;
    font-size: 0.95rem;
    background: transparent !important;
    border: none !important;
    max-width: 100%;
    margin: 0;
}

.conversation-messages .user-message {
    color: var(--text-color);
    text-align: left;
}

.conversation-messages .bot-message {
    color: var(--text-secondary);
    text-align: left;
}

/* =================================================================
 * SESSION FILES & EXECUTIONS SECTIONS (Historical Content)
 * ================================================================= */

.session-files-section,
.session-executions-section {
    background: var(--elevated-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

.session-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.session-section-header i {
    color: var(--accent-color);
    font-size: 1rem;
}

.session-files-list,
.session-executions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.session-file-item,
.session-exec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--window-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.session-file-item:hover,
.session-exec-item:hover {
    border-color: var(--accent-color);
    background: var(--hover-bg);
    transform: translateX(2px);
}

.session-file-item>i,
.session-exec-item>i {
    color: var(--accent-color);
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.file-info,
.exec-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-name,
.exec-command {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.exec-exit {
    font-size: 0.75rem;
    font-weight: 500;
}

.exec-exit.success {
    color: var(--success-color, #10b981);
}

.exec-exit.error {
    color: var(--error-color, #ef4444);
}

.view-file-btn,
.view-exec-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-file-btn:hover,
.view-exec-btn:hover {
    background: var(--accent-muted);
    color: var(--accent-color);
}

.view-file-btn i,
.view-exec-btn i {
    font-size: 0.9rem;
}

/* Dark mode adjustments */
.dark-mode .session-file-item,
.dark-mode .session-exec-item {
    background: var(--neutral-850, #1a1a1a);
    border-color: var(--neutral-700, #404040);
}

.dark-mode .session-file-item:hover,
.dark-mode .session-exec-item:hover {
    background: var(--neutral-800, #262626);
    border-color: var(--accent-color);
}

/* =================================================================
 * SESSION CONTENT FOLDER BUTTON (Past Chat Detail View Header)
 * ================================================================= */

.session-content-folder-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.77rem;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease,
                box-shadow 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0.85;
}

.session-content-folder-btn:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.22);
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

.session-content-folder-btn:active {
    transform: translateY(0) scale(0.97);
    opacity: 0.9;
}

.session-content-folder-btn i {
    font-size: 0.82rem;
    color: var(--accent-color);
}

.session-content-folder-btn span {
    line-height: 1;
}

/* Ensure conversation-inline-header accommodates the folder button */
.conversation-inline-header {
    flex-wrap: nowrap;
}

/* Past chat reasoning/tool styles - ensure .message-bot in past chats inherits live chat styles */
.conversation-messages .message-bot .thinking-indicator {
    margin-bottom: 4px;
}

.conversation-messages .message-bot .detailed-logs {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.conversation-messages .message-bot.expanded .detailed-logs {
    max-height: 2000px;
    overflow-y: auto;
}

.conversation-messages .message-bot .reasoning-summary {
    background: color-mix(in srgb, var(--accent-color) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-color) 15%, transparent);
}