.sc-component{--sc-source:#ffe46c;--sc-pink:#ffc2dc;color:inherit;min-width:0}
.sc-component .sc-component-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;color:#68786e}
.sc-component .sc-undo{padding:5px 14px;min-height:38px;flex-shrink:0}
.sc-component .sc-stage{position:relative;margin-top:8px;min-width:0}
.sc-component .sc-sentence{appearance:none;display:block;box-sizing:border-box;border:0;padding:26px 24px 18px 16px;margin:0;width:100%;background:transparent;text-align:left;color:inherit;font-family:inherit;font-size:26px;font-weight:400;line-height:3.8;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;overflow-wrap:anywhere}
.sc-component button.sc-sentence{touch-action:none}
.sc-component .sc-char{display:inline-block;position:relative;vertical-align:baseline;line-height:1.65;min-width:.5em;border-radius:3px;white-space:pre}
.sc-component .sc-char.sc-source{background:linear-gradient(transparent 18%,var(--sc-source) 18%,var(--sc-source) 80%,transparent 80%)}
.sc-component .sc-char.sc-target{background:linear-gradient(transparent 18%,var(--sc-pink) 18%,var(--sc-pink) 80%,transparent 80%)}
.sc-component .sc-char.sc-keyboard{box-shadow:inset 0 -2px #16432f}
.sc-component .sc-arrows{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;color:#536258}
.ps-question-body.ps-component-body{padding:18px 16px 6px;min-height:200px}
.ps-component-review{margin-top:24px;padding:20px;background:#fff;border:1px solid #dfe7e1;border-radius:12px}
.ps-component-review h2{font-size:18px;font-weight:600;margin:0 0 15px}
.ps-component-review article+article{border-top:1px solid #dfe7e1;padding-top:18px;margin-top:18px}
.ps-component-review article>header{display:flex;justify-content:space-between;gap:10px;font-size:14px;margin-bottom:12px}
@media(max-width:420px){.ps-question-body.ps-component-body{padding:14px 6px 4px}.sc-component .sc-sentence{font-size:25px}.ps-component-review{padding:14px 8px}.sc-component .sc-component-top{gap:8px;font-size:13px}.sc-component .sc-undo{min-height:44px}}

/* Inline instruction and bottom undo share the existing navigation rows. */
.sc-component.sc-compact .sc-stage{margin-top:0}
.ps-component-mode .ps-component-heading{display:flex;align-items:baseline;gap:12px;min-width:0;flex:1}
.ps-component-mode .ps-component-number{white-space:nowrap;flex-shrink:0}
.ps-component-mode .ps-component-instruction{font-size:13px;line-height:1.5;color:#68786e}
.ps-component-mode .ps-component-navigation{display:flex;align-items:center;gap:8px}
.ps-component-mode .ps-topline{gap:10px;align-items:baseline}
.ps-component-mode .ps-question-body.ps-component-body{padding-top:8px}
@media(max-width:700px){.ps-component-mode .ps-topline{padding:10px 12px}.ps-component-mode .ps-component-heading{gap:8px}.ps-component-mode .ps-component-instruction{font-size:12px}.ps-component-mode #psSaved{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ps-component-mode .ps-question-actions .ps-secondary,.ps-component-mode .ps-question-actions .ps-primary{padding:10px 12px}}

/* Keep the task type unmistakable without a separate instruction row. */
.ps-component-mode .ps-component-number-group{display:inline-flex;align-items:center;gap:10px;flex-shrink:0;white-space:nowrap}
.ps-component-mode .ps-component-type-hint{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:3px 11px;border-radius:6px;font-size:16px;line-height:1.4;font-weight:750;letter-spacing:.06em;color:#233d2e}
.ps-component-mode .ps-component-type-attributive{background:#ffe46c}
.ps-component-mode .ps-component-type-adverb{background:#a7d8ff}
.ps-component-mode .ps-component-heading{align-items:center}
@media(max-width:700px){.ps-component-mode .ps-component-number-group{gap:7px}.ps-component-mode .ps-component-type-hint{font-size:15px;padding:3px 8px;min-height:28px}}

/* Compact result and mistake comparison, approved in preview. */

body.ps-component-results{background:#f4f6f5}
body.ps-component-results #psApp{max-width:760px;margin:16px auto 20px;padding:0 14px}
body.ps-component-results .review-summary{padding:13px 15px;background:#fff;border:1px solid #dfe7e1;border-radius:10px}
body.ps-component-results .review-title{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;font-weight:600;color:#4c6354}
body.ps-component-results .review-submitted{font-size:12px;font-weight:400;color:#77877b;white-space:nowrap}
body.ps-component-results .review-verdict{display:flex;align-items:center;gap:12px;margin-top:8px}
body.ps-component-results .review-verdict h1{font-size:24px;line-height:1.2;color:#a9373a;white-space:nowrap}
body.ps-component-results .review-verdict p{font-size:12px;color:#526859;line-height:1.5}
body.ps-component-results .review-meta{display:flex;justify-content:space-between;gap:12px;margin-top:8px;padding-top:8px;border-top:1px solid #e8ede9;font-size:11px;color:#77877b}
body.ps-component-results .review-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 2px 8px}
body.ps-component-results .review-section-heading h2{font-size:15px;font-weight:600}
body.ps-component-results .review-section-heading span{color:#77877b;font-size:12px}
body.ps-component-results .review-wrong-question{border:1px solid #dfe7e1;background:#fff;border-radius:10px;overflow:hidden}
body.ps-component-results .review-wrong-question+.review-wrong-question{margin-top:10px}
body.ps-component-results .review-question-heading{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid #e6ece8;font-size:12px}
body.ps-component-results .review-type{display:inline-flex;align-items:center;justify-content:center;min-height:22px;padding:1px 7px;border-radius:4px;color:#233d2e;font-size:12px;font-weight:700}
body.ps-component-results .review-type-attributive{background:#ffe46c}
body.ps-component-results .review-type-adverb{background:#a7d8ff}
body.ps-component-results .review-pair{display:grid;grid-template-columns:22px minmax(0,1fr);padding:6px 4px 0}
body.ps-component-results .review-pair+.review-pair{padding-top:8px;border-top:1px dashed #e3e9e5}
body.ps-component-results .review-mark{display:block;padding-top:10px;line-height:54.4px;text-align:center;font-size:22px;font-weight:600}
body.ps-component-results .review-mark-wrong{color:#bf3c42}
body.ps-component-results .review-mark-correct{color:#287850}
body.ps-component-results .review-wrong-question .sc-component .sc-sentence{font-size:17px;line-height:3.2;padding:10px 14px 3px 8px}
body.ps-component-results .review-bottom{display:flex;justify-content:center;margin-top:14px}
body.ps-component-results .review-bottom button{min-width:128px;font-size:14px;padding:8px 17px}
    @media(max-width:500px){
body.ps-component-results #psApp{margin:12px auto 16px;padding:0 10px}
body.ps-component-results .review-meta{gap:10px}
    }
  
body.ps-component-results .review-verdict h1.is-passed{color:#16432f}
body.ps-component-results .review-empty{text-align:center;font-size:14px;color:#287850;padding:20px 0;margin:0}
