.chapter-card.teacher-card{height:auto;min-height:254px;align-items:stretch;flex-direction:column;justify-content:space-between;gap:14px}
.chapter-card.teacher-card>.chapter-card-main{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}
.chapter-teacher-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%;padding-top:12px;border-top:1px solid var(--border-light)}
.chapter-teacher-actions button,.chapter-teacher-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 8px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#334155;font:600 12px/1.2 'PingFang SC','Microsoft YaHei',sans-serif;text-decoration:none;cursor:pointer;transition:border-color .18s,color .18s,background .18s}
.chapter-teacher-actions button:hover,.chapter-teacher-actions a:hover{border-color:var(--brand-blue);background:#eff6ff;color:var(--brand-blue);transform:none}
.chapter-teacher-actions .chapter-push{border-color:var(--brand-blue);background:var(--brand-blue);color:#fff}
.chapter-teacher-actions .chapter-delete{color:#b91c1c}
.chapter-teacher-actions .chapter-undo{grid-column:1/-1;border-color:#d97706;color:#9a5800;background:#fffaf0}
.chapter-teacher-actions .chapter-undo[hidden]{display:none}
.chapter-action-status{position:fixed;left:50%;bottom:28px;z-index:2600;display:flex;align-items:center;gap:12px;max-width:min(680px,calc(100% - 28px));padding:12px 14px;border:1px solid #bfdbfe;border-radius:8px;background:#fff;color:#1e3a5f;box-shadow:0 12px 34px rgba(15,23,42,.15);font:500 13px/1.45 'PingFang SC','Microsoft YaHei',sans-serif}
.chapter-action-status[hidden]{display:none}.chapter-action-status button{border:0;background:transparent;color:#2563eb;font:700 13px/1.2 inherit;cursor:pointer;white-space:nowrap}.chapter-action-status.error{border-color:#fecaca;color:#991b1b}
.chapter-tool-dialog{width:min(640px,calc(100% - 26px));padding:0;border:1px solid #dbe3ee;border-radius:10px;background:#fff;color:#1e293b;box-shadow:0 24px 70px rgba(15,23,42,.2)}
.chapter-tool-dialog::backdrop{background:rgba(30,41,59,.2)}.chapter-tool-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid #e2e8f0}.chapter-tool-head h2{margin:0;font-size:20px}.chapter-tool-head button{border:0;background:#fff;color:#64748b;font:inherit;cursor:pointer}
.chapter-tool-body{display:grid;gap:13px;padding:20px}.chapter-tool-body label{display:grid;gap:6px;color:#475569;font-size:13px}.chapter-tool-body input,.chapter-tool-body select,.chapter-tool-body textarea{width:100%;padding:10px 11px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#1e293b;font:inherit}.chapter-tool-body textarea{min-height:90px;resize:vertical}.chapter-tool-body small{color:#64748b}.chapter-tool-actions{display:flex;justify-content:flex-end;gap:8px}.chapter-tool-actions button{min-height:38px;padding:8px 16px;border:1px solid #2563eb;border-radius:7px;background:#fff;color:#2563eb;font:600 13px/1.2 inherit;cursor:pointer}.chapter-tool-actions .primary{background:#2563eb;color:#fff}.chapter-tool-message{min-height:20px;color:#2563eb;font-size:13px}.chapter-tool-message.error{color:#b91c1c}
.chapter-question-push-list{display:grid;gap:8px;max-height:min(58vh,520px);overflow:auto}.chapter-question-push-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e2e8f0}.chapter-question-push-row>div{min-width:0}.chapter-question-push-row strong{display:block;color:#334155;font-size:13px}.chapter-question-push-row p{margin:4px 0 0;color:#64748b;font-size:12px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chapter-question-push-row button{flex:none;min-height:32px;padding:6px 10px;border:1px solid #2563eb;border-radius:7px;background:#fff;color:#2563eb;font:600 12px/1.2 inherit;cursor:pointer}.chapter-question-push-row button:hover{background:#eff6ff}.chapter-question-push-row button:disabled{cursor:default;opacity:.65}
.top-push-link{display:none}.teacher-chapter-mode .top-push-link{display:flex}
@media(max-width:760px){.chapter-card.teacher-card{min-height:238px}.chapter-teacher-actions{grid-template-columns:1fr}.chapter-teacher-actions .chapter-undo{grid-column:auto}.chapter-action-status{left:14px;right:14px;bottom:14px;max-width:none}.chapter-tool-actions{display:grid}.chapter-tool-actions button{width:100%}.top-push-link span{display:inline}}
