@font-face{font-family:SakinahSans;src:url('./assets/sans.ttf')}@font-face{font-family:SakinahSans;src:url('./assets/sans-bold.ttf');font-weight:700}@font-face{font-family:SakinahNaskh;src:url('./assets/naskh.ttf')}*{box-sizing:border-box}html{scroll-padding-top:1rem}body{--paper:#f7f6ef;--surface:#fffefa;--ink:#143e36;--muted:#5c6b61;--line:#dcded3;--wash:#eaf0e6;--gold:#986d31;--soft:#f0ede4;--deep:#184d40;--accent:#b89a58;margin:0;background:var(--paper);color:var(--ink);font:15px/1.75 SakinahSans,Tahoma,Arial,sans-serif;min-height:100vh;display:flex;flex-direction:column;color-scheme:light}
body.dark{--paper:#102421;--surface:#17302b;--ink:#eff1df;--muted:#b5c4b8;--line:#375048;--wash:#233e36;--gold:#e0be7a;--soft:#24372f;--deep:#174b3e;--accent:#cfb477;color-scheme:dark}
a,button,input,select{font:inherit}a{color:inherit;text-decoration:none}button{color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.6}button,select,input{accent-color:#22604e}button{border:0;background:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #d09738;outline-offset:4px}svg{display:inline-block;width:22px;height:22px;vertical-align:middle;flex:none}.shell{width:min(1140px,calc(100% - 80px));margin-inline:auto}header{background:var(--surface);border-bottom:1px solid var(--line)}.top,.headtools,nav,.brand,.ghost,.primary,.lightbtn,.pill,.textbtn,.row,.date,.meter-text,.actions,.eyeline,.foot>div,.sectionbar,.dialoghead,.notice,.refrow,.setting,.crumb{display:flex;align-items:center}.top{min-height:78px;justify-content:space-between;gap:20px}.brand{gap:9px;font:700 43px/1.25 SakinahNaskh,serif;letter-spacing:-1.5px}.brandmark svg{width:39px;height:39px;color:var(--gold)}nav{gap:5px}nav a{display:flex;align-items:center;gap:7px;padding:8px 13px;font-size:14px;color:var(--muted);border-radius:8px}nav a svg{width:17px;height:17px}nav a.active{background:var(--wash);color:var(--ink);font-weight:bold}.headtools{gap:9px}.iconbtn{width:40px;height:40px;display:grid;place-items:center;color:var(--ink);border:1px solid var(--line);border-radius:50%}.ghost,.primary,.lightbtn,.pill,.textbtn{justify-content:center;gap:8px;min-height:41px;border-radius:8px;font-weight:700;font-size:13px;padding:7px 15px}.ghost{border:1px solid var(--line);background:var(--surface)}.primary{background:#204f41;color:#fff}.primary:hover,.lightbtn:hover,.ghost:hover,.iconbtn:hover{filter:brightness(.94)}.primary svg,.ghost svg,.lightbtn svg,.textbtn svg{width:17px;height:17px}.lightbtn{color:#143d32;background:#fbf7e9;display:inline-flex}.textbtn{padding-inline:0;color:var(--gold);justify-content:flex-start}.skip{position:absolute;z-index:10;top:-100px}.skip:focus{top:0;background:white;padding:8px}main{flex:1;padding-block:29px 33px}main:focus{outline:none}h1,h2,h3,p{margin:0}h1,h2{font-family:SakinahNaskh,serif}h1{font-size:clamp(40px,4.4vw,64px);line-height:1.25;font-weight:normal}h2{font-size:32px;line-height:1.45}h3{font-size:15px}.muted,.desc,small{color:var(--muted)}.desc{margin-top:4px}.intro{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:19px}.date{gap:8px;font-size:13px;color:var(--muted);padding-bottom:7px}.date svg{width:16px}.twosky{display:grid;grid-template-columns:1fr 1fr;gap:18px}.sky{position:relative;isolation:isolate;overflow:hidden;border-radius:18px;color:#fffdf1;min-height:235px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:27px 32px;background-position:center;background-size:cover}.morning-sky{background-color:#226c65;background-image:linear-gradient(270deg,#094e4be8 1%,#11565275 48%,transparent 72%),url('./assets/sky-0.webp')}.evening-sky{background-color:#24233f;background-image:linear-gradient(270deg,#20213fe8 1%,#2320406b 48%,transparent 72%),url('./assets/sky-1.webp')}.sky h2{font-size:clamp(35px,3.5vw,49px);font-weight:normal;margin:3px 0 1px}.eyeline{gap:7px;font-size:12px}.eyeline svg{width:17px;height:17px}.sky p{font-size:12px;color:#faf5df}.sky .lightbtn{margin-top:18px;min-width:120px;justify-content:space-between}.sectionbar{justify-content:space-between;gap:12px;margin:22px 0 10px}.sectionbar h2{font-size:29px;font-weight:normal}.sectionbar h2:before{content:"";display:inline-block;width:5px;height:19px;border-radius:4px;background:var(--accent);margin-left:9px;vertical-align:middle}.dashboard{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}.panel,.qhero,.preview-rem{border:1px solid var(--line);border-radius:16px;background:var(--surface)}.qhero,.preview-rem{min-height:214px;padding:21px 26px}.qhero{position:relative;isolation:isolate;overflow:hidden;background:#f4ead4;color:#234137}.qhero:before{content:"";position:absolute;inset:0 33% 0 0;background:url('./assets/quran.webp') left center/cover no-repeat;z-index:-2}.qhero:after{content:"";position:absolute;inset:0;background:linear-gradient(to left,#f6efdf 31%,rgba(246,239,223,.97) 44%,rgba(246,239,223,0) 72%);z-index:-1}.qhero h2,.preview-rem h2{font-weight:normal;font-size:35px;margin:6px 0 0}.qhero p,.preview-rem p{font-size:13px}.qhero .textbtn{color:#315648;margin-top:8px}.preview-rem{background-color:var(--wash);position:relative;overflow:hidden}.preview-rem .eyeline,.qhero .eyeline{color:var(--gold);font-weight:700}.preview-rem .textbtn{color:var(--ink);margin-top:8px}.preview-rem:after{content:"";position:absolute;left:-50px;bottom:-95px;width:200px;height:200px;border-radius:50%;box-shadow:0 0 0 1px #adad8933,0 0 0 13px #adad891a,0 0 0 14px #adad8933,0 0 0 28px #adad8917;pointer-events:none}.foot{display:flex;gap:18px;justify-content:space-between;align-items:center;padding-block:17px}.foot>div{gap:8px}.foot p{color:var(--muted);font-family:SakinahNaskh,serif;font-size:20px}.foot strong{font-size:13px}.footer-flower{color:var(--gold)}.footer-flower svg{width:23px;height:23px}footer{border-top:1px solid var(--line);background:var(--surface)}
.panel{padding:23px 25px}.actions{gap:9px;flex-wrap:wrap;margin-top:16px}.two-col{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(230px,.8fr);gap:18px;align-items:start}.stack{display:grid;gap:15px}.panel h2{font-size:28px}.panel h3{margin-bottom:8px}.crumb{color:var(--muted);gap:6px;font-size:13px;width:fit-content;margin-bottom:10px}.crumb svg{width:16px}.dhikr-head{min-height:130px;display:flex;align-items:center;justify-content:space-between;color:#fff;border-radius:12px;padding:22px;margin:-5px -5px 20px;background-size:cover;background-position:center}.dhikr-head h2{font-size:34px}.dhikr-head .eyeline{color:#fff2d3}.verse,.dhikr{font:normal clamp(26px,2.5vw,34px)/1.95 SakinahNaskh,serif;overflow-wrap:break-word}.dhikr p{margin-bottom:12px}.surahlabel{display:block;color:var(--gold);font:700 13px SakinahSans,sans-serif;margin:15px 0 7px}.countbtn{border-radius:11px;padding:10px 19px;min-width:150px}.refbox{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}.refbox summary,details summary{cursor:pointer;font-weight:bold}.refbox p{margin:10px 0;color:var(--muted)}.source{color:var(--gold);font-size:13px;text-decoration:underline;text-underline-offset:4px}.indexbtn{width:100%;text-align:right;display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:12px 5px}.indexbtn span:last-child{margin-inline-start:auto;font-size:12px;color:var(--muted)}.indexbtn.current{color:var(--gold);font-weight:700}.indexbtn svg{width:17px}.progress{height:6px;background:var(--soft);border-radius:6px;overflow:hidden}.progress i{display:block;background:var(--accent);height:100%;border-radius:6px}.meter-text{justify-content:space-between;color:var(--muted);font-size:12px;margin:5px 0 8px}.reader{text-align:center}.reader .verse{padding:25px 6px;line-height:2.15;font-size:clamp(32px,3vw,43px)}.basmala{font:25px SakinahNaskh,serif;margin-top:14px;color:var(--gold)}.verse-num{font:18px SakinahNaskh,serif;color:var(--gold)}.reader .actions{justify-content:center}.fieldrow{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.fieldrow label,.field{flex:1;min-width:100px;display:flex;flex-direction:column;gap:5px;font-size:13px;color:var(--muted)}input,select{max-width:100%;width:100%;min-height:44px;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:6px 10px;color:var(--ink)}.setting{gap:12px;padding:12px 0;border-top:1px solid var(--line)}.setting input[type=time]{margin-inline-start:auto;width:140px;text-align:center;font-size:15px}.switch{appearance:none;width:43px;min-height:25px;height:25px;flex:none;border-radius:22px;position:relative;background:var(--soft);padding:0;cursor:pointer;border:1px solid var(--muted)}.switch:before{content:"";position:absolute;top:3px;left:3px;width:17px;height:17px;border-radius:50%;background:var(--muted)}.switch:checked{background:#2b614e}.switch:checked:before{left:20px;background:#fff}.note{font-size:13px;color:var(--muted);margin-top:12px}.alarm-time{font-size:29px;color:var(--ink);font-variant-numeric:tabular-nums}.library{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.refrow{gap:12px;padding:14px 0;border-top:1px solid var(--line)}.refrow:hover{color:var(--gold)}.refrow .tile{display:grid;place-items:center;background:var(--wash);width:43px;height:43px;border-radius:10px}.refrow small{display:block;font-size:12px}.refrow>.out{margin-inline-start:auto;color:var(--muted)}.out svg{width:16px}.dialoghead{justify-content:space-between;gap:18px;margin-bottom:12px}.dialoghead h2{font-size:30px}dialog{width:min(460px,calc(100% - 28px));margin:auto;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:18px;padding:24px;box-shadow:0 20px 80px #092c2933}dialog::backdrop{background:#09252480}dialog li{margin:9px 0}dialog p{margin:8px 0}.modal-actions{display:grid;gap:10px;margin-top:15px}#toast{z-index:20;position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:90%;width:max-content;border-radius:12px;color:white;background:#214b3f;box-shadow:0 4px 24px #172a2926;font-size:14px;padding:10px 20px;pointer-events:none}#toast:empty{display:none}.dark .qhero .eyeline{color:#765624}.dark .qhero .textbtn{color:#234137}.iconbtn:hover,nav a:hover{background:var(--wash)}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}.reader-meta{font-size:13px;color:var(--muted)}.notice{gap:8px}.notice svg{color:var(--gold)}.timer-info{margin-top:10px}.full{width:100%}
@media(min-width:1500px){.shell{width:min(1240px,calc(100% - 110px))}.sky{min-height:266px}main{padding-block:40px}}
@media(max-width:900px){.shell{width:calc(100% - 44px)}nav a{padding-inline:9px}.top{gap:8px}.top nav svg{display:none}.install{padding-inline:10px}.dashboard{grid-template-columns:1.25fr 1fr}.two-col{grid-template-columns:1.35fr .8fr}}
@media(max-width:690px){.shell{width:calc(100% - 32px)}.top{min-height:60px;flex-wrap:wrap;padding-top:5px;gap:0}.brand{font-size:35px}.brandmark svg{width:30px;height:30px}.headtools{margin-inline-start:auto}.headtools .iconbtn{width:34px;height:34px}.install{min-height:34px;font-size:11px}.top nav{order:3;width:100%;margin:6px 0;gap:2px;justify-content:space-between}.top nav a{font-size:12px;gap:5px;padding:5px 8px}.top nav svg{display:block;width:15px;height:15px}main{padding-block:19px 25px}.intro{display:block;margin-bottom:14px}.intro h1{font-size:42px}.date{font-size:11px;padding:0}.date svg{width:14px}.twosky,.dashboard,.two-col,.library{grid-template-columns:1fr;gap:12px}.sky{min-height:174px;padding:16px 24px;background-position:center 47%;border-radius:14px}.sky h2{font-size:37px}.sky .lightbtn{margin-top:10px}.sky p{font-size:11px}.lightbtn{min-height:35px}.sectionbar{margin:18px 0 9px}.qhero,.preview-rem{min-height:154px;padding:14px 20px}.qhero h2,.preview-rem h2{font-size:31px}.foot{flex-direction:column;gap:3px;text-align:center}.foot p{font-size:17px}.panel{padding:17px}.dhikr-head{min-height:110px}.two-col{align-items:start}.setting input[type=time]{width:112px}.setting{gap:7px}.setting b{font-size:13px}.reader .verse{padding:20px 0}.multi .ghost,.multi .primary{padding-inline:10px}.actions{gap:7px}.foot{padding-block:13px}}
@media(max-width:360px){.shell{width:calc(100% - 22px)}.top nav svg{display:none}.sky{padding-inline:17px}.setting input[type=time]{width:95px}.panel{padding:13px}.ghost,.primary{padding-inline:10px}}
[hidden]{display:none!important}
.book-action{padding:0 55px 12px 0;margin-top:-6px}
.book-action a{color:var(--gold);font-size:13px;text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;gap:6px;padding:3px 0}
.book-action svg{width:15px;height:15px}

.sakinah-reader{display:block;width:100%;height:78vh;height:clamp(420px,calc(100dvh - 172px),1200px);border:1px solid var(--line);background:var(--surface);border-radius:12px}
