.o_csc_selftest {
    min-height: 100vh;
    background: #0b1220;
    color: #e5e7eb;
    padding: 24px 16px 48px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.o_csc_selftest * {
    box-sizing: border-box;
}

.csc-test-wrap {
    max-width: 1000px;
    margin: 0 auto;
}

.csc-test-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.csc-test-header h1 {
    margin: 0 0 6px;
    font-size: 26px;
}

.csc-test-header p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

.csc-test-back {
    color: #93c5fd;
    font-size: 13px;
    text-decoration: underline;
    white-space: nowrap;
}

.csc-test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.csc-test-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.csc-test-card h2 {
    margin: 0;
    font-size: 15px;
}

.csc-test-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
}

.csc-test-result {
    font-size: 12px;
    color: #fbbf24;
}

.csc-test-result.is-ok {
    color: #4ade80;
}

.csc-test-result.is-fail {
    color: #f87171;
}

.csc-test-btn {
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    cursor: pointer;
}

.csc-test-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.csc-test-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.csc-test-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.csc-meter {
    height: 10px;
    background: #020617;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.csc-meter span {
    display: block;
    height: 100%;
    width: 0;
    background: #2563eb;
    transition: width 80ms linear;
}

.csc-test-card video {
    width: 100%;
    height: 130px;
    background: #020617;
    border-radius: 8px;
    object-fit: cover;
}

.csc-test-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: #cbd5e1;
    font-size: 14px;
}

.csc-test-join {
    background: #2563eb;
    color: #fff;
    border-radius: 999px;
    padding: 10px 18px;
    text-decoration: none;
    font-size: 13px;
}

.csc-test-join:hover {
    background: #1d4ed8;
    color: #fff;
}

.csc-test-results {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.csc-test-hint {
    color: #93c5fd;
    font-size: 11px;
    line-height: 1.4;
    margin: 0;
}

.csc-test-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
