:root{--nav:#17365d;--blue:#2f75b5;--light:#eef4f8;--border:#dce4ea;--text:#1e2933;--muted:#6b7785;--danger:#b42318;--ok:#297a3a;--bg:#f5f7f9}
*{box-sizing:border-box}body{margin:0;font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;color:var(--text);background:var(--bg);font-size:14px}.layout{min-height:100vh}.sidebar{position:fixed;left:0;top:0;bottom:0;width:220px;background:var(--nav);color:#fff;padding:24px 16px;display:flex;flex-direction:column}.brand{font-size:22px;font-weight:700;line-height:1.25;padding:0 10px 24px;border-bottom:1px solid rgba(255,255,255,.16)}.brand span{font-size:13px;font-weight:400;opacity:.78}.sidebar nav{padding-top:16px;display:flex;flex-direction:column;gap:5px}.sidebar nav a{color:#dfeaf6;text-decoration:none;padding:10px 12px;border-radius:7px}.sidebar nav a:hover,.sidebar nav a.active{background:rgba(255,255,255,.15);color:#fff}.sidebar-foot{margin-top:auto;border-top:1px solid rgba(255,255,255,.16);padding:16px 10px 0}.sidebar-foot a{display:block;color:#cbd8e6;margin-top:8px}.content{margin-left:220px;padding:28px;max-width:1600px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.page-head h1{margin:0 0 6px;font-size:26px}.page-head p{margin:0;color:var(--muted)}.card{background:#fff;border:1px solid var(--border);border-radius:10px;padding:20px;box-shadow:0 1px 2px rgba(20,40,60,.04);overflow:auto}.card h2{font-size:17px;margin:0 0 16px}.card h3{font-size:15px;margin:18px 0 8px}.card-head{display:flex;justify-content:space-between;align-items:center}.grid{display:grid;gap:20px}.grid.two{grid-template-columns:1fr 1fr}.grid.main-side{grid-template-columns:minmax(0,1fr) 340px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.stat{background:#fff;border:1px solid var(--border);border-radius:10px;padding:18px 20px}.stat b{font-size:30px;display:block;color:var(--blue)}.stat span{color:var(--muted)}.stat.warn b{color:var(--danger)}table{width:100%;border-collapse:collapse}th{text-align:left;background:#f4f7f9;color:#44515e;font-size:12px;padding:10px;border-bottom:1px solid var(--border)}td{padding:11px 10px;border-bottom:1px solid #edf0f2;vertical-align:top}tr:hover td{background:#fafcfd}a{color:#1f66a6;text-decoration:none}a:hover{text-decoration:underline}.btn{display:inline-block;border:1px solid transparent;border-radius:7px;padding:9px 15px;font:inherit;cursor:pointer;text-decoration:none}.btn:hover{text-decoration:none}.btn.primary{background:var(--blue);color:#fff}.btn.secondary{background:#fff;color:#34495e;border-color:#cbd6df}.btn.full{width:100%}.text-link,.text-btn{color:#1f66a6;background:none;border:0;cursor:pointer}.form-grid{display:grid;gap:14px}label{display:block;color:#4d5964;font-size:13px}input,select,textarea{width:100%;margin-top:6px;border:1px solid #cbd6df;border-radius:6px;padding:9px 10px;font:inherit;background:#fff}textarea{resize:vertical}.filter-bar{display:grid;grid-template-columns:2fr 1.2fr 1.4fr 1.4fr auto;gap:10px;background:#fff;padding:14px;border:1px solid var(--border);border-radius:10px;margin-bottom:16px}.filter-bar.compact{display:flex;align-items:center}.filter-bar.compact select{max-width:520px}.pill{display:inline-flex;align-items:center;background:#edf4fa;color:#255b87;border-radius:999px;padding:4px 9px;font-size:12px;white-space:nowrap}.pill.danger{background:#fff0ee;color:var(--danger)}.pill.ok{background:#edf8ef;color:var(--ok)}.badge{display:inline-flex;min-width:42px;justify-content:center;background:#fff2cc;color:#7f6000;padding:4px 8px;border-radius:6px;font-weight:700}.muted{color:var(--muted)}.small{font-size:12px}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.strong{font-weight:700}.question-text{white-space:pre-wrap;line-height:1.75}.meta-line{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.answer-box,.solution-box{margin-top:18px;padding:14px 16px;border-radius:8px}.answer-box{background:#f1f8f2;border-left:4px solid #4d7a54}.solution-box{background:#f2f6fa;border-left:4px solid #58728c}.side-card dl{margin:0}.side-card dt{color:var(--muted);font-size:12px;margin-top:14px}.side-card dd{margin:4px 0;word-break:break-all}.occurrence{padding:10px 0;border-bottom:1px solid #edf0f2}.occurrence span,.occurrence small{display:block;margin-top:3px}.asset-grid{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.asset-grid figure{margin:0;border:1px solid var(--border);padding:8px;border-radius:7px}.asset-grid img{display:block;max-width:520px;max-height:320px;object-fit:contain}.asset-grid figcaption{font-size:11px;color:var(--muted);margin-top:5px}.asset-placeholder{border:1px dashed #b9c5cf;padding:20px;color:var(--muted);border-radius:7px}.pager{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:16px}.action-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:20px}.action-card{display:block;background:#fff;border:1px solid var(--border);border-radius:9px;padding:18px;text-decoration:none}.action-card:hover{border-color:#7aa7cd;text-decoration:none}.action-card b{display:block;font-size:16px;color:#1f4e78}.action-card span{display:block;color:var(--muted);margin-top:6px}.student-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0 16px}.check-card{border:1px solid var(--border);padding:9px 10px;border-radius:6px;background:#fff}.check-card input{width:auto;margin:0 6px 0 0}.check-card small{display:block;color:var(--danger);margin-left:20px}.already{background:#fff8f6;border-color:#f3c6bd}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:10px;color:var(--muted)}.item-check-list{display:flex;flex-direction:column;gap:7px;max-height:600px;overflow:auto;margin-bottom:16px}.item-check{display:grid;grid-template-columns:24px 100px 1fr auto;gap:8px;align-items:start;border:1px solid var(--border);padding:10px;border-radius:7px}.item-check input{width:auto;margin:3px 0 0}.item-check small{color:var(--danger)}.question-preview{background:#f8fafb;border:1px solid var(--border);border-radius:8px;padding:16px;margin-top:12px}.candidate-block{border-top:1px solid var(--border);padding:18px 0}.candidate-block:first-of-type{border-top:0}.source-question{background:#fafbfc;border-radius:7px;padding:12px;margin-bottom:10px}.source-question p{white-space:pre-wrap}.retry-item{display:grid;grid-template-columns:40px 1fr;gap:12px;padding:16px 0;border-bottom:1px solid var(--border)}.retry-index{width:32px;height:32px;border-radius:50%;background:#edf4fa;color:#1f4e78;display:flex;align-items:center;justify-content:center;font-weight:700}.rank-row{display:grid;grid-template-columns:54px 1fr;gap:8px;padding:10px 0;border-bottom:1px solid #edf0f2}.rank-row p{margin:4px 0 0;color:var(--muted)}.alert{padding:12px 14px;border-radius:7px;margin-bottom:14px}.alert.success{background:#edf8ef;color:var(--ok)}.alert.error{background:#fff0ee;color:var(--danger)}.empty{text-align:center;color:var(--muted);padding:36px 10px}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#17365d,#3a6d9e)}.login-card{width:390px;background:#fff;padding:34px;border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.22)}.login-title{font-size:24px;font-weight:700;text-align:center}.login-subtitle{text-align:center;color:var(--muted);margin:8px 0 24px}.login-card label{margin-bottom:14px}.hint{text-align:center;color:var(--muted);font-size:12px;margin-bottom:0}
@media(max-width:1000px){.sidebar{position:static;width:100%;height:auto}.content{margin-left:0}.layout{display:block}.sidebar nav{display:grid;grid-template-columns:repeat(3,1fr)}.sidebar-foot{display:none}.grid.two,.grid.main-side,.stat-grid,.action-grid{grid-template-columns:1fr}.filter-bar{grid-template-columns:1fr}.student-grid{grid-template-columns:repeat(2,1fr)}}

/* V1.1 题目编辑、图片排版和审核 */
.button-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.compact-buttons .btn{padding:6px 9px;font-size:12px}.question-page-head{align-items:center}.status-approved{background:#e8f7ec;color:#236b34}.status-pending{background:#fff5d9;color:#795900}.status-needs_fix{background:#fff0ee;color:#a12a20}.status-disabled{background:#eceff2;color:#4d5964}.inline-check{display:flex;align-items:center;gap:7px}.inline-check input{width:auto;margin:0}.compact-form{gap:9px}.source-lock{display:flex;flex-wrap:wrap;gap:12px;background:#f4f7f9;border:1px solid var(--border);padding:12px;border-radius:7px;margin-bottom:16px}.source-lock b{width:100%}.question-edit-form{display:flex;flex-direction:column;gap:16px}.edit-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.publish-check{align-self:end;padding:12px 0}.asset-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0 10px}.asset-board{display:flex;align-items:flex-start;flex-wrap:wrap;gap:12px;margin:12px 0;min-height:80px}.editable-asset{position:relative;margin:0;border:1px solid var(--border);padding:10px;border-radius:8px;background:#fff;max-width:100%;transition:box-shadow .15s,border-color .15s}.editable-asset:hover{border-color:#78a7cf;box-shadow:0 4px 16px rgba(29,78,120,.12)}.editable-asset img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain}.editable-asset figcaption{font-size:11px;color:var(--muted);margin-top:7px}.asset-edit-button{position:absolute;right:8px;top:8px;z-index:2;border:0;border-radius:6px;padding:6px 9px;background:rgba(23,54,93,.92);color:#fff;cursor:pointer;opacity:0;transition:opacity .15s}.editable-asset:hover .asset-edit-button,.asset-edit-button:focus{opacity:1}.drag-handle{position:absolute;left:8px;top:8px;background:rgba(255,255,255,.92);border-radius:4px;padding:3px 5px;cursor:grab;color:#647383}.editable-asset.dragging{opacity:.45}.asset-board .layout-column,.asset-board .layout-full_width{flex-basis:100%}.asset-board .layout-full_width{width:100%!important}.asset-board .layout-grid{flex:1 1 calc(50% - 12px);max-width:calc(50% - 6px)}.asset-board .layout-row,.asset-board .layout-inline{flex:0 1 auto}.align-left{margin-right:auto}.align-center{margin-left:auto;margin-right:auto}.align-right{margin-left:auto}.modal-backdrop{position:fixed;inset:0;z-index:1000;background:rgba(18,29,40,.55);display:flex;align-items:stretch;justify-content:flex-end}.modal-backdrop[hidden]{display:none}.modal-card{background:#fff;width:min(520px,96vw);height:100%;padding:22px;overflow:auto;box-shadow:-12px 0 40px rgba(0,0,0,.2)}.modal-head{display:flex;align-items:center;justify-content:space-between}.modal-head h2{margin:0}.modal-close{font-size:28px;border:0;background:none;cursor:pointer}.asset-live-preview{height:220px;background:#f3f5f7;border:1px solid var(--border);border-radius:8px;display:flex;align-items:center;justify-content:center;overflow:auto}.asset-live-preview img{max-height:200px;height:auto;object-fit:contain}.preset-row{display:flex;gap:6px;flex-wrap:wrap}.preset-row button{border:1px solid var(--border);background:#fff;border-radius:6px;padding:7px 9px;cursor:pointer}.modal-actions{display:flex;gap:8px}.form-error{color:var(--danger);min-height:20px}.issue-panel{margin-top:20px}.issue-row{display:grid;grid-template-columns:auto 1fr;gap:10px;border-top:1px solid var(--border);padding:10px 0}.issue-row p{margin:4px 0}.review-stats{grid-template-columns:repeat(5,1fr)}.review-filter{display:grid;grid-template-columns:2fr 1fr 1.4fr auto;gap:10px;margin-bottom:16px}.review-table td{max-width:520px}.review-flag{margin:2px}.issue-summary{margin-top:5px}.ok-text{color:var(--ok);margin-top:5px}.danger-text{color:var(--danger);margin-top:5px}.text-link{display:inline-block;margin:8px}.btn:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:1000px){.edit-field-grid,.review-filter{grid-template-columns:1fr}.review-stats{grid-template-columns:repeat(2,1fr)}.asset-toolbar{align-items:flex-start;flex-direction:column}.asset-board .layout-grid{max-width:100%;flex-basis:100%}}

.direct-retry-question{margin-bottom:16px;padding:12px;background:#f0f8fd;border:1px solid #9fc4df;border-radius:8px}.item-check.direct{background:#fff;border-color:#6b9fc8}.compact-alert{margin:8px 0 0;padding:8px 10px;font-size:12px}

/* V1.2 A4 所见即所得图片排版 */
.a4-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0}.a4-editor-heading h2{margin:0}.a4-editor-heading p{margin:5px 0 0;color:var(--muted)}
.a4-toolbar{position:sticky;top:8px;z-index:20;display:flex;align-items:center;gap:7px;flex-wrap:wrap;background:#f7fafc;border:1px solid #c8d6e2;border-radius:9px;padding:9px;margin-bottom:8px;box-shadow:0 4px 12px rgba(23,54,93,.08)}.a4-toolbar[hidden]{display:none}.a4-toolbar button{border:1px solid #b9c9d7;background:#fff;color:#27465f;border-radius:6px;padding:7px 11px;cursor:pointer}.a4-toolbar button:hover{border-color:#5489b5;background:#edf5fb}.a4-toolbar .primary-action{background:var(--blue);border-color:var(--blue);color:#fff}.a4-toolbar button:disabled{opacity:.4;cursor:not-allowed}.layout-advanced{margin-left:auto;position:relative}.layout-advanced summary{cursor:pointer;color:#426681}.layout-advanced[open]{flex-basis:100%;display:flex;gap:12px;align-items:end;padding-top:8px}.layout-advanced label{display:inline-flex;align-items:center;gap:5px}.layout-advanced input,.layout-advanced select{width:90px;margin:0;padding:6px}
.layout-help{font-size:12px;color:#527087;background:#eef6fb;padding:8px 10px;border-radius:6px;margin-bottom:8px}.layout-help[hidden]{display:none}.layout-error{min-height:22px;color:var(--danger);font-size:13px;margin-top:7px}
.a4-sheet-wrap{overflow:auto;background:#e8ecef;border:1px solid #d1d9df;border-radius:10px;padding:24px}.a4-sheet{position:relative;width:min(794px,100%);aspect-ratio:210/297;margin:0 auto;background:#fff;box-shadow:0 5px 22px rgba(34,45,55,.18);overflow:hidden;color:#161b20}.a4-margin-guide{position:absolute;left:7.619%;right:7.619%;top:5.051%;bottom:6.061%;border:1px dashed rgba(51,112,159,.3);pointer-events:none}.a4-margin-guide span{position:absolute;right:0;top:-18px;color:#7890a3;font-size:10px}.a4-content{position:absolute;left:7.619%;right:7.619%;top:5.051%;bottom:6.061%;font-size:clamp(9px,1.32vw,14px);line-height:1.62}.a4-question-code{font-size:.78em;color:#667787;margin-bottom:1.2%}.a4-question-stem{white-space:pre-wrap;margin-bottom:2.2%}.a4-assets{display:flex;flex-direction:column;gap:10px;width:100%}.a4-asset-row{display:flex;align-items:flex-start;gap:2.247%;width:100%;min-height:10px}.a4-asset-figure{position:relative;flex:0 0 auto;margin:0;box-sizing:border-box}.a4-asset-figure.align-left{margin-right:auto}.a4-asset-figure.align-center{margin-left:auto;margin-right:auto}.a4-asset-figure.align-right{margin-left:auto}.a4-asset-row:has(.a4-asset-figure + .a4-asset-figure){justify-content:center}.a4-asset-row:has(.a4-asset-figure + .a4-asset-figure) .a4-asset-figure{margin-left:0;margin-right:0}.a4-asset-figure img{display:block;width:100%;height:auto;object-fit:contain;user-select:none}.a4-asset-figure .asset-placeholder{font-size:11px;padding:16px}.size-badge{display:none;position:absolute;left:50%;bottom:4px;transform:translateX(-50%);background:rgba(19,46,67,.86);color:#fff;border-radius:10px;padding:2px 7px;font-size:10px;white-space:nowrap}.editing .a4-asset-figure{outline:1px solid transparent;cursor:grab}.editing .a4-asset-figure:hover{outline-color:#6b9fc8}.editing .a4-asset-figure.selected{outline:2px solid #1672b8}.editing .size-badge{display:block}.a4-asset-figure.dragging{opacity:.45}.resize-handle{position:absolute;width:10px;height:10px;background:#fff;border:2px solid #1672b8;border-radius:50%;z-index:3;touch-action:none}.resize-handle.nw{left:-6px;top:-6px;cursor:nwse-resize}.resize-handle.ne{right:-6px;top:-6px;cursor:nesw-resize}.resize-handle.sw{left:-6px;bottom:-6px;cursor:nesw-resize}.resize-handle.se{right:-6px;bottom:-6px;cursor:nwse-resize}.a4-asset-figure.asset-overflow{outline:3px solid #d93025!important;background:#fff2f0}.layout-overflow .a4-margin-guide{border-color:#d93025;border-width:2px}.a4-answer,.a4-solution{margin-top:2.5%;padding:1.5% 2%;border-radius:4px}.a4-answer{background:#f1f8f2;border-left:3px solid #4d7a54}.a4-solution{background:#f2f6fa;border-left:3px solid #58728c}.preview-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.preview-actions span{margin-right:auto;color:var(--muted)}.retry-a4-pages{display:flex;flex-direction:column;gap:28px}.retry-layout-editor{background:#fff;border:1px solid var(--border);border-radius:10px;padding:18px}.action-card.featured{border:2px solid #4e87b5;background:#f4f9fd}
.asset-organizer{background:#f7fafc;border:1px solid #c7d5e0;border-radius:10px;padding:12px;margin:10px 0}.asset-organizer[hidden]{display:none}.asset-organizer-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.asset-organizer-head b,.asset-organizer-head span{display:block}.asset-organizer-head span{color:var(--muted);font-size:12px;margin-top:3px}.asset-grid-presets{display:flex;gap:6px;flex-wrap:wrap}.asset-grid-presets button{border:1px solid #aebfcd;background:#fff;color:#31536d;border-radius:6px;padding:6px 9px;cursor:pointer}.asset-grid-presets [data-auto-grid]{background:#e8f4fb;border-color:#6b9fc8;font-weight:700}.asset-thumbnail-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}.asset-thumbnail-card{position:relative;display:grid;grid-template-columns:28px 74px 1fr auto;align-items:center;gap:8px;min-height:88px;margin:0;background:#fff;border:1px solid #cdd8e0;border-radius:8px;padding:7px;cursor:pointer}.asset-thumbnail-card:hover{border-color:#6b9fc8}.asset-thumbnail-card.selected{border:2px solid #1672b8;background:#f0f8fd}.asset-thumbnail-card.dragging{opacity:.45}.asset-thumbnail-card.drop-target{border:3px solid #20a36a}.thumbnail-index{display:flex;width:24px;height:24px;align-items:center;justify-content:center;border-radius:50%;background:#17365d;color:#fff;font-size:12px;font-weight:700}.thumbnail-media{height:70px;display:flex;align-items:center;justify-content:center;background:#eef2f5;border-radius:5px;overflow:hidden}.thumbnail-media img{display:block;max-width:100%;max-height:68px;object-fit:contain}.thumbnail-info{min-width:0}.thumbnail-info b{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thumbnail-info span{display:block;color:#607587;font-size:11px;margin-top:5px}.thumbnail-actions{display:flex;flex-direction:column;gap:5px}.thumbnail-actions button{width:27px;height:27px;border:1px solid #adc0cf;background:#fff;border-radius:5px;color:#245477;font-size:18px;line-height:1;cursor:pointer}.thumbnail-drag{position:absolute;right:7px;bottom:3px;color:#8193a0;font-size:9px}.asset-position-controls{position:absolute;left:50%;top:-38px;transform:translateX(-50%);z-index:8;display:flex;background:#17365d;border-radius:7px;padding:3px;box-shadow:0 4px 12px rgba(17,44,67,.25);white-space:nowrap}.asset-position-controls button{border:0;background:transparent;color:#fff;padding:4px 8px;font-size:11px;cursor:pointer;border-radius:4px}.asset-position-controls button:hover{background:#3a6d9e}.drop-before-row::before,.drop-after-row::after{content:"换到这里";position:absolute;left:0;right:0;height:3px;background:#1e8ed1;color:#1e70a9;font-size:10px;line-height:1;z-index:7}.drop-before-row::before{top:-12px}.drop-after-row::after{bottom:-12px}.drop-same-row{outline:3px solid #20a36a!important}.drop-same-row::after{content:"并入同一行";position:absolute;right:0;top:0;background:#20a36a;color:#fff;font-size:10px;padding:2px 5px;z-index:7}.position-dragging .a4-content::after{content:"";position:absolute;top:0;bottom:0;width:2px;background:#1e8ed1;box-shadow:0 0 0 1px rgba(255,255,255,.8);z-index:6;pointer-events:none}.a4-layout-editor[data-snap-alignment="LEFT"] .a4-content::after{left:0}.a4-layout-editor[data-snap-alignment="CENTER"] .a4-content::after{left:50%}.a4-layout-editor[data-snap-alignment="RIGHT"] .a4-content::after{right:0}.position-dragging .a4-margin-guide{border-color:#1e8ed1}
@media(max-width:760px){.a4-sheet-wrap{padding:8px}.a4-toolbar{position:static}.layout-advanced{margin-left:0}.a4-content{font-size:8px}.a4-assets{gap:5px}.asset-organizer-head{align-items:flex-start;flex-direction:column}.asset-thumbnail-list{grid-template-columns:1fr}}

/* Unified question review and image editing workspace */
.unified-editor-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.unified-editor-title h2,.unified-image-editor h2{margin:0 0 5px}.unified-editor-title p,.unified-image-editor .a4-editor-heading p{margin:0;color:var(--muted)}.unified-image-editor{margin-top:20px}.sticky-form-actions{position:sticky;bottom:0;z-index:8;background:rgba(255,255,255,.96);border-top:1px solid var(--border);padding:12px 0 0}.asset-review-status{display:inline-flex!important;width:max-content;margin-top:5px!important;padding:2px 7px;border-radius:999px;font-size:11px!important;font-weight:700}.asset-review-status.status-approved{background:#e8f7ec;color:#236b34}.asset-review-status.status-pending{background:#fff5d9;color:#795900}.asset-review-status.status-needs_fix{background:#fff0ee;color:#a12a20}.thumbnail-actions .asset-review-button{width:auto;height:27px;padding:4px 7px;color:#236b34;border-color:#9acaaa;font-size:11px}.thumbnail-actions .asset-delete-button{width:auto;height:27px;padding:4px 7px;color:#a12a20;border-color:#e5aaa5;font-size:11px}.thumbnail-actions .asset-delete-button:hover{background:#fff0ee}.image-empty-state{border:1px dashed var(--border);border-radius:8px;margin:14px 0}.unified-image-editor .asset-thumbnail-card{grid-template-columns:28px 74px minmax(120px,1fr) auto}

/* Direct editing inside the A4 preview */
.inline-content-toolbar{position:sticky;top:8px;z-index:22;display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff8df;border:1px solid #e5c969;border-radius:9px;padding:10px 12px;margin:8px 0}.inline-content-toolbar[hidden]{display:none}.inline-content-toolbar span{color:#6b5c2f;margin-right:auto}.inline-content-editing [data-inline-field]{outline:1px dashed #6b9fc8;background:rgba(239,248,255,.82);border-radius:4px;cursor:text;min-height:1.6em;padding:2px 4px;white-space:pre-wrap}.inline-content-editing [data-inline-field]:focus{outline:2px solid #1672b8;background:#fff;box-shadow:0 0 0 3px rgba(22,114,184,.12)}.inline-content-editing .a4-answer,.inline-content-editing .a4-solution{overflow:visible}.inline-content-editing .a4-sheet{overflow:auto}
[data-inline-question-editor] .a4-editor-heading [data-layout-edit],[data-inline-question-editor] .a4-toolbar [data-layout-save],[data-inline-question-editor] .a4-toolbar [data-layout-cancel]{display:none!important}
.revision-row b{font-size:12px;color:#334155}.revision-summary{font-weight:700;color:#264f70}.revision-summary em{display:inline-block;margin-left:6px;padding:2px 6px;border-radius:999px;background:#edf4fa;color:#426681;font-size:10px;font-style:normal}.revision-row small{color:#71808d}

/* V1.3 Word-derived table/formula content blocks. HTML and PDF use the same
   178 mm content width and the same cached formula raster. */
.structured-content{white-space:normal}.content-paragraph{min-height:1.2em;white-space:pre-wrap;margin:0 0 .36em}.content-paragraph:has(.content-formula){line-height:1.85}.content-paragraph:last-child{margin-bottom:0}.content-paragraph.align-center{text-align:center}.content-paragraph.align-right{text-align:right}.content-paragraph.align-justify{text-align:justify}.content-choice-label{display:inline-block;min-width:1.65em;margin-right:.14em;color:#1d5d4a;font-weight:850;letter-spacing:.01em}.content-formula{display:inline-block;height:1.25em;width:auto;max-width:100%;vertical-align:-.22em;object-fit:contain}.content-formula[data-formula-shape="wide"]{height:1.15em;vertical-align:-.16em}.content-formula[data-formula-shape="tall"]{height:1.65em;vertical-align:-.42em}.content-formula-mathml{display:inline-block;vertical-align:middle;font-size:1.12em}.content-table-wrap{width:var(--table-width,100%);max-width:100%;margin:.75em 0 1em}.content-table-wrap.table-align-center{margin-left:auto;margin-right:auto}.content-table-wrap.table-align-right{margin-left:auto}.content-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.92em;line-height:1.42;background:#fff}.content-table td{border:1px solid #66727c;padding:.34em .42em;vertical-align:middle;overflow-wrap:anywhere}.content-table td.content-table-header{font-weight:700;background:#f1f4f6}.content-table .content-paragraph{margin:0;text-align:center}.a4-answer .structured-content,.a4-solution .structured-content{display:inline}.a4-answer .structured-content>.content-paragraph:first-child,.a4-solution .structured-content>.content-paragraph:first-child{display:inline}.inline-content-editing [data-content-segment]{outline:1px dashed #6b9fc8;background:rgba(239,248,255,.82);border-radius:2px;cursor:text;min-width:.25em}.inline-content-editing [data-content-segment]:focus{outline:2px solid #1672b8;background:#fff}.inline-content-editing .content-table td{border-color:#3579aa}.content-structure-note{font-size:11px;color:#5f7485;margin-top:.45em}

/* V1.4 可选页码 */
.pager{gap:7px;flex-wrap:wrap;margin-top:18px}.page-link{min-width:36px;height:36px;padding:0 11px;border:1px solid #cbd6df;border-radius:7px;background:#fff;color:#34495e;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.page-link:hover{border-color:var(--blue);color:var(--blue);text-decoration:none}.page-link.active{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:700}.page-link.disabled{color:#aab3bc;background:#f4f6f8;border-color:#e1e6ea;cursor:not-allowed}.page-ellipsis{color:var(--muted);padding:0 3px}.page-summary{margin-left:6px;color:var(--muted);font-size:12px}
.mastery-workspace{align-items:start}.mastery-workspace>div{display:flex;flex-direction:column;gap:18px}.mastery-summary p{line-height:1.8;margin:4px 0 18px}.create-retry-card{position:sticky;top:14px}.personal-retries{margin-top:0}.personal-retries form{margin:0}.mastery-delete{background:#fff0ee;color:var(--danger);border-color:#efc0ba}.mastery-delete:hover{background:#ffe5e1}.mastery-stats{margin-top:0}
.parent-share-button{background:#edf8ef;color:#236b34;border-color:#b8d9bf}.parent-share-paper{width:min(920px,100%);margin:0 auto;background:#fff;border:1px solid var(--border);border-radius:12px;padding:42px 50px;box-shadow:0 6px 24px rgba(23,54,93,.08)}.parent-share-paper>header{text-align:center;border-bottom:2px solid #315f87;padding-bottom:20px;margin-bottom:26px}.parent-share-brand{color:#2f75b5;font-weight:700;letter-spacing:2px}.parent-share-paper>header h1{font-size:27px;margin:8px 0}.parent-share-paper>header p{color:var(--muted)}.parent-share-paper section{margin:26px 0}.parent-share-paper section h2{font-size:18px;color:#214c70;border-left:4px solid #2f75b5;padding-left:10px}.parent-share-paper li{margin:9px 0;line-height:1.75}.parent-guidance{background:#f1f7fb;border-radius:8px;padding:16px 20px}.parent-share-paper footer{text-align:center;color:var(--muted);border-top:1px solid var(--border);padding-top:18px;margin-top:30px}.parent-share-text{position:fixed;left:-10000px;top:0;width:1px;height:1px}.parent-share-text:not([hidden]){position:static;width:100%;height:280px;margin-top:18px}.parent-share-head{align-items:center}
.retry-filter-bar{display:grid;grid-template-columns:1.2fr 1.2fr 1.6fr auto;gap:12px;align-items:end;margin-bottom:12px;overflow:visible}.retry-filter-bar select,.retry-filter-bar input{margin-top:6px}.retry-filter-actions{display:flex;gap:7px;padding-bottom:1px}
@media(max-width:1000px){.retry-filter-bar{grid-template-columns:1fr}}
@media print{.sidebar,.no-print,.parent-share-text{display:none!important}.content{margin:0;padding:0}.parent-share-paper{width:100%;border:0;box-shadow:none;padding:12mm}.parent-share-paper table{font-size:10pt}}
.parent-mobile-body{margin:0;background:#edf2f6;color:#203040;font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif}.parent-mobile-page{width:min(720px,100%);margin:0 auto;padding:0 14px 92px}.parent-mobile-hero{margin:0 -14px 14px;padding:26px 20px 22px;color:#fff;background:linear-gradient(145deg,#17365d,#2f75b5);border-radius:0 0 22px 22px}.parent-mobile-brand{font-size:13px;opacity:.82;letter-spacing:1px}.parent-mobile-tag{display:inline-block;margin-top:16px;padding:4px 9px;border-radius:999px;background:rgba(255,255,255,.17);font-size:12px}.parent-mobile-hero h1{font-size:25px;line-height:1.35;margin:10px 0 5px}.parent-mobile-hero>p{margin:0;opacity:.84}.parent-mobile-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:20px}.parent-mobile-metrics div{background:rgba(255,255,255,.12);border-radius:10px;padding:11px 8px;text-align:center}.parent-mobile-metrics b,.parent-mobile-metrics span{display:block}.parent-mobile-metrics b{font-size:22px}.parent-mobile-metrics span{font-size:11px;opacity:.8;margin-top:3px}.parent-mobile-card{background:#fff;border:0;border-radius:14px;padding:17px;margin-bottom:12px;box-shadow:0 2px 9px rgba(22,55,86,.06)}.parent-mobile-notice{background:#f2f8fc;border-left:4px solid #2f75b5}.parent-mobile-notice p{margin:6px 0 0;color:#657585;font-size:13px;line-height:1.6}.parent-mobile-section-title{display:flex;align-items:center;gap:9px;margin-bottom:14px}.parent-mobile-section-title>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e8f2fa;color:#1d6096;font-weight:700;font-size:12px}.parent-mobile-section-title h2{margin:0;font-size:18px}.parent-source-list,.parent-weak-list,.parent-step-list{display:flex;flex-direction:column;gap:10px}.parent-source-item{display:grid;grid-template-columns:31px 1fr;gap:10px;padding:12px;background:#f7f9fb;border-radius:10px}.parent-source-index{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#2f75b5;color:#fff;font-weight:700}.parent-source-item b{font-size:14px;line-height:1.5}.parent-source-item p{margin:5px 0 3px;color:#38536b}.parent-source-item small{color:#80909d}.parent-mobile-lead{color:#526575;line-height:1.7}.parent-weak-list article{padding:12px;border:1px solid #e7edf2;border-radius:10px}.parent-weak-list article>div{display:flex;justify-content:space-between;gap:8px}.parent-weak-list article span{flex:none;color:#b42318;background:#fff0ee;border-radius:999px;padding:3px 8px;font-size:11px}.parent-weak-list p{margin:6px 0;color:#38536b}.parent-weak-list small{color:#7c8b97}.parent-mobile-result{margin-top:12px;padding:11px;background:#f2f7fb;border-radius:9px}.parent-step-list article{display:grid;grid-template-columns:34px 1fr;gap:11px}.parent-step-list i{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#edf4fa;color:#27658f;font-weight:700;font-style:normal}.parent-step-list b{font-size:15px}.parent-step-list p{margin:4px 0 0;color:#627483;line-height:1.65}.parent-guidance-mobile{background:#fffaf0}.parent-guidance-mobile ul{margin:0;padding-left:20px}.parent-guidance-mobile li{margin:8px 0;line-height:1.6}.parent-mobile-footer{text-align:center;color:#8a99a5;padding:8px}.parent-mobile-actions{position:fixed;z-index:100;left:50%;bottom:0;transform:translateX(-50%);width:min(720px,100%);display:grid;grid-template-columns:72px 1fr 1.25fr;gap:8px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);border-top:1px solid #dce4ea;box-shadow:0 -5px 18px rgba(20,48,72,.09)}.parent-mobile-actions a,.parent-mobile-actions button{display:grid;place-items:center;min-height:43px;border:1px solid #cbd6df;border-radius:9px;background:#fff;color:#34495e;font:inherit;text-decoration:none;cursor:pointer}.parent-mobile-actions .primary{background:#2f75b5;border-color:#2f75b5;color:#fff;font-weight:700}.parent-mobile-toast{position:fixed;z-index:110;left:50%;bottom:78px;transform:translateX(-50%);width:max-content;max-width:90vw;background:#17365d;color:#fff;padding:10px 14px;border-radius:8px;box-shadow:0 5px 16px rgba(0,0,0,.18)}
@media(max-width:420px){.parent-mobile-hero h1{font-size:22px}.parent-mobile-card{padding:15px}.parent-mobile-actions{grid-template-columns:62px 1fr 1.2fr;font-size:13px}.parent-source-item{grid-template-columns:28px 1fr}}
.class-student-layout{align-items:start}.class-student-layout>aside{display:flex;flex-direction:column;gap:16px}.class-batch-card{margin-top:0}.class-student-layout table form,.card table form{margin:0}
@media print{.parent-mobile-body{background:#fff}.parent-mobile-page{width:100%;padding:0}.parent-mobile-hero{border-radius:0}.parent-mobile-card{box-shadow:none;border:1px solid #e0e5e9;break-inside:avoid}.parent-mobile-actions,.parent-mobile-toast{display:none!important}}

/* V1.5 表格截图：网页预览和 PDF 共用同一张紧凑高清图。 */
.content-table-image{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;background:#fff}.content-table-wrap[data-table-layout]{position:relative}.table-size-badge,.table-resize-handle{display:none}.inline-content-editing .content-table-wrap[data-table-layout]{outline:1px dashed #3579aa;outline-offset:3px}.inline-content-editing .table-size-badge{display:block;position:absolute;left:50%;bottom:3px;transform:translateX(-50%);background:rgba(19,46,67,.86);color:#fff;border-radius:10px;padding:2px 7px;font-size:10px;white-space:nowrap}.inline-content-editing .table-resize-handle{display:block;position:absolute;width:10px;height:10px;background:#fff;border:2px solid #1672b8;border-radius:50%;z-index:4;touch-action:none}.table-resize-handle.nw{left:-6px;top:-6px;cursor:nwse-resize}.table-resize-handle.ne{right:-6px;top:-6px;cursor:nesw-resize}.table-resize-handle.sw{left:-6px;bottom:-6px;cursor:nesw-resize}.table-resize-handle.se{right:-6px;bottom:-6px;cursor:nwse-resize}
.content-inline-image[data-content-image-layout],.content-diagram-frame[data-content-image-layout]{position:relative}.content-image-size-badge,.content-image-resize-handle{display:none}.inline-content-editing [data-content-image-layout]{outline:1px dashed #3579aa;outline-offset:3px}.inline-content-editing .content-image-size-badge{display:block;position:absolute;left:50%;bottom:3px;transform:translateX(-50%);z-index:5;padding:2px 7px;border-radius:10px;color:#fff;background:rgba(19,46,67,.86);font-size:10px;white-space:nowrap}.inline-content-editing .content-image-resize-handle{display:block;position:absolute;width:10px;height:10px;border:2px solid #1672b8;border-radius:50%;background:#fff;z-index:6;touch-action:none}.content-image-resize-handle.nw{left:-6px;top:-6px;cursor:nwse-resize}.content-image-resize-handle.ne{right:-6px;top:-6px;cursor:nesw-resize}.content-image-resize-handle.sw{left:-6px;bottom:-6px;cursor:nesw-resize}.content-image-resize-handle.se{right:-6px;bottom:-6px;cursor:nwse-resize}
.content-image-size-badge button{width:20px;height:20px;margin:0 3px;padding:0;border:0;border-radius:50%;color:#173e33;background:#fff;font-weight:900;line-height:20px;cursor:pointer}.content-image-size-badge b{display:inline-block;min-width:48px;text-align:center;font-size:10px}
.content-image-position-toolbar,.content-table-position-toolbar{display:none}.inline-content-editing .content-image-position-toolbar,.inline-content-editing .content-table-position-toolbar{display:flex;position:absolute;left:50%;top:4px;transform:translateX(-50%);z-index:7;gap:3px;padding:3px;border-radius:9px;background:rgba(19,46,67,.88);white-space:nowrap}.content-image-position-toolbar button,.content-table-position-toolbar button{padding:3px 7px;border:0;border-radius:6px;color:#fff;background:transparent;font-size:10px;font-weight:700;cursor:pointer}.content-image-position-toolbar button.active,.content-table-position-toolbar button.active{color:#1b4d3f;background:#fff}.content-table-position-toolbar{top:3px}

/* V1.6 题库中心与普通组卷中心 */
.library-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}.library-head h1{margin:0 0 5px}.library-head p{margin:0;color:var(--muted)}.library-head-actions{display:flex;gap:8px;align-items:center}.library-layout{display:grid;grid-template-columns:230px minmax(620px,1fr) 165px;gap:14px;align-items:start}.library-tree,.library-tools,.paper-sections,.paper-stats{position:sticky;top:14px}.library-tree{padding:14px;max-height:calc(100vh - 28px)}.tree-subject{display:flex;justify-content:space-between;align-items:center}.tree-subject span{font-size:11px;color:var(--muted)}.tree-title{font-weight:700;margin:16px 0 8px}.library-tree summary{cursor:pointer;font-weight:700;padding:8px 0}.library-tree summary em{float:right;font-style:normal;color:var(--muted)}.chapter-tree{display:flex;flex-direction:column;gap:3px}.chapter-tree a{display:flex;justify-content:space-between;gap:8px;padding:8px;border-radius:6px;color:#405466}.chapter-tree a.active,.chapter-tree a:hover{background:#eaf3fa;color:#1f66a6;text-decoration:none}.empty-chapter{padding:10px 4px;border-top:1px solid #edf0f2;display:flex;justify-content:space-between}.empty-chapter small{color:#9aa5ae}.library-main{min-width:0}.library-filters{padding:12px;margin-bottom:10px;overflow:visible}.filter-tabs{display:flex;gap:4px;overflow:auto;border-bottom:1px solid var(--border);margin:-2px 0 10px}.filter-tabs>*{white-space:nowrap;padding:7px 9px;font-size:12px}.filter-tabs b{color:var(--blue);border-bottom:2px solid var(--blue)}.library-search-row{display:grid;grid-template-columns:2fr 1fr 1.25fr 1.25fr;gap:7px}.library-filter-grid{display:grid;grid-template-columns:repeat(8,minmax(90px,1fr));gap:7px;margin-top:7px}.library-filters input,.library-filters select{margin:0;padding:7px 8px}.library-filter-actions{display:flex;justify-content:flex-end;align-items:center;gap:7px;margin-top:9px}.library-filter-actions label{margin-right:auto}.active-filter-line{display:flex;gap:7px;align-items:center;margin:8px 0;color:var(--muted)}.active-filter-line b{font-size:12px;color:#285b83;background:#eaf3fa;border-radius:999px;padding:4px 9px}.question-card-list{display:flex;flex-direction:column;gap:10px}.library-question-card{background:#fff;border:1px solid var(--border);border-radius:9px;overflow:hidden;box-shadow:0 1px 2px rgba(20,40,60,.04)}.library-question-card.pending-card{border-color:#e7b85f}.library-question-card>header{display:flex;align-items:center;gap:7px;padding:8px 11px;background:#f7f9fb;border-bottom:1px solid #e9eef2}.card-index{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#dfeefa;color:#225d89;font-weight:700}.card-source{min-width:0;margin-right:auto}.card-source b,.card-source small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-source small{color:var(--muted);margin-top:2px}.card-metric{font-size:11px;color:var(--muted);white-space:nowrap}.library-question-body{padding:14px 16px;font-size:15px;line-height:1.7}.library-assets{max-width:820px;margin:10px auto}.library-asset-row{display:flex;justify-content:center;align-items:flex-start;gap:2.25%;margin:8px 0}.library-asset-row img{height:auto;max-width:100%;max-height:360px;object-fit:contain}.library-asset-row img.asset-align-left{margin-right:auto}.library-asset-row img.asset-align-right{margin-left:auto}.library-tags{display:flex;gap:5px;flex-wrap:wrap;padding:0 14px 9px}.library-tags span{font-size:11px;color:#536a7c;background:#f1f5f8;border-radius:4px;padding:4px 6px}.inline-answer,.inline-solution{margin:0 14px 8px;border-radius:6px;padding:7px 10px}.inline-answer{background:#f1f8f2}.inline-solution{background:#f2f6fa}.inline-answer summary,.inline-solution summary{cursor:pointer;font-weight:700}.inline-answer[open] summary,.inline-solution[open] summary{margin-bottom:7px}.library-question-card>footer{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;border-top:1px solid #edf0f2}.card-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.card-actions a,.card-actions button{font-size:12px;background:none;border:0;padding:2px;color:#1f66a6;cursor:pointer}.card-actions button:disabled{color:#9aa5ae}.library-tools{padding:12px}.library-tools h3{margin:0 0 9px}.library-tools>button{display:block;width:100%;border:1px solid var(--border);background:#fff;padding:8px;margin-bottom:6px;border-radius:6px;cursor:pointer}.library-tools .danger-tool{color:var(--danger)}.basket-total{text-align:center;font-size:16px;margin-top:14px;padding:12px;background:#eaf3fa;border-radius:7px}.basket-total b{font-size:23px;color:var(--blue)}
.paper-layout{display:grid;grid-template-columns:190px minmax(600px,1fr) 230px;gap:15px;align-items:start}.paper-sections,.paper-stats{padding:14px}.paper-sections a{display:block;padding:9px;border-bottom:1px solid #edf0f2;color:#405466}.paper-sections .btn{margin-top:12px}.paper-settings{display:grid;grid-template-columns:2fr 1fr auto;gap:10px;align-items:end;margin-bottom:14px}.paper-settings input,.paper-settings select{margin-top:5px}.paper-item-list{display:flex;flex-direction:column;gap:8px}.paper-item{display:grid;grid-template-columns:28px minmax(0,1fr) 180px;gap:10px;border:1px solid var(--border);border-radius:7px;padding:11px;background:#fff}.paper-item.dragging{opacity:.45}.paper-drag{font-size:20px;color:#7c8e9d;cursor:grab}.paper-item p{margin:6px 0;white-space:pre-wrap;line-height:1.55}.paper-item-meta{display:flex;gap:5px}.paper-item-meta span{font-size:11px;background:#edf4fa;padding:3px 6px;border-radius:4px}.paper-item-controls{display:flex;flex-direction:column;gap:5px}.paper-item-controls input,.paper-item-controls select{margin:3px 0 0;padding:6px}.paper-item-controls button{border:1px solid var(--border);background:#fff;border-radius:5px;padding:6px;cursor:pointer}.paper-stats dl{display:grid;grid-template-columns:1fr auto;gap:8px;margin:0 0 12px}.paper-stats dt{color:var(--muted)}.paper-stats dd{margin:0;font-weight:700}.difficulty-bars{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin:12px 0}.difficulty-bars div{text-align:center;background:#f1f5f8;border-radius:5px;padding:6px 2px}.difficulty-bars span,.difficulty-bars b{display:block}.difficulty-bars span{font-size:10px;color:var(--muted)}.paper-stats .btn{margin-top:7px}
@media(max-width:1250px){.library-layout{grid-template-columns:190px minmax(540px,1fr)}.library-tools{position:fixed;left:220px;right:0;bottom:0;top:auto;z-index:30;display:flex;gap:5px;align-items:center;border-radius:0}.library-tools h3,.library-tools .basket-total{display:none}.library-tools>button,.library-tools>.btn{width:auto;margin:0}.library-main{padding-bottom:65px}.paper-layout{grid-template-columns:160px minmax(540px,1fr)}.paper-stats{grid-column:2;position:static}.library-filter-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:850px){.library-layout,.paper-layout{grid-template-columns:1fr}.library-tree,.paper-sections{position:static;max-height:none}.library-search-row,.library-filter-grid,.paper-settings{grid-template-columns:1fr 1fr}.paper-stats{grid-column:auto}.paper-item{grid-template-columns:24px minmax(0,1fr)}.paper-item-controls{grid-column:2}.library-tools{left:0;overflow:auto}.content{padding:14px}.library-question-card>header{flex-wrap:wrap}.card-metric{width:100%}}

/* 七上数学题型目录：章节 → 资料类别 → 题型。 */
.directory-topic{margin:1px 0 2px;border-radius:6px}
.directory-topic>summary{display:flex;justify-content:space-between;gap:8px;padding:7px 8px 7px 18px;font-size:12px;font-weight:650;color:#355467;list-style-position:inside}
.directory-topic>summary span{min-width:0}
.directory-topic>summary em{margin-left:auto;font-style:normal;color:var(--muted);white-space:nowrap}
.directory-topic[open]>summary{background:#f1f7f5;color:#176b62}
.topic-model-tree{margin:0 0 4px 11px;padding-left:8px;border-left:1px solid #dceae6}
.topic-model-tree a{padding:6px 7px;font-size:12px;line-height:1.35}
.topic-model-tree a:first-child{color:#176b62;font-weight:650}
.topic-model-tree a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topic-model-tree a b{font-size:11px;white-space:nowrap}
.saved-baskets{display:flex;flex-direction:column;gap:5px}.saved-baskets button{display:flex;justify-content:space-between;border:1px solid var(--border);background:#fff;border-radius:5px;padding:7px;cursor:pointer;text-align:left}.saved-baskets small{color:var(--muted)}
.whiteboard-record-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:14px}.whiteboard-record-card{display:grid;grid-template-columns:150px 1fr auto;gap:16px;align-items:center;padding:14px}.whiteboard-record-preview{width:150px;aspect-ratio:16/9;background:#edf2f6;border-radius:7px;overflow:hidden;border:1px solid var(--border)}.whiteboard-record-preview img{width:100%;height:100%;object-fit:cover}.whiteboard-record-card h3{margin:0 0 6px}.whiteboard-record-card p{margin:0 0 5px;color:var(--muted)}.whiteboard-record-card small{color:var(--muted)}
.whiteboard-select{display:grid;place-items:center;cursor:pointer}.whiteboard-select input{position:absolute;opacity:0}.whiteboard-select span{width:20px;height:20px;border:2px solid #9aabba;border-radius:5px;background:#fff;position:relative}.whiteboard-select input:checked+span{background:#1876b9;border-color:#1876b9}.whiteboard-select input:checked+span:after{content:'✓';position:absolute;inset:-3px 0 0;text-align:center;color:#fff;font-weight:800}
.library-layout{grid-template-columns:320px minmax(500px,1fr) 145px;gap:16px}.library-tree{padding:16px}.library-filter-grid{grid-template-columns:repeat(4,minmax(90px,1fr))}
.library-tree .chapter-tree a{align-items:flex-start}.library-tree .chapter-tree a span{white-space:normal;line-height:1.45}.library-tree .chapter-tree a b{flex:0 0 auto}.library-tree .topic-model-tree a span{overflow:visible;text-overflow:clip;white-space:normal}
@media(max-width:1250px){.library-layout{grid-template-columns:300px minmax(480px,1fr);gap:14px}.library-tools{left:320px}}
@media(max-width:850px){.library-layout{grid-template-columns:1fr}.library-tree{position:static;max-height:none}.library-tools{left:0}}
.paper-layout{grid-template-columns:170px minmax(460px,1fr) 190px;gap:12px}
.paper-pdf-preview{padding:14px;margin-bottom:20px}.paper-pdf-preview h2{margin:0}.paper-pdf-preview iframe{display:block;width:100%;height:min(76vh,900px);border:1px solid #cbd6df;border-radius:8px;background:#59636d;margin-top:12px}.paper-layout-editors>h2{margin-bottom:5px}.paper-layout-editors>.retry-layout-editor{margin:14px 0 24px}.paper-layout-editors .a4-sheet{width:min(720px,100%)}
.asset-option-caption{font-weight:700;text-align:center;margin-top:4px;color:#18324a}.library-asset-figure{margin:0;display:flex;flex-direction:column;align-items:center}.library-asset-figure img{width:100%;height:auto;object-fit:contain}

/* V1.10 全册知识内容库 */
.knowledge-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px}.knowledge-card-item{display:flex;flex-direction:column;gap:10px;overflow:hidden}.knowledge-card-item h2{margin:0;font-size:18px}.knowledge-card-item p{margin:0;color:#536575;line-height:1.7;flex:1}.knowledge-card-head,.knowledge-card-meta,.knowledge-view-toolbar{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}.knowledge-card-head>span:first-child{color:#37617f;font-weight:700}.knowledge-card-meta{justify-content:flex-start}.knowledge-card-meta span{font-size:11px;background:#edf4fa;color:#365b76;padding:4px 7px;border-radius:5px}.knowledge-view-toolbar{margin-bottom:14px}.knowledge-view-toolbar>div{display:flex;align-items:center;gap:8px}.knowledge-block-list{display:flex;flex-direction:column;gap:14px;margin-bottom:14px}.knowledge-block-item{overflow:hidden}.knowledge-block-item header{display:flex;align-items:center;gap:9px;border-bottom:1px solid #edf0f2;padding-bottom:10px;margin-bottom:13px}.knowledge-block-item header h2{margin:0;flex:1}.knowledge-block-item header small{color:var(--muted)}.knowledge-block-type{font-size:12px;color:#fff;background:#3979aa;border-radius:5px;padding:4px 8px}.knowledge-block-content{font-size:16px;line-height:1.9;white-space:pre-wrap;color:#1e2f3d}.knowledge-asset-gallery{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;gap:12px;margin-top:14px}.knowledge-asset-gallery.single{display:block}.knowledge-asset{flex:1 1 190px;max-width:360px;margin:0;text-align:center}.knowledge-asset-gallery.single .knowledge-asset{max-width:820px;margin:auto}.knowledge-asset img{display:block;max-width:100%;max-height:320px;width:auto;height:auto;object-fit:contain;margin:auto}.knowledge-asset-gallery.single img{max-height:430px}.knowledge-asset figcaption{font-size:12px;color:var(--muted);margin-top:7px}.knowledge-answer-map{margin-top:14px;background:#fffaf0;border:1px solid #ead9ae;border-radius:7px;padding:10px 13px}.knowledge-answer-map summary{cursor:pointer;font-weight:700;color:#765d20}.knowledge-answer-map li{margin:7px 0}.material-knowledge-calls{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:9px}.material-knowledge-calls a{border:1px solid var(--border);border-radius:7px;padding:11px;background:#f8fafb}.material-knowledge-calls b,.material-knowledge-calls span{display:block}.material-knowledge-calls span{font-size:12px;color:var(--muted);margin-top:5px}
@media(max-width:700px){.knowledge-card-grid{grid-template-columns:1fr}.knowledge-view-toolbar{align-items:flex-start}.knowledge-block-content{font-size:15px}.knowledge-block-item{padding:15px}}

/* V1.11 知识卡审核与白板课堂删除 */
.danger-button{background:#fff0ee;color:var(--danger);border-color:#efc0ba}.danger-button:hover{background:#ffe2dd}.knowledge-review-filter{display:grid;grid-template-columns:2fr 1.2fr 1.2fr auto;gap:10px;align-items:end;margin-bottom:14px}.knowledge-review-filter input,.knowledge-review-filter select{margin-top:6px}.knowledge-review-table-card{padding:0}.knowledge-review-bulk{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:13px}.knowledge-review-bulk input{margin:0}.knowledge-review-table-card input[type=checkbox]{width:auto}.knowledge-review-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.knowledge-review-summary>div{display:flex;align-items:center;gap:8px}.knowledge-review-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px;align-items:start}.knowledge-review-compare{display:flex;flex-direction:column;gap:14px}.knowledge-review-block header{display:flex;align-items:center;gap:9px;border-bottom:1px solid #edf0f2;padding-bottom:10px}.knowledge-review-block header h2{margin:0;flex:1}.knowledge-compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:12px}.knowledge-compare-grid section{background:#f8fafb;border:1px solid #e5ebef;border-radius:8px;padding:13px}.knowledge-compare-grid h3{margin:0 0 9px;color:#315c7d}.knowledge-review-answers{display:flex;gap:6px;flex-wrap:wrap;border-top:1px dashed #cbd6df;margin-top:11px;padding-top:9px}.knowledge-review-answers span{font-size:12px;background:#fff7dd;border-radius:4px;padding:3px 6px}.knowledge-review-panel{position:sticky;top:14px}.knowledge-review-panel textarea{margin-bottom:10px}.knowledge-review-actions{display:flex;flex-direction:column;gap:7px}.knowledge-review-history{max-height:380px;overflow:auto}.knowledge-review-history article{border-top:1px solid #edf0f2;padding:10px 0}.knowledge-review-history b,.knowledge-review-history span{display:block}.knowledge-review-history span{font-size:11px;color:var(--muted);margin-top:3px}.knowledge-review-history p{margin:5px 0 0;line-height:1.5}.whiteboard-record-actions{display:flex;flex-direction:column;gap:7px}.whiteboard-record-actions form{margin:0}.whiteboard-record-actions .btn{width:100%;text-align:center}
@media(max-width:1000px){.knowledge-review-filter,.knowledge-review-layout,.knowledge-compare-grid{grid-template-columns:1fr}.knowledge-review-panel{position:static}.knowledge-review-bulk{grid-template-columns:1fr}.knowledge-review-stats{grid-template-columns:repeat(2,1fr)}}

/* Persistent knowledge-card image sizing. */
.knowledge-asset-gallery.single{display:flex}
.knowledge-asset{flex:0 0 min(var(--knowledge-asset-width,55%),100%);width:min(var(--knowledge-asset-width,55%),100%);max-width:100%;transition:width .12s ease,flex-basis .12s ease}
.knowledge-asset-gallery.single .knowledge-asset{max-width:100%;margin:auto}
.knowledge-asset img,.knowledge-asset-gallery.single img{display:block;width:100%;max-width:100%;max-height:none;height:auto;object-fit:contain;margin:auto}
.knowledge-asset-stage{position:relative;width:100%;margin:auto}
.knowledge-asset-resize-handle{position:absolute;right:-7px;bottom:-7px;width:22px;height:22px;padding:0;border:2px solid #fff;border-radius:50%;background:#2f7db8;box-shadow:0 1px 5px #38576a88;cursor:nwse-resize}
.knowledge-asset-resize-handle:after{content:'↘';display:block;color:#fff;font-size:13px;line-height:16px}
.knowledge-asset-size-tools{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:12px;padding:8px;border-radius:8px;background:#f3f7fa}
.knowledge-asset-size-tools button{padding:5px 9px;border:1px solid #bfd0dd;border-radius:5px;background:#fff;color:#315c7d;cursor:pointer}
.knowledge-asset-size-tools button.primary{background:#2f7db8;color:#fff;border-color:#2f7db8}
.knowledge-asset-size-tools input{width:150px;margin:0}
.knowledge-asset-size-tools span{min-width:38px;font-weight:700;color:#315c7d}
.knowledge-asset [data-asset-save-status]{margin-left:8px;color:#258257}
@media(max-width:700px){.knowledge-asset{flex-basis:100%!important;width:100%!important}.knowledge-asset-size-tools input{width:110px}}

/* 自有题库：使用与题库中心一致的结构化题目卡片。 */
.own-question-card-list{margin-top:14px}
.own-question-card{overflow:visible}
.own-question-code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:700;white-space:nowrap}
.own-question-body{min-height:72px;border-bottom:1px dashed #d9e3ea}
.own-question-card>footer{padding:9px 12px}
.own-question-tags{padding:0;margin:0;flex:1}
.own-question-card .small-btn{padding:6px 11px;white-space:nowrap}
.own-question-card .structured-content{max-width:none}
/* The self-owned library is for scanning questions, not reproducing an A4
   page. Keep diagrams legible but compact here only; their saved print width
   remains untouched for the detail editor, PDF and Word exports. */
.own-question-body .content-diagram-frame,
.own-question-body .content-inline-image{width:min(var(--content-image-width,36.5%),320px);max-width:100%}
.own-question-body .content-diagram-frame .content-inline-diagram,
.own-question-body .content-inline-image img{max-height:220px}
.own-question-body .content-table-wrap[data-table-layout]{width:min(var(--table-width,100%),520px);max-width:100%;margin-left:auto;margin-right:auto}
.own-question-body .content-table-wrap[data-table-layout] .content-table-image{max-height:260px}
.own-question-body .library-assets{max-width:520px}
.own-question-body .library-asset-figure{max-width:320px}
.own-question-body .library-asset-row img{max-height:220px}
@media(max-width:700px){.own-question-card>header{align-items:flex-start;flex-wrap:wrap}.own-question-card>footer{align-items:flex-start;flex-direction:column}.own-question-card .small-btn{width:100%;text-align:center}}

/* V1 English shared-material questions */
.question-context{margin:0 0 14px;border:1px solid #d7e4dc;border-radius:10px;background:#f7fbf8;overflow:hidden}.question-context summary{display:flex;align-items:center;gap:8px;padding:10px 12px;cursor:pointer;color:#315b4e}.question-context summary span{font-size:11px;padding:3px 7px;border-radius:999px;background:#dfeee6}.question-context summary b{flex:1}.question-context summary em{font-size:11px;font-style:normal;color:#74837d}.question-context-body{padding:13px 15px;border-top:1px solid #e2ebe5;line-height:1.8;white-space:normal;color:#263b34}.question-context mark{background:#ffe3c9;color:#743c1d;padding:1px 4px;border-radius:4px;font-weight:700}.word-bank{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:0 15px 13px}.word-bank span{padding:4px 8px;border:1px solid #d7dfdc;background:#fff;border-radius:6px}.shared-options{padding:0 15px 13px}.shared-options>b{display:block;margin-bottom:7px}.shared-options>div,.english-option{display:grid;grid-template-columns:24px minmax(0,1fr);gap:5px;align-items:start;padding:5px 0;line-height:1.55}.shared-options img,.english-option img{grid-column:2;max-width:220px;max-height:150px;object-fit:contain;border:1px solid #e1e7e4;border-radius:6px;background:#fff}.english-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 18px;margin:8px 0 12px}.writing-note{margin:8px 0;padding:9px 11px;border-left:3px solid #c97644;background:#fff6ef;color:#71472f}.a4-sheet .question-context-body{font-size:12px}.a4-sheet .english-options{font-size:12px}.a4-sheet .question-context summary em{display:none}
@media(max-width:700px){.english-options{grid-template-columns:1fr}.question-context summary{align-items:flex-start}.question-context summary em{display:none}.shared-options>div,.english-option{grid-template-columns:20px minmax(0,1fr)}}
.english-composite-question{margin:8px 0 12px;text-align:center}.english-composite-question img{display:block;width:min(100%,720px);height:auto;margin:auto}.english-composite-question figcaption{font-size:11px;color:#7a8580;margin-top:4px}

/* English QuestionGroup V2: one source passage per group in online and print views. */
.grouped-paper-toolbar{display:flex;align-items:center;gap:10px;max-width:960px;margin:0 auto 14px;position:sticky;top:8px;z-index:20;padding:9px;border:1px solid #dbe4df;border-radius:11px;background:#f5f7f4e8;backdrop-filter:blur(8px)}.grouped-paper-switch{display:flex;margin-left:auto;border:1px solid #cbd7d0;border-radius:8px;padding:3px;background:#fff}.grouped-paper-switch a{padding:7px 12px;border-radius:6px;color:#5e6e66}.grouped-paper-switch a.active{background:#1c5b46;color:#fff}.grouped-exam-paper{width:min(960px,100%);margin:auto;padding:48px 56px;background:#fff;border:1px solid #e0e5e1;box-shadow:0 9px 30px #1f3b3014;color:#17201c;font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif}.grouped-paper-header{text-align:center;border-bottom:2px solid #26312c;padding-bottom:18px;margin-bottom:30px}.grouped-paper-header h1{font-family:SimSun,"Songti SC",serif;font-size:25px;line-height:1.45;margin:0 0 8px}.grouped-paper-header p{color:#67726c;margin:0 0 17px}.teacher-version-label{display:inline-block;color:#8b4a28;background:#fff1e7;border-radius:99px;padding:5px 10px}.grouped-paper-section{margin-top:32px}.grouped-paper-section>h2{font-size:19px;border-left:4px solid #2f745d;padding-left:10px;margin:0 0 18px}.grouped-paper-section>h2 small{font-size:12px;color:#6d7872;margin-left:9px}.grouped-question-block{margin-bottom:30px;break-inside:avoid}.grouped-question-block>h3{font-size:15px;color:#4c5b54;margin:0 0 11px}.grouped-material-text{white-space:pre-wrap;font-family:Georgia,"Times New Roman",serif;font-size:16px;line-height:1.95}.grouped-question-list{display:flex;flex-direction:column;gap:20px;margin-top:18px}.grouped-question-list.inline-questions{display:grid;grid-template-columns:1fr 1fr;gap:13px 20px}.grouped-question{break-inside:avoid}.grouped-question h4{font-size:15px;line-height:1.65;margin:0 0 8px}.grouped-options{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px}.grouped-options>div{display:flex;align-items:center;gap:7px;min-height:38px;border:1px solid #e0e5e1;border-radius:8px;padding:7px 9px;font-family:Georgia,"Times New Roman",serif}.grouped-options b{color:#215e49}.grouped-options img{max-width:100%;max-height:94px;object-fit:contain}.grouped-options em{margin-left:auto;background:#e5f3eb;color:#246047;border-radius:99px;padding:3px 6px;font:normal 10px "Microsoft YaHei"}.grouped-question-image{display:block;max-width:100%;max-height:430px;object-fit:contain;margin:10px auto}.grouped-word-bank{display:flex;flex-wrap:wrap;gap:7px;background:#f1f6f2;border:1px solid #dce8e0;border-radius:9px;padding:11px;margin-bottom:13px}.grouped-word-bank b{width:100%;font-size:11px;color:#235d48}.grouped-word-bank span{background:#fff;border-radius:5px;padding:4px 8px;font-family:Georgia,serif}.grouped-matching{display:grid;grid-template-columns:1fr 1fr;gap:20px}.matching-prompt{display:grid;grid-template-columns:26px 1fr;gap:7px;border-bottom:1px solid #e3e8e5;padding:8px 0}.matching-prompt>b{color:#225f49}.matching-prompt p{font-family:Georgia,serif;line-height:1.55;margin:0}.matching-prompt em{grid-column:2;color:#b05c31;font-size:11px}.matching-shared{background:#f7f8f6;border-radius:10px;padding:14px}.matching-shared h4{margin:0 0 8px}.matching-shared p{display:grid;grid-template-columns:22px 1fr;gap:6px;font:13px/1.5 Georgia,serif}.matching-shared b{color:#225f49}.grouped-teacher-answer{margin-top:9px;padding:9px 11px;border-left:3px solid #2f745d;background:#f1f6f2;font-size:12px;line-height:1.65}.grouped-teacher-answer p{white-space:pre-wrap;margin:5px 0 0}.grouped-answer-lines{height:90px;margin-top:8px;background:repeating-linear-gradient(#fff 0,#fff 29px,#cfd7d2 30px)}
@media(max-width:800px){.grouped-paper-toolbar{position:static;flex-wrap:wrap}.grouped-paper-switch{order:3;width:100%;margin:0}.grouped-paper-switch a{flex:1;text-align:center}.grouped-exam-paper{padding:25px 18px}.grouped-paper-header h1{font-size:20px}.grouped-question-list.inline-questions,.grouped-matching,.grouped-options{grid-template-columns:1fr}}
@media print{.sidebar,.topbar,.no-print{display:none!important}.content{margin:0!important;padding:0!important;max-width:none!important}.grouped-exam-paper{width:auto;border:0;box-shadow:none;padding:0}.grouped-question-block,.grouped-question{break-inside:avoid}@page{size:A4;margin:14mm 15mm}}

/* V2 grouped papers may contain long answer lines made from underscores. */
.grouped-material-text,.grouped-question h4{overflow-wrap:anywhere;word-break:break-word}
.grouped-matching-intro{margin-bottom:10px}
.mode-matching_two_column{break-inside:auto}
.grouped-answer-lines{height:32px;margin-top:5px;background:repeating-linear-gradient(#fff 0,#fff 29px,#cfd7d2 30px)}
.grouped-answer-lines.answer-lines-writing{height:300px}
.grouped-question-list,.grouped-question{min-width:0}

/* English paper library follows the same group-first model as the paper preview. */
.grouped-library-head{align-items:flex-start}.grouped-library-head-actions{display:flex;gap:9px;flex-wrap:wrap}.grouped-library-section{margin:0 0 30px}.grouped-library-section>header{display:flex;align-items:center;gap:12px;margin-bottom:13px}.grouped-library-section>header>span{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#1f604a;color:#fff;font-weight:800}.grouped-library-section>header h2{margin:0;font-size:20px}.grouped-library-section>header p{margin:3px 0 0;color:#728078;font-size:12px}.grouped-library-card{margin:0 0 18px;padding:22px;border:1px solid #dfe7e2;border-radius:15px;background:#fff;box-shadow:0 7px 24px #1e3e3110}.grouped-library-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:13px;border-bottom:1px solid #e6ece8}.grouped-library-card-head>div:first-child{display:flex;align-items:center;gap:9px}.grouped-library-card-head h3{margin:0;font-size:17px}.grouped-library-type{padding:4px 8px;border-radius:99px;background:#e6f2eb;color:#246047;font-size:11px;font-weight:700}.grouped-library-stats{display:flex;gap:8px;align-items:center;white-space:nowrap}.grouped-library-stats b{color:#235f49}.grouped-library-stats span{color:#7a8780;font-size:12px}.grouped-library-tags{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.grouped-library-tags span{padding:4px 8px;border-radius:6px;background:#f3f5f3;color:#65736c;font-size:11px}.grouped-library-card .grouped-material-text{margin:16px 0;padding:16px 18px;border-radius:10px;background:#fbfcfb;border:1px solid #edf1ee}.grouped-library-card .grouped-question-list{margin-top:14px}.grouped-library-card .grouped-question h4 a,.matching-prompt a{color:#1f604a}.grouped-library-analysis{margin-top:17px;border-top:1px solid #e3e9e5;padding-top:12px}.grouped-library-analysis summary{cursor:pointer;color:#256249;font-weight:700}.grouped-library-analysis>div{display:grid;gap:8px;margin-top:11px}.grouped-library-analysis section{padding:10px 12px;border-left:3px solid #3d8067;background:#f3f7f4;font-size:12px}.grouped-library-analysis p{white-space:pre-wrap;margin:5px 0 0;line-height:1.65}.grouped-library-card-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:15px;padding-top:14px;border-top:1px solid #e5ebe7}
@media(max-width:800px){.grouped-library-head-actions,.grouped-library-card-actions{width:100%}.grouped-library-head-actions .btn,.grouped-library-card-actions .btn{flex:1}.grouped-library-card{padding:16px}.grouped-library-card-head{display:block}.grouped-library-stats{margin-top:8px}.grouped-library-card-head>div:first-child{align-items:flex-start}.grouped-library-card .grouped-question-list.inline-questions{grid-template-columns:1fr}}

.english-group-library{gap:14px}.english-group-library .grouped-library-card{margin:0}.english-group-source{margin:12px 0 5px;color:#256249;font-weight:700}.english-group-preview{margin:7px 0;color:#526159;line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.paper-english-group{border:1px solid #d7e4dc;border-radius:14px;background:#f8fbf9;overflow:hidden}.paper-english-group>header{display:flex;justify-content:space-between;gap:18px;padding:16px 18px;background:#edf6f0;border-bottom:1px solid #dce8e0}.paper-english-group>header h3{margin:4px 0;font-size:16px}.paper-english-group>header p,.paper-english-group>header span{margin:0;color:#64756c;font-size:12px}.paper-english-group>header>div:last-child{text-align:right;display:flex;flex-direction:column;gap:3px}.paper-english-group details>summary{cursor:pointer;padding:11px 18px;color:#236047;font-weight:700}.paper-group-children{display:flex;flex-direction:column;gap:8px;padding:0 12px 14px}.grouped-child-item{background:#fff}.grouped-child-item .paper-drag{cursor:default;color:#b3bdb8}
@media(max-width:800px){.paper-english-group>header{display:block}.paper-english-group>header>div:last-child{text-align:left;margin-top:8px}.english-group-library .grouped-library-card-actions{display:grid;grid-template-columns:1fr}}
.content-table.content-table-borderless td{border:0;padding:.24em .5em}

/* English teach session: source passage once on the left, current question on the right. */
.english-teach-session{max-width:1320px;margin:0 auto}.teach-session-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:2px 0 18px}.teach-session-head h1{margin:3px 0 6px;font-size:25px}.teach-session-head p{margin:0;color:#68786f}.teach-session-head>div:last-child{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.teach-session-layout{--teach-left:58%;display:grid;grid-template-columns:minmax(0,calc(var(--teach-left) - 5px)) 10px minmax(360px,calc(100% - var(--teach-left) - 5px));gap:0;align-items:start}.teach-material-panel,.teach-question-panel{padding:0;overflow:hidden}.teach-material-panel>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 18px;border-bottom:1px solid #dce8e0;background:#edf6f0;color:#245f4a;font-weight:750}.teach-material-panel>header small{font-weight:400;color:#6c7e74}.teach-material-content{padding:20px 24px;font:18px/2 Georgia,"Times New Roman","Microsoft YaHei",serif;color:#1d2e26}.teach-material-content p{margin:0 0 1.15em;padding:6px 8px;border-radius:8px;scroll-margin-top:30px;transition:background .2s,box-shadow .2s}.teach-material-content .evidence-highlight{background:#fff3d8;box-shadow:inset 4px 0 #d47b3d}.teach-evidence-mark{background:#ffd88c;color:#623515;border-radius:3px;padding:1px 2px;font-weight:700}.teach-target-mark{background:#bde9d6;color:#164d3a;border-radius:3px;padding:1px 2px;font-weight:800}.teach-splitter{align-self:stretch;min-height:460px;cursor:col-resize;position:relative;touch-action:none;outline:0}.teach-splitter:before{content:"";position:absolute;inset:0 3px;background:#d8e6de;border-radius:8px}.teach-splitter:after{content:"↔";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:24px;height:28px;border-radius:8px;background:#2b7158;color:#fff;font-weight:800;font-size:13px;opacity:.76}.teach-splitter:hover:before,.teach-splitter:focus:before{background:#8ebba8}.teach-splitter:hover:after,.teach-splitter:focus:after{opacity:1}.teach-question-panel{position:sticky;top:14px;margin-left:10px}.teach-question-nav{display:flex;gap:7px;flex-wrap:wrap;padding:14px 16px;border-bottom:1px solid #e1e8e3;background:#fbfcfb}.teach-question-nav a{min-width:42px;padding:7px 9px;text-align:center;border:1px solid #d4e1d8;border-radius:7px;color:#276249;background:#fff;font-size:13px;font-weight:700}.teach-question-nav a.active{color:#fff;background:#226b52;border-color:#226b52;box-shadow:0 4px 10px #1d60432b}.teach-current-question{padding:20px}.teach-question-label{font-size:12px;color:#297054;font-weight:700}.teach-current-question h2{margin:8px 0 15px;font-size:19px;line-height:1.6}.teach-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:17px}.teach-options>div{display:grid;grid-template-columns:24px 1fr;gap:7px;align-items:start;min-height:42px;padding:9px 10px;border:1px solid #dfe8e2;border-radius:8px;background:#fbfdfb;line-height:1.55}.teach-options b{color:#236047}.teach-evidence-note{margin:10px 0 0;padding:9px 10px;border-left:3px solid #d68545;background:#fff7ef;color:#704629;font-size:13px;line-height:1.55}.teach-answer{border-top:1px solid #dfe8e2;background:#f4f8f5;padding:0 20px 17px;line-height:1.65}.teach-answer summary{cursor:pointer;padding:14px 0 10px;color:#236047;font-weight:750}.teach-answer p{margin:8px 0 0;white-space:pre-wrap}.teach-answer small{display:block;margin-top:8px;color:#61756a}
@media(max-width:900px){.teach-session-layout{display:grid;grid-template-columns:1fr}.teach-splitter{display:none}.teach-question-panel{position:static;margin:18px 0 0}.teach-material-content{font-size:17px}.teach-session-head{flex-direction:column}.teach-session-head>div:last-child{justify-content:flex-start}}@media(max-width:560px){.teach-session-head h1{font-size:21px}.teach-material-panel>header{align-items:flex-start;flex-direction:column}.teach-material-content{padding:16px;font-size:16px;line-height:1.9}.teach-current-question{padding:16px}.teach-options{grid-template-columns:1fr}.teach-question-nav a{flex:1;min-width:0}.teach-session-head>div:last-child{width:100%}.teach-session-head>div:last-child .btn{flex:1;text-align:center}}
.teach-options>div.student-wrong{border-color:#cf6b61;background:#fff3f1}.teach-options>div.student-correct,.teach-options>div.correct-answer{border-color:#4c9c75;background:#f0faf4}.teach-options em{grid-column:1/-1;font-style:normal;font-size:11px;font-weight:700;color:#285f48}.teach-options .student-wrong em{color:#9c4038}.teach-student-state,.teach-reason{margin:14px 0 0;padding:11px;border:1px solid #dce8e0;border-radius:8px;background:#f8fbf9;font-size:13px}.teach-student-state p{margin:6px 0}.teach-reason{display:grid;gap:7px}.teach-reason select,.teach-reason textarea{width:100%;margin:4px 0 0}.teach-retry-actions{display:flex;gap:8px;margin-top:12px}
.teach-mode-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 13px}.teach-mode-bar>span:first-child{padding:4px 8px;border-radius:999px;background:#e6f2eb;color:#236047;font-size:12px;font-weight:800}.teach-mode-tip{color:#607269;font-size:12px}.teach-option{width:100%;border:1px solid #dfe8e2;border-radius:8px;background:#fbfdfb;color:inherit;font:inherit;text-align:left;display:grid;grid-template-columns:24px 1fr;gap:7px;align-items:start;min-height:42px;padding:9px 10px;line-height:1.55}.teach-option b{color:#236047}.teach-option.selected-answer{border-color:#2b7158;background:#eaf6ef;box-shadow:0 0 0 2px #2b715822}.teach-option.student-wrong{border-color:#cf6b61;background:#fff3f1}.teach-option.student-correct,.teach-option.correct-answer{border-color:#4c9c75;background:#f0faf4}.teach-option.student-wrong.correct-answer{border-color:#cf6b61;background:#fff8f5}.teach-option em{grid-column:1/-1;font-style:normal;font-size:11px;font-weight:700;color:#285f48}.teach-option.student-wrong em{color:#9c4038}.teach-submit-area{margin:12px 0;padding:12px;border:1px solid #cfdfd4;border-radius:8px;background:#f6fbf7}.teach-submit-area p{margin:0 0 9px;font-size:13px;color:#52645a}.teach-evidence-controls[hidden],.teach-answer[hidden],.teach-reason[hidden],.teach-submit-area[hidden]{display:none}.teach-retry-actions .btn{flex:1;text-align:center}

/* ClozeRenderer V1: keep the shared passage readable and make the current
   blank obvious without duplicating the article in the question panel. */
.cloze-blank{display:inline-block;min-width:4.8em;height:1.2em;margin:0 3px;padding:0 3px;border-bottom:2px solid #d5914c;border-radius:3px;background:transparent;color:#805120;font:700 13px/1.5 "Microsoft YaHei",sans-serif;text-align:center;vertical-align:baseline;white-space:nowrap}
.cloze-blank.active{border-bottom-color:#237054;background:#dff3e8;color:#18503c;box-shadow:0 0 0 2px #77ba983d}

/* Q33 teaching-whiteboard POC.  Evidence remains in the source-text layer;
   teacher marks are rendered in a separate SVG layer per stable block. */
.teach-annotation-anchor{position:relative}
.teach-annotation-svg{position:absolute;z-index:3;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.teach-annotation-svg.is-editing{pointer-events:auto;touch-action:none;cursor:crosshair}
.teach-annotation-svg .annotation-stroke{fill:none;stroke-linecap:round;stroke-linejoin:round;pointer-events:stroke}
.teach-annotation-svg .annotation-highlighter{opacity:.36;stroke-width:15;pointer-events:stroke}
.teach-annotation-svg .annotation-arrow{fill:none;stroke-width:3;stroke-linecap:round;pointer-events:stroke}
.teach-annotation-svg .annotation-text{font:700 16px/1.2 "Microsoft YaHei",sans-serif;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round;pointer-events:all}
.teach-whiteboard-tools{position:relative;z-index:4;display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:-5px 0 14px;padding:8px;border:1px solid #bfdccd;border-radius:9px;background:#f4faf6}.teach-whiteboard-tools button{padding:5px 8px;border:1px solid #c9ddd1;border-radius:6px;background:#fff;color:#245d49;cursor:pointer;font-size:12px;font-weight:700}.teach-whiteboard-tools button.active{background:#226b52;color:#fff;border-color:#226b52}.teach-whiteboard-tools button.primary{background:#226b52;color:#fff;border-color:#226b52}.teach-whiteboard-tools span{flex:1}.teach-whiteboard-tools[hidden]{display:none}
.teach-whiteboard-status{font-size:12px;color:#3a7159;margin-left:auto}
@media(max-width:560px){.teach-whiteboard-tools{gap:5px}.teach-whiteboard-tools button{flex:1 0 27%;padding:7px 4px}.teach-whiteboard-tools span{display:none}}
.english-teach-session [data-enter-whiteboard][hidden]{display:none!important}

/* Classroom projection: an English teaching session is a presentation surface,
   not an ordinary back-office page.  Use the entire viewport and keep text
   readable from the back of a classroom. */
.layout:has(.english-teach-session) .sidebar{display:none}
.layout:has(.english-teach-session) .content{width:100%;max-width:none;margin-left:0;padding:clamp(18px,2vw,36px)}
.english-teach-session{width:100%;max-width:none;min-height:calc(100vh - 72px);margin:0;display:flex;flex-direction:column}
.teach-session-head{margin:0 0 clamp(14px,1.6vh,24px)}
.teach-session-head h1{font-size:clamp(28px,1.8vw,38px);line-height:1.25}
.teach-session-head p{font-size:clamp(14px,1vw,18px);line-height:1.55}
.teach-session-head>div:last-child .btn{padding:10px 16px;font-size:clamp(14px,.95vw,17px)}
.teach-session-layout{--teach-left:60%;flex:1;min-height:0;align-items:stretch;grid-template-columns:minmax(0,calc(var(--teach-left) - 6px)) 12px minmax(430px,calc(100% - var(--teach-left) - 6px))}
.teach-material-panel{display:flex;flex-direction:column;min-height:0;max-height:calc(100vh - 178px)}
.teach-question-panel{position:static;min-height:0;max-height:calc(100vh - 178px);margin-left:12px;overflow:auto}
.teach-material-panel>header{padding:clamp(15px,1.25vw,22px) clamp(18px,1.5vw,28px);font-size:clamp(17px,1.1vw,21px)}
.teach-material-panel>header small{font-size:clamp(13px,.9vw,16px)}
.teach-material-content{flex:1;overflow:auto;padding:clamp(24px,2vw,42px) clamp(28px,2.5vw,52px);font-size:clamp(21px,1.3vw,28px);line-height:1.9}
.teach-material-content p{margin-bottom:1.28em;padding:8px 10px}
.teach-splitter{min-height:100%}
.teach-splitter:after{width:30px;height:34px;font-size:16px}
.teach-question-nav{gap:10px;padding:clamp(16px,1.25vw,22px) clamp(18px,1.5vw,28px)}
.teach-question-nav a{min-width:54px;padding:9px 12px;border-radius:9px;font-size:clamp(15px,1vw,18px)}
.teach-current-question{padding:clamp(22px,1.8vw,36px)}
.teach-question-label{font-size:clamp(14px,.95vw,17px)}
.teach-current-question h2{margin:10px 0 20px;font-size:clamp(25px,1.55vw,33px);line-height:1.55}
.teach-options{gap:13px;margin-bottom:22px;font-size:clamp(18px,1.12vw,23px)}
.teach-options>div,.teach-option{grid-template-columns:30px 1fr;gap:10px;min-height:68px;padding:13px 15px;border-radius:10px;line-height:1.6}
.teach-options em,.teach-option em{font-size:clamp(12px,.8vw,15px)}
.teach-evidence-note,.teach-student-state,.teach-reason,.teach-submit-area,.teach-answer{font-size:clamp(15px,.95vw,18px);line-height:1.75}
.teach-evidence-note{padding:12px 14px}
.teach-answer{padding:0 clamp(22px,1.8vw,36px) clamp(20px,1.5vw,30px)}
@media(max-width:1000px){.layout:has(.english-teach-session) .content{padding:18px}.teach-session-layout{display:grid;grid-template-columns:1fr}.teach-material-panel,.teach-question-panel{max-height:none}.teach-question-panel{margin:18px 0 0}.teach-splitter{display:none}.teach-material-content{max-height:62vh}.teach-options{font-size:18px}} 

/* English grouped papers: conventional compact A/B/C/D rows. */
.grouped-question-list{gap:12px;margin-top:14px}
.grouped-question-list.inline-questions{gap:9px 20px}
.grouped-question h4{line-height:1.55;margin-bottom:3px}
.grouped-options{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;row-gap:2px}
.grouped-options.option-columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grouped-options.option-columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grouped-options>div{align-items:flex-start;gap:5px;min-width:0;min-height:0;border:0;border-radius:0;padding:2px 7px 2px 0;line-height:1.45}
.grouped-options b{flex:0 0 auto}
.grouped-options span{min-width:0;overflow-wrap:anywhere}
.grouped-options.compact-choice-row{margin:0}
.grouped-option-question-number{flex:0 0 auto;color:#17201c;font-weight:700;text-decoration:none}
@media(max-width:800px){.grouped-options.option-columns-3,.grouped-options.option-columns-4{grid-template-columns:1fr}}
@media print{
  .grouped-question-list{gap:2.2mm;margin-top:2mm}
  .grouped-question h4{margin-bottom:.5mm}
  .grouped-options{column-gap:5mm;row-gap:.5mm}
  .grouped-options>div{padding:.4mm 1.5mm .4mm 0}
  .mode-matching_two_column,.grouped-matching{break-inside:avoid}
  .grouped-answer-lines.answer-lines-writing{height:92mm}
}

/* English source-paper print standard: native tables and complete tasks. */
.grouped-exam-paper{font-family:"Times New Roman",SimSun,serif;color:#000}
.grouped-exam-paper h2,.grouped-exam-paper h3,.grouped-exam-paper h4,.grouped-exam-paper b{color:#000}
.grouped-paper-section>h2{border:0;padding:0}
.grouped-exam-paper .grouped-paper-section>h2{display:none}
.grouped-exam-paper .grouped-question-block{padding:0 0 24px}
.grouped-material-text{line-height:1.5;font-family:"Times New Roman",SimSun,serif}
.english-source-table{border-collapse:collapse;table-layout:fixed;width:100%;margin:10px 0;font:16px/1.5 "Times New Roman",SimSun,serif;color:#000}
.english-source-table td{border:1px solid #000;padding:6px;vertical-align:top}
.english-source-table p{margin:0 0 5px;white-space:pre-wrap}
.english-source-table img{display:block;max-width:100%;max-height:114px;object-fit:contain}
.english-source-table tr{break-inside:avoid}
.english-source-table.long-cell tr{break-inside:auto}
.grouped-matching{grid-template-columns:38% 62%;gap:0;border:1px solid #000;break-inside:avoid}
.matching-prompts{padding:10px;border-right:1px solid #000}
.matching-prompt{border:0;display:block;padding:0;margin:0 0 10px}
.matching-prompt>b{float:left;margin-right:5px;color:#000}
.matching-shared{background:#fff;border-radius:0;padding:10px}
.matching-shared h4{display:none}
.matching-shared p{font:16px/1.5 "Times New Roman",SimSun,serif;margin:0 0 10px}
.grouped-word-bank{background:#fff;border:1px solid #000;border-radius:0;color:#000}
.grouped-word-bank span{background:transparent;padding:0 5px}
.grouped-question-list.inline-questions{display:flex;flex-direction:column}
@media print{
 .grouped-exam-paper{font-size:10.5pt}
 .grouped-exam-paper .grouped-question-block{break-before:page;break-inside:auto}
 .grouped-paper-section:first-of-type .grouped-question-block:first-of-type{break-before:auto}
 .grouped-paper-section{margin-top:0}
 .grouped-question,.grouped-options,.matching-prompt,.matching-shared p{break-inside:avoid}
 .grouped-question-block>h3,.grouped-matching-intro{break-after:avoid}
 .english-source-table,.grouped-matching{break-inside:auto}
 .english-source-table,.grouped-material-text,.matching-shared p{font-size:10.5pt;line-height:1.5}
}
