/* Original page artwork and an independent normalized-coordinate annotation layer. */
.mushaf-viewer{--m-green:#0f4f43;--m-gold:#b18b42;--m-line:#dae4dd;--m-paper:#fff;direction:rtl;min-width:0;color:#203b32;background:#f4f7f3;border:1px solid var(--m-line);border-radius:22px;padding:18px;font-family:Halaqa,Tahoma,sans-serif}
.m-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.m-title h2{font-size:21px;margin:3px 0;font-family:HalaqaKufi,Halaqa,sans-serif}.m-eyebrow{font-size:11px;letter-spacing:0;color:#61766b}.m-readonly{font-size:11px;background:#e5efe8;border:1px solid #cddfd2;border-radius:30px;padding:7px 12px;white-space:nowrap}
.m-toolbar,.m-tools,.m-shortcuts,.m-page-buttons,.m-inline{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.m-toolbar{background:white;border:1px solid var(--m-line);padding:10px;border-radius:14px}.m-toolbar label{display:flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap}.m-toolbar input.m-page-number{width:72px;min-height:40px;padding:6px;direction:ltr;text-align:center;font-size:16px}.mushaf-viewer select{max-width:100%;font-size:13px;min-height:42px;border:1px solid var(--m-line);border-radius:9px;background:white;padding:7px;color:#203b32}.m-surah{flex:1;min-width:130px}.m-button{font:inherit;font-size:12px;border:1px solid var(--m-line);border-radius:10px;min-height:42px;padding:7px 12px;cursor:pointer;background:white;color:var(--tool-color,#0f4f43);transition:background .15s,box-shadow .15s,transform .15s}.m-button:hover{background:#e5efe8;box-shadow:0 3px 10px #0f4f4312}.m-button:active{transform:scale(.97)}.m-button:disabled{opacity:.4;cursor:default}.m-tools{padding:10px;background:#eaf0ea;border-radius:12px;margin-bottom:10px}.m-tools .selected{box-shadow:inset 0 0 0 2px currentColor;background:#fff}.m-shortcuts{margin-top:10px}.m-shortcuts .m-button{border:0;background:#e5eee7}.m-caption{font-size:12px;line-height:1.9;padding:8px 2px;min-height:32px;margin:0;color:#476255}
.m-book-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;direction:ltr;gap:16px;align-items:start}.m-book-main,.m-details{direction:rtl;min-width:0}.m-viewport{overflow:auto;max-height:78dvh;background:linear-gradient(130deg,#e0e5dc,#f2eee2);padding:14px;border-radius:14px;overscroll-behavior:contain}.m-sheet{position:relative;width:100%;min-width:100%;line-height:0;background:#fff;box-shadow:0 8px 26px #12372b30;transform-origin:center;touch-action:pan-y pinch-zoom}.m-image{display:block;width:100%;height:auto;min-height:170px;-webkit-user-select:none;user-select:none;pointer-events:none}.m-overlay{position:absolute;inset:0;pointer-events:none}.m-marker{position:absolute;width:28px;height:28px;border-radius:50%;border:2px solid var(--marker-color);background:white;color:var(--marker-color);transform:translate(-50%,-50%);padding:0;display:grid;place-items:center;opacity:var(--age);pointer-events:auto;cursor:pointer;box-shadow:0 2px 6px #0003;z-index:2;font:700 20px/1 sans-serif}.m-marker:before{content:'';position:absolute;inset:-8px}.m-marker.resolved{border-style:dashed}.m-page-badge{position:absolute;bottom:7px;left:7px;background:#0f4f43dd;color:white;border-radius:20px;font:11px/1.5 Halaqa,sans-serif;padding:4px 9px;pointer-events:none}.m-lesson-page{outline:3px solid #b98924;outline-offset:3px}.m-review-page{outline:3px dashed #7751ad}.m-legend{display:flex;gap:14px;flex-wrap:wrap;padding:14px 3px 8px;font-size:12px}.m-legend small{flex-basis:100%;color:#596e63;font-size:11px}.m-source{font-size:10px;color:#61766b;padding-top:12px}.m-source a{color:inherit}.m-details{border:1px solid var(--m-line);border-radius:14px;background:white;padding:12px;max-height:84dvh;overflow:auto}.m-details h3{font-size:15px;margin:0 0 10px}.m-filter{width:100%}.m-detail-card{background:#f1f6ef;border-radius:10px;margin-top:10px;padding:10px;font-size:13px;line-height:1.9}.m-detail-card:empty{display:none}.m-detail-card small{display:block;color:#4f6559;font-size:11px}.m-mark-list{display:grid;gap:7px;margin-top:12px}.m-mark-item{display:flex;gap:8px;background:#fff;border:1px solid #e0e8e1;border-radius:10px;padding:10px;text-align:right;cursor:pointer;font:12px/1.7 Halaqa,sans-serif;color:#203b32}.m-mark-item i{height:10px;width:10px;min-width:10px;border-radius:50%;margin-top:5px}.m-mark-item b,.m-mark-item small{display:block}.m-mark-item small{font-size:10px;color:#5b7164;overflow-wrap:anywhere}.m-empty,.m-loading{padding:24px 10px;font-size:13px;color:#61766b}.m-picker{background:#fff;border:1px solid #c6d8c9;padding:16px;border-radius:14px;margin-top:12px;box-shadow:0 5px 20px #12372b12}.m-picker[hidden]{display:none}.m-picker h3{margin:0 0 5px;font-size:16px}.m-picker p{font-size:12px}.m-picker label{display:block;font-size:13px;margin:10px 0}.m-picker select,.m-picker textarea{width:100%}.m-picker input[type=checkbox]{min-height:0}.m-busy .m-viewport{opacity:.55}.m-busy .m-overlay{visibility:hidden}
.mushaf-shared-page{max-width:1350px;margin:0 auto;padding:25px}.m-shared-brand{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px;font-size:13px;color:#527263}.m-shared-brand img{width:48px;height:48px;border-radius:12px}.m-share-panel{margin-top:16px;padding:16px;background:#edf4ed;border:1px solid #ccdfce;border-radius:14px}.m-share-panel p{font-size:12px;line-height:1.9}.m-share-panel input{direction:ltr;text-align:left;width:100%;font-size:12px}.m-share-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
dialog.record-wide{width:min(1550px,calc(100vw - 30px));max-width:1550px;max-height:calc(100dvh - 24px)}.record-mushaf-layout{display:grid;grid-template-columns:minmax(320px,.85fr) minmax(0,1.45fr);gap:20px;align-items:start}.record-mushaf-layout>#record-form{min-width:0}.record-mushaf-layout>.mushaf-viewer{position:sticky;top:0}.record-wide .m-book-layout{grid-template-columns:minmax(0,1fr)}.record-wide .m-details{max-height:260px}.record-wide .m-viewport{max-height:63dvh}.record-mobile-tabs{display:none}dialog.mushaf-dialog{width:min(1300px,calc(100vw - 24px));max-width:1300px;max-height:calc(100dvh - 24px)}
@media(max-width:850px){.mushaf-shared-page{padding:12px}.mushaf-viewer{padding:12px;border-radius:16px}.m-title h2{font-size:18px}.m-book-layout{grid-template-columns:minmax(0,1fr)}.m-viewport{padding:8px;max-height:75dvh}.m-details{max-height:350px}.m-tools .m-target{width:100%}.m-page-buttons{width:100%;justify-content:space-between}.m-page-buttons .m-button{flex:1}.m-title{align-items:flex-start}.m-readonly{font-size:10px}.m-shared-brand{font-size:11px}.record-mushaf-layout{display:block}.record-mushaf-layout>.mushaf-viewer{position:static}.record-mobile-tabs{display:flex;gap:8px;position:sticky;top:0;background:var(--surface,#fff);padding:10px 0;z-index:5}.record-mobile-tabs button{flex:1}.record-mushaf-layout.show-book>#record-form{display:none}.record-mushaf-layout:not(.show-book)>.mushaf-viewer{display:none}dialog.record-wide{width:calc(100vw - 16px)}.m-marker{width:24px;height:24px;font-size:17px}}
@media(prefers-reduced-motion:reduce){.m-button{transition:none}.m-picker{scroll-behavior:auto}}
.m-tools select{width:auto;flex:1 1 155px;min-width:130px}.m-tools .m-button{flex:0 0 auto}.record-wide .m-tools{gap:6px}.record-wide .m-title{margin-bottom:10px}.record-wide .m-caption{padding-block:5px}.record-wide .m-shortcuts .m-button{padding:6px 10px}
.m-sheet{min-width:0;margin-inline:auto}.m-boundary{position:absolute;transform:translate(-50%,-130%);background:#8a5f10;color:white;border-radius:6px;padding:5px 8px;font:11px/1.5 Halaqa,sans-serif;box-shadow:0 2px 6px #0003;pointer-events:none;white-space:nowrap}.m-review-page .m-boundary{background:#7751ad}.m-boundary:after{content:'';position:absolute;bottom:-5px;left:50%;border:5px solid transparent;border-bottom:0;border-top-color:inherit}
.m-history{margin-top:12px;border-block:1px solid #d9e4da;padding:10px 0;max-height:340px;overflow:auto}.m-history[hidden]{display:none}.m-history .m-mark-item{width:100%;margin:5px 0}.m-prior{font-size:12px;line-height:1.8;color:#526d5d}

.m-sheet.m-zoomed{touch-action:pan-x pan-y pinch-zoom}

/* The book stays at the top and gets its own full-height centre column. */
.m-workspace{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,1.5fr) 210px;gap:12px;direction:ltr;align-items:stretch;min-width:0}
.m-workspace>.m-details,.m-workspace>.m-controls,.m-workspace>.m-book-main{direction:rtl;min-width:0}
.m-controls{overflow:auto;overscroll-behavior:contain;background:#edf3ec;border:1px solid var(--m-line);border-radius:14px;padding:10px}
.m-controls .m-toolbar,.m-controls .m-tools,.m-controls .m-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px;margin:0 0 10px}
.m-controls .m-toolbar label,.m-controls .m-surah,.m-controls .m-page-buttons,.m-controls .m-track,.m-controls .m-target,.m-controls [data-m-action=range]{grid-column:1/-1;width:100%;min-width:0}
.m-controls .m-toolbar label{justify-content:center}.m-controls .m-page-buttons{display:grid;grid-template-columns:1fr 1fr}.m-controls [data-m-action=zoom]{grid-column:1/-1}
.m-controls .m-button{padding:7px 5px;line-height:1.7;min-width:0;font-size:12px}.m-controls .m-tools select{width:100%;min-width:0}.m-controls .m-caption{font-size:11px;line-height:1.8;padding:5px}
.m-offline-status{font-size:11px;line-height:1.8;margin:0 0 10px;color:#276149}.m-workspace .m-book-main{display:flex;flex-direction:column;min-height:0}
.m-workspace .m-viewport{padding:8px;height:calc(100dvh - 220px);max-height:none;min-height:260px;display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:column;overflow:auto}
.m-workspace .m-sheet{flex-shrink:0;max-width:none;overflow:hidden}.m-workspace .m-image{min-height:0}.m-page-badge{display:none}
.m-workspace .m-details,.m-workspace .m-controls{max-height:calc(100dvh - 160px)}
.m-legend{gap:10px;padding:7px 2px 2px}.m-legend small{font-size:10px}.m-source{padding-top:5px}.m-title{margin-bottom:8px}.m-title h2{font-size:18px}.mushaf-viewer{padding:12px}
.m-marker{border:1px solid color-mix(in srgb,var(--marker-color) 70%,transparent);border-radius:4px;background:transparent;opacity:var(--age);box-shadow:none;display:block;font-size:0;min-height:4px;min-width:5px;mix-blend-mode:multiply}
.m-marker:before{inset:0;border-radius:3px;background:var(--marker-color);opacity:.22;pointer-events:none}.m-marker:focus-visible{outline:2px solid var(--marker-color);outline-offset:3px}.m-marker.resolved{border-style:dashed}.m-draft{pointer-events:none}.m-sheet.m-drawing{touch-action:none;cursor:crosshair}
.m-book-main{position:relative}.m-book-main>.m-detail-card:not(:empty){position:absolute;z-index:10;bottom:70px;left:12px;width:min(300px,calc(100% - 24px));max-height:65%;overflow:auto;background:#fffffff5;border:1px solid #c7d6ca;box-shadow:0 8px 35px #12372b40;padding:14px;backdrop-filter:blur(8px)}
.m-more-tools{display:none}
.record-mushaf-layout{display:block}.record-mushaf-layout>.mushaf-viewer{position:static}.record-wide .modal-body{padding:12px}.record-wide .modal-head{padding:12px 18px}.record-wide .m-workspace{grid-template-columns:minmax(245px,.8fr) minmax(0,1.5fr) 210px}
.m-controls .m-toolbar label{grid-column:1}.m-controls .m-toolbar input.m-page-number{width:58px}.m-controls .m-page-buttons{grid-template-columns:1fr 1fr 1fr}.m-controls [data-m-action=zoom]{grid-column:auto}.m-controls .m-button{min-height:36px}.m-controls select{min-height:38px}.m-controls .m-toolbar,.m-controls .m-tools,.m-controls .m-shortcuts{padding:6px;margin-bottom:8px}
.m-controls .m-toolbar label,.m-controls [data-m-action=goto]{grid-column:1/-1}.record-wide .track .field:has(.range){grid-column:1/-1}.record-wide .track .range{grid-template-columns:minmax(0,1fr) 52px}.record-wide .track .range select{min-width:0;font-size:12px}.record-wide .track .range input{padding-inline:4px;text-align:center}.record-wide .track .counter{gap:3px;justify-content:flex-start}.record-wide .track .counter button{width:24px;min-width:24px}.record-wide .track .counter input{width:34px;padding-inline:0;font-size:16px}
.record-wide .m-details{max-height:calc(100dvh - 160px)}.record-wide #record-form{border-bottom:1px solid var(--m-line);padding-bottom:12px;margin-bottom:12px}.record-wide #record-form>.form-grid{display:block}.record-wide #record-form .field{margin-bottom:12px}
.record-wide .m-viewport{max-height:none}.record-wide .track .form-grid{grid-template-columns:1fr 1fr;gap:7px}.record-wide .track{padding:10px}.record-wide .track h3{font-size:14px}.record-wide .m-details{padding:10px}.record-wide .m-history{max-height:none}
@media(min-width:851px){dialog.record-wide{width:calc(100vw - 20px);max-width:1800px;overflow:hidden}.record-wide .modal-body{max-height:calc(100dvh - 72px);overflow:hidden}.m-workspace{height:calc(100dvh - 210px);min-height:310px}.m-workspace>.m-details,.m-workspace>.m-controls{height:100%;max-height:100%}.m-workspace .m-viewport{height:calc(100dvh - 265px);min-height:240px}.m-workspace .m-history[hidden]{display:none}}
@media(max-width:1050px) and (min-width:851px){.record-wide .m-workspace,.m-workspace{grid-template-columns:235px minmax(0,1fr) 180px;gap:8px}.mushaf-viewer{padding:8px}.m-title h2{font-size:16px}.m-controls{padding:6px}}
@media(max-width:850px){
 .m-workspace{display:flex;flex-direction:column;gap:10px}.m-controls{order:0;max-height:none!important;overflow:visible}.m-book-main{order:1}.m-details{order:2;max-height:none!important;overflow:visible}.m-workspace .m-viewport{height:70dvh;min-height:300px}.m-controls .m-toolbar,.m-controls .m-tools,.m-controls .m-shortcuts{display:flex;flex-wrap:wrap}.m-controls .m-surah{flex:1;width:auto}.m-controls .m-page-buttons{display:flex;width:auto}.m-controls .m-button{padding:7px 10px}.m-controls .m-tools select{width:auto;flex:1}.m-controls .m-toolbar label{width:auto}.m-controls .m-caption{min-height:0}.m-offline-status{margin-bottom:5px}
 .record-mushaf-layout:not(.show-book)>.mushaf-viewer{display:block}.record-mushaf-layout:not(.show-book) .m-title,.record-mushaf-layout:not(.show-book) .m-controls,.record-mushaf-layout:not(.show-book) .m-book-main,.record-mushaf-layout:not(.show-book) .m-details>:not(#record-form){display:none}.record-mushaf-layout:not(.show-book) .m-details{border:0;padding:0}.record-mushaf-layout:not(.show-book) .mushaf-viewer{border:0;background:transparent;padding:0}.record-mushaf-layout.show-book #record-form{display:none}.record-wide .modal-body{padding:10px}.record-wide .m-title h2{font-size:16px}.record-wide .m-history{max-height:320px}.m-marker{font-size:0}
 .m-more-tools{display:block;width:100%;min-height:30px!important;margin-bottom:6px}.m-controls:not(.m-expanded) .m-offline-status,.m-controls:not(.m-expanded) .m-surah,.m-controls:not(.m-expanded) .m-shortcuts,.m-controls:not(.m-expanded) .m-target,.m-controls:not(.m-expanded) [data-m-action=range]{display:none}.m-controls .m-toolbar,.m-controls .m-tools{padding:3px;margin-bottom:4px;gap:4px}.m-controls .m-page-buttons{width:100%;flex-wrap:nowrap;gap:4px}.m-controls .m-tools .m-track{flex:1 1 100%;min-height:34px}.m-controls .m-tools .m-button{flex:1;padding:5px 4px;min-height:32px}.m-controls .m-caption{padding:0;font-size:10px;line-height:1.6}.m-controls{padding:6px}.m-workspace .m-viewport{height:65dvh}.m-controls:not(.m-expanded) .m-toolbar label{margin-inline:auto}.record-wide .m-book-main,.record-wide #record-form{scroll-margin-top:85px}
}

/* Recording uses inline selection actions; no marker editor over the page. */
.m-record-viewer .m-controls>.m-record-marker-actions:not(:empty){position:static;inset:auto;width:auto;max-height:none;margin:0 0 9px;padding:8px;background:#fff;border:1px solid #c7d8ca;box-shadow:none;border-radius:10px}
.m-record-marker-actions .m-quick-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;line-height:1.5;margin-bottom:6px}.m-record-marker-actions .m-quick-heading b{font-size:11px}.m-record-marker-actions .m-quick-heading .m-button{min-height:28px;width:28px;padding:2px;font-size:18px}
.m-quick-types,.m-quick-position{display:flex;gap:4px;margin-bottom:6px}.m-record-marker-actions .m-quick-types .m-button{flex:1;padding:4px;font-size:11px;min-height:34px}.m-quick-types .m-button[aria-pressed=true]{box-shadow:inset 0 0 0 1px currentColor;background:#edf4ed}.m-quick-position{direction:ltr}.m-record-marker-actions .m-quick-position .m-button{flex:1;font:19px/1 sans-serif;min-height:34px;padding:3px}.m-record-marker-actions [data-m-action=remove]{width:100%;color:#b32626;min-height:34px;background:#fff6f5}
.m-record-viewer .m-book-main>.m-record-marker-actions:not(:empty){position:static;inset:auto;z-index:auto;flex:0 0 auto;display:flex;align-items:center;gap:6px;flex-wrap:wrap;width:100%;max-height:120px;overflow:auto;margin:0 0 5px;padding:6px;background:#f4f8f1;border:1px solid #c7d8ca;box-shadow:none;backdrop-filter:none;border-radius:9px}
.m-book-main>.m-record-marker-actions .m-quick-heading,.m-book-main>.m-record-marker-actions .m-quick-types,.m-book-main>.m-record-marker-actions .m-quick-position{margin:0}.m-book-main>.m-record-marker-actions .m-quick-types .m-button{min-width:44px}.m-book-main>.m-record-marker-actions .m-quick-position .m-button{min-width:30px}.m-book-main>.m-record-marker-actions [data-m-action=remove]{width:auto;padding-inline:9px}
.m-marker.m-selected-marker{outline:2px solid #a16a10;outline-offset:3px}
.m-sheet:not(.m-drawing) .m-marker:after{content:'';position:absolute;inset:-10px;min-width:28px;min-height:28px;background:transparent;pointer-events:auto}

/* 0.6.1: width-first reader, independent scrolling, and precise touch tools. */
.mushaf-viewer .m-title{min-height:30px;margin-bottom:5px;gap:8px}.mushaf-viewer .m-eyebrow{display:none}.mushaf-viewer .m-title h2{font-size:17px;line-height:1.6;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mushaf-viewer .m-title>div{min-width:0}.mushaf-viewer .m-readonly{padding:4px 9px;font-size:10px}
.mushaf-viewer .m-workspace{grid-template-columns:clamp(205px,21vw,255px) minmax(0,1fr) 184px;gap:8px;height:calc(100dvh - 150px);min-height:0}
.mushaf-viewer .m-workspace>.m-book-main{min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column;height:100%}
.mushaf-viewer .m-workspace>.m-details,.mushaf-viewer .m-workspace>.m-controls{height:100%;max-height:100%;min-height:0}
.mushaf-viewer .m-workspace .m-viewport{height:auto;max-height:none;min-height:0;flex:1;padding:2px;display:block;direction:ltr;touch-action:none;overflow-anchor:none;border-radius:8px;background:#dfe8dd}
.mushaf-viewer .m-sheet,.mushaf-viewer .m-sheet.m-zoomed{touch-action:none;min-width:0;margin-inline:auto;overflow:hidden;box-shadow:0 2px 10px #12372b26;outline-offset:0}
.m-book-hud{display:flex;gap:4px;align-items:center;justify-content:center;flex-wrap:wrap;padding:4px 0 6px;flex-shrink:0;direction:ltr;min-height:42px}
.m-book-hud .m-button{font-size:11px;min-height:34px;padding:5px 9px;line-height:1.4}.m-book-hud [data-m-action=zoom-in],.m-book-hud [data-m-action=zoom-out]{font:22px/1 sans-serif;width:36px;padding:3px}.m-zoom-value{min-width:43px;text-align:center;font:600 12px Halaqa,sans-serif;direction:ltr;color:#254c3e}
.mushaf-viewer .m-controls .m-offline-status:empty{display:none}.mushaf-viewer .m-controls .m-source{font-size:9px;line-height:1.7;margin-top:8px}.mushaf-viewer .m-controls .m-offline-status{font-size:10px;line-height:1.5}
.mushaf-viewer .m-reader-focus{height:100%}.mushaf-viewer.m-reader-focus .m-workspace{grid-template-columns:minmax(0,1fr)}.mushaf-viewer.m-reader-focus .m-details,.mushaf-viewer.m-reader-focus .m-controls{display:none}
.m-touch-lens{position:absolute;z-index:30;pointer-events:none;width:184px;padding:3px;background:#fff;border:2px solid #196c59;border-radius:15px;box-shadow:0 7px 30px #071f1955;overflow:hidden;direction:rtl}.m-touch-lens[hidden]{display:none}.m-touch-lens canvas{display:block;border-radius:10px}.m-touch-lens small{display:block;font:10px/1.8 Halaqa,sans-serif;text-align:center;color:#0f4f43;background:#eff6ee}
.m-aim{position:absolute;width:12px;height:12px;border:1px solid #bd7b12;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;z-index:4}.m-aim:before,.m-aim:after{content:'';position:absolute;background:#bd7b12}.m-aim:before{width:18px;height:1px;left:-4px;top:5px}.m-aim:after{height:18px;width:1px;left:5px;top:-4px}
.m-nudge{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px;direction:ltr}.m-nudge small{width:100%;direction:rtl}.m-nudge .m-button{font:19px/1 sans-serif;min-width:38px;min-height:38px;padding:3px}
@media(min-width:851px){
 dialog.record-wide[open]{display:flex;flex-direction:column;width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);max-width:2000px;margin:auto;overflow:hidden}
 .record-wide .modal-head{flex-shrink:0;padding:8px 14px;min-height:52px}.record-wide .modal-head h2{font-size:17px}
 .record-wide .modal-body{flex:1;min-height:0;max-height:none;overflow:hidden;padding:7px}.record-wide .record-mushaf-layout{height:100%;min-height:0}.record-wide .mushaf-viewer{height:100%;min-height:0;display:flex;flex-direction:column;padding:8px;border-radius:14px}.record-wide .mushaf-viewer .m-workspace{flex:1;height:auto;min-height:0}.record-wide .m-title{flex-shrink:0}.record-wide .m-details{max-height:100%}
}
@media(max-width:850px){
 .mushaf-viewer .m-workspace{display:flex;flex-direction:column;height:auto}.mushaf-viewer .m-workspace>.m-book-main{height:calc(100dvh - 210px);min-height:390px}.mushaf-viewer .m-workspace>.m-controls,.mushaf-viewer .m-workspace>.m-details{height:auto;max-height:none}.m-book-hud{gap:3px}.m-book-hud .m-button{padding:5px;font-size:10px;min-height:38px}.m-book-hud [data-m-action=zoom-in],.m-book-hud [data-m-action=zoom-out]{width:36px}.m-zoom-value{min-width:36px;font-size:11px}.mushaf-viewer.m-reader-focus .m-book-main{height:calc(100dvh - 150px)}.mushaf-viewer .m-title h2{white-space:normal;font-size:15px}.record-wide:has(.m-reader-focus) .record-mobile-tabs{display:none}.record-mushaf-layout:not(.show-book) .mushaf-viewer .m-book-main{display:none}
}
