/* NOVA V8 RC8.4.2 UI cleanup. Only the protected classroom is restyled.
   Preserve original modules, student auth, question provenance, and Tavus mount. */
@media (min-width: 1000px) {
  html,body{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;}
  body{display:block!important;}
  #v8ProtectedClassroom{display:block!important;height:auto!important;min-height:0!important;overflow:visible!important;padding:12px 16px 40px!important;}
  #v8ProtectedClassroom[hidden]{display:none!important;}
  #v8Gate{overflow:visible!important;}
}
#v8ProtectedClassroom{max-width:1680px;margin:0 auto;}
#v8ProtectedClassroom .topbar{max-width:100%;margin-bottom:12px;}
#v8ProtectedClassroom .classroom{max-width:100%;width:100%;display:grid!important;grid-template-columns:minmax(285px,.87fr) minmax(0,1.55fr)!important;gap:16px!important;align-items:start!important;min-height:0!important;overflow:visible!important;}
#v8ProtectedClassroom .teacher-panel{grid-column:1;min-height:0!important;height:auto!important;overflow:visible!important;position:sticky;top:12px;border-radius:20px;}
#v8ProtectedClassroom .avatar-frame{max-width:275px;width:min(100%,275px);max-height:260px;}
#v8ProtectedClassroom .teacher-copy p{min-height:0!important;}
#v8ProtectedClassroom .teacher-controls{gap:8px;}
#v8ProtectedClassroom .board-panel{grid-column:2;min-width:0;min-height:0!important;height:auto!important;overflow:visible!important;grid-template-rows:auto auto minmax(300px,auto) auto!important;border-radius:20px;}
#v8ProtectedClassroom .board-stage{min-height:340px!important;height:clamp(340px,45vh,650px)!important;overflow:hidden!important;}
#v8ProtectedClassroom .lesson-svg{min-height:300px!important;}
#v8ProtectedClassroom .response-area{padding:16px!important;}
#v8ProtectedClassroom .nova-advanced-tools{grid-column:1 / -1;min-width:0;padding:12px 16px;border-radius:16px;border:1px solid #d8e2ee;background:white;}
#v8ProtectedClassroom .nova-advanced-tools > summary{cursor:pointer;color:#314d7c;font-weight:700;}
#v8ProtectedClassroom .nova-advanced-tools .utility-panel{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:12px;margin-top:14px;height:auto!important;overflow:visible!important;}
#v8ProtectedClassroom .nova-advanced-tools .utility-card{margin:0;}
#v8ProtectedClassroom #m03ChildHomework{display:none!important;}
#v8ProtectedClassroom .nova-active-question{min-width:0;background:linear-gradient(125deg,#f8fbff,#eef4ff);border-bottom:1px solid #dae5f4;padding:15px 17px;}
#v8ProtectedClassroom .nova-active-question h2{font-size:17px;margin:0 0 7px;color:#223d67;}
#v8ProtectedClassroom #bankChildList{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0;}
#v8ProtectedClassroom #bankChildList button{padding:7px 10px;font-size:12px;max-width:100%;text-align:left;}
#v8ProtectedClassroom .nova-question-nav{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0;}
#v8ProtectedClassroom .nova-question-nav button{padding:6px 11px;border:1px solid #c8d7ef;border-radius:10px;background:#fff;color:#294c84;font-size:12px;font-weight:700;}
#v8ProtectedClassroom .nova-question-nav button[aria-current=true]{background:#315fce;color:#fff;}
#v8ProtectedClassroom #bankChildQuestions .bank-question{display:none;margin:9px 0 0;padding:11px 13px;}
#v8ProtectedClassroom #bankChildQuestions .bank-question[aria-current=true]{display:block;}
#v8ProtectedClassroom #bankChildQuestions h3{font-size:14px;margin:8px 0 5px;}
#v8ProtectedClassroom #bankChildQuestions .bank-question p{overflow-wrap:anywhere;font-size:13px;line-height:1.55;}
#v8ProtectedClassroom #bankChildSource{max-width:100%;}
#v8ProtectedClassroom #bankChildPanel[hidden]{display:none!important;}
#v8ProtectedClassroom .nova-text-ask{margin:0 0 14px;padding:15px;background:#f5f8ff;border:1px solid #cad9f3;border-radius:16px;}
#v8ProtectedClassroom .nova-text-ask-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;}
#v8ProtectedClassroom .nova-text-ask-heading h3{margin:0 0 6px;font-size:17px;}
#v8ProtectedClassroom .nova-text-ask-heading p{margin:0 0 12px;color:#536883;font-size:13px;line-height:1.5;max-width:650px;}
#v8ProtectedClassroom .nova-ui-pending-label{font-size:11px;color:#694c1f;background:#fff1d5;border:1px solid #f2d9a4;border-radius:20px;padding:5px 9px;font-weight:750;white-space:nowrap;}
#v8ProtectedClassroom .nova-input-label{display:block;margin-bottom:5px;font-size:12px;font-weight:750;color:#324969;}
#v8ProtectedClassroom .nova-question-input-row{display:flex;gap:8px;align-items:stretch;}
#v8ProtectedClassroom #rc81Question{width:100%;flex:1;min-width:0;min-height:62px;border-radius:12px;border:1px solid #bacdec;background:#fff;color:#20344f;padding:11px 12px;font:inherit;line-height:1.4;resize:vertical;}
#v8ProtectedClassroom .nova-question-input-row button{flex:0 0 auto;align-self:stretch;white-space:nowrap;}
#v8ProtectedClassroom .nova-question-status{font-size:12px;color:#576c87;margin:8px 0;}
#v8ProtectedClassroom .nova-queue-shell{background:#fff;border:1px solid #e1e7f4;border-radius:12px;padding:11px 12px;}
#v8ProtectedClassroom .nova-queue-heading{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;color:#405675;font-size:12px;}
#v8ProtectedClassroom .nova-queue-heading span{font-size:11px;color:#71819b;}
#v8ProtectedClassroom .nova-question-queue{display:grid;gap:7px;margin:8px 0 0;padding-left:22px;}
#v8ProtectedClassroom .nova-question-queue:empty{display:none;}
#v8ProtectedClassroom .nova-question-queue li{padding:8px;background:#f8fbff;border-radius:8px;font-size:12px;color:#2c4262;overflow-wrap:anywhere;}
#v8ProtectedClassroom .nova-question-queue li > button{float:right;margin-left:10px;background:transparent;color:#9b2f38;border:0;text-decoration:underline;font-size:11px;}
#v8ProtectedClassroom .nova-question-queue small{display:block;font-size:10px;color:#70829c;margin-top:3px;}
@media(max-width:999px){
  html,body{height:auto!important;overflow-x:hidden!important;overflow-y:auto!important;}
  #v8ProtectedClassroom{height:auto!important;overflow:visible!important;}
  #v8ProtectedClassroom .classroom{display:flex!important;flex-direction:column!important;overflow:visible!important;}
  #v8ProtectedClassroom .teacher-panel{width:100%;height:auto!important;min-height:0!important;position:static!important;overflow:visible!important;}
  #v8ProtectedClassroom .board-panel{width:100%;height:auto!important;min-height:0!important;overflow:visible!important;grid-template-rows:auto auto minmax(260px,auto) auto!important;}
  #v8ProtectedClassroom .board-stage{height:clamp(280px,42vh,520px)!important;min-height:280px!important;}
  #v8ProtectedClassroom .nova-advanced-tools{width:100%;}
  #v8ProtectedClassroom .nova-advanced-tools .utility-panel{display:grid!important;grid-template-columns:1fr!important;height:auto!important;overflow:visible!important;}
}
@media(max-width:570px){
  #v8ProtectedClassroom .nova-question-input-row{flex-direction:column;}
  #v8ProtectedClassroom .nova-text-ask{padding:12px;}
  #v8ProtectedClassroom .teacher-panel{display:block!important;}
  #v8ProtectedClassroom .teacher-controls{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;}
  #v8ProtectedClassroom .teacher-controls button{width:100%!important;}
  #v8ProtectedClassroom .ancy-call-controls{width:100%!important;}
  #v8ProtectedClassroom .teacher-copy p{margin-bottom:12px;}
  #v8ProtectedClassroom .teacher-topline{margin-bottom:9px;}
  #v8ProtectedClassroom .avatar-frame{width:min(100%,200px);margin:8px auto;}
}
