.device-check {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #303a45;
    border-radius: 11px;
    background: rgb(17 21 26 / 88%);
}

.device-check > header,
.device-check > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.device-check > header > div {
    display: grid;
    gap: 3px;
}

.device-check > header strong {
    color: #edf1f5;
    font-size: 14px;
}

.device-check > header span,
.device-check > footer {
    color: #8f9aa6;
    font-size: 12px;
}

.device-check > header button {
    flex: 0 0 auto;
    min-height: 36px;
}

.device-check-body {
    display: grid;
    grid-template-columns: minmax(150px, .72fr) minmax(0, 1.28fr);
    gap: 12px;
}

.device-check-preview {
    position: relative;
    display: grid;
    min-height: 116px;
    overflow: hidden;
    place-items: center;
    border: 1px solid #29323c;
    border-radius: 8px;
    background: #07090c;
}

.device-check-preview video {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    transform: scaleX(-1);
    transition: opacity 160ms ease;
}

.device-check-preview[data-active="true"] video {
    opacity: 1;
}

.device-check-placeholder {
    display: grid;
    z-index: 1;
    place-items: center;
    gap: 7px;
    color: #65717d;
    font-size: 11px;
}

.device-check-placeholder .fa-video {
    font-size: 22px;
}

.device-check-preview[data-active="true"] .device-check-placeholder {
    display: none;
}

.device-check-statuses {
    display: grid;
    align-content: center;
    gap: 8px;
}

.device-check-status {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid #29323c;
    border-radius: 8px;
    background: #12171d;
}

.device-check-status > div {
    display: grid;
    gap: 2px;
}

.device-check-status strong {
    color: #dfe5eb;
    font-size: 12px;
}

.device-check-status span:last-child {
    color: #8995a2;
    font-size: 11px;
    line-height: 1.4;
}

.device-status-dot {
    width: 8px;
    height: 8px;
    margin-top: 4px;
    border-radius: 50%;
    background: #56616d;
}

.device-check-status[data-state="checking"] .device-status-dot {
    background: #d4aa55;
    box-shadow: 0 0 0 3px rgb(212 170 85 / 13%);
}

.device-check-status[data-state="ready"] .device-status-dot {
    background: #61b8a7;
    box-shadow: 0 0 0 3px rgb(97 184 167 / 13%);
}

.device-check-status[data-state="blocked"] .device-status-dot,
.device-check-status[data-state="busy"] .device-status-dot,
.device-check-status[data-state="missing"] .device-status-dot,
.device-check-status[data-state="error"] .device-status-dot {
    background: #e17c70;
    box-shadow: 0 0 0 3px rgb(225 124 112 / 13%);
}

.device-check > footer button {
    min-height: 30px;
    padding: 4px 9px;
    flex: 0 0 auto;
    font-size: 11px;
}

@media (max-width: 560px) {
    .device-check > header {
        align-items: end;
    }

    .device-check-body {
        grid-template-columns: 1fr;
    }

    .device-check-preview {
        min-height: 180px;
    }

    .device-check > footer {
        align-items: flex-start;
    }
}
