.lecture-home-state.quality-pending,.lq-badge.quality-pending{background:#eef0f3!important;color:#667085!important}
.lecture-home-state.quality-review{background:#fff2cf!important;color:#986600!important}
.lecture-home-state.quality-complete{background:#e0f5eb!important;color:#16805e!important}
.lq-dialog:has(.lq-pick-filters){width:min(1240px,92vw);max-width:92vw}
.lq-pick-filters{display:grid;grid-template-columns:minmax(230px,2fr) repeat(4,minmax(100px,1fr)) auto;align-items:end;gap:12px;background:#f4f8fd;padding:18px;border:1px solid #dfE8f5;border-radius:8px;margin:20px 0}
.lq-pick-filters label{display:flex;flex-direction:column;gap:9px;font-size:14px;font-weight:600;color:#23394f}
.lq-pick-filters input,.lq-pick-filters select{width:100%;min-width:0;height:42px;border:1px solid #dce6f4;border-radius:6px;background:white;padding:0 12px;color:#34465c;font-weight:400}
.lq-pick-filters button{height:42px}
.qr-page{padding:28px;max-width:2200px;margin:auto;color:#24394f}
.qr-page>header{display:flex;align-items:center;justify-content:space-between;padding-right:170px;margin-bottom:22px;gap:20px}
.qr-page h1{font-size:26px;margin:0 0 8px}.qr-page h2{font-size:18px;margin:0}.qr-page h3{font-size:17px}.qr-page h4{font-size:14px;margin:16px 0 6px}
.qr-page p{line-height:1.75;overflow-wrap:anywhere;margin:8px 0}.qr-page header p{color:#708399}
.qr-page a,.qr-page button{color:#326aae;border:1px solid #d9e4f2;border-radius:6px;background:white;padding:9px 15px;text-decoration:none;cursor:pointer}
.qr-page button:disabled{opacity:.45;cursor:not-allowed}.qr-page button.lq-primary{background:#326aae;color:white}
.qr-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(370px,1fr);gap:20px;align-items:start}
.qr-document,.qr-panel{background:white;border:1px solid #dfe8f4;border-radius:12px;overflow:hidden}
.qr-document>h2,.qr-panel>h2{padding:18px 22px;border-bottom:1px solid #e5ecf5}.qr-panel>h2 span{font-size:13px;color:#78899e;margin-left:10px}
.qr-document iframe{display:block;width:100%;height:calc(100vh - 210px);min-height:500px;border:0}.qr-sample{padding:35px;min-height:450px}
.qr-panel>p,.qr-panel>[data-qr-detail],.qr-issue-tabs{margin:16px 22px}.qr-issue-tabs{display:flex;gap:8px;flex-wrap:wrap;max-height:170px;overflow:auto}.qr-issue-tabs button{font-size:13px;text-align:left}.qr-issue-tabs .is-active{background:#e6f0ff;color:#245fac;font-weight:700;border-color:#a9c9f5}
.qr-actions{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.qr-actions button{font-size:13px}
.qr-panel footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;align-items:center;padding:20px 22px;border-top:1px solid #e5ecf5}.qr-panel footer label{display:flex;gap:8px;align-items:center;font-size:14px}
.qr-panel textarea{display:block;width:100%;min-height:180px;margin:10px 0;padding:12px;border:1px solid #cad9eb;border-radius:6px;font:inherit;box-sizing:border-box}.qr-panel [data-qr-message]{color:#966400;min-height:24px}
@media(max-width:1050px){.lq-pick-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.qr-layout{grid-template-columns:1fr}.qr-page>header{padding-right:0}.qr-document iframe{height:65vh}}

.app-shell [data-lecture-action="download"]:disabled{color:#a5afbd!important;background:transparent!important;cursor:not-allowed;opacity:.65}
.app-content[data-route="quality-review"]{padding:0!important}
.qr-page{max-width:none;padding:0;background:#edf2f8;min-height:100vh}
.qr-tabs{display:flex;gap:4px;min-height:58px;padding:10px 175px 0 16px;background:#f2f6fc;overflow-x:auto;align-items:stretch}
.qr-tab{display:flex;min-width:200px;max-width:350px;align-items:center;border-radius:14px 14px 0 0;flex:0 0 260px}
.qr-tab.is-active{background:white}.qr-page .qr-tab button{background:transparent;border:0;padding:14px 12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#24394f;font-weight:600}.qr-tab [role="tab"]{flex:1;min-width:0;text-align:left}.qr-tab button:last-child{flex:none;color:#7d8ca0;font-weight:400}
.qr-operation,.qr-format{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 24px;background:#f2f6fc;border-bottom:1px solid #dfe8f4;min-height:58px;box-sizing:border-box}
.qr-operation>strong,.qr-format>strong{min-width:52px;margin-right:5px;font-size:15px}.qr-operation [data-qr-save-status]{font-size:12px;color:#788ba3;margin-right:auto}.qr-operation button,.qr-operation a{font-weight:600;min-height:38px}.qr-format select{height:34px;border:1px solid #d9e4f2;border-radius:5px;background:white;color:#24394f;padding:0 10px}.qr-format button{padding:7px 13px}.qr-format label{display:flex;align-items:center;gap:8px;font-size:14px}.qr-format input[type=color]{width:29px;height:29px;border:1px solid #d9e4f2;padding:2px;background:white}
.qr-layout{grid-template-columns:minmax(0,1fr) 410px;gap:18px;padding:22px;align-items:start}
.qr-document{border:0;border-radius:0;background:#edf2f8;position:relative;min-height:calc(100vh - 230px)}.qr-document>h2{display:none}.qr-document iframe{max-width:840px;margin:auto;background:white;box-shadow:0 8px 28px #26384c12;min-height:calc(100vh - 260px);height:calc(100vh - 260px)}
.qr-panel{max-height:calc(100vh - 240px);overflow:auto}.qr-panel .qr-issue-tabs{max-height:145px}.qr-panel footer{position:sticky;bottom:0;background:#fff;z-index:2}.qr-panel [data-qr-detail] p{font-size:14px}.qr-panel .qr-issue-tabs button{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qr-live-editor{position:absolute;inset:0;max-width:840px;margin:auto;background:white;box-shadow:0 8px 28px #26384c12;overflow:auto;z-index:2}.qr-live-editor header{padding:16px 24px;border-bottom:1px solid #e5ecf5;display:flex;align-items:center;justify-content:space-between}.qr-rich-field{margin:45px 50px;min-height:420px;outline:0;font-size:16px;line-height:1.8;overflow-wrap:anywhere}.qr-live-editor textarea{margin:24px;width:calc(100% - 48px);height:65vh;padding:20px;box-sizing:border-box;border:1px solid #dce6f4;font:16px/1.8 inherit}
.qr-open-dialog>button{display:block;width:100%;text-align:left;margin:10px 0}
@media(max-width:1150px){.qr-layout{grid-template-columns:minmax(0,1fr) 340px;padding:12px}.qr-operation,.qr-format{padding:10px 15px}.qr-tab{flex-basis:200px}}
@media(max-width:800px){.qr-layout{grid-template-columns:1fr}.qr-panel{max-height:none}.qr-tabs{padding-right:15px}.qr-document iframe{height:65vh}.qr-rich-field{margin:24px}}

.app-shell .lecture-home-menu.is-trash-menu{width:120px;min-width:120px;max-width:120px}
.editor-lab.has-quality-review .editor-lab-body{display:grid!important;grid-template-columns:minmax(0,1fr) 360px;gap:16px;min-height:0}
.editor-lab.has-quality-review .editor-lab-editor-column{min-width:0}
.editor-lab.has-quality-review .qr-panel{margin:12px 12px 12px 0;max-height:none;min-height:0;height:calc(100% - 24px);color:#24394f}
.editor-lab.has-quality-review .qr-panel h2{font-size:18px;margin:0}
.editor-lab.has-quality-review .qr-panel h3{font-size:17px}.editor-lab.has-quality-review .qr-panel h4{font-size:14px;margin:16px 0 6px}
.editor-lab.has-quality-review .qr-panel p{line-height:1.75;overflow-wrap:anywhere}
.editor-lab.has-quality-review .qr-panel button,.qr-native-actions button,.qr-native-actions a{border:1px solid #d9e4f2;border-radius:6px;background:white;padding:9px 12px;color:#326aae;cursor:pointer;text-decoration:none;white-space:nowrap}
.editor-lab.has-quality-review .qr-panel button:disabled,.qr-native-actions button:disabled{opacity:.45;cursor:not-allowed}
.editor-lab.has-quality-review .qr-panel .lq-primary{background:#326aae;color:white}
.qr-native-actions{display:flex;align-items:center;gap:8px}
@media(max-width:1200px){.editor-lab.has-quality-review .editor-lab-body{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:800px){.editor-lab.has-quality-review .editor-lab-body{grid-template-columns:1fr;overflow:auto}.editor-lab.has-quality-review .qr-panel{height:auto;max-height:60vh;margin:12px}}

/* Review uses the native operation and formatting rows, with anchored margin notes. */
.editor-lab.has-quality-review .editor-lab-primary-actions,
.editor-lab.has-quality-review .document-action-bar>.lecture-style-toggle,
.editor-lab.has-quality-review [data-preview-entry],
.editor-lab.has-quality-review [data-discard-session]{display:none!important}
.editor-lab.has-quality-review .document-command-row{display:flex!important;overflow:visible!important}
.editor-lab.has-quality-review .document-action-bar{margin-left:0!important;flex:1;gap:12px!important}
.editor-lab.has-quality-review .document-action-label{margin-right:10px}
.editor-lab.has-quality-review .qr-native-actions{margin-left:auto}
.editor-lab.has-quality-review .editor-lab-body{display:block!important;overflow:hidden}
.editor-lab.has-quality-review .editor-lab-editor-column{height:100%}
.editor-lab.has-quality-review .editor-lab-paper-viewport{height:100%;overflow:auto;padding:24px!important}
.editor-lab.has-quality-review .editor-master-workspace{display:flex!important;align-items:flex-start;gap:32px;position:relative;width:1156px!important;min-width:1156px;margin:0 auto!important;transform:none!important}
.editor-lab.has-quality-review .editor-master-paper{flex:0 0 794px;margin:0!important}
.qr-note-rail{position:relative;flex:0 0 330px;width:330px;min-height:400px}
.editor-lab.has-quality-review .qr-note-rail .qr-panel{position:absolute;left:0;width:330px;height:auto;max-height:none;margin:0!important;overflow:visible;background:#fff9df;border:1px solid #e2c870;border-radius:7px;box-shadow:0 3px 12px #82661512}
.qr-note-nav{display:flex;align-items:center;gap:6px;padding:12px;border-bottom:1px solid #e6d897}
.qr-note-nav strong{margin-right:auto;font-size:13px}
.editor-lab.has-quality-review .qr-note-nav button{font-size:12px;padding:5px 7px}
.qr-note-rail .qr-panel>[data-qr-detail],.qr-note-rail .qr-panel>[data-qr-message]{margin:12px 16px}
.qr-note-rail .qr-panel footer{position:static;background:transparent;padding:12px 16px;border-color:#e6d897}
.qr-note-rail .qr-panel footer label{font-size:12px}
.qr-note-rail .qr-panel .qr-actions{gap:6px;margin:14px 0}
.qr-note-rail .qr-panel .qr-actions button{padding:6px 8px;font-size:12px}
.qr-note-summary{position:absolute;left:0;width:330px;text-align:left;display:flex;flex-direction:column;gap:6px;padding:12px 16px;border:1px solid #e2c870;border-radius:7px;background:#fff9df;color:#735c25;cursor:pointer;font:13px/1.6 inherit}
.qr-note-summary span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px}
.editor-lab.has-quality-review .qr-note-rail .is-resolved{background:#eaf7ed;border-color:#94c8a0;color:#246b3b}
.qr-note-editor{margin-top:14px;border-top:1px solid #e6d897;padding-top:12px}
.qr-note-editor header{display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:8px}
.qr-note-editor .qr-rich-field{margin:10px 0;padding:12px;min-height:150px;max-height:360px;overflow:auto;background:white;border:1px solid #d4c582;border-radius:5px;font-size:14px;line-height:1.7}
.qr-note-editor .qr-rich-field:focus{outline:2px solid #94b8e7}
.qr-note-marks{position:absolute;inset:0;pointer-events:none}
.qr-source-mark{position:absolute;z-index:3;border:0;padding:0;background:#f4cd4c38;border-bottom:2px solid #d6ab28;pointer-events:auto;cursor:pointer;min-height:0!important;border-radius:2px}
.qr-source-mark.is-active{background:#ffb52f70;outline:3px solid #ed9d16;outline-offset:2px;border-color:#bd7400}
.qr-source-mark.is-resolved{background:#76bc8a38;border-color:#52a56d}
.qr-source-pin{position:absolute;z-index:4;left:798px;pointer-events:auto;width:24px;height:24px;min-height:0!important;padding:0;border:1px solid #cba433;border-radius:50%;background:#fff0ad;color:#846318;cursor:pointer;font-size:12px}
.qr-source-pin.is-active{background:#f2a91b;border-color:#a86500;color:#fff;box-shadow:0 0 0 4px #f2a91b38;font-weight:800}
.qr-source-pin.is-resolved{background:#d9efdf;border-color:#7fb68d;color:#246b3b}
.qr-review-field-proxy{margin-top:14px;padding:12px 14px;border:2px solid #e9a31b;border-radius:7px;background:#fff9df;color:#24394f}.qr-review-field-proxy>strong{display:block;margin-bottom:8px;color:#9a6500}.qr-review-locate-pulse{outline:4px solid #f2a91b!important;outline-offset:4px;scroll-margin-block:120px}
@media print{.qr-note-rail,.qr-note-marks{display:none!important}}

.editor-lab.has-quality-review .qr-native-actions a{background:#326aae;color:#fff;border-color:#326aae;font-weight:700;border-radius:8px;padding:10px 18px}
.editor-lab.has-quality-review .qr-native-actions a:hover{background:#285991;border-color:#285991}
.app-shell .lecture-home .lecture-home-state.quality-review{color:#986600!important}.app-shell .lecture-home .lecture-home-state.quality-complete{color:#16805e!important}
.route-data-loading{min-height:calc(100vh - 90px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#43566f;background:#f6f9fd}.route-data-loading p{margin:0;color:#7a8aa0}.route-data-loading.is-error{color:#9d3636}.route-data-spinner{width:28px;height:28px;border:3px solid #dbe7f5;border-top-color:#326aae;border-radius:50%;animation:route-spin .7s linear infinite}@keyframes route-spin{to{transform:rotate(360deg)}}
