
.lesson-directory-tools{border:0;background:#fff;padding:16px 0 0}.math-activity-button{width:100%;min-height:50px;font-family:inherit;font-size:21px;font-weight:600;border:1px solid #bfcddd;border-radius:8px;background:#fff;color:#285a87;padding:10px 18px;cursor:pointer}.lesson-card .lesson-directory-actions{display:none}
#mathActivity{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(1120px,calc(100% - 32px));max-height:90vh;max-height:90dvh;overflow:auto;border:0;border-radius:14px;padding:0 30px 30px;background:#fff;color:#213348;font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;font-size:20px;line-height:1.6}#mathActivity::backdrop{background:rgba(225,233,241,.83)}#mathActivity [hidden]{display:none!important}#mathActivity>header{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;gap:20px;align-items:center;padding:20px 0;background:#fff;border-bottom:1px solid #dbe3ec}#mathActivity h2{font-size:28px;line-height:1.4;overflow-wrap:anywhere;margin:0}#mathActivity h3{font-size:23px;margin:0}#mathActivity button,#mathActivity .math-resource-actions a{min-height:48px;padding:9px 22px;font:600 20px/1.4 inherit;font-family:inherit;font-size:20px;border:1px solid #bccbdb;border-radius:7px;background:#fff;color:#2f5a80;text-decoration:none;white-space:nowrap;cursor:pointer}#mathActivity button:disabled{opacity:.5;cursor:wait}#mathActivity .danger{color:#a43535;border-color:#dec4c4}.math-activity-toolbar{display:flex;gap:16px;padding:22px 0}.math-activity-toolbar button:first-child,#mathActivity [data-directory-action=push],#mathActivity [data-directory-action=confirm-push]{background:#eff6fc}.math-resources-heading{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #dbe3ec}.math-resource{display:grid;grid-template-columns:220px minmax(0,1fr) auto;gap:22px;align-items:center;padding:24px 0;border-bottom:1px solid #e0e7ef}.math-resource-cover{display:grid;place-items:center;position:relative;width:220px;aspect-ratio:16/9;overflow:hidden;background:#f1f5f8;color:#5d738a;text-decoration:none}.math-resource-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff;opacity:0}.math-resource-cover.ready img{opacity:1}.math-resource-copy{min-width:0}.math-resource-copy h3{overflow-wrap:anywhere}.math-resource-copy p{font-size:18px;margin:8px 0 0;color:#566b80}.math-resource-actions{display:flex;gap:10px;flex-wrap:wrap}.math-resource-push{grid-column:2/-1;display:flex;gap:12px;align-items:end;flex-wrap:wrap}.math-resource-push label{flex:1;min-width:230px}#mathActivity label{display:grid;gap:8px;font-size:20px;color:inherit}#mathActivity input,#mathActivity textarea,#mathActivity select{box-sizing:border-box;width:100%;max-width:100%;font:inherit;padding:10px;border:1px solid #b5c5d5;border-radius:6px;background:#fff;color:inherit}#mathActivityStatus{font-size:19px;overflow-wrap:anywhere;margin:8px 0}#mathReplacePicker{display:flex;align-items:end;gap:14px;padding:0 0 22px}#mathReplacePicker label{flex:1}#mathActivity #coursewareUploadDialog{position:static;width:auto;max-width:none;max-height:none;border:0;padding:0;margin:0;box-shadow:none;background:#fff}#mathActivity .courseware-upload-dialog{padding:12px 0 22px;margin:0;display:grid;gap:16px;border-bottom:1px solid #dae3ec;background:#fff}#mathActivity .courseware-upload-head{display:flex;justify-content:space-between;gap:14px;font-size:23px}#mathActivity .courseware-upload-hint{font-size:18px;margin:0;color:#526a81}#mathActivity .courseware-upload-files{font-size:18px;overflow-wrap:anywhere}#mathActivity .courseware-source-row{display:grid;gap:16px}#mathActivity #coursewarePurpose,#mathActivity label:has(>#coursewarePurpose){display:none}.math-resource-empty{padding:24px 0;color:#5a6c7d}
@media(max-width:850px){.math-resource{grid-template-columns:190px minmax(0,1fr)}.math-resource-cover{width:190px}.math-resource-actions{grid-column:2}.math-resource-push{grid-column:1/-1}}@media(max-width:560px){#mathActivity{width:calc(100% - 16px);max-height:94dvh;padding:0 18px 22px}#mathActivity h2{font-size:24px}#mathActivity h3{font-size:22px}.math-resource{grid-template-columns:1fr;gap:14px}.math-resource-cover{width:100%;max-height:220px}.math-resource-actions{grid-column:1;display:grid;grid-template-columns:repeat(3,1fr);gap:9px}#mathActivity .math-resource-actions>*{padding:9px 8px;text-align:center;font-size:19px}.math-resource-push label{min-width:0;flex-basis:100%}}
.lesson-card .lesson-directory-tools{margin-top:auto}
