.ays-review-before-submit-page {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(18, 32, 59, 0.08);
}

.ays-review-before-submit-header {
    margin-bottom: 18px;
}

.ays-review-before-submit-title {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.25;
}

.ays-review-before-submit-description {
    margin: 0;
    opacity: 0.82;
    line-height: 1.6;
}

.ays-review-before-submit-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.ays-review-before-submit-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 90px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8fafc;
}

.ays-review-before-submit-card-count {
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
}

.ays-review-before-submit-card-label {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
}

.ays-review-before-submit-card-answered {
    background: #eef8f1;
}

.ays-review-before-submit-card-unanswered {
    background: #fff5f5;
}

.ays-review-before-submit-card-bookmarked {
    background: #fff8e8;
}

.ays-review-before-submit-card-flagged {
    background: #fff5ea;
}

.ays-review-before-submit-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.ays-review-before-submit-legend:empty {
    display: none;
}

.ays-review-before-submit-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f4f6f8;
    font-size: 13px;
    font-weight: 600;
}

.ays-review-before-submit-legend-item::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.9;
}

.ays-review-before-submit-legend-answered {
    color: #1f7a3f;
}

.ays-review-before-submit-legend-unanswered {
    color: #c03434;
}

.ays-review-before-submit-legend-bookmarked {
    color: #b98200;
}

.ays-review-before-submit-legend-flagged {
    color: #c76700;
}

.ays-review-before-submit-message {
    min-height: 22px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.ays-review-before-submit-message.has-message {
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff4e8;
    color: #8d4a08;
    font-weight: 600;
}

.ays-review-before-submit-map {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.ays-review-before-submit-map-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 96px;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-align: left;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.ays-review-before-submit-map-item:hover,
.ays-review-before-submit-map-item:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(18, 32, 59, 0.08);
}

.ays-review-before-submit-map-item:focus {
    outline: 0;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08), 0 0 0 4px rgba(17, 24, 39, 0.14);
}

.ays-review-before-submit-map-item.is-answered {
    border-color: rgba(31, 122, 63, 0.26);
}

.ays-review-before-submit-map-item.is-unanswered {
    border-color: rgba(192, 52, 52, 0.26);
}

.ays-review-before-submit-map-item.is-bookmarked {
    box-shadow: inset 0 0 0 1px rgba(185, 130, 0, 0.2);
}

.ays-review-before-submit-map-item.is-flagged {
    box-shadow: inset 0 0 0 1px rgba(199, 103, 0, 0.2);
}

.ays-review-before-submit-map-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

.ays-review-before-submit-map-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ays-review-before-submit-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    background: #f4f6f8;
}

.ays-review-before-submit-tag.is-answered {
    background: #eef8f1;
    color: #1f7a3f;
}

.ays-review-before-submit-tag.is-unanswered {
    background: #fff1f1;
    color: #c03434;
}

.ays-review-before-submit-tag.is-bookmarked {
    background: #fff5d6;
    color: #9e6f00;
}

.ays-review-before-submit-tag.is-flagged {
    background: #fff0df;
    color: #b55c00;
}

.ays-review-before-submit-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ays-review-before-submit-actions .action-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

@media screen and (max-width: 768px) {
    .ays-review-before-submit-page {
        padding: 18px;
        border-radius: 16px;
    }

    .ays-review-before-submit-title {
        font-size: 22px;
    }

    .ays-review-before-submit-summary,
    .ays-review-before-submit-map {
        grid-template-columns: 1fr;
    }

    .ays-review-before-submit-card,
    .ays-review-before-submit-map-item {
        min-height: 0;
    }

    .ays-review-before-submit-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .ays-review-before-submit-actions .action-button {
        width: 100%;
    }
}

/* --------------------------------------------------------------------- */
/* 21.7.17.5.74 OtoPrep app review-before-submit theme + watermark        */
/* --------------------------------------------------------------------- */

body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-page {
    max-width: none;
    padding: 18px;
    border: 1px solid rgba(16, 117, 188, 0.14);
    border-radius: 24px;
    background: rgba(247, 250, 253, 0.96);
    background-image: var(--otoprep-inline-wm-image, none);
    background-repeat: repeat;
    background-size: var(--otoprep-inline-wm-size, 240px 150px);
    background-position: var(--otoprep-inline-wm-position, 0 0);
    box-shadow: 0 12px 32px rgba(16, 117, 188, 0.10);
}

body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-title {
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #16212B;
}

body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-description {
    color: #536575;
}

body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-summary {
    gap: 14px;
}

body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-card,
body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-map-item {
    border: 1px solid rgba(16, 117, 188, 0.12);
    border-radius: 20px;
    background: rgba(233, 243, 251, 0.92);
    background-image: var(--otoprep-inline-wm-image, none);
    background-repeat: repeat;
    background-size: var(--otoprep-inline-wm-size, 240px 150px);
    background-position: var(--otoprep-inline-wm-position, 0 0);
    box-shadow: 0 10px 24px rgba(16, 117, 188, 0.07);
}

body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-card-answered {
    background-color: rgba(238, 248, 241, 0.94);
}

body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-card-unanswered {
    background-color: rgba(255, 245, 245, 0.95);
}

body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-card-bookmarked {
    background-color: rgba(255, 248, 232, 0.95);
}

body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-card-flagged {
    background-color: rgba(255, 245, 234, 0.95);
}

body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-card-count,
body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-card-label,
body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-map-item {
    color: #16212B;
}

body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-map-item:hover,
body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-map-item:focus {
    box-shadow: 0 14px 28px rgba(16, 117, 188, 0.12);
    border-color: rgba(16, 117, 188, 0.22);
}

body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-map-number {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(16, 117, 188, 0.14);
    color: #16212B;
    box-shadow: 0 6px 18px rgba(16, 117, 188, 0.06);
}

body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-tag {
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(16, 117, 188, 0.12);
    background: rgba(255, 255, 255, 0.92);
    font-weight: 800;
}

body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-actions {
    margin-top: 6px;
}

body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-actions .action-button {
    min-height: 48px;
    border-radius: 14px;
}

body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-message.has-message {
    border: 1px solid rgba(231, 105, 75, 0.16);
    background: rgba(255, 244, 232, 0.96);
}

@media screen and (max-width: 768px) {
    body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-page {
        padding: 14px;
        border-radius: 20px;
    }

    body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-title {
        font-size: 24px;
    }

    body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-card,
    body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-map-item {
        border-radius: 18px;
    }
}


/* --------------------------------------------------------------------- */
/* 21.7.17.5.75 submit-review watermark visibility tune                  */
/* --------------------------------------------------------------------- */

body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-page,
body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-card,
body.otoprep-app.otoprep-view-quiz .ays-review-before-submit-map-item{
    background-blend-mode: multiply;
}
