/* Shared detailed TOEFL 2026 Writing assessment display (full tests & practices). */
.tem-writing-annotated { white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85; }
.tem-writing-issue {display:inline;background:rgba(255,163,102,.30);color:inherit;border-bottom:2px solid #ff9f64;border-radius:3px;padding:1px 2px;cursor:help}
.tem-writing-issue:focus-visible{outline:2px solid #ff9f64;outline-offset:2px}
.tem-writing-issue-card {background:var(--surface,rgba(255,255,255,.05));border:1px solid var(--border,rgba(160,172,199,.25));border-left:3px solid #ff9f64;padding:13px 16px;border-radius:11px;margin:10px 0;min-width:0}
.tem-writing-issue-card h4{font-size:14px;margin:0 0 7px;line-height:1.5;overflow-wrap:anywhere}
.tem-writing-issue-card p{font-size:14px;margin:5px 0;white-space:pre-wrap;line-height:1.75;overflow-wrap:anywhere}
.tem-writing-issue-suggestion{color:var(--accent,var(--review-green,#35d49f));font-weight:700}
.tem-writing-feedback-section{margin:18px 0}
.tem-writing-feedback-section h3{font-size:16px;margin:10px 0}
.tem-writing-feedback-list{display:grid;gap:8px;margin:10px 0;padding-left:23px;line-height:1.7}
.tem-writing-example{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;border:1px solid var(--border,var(--review-border));border-radius:12px;background:var(--surface,rgba(116,163,255,.07));padding:16px}
.tem-writing-feedback-note{color:var(--muted,var(--review-muted));font-size:13px;line-height:1.6;margin:9px 0}
#reorder .reorder-sentence-clean{display:flex;flex-wrap:wrap;align-items:center;gap:8px 5px;min-height:84px;padding:15px;background:var(--surface-strong);border:1px solid var(--border);border-radius:12px;font-size:17px;line-height:1.8;white-space:normal}
#reorder .reorder-fixed-text{white-space:pre-wrap;align-self:center;color:var(--text);font-weight:600}
#reorder .reorder-sentence-clean .slot{display:inline-flex;align-items:center;justify-content:center;min-width:52px;min-height:42px;border:2px dashed var(--border);border-radius:9px;padding:0 6px;background:rgba(116,163,255,.045);font-size:16px;line-height:1.45;vertical-align:middle;color:var(--muted)}
#reorder .reorder-sentence-clean .slot.filled{border:1px solid var(--accent);padding:0;border-radius:9px;background:var(--surface-strong)}
#reorder .reorder-sentence-clean .word.in-slot{display:inline-flex;align-items:center;justify-content:center;margin:0;border:0;border-radius:8px;background:rgba(116,163,255,.14);padding:10px 13px;color:var(--text);font:inherit;font-weight:750;line-height:1.35;cursor:pointer;min-height:40px}
#reorder .reorder-sentence-clean .word.in-slot:hover{background:rgba(116,163,255,.26)}
#reorder .reorder-bank .word{border:1px solid var(--border);border-radius:9px;background:var(--surface-strong);color:var(--text);padding:10px 13px;min-height:41px;font:inherit;font-weight:750;cursor:pointer}
#reorder .reorder-bank .word:hover:not(:disabled){border-color:var(--accent);background:rgba(116,163,255,.1)}
#reorder .reorder-bank .word:disabled{opacity:.3;cursor:default}
@media(max-width:600px){#reorder .reorder-sentence-clean{font-size:15px;padding:11px;gap:7px 4px}#reorder .reorder-sentence-clean .slot{min-height:39px;min-width:45px}#reorder .reorder-sentence-clean .word.in-slot{min-height:38px;padding:8px 9px}}

/* Distinguish precise grammar, pluralization, spelling, and punctuation errors from broader writing advice. */
.tem-writing-issue--error{background:rgba(235,65,83,.19);border-bottom:2px solid #ef566a;color:inherit;box-shadow:inset 0 -1px 0 rgba(239,86,106,.13)}
.tem-writing-issue--error:hover,.tem-writing-issue--error:focus-visible{background:rgba(235,65,83,.32);outline-color:#ef566a}
.tem-writing-issue-card--error{border-left-color:#ef566a;background:rgba(235,65,83,.07)}
.tem-writing-issue-card--error h4{color:var(--text,var(--review-text));font-weight:800}
.tem-writing-feedback-section p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
