/* Shared post-submission page for Reading and Listening. */
.ielts-final-wrapper.test-completed:not(.ielts-high-contrast) {
    background: radial-gradient(circle at 50% -20%, #eaf6ff 0, #f3f8fe 48%, #eef6ff 100%) !important;
}
.ielts-final-wrapper.test-completed .ielts-listening-play-gate { display: none; }

.ielts-final-wrapper.test-completed .ielts-results-container {
    box-sizing: border-box;
    width: min(calc(100% - 40px), 1120px);
    max-width: 1120px;
    min-height: 0;
    margin: 30px auto 48px;
    padding: 32px;
    border: 1px solid #d6e8fb;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(250, 253, 255, .96));
    box-shadow: 0 18px 48px rgba(36, 91, 159, .06);
    overflow: visible;
}

.ielts-final-wrapper.test-completed .ielts-results-container > * {
    width: 100%;
    max-width: none;
}

.ielts-final-wrapper.test-completed .ielts-results-header {
    padding-right: 170px;
    text-align: left;
}

.ielts-final-wrapper.test-completed .ielts-results-eyebrow {
    color: #4b6396;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .28em;
}

.ielts-final-wrapper.test-completed .ielts-results-title {
    margin: 14px 0 8px;
    color: #071139;
    font-size: clamp(38px, 4.4vw, 54px);
    font-weight: 800;
    letter-spacing: -.052em;
    line-height: 1.04;
}

.ielts-final-wrapper.test-completed .ielts-results-subtitle {
    color: #52699b;
    font-size: clamp(14px, 1.5vw, 19px);
    line-height: 1.45;
}

.ielts-final-wrapper.test-completed .ielts-results-tagline {
    color: #52699b;
    font-size: 14px;
    line-height: 1.4;
}

.ielts-final-wrapper.test-completed .ielts-final-score-box {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.ielts-final-wrapper.test-completed .ielts-score-metric {
    gap: 18px;
    min-height: 128px;
    padding: 18px 20px;
    border-color: #d9e9fc;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 9px 25px rgba(32, 88, 153, .035);
}

.ielts-final-wrapper.test-completed .ielts-score-metric-icon {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, #e8f2ff, #f2f8ff);
    color: #075ce3;
}

.ielts-final-wrapper.test-completed .ielts-score-metric-icon svg {
    width: 31px;
    height: 31px;
    stroke-width: 1.8;
}

.ielts-final-wrapper.test-completed .ielts-score-metric-copy { gap: 3px; }
.ielts-final-wrapper.test-completed .ielts-score-metric-value {
    color: #071139;
    font-size: clamp(22px, 2.2vw, 29px);
    font-weight: 800;
    letter-spacing: -.04em;
}
.ielts-final-wrapper.test-completed .ielts-score-metric-value small {
    color: #071139;
    font-size: 1em;
    font-weight: inherit;
    letter-spacing: inherit;
}
.ielts-final-wrapper.test-completed .ielts-final-score-box .band-score {
    color: inherit;
    font-weight: inherit;
}
.ielts-final-wrapper.test-completed .ielts-score-metric-label {
    color: #52699b;
    font-size: 15px;
}
.ielts-final-wrapper.test-completed .ielts-score-metric-note {
    color: #52699b;
    font-size: 14px;
}

.ielts-final-wrapper.test-completed .ielts-detailed-report-wrapper {
    margin-top: 24px;
    border-color: #d9e9fc;
    border-radius: 10px;
    box-shadow: 0 9px 25px rgba(32, 88, 153, .035);
}
.ielts-final-wrapper.test-completed .ielts-report-heading {
    gap: 4px;
    padding: 17px 14px 11px;
}
.ielts-final-wrapper.test-completed .ielts-report-heading h3 {
    color: #071139;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.035em;
}
.ielts-final-wrapper.test-completed .ielts-report-hint {
    color: #52699b;
    font-size: 12px;
    line-height: 1.5;
}
.ielts-final-wrapper.test-completed .ielts-report-table-scroll {
    max-height: min(62vh, 560px);
    padding: 0 14px 12px;
    overflow: auto;
}
.ielts-final-wrapper.test-completed .ielts-report-table {
    width: 100%;
    min-width: 0;
    border-spacing: 0;
}
.ielts-final-wrapper.test-completed .ielts-report-table th,
.ielts-final-wrapper.test-completed .ielts-report-table td {
    padding: 9px 12px;
    border-bottom-color: #dce9f9;
}
.ielts-final-wrapper.test-completed .ielts-report-table th {
    background: #f0f5fb;
    color: #52699b;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
}
.ielts-final-wrapper.test-completed .ielts-report-table td {
    color: #071139;
    font-size: 13px;
    line-height: 1.45;
}
.ielts-final-wrapper.test-completed #ielts-detailed-report-table td.ielts-result-user-answer {
    text-align: left;
}
.ielts-final-wrapper.test-completed .ielts-report-table th:nth-child(1),
.ielts-final-wrapper.test-completed .ielts-report-table td:nth-child(1) { width: 12%; }
.ielts-final-wrapper.test-completed .ielts-report-table th:nth-child(2),
.ielts-final-wrapper.test-completed .ielts-report-table td:nth-child(2) { width: 33%; }
.ielts-final-wrapper.test-completed .ielts-report-table th:nth-child(3),
.ielts-final-wrapper.test-completed .ielts-report-table td:nth-child(3) { width: 32%; }
.ielts-final-wrapper.test-completed .ielts-report-table th:nth-child(4),
.ielts-final-wrapper.test-completed .ielts-report-table td:nth-child(4) { width: 23%; }
.ielts-final-wrapper.test-completed .ielts-question-number {
    color: #071139;
    font-size: 14px;
    font-weight: 700;
}
.ielts-final-wrapper.test-completed .ielts-question-number::before { content: 'Q'; }
.ielts-final-wrapper.test-completed .ielts-result-answer-text {
    box-sizing: border-box;
    min-width: 124px;
    padding: 6px 12px;
    border-radius: 7px;
    background: #f0f5fb;
    color: #273d69;
}
.ielts-final-wrapper.test-completed .ielts-result-no-answer {
    color: #52699b;
    font-style: normal;
}
.ielts-final-wrapper.test-completed .ielts-result-status {
    gap: 6px;
    min-width: 0;
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
}
.ielts-final-wrapper.test-completed .ielts-result-status > span:first-child { font-size: 16px; }
.ielts-final-wrapper.test-completed .ielts-result-status.is-correct { background: #e8f8ee; color: #087335; }
.ielts-final-wrapper.test-completed .ielts-result-status.is-incorrect { background: #ffebed; color: #c00000; }
.ielts-final-wrapper.test-completed .ielts-result-status.is-partial { background: #fff3dc; color: #8a5a00; }
.ielts-final-wrapper.test-completed .ielts-result-save-status:not([hidden]) {
    width: fit-content;
    margin: 16px 0 0 auto;
}
.ielts-final-wrapper.test-completed .ielts-results-nav { margin-top: 20px; }

@media (max-width: 760px) {
    .ielts-final-wrapper.test-completed .ielts-results-container {
        width: calc(100% - 28px);
        margin-top: 14px;
        padding: 22px;
    }
    .ielts-final-wrapper.test-completed .ielts-results-header { padding-right: 100px; }
    .ielts-final-wrapper.test-completed .ielts-results-tagline { font-size: 11px; }
    .ielts-final-wrapper.test-completed .ielts-final-score-box { gap: 8px; margin-top: 22px; }
    .ielts-final-wrapper.test-completed .ielts-score-metric { gap: 10px; min-height: 90px; padding: 12px; }
    .ielts-final-wrapper.test-completed .ielts-score-metric-icon { flex-basis: 46px; width: 46px; height: 46px; }
    .ielts-final-wrapper.test-completed .ielts-score-metric-icon svg { width: 23px; height: 23px; }
    .ielts-final-wrapper.test-completed .ielts-score-metric-label { font-size: 12px; }
    .ielts-final-wrapper.test-completed .ielts-score-metric-note { font-size: 11px; }
    .ielts-final-wrapper.test-completed .ielts-report-heading h3 { font-size: 21px; }
    .ielts-final-wrapper.test-completed .ielts-report-hint { font-size: 12px; }
    .ielts-final-wrapper.test-completed .ielts-report-table-scroll { padding: 0 14px 14px; }
    .ielts-final-wrapper.test-completed .ielts-report-table th,
    .ielts-final-wrapper.test-completed .ielts-report-table td { padding: 10px 9px; }
    .ielts-final-wrapper.test-completed .ielts-report-table th { font-size: 11px; }
    .ielts-final-wrapper.test-completed .ielts-report-table td { font-size: 12px; }
    .ielts-final-wrapper.test-completed .ielts-question-number { font-size: 12px; }
    .ielts-final-wrapper.test-completed .ielts-result-answer-text { min-width: 0; padding: 7px 9px; }
    .ielts-final-wrapper.test-completed .ielts-result-status { gap: 5px; padding: 7px 8px; font-size: 11px; }
    .ielts-final-wrapper.test-completed .ielts-result-status > span:first-child { font-size: 15px; }
}

@media (max-width: 640px) {
    .ielts-final-wrapper.test-completed .ielts-results-container { width: calc(100% - 20px); padding: 18px; }
    .ielts-final-wrapper.test-completed .ielts-results-header { padding-right: 0; }
    .ielts-final-wrapper.test-completed .ielts-final-score-box { grid-template-columns: 1fr; }
    .ielts-final-wrapper.test-completed .ielts-report-table-scroll { max-height: none; overflow: visible; }
    .ielts-final-wrapper.test-completed .ielts-report-table { display: block; }
    .ielts-final-wrapper.test-completed .ielts-report-table td { font-size: 13px; }
    .ielts-final-wrapper.test-completed .ielts-report-table td:first-child::before { content: 'Q No.'; }
    .ielts-final-wrapper.test-completed .ielts-report-table td:nth-child(n) { width: auto; }
    .ielts-final-wrapper.test-completed .ielts-result-answer-text { min-width: 0; }
}

/* Compact answer-review table: post-submission Reading and Listening reports. */
.ielts-final-wrapper.test-completed .ielts-detailed-report-wrapper {
    margin-top: 20px;
}
.ielts-final-wrapper.test-completed .ielts-report-heading {
    padding: 16px 14px 9px;
}
.ielts-final-wrapper.test-completed .ielts-report-heading h3 {
    font-size: 21px;
    line-height: 1.2;
}
.ielts-final-wrapper.test-completed .ielts-report-hint {
    font-size: 12px;
    line-height: 1.4;
}
.ielts-final-wrapper.test-completed .ielts-report-table-scroll {
    padding: 0 14px 12px;
}
.ielts-final-wrapper.test-completed .ielts-report-table {
    table-layout: fixed;
    font-size: 13px !important;
    line-height: 1.35 !important;
}
.ielts-final-wrapper.test-completed .ielts-report-table th,
.ielts-final-wrapper.test-completed .ielts-report-table td {
    padding: 8px 12px !important;
    line-height: 1.35 !important;
}
.ielts-final-wrapper.test-completed .ielts-report-table th {
    background: #f1f6fc;
    color: #52699b;
    font-size: 10px !important;
    font-weight: 500;
}
.ielts-final-wrapper.test-completed .ielts-report-table td {
    color: #071139;
    font-size: 13px !important;
}
.ielts-final-wrapper.test-completed .ielts-report-table th:nth-child(1),
.ielts-final-wrapper.test-completed .ielts-report-table td:nth-child(1) { width: 13% !important; }
.ielts-final-wrapper.test-completed .ielts-report-table th:nth-child(2),
.ielts-final-wrapper.test-completed .ielts-report-table td:nth-child(2) { width: 33% !important; }
.ielts-final-wrapper.test-completed .ielts-report-table th:nth-child(3),
.ielts-final-wrapper.test-completed .ielts-report-table td:nth-child(3) { width: 32% !important; }
.ielts-final-wrapper.test-completed .ielts-report-table th:nth-child(4),
.ielts-final-wrapper.test-completed .ielts-report-table td:nth-child(4) { width: 22% !important; }
.ielts-final-wrapper.test-completed .ielts-question-number {
    font-size: 13px;
    font-weight: 700;
}
.ielts-final-wrapper.test-completed .ielts-result-answer-text {
    min-width: 124px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 16px;
}
.ielts-final-wrapper.test-completed .ielts-result-status {
    min-width: 0;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 650;
    line-height: 16px;
}
.ielts-final-wrapper.test-completed .ielts-report-table td:is(.status-correct, .status-incorrect, .status-partial) {
    padding: 8px 12px !important;
    text-align: left !important;
}
.ielts-final-wrapper.test-completed .ielts-result-status > span:first-child {
    font-size: 16px;
    line-height: 16px;
}

@media (max-width: 640px) {
    .ielts-final-wrapper.test-completed .ielts-report-table th,
    .ielts-final-wrapper.test-completed .ielts-report-table td {
        padding: 8px 9px !important;
    }
    .ielts-final-wrapper.test-completed .ielts-result-answer-text {
        min-width: 0;
        padding: 5px 9px;
    }
}
