/* One responsive layout, including Safari safe areas. */
html,body{min-width:0;overflow-x:clip}body{padding:0!important;background:var(--bg);font-size:15px}.app-shell{max-width:640px;border:0!important;border-radius:0!important;min-height:100svh;box-shadow:none!important;overflow:clip}.app-shell::before,.app-shell::after{display:none!important}button,input,select{font-size:16px}button,a,summary{touch-action:manipulation}.topbar{height:66px;min-height:66px;padding:12px 20px;justify-content:space-between!important}.topbar .brand{opacity:1!important;width:auto!important;pointer-events:auto!important;overflow:visible!important}.topbar .language-picker{display:none}.brand{letter-spacing:.14em;font-size:14px}.brand-mark{font-size:24px}.topbar #themeToggle{order:2}.screen{padding:20px 22px calc(110px + env(safe-area-inset-bottom));min-height:calc(100svh - 66px)}.screen h1{font-size:28px;letter-spacing:-.035em;margin:12px 0 24px}.screen-topline,.eyebrow,.screen-intro,.source-note,.privacy-card,.session-note,.about-app{display:none!important}.bottom-nav{position:fixed!important;inset:auto 0 0!important;width:100%!important;max-width:640px!important;margin:0 auto!important;transform:none!important;border-radius:24px 24px 0 0!important;padding:9px 8px calc(9px + env(safe-area-inset-bottom))!important;height:auto!important;min-height:76px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:var(--surface)!important;box-shadow:0 -8px 30px #163b2710;border-top:1px solid var(--line);z-index:50}.nav-item{min-width:0;padding:6px 2px!important;gap:4px;border-radius:16px;min-height:54px}.nav-item img{display:block;width:29px;height:29px;margin:auto}.nav-item small{font-size:11px!important;white-space:nowrap}.nav-item.active{background:var(--emerald-soft)!important}.nav-item>span{line-height:1}.icon-button{width:42px;height:42px;border-radius:50%}.icon-button img{width:25px;height:25px}
#tasbih.active{min-height:calc(100svh - 66px);padding-top:0;display:flex;flex-direction:column;align-items:center}#tasbih .screen-topline,#tasbih .practice-panel,#tasbih .tasbih-header-actions,#tasbih .tasbih-actions,#tasbih .session-note{display:none!important}#tasbih .tasbih-heading{order:0;margin:15px 0 0;text-align:center;display:block}#tasbih h1{font-size:20px;margin:0;line-height:1.5}#practiceSubtitle{display:none!important}#countButton{order:1;position:relative;isolation:isolate;width:100%;max-width:440px;height:clamp(290px,49svh,440px);min-width:0;min-height:0;border:0;border-radius:28px;margin:0 auto!important;background:transparent;box-shadow:none!important;display:flex;flex-direction:column;align-items:center;justify-content:center;touch-action:manipulation;transition:none}#countButton::before{content:'';position:absolute;width:min(72vw,300px);height:min(72vw,300px);border-radius:50%;background:radial-gradient(circle at 35% 25%,var(--surface),var(--emerald-soft));border:1px solid var(--line);box-shadow:0 18px 60px #12614a12;z-index:-1;transition:transform .2s ease}#countButton:active{transform:none}#countButton:active::before{transform:scale(.97)}#countButton .tasbih-number{font-size:clamp(64px,19vw,92px);font-weight:500;letter-spacing:-.05em;line-height:1.1;position:relative}#countButton .count-caption{font-size:13px;color:var(--muted);margin-top:14px}#countButton .tasbih-pulse,#countButton .tasbih-orbit{display:none}#countButton.tap-wave::before{animation:count-breathe .48s ease-out}@keyframes count-breathe{0%{transform:scale(.97)}50%{transform:scale(1.025);box-shadow:0 0 0 14px #43816c10}100%{transform:scale(1);box-shadow:0 0 0 30px transparent}}
.practice-choice{order:3;width:100%;max-width:420px;border:1px solid var(--line);border-radius:20px;background:var(--surface);padding:0;margin:0 auto 18px}.practice-choice summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:17px 18px;font-weight:650}.practice-choice summary::-webkit-details-marker{display:none}.practice-choice summary img{width:30px;height:30px}.practice-choice summary::after{content:'⌄';margin-inline-start:auto}.practice-choice[open] summary::after{transform:rotate(180deg)}.practice-choice .choice-content{padding:0 16px 16px;display:grid;gap:12px}.practice-choice .tasbih-actions,.practice-choice .tasbih-header-actions{display:flex!important;gap:10px;justify-content:center}.practice-choice .tasbih-actions>*{min-width:0}.practice-choice #saveTasbih{display:none!important}.practice-choice #practicePanel{display:block!important;border:0;background:var(--surface-soft);border-radius:16px;margin:0;padding:14px}.practice-choice #practicePanel[hidden]{display:none!important}.practice-choice .practice-icon,.practice-choice .practice-kicker{display:none}.practice-choice #tasbihStatus{display:none}#restartCycle{order:2;margin:0 0 14px}#restartCycle[hidden]{display:none}.app-shell.focus-mode .practice-choice{display:none!important}.app-shell.focus-mode #countButton{height:80svh}.help-links{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 20px}.help-links a{border:1px solid var(--line);padding:10px 14px;border-radius:14px;color:var(--ink);text-decoration:none;font-size:13px}
#quran .quran-art{height:110px;display:grid;place-items:center;background:none;margin:0 0 24px}#quran .quran-art>*{display:none}#quran .quran-art img{display:block;width:92px;height:92px}#quran .now-playing,#quran .player-controls #previousSurah,#quran .player-controls #nextSurah{display:none}#quran .field-label{font-size:13px;margin:16px 0 7px;color:var(--muted)}.select-field{width:100%;min-width:0;min-height:54px;border-radius:16px;font-size:16px;overflow:hidden;text-overflow:ellipsis}.audio-progress{margin-top:30px}.player-controls{margin:22px 0}.play-button{width:70px;height:70px}.settings-card{gap:14px;min-width:0}.settings-card h3{font-size:15px}.settings-card p{font-size:12px}.settings-card select{max-width:150px;min-width:0}.switch{flex-shrink:0;min-width:48px}.faq-section details{border:1px solid var(--line);border-radius:18px;margin:10px 0;background:var(--surface);overflow:hidden}.faq-section summary{padding:17px;cursor:pointer;font-weight:600;list-style:none;display:flex;gap:12px;align-items:center}.faq-section summary::after{content:'+';margin-inline-start:auto;color:var(--emerald)}.faq-section details[open] summary::after{content:'−'}.faq-section details p{padding:0 17px 17px;margin:0;color:var(--muted);font-size:14px;line-height:1.7;animation:screen-enter .22s ease}.faq-section h2{font-size:21px;margin-top:30px}
#knowledge>.screen-topline,#knowledge>h1,#knowledge>.screen-intro,#knowledge>.knowledge-quest,#knowledge>.daily-insight,#knowledge>.search-box,#knowledge>.knowledge-filters,#knowledge>.knowledge-grid{display:none!important}.library-title{margin:8px 0 8px!important}.library-lead{color:var(--muted);font-size:14px;line-height:1.6;margin:0 0 24px}.book-shelf{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.book-cover{position:relative;min-height:210px;padding:24px 16px 20px 22px;border:0;border-radius:6px 18px 18px 6px;background:#244e40;color:#f6ecd3;text-align:start;box-shadow:inset 7px 0 #0002,inset 9px 0 #ffffff18,0 12px 25px #183c2110;display:flex;flex-direction:column;justify-content:space-between;transition:transform .2s}.book-cover:nth-child(2){background:#6a5741}.book-cover:nth-child(3){background:#3d5e73;grid-column:1/-1;min-height:150px}.book-cover:hover{transform:translateY(-3px)}.book-cover img{width:44px;height:44px}.book-cover strong{font-size:19px;line-height:1.35;font-weight:600}.book-cover small{font-size:12px;opacity:.7}.book-reader{background:#fbf5e6;color:#3e443b;border-radius:8px 22px 22px 8px;box-shadow:inset 9px 0 #ac977726,0 16px 45px #183c2110;min-height:410px;padding:26px;position:relative}.reader-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:25px}.reader-head button,.reader-controls button{background:transparent;color:inherit;border:1px solid #b9ad942f;border-radius:14px;padding:11px 15px;min-height:44px}.reader-head small{font-size:12px;color:#737264}.reader-page{min-height:240px;animation:page-turn .35s ease}.reader-page h2{font:600 27px/1.3 Georgia,serif;color:#35443a;letter-spacing:-.02em}.reader-page p{font-size:16px;line-height:1.85;color:#5b6054}.reader-page .book-action{font-size:14px;border-top:1px solid #dcd1b9;padding-top:15px}.reader-page a{font-size:12px;color:#59785e}.reader-controls{display:flex;align-items:center;justify-content:space-between;margin-top:25px;gap:8px}.reader-controls span{font-size:12px}.reader-controls button:disabled{opacity:.3}.reader-page:focus{outline:none}@keyframes page-turn{from{opacity:0;transform:perspective(900px) rotateY(-9deg) translateX(8px)}to{opacity:1;transform:none}}
#scratch .scratch-card{margin:0;border-radius:24px;min-height:300px}#scratch .scratch-meter,#scratch #scratchCanvas,#scratch #scratchHint,#scratch #revealSunna{display:none!important}#scratch .split-actions{display:block;margin-top:20px}#scratch #newSunna{width:100%}#scratch .sunna-content{opacity:1!important}.modal{width:calc(100% - 28px)!important;max-width:500px;max-height:calc(100svh - 40px);overflow:auto;border-radius:24px}.practice-option{padding:16px;gap:12px}.practice-option>span:first-child{font-size:16px;flex-shrink:0}.practice-option small{line-height:1.5}.practice-option strong{font-size:15px}.settings-group{margin-top:22px}.settings-group>h2{font-size:17px}input[type=range]{width:100%}
#countButton::before{inset:auto;left:50%;top:50%;transform:translate(-50%,-50%)}#countButton:active::before{transform:translate(-50%,-50%) scale(.97)}#countButton .tasbih-number{transform:none;margin:0}#countButton .count-caption{position:static;inset:auto;transform:none;margin:14px 0 0}#countButton.tap-animation{animation:none!important}#tasbih .practice-choice .tasbih-actions,#tasbih .practice-choice .tasbih-header-actions{display:flex!important}#tasbih .practice-choice #practicePanel:not([hidden]){display:block!important}#tasbih:not(.free-practice) #countButton{width:100%;height:clamp(290px,49svh,440px)}#tasbih:not(.free-practice) #countButton .count-caption{position:static}#countButton{padding:0;color:var(--ink)}@keyframes count-breathe{0%{transform:translate(-50%,-50%) scale(.97)}50%{transform:translate(-50%,-50%) scale(1.025);box-shadow:0 0 0 14px #43816c10}100%{transform:translate(-50%,-50%) scale(1);box-shadow:0 0 0 30px transparent}}
@media(max-width:360px){.screen{padding-inline:16px}.book-shelf{gap:12px}.book-cover{padding:20px 14px 20px 18px;min-height:200px}.book-cover strong{font-size:17px}.reader-controls button{padding:10px}.settings-card select{max-width:125px}.nav-item small{font-size:10px!important}}
.nav-item>span{display:none}.nav-item small{font-size:12px!important}.nav-item{min-height:48px}.bottom-nav{min-height:66px;border-radius:20px 20px 0 0!important}.topbar #themeToggle{width:auto;min-width:64px;padding:0 12px;font-size:12px}.brand{font-size:12px;letter-spacing:.1em}.quran-art{display:none!important}.practice-choice summary::after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-4px}.practice-choice[open] summary::after{transform:rotate(225deg);margin-top:4px}.practice-choice .icon-action{width:auto;min-width:0;height:44px;padding:0 15px;font-size:13px;border-radius:14px}.practice-option>span:first-child:not(:has(strong)){display:none}.practice-option{grid-template-columns:1fr auto;display:grid}.book-cover{justify-content:center;gap:22px;border-radius:4px 14px 14px 4px}.book-edition{letter-spacing:.2em;font-size:10px;opacity:.55}.book-cover strong{font-family:Georgia,serif;font-weight:500;font-size:23px}.book-cover:nth-child(3){grid-column:auto;min-height:210px}.book-cover:nth-child(3) strong{font-size:23px}.reader-head{margin-bottom:22px}.reader-page{min-height:260px}.reader-page p{font-family:Georgia,serif;line-height:1.8}.reader-controls{justify-content:space-between}.reader-page{animation:reading-fade .18s ease}@keyframes reading-fade{from{opacity:.55}to{opacity:1}}#countButton.tap-wave::before{animation:gentle-tap .25s ease-out}@keyframes gentle-tap{0%{transform:translate(-50%,-50%) scale(.985)}100%{transform:translate(-50%,-50%) scale(1)}}#countButton .count-caption{pointer-events:none}#countButton .tasbih-number{pointer-events:none}.practice-choice .practice-option strong{font-family:inherit}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}html[data-reduce-motion=true] *,html[data-reduce-motion=true] *::before{animation:none!important;transition:none!important}

.settings-link>span:first-child{display:none}.reading-note{display:block;color:#797b6d;font-size:10px;line-height:1.5;margin-top:12px}.book-shelf{align-items:stretch}#countButton.goal-hit{animation:none!important}
