
/* Quran-first classroom, identical printed material for teacher/student */
.ac-studio-shell{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(285px,320px)!important;gap:13px!important;align-items:start}
.ac-studio-shell .ac-main{min-width:0;display:flex;flex-direction:column;gap:12px}
.ac-studio-shell .ac-right{min-width:0;display:flex;flex-direction:column;gap:0;position:sticky;top:12px;max-height:calc(100dvh - 20px);overflow-y:auto;border-radius:15px;border:1px solid #d9e6d7;background:white}
.ac-studio-shell .ac-session-pane{padding:9px 11px!important}
.ac-studio-shell .ac-session-pane .ac-section-row{margin-bottom:6px}
.ac-studio-shell .ac-session-picker{display:flex;gap:6px;overflow:auto;max-height:78px}
.ac-studio-shell .ac-session{min-width:180px;max-width:330px;flex:1 0 190px;padding:7px}
.ac-studio-shell .ac-book-pane{min-width:0;padding:12px!important}
.ac-studio-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:8px;margin:8px 0;border-radius:12px;background:linear-gradient(105deg,#063e32,#087354)}
.ac-studio-actions .ac-action{font-size:11px;background:#f1f9ef;color:#165040;min-height:37px;padding:8px}
.ac-live-status{color:#f8eed1;font-size:11px;font-weight:800;flex:1}
.ac-studio-shell .ac-reader{max-height:none!important;overflow:visible!important;min-height:0!important;background:#faf7ee;padding:5px!important}
.ac-studio-shell .ac-original-mushaf{max-width:1000px!important}
.ac-studio-shell .ac-original-mushaf>img{max-width:850px!important;width:100%!important;height:auto!important;max-height:none!important}
.ac-studio-shell .ac-indo-original{display:flex;flex-direction:column;align-items:center;gap:6px;max-width:1020px!important;margin:auto;padding:9px!important;position:relative;background:#fffaf3;border-radius:9px}
.ac-indo-canvas{display:block;max-width:100%;height:auto;opacity:0;transition:opacity .2s}
.ac-indo-canvas.ready{opacity:1}
.ac-pdf-loading{color:#526e61;text-align:center;font-size:12px;position:absolute;top:30px;left:0;right:0;pointer-events:none}
.ac-studio-shell .ac-class-reciter{position:sticky;bottom:4px;z-index:8;box-shadow:0 7px 30px #15473533;background:#0a4635!important;border:1px solid #93c2aa}
.ac-studio-shell .ac-reciter-head strong{color:white}.ac-studio-shell .ac-reciter-head small{color:#cfebd9}
.ac-studio-shell .ac-reciter-controls label{color:#dce8cf}
.ac-studio-shell .ac-reciter-controls .ac-action.primary{background:#e2c16d;color:#153e2b;border-color:#e2c16d}
.ac-studio-shell .ac-annotation-tools{max-height:0;overflow:hidden;opacity:0;padding:0!important;margin:0!important;transition:max-height .18s,opacity .18s}
.ac-studio-shell .ac-annotation-tools.open{max-height:230px;opacity:1;padding:8px!important;margin:8px 0!important}
.ac-studio-shell .ac-right .ac-panel{box-shadow:none!important;border:0!important;border-radius:0!important}
.ac-studio-shell .ac-call-pane{padding:9px 11px!important}
.ac-studio-shell .ac-call-pane .ac-section-row{margin-bottom:4px}
.ac-studio-shell .ac-videos{min-height:65px;max-height:160px;display:flex;overflow:auto;padding:4px}
.ac-studio-shell .ac-tile-video{min-width:110px;min-height:70px;max-height:145px}
.ac-studio-shell .ac-join-controls{margin-top:7px}
.ac-studio-tabs{display:flex;gap:4px;align-items:center;position:sticky;top:0;z-index:6;background:#0b4c3b;padding:5px}
.ac-studio-tab{flex:1;background:transparent;color:#e7f0e6;font-weight:750;font-size:11px;border:0;border-radius:8px;padding:10px 5px;cursor:pointer}
.ac-studio-tab.active{background:#e8bc68;color:#153f31}
.ac-studio-tab:hover{background:#ffffff2b}
.ac-studio-shell[data-studio-tab="students"] .ac-chat-pane,.ac-studio-shell[data-studio-tab="students"] .ac-assessment-pane{display:none!important}
.ac-studio-shell[data-studio-tab="chat"] .ac-roster-pane,.ac-studio-shell[data-studio-tab="chat"] .ac-assessment-pane{display:none!important}
.ac-studio-shell[data-studio-tab="assign"] .ac-roster-pane,.ac-studio-shell[data-studio-tab="assign"] .ac-chat-pane{display:none!important}
.ac-studio-shell .ac-roster{max-height:55vh!important;overflow:auto}
.ac-student-pick{display:flex;align-items:center;flex-wrap:wrap;border:1px solid #e4eae2;background:#f6faf5}
.ac-student-pick.selected{border-color:#54a67e;background:#e5f7ed}
.ac-student-name{flex:1;min-width:85px}
.ac-person-tools{display:flex;flex-wrap:wrap;gap:3px}
.ac-person-tools button{border:1px solid #d3e6d7;color:#17543c;background:white;border-radius:7px;font-size:10px;cursor:pointer;padding:5px}
.ac-person-tools button:hover{background:#dff4e3}
.ac-studio-shell.ac-side-hidden{grid-template-columns:minmax(0,1fr) 0!important}
.ac-studio-shell.ac-side-hidden .ac-right{display:none!important}
.ac-studio-shell .ac-exact-below{margin-top:12px}
.ac-studio-shell .ac-overlay{z-index:4}
html.ac-studio-fullscreen{overflow:hidden!important}
html.ac-studio-fullscreen .ac-studio-shell{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;overflow:hidden;background:#edf4ec;z-index:99999!important;margin:0!important;padding:9px;grid-template-columns:minmax(0,1fr) minmax(260px,310px)!important;box-sizing:border-box}
html.ac-studio-fullscreen .ac-studio-shell .ac-main{max-height:calc(100dvh - 18px);overflow-y:auto}
html.ac-studio-fullscreen .ac-studio-shell .ac-session-pane{display:none!important}
html.ac-studio-fullscreen .ac-studio-shell .ac-right{height:calc(100dvh - 18px);max-height:calc(100dvh - 18px);top:0}
html.ac-studio-fullscreen .ac-studio-shell .ac-book-pane{padding:8px!important}
html.ac-studio-fullscreen .ac-studio-shell .ac-class-reciter{bottom:0}
@media(max-width:900px){
 .ac-studio-shell{grid-template-columns:minmax(0,1fr)!important}
 .ac-studio-shell .ac-right{position:relative;top:0;max-height:none;overflow:visible}
 .ac-studio-shell .ac-join-controls{position:sticky;bottom:0;background:white;z-index:9}
 .ac-studio-shell.ac-side-hidden{grid-template-columns:1fr!important}
 html.ac-studio-fullscreen .ac-studio-shell{grid-template-columns:1fr!important;overflow:auto}
 html.ac-studio-fullscreen .ac-studio-shell .ac-main{max-height:none;overflow:visible}
 html.ac-studio-fullscreen .ac-studio-shell .ac-right{max-height:none;height:auto}
}
@media(max-width:550px){
 .ac-studio-actions .ac-action{padding:7px!important}
 .ac-studio-shell .ac-panel{padding:9px!important}
 .ac-studio-shell .ac-book-pane{padding:6px!important}
 .ac-studio-shell .ac-videos{max-height:120px}
}
@media(prefers-reduced-motion:reduce){.ac-indo-canvas,.ac-annotation-tools{transition:none}}

.ac-exact-word.audio-active{background:#f7d965!important;box-shadow:0 0 0 2px #c58e26!important;color:#193e2d!important}
.ac-audio-follow{font-size:11px;color:#cce9d5;margin-top:6px;min-height:13px}

.ac-selection-ribbon{padding:11px 13px;border-radius:11px;margin:7px 0;background:#fff0b8;color:#604608;font-size:13px;font-weight:800;border:1px solid #d5ae45}
.ac-selection-ribbon[hidden]{display:none!important}
.ac-exact-below{max-height:230px;overflow-y:auto;overscroll-behavior:contain}
.ac-indo-original .ac-overlay,.ac-original-mushaf .ac-overlay{z-index:3;inset:0;position:absolute}


/* In the old audio layout a connected room hid the roster.
   Teacher/student selection must remain available in this new side panel. */
.ac-studio-shell.ac-voice-connected[data-studio-tab="students"] .ac-roster-pane{display:block!important}
