
/* feedback mascots: always fully visible */
#app .feedback.show{overflow:visible!important;align-items:center!important;min-height:90px!important}
#app .feedback.show>img,#app .rw5-feedback img,#app .rw24-feedback img,#app .task-feedback img,#memo-feedback img{
  width:82px!important;height:82px!important;min-width:82px!important;max-width:82px!important;max-height:82px!important;object-fit:contain!important;object-position:center!important;display:block!important;transform:none!important;margin-left:auto!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important
}
#app .feedback.show.partial,#app .u95-partial{background:#f8f2df!important;border-color:#e5d49d!important}
#app .feedback.show.wrong,#app .u95-wrong{background:#faece8!important;border-color:#e6c8c0!important}
#app .feedback.show.correct,#app .u95-correct{background:#edf5e9!important;border-color:#cadbc2!important}

/* Reading overview heroes should look the same across all grades */
#app .u95-reading-overview-hero{background:linear-gradient(135deg,#f1eadf 0%,#e6eadc 100%)!important;border:1px solid var(--line)!important;border-radius:26px!important;box-shadow:none!important}
#app .u95-reading-overview-hero img.u95-reading-main-flork{width:230px!important;height:230px!important;max-width:230px!important;max-height:230px!important;object-fit:contain!important;display:block!important;background:transparent!important}
@media(max-width:980px){#app .u95-reading-overview-hero img.u95-reading-main-flork{width:210px!important;height:210px!important;max-width:210px!important;max-height:210px!important}}@media(max-width:640px){#app .u95-reading-overview-hero img.u95-reading-main-flork{width:min(190px,62vw)!important;height:auto!important;max-width:min(190px,62vw)!important;max-height:none!important}}

/* Q1 Reading: fit all six units on desktop */
@media(min-width:900px){.u95-q1-reading-nav{overflow-x:visible!important;gap:2px!important}.u95-q1-reading-nav a,.u95-q1-reading-nav .rw5-unit-link{font-size:.75rem!important;padding:7px 7px!important;letter-spacing:-.01em!important}}

/* Reading open-response writing areas */
body.u95-reading-route #app textarea{width:100%!important;max-width:100%!important;min-height:150px!important;resize:vertical!important;box-sizing:border-box!important}
body.u95-reading-route #app .rw25-task-card textarea,body.u95-reading-route #app .rw24-task-card textarea{min-height:170px!important}

/* universal quick-editor text boxes */
.u95-text-layer{position:absolute;inset:12px;z-index:8;pointer-events:none;overflow:hidden}
.u95-text-note{position:absolute;left:8%;top:10%;width:min(270px,48%);min-width:130px;min-height:56px;background:rgba(255,253,249,.96);border:1px solid #b99473;border-radius:10px;box-shadow:0 5px 16px rgba(0,0,0,.14);pointer-events:auto;touch-action:none;color:#211d19}
.u95-text-note-bar{height:30px;display:flex;align-items:center;justify-content:space-between;padding:0 6px;background:#f2e7d9;border-bottom:1px solid #e0d1c1;border-radius:9px 9px 0 0;cursor:grab;user-select:none}
.u95-text-note-content{padding:8px 10px;min-height:34px;white-space:pre-wrap;overflow-wrap:anywhere;outline:none;cursor:text;touch-action:auto}
.u95-text-note-delete{border:0;background:transparent;color:#6f5140;font:800 18px/1 Arial;width:26px;height:26px;border-radius:50%;cursor:pointer}
.u95-text-note-bar{height:38px!important;touch-action:none}
.u95-text-note-grip{flex:1;display:flex;align-items:center;align-self:stretch;font:700 12px/1 system-ui,-apple-system,Arial;color:#6f5140;touch-action:none;cursor:grab}
.u95-text-note-tools{display:flex;gap:2px;align-items:center}
.u95-text-note-size{border:0;background:transparent;color:#6f5140;font:800 13px/1 Arial;min-width:32px;height:32px;border-radius:8px;cursor:pointer}
.u95-text-note-size:focus-visible,.u95-text-note-delete:focus-visible{outline:2px solid #8a5a3c;outline-offset:1px}
.u95-text-note-delete{width:32px!important;height:32px!important}
.u95-text-note-resize{position:absolute;right:0;bottom:0;width:24px;height:24px;cursor:nwse-resize;touch-action:none;background:linear-gradient(135deg,transparent 55%,#b99473 55%);border-radius:0 0 10px 0}
.u95-text-note.u95-dragging{box-shadow:0 10px 26px rgba(0,0,0,.22)!important;cursor:grabbing}
@media (pointer:coarse){.u95-text-note-bar{height:44px!important}.u95-text-note-size,.u95-text-note-delete{min-width:40px;width:40px!important;height:40px!important}.u95-text-note-resize{width:34px;height:34px}}

.u95-text-tool.active-tool{background:var(--olive)!important;color:#fff!important;border-color:var(--olive)!important}

/* grade table on exam result */
.u95-grade-table{margin-top:14px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fffdf9}
.u95-grade-table table{width:100%;border-collapse:collapse;font-size:.84rem}.u95-grade-table th,.u95-grade-table td{padding:7px 9px;border-bottom:1px solid var(--line);text-align:left}.u95-grade-table tr:last-child td{border-bottom:0}.u95-grade-table th{background:#f1ebe2}

/* writing clear button */
.u95-clear-writing{margin-left:4px}

/* prevent materials transition flashes */
body.u95-material-pending #app{visibility:hidden!important}

/* solution teacher mascot */
.u95-solution-teacher{display:flex;align-items:center;gap:10px;margin:8px 0 12px;padding:8px 10px;border-radius:12px;background:#f4eee6;border:1px solid #e1d5c6}
.u95-solution-teacher img{width:64px!important;height:64px!important;object-fit:contain!important;background:transparent!important}
