:root{color:#453e34;background:#f5f1e9}body{background:#f5f1e9}header{position:relative;isolation:isolate;overflow:hidden;padding-top:max(40px,env(safe-area-inset-top));min-height:280px;background:#dfd3c1 url('islamic-cream-9x16.png') center 20%/cover no-repeat;border-radius:0 0 28px 28px;color:#40382e}header:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(249,246,239,.08),rgba(246,241,230,.72))}header>div{position:relative;z-index:1}header .eyebrow{font-size:10px;letter-spacing:2.4px;color:#675c4d}header h1{font-weight:600;letter-spacing:-.7px;font-size:29px;margin-top:40px;text-shadow:0 1px 15px #fff9}header p{max-width:330px;font-size:13px;line-height:1.9;color:#564c40;margin-bottom:4px}main{position:relative;padding-bottom:max(35px,env(safe-area-inset-bottom))}.summary{position:relative;border-color:#e7e0d4;box-shadow:0 8px 26px #5e4b2a09;background:#fffdf9}.bar{background:#eee8dd}.bar span{background:#a49374}nav{scrollbar-width:none}nav::-webkit-scrollbar{display:none}nav button{min-height:44px;border-color:#dfd8cc;color:#665e50}nav button.active{background:#6c715c;border-color:#6c715c}.card{position:relative;overflow:hidden;border-color:#e8e2d7;background:#fffefa;box-shadow:0 3px 15px #554c3603}.arabic{font-size:clamp(27px,7.6vw,32px);overflow-wrap:anywhere;color:#484334}.tag{font-size:11px;color:#7a6b54}.reading,small{color:#756f62}.reward{background:#f5f1e8;color:#625744}.tap{background:#6c715c;box-shadow:none;touch-action:manipulation}.tap:active{transform:scale(.985)}.undo{touch-action:manipulation;background:#fffefa;border-color:#e3ddd1;color:#736d60}.tap.done{background:#eceee3;color:#596148}.num{white-space:nowrap}.dot{background:#ede7dc}.dot.yes{background:#e2e6d5;color:#586147}.day,footer,details{color:#746e61}a{color:#636a4d}footer{padding-bottom:12px}:focus-visible{outline-color:#827856}
@media(max-width:360px){header{padding-left:20px;padding-right:20px}header h1{font-size:26px}header p{font-size:12px}.summary{padding:20px 16px}.row{gap:6px}.row strong{font-size:14px}.card{padding:18px}nav button{padding:10px 14px}.tap{font-size:17px}.num{font-size:12px}}
@media(min-width:700px){header{min-height:300px;background-size:650px auto;background-color:#dfd3c1}header h1{font-size:36px}header p{max-width:400px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}.tap:active{transform:none}}
.arabic,.thai-pronunciation{font-size:17px;line-height:2;font-weight:400}.arabic{margin:14px 0 10px}.thai-pronunciation{margin:6px 0 14px;color:#514b40}.pronunciation{padding:12px 14px;background:#f6f2e9;border-radius:12px;margin-bottom:14px}.pronunciation>small,.pronunciation-note{font-size:11px;color:#777062}.pronunciation-note{line-height:1.9}.surah-guide details{border:1px solid #e8e2d7;padding:12px;border-radius:12px;margin:10px 0}.surah-guide summary{font-size:15px;color:#514b40;cursor:pointer;min-height:32px}.verse{border-bottom:1px solid #eee9df;padding:10px 0}.verse .thai-pronunciation{margin-bottom:0}.developer-credit{margin-top:26px;padding:24px 20px;text-align:center;border:1px solid #e4ddcf;border-radius:20px;background:#faf7ef;color:#625747}.developer-credit h2{font-size:20px;margin:9px 0}.developer-credit p{font-size:14px;line-height:1.9;margin:10px 0 14px}
/* Focused chapter navigation and larger reading/count controls. */
h2{font-size:21px}.arabic,.thai-pronunciation{font-size:21px;line-height:2}.reading,.reward{font-size:16px;line-height:1.9}.tag{font-size:13px}nav button{font-size:17px}#total{font-size:20px;font-weight:700}.chapter-choice{display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;gap:12px;padding:23px 20px;margin:12px 0;border:1px solid #e5dfd3;border-radius:20px;background:#fffefa;color:#453e34;min-height:108px}.chapter-choice strong{display:block;font-size:19px;line-height:1.7;margin-top:5px}.chapter-count{font-size:30px;font-weight:800;white-space:nowrap;color:#60694f}.chapter-count small{font-size:16px}.chapter-arrow{font-size:27px}.detail-view header{min-height:135px;padding-bottom:22px;padding-top:max(22px,env(safe-area-inset-top))}.detail-view header h1{font-size:24px;margin-top:10px}.detail-view header p,.detail-view .summary,.detail-view nav,.detail-view footer,.detail-view .developer-credit{display:none}.detail-view main{padding-top:20px}.detail-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#786e5e;font-size:13px;margin-bottom:16px}.back-button{min-height:48px;background:#fffaf0;border:1px solid #d8d0c1;color:#514a3e;padding:10px 15px;border-radius:14px;font-size:17px;font-weight:700}.detail-card{padding:24px 20px}.detail-card h2{font-size:23px}.counter{margin-top:24px;align-items:stretch}.tap{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:150px;font-size:22px;font-weight:700;padding:20px 8px;border-radius:24px}.tap .num{display:block;font-size:clamp(38px,11vw,52px);line-height:1.15;font-weight:800;margin-left:0;font-variant-numeric:tabular-nums;color:#fff}.tap.done .num{color:#4b5c39}.undo{align-self:center;width:48px;height:48px;font-size:26px;flex-shrink:0}.reset-button{width:100%;min-height:64px;padding:15px;margin:16px 0 5px;border:2px solid #a5967e;border-radius:18px;background:#eee5d6;color:#51452f;font-size:23px;font-weight:800;touch-action:manipulation}.reset-button:active{background:#e2d6c1}@media(max-width:360px){.chapter-choice{padding:18px 14px}.chapter-choice strong{font-size:17px}.chapter-count{font-size:26px}.detail-card{padding:20px 15px}.tap{font-size:20px}.tap .num{font-size:38px}.arabic,.thai-pronunciation{font-size:20px}}

.meaning{padding:14px 16px;margin:12px 0 18px;border-left:3px solid #b5a080;background:#faf7ee;border-radius:0 12px 12px 0}.meaning small{font-size:13px;font-weight:700;color:#7a674c}.meaning p{font-size:18px;line-height:1.9;margin:6px 0 0;color:#514b40}.verse .meaning{margin-bottom:6px}

header{text-align:center;min-height:370px;padding-bottom:64px}.brand-logo{width:116px;height:116px;display:block;margin:0 auto 16px;border-radius:28px;box-shadow:0 8px 30px #705b2012}header h1{max-width:none;margin-top:10px;font-size:34px}header p{margin-left:auto;margin-right:auto}.detail-view .brand-logo{width:52px;height:52px;margin-bottom:8px}.detail-view header{text-align:center;min-height:155px}.detail-view header .eyebrow{display:none}nav{display:block;overflow:visible}.category-tabs,.period-tabs{display:flex;gap:8px;flex-wrap:wrap}.category-tabs button{flex:1;font-size:16px}.period-tabs{margin-top:12px}.period-tabs button{font-size:16px}.period-tabs p{width:100%;font-size:13px;line-height:1.8;color:#746e61;margin:4px 0}.reward-note{padding:10px 0;line-height:1.9}.reward-note p{font-size:15px}

.brand-logo{width:154px;height:154px;border-radius:36px;box-shadow:none}.app-brand{margin:8px 0!important;line-height:1.3}.brand-english{display:block;font-size:30px;letter-spacing:2px;font-weight:750}.brand-thai{display:block;font-size:25px;font-weight:600;margin-top:8px}.brand-purpose{display:block;font-size:16px;font-weight:400;margin-top:9px;color:#716553}.detail-view .brand-logo{width:60px;height:60px;border-radius:16px}.detail-view .brand-english{font-size:20px;letter-spacing:1.4px}.detail-view .brand-thai{font-size:17px;margin-top:4px}.detail-view .brand-purpose{font-size:12px;margin-top:4px}.detail-view header{padding-bottom:18px}@media(max-width:360px){.brand-english{font-size:26px}.brand-thai{font-size:23px}}
.quran-intro{margin:18px auto 0;max-width:360px}.quran-intro p{font-size:17px;line-height:1.9;color:#554a3c;margin:0 auto 9px;max-width:none}.quran-intro cite{font-style:normal;font-size:12px;line-height:1.8;display:block}.quran-intro a{color:#74664f;text-decoration:none}.quran-intro a:hover{text-decoration:underline}.detail-view .quran-intro{display:none}

.paired-note{font-size:14px;line-height:1.9;color:#746349;border-top:1px solid #e5dccb;padding-top:14px}.istighfar-evidence{line-height:1.9;padding:12px 0}.istighfar-evidence p{font-size:16px}.istighfar-evidence summary{font-size:16px;font-weight:700}
