/* Live classroom v89 — compact Guest-style reading workspace with reachable tools.
   The Quran artwork remains original and never receives drawn pixels. */
.ac-studio-shell .ac-book-pane {
  min-width:0!important;
  background:#fffdf7;
}
.ac-studio-shell .ac-book-pane .ac-quran-reading-split{
  align-items:stretch!important;
  min-width:0!important;
}
.ac-studio-shell .ac-quran-reading-split > #ac-book-body {
  height:clamp(440px,calc(100dvh - 330px),960px)!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  scroll-behavior:auto;
  padding:8px!important;
  border-radius:12px;
  border:1px solid #dce7dc;
  background:#fffdf7!important;
}
.ac-studio-shell .ac-quran-reading-split > #ac-urdu-panel:not([hidden]) {
  height:clamp(440px,calc(100dvh - 330px),960px)!important;
  max-height:none!important;
  overflow:auto!important;
}
.ac-studio-shell .ac-annotation-tools,
.ac-studio-shell .ac-annotation-tools.open {
  display:flex!important;
  gap:7px!important;
  max-height:none!important;
  opacity:1!important;
  overflow:visible!important;
  padding:8px 10px!important;
  margin:0!important;
  background:#eaf4ed!important;
  border:1px solid #bad8c6!important;
  border-radius:10px!important;
  flex-wrap:wrap;
  align-items:center;
}
.ac-studio-shell #ac-annotation-toolbar:has(.ac-annotation-tools) {
  position:sticky;
  top:0;
  z-index:14;
  background:#fffdf7;
  padding:5px 0 8px;
}
.ac-studio-shell .ac-annotation-tools .ac-pen-label {
  font-size:12px;font-weight:800;color:#094b35;margin-right:5px;
}
.ac-studio-shell .ac-annotation-tools [data-ac-tool="stroke"] {
  font-weight:800;border:1px solid #7baf94;
}
/* One pen creates circles, handwriting and underlines without shape switching. */
.ac-studio-shell .ac-annotation-tools [data-ac-tool="circle"],
.ac-studio-shell .ac-annotation-tools [data-ac-tool="underline"] {
  display:none!important;
}
.ac-studio-shell .ac-annotation-tools [data-ac-tool].active {
  background:#0a5b40!important;color:white!important;border-color:#0a5b40!important;
  box-shadow:0 0 0 2px #c4e6ce!important;
}
.ac-studio-shell .ac-annotation-tools [data-ac="undo-annotation"]{
  border:1px solid #b3cbb6;
  background:white;
  font-weight:750;
}
.ac-studio-shell .ac-annotation-tools [data-ac="clear-annotations"]{font-weight:750}
.ac-studio-shell .ac-annotation-tools .ac-gesture-hint{
  flex-basis:100%;
  margin-top:1px;
  color:#476657;
  font-size:11px;
}
/* Ink is positioned over the actual image/canvas, not the printed-page caption. */
.ac-studio-shell .ac-original-art,
.ac-studio-shell .ac-indo-art {position:relative!important}
.ac-studio-shell .ac-original-art > #ac-drawing-layer,
.ac-studio-shell .ac-indo-art > #ac-drawing-layer {
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  z-index:12!important;
  display:block;
}
.ac-studio-shell #ac-drawing-layer:not(.drawing){
 pointer-events:none!important;
}
.ac-studio-shell #ac-drawing-layer.drawing{
 pointer-events:auto!important;
 touch-action:none!important;
 cursor:crosshair;
}
.ac-studio-shell .ac-class-reciter{
  border-radius:12px;
  margin:8px 0 4px;
  padding:10px!important;
  position:sticky!important;
  bottom:0!important;
  z-index:15!important;
}
/* When Urdu is hidden the Quran occupies all reading space. */
.ac-studio-shell .ac-quran-reading-split:has(> #ac-urdu-panel[hidden]) > #ac-book-body{
  width:100%!important;max-width:100%!important;flex:1 1 100%!important;
}
@media(max-width:1023px){
 .ac-studio-shell .ac-quran-reading-split > #ac-book-body {
   height:clamp(360px,55dvh,680px)!important;
 }
 .ac-studio-shell .ac-quran-reading-split > #ac-urdu-panel:not([hidden]) {
   height:auto!important;max-height:40dvh!important;
 }
 .ac-studio-shell #ac-annotation-toolbar:has(.ac-annotation-tools){top:0}
 .ac-studio-shell .ac-annotation-tools .ac-action{min-height:37px}
}
