/*
 * 教师端知识点动画上传：上传表单、说明卡片与「教师上传」Tab 列表卡片。
 */
#teacherAnimationUploadRoot{max-width:760px}
.teacher-upload-form{display:flex;flex-direction:column;gap:16px;padding:22px}
.teacher-upload-field{display:flex;flex-direction:column;gap:6px;margin:0;color:#3C4A63;font-size:12px;font-weight:750}
.teacher-upload-field small{color:#8B91A1;font-size:9px;font-weight:500}
.teacher-upload-field input[type="text"]{padding:11px 13px;border:1px solid #DEDFE8;border-radius:11px;outline:0;color:#2B3350;background:#FCFCFE;font-size:12px}
.teacher-upload-field input[type="text"]:focus{border-color:#6556E3;box-shadow:0 0 0 3px rgba(102,86,232,.08)}
.teacher-upload-grade{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;border:0;padding:0;margin:0}
.teacher-upload-grade legend{display:flex;flex-direction:column;gap:3px;grid-column:1/-1;color:#3C4A63;font-size:12px;font-weight:750;padding:0}
.teacher-upload-grade legend small{color:#8B91A1;font-size:9px;font-weight:500}
.teacher-upload-grade label{display:flex;align-items:center;gap:7px;padding:10px 12px;border:1px solid #DEDFE8;border-radius:11px;color:#3C4A63;background:#FAFAFC;font-size:11px;font-weight:600;cursor:pointer}
.teacher-upload-grade label:has(input:checked){border-color:#6556E3;color:#6556E3;background:#F4F1FF}
.teacher-upload-file input[type="file"]{padding:10px;border:1px dashed #C9CCD9;border-radius:11px;color:#596078;background:#FBFBFD;font-size:11px;cursor:pointer}
.teacher-upload-error{min-height:14px;color:#D64545;font-size:10px}
/* 编辑弹窗内：学段两列 + 文件替换 */
#editTeacherAnimationForm label{display:flex;flex-direction:column;gap:6px;margin:0;color:#3C4A63;font-size:12px;font-weight:750}
#editTeacherAnimationForm label small{color:#8B91A1;font-size:9px;font-weight:500}
#editTeacherAnimationForm input[type="text"]{padding:11px 13px;border:1px solid #DEDFE8;border-radius:11px;outline:0;color:#2B3350;background:#FCFCFE;font-size:12px}
#editTeacherAnimationForm .edit-grade{grid-template-columns:1fr 1fr}
#editTeacherAnimationForm .edit-file input[type="file"]{padding:10px;border:1px dashed #C9CCD9;border-radius:11px;color:#596078;background:#FBFBFD;font-size:11px;cursor:pointer}
.teacher-upload-hint{display:flex;flex-direction:column;gap:7px;padding:20px 22px}
.teacher-upload-hint strong{color:#3C4A63;font-size:12px}
.teacher-upload-hint p{margin:0;color:#596078;font-size:10px;line-height:1.8}

/* 「教师上传」Tab 列表卡片 */
.teacher-upload-card{padding:14px;display:flex;flex-direction:column;gap:8px;border:1px solid #C4B5FD;border-radius:12px;background:linear-gradient(145deg,#FBF9FF,#F3EFFF)}
.teacher-upload-card>header{display:flex;flex-direction:column;gap:5px}
.teacher-upload-grade-tag{color:#6D28D9;font-size:8px;font-weight:800;letter-spacing:.05em}
.teacher-upload-card h4{margin:0;overflow:hidden;color:#2B3350;font-size:13px;white-space:nowrap;text-overflow:ellipsis}
.teacher-upload-card .teacher-upload-row{margin:0;display:flex;gap:8px;color:#8B91A1;font-size:9px;line-height:1.6}
.teacher-upload-card .teacher-upload-row b{flex:0 0 auto;color:#6D28D9;font-size:9px}
.teacher-upload-card .teacher-upload-row em{overflow:hidden;color:#596078;font-style:normal;white-space:nowrap;text-overflow:ellipsis}
.teacher-upload-card>small{color:#8B91A1;font-size:9px}
.teacher-upload-card>footer{display:flex;gap:8px;margin-top:2px}
.teacher-upload-card>footer button{height:30px;padding:0 12px;border-radius:8px;color:#6556E3;background:#EFECFF;font-size:10px;font-weight:750}
.teacher-upload-card>footer button.danger{color:#D64545;background:#FDECEC}
.teacher-upload-preview{width:min(860px,92vw);height:min(600px,80vh);border:0;border-radius:12px;background:#fff}
.teacher-upload-preview iframe{width:100%;height:100%;border:0;display:block;border-radius:12px;background:#fff}
.modal.teacher-preview-modal:not(.question-import-modal){width:min(880px,96vw)}
