@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');
:root{--bg:#f7f6f0;--card:#fffefa;--ink:#17362e;--sub:#63766c;--green:#123e35;--gold:#b58b43;--line:#e4e5dc;--soft:#e9f0e9;--size:16px;--read:28px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:var(--size)/1.75 'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif}body.dark{--bg:#101d19;--card:#182923;--ink:#e8eee7;--sub:#abbeb2;--line:#34483e;--soft:#233b32;--gold:#e4bd76}a{color:inherit;text-decoration:none}button,input,select{font:inherit;color:inherit}button,a,input,select{touch-action:manipulation}button,select,input{border:1px solid var(--line);border-radius:12px;padding:10px 15px;background:var(--card)}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ca9a47;outline-offset:3px}.wrap{max-width:1080px;margin:auto;padding:0 22px}header{background:var(--card);border-bottom:1px solid var(--line)}.top{display:flex;align-items:center;justify-content:space-between;min-height:86px;gap:12px}.brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:24px;line-height:1.2}.brand img{width:54px;height:54px}.brand small{display:block;font-size:12px;color:var(--sub);font-weight:400;margin-top:5px}.tools{display:flex;gap:7px;align-items:center}.tools button,.tools a{border:1px solid var(--line);border-radius:12px;padding:6px 11px;background:var(--card)}main{min-height:68vh;padding-bottom:25px!important}.hero{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 10% 0%,#386a53,transparent 58%),linear-gradient(120deg,#092f29,#1d5141);color:#fff9e8;border-radius:25px;margin:24px 0;padding:37px 32px;min-height:240px;border:1px solid #a5894e}.hero:before{content:'';position:absolute;inset:0;z-index:-1;opacity:.12;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='76'%3E%3Cpath d='M38 0L48 26L76 38L48 48L38 76L28 48L0 38L28 26Z M0 0L76 76 M76 0L0 76' fill='none' stroke='%23efd7a5'/%3E%3C/svg%3E");mask-image:linear-gradient(to right,black,transparent 90%)}.hero:after{content:'';position:absolute;z-index:-1;left:6%;top:12%;width:180px;height:250px;border:2px solid #dfc58c55;border-radius:95px 95px 0 0;box-shadow:0 0 0 12px #dfc58c12,0 0 0 25px #dfc58c0e}.hero h1{font-family:Amiri,serif;font-size:44px;line-height:1.25;margin:8px 0}.hero p{max-width:600px;margin:6px 0 18px;color:#e0e9d9}.eyebrow{color:#e4c78b;letter-spacing:.04em;font-size:13px}.primary,.gold,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border-radius:12px;padding:10px 17px;font-weight:600}.primary{background:#194d3e;color:#fff;border:1px solid #194d3e}.gold{background:#e1c48b;color:#17362e;border:0}.secondary{background:var(--card);border:1px solid var(--line)}h2{font-size:23px;margin:25px 0 12px}h3{font-size:19px;margin:0 0 5px}p{margin:4px 0 12px}.muted,small{color:var(--sub)}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.two{grid-template-columns:repeat(2,minmax(0,1fr))}.panel,.tile{background:var(--card);border:1px solid var(--line);border-radius:19px;padding:20px;box-shadow:0 4px 14px #17362e06}.tile{display:flex;flex-direction:column;gap:5px;position:relative;min-height:160px;transition:transform .15s}.tile:hover{transform:translateY(-2px);border-color:var(--gold)}.tile .sym{background:var(--soft);color:var(--gold);width:49px;height:49px;border-radius:15px;display:grid;place-items:center;font-size:28px;margin-bottom:8px}.tile b{font-size:19px}.tile .arrow{position:absolute;left:18px;bottom:15px;color:var(--gold)}.row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.between{justify-content:space-between}.progress{background:var(--soft);height:12px;border-radius:15px;overflow:hidden;margin:12px 0}.progress i{display:block;background:linear-gradient(90deg,#b58b43,#347c62);height:100%;border-radius:15px}.big{font-size:34px;font-weight:700;color:var(--gold)}.pagehead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:24px 0 12px}.pagehead h1{font-size:27px;margin:0}.list{display:grid;gap:10px}.item{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--card);border:1px solid var(--line);border-radius:15px;padding:15px}.item b{font-size:18px}.item .actions{display:flex;gap:6px;flex-wrap:wrap}.search{width:100%;margin:10px 0 17px}.reader{font-family:Amiri,'Traditional Arabic',serif;font-size:var(--read);line-height:2.05;text-align:justify;padding:26px;max-width:820px;margin:15px auto;border:double 5px #b58b4380;background:var(--card);border-radius:18px}.reader h3{text-align:center;background:var(--soft);border-radius:10px;font-size:23px;margin:15px 0}.ayah{display:inline}.verse{color:var(--gold);font-size:.75em;white-space:nowrap}.playing{background:#d8b96c55;border-radius:5px}.notice{padding:13px 16px;border-radius:12px;background:var(--soft);color:var(--sub);margin:12px 0}.prayers{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0}.prayers div{background:var(--soft);border-radius:12px;padding:12px 4px;text-align:center}.prayers b{display:block;font-size:20px}.prayers .next{border:2px solid var(--gold)}.counter{text-align:center;padding:30px}.counter strong{display:block;font-size:80px;color:var(--gold);line-height:1.4}.counter .count{border-radius:50%;width:145px;height:145px;font-size:24px;background:var(--green);color:white;border:4px solid #c5a463}.bottom{position:sticky;bottom:0;z-index:5;background:var(--card);border-top:1px solid var(--line);display:flex;justify-content:center;padding:7px 8px max(7px,env(safe-area-inset-bottom));gap:clamp(10px,5vw,65px)}.bottom a{min-width:49px;text-align:center;font-size:24px;line-height:1.15;color:var(--sub);padding:5px 8px;border-radius:9px}.bottom span{display:block;font-size:11px;margin-top:4px}.bottom a.active{color:var(--ink);background:var(--soft)}footer{text-align:center;color:var(--sub);font-size:12px;padding:15px}#player{position:fixed;bottom:75px;left:50%;transform:translateX(-50%);width:min(94%,540px);z-index:10;background:var(--card);border:1px solid var(--gold);padding:12px;border-radius:15px;box-shadow:0 5px 25px #0003}#player>div{display:flex;justify-content:space-between;align-items:center}#player audio{width:100%;margin-top:6px}[hidden]{display:none!important}@media(max-width:620px){.wrap{padding:0 13px}.top{min-height:70px}.brand{font-size:20px}.brand img{width:43px;height:43px}.hero{padding:23px 19px;min-height:210px;margin:15px 0}.hero h1{font-size:35px}.hero:after{left:-40px;opacity:.45}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.panel,.tile{padding:14px}.tile{min-height:145px}.tile b{font-size:17px}.tile small{font-size:12px}.two{grid-template-columns:1fr}.item{align-items:flex-start;flex-direction:column}.reader{padding:15px;line-height:2}.prayers b{font-size:15px}.prayers small{font-size:11px}.pagehead h1{font-size:23px}.tools button,.tools a{padding:5px 9px}.bottom{gap:5px;justify-content:space-around}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.offline-banner{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0}.offline-banner>div{flex:1;min-width:190px}.offline-banner p{margin:4px 0}.file-label{position:relative;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.file-label input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.reader-tools{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.devotional{max-width:850px;margin:16px auto;padding:clamp(16px,4vw,40px)}.devotional p{font-family:'Noto Naskh Arabic','Geeza Pro','Traditional Arabic',serif;font-size:var(--read,28px);line-height:2.2;margin:0;padding:16px 0;border-bottom:1px solid rgba(140,140,140,.18);text-align:right;overflow-wrap:anywhere}.devotional h2{color:var(--accent,#b98a43);padding-top:12px}.devotional section+section{margin-top:30px}.offline-banner .primary{white-space:nowrap}#localAudio{width:100%;margin:12px 0}.offline-ready{font-size:13px;text-align:center;padding:6px;color:inherit}audio[hidden]{display:none!important}

.dev-audio{border-top:3px solid #b99a57}.dev-audio audio{display:block;width:100%;margin:14px 0}.dev-audio select{display:block;width:100%;margin:8px 0}.dev-audio small{display:block;margin-top:10px}.dev-audio .row{flex-wrap:wrap}

/* V6 — Emerald identity: elevated, framed cards and clear typography. */
:root{--bg:#edf3ee;--card:#fffefa;--ink:#123b2b;--sub:#405d50;--green:#145c38;--gold:#a47b32;--line:#a6c3af;--soft:#e6f1e9;--frame:#27784e;--deep:#0b3829;--shade:0 5px 0 #c5d7c8,0 11px 24px #123b2b19;--size:17px}
body.dark{--bg:#10231b;--card:#182f24;--ink:#e6f3e9;--sub:#bcd1c2;--line:#476b56;--soft:#254637;--frame:#6bb88b;--deep:#e6f3e9;--shade:0 5px 0 #081a12,0 11px 24px #0004;--gold:#e4bd76}
body{background-color:var(--bg);background-image:radial-gradient(ellipse at top right,#72a98416,transparent 45%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Cpath d='M44 8L53 35L80 44L53 53L44 80L35 53L8 44L35 35Z M0 0L88 88 M88 0L0 88' stroke='%2372a984' stroke-opacity='.10' fill='none'/%3E%3C/svg%3E")}
header{border-bottom:3px solid var(--frame);box-shadow:0 3px 14px #123b2b12}.brand{color:var(--deep);font-size:27px}.brand small{font-size:13px;color:var(--sub)}.tools button,.tools a{border:1.5px solid var(--frame);color:var(--ink);min-height:40px;font-weight:700;box-shadow:0 2px 0 var(--line)}
.hero{border:2px solid #bca05c;box-shadow:0 5px 0 #0d2f25,0 12px 26px #0b382930;background:radial-gradient(ellipse at 8% 0%,#3d805a,transparent 65%),linear-gradient(120deg,#0b3829,#145c38);margin-bottom:30px}.hero:before{opacity:.21}.hero h1{font-size:clamp(34px,5vw,48px);font-weight:700}.hero p{font-size:18px;color:#f0f6ee}.hero .eyebrow{font-weight:600}.gold{border:1px solid #f4dba6;box-shadow:0 3px 0 #a47b32;color:#17362e}.primary{background:linear-gradient(145deg,#246e47,#104a32);border:1.5px solid #104a32;box-shadow:0 3px 0 #0b3829;color:#fff}.secondary{border:1.5px solid var(--frame);color:var(--ink);box-shadow:0 2px 0 var(--line)}
.grid{gap:20px;align-items:stretch}.panel,.tile,.item{border:2px solid var(--frame);border-radius:19px;box-shadow:var(--shade);background:var(--card)}.panel{padding:22px}.tile{padding:20px 20px 38px;min-height:184px;isolation:isolate;overflow:hidden;transition:transform .18s,box-shadow .18s,border-color .18s}.tile:before{content:'';position:absolute;top:0;right:0;left:0;height:5px;background:linear-gradient(90deg,#c5a35a,#1d7045)}.tile .sym{background:var(--soft);color:var(--deep);border:1.5px solid var(--frame);box-shadow:0 2px 0 var(--line);width:53px;height:53px;font-size:29px;border-radius:14px}.tile b{font-size:21px;color:var(--deep);font-weight:700;line-height:1.5}.tile small,.item small{font-size:15px;line-height:1.65;color:var(--sub)}.tile .arrow{color:var(--deep);font-size:19px;font-weight:700;bottom:11px;left:15px}.tile:hover,.tile:focus-visible{border-color:var(--gold);box-shadow:0 5px 0 var(--line),0 14px 30px #123b2b30;transform:translateY(-3px)}.tile:active{transform:translateY(2px);box-shadow:0 2px 0 var(--line)}
main>h2,.pagehead h1{color:var(--deep);font-weight:700;background:var(--card);border:2px solid var(--frame);border-inline-start:6px solid var(--frame);border-radius:12px;padding:9px 16px;box-shadow:0 3px 0 var(--line)}main>h2{font-size:24px;margin:28px 0 17px}.pagehead{margin:24px 0 20px;flex-wrap:wrap}.pagehead>div{flex:1;min-width:0}.pagehead h1{font-size:27px;line-height:1.5;overflow-wrap:break-word}.pagehead small{display:block;margin:6px 6px 0;font-size:14px}.panel h3,.panel h2{color:var(--deep);font-weight:700}.panel h3{border-inline-start:4px solid var(--frame);padding-inline-start:9px}.panel .row.between>div>small:first-child{font-weight:700;font-size:16px;color:var(--deep)}.big{color:var(--deep)}.progress{height:14px;border:1px solid var(--line)}.progress i{background:linear-gradient(90deg,#bfa059,#1c7848)}.list{gap:16px}.item b{font-size:19px;color:var(--deep)}.item{padding:17px}.search,input,select,button:not(.primary):not(.gold):not(.count){border-color:var(--frame)}.search{border-width:2px;box-shadow:0 3px 0 var(--line)}.notice{border:1px solid var(--frame);border-inline-start:5px solid var(--frame);color:var(--ink)}.reader{border:5px double var(--frame);box-shadow:var(--shade)}.reader h3,.devotional h2{color:var(--deep);border:1.5px solid var(--frame);background:var(--soft);border-radius:12px;padding:8px 12px}.devotional{border:2px solid var(--frame);box-shadow:var(--shade);background:var(--card)}.devotional p{color:var(--ink)}.dev-audio{border-top:4px solid var(--frame)}.prayers div{border:1.5px solid var(--frame);box-shadow:0 3px 0 var(--line)}.prayers .next{border:2px solid var(--gold)}.bottom{border-top:2px solid var(--frame);box-shadow:0 -3px 14px #123b2b15}.bottom a{color:var(--sub);border:1px solid transparent}.bottom a.active{color:var(--deep);background:var(--soft);border-color:var(--frame);font-weight:700}.bottom span{font-size:12px}.tools a:hover,.tools button:hover,.secondary:hover{background:var(--soft)}#player{border:2px solid var(--frame)}
@media(max-width:620px){.brand{font-size:21px}.brand small{font-size:12px}.grid{gap:13px}.panel,.tile{padding:15px}.tile{min-height:158px;padding-bottom:34px}.tile b{font-size:18px}.tile small,.item small{font-size:13px}.tile .sym{width:44px;height:44px;font-size:24px}.hero p{font-size:16px}.hero{margin-bottom:25px}.pagehead h1{font-size:22px;padding:8px 11px}main>h2{font-size:21px}.bottom a{padding:5px 6px}.bottom span{font-size:11px}.reader{padding:15px}.panel select{max-width:100%}}
@media(max-width:350px){.grid:not(.two){grid-template-columns:1fr}.brand img{width:36px;height:36px}.tools{gap:4px}.tools button,.tools a{padding:5px 7px}}
@media(prefers-reduced-motion:reduce){.tile{transition:none}.tile:hover,.tile:focus-visible,.tile:active{transform:none}}

/* V7: daily Quran reminder */
.reminder-wrap[hidden]{display:none!important}.reminder-wrap{padding-top:16px}.reminder-card{border:2px solid #39825e;border-radius:18px;background:var(--card);padding:15px 18px;box-shadow:0 5px 0 #246b5226}.reminder-overdue{border-color:#b58b43;box-shadow:0 5px 0 #b58b4326}.reminder-main{display:flex;align-items:center;justify-content:space-between;gap:12px}.reminder-title{font-weight:700;font-size:1.12em}.reminder-title span{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--soft);width:30px;height:30px}.reminder-card p{margin:4px 0 8px}.reminder-card details{border-top:1px solid var(--line);padding-top:8px;margin-top:7px}.reminder-card summary{cursor:pointer;font-size:.86em;font-weight:600}.reminder-card form{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:12px 0}.reminder-card input[type=checkbox]{accent-color:#26754f}.reminder-card small{display:block;color:var(--sub)}.reminder-card .primary{white-space:nowrap}@media(max-width:480px){.reminder-main{align-items:stretch;flex-direction:column}.reminder-main .primary{align-self:flex-start}.reminder-card{padding:12px}.reminder-card form{align-items:flex-start}}
/* V8 — emerald pictograms and accessible Quran reader */
.tile .sym{display:grid;place-items:center;width:60px;height:60px;border-radius:15px;background:linear-gradient(145deg,#287c51,#0e4936);color:#f6d991;border:2px solid #bf9d53;box-shadow:0 4px 0 #0a3928,0 7px 13px #174b3538}.tile .sym svg{width:34px;height:34px}.tile b{display:block;border:1.5px solid #48865b;border-radius:9px;padding:4px 8px;margin-top:11px;background:var(--card)}.bottom a .nav-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;color:#f6d991;background:#17543b;border:1px solid #bda265;box-shadow:0 2px 0 #0b3929}.nav-icon svg{width:22px;height:22px}.bottom a.active .nav-icon{background:#267a4d;outline:2px solid #c3a56c}.q-controls>.row{margin-top:12px}.q-guide{font-size:14px;color:var(--sub);margin:12px 0}.mushaf-reader{background:#e6efcf!important;color:#101910!important;border:2px solid #6a9d36!important;border-radius:8px!important;padding:0!important;max-width:760px;margin:16px auto;overflow:hidden;touch-action:pan-y pinch-zoom}.mushaf-head{background:#98c5a8;color:#12291d;display:flex;justify-content:space-between;align-items:center;gap:6px;padding:9px 12px;border-bottom:2px solid #6a9d36;font-family:'Amiri','Noto Naskh Arabic','Geeza Pro',serif;font-size:18px;line-height:1.5}.mushaf-body{padding:12px 9px 20px;text-align:justify;font-family:'KFGQPC Uthmanic Script HAFS','Amiri Quran','Amiri','Noto Naskh Arabic','Geeza Pro','Traditional Arabic',serif;font-size:clamp(32px,8vw,58px);line-height:2.15;font-weight:400;overflow-wrap:normal}.mushaf-reader[data-style="large"] .mushaf-body{font-size:clamp(38px,10vw,74px);line-height:2.15;text-align:center;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(2.15em - 1px),#70805d37 calc(2.15em - 1px),#70805d37 2.15em)}.mushaf-body h3{font-family:inherit;font-size:.58em;line-height:1.8;color:#143c27;background:#bad3a7;border:1px solid #72975a;border-radius:7px;margin:8px 0;padding:2px;text-align:center}.mushaf-body .ayah{display:inline;color:inherit;font:inherit}.mushaf-body .q-word,.mushaf-body .q-ayah{display:inline-block;vertical-align:baseline;border:0!important;box-shadow:none!important;background:none;padding:0;margin:0;font:inherit;color:inherit;line-height:inherit;min-height:0;min-width:0;white-space:nowrap;cursor:pointer}.mushaf-body .q-ayah{display:inline-flex;align-items:center;justify-content:center;font-size:.49em;border:1.5px solid #4c693d!important;border-radius:50%;min-width:1.65em;height:1.65em;line-height:1;margin:0 .13em;vertical-align:middle}.mushaf-body .playing,.mushaf-body .q-word:focus-visible,.mushaf-body .q-ayah:focus-visible{background:#ffdf7f!important;border-radius:5px;outline:1px solid #9d7a28}.tj-h,.tj-s,.tj-l,.tj-d,.tj-b{color:#888b82}.tj-n{color:#427793}.tj-p,.tj-m,.tj-o{color:#245b8c}.tj-q{color:#c32d23}.tj-c,.tj-f{color:#8b338e}.tj-w,.tj-a,.tj-u{color:#447e42}.tj-i{color:#087c98}.tj-g{color:#cf621a}.q-legend{font-size:13px;margin:20px 0;color:var(--sub)}.q-legend summary{cursor:pointer;font-weight:bold}.q-legend p{font-size:12px}.q-controls select{max-width:100%}@media(max-width:620px){.tile .sym{width:52px;height:52px}.tile .sym svg{width:29px;height:29px}.mushaf-head{font-size:15px}.mushaf-body{padding:10px 6px}.q-controls{padding:12px}.bottom a{gap:2px}.bottom a .nav-icon{width:30px;height:30px}}

/* V9: visible Quran playback choices */
.q-listen-panel{margin:12px 0;padding:14px 16px;border:2px solid var(--frame)}.q-listen-panel h3{margin:0 0 10px;font-size:18px}.q-listen-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.q-listen-actions button{padding:9px 5px;min-height:48px;white-space:normal;font-weight:700;font-size:15px}.q-listen-actions button:disabled{opacity:.55;cursor:not-allowed}.q-selects{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:10px;margin:12px 0}.q-selects label{display:grid;gap:5px;min-width:0;font-size:14px;font-weight:700;color:var(--deep)}.q-selects select{width:100%;min-width:0;max-width:100%;min-height:44px;font-size:16px}.q-listen-panel small{display:block;line-height:1.7}@media(max-width:480px){.q-listen-panel{padding:12px}.q-listen-actions button{font-size:13px;padding:8px 3px}.q-selects{grid-template-columns:1fr}}

/* V10 */
.bookmark-panel h3{margin:0 0 8px}.bookmark-panel p{margin:8px 0}.bookmark-panel small{display:block;margin-top:8px}.bookmark-panel [hidden]{display:none!important}.mushaf-reader.bookmarked{outline:3px solid #b98a43;outline-offset:3px}.prayer-choice{display:grid;grid-template-columns:repeat(auto-fit,minmax(86px,1fr));gap:9px}.prayer-choice a{text-align:center;padding:13px 6px}.friday-link{border-inline-start:4px solid #b98a43}

.quick-worship,.resume-strip,.prayer-v11,.friday-feature{border:2px solid #31836b;border-radius:16px;margin:12px 0}.worship-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}.worship-links a,.friday-feature{display:block;padding:12px;background:var(--card,#fff);border:1px solid #81a999;border-radius:10px;font-weight:700;text-decoration:none}.worship-links small,.friday-feature small{display:block;font-weight:400;margin-top:5px}.resume-strip h3,.prayer-v11 h2{margin-top:0}.resume-strip strong{font-size:1.15em}.taqib-result{margin:14px 0;padding:12px;border:1px solid #81a999;border-radius:10px;line-height:2}.taqib-result p{font-size:1.12em;margin:.6em 0}.prayer-choice button{min-height:46px;font-weight:700}.prayer-choice button[aria-pressed=true]{background:#16664e;color:#fff}.version-chip{font-size:11px;background:#d9eee3;color:#104936;padding:3px 7px;border-radius:10px;white-space:nowrap}.dark .worship-links a,.dark .friday-feature{background:#173d35;color:#fff}
