.large-display-setting{display:flex;align-items:center;gap:16px}
.large-display-copy{flex:1;min-width:0}
.large-display-copy>label{font-weight:700;cursor:pointer}
.large-display-copy p{margin:6px 0 0}
.switch input:focus-visible+.slider-sw{outline:3px solid var(--ink);outline-offset:4px}

/* Opt in only: inline small type also inherits the enlarged reading size. */
html.large-display body{font-size:22px!important;line-height:1.65}
html.large-display body *{font-size:inherit!important}
html.large-display :is(input,select,textarea,#appShell input,#appShell select,#appShell textarea,#authScreen input,#authScreen select,#authScreen textarea){font-size:22px!important}
html.large-display :is(h1,h2,.home-heading){font-size:32px!important;line-height:1.35}
html.large-display :is(h3,.sec-t){font-size:26px!important;line-height:1.5}
html.large-display :is(.ar,.qtext,.lemma-front,.lemma-verse-arabic){font-size:44px!important;line-height:1.8}
html.large-display .study-desk-word{font-size:80px!important}
html.large-display .muted{color:var(--ink2)}
html.large-display :is(button,input,select,textarea,summary){min-height:56px}
html.large-display :is(button,.btn,.chip,.lang-seg button){height:auto;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
html.large-display :is(.btn,.chip,.lang-seg button){padding:12px 16px}
html.large-display :is(.ui-icon,.bnav svg,.snav svg){width:32px!important;height:32px!important;flex-shrink:0}
html.large-display :is(.row,.spread,.vhead){flex-wrap:wrap;gap:12px}
html.large-display :is(.row,.spread,.vhead)>*{min-width:0;max-width:100%}
html.large-display :is(.iconbtn,.mushaf-tool,.mushaf-menu,.popup-panel-action,.popup-resize-grip,.chat-toggle,.chat-send){min-width:56px;min-height:56px}
html.large-display :is(.card,.small,.btn,.chip,.sec-t){overflow-wrap:anywhere}
html.large-display :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--ink);outline-offset:3px}
html.large-display .switch{width:68px;height:40px;min-height:40px}
html.large-display .switch input{min-height:0}
html.large-display .slider-sw::before{width:32px;height:32px;top:4px;left:4px}
html.large-display .switch input:checked+.slider-sw::before{transform:translateX(28px)}
html.large-display #view{max-width:1100px;padding-bottom:calc(156px + env(safe-area-inset-bottom))}
html.large-display #bottomNav{gap:2px}
html.large-display .bnav{flex:1;min-width:0;min-height:80px;padding:8px 2px;gap:6px;font-size:18px!important}
html.large-display .bnav span{white-space:normal;text-align:center;line-height:1.35}
html.large-display .religious-chat{bottom:calc(156px + env(safe-area-inset-bottom))}
html.large-display .religious-chat.is-collapsed{width:58px;height:58px}
html.large-display .religious-chat textarea{padding-bottom:76px}
html.large-display :is(.grid2,.grid3){grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
html.large-display :is(#sheet,#modal){width:min(800px,100%);max-width:100%;max-height:92dvh;min-width:0}
html.large-display .popup-panel-content{padding:20px 16px calc(28px + env(safe-area-inset-bottom))}
html.large-display .popup-panel-title{white-space:normal;overflow:visible}
html.large-display .popup-panel-head{min-height:76px}
html.large-display .study-return{position:sticky;top:0;left:auto;transform:none;width:100%;white-space:normal;min-height:64px}
html.large-display .study-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
html.large-display .study-tabs .chip{min-height:84px;padding:12px 8px}
html.large-display .lemma-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:18px}
html.large-display .lemma-card{aspect-ratio:auto;min-height:300px}
html.large-display .lemma-save{top:6px;right:6px;width:56px;height:56px;font-size:34px!important}
html.large-display .lemma-flip{min-height:230px}
html.large-display .lemma-face{inset:56px 8px 8px}
html.large-display .lemma-verses{padding:12px 8px;white-space:normal}
html.large-display .study-desk{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))}
html.large-display .study-desk-prompt{min-height:0}

/* A large Mushaf scrolls vertically instead of fitting fifteen tiny lines. */
html.large-display:has(body.mushaf-reading){overflow:hidden}
html.large-display body.mushaf-reading{position:fixed;inset:0;overflow:hidden}
html.large-display body.mushaf-reading #appShell.on{display:block;height:100%;overflow-y:auto!important}
html.large-display body.mushaf-reading #view{max-width:none;padding:0 0 calc(140px + env(safe-area-inset-bottom))}
html.large-display body.mushaf-immersive #view{padding-bottom:env(safe-area-inset-bottom)}
html.large-display #mushafBody{touch-action:pan-y pinch-zoom!important;overflow:visible}
html.large-display .mushaf-frame{height:auto!important;min-height:0!important;overflow:visible;padding:16px}
html.large-display .mushaf-lines{display:flex;flex-direction:column;gap:16px}
html.large-display #mushafBody .mushaf-line{width:100%!important;transform:none;flex-wrap:wrap;gap:8px;min-height:0!important;font-size:48px!important;line-height:1.7;white-space:normal}
html.large-display .mushaf-line .w{font-size:inherit!important;min-height:56px;line-height:1.5;padding:4px 0}
html.large-display .mushaf-line .aynum{min-width:48px;width:auto;height:auto;min-height:56px;font-size:28px!important}
html.large-display .mushaf-line .aynum.qcf-end{font-size:inherit!important}
html.large-display :is(.surah-head,.besmele){height:auto;min-height:80px;padding:12px 4px;white-space:normal}
html.large-display :is(.surah-head::before,.surah-head::after){font-size:40px}
html.large-display :is(.basmala-calligraphy,.basmala-calligraphy>span){font-size:36px!important}
html.large-display .word-meal-on .word-unit{display:inline-flex;flex-direction:column;align-items:center;gap:8px;height:auto;min-width:0;max-width:100%;padding:4px}
html.large-display .word-gloss{position:static!important;width:auto!important;max-width:180px;min-height:0;white-space:normal;font-size:22px!important;line-height:1.5}
html.large-display .mushaf-reader-head{grid-template-columns:1fr}
html.large-display .mushaf-left-tools{flex-wrap:wrap;gap:8px}
html.large-display .mushaf-meta:last-child{justify-self:start}
html.large-display .mushaf-top{position:relative}
html.large-display .page-foot{min-height:80px;height:auto}
html.large-display .page-foot button{min-width:56px}
html.large-display .mushaf-ornament{width:32px;height:32px}
html.large-display .tafsir-reading-panel :is(p,li,blockquote){font-size:24px!important;line-height:1.85}
html.large-display .tafsir-reading-panel :is([lang=ar],.tf-arabic){font-size:36px!important}

@media(max-width:699px){
 html.large-display #view{padding-inline:12px}
 html.large-display :is(.home-header,.home-resume){flex-wrap:wrap}
 html.large-display .home-resume{width:100%;justify-content:center}
 html.large-display :is(.lemma-pagination,.bookmark-slot){flex-wrap:wrap}
 html.large-display .study-desk-reading,html.large-display .study-desk-meaning{padding:20px 12px}
 html.large-display #sheet{height:90dvh}
 html.large-display .large-display-setting{align-items:flex-start;flex-wrap:wrap}
 html.large-display .large-display-copy{flex-basis:100%}
}
