.control-card-preview {
    border-color: #7eb8df;
    box-shadow: 0 0.2rem 0.6rem rgba(20, 100, 155, 0.12);
}

.control-card-preview-header {
    border-bottom-color: #7eb8df;
    background: linear-gradient(135deg, #176fa6, #278fc9);
    color: #fff;
    cursor: pointer;
}

.control-card-preview-count {
    background-color: #fff;
    color: #155f8f;
    font-weight: 600;
}

.control-card-preview-close {
    border: 0;
    color: #fff;
    line-height: 1;
}

.control-card-preview-close:hover,
.control-card-preview-close:focus {
    background-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.control-card-skipped {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.control-card-undo {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid #8b9298;
    background-color: #fff;
    color: #495057;
    font-weight: 600;
}

.control-card-undo-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.control-card-undo:hover,
.control-card-undo:focus {
    border-color: #6c757d;
    background-color: #e2e6ea;
    color: #343a40;
}

.control-card-preview-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #b9d9ed;
    background-color: #eef8fe;
    color: #174f73;
}

.control-card-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.control-card-preview-table thead th {
    border-bottom: 2px solid #9cc9e5;
    background-color: #e2f2fb;
    color: #155f8f;
    font-weight: 600;
    white-space: nowrap;
}

.control-card-preview-table tbody tr:hover {
    background-color: #f3faff;
}

.control-card-pair {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
}

.control-card-pair-separator {
    color: #6c757d;
    font-weight: 600;
}

.control-card-values {
    justify-content: flex-start;
}

.control-card-value-invalid {
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    background-color: #dc3545;
    color: #fff;
    font-weight: 600;
}

.control-card-edit-hint {
    margin-left: 0.4rem;
    font-weight: 600;
}

.control-card-limit-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid #dbe7ef;
    background-color: #f8fbfd;
    color: #495057;
    font-size: 0.875rem;
}

.control-card-limit-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.control-card-legend-swatch {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 0.2rem;
}

.control-card-legend-red {
    background-color: #dc3545;
}

.control-card-legend-yellow {
    border: 1px solid #d39e00;
    background-color: #fff3cd;
}

.control-card-value-warning {
    padding: 0.2rem 0.4rem;
    border: 1px solid #d39e00;
    border-radius: 0.25rem;
    background-color: #fff3cd;
    color: #664d03;
    font-weight: 600;
}

.control-card-value-input {
    width: 8.5rem;
}

.control-card-value-input.control-card-value-invalid {
    border-color: #b02a37;
}

.control-card-preview-table .control-card-supporting-row td {
    background-color: #fff8df;
    color: #664d03;
}

.control-card-supporting-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.control-card-preview-table th,
.control-card-preview-table td {
    padding: 0.75rem 1rem;
}

.control-card-comment-cell {
    min-width: 16rem;
}
