@import '_content/Z.Blazor.Diagrams/Z.Blazor.Diagrams.ezdqu7jd9f.bundle.scp.css';

/* /Components/ConEst/Admin/AIMagicHelp.razor.rz.scp.css */
/* Help Bar */
.aihelp-bar[b-bupw4y1c1g] {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.aihelp-btn[b-bupw4y1c1g] {
    padding: 5px 14px;
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: var(--radius-sm, 4px);
    background: var(--bg-white, #fff);
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary, #495057);
    transition: all 0.15s;
}

.aihelp-btn:hover[b-bupw4y1c1g] {
    background: var(--bg-hover, #f8f9fa);
    border-color: var(--primary, #0d6efd);
    color: var(--primary, #0d6efd);
}

.aihelp-btn-active[b-bupw4y1c1g] {
    background: var(--bg-active, #e3f2fd);
    border-color: var(--primary, #0d6efd);
    color: var(--primary, #0d6efd);
}

.aihelp-btn i[b-bupw4y1c1g] {
    margin-right: 5px;
}

/* Help Panel */
.aihelp-panel[b-bupw4y1c1g] {
    border-left: 3px solid var(--primary, #0d6efd);
}

.aihelp-panel-detailed[b-bupw4y1c1g] {
    border-left-color: var(--success, #198754);
}

.aihelp-close[b-bupw4y1c1g] {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted, #6c757d);
    padding: 4px 8px;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.aihelp-close:hover[b-bupw4y1c1g] {
    color: var(--text-primary, #212529);
}

/* Steps List */
.aihelp-steps[b-bupw4y1c1g] {
    padding-left: 1.25rem;
    margin: 0;
}

.aihelp-steps li[b-bupw4y1c1g] {
    padding: 4px 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary, #495057);
}

.aihelp-steps li strong[b-bupw4y1c1g] {
    color: var(--text-primary, #212529);
}

/* Tip callout */
.aihelp-tip[b-bupw4y1c1g] {
    margin-top: 0.75rem;
    padding: 8px 12px;
    background: var(--bg-subtle, #f8f9fa);
    border-radius: var(--radius-sm, 4px);
    font-size: 0.85rem;
    color: var(--text-secondary, #495057);
    line-height: 1.5;
}

.aihelp-tip i[b-bupw4y1c1g] {
    color: var(--warning, #ffc107);
    margin-right: 4px;
}

/* Detailed Guide Sections */
.aihelp-section[b-bupw4y1c1g] {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-light, #e9ecef);
}

.aihelp-section:last-child[b-bupw4y1c1g] {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.aihelp-section h4[b-bupw4y1c1g] {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #212529);
    margin-bottom: 0.5rem;
}

.aihelp-section p[b-bupw4y1c1g] {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary, #495057);
    margin-bottom: 0.5rem;
}

.aihelp-section ul[b-bupw4y1c1g],
.aihelp-section ol[b-bupw4y1c1g] {
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.aihelp-section li[b-bupw4y1c1g] {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary, #495057);
    padding: 2px 0;
}

.aihelp-section li strong[b-bupw4y1c1g] {
    color: var(--text-primary, #212529);
}

/* Subsections */
.aihelp-subsection[b-bupw4y1c1g] {
    margin-left: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border-light, #e9ecef);
    margin-bottom: 0.75rem;
}

.aihelp-subsection h5[b-bupw4y1c1g] {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #212529);
    margin-bottom: 0.25rem;
}

.aihelp-subsection h5 i[b-bupw4y1c1g] {
    color: var(--primary, #0d6efd);
    margin-right: 4px;
    width: 16px;
}
/* /Components/ConEst/Admin/AIMagicLanding.razor.rz.scp.css */
/* AI Magic Landing Page */
.ai-landing-subtitle[b-poiybda4v5] {
    max-width: 600px;
    margin: 0.5rem auto 0;
}

.ai-landing-grid[b-poiybda4v5] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg, 1.5rem);
    max-width: 1100px;
    margin: 0 auto;
}

.ai-landing-card[b-poiybda4v5] {
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: var(--radius-md, 8px);
    padding: var(--space-xl, 2rem);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.ai-landing-card:hover[b-poiybda4v5] {
    border-color: var(--primary, #0d6efd);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ai-landing-icon[b-poiybda4v5] {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
}

.ai-landing-icon-assembly[b-poiybda4v5] {
    background: #e8eaf6;
    color: #283593;
}

.ai-landing-icon-workshop[b-poiybda4v5] {
    background: var(--success-light, #e8f5e9);
    color: var(--success-dark, #2e7d32);
}

.ai-landing-icon-studio[b-poiybda4v5] {
    background: var(--primary-light, #e3f2fd);
    color: var(--primary-dark, #1565c0);
}

.ai-landing-icon-eval[b-poiybda4v5] {
    background: var(--warning-light, #fff3e0);
    color: var(--warning-dark, #e65100);
}

.ai-landing-card h3[b-poiybda4v5] {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #212529);
}

.ai-landing-card p[b-poiybda4v5] {
    font-size: 0.875rem;
    color: var(--text-secondary, #495057);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.ai-landing-features[b-poiybda4v5] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 1.25rem;
    text-align: left;
}

.ai-landing-features span[b-poiybda4v5] {
    font-size: 0.8rem;
    color: var(--text-secondary, #495057);
}

.ai-landing-features i[b-poiybda4v5] {
    color: var(--success, #198754);
    margin-right: 6px;
    font-size: 0.7rem;
}

.ai-landing-action[b-poiybda4v5] {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary, #0d6efd);
}

.ai-landing-card:hover .ai-landing-action[b-poiybda4v5] {
    text-decoration: underline;
}

.ai-landing-action i[b-poiybda4v5] {
    margin-left: 4px;
    transition: transform 0.2s;
}

.ai-landing-card:hover .ai-landing-action i[b-poiybda4v5] {
    transform: translateX(3px);
}

@media (max-width: 992px) {
    .ai-landing-grid[b-poiybda4v5] {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}
/* /Components/ConEst/Admin/AssemblyAI.razor.rz.scp.css */
/* Breadcrumb */
.ab-breadcrumb[b-3rlqn3i1x0] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.ab-breadcrumb a[b-3rlqn3i1x0] {
    color: var(--primary, #0d6efd);
    text-decoration: none;
}

.ab-breadcrumb a:hover[b-3rlqn3i1x0] {
    text-decoration: underline;
}

.ab-breadcrumb > span:not(.ab-breadcrumb-sep)[b-3rlqn3i1x0] {
    color: var(--text-primary, #212529);
    font-weight: 500;
}

.ab-breadcrumb-sep[b-3rlqn3i1x0] {
    color: var(--text-muted, #6c757d);
    font-size: 0.75rem;
}

.ab-breadcrumb .fa-chevron-right[b-3rlqn3i1x0] {
    font-size: 0.6rem;
    color: var(--text-muted, #6c757d);
}

/* Two-column layout */
.ab-layout[b-3rlqn3i1x0] {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg, 1.5rem);
    align-items: start;
}

.ab-layout:has(.ab-history-sidebar)[b-3rlqn3i1x0] {
    grid-template-columns: 1fr 300px;
}

.ab-main[b-3rlqn3i1x0] {
    min-width: 0;
}

/* History Sidebar */
.ab-history-sidebar[b-3rlqn3i1x0] {
    position: sticky;
    top: 1rem;
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: var(--radius-md, 8px);
    background: white;
    max-height: calc(100vh - 120px);
    overflow: hidden;
}

/* Parameter Bar */
.ab-param-bar[b-3rlqn3i1x0] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-subtle, #f8f9fa);
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: var(--radius-md, 8px);
}

.ab-param-btn[b-3rlqn3i1x0] {
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--border-light, #dee2e6);
    border-radius: 6px;
    font-size: 0.82rem;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
}

.ab-param-btn:hover[b-3rlqn3i1x0] {
    border-color: var(--primary, #0d6efd);
}

/* Category-colored active states (match chip colors) */
.ab-param-btn-building[b-3rlqn3i1x0] { background: #e8eaf6; color: #283593; border-color: #283593; font-weight: 500; }
.ab-param-btn-system[b-3rlqn3i1x0] { background: #e8f5e9; color: #2e7d32; border-color: #2e7d32; font-weight: 500; }
.ab-param-btn-dept[b-3rlqn3i1x0] { background: #fce4ec; color: #c62828; border-color: #c62828; font-weight: 500; }
.ab-param-btn-code[b-3rlqn3i1x0] { background: #fff3e0; color: #e65100; border-color: #e65100; font-weight: 500; }
.ab-param-btn-depth[b-3rlqn3i1x0] { background: #e0f2f1; color: #00695c; border-color: #00695c; font-weight: 500; }
.ab-param-btn-active[b-3rlqn3i1x0] { background: var(--primary-light, #e7f1ff); color: var(--primary, #0d6efd); border-color: var(--primary, #0d6efd); font-weight: 500; }

/* Costs toggle */
.ab-param-toggle[b-3rlqn3i1x0] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--border-light, #dee2e6);
    border-radius: 6px;
    font-size: 0.82rem;
    background: white;
    cursor: pointer;
}

.ab-param-toggle input:checked + span[b-3rlqn3i1x0] {
    color: #e65100;
    font-weight: 500;
}

.ab-param-input[b-3rlqn3i1x0] {
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border-light, #dee2e6);
    border-radius: 6px;
    font-size: 0.82rem;
    background: white;
    width: 90px;
}

.ab-param-input-sm[b-3rlqn3i1x0] {
    width: 65px;
}

.ab-param-input:focus[b-3rlqn3i1x0] {
    outline: none;
    border-color: var(--primary, #0d6efd);
}

/* Chips */
.ab-chips[b-3rlqn3i1x0] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ab-chip[b-3rlqn3i1x0] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    background: #e9ecef;
    color: #495057;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.ab-chip i[b-3rlqn3i1x0] {
    font-size: 0.65rem;
    opacity: 0.7;
}

.ab-chip-x[b-3rlqn3i1x0] {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.5;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    color: inherit;
}

.ab-chip-x:hover[b-3rlqn3i1x0] {
    opacity: 1;
}

/* Color-coded chips by category */
.ab-chip-building[b-3rlqn3i1x0] { background: #e8eaf6; color: #283593; border-color: rgba(40, 53, 147, 0.2); }
.ab-chip-system[b-3rlqn3i1x0] { background: #e8f5e9; color: #2e7d32; border-color: rgba(46, 125, 50, 0.2); }
.ab-chip-dept[b-3rlqn3i1x0] { background: #fce4ec; color: #c62828; border-color: rgba(198, 40, 40, 0.2); }
.ab-chip-code[b-3rlqn3i1x0] { background: #fff3e0; color: #e65100; border-color: rgba(230, 81, 0, 0.2); }
.ab-chip-depth[b-3rlqn3i1x0] { background: #e0f2f1; color: #00695c; border-color: rgba(0, 105, 92, 0.2); }

/* Expandable Panels */
.ab-panel[b-3rlqn3i1x0] {
    background: white;
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: var(--radius-md, 8px);
    padding: 0.75rem 1rem;
}

.ab-panel-header[b-3rlqn3i1x0] {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ab-panel-header small[b-3rlqn3i1x0] {
    flex: 1;
}

.ab-panel-hide[b-3rlqn3i1x0] {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted, #6c757d);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: auto;
}

.ab-panel-hide:hover[b-3rlqn3i1x0] {
    color: var(--text-primary, #212529);
    background: var(--bg-subtle, #f8f9fa);
}

/* Checkbox Grid */
.ab-checkbox-grid[b-3rlqn3i1x0] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.25rem;
}

.ab-checkbox-item[b-3rlqn3i1x0] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.1s;
}

.ab-checkbox-item:hover[b-3rlqn3i1x0] {
    background: var(--bg-subtle, #f8f9fa);
}

.ab-checkbox-item-active[b-3rlqn3i1x0] {
    background: var(--primary-light, #e7f1ff);
}

/* "Other" text input row */
.ab-other-input[b-3rlqn3i1x0] {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    align-items: center;
}

.ab-other-input .ce-form-control[b-3rlqn3i1x0] {
    flex: 1;
    max-width: 300px;
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
}

/* Project selects */
.ab-project-selects[b-3rlqn3i1x0] {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Prompt Textarea */
.ab-prompt-textarea[b-3rlqn3i1x0] {
    min-height: 150px;
    max-height: 400px;
    resize: vertical;
    font-family: var(--font-mono, 'Consolas', monospace);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Edited prompt indicator */
.ab-edited-badge[b-3rlqn3i1x0] {
    display: inline-block;
    margin-left: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    background: #fff3cd;
    color: #856404;
}

.ab-reset-link[b-3rlqn3i1x0] {
    background: none;
    border: none;
    color: var(--primary, #0d6efd);
    cursor: pointer;
    font-size: 0.75rem;
    text-decoration: underline;
    padding: 0;
    margin-left: 4px;
}

/* Rating Section */
.ab-rate-section[b-3rlqn3i1x0] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light, #e9ecef);
}

.ab-rate-label[b-3rlqn3i1x0] {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary, #6c757d);
}

/* Feedback Section */
.ab-feedback-section[b-3rlqn3i1x0] {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light, #e9ecef);
}

.ab-feedback-input[b-3rlqn3i1x0] {
    font-size: 0.85rem;
    min-height: 60px;
    max-height: 120px;
    resize: vertical;
    margin-bottom: 0.5rem;
}

.ab-feedback-actions[b-3rlqn3i1x0] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Expandable table rows */
.ab-expand-col[b-3rlqn3i1x0] {
    width: 28px;
    text-align: center;
    padding: 0.4rem !important;
}

.ab-expand-icon[b-3rlqn3i1x0] {
    font-size: 0.7rem;
    color: var(--text-muted, #6c757d);
    transition: transform 0.15s;
}

.ab-row-expandable[b-3rlqn3i1x0] {
    cursor: pointer;
}

.ab-row-expandable:hover .ab-expand-icon[b-3rlqn3i1x0] {
    color: var(--primary, #0d6efd);
}

/* Detail row (expanded) */
.ab-detail-row[b-3rlqn3i1x0] {
    background: var(--bg-subtle, #f8f9fa) !important;
}

.ab-detail-row:hover[b-3rlqn3i1x0] {
    background: var(--bg-subtle, #f8f9fa) !important;
}

.ab-detail-content[b-3rlqn3i1x0] {
    padding: 0.5rem 0.75rem;
}

.ab-detail-section[b-3rlqn3i1x0] {
    margin-bottom: 1rem;
}

.ab-detail-section:last-child[b-3rlqn3i1x0] {
    margin-bottom: 0;
}

.ab-detail-section h5[b-3rlqn3i1x0] {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #212529);
}

.ab-detail-section h5 i[b-3rlqn3i1x0] {
    margin-right: 6px;
    color: var(--text-muted, #6c757d);
}

/* Component sub-table */
.ab-sub-table[b-3rlqn3i1x0] {
    width: 100%;
    font-size: 0.78rem;
    background: white;
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: 6px;
}

.ab-sub-table th[b-3rlqn3i1x0] {
    background: white;
    font-weight: 600;
    padding: 0.4rem 0.6rem;
    border-bottom: 2px solid var(--border-light, #dee2e6);
}

.ab-sub-table td[b-3rlqn3i1x0] {
    padding: 0.35rem 0.6rem;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
    vertical-align: top;
}

.ab-sub-table code[b-3rlqn3i1x0] {
    font-size: 0.75rem;
    background: var(--bg-subtle, #f0f0f0);
    padding: 1px 4px;
    border-radius: 3px;
}

.ab-detail-notes[b-3rlqn3i1x0] {
    font-size: 0.75rem;
    color: var(--text-secondary, #6c757d);
    max-width: 250px;
}

/* Question list */
.ab-question-list[b-3rlqn3i1x0] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ab-question-item[b-3rlqn3i1x0] {
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: 6px;
    font-size: 0.82rem;
}

.ab-question-meta[b-3rlqn3i1x0] {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted, #6c757d);
}

.ab-affects-badge[b-3rlqn3i1x0] {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 500;
    background: #fff3cd;
    color: #856404;
}

/* Responsive */
@media (max-width: 992px) {
    .ab-layout:has(.ab-history-sidebar)[b-3rlqn3i1x0] {
        grid-template-columns: 1fr;
    }

    .ab-history-sidebar[b-3rlqn3i1x0] {
        position: static;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .ab-param-bar[b-3rlqn3i1x0] {
        gap: 0.25rem;
    }

    .ab-checkbox-grid[b-3rlqn3i1x0] {
        grid-template-columns: 1fr;
    }
}
/* /Components/ConEst/Admin/AssemblyResponseCard.razor.rz.scp.css */
/* ============================================================
   ASSEMBLY RESPONSE CARD — Structured output grid
   ============================================================ */

.assembly-card[b-c1c7wx4hlc] {
    width: 100%;
}

.assembly-card-pretext[b-c1c7wx4hlc],
.assembly-card-posttext[b-c1c7wx4hlc] {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary, #212529);
    padding: 0.25rem 0;
}

.assembly-card-posttext[b-c1c7wx4hlc] {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light, #e9ecef);
}

/* --- Table --- */
.assembly-card-table-wrapper[b-c1c7wx4hlc] {
    overflow-x: auto;
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: 6px;
    margin: 0.5rem 0;
}

.assembly-card-table[b-c1c7wx4hlc] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.assembly-card-table thead[b-c1c7wx4hlc] {
    background: var(--bg-subtle, #f8f9fa);
    border-bottom: 2px solid var(--border-light, #dee2e6);
}

.assembly-card-table th[b-c1c7wx4hlc] {
    padding: 0.5rem 0.6rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary, #495057);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.assembly-card-table td[b-c1c7wx4hlc] {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
    vertical-align: top;
}

.assembly-card-table tbody tr:hover[b-c1c7wx4hlc] {
    background: var(--bg-hover, #f5f8ff);
}

.assembly-card-row-deselected[b-c1c7wx4hlc] {
    opacity: 0.45;
    text-decoration: line-through;
}

/* --- Cells --- */
.assembly-card-check[b-c1c7wx4hlc] {
    width: 30px;
    text-align: center;
}

.assembly-card-component[b-c1c7wx4hlc] {
    font-weight: 500;
    min-width: 140px;
}

.assembly-card-qty[b-c1c7wx4hlc] {
    text-align: right;
    font-variant-numeric: tabular-nums;
    min-width: 60px;
}

.assembly-card-unit[b-c1c7wx4hlc] {
    min-width: 40px;
    color: var(--text-muted, #6c757d);
}

.assembly-card-code[b-c1c7wx4hlc] {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.78rem;
    color: var(--primary, #0d6efd);
    min-width: 80px;
}

.assembly-card-desc[b-c1c7wx4hlc] {
    color: var(--text-secondary, #495057);
    font-size: 0.8rem;
    max-width: 250px;
}

/* --- Confidence badges --- */
.assembly-card-confidence[b-c1c7wx4hlc] {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
}

.assembly-card-confidence-high[b-c1c7wx4hlc] {
    background: #d4edda;
    color: #155724;
}

.assembly-card-confidence-medium[b-c1c7wx4hlc] {
    background: #fff3cd;
    color: #856404;
}

.assembly-card-confidence-low[b-c1c7wx4hlc] {
    background: #f8d7da;
    color: #721c24;
}

/* --- Actions bar --- */
.assembly-card-actions[b-c1c7wx4hlc] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0 0.25rem;
}

.assembly-card-count[b-c1c7wx4hlc] {
    font-size: 0.75rem;
    color: var(--text-muted, #6c757d);
    margin-right: auto;
}

.assembly-card-btn[b-c1c7wx4hlc] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border-light, #dee2e6);
    border-radius: 4px;
    background: white;
    color: var(--text-secondary, #495057);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
}

.assembly-card-btn:hover[b-c1c7wx4hlc] {
    background: var(--bg-subtle, #f8f9fa);
    border-color: var(--primary, #0d6efd);
    color: var(--primary, #0d6efd);
}

.assembly-card-btn-grid[b-c1c7wx4hlc] {
    background: var(--primary, #0d6efd);
    color: white;
    border-color: var(--primary, #0d6efd);
}

.assembly-card-btn-grid:hover[b-c1c7wx4hlc] {
    background: #0b5ed7;
    color: white;
}

.assembly-card-btn-raw[b-c1c7wx4hlc] {
    color: var(--text-muted, #6c757d);
}
/* /Components/ConEst/Admin/ChatConsole.razor.rz.scp.css */
/* ============================================================
   PROMPT CHAT — ChatGPT-style conversation interface
   ============================================================ */

/* --- Page Layout --- */
.chat-page[b-mor646zpfa] {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem 0;
    overflow: hidden;
}

.chat-breadcrumb[b-mor646zpfa] {
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light, #e9ecef);
    margin-bottom: 0;
    flex-shrink: 0;
}

.chat-breadcrumb a[b-mor646zpfa] {
    color: var(--primary, #0d6efd);
    text-decoration: none;
}

.chat-breadcrumb a:hover[b-mor646zpfa] {
    text-decoration: underline;
}

.chat-breadcrumb .fa-chevron-right[b-mor646zpfa] {
    font-size: 0.6rem;
    margin: 0 0.4rem;
    color: var(--text-muted, #6c757d);
}

.chat-breadcrumb-sep[b-mor646zpfa] {
    margin: 0 0.5rem;
    color: var(--text-muted, #6c757d);
}

.chat-layout[b-mor646zpfa] {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* --- Sidebar --- */
.chat-sidebar[b-mor646zpfa] {
    border-right: 1px solid var(--border-light, #e9ecef);
    overflow-y: auto;
    padding: 0.75rem 0;
    background: var(--bg-sidebar, #f8f9fa);
}

.chat-new-btn[b-mor646zpfa] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: calc(100% - 1rem);
    margin: 0 0.5rem 0.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px dashed var(--border-light, #dee2e6);
    border-radius: 6px;
    background: transparent;
    color: var(--text-primary, #212529);
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s, border-color 0.15s;
}

.chat-new-btn:hover[b-mor646zpfa] {
    background: var(--bg-hover, #e9ecef);
    border-color: var(--primary, #0d6efd);
    color: var(--primary, #0d6efd);
}

.chat-sidebar-section[b-mor646zpfa] {
    padding: 0.5rem 0.75rem 0.25rem;
}

.chat-sidebar-label[b-mor646zpfa] {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #6c757d);
}

.chat-sidebar-label i[b-mor646zpfa] {
    margin-right: 0.25rem;
    font-size: 0.65rem;
}

.chat-sidebar-item[b-mor646zpfa] {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

.chat-sidebar-item:hover[b-mor646zpfa] {
    background: var(--bg-hover, #e9ecef);
}

.chat-sidebar-item-active[b-mor646zpfa] {
    background: rgba(13, 110, 253, 0.08);
    border-left-color: var(--primary, #0d6efd);
}

.chat-sidebar-item-title[b-mor646zpfa] {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary, #212529);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-sidebar-item-meta[b-mor646zpfa] {
    font-size: 0.7rem;
    color: var(--text-muted, #6c757d);
    display: flex;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.chat-sidebar-rating[b-mor646zpfa] {
    color: #f5a623;
    font-weight: 600;
}

.chat-sidebar-session-root[b-mor646zpfa] {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
}

.chat-session-toggle[b-mor646zpfa] {
    border: none;
    background: transparent;
    color: var(--text-muted, #6c757d);
    cursor: pointer;
    padding: 0.3rem 0.15rem;
    font-size: 0.65rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.chat-session-toggle:hover[b-mor646zpfa] {
    color: var(--primary, #0d6efd);
}

.chat-sidebar-child[b-mor646zpfa] {
    padding-left: 1.5rem !important;
    border-left: 2px solid #e0e6ed;
    margin-left: 0.5rem;
}

.chat-iteration-badge[b-mor646zpfa] {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #fff;
    background: #6c757d;
    padding: 0 0.3rem;
    border-radius: 3px;
    margin-right: 0.3rem;
}

.chat-iteration-count[b-mor646zpfa] {
    font-size: 0.65rem;
    color: #17a2b8;
    font-weight: 500;
}

.chat-sidebar-empty[b-mor646zpfa] {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted, #6c757d);
}

.chat-sidebar-empty i[b-mor646zpfa] {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}

.chat-sidebar-empty p[b-mor646zpfa] {
    font-size: 0.82rem;
    margin: 0;
}

/* --- Main Chat Area --- */
.chat-main[b-mor646zpfa] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* --- Top Bar (model selector + conversation actions) --- */
.chat-top-bar[b-mor646zpfa] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border-light, #e9ecef);
    flex-shrink: 0;
    background: #fff;
}

.chat-top-bar-left[b-mor646zpfa] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.chat-top-bar-right[b-mor646zpfa] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.chat-model-select[b-mor646zpfa] {
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--border-light, #dee2e6);
    border-radius: 6px;
    font-size: 0.82rem;
    background: #fff;
    min-width: 160px;
}

.chat-model-select:focus[b-mor646zpfa] {
    outline: none;
    border-color: var(--primary, #0d6efd);
}

.chat-top-bar-title[b-mor646zpfa] {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.chat-top-bar-stats[b-mor646zpfa] {
    font-size: 0.75rem;
    color: var(--text-muted, #6c757d);
    white-space: nowrap;
}

/* --- Welcome Screen --- */
.chat-welcome[b-mor646zpfa] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 2rem 0;
    text-align: center;
}

.chat-welcome-input[b-mor646zpfa] {
    width: 100%;
    max-width: 800px;
    margin-top: 1.5rem;
}

.chat-welcome-icon[b-mor646zpfa] {
    font-size: 3rem;
    color: var(--primary, #0d6efd);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.chat-welcome h3[b-mor646zpfa] {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text-primary, #212529);
}

.chat-welcome p[b-mor646zpfa] {
    font-size: 0.95rem;
    color: var(--text-muted, #6c757d);
    margin: 0 0 2rem;
}

.chat-welcome-hint[b-mor646zpfa] {
    width: 100%;
    max-width: 800px;
}

.chat-settings-toggle[b-mor646zpfa] {
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: 6px;
    overflow: hidden;
}

.chat-settings-toggle summary[b-mor646zpfa] {
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted, #6c757d);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.chat-settings-toggle summary[b-mor646zpfa]::-webkit-details-marker {
    display: none;
}

.chat-settings-toggle summary i[b-mor646zpfa] {
    margin-right: 0.3rem;
}

.chat-settings-toggle[open] summary[b-mor646zpfa] {
    border-bottom: 1px solid var(--border-light, #e9ecef);
}

.chat-settings-body[b-mor646zpfa] {
    padding: 0.75rem;
}

.chat-setup-form[b-mor646zpfa] {
    width: 100%;
    max-width: 500px;
}

.chat-setup-row[b-mor646zpfa] {
    margin-bottom: 1rem;
}

.chat-setup-row label[b-mor646zpfa] {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-primary, #212529);
}

.chat-select[b-mor646zpfa],
.chat-input-field[b-mor646zpfa] {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border-light, #dee2e6);
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fff;
}

.chat-select:focus[b-mor646zpfa],
.chat-input-field:focus[b-mor646zpfa] {
    outline: none;
    border-color: var(--primary, #0d6efd);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

.chat-setup-textarea[b-mor646zpfa] {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border-light, #dee2e6);
    border-radius: 6px;
    font-size: 0.82rem;
    font-family: 'Consolas', 'Monaco', monospace;
    resize: vertical;
    min-height: 80px;
}

.chat-setup-textarea:focus[b-mor646zpfa] {
    outline: none;
    border-color: var(--primary, #0d6efd);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

/* Mode buttons removed — not needed for chat interface */

.chat-icon-btn[b-mor646zpfa] {
    padding: 0.35rem 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted, #6c757d);
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background 0.15s, color 0.15s;
}

.chat-icon-btn:hover[b-mor646zpfa] {
    background: var(--bg-hover, #f0f0f0);
    color: var(--text-primary, #212529);
}

.chat-starred[b-mor646zpfa] {
    color: #f5a623;
}

.chat-delete-btn:hover[b-mor646zpfa] {
    color: #dc3545;
}

/* --- Metadata Panel --- */
.chat-metadata[b-mor646zpfa] {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light, #e9ecef);
    background: #fafbfc;
    flex-shrink: 0;
}

.chat-metadata-row[b-mor646zpfa] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.chat-metadata-row label[b-mor646zpfa] {
    font-size: 0.78rem;
    font-weight: 600;
    min-width: 90px;
    padding-top: 0.3rem;
    color: var(--text-primary, #212529);
}

.chat-metadata-textarea[b-mor646zpfa] {
    flex: 1;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--border-light, #dee2e6);
    border-radius: 6px;
    font-size: 0.82rem;
    resize: vertical;
    min-height: 40px;
}

.chat-metadata-textarea:focus[b-mor646zpfa] {
    outline: none;
    border-color: var(--primary, #0d6efd);
}

.chat-metadata-actions[b-mor646zpfa] {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

/* --- Rating Stars --- */
.chat-rating-stars[b-mor646zpfa] {
    display: flex;
    gap: 0.15rem;
}

.chat-rating-star[b-mor646zpfa] {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-muted, #ccc);
    padding: 0 0.1rem;
    transition: color 0.15s;
}

.chat-rating-star:hover[b-mor646zpfa] {
    color: #f5a623;
}

.chat-rating-star-active[b-mor646zpfa] {
    color: #f5a623;
}

/* --- Message Stream --- */
.chat-messages[b-mor646zpfa] {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.chat-messages-inner[b-mor646zpfa] {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.chat-message[b-mor646zpfa] {
    word-wrap: break-word;
    line-height: 1.6;
}

.chat-message-user[b-mor646zpfa] {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
}

.chat-message-user .chat-message-content[b-mor646zpfa] {
    font-weight: 500;
}

.chat-message-assistant[b-mor646zpfa] {
    padding: 0.75rem 0;
}

.chat-message-system[b-mor646zpfa] {
    font-size: 0.75rem;
    color: var(--text-muted, #6c757d);
    font-style: italic;
    text-align: center;
    padding: 0.3rem 0;
}

.chat-message-system i[b-mor646zpfa] {
    margin-right: 0.3rem;
}

.chat-message-error[b-mor646zpfa] {
    border-left: 3px solid #dc3545;
    padding-left: 0.75rem;
    background: #fff5f5;
}

.chat-message-error i[b-mor646zpfa] {
    color: #dc3545;
    margin-right: 0.3rem;
}

/* --- Model Comparison --- */
.chat-compare-btn[b-mor646zpfa] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid #17a2b8;
    border-radius: 6px;
    background: #e8f8fb;
    color: #117a8b;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.chat-compare-btn:hover[b-mor646zpfa] {
    background: #17a2b8;
    color: #fff;
}

.chat-compare-panel[b-mor646zpfa] {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light, #e9ecef);
    background: #f0f9fb;
}

.chat-compare-header[b-mor646zpfa] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.chat-compare-models[b-mor646zpfa] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.chat-compare-model-item[b-mor646zpfa] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.chat-compare-actions[b-mor646zpfa] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-compare-results[b-mor646zpfa] {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.chat-compare-results-header[b-mor646zpfa] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light, #e9ecef);
}

.chat-compare-grid[b-mor646zpfa] {
    display: grid;
    gap: 1rem;
    min-height: 0;
}

.chat-compare-card[b-mor646zpfa] {
    border: 1px solid var(--border-light, #dee2e6);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-compare-winner[b-mor646zpfa] {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.chat-compare-card-header[b-mor646zpfa] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-light, #e9ecef);
    font-size: 0.85rem;
}

.chat-compare-card-body[b-mor646zpfa] {
    flex: 1;
    padding: 0.75rem;
    overflow-y: auto;
    max-height: 500px;
    font-size: 0.88rem;
}

.chat-compare-card-footer[b-mor646zpfa] {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border-light, #e9ecef);
    display: flex;
    justify-content: center;
}

.chat-compare-winner-badge[b-mor646zpfa] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* chat-improve-btn removed — replaced by chat-action-improve */

.chat-critique-panel[b-mor646zpfa] {
    margin-top: 0.75rem;
    border: 1px solid #d4edda;
    border-radius: 8px;
    background: #f0faf3;
    overflow: hidden;
}

.chat-critique-header[b-mor646zpfa] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: #d4edda;
    font-size: 0.78rem;
    font-weight: 600;
    color: #155724;
}

.chat-critique-body[b-mor646zpfa] {
    padding: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* --- Compact Action Bar --- */
.chat-msg-actions[b-mor646zpfa] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.3rem;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.chat-message:hover .chat-msg-actions[b-mor646zpfa] {
    opacity: 1;
}

.chat-action-btn[b-mor646zpfa] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.4rem;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.15s;
}

.chat-action-edit[b-mor646zpfa] {
    color: #0d6efd;
}

.chat-action-edit:hover[b-mor646zpfa] {
    background: #e8f0fe;
    border-color: #0d6efd;
}

.chat-action-response[b-mor646zpfa] {
    color: #6f42c1;
}

.chat-action-response:hover[b-mor646zpfa] {
    background: #f3eeff;
    border-color: #6f42c1;
}

.chat-action-improve[b-mor646zpfa] {
    color: #8a6d1b;
}

.chat-action-improve:hover[b-mor646zpfa] {
    background: #fef9e7;
    border-color: #e0c97f;
}

.chat-action-improve:disabled[b-mor646zpfa] {
    opacity: 0.4;
    cursor: wait;
}

.chat-show-earlier[b-mor646zpfa] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.4rem;
    border: 1px dashed var(--border-light, #dee2e6);
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted, #6c757d);
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.15s;
}

.chat-show-earlier:hover[b-mor646zpfa] {
    background: var(--bg-hover, #f0f0f0);
}

.chat-message-collapsed[b-mor646zpfa] {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.chat-suggestion-item[b-mor646zpfa] {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.85rem;
    line-height: 1.5;
    cursor: pointer;
}

.chat-suggestion-item:last-child[b-mor646zpfa] {
    border-bottom: none;
}

.chat-suggestion-item input[type="checkbox"][b-mor646zpfa] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.chat-suggestion-item:hover[b-mor646zpfa] {
    background: rgba(21, 87, 36, 0.05);
}

.chat-edit-container[b-mor646zpfa] {
    width: 100%;
}

.chat-edit-textarea[b-mor646zpfa] {
    width: 100%;
    min-height: 200px;
    padding: 0.75rem;
    border: 2px solid var(--primary, #0d6efd);
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: 'Consolas', 'Monaco', monospace;
    line-height: 1.6;
    resize: vertical;
}

.chat-edit-textarea:focus[b-mor646zpfa] {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.chat-edit-actions[b-mor646zpfa] {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: flex-end;
}

.chat-edited-badge[b-mor646zpfa] {
    display: inline-block;
    font-size: 0.7rem;
    color: #155724;
    background: #d4edda;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    margin-bottom: 0.4rem;
}

.chat-message-content[b-mor646zpfa] {
    font-size: 0.92rem;
    line-height: 1.65;
}

.chat-message-meta[b-mor646zpfa] {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.chat-meta-badge[b-mor646zpfa] {
    font-size: 0.68rem;
    color: var(--text-muted, #999);
}

/* Response formatting */
.chat-response-text[b-mor646zpfa] {
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-response-json[b-mor646zpfa] {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.78rem;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.5rem;
    border-radius: 4px;
    overflow-x: auto;
    max-height: 400px;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

/* --- Typing Indicator --- */
.chat-typing-indicator[b-mor646zpfa] {
    display: flex;
    gap: 4px;
    padding: 0.4rem 0;
}

.chat-typing-indicator span[b-mor646zpfa] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted, #999);
    animation: chatBounce-b-mor646zpfa 1.4s infinite ease-in-out;
}

.chat-typing-indicator span:nth-child(1)[b-mor646zpfa] {
    animation-delay: -0.32s;
}

.chat-typing-indicator span:nth-child(2)[b-mor646zpfa] {
    animation-delay: -0.16s;
}

@keyframes chatBounce-b-mor646zpfa {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Input Area --- */
.chat-input-area[b-mor646zpfa] {
    padding: 1rem 2rem 1.25rem;
    border-top: 1px solid var(--border-light, #e9ecef);
    background: #fff;
    flex-shrink: 0;
}

.chat-input-inner[b-mor646zpfa] {
    width: 100%;
}

.chat-input-row[b-mor646zpfa] {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    background: #fff;
    border: 2px solid #bbc3cd;
    border-radius: 16px;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input-row:focus-within[b-mor646zpfa] {
    border-color: var(--primary, #0d6efd);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    background: #fff;
}

.chat-input-textarea[b-mor646zpfa] {
    flex: 1;
    padding: 0.5rem 0;
    border: none;
    font-size: 0.95rem;
    resize: none;
    min-height: 52px;
    max-height: 300px;
    font-family: inherit;
    line-height: 1.5;
    background: transparent;
    overflow-y: auto;
}

.chat-input-textarea:focus[b-mor646zpfa] {
    outline: none;
    box-shadow: none;
}

.chat-input-textarea:disabled[b-mor646zpfa] {
    background: transparent;
    cursor: not-allowed;
    opacity: 0.6;
}

.chat-send-btn[b-mor646zpfa] {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: var(--primary, #0d6efd);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.1s;
    flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled)[b-mor646zpfa] {
    background: #0b5ed7;
    transform: scale(1.05);
}

.chat-send-btn:disabled[b-mor646zpfa] {
    background: var(--text-muted, #ccc);
    cursor: not-allowed;
}

.chat-input-hint[b-mor646zpfa] {
    font-size: 0.7rem;
    color: var(--text-muted, #999);
    text-align: right;
    margin-top: 0.3rem;
    padding-right: 0.5rem;
}

/* --- Alerts --- */
.chat-alert[b-mor646zpfa] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
}

.chat-alert-error[b-mor646zpfa] {
    background: #fff5f5;
    border: 1px solid #fecaca;
    color: #dc3545;
}

.chat-alert-close[b-mor646zpfa] {
    margin-left: auto;
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
    padding: 0.15rem;
    font-size: 0.75rem;
}

/* --- Buttons --- */
.chat-btn-secondary[b-mor646zpfa] {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-light, #dee2e6);
    border-radius: 6px;
    background: #fff;
    color: var(--text-primary, #212529);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s;
}

.chat-btn-secondary:hover[b-mor646zpfa] {
    background: var(--bg-hover, #f0f0f0);
}

/* --- Learn From This --- */
.chat-learn-bar[b-mor646zpfa] {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0;
}

.chat-learn-btn[b-mor646zpfa] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border: 1px solid #28a745;
    border-radius: 20px;
    background: #f0faf3;
    color: #155724;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.chat-learn-btn:hover[b-mor646zpfa] {
    background: #d4edda;
}

.chat-learn-confirmed[b-mor646zpfa] {
    font-size: 0.82rem;
    color: #28a745;
    font-weight: 500;
}

.chat-feedback-panel[b-mor646zpfa] {
    width: 100%;
    max-width: 600px;
    border: 1px solid #d4edda;
    border-radius: 10px;
    background: #f9fdfb;
    overflow: hidden;
}

.chat-feedback-header[b-mor646zpfa] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: #d4edda;
    font-size: 0.85rem;
    font-weight: 600;
    color: #155724;
}

.chat-feedback-rating[b-mor646zpfa] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #e8f5e9;
}

.chat-feedback-star[b-mor646zpfa] {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #ccc;
    padding: 0 0.1rem;
    transition: color 0.15s;
}

.chat-feedback-star:hover[b-mor646zpfa],
.chat-feedback-star.active[b-mor646zpfa] {
    color: #f5a623;
}

.chat-feedback-rating-label[b-mor646zpfa] {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.chat-feedback-field[b-mor646zpfa] {
    padding: 0.5rem 0.75rem;
}

.chat-feedback-field label[b-mor646zpfa] {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.chat-feedback-field textarea[b-mor646zpfa] {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.82rem;
    resize: vertical;
    font-family: inherit;
}

.chat-feedback-field textarea:focus[b-mor646zpfa] {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.15);
}

.chat-feedback-actions[b-mor646zpfa] {
    padding: 0.5rem 0.75rem 0.75rem;
    display: flex;
    justify-content: flex-end;
}

/* --- History Preview Modal --- */
.chat-preview-overlay[b-mor646zpfa] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-preview-modal[b-mor646zpfa] {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-preview-header[b-mor646zpfa] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light, #e9ecef);
    background: #f8f9fa;
    flex-shrink: 0;
}

.chat-preview-body[b-mor646zpfa] {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-preview-feedback[b-mor646zpfa] {
    margin-top: 1rem;
    padding: 0.75rem;
    border: 1px solid #d4edda;
    border-radius: 8px;
    background: #f9fdfb;
}

.chat-preview-feedback-header[b-mor646zpfa] {
    font-size: 0.82rem;
    font-weight: 600;
    color: #155724;
    margin-bottom: 0.5rem;
}

.chat-preview-feedback-item[b-mor646zpfa] {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 0.3rem;
    color: #333;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .chat-layout[b-mor646zpfa] {
        grid-template-columns: 1fr;
    }

    .chat-sidebar[b-mor646zpfa] {
        display: none;
    }

    .chat-message[b-mor646zpfa] {
        max-width: 95%;
    }
}

/* --- Per-Message Rating Stars --- */
.chat-msg-rating[b-mor646zpfa] {
    display: inline-flex;
    gap: 1px;
    margin-right: 0.3rem;
}

.chat-msg-star[b-mor646zpfa] {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 1px;
    font-size: 0.7rem;
    color: #ccc;
    transition: color 0.15s;
    line-height: 1;
}

.chat-msg-star:hover[b-mor646zpfa] {
    color: #f5a623;
}

.chat-msg-star-active[b-mor646zpfa] {
    color: #f5a623;
}
/* /Components/ConEst/Admin/Lookups/NodeTypeDefinitions.razor.rz.scp.css */
/* Node type key code display */
.node-type-key[b-nu0kk85f0l] {
    font-size: 0.75rem;
    background: var(--bg-subtle, #f0f0f0);
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 0.5rem;
    color: var(--text-muted, #6c757d);
}

/* Category badges */
.badge-transform[b-nu0kk85f0l] { background: #0d6efd; color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; }
.badge-source[b-nu0kk85f0l] { background: #198754; color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; }
.badge-output[b-nu0kk85f0l] { background: #6c757d; color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; }

/* JSON column indicators */
.json-indicators[b-nu0kk85f0l] {
    display: flex;
    gap: 4px;
}

.json-dot[b-nu0kk85f0l] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 20px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
}

.json-dot-filled[b-nu0kk85f0l] {
    background: #d1ecf1;
    color: #0c5460;
}

.json-dot-empty[b-nu0kk85f0l] {
    background: #f8d7da;
    color: #721c24;
}

/* Inactive row */
.table-row-inactive[b-nu0kk85f0l] {
    opacity: 0.5;
}

/* Modal */
.modal-overlay[b-nu0kk85f0l] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 3rem;
    z-index: 1050;
    overflow-y: auto;
}

.modal-dialog[b-nu0kk85f0l] {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header[b-nu0kk85f0l] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3[b-nu0kk85f0l] {
    margin: 0;
    font-size: 1.1rem;
}

.modal-close[b-nu0kk85f0l] {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6c757d;
}

.modal-body[b-nu0kk85f0l] {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer[b-nu0kk85f0l] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Form layout */
.form-row[b-nu0kk85f0l] {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group[b-nu0kk85f0l] {
    flex: 1;
    margin-bottom: 0.75rem;
}

.form-group label[b-nu0kk85f0l] {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

/* JSON editor tabs */
.json-tabs[b-nu0kk85f0l] {
    display: flex;
    gap: 2px;
    margin-top: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.json-tab[b-nu0kk85f0l] {
    padding: 0.5rem 1rem;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px 4px 0 0;
    color: #495057;
}

.json-tab-active[b-nu0kk85f0l] {
    background: white;
    border-bottom: 2px solid #0d6efd;
    margin-bottom: -2px;
    color: #0d6efd;
}

/* JSON editor textarea */
.json-editor-container[b-nu0kk85f0l] {
    margin-top: 0;
}

.json-editor[b-nu0kk85f0l] {
    width: 100%;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.5;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 4px 4px;
    resize: vertical;
    background: #fafbfc;
    tab-size: 2;
}

/* Prompt preview */
.prompt-preview[b-nu0kk85f0l] {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    max-height: 60vh;
    overflow-y: auto;
}
/* /Components/ConEst/Admin/PromptEvaluation.razor.rz.scp.css */
/* Breadcrumb */
.eval-breadcrumb[b-wux415k5b4] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.eval-breadcrumb a[b-wux415k5b4] {
    color: var(--primary, #0d6efd);
    text-decoration: none;
}

.eval-breadcrumb a:hover[b-wux415k5b4] {
    text-decoration: underline;
}

.eval-breadcrumb > span:not(.eval-breadcrumb-sep)[b-wux415k5b4] {
    color: var(--text-primary, #212529);
    font-weight: 500;
}

.eval-breadcrumb-sep[b-wux415k5b4] {
    color: var(--text-muted, #6c757d);
    font-size: 0.75rem;
}

.eval-breadcrumb .fa-chevron-right[b-wux415k5b4] {
    font-size: 0.6rem;
    color: var(--text-muted, #6c757d);
}

/* Scorecard */
.prompt-eval-scorecard[b-wux415k5b4] {
    border-left: 4px solid var(--primary, #0d6efd);
}

.prompt-eval-scorecard-row[b-wux415k5b4] {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    font-size: 1.05rem;
}

.prompt-eval-icon-ref[b-wux415k5b4] {
    color: var(--primary, #0d6efd);
}

.prompt-eval-icon-clean[b-wux415k5b4] {
    color: var(--text-muted, #6c757d);
}

.prompt-eval-divider[b-wux415k5b4] {
    color: var(--border-light, #dee2e6);
    font-size: 1.5rem;
}

/* Filter Bar */
.prompt-eval-filter-category[b-wux415k5b4] {
    width: 160px;
}

.prompt-eval-filter-rating[b-wux415k5b4] {
    width: 140px;
}

.prompt-eval-filter-ref[b-wux415k5b4] {
    width: 180px;
}

.prompt-eval-filter-count[b-wux415k5b4] {
    display: flex;
    align-items: center;
    margin-top: 24px;
}

/* Run List */
.prompt-eval-run[b-wux415k5b4] {
    border-bottom: 1px solid var(--border-light, #e9ecef);
}

.prompt-eval-run-expanded[b-wux415k5b4] {
    background: var(--bg-subtle, #f8f9fa);
}

.prompt-eval-run-header[b-wux415k5b4] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.prompt-eval-run-header:hover[b-wux415k5b4] {
    background-color: var(--bg-hover, #f8f9fa);
}

.prompt-eval-run-preview[b-wux415k5b4] {
    font-size: 0.85rem;
    color: var(--text-secondary, #495057);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 500px;
}

.prompt-eval-run-details[b-wux415k5b4] {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border-light, #e9ecef);
}

/* Reference tags (used in run list and compare) */
.prompt-eval-ref-tag[b-wux415k5b4] {
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 3px;
}

.prompt-eval-ref-tag-with[b-wux415k5b4] {
    background: var(--primary-light, #e7f1ff);
    color: var(--primary, #0d6efd);
}

.prompt-eval-ref-tag-clean[b-wux415k5b4] {
    font-size: 0.7rem;
    color: var(--text-muted, #6c757d);
}

/* Code blocks in evaluation */
.prompt-eval-code[b-wux415k5b4] {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: var(--font-mono, 'Consolas', monospace);
    font-size: 0.8rem;
    line-height: 1.5;
    background: var(--bg-subtle, #f8f9fa);
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: 4px;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
}

.prompt-eval-code-short[b-wux415k5b4] {
    max-height: 150px;
}

/* Response Display */
.prompt-response[b-wux415k5b4] {
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: 4px;
    padding: 12px;
}

.prompt-response-compare[b-wux415k5b4] {
    max-height: 300px;
}

.prompt-response-text[b-wux415k5b4] {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: var(--font-mono, 'Consolas', monospace);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
    background: transparent;
    border: none;
    color: inherit;
}

/* Compare Panel */
.prompt-eval-compare-panel[b-wux415k5b4] {
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: 4px;
    padding: 1rem;
}

.prompt-eval-compare-header[b-wux415k5b4] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light, #e9ecef);
}

.prompt-eval-compare-summary[b-wux415k5b4] {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}

.prompt-eval-label[b-wux415k5b4] {
    font-weight: 500;
}

.prompt-eval-question-text[b-wux415k5b4] {
    font-size: 0.85rem;
    color: var(--text-secondary, #495057);
}

.prompt-eval-error-sm[b-wux415k5b4] {
    font-size: 0.85rem;
}

/* Notes input */
.prompt-eval-notes-input[b-wux415k5b4] {
    flex: 1;
}

/* Status icons */
.prompt-eval-empty-icon[b-wux415k5b4] {
    font-size: 2rem;
    color: var(--text-muted, #6c757d);
}

.prompt-icon-danger[b-wux415k5b4] {
    color: var(--danger, #dc3545);
}

.prompt-icon-muted[b-wux415k5b4] {
    color: var(--text-muted, #6c757d);
}

/* Category & Tag Badges */
.prompt-eval-category-badge[b-wux415k5b4] {
    display: inline-block;
    background: var(--bg-subtle, #e9ecef);
    color: var(--text-secondary, #495057);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prompt-eval-tag[b-wux415k5b4] {
    display: inline-block;
    background: var(--primary-light, #e7f1ff);
    color: var(--primary, #0d6efd);
    border-radius: 12px;
    padding: 1px 8px;
    font-size: 0.7rem;
    margin-right: 4px;
}

/* Rating badge */
.prompt-rating-badge[b-wux415k5b4] {
    display: inline-block;
    background: #f5a623;
    color: white;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.prompt-rating-badge-lg[b-wux415k5b4] {
    font-size: 0.85rem;
}

.prompt-rating[b-wux415k5b4] {
    display: flex;
    gap: 2px;
}

.prompt-star[b-wux415k5b4] {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: var(--text-muted, #6c757d);
    font-size: 1rem;
    transition: color 0.15s;
}

.prompt-star:hover[b-wux415k5b4],
.prompt-star-filled[b-wux415k5b4] {
    color: #f5a623;
}

/* Methodology filter */
.prompt-eval-filter-methodology[b-wux415k5b4] {
    width: 180px;
}

/* Methodology Statistics Card */
.methodology-stats-card[b-wux415k5b4] {
    border-left: 4px solid var(--warning, #ffc107);
}

.methodology-stats-grid[b-wux415k5b4] {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    gap: 0;
}

.methodology-stat-column[b-wux415k5b4] {
    padding: 1rem;
    border-radius: 4px;
}

.methodology-stat-winner[b-wux415k5b4] {
    background: var(--success-light, #d1e7dd);
    border: 2px solid var(--success, #198754);
}

.methodology-stat-column h4[b-wux415k5b4] {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.methodology-stat-column h4 i[b-wux415k5b4] {
    margin-right: 6px;
}

.methodology-stat-row[b-wux415k5b4] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-light, #e9ecef);
}

.methodology-stat-row:last-child[b-wux415k5b4] {
    border-bottom: none;
}

.methodology-stat-label[b-wux415k5b4] {
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
}

.methodology-stat-value[b-wux415k5b4] {
    font-size: 0.9rem;
    font-weight: 600;
}

.methodology-stat-wins[b-wux415k5b4] {
    color: var(--success, #198754);
    font-size: 1.1rem;
}

.methodology-stat-middle[b-wux415k5b4] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: var(--bg-subtle, #f8f9fa);
    border-radius: 4px;
}

.methodology-stat-vs[b-wux415k5b4] {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-muted, #6c757d);
}

.methodology-stat-ties[b-wux415k5b4] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.methodology-stat-pending[b-wux415k5b4] {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .methodology-stats-grid[b-wux415k5b4] {
        grid-template-columns: 1fr;
    }

    .methodology-stat-middle[b-wux415k5b4] {
        flex-direction: row;
        justify-content: center;
        padding: 0.75rem;
    }
}
/* /Components/ConEst/Admin/PromptWorkshop.razor.rz.scp.css */
/* Utility classes */
.workshop-role-select[b-v8w5md4a5e] {
    flex: 1;
}

.workshop-template-select[b-v8w5md4a5e] {
    width: 180px;
}

.workshop-hidden-input[b-v8w5md4a5e] {
    display: none;
}

/* Workshop Layout */
.workshop-layout[b-v8w5md4a5e] {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-lg, 1.5rem);
    align-items: start;
}

.workshop-builder[b-v8w5md4a5e] {
    min-width: 0;
}

.workshop-sidebar[b-v8w5md4a5e] {
    position: sticky;
    top: 1rem;
}

/* Breadcrumb */
.workshop-breadcrumb[b-v8w5md4a5e] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.workshop-breadcrumb a[b-v8w5md4a5e] {
    color: var(--primary, #0d6efd);
    text-decoration: none;
}

.workshop-breadcrumb a:hover[b-v8w5md4a5e] {
    text-decoration: underline;
}

.workshop-breadcrumb > span:not(.workshop-breadcrumb-sep)[b-v8w5md4a5e] {
    color: var(--text-primary, #212529);
    font-weight: 500;
}

.workshop-breadcrumb-sep[b-v8w5md4a5e] {
    color: var(--text-muted, #6c757d);
    font-size: 0.75rem;
}

.workshop-breadcrumb .fa-chevron-right[b-v8w5md4a5e] {
    font-size: 0.6rem;
    color: var(--text-muted, #6c757d);
}

/* Step Numbers */
.workshop-step[b-v8w5md4a5e] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary, #0d6efd);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 6px;
}

.workshop-optional[b-v8w5md4a5e] {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted, #6c757d);
    margin-left: 4px;
}

/* Field Hints */
.workshop-field-hint[b-v8w5md4a5e] {
    font-size: 0.85rem;
    color: var(--text-secondary, #495057);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* Role Preview Chip */
.workshop-preview-chip[b-v8w5md4a5e] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--bg-active, #e3f2fd);
    color: var(--primary, #0d6efd);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Assembly Size Selector */
.workshop-size-selector[b-v8w5md4a5e] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.workshop-size-btn[b-v8w5md4a5e] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 2px solid var(--border-light, #e9ecef);
    border-radius: var(--radius-md, 8px);
    background: var(--bg-white, #fff);
    cursor: pointer;
    transition: all 0.2s;
}

.workshop-size-btn:hover[b-v8w5md4a5e] {
    border-color: var(--primary, #0d6efd);
    background: var(--bg-hover, #f8f9fa);
}

.workshop-size-active[b-v8w5md4a5e] {
    border-color: var(--primary, #0d6efd);
    background: var(--bg-active, #e3f2fd);
}

.workshop-size-icon[b-v8w5md4a5e] {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary, #0d6efd);
    margin-bottom: 4px;
}

.workshop-size-label[b-v8w5md4a5e] {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #212529);
}

.workshop-size-desc[b-v8w5md4a5e] {
    font-size: 0.75rem;
    color: var(--text-muted, #6c757d);
    text-align: center;
    margin-top: 2px;
}

.workshop-size-detail[b-v8w5md4a5e] {
    padding: 12px;
    background: var(--bg-subtle, #f8f9fa);
    border-radius: var(--radius-sm, 4px);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Textareas */
.workshop-textarea[b-v8w5md4a5e] {
    resize: vertical;
    font-size: 0.9rem;
    line-height: 1.5;
}

.workshop-textarea-sm[b-v8w5md4a5e] {
    resize: vertical;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Parameters */
.workshop-param-list[b-v8w5md4a5e] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.workshop-param-row[b-v8w5md4a5e] {
    display: flex;
    gap: 8px;
    align-items: center;
}

.workshop-param-key[b-v8w5md4a5e] {
    flex: 0 0 180px;
    font-size: 0.85rem;
}

.workshop-param-value[b-v8w5md4a5e] {
    flex: 1;
    font-size: 0.85rem;
}

.workshop-param-remove[b-v8w5md4a5e] {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted, #6c757d);
    padding: 4px 8px;
    font-size: 0.85rem;
    transition: color 0.15s;
}

.workshop-param-remove:hover[b-v8w5md4a5e] {
    color: var(--danger, #dc3545);
}

.workshop-param-presets[b-v8w5md4a5e] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.workshop-preset-btn[b-v8w5md4a5e] {
    padding: 4px 10px;
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: 20px;
    background: var(--bg-white, #fff);
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-secondary, #495057);
    transition: all 0.15s;
}

.workshop-preset-btn:hover[b-v8w5md4a5e] {
    background: var(--bg-hover, #f8f9fa);
    border-color: var(--primary, #0d6efd);
    color: var(--primary, #0d6efd);
}

.workshop-preset-btn i[b-v8w5md4a5e] {
    margin-right: 4px;
}

.workshop-empty-params[b-v8w5md4a5e] {
    padding: 8px 0;
}

/* Output Format */
.workshop-format-options[b-v8w5md4a5e] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.workshop-format-option[b-v8w5md4a5e] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: var(--radius-sm, 4px);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.workshop-format-option:hover[b-v8w5md4a5e] {
    background: var(--bg-hover, #f8f9fa);
    border-color: var(--border-medium, #dee2e6);
}

.workshop-format-active[b-v8w5md4a5e] {
    background: var(--bg-active, #e3f2fd);
    border-color: var(--primary, #0d6efd);
    color: var(--primary, #0d6efd);
}

.workshop-format-option input[type="radio"][b-v8w5md4a5e] {
    display: none;
}

/* Examples */
.workshop-example[b-v8w5md4a5e] {
    padding: 12px;
    background: var(--bg-subtle, #f8f9fa);
    border-radius: var(--radius-sm, 4px);
    border: 1px solid var(--border-light, #e9ecef);
}

/* Action Bar */
.workshop-actions[b-v8w5md4a5e] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: var(--radius-md, 8px);
    position: sticky;
    bottom: 1rem;
    z-index: 10;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

/* Prompt Preview */
.workshop-preview-text[b-v8w5md4a5e] {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: var(--font-mono, 'Consolas', monospace);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-subtle, #f8f9fa);
    padding: var(--space-md, 1rem);
    border-radius: var(--radius-sm, 4px);
    border: none;
    color: inherit;
}

/* Tips Panel */
.workshop-tip[b-v8w5md4a5e] {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-secondary, #495057);
    border-bottom: 1px solid var(--border-light, #e9ecef);
}

.workshop-tip:last-child[b-v8w5md4a5e] {
    border-bottom: none;
}

.workshop-tip i[b-v8w5md4a5e] {
    color: var(--primary, #0d6efd);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Best Practices */
.workshop-best-practice[b-v8w5md4a5e] {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light, #e9ecef);
}

.workshop-best-practice:last-child[b-v8w5md4a5e] {
    border-bottom: none;
}

.workshop-best-practice strong[b-v8w5md4a5e] {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary, #212529);
    margin-bottom: 2px;
}

.workshop-best-practice p[b-v8w5md4a5e] {
    font-size: 0.8rem;
    color: var(--text-secondary, #495057);
    margin: 0;
    line-height: 1.4;
}

/* Feedback Card */
.workshop-feedback-card[b-v8w5md4a5e] {
    border-left: 3px solid var(--warning, #ffc107);
}

.workshop-suggestion[b-v8w5md4a5e] {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-secondary, #495057);
}

.workshop-suggestion i[b-v8w5md4a5e] {
    color: var(--warning, #ffc107);
    margin-top: 3px;
    flex-shrink: 0;
}

/* AI Suggestions */
.workshop-ai-suggestions[b-v8w5md4a5e] {
    padding: 12px;
    background: var(--bg-subtle, #f8f9fa);
    border-radius: var(--radius-sm, 4px);
    border: 1px solid var(--border-light, #e9ecef);
}

.workshop-ai-suggestions-header[b-v8w5md4a5e] {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary, #0d6efd);
    margin-bottom: 8px;
}

.workshop-ai-suggestions-text[b-v8w5md4a5e] {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    background: transparent;
    border: none;
    color: inherit;
}

/* Reuse PromptStudio patterns */
.prompt-section-header[b-v8w5md4a5e] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s;
}

.prompt-section-header:hover[b-v8w5md4a5e] {
    background-color: var(--bg-hover, #f8f9fa);
}

.prompt-section-chevron[b-v8w5md4a5e] {
    font-size: 0.7rem;
    color: var(--text-muted, #6c757d);
    width: 12px;
}

.prompt-upload-label[b-v8w5md4a5e] {
    cursor: pointer;
    margin: 0;
}

.prompt-response[b-v8w5md4a5e] {
    max-height: 600px;
    overflow-y: auto;
    background: var(--bg-subtle, #f8f9fa);
    border-radius: var(--radius-sm, 4px);
    padding: var(--space-md, 1rem);
}

.prompt-response-text[b-v8w5md4a5e] {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: var(--font-mono, 'Consolas', monospace);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    background: transparent;
    border: none;
    color: inherit;
}

.prompt-rating[b-v8w5md4a5e] {
    display: flex;
    gap: 2px;
}

.prompt-star[b-v8w5md4a5e] {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: var(--text-muted, #6c757d);
    font-size: 1rem;
    transition: color 0.15s;
}

.prompt-star:hover[b-v8w5md4a5e],
.prompt-star-filled[b-v8w5md4a5e] {
    color: var(--rating-star, #f5a623);
}

.prompt-icon-danger[b-v8w5md4a5e] {
    color: var(--danger, #dc3545);
}

.prompt-icon-success[b-v8w5md4a5e] {
    color: var(--success, #198754);
}

.prompt-rating-badge[b-v8w5md4a5e] {
    display: inline-block;
    background: var(--rating-star, #f5a623);
    color: white;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.prompt-history-list[b-v8w5md4a5e] {
    max-height: calc(100vh - 600px);
    overflow-y: auto;
}

.prompt-history-item[b-v8w5md4a5e] {
    padding: var(--space-sm, 0.5rem) var(--space-md, 1rem);
    border-bottom: 1px solid var(--border-light, #e9ecef);
    cursor: pointer;
    transition: background-color 0.15s;
}

.prompt-history-item:hover[b-v8w5md4a5e] {
    background-color: var(--bg-hover, #f8f9fa);
}

.prompt-history-item-active[b-v8w5md4a5e] {
    background-color: var(--bg-active, #e3f2fd);
    border-left: 3px solid var(--primary, #0d6efd);
}

.prompt-history-preview[b-v8w5md4a5e] {
    font-size: 0.8rem;
    color: var(--text-secondary, #495057);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Context file reuse */
.context-file-list[b-v8w5md4a5e] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.context-file-item[b-v8w5md4a5e] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: var(--radius-sm, 4px);
    cursor: pointer;
    transition: all 0.15s;
    margin: 0;
}

.context-file-item:hover[b-v8w5md4a5e] {
    background: var(--bg-hover, #f8f9fa);
}

.context-file-selected[b-v8w5md4a5e] {
    background: var(--bg-active, #e3f2fd);
    border-color: var(--primary, #0d6efd);
}

.context-file-info[b-v8w5md4a5e] {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.context-file-name[b-v8w5md4a5e] {
    font-size: 0.85rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.context-file-tag[b-v8w5md4a5e] {
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 3px;
    background: var(--bg-subtle, #f8f9fa);
    color: var(--text-secondary, #495057);
    border: 1px solid var(--border-light, #e9ecef);
}

/* Large button */
[b-v8w5md4a5e] .ce-button-lg {
    padding: 10px 24px;
    font-size: 1rem;
}

[b-v8w5md4a5e] .ce-button-sm {
    padding: 4px 12px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 992px) {
    .workshop-layout[b-v8w5md4a5e] {
        grid-template-columns: 1fr;
    }

    .workshop-sidebar[b-v8w5md4a5e] {
        position: static;
    }

    .prompt-history-list[b-v8w5md4a5e] {
        max-height: 300px;
    }

    .workshop-size-selector[b-v8w5md4a5e] {
        grid-template-columns: 1fr;
    }

    .workshop-actions[b-v8w5md4a5e] {
        flex-direction: column;
        gap: 12px;
    }
}
/* /Components/ConEst/Admin/StudioConsole.razor.rz.scp.css */
/* Breadcrumb */
.prompt-breadcrumb[b-5pjze9yvyt] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.prompt-breadcrumb a[b-5pjze9yvyt] {
    color: var(--primary, #0d6efd);
    text-decoration: none;
}

.prompt-breadcrumb a:hover[b-5pjze9yvyt] {
    text-decoration: underline;
}

.prompt-breadcrumb > span:not(.prompt-breadcrumb-sep)[b-5pjze9yvyt] {
    color: var(--text-primary, #212529);
    font-weight: 500;
}

.prompt-breadcrumb-sep[b-5pjze9yvyt] {
    color: var(--text-muted, #6c757d);
    font-size: 0.75rem;
}

.prompt-breadcrumb .fa-chevron-right[b-5pjze9yvyt] {
    font-size: 0.6rem;
    color: var(--text-muted, #6c757d);
}

/* Mode Tabs */
.prompt-mode-tabs[b-5pjze9yvyt] {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-light, #e9ecef);
}

.prompt-mode-tab[b-5pjze9yvyt] {
    padding: 10px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted, #6c757d);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.prompt-mode-tab:hover[b-5pjze9yvyt] {
    color: var(--text-primary, #212529);
    background: var(--bg-hover, #f8f9fa);
}

.prompt-mode-tab-active[b-5pjze9yvyt] {
    color: var(--primary, #0d6efd);
    border-bottom-color: var(--primary, #0d6efd);
}

/* Mode Hint (replaces full mode description card) */
.prompt-mode-hint[b-5pjze9yvyt] {
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
    margin: 0.5rem 0 0;
    padding: 0;
}

.prompt-mode-hint i[b-5pjze9yvyt] {
    color: var(--primary, #0d6efd);
    margin-right: 4px;
}

/* Collapsible Section Headers */
.prompt-section-header[b-5pjze9yvyt] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s;
}

.prompt-section-header:hover[b-5pjze9yvyt] {
    background-color: var(--bg-hover, #f8f9fa);
}

.prompt-section-chevron[b-5pjze9yvyt] {
    font-size: 0.7rem;
    color: var(--text-muted, #6c757d);
    width: 12px;
    transition: transform 0.15s;
}

.prompt-section-summary[b-5pjze9yvyt] {
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 400px;
}

.prompt-section-note[b-5pjze9yvyt] {
    display: block;
    margin-bottom: 0.5rem;
}

/* Status indicators */
.prompt-status-ready[b-5pjze9yvyt] {
    font-size: 0.75rem;
    color: var(--success, #198754);
    font-weight: 500;
}

.prompt-icon-danger[b-5pjze9yvyt] {
    color: var(--danger, #dc3545);
}

.prompt-icon-success[b-5pjze9yvyt] {
    color: var(--success, #198754);
}

/* Reference badges (response card) */
.prompt-ref-badge[b-5pjze9yvyt] {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.prompt-ref-badge-with[b-5pjze9yvyt] {
    background: var(--primary-light, #e7f1ff);
    color: var(--primary, #0d6efd);
}

.prompt-ref-badge-clean[b-5pjze9yvyt] {
    background: var(--bg-subtle, #f8f9fa);
    color: var(--text-muted, #6c757d);
}

/* Token summary bar */
.prompt-token-summary[b-5pjze9yvyt] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
}

/* Empty state for reference files */
.prompt-empty-state[b-5pjze9yvyt] {
    text-align: center;
    padding: 1.5rem 1rem;
}

.prompt-empty-icon[b-5pjze9yvyt] {
    font-size: 2rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 0.5rem;
}

.prompt-empty-state p[b-5pjze9yvyt] {
    color: var(--text-secondary, #495057);
    margin-bottom: 0.25rem;
}

/* Upload button (remove default label styling) */
.prompt-upload-label[b-5pjze9yvyt] {
    cursor: pointer;
    margin: 0;
}

/* Data preview */
.prompt-data-preview-toggle[b-5pjze9yvyt] {
    cursor: pointer;
    color: var(--text-muted, #6c757d);
}

.prompt-data-preview[b-5pjze9yvyt] {
    max-height: 150px;
    overflow-y: auto;
    font-size: 0.75rem;
}

/* Sizing for selects in header area */
.prompt-template-select[b-5pjze9yvyt] {
    width: 200px;
}

.prompt-role-select[b-5pjze9yvyt] {
    flex: 1;
}

.prompt-param-select[b-5pjze9yvyt] {
    width: 150px;
}

/* Prompt Studio Layout */
.prompt-studio-layout[b-5pjze9yvyt] {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-lg, 1.5rem);
    align-items: start;
}

/* Prompt Editor Column */
.prompt-editor-column[b-5pjze9yvyt] {
    min-width: 0;
}

/* Textareas */
.prompt-textarea-system[b-5pjze9yvyt] {
    min-height: 200px;
    max-height: 500px;
    resize: vertical;
    font-family: var(--font-mono, 'Consolas', monospace);
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.prompt-textarea-user[b-5pjze9yvyt] {
    min-height: 120px;
    max-height: 400px;
    resize: vertical;
    font-family: var(--font-mono, 'Consolas', monospace);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Response Display */
.prompt-response[b-5pjze9yvyt] {
    max-height: 600px;
    overflow-y: auto;
    background: var(--bg-subtle, #f8f9fa);
    border-radius: var(--radius-sm, 4px);
    padding: var(--space-md, 1rem);
}

.prompt-response-text[b-5pjze9yvyt] {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: var(--font-mono, 'Consolas', monospace);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    background: transparent;
    border: none;
    color: inherit;
}

/* History Column */
.prompt-history-column[b-5pjze9yvyt] {
    position: sticky;
    top: 1rem;
}

/* Small button variant */
[b-5pjze9yvyt] .ce-button-sm {
    padding: 4px 12px;
    font-size: 0.8rem;
}

[b-5pjze9yvyt] .ce-form-select-sm {
    padding: 4px 8px;
    font-size: 0.8rem;
    height: auto;
}

/* Context File List */
.context-file-list[b-5pjze9yvyt] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.context-file-item[b-5pjze9yvyt] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: var(--radius-sm, 4px);
    cursor: pointer;
    transition: all 0.15s;
    margin: 0;
}

.context-file-item:hover[b-5pjze9yvyt] {
    background: var(--bg-hover, #f8f9fa);
    border-color: var(--border-medium, #dee2e6);
}

.context-file-selected[b-5pjze9yvyt] {
    background: var(--bg-active, #e3f2fd);
    border-color: var(--primary, #0d6efd);
}

.context-file-info[b-5pjze9yvyt] {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.context-file-name[b-5pjze9yvyt] {
    font-size: 0.85rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.context-file-tag[b-5pjze9yvyt] {
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 3px;
    background: var(--bg-subtle, #f8f9fa);
    color: var(--text-secondary, #495057);
    border: 1px solid var(--border-light, #e9ecef);
    white-space: nowrap;
}

/* Methodology Selector */
.methodology-selector[b-5pjze9yvyt] {
    background: var(--bg-subtle, #f8f9fa);
}

.methodology-title[b-5pjze9yvyt] {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: block;
}

.methodology-options[b-5pjze9yvyt] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.methodology-radios[b-5pjze9yvyt] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.methodology-radio[b-5pjze9yvyt] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-light, #dee2e6);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: white;
    font-size: 0.85rem;
    color: var(--text-primary, #212529);
}

.methodology-radio:hover[b-5pjze9yvyt] {
    border-color: var(--primary, #0d6efd);
    background: #f0f6ff;
}

.methodology-radio-active[b-5pjze9yvyt] {
    border-color: var(--primary, #0d6efd);
    background: var(--primary-light, #e7f1ff);
    box-shadow: 0 0 0 1px var(--primary, #0d6efd);
}

.methodology-name[b-5pjze9yvyt] {
    font-weight: 500;
}

.methodology-radio small[b-5pjze9yvyt] {
    font-size: 0.7rem;
    color: var(--text-muted, #6c757d);
}

.methodology-radio i[b-5pjze9yvyt] {
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.methodology-compare[b-5pjze9yvyt] {
    flex-shrink: 0;
    padding-top: 2px;
}

/* Upload button styled as label */
.prompt-upload-btn[b-5pjze9yvyt] {
    cursor: pointer;
}

/* Methodology tag in history */
.prompt-methodology-tag[b-5pjze9yvyt] {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    background: var(--bg-subtle, #e9ecef);
    color: var(--text-secondary, #6c757d);
    margin-left: 4px;
}

/* Rating, feedback, and suggestion styles moved to AiFeedbackBar.razor.css */

/* Comparison Panel */
.comparison-panel .ce-card-body[b-5pjze9yvyt] {
    padding: 0;
}

.comparison-grid[b-5pjze9yvyt] {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 0;
}

.comparison-column[b-5pjze9yvyt] {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-light, #e9ecef);
    padding: 1rem;
}

.comparison-column:last-child[b-5pjze9yvyt] {
    border-right: none;
}

.comparison-winner[b-5pjze9yvyt] {
    background: var(--success-light, #d1e7dd);
}

.comparison-header[b-5pjze9yvyt] {
    margin-bottom: 0.75rem;
}

.comparison-header h4[b-5pjze9yvyt] {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.comparison-content[b-5pjze9yvyt] {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    background: var(--bg-subtle, #f8f9fa);
    border-radius: var(--radius-sm, 4px);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.comparison-vote-btn[b-5pjze9yvyt] {
    width: 100%;
}

.comparison-middle[b-5pjze9yvyt] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0.5rem;
    background: var(--bg-subtle, #f8f9fa);
}

.comparison-notes[b-5pjze9yvyt] {
    font-size: 0.8rem;
    text-align: center;
}

.comparison-notes p[b-5pjze9yvyt] {
    margin: 4px 0 0 0;
    font-style: italic;
}

/* Responsive */
@media (max-width: 992px) {
    .prompt-studio-layout[b-5pjze9yvyt] {
        grid-template-columns: 1fr;
    }

    .prompt-history-column[b-5pjze9yvyt] {
        position: static;
    }

    .prompt-history-list[b-5pjze9yvyt] {
        max-height: 400px;
    }

    .comparison-grid[b-5pjze9yvyt] {
        grid-template-columns: 1fr;
    }

    .comparison-column[b-5pjze9yvyt] {
        border-right: none;
        border-bottom: 1px solid var(--border-light, #e9ecef);
    }

    .comparison-middle[b-5pjze9yvyt] {
        flex-direction: row;
        padding: 0.75rem;
    }
}

/* Response table, tier/scope badges, AI suggestion styles moved to AiResponseRenderer.razor.css */

/* Model selector + usage governor styles moved to AiModelGovernorBar.razor (shared component) */

/* Governor override (still used in alert section) */
.governor-override-label[b-5pjze9yvyt] {
    margin-left: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.governor-override-label input[b-5pjze9yvyt] {
    margin-right: 4px;
}

/* Cost confirmation */
.cost-confirmation[b-5pjze9yvyt] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cost-confirmation-actions[b-5pjze9yvyt] {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}
/* /Components/NodeGraph/NodeGraphEditor.razor.rz.scp.css */
.graph-header[b-jis2vjdofu] {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--control-bg-color);
    border-bottom: 1px solid var(--border-color);
}

.graph-header h2[b-jis2vjdofu] {
    margin: 0;
    flex: 1;
}

.graph-stats[b-jis2vjdofu] {
    display: flex;
    gap: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.graph-stats span[b-jis2vjdofu] {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--main-bg-color);
    border-radius: var(--radius-sm);
}

/* Output Node connection warning banner */
.output-warning-banner[b-jis2vjdofu] {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: #856404;
    font-size: var(--font-size-sm);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.output-warning-banner svg[b-jis2vjdofu] {
    flex-shrink: 0;
    color: #856404;
}

.preview-drawer-header[b-jis2vjdofu] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--main-bg-color);
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.preview-drawer-header button[b-jis2vjdofu] {
    border: none;
    background: transparent;
    font-size: var(--font-size-lg);
    cursor: pointer;
    color: var(--text-secondary);
}

.filter-logic-selector[b-jis2vjdofu] {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.filter-logic-selector label[b-jis2vjdofu] {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
}

.btn[b-jis2vjdofu] {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color var(--transition-fast);
}

.btn-primary[b-jis2vjdofu] {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover[b-jis2vjdofu] {
    background-color: var(--primary-dark);
}

.btn-secondary[b-jis2vjdofu] {
    background-color: var(--main-bg-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover[b-jis2vjdofu] {
    background-color: var(--hover-bg);
}

/* Blazor Diagrams styling overrides - matches React app */
/* Apply dot grid background to the Blazor.Diagrams canvas element */
[b-jis2vjdofu](.diagram-canvas) {
    background-color: #f4f4f4;
    background-image: radial-gradient(circle, #999 1px, transparent 1px);
    background-size: 12px 12px;
}

/* Edge/Link styling - marching ants animation with easy selection */
[b-jis2vjdofu](g[class*="link"]),
[b-jis2vjdofu](.diagram-link),
[b-jis2vjdofu](.link) {
    pointer-events: auto !important;
    cursor: pointer !important;
}

[b-jis2vjdofu](g[class*="link"]) > path,
[b-jis2vjdofu](.diagram-link) > path,
[b-jis2vjdofu](.link) > path,
[b-jis2vjdofu](.diagram-canvas svg g > path) {
    stroke: rgba(0, 0, 0, 0.7) !important;
    stroke-width: 2 !important;
    fill: none !important;
    stroke-dasharray: 5 5 !important;
    animation: marching-ants-b-jis2vjdofu 0.5s linear infinite !important;
    pointer-events: stroke !important;
    cursor: pointer !important;
}

[b-jis2vjdofu](g[class*="link"].selected) > path,
[b-jis2vjdofu](.diagram-link.selected) > path,
[b-jis2vjdofu](.selected) > path {
    stroke: #1976d2 !important;
    stroke-width: 3 !important;
}

[b-jis2vjdofu](g[class*="link"]:hover) > path,
[b-jis2vjdofu](.diagram-link:hover) > path {
    stroke: #1976d2 !important;
    stroke-width: 3 !important;
}

/* Widen selection helper paths for easier link clicking */
[b-jis2vjdofu](path.selection-helper) {
    stroke-width: 24px !important;
    cursor: pointer !important;
    pointer-events: stroke !important;
}

@keyframes marching-ants-b-jis2vjdofu {
    to {
        stroke-dashoffset: -10;
    }
}

/* Navigator Widget (MiniMap) styling */
[b-jis2vjdofu](.navigator-widget) {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: white;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 100;
}

[b-jis2vjdofu](.navigator-widget svg) {
    background: #f8f9fa;
}

[b-jis2vjdofu](.navigator-widget rect.viewport) {
    stroke: var(--primary-color, #1976d2);
    stroke-width: 2;
    fill: rgba(25, 118, 210, 0.1);
}

/* Canvas Controls Container */
.canvas-controls[b-jis2vjdofu] {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
}

/* Reset View Button */
.reset-view-btn[b-jis2vjdofu] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-secondary, #666);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast, 0.15s);
}

.reset-view-btn:hover[b-jis2vjdofu] {
    background: var(--hover-bg, #f5f5f5);
    color: var(--primary-color, #1976d2);
    border-color: var(--primary-color, #1976d2);
}

/* Zoom Indicator Badge */
.zoom-indicator[b-jis2vjdofu] {
    background: white;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary, #666);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    user-select: none;
}

/* Empty Canvas Placeholder */
.empty-canvas-placeholder[b-jis2vjdofu] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    color: var(--text-secondary, #666);
    z-index: 10;
    pointer-events: none;
}

.empty-canvas-icon[b-jis2vjdofu] {
    color: var(--text-disabled, #ccc);
}

.empty-canvas-placeholder p[b-jis2vjdofu] {
    max-width: 280px;
    font-size: var(--font-size-sm, 14px);
    margin: 0;
}

/* Loading Canvas Overlay */
.loading-canvas-overlay[b-jis2vjdofu] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.85);
    z-index: 20;
    pointer-events: none;
}

.loading-canvas-overlay p[b-jis2vjdofu] {
    font-size: var(--font-size-sm, 14px);
    color: var(--text-secondary, #666);
    margin: 0;
}

/* View Mode Buttons */
.view-mode-buttons[b-jis2vjdofu] {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.view-mode-btn[b-jis2vjdofu] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: var(--radius-sm, 4px);
    background: white;
    cursor: pointer;
    color: var(--text-secondary, #666);
    transition: all var(--transition-fast, 0.15s);
}

.view-mode-btn:hover:not(:disabled)[b-jis2vjdofu] {
    background: var(--hover-bg, #f5f5f5);
    color: var(--text-primary, #333);
}

.view-mode-btn.active[b-jis2vjdofu] {
    background: var(--primary-light, #e3f2fd);
    border-color: var(--primary-color, #1976d2);
    color: var(--primary-color, #1976d2);
}

.view-mode-btn:disabled[b-jis2vjdofu] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* View Content Container */
.view-content[b-jis2vjdofu] {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

/* Graph mode wrapper — absolute fill so it doesn't push height */
.graph-content-wrapper[b-jis2vjdofu] {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

.graph-pane[b-jis2vjdofu] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: clip; /* clip instead of hidden — doesn't affect pointer events */
}

.graph-canvas[b-jis2vjdofu] {
    flex: 1;
    min-height: 0;
    position: relative;
}

/* Persistent ForgeViewer container — stays alive across view mode switches */
.viewer-persistent-container[b-jis2vjdofu] {
    min-height: 0;
}

.viewer-persistent-container.viewer-hidden[b-jis2vjdofu] {
    display: none;
}

.viewer-persistent-container.viewer-fullscreen[b-jis2vjdofu] {
    position: absolute;
    inset: 0;
}

.viewer-persistent-container.viewer-split[b-jis2vjdofu] {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}

/* Split View Styles */
.split-container[b-jis2vjdofu] {
    position: absolute;
    inset: 0;
    display: flex;
}

.split-pane[b-jis2vjdofu] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.split-pane-left[b-jis2vjdofu] {
    border-right: none;
}

.split-pane-right[b-jis2vjdofu] {
    border-left: none;
}

.split-resizer[b-jis2vjdofu] {
    width: 6px;
    background: var(--border-color, #e0e0e0);
    cursor: col-resize;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    transition: background-color var(--transition-fast, 0.15s);
}

.split-resizer:hover[b-jis2vjdofu],
.split-resizer.resizing[b-jis2vjdofu] {
    background: var(--primary-color, #1976d2);
}

.split-resizer[b-jis2vjdofu]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 40px;
    background: var(--text-disabled, #ccc);
    border-radius: 2px;
}

.split-resizer:hover[b-jis2vjdofu]::after,
.split-resizer.resizing[b-jis2vjdofu]::after {
    background: white;
}

/* Save/Load Buttons */
.save-load-buttons[b-jis2vjdofu] {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.save-load-buttons .btn[b-jis2vjdofu] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-sm);
}

.save-load-buttons svg[b-jis2vjdofu] {
    flex-shrink: 0;
}

.spinner-small[b-jis2vjdofu] {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

.save-status[b-jis2vjdofu] {
    font-size: var(--font-size-xs);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    animation: fadeIn-b-jis2vjdofu 0.3s;
}

.save-status.success[b-jis2vjdofu] {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success-color, #4caf50);
}

.save-status.error[b-jis2vjdofu] {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error-color, #f44336);
}

@keyframes fadeIn-b-jis2vjdofu {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Load Transformation Dialog */
.load-transformation-dialog[b-jis2vjdofu] {
    min-width: 400px;
}

.transformation-list[b-jis2vjdofu] {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.transformation-item[b-jis2vjdofu] {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.transformation-item:last-child[b-jis2vjdofu] {
    border-bottom: none;
}

.transformation-item:hover[b-jis2vjdofu] {
    background: var(--hover-bg);
}

.transformation-id[b-jis2vjdofu] {
    font-family: monospace;
    font-size: var(--font-size-sm);
}

.transformation-date[b-jis2vjdofu] {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}
/* /Components/Shared/AiFeedbackBar.razor.rz.scp.css */
/* ============================================================
   AI Feedback Bar — universal rating + feedback + suggestions
   ============================================================ */

.ai-feedback-bar[b-0fxko35b25] {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light, #e9ecef);
}

/* Rating */
.ai-feedback-rating[b-0fxko35b25] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.ai-feedback-rating-label[b-0fxko35b25] {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted, #6c757d);
}

.ai-feedback-stars[b-0fxko35b25] {
    display: flex;
    gap: 0.15rem;
}

.ai-feedback-star[b-0fxko35b25] {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted, #ccc);
    font-size: 0.9rem;
    padding: 0 0.1rem;
    transition: color 0.15s;
}

.ai-feedback-star:hover[b-0fxko35b25] {
    color: #f5a623;
}

.ai-feedback-star-filled[b-0fxko35b25] {
    color: #f5a623;
}

.ai-feedback-rating-value[b-0fxko35b25] {
    color: var(--text-muted, #6c757d);
    font-size: 0.75rem;
    margin-left: 0.3rem;
}

/* Feedback input */
.ai-feedback-input-section[b-0fxko35b25] {
    margin-bottom: 0.5rem;
}

.ai-feedback-input[b-0fxko35b25] {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border-light, #dee2e6);
    border-radius: 6px;
    font-size: 0.82rem;
    resize: vertical;
    min-height: 50px;
    max-height: 120px;
    font-family: inherit;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.ai-feedback-input:focus[b-0fxko35b25] {
    outline: none;
    border-color: var(--primary, #0d6efd);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

.ai-feedback-actions[b-0fxko35b25] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Suggestion panel */
.ai-suggestion-panel[b-0fxko35b25] {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.ai-suggestion-header label[b-0fxko35b25] {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary, #212529);
}

.ai-suggestion-reasoning[b-0fxko35b25] {
    font-size: 0.82rem;
    color: var(--text-primary, #495057);
    margin: 0.5rem 0;
    line-height: 1.5;
}

.ai-suggestion-prompt-label[b-0fxko35b25] {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 0.3rem;
}

.ai-suggestion-diff[b-0fxko35b25] {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.78rem;
    background: #fff;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.ai-suggestion-actions[b-0fxko35b25] {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
}
/* /Components/Shared/AiResponseRenderer.razor.rz.scp.css */
/* ============================================================
   AI Response Renderer — shared display for all AI output
   ============================================================ */

.ai-response-renderer[b-pogmugo33j] {
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Empty state */
.ai-response-empty[b-pogmugo33j] {
    color: var(--text-muted, #6c757d);
    font-style: italic;
    padding: 1rem;
    text-align: center;
}

/* Summary bar */
.ai-response-summary[b-pogmugo33j] {
    background: #d1ecf1;
    color: #0c5460;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.ai-response-summary i[b-pogmugo33j] {
    margin-right: 0.3rem;
}

/* Raw/Table toggle */
.ai-response-toggle[b-pogmugo33j] {
    display: flex;
    gap: 2px;
    margin-bottom: 0.5rem;
}

.ai-toggle-btn[b-pogmugo33j] {
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--border-light, #dee2e6);
    background: #f8f9fa;
    color: var(--text-muted, #6c757d);
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 4px;
}

.ai-toggle-btn:first-child[b-pogmugo33j] {
    border-radius: 4px 0 0 4px;
}

.ai-toggle-btn:last-child[b-pogmugo33j] {
    border-radius: 0 4px 4px 0;
}

.ai-toggle-active[b-pogmugo33j] {
    background: var(--primary, #0d6efd);
    color: #fff;
    border-color: var(--primary, #0d6efd);
}

/* Table wrapper */
.ai-response-table-wrapper[b-pogmugo33j] {
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--border-light, #dee2e6);
    border-radius: 4px;
}

.ai-response-table[b-pogmugo33j] {
    margin: 0;
    font-size: 0.82rem;
}

.ai-response-table th[b-pogmugo33j] {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 1;
    white-space: nowrap;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted, #6c757d);
}

.ai-response-table td[b-pogmugo33j] {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.ai-response-row-count[b-pogmugo33j] {
    font-size: 0.72rem;
    color: var(--text-muted, #999);
    margin-top: 0.3rem;
    text-align: right;
}

/* Raw JSON display */
.ai-response-raw[b-pogmugo33j] {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.78rem;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--border-light, #dee2e6);
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Plain text response */
.ai-response-text[b-pogmugo33j] {
    padding: 0.5rem 0;
    word-break: break-word;
}

/* AI suggested row highlight */
.ai-row-suggested[b-pogmugo33j] {
    background: #f0f7ff;
}

.ai-icon-suggested[b-pogmugo33j] {
    color: var(--primary, #0d6efd);
}

/* Tier badges */
.ai-tier-badge[b-pogmugo33j] {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.ai-tier-1[b-pogmugo33j] { background: #d4edda; color: #155724; }
.ai-tier-2[b-pogmugo33j] { background: #d1ecf1; color: #0c5460; }
.ai-tier-3[b-pogmugo33j] { background: #fff3cd; color: #856404; }
.ai-tier-4[b-pogmugo33j] { background: #f8d7da; color: #721c24; }

/* Scope badges */
.ai-scope-badge[b-pogmugo33j] {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.ai-scope-in[b-pogmugo33j] { background: #d4edda; color: #155724; }
.ai-scope-out[b-pogmugo33j] { background: #f8d7da; color: #721c24; }
.ai-scope-boundary[b-pogmugo33j] { background: #fff3cd; color: #856404; }

/* Severity badges */
.ai-severity-badge[b-pogmugo33j] {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.ai-severity-error[b-pogmugo33j] { background: #f8d7da; color: #721c24; }
.ai-severity-warning[b-pogmugo33j] { background: #fff3cd; color: #856404; }
.ai-severity-info[b-pogmugo33j] { background: #d1ecf1; color: #0c5460; }

/* Confidence badges */
.ai-conf-badge[b-pogmugo33j] {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.ai-conf-high[b-pogmugo33j] { background: #d4edda; color: #155724; }
.ai-conf-medium[b-pogmugo33j] { background: #fff3cd; color: #856404; }
.ai-conf-low[b-pogmugo33j] { background: #f8d7da; color: #721c24; }
/* /Components/Shared/RunHistoryPanel.razor.rz.scp.css */
/* Run History Panel - shared component */
.run-history-panel[b-q71an4vs07] {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.run-history-header[b-q71an4vs07] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light, #e9ecef);
}

.run-history-title[b-q71an4vs07] {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.run-history-title i[b-q71an4vs07] {
    color: var(--text-muted, #6c757d);
    margin-right: 6px;
}

.run-history-body[b-q71an4vs07] {
    flex: 1;
    overflow-y: auto;
}

.run-history-empty[b-q71an4vs07] {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted, #6c757d);
}

.run-history-empty i[b-q71an4vs07] {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.run-history-list[b-q71an4vs07] {
    display: flex;
    flex-direction: column;
}

.run-history-item[b-q71an4vs07] {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border-light, #e9ecef);
    cursor: pointer;
    transition: background-color 0.15s;
}

.run-history-item:hover[b-q71an4vs07] {
    background-color: var(--bg-hover, #f8f9fa);
}

.run-history-item-active[b-q71an4vs07] {
    background-color: var(--bg-active, #e3f2fd);
    border-left: 3px solid var(--primary, #0d6efd);
}

.run-history-item-top[b-q71an4vs07] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.run-history-item-status[b-q71an4vs07] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.run-history-icon-danger[b-q71an4vs07] {
    color: var(--danger, #dc3545);
}

.run-history-icon-success[b-q71an4vs07] {
    color: var(--success, #198754);
}

.run-history-rating-badge[b-q71an4vs07] {
    display: inline-block;
    background: #f5a623;
    color: white;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.run-history-methodology[b-q71an4vs07] {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    background: var(--bg-subtle, #e9ecef);
    color: var(--text-secondary, #6c757d);
    margin-left: 4px;
}

.run-history-preview[b-q71an4vs07] {
    font-size: 0.8rem;
    color: var(--text-secondary, #495057);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.run-history-item-meta[b-q71an4vs07] {
    display: flex;
    gap: 0.5rem;
    margin-top: 4px;
}

/* Run Detail Modal */
.run-detail-modal[b-q71an4vs07] {
    max-width: 900px;
    width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* prevent whole modal from scrolling */
}

.run-detail-modal .ce-admin-modal-header[b-q71an4vs07] {
    flex-shrink: 0; /* header NEVER shrinks — always visible with close button */
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bg-white, #fff);
    border-bottom: 1px solid var(--border-light, #e9ecef);
}

.run-detail-body[b-q71an4vs07] {
    overflow-y: auto;
    flex: 1;
    min-height: 0; /* allows flex child to shrink below content size */
}

.run-detail-section[b-q71an4vs07] {
    margin-bottom: 1rem;
}

.run-detail-section .ce-form-label[b-q71an4vs07] {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.run-detail-response-header[b-q71an4vs07] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.run-detail-text[b-q71an4vs07] {
    background: var(--bg-subtle, #f8f9fa);
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.82rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
    margin: 0;
}

.run-detail-response[b-q71an4vs07] {
    max-height: 400px;
}

.run-detail-formatted[b-q71an4vs07] {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Table rendering for JSON responses */
.run-detail-table-wrapper[b-q71an4vs07] {
    max-height: 500px;
    overflow: auto;
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: 6px;
}

.run-detail-table[b-q71an4vs07] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.run-detail-table thead[b-q71an4vs07] {
    position: sticky;
    top: 0;
    z-index: 1;
}

.run-detail-table th[b-q71an4vs07] {
    background: var(--bg-subtle, #f1f3f5);
    border-bottom: 2px solid var(--border-light, #dee2e6);
    padding: 0.4rem 0.6rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.run-detail-table td[b-q71an4vs07] {
    padding: 0.35rem 0.6rem;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
    vertical-align: top;
}

.run-detail-table tbody tr:hover[b-q71an4vs07] {
    background: var(--bg-hover, #f8f9fa);
}

.run-detail-table tbody tr:nth-child(even)[b-q71an4vs07] {
    background: rgba(0, 0, 0, 0.015);
}

/* View toggle button */
[b-q71an4vs07] .rhp-view-toggle {
    background: none;
    border: 1px solid var(--border-light, #dee2e6);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted, #6c757d);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

[b-q71an4vs07] .rhp-view-toggle:hover {
    background: var(--bg-hover, #f0f0f0);
    color: var(--text-primary, #212529);
}

[b-q71an4vs07] .rhp-view-toggle i {
    margin-right: 0.2rem;
}

/* Star Rating */
.rhp-star[b-q71an4vs07] {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: var(--text-muted, #6c757d);
    font-size: 1rem;
    transition: color 0.15s;
}

.rhp-star:hover[b-q71an4vs07],
.rhp-star-filled[b-q71an4vs07] {
    color: #f5a623;
}
