/* Reader v86: "Quran Only" and a closed Urdu/Tafsir pane must use all width. */
@media(min-width:1280px){
 .ap-desktop-reader:is(.ap-study-hidden,.ap-focus-mode) .ap-study-grid {
   grid-template-columns:minmax(0,1fr)!important;
   column-gap:0!important;
 }
 .ap-desktop-reader:is(.ap-study-hidden,.ap-focus-mode) .ap-study-aside {
   display:none!important;
 }
 .ap-desktop-reader:is(.ap-study-hidden,.ap-focus-mode) .ap-study-center,
 .ap-desktop-reader:is(.ap-study-hidden,.ap-focus-mode) .ap-reader-region {
   width:100%!important;
   max-width:100%!important;
   min-width:0!important;
 }
 .ap-desktop-reader:is(.ap-study-hidden,.ap-focus-mode):not(.ap-page-fit) .ap-reader-region .tr-original-vp {
   width:min(var(--ap-available-width),960px)!important;
 }
 .ap-desktop-reader:is(.ap-study-hidden,.ap-focus-mode).ap-page-fit .ap-reader-region .tr-original-vp {
   width:min(var(--ap-available-width),calc(var(--ap-available-height)*var(--ap-art-ratio)))!important;
 }
 .ap-desktop-reader:is(.ap-study-hidden,.ap-focus-mode):not(.ap-indo-fit) .tr-indo-sheet {
   width:min(var(--ap-available-width),930px)!important;
 }
 .ap-desktop-reader:is(.ap-study-hidden,.ap-focus-mode).ap-indo-fit .tr-indo-sheet {
   width:min(var(--ap-available-width),calc(var(--ap-available-height)*var(--ap-indo-ratio,.67)))!important;
 }
 .ap-desktop-reader:is(.ap-study-hidden,.ap-focus-mode) .tr-page{
   justify-content:center!important;
 }
 .ap-desktop-reader:not(.ap-study-hidden):not(.ap-focus-mode) .ap-study-grid {
   grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
 }
}
@media(max-width:1279px){
 .ap-native-reader .ap-study-center{min-width:0!important;width:100%!important}
 .ap-native-reader:not(:has(.ap-study-aside.is-open)) .ap-study-center{flex:1 1 100%!important}
}
/* Classroom page uses its whole width when Urdu information is closed. */
.ac-studio-shell .ac-book-pane #ac-book-body {min-width:0; width:100%}
.ac-studio-shell .ac-book-pane #ac-urdu-panel[hidden]{display:none!important}
.ac-studio-shell .ac-book-pane:has(#ac-urdu-panel[hidden]) #ac-book-body {
   width:100%!important;max-width:100%!important;
}
/* Distinct reading / drawing mode: finger/pen strokes never move the PDF. */
#ac-drawing-layer.drawing{touch-action:none!important;cursor:crosshair!important}
#ac-drawing-layer [data-ac-draft]{pointer-events:none}
.ac-annotation-tools .ac-gesture-hint{flex-basis:100%;font-size:12px;color:#336151;line-height:1.4}
