/* Focused refinements: personal work, feedback, question library and revision review. */
#subView-mywork .module-card > h3 { display:none; }
#myWorkList .rw-work-card { margin:0 0 16px;border:2px solid var(--border-color);border-radius:15px;background:var(--bg-card);box-shadow:3px 3px 0 var(--border-color);overflow:hidden; }
#myWorkList .rw-work-card > details { border:0!important;border-radius:0!important;margin:0!important;padding:15px 17px!important; }
.rw-work-heading { display:flex;gap:10px;align-items:baseline; }
.rw-work-heading strong { font-size:.95rem;line-height:1.6; }
.rw-work-heading .rw-task-tag { white-space:nowrap;flex:none;background:#fff3c4;border:1px solid var(--border-color);border-radius:8px;font-size:.73rem;padding:3px 7px;font-weight:800; }
.rw-work-meta { display:flex;flex-wrap:wrap;gap:5px 15px;margin:7px 0;color:var(--text-muted);font-size:.8rem;align-items:center; }
.rw-work-meta strong { color:var(--text-main); }
.rw-work-bottom { display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px; }
.rw-work-bottom .fb-open { padding:6px 10px;min-height:34px;font-size:.8rem; }
.rw-more-label { font-size:.78rem;font-weight:800;color:var(--text-muted); }
.rw-work-card > .lw-version-picker { margin:0;padding:9px 17px;border-top:1px dashed #c8bea6;background:#fffcf4;gap:10px; }
.rw-work-card > .lw-version-picker :is(select,button) { min-height:34px;font-size:.78rem;padding:6px 9px; }
.rw-work-card > .lw-version-picker select { max-width:290px; }
.rw-work-card > .lw-version-picker .lh-muted { margin-right:auto; }
#feedbackDialog .fb-dialog-head { padding:12px 22px; }
#feedbackDialog .fb-dialog-head h2 { font-size:1.15rem; }
#feedbackDialog .fb-dialog-body { padding:14px 22px 24px; }
.rw-feedback-question { margin:0 0 12px;border:1px dashed #b9af97;border-radius:11px;background:#fffcf4;padding:9px 12px; }
.rw-feedback-question > summary { font-size:.82rem; }
.rw-feedback-question > summary span { display:inline;margin-left:12px;font-weight:500;color:var(--text-muted); }
.rw-feedback-question[open] > summary span { display:none; }
.rw-feedback-question > p { margin:9px 0;white-space:pre-wrap; }
#feedbackDialog .fb-scorecard { margin:0 0 12px;padding:10px 12px;box-shadow:none;border-width:1px;gap:14px; }
#feedbackDialog .fb-overall { width:57px;height:57px;min-width:57px; }
#feedbackDialog .fb-overall strong { font-size:1.4rem; }
#feedbackDialog .fb-overall span { font-size:.52rem; }
#feedbackDialog .fb-scorebody { padding:0; }
#feedbackDialog .fb-scorechips { margin:0; }
#feedbackDialog .lh-reader-head { display:flex;align-items:baseline;gap:12px;flex-wrap:wrap; }
#feedbackDialog .lh-reader-head :is(h3,p) { margin:0 0 8px; }
#feedbackDialog .lh-reader-head p { font-size:.75rem; }
#feedbackDialog .lh-notes-switch { margin:0 0 9px;gap:8px; }
#feedbackDialog .lh-notes-switch .lh-button { padding:6px 10px;min-height:34px;font-size:.8rem; }
#feedbackDialog .lh-criterion-legend { margin:0 0 12px;gap:7px; }
#feedbackDialog .lh-criterion-filter { padding:5px 8px;min-height:31px;font-size:.72rem; }
#feedbackDialog .lh-feedback-layout { gap:16px; }
#feedbackDialog .lh-feedback-layout h4 { margin:0 0 8px;font-size:.87rem; }
#feedbackDialog .lh-feedback-essay { max-height:56vh;padding:14px;line-height:1.95; }
#feedbackDialog .lh-note-panel { max-height:calc(56vh + 30px); }
#feedbackDialog .lh-note-detail { padding:13px;box-shadow:none;border-width:1px;margin-bottom:12px; }
#feedbackDialog .lh-note-detail :is(h4,p,blockquote) { margin:9px 0; }
.rw-feedback-actions { display:flex;flex-wrap:wrap;gap:9px;margin:12px 0; }
#subView-library .module-card > h3 { display:none; }
#subView-library .ql-intro { margin:0 0 10px; }
#subView-library .ql-task-tabs { margin:0 0 12px; }
#subView-library .ql-task-tabs button { padding:7px 15px;min-height:36px; }
#subView-library .ql-filters { gap:10px;margin:0 0 8px; }
#subView-library .ql-filters :is(input,select) { min-height:38px;padding:7px 9px; }
.rw-library-options { margin:8px 0;font-size:.82rem; }
.rw-library-options[open] { background:#fffcf4;border:1px dashed #b9af97;border-radius:11px;padding:10px; }
.rw-library-options .lh-fields { margin:10px 0; }
#subView-library .ql-count { margin:9px 0 14px; }
#subView-library .ql-level-heading { margin-bottom:10px; }
#subView-library .ql-question { padding:14px;display:flex;flex-direction:column;gap:8px; }
#subView-library .ql-question h4 { font-size:.87rem;line-height:1.6;margin:0; }
#subView-library .ql-question .lh-muted { font-size:.74rem;margin:0; }
#subView-library .ql-question > .lh-button { align-self:flex-start;padding:4px 9px;min-height:30px;font-size:.74rem;box-shadow:none; }
#subView-library .ql-card-actions { margin-top:auto;padding-top:4px; }
.rw-question-thumbnail { width:100%;border:1px solid #d4ccb8;border-radius:8px;background:#fff;padding:3px;cursor:zoom-in; }
.rw-question-thumbnail img { display:block;width:100%;height:110px;object-fit:contain; }
.rw-question-info { font-size:.75rem;color:var(--text-muted); }
.rw-question-info p { margin:6px 0; }
.rw-review-dialog .rw-review-body { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px; }
.rw-review-essay { white-space:pre-wrap;overflow-wrap:anywhere;max-height:35vh;overflow:auto;padding:14px;border:1px solid #c7bda5;border-radius:11px;background:#fffdf7;line-height:1.9; }
.rw-review-essay mark { background:#ffe375;border-bottom:2px solid #9a6b00; }
.rw-review-notes { grid-column:1/-1; }
.rw-review-note { border:1px solid #d4ccb8;border-radius:11px;padding:13px;margin:10px 0; }
.rw-review-note[aria-current="true"] { border:2px solid var(--border-color);background:#fff9e8; }
.rw-review-note blockquote { white-space:pre-wrap;margin:8px 0;padding:8px 12px;border-left:3px solid #e1bb3e;background:#fff9e8; }
.rw-review-note label { display:block;font-weight:800;font-size:.82rem;margin:10px 0; }
.rw-review-note :is(select,textarea) { display:block;width:100%;padding:9px;border:1px solid var(--border-color);border-radius:8px;background:white;font:inherit; }
.rw-review-note textarea { min-height:65px;resize:vertical; }
.rw-review-note .td-button { font-size:.8rem;min-height:32px;padding:6px 9px; }
.rw-review-note .td-status { display:inline-block; }
.rw-revision-guide { margin-top:14px;border:1px dashed #b9af97;border-radius:11px;padding:10px;background:#fffaf0; }
.rw-revision-guide article { padding:9px 0;border-top:1px dashed #ded4bd;font-size:.85rem; }
.rw-revision-guide article p { margin:6px 0;white-space:pre-wrap; }
.rw-guide-nav { display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0;font-size:.8rem; }
.rw-guide-nav .td-button { min-height:32px;padding:4px 12px; }
.rw-guide-reader article { max-height:260px;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere;scrollbar-gutter:stable; }
.rw-guide-reader blockquote { margin:8px 0;padding:8px;border-left:3px solid #e1bb3e;background:#fff3cf;white-space:pre-wrap; }
.rw-guide-reader h4 { margin:8px 0; }
main.library-workspace-wide { max-width:none!important;padding:24px 26px!important; }
@media(min-width:1200px) { #subView-library .ql-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
.rw-review-footer { display:flex;gap:12px;align-items:center;position:sticky;bottom:0;background:#fff8de;padding:12px;border-top:1px solid #c7bda5;z-index:1; }

/* One report scrollbar: the essay and comments flow together. */
#feedbackDialog .lh-feedback-essay,#feedbackDialog .lh-note-panel{max-height:none;overflow:visible;overscroll-behavior:auto}
#feedbackDialog .lh-feedback-layout{gap:26px;align-items:start}
#feedbackDialog .lh-note-panel{position:sticky;top:calc(var(--feedback-header-height,88px) + var(--feedback-tools-height,110px) + 12px)}
#feedbackDialog .lh-reader-tools{position:sticky;top:var(--feedback-header-height,88px);z-index:3;background:#fffdf7;padding:10px 0 8px;border-bottom:1px dashed #c8bea6;margin-bottom:20px}
#feedbackDialog .lh-notes-switch{margin:0 0 10px}
#feedbackDialog .lh-criterion-legend{margin:0}
#feedbackDialog .lh-feedback-layout h4{font-size:.92rem}
