/* Classroom v92 — readable, full-width original Indo-Pak page.
   Do not cap the entire page to viewport height by default. */
.ac-studio-shell #ac-book-body.ac-v90-large .ac-indo-original{
  width:100%!important;max-width:100%!important;min-width:0!important;
  padding:4px!important;box-sizing:border-box!important;
}
.ac-studio-shell #ac-book-body.ac-v90-large .ac-indo-art{
  max-width:100%!important;margin:0 auto!important;
}
.ac-studio-shell #ac-book-body.ac-v90-large .ac-indo-art>.ac-indo-canvas{
  width:100%!important;max-width:100%!important;
  height:auto!important;max-height:none!important;object-fit:contain!important;
}
.ac-studio-shell #ac-book-body.ac-v90-large .ac-indo-original .ac-indo-caption,
.ac-studio-shell #ac-book-body.ac-v90-large .ac-original-caption{
  font-size:10px!important;
}
.ac-studio-shell #ac-book-body.ac-v90-large {
  overflow-y:auto!important;scrollbar-gutter:stable;
  overscroll-behavior-y:contain;
}
.ac-studio-shell #ac-class-reciter.ac-v90-bottom-player .ac-v92-haitham-quick{
  display:inline-flex!important;align-items:center!important;
  justify-content:center!important;flex:0 0 auto!important;
  background:#e9f3ee;color:#114b37;border:1px solid #91b9a3;
  border-radius:8px;padding:7px 10px;min-height:34px;
  font-weight:750;font-size:11px;white-space:nowrap;
  cursor:pointer;
}
.ac-studio-shell #ac-class-reciter.ac-v90-bottom-player .ac-v92-haitham-quick[aria-pressed="true"]{
  background:#d5eadb;color:#095b3b;border-color:#66aa85;
}
.ac-studio-shell #ac-class-reciter.ac-v90-bottom-player .ac-v92-haitham-quick:focus-visible{
  outline:3px solid #ddb659;outline-offset:1px;
}
/* The original screenshot showed a clipped menu under the bottom toolbar:
   Haitham now appears at the top of its options and via a visible shortcut. */

/* Give the printed Quran more space when Urdu/Tafsir is beside it.
   The user can still hide Urdu entirely for full-width Quran reading. */
@media (min-width:1024px){
 .ac-studio-shell .ac-quran-reading-split:has(> #ac-urdu-panel:not([hidden])) > #ac-book-body{
   flex:0 0 calc(60% - 7px)!important;
   width:calc(60% - 7px)!important;
   max-width:calc(60% - 7px)!important;
   min-width:0!important;
 }
 .ac-studio-shell .ac-quran-reading-split:has(> #ac-urdu-panel:not([hidden])) > #ac-urdu-panel{
   flex:0 0 calc(40% - 5px)!important;
   width:calc(40% - 5px)!important;
   max-width:calc(40% - 5px)!important;
   min-width:0!important;
 }
}

.ac-studio-shell .ac-v90-dock .ac-v92-urdu-width{
  white-space:nowrap;border:1px solid #96bda7;
  font-weight:750;background:#ffffff;color:#0b5a40;
}
.ac-studio-shell .ac-v90-dock .ac-v92-urdu-width[aria-pressed="true"]{
  background:#e4f1e9;border-color:#71aa8b;
}
