    /* Override modal styles for task detail modal */
    #task-detail-modal {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(8px);
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
        z-index: 9999;
        overflow-y: auto;
    }
    
    #task-detail-modal .modal-content {
        background: var(--bg-card, #1a1a2e);
        border: 1px solid var(--border-medium, #2a2a3e);
        border-radius: 12px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        width: 95%;
        max-width: 1600px;
        max-height: 95vh;
        overflow: hidden;
        animation: modalSlideIn 0.3s ease-out;
        margin: auto;
    }
    
    @keyframes modalSlideIn {
        from {
            transform: translateY(-30px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    #task-detail-modal .modal-header {
        padding: 24px 32px;
        border-bottom: 1px solid var(--border-light, #2a2a3e);
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    #task-detail-modal .modal-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: white;
        margin: 0;
    }
    
    #task-detail-modal .modal-close {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        transition: background-color 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #task-detail-modal .modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    #task-detail-modal .modal-body {
        padding: 32px;
        overflow-y: auto;
        max-height: calc(95vh - 100px);
    }
    
    /* Result section styles */
    .result-section {
        margin-bottom: 32px;
    }
    
    .result-section:last-child {
        margin-bottom: 0;
    }
    
    .result-section-title {
        font-size: 20px;
        font-weight: 600;
        color: #e0e7ff;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 2px solid #4f46e5;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .markdown-body {
        background-color: #0a0a0f !important;
        padding: 24px !important;
        border-radius: 8px !important;
        color: #d1d5db !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    #mermaidContainer {
        background-color: #0a0a0f;
        padding: 24px;
        border-radius: 8px;
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        overflow-x: auto;
    }
    
    #mermaidContainer svg {
        max-width: 100%;
        height: auto;
    }
    
    .result-loading {
        text-align: center;
        padding: 40px;
        color: #9ca3af;
    }
    
    .result-loading .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid #4f46e5;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 16px;
    }
    
    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    
    /* 任务结果面板样式 - 页面内展开 */
    .task-result-panel {
        background: var(--bg-card, #1a1a2e);
        border: 1px solid var(--border-medium, #2a2a3e);
        border-radius: 12px;
        margin-top: 24px;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .result-panel-header {
        padding: 24px 32px;
        border-bottom: 1px solid var(--border-light, #2a2a3e);
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 12px 12px 0 0;
    }
    
    .result-panel-title {
        display: flex;
        align-items: center;
        gap: 16px;
    }
    
    .result-panel-title h2 {
        margin: 0;
        color: white;
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    .result-panel-body {
        padding: 32px;
    }
    
    .result-card {
        background: #0a0a0f;
        padding: 24px;
        border-radius: 8px;
        margin-bottom: 24px;
    }
    
    .result-card:last-child {
        margin-bottom: 0;
    }
    
    .info-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .info-item {
        background: rgba(255, 255, 255, 0.02);
        padding: 16px;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .info-label {
        color: #9ca3af;
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .info-value {
        color: #e0e7ff;
        font-weight: 500;
        font-size: 16px;
    }
    
    .info-mono {
        font-family: 'Courier New', monospace;
        font-size: 13px;
    }
