*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:rgb(252.96,250.41,239.19);color:#1a1e18;font-family:Tahoma,Arial,sans-serif}body{display:flex;flex-direction:column}header{height:55px;flex-shrink:0;display:flex;align-items:center;gap:12px;padding:6px 16px;border-bottom:1px solid #ad975938;background:#fcfaef}header>div{flex:1}header strong{font-size:14px}header small{display:block;font-size:10px;color:#827954;margin-top:3px}button{border:0;background:transparent;color:#62512d;font:inherit;min-height:36px;min-width:38px;padding:5px 8px;border-radius:6px;cursor:pointer}button:hover{background:#b6a05a15}button:focus-visible,input:focus-visible{outline:2px solid #a58844}header button{font-size:24px}#mark.saved{color:#94702b}main{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom}#pages{min-height:100%;display:flex;flex-direction:row;align-items:flex-start;justify-content:center;gap:0;direction:rtl;transform-origin:top right}#pages svg{display:block;flex-shrink:0;overflow:visible;background:rgb(252.96,250.41,239.19)}footer{min-height:48px;flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:12px;padding:4px 8px max(4px,env(safe-area-inset-bottom));border-top:1px solid #ad975938;background:#fcfaef;font-size:12px}footer button{font-size:16px}form{display:flex;align-items:center;gap:7px;margin:0}#page{width:62px;border:1px solid #d8cfb3;border-radius:6px;padding:7px;text-align:center;background:#fffdf6;font:inherit;font-size:14px;direction:ltr}#page-form>button{font-size:12px}dialog{border:1px solid #d4c9a8;border-radius:12px;width:min(550px,94vw);max-height:88vh;padding:19px;background:#fdfbf0;color:#293226}dialog::backdrop{background:#17271cbc}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{font-size:18px;margin:4px 0 15px}.dialog-head button{font-size:24px}.note{font-size:11px;line-height:1.9;color:#817757}.bookmark{border:1px solid #d6c8a8;width:100%;font-size:13px;text-align:right;margin:3px 0}#surah-search{padding:12px;border:1px solid #d2c8a8;border-radius:7px;width:100%;margin:8px 0 16px;font:inherit}#surahs{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}#surahs button{display:flex;justify-content:space-between;border:1px solid #e4dcc3;background:#fffcf5;font-size:13px;gap:10px;text-align:right;padding:10px}#surahs small{color:#99875b;font-size:10px;white-space:nowrap}.message{align-self:center;margin:12vh 20px;font-size:14px;text-align:center;line-height:1.9;color:#807657}.error{color:#983b31}body.zoomed #pages{justify-content:flex-start}@media(max-width:370px){header{padding:5px 10px;gap:5px}footer{gap:3px}#surahs{grid-template-columns:1fr}}
[hidden]{display:none!important}#reader-back{font-size:12px;white-space:nowrap}#close-index{font-size:13px;min-height:42px}header button{min-height:40px}.dialog-head button{min-height:42px}

@media(max-width:899px){header{height:auto;min-height:48px;padding:3px 8px;gap:5px}header button{min-width:32px;min-height:40px;padding:4px;font-size:22px}header strong{font-size:13px}header small{font-size:9px}#reader-back{font-size:11px;white-space:nowrap}footer{min-height:42px;padding:2px 6px;gap:5px}footer button{min-height:36px}#page{width:55px;padding:4px}main{touch-action:pan-y pinch-zoom}body.zoomed main{touch-action:pan-x pan-y pinch-zoom}}
