/* Homework authoring uses the platform's white-card, blue-action, neutral-control language. */
#pgCourseTask .cf-shell input[type="checkbox"],
#pgCourseTask .cf-shell input[type="radio"],
#pgCourseTask .cf-item input[type="checkbox"]{
  appearance:auto!important;-webkit-appearance:auto!important;
  width:18px!important;height:18px!important;min-width:18px!important;min-height:0!important;
  margin:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  display:inline-block!important;flex:0 0 18px!important;align-self:center;
  accent-color:var(--p40,#2457D6);cursor:pointer;transition:none!important
}
#pgCourseTask .cf-shell input[type="checkbox"]::before,
#pgCourseTask .cf-shell input[type="radio"]::before,
#pgCourseTask .cf-item input[type="checkbox"]::before{content:none!important;display:none!important}
#pgCourseTask .cf-check{
  display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;
  border:1px solid transparent;border-radius:10px;background:transparent;
  color:var(--txt1,#243247);font-size:14px;line-height:1.55;transition:background-color .15s,border-color .15s
}
#pgCourseTask .cf-check:hover{background:#F8FAFD;border-color:var(--line,#E3E8EF)}
#pgCourseTask .cf-check:has(input:checked){
  background:#F5F8FE;border-color:#C3D5F2;color:var(--p40,#2457D6);
  font-weight:600;box-shadow:inset 2px 0 0 var(--p40,#2457D6);padding-left:13px
}
#pgCourseTask .cf-item:has(input[type="checkbox"]:checked){
  background:#F5F8FF;border-bottom-color:#C6D7F5
}
#pgCourseTask .cf-check:focus-within:not(:has(input:checked)){outline:2px solid var(--p50,#2457D6);outline-offset:2px}
#pgCourseTask .cf-shell select,
#pgCourseTask .pub-custom-body select{
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7686' stroke-width='1.6'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E")!important;
  background-position:right 10px center!important;background-size:16px 16px!important;
  background-repeat:no-repeat!important;padding-right:34px!important;
  border:1px solid var(--line,#DCE4ED)!important;border-radius:10px!important;
  background-color:var(--surface,#fff)!important;color:var(--txt1,#243247)!important;
  box-shadow:none!important;font:inherit!important;font-size:14px!important
}
#pgCourseTask .cf-shell select:focus-visible,
#pgCourseTask .pub-custom-body :is(input,select,textarea):focus-visible{
  outline:2px solid var(--p50,#2457D6)!important;outline-offset:2px!important;
  border-color:var(--p50,#2457D6)!important;box-shadow:none!important
}
#pgCourseTask .cf-shell details>summary{display:flex;align-items:center;gap:8px;list-style:none}
#pgCourseTask .cf-shell details>summary::-webkit-details-marker{display:none}
#pgCourseTask .cf-shell details>summary::before{
  content:'›';width:14px;height:20px;margin:0;display:inline-grid;place-items:center;
  border:0;color:var(--muted,#6B7686);font-size:20px;line-height:1;transform:none
}
#pgCourseTask .cf-shell details[open]>summary::before{transform:rotate(90deg)}

#cf-custom-editor .pub-custom-sheet{width:100%;max-width:860px;box-sizing:border-box;background:var(--surface,#fff);border:1px solid var(--line,#DCE4ED);border-radius:14px;box-shadow:var(--shadow-1,0 1px 2px rgba(16,24,40,.05));overflow:visible}
#cf-custom-editor .pub-custom-body{display:grid;gap:2px;box-sizing:border-box;padding:18px;background:var(--surface,#fff);color:var(--txt1,#243247)}
#cf-custom-editor .pub-custom-body .fld{display:grid;gap:6px;margin:0 0 12px;color:var(--txt1,#243247);font-size:13px;font-weight:600;line-height:1.5}
#cf-custom-editor .pub-custom-body :is(input:not([type=file]),select,textarea){box-sizing:border-box;width:100%;min-width:0;min-height:44px;height:auto;margin:0;padding:10px 12px;border:1px solid var(--line,#DCE4ED);border-radius:10px;background:var(--surface,#fff);color:var(--txt1,#243247);font:inherit;font-size:14px;line-height:1.55;box-shadow:none}
#cf-custom-editor #pubCqChoice .pub-cq-option-grid input{margin-top:0!important;height:auto!important}
#cf-custom-editor .pub-custom-body textarea{min-height:88px;resize:vertical}
#cf-custom-editor .pub-custom-body :is(input,select,textarea)::placeholder{color:var(--txt3,#8795A8)}
#cf-custom-editor .pub-cq-tools{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}
#cf-custom-editor .pub-cq-tools .btn{width:auto;min-height:40px;margin:0;padding:8px 14px;border-radius:10px;font-size:13px}
#cf-custom-editor .pub-cq-tools .btn.sec{background:var(--surface,#fff);color:var(--p40,#2457D6);border:1px solid var(--line,#DCE4ED);box-shadow:none}
#cf-custom-editor .pub-cq-img{margin:0 0 10px}
#cf-custom-editor .pub-cq-img img{max-width:100%;max-height:360px;border:1px solid var(--line,#DCE4ED);border-radius:10px;background:#fff}
#cf-custom-editor .pub-cq-img button{min-height:36px;padding:6px 10px;border:0;border-radius:8px;background:transparent;color:var(--risk,#A93D39);font:inherit;font-size:13px}
#cf-custom-editor .pub-cq-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
#cf-custom-editor .pub-cq-option-grid label{display:grid;gap:5px;min-width:0}
#cf-custom-editor .pub-cq-answer-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#cf-custom-editor .pub-cq-answer-row label{display:grid;gap:6px;min-width:0}
#cf-custom-editor .pub-cq-more-options,
#cf-custom-editor .pub-cq-optional{margin:0 0 12px;border-top:1px solid var(--line,#E6EBF2);padding-top:6px}
#cf-custom-editor .pub-cq-more-options>summary,
#cf-custom-editor .pub-cq-optional>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;list-style:none;color:var(--txt2,#53637c);font-size:13px;font-weight:600}
#cf-custom-editor .pub-cq-more-options>summary::-webkit-details-marker,
#cf-custom-editor .pub-cq-optional>summary::-webkit-details-marker{display:none}
#cf-custom-editor .pub-cq-more-options>summary::after,
#cf-custom-editor .pub-cq-optional>summary::after{content:'›';margin-left:auto;color:var(--muted,#6B7686);font-size:20px;transition:transform .15s}
#cf-custom-editor .pub-cq-more-options[open]>summary::after,
#cf-custom-editor .pub-cq-optional[open]>summary::after{transform:rotate(90deg)}
#cf-custom-editor #pubCqEssay textarea{min-height:96px}
#cf-custom-editor .pub-custom-body>.cf-note{margin:0 0 12px;color:var(--muted,#6B7686);font-size:12px;line-height:1.65}
#cf-custom-editor .pub-custom-foot .btn{width:auto;min-height:44px;margin:0;padding:9px 16px;border-radius:10px;font-size:14px}

#pubCqBatchBox.pub-cq-batch{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:auto;margin:0;padding:16px;border:1px solid var(--line,#DCE4ED);border-radius:14px;background:var(--surface,#fff);box-shadow:var(--shadow-1,0 1px 2px rgba(16,24,40,.05))}
#pubCqBatchBox .pub-cq-batch-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:0 0 14px;border-bottom:1px solid var(--line,#E6EBF2)}
#pubCqBatchBox .pub-cq-batch-head h3{margin:0;color:var(--txt1,#243247);font-size:15px;font-weight:700;line-height:1.4}
#pubCqBatchBox .pub-cq-batch-head p{margin:4px 0 0;color:var(--muted,#6B7686);font-size:12px;line-height:1.6}
#pubCqBatchBox .pub-cq-count{flex:none;padding:4px 9px;border:1px solid var(--p90,#D3E0FB);border-radius:999px;background:var(--p99,#F7FAFE);color:var(--p40,#2457D6);font-size:12px;font-weight:600;white-space:nowrap}
#pubCqBatchBox .pub-cq-review-list{display:grid;gap:0}
#pubCqBatchBox .pub-cq-review-row{display:flex;align-items:flex-start;gap:14px;padding:14px 0;border-bottom:1px solid var(--line,#E6EBF2)}
#pubCqBatchBox .pub-cq-review-main{flex:1;min-width:0}
#pubCqBatchBox .pub-cq-review-stem{display:flex;align-items:flex-start;gap:10px;color:var(--txt1,#243247);font-size:14px;line-height:1.7;overflow-wrap:anywhere}
#pubCqBatchBox .pub-cq-review-stem>b{flex:none;color:var(--p40,#2457D6);font-size:12px;font-variant-numeric:tabular-nums}
#pubCqBatchBox .pub-cq-batch-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 0}
#pubCqBatchBox .pub-cq-batch-fields label{display:grid;gap:5px;min-width:0;color:var(--muted,#6B7686);font-size:12px;line-height:1.4}
#pubCqBatchBox .pub-cq-batch-fields select{box-sizing:border-box;width:100%;min-width:0;min-height:40px;padding:8px 32px 8px 10px;border:1px solid var(--line,#DCE4ED);border-radius:9px;background-color:#fff;color:var(--txt1,#243247);font:inherit;font-size:13px}
#pubCqBatchBox .pub-cq-review-actions{display:flex;flex:none;gap:6px}
#pubCqBatchBox .pub-cq-review-actions .cf-btn,
#pubCqBatchBox .pub-cq-batch-foot .cf-btn{width:auto;min-height:38px;margin:0;padding:7px 11px;border-radius:9px;font-size:13px}
#pubCqBatchBox .pub-cq-review-actions .pub-cq-remove{color:var(--risk,#A93D39)}
#pubCqBatchBox .pub-cq-batch-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:14px;color:var(--muted,#6B7686);font-size:12px;line-height:1.5}
@media(max-width:600px){
  #cf-custom-editor .pub-custom-body{padding:14px}
  #cf-custom-editor .pub-cq-option-grid,#cf-custom-editor .pub-cq-answer-row,#pubCqBatchBox .pub-cq-batch-fields{grid-template-columns:minmax(0,1fr)}
  #pubCqBatchBox.pub-cq-batch{padding:13px}
  #pubCqBatchBox .pub-cq-review-row{flex-direction:column;gap:10px;padding:13px 0}
  #pubCqBatchBox .pub-cq-review-actions{width:100%}
  #pubCqBatchBox .pub-cq-review-actions .cf-btn{flex:1}
  #pubCqBatchBox .pub-cq-batch-foot{align-items:flex-start;flex-direction:column}
  #pubCqBatchBox .pub-cq-batch-foot .cf-btn{width:100%}
}
@media(prefers-reduced-motion:reduce){#cf-custom-editor .pub-cq-more-options>summary::after,#cf-custom-editor .pub-cq-optional>summary::after{transition:none}}
