.res-ce-dashboard {
    max-width: 960px;
}

.res-ce-dashboard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    text-decoration: none;
}

.res-ce-notice {
    border-left: 4px solid #2271b1;
    margin: 0 0 16px;
    padding: 10px 12px;
    background: #f6f7f7;
}

.res-ce-notice-error,
.res-ce-warning {
    border-left-color: #b32d2e;
    background: #fcf0f1;
}

.res-ce-notice-preview {
    border-left-color: #72aee6;
    background: #f0f6fc;
}

.res-ce-dashboard-preview fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.res-ce-preview-disabled-link {
    cursor: default;
    opacity: 0.68;
}

.res-ce-form label {
    display: block;
    margin: 0 0 12px;
    font-weight: 600;
}

.res-ce-form input,
.res-ce-form select {
    display: block;
    width: 100%;
    max-width: 420px;
    margin-top: 4px;
}

.res-ce-field-error {
    display: block;
    min-height: 1.25em;
    margin-top: 4px;
    color: #b32d2e;
    font-size: 0.92em;
    font-weight: 500;
}

.res-ce-field-invalid {
    border-color: #b32d2e;
    box-shadow: 0 0 0 1px #b32d2e;
}

.res-ce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 18px;
}

.res-ce-answer-sheet {
    display: grid;
    grid-template-columns: repeat(var(--res-ce-answer-columns, 5), minmax(148px, 1fr));
    gap: 14px;
    overflow-x: auto;
    padding: 10px 0 4px;
}

.res-ce-answer-column {
    width: auto;
}

.res-ce-answer-row {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    line-height: 24px;
    white-space: nowrap;
}

.res-ce-answer-row + .res-ce-answer-row {
    margin-top: 6px;
}

.res-ce-answer-choices {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0;
    gap: 4px;
    line-height: 24px;
    white-space: nowrap;
}

.res-ce-answer-choice {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
    vertical-align: middle;
}

.res-ce-answer-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.res-ce-answer-choice span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    line-height: 22px;
    border: 1px solid #6b7280;
    border-radius: 50%;
    color: #1f2937;
    background: #fff;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.res-ce-answer-choice:hover span {
    border-color: #2271b1;
    color: #0a4b78;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.14);
}

.res-ce-answer-choice input:focus-visible + span {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.res-ce-answer-choice input:checked + span {
    border-color: #111827;
    color: #fff;
    background: #111827;
}

.res-ce-question {
    display: inline-block;
    width: 2.1em;
    height: 24px;
    margin: 0;
    padding: 0 6px 0 0;
    text-align: right;
    vertical-align: middle;
    font-weight: 700;
    line-height: 24px;
    color: #374151;
}

.res-ce-history {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
}

.res-ce-history th,
.res-ce-history td {
    border-bottom: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

@media (max-width: 700px) {
    .res-ce-answer-sheet {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .res-ce-answer-row {
        height: 40px;
        line-height: 36px;
    }

    .res-ce-answer-choices {
        height: 36px;
        gap: 8px;
        line-height: 36px;
    }

    .res-ce-answer-choice {
        width: 36px;
        height: 36px;
        font-size: 14px;
        line-height: 36px;
    }

    .res-ce-answer-choice span {
        width: 34px;
        height: 34px;
        line-height: 34px;
    }

    .res-ce-question {
        height: 36px;
        line-height: 36px;
    }
}
