@font-face{font-family:'Noto Naskh Arabic';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/noto-naskh-arabic.ttf') format('truetype')}
*{box-sizing:border-box} :root{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-synthesis:none;color-scheme:light}body{margin:0;min-height:100vh;--ink:#102e29;--muted:#264c42;--accent:#285c49;--soft:#e2f5e74d;--panel:linear-gradient(135deg,#f1fbef66,#dcefe333);--edge:#ffffff66;--reading:#f1f8eec7;--page:#c5dad4;background:var(--page);color:var(--ink);isolation:isolate}body[data-theme='petang']{--ink:#fff5ec;--muted:#f8e1d6;--accent:#ffd5af;--soft:#bf8c7755;--panel:linear-gradient(135deg,#492b3c55,#35243533);--edge:#ffe4ce55;--reading:#392539d9;--page:#694545;color-scheme:dark}body[data-theme='malam']{--ink:#f2f6ff;--muted:#cad9f0;--accent:#c2d7ff;--soft:#839fca33;--panel:linear-gradient(135deg,#18294066,#101b3333);--edge:#c5ddff44;--reading:#13223bdb;--page:#0c162c;color-scheme:dark}button,a,summary{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button,summary{min-height:44px}a{color:inherit}button svg{pointer-events:none}[hidden]{display:none!important}.scene{position:fixed;inset:0;z-index:-2;pointer-events:none;background:linear-gradient(#d3e8df25,#b4d3c335),url('images/pagi.jpg') center/cover no-repeat}body[data-theme='petang'] .scene{background:linear-gradient(#38243a15,#40283945),url('images/petang.jpg') center/cover no-repeat}body[data-theme='malam'] .scene{background:linear-gradient(#0c162c22,#0c162c66),url('images/malam-stars.jpg') center/cover no-repeat}body[data-theme='malam'] .scene:after{content:'';position:absolute;width:170px;height:170px;right:8%;top:110px;border-radius:50%;background:url('images/malam.jpg') 50% 49%/185% auto no-repeat;box-shadow:0 0 65px #c0d5ff26;opacity:.8}.orb{display:none}.app{max-width:1180px;margin:auto;padding:0 32px}header{height:100px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none}.brand-mark{width:40px;height:40px;flex:none}.brand-copy{display:flex;flex-direction:column;gap:5px}.brand-name{font-size:30px;font-weight:650;letter-spacing:-1.3px;line-height:1.1}.brand-tagline{font-size:12px;font-weight:400;letter-spacing:.2px}.header-note{font-size:13px;background:var(--panel);border-radius:20px;padding:10px 16px;backdrop-filter:blur(6px)}.glass,.settings-panel{background:var(--panel);border:1px solid var(--edge);border-radius:24px;box-shadow:0 10px 36px #10272c12,inset 0 1px 0 #ffffff20;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:10px 0 24px}.tabs{display:flex;background:var(--reading);border:1px solid var(--edge);border-radius:30px;padding:4px;gap:4px}.tabs button{border:0;border-radius:24px;background:transparent;padding:9px 25px;font-size:14px;color:var(--muted)}.tabs .active{background:var(--soft);color:var(--ink);box-shadow:inset 0 0 0 1px var(--edge);font-weight:600}.settings{position:relative;z-index:5}.settings summary{display:flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid var(--edge);border-radius:24px;background:var(--reading);font-size:13px;cursor:pointer;list-style:none}.settings summary::-webkit-details-marker{display:none}.settings summary:after{content:'⌄';font-size:16px}.settings[open] summary:after{content:'⌃'}.settings-panel{position:absolute;right:0;top:54px;width:310px;padding:20px;background:var(--reading);backdrop-filter:blur(18px)}.theme-picker{display:flex;flex-wrap:wrap;gap:6px}.theme-label{width:100%;font-size:12px;letter-spacing:1px;margin-bottom:8px}.theme-picker button{background:transparent;border:1px solid var(--edge);border-radius:14px;flex:1;padding:9px 10px;font-size:14px}.theme-picker button>span{display:block;font-size:20px;margin-bottom:4px}.theme-picker button[aria-pressed='true']{background:var(--soft);outline:1px solid var(--accent)}.icon-button{display:block;width:100%;background:var(--soft);border:1px solid var(--edge);border-radius:12px;padding:10px;margin-top:20px;text-align:left;font-size:14px}#haptic-help{font-size:13px;line-height:1.6;margin:10px 0 0}.workspace{display:grid;grid-template-columns:220px minmax(320px,1fr) 210px;gap:20px;align-items:start}.selection{padding:20px 12px}.section-label{font-size:12px;letter-spacing:1px;font-weight:600}.selection>.section-label{margin:0 8px 14px}.mode{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;background:transparent;border:1px solid transparent;border-radius:14px;padding:16px 12px;text-align:left}.mode+.mode{margin-top:8px}.mode.selected{background:var(--reading);border-color:var(--edge)}.mode strong{display:block;font-size:15px;font-weight:600}.mode small{display:block;font-size:12px;margin-top:6px}.selected-dot{width:6px;height:6px;border-radius:50%;flex:none}.selected .selected-dot{background:var(--accent)}.counter-card{padding:16px 24px 18px;text-align:center}.card-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.card-top>span{font-size:11px;letter-spacing:1px;font-weight:600}.text-button{background:var(--reading);border:1px solid var(--edge);border-radius:14px;font-size:13px;padding:9px 14px}.steps{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:14px 0}.step{border-radius:20px;border:1px solid var(--edge);font-size:11px;padding:7px 10px;background:var(--panel)}.step.current{background:var(--reading);box-shadow:inset 0 -2px var(--accent)}.step.done{background:var(--soft)}.recitation{background:radial-gradient(ellipse at center,var(--reading) 30%,transparent 75%);padding:4px 6px 10px;border-radius:24px}.recitation #arabic{font-family:'Noto Naskh Arabic','Traditional Arabic',serif;font-size:46px;font-weight:400;line-height:1.7;letter-spacing:normal}.recitation h2{font-size:19px;font-weight:500;margin:0 0 6px;letter-spacing:-.3px}.recitation p{font-size:14px;line-height:1.5;margin:0}.count-button{width:242px;height:242px;max-width:100%;border:0;padding:0;position:relative;background:transparent;margin:16px auto 10px;display:block;border-radius:50%;user-select:none}.count-button svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible}.count-button circle{fill:none;stroke-width:3}.ring-track{stroke:var(--edge)}#ring{stroke:var(--accent);stroke-linecap:round;stroke-dasharray:628.319;stroke-dashoffset:628.319;transition:stroke-dashoffset .18s}.count-inner{position:absolute;inset:13px;border:1px solid var(--edge);border-radius:50%;background:var(--reading);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);display:flex;flex-direction:column;justify-content:center;align-items:center;box-shadow:0 10px 25px #00000010;transition:transform .12s}.count-button:active .count-inner{transform:scale(.96)}.count-inner strong{font-size:68px;font-weight:400;font-variant-numeric:tabular-nums;letter-spacing:-3px;line-height:1.1}.count-inner>#target{font-size:11px;letter-spacing:1px;margin-top:10px}.tap-label{font-size:11px;margin-top:18px}.session-status{font-size:14px;line-height:1.6;min-height:45px;margin:8px 0;padding:6px;border-radius:12px;background:var(--reading)}.session-actions{display:flex;justify-content:center;gap:10px;margin:10px 0 16px}.session-actions button{flex:1;max-width:180px}.counter-bottom{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--edge);padding-top:14px;font-size:11px}kbd{font-family:inherit;border:1px solid var(--edge);border-radius:3px;padding:1px 4px}.today-card{padding:24px;background:var(--reading)}.today-number{font-size:48px;font-weight:400;line-height:1.2;font-variant-numeric:tabular-nums;margin:18px 0 5px}.today-card p{font-size:14px;margin:0}.reflection{background:var(--reading);border:1px solid var(--edge);border-radius:20px;margin-top:18px;padding:22px}.reflection p{font-size:14px;line-height:1.9;margin:0 0 14px}.verse-source{font-size:11px;line-height:1.6;letter-spacing:.3px}.notice{font-size:14px;line-height:1.6;text-align:center}.notice:empty{display:none}.notice:not(:empty){background:var(--reading);border-radius:16px;padding:14px}.insights{max-width:800px;margin:auto;padding:28px;background:var(--reading)}.insights h2{font-size:26px;letter-spacing:-.5px;font-weight:500;margin:12px 0}.insights p,.insights small{font-size:14px;line-height:1.7}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.stats>div{background:var(--soft);border:1px solid var(--edge);border-radius:16px;padding:18px}.stats span{font-size:13px;display:block}.stats strong{font-size:32px;font-weight:400;display:block;margin-top:12px;overflow-wrap:anywhere}.insights h3{font-size:15px;font-weight:500}.chart{height:180px;display:flex;gap:12px;margin-bottom:24px}.bar-column{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:9px;font-size:11px}.bar{width:100%;max-width:48px;background:linear-gradient(var(--accent),var(--soft));border-radius:6px;min-height:3px}.breakdown{display:flex;flex-wrap:wrap;gap:16px;border-top:1px solid var(--edge);padding:20px 0;font-size:14px}.breakdown b{margin-left:8px}.site-footer{text-align:center;font-size:12px;line-height:1.9;padding:20px 12px;margin:24px 0 8px;background:var(--reading);border:1px solid var(--edge);border-radius:18px;text-wrap:balance}.focus-mode .toolbar,.focus-mode .selection,.focus-mode .right-column,.focus-mode .site-footer,.focus-mode .header-note{display:none}.focus-mode .workspace{display:block;max-width:600px;margin:0 auto}.focus-mode .counter-card{min-height:calc(100svh - 120px);display:flex;flex-direction:column;justify-content:center}.focus-mode .count-button{width:280px;height:280px;flex-shrink:0}.focus-mode .counter-bottom{display:none}
@media(max-width:1000px){.workspace{grid-template-columns:190px minmax(300px,1fr)}.right-column{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:20px}.reflection{margin-top:0}.app{max-width:850px}.today-number{margin-top:10px}}
@media(max-width:620px){.app{padding:0 14px}header{height:82px}.header-note{display:none}.brand-name{font-size:27px}.brand-tagline{font-size:12px}.brand-mark{width:35px;height:35px}.toolbar{margin:0 0 14px;gap:8px}.tabs button{padding:8px 16px}.settings summary{font-size:12px;padding:10px 12px}.settings-panel{width:min(310px,calc(100vw - 28px))}.workspace{display:flex;flex-direction:column;gap:12px}.selection{display:flex;width:100%;padding:5px;border-radius:20px}.selection>.section-label{display:none}.mode{width:50%;padding:10px 9px;min-height:62px}.mode+.mode{margin:0}.mode strong{font-size:14px}.mode small{font-size:12px;line-height:1.4}.counter-card{width:100%;padding:10px 14px 14px}.steps{margin:10px 0}.step{font-size:11px;padding:6px 8px}.recitation #arabic{font-size:42px;line-height:1.6}.recitation h2{font-size:18px}.recitation p{font-size:14px}.count-button{width:220px;height:220px;margin:12px auto 6px}.count-inner strong{font-size:62px}.session-status{margin:6px 0;min-height:44px}.session-actions{margin:6px 0 12px}.counter-bottom{justify-content:center}.counter-bottom>span:last-child{display:none}.right-column{display:grid;width:100%;grid-template-columns:1fr;gap:12px}.today-card{display:grid;grid-template-columns:1fr auto;align-items:center;padding:16px 20px;gap:6px}.today-number{font-size:36px;margin:0;grid-column:2;grid-row:1/3}.today-card p{font-size:14px}.reflection{padding:18px 20px}.reflection p{margin-bottom:8px}.insights{padding:22px 16px}.stats{gap:7px}.stats>div{padding:14px 9px}.stats span{font-size:12px}.stats strong{font-size:26px}.chart{gap:7px}.bar-column{font-size:10px}.site-footer{font-size:12px;margin-top:16px}body[data-theme='malam'] .scene:after{width:120px;height:120px;right:4%;top:90px}.focus-mode .counter-card{min-height:calc(100svh - 96px)}.focus-mode .count-button{width:min(260px,70vw);height:min(260px,70vw)}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.practice-guide{margin:12px 0;text-align:left;border-top:1px solid var(--edge);font-size:14px;line-height:1.7}.practice-guide summary{cursor:pointer;padding:12px 0;display:flex;align-items:center;justify-content:space-between}.practice-guide summary:after{content:'+'}.practice-guide[open] summary:after{content:'−'}.practice-guide>div{background:var(--reading);border-radius:14px;padding:14px 18px;margin-bottom:14px}.practice-guide p{margin:0 0 12px}.practice-guide ol{padding-left:22px}.practice-guide a{display:inline-block;min-height:44px;padding-top:10px;text-underline-offset:4px}.practice-guide .source-note{font-size:12px}.focus-mode .practice-guide{display:none}.backup-section{margin-top:24px;border-top:1px solid var(--edge);padding-top:12px}.backup-actions{display:flex;flex-wrap:wrap;gap:10px}.file-label{display:flex;align-items:center;min-height:44px;border:1px solid var(--edge);border-radius:14px;background:var(--reading);padding:9px 14px;font-size:13px;cursor:pointer}.backup-actions input{max-width:100%;font:inherit;font-size:13px;width:100%}.backup-actions input::file-selector-button{padding:8px;border-radius:8px;border:1px solid var(--edge);background:var(--soft);color:var(--ink)}#import-preview{background:var(--soft);padding:16px;border-radius:14px}#import-summary{white-space:pre-line}#backup-status:empty{display:none}

/* Uploaded wordmark, framed without changing the original image file. */
.brand-wordmark{display:block;width:210px;height:50px;object-fit:cover;object-position:50% 51%;mix-blend-mode:multiply}.brand-copy{gap:3px}.brand-tagline{padding-left:24px}body[data-theme="malam"] .brand-wordmark,body[data-theme="petang"] .brand-wordmark{filter:invert(1) grayscale(1);mix-blend-mode:screen}@media(max-width:620px){.brand-wordmark{width:185px;height:44px}.brand-tagline{padding-left:21px;font-size:11px}}

.language-picker{display:flex;flex-shrink:0;gap:3px;background:var(--reading);border:1px solid var(--edge);border-radius:24px;padding:3px}.language-picker button{background:transparent;border:1px solid transparent;border-radius:20px;font-size:13px;min-width:44px;padding:8px;color:var(--ink)}.language-picker button[aria-pressed="true"]{border-color:var(--edge);background:var(--soft);font-weight:650}@media(max-width:380px){.brand-wordmark{width:165px;height:40px}.brand-tagline{padding-left:19px}}

/* A single counting button, with interchangeable digital and carved-wood surfaces. */
.counter-style-picker{display:flex;justify-content:center;gap:4px;margin:10px auto 4px;padding:3px;background:var(--reading);border:1px solid var(--edge);border-radius:24px;width:max-content;max-width:100%}.counter-style-picker button{background:transparent;border:1px solid transparent;border-radius:20px;padding:7px 18px;font-size:13px;min-height:44px}.counter-style-picker button[aria-pressed='true']{background:var(--soft);border-color:var(--edge);font-weight:600}.wood-scene{display:none;pointer-events:none}body[data-counter-style='beads'] .count-button{width:300px;height:290px;max-width:100%;margin:10px auto 4px;isolation:isolate}body[data-counter-style='beads'] .count-button>svg{display:none}body[data-counter-style='beads'] .wood-scene{display:block;position:absolute;inset:0;filter:drop-shadow(0 14px 9px #120a0533)}.tasbih-cord{position:absolute;left:10%;top:12%;width:80%;height:62%;border:3px solid #7e5b2b;border-radius:50%;box-shadow:0 1px 1px #f9dbae88,inset 0 1px 1px #1d0c0999}.wood-bead{position:absolute;width:24px;height:27px;transform:translate(-50%,-50%) rotate(var(--grain-angle));border-radius:48%;background:radial-gradient(ellipse at 28% 18%,#ffe3ab99 0%,#c4904f22 23%,transparent 45%),repeating-radial-gradient(ellipse at 170% -40%,transparent 0 3px,#32150944 4px,#e7ac6222 5px,transparent 7px),radial-gradient(ellipse at 30% 25%,#c69a64 0%,#9c6636 33%,#663917 64%,#32190d 88%,#180b06 100%);box-shadow:inset 1px 2px 3px #ffdfa17d,inset -3px -4px 5px #1c090ad9,2px 5px 6px #12070477;border:1px solid #5c321a;transition:box-shadow .15s,scale .15s}.wood-bead:nth-child(3n){filter:brightness(.87)}.wood-bead:nth-child(4n){border-radius:45% 50% 47% 49%;filter:brightness(1.08)}.wood-bead.active-bead{scale:1.18;outline:2px solid #f4ce8c;outline-offset:2px;z-index:1;box-shadow:inset 1px 2px 3px #ffdfa1aa,inset -3px -4px 5px #1c090ac9,0 0 12px #e9b95966,2px 5px 6px #12070477}.tasbih-tail{position:absolute;left:calc(50% - 1px);top:74%;height:17%;width:3px;background:linear-gradient(90deg,#4d341a,#d3aa6e,#4d341a);box-shadow:1px 2px 3px #0005}.tasbih-imamah{position:absolute;left:calc(50% - 11px);top:81%;width:22px;height:44px;border-radius:48% 48% 38% 38%/25% 25% 65% 65%;background:radial-gradient(ellipse at 30% 15%,#ffe5b666,transparent 50%),repeating-linear-gradient(0deg,transparent 0 8px,#24110755 9px,#e5ac6255 10px,transparent 12px),linear-gradient(90deg,#382011,#98643a 27%,#b98951 42%,#7b4825 68%,#2d150a);box-shadow:inset -3px -3px 5px #190b06aa,inset 1px 1px 2px #dfb07799,3px 6px 6px #10070466;border:1px solid #54301a}body[data-counter-style='beads'] .count-inner{inset:auto;left:50%;top:43%;width:138px;height:138px;transform:translate(-50%,-50%);background:radial-gradient(ellipse at 30% 15%,#ffe8b966,transparent 42%),repeating-radial-gradient(ellipse at 180% -25%,transparent 0 5px,#2e130833 6px,#e4aa6122 7px,transparent 9px),radial-gradient(ellipse at 30% 22%,#b98d58 0%,#926031 35%,#583018 72%,#271107 100%);color:#fff1d8;border:1px solid #5c331b;text-shadow:0 1px 3px #271207;box-shadow:inset 3px 4px 7px #ffdb9b66,inset -8px -10px 16px #210b09bb,7px 12px 15px #10070555;backdrop-filter:none;-webkit-backdrop-filter:none}body[data-counter-style='beads'] .count-inner:before{content:'';position:absolute;inset:8px;border:1px solid #d7a66e33;border-radius:50%;pointer-events:none}body[data-counter-style='beads'] .count-inner strong{font-size:43px;letter-spacing:-1.5px;z-index:1}body[data-counter-style='beads'] .count-inner>#target{font-size:9px;letter-spacing:.5px;margin-top:7px;z-index:1}body[data-counter-style='beads'] .tap-label{font-size:8px;margin-top:12px;z-index:1}body[data-counter-style='beads'] .count-button:active .count-inner{transform:translate(-50%,-50%) scale(.95)}body[data-counter-style='beads'] .count-button:active .wood-scene{transform:translateY(3px)}.focus-mode[data-counter-style='beads'] .count-button{width:320px;height:310px;flex-shrink:0}@media(max-width:620px){body[data-counter-style='beads'] .count-button{width:280px;height:270px}.wood-bead{width:22px;height:25px}.focus-mode[data-counter-style='beads'] .count-button{width:min(300px,82vw);height:min(290px,79vw)}}

/* AI-rendered rosewood, reused as one cached asset across the entire strand. */
.wood-bead{width:26px;height:28px;transform:translate(-50%,-50%);background:url('images/premium-rosewood-bead.webp') center/contain no-repeat;border:0;border-radius:50%;box-shadow:none;filter:drop-shadow(2px 4px 3px #16090188)}.wood-bead:nth-child(3n){filter:brightness(.93) drop-shadow(2px 4px 3px #16090188)}.wood-bead:nth-child(4n){border-radius:50%;filter:brightness(1.03) drop-shadow(2px 4px 3px #16090188)}.wood-bead.active-bead{box-shadow:0 0 13px #e9b95955;outline:2px solid #f4ce8c;outline-offset:1px;filter:drop-shadow(2px 4px 3px #16090188)}body[data-counter-style='beads'] .count-inner{background:url('images/premium-rosewood-bead.webp') center/contain no-repeat;border:0;box-shadow:none;filter:drop-shadow(5px 10px 7px #170a0666);color:#fff5e2;text-shadow:0 1px 4px #1a0909,0 0 12px #160a08}body[data-counter-style='beads'] .count-inner:before{inset:23px 16px 19px;border:0;background:radial-gradient(ellipse,#15090455,transparent 75%);border-radius:50%}body[data-counter-style='beads'] .count-inner strong{font-weight:500}.tasbih-imamah{background:linear-gradient(90deg,#17090499,transparent 30%,transparent 65%,#170904bb),url('images/premium-rosewood-bead.webp') center/cover no-repeat;border-color:#3d2114}.tasbih-cord{border-color:#967344;box-shadow:0 1px 1px #e2bf8099,inset 0 1px 1px #1d0c0999}@media(max-width:620px){.wood-bead{width:24px;height:26px}}
