/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-fcn3ixdlep],
.components-reconnect-repeated-attempt-visible[b-fcn3ixdlep],
.components-reconnect-failed-visible[b-fcn3ixdlep],
.components-pause-visible[b-fcn3ixdlep],
.components-resume-failed-visible[b-fcn3ixdlep],
.components-rejoining-animation[b-fcn3ixdlep] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-fcn3ixdlep],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-fcn3ixdlep],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-fcn3ixdlep],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-fcn3ixdlep],
#components-reconnect-modal.components-reconnect-retrying[b-fcn3ixdlep],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-fcn3ixdlep],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-fcn3ixdlep],
#components-reconnect-modal.components-reconnect-failed[b-fcn3ixdlep],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-fcn3ixdlep] {
    display: block;
}


#components-reconnect-modal[b-fcn3ixdlep] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-fcn3ixdlep 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-fcn3ixdlep 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-fcn3ixdlep 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-fcn3ixdlep]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-fcn3ixdlep 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-fcn3ixdlep {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-fcn3ixdlep {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-fcn3ixdlep {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-fcn3ixdlep] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-fcn3ixdlep] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-fcn3ixdlep] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-fcn3ixdlep] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-fcn3ixdlep] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-fcn3ixdlep] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-fcn3ixdlep] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-fcn3ixdlep 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-fcn3ixdlep] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-fcn3ixdlep {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Modals/CategoryDetailsModal.razor.rz.scp.css */
.class-section[b-su6aergri5] {
    transition: all 0.2s ease;
}

.class-header[b-su6aergri5] {
    cursor: pointer;
    transition: background-color 0.2s;
}

    .class-header:hover[b-su6aergri5] {
        background-color: #e9ecef !important;
    }

.expand-icon[b-su6aergri5] {
    font-size: 0.8rem;
    color: #6c757d;
    display: inline-block;
    width: 12px;
    transition: transform 0.2s;
}

.label-details[b-su6aergri5] {
    animation: slideDown-b-su6aergri5 0.2s ease-out;
}

.progress-sm[b-su6aergri5] {
    height: 12px;
    background-color: #e9ecef;
}

.progress-class[b-su6aergri5] {
    width: 150px;
}

.progress-label[b-su6aergri5] {
    max-width: 250px;
}

.progress-sm[b-su6aergri5],
.progress-class[b-su6aergri5],
.progress-label[b-su6aergri5] {
    direction: rtl;
}

.progress-sm .progress-bar[b-su6aergri5],
.progress-class .progress-bar[b-su6aergri5],
.progress-label .progress-bar[b-su6aergri5] {
    float: left;
    direction: ltr;
}

.prob-value[b-su6aergri5] {
    min-width: 50px;
}

.confidence-low[b-su6aergri5] {
    color: #dc3545 !important;
    font-weight: 600;
}

.confidence-medium[b-su6aergri5] {
    color: #fd7e14 !important;
    font-weight: 600;
}

.confidence-moderate[b-su6aergri5] {
    color: #ffc107 !important;
    font-weight: 600;
}

@keyframes slideDown-b-su6aergri5 {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* /Components/Modals/ClassificationComparisonModal.razor.rz.scp.css */
/* Modal z-index */
.modal-details[b-et9wwxszbi] {
    z-index: 1055;
}

/* Layout */
.details-modal-header-section[b-et9wwxszbi] {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.details-modal-image[b-et9wwxszbi] {
    flex-shrink: 0;
}

.details-modal-info[b-et9wwxszbi] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.details-modal-comparison[b-et9wwxszbi] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.details-modal-column h6[b-et9wwxszbi] {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}

.details-modal-column-current h6[b-et9wwxszbi] {
    color: #495057;
    border-bottom-color: #adb5bd;
}

.details-modal-column-proposed h6[b-et9wwxszbi] {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

/* Class sections */
.class-section[b-et9wwxszbi] {
    margin-bottom: 0.75rem;
}

.class-header[b-et9wwxszbi] {
    cursor: pointer;
    user-select: none;
}

.expand-icon[b-et9wwxszbi] {
    font-size: 0.75rem;
    width: 1rem;
    display: inline-block;
}

.label-details[b-et9wwxszbi] {
    animation: slideDown-b-et9wwxszbi 0.2s ease-out;
}

@keyframes slideDown-b-et9wwxszbi {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress bars */
.progress-sm[b-et9wwxszbi] {
    height: 0.5rem;
    background-color: #e9ecef;
}

.progress-class[b-et9wwxszbi] {
    width: 120px;
    height: 8px;
}

.progress-label[b-et9wwxszbi] {
    height: 6px;
}

.progress-class[b-et9wwxszbi],
.progress-label[b-et9wwxszbi] {
    direction: rtl;
}

.progress-class .progress-bar[b-et9wwxszbi],
.progress-label .progress-bar[b-et9wwxszbi] {
    float: left;
    direction: ltr;
}

.prob-value[b-et9wwxszbi] {
    min-width: 3.5rem;
}

.confidence-low[b-et9wwxszbi] {
    color: #dc3545;
}

.confidence-medium[b-et9wwxszbi] {
    color: #fd7e14;
}

.confidence-moderate[b-et9wwxszbi] {
    color: #ffc107;
}
/* /Components/Modals/ExpectedClassesModal.razor.rz.scp.css */
.similar-preview[b-52787q71gc] {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    cursor: pointer;
}
/* /Components/Modals/ImageViewerModal.razor.rz.scp.css */
/* Higher z-index for image modal (can appear over other modals) */
.modal-image-backdrop[b-xwwblml9oe] {
    z-index: 1070;
}

.modal-image[b-xwwblml9oe] {
    z-index: 1071;
    overflow: hidden;
}
/* /Components/Modals/SimilarImagesModal.razor.rz.scp.css */
.thumbnail[b-s4oxqkbfgd] {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    cursor: pointer;
}

.similar-preview[b-s4oxqkbfgd] {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    cursor: pointer;
}

.progress-md[b-s4oxqkbfgd] {
    height: 20px;
    background-color: #e9ecef;
}

.progress-similarity[b-s4oxqkbfgd] {
    max-width: 150px;
}

.progress-md[b-s4oxqkbfgd] {
    direction: rtl;
}

.progress-md .progress-bar[b-s4oxqkbfgd] {
    float: left;
    direction: ltr;
}
/* /Components/Pages/CategoryLabelEditor.razor.rz.scp.css */
.editor-container[b-7j1laajyaj] {
    display: flex;
    gap: 1.5rem;
    min-height: calc(100vh - 200px);
}

.main-content[b-7j1laajyaj] {
    flex: 1;
    min-width: 0;
}

.sidebar[b-7j1laajyaj] {
    width: 200px;
    flex-shrink: 0;
}

.sidebar-sticky[b-7j1laajyaj] {
    position: sticky;
    top: 1rem;
}

.stat-card[b-7j1laajyaj] {
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.stat-value[b-7j1laajyaj] {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label[b-7j1laajyaj] {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

.stat-diff[b-7j1laajyaj] {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.mismatch-card[b-7j1laajyaj] {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.2s;
}

.mismatch-card:hover[b-7j1laajyaj] {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.mismatch-image[b-7j1laajyaj] {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.mismatch-label[b-7j1laajyaj] {
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    display: inline-block;
}

.class-card[b-7j1laajyaj] {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    background: #fff;
}

.class-header[b-7j1laajyaj] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.class-title-row[b-7j1laajyaj] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.class-name[b-7j1laajyaj] {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.class-stats[b-7j1laajyaj] {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

.class-match-badge[b-7j1laajyaj] {
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.class-content[b-7j1laajyaj] {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-auto-columns: 115px;
    grid-auto-flow: column;
    gap: 1rem;
}

.labels-editor[b-7j1laajyaj] {
    min-width: 160px;
    display: flex;
    flex-direction: column;
}

.labels-textarea[b-7j1laajyaj] {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    resize: vertical;
    flex: 1;
    min-height: 150px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.5rem;
}

.labels-textarea:focus[b-7j1laajyaj] {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.labels-stats[b-7j1laajyaj] {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.label-stats-table[b-7j1laajyaj] {
    width: 100%;
    font-size: 0.8rem;
    border-collapse: collapse;
}

.label-stats-table td[b-7j1laajyaj] {
    padding: 0.15rem 0.375rem;
    vertical-align: middle;
}

.label-stat-text[b-7j1laajyaj] {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.label-stat-progress[b-7j1laajyaj] {
    width: 100%;
    padding: 0 0.5rem;
}

.label-stat-progress .progress[b-7j1laajyaj] {
    height: 6px;
    background: #e9ecef;
    direction: rtl;
}

.label-stat-progress .progress-bar[b-7j1laajyaj] {
    float: left;
    direction: ltr;
}

.label-stat-value[b-7j1laajyaj] {
    font-weight: 600;
    color: #0d6efd;
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

.mismatch-container[b-7j1laajyaj] {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.mismatch-container:hover[b-7j1laajyaj] {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.mismatch-image-wrapper[b-7j1laajyaj] {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.mismatch-image[b-7j1laajyaj] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
}

.mismatch-details[b-7j1laajyaj] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.mismatch-filename[b-7j1laajyaj] {
    font-size: 0.75rem;
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mismatch-classes[b-7j1laajyaj] {
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.mismatch-class-row[b-7j1laajyaj] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mismatch-class-predicted[b-7j1laajyaj] {
    color: #dc3545;
    font-weight: 600;
}

.mismatch-class-expected[b-7j1laajyaj] {
    color: #6c757d;
}

.mismatch-labels-table[b-7j1laajyaj] {
    width: 100%;
    font-size: 0.75rem;
    border-collapse: collapse;
    table-layout: fixed;
}

.mismatch-labels-table td[b-7j1laajyaj] {
    padding: 0.125rem 0.25rem;
    vertical-align: middle;
}

.mismatch-label-text[b-7j1laajyaj] {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 65%;
}

.mismatch-label-progress[b-7j1laajyaj] {
    width: 25%;
    padding: 0 0.25rem;
}

.mismatch-label-progress .progress[b-7j1laajyaj] {
    height: 4px;
    direction: rtl;
}

.mismatch-label-progress .progress-bar[b-7j1laajyaj] {
    float: left;
    direction: ltr;
}

.mismatch-label-value[b-7j1laajyaj] {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    color: #6c757d;
    width: 10%;
    font-size: 0.7rem;
}

.breadcrumb[b-7j1laajyaj] {
    background: transparent;
    padding: 0;
    margin-bottom: 0.75rem;
}

.page-header[b-7j1laajyaj] {
    margin-bottom: 1.25rem;
}

.page-header h1[b-7j1laajyaj] {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.page-header p[b-7j1laajyaj] {
    color: #6c757d;
    margin: 0;
}

@media (max-width: 1200px) {
    .editor-container[b-7j1laajyaj] {
        flex-direction: column;
    }

    .sidebar[b-7j1laajyaj] {
        width: 100%;
    }

    .sidebar-sticky[b-7j1laajyaj] {
        position: static;
    }

    .class-content[b-7j1laajyaj] {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        grid-auto-columns: initial;
    }

    .class-mismatch-section[b-7j1laajyaj] {
        contain: none;
        max-height: 200px;
    }
}

/* Bidirectional Label Bar Styles */
.label-stat-bidirectional[b-7j1laajyaj] {
    width: 100%;
    padding: 0 0.5rem;
}

.bidirectional-bar-container[b-7j1laajyaj] {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 18px;
    background: #f8f9fa;
    border-radius: 3px;
    overflow: hidden;
}

.bar-left[b-7j1laajyaj] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.bar-center[b-7j1laajyaj] {
    width: 2px;
    height: 18px;
    background: #6c757d;
    flex-shrink: 0;
}

.bar-right[b-7j1laajyaj] {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.bar-segment[b-7j1laajyaj] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    transition: width 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.bar-left .bar-segment[b-7j1laajyaj] {
    /* Linke Balken: Gradient von rechts (hell) nach links (dunkel) */
}

.bar-expected[b-7j1laajyaj] {
    background: linear-gradient(270deg, rgba(25, 135, 84, 0.8) 0%, rgba(25, 135, 84, 1) 100%);
}

.bar-right .bar-expected[b-7j1laajyaj] {
    background: linear-gradient(90deg, rgba(25, 135, 84, 1) 0%, rgba(25, 135, 84, 0.8) 100%);
}

.bar-unclassified[b-7j1laajyaj] {
    background: linear-gradient(270deg, rgba(108, 117, 125, 0.5) 0%, rgba(108, 117, 125, 0.7) 100%);
}

.bar-unexpected[b-7j1laajyaj] {
    background: linear-gradient(90deg, rgba(220, 53, 69, 1) 0%, rgba(220, 53, 69, 0.8) 100%);
}

.bar-value[b-7j1laajyaj] {
    font-size: 0.625rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    padding: 0 3px;
}

.bar-empty[b-7j1laajyaj] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px;
}

.legend-box[b-7j1laajyaj] {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Per-class mismatch images */
.class-mismatch-section[b-7j1laajyaj] {
    min-height: 150px;
    contain: size;
    display: flex;
    flex-direction: column;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #f8f9fa;
    overflow: hidden;
}

.class-mismatch-header[b-7j1laajyaj] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.375rem;
    font-size: 0.675rem;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    background: #fff;
    border-radius: 0.375rem 0.375rem 0 0;
    white-space: nowrap;
}

.class-mismatch-header i[b-7j1laajyaj] {
    font-size: 0.625rem;
}

.class-mismatch-scroll[b-7j1laajyaj] {
    flex: 1;
    overflow-y: auto;
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 0;
}

.class-mismatch-thumb[b-7j1laajyaj] {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background 0.15s;
    padding: 2px;
}

.class-mismatch-thumb:hover[b-7j1laajyaj] {
    background: #e9ecef;
}

.class-mismatch-thumb img[b-7j1laajyaj] {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
}

.class-mismatch-label[b-7j1laajyaj] {
    font-size: 0.575rem;
    color: #6c757d;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 98px;
    line-height: 1.2;
    margin-top: 1px;
}

/* /Components/Pages/ClusterAnalysis.razor.rz.scp.css */
/* ── Page chrome ─────────────────────────────────────────────── */
.breadcrumb[b-yq4dassnwn] {
    background: transparent;
    padding: 0;
    margin-bottom: 0.75rem;
}

.page-header[b-yq4dassnwn] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.page-header h1[b-yq4dassnwn] {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.page-header small[b-yq4dassnwn] {
    font-size: 1rem;
}

/* ── Two-column layout ───────────────────────────────────────── */
.cluster-layout[b-yq4dassnwn] {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.cluster-main[b-yq4dassnwn] {
    flex: 1;
    min-width: 0;
}

.label-sidebar[b-yq4dassnwn] {
    width: clamp(240px, 22%, 360px);
    flex-shrink: 0;
}

.label-sidebar-sticky[b-yq4dassnwn] {
    position: sticky;
    top: 1rem;
}

.label-textarea[b-yq4dassnwn] {
    width: 100%;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.775rem;
    resize: vertical;
    min-height: 280px;
    max-height: calc(100vh - 300px);
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.5rem;
    display: block;
}

.label-textarea:focus[b-yq4dassnwn] {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.sidebar-legend[b-yq4dassnwn] {
    font-size: 0.75rem;
}

.legend-row[b-yq4dassnwn] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.2rem;
}

.legend-dot[b-yq4dassnwn] {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.dot-good[b-yq4dassnwn]     { background: #198754; }
.dot-moderate[b-yq4dassnwn] { background: #ffc107; }
.dot-far[b-yq4dassnwn]      { background: #dc3545; }

/* ── Class sections ──────────────────────────────────────────── */
.class-section[b-yq4dassnwn] {
    margin-bottom: 1.75rem;
}

.class-section-header[b-yq4dassnwn] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #dee2e6;
}

/* ── Cluster card ────────────────────────────────────────────── */
.cluster-card[b-yq4dassnwn] {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.625rem;
    background: #fff;
}

/* Size bar row */
.size-bar-row[b-yq4dassnwn] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.cluster-id-badge[b-yq4dassnwn] {
    font-size: 0.68rem;
    font-weight: 700;
    color: #495057;
    background: #e9ecef;
    border-radius: 0.25rem;
    padding: 0.1rem 0.375rem;
    flex-shrink: 0;
    font-family: 'Consolas', monospace;
    min-width: 2.4rem;
    text-align: center;
}

.size-bar-track[b-yq4dassnwn] {
    flex: 1;
    height: 7px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.size-bar-fill[b-yq4dassnwn] {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #6ea8fe);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.size-bar-label[b-yq4dassnwn] {
    font-size: 0.68rem;
    font-weight: 600;
    color: #6c757d;
    flex-shrink: 0;
    min-width: 2rem;
    text-align: right;
}

/* Cluster body grid */
.cluster-body[b-yq4dassnwn] {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.75rem;
    align-items: start;
}

/* Left: metrics */
.cluster-metrics[b-yq4dassnwn] {
    display: flex;
    flex-direction: column;
}

.metric-block[b-yq4dassnwn] {
    display: flex;
    flex-direction: column;
}

.metric-title[b-yq4dassnwn] {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    margin-bottom: 0.05rem;
}

.metric-big[b-yq4dassnwn] {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.metric-small[b-yq4dassnwn] {
    font-size: 0.75rem;
    font-weight: 600;
}

.metric-sub[b-yq4dassnwn] {
    font-size: 0.68rem;
    color: #6c757d;
    margin-top: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.separation-good[b-yq4dassnwn]     { color: #198754; }
.separation-moderate[b-yq4dassnwn] { color: #c07800; }
.separation-poor[b-yq4dassnwn]     { color: #dc3545; }

/* Right column */
.cluster-right[b-yq4dassnwn] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

/* Scrollable thumbnail strip showing all images */
.cluster-thumbs-scroll[b-yq4dassnwn] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 0.2rem;
}

.cluster-thumb[b-yq4dassnwn] {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 0.25rem;
    overflow: hidden;
    border: 1px solid #dee2e6;
    transition: opacity 0.15s;
    position: relative;
}

.cluster-thumb:hover[b-yq4dassnwn] {
    opacity: 0.8;
}

.cluster-thumb img[b-yq4dassnwn] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.copy-btn[b-yq4dassnwn] {
    font-size: 0.8rem;
    padding: 0.25rem 0.65rem;
    line-height: 1.4;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Labels toggle header */
.labels-toggle-header[b-yq4dassnwn] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    padding-bottom: 0.15rem;
    user-select: none;
}

.labels-toggle-header:hover[b-yq4dassnwn] {
    opacity: 0.75;
}

/* Bar color classes (shared by score bars) */
.bar-good[b-yq4dassnwn]     { background: #198754; }
.bar-moderate[b-yq4dassnwn] { background: #ffc107; }
.bar-far[b-yq4dassnwn]      { background: #dc3545; }

/* ── Singletons ──────────────────────────────────────────────── */
.singleton-size-fill[b-yq4dassnwn] {
    background: linear-gradient(90deg, #fd7e14, #ffa94d);
}

.cluster-card-singleton[b-yq4dassnwn] {
    border-color: #ffe082;
    background: #fffdf5;
}

.singleton-description[b-yq4dassnwn] {
    font-size: 0.72rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Boundary image highlighting ─────────────────────────────── */
.cluster-thumb-boundary[b-yq4dassnwn] {
    border: 2px solid #dc3545 !important;
    position: relative;
    overflow: visible;
}

.boundary-badge[b-yq4dassnwn] {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 14px;
    height: 14px;
    background: #dc3545;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}

/* ── Label scores section ────────────────────────────────────── */
.label-scores-section[b-yq4dassnwn] {
    border-top: 1px solid #f0f0f0;
    padding-top: 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.175rem;
}

.eval-results-section[b-yq4dassnwn] {
    border-top: 1px dashed #bee5eb;
    background: #f8fdff;
    padding: 0.3rem 0.25rem;
    border-radius: 0.25rem;
    margin-top: 0.2rem;
}

.label-score-row[b-yq4dassnwn] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.775rem;
}

.label-score-bar-track[b-yq4dassnwn] {
    width: 50px;
    height: 7px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.label-score-bar[b-yq4dassnwn] {
    height: 100%;
    border-radius: 3px;
    transition: width 0.25s ease;
}

.label-score-value[b-yq4dassnwn] {
    width: 30px;
    font-size: 0.68rem;
    font-weight: 700;
    text-align: right;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.label-score-text[b-yq4dassnwn] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.72rem;
}

.label-score-foreign[b-yq4dassnwn] {
    opacity: 0.45;
}

/* ── Score breakdown row ─────────────────────────────────────── */
.score-breakdown-row[b-yq4dassnwn] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 55px;
    margin-bottom: 0.15rem;
}

.breakdown-item[b-yq4dassnwn] {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.62rem;
    font-variant-numeric: tabular-nums;
}

.breakdown-label[b-yq4dassnwn] {
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.breakdown-value[b-yq4dassnwn] {
    font-weight: 700;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .cluster-layout[b-yq4dassnwn] {
        flex-direction: column;
    }

    .label-sidebar[b-yq4dassnwn] {
        width: 100%;
        order: -1;
    }

    .label-sidebar-sticky[b-yq4dassnwn] {
        position: static;
    }

    .label-textarea[b-yq4dassnwn] {
        min-height: 100px;
        max-height: 160px;
    }
}

@media (max-width: 600px) {
    .cluster-body[b-yq4dassnwn] {
        grid-template-columns: 1fr;
    }

    .cluster-metrics[b-yq4dassnwn] {
        flex-direction: row;
        gap: 1.5rem;
    }

    .metric-big[b-yq4dassnwn] {
        font-size: 1.2rem;
    }
}
/* /Components/Pages/Home.razor.rz.scp.css */
.home-page-root[b-tkusaiwy2y] {
    height: calc(100vh - 72px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.home-card[b-tkusaiwy2y] {
    flex: 1;
    min-height: 0;
}

.home-card-body[b-tkusaiwy2y] {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* /Components/Pages/HomePartials/ImageTable.razor.rz.scp.css */
.sortable[b-gd3c9v6fnn] {
    cursor: pointer;
    user-select: none;
}

    .sortable:hover[b-gd3c9v6fnn] {
        background-color: #e9ecef;
    }

.sticky-top[b-gd3c9v6fnn] {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.table-scroll-container[b-gd3c9v6fnn] {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.table-scroll-container table[b-gd3c9v6fnn] {
    table-layout: fixed;
}

.filter-row td[b-gd3c9v6fnn] {
    padding: 4px 6px !important;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.filter-select[b-gd3c9v6fnn] {
    font-size: 0.78rem !important;
    padding: 1px 20px 1px 6px !important;
    min-width: 90px;
    height: 28px !important;
    background-position: right 4px center !important;
    background-size: 12px !important;
}

.filter-bar[b-gd3c9v6fnn] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.filter-chip[b-gd3c9v6fnn] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background-color: #e7f1ff;
    color: #0d6efd;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
}
/* /Components/Pages/HomePartials/ImageTableRow.razor.rz.scp.css */
.thumbnail[b-h815s8y8ak] {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    cursor: pointer;
}

.similarity-cell[b-h815s8y8ak] {
    cursor: pointer;
    transition: background-color 0.2s;
}

    .similarity-cell:hover[b-h815s8y8ak] {
        background-color: #f8f9fa;
    }

.category-cell[b-h815s8y8ak] {
    cursor: pointer;
    transition: background-color 0.2s;
}

    .category-cell:hover[b-h815s8y8ak] {
        background-color: #f8f9fa;
    }

.category-display[b-h815s8y8ak] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.class-name[b-h815s8y8ak] {
    font-weight: 500;
    font-size: 0.9rem;
}

.probability[b-h815s8y8ak] {
    font-size: 0.8rem;
    color: #6c757d;
}

.confidence-low[b-h815s8y8ak] {
    color: #dc3545 !important;
    font-weight: 600;
}

.confidence-medium[b-h815s8y8ak] {
    color: #fd7e14 !important;
    font-weight: 600;
}

.confidence-moderate[b-h815s8y8ak] {
    color: #ffc107 !important;
    font-weight: 600;
}
/* /Components/Pages/HomePartials/UploadStatusAlert.razor.rz.scp.css */
.thumbnail[b-2ftxnmnyds] {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    cursor: pointer;
}
