/* SU Workshop CBT Lite */
.suw-cbt-app {
    min-height: 80vh;
    padding: 32px 16px;
    background:
        radial-gradient(circle at top left, rgba(28, 84, 63, .12), transparent 32%),
        linear-gradient(135deg, #f7f9f4, #eef4ed);
    color: #12211d;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.suw-cbt-shell {
    max-width: 920px;
    margin: 0 auto;
}

.suw-cbt-brand {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    color: #174638;
}

.suw-cbt-brand span {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 800;
}

.suw-cbt-brand strong {
    font-size: 18px;
}

.suw-cbt-card {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(18,33,29,.1);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 24px 70px rgba(18,33,29,.12);
}

.suw-cbt-card h1,
.suw-cbt-card h2 {
    margin-top: 0;
    color: #123f34;
}

.suw-cbt-form label,
.suw-cbt-admin-form label {
    display: block;
    margin-bottom: 16px;
}

.suw-cbt-form label span,
.suw-cbt-admin-form label span {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
}

.suw-cbt-form input[type="text"],
.suw-cbt-admin-form input[type="text"],
.suw-cbt-admin-form input[type="number"],
.suw-cbt-admin-form textarea {
    width: 100%;
    border: 1px solid rgba(18,33,29,.15);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 16px;
    background: #fff;
}

.suw-cbt-form button,
.suw-cbt-start,
.suw-cbt-logout button {
    border: 0;
    border-radius: 14px;
    padding: 14px 22px;
    background: #174638;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.suw-cbt-logout {
    margin-top: 14px;
}

.suw-cbt-logout button {
    background: #eef4ed;
    color: #174638;
}

.suw-cbt-alert {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff1f0;
    color: #9b1c1c;
    margin-bottom: 16px;
    border: 1px solid #ffc9c4;
}

.suw-cbt-user {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #f3f7f1;
    border-radius: 16px;
    margin-bottom: 18px;
}

.suw-cbt-user span {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.suw-cbt-instructions {
    background: #fbfaf5;
    border: 1px solid rgba(201,146,52,.25);
    border-radius: 16px;
    padding: 16px;
    margin: 18px 0;
    line-height: 1.7;
}

.suw-cbt-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0;
}

.suw-cbt-meta div {
    background: #f7f9f4;
    border-radius: 16px;
    padding: 16px;
}

.suw-cbt-meta span {
    display: block;
    color: #66746d;
    font-size: 13px;
}

.suw-cbt-meta strong {
    display: block;
    margin-top: 4px;
    color: #123f34;
}

.suw-cbt-topbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.suw-cbt-topbar span {
    color: #66746d;
    font-size: 13px;
}

.suw-cbt-timer {
    min-width: 86px;
    text-align: center;
    border-radius: 999px;
    padding: 10px 16px;
    background: #123f34;
    color: #fff;
    font-weight: 900;
    font-size: 18px;
}

.suw-cbt-progress {
    height: 10px;
    background: #e7eee6;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 24px;
}

.suw-cbt-progress span {
    display: block;
    height: 100%;
    background: #c99234;
}

.suw-cbt-options {
    display: grid;
    gap: 12px;
    margin: 22px 0;
}

.suw-cbt-options label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid rgba(18,33,29,.13);
    border-radius: 16px;
    cursor: pointer;
    background: #fff;
}

.suw-cbt-options input {
    transform: scale(1.2);
}

.suw-cbt-result-card {
    text-align: center;
}

.suw-cbt-result-ring {
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    background: #f3f7f1;
    border: 10px solid #c99234;
}

.suw-cbt-result-ring strong {
    font-size: 34px;
    color: #123f34;
}

.suw-cbt-result-ring span {
    color: #66746d;
    font-weight: 800;
}

.suw-cbt-result-ring.is-pass {
    border-color: #137333;
}

.suw-cbt-review {
    margin-top: 18px;
    text-align: left;
    background: #f7f9f4;
    border-radius: 16px;
    padding: 16px;
}

.suw-cbt-review summary {
    cursor: pointer;
    font-weight: 900;
}

.suw-cbt-review-item {
    border-top: 1px solid rgba(18,33,29,.1);
    padding: 12px 0;
}

.suw-cbt-review-item strong,
.suw-cbt-review-item span {
    display: block;
}

.suw-cbt-admin-grid {
    display: grid;
    grid-template-columns: minmax(320px, 480px) 1fr;
    gap: 20px;
    align-items: start;
}

.suw-cbt-checkbox {
    display: flex !important;
    gap: 10px;
    align-items: center;
}

.suw-cbt-checkbox span {
    margin: 0 !important;
}

.suw-cbt-status {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.suw-cbt-status.is-submitted {
    background: #e7f7ee;
    color: #137333;
}

.suw-cbt-status.is-started {
    background: #fff7e6;
    color: #9a6700;
}

@media (max-width: 760px) {
    .suw-cbt-card {
        padding: 20px;
        border-radius: 18px;
    }

    .suw-cbt-meta,
    .suw-cbt-admin-grid {
        grid-template-columns: 1fr;
    }

    .suw-cbt-user,
    .suw-cbt-topbar,
    .suw-cbt-brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .suw-cbt-timer {
        width: 100%;
    }
}


.suw-cbt-open-status {
    display: inline-block;
    margin: 8px 0 18px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
}

.suw-cbt-open-status.is-open {
    background: #e7f7ee;
    color: #137333;
}

.suw-cbt-open-status.is-closed {
    background: #fff1f0;
    color: #9b1c1c;
}

.suw-cbt-filter-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.suw-cbt-filter-form input,
.suw-cbt-filter-form select {
    min-height: 34px;
}


.suw-result-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 22px 0;
}

.suw-result-summary-grid div {
    padding: 18px;
    border-radius: 18px;
    background: #f7f9f4;
    border: 1px solid rgba(18,33,29,.08);
}

.suw-result-summary-grid span {
    display: block;
    color: #66746d;
    font-size: 13px;
    margin-bottom: 4px;
}

.suw-result-summary-grid strong {
    display: block;
    color: #123f34;
    font-size: 26px;
}

.suw-result-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.suw-result-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}

.suw-result-table th,
.suw-result-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(18,33,29,.08);
    text-align: left;
}

.suw-result-table th {
    background: #123f34;
    color: #fff;
}

.suw-result-cbt-row td {
    background: #fbfaf5;
    font-weight: 800;
}

.suw-admin-result-table th,
.suw-admin-result-table td {
    white-space: nowrap;
}

@media (max-width: 760px) {
    .suw-result-summary-grid {
        grid-template-columns: 1fr;
    }
}


.suw-result-summary-grid {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 980px) {
    .suw-result-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .suw-result-summary-grid {
        grid-template-columns: 1fr;
    }
}
