/* Read the original essay with separate strengths / issues and criterion colors. */
#feedbackDialog .fb-context { grid-template-columns:minmax(0,1fr); }
#feedbackDialog .fb-dialog-head { display:grid;grid-template-columns:minmax(0,1fr) 40px;align-items:start;text-align:left; }
.fb-question-image { display:block;width:100%;max-width:760px;height:auto;margin:18px auto 0;border:2px solid var(--border-color);border-radius:12px; }
#feedbackDialog .fb-scorecard { gap:18px;padding:14px 18px; }
#feedbackDialog .fb-overall { width:72px;height:72px; }
#feedbackDialog .fb-overall strong { font-size:28px; }
#feedbackDialog .fb-overall span { font-size:9px; }
.lh-reader { margin:24px 0; }
.lh-reader-head h3 { margin-bottom:6px; }
.lh-notes-switch { display:flex;flex-wrap:wrap;gap:10px;margin:18px 0; }
.lh-notes-switch .lh-button[aria-pressed="true"] { background:var(--accent-yellow);box-shadow:3px 3px 0 var(--border-color); }
.lh-criterion-legend { display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px; }
.lh-reader [data-criterion] { --note-bg:#eeece6;--note-ink:#55504c; }
.lh-reader [data-criterion="TR"] { --note-bg:#fff0b3;--note-ink:#815600; }
.lh-reader [data-criterion="CC"] { --note-bg:#dceeff;--note-ink:#1c5794; }
.lh-reader [data-criterion="LR"] { --note-bg:#eee1ff;--note-ink:#6f35a4; }
.lh-reader [data-criterion="GRA"] { --note-bg:#ffe0e7;--note-ink:#9a3454; }
.lh-criterion-filter { border:1.5px solid var(--border-color);border-radius:9px;background:var(--note-bg,#fff);color:var(--note-ink,var(--text-main));padding:7px 10px;font:inherit;font-size:.77rem;font-weight:800;line-height:1.5;cursor:pointer; }
.lh-criterion-filter[aria-pressed="true"] { box-shadow:2px 2px 0 var(--border-color);outline:2px solid var(--border-color);outline-offset:2px; }
.lh-feedback-layout { display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px;align-items:start; }
.lh-feedback-layout > section { min-width:0; }
.lh-feedback-layout h4 { margin:0 0 12px; }
.lh-feedback-essay { white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:2.15;max-height:65vh;overflow:auto;overscroll-behavior:contain;border:2px solid var(--border-color);padding:20px;border-radius:14px;background:#fffdf7; }
.lh-feedback-essay .lh-essay-mark { background:var(--note-bg);color:inherit;border:0;border-bottom:2px solid var(--note-ink);border-radius:3px;padding:2px 0;cursor:pointer;box-decoration-break:clone;-webkit-box-decoration-break:clone; }
.lh-feedback-essay .lh-essay-mark[aria-pressed="true"],.lh-feedback-essay .lh-essay-mark:focus-visible { outline:2px solid var(--note-ink);outline-offset:2px; }
.lh-feedback-essay .lh-essay-mark:hover { filter:brightness(.94); }
.lh-feedback-essay .lh-mark-overlap { border-bottom-style:double;border-bottom-width:4px; }
.lh-note-panel { max-height:calc(65vh + 38px);overflow:auto;overscroll-behavior:contain;padding:0 4px 4px 0; }
#lhFeedbackDetail { scroll-margin-top:145px; }
.lh-note-placeholder { display:grid;place-items:center;gap:14px;padding:32px 22px;border:2px dashed var(--border-color);border-radius:14px;background:#fffaf0;text-align:center;line-height:1.8; }
.lh-note-placeholder > span { font-size:2rem; }
.lh-note-placeholder p { margin:0; }
.lh-note-detail { border:2px solid var(--border-color);border-radius:14px;padding:18px;box-shadow:3px 3px 0 var(--border-color);background:white;overflow-wrap:anywhere;margin:0 0 18px; }
.lh-note-detail h4 { margin:14px 0;line-height:1.7; }
.lh-note-detail > p { margin:14px 0;white-space:pre-wrap; }
.lh-criterion-tag { display:inline-block;padding:4px 9px;border:1px solid var(--note-ink);border-radius:8px;font-size:.77rem;font-weight:800;line-height:1.6;color:var(--note-ink);background:var(--note-bg); }
.lh-note-detail blockquote { margin:14px 0;padding:12px;border-left:3px solid var(--note-ink);background:var(--note-bg);border-radius:0 9px 9px 0;white-space:pre-wrap; }
.lh-note-diff { margin:15px 0;padding-top:12px;border-top:1px dashed var(--border-color); }
.lh-note-diff p { margin:0 0 10px; }
.lh-note-diff strong,.lh-note-diff span { display:block; }
.lh-note-diff strong { font-size:.76rem;color:var(--text-muted);margin-bottom:4px; }
.lh-note-directory { margin-top:18px;border-top:2px dashed var(--border-color);padding-top:14px; }
.lh-note-directory > summary { margin-bottom:12px;font-size:.88rem; }
.lh-note-link { display:grid;gap:8px;width:100%;padding:12px;margin:0 0 10px;text-align:left;border:2px solid #d9d1bd;border-radius:11px;background:#fffaf0;color:var(--text-main);font:inherit;font-size:.85rem;cursor:pointer; }
.lh-note-link .lh-criterion-tag { justify-self:start; }
.lh-note-link[aria-pressed="true"],.lh-note-link:hover { border-color:var(--border-color);background:#fff4ce; }
.lh-note-link small { color:var(--text-muted); }
.lh-full-feedback { padding-top:20px;margin-top:24px;border-top:2px dashed var(--border-color); }
.lh-full-feedback > summary { font-size:1rem;padding:6px 0; }
.lh-full-feedback[open] > summary { margin-bottom:20px; }
.lh-reader .lh-status:empty { display:none; }
@media(max-width:750px) {
  .lh-feedback-layout { grid-template-columns:1fr;gap:22px; }
  .lh-feedback-essay { max-height:42vh;min-height:160px;padding:14px;font-size:16px; }
  .lh-note-panel { max-height:none;overflow:visible;padding-right:3px; }
  .lh-note-detail { padding:14px; }
  .lh-notes-switch .lh-button { flex:1 1 140px; }
  .lh-criterion-filter { flex:1 1 auto;min-height:38px; }
  .lh-criterion-legend { gap:9px; }
}

