/* v90 — Guest-reader-style teacher classroom, without covering the Quran. */
.ac-studio-shell .ac-book-pane{
  --ac-v90-book-height:clamp(390px,calc(100dvh - 275px),820px);
  min-width:0!important;position:relative!important;
  padding-bottom:12px!important;
}
/* Unlike v89, editing tools are in document flow, never over the site header. */
.ac-studio-shell #ac-annotation-toolbar,
html.ac-studio-fullscreen .ac-studio-shell #ac-annotation-toolbar{
  position:relative!important;inset:auto!important;top:auto!important;
  z-index:4!important;margin:0!important;padding:0!important;
  background:transparent!important;box-shadow:none!important;
}
.ac-studio-shell .ac-book-pane.ac-v90-tools-collapsed #ac-annotation-toolbar .ac-annotation-tools{
  display:none!important;
}
.ac-studio-shell .ac-book-pane:not(.ac-v90-tools-collapsed) #ac-annotation-toolbar .ac-annotation-tools{
  display:flex!important;position:relative!important;top:auto!important;
  padding:6px!important;margin:5px 0!important;gap:5px!important;
  max-height:150px!important;overflow:auto!important;box-shadow:none!important;
}
.ac-studio-shell #ac-annotation-toolbar .ac-pen-label,
.ac-studio-shell #ac-annotation-toolbar .ac-gesture-hint{display:none!important}
.ac-studio-shell .ac-v90-dock{
  display:flex;align-items:center;flex-wrap:wrap;gap:6px;
  padding:7px 9px;margin:5px 0 8px;min-height:44px;
  border-radius:10px;border:1px solid #c9dacb;
  background:#f0f8f1;color:#0d4b37;
  position:relative!important;inset:auto!important;z-index:3!important;
  box-sizing:border-box;
}
.ac-studio-shell .ac-v90-dock[hidden]{display:none!important}
.ac-studio-shell .ac-v90-dock strong{
  margin-right:auto;white-space:nowrap;font-size:12px;color:#064632;
}
.ac-studio-shell .ac-v90-dock button,
.ac-studio-shell .ac-v90-player-reveal{
  border:1px solid #aac7b3;border-radius:8px;background:white;
  color:#0d513c;padding:7px 9px;min-height:33px;
  font-weight:750;font-size:11px;cursor:pointer;
}
.ac-studio-shell .ac-v90-dock button[aria-pressed="true"]{
  background:#0b5942;color:white;border-color:#0b5942;
}
.ac-studio-shell .ac-v90-dock button[data-v90="clear"]{
  border-color:#ddafb4;color:#a42f39;
}
.ac-studio-shell .ac-v90-dock button:focus-visible,
.ac-studio-shell .ac-v90-player-reveal:focus-visible{
  outline:3px solid #cfb36d;outline-offset:2px;
}
/* Fully independent reading viewport. A complete page fits; zoom mode scrolls. */
.ac-studio-shell .ac-quran-reading-split>#ac-book-body,
.ac-studio-shell #ac-book-body{
  box-sizing:border-box!important;min-width:0!important;
  height:var(--ac-v90-book-height)!important;
  min-height:0!important;max-height:var(--ac-v90-book-height)!important;
  overflow:auto!important;overscroll-behavior:contain;
  padding:8px!important;background:#fffdfa!important;
}
.ac-studio-shell .ac-book-pane.ac-v90-player-hidden{
  --ac-v90-book-height:clamp(480px,calc(100dvh - 205px),950px);
}
.ac-studio-shell #ac-book-body .ac-original-mushaf,
.ac-studio-shell #ac-book-body .ac-indo-original{
  width:100%!important;max-width:100%!important;
  margin:0 auto!important;
  display:flex!important;flex-direction:column;align-items:center;
}
.ac-studio-shell #ac-book-body.ac-v90-fit{
  --ac-v90-paper-height:calc(var(--ac-v90-book-height) - 40px);
}
.ac-studio-shell #ac-book-body.ac-v90-fit .ac-original-art{
  width:min(100%,calc(var(--ac-v90-paper-height) * 345 / 550))!important;
  height:auto!important;max-width:100%!important;margin:0 auto!important;
}
.ac-studio-shell #ac-book-body.ac-v90-fit .ac-original-art>img{
  display:block!important;width:100%!important;height:auto!important;
  max-width:100%!important;
  max-height:var(--ac-v90-paper-height)!important;object-fit:contain!important;
}
.ac-studio-shell #ac-book-body.ac-v90-fit .ac-indo-art{
  width:min(100%,calc(var(--ac-v90-paper-height) * .68))!important;
  max-width:100%!important;margin:0 auto!important;height:auto!important;
}
.ac-studio-shell #ac-book-body.ac-v90-fit .ac-indo-art>canvas{
  display:block!important;width:100%!important;height:auto!important;
  max-width:100%!important;
  max-height:var(--ac-v90-paper-height)!important;object-fit:contain!important;
}
.ac-studio-shell #ac-book-body.ac-v90-large .ac-original-art,
.ac-studio-shell #ac-book-body.ac-v90-large .ac-indo-art{
  width:min(100%,790px)!important;max-width:100%!important;margin:0 auto!important;
}
.ac-studio-shell #ac-book-body.ac-v90-large .ac-original-art>img,
.ac-studio-shell #ac-book-body.ac-v90-large .ac-indo-art>canvas{
  width:100%!important;height:auto!important;
  max-height:none!important;max-width:100%!important;
}
.ac-studio-shell #ac-book-body .ac-original-caption{
  font-size:10px!important;margin:4px auto!important;
}
.ac-studio-shell .ac-quran-reading-split>#ac-urdu-panel:not([hidden]){
  height:var(--ac-v90-book-height)!important;
  max-height:var(--ac-v90-book-height)!important;
  overflow:auto!important;
}
/* Genuine bottom audio player, separate from the scrolling Quran page. */
.ac-studio-shell #ac-class-reciter.ac-v90-bottom-player,
html.ac-studio-fullscreen .ac-studio-shell #ac-class-reciter.ac-v90-bottom-player{
  position:fixed!important;
  left:var(--ac-v90-player-left,12px)!important;
  right:auto!important;bottom:max(8px,env(safe-area-inset-bottom))!important;
  width:var(--ac-v90-player-width,calc(100vw - 24px))!important;
  max-width:calc(100vw - 20px)!important;
  height:auto!important;min-height:54px!important;max-height:116px!important;
  box-sizing:border-box!important;padding:8px 10px!important;
  margin:0!important;overflow:hidden!important;
  background:#0a4635!important;border:1px solid #5d997b!important;
  border-radius:12px!important;z-index:80!important;
  box-shadow:0 8px 32px #123b2b45!important;
}
.ac-studio-shell #ac-class-reciter.ac-v90-bottom-player[hidden]{
  display:none!important;
}
.ac-studio-shell #ac-class-reciter.ac-v90-bottom-player .ac-reciter-head{
  display:none!important;
}
.ac-studio-shell #ac-class-reciter.ac-v90-bottom-player .ac-reciter-controls{
  display:flex!important;flex-flow:row nowrap!important;gap:7px!important;
  align-items:end!important;justify-content:flex-start!important;
  width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;
  padding:1px 2px 5px!important;scrollbar-width:thin;
}
.ac-studio-shell #ac-class-reciter.ac-v90-bottom-player .ac-reciter-controls label{
  display:flex!important;flex:0 0 125px!important;min-width:120px!important;
  max-width:165px!important;flex-direction:column!important;
  font-size:10px!important;line-height:1.2!important;gap:2px!important;
}
.ac-studio-shell #ac-class-reciter.ac-v90-bottom-player .ac-reciter-controls select{
  width:100%!important;min-width:0!important;max-width:100%!important;
  font-size:11px!important;min-height:34px!important;
}
.ac-studio-shell #ac-class-reciter.ac-v90-bottom-player .ac-reciter-controls .ac-action{
  flex:0 0 auto!important;white-space:nowrap!important;
  min-height:34px!important;padding:6px 10px!important;
}
.ac-studio-shell #ac-class-reciter.ac-v90-bottom-player .ac-audio-follow{
  display:none!important;
}
.ac-studio-shell #ac-class-reciter.ac-v90-bottom-player .ac-reciter-mini{
  display:flex!important;align-items:center!important;gap:7px!important;
  min-height:40px!important;
}
.ac-studio-shell #ac-class-reciter.ac-v90-bottom-player .ac-reciter-mini>span{
  color:#e4f4e8!important;flex:1!important;min-width:0!important;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.ac-studio-shell #ac-class-reciter .ac-v90-hide-player{
  flex:0 0 auto;border:1px solid #b8d9bf;
  border-radius:8px;background:#fff8e6;color:#194c36;
  padding:8px 10px;min-height:34px;font-weight:800;font-size:11px;
  cursor:pointer;white-space:nowrap;
}
.ac-studio-shell .ac-v90-player-reveal{
  position:fixed;z-index:85;
  left:var(--ac-v90-player-left,12px);
  bottom:max(8px,env(safe-area-inset-bottom));
  background:#0a4635;color:#fff;border-color:#80b09b;
  padding:9px 13px;box-shadow:0 6px 20px #123b2b45;
}
.ac-studio-shell .ac-v90-player-reveal[hidden]{display:none!important}
@media(max-width:1023px){
 .ac-studio-shell .ac-quran-reading-split>#ac-book-body {
   flex:0 0 auto!important;
   height:var(--ac-v90-book-height)!important;
   min-height:var(--ac-v90-book-height)!important;
   max-height:var(--ac-v90-book-height)!important;
 }
}
@media(max-width:900px){
 .ac-studio-shell .ac-book-pane{
   --ac-v90-book-height:clamp(330px,calc(100dvh - 245px),650px);
 }
 .ac-studio-shell .ac-book-pane.ac-v90-player-hidden{
   --ac-v90-book-height:clamp(380px,calc(100dvh - 190px),760px);
 }
 .ac-studio-shell .ac-v90-dock{gap:5px;padding:6px}
 .ac-studio-shell .ac-v90-dock strong{flex-basis:100%}
 .ac-studio-shell #ac-class-reciter.ac-v90-bottom-player{
   bottom:max(4px,env(safe-area-inset-bottom))!important;
   max-height:115px!important;padding:7px!important;
 }
}
