.cmpBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 50%;
    background: #fff;
    color: #424A50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    cursor: pointer;
    vertical-align: middle;
    transition: all .16s ease;
}

.cmpBtn svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
}

.cmpBtn:hover,
.cmpBtn.on {
    background: var(--secondary-bg);
    color: var(--secondary-fg);
    border-color: currentColor;
    transform: translateY(-1px);
}

.cmpBtn.on {
    box-shadow: 0 0 0 3px rgba(159, 216, 239, .45);
}

#tabres .cmpCell {
    width: 38px;
    text-align: center;
    padding: 2px !important;
}

.vg.hasCmp {
    grid-template-columns: min-content auto min-content min-content;
}

.vg .cmpBtn {
    grid-area: 1 / 4 / span 3;
    align-self: center;
    margin-inline-start: 8px;
}

#icopop .cmpBtn {
    margin: 5px;
}

#cmpTray {
    position: fixed;
    z-index: 60;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(92vw, 780px);
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 8px;
    background: #fff;
    color: #111;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .2);
    font: 14px/1.2 BN;
}

.cmpTrayNames {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cmpPick {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #111;
}

.cmpTrayAct {
    border: 0;
    border-radius: 4px;
    background: #424A50;
    color: #fff;
    padding: 7px 12px;
    font: bold 12px Arial;
    cursor: pointer;
}

.cmpTrayAct:disabled {
    opacity: .45;
    cursor: default;
}

.cmpTrayClose {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #555;
}

.cmpWrap {
    padding: 10px 2vw 35px 2vw;
}

.cmpTitle {
    margin: 8px 0 16px;
    font: 34px/1 BN;
    color: #111;
}

.cmpRiders {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.cmpRider {
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 6px;
    padding: 12px;
    background: #f8fafc;
}

.cmpRider b {
    display: block;
    font: 24px/1 BN;
}

.cmpRider span {
    display: block;
    margin-top: 4px;
    color: #555;
    font-size: 13px;
}

.cmpSection {
    margin-top: 18px;
}

.cmpSection h3 {
    margin: 0 0 6px;
    font: 20px/1 BN;
    color: #424A50;
}

.cmpTable {
    width: 100%;
    border-collapse: collapse;
}

.cmpTable th,
.cmpTable td {
    padding: 7px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    vertical-align: middle;
    text-align: start;
}

.cmpTable th {
    width: 25%;
    font-size: 12px;
    color: #555;
}

.cmpTable td {
    font: 19px/1.1 NNum;
}

.cmpTable .cmpDiff {
    width: 90px;
    text-align: center;
    font: 12px Arial;
    color: #64748b;
}

.cmpFast {
    color: #16803a !important;
    font-weight: bold;
}

.cmpSlow {
    color: #b42318 !important;
}

@media only screen and (max-width: 600px) {
    #cmpTray {
        left: 8px;
        right: 8px;
        bottom: 8px;
        transform: none;
        max-width: none;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 10px;
    }

    .cmpTrayNames {
        min-width: 0;
        flex: 1 1 0;
    }

    .cmpPick {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cmpTrayAct {
        flex: 1 0 100%;
        width: 100%;
        min-height: 34px;
    }

    .cmpRiders {
        grid-template-columns: 1fr;
    }

    .cmpTable th,
    .cmpTable td {
        padding: 6px 4px;
    }

    .cmpTable th {
        width: auto;
    }

    .cmpTable .cmpDiff {
        width: 54px;
    }

    #tabres .cmpCell {
        width: 32px;
        padding: 1px !important;
    }

    .cmpBtn {
        width: 28px;
        height: 28px;
    }

    .cmpBtn svg {
        width: 16px;
        height: 16px;
    }

    .vg .cmpBtn {
        margin-inline-start: 2px;
    }

    .cmpTitle {
        font-size: 28px;
        padding: 0 8px;
    }
}
