.pte-objective-result,
.pte-objective-result * {
    box-sizing: border-box;
    min-width: 0;
}

.pte-objective-result {
    width: 100%;
    padding-top: 34px;
    overflow-wrap: anywhere;
}

.pte-objective-result h2 {
    margin: 8px 0 0;
    color: var(--pte-ink, #10231c);
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.7rem, 3.2vw, 2.55rem);
    font-weight: 400;
    line-height: 1.12;
}

.pte-objective-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.pte-objective-score-facts {
    flex: 0 1 300px;
    padding: 14px 16px;
    border: 1px solid var(--pte-line, #dfe6e0);
    border-radius: 10px;
    background: var(--pte-soft, #f6f8f6);
    text-align: right;
}

.pte-objective-score-facts span,
.pte-objective-score-facts strong {
    display: block;
}

.pte-objective-score-facts span {
    color: var(--pte-muted, #607068);
    font-size: 0.78rem;
    font-weight: 700;
}

.pte-objective-score-facts strong {
    margin-top: 5px;
    color: var(--pte-green, #0b5d3b);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.15rem;
}

.pte-objective-completed-text {
    max-width: 92ch;
    margin-top: 15px;
    font-size: 1.05rem;
    line-height: 1.85;
    white-space: pre-wrap;
}

.pte-objective-correction {
    display: inline;
    margin: 0 0.12em;
    padding: 0.08em 0.28em;
    border-radius: 4px;
    background: #dcefe4;
    color: #075232;
    font-weight: 800;
}

.pte-objective-correction.is-review {
    background: #fff0cf;
    color: #6b4b00;
}

.pte-objective-option-list,
.pte-objective-blank-list {
    display: grid;
    gap: 11px;
    width: 100%;
}

.pte-objective-option {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) minmax(112px, auto);
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--pte-line, #dfe6e0);
    border-radius: 10px;
    background: var(--pte-surface, #fff);
}

.pte-objective-option.is-correct,
.pte-objective-option.is-missed {
    border-color: #83bea1;
    background: #eef8f2;
}

.pte-objective-option.is-wrong,
.pte-objective-option.is-selected-wrong {
    border-color: #dca6a0;
    background: #fff3f1;
}

.pte-objective-option-marker {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: var(--pte-soft, #f6f8f6);
    color: var(--pte-green, #0b5d3b);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 800;
}

.pte-objective-option-marker svg {
    width: 18px;
    height: 18px;
}

.pte-objective-option-copy {
    line-height: 1.55;
}

.pte-objective-option-state {
    color: var(--pte-muted, #607068);
    font-size: 0.78rem;
    text-align: right;
}

.pte-objective-blank-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--pte-line, #dfe6e0);
    border-radius: 10px;
    background: var(--pte-surface, #fff);
    overflow: hidden;
}

.pte-objective-blank-card.is-correct {
    border-color: #83bea1;
    background: #eef8f2;
}

.pte-objective-blank-card.is-review {
    border-color: #e1bd78;
    background: #fff9ec;
}

.pte-listening-fib-review-row.pte-objective-blank-card {
    grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) auto;
}

.pte-objective-scoring-note,
.pte-objective-explanation {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--pte-line, #dfe6e0);
    border-radius: 10px;
    background: var(--pte-soft, #f6f8f6);
}

.pte-objective-explanation strong,
.pte-objective-explanation p {
    display: block;
    margin: 0;
}

.pte-objective-explanation p {
    margin-top: 7px;
    line-height: 1.6;
}

.pte-objective-sequence-review,
.pte-objective-sequence,
.pte-objective-sequence-card {
    min-width: 0;
    max-width: 100%;
}

.pte-objective-sequence-review {
    display: grid;
    gap: 18px;
}

.pte-reading-sequence-comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pte-reading-sequence-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e1b49e;
    border-radius: 13px;
    background: #fffaf6;
}

.pte-reading-sequence-panel.is-correct {
    border-color: #a8be82;
    background: #f8fbf1;
}

.pte-reading-sequence-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 13px;
    border-bottom: 1px solid rgb(88 80 67 / 14%);
}

.pte-reading-sequence-panel > header span,
.pte-reading-sequence-panel > header strong,
.pte-reading-sequence-connector span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pte-reading-sequence-panel > header strong {
    color: var(--pte-green, #0b5d3b);
}

.pte-reading-sequence-cards {
    display: grid;
    gap: 0;
    padding: 11px;
}

.pte-reading-sequence-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    padding: 11px;
    border: 1px solid var(--pte-line, #dfe6e0);
    border-radius: 10px;
    background: var(--pte-surface, #fff);
}

.pte-reading-sequence-card > span {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: var(--pte-green, #0b5d3b);
    color: #efffc5;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
}

.pte-reading-sequence-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.pte-reading-sequence-connector {
    display: flex;
    min-height: 27px;
    align-items: center;
    margin-left: 13px;
    padding-left: 28px;
    color: var(--pte-muted, #607068);
}

.pte-reading-sequence-connector.is-correct {
    color: #53782c;
}

.pte-reading-sequence-connector.is-review {
    color: #9a4f2f;
}

.pte-objective-sequence-card p {
    overflow-wrap: anywhere;
}

.pte-objective-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.pte-objective-legend span,
.pte-objective-selected-words span {
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--pte-soft, #f6f8f6);
    color: var(--pte-muted, #607068);
    font-size: 0.76rem;
    font-weight: 800;
}

.pte-objective-legend .is-correct,
.pte-objective-legend .is-caught,
.pte-objective-selected-words .is-caught {
    background: #dcefe4;
    color: #075232;
}

.pte-objective-legend .is-missed,
.pte-objective-legend .is-misspelled,
.pte-objective-legend .is-missing {
    background: #fff0cf;
    color: #6b4b00;
}

.pte-objective-legend .is-wrong,
.pte-objective-legend .is-extra,
.pte-objective-selected-words .is-wrong {
    background: #ffe2de;
    color: #842f28;
}

.pte-objective-word-selection-diff {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 9px 5px;
    max-width: 100%;
    line-height: 2.8;
    overflow-wrap: anywhere;
}

.pte-listening-hiw-review-word.pte-objective-diff-word {
    display: inline-flex;
    min-height: 42px;
    flex-direction: column;
    justify-content: end;
    padding: 4px 6px;
    border-radius: 6px;
    line-height: 1.2;
}

.pte-listening-hiw-review-word.is-caught {
    background: #dcefe4;
    color: #075232;
}

.pte-listening-hiw-review-word.is-missed {
    background: #fff0cf;
    color: #6b4b00;
}

.pte-listening-hiw-review-word.is-false-click {
    background: #ffe2de;
    color: #842f28;
}

.pte-listening-hiw-spoken-word {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.63rem;
    font-weight: 700;
}

.pte-objective-diff-word {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.pte-objective-dictation-diff,
.pte-objective-dictation-diff p {
    max-width: 100%;
}

.pte-objective-dictation-diff {
    display: grid;
    gap: 12px;
}

.pte-objective-dictation-diff .pte-wfd-sentence-row {
    display: grid;
    grid-template-columns: minmax(90px, 0.2fr) minmax(0, 1fr);
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--pte-line, #dfe6e0);
    border-radius: 10px;
}

.pte-objective-dictation-diff .pte-wfd-sentence-label {
    color: var(--pte-muted, #607068);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pte-objective-dictation-diff p {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
}

.pte-objective-dictation-diff .pte-wfd-word {
    padding: 4px 6px;
    border-radius: 5px;
}

.pte-objective-dictation-diff .pte-wfd-word.is-correct {
    background: #dcefe4;
    color: #075232;
}

.pte-objective-dictation-diff .pte-wfd-word.is-misspelled,
.pte-objective-dictation-diff .pte-wfd-word.is-missing {
    background: #fff0cf;
    color: #6b4b00;
}

.pte-objective-dictation-diff .pte-wfd-word.is-extra {
    background: #ffe2de;
    color: #842f28;
}

.pte-objective-response {
    max-width: 900px;
    padding-top: 36px;
}

.pte-objective-response-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.pte-objective-response-list li {
    display: grid;
    grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--pte-line, #dfe6e0);
    border-radius: 9px;
}

.pte-objective-response-list span {
    color: var(--pte-muted, #607068);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.pte-objective-selected-words {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.pte-objective-transcript {
    margin-bottom: 32px;
    padding: 18px 0 30px;
    border-bottom: 1px solid var(--pte-line, #dfe6e0);
}

@media (prefers-color-scheme: dark) {
    .pte-objective-correction,
    .pte-objective-option.is-correct,
    .pte-objective-option.is-missed,
    .pte-objective-legend .is-correct,
    .pte-objective-legend .is-caught,
    .pte-objective-selected-words .is-caught {
        background: #183f2d;
        color: #a7e7c4;
    }

    .pte-objective-correction.is-review,
    .pte-objective-legend .is-missed,
    .pte-objective-legend .is-misspelled,
    .pte-objective-legend .is-missing {
        background: #3d321a;
        color: #f1d88b;
    }

    .pte-objective-option.is-wrong,
    .pte-objective-option.is-selected-wrong,
    .pte-objective-legend .is-wrong,
    .pte-objective-legend .is-extra,
    .pte-objective-selected-words .is-wrong {
        background: #432321;
        color: #ffc2bb;
    }
}

@media (max-width: 720px) {
    .pte-reading-sequence-comparison {
        grid-template-columns: minmax(0, 1fr);
    }

    .pte-objective-section-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .pte-objective-score-facts {
        flex-basis: auto;
        text-align: left;
    }

    .pte-objective-option {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .pte-objective-option-state {
        grid-column: 2;
        text-align: left;
    }

    .pte-listening-fib-review-row.pte-objective-blank-card {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .pte-listening-fib-review-row.pte-objective-blank-card .pte-listening-fib-review-state {
        grid-column: 2;
    }

    .pte-objective-response-list li {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .pte-objective-dictation-diff .pte-wfd-sentence-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 420px) {
    .pte-objective-result {
        padding-top: 24px;
    }

    .pte-objective-option,
    .pte-objective-scoring-note,
    .pte-objective-explanation,
    .pte-objective-response-list li {
        padding: 12px;
    }
}
