.teacher-brand{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:700;color:var(--muted,#5f746c)}
.teacher-brand img{width:38px;height:38px;border-radius:10px;object-fit:contain}
.teacher-editor-tabs{display:flex;gap:6px;margin:16px 0;border-bottom:1px solid var(--border);padding-bottom:10px}
.teacher-editor-tabs button{padding:10px 18px;border:0;background:transparent;color:inherit;border-radius:8px;cursor:pointer;font:inherit}
.teacher-editor-tabs button.active{background:#f9e7ed;color:#b82f58;font-weight:700}
.teacher-quick-toolbar{display:flex;align-items:end;gap:14px;margin:16px 0}.teacher-quick-toolbar label{display:grid;gap:8px}
.teacher-quick-wrap{overflow:auto;border:1px solid var(--border);border-radius:12px}
.teacher-quick-table{width:100%;min-width:860px;border-collapse:collapse;table-layout:fixed}
.teacher-quick-table thead{background:#243f35;color:white}.teacher-quick-table th,.teacher-quick-table td{padding:12px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);vertical-align:middle}
.teacher-quick-table th:first-child{width:156px}.teacher-quick-table tbody th{text-align:left;font-size:13px}
.teacher-quick-table .lesson-section th{background:#f8eaf0;color:#9b3453;padding:8px 14px}
.teacher-quick-table input{width:100%;min-width:0;box-sizing:border-box;padding:8px;border:1px solid var(--border);border-radius:6px;background:var(--surface,#fff);color:inherit}
.teacher-quick-table .lesson-subject{font-weight:700;font-size:18px;margin-bottom:7px}.teacher-quick-table .lesson-note{font-size:12px;color:var(--muted,#64766e);background:transparent}
.teacher-quick-table .lesson-time{display:block;font-size:12px;font-weight:400;white-space:nowrap;margin:7px 0}
.teacher-quick-table summary{cursor:pointer;font-size:11px;color:var(--muted,#64766e)}
.teacher-quick-table button{margin-top:7px;padding:4px 8px;border:1px solid var(--border);border-radius:5px;background:transparent;color:inherit;cursor:pointer}
.teacher-quick-table small{color:#b82f58}.teacher-quick-table details input{margin-top:6px}
.teacher-collage{--text:var(--ink,#24352f);--text2:var(--muted,#65776e);--text3:var(--muted,#65776e);--bg2:var(--surface,#fff);--bg3:var(--surface-soft,#f3f7f4)}
.teacher-collage .collage-workspace{display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);gap:20px;align-items:start}
.teacher-collage .card{padding:22px;background:var(--bg2);border:1px solid var(--border);border-radius:14px;min-width:0}
.teacher-collage .card-title{font-size:17px;font-weight:700;margin-bottom:8px}.teacher-collage .card-desc,.teacher-collage .field-help{font-size:12px;color:var(--text2);line-height:1.7;margin:6px 0 14px}
.teacher-collage .form-label{display:block;font-size:12px;font-weight:600;margin:12px 0 7px}
.teacher-collage .form-input{width:100%;box-sizing:border-box;min-width:0;padding:10px;border:1px solid var(--border);border-radius:8px;background:var(--bg3);color:var(--text);font:inherit}
.teacher-collage .form-row{display:grid;gap:12px}.teacher-collage .form-row-2{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-collage .form-row-3{grid-template-columns:repeat(2,minmax(0,1fr))}
.teacher-collage .btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--bg3);color:var(--text);font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}
.teacher-collage .btn-primary{background:#ce426b;color:white;border-color:#ce426b}
.teacher-collage .actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.teacher-collage .collage-section-title{margin-top:24px}
.teacher-collage .collage-dropzone{display:grid;gap:8px;padding:24px 14px;border:1px dashed var(--border);border-radius:10px;text-align:center;cursor:pointer;font-size:13px}
.teacher-collage .collage-dropzone input{width:100%;font-size:12px}.teacher-collage .collage-dropzone span{font-size:12px;color:var(--text2)}
.teacher-collage .collage-thumbs{display:grid;gap:8px;margin:12px 0;max-height:280px;overflow:auto}
.teacher-collage .collage-thumb{display:grid;grid-template-columns:50px minmax(0,1fr);gap:8px;padding:8px;border:1px solid var(--border);border-radius:8px}
.teacher-collage .collage-thumb img{width:48px;height:48px;object-fit:cover}.teacher-collage .collage-thumb-preview{border:0;background:transparent;padding:0}
.teacher-collage .collage-thumb span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.teacher-collage .collage-thumb small{font-size:11px;color:var(--text2)}
.teacher-collage .collage-thumb-actions{grid-column:1/-1;display:flex;gap:6px}.teacher-collage .collage-thumb-actions button,.teacher-collage .collage-nudge button,.teacher-collage .collage-line-remove{min-width:34px;min-height:34px;border:1px solid var(--border);background:var(--bg3);color:var(--text);border-radius:6px;cursor:pointer}
.teacher-collage .collage-advanced{margin-top:18px;border-top:1px solid var(--border);padding-top:14px}.teacher-collage summary{cursor:pointer;font-size:14px;font-weight:600}
.teacher-collage .homework-enabled{display:flex;align-items:center;gap:8px;font-size:12px;margin-top:14px}
.teacher-collage .homework-enabled input{width:auto}.teacher-collage .collage-copy-row{display:grid;grid-template-columns:40px minmax(0,1fr) 32px;align-items:center;gap:8px;margin:10px 0}.teacher-collage .collage-copy-row label{margin:0}.teacher-collage .collage-copy-input{resize:vertical}
.teacher-collage .homework-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.teacher-collage .collage-preview-card{position:sticky;top:20px}.teacher-collage .collage-canvas-shell{margin-top:16px;background:#e8eeeb;text-align:center;border-radius:8px;overflow:hidden}
.teacher-collage canvas{display:block;width:100%;height:auto;max-height:75vh;object-fit:contain;cursor:pointer}
.teacher-collage .collage-inline-adjust{padding:12px;border:1px solid var(--border);border-radius:8px}.teacher-collage .collage-inline-adjust-head{display:flex;gap:12px;justify-content:space-between}.teacher-collage .collage-inline-adjust-head span{display:block;font-size:11px;color:var(--text2)}
.teacher-collage .collage-inline-adjust-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}.teacher-collage input[type=range]{width:100%;padding:0}.teacher-collage .collage-nudge{display:grid;grid-template-columns:repeat(3,34px);gap:4px}.teacher-collage .corner-mark-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.teacher-collage .color-input{height:40px;padding:4px}.teacher-collage .is-disabled{opacity:.5}.teacher-collage p{line-height:1.7;font-size:12px}
@media(max-width:980px){.teacher-collage .collage-workspace{grid-template-columns:1fr}.teacher-collage .collage-preview-card{position:static}.teacher-collage canvas{max-height:none}.teacher-quick-table{min-width:820px}}
@media(max-width:720px){.teacher-collage .card{padding:16px}.teacher-collage .collage-inline-adjust-controls{grid-template-columns:1fr}.teacher-collage .btn,.teacher-collage .collage-thumb-actions button{min-height:44px}.teacher-quick-toolbar{align-items:center;flex-wrap:wrap}.teacher-quick-table .lesson-subject{font-size:16px}.teacher-quick-table td,.teacher-quick-table th{padding:8px}.teacher-collage .collage-copy-row{grid-template-columns:32px minmax(0,1fr) 32px}}
.teacher-collage .collage-copy-row .form-label{white-space:nowrap;font-size:11px}
