/* Uses the course shell's role palette, typography and content width. */
#teacher.cf-subpage>.tabbar,#teacher.cf-subpage>.appbar{display:none!important}
#teacher.cf-subpage #tBody{padding:0!important;overflow-y:auto!important;min-height:0;overscroll-behavior:contain}
#pgCourseTask.pg.on,#pgLive .cf-shell{display:block!important}
#pgCourseTask{padding:0!important;min-height:100%;background:var(--bg,#f5f7fb)}
.cf-shell{width:100%;max-width:var(--appw,100%);box-sizing:border-box;margin:auto;min-height:100%;color:var(--fg);font-family:inherit}
.pg .page-h.cf-head{align-items:flex-end;justify-content:flex-start}
.cf-head>div,.cf-card{min-width:0}
.cf-card.card{margin:0}
.cf-card .h{margin:0 0 10px}
.cf-stem{font-weight:600;color:var(--fg)}
.cf-eyebrow,.cf-note,.cf-row small,.cf-field>small{font-size:12px;color:var(--muted);line-height:1.6}
.cf-main{padding:8px 16px 100px;display:grid;align-content:start;gap:12px}
.cf-card p{line-height:1.65;margin:7px 0}.cf-card label,.cf-card summary{line-height:1.6}
.cf-field{display:grid;gap:6px;margin:12px 0;font-size:13px;font-weight:600}
.cf-shell :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border:1px solid var(--outline,#cfd9e6);border-radius:8px;background:var(--surface,#fff);color:var(--txt,#203044);padding:10px 11px;font:inherit;max-width:100%;min-width:0;box-sizing:border-box}
.cf-shell textarea{width:100%;min-height:75px}.cf-shell input[type=checkbox],.cf-shell input[type=radio]{accent-color:var(--p40,#2769bc);width:18px;height:18px;flex:none}
.cf-shell .btn.cf-btn{width:auto;min-height:40px;margin:0}
.cf-shell .btn.cf-btn.danger{color:var(--risk,#a93d39)}
.cf-back{display:grid;place-items:center;flex:none;min-width:44px;min-height:44px;border:0;background:transparent;color:var(--p40);font:inherit;font-size:22px;cursor:pointer}
.cf-row,.cf-title-btn{font:inherit;cursor:pointer;background:transparent}
.cf-shell :is(button,input,select,textarea,summary):focus-visible{outline:3px solid var(--p70,#88b6ed);outline-offset:2px}
.cf-shell button:disabled{opacity:.5;cursor:default}.cf-actions,.cf-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
/* 同一操作组里有两个以上业务按钮时等宽，避免出现一宽一窄、主次难辨。
   只作用于课堂子页，避免影响作业、题库等其他共用 #pgCourseTask 的流程。 */
html[data-cfp^="room-"] #pgCourseTask .cf-actions:has(> .cf-btn:nth-of-type(2)) > .cf-btn{flex:1 1 0;min-width:0}
.cf-row{display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;min-height:44px;color:inherit;border:0;border-top:1px solid var(--line,#e4eaf0);border-radius:0;padding:11px 2px}
.cf-row:first-of-type{border-top:0}.cf-row span:first-child{min-width:0;overflow-wrap:anywhere}.cf-row strong,.cf-row small{display:block}.cf-row strong{font-weight:600}
.cf-foot{position:sticky;z-index:4;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px max(10px,env(safe-area-inset-bottom));border-top:1px solid var(--line,#dce4ed);background:var(--glass-bg,#fff);-webkit-backdrop-filter:blur(var(--glass-blur,18px)) saturate(var(--glass-saturate,1.6));backdrop-filter:blur(var(--glass-blur,18px)) saturate(var(--glass-saturate,1.6));flex-wrap:wrap}.cf-foot .primary{margin-left:auto}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.cf-foot{background:var(--surface,#fff)}}
.cf-choices{display:grid;gap:3px;max-height:340px;overflow:auto}.cf-check{display:flex;gap:9px;align-items:center;padding:7px 0;font-size:14px}
.cf-questions{display:grid;grid-template-columns:minmax(0,2fr) minmax(190px,1fr);gap:12px;align-items:start}
.cf-questions aside{position:sticky;top:8px}.cf-item{display:flex;gap:9px;align-items:center;border-bottom:1px solid var(--line,#e3e8ef);padding:7px 0}
.cf-title-btn{flex:1;text-align:left;color:inherit;background:transparent;border:0;padding:5px;overflow-wrap:anywhere}
.cf-question{padding:10px 0;line-height:1.65;overflow-wrap:anywhere}.cf-question ol{padding:0;list-style:none}.cf-question li{padding:5px 0}.cf-question li b{display:inline-block;margin-right:9px;color:var(--p40)}

/* 单题分值：题库/题单/发布预览统一用可识别的分值胶囊，编排页输入补“分”单位 */
.cf-score-chip{
  display:inline-flex;align-items:center;flex:none;align-self:flex-start;
  min-height:24px;padding:2px 8px;border-radius:6px;
  background:#EFF5FF;color:#2457D6;font-size:12px;font-weight:600;line-height:1.4;
  white-space:nowrap;font-variant-numeric:tabular-nums;
}
.cf-score-chip.is-empty{background:#F5F8FC;color:#6B7686;font-weight:500}
.cf-chosen-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:0 0 4px}
.cf-chosen-head b{min-width:0;overflow-wrap:anywhere}
.cf-score-control{display:flex;align-items:center;gap:7px;margin:8px 0 0;flex-wrap:wrap}
.cf-score-label{font-size:12px;color:#5A6577}
.cf-score-input{
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  height:36px;min-width:96px;padding:0 8px;border:1px solid #DCE8FA;border-radius:8px;
  background:#F8FBFF;box-sizing:border-box;
}
html body:not(#gsxA):not(#gsxB) #pgCourseTask .cf-score-input input{
  width:48px!important;min-width:0!important;height:32px!important;
  min-height:32px!important;max-height:32px!important;flex:0 0 48px!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  padding:0!important;margin:0!important;text-align:center!important;
  font-family:inherit!important;font-size:16px!important;font-weight:700!important;
  line-height:32px!important;color:#2457D6!important;
  box-shadow:none!important;outline:none!important;
  -webkit-appearance:textfield!important;appearance:textfield!important;
  box-sizing:border-box!important;
}
html body:not(#gsxA):not(#gsxB) #pgCourseTask .cf-score-input input::-webkit-outer-spin-button,
html body:not(#gsxA):not(#gsxB) #pgCourseTask .cf-score-input input::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important}
.cf-score-input em{font-style:normal;margin-left:3px;font-size:12px;color:#5A6577}
.cf-score-note{font-size:12px;color:#9A6B1F}
.cf-chosen-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 9px;padding:0 2px}
.cf-chosen-summary span{font-size:12px;color:#5A6577}
.cf-chosen-summary strong{font-size:16px;font-weight:700;color:#2457D6;font-variant-numeric:tabular-nums}
.cf-score-summary{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:2px 0 10px}
.cf-score-summary span{font-size:13px;color:#5A6577}
.cf-score-summary strong{font-size:24px;line-height:1.2;font-weight:700;color:#2457D6;font-variant-numeric:tabular-nums}
.cf-score-summary strong small{font-size:13px;font-weight:500;color:#5A6577;margin-left:2px}
.cf-image{display:block;max-width:100%;max-height:400px;object-fit:contain;margin:8px 0}
.cf-code{font-size:24px;letter-spacing:.1em;font-weight:600;color:var(--p40)}
/* 考勤条按实到、请假、未到人数分配宽度。 */
.cf-attbar{display:flex;height:8px;margin:10px 0 6px;border-radius:999px;background:var(--bar-track,#EDF0F7);overflow:hidden}
.cf-attbar>i{display:block;height:100%;flex:0 0 0;min-width:0;
  transition:flex-grow var(--bar-dur,600ms) var(--bar-ease,cubic-bezier(.22,1,.36,1))}
.cf-attbar>i+i{box-shadow:inset 2px 0 0 0 var(--bar-track,#EDF0F7)}
/* 首尾各圆一端、中段方角：全给 999px 会把窄段压成小药丸，段间还会出现楔形空洞；
   方角还能让 1 人（约 5px）的细段读作"一条数据带"而不是一个脏点。 */
.cf-attbar>i:first-child{border-radius:999px 0 0 999px}
.cf-attbar>i:last-child{border-radius:0 999px 999px 0}
.cf-attbar>i:only-child{border-radius:999px}
/* 按段序设置颜色，避免与全局短类名冲突。 */
.cf-attbar>i:nth-child(1){background:var(--ok,#2E7D46)}
.cf-attbar>i:nth-child(2){background:#E0A63C}
.cf-attbar>i:nth-child(3){background:var(--bar-idle,#DCE3EE)}
@media (prefers-reduced-motion:reduce){.cf-attbar>i{transition:none}}
/* 图注：课堂页没有四宫格，条的三段颜色必须有文字对应，否则只剩三块颜色互相不知道是什么。
   用 inline-block 而不是 flex 子项：flex 子项的 min-width:auto 对中文会退化成 1 个字宽，
   实测「已到 35」被压到 13px、数字掉到第二行；inline-block 是 shrink-to-fit，按内容给宽。 */
.cf-attr{font-size:12px;color:var(--muted,#6B7686);line-height:1.7}
.cf-attr span{display:inline-block;margin-right:14px;white-space:nowrap}
.cf-attr span:last-child{margin-right:0}
.cf-attr span::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;vertical-align:1px}
.cf-attr span:nth-child(1)::before{background:var(--ok,#2E7D46)}
.cf-attr span:nth-child(2)::before{background:#E0A63C}
.cf-attr span:nth-child(3)::before{background:var(--bar-idle,#DCE3EE)}
.cf-badge{display:inline-block;background:var(--p97,#edf4fc);color:var(--p40,#265da2);border-radius:20px;padding:3px 10px;font-size:12px}
.cf-empty{color:var(--muted);padding:14px}.cf-spin{color:var(--p40)}
@media(max-width:650px){.cf-questions{grid-template-columns:minmax(0,1fr)}.cf-questions aside{position:static}.cf-main{padding-inline:14px}.cf-main{padding-bottom:72px}.cf-shell button,.cf-shell .btn.cf-btn{min-height:44px}}

#teacher.cf-subpage #tBody{overflow:hidden!important}
#pgCourseTask.pg.on{height:100%;min-height:0!important;box-sizing:border-box;overflow:hidden!important}
#pgCourseTask>.cf-shell{height:100%;min-height:0;display:flex;flex-direction:column}
#pgCourseTask .cf-head,#pgCourseTask .cf-foot{flex:none}
#pgCourseTask .cf-main{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:18px}
#pgCourseTask .cf-foot{position:static;margin-top:auto}
#cf-custom-editor .pub-custom-head{display:none}
#cf-custom-editor #pubCustomMask{position:static!important;background:transparent!important}
#cf-custom-editor .pub-custom-sheet{position:static!important;height:auto;max-height:none;margin:0 auto}
#pgCourseTask .cf-head:has(+.cf-main:empty){min-height:64px}

/* 1) 自绘 checkbox —— 蓝调圆角 + 弹性勾选动效（对齐平台 .ck/.opt 语言） */
.cf-shell input[type=checkbox]{
  appearance:none;-webkit-appearance:none;
  width:20px;height:20px;flex:none;
  border:1.5px solid var(--outline-strong,#7E8CA0);border-radius:6px;
  background:var(--surface,#fff);
  display:inline-grid;place-content:center;
  cursor:pointer;margin:0;
  transition:background-color var(--dur-quick,.15s) ease,
             border-color var(--dur-quick,.15s) ease,
             box-shadow var(--dur-quick,.15s) ease,
             transform var(--dur-quick,.15s) cubic-bezier(.34,1.56,.64,1);
}
.cf-shell input[type=checkbox]::before{
  content:'';width:11px;height:6px;
  border-left:2px solid #fff;border-bottom:2px solid #fff;
  transform:rotate(-45deg) scale(0);
  transition:transform var(--dur-mid,.25s) cubic-bezier(.34,1.56,.64,1);
}
.cf-shell input[type=checkbox]:checked{
  background:var(--brand,#2457D6);
  border-color:var(--brand,#2457D6);
  box-shadow:none;
}
.cf-shell input[type=checkbox]:checked::before{transform:rotate(-45deg) scale(1)}
.cf-shell input[type=checkbox]:active{transform:scale(.9)}

/* 2) 自绘 radio —— 蓝调圆点 */
.cf-shell input[type=radio]{
  appearance:none;-webkit-appearance:none;
  width:19px;height:19px;flex:none;
  border:1.5px solid var(--outline-strong,#7E8CA0);border-radius:50%;
  background:var(--surface,#fff);
  display:inline-grid;place-content:center;
  cursor:pointer;margin:0;
  transition:border-color var(--dur-quick,.15s) ease,
             box-shadow var(--dur-quick,.15s) ease,
             transform var(--dur-quick,.15s) cubic-bezier(.34,1.56,.64,1);
}
.cf-shell input[type=radio]::before{
  content:'';width:9px;height:9px;border-radius:50%;
  background:var(--brand,#2457D6);
  transform:scale(0);
  transition:transform var(--dur-mid,.25s) cubic-bezier(.34,1.56,.64,1);
}
.cf-shell input[type=radio]:checked{border-color:var(--brand,#2457D6);box-shadow:none}
.cf-shell input[type=radio]:checked::before{transform:scale(1)}
.cf-shell input[type=radio]:active{transform:scale(.9)}

/* 3) 自绘折叠箭头 —— 隐藏原生三角，改旋转箭头 */
.cf-shell details>summary{list-style:none;cursor:pointer;border-radius:10px;transition:background-color var(--dur-mid,.25s) var(--ease-standard,cubic-bezier(.22,1,.36,1))}
.cf-shell details>summary::-webkit-details-marker{display:none}
.cf-shell details>summary::before{
  content:'';width:7px;height:7px;flex:none;
  border-right:2px solid var(--txt2,#57564F);border-bottom:2px solid var(--txt2,#57564F);
  transform:rotate(-45deg);
  display:inline-block;margin-right:9px;
  transition:transform var(--dur-mid,.25s) cubic-bezier(.34,1.56,.64,1);
}
.cf-shell details[open]>summary::before{transform:rotate(45deg)}
/* 折叠控件悬停/按压不再铺品牌淡蓝：交互反馈用中性灰，避免整页到处泛蓝 */
.cf-shell details>summary:active{background:rgba(17,24,39,.05)}
.cf-shell details>summary:hover{background:rgba(17,24,39,.03)}

/* 4) 勾选行反馈 —— 全部改中性灰。原来 hover 淡蓝、按压深蓝、选中淡蓝，
   一层层叠出三档蓝，页面被染成蓝调。选中与否由复选框本身表达即可。 */
.cf-check{
  padding:9px 10px;margin:0 -10px;border-radius:10px;cursor:pointer;
  transition:background-color var(--dur-mid,.25s) var(--ease-standard,cubic-bezier(.22,1,.36,1));
}
.cf-check:hover{background:rgba(17,24,39,.03)}
.cf-check:active{background:rgba(17,24,39,.055)}
.cf-check:has(input:checked){background:rgba(17,24,39,.025)}

#pgCourseTask .cf-head{
  background:transparent;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  border-bottom:0;
  position:static;
  top:auto;
  z-index:auto;
  margin:0 0 12px;
  padding:12px 16px 0;
  align-items:flex-end;
  justify-content:flex-start;
  gap:9px;
}
#pgCourseTask .cf-head h2{
  font-size:22px;line-height:1.25;font-weight:800;letter-spacing:-.3px;margin:0;
}
/* 标题只作为读屏播报锚点（tabindex=-1），不是可交互控件：
   去掉浏览器默认蓝框，避免四步标题看起来像输入框。 */
#pgCourseTask .cf-head h2:focus,
#pgCourseTask .cf-head h2:focus-visible{outline:none;box-shadow:none}
#pgCourseTask .cf-head .st{
  font-size:12px;line-height:1.5;color:var(--muted,#6B7686);margin-top:4px;
}
@media(max-width:650px){
  #pgCourseTask .cf-head{padding:12px 14px 0}
  #pgCourseTask .cf-head h2{font-size:20px}
}

/* 6) 底部操作栏：不透明实底 + 细分割线。
   原为 rgba(255,255,255,.92) + blur(18px) saturate(1.6) 的毛玻璃，
   滚动时下方内容在栏后糊成一片，与全站已清理的浮层同源问题。 */
#pgCourseTask .cf-foot{
  background:#FFFFFF;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  border-top:1px solid rgba(17,24,39,.08);
}

/* 7) 行分隔微调 —— cf-row 保留分隔线，行首圆角；悬停改中性灰（原为 --p95 淡蓝） */
.cf-row{border-radius:10px;transition:background-color var(--dur-mid,.25s) var(--ease-standard,cubic-bezier(.22,1,.36,1))}
.cf-row:hover{background:rgba(17,24,39,.03)}

/* 2/3 题库选题列表控件（兼容非 .cf-shell 容器，与 .cf-shell 自绘同款） */
.cf-item input[type=checkbox]{-webkit-appearance:none;appearance:none;width:20px;height:20px;border-radius:6px;border:1.5px solid var(--line-strong,#7E8CA0);background:rgba(255,255,255,.85);cursor:pointer;position:relative;flex:none;transition:border-color var(--dur-quick,.15s),background var(--dur-quick,.15s),transform var(--dur-quick,.15s)}
.cf-item input[type=checkbox]:checked{background:var(--brand,#2457D6);border-color:var(--brand,#2457D6);box-shadow:none}
.cf-item input[type=checkbox]:checked::before{content:"";position:absolute;left:6px;top:3px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(-45deg) scale(1)}
.cf-item input[type=checkbox]:active{transform:scale(.9)}


/* 抵消全站 input 的最小高度，保持复选框为正方形。 */
#pgCourseTask .cf-shell input[type=checkbox]{
  min-height:0;
  width:20px;height:20px;
  align-self:center;
}

#pgCourseTask .cf-check{
  min-height:44px;
  padding:11px 10px;
  margin:0 -10px;
  font-size:14px;
  line-height:1.35;
}
#pgCourseTask .cf-choices{gap:2px}

#pgCourseTask .cf-check:has(input:checked){font-weight:600}
#pgCourseTask .cf-check:has(input:checked)>*{color:var(--p40)}

#pgCourseTask .cf-choices{max-height:none;overflow:visible}

#pgCourseTask .cf-main{padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}

#pgCourseTask .cf-shell details>summary{padding:11px 10px;margin:0 0 2px;border-radius:10px}

/* 标签文字是裸文本节点，选中颜色需要设在 label 上。 */
#pgCourseTask .cf-check:has(input:checked){color:var(--p40,#2457D6);font-weight:600}

/* ② 行高回到平台正文 1.65（1.35 是我 artv4 引入的回归） */
#pgCourseTask .cf-check{line-height:1.6}

/* ③ 色带收回内容盒：取消 margin:-10px 出血（原宽 336/358=94%，距卡片边仅 11px） */
#pgCourseTask .cf-check{margin:0;padding:10px 12px;border-radius:12px}

/* ④ 行间 2px → 4px，避免三行贴合糊成连续条纹 */
#pgCourseTask .cf-choices{gap:4px}

/* ⑤ 卡片标题下间距 10px → 16px，对齐平台 .card .h */
#pgCourseTask .cf-card>.h{margin:0 0 16px}

/* ⑥ 复选框描边 #7E8CA0 偏重发灰 → 冷灰蓝 */
#pgCourseTask .cf-shell input[type=checkbox]{border-color:#C3CBDA}

/* ⑦ 副标题与平台 muted 同色 #8A94A6 → #6B7686 */
#pgCourseTask .cf-head .st{color:var(--muted,#6B7686)}

/* ⑧ 底栏与卡片同语言：上圆角 + 柔和投影（原 0px 与卡片 18px 打架） */
#pgCourseTask .cf-foot{border-radius:16px 16px 0 0;
  box-shadow:0 -1px 0 rgba(255,255,255,.9), 0 -10px 28px rgba(31,66,135,.06)}


.course-live-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}
.course-live-layout>*,.course-live-layout aside>*{min-width:0}.course-live-layout aside{display:grid;gap:12px}
.course-live-layout #cf-quiz-focus>.card{border-top:3px solid var(--p40)!important}
@media(min-width:850px){.course-live-layout{grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr)}}
#stuClassInteraction>details>summary{min-height:44px;cursor:pointer}
#roomPostText{width:100%;font:inherit;padding:10px;box-sizing:border-box}

@media(min-width:1100px){
 body .app>#teacher.course-room-page.cf-subpage.on>.appbar{display:flex!important;grid-column:1/-1;grid-row:1}
 body .app>#teacher.course-room-page.cf-subpage.on>.tabbar{display:flex!important;position:relative!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;margin:0!important;border-radius:0!important;height:100%;flex-direction:column!important;grid-column:1;grid-row:2}
 body .app>#teacher.course-room-page.cf-subpage.on>#tBody{grid-column:2;grid-row:2}
}
.room-exercise .qTex{font-size:15px;line-height:2;margin-bottom:14px}
.room-exercise label.qopt{position:relative}
.room-exercise label.qopt input{position:absolute;opacity:0;width:1px;height:1px}
.room-exercise label.qopt:has(:checked){border-color:var(--p40)!important;background:var(--p95)!important}
.room-exercise label.qopt:focus-within{outline:2px solid var(--p40);outline-offset:2px}
.room-exercise #stuTextAns{width:100%;box-sizing:border-box;font:inherit;font-size:16px;padding:12px;border:1px solid var(--outline);border-radius:10px;color:var(--fg);background:var(--bg2)}
.room-exercise .room-q-note,.room-upload{font-size:12px;color:var(--muted)}
.room-exercise .room-receipt,.room-exercise .room-review{padding:12px;margin-top:10px;border-radius:10px;background:var(--bg2);overflow-wrap:anywhere}
.room-exercise .room-receipt b{color:var(--ok)}.room-exercise .room-receipt small{display:block;color:var(--muted)}
.room-upload{display:flex;align-items:center;gap:8px}.room-upload .btn{width:auto}

/* ===== 发题 · 题单按难度分档（简单/基础/进阶/自定义） ===== */
.cf-sheet-group{border-bottom:1px solid var(--line);padding:2px 0}
.cf-sheet-group:last-child{border-bottom:0}
.cf-sheet-head{display:flex;align-items:center;gap:8px;padding:12px 0 2px;font-size:13px;font-weight:600}
.cf-sheet-n{color:var(--muted);font-weight:400;font-size:12px}
.cf-sp{flex:1}
.cf-sheet-sum{color:var(--txt);font-weight:700;font-variant-numeric:tabular-nums}
.cf-diff{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--txt)}
.cf-diff i{width:9px;height:9px;border-radius:50%;display:inline-block;flex:none}
.cf-diff.d1 i{background:#22C55E}
.cf-diff.d2 i{background:#F59E0B}
.cf-diff.d3 i{background:#EF4444}
.cf-diff.d0 i{background:#8A94A6}
.cf-diffs{display:flex;gap:12px;flex-wrap:wrap;margin:6px 0 4px}

/* v201 发布流程重构：第2步章节导航（左小节 / 右章节目录） */
.cf-questions.is-nav-left{grid-template-columns:minmax(0,2fr) minmax(180px,1fr)}
.cf-questions.is-nav-left aside{order:2}
.cf-chnav{width:100%;background:#fff;border:1px solid var(--line,#e3e8ef);border-radius:10px;margin-bottom:6px;text-align:left;font:inherit;cursor:pointer}
.cf-chnav>span:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.cf-chnav strong{font-size:13px;font-weight:600;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cf-chnav small{font-size:12px;color:var(--muted,#6b7785);font-variant-numeric:tabular-nums}
.cf-chnav.is-on{background:#EFF3FE;border-color:#C7D6FB}
.cf-chnav.is-on strong{color:#2457D6}
@media(max-width:650px){
 .cf-questions.is-nav-left{grid-template-columns:minmax(0,1fr)}
 .cf-questions.is-nav-left aside{order:0;display:flex;gap:6px;overflow-x:auto;padding-bottom:4px}
 .cf-chnav{min-width:132px;margin-bottom:0}
}

@media (max-width:760px){
  /* ① 章节导航移到小节列表之前（原来排在 5 个小节之后，要先看完才找到换章入口） */
  #pgCourseTask .cf-questions.is-nav-left>aside{order:-1}

  /* ② 保持横向单行条（不改成多行网格）：
        10 章时两列网格会占掉约 295px，把首屏压掉一半；
        横向条固定约 60px，2~4 章时一屏全见，章多时左右滑动。 */
  #pgCourseTask .cf-questions.is-nav-left>aside{
    display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;
    gap:6px;padding:0 0 2px;scrollbar-width:none;
  }
  #pgCourseTask .cf-questions.is-nav-left>aside::-webkit-scrollbar{display:none}

  /* ③ 卡片加宽并允许标题两行，取消「第一章 函数与…」的省略号截断 */
  #pgCourseTask .cf-chnav{
    flex:0 0 auto;width:auto;min-width:116px;max-width:158px;
    height:auto;min-height:0;margin:0;padding:8px 10px;border-radius:11px;
    align-items:flex-start;
  }
  #pgCourseTask .cf-chnav>span:first-child{gap:1px}
  #pgCourseTask .cf-chnav strong{
    white-space:normal;overflow:hidden;text-overflow:clip;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
    font-size:13px;line-height:1.3;
  }
  #pgCourseTask .cf-chnav small{font-size:11px;line-height:1.25;color:#5B6B84}
  /* 选中卡片：浅蓝底上原 muted 色几乎看不见「0 / 5 节」，改为深蓝 */
  #pgCourseTask .cf-chnav.is-on small{color:#1D46B8;font-weight:500;opacity:1}
  #pgCourseTask .cf-chnav>span:last-child{display:none}

  /* ③ 小节行收紧到约 40px（原约 64px），仍保留整行可点 */
  #pgCourseTask .cf-check{min-height:0;padding:10px 10px;font-size:14px;line-height:1.35}
  #pgCourseTask .cf-choices{gap:0}

  /* ④ 卡片内“全选本章/清空本章”与列表贴紧，不再留大空隙 */
  #pgCourseTask .cf-card .cf-actions{margin-top:8px;gap:8px}
}

#pgCourseTask .cf-btn{
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  border-radius:12px;
  font-weight:600;
  letter-spacing:.01em;
  transition:transform .14s cubic-bezier(.2,.8,.3,1),box-shadow .14s ease,background-color .14s ease,filter .14s ease;
  will-change:transform;
}
#pgCourseTask .cf-btn.primary{
  border:0;
  color:#fff;
  /* 原为 150deg 蓝渐变 + 外投影 + inset 白色高光，是典型的「立体按钮」做法，
     与全站扁平基线不符。改为品牌纯色 + 单层极淡投影。 */
  background:var(--brand,#2457D6);
  box-shadow:0 1px 2px rgba(17,24,39,.10);
}
#pgCourseTask .cf-btn.primary:hover{filter:brightness(1.04)}
#pgCourseTask .cf-btn.primary:active{
  transform:translateY(1px) scale(.985);
  box-shadow:0 1px 2px rgba(17,24,39,.14);
}
#pgCourseTask .cf-btn.sec{
  border:1px solid var(--outline,#D3DBE6);
  color:var(--fg2,#31465F);
  background:var(--surface,#fff);
  box-shadow:0 1px 2px rgba(16,40,80,.06),inset 0 1px 0 rgba(255,255,255,.8);
}
#pgCourseTask .cf-btn.sec:active{
  transform:translateY(1px) scale(.99);
  background:#EEF2F8;
  box-shadow:inset 0 2px 5px rgba(16,40,80,.10);
}
/* 裸箭头的按压反馈：只做轻微缩放，不铺蓝色底（原为 scale(.92)+#E9EFF7 蓝底） */
#pgCourseTask .cf-back:active{transform:scale(.90)}
/* 禁用态：正在发布时按钮不应还能被连点 */
#pgCourseTask .cf-btn:disabled{opacity:.55;box-shadow:none;transform:none;filter:grayscale(.15)}

/* 题库刷新：与首页一致的环形箭头图标按钮，不再出现整块文字按钮 */
#pgCourseTask .cf-icon-btn{
  flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;
  padding:0!important;border:1px solid var(--outline,#D3DBE6);
  border-radius:12px;background:var(--surface,#fff);color:#5A6577;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  box-shadow:0 1px 2px rgba(16,40,80,.06),inset 0 1px 0 rgba(255,255,255,.8);
}
#pgCourseTask .cf-icon-btn:hover{color:#2457D6;border-color:#BFD2F0;background:#F7FAFF}
#pgCourseTask .cf-icon-btn:active{transform:scale(.94);background:#EEF2F8;box-shadow:inset 0 2px 5px rgba(16,40,80,.10)}
#pgCourseTask .cf-icon-btn svg{width:16px;height:16px;display:block}

/* ===== ⑪ 手动端体验 ===== */
@media(max-width:650px){
  /* 原 .cf-main{padding-bottom:72px} 与 id 规则的 18px 打架，手机上留出一大片空白 */
  #pgCourseTask .cf-main{padding-bottom:16px}
  /* 触控目标不小于 46px，标题栏一行的按钮也统一到 46 */
  /* 统一按钮高度：.btn 自带 padding:14px，会让次按钮比主按钮高 5px，
     改成 flex 居中 + 固定左右内距，主次按钮同高 */
  #pgCourseTask .cf-btn{
    min-height:44px;border-radius:12px;font-size:13px;font-weight:700;
    display:inline-flex;align-items:center;justify-content:center;
    line-height:1.2;padding:0 18px;
  }
  /* 输入框聚焦时把滚动区留出键盘高度，避免题干/截止时间被键盘压住 */
  #pgCourseTask .cf-main{scroll-padding-bottom:96px}
  #pgCourseTask .cf-shell :is(input,select,textarea){font-size:16px} /* <16px 会触发 iOS 自动放大 */
}


/* ---- publish split layout: 左摘要 + 右内容，不使用浮层 ---- */
.cf-split{display:grid;grid-template-columns:240px minmax(0,1fr);gap:16px;align-items:start;width:100%}
.cf-content{min-width:0;display:grid;gap:12px}
.cf-side{min-width:0}
.cf-side-card{background:#fff;border:1px solid var(--line,#E3E8EF);border-radius:14px;padding:12px}
.cf-side-kicker{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#6B7686);font-weight:700}
.cf-side-step{font-size:16px;font-weight:700;color:var(--txt,#141413);margin:2px 0 8px;letter-spacing:-.01em}
.cf-side-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:7px 0;border-top:1px solid #EEF2F7;font-size:12px;color:var(--muted,#6B7686)}
.cf-side-row b{font-weight:600;color:var(--txt,#141413);text-align:right;overflow-wrap:anywhere}
.cf-side-hint{margin-top:8px;padding-top:8px;border-top:1px solid #EEF2F7;font-size:11px;line-height:1.5;color:var(--muted,#8A94A6)}
@media(max-width:900px){
 .cf-split{grid-template-columns:minmax(0,1fr)}
 .cf-side{order:-1}
 .cf-side-card{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:10px 12px;border-radius:12px}
 .cf-side-kicker,.cf-side-step{display:none}
 .cf-side-row{border:0;padding:0;gap:4px}
 .cf-side-hint{display:none}
}


/* ---- mobile publish polish: 步骤条 + 紧凑列表，不用浮层 ---- */
.cf-head-copy{min-width:0}
.cf-steps{display:flex;gap:6px;margin-top:9px}
.cf-steps span{width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#EEF2F7;color:#6B7686;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}
.cf-steps span.on{background:#2457D6;color:#fff}
@media(max-width:650px){
 #pgCourseTask .cf-head{padding:10px 14px 8px;align-items:flex-start}
 #pgCourseTask .cf-head h2{font-size:20px;line-height:1.25}
 #pgCourseTask .cf-head .cf-eyebrow{font-size:11px;line-height:1.45;margin-top:3px}
 #pgCourseTask .cf-main{padding:8px 12px 8px;gap:10px}
 .cf-split{gap:10px}
 .cf-side-card{padding:10px 12px;gap:10px}
 .cf-side-row{font-size:12px}
 .cf-shell .cf-check{min-height:42px;padding:4px 0;font-size:14px}
 .cf-shell .cf-check:has(input:checked){background:#F7FAFE;border-radius:8px;padding-left:7px;padding-right:7px;margin-left:-7px;margin-right:-7px}
 .cf-choices{gap:0;max-height:none}
 .cf-shell .cf-choices .cf-check{border-bottom:1px solid #F0F3F7}
 .cf-shell .cf-choices .cf-check:last-child{border-bottom:0}
}


/* Draft recovery is part of the workflow, without a body-level mask. */
.cf-draft-choice{width:100%;max-width:760px;margin-inline:auto;min-width:0}
.cf-draft-name{font-size:18px;font-weight:650;line-height:1.6;overflow-wrap:anywhere}
.cf-draft-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
#pgCourseTask .cf-draft-actions .cf-btn{min-height:44px;flex:1 1 150px;white-space:normal}
@media(max-width:650px){.cf-draft-actions{display:grid;grid-template-columns:minmax(0,1fr)}}

/* one chapter at a time: selected is quiet, locked chapters grey out */
#pgCourseTask .cf-chnav{border-radius:12px!important;padding:10px 12px!important;background:#fff!important;border:1px solid #E3E8EF!important;box-shadow:none!important}
#pgCourseTask .cf-chnav.is-on{background:#F1F5FF!important;border-color:#C9D8FB!important;color:#1D46B8!important;box-shadow:none!important}
#pgCourseTask .cf-chnav.is-on strong{color:#1D46B8!important}
#pgCourseTask .cf-chnav.is-on small{color:#5477C9!important}
#pgCourseTask .cf-chnav.is-locked,#pgCourseTask .cf-chnav:disabled{background:#F4F5F7!important;border-color:#E9EBEF!important;color:#9AA3B2!important;opacity:1!important;cursor:not-allowed!important}
#pgCourseTask .cf-chnav.is-locked strong,#pgCourseTask .cf-chnav:disabled strong{color:#9AA3B2!important}
#pgCourseTask .cf-chnav.is-locked small,#pgCourseTask .cf-chnav:disabled small{color:#B1B8C4!important}
#pgCourseTask .cf-chnav.is-locked>span:last-child,#pgCourseTask .cf-chnav:disabled>span:last-child{opacity:.35}

#pgCourseTask .cf-scope-next{justify-content:flex-end;margin-top:14px;padding-top:12px;border-top:1px solid #EEF2F7}
#pgCourseTask .cf-scope-next .btn{min-width:128px}

/* text back link: show previous step title, no empty square */
#pgCourseTask .cf-head{display:flex;align-items:center;gap:14px}
#pgCourseTask .cf-head-copy{min-width:0}
@media(max-width:650px){
 #pgCourseTask .cf-head{gap:10px;align-items:flex-start}
}

/* Back navigation keeps the compact text appearance and a 44px target. */
#pgCourseTask .cf-head .cf-back{
 display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;
 width:auto;min-width:44px;min-height:44px;height:auto;
 max-width:100%;padding:10px 8px;margin:0 0 4px;
 border:0;border-radius:0;background:transparent;box-shadow:none;
 color:var(--brand,#2457D6);font-size:14px;font-weight:600;line-height:1.4;
 /* 避免任意断行让按钮被压到单字宽。 */
 white-space:nowrap;text-align:left;overflow-wrap:normal;
}
#pgCourseTask .cf-head .cf-back:hover{color:var(--p30,#1D46B8)}

/* One mobile footer layout: context above, actions in a flexible row. */
@media(max-width:760px){
 #pgCourseTask .cf-foot{
  padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));
  display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;
  gap:10px;border-radius:14px 14px 0 0;
 }
 #pgCourseTask .cf-foot>.cf-note,#pgCourseTask .cf-foot>#cf-scope-count{
  flex:1 1 100%;order:-1;min-width:0;margin:0;
  font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;
 }
 #pgCourseTask .cf-foot-acts{
  display:flex;flex:1 1 100%;flex-wrap:wrap;gap:10px;min-width:0;
 }
 #pgCourseTask .cf-foot .cf-btn{
  display:inline-flex;align-items:center;justify-content:center;
  flex:1 1 120px;min-width:0;max-width:100%;min-height:44px;
  margin:0;padding:10px 16px;white-space:normal;overflow-wrap:anywhere;
  font-size:15px;font-weight:600;line-height:1.4;
 }
}

/* header stack: back link on its own line, current title below; avoids empty left gutter */
#pgCourseTask .cf-head{display:block!important}
#pgCourseTask .cf-head-copy{display:block!important}
#pgCourseTask .cf-head-copy h2{margin:0!important}
@media(max-width:650px){
 #pgCourseTask .cf-head{padding-top:10px}
}

/* desktop: class list uses two balanced columns, section list stays single */
@media(min-width:900px){
 #pgCourseTask .cf-split .cf-content > .card > .cf-choices{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px!important;max-height:none!important}
 #pgCourseTask .cf-split .cf-content > .card > .cf-choices .cf-check{min-height:44px;padding:5px 0;border-bottom:1px solid #F0F3F7}
}

/* classroom prep: arrangement left, optional prep/settings right */
.cf-prep-split{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.75fr);gap:16px;align-items:start}
.cf-prep-split>.cf-content,.cf-prep-split>.cf-side{min-width:0;display:grid;gap:12px}
.cf-prep-cta{margin-top:14px;padding-top:12px;border-top:1px solid #EEF2F7;justify-content:space-between}
@media(max-width:900px){.cf-prep-split{grid-template-columns:minmax(0,1fr)}}

/* 课堂空态/课堂中心：左主卡 + 右记录 */
.class-hub-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);gap:14px;align-items:start}
@media(max-width:900px){.class-hub-grid{grid-template-columns:minmax(0,1fr)}}

/* ===== 课堂中心页（#pgLive）按钮 =====
   全站主按钮是「白瓷」风格（.btn.primary 全局白底+蓝描边），课堂页保持一致，
   不为它单独改色。这里只补齐次级按钮的描边与按压反馈，让主次有清晰层次。 */
#pgLive .cf-btn{
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;border-radius:12px;
  font-weight:600;letter-spacing:.01em;will-change:transform;
  transition:transform .14s cubic-bezier(.2,.8,.3,1),box-shadow .14s ease,background-color .14s ease,filter .14s ease;
}
#pgLive .cf-btn.sec{border:1px solid var(--outline,#D3DBE6);color:var(--fg2,#31465F);background:var(--surface,#fff);box-shadow:0 1px 2px rgba(16,40,80,.06),inset 0 1px 0 rgba(255,255,255,.8)}
#pgLive .cf-btn.sec:active{transform:translateY(1px) scale(.99);background:#EEF2F8;box-shadow:inset 0 2px 5px rgba(16,40,80,.10)}
#pgLive .cf-back:active{transform:scale(.90)}
#pgLive .cf-btn:disabled{opacity:.55;box-shadow:none;transform:none;filter:grayscale(.15)}

.cf-shell select,
#pgLive select{
  appearance:none;-webkit-appearance:none;-moz-appearance:none;
  font-size:13px;font-weight:400;color:var(--txt,#203044);
  /* 全站输入框有 border/background 的 !important 毛玻璃规则，这里同样 !important 才压得过 */
  border:1px solid var(--outline,#cfd9e6)!important;border-radius:10px;
  /* 纯 CSS chevron 箭头（两条渐变拼 V 形），不依赖 data URI。 */
  background-image:linear-gradient(45deg,transparent 50%,#6B7686 50%),linear-gradient(135deg,#6B7686 50%,transparent 50%)!important;
  background-position:calc(100% - 16px) 55%,calc(100% - 11px) 55%!important;
  background-size:5px 5px,5px 5px!important;
  background-repeat:no-repeat!important;
  padding:9px 34px 9px 11px;min-height:40px;box-sizing:border-box;cursor:pointer;
  max-width:100%;min-width:0;
  transition:border-color .14s ease,box-shadow .14s ease;
}
.cf-shell select:hover,#pgLive select:hover{border-color:var(--p60,#5a8fd6)!important}
.cf-shell select:focus-visible,#pgLive select:focus-visible{border-color:var(--brand,#2457D6)!important;box-shadow:0 0 0 3px rgba(36,87,214,.14)!important;outline:none}
.cf-shell select:disabled,#pgLive select:disabled{opacity:.5;cursor:default}
.cf-shell select option{font-weight:400;color:var(--txt,#203044)}

/* ===== 备课页标题与摘要字号收敛 =====
   大标题 24/800 与 details summary 16px 偏大，压到更克制的层级。 */
#pgCourseTask .cf-head h2{font-size:19px;font-weight:700}
.cf-shell details>summary{font-size:14px}
#pgCourseTask .cf-field{font-size:13px;font-weight:600}
#pgCourseTask .cf-field select{font-weight:400}

/* ===== 课堂中心页底部留白收敛 =====
   .cf-main 的 padding-bottom:100px 是为 pgCourseTask 的 sticky 底栏预留，
   课堂 hub 页没有底栏，100px 纯浪费；收紧到 20px。 */
#pgLive .cf-main{padding-bottom:20px}

#pgLive .cf-row strong{font-size:14px;font-weight:600;line-height:1.4}
#pgLive .cf-row small{font-size:12px;line-height:1.5}
#pgLive .cf-row{min-height:0;padding:9px 2px}
#pgLive .cf-row span[aria-hidden]{font-size:15px;color:var(--muted,#B7C1CF)}

/* ===== 备课三步向导 =====
   确认开课信息摘要：学年/班级/小节/互动方式 四行，标签灰字 + 值加粗，竖排对齐。 */
.cf-summary{display:grid;gap:10px}
.cf-summary>div{display:flex;align-items:baseline;gap:10px;padding:9px 11px;border:1px solid #EEF2F7;border-radius:10px;background:#FAFCFE}
.cf-summary .cf-note{flex:none;min-width:56px;font-size:12px;color:var(--muted,#6B7686)}
.cf-summary strong{font-size:14px;font-weight:700;color:#1F2937;word-break:break-all}

/* ===== 步骤进度点：错峰淡入（Staggered）=====
   每步圆点按 index 依次延迟出现，营造「进度推进」的节奏感；
   尊重 prefers-reduced-motion，晕动/降动用户直接静态显示。 */
.cf-steps span{animation:cfStepIn .38s cubic-bezier(.2,.8,.3,1) both;animation-delay:calc(var(--i,0)*70ms)}
.cf-steps span:nth-child(1){--i:0}.cf-steps span:nth-child(2){--i:1}.cf-steps span:nth-child(3){--i:2}
.cf-steps span:nth-child(4){--i:3}.cf-steps span:nth-child(5){--i:4}.cf-steps span:nth-child(6){--i:5}
@keyframes cfStepIn{from{opacity:0;transform:translateY(4px) scale(.85)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.cf-steps span{animation:none}}

/* ===== 第 2 步：两级自定义选择器（大章节 → 小节，非原生 select）===== */
.cf-pick-sec{display:grid;grid-template-columns:minmax(0,.62fr) minmax(0,1.38fr);gap:16px;align-items:start}
.cf-pick-col{min-width:0}
.cf-pick-label{font-size:12px;font-weight:600;color:var(--muted,#6B7686);margin-bottom:8px}
/* 大章节：卡片胶囊网格（2 列，窄屏 1 列） */
.cf-pickgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.cf-pickgrid .cf-pick{align-items:center;justify-content:center;min-height:48px;white-space:normal;overflow-wrap:anywhere}
.cf-pickgrid .cf-pick .cf-pick-name{text-align:center}
.cf-pick{display:flex;min-height:44px;align-items:flex-start;gap:8px;text-align:left;padding:11px 12px;border:1px solid #E3E9F2;border-radius:11px;background:#fff;cursor:pointer;
  font:inherit;transition:border-color .14s ease,background-color .14s ease,box-shadow .14s ease;color:var(--txt,#203044)}
.cf-pick:hover{border-color:var(--p60,#5a8fd6)}
.cf-pick:focus-visible{outline:2px solid var(--brand,#2457D6);outline-offset:2px}
.cf-pick.on{border-color:var(--brand,#2457D6);background:#EFF5FF;box-shadow:0 0 0 1px var(--brand,#2457D6) inset}
.cf-pick .cf-pick-no{flex:none;min-width:22px;font-size:12px;font-weight:700;color:#6B7686;font-variant-numeric:tabular-nums}
.cf-pick.on .cf-pick-no{color:var(--brand,#2457D6)}
.cf-pick .cf-pick-name{font-size:13px;font-weight:600;line-height:1.45;color:#1F2937}
/* 小节：纵向列表（一列） */
.cf-picklist{display:flex;flex-direction:column;gap:8px}
.cf-picklist .cf-pick{width:100%}
.cf-picklist .cf-pick .cf-pick-no{min-width:34px}
@media(max-width:650px){
  .cf-pick-sec{grid-template-columns:minmax(0,1fr)}
  .cf-pickgrid{grid-template-columns:minmax(0,1fr)}
}

#pgCourseTask .cf-card{padding:16px 18px}
#pgCourseTask .cf-card>.h{margin:0 0 12px}
#pgCourseTask .cf-questions .cf-item{padding:8px 0}
#pgCourseTask .cf-split{gap:14px}
#pgCourseTask .cf-side-card{border-radius:12px}
@media(max-width:650px){
  #pgCourseTask .cf-card{padding:14px}
  #pgCourseTask .cf-card>.h{margin:0 0 10px}
}

/* ===================== 题组（一次发一组，收完再发下一组） =====================
   延续既有口径：卡内不画卡（只用发丝线分区）、语义色只做信号（绿=答案/正确）、
   数字用等宽带。教师端与学生端同名不同前缀，避免互相污染。 */

/* --- 教师端 · 工作台当前题卡 --- */
.qz-set-lead{font-size:12px;color:#6B7686;margin:6px 0 10px;letter-spacing:.2px}
.qz-set-nav{display:flex;align-items:center;gap:12px;margin-top:14px;flex-wrap:wrap}
.qz-set-nav .cf-btn{min-height:32px}
.qz-set-count{font-size:12px;color:#8A93A3;letter-spacing:.2px}
.qz-set-q{padding:12px 0;border-top:1px solid #EEF1F6}
.qz-set-q:first-of-type{border-top:0;padding-top:2px}
.qz-set-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}
.qz-set-h b{font-size:12px;font-weight:600;color:#8A93A3;letter-spacing:.3px}
.qz-set-tex{font-size:14px;color:#111827;line-height:1.7;margin-bottom:4px}
.qz-set-ans{font-size:12px;color:#15803D;background:#EFF8F2;border-radius:999px;padding:1px 8px;white-space:nowrap}
.qz-set-exp{font-size:13px;color:#4B5563;line-height:1.8;margin:8px 0 0;padding-left:10px;border-left:2px solid #E6EAF1}
.qz-set-txt{flex:1;min-width:0}
/* 正确答案的字母：index.html 里 `#cf-quiz-focus .cf-item>b` 是 (1,1,1)，
   单靠 .cf-item.qz-set-opt.is-ans b 的 (0,3,1) 压不过它，白字被刷回灰字，
   绿块里就看不见字母了。这里用 id 前缀把特异性顶上去，并做成与学生端一致的圆形。 */
#pgCourseTask .cf-item.qz-set-opt.is-ans>b,
#cf-quiz-focus .cf-item.qz-set-opt.is-ans>b{
  background:#57A874!important;color:#fff!important;border-color:#57A874!important;
  width:18px!important;height:18px!important;border-radius:50%!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  font-size:11px!important;flex:none!important}
.cf-item.qz-set-opt.is-ans .qz-set-txt{color:#111827;font-weight:500}
.qz-set-bar{flex:none;width:88px;height:6px;border-radius:3px;background:#EFF2F7;overflow:hidden;margin-right:2px}
.qz-set-bar i{display:block;height:100%;background:#BFD3F5;border-radius:3px}

/* --- 教师端 · 选题页多选 --- */
.qz-pick-hint{font-size:12px;color:#8A93A3;line-height:1.7;margin:0 0 6px}
.qz-pick{position:relative;display:flex;align-items:center;gap:10px;padding:9px 10px 9px 40px;
  border-radius:8px;cursor:pointer;border:1px solid transparent;transition:background .12s ease}
.qz-pick:hover{background:#F7F9FC}
.qz-pick input{position:absolute;opacity:0;width:1px;height:1px}
.qz-pick::before{content:"";position:absolute;left:13px;top:50%;transform:translateY(-50%);
  width:16px;height:16px;border:1.5px solid #D3DAE6;border-radius:5px;background:#fff}
.qz-pick.on::before{background:#2457D6;border-color:#2457D6}
.qz-pick.on::after{content:"";position:absolute;left:17px;top:50%;width:8px;height:4px;
  border-left:2px solid #fff;border-bottom:2px solid #fff;transform:translateY(-70%) rotate(-45deg)}
.qz-pick b{flex:none;width:52px;font-size:11px;font-weight:500;color:#A6B0C0;font-variant-numeric:tabular-nums}
.qz-pick > .qz-pick-stem{flex:1;min-width:0;font-size:14px;color:#1F2937;overflow-wrap:anywhere}
.qz-pick-stem .katex-display{overflow-x:auto;overflow-y:hidden}
.qz-pick small{flex:none;font-size:11px;color:#8A93A3}
.qz-pick.on{background:#F3F7FF;border-color:#DCE7FB}
.qz-pick.on b{color:#2457D6}
.qz-selcnt{font-size:12px;color:#6B7686;font-variant-numeric:tabular-nums}

/* --- 学生端 · 整组答题（#pgClass 内，与既有 .qopt 清单行共存） --- */
#pgClass .room-exercise.room-set .room-set-lead{font-size:13px;color:#6B7686;margin:2px 0 12px}
#pgClass .room-exercise.room-set .room-set-q{padding:14px 0;border-top:1px solid #EEF1F6}
#pgClass .room-exercise.room-set .room-set-q:first-of-type{border-top:0;padding-top:0}
#pgClass .room-exercise.room-set .room-set-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
#pgClass .room-exercise.room-set .room-set-h b{font-size:12px;font-weight:600;color:#8A93A3;letter-spacing:.3px}
#pgClass .room-exercise.room-set .room-set-ans{font-size:12px;color:#15803D;background:#EFF8F2;border-radius:999px;padding:1px 8px}
#pgClass .room-exercise.room-set .room-set-exp{font-size:13px;color:#4B5563;line-height:1.8;margin:8px 0 0;padding-left:10px;border-left:2px solid #E6EAF1}
#pgClass .room-exercise.room-set .room-set-tag{flex:none;margin-left:auto;font-size:11px;color:#2457D6}
#pgClass .room-exercise.room-set .qopt.room-set-opt{cursor:default}
#pgClass .room-exercise.room-set .qopt.is-mine{border-color:#DCE7FB;background:#F7FAFF}
#pgClass .room-exercise.room-set .qopt.is-mine b{background:#2457D6!important;color:#fff!important;
  border-radius:50%!important;width:18px!important;height:18px!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;flex:none!important}
#pgClass .room-exercise.room-set .qopt.is-ans b{background:#57A874!important;color:#fff!important;
  border-radius:50%!important;width:18px!important;height:18px!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;flex:none!important}
#pgClass .room-exercise.room-set>.btn{margin-top:14px}

/* 未收题态：选项压成一行（收题后才展开四行看分布） */
.qz-set-inline{display:flex;flex-wrap:wrap;gap:2px 22px;margin:0;font-size:13px;color:#4B5563;line-height:1.95}
.qz-set-inline .qz-set-o{display:inline-flex;align-items:baseline;gap:6px;max-width:100%}
.qz-set-inline .qz-set-o>b{flex:none;font-size:12px;font-weight:600;color:#9AA5B5;width:auto}

/* 学生端整组：一屏要能看到两题左右，所以组内选项比单题态紧一档（38px 仍好点） */
/* 组内比单题态紧两档：.opts 的 8px gap 与 .qopt 的 46px 最小高会叠加，
   不在这里同时压，一屏连一道半题都放不下。36px 仍是可点的行。 */
/* index.html 里 `#pgClass .room-exercise .qopt{padding:13px 2px!important;min-height:0!important}`
   是带 !important 的 (1,2,0)，不加 !important 的 (1,3,0) 也压不过它——实测计算值仍是 13px 2px。
   组内行距再紧一档：7px 上下 + 发丝线 → 每行约 36px，三题一组才勉强一屏出点头。 */
#pgClass .room-exercise.room-set .opts{gap:0!important;margin:2px 0 6px}
#pgClass .room-exercise.room-set .qopt{padding:7px 2px!important;min-height:0!important;
  font-size:14px!important;line-height:1.6!important}
#pgClass .room-exercise.room-set .qTex{font-size:14px;margin:2px 0 4px}
#pgClass .room-exercise.room-set .room-set-q{padding:10px 0}
#pgClass .room-exercise.room-set .room-set-q+.room-set-q{margin-top:2px}
#pgClass .room-exercise.room-set .room-set-exp{font-size:12px;line-height:1.75;margin-top:6px}
#pgClass .room-exercise.room-set .room-set-h{margin-bottom:4px}

/* Photo/custom authoring stays inside the existing platform flow and footer. */
#cf-custom-editor .pub-custom-sheet{max-width:860px;background:var(--surface,#fff);border:1px solid var(--line,#e3e8ef);border-radius:16px;overflow:visible}
#cf-custom-editor .pub-custom-body{flex:none;overflow:visible;padding:18px}
#cf-custom-editor .pub-cq-tools{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}
#cf-custom-editor .pub-cq-img img{max-height:360px;object-fit:contain;margin-inline:auto}
#cf-custom-editor .pub-cq-optional{margin-top:14px;border-top:1px solid var(--line,#e3e8ef);padding-top:12px}
#cf-custom-editor .pub-cq-optional summary{min-height:44px;display:list-item;cursor:pointer;color:var(--muted,#64748b);font-size:13px;line-height:1.6}
#cf-custom-editor .pub-custom-body .fld{font-size:14px;line-height:1.7}
#pgCourseTask .cf-release-question{padding:12px 0;border-top:1px solid var(--line,#e3e8ef);min-width:0}
#pgCourseTask .cf-release-question:first-child{border-top:0}
#pgCourseTask .cf-release-question .cf-image{max-height:360px;margin:12px auto}
body:not(#ctl-a):not(#ctl-b) #cf-custom-editor :is(button,input:not([type=file]),select,textarea){min-height:44px!important;height:auto!important;white-space:normal!important;line-height:1.6!important}
body:not(#ctl-a):not(#ctl-b) #pgCourseTask .cf-foot:has(#pubCqSubmit) .cf-btn{min-height:44px!important;height:auto!important;white-space:normal!important;padding:10px 14px!important;line-height:1.5!important}
@media(max-width:540px){#cf-custom-editor .pub-custom-body{padding:14px}#cf-custom-editor .pub-cq-tools>button{flex:1 1 150px}#cf-custom-editor .pub-cq-img img{max-height:280px}#pgCourseTask .cf-foot:has(#pubCqSubmit){align-items:stretch}#pgCourseTask .cf-foot:has(#pubCqSubmit) .cf-btn{flex:1 1 140px}}

/* OCR review keeps a single editor and only relevant fields visible. */
#pubCqBatchBox .pub-cq-batch-fields{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}
#pubCqBatchBox .pub-cq-batch-fields label{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted,#64748b)}
#pubCqBatchBox select,#pubCqBatchBox button{font:inherit;border:1px solid #dce5f3;border-radius:9px;background:#fff;color:#24324b;padding:8px 10px}
#pubCqBatchBox .cf-item{padding:16px 0!important}#pubCqBatchBox button{cursor:pointer}#pubCqBatchBox button:focus-visible,#pubCqBatchBox select:focus-visible{outline:2px solid #2864ef;outline-offset:2px}
@media(max-width:480px){#pubCqBatchBox .cf-item{flex-wrap:wrap}#pubCqBatchBox .cf-item>div{flex-basis:100%!important}#pubCqBatchBox .pub-cq-batch-fields{gap:8px}}

/* 学生端逐题折叠（accordion） */
#pgClass .room-exercise.room-set details.room-set-q{padding:0;border-top:1px solid #EEF1F6}
#pgClass .room-exercise.room-set details.room-set-q:first-of-type{border-top:0}
#pgClass .room-exercise.room-set details.room-set-q>summary.room-set-h{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:14px 0;margin:0;user-select:none}
#pgClass .room-exercise.room-set details.room-set-q>summary.room-set-h::-webkit-details-marker{display:none}
#pgClass .room-exercise.room-set details.room-set-q>summary.room-set-h::after{content:"\25BE";color:#9AA3B2;font-size:12px;margin-left:auto;transition:transform .15s ease}
#pgClass .room-exercise.room-set details.room-set-q[open]>summary.room-set-h::after{transform:rotate(180deg)}
#pgClass .room-exercise.room-set details.room-set-q .room-set-body{padding:0 0 14px}

/* 课堂工作台：顶栏状态、右栏常驻提问、独立投票区 */
.cf-livebar{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-start;justify-content:space-between;padding:12px 14px;margin:0 0 14px;border:1px solid var(--outline);border-radius:14px;background:var(--bg2)}
.cf-livebar-main{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;flex:1 1 420px}
.cf-livebar-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;flex:none}
.cf-mode-chip{display:inline-flex;align-items:center;height:28px;padding:0 10px;border-radius:8px;background:#fff;border:1px solid var(--outline);font-size:12px;font-weight:600;color:var(--muted,#6B7686);flex:none}
.cf-mode-chip.on{background:var(--p95,#EEF4FF);border-color:var(--p40,#6B8FDB);color:var(--p20,#1D4ED8)}
.cf-mode-toggle{display:inline-flex;align-items:center;border:1px solid var(--outline);border-radius:9px;overflow:hidden;background:#fff;flex:none}
.cf-mode-btn{min-height:36px;padding:0 12px;border:0;background:transparent;font:inherit;font-size:12px;font-weight:600;color:var(--muted,#6B7686);cursor:pointer}
.cf-mode-btn+.cf-mode-btn{border-left:1px solid var(--outline)}
.cf-mode-btn.on{background:var(--p95,#EEF4FF);color:var(--p20,#1D4ED8)}
.cf-signin-inline{flex:1 1 260px;min-width:220px;margin:0;padding:0 10px;border:1px solid var(--outline);border-radius:10px;background:#fff}
.cf-signin-inline>summary{min-height:38px;display:flex;align-items:center;cursor:pointer;font-size:12px;color:var(--muted,#6B7686);list-style:none}
.cf-signin-inline>summary::-webkit-details-marker{display:none}
.cf-signin-inline>summary b{font-size:15px;color:var(--fg);letter-spacing:.04em;margin:0 4px}
.cf-signin-inline .cf-code{font-size:20px;margin:6px 0 4px}
.cf-inline-actions{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 10px}
.cf-random-slot{flex-basis:100%;min-height:0;margin-top:2px;font-size:13px;color:var(--muted,#6B7686)}
.cf-random-slot b{font-size:18px;color:var(--fg)}
.cf-qa{display:flex;flex-direction:column;min-height:0}
.cf-qa-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.cf-qa-head .h{margin:0}
.cf-qa-badge{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:999px;background:#FFF3E6;color:#9A5B00;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}
.cf-qa-badge[hidden]{display:none}
.cf-qa-live{display:inline-flex;align-items:center;gap:4px;font-size:11px;line-height:1.4;color:#12834B;font-weight:600}
.cf-qa-live i{width:5px;height:5px;border-radius:50%;background:#12B76A;flex:none}
.cf-poll-card{padding-bottom:10px}
.cf-poll-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.cf-poll-head .h{margin:0}
.cf-poll-actions{display:flex;align-items:center;gap:6px;flex:none}
.cf-poll-actions .cf-btn{min-height:32px;padding:0 10px;font-size:12px;white-space:nowrap}
.cf-poll-form{margin:10px 0 2px;padding-top:12px;border-top:1px solid #EEF2F8}
.cf-poll-form[hidden]{display:none!important}
.cf-poll-form-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.cf-poll-form-head b{font-size:13px;font-weight:600;color:#172033}
.cf-poll-form-close{width:28px;height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:#667085;font-size:18px;line-height:1;cursor:pointer}
.cf-poll-form-close:hover{background:#F2F4F7;color:#172033}
.cf-poll-field{display:block;margin:0 0 10px}
.cf-poll-field span{display:block;margin:0 0 5px;font-size:12px;line-height:1.4;color:#667085}
.cf-poll-form input,.cf-poll-form textarea{display:block;width:100%;box-sizing:border-box;border:1px solid #D5DEEA;border-radius:8px;background:#fff;color:#172033;font:inherit;outline:none}
.cf-poll-form input{height:38px;padding:0 10px;font-size:13px}
.cf-poll-form textarea{min-height:74px;padding:8px 10px;font-size:13px;line-height:1.55;resize:vertical}
.cf-poll-form input:focus,.cf-poll-form textarea:focus{border-color:#2F6BFF;box-shadow:0 0 0 3px rgba(47,107,255,.10)}
.cf-poll-status{margin:0 0 8px;font-size:12px;line-height:1.5;color:#7A4B00}
.cf-poll-form-actions{display:flex;justify-content:flex-end}
.cf-poll-form-actions .cf-btn{width:auto;min-width:96px}
.cf-material-card{border-color:#DCE5F2!important}
.cf-material-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:2px}
.cf-material-copy{min-width:0}
.cf-material-head .h{margin:0;font-size:15px;font-weight:650;color:#101828;line-height:1.45}
.cf-material-note{margin:5px 0 0!important;font-size:12px!important;line-height:1.6!important;color:#667085!important;font-weight:400}
.cf-material-actions{display:flex;flex-wrap:wrap;gap:6px;flex:none}
.cf-material-actions .cf-btn{min-height:32px;padding:0 10px;font-size:12px;white-space:nowrap}
.cf-mat-list{margin:12px 0 0;padding:0;border:0;background:transparent}
.cf-mat-list.cf-mat-empty p{margin:0;font-size:12px;line-height:1.65;color:#667085}
.cf-mat-row{display:flex;align-items:center;gap:9px;padding:9px 0;border-top:1px solid #EEF1F5;min-width:0}
.cf-mat-row:first-child{border-top:0;padding-top:2px}
.cf-mat-ext{width:34px;height:34px;border-radius:8px;background:#F2F6FF;color:#2457D6;font-size:10px;line-height:34px;font-weight:700;text-align:center;flex:none;letter-spacing:.02em}
.cf-mat-name{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.cf-mat-name b{font-size:13px;font-weight:600;line-height:1.4;color:#101828;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cf-mat-name span{font-size:11px;line-height:1.4;color:#667085}
.cf-mat-actions{display:flex;align-items:center;gap:2px;flex-wrap:wrap;justify-content:flex-end;flex:none}
.cf-mat-actions .cf-btn{min-height:28px;padding:0 7px;font-size:11px}
.cf-mat-link{display:inline-flex;align-items:center;min-height:28px;padding:0 7px;border-radius:6px;color:#2457D6;font-size:11px;font-weight:600;text-decoration:none!important;white-space:nowrap}
.cf-mat-link:hover{background:#F2F6FF}
.cf-mat-status{margin-top:6px;font-size:11.5px;line-height:1.5;color:#667085}
.cf-mat-status[data-tone="warn"]{color:#9A5B00}
.cf-poll-card #cf-live-polls .cai-poll{padding:10px 0}
.cf-poll-card #cf-live-polls{max-height:36vh;overflow:auto}
#cf-live-activity #teaAiClassroom .tc-head{padding:10px 0 8px;border-bottom:1px solid #EEF2F8;background:#fff}
#cf-live-activity #teaAiClassroom .tc-context{margin-top:4px}
#cf-live-activity #teaAiClassroom .tc-feed{padding:8px 0 16px;flex:1 1 auto;min-height:0;max-height:none!important}
#cf-live-activity #teaAiClassroom .tc-feed .tc-empty{padding:24px 0 8px;min-height:0}
#cf-live-activity #teaAiClassroom .tc-empty-hero h3{font-size:17px;margin:0}
#cf-live-activity #teaAiClassroom .tc-empty-hero p{font-size:12px}
#cf-live-activity #teaAiClassroom .tc-composer{padding:8px 0 0;border-top:1px solid #EEF2F8;background:#fff}
#cf-live-activity #teaAiClassroom .tc-snap-inline{display:none}
#cf-live-activity #teaAiClassroom .tc-inline-tag{display:inline-flex;align-items:center;height:20px;padding:0 6px;border-radius:999px;background:var(--bg2);color:var(--muted,#6B7686);font-size:10px;font-weight:500}
@media(max-width:849px){
 .cf-material-head{flex-direction:column;align-items:stretch;gap:10px}
 .cf-material-actions{justify-content:flex-start}
 .cf-material-actions .cf-btn{flex:1 1 auto}
 .cf-mat-row{align-items:flex-start;flex-direction:column}
 .cf-mat-actions{width:100%;justify-content:flex-start}
 .cf-livebar{padding:10px 12px}
 .cf-livebar-main,.cf-livebar-actions{flex-basis:100%}
 .cf-livebar-actions{gap:6px}
 .cf-livebar-actions .cf-btn{flex:1 1 auto}
 .cf-signin-inline{flex-basis:100%}
 #cf-live-activity #teaAiClassroom{height:min(50vh,420px)!important;min-height:280px!important}
}

/* 开课页：单一课堂模式卡 */
.cf-mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0 8px}
.cf-mode-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:96px;padding:12px 14px;border:1px solid var(--outline);border-radius:12px;background:#fff;text-align:left;font:inherit;cursor:pointer;color:var(--fg)}
.cf-mode-card b{font-size:14px;font-weight:650}
.cf-mode-card span{font-size:12px;line-height:1.6;color:var(--muted,#6B7686)}
.cf-mode-card.on{border-color:var(--p40,#6B8FDB);background:var(--p95,#EEF4FF);box-shadow:inset 0 0 0 1px var(--p40,#6B8FDB)}
.cf-mode-card[disabled]{opacity:.55;cursor:not-allowed;background:var(--bg2)}
.cf-note-warn{color:#9A5B00}
.cf-advanced{margin-top:10px;border-top:1px solid var(--outline);padding-top:10px}
.cf-advanced>summary{cursor:pointer;font-size:12px;color:var(--muted,#6B7686);min-height:32px;display:flex;align-items:center}
@media(max-width:540px){.cf-mode-grid{grid-template-columns:1fr}}

/* 大屏课堂：实时工作台是操作界面，不套用阅读页的 1040/1120 正文行长。 */
@media (min-width:1440px){
  #teacher #pgCourseTask.on > .cf-shell{
    width:min(1600px,calc(100% - 64px));
    max-width:1600px;
    margin-inline:auto;
  }
}

html body #pgCourseTask .cf-state{
  padding:28px 18px 26px!important;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}
html body #pgCourseTask .cf-state-mark{
  width:46px;height:46px;border-radius:14px;
  display:grid;place-items:center;
  background:var(--p95,#EEF4FF);color:var(--p40,#2457D6);
  margin-bottom:12px;
}
html body #pgCourseTask .cf-state-mark svg{width:24px;height:24px;display:block}
html body #pgCourseTask .cf-state-error .cf-state-mark{background:#FFF4E8;color:#A15C00}
html body #pgCourseTask .cf-state h3{
  margin:0;font-size:15px;line-height:1.45;font-weight:700;color:#253247;
}
html body #pgCourseTask .cf-state p{
  margin:7px auto 0;max-width:340px;
  font-size:12px;line-height:1.75;color:var(--muted,#6B7686);
}
html body #pgCourseTask .cf-state-act{
  display:flex;flex-wrap:wrap;justify-content:center;gap:8px;
  width:100%;margin-top:16px;
}
html body #pgCourseTask .cf-state-act .cf-btn{
  width:auto;min-width:150px;flex:0 1 auto;
}

/* 360–650：课程页左右留白与主页面一致（16px）。
   原课程页在 390 宽度用 14px，和首页/教学页的 16px 差 2px，切换时内容边缘会轻微跳动。
   320 及以下保留更窄的 12px，不牺牲小屏可用宽度。 */
@media (min-width:360px) and (max-width:650px){
  html body #pgCourseTask .cf-head,
  html body #pgCourseTask .cf-main{
    padding-left:16px!important;
    padding-right:16px!important;
  }
}

html[data-cfp^="room-"] #pgCourseTask,
#pgLive{
  --live-ink:#101828;
  --live-sub:#667085;
  --live-line:#E4E7EC;
  --live-soft:#F8FAFC;
  color:var(--live-ink);
}
html[data-cfp^="room-"] #pgCourseTask{font-size:14px;line-height:1.65}
html[data-cfp^="room-"] #pgCourseTask .cf-head{padding:18px 24px 14px;margin:0 0 2px}
html[data-cfp^="room-"] #pgCourseTask .cf-head h2{
  font-size:20px;line-height:1.35;font-weight:650;letter-spacing:-.01em;color:#101828;
}
html[data-cfp^="room-"] #pgCourseTask .cf-head .cf-eyebrow{
  font-size:13px;line-height:1.55;font-weight:400;color:#667085;margin-top:4px;
}
html[data-cfp^="room-"] #pgCourseTask .cf-main{padding:8px 24px 24px;gap:14px}
html[data-cfp^="room-"] #pgCourseTask .cf-card{
  padding:16px 18px;border:1px solid var(--live-line);border-radius:12px;
  background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.03);
}
html[data-cfp^="room-"] #pgCourseTask .cf-card>.h{
  margin:0 0 10px;font-size:15px;line-height:1.45;font-weight:650;letter-spacing:0;color:#101828;
}
html[data-cfp^="room-"] #pgCourseTask .cf-card h3{
  font-size:15.5px;line-height:1.7;font-weight:600;color:#101828;
}
html[data-cfp^="room-"] #pgCourseTask .cf-card p{
  margin:8px 0;font-size:14px;line-height:1.7;color:#475467;
}
html[data-cfp^="room-"] #pgCourseTask .cf-note{
  font-size:12.5px;line-height:1.65;color:#667085;
}
html[data-cfp^="room-"] #pgCourseTask .cf-badge{
  font-size:12px;padding:3px 9px;color:#175CD3;background:#EFF4FF;
}
html[data-cfp^="room-"] #pgCourseTask .cf-item{font-size:14px;line-height:1.65}
html[data-cfp^="room-"] #pgCourseTask .cf-btn{
  min-height:40px;padding:8px 14px;border-radius:10px;font-size:13.5px;font-weight:600;letter-spacing:0;
}
html[data-cfp^="room-"] #pgCourseTask .cf-btn.danger{
  color:#B42318;border-color:#FDA29B;background:#FFFAF9;
}

/* 现场页页头：标题用本节章节名，学期与班级收进副标题，避免一句长串挤成两行。 */
html[data-cfp="room-live"] #pgCourseTask .cf-head{padding:16px 24px 12px}
html[data-cfp="room-live"] #pgCourseTask .cf-head h2{font-size:20px}
html[data-cfp="room-live"] #pgCourseTask .cf-main{padding:8px 24px 24px}

/* 现场顶部：状态、签到码和操作一排；不再出现第二套“讲授/答疑”控件。 */
html[data-cfp="room-live"] #pgCourseTask .cf-livebar{
  display:flex;align-items:flex-start;justify-content:space-between;gap:14px;
  padding:12px 16px;margin:0 0 14px;border:1px solid var(--live-line);border-radius:12px;
  background:#fff;
}
html[data-cfp="room-live"] #pgCourseTask .cf-livebar-main{
  display:flex;align-items:center;flex:1 1 520px;gap:12px;min-width:0;
}
html[data-cfp="room-live"] #pgCourseTask .cf-live-state{
  display:inline-flex;align-items:center;gap:6px;flex:none;
  font-size:12.5px;line-height:1.4;font-weight:600;color:#344054;
}
html[data-cfp="room-live"] #pgCourseTask .cf-live-state i{
  width:6px;height:6px;border-radius:50%;background:#12B76A;box-shadow:0 0 0 3px #ECFDF3;
}
html[data-cfp="room-live"] #pgCourseTask .cf-signin-inline{
  flex:1 1 320px;min-width:0;margin:0;padding:0;border:0;background:transparent;
}
html[data-cfp="room-live"] #pgCourseTask .cf-signin-inline>summary{
  display:flex;align-items:center;gap:8px;min-height:38px;padding:0;
  font-size:12.5px;line-height:1.4;color:#667085;cursor:pointer;list-style:none;
}
html[data-cfp="room-live"] #pgCourseTask .cf-signin-inline>summary::-webkit-details-marker{display:none}
html[data-cfp="room-live"] #pgCourseTask .cf-signin-inline>summary::after{
  content:"";width:7px;height:7px;margin-left:auto;border-right:1.5px solid #667085;border-bottom:1.5px solid #667085;
  transform:rotate(45deg);transition:transform .15s ease;flex:none;
}
html[data-cfp="room-live"] #pgCourseTask .cf-signin-inline[open]>summary::after{transform:rotate(225deg)}
html[data-cfp="room-live"] #pgCourseTask .cf-signin-label{flex:none}
html[data-cfp="room-live"] #pgCourseTask .cf-signin-inline>summary b{
  margin:0;font-size:17px;line-height:1.2;font-weight:650;letter-spacing:.08em;color:#101828;
}
html[data-cfp="room-live"] #pgCourseTask .cf-signin-count{
  flex:none;padding:2px 8px;border-radius:999px;background:#F2F4F7;
  font-size:11.5px;line-height:1.5;color:#667085;font-variant-numeric:tabular-nums;
}
html[data-cfp="room-live"] #pgCourseTask .cf-signin-inline .cf-code{
  font-size:20px;line-height:1.3;font-weight:650;letter-spacing:.1em;color:#2457D6;margin:10px 0 4px;
}
html[data-cfp="room-live"] #pgCourseTask .cf-signin-inline .cf-note{margin:4px 0}
html[data-cfp="room-live"] #pgCourseTask .cf-inline-actions{margin:8px 0 4px}
html[data-cfp="room-live"] #pgCourseTask .cf-livebar-actions{
  display:flex;align-items:center;gap:8px;flex:none;
}
html[data-cfp="room-live"] #pgCourseTask .cf-livebar-actions .cf-btn{white-space:nowrap}
html[data-cfp="room-live"] #pgCourseTask .cf-random-slot{
  flex-basis:100%;min-height:0;margin-top:2px;font-size:12.5px;color:#667085;
}
html[data-cfp="room-live"] #pgCourseTask .cf-random-slot b{font-size:16px;color:#101828}

/* 主体卡：去掉“选中”式四边框，回到与右栏一致的普通卡片。 */
html[data-cfp="room-live"] #pgCourseTask .course-live-layout{
  grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:16px;
}
/* 右栏是课堂的辅助信息，不应被左栏高度拉长。旧规则让整列 stretch，
   空态时 AI 记录和投票会被拆成两张占满整列的大白卡，右下方大面积留白。
   让右栏按内容高度收放并随主问题滚动吸顶，左栏仍保持主舞台的高度。 */
@media(min-width:850px){
  html[data-cfp="room-live"] #pgCourseTask .cf-main{overflow:visible}
  html[data-cfp="room-live"] #pgCourseTask .course-live-layout aside{
    position:sticky;top:12px;align-self:start;height:max-content;z-index:2;
  }
}
html[data-cfp="room-live"] #pgCourseTask .course-live-layout #cf-quiz-focus>.card{
  border:1px solid var(--live-line)!important;border-top:1px solid var(--live-line)!important;
  border-radius:12px!important;box-shadow:0 1px 2px rgba(16,24,40,.03)!important;
  padding:18px!important;min-height:240px;
}
html[data-cfp="room-live"] #pgCourseTask .course-live-layout #cf-quiz-focus>.card>button:last-child{
  min-height:40px;margin-top:14px;
}
html[data-cfp="room-live"] #pgCourseTask .cf-qa{padding-bottom:10px}
html[data-cfp="room-live"] #pgCourseTask .cf-qa-head{align-items:center;gap:8px;margin-bottom:4px}
html[data-cfp="room-live"] #pgCourseTask .cf-qa-head .h{font-size:15px;font-weight:650;color:#101828}
html[data-cfp="room-live"] #pgCourseTask .cf-qa-live{font-size:11.5px;color:#067647}
html[data-cfp="room-live"] #pgCourseTask .cf-qa-head .cf-note{font-size:11.5px}
html[data-cfp="room-live"] #pgCourseTask .cf-qa-badge{font-size:11px}
html[data-cfp="room-live"] #pgCourseTask .cf-poll-card{padding-bottom:12px}
html[data-cfp="room-live"] #pgCourseTask .cf-poll-head .h{font-size:15px;font-weight:650}

/* AI 记录组件：外层已经有标题，内部的“上课工作台……”上下文和粗边框都去掉。 */
html[data-cfp="room-live"] #pgCourseTask #cf-live-activity #teaAiClassroom .tc-head{
  padding:0 0 8px!important;border-bottom:0!important;background:transparent!important;
}
html[data-cfp="room-live"] #pgCourseTask #cf-live-activity #teaAiClassroom .tc-context{display:none!important}
html[data-cfp="room-live"] #pgCourseTask #cf-live-activity #teaAiClassroom .tc-subline{
  margin-top:0;gap:8px;font-size:11.5px;line-height:1.5;
}
html[data-cfp="room-live"] #pgCourseTask #cf-live-activity #teaAiClassroom .tc-meta{font-size:11.5px}
html[data-cfp="room-live"] #pgCourseTask #cf-live-activity #teaAiClassroom .tc-usage{
  margin:8px 0 0;padding:8px 10px;border-color:#EAECF0;border-radius:9px;background:#F8FAFC;
  font-size:12.5px;line-height:1.55;
}
html[data-cfp="room-live"] #pgCourseTask #cf-live-activity #teaAiClassroom .tc-usage-main{gap:4px;font-size:12.5px}
html[data-cfp="room-live"] #pgCourseTask #cf-live-activity #teaAiClassroom .tc-usage-main b{font-size:15px;font-weight:650}
html[data-cfp="room-live"] #pgCourseTask #cf-live-activity #teaAiClassroom .tc-usage-last{font-size:11.5px}
html[data-cfp="room-live"] #pgCourseTask #cf-live-activity #teaAiClassroom .tc-usage-wrap{margin:6px 0 0}
html[data-cfp="room-live"] #pgCourseTask #cf-live-activity #teaAiClassroom .tc-feed{padding:10px 0 12px!important}
/* 课堂记录尚无提问时，讨论分组标题本身不足以撑起 200px 的对话列表；
   否则右栏会在 AI 记录卡内部再留一段空白。 */
html[data-cfp="room-live"] #pgCourseTask #cf-live-activity #teaAiClassroom .tc-feed{min-height:0!important}
html[data-cfp="room-live"] #pgCourseTask #cf-live-activity #teaAiClassroom .tc-empty-hero h3{
  font-size:15px;font-weight:650;letter-spacing:0;
}
html[data-cfp="room-live"] #pgCourseTask #cf-live-activity #teaAiClassroom .tc-empty-hero p{
  font-size:12.5px;line-height:1.6;
}
html[data-cfp="room-live"] #pgCourseTask #cf-live-activity #teaAiClassroom .tc-feed .room-event-text{font-size:13.5px;line-height:1.7}

/* 课堂中心页：与现场页同一套字号，不再让“开始上课”像工具页。 */
#pgLive .cf-head{padding:18px 20px 12px;margin:0}
#pgLive .cf-head h2{font-size:20px;line-height:1.35;font-weight:650;letter-spacing:-.01em;color:#101828}
#pgLive .cf-head .cf-eyebrow{font-size:13px;line-height:1.55;color:#667085;margin-top:4px}
#pgLive .cf-main{padding:8px 20px 20px}
#pgLive .cf-card{padding:16px 18px;border:1px solid var(--live-line);border-radius:12px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.03)}
#pgLive .cf-card>.h{font-size:15px;line-height:1.45;font-weight:650;color:#101828;margin-bottom:10px}
#pgLive .cf-card p{font-size:14px;line-height:1.7;color:#475467}
#pgLive .cf-note{font-size:12.5px;line-height:1.65;color:#667085}
#pgLive .cf-row strong{font-size:14px;font-weight:600}
#pgLive .cf-row small{font-size:12px}
#pgLive .cf-btn{font-size:13.5px;font-weight:600;border-radius:10px;min-height:40px}

@media(max-width:650px){
  html[data-cfp^="room-"] #pgCourseTask .cf-head{padding:14px 16px 10px}
  html[data-cfp^="room-"] #pgCourseTask .cf-head h2{font-size:19px}
  html[data-cfp^="room-"] #pgCourseTask .cf-head .cf-eyebrow{font-size:12.5px}
  html[data-cfp^="room-"] #pgCourseTask .cf-main{padding:8px 16px 16px}
  html[data-cfp^="room-"] #pgCourseTask .cf-card{padding:14px}
  html[data-cfp="room-live"] #pgCourseTask .cf-head{padding:14px 16px 10px}
  html[data-cfp="room-live"] #pgCourseTask .cf-main{padding:8px 16px 16px}
  html[data-cfp="room-live"] #pgCourseTask .cf-livebar{display:block;padding:12px}
  html[data-cfp="room-live"] #pgCourseTask .cf-livebar-main{display:flex;flex-direction:column;align-items:stretch;gap:8px;flex:none}
  html[data-cfp="room-live"] #pgCourseTask .cf-live-state{align-self:flex-start}
  html[data-cfp="room-live"] #pgCourseTask .cf-signin-inline{flex:0 0 auto;width:100%}
  html[data-cfp="room-live"] #pgCourseTask .cf-livebar-actions{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px;
  }
  html[data-cfp="room-live"] #pgCourseTask .cf-livebar-actions .cf-btn{
    width:100%;min-width:0;padding:9px 4px;font-size:13px;white-space:normal;
  }
  html[data-cfp="room-live"] #pgCourseTask .course-live-layout{grid-template-columns:minmax(0,1fr)}
  html[data-cfp="room-live"] #pgCourseTask .course-live-layout #cf-quiz-focus>.card{min-height:0}
}

/* 空记录时不要把右栏撑成一整屏空白；有真实提问记录时仍保持会话高度。 */
html[data-cfp="room-live"] body #teacher #pgCourseTask #cf-live-activity #cf-class-activity #teaAiClassroom:has(.tc-empty){
  height:auto!important;min-height:220px!important;
}
@media(min-width:851px){
  html[data-cfp="room-live"] #pgCourseTask .cf-signin-inline{max-width:460px}
}

/* details 默认三角与右侧自绘箭头只保留一个 */
html[data-cfp="room-live"] #pgCourseTask .cf-signin-inline>summary::marker{
  content:"";display:none;
}

/* 旧页面里有若干 !important 字号覆盖：课堂页的层级要真正落下去，必须用同权重的锁。 */
html[data-cfp^="room-"] #pgCourseTask .cf-head h2{
  font-size:19px!important;line-height:1.35!important;font-weight:650!important;
  letter-spacing:-.01em!important;color:#101828!important;
}
html[data-cfp^="room-"] #pgCourseTask .cf-head .cf-eyebrow{
  font-size:12.5px!important;line-height:1.55!important;font-weight:400!important;color:#667085!important;
}
html[data-cfp^="room-"] #pgCourseTask .cf-note{
  font-size:12.5px!important;line-height:1.65!important;color:#667085!important;
}
html[data-cfp^="room-"] #pgCourseTask select{
  font-size:14px!important;font-weight:500!important;color:#344054!important;
}
html[data-cfp^="room-"] #pgCourseTask input:not([type=checkbox]):not([type=radio]),
html[data-cfp^="room-"] #pgCourseTask textarea{
  font-size:14px!important;font-weight:400!important;
}
@media(min-width:651px){
  html[data-cfp^="room-"] #pgCourseTask .cf-head h2{font-size:20px!important}
  html[data-cfp^="room-"] #pgCourseTask .cf-head .cf-eyebrow{font-size:13px!important}
}

/* 课堂流程底部操作：窄屏两个按钮等宽，不再一大一小。 */
@media(max-width:760px){
  html[data-cfp^="room-"] #pgCourseTask .cf-foot>.cf-btn{
    flex:1 1 0!important;min-width:0!important;width:auto!important;margin:0!important;
    padding-left:10px!important;padding-right:10px!important;font-size:14px!important;
  }
}
@media(min-width:1024px){
  html[data-cfp^="room-"] #pgCourseTask select{font-size:14px!important}
}

/* 记录卡按内容收放，最多占半屏；固定 520 高会把一条提问撑成整块空白。 */
html[data-cfp="room-live"] body #teacher #pgCourseTask #cf-live-activity #cf-class-activity #teaAiClassroom{
  height:auto!important;min-height:220px!important;max-height:min(56vh,520px)!important;
}

/* 中文标题用 600，不用 650/800；去掉负字距，避免笔画挤在一起。 */
html[data-cfp^="room-"] #pgCourseTask .cf-head h2{
  font-weight:600!important;letter-spacing:0!important;
}
html[data-cfp^="room-"] #pgCourseTask .cf-card>.h,
html[data-cfp="room-live"] #pgCourseTask .cf-qa-head .h,
html[data-cfp="room-live"] #pgCourseTask .cf-poll-head .h{
  font-weight:600!important;letter-spacing:0!important;
}
#pgLive .cf-head h2{font-weight:600;letter-spacing:0}
#pgLive .cf-card>.h{font-weight:600}
html[data-cfp="room-live"] #pgCourseTask .cf-signin-inline>summary::before{
  content:"";display:none!important;
}

/* ===== 课堂中心首页手机端密度 =====
   首页是列表页，不是课堂现场页；主按钮和行标题此前沿用了现场页的触控大号，
   看起来比作业/班级列表大一整圈。这里只收 #pgLive 的课堂首页，不动现场页。 */
@media(max-width:650px){
 html body:not(#ctl-a):not(#ctl-b) #pgLive .class-hub-grid .cf-actions .cf-btn{
  height:38px!important;min-height:38px!important;padding:0 12px!important;
  font-size:13px!important;line-height:38px!important;border-radius:8px!important;
 }
 #pgLive .class-hub-grid{gap:12px}
 #pgLive .class-hub-grid .cf-card{padding:14px 16px}
 #pgLive .class-hub-grid .cf-card>.h{font-size:13px;font-weight:600;margin-bottom:7px}
 #pgLive .class-hub-grid .cf-row{padding:8px 0}
 #pgLive .class-hub-grid .cf-row strong{font-size:14px}
 #pgLive .class-hub-grid .cf-row small{font-size:12px}
 #pgLive .class-hub-grid .cf-note{font-size:12px}
}

/* ===== 短屏桌面：1280×720 / 1366×768 这一档默认笔记本视口 =====
   这类屏幕的 Windows 默认缩放通常是 150%，浏览器逻辑高度只有 720–768px。
   页面仍是桌面宽度，但标题、签到卡和题目选项的纵向占用会把首屏压得很紧。
   只在高度受限且宽度已进入桌面布局时收紧间距，不改 1440×960 和手机端。 */
@media(min-width:850px) and (max-width:1099px){
 html[data-cfp="room-live"] #pgCourseTask .course-live-layout{grid-template-columns:minmax(0,1fr)!important}
 html[data-cfp="room-live"] #pgCourseTask .course-live-layout aside{position:static!important}
}
@media(min-width:1100px) and (max-height:780px){
 body #tBody{padding:18px 28px 20px!important}
 html[data-cfp="room-live"] #pgCourseTask>.cf-shell{margin:0 18px}
 html[data-cfp="room-live"] #pgCourseTask .cf-head{padding:8px 18px 6px!important;margin-bottom:0!important}
 html[data-cfp="room-live"] #pgCourseTask .cf-main{padding:4px 18px 12px!important}
 html[data-cfp="room-live"] #pgCourseTask .cf-card{padding:14px 16px!important}
 html body #teacher #pgCourseTask .course-live-layout #cf-quiz-focus>.card{padding:14px 16px!important}
 html[data-cfp="room-live"] #pgCourseTask .cf-check{padding-top:7px!important;padding-bottom:7px!important}
 html[data-cfp="room-live"] #pgCourseTask .cf-code{font-size:26px!important;margin:0!important}
 html[data-cfp="room-live"] #pgCourseTask #flow-signin>p{margin-bottom:6px!important}
 html[data-cfp="room-live"] #pgCourseTask .course-live-layout{gap:12px!important}
 html[data-cfp="room-live"] #pgCourseTask .course-live-layout aside{gap:10px!important}
}

/* 无随堂题时不保留固定演示高度，避免左侧大面积空白。 */
#pgCourseTask #cf-quiz-focus>.card.cf-quiz-empty{min-height:0!important;padding:16px 18px!important}

/* 教师工作台：文档投屏卡（点击资料全屏放大，不在学生端广播） */
.cf-project-card.card{margin-top:30px;border-color:#DCE5F2!important}
/* 移除会限制固定定位投票弹层的变换提示。 */
html[data-cfp="room-live"] #pgCourseTask #cf-live-activity{will-change:auto!important}
.cf-project-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.cf-project-head .h{margin:0;font-size:15px;font-weight:650;line-height:1.45;color:#101828}
.cf-project-note{margin:5px 0 0!important;font-size:12px!important;line-height:1.6!important;color:#667085!important;font-weight:400}
.cf-project-count{flex:none;height:22px;padding:0 8px;border-radius:999px;background:#F2F6FF;color:#2457D6;font-size:11px;font-weight:600;line-height:22px}
.cf-project-list{display:flex;flex-direction:column;gap:6px;margin-top:11px;max-height:280px;overflow:auto;padding-right:2px}
.cf-project-item{display:flex;align-items:center;gap:9px;width:100%;min-width:0;padding:9px 10px;border:1px solid #E5EBF4;border-radius:9px;background:#fff;text-align:left;font:inherit;color:inherit;cursor:pointer;text-decoration:none!important}
.cf-project-item:hover{border-color:#B9CDF4;background:#F8FAFF}
.cf-project-item.is-muted{cursor:default;background:#FAFBFD}
.cf-project-item.is-muted:hover{border-color:#E5EBF4;background:#FAFBFD}
.cf-project-item .cf-mat-ext{width:32px;height:32px;line-height:32px}
.cf-project-name{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.cf-project-name b{font-size:12.5px;line-height:1.4;font-weight:600;color:#101828;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cf-project-name span{font-size:11px;line-height:1.4;color:#667085;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cf-project-arrow{flex:none;color:#98A2B3;font-size:13px;line-height:1}
.cf-project-empty{padding:10px 0 2px;font-size:12px;line-height:1.6;color:#667085}
.cf-project-copy{min-width:0}
.cf-project-tools{display:flex;align-items:center;gap:7px;flex:none}
.cf-project-upload{display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 10px;border:1px solid #D7E3FF;border-radius:7px;background:#F0F5FF;color:#1D46B8;font-size:11.5px;font-weight:600;line-height:1;white-space:nowrap;cursor:pointer}
.cf-project-upload:hover{background:#E8F0FF;border-color:#B9CDF4}
.cf-project-upload input{display:none}
.cf-project-status{margin-top:8px;font-size:11.5px;line-height:1.6;color:#667085}
.cf-project-status:empty{display:none}
.cf-project-status[data-tone="warn"]{color:#B54708}
.cf-project-row{display:flex;align-items:center;gap:4px}
.cf-project-row .cf-project-item{flex:1;width:auto}
.cf-project-remove{flex:none;width:26px;height:26px;border:0;border-radius:6px;background:transparent;color:#98A2B3;font:inherit;font-size:16px;font-weight:500;line-height:1;cursor:pointer;padding:0;white-space:nowrap}
.cf-project-remove:hover{background:#FFF1F0;color:#B42318}
body.cf-project-open{overflow:hidden!important}
#cfMaterialProject{position:fixed;inset:0;z-index:100000;display:flex;flex-direction:column;background:#fff;color:#172033;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
#cfMaterialProject .cf-project-view-head{display:flex;align-items:center;gap:12px;flex:none;padding:10px 16px;border-bottom:1px solid #E4EAF2;background:#fff}
#cfMaterialProject .cf-project-view-title{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
#cfMaterialProject .cf-project-view-title b{font-size:14px;line-height:1.45;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#cfMaterialProject .cf-project-view-title span{font-size:11px;line-height:1.4;color:#667085}
#cfMaterialProject .cf-project-view-actions{display:flex;align-items:center;gap:6px;flex:none}
#cfMaterialProject .cf-project-view-btn{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 10px;border:1px solid #D7E3FF;border-radius:8px;background:#F0F5FF;color:#1D46B8;font:inherit;font-size:12px;font-weight:600;text-decoration:none!important;white-space:nowrap;cursor:pointer}
#cfMaterialProject .cf-project-view-btn.is-close{background:#fff;border-color:#E4EAF2;color:#475467}
#cfMaterialProject .cf-project-view-body{flex:1;min-height:0;display:flex;flex-direction:column;background:#F7F9FC;overflow:hidden}
#cfMaterialProject .cf-project-frame{width:100%;height:100%;border:0;background:#fff}
#cfMaterialProject .cf-project-imagewrap{flex:1;min-height:0;overflow:auto;padding:16px;display:flex;align-items:center;justify-content:center}
#cfMaterialProject .cf-project-image{display:block;max-width:100%;max-height:100%;object-fit:contain;margin:auto;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.06)}
#cfMaterialProject .cf-project-empty-view{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:24px;text-align:center;color:#475467;font-size:13px;line-height:1.7}
#cfMaterialProject .cf-project-empty-view b{font-size:16px;font-weight:600;color:#172033}
#cfMaterialProject .cf-project-empty-view p{margin:0;max-width:90%;overflow-wrap:anywhere}
@media(max-width:849px){
 .cf-project-list{max-height:240px}
 #cfMaterialProject .cf-project-view-head{padding-left:12px;padding-right:12px}
 #cfMaterialProject .cf-project-view-title b{font-size:13px}
 #cfMaterialProject .cf-project-view-btn{min-height:32px;padding:0 8px;font-size:11px}
 .cf-project-head{flex-wrap:wrap}
 .cf-project-tools{width:100%;justify-content:flex-end}
}

/* 教师文档投屏：服务端页图浏览，避免浏览器 PDF 侧栏与深色工具栏 */
#cfMaterialProject .cf-project-slidewrap{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto;padding:16px;background:#EEF2F8}
#cfMaterialProject .cf-project-slide{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;background:#fff;box-shadow:0 1px 3px rgba(16,24,40,.08)}
#cfMaterialProject .cf-project-slide-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(238,242,248,.94);color:#475467;font-size:13px;line-height:1.6;text-align:center;z-index:1}
#cfMaterialProject .cf-project-pager{flex:none;height:46px;display:flex;align-items:center;justify-content:center;gap:14px;border-top:1px solid #DCE5F2;background:#fff}
#cfMaterialProject .cf-project-pagebtn{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 10px;border:1px solid #D7E3FF;border-radius:7px;background:#F0F5FF;color:#1D46B8;font:inherit;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
#cfMaterialProject .cf-project-pagebtn:disabled{opacity:.42;cursor:default}
#cfMaterialProject .cf-project-pagecount{display:inline-flex;align-items:center;gap:6px;min-width:58px;justify-content:center;color:#667085;font-size:11px;line-height:1}
#cfMaterialProject .cf-project-pagecount b{font-size:14px;font-weight:650;color:#172033}
#cfMaterialProject .cf-project-pagecount i{font-style:normal;color:#98A2B3}
#cfMaterialProject .cf-project-pagecount span{font-size:12px;color:#667085}
@media(max-width:849px){
 #cfMaterialProject .cf-project-slidewrap{padding:8px}
 #cfMaterialProject .cf-project-pager{height:44px;gap:8px}
 #cfMaterialProject .cf-project-pagebtn{min-height:30px;padding:0 9px;font-size:11px}
}

/* ---- 章节扩展：阅读弹层与发布页入口（20261125.2100） ---- */
.kb-ext-mask{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(23,32,51,.42)}
.kb-ext-panel{width:min(760px,94vw);max-height:min(86vh,780px);display:flex;flex-direction:column;background:#fff;border:1px solid #DCE5F2;border-radius:12px;overflow:hidden;color:#172033}.kb-ext-panel:focus{outline:none}
.kb-ext-head{flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 18px 13px;border-bottom:1px solid #EDF1F7}
.kb-ext-head h2{margin:0;font-size:17px;line-height:1.35;font-weight:650;color:#172033}
.kb-ext-head p{margin:5px 0 0;font-size:12px;line-height:1.5;color:#667085}
.kb-ext-close{flex:none;width:30px;height:30px;margin:-3px -4px 0 0;padding:0;border:0;border-radius:6px;background:transparent;color:#667085;font:400 20px/1 system-ui,sans-serif;cursor:pointer}
.kb-ext-close:hover{background:#F2F5FA;color:#172033}
.kb-ext-body{flex:1;min-height:0;overflow:auto;padding:18px 20px 22px}
.kb-ext-intro{margin:0 0 10px;padding:10px 12px;border:1px solid #E9EEF6;border-radius:8px;background:#F7F9FC;font-size:12.8px;line-height:1.75;color:#344054}.kb-ext-lead{margin:0 0 14px;font-size:13px;line-height:1.8;color:#475467}
.kb-ext-list{list-style:none;margin:0;padding:0;display:grid;gap:15px;color:#172033}
.kb-ext-item{min-width:0}
.kb-ext-item-head{display:flex;align-items:baseline;gap:8px;margin:0 0 8px}
.kb-ext-num{flex:none;min-width:18px;font-size:12px;font-weight:600;color:#667085;font-variant-numeric:tabular-nums}
.kb-ext-item-head b{font-size:13.5px;font-weight:600;line-height:1.5;color:#172033}
.kb-ext-code{margin:0 0 8px;padding:11px 13px;border:1px solid #E5EBF3;border-radius:8px;background:#F8FAFC;color:#1F2937;font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4}
.kb-ext-note{margin:0;font-size:12.5px;line-height:1.75;color:#475467}
.kb-ext-q{white-space:pre-line;overflow-wrap:anywhere}
.kb-ext-foot{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 18px;border-top:1px solid #EDF1F7;background:#FAFBFD;font-size:11.5px;color:#8A94A6}
.kb-ext-done{min-height:32px;padding:0 14px;border:1px solid #D7E3FF;border-radius:7px;background:#F0F5FF;color:#1D46B8;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.lsr-row.lsr-ext{background:transparent}
.lsr-row.lsr-ext:hover{background:#F8FAFC}
.lsr-row.lsr-ext .lsr-meta{white-space:normal;line-height:1.5}
.cf-ext-choice{grid-column:1/-1;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.cf-ext-radio{width:19px;height:19px;flex:none;box-sizing:border-box;border:1.5px solid #7E8CA0;border-radius:50%;background:#fff}
.cf-ext-copy{display:flex;align-items:baseline;gap:8px;min-width:0;flex:1}
.cf-ext-name{font-size:14px;font-weight:400;color:#172033;line-height:1.4}
.cf-ext-choice small{font-size:11.5px;line-height:1.5;color:#7C8899;white-space:normal}
@media(max-width:640px){
 .kb-ext-mask{padding:10px}
 .kb-ext-panel{max-height:92vh;border-radius:10px}
 .kb-ext-head{padding:13px 14px 11px}
 .kb-ext-body{padding:14px 15px 18px}
 .kb-ext-list{gap:13px}
 .kb-ext-code{padding:9px 10px;font-size:11.5px;line-height:1.65}
 .kb-ext-intro{padding:8px 10px;font-size:12.2px;line-height:1.7}
 .kb-ext-note{font-size:12px;line-height:1.7}
 .kb-ext-foot{padding:9px 14px}
}

/* 结束课堂：课后扩展勾选项 */
.cf-end-mask{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(23,32,51,.42)}
.cf-end-card{width:min(460px,94vw);background:#fff;border:1px solid #DCE5F2;border-radius:12px;padding:20px;color:#172033;box-sizing:border-box}
.cf-end-card h2{margin:0 0 7px;font-size:17px;line-height:1.35;font-weight:650}
.cf-end-copy{margin:0 0 16px;font-size:12.5px;line-height:1.75;color:#667085}
.cf-end-check{display:flex;align-items:flex-start;gap:10px;padding:12px 13px;border:1px solid #E2E8F0;border-radius:9px;background:#FAFBFD;cursor:pointer}
.cf-end-check input{flex:none;width:16px;height:16px;margin:2px 0 0;accent-color:#1D46B8}
.cf-end-check span{display:flex;flex-direction:column;gap:4px;min-width:0}
.cf-end-check strong{font-size:13px;font-weight:650;line-height:1.5}
.cf-end-check small{font-size:11.5px;line-height:1.65;color:#667085}
.cf-end-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}
.cf-end-actions button{min-height:34px;padding:0 16px;border-radius:7px;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}
.cf-end-cancel{border:1px solid #DCE5F2;background:#fff;color:#475467}
.cf-end-ok{border:1px solid #1D46B8;background:#1D46B8;color:#fff}
@media(max-width:520px){.cf-end-mask{padding:12px}.cf-end-card{padding:17px}.cf-end-actions button{flex:1}}
