/* Shared rhythm and readable neutral themes. Six prayer tiles remain unchanged. */
body[data-route] #view{padding-top:24px!important}.u-head{margin-top:0;min-height:46px}.u-head h1{margin:0}body[data-route="prayer"] .u-head{margin-bottom:15px;padding-bottom:7px}.u-next{padding-top:0}.polish-reading-head h1{border-right:3px solid #23a5b4;padding-right:11px}.polish-reading,.polish-reading .reader-body,.polish-reading .reader-body p,.polish-reading footer{text-align:center}.reading-notes{background:transparent!important}.source-actions{flex:2;min-width:0}.source-actions a{white-space:nowrap;flex-wrap:nowrap}.source-actions .icon{flex-shrink:0}.lesson-links.e-lesson-link{display:flex;justify-content:center;margin:20px 0}.lesson-links.e-lesson-link a{background:var(--teal);color:#fff;min-width:180px;text-align:center}body[data-route="video"] .reader-actions :is(a,button){background:var(--teal);color:#fff;border-color:var(--teal)}body[data-route="video"] .reader-actions [disabled]{opacity:.4}
.e-qibla{text-align:center;max-width:360px;margin:auto}.e-qibla-location{display:inline-flex;align-items:center;gap:7px;font-size:14px}.e-bearing{margin:19px 0 8px}.e-bearing strong{font-size:24px;display:block;line-height:1.7}.e-bearing>span{display:block;font-size:13px;color:var(--muted)}.e-compass{position:relative;width:min(270px,75vw);aspect-ratio:1;margin:10px auto 18px;color:#9cc9cf}.e-compass>svg{width:100%;height:100%}.e-compass>span{position:absolute;color:var(--muted);font-size:13px;z-index:1}.e-north{top:16%;left:48%}.e-south{bottom:16%;left:48%}.e-east{right:15%;top:46%}.e-west{left:15%;top:46%}.e-needle{position:absolute;inset:18%;color:var(--teal);transform-origin:50% 50%;transition:transform .25s linear}.e-needle svg{height:100%;width:100%}.e-compass-wait{position:absolute;inset:35%;display:grid;place-items:center;color:var(--teal)}.e-compass-wait[hidden],.e-needle[hidden]{display:none}.e-compass-wait .icon{width:55px;height:55px}.e-qibla h2{font-size:17px;margin:12px 0 4px}.e-qibla .note{font-size:13px;line-height:1.7}.e-qibla .primary{margin-top:15px}body[data-route="qibla"] #view{height:auto;min-height:100dvh;overflow:visible}
.e-wird{padding:0 2px 25px;border-bottom:1px solid var(--line)}.e-wird-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.e-wird-title small{color:var(--teal);font-size:14px}.e-wird-title h2{font-size:24px;margin:5px 0;font-weight:600}.e-wird-open{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--surface)}.e-wird-progress{display:flex;gap:15px;align-items:center;margin:23px 0 15px;font-size:15px;color:var(--teal)}.e-wird-bar{height:7px;background:#e1e9eb;border-radius:8px;overflow:hidden;flex:1}.e-wird-bar i{display:block;height:100%;background:var(--teal);border-radius:8px}.e-wird-bottom{display:flex;align-items:center;gap:17px;font-size:13px;color:var(--muted);margin-top:15px}.e-wird-bottom b{font-size:17px;color:var(--ink);margin-left:4px}.e-wird-bottom a{margin-right:auto;display:flex;gap:5px;align-items:center}.e-wird-bottom .icon{width:16px;height:16px}.e-ward-start,.e-bookmark{padding:22px 12px;text-align:center}.e-feature-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:17px;background:#e5f3f5;color:var(--teal);margin:0 auto 22px;flex-shrink:0}.e-feature-icon .icon{width:28px;height:28px}.e-ward-start h2,.e-bookmark h2{font-size:23px}.e-ward-start p{font-size:15px;color:var(--muted);margin-bottom:30px}.e-bookmark>small{font-size:14px}.e-bookmark-meta{display:flex;justify-content:center;gap:25px;margin:23px 0;color:var(--muted);font-size:14px}.e-bookmark-meta b{color:var(--teal)}.e-detail-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.e-detail-heading h2{font-size:18px;margin:0}.e-detail-heading>span{font-size:13px;color:var(--muted)}.e-ward-detail{padding:22px 18px;border:1px solid var(--line);background:var(--surface);border-radius:18px}.e-ward-range{padding:0 0 10px}.e-ward-range>div{display:flex;gap:14px;align-items:center;padding:15px 0}.e-ward-range>div+div{border-top:1px solid var(--line)}.e-ward-range>div>span{color:var(--muted);font-size:13px;min-width:23px}.e-ward-range h3{font-size:19px;margin:0 0 5px;line-height:1.6}.e-ward-range small{font-size:13px}.e-ward-detail .full{width:100%;display:flex;justify-content:center;gap:7px;align-items:center}.e-ward-summary{margin-top:28px;padding:0 3px}.e-ward-summary>.text-button{display:block;margin:17px auto 0}.e-setup-caption{margin:6px 0 24px;color:var(--muted);font-size:15px}.e-plan{padding:20px 17px;background:var(--surface);border:1px solid var(--line);border-radius:17px;margin:0 0 18px}.e-plan.selected{border-color:var(--teal)}.e-plan label{display:flex;align-items:center;gap:10px;font-size:16px;margin:0}.e-plan-step{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:10px;margin:17px 0}.e-plan-step button{padding:0;min-height:44px;margin:0;font-size:22px}.e-plan-step strong{text-align:center;font-size:18px;line-height:1.7}.e-plan .note{margin:0;text-align:center}
body[data-route="mushaf"] .mushaf-tools,body[data-route="kahf"] .mushaf-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:13px;margin-bottom:18px}.mushaf-tools .text-button{font-size:13px;padding:6px;min-height:38px}.mushaf-page{padding:24px 17px!important;border-radius:14px!important;line-height:2.5!important;text-align:justify}.mushaf-page .ayah{display:inline!important;width:auto!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0;font-size:22px!important;line-height:2.5!important;font-weight:400;background:transparent;color:var(--ink);vertical-align:baseline;text-align:inherit;white-space:normal}.mushaf-page .surah-title{font-family:Thmanyah,sans-serif!important;font-size:18px!important;line-height:1.7;margin:5px 0 20px;padding:12px;background:transparent;border-bottom:1px solid var(--line);text-align:center}.mushaf-page .ayah-no{font-size:13px!important;border:1px solid var(--line);border-radius:50%;padding:2px 5px;white-space:nowrap}.mushaf-page.opening-page{min-height:0}.page-number{margin-top:25px;font-size:14px}body[data-route="surahs"] .tile strong{font-family:Thmanyah,sans-serif!important;font-size:16px!important}body[data-route="surahs"] .tile{padding:15px;min-height:76px}body[data-route="surahs"] .tile small{font-size:13px}
.e-radio-mast{padding:26px 10px 8px;margin:0;text-align:center}.e-radio-mast h1{font-size:26px!important;margin:16px 0 4px}.e-radio-mast p{font-size:15px}.e-radio-signal{color:var(--teal);padding:15px 0}.e-radio-signal>.icon{width:44px;height:44px;margin-bottom:16px}.e-radio-signal>div{display:flex;height:65px;gap:6px;align-items:center;justify-content:center;direction:ltr}.e-radio-signal i{display:block;width:4px;max-height:62px;border-radius:4px;background:currentColor;opacity:.6}.e-radio-signal i:nth-child(3n){opacity:.25}.radio-selector{gap:9px!important;margin-bottom:13px!important}.radio-selector .muted{font-size:13px;min-width:35px}.radio-selector .grow{font-size:15px!important}body[data-route="radio"] .audio-panel{border:0!important;background:transparent!important;padding:10px 4px!important}.e-radio-mast+#seek{width:100%}body[data-route="live"] .card{padding:0!important;overflow:hidden}body[data-route="live"] video{border-radius:0!important;aspect-ratio:16/9;background:#071d24;display:block}body[data-route="live"] .card h2{font-size:19px;margin:22px 12px 4px}body[data-route="live"] .card p{font-size:14px;margin:8px 15px 22px}.live-label{font-size:14px;margin:0 0 16px}.e-live-radio{display:flex;justify-content:center;align-items:center;gap:9px;margin-top:25px}body[data-route="live"] details{line-height:1.8}
.e-reading-tools{display:flex;justify-content:space-between;gap:6px;padding:8px 0 14px;border-bottom:1px solid var(--line);margin-bottom:15px}.e-reading-tools .text-button{display:flex;align-items:center;gap:6px;font-size:13px;background:transparent;padding:7px}.e-reading-tools .icon{width:19px;height:19px}.e-reader-position{display:flex;gap:7px;justify-content:center;font-size:15px;margin:15px 0;color:var(--teal)}.e-reader-position span{color:var(--muted);font-size:13px}.e-dhikr-card{height:clamp(240px,43dvh,430px);overflow:auto;overscroll-behavior:contain;padding:21px 18px!important;border-radius:17px!important;scrollbar-width:thin}.e-dhikr-card .reader-body,.e-dhikr-card .reader-body p{font-size:16px!important;line-height:2.05!important;font-weight:400;text-align:center;color:var(--ink)}.e-dhikr-card .reader-body p{margin:0 0 16px}.e-dhikr-card .reader-body p:last-child{margin-bottom:0}.e-notes{margin:16px 0 25px;padding:12px 2px;border:0;border-top:1px solid var(--line);border-radius:0;font-size:13px}.e-notes summary{text-align:center;min-height:36px;padding-top:7px}.e-notes .reader-body,.e-notes .reader-body p{font-size:13px!important;line-height:1.9!important;color:var(--muted)}.e-favorites article{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:14px;margin-bottom:13px}.e-favorites article>a{display:flex;align-items:center;gap:13px;flex:1}.e-favorites small{display:block;font-size:12px;margin-top:4px}.e-favorites strong{font-size:15px}.e-favorites .icon-btn{background:transparent}
.e-occasions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.e-occasions .u-event{display:flex;flex-direction:column;gap:10px;text-align:center;margin:0;padding:17px 6px;border-right-width:1px;border-radius:14px}.e-occasions .u-event>span{display:none}.e-occasions h2{font-size:14px;white-space:nowrap}.e-occasions .u-event>strong{margin:0;font-size:29px}.e-occasions .u-event>div small{font-size:11px;line-height:1.6}.e-umrah-entry{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-right:3px solid var(--teal);padding:18px 14px;border-radius:16px}.e-umrah-entry .e-feature-icon{margin:0;width:43px;height:43px}.e-umrah-entry strong{font-size:16px;display:block}.e-umrah-entry small{font-size:12px;display:block;margin-top:6px}.e-umrah-entry>.icon{margin-right:auto;width:18px}.e-journey-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:5px 0 28px}.e-journey-tabs>a{position:relative;text-align:center;display:flex;flex-direction:column;align-items:center;gap:9px;font-size:13px;color:var(--muted)}.e-journey-tabs>a:before{content:'';position:absolute;top:17px;height:1px;background:var(--line);width:100%;left:50%;z-index:0}.e-journey-tabs>a:first-child:before{display:none}.e-journey-tabs span{position:relative;display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:var(--surface);border:1px solid var(--line)}.e-journey-tabs .active span,.e-journey-tabs .done span{background:var(--teal);color:#fff;border-color:var(--teal)}.e-journey-tabs .icon{width:16px;height:16px}.e-journey-tabs .active{color:var(--teal);font-weight:700}.e-stage-title{text-align:center;margin-bottom:20px}.e-stage-title small{font-size:13px}.e-stage-title h2{font-size:21px}.u-widget-grid{margin-bottom:25px}body[data-route="settings"] .u-entry{margin:16px 0}.settings-card{margin-top:18px!important}.settings-card .switch-row .grow{min-width:0!important}.settings-card .switch-row{flex-wrap:nowrap!important;gap:12px}.settings-card .switch-row .toggle{flex-shrink:0}.reading-actions>a,.reading-actions>button{flex:1}.reading-actions{gap:10px}.reading-actions .primary,.reading-actions .secondary{margin-top:0}
html[data-theme="gray"]{--night-bg:#252729;--night-shell:#303234;--night-card:#3a3d3f;--night-raised:#44484a;--night-soft:#354548;--night-line:#535a5d;--night-ink:#f3f5f5;--night-muted:#bdc8cb;--night-accent:#83d4df;--night-accent-ink:#123439;--night-selected:#355054;--night-bar:#303234;--night-ring:#566366;--night-hero:#354548}.preview-gray{background:#303234;border-color:#535a5d}.preview-gray b,.preview-gray em{background:#44484a}.preview-gray i{background:#83d4df}html[data-theme]:not([data-theme="light"]) body :is(.u-head h1,.u-section h2,.u-head>a,.u-entry strong,.u-prayer-tools a,.u-prayer-tools button,.u-link,.u-ward-go,.e-bearing,.e-wird-title h2,.e-wird-bottom b,.polish-reading .reader-body,.polish-reading .reader-body p,.polish-reading footer>p,.e-reader-position,.e-favorites strong){color:var(--night-ink)!important}html[data-theme]:not([data-theme="light"]) body :is(.e-feature-icon,.u-icon,.u-widget-mini,.e-compass-wait,.e-needle){background:transparent;color:var(--night-accent)}html[data-theme]:not([data-theme="light"]) body :is(.e-plan,.e-ward-detail,.e-favorites article,.e-umrah-entry,.e-wird-open){background:var(--night-card);border-color:var(--night-line);color:var(--night-ink)}html[data-theme]:not([data-theme="light"]) .e-wird-bar{background:var(--night-line)}html[data-theme]:not([data-theme="light"]) .e-wird-bar i{background:var(--night-accent)}html[data-theme]:not([data-theme="light"]) .e-journey-tabs span{background:var(--night-card);border-color:var(--night-line)}html[data-theme]:not([data-theme="light"]) .e-journey-tabs :is(.active,.done) span{background:var(--night-accent);color:var(--night-accent-ink)}html[data-theme]:not([data-theme="light"]) body .reading-notes{background:transparent!important}html[data-theme]:not([data-theme="light"]) body #nav{background:var(--night-shell)!important}html[data-theme]:not([data-theme="light"]) body :is(.lesson-links.e-lesson-link a,.e-wird-open,.e-live-radio){color:var(--night-ink)}html[data-theme]:not([data-theme="light"]) body .primary,html[data-theme]:not([data-theme="light"]) body .primary :is(span,strong,.icon){color:var(--night-accent-ink)!important}html[data-theme]:not([data-theme="light"]) .u-format-icon{background:var(--night-raised);border-color:var(--night-accent)}html[data-theme]:not([data-theme="light"]) .u-format-icon i{background:var(--night-accent)}html[data-theme]:not([data-theme="light"]) .e-dhikr-card .reader-body p{color:var(--night-ink)!important}
@media(max-width:360px){.e-wird-title h2{font-size:21px}.e-wird-bottom{gap:10px;font-size:12px}.e-occasions{gap:6px}.e-occasions h2{font-size:13px}.source-actions a{font-size:12px;padding-inline:5px}.reading-actions{gap:6px}.source-actions{gap:4px}.source-actions .icon{display:none}.e-reading-tools .text-button{font-size:12px;padding:5px}}
