#sub-count-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0.25rem auto 0;
    padding: 6px 14px;
    background: #f4f3f9;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    width: fit-content;
}

.filter-label {
    font-size: 0.8rem;
    color: #495057;
    font-weight: 500;
}

.sub-count-btn {
    width: 30px;
    height: 30px;
    border: 1.5px solid #c5c0e0;
    border-radius: 6px;
    background: #fff;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s;
}

.sub-count-btn:hover {
    border-color: #362A8D;
    color: #362A8D;
    background: #fff;
}

.sub-count-btn.active {
    background: #362A8D;
    border-color: #362A8D;
    color: white;
}

#chairs-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 1rem auto;
    flex-wrap: wrap;
}

.chair-panel {
    text-align: center;
}

.chair-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 4px;
}

#chair-a, #chair-b {
    width: 280px;
    height: 230px;
}

.vs-label {
    font-size: 1.4rem;
    font-weight: 600;
    color: #6c757d;
    padding: 0 4px;
}

/* Chair SVG elements */
.chair-bond {
    stroke: #333;
    stroke-width: 2;
    fill: none;
}

.chair-sub-bond {
    stroke: #333;
    stroke-width: 1.5;
}

.chair-label-text {
    font-family: 'Georgia', serif;
    font-size: 17px;
    dominant-baseline: central;
    fill: #333;
}

.chair-label-text.h-label {
    fill: #aaa;
}

/* Selectable chair panels */
.chair-panel.selectable {
    border: 3px solid transparent;
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.chair-panel.selectable:hover {
    border-color: #c5c0e0;
    background-color: #faf9ff;
}

.chair-panel.selectable.selected {
    border-color: #6153cc;
    background-color: #f0eeff;
}

/* Post-check feedback states */
.chair-panel.correct-choice {
    border-color: #28a745;
    background-color: #d4edda;
    cursor: default;
}

.chair-panel.incorrect-choice {
    border-color: #dc3545;
    border-style: dashed;
    background-color: #f8d7da;
    cursor: default;
}

/* Feedback detail (A-value breakdown) */
#feedback-detail {
    text-align: center;
    margin: 0.75rem auto;
    max-width: 520px;
    font-size: 0.92rem;
    color: #495057;
    line-height: 1.6;
}

#feedback-detail .breakdown-table {
    display: inline-block;
    text-align: left;
    margin-top: 0.5rem;
}

#feedback-detail .breakdown-row {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

#feedback-detail .breakdown-header {
    font-weight: 700;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 4px;
    padding-bottom: 2px;
}

#feedback-detail .breakdown-total {
    font-weight: 700;
    border-top: 1px solid #dee2e6;
    margin-top: 4px;
    padding-top: 2px;
}

#primary-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

@media (max-width: 600px) {
    #chairs-container {
        flex-direction: column;
    }
    .vs-label {
        transform: none;
    }
}
