@font-face{font-family:Amiri;src:url('./fonts/Amiri-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Amiri;src:url('./fonts/Amiri-Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
/* Shared typography, accessibility and surfaces. Theme rules below change layout,
   navigation, hierarchy and geometry; content and React event handlers stay intact. */
@font-face{font-family:RahVazir;src:url('./fonts/Vazirmatn.woff2') format('woff2');font-weight:100 900;font-display:swap}
html[data-design]{--ds-bg:#f4f5ef;--ds-panel:#fffef9;--ds-soft:#e7eee7;--ds-ink:#193d36;--ds-muted:#61736b;--ds-accent:#176253;--ds-gold:#9a752e;--ds-line:#d6e0d7;--ds-hero:#124e45;--ds-onhero:#fff9e8;--ds-radius:20px;--ds-shadow:0 8px 30px #183d3610;--ds-gap:24px;--ds-font:RahVazir,Vazirmatn,Tahoma,sans-serif;color-scheme:light;background:var(--ds-bg)!important;font-size:16px}
html:not([data-experience=sanctuary])[data-design=daftar]{--ds-bg:#f3eee4;--ds-panel:#fffaf0;--ds-soft:#eae1d2;--ds-ink:#3d342c;--ds-muted:#74665b;--ds-accent:#854a35;--ds-gold:#854a35;--ds-line:#cfc4b3;--ds-hero:#e9dfcb;--ds-onhero:#493a2c;--ds-radius:3px;--ds-shadow:none;--ds-gap:32px}
html:not([data-experience=sanctuary])[data-design=orbit]{--ds-bg:#0c1420;--ds-panel:#152231;--ds-soft:#203344;--ds-ink:#edf4fc;--ds-muted:#a9bbcd;--ds-accent:#8bded6;--ds-gold:#dcc593;--ds-line:#2b4154;--ds-hero:#183143;--ds-onhero:#ecfcfc;--ds-radius:22px;--ds-shadow:0 15px 40px #0002;--ds-gap:20px;color-scheme:dark}
html:not([data-experience=sanctuary])[data-design=garden]{--ds-bg:#eef3e8;--ds-panel:#fffffff0;--ds-soft:#e0ead8;--ds-ink:#304831;--ds-muted:#647360;--ds-accent:#466c3f;--ds-gold:#9a6542;--ds-line:#d3dfc9;--ds-hero:#dce6ca;--ds-onhero:#304831;--ds-radius:30px;--ds-shadow:0 14px 35px #36552b0b;--ds-gap:28px}
html:not([data-experience=sanctuary])[data-design=atlas]{--ds-bg:#f3f4f2;--ds-panel:#fff;--ds-soft:#e9edff;--ds-ink:#182229;--ds-muted:#606a72;--ds-accent:#244bcc;--ds-gold:#244bcc;--ds-line:#26323c;--ds-hero:#e3ee75;--ds-onhero:#182229;--ds-radius:0px;--ds-shadow:4px 4px 0 #26323c;--ds-gap:24px}
html[data-design][data-siraj-dark=on]{--ds-bg:#101922;--ds-panel:#192732;--ds-soft:#243744;--ds-ink:#eef2eb;--ds-muted:#b4c5c6;--ds-accent:#a5ddd0;--ds-gold:#ead29c;--ds-line:#3b515c;--ds-hero:#253e46;--ds-onhero:#f6f8eb;--ds-shadow:0 10px 28px #0002;color-scheme:dark}
html[data-design] body{background:var(--ds-bg)!important;background-image:none!important;color:var(--ds-ink)!important;min-width:320px}
html[data-design] .app-shell,html[data-design] .app-shell.is-dark{--ink:var(--ds-ink);--ink-soft:var(--ds-muted);--muted:var(--ds-muted);--deep:var(--ds-ink);--deep-2:var(--ds-accent);--teal:var(--ds-accent);--teal-soft:var(--ds-soft);--gold:var(--ds-gold);--gold-soft:var(--ds-soft);--paper:var(--ds-bg);--white:var(--ds-panel);--line:var(--ds-line);--shadow:var(--ds-shadow);--radius-xl:var(--ds-radius);--radius-lg:var(--ds-radius);--radius-md:var(--ds-radius);--siraj-deep:var(--ds-accent);--siraj-gold:var(--ds-gold);--siraj-bg:var(--ds-bg);--siraj-card:var(--ds-panel);--siraj-border:var(--ds-line);--siraj-muted:var(--ds-muted);background:transparent!important;color:var(--ds-ink)}
html[data-design] :is(body,button,input,select,textarea){font-family:var(--ds-font)!important}
html[data-design] :is(h1,h2,h3,.brand-copy strong,.topbar-heading strong){font-family:var(--ds-font)!important;letter-spacing:-.035em;line-height:1.6;color:var(--ds-ink)}
html[data-design][data-siraj-font=tahoma]{--ds-font:Tahoma,sans-serif}
html[data-design][data-siraj-font=serif],html[data-design][data-siraj-font=naskh]{--ds-font:Amiri,'Noto Naskh Arabic',Georgia,serif}
html[data-design][data-siraj-font=arial]{--ds-font:Arial,Tahoma,sans-serif}
html[data-design][data-siraj-ui-size=small]{font-size:15px}
html[data-design][data-siraj-ui-size=large]{font-size:18px}
html[data-design][data-siraj-ui-size=xlarge]{font-size:20px}
html[data-design] :is(button,a,input,select,textarea):focus-visible{outline:3px solid var(--ds-accent)!important;outline-offset:4px}
html[data-design] button{touch-action:manipulation;cursor:pointer}
html[data-design] button:disabled{cursor:not-allowed;opacity:.5}
html[data-design] :is(input,select,textarea){max-width:100%;min-width:0;min-height:44px;border:1px solid var(--ds-line)!important;border-radius:12px!important;background:var(--ds-panel)!important;color:var(--ds-ink)!important;box-shadow:none!important;accent-color:var(--ds-accent)}
html[data-design] :is(input,textarea)::placeholder{color:var(--ds-muted);opacity:1}
html[data-design] :is(.app-main,main){max-width:none!important;margin:0!important;padding-bottom:100px!important;min-width:0}
html[data-design] .page-wrap{width:100%;max-width:1280px;margin-inline:auto;padding:30px clamp(20px,4vw,60px) 20px}
html[data-design] .page{gap:var(--ds-gap);min-width:0}
html[data-design] .desktop-topbar{max-width:1280px;padding:24px clamp(20px,4vw,60px) 0}
html[data-design] .topbar{border-bottom:1px solid var(--ds-line);padding-bottom:18px}
html[data-design] .welcome-row{align-items:center}
html[data-design] .welcome-row h1{font-size:clamp(1.8rem,3vw,2.7rem);margin:6px 0}
html[data-design] .welcome-row p{color:var(--ds-muted);font-size:.84rem;line-height:1.9}
html[data-design] .section-eyebrow{color:var(--ds-accent)!important;font-size:.72rem}
html[data-design] :is(.section-heading h2,.daily-ethics-heading h2){font-size:1.12rem}
html[data-design] :is(.page-intro,.library-hero,.ahlulbayt-panel){background:var(--ds-panel)!important;color:var(--ds-ink)!important;border:1px solid var(--ds-line)!important;border-radius:var(--ds-radius)!important;padding:24px;box-shadow:none!important}
html[data-design] .sidebar{position:sticky;top:0;height:100dvh;min-height:600px;flex:0 0 232px;padding:32px 20px;background:var(--ds-hero)!important;color:var(--ds-onhero)!important;border:0!important;border-inline-end:1px solid var(--ds-line)!important;border-radius:0!important;margin:0!important;box-shadow:none!important;overflow-y:auto}
html[data-design] .sidebar:before,html[data-design] .sidebar:after{display:none}
html[data-design] .sidebar .brand-copy strong{color:var(--ds-onhero)}
html[data-design] .sidebar :is(.brand-copy small,.sidebar-footer button,.sidebar-footer span){color:var(--ds-onhero);opacity:.8}
html[data-design] .sidebar .nav-button{color:var(--ds-onhero);opacity:.72;min-height:50px}
html[data-design] .sidebar .nav-button.is-active{opacity:1;background:var(--ds-panel)!important;color:var(--ds-ink)!important;box-shadow:none!important}
html[data-design] .nav-button.is-active svg{color:inherit!important}
html[data-design] .nav-button{border-radius:12px!important}
html[data-design] .sidebar-divider{height:1px;background:currentColor;opacity:.15;margin:30px 0}
html[data-design] .sidebar-divider:before,html[data-design] .sidebar-divider:after{display:none}
html[data-design] .hero-card{min-height:318px;background:var(--ds-hero)!important;color:var(--ds-onhero)!important;border:1px solid var(--ds-line)!important;border-radius:var(--ds-radius)!important;box-shadow:none!important;isolation:isolate}
html[data-design] .hero-main{padding:32px 34px 85px}
html[data-design] .hero-main h2{color:var(--ds-onhero)!important;font-size:2.45rem;margin:12px 0 0}
html[data-design] .hero-main :is(p,.hero-kicker){color:var(--ds-onhero)!important;opacity:.8}
html[data-design] .hero-countdown{margin:12px 0 16px}
html[data-design] .hero-countdown strong{color:var(--ds-onhero);font-size:2.2rem;font-variant-numeric:tabular-nums;letter-spacing:.06em}
html[data-design] .hero-link,html[data-design] .hero-footer button{color:var(--ds-onhero)!important}
html[data-design] .hero-footer{right:34px;left:34px;bottom:20px;border-top-color:currentColor}
html[data-design] .hero-footer span{color:var(--ds-onhero);opacity:.65}
html[data-design] .hero-orbit{transform:none;left:8%;opacity:.7}
html[data-design] :is(.hero-glow-one,.hero-glow-two){display:none}
html[data-design] :is(.library-item,.quick-action,.daily-ethics-card,.ritual-card,.more-link,.ahlulbayt-person-card,.ahlulbayt-category-card,.ahlulbayt-shrine-card,.ahlulbayt-text-card,.siraj-worship-card,.siraj-worship-category,.siraj-extra-card,.siraj-extra-quran-card,.settings-card,.content-card,.tool-card,.prayer-card,.daily-practice,.profile-card){background:var(--ds-panel)!important;color:var(--ds-ink)!important;border:1px solid var(--ds-line)!important;border-radius:var(--ds-radius)!important;box-shadow:var(--ds-shadow)!important;min-width:0}
html[data-design] :is(.library-item,.quick-action,.ritual-card,.more-link,.ahlulbayt-person-card,.ahlulbayt-category-card,.siraj-worship-category,.siraj-worship-card){padding:20px;min-height:100px;transition:transform .18s ease,border-color .18s ease}
html[data-design] :is(.library-item,.quick-action,.ritual-card,.more-link,.ahlulbayt-person-card,.ahlulbayt-category-card,.siraj-worship-category,.siraj-worship-card):hover{border-color:var(--ds-accent)!important;transform:translateY(-3px)}
html[data-design] :is(.library-item-icon,.quick-action-icon,.ritual-icon,.more-link-icon,.ahlulbayt-person-icon,.ahlulbayt-category-icon,.ahlulbayt-shrine-card-icon){background:var(--ds-soft)!important;color:var(--ds-accent)!important;border-radius:14px!important;box-shadow:none;flex-shrink:0}
html[data-design] :is(.library-item-copy,.quick-action-copy,.ahlulbayt-person-copy){min-width:0}
html[data-design] :is(.library-item,.quick-action,.ritual-card,.more-link,.ahlulbayt-person-card,.ahlulbayt-category-card,.siraj-worship-category,.siraj-worship-card) strong{color:var(--ds-ink)!important;font-size:.91rem;line-height:1.8;white-space:normal}
html[data-design] :is(.library-item,.quick-action,.ritual-card,.more-link,.ahlulbayt-person-card,.ahlulbayt-category-card,.siraj-worship-category,.siraj-worship-card) :is(small,p){color:var(--ds-muted)!important;font-size:.73rem;line-height:1.9;white-space:normal}
html[data-design] :is(.quick-actions-grid,.library-list,.more-links,.ritual-grid,.ahlulbayt-person-grid,.ahlulbayt-category-grid,.siraj-worship-grid,.siraj-worship-dashboard){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
html[data-design] .daily-ethics-card{padding:24px}
html[data-design] :is(.daily-ethics-arabic,.daily-ethics-hadith,.daily-detail-arabic,.daily-detail-hadith){color:var(--ds-ink)!important;line-height:2.1}
html[data-design] :is(.daily-ethics-note,.daily-detail-note,.daily-detail-verse,.daily-ethics-person){background:var(--ds-soft)!important;color:var(--ds-ink)!important;border-color:var(--ds-line)!important}
html[data-design] :is(.daily-ethics-note p,.daily-detail-note p){color:var(--ds-ink)!important}
html[data-design] :is(.daily-ethics-reference,.daily-ethics-hadith-source,.daily-ethics-card-label,.daily-ethics-card-footer,.daily-detail-source){color:var(--ds-muted)!important}
html[data-design] :is(.text-button,.content-tag,.daily-ethics-card-arrow,.library-item-tag){color:var(--ds-accent)!important}
html[data-design] :is(.icon-button,.location-pill,.quran-back-button,.avatar-button){color:var(--ds-accent);background:var(--ds-panel);border:1px solid var(--ds-line);box-shadow:none;min-height:44px}
html[data-design] .bottom-nav{background:var(--ds-panel)!important;border:1px solid var(--ds-line)!important;box-shadow:0 -2px 24px #0001!important;height:auto;min-height:68px;padding:5px 4px!important;bottom:calc(10px + env(safe-area-inset-bottom,0px))!important}
html[data-design] .bottom-nav .nav-button{color:var(--ds-muted);min-width:0}
html[data-design] .bottom-nav .nav-button.is-active{background:var(--ds-soft)!important;color:var(--ds-accent)!important}
html[data-design] :is(.detail-sheet,.search-panel,.siraj-polish-box){background:var(--ds-panel)!important;border:1px solid var(--ds-line)!important;color:var(--ds-ink)!important;border-radius:var(--ds-radius)!important;max-height:90dvh;overflow-y:auto;overscroll-behavior:contain}
html[data-design] .siraj-polish-box{width:min(560px,100%)}
html[data-design] :is(.detail-sheet-header,.detail-callout,.detail-source-card,.detail-preference,.search-result,.siraj-parallel-row){background:var(--ds-panel)!important;color:var(--ds-ink)!important;border-color:var(--ds-line)!important}
html[data-design] :is(.detail-primary-button,.siraj-polish-box>button){background:var(--ds-accent)!important;color:var(--ds-bg)!important}
html[data-design] :is(.detail-secondary-button,.detail-option){background:var(--ds-soft)!important;color:var(--ds-ink)!important;border-color:var(--ds-line)!important}
html[data-design] .siraj-polish-modal{padding:16px}
html[data-design] .siraj-polish-box :is(h3,p,label){color:var(--ds-ink)!important}
html[data-design] :is(.quran-arabic,.siraj-parallel-arabic,.nahj-arabic-body,.sahifa-arabic-body,.ahlulbayt-reading-arabic){line-height:2.25!important;color:var(--ds-ink)!important}
html[data-design] :is(.reader-text,.content-body,.siraj-extra-text,.siraj-parallel-translation,.ziyarat-file-text,.nahj-text-body,.sahifa-translation-body){color:var(--ds-ink)!important;line-height:2.1!important;overflow-wrap:break-word}
html[data-design] :is(.quran-reader-page,.nahj-reader-page,.sahifa-reader-page,.mafatih-reader-page,.ziyarat-reader-page) :is(h1,h2,h3,strong){color:var(--ds-ink)}
html[data-design] .siraj-hidden-placeholder,html[data-design] .siraj-more-disabled{display:none!important}
/* 01 — SAHN: architectural arches and a calm permanent side nave. */
html:not([data-experience=sanctuary])[data-design=sahn] .sidebar .brand-mark{padding:20px 8px 24px;border:1px solid #d8cb9e66;border-radius:90px 90px 12px 12px;justify-content:center}
html:not([data-experience=sanctuary])[data-design=sahn] .hero-card{border-radius:100px 20px 20px 20px!important;background:radial-gradient(ellipse at 20% 0,#9aac7333,transparent 65%),var(--ds-hero)!important}
html:not([data-experience=sanctuary])[data-design=sahn] .hero-orbit{width:190px;height:244px;border:1px solid #d8cb9e80;border-radius:100px 100px 8px 8px;top:36px;left:7%;display:grid;place-items:center}
html:not([data-experience=sanctuary])[data-design=sahn] .hero-orbit:after{content:'';position:absolute;inset:10px;border:1px solid #d8cb9e55;border-radius:inherit}
html:not([data-experience=sanctuary])[data-design=sahn] .orbit-ring{display:none}
html:not([data-experience=sanctuary])[data-design=sahn] .orbit-core{position:static;transform:none;background:#d8cb9e22;color:#e7d5a7}
html:not([data-experience=sanctuary])[data-design=sahn] :is(.library-item,.ahlulbayt-person-card){border-radius:50px 50px 16px 16px!important;min-height:165px;grid-template-columns:1fr;text-align:center;justify-items:center}
html:not([data-experience=sanctuary])[data-design=sahn] :is(.library-item,.ahlulbayt-person-card)>svg{display:none}
html:not([data-experience=sanctuary])[data-design=sahn] .library-list{grid-template-columns:repeat(3,minmax(0,1fr))!important}
html:not([data-experience=sanctuary])[data-design=sahn] .section-heading{border-bottom:1px solid var(--ds-line);padding-bottom:12px}
/* 02 — DAFTAR: horizontal masthead, editorial columns and ruled lists. */
html:not([data-experience=sanctuary])[data-design=daftar] .app-shell{display:block}
html:not([data-experience=sanctuary])[data-design=daftar] .sidebar{position:relative;height:auto;min-height:0;padding:20px 5vw;display:flex;flex-direction:row;align-items:center;gap:32px;border-bottom:2px solid var(--ds-ink)!important;background:var(--ds-panel)!important;overflow:visible}
html:not([data-experience=sanctuary])[data-design=daftar] .sidebar :is(.brand-copy strong,.nav-button,.sidebar-footer button){color:var(--ds-ink)}
html:not([data-experience=sanctuary])[data-design=daftar] .sidebar-nav{flex-direction:row;flex:1;justify-content:center;flex-wrap:wrap}
html:not([data-experience=sanctuary])[data-design=daftar] .sidebar :is(.sidebar-divider,.sidebar-spacer,.sidebar-footer>span){display:none}
html:not([data-experience=sanctuary])[data-design=daftar] .sidebar-footer{border:0;padding:0}
html:not([data-experience=sanctuary])[data-design=daftar] .sidebar .nav-button.is-active{border-bottom:2px solid var(--ds-accent);background:transparent!important;border-radius:0!important}
html:not([data-experience=sanctuary])[data-design=daftar] .desktop-topbar{padding-top:16px}
html:not([data-experience=sanctuary])[data-design=daftar] .page-home{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);align-items:start}
html:not([data-experience=sanctuary])[data-design=daftar] .welcome-row{grid-column:1/-1;border-bottom:4px double var(--ds-line);padding-bottom:24px}
html:not([data-experience=sanctuary])[data-design=daftar] .welcome-row h1{font-family:Amiri,Georgia,serif!important;font-size:3rem}
html:not([data-experience=sanctuary])[data-design=daftar] .hero-card{min-height:290px;border:0!important;border-block:1px solid var(--ds-line)!important}
html:not([data-experience=sanctuary])[data-design=daftar] .hero-orbit,html:not([data-experience=sanctuary])[data-design=daftar] .hero-pattern{display:none}
html:not([data-experience=sanctuary])[data-design=daftar] .hero-main{padding:26px 28px 75px}
html:not([data-experience=sanctuary])[data-design=daftar] .hero-main h2{font-family:Amiri,Georgia,serif!important}
html:not([data-experience=sanctuary])[data-design=daftar] .quick-actions-grid{grid-template-columns:1fr!important;gap:0!important}
html:not([data-experience=sanctuary])[data-design=daftar] .quick-action{border:0!important;border-bottom:1px solid var(--ds-line)!important;min-height:74px;padding:12px 0;background:transparent!important;border-radius:0!important;box-shadow:none!important}
html:not([data-experience=sanctuary])[data-design=daftar] .daily-ethics-section{grid-column:1/-1}
html:not([data-experience=sanctuary])[data-design=daftar] :is(.library-list,.more-links,.ahlulbayt-person-grid,.siraj-worship-dashboard,.siraj-worship-grid){grid-template-columns:1fr!important;gap:0!important}
html:not([data-experience=sanctuary])[data-design=daftar] :is(.library-item,.more-link,.ahlulbayt-person-card,.siraj-worship-card,.siraj-worship-category){border:0!important;border-bottom:1px solid var(--ds-line)!important;background:transparent!important;min-height:82px;box-shadow:none!important;padding:20px 12px}
html:not([data-experience=sanctuary])[data-design=daftar] :is(.library-item-icon,.quick-action-icon,.ahlulbayt-person-icon){background:transparent!important;border:1px solid var(--ds-line);border-radius:50%!important}
html:not([data-experience=sanctuary])[data-design=daftar] .daily-ethics-card{border:0!important;border-top:3px double var(--ds-line)!important;background:transparent!important}
/* 03 — ORBIT: compact rail and a split, nocturnal control centre. */
html:not([data-experience=sanctuary])[data-design=orbit] .sidebar{flex-basis:116px;padding:26px 10px;background:var(--ds-bg)!important}
html:not([data-experience=sanctuary])[data-design=orbit] .sidebar .brand-mark{justify-content:center}
html:not([data-experience=sanctuary])[data-design=orbit] .sidebar .brand-copy,html:not([data-experience=sanctuary])[data-design=orbit] .sidebar-footer>span{display:none}
html:not([data-experience=sanctuary])[data-design=orbit] .sidebar .nav-button{flex-direction:column;justify-content:center;gap:6px;padding:12px 5px;font-size:.7rem;min-height:74px}
html:not([data-experience=sanctuary])[data-design=orbit] .sidebar-footer{justify-content:center}
html:not([data-experience=sanctuary])[data-design=orbit] .sidebar .nav-button.is-active{background:var(--ds-soft)!important;color:var(--ds-accent)!important}
html:not([data-experience=sanctuary])[data-design=orbit] .page-home{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,1fr);align-items:stretch}
html:not([data-experience=sanctuary])[data-design=orbit] .welcome-row{grid-column:1/-1}
html:not([data-experience=sanctuary])[data-design=orbit] .hero-card{min-height:365px}
html:not([data-experience=sanctuary])[data-design=orbit] .hero-orbit{left:-70px;top:60px;width:230px;height:230px;opacity:.23}
html:not([data-experience=sanctuary])[data-design=orbit] .hero-countdown strong{color:var(--ds-accent);font-size:2.8rem}
html:not([data-experience=sanctuary])[data-design=orbit] .quick-actions-grid{grid-template-columns:1fr!important;gap:12px!important}
html:not([data-experience=sanctuary])[data-design=orbit] .quick-action{min-height:87px}
html:not([data-experience=sanctuary])[data-design=orbit] .daily-ethics-section{grid-column:1/-1}
html:not([data-experience=sanctuary])[data-design=orbit] .library-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html:not([data-experience=sanctuary])[data-design=orbit] .library-item{border-inline-start:3px solid var(--ds-accent)!important}
html:not([data-experience=sanctuary])[data-design=orbit] .page-intro{border:0!important;border-bottom:1px solid var(--ds-line)!important;background:transparent!important;padding-inline:0}
/* 04 — GARDEN: floating horizontal navigation and a centred organic hero. */
html:not([data-experience=sanctuary])[data-design=garden] body{background:radial-gradient(ellipse at 0 20%,#b1c7a329,transparent 45%),var(--ds-bg)!important}
html:not([data-experience=sanctuary])[data-design=garden] .app-shell{display:block;padding-top:18px}
html:not([data-experience=sanctuary])[data-design=garden] .sidebar{position:relative;max-width:1160px;width:calc(100% - 48px);margin:0 auto!important;padding:14px 22px;min-height:0;height:auto;display:flex;flex-direction:row;align-items:center;gap:28px;border:1px solid var(--ds-line)!important;border-radius:100px!important;background:var(--ds-panel)!important;overflow:visible;box-shadow:var(--ds-shadow)!important}
html:not([data-experience=sanctuary])[data-design=garden] .sidebar :is(.brand-copy strong,.nav-button,.sidebar-footer button){color:var(--ds-ink)}
html:not([data-experience=sanctuary])[data-design=garden] .sidebar :is(.sidebar-divider,.sidebar-spacer,.sidebar-footer>span){display:none}
html:not([data-experience=sanctuary])[data-design=garden] .sidebar-nav{flex:1;flex-direction:row;justify-content:center;gap:3px;flex-wrap:wrap}
html:not([data-experience=sanctuary])[data-design=garden] .sidebar .nav-button{padding:0 12px;gap:8px;font-size:.8rem}
html:not([data-experience=sanctuary])[data-design=garden] .sidebar .nav-button.is-active{background:var(--ds-soft)!important;border-radius:30px!important}
html:not([data-experience=sanctuary])[data-design=garden] .sidebar-footer{border:0;padding:0}
html:not([data-experience=sanctuary])[data-design=garden] .desktop-topbar{max-width:1160px;padding-top:16px}
html:not([data-experience=sanctuary])[data-design=garden] .page-wrap{max-width:1160px}
html:not([data-experience=sanctuary])[data-design=garden] .welcome-row{justify-content:center;text-align:center;position:relative;min-height:145px}
html:not([data-experience=sanctuary])[data-design=garden] .welcome-row .location-pill{position:absolute;left:0;top:0}
html:not([data-experience=sanctuary])[data-design=garden] .hero-card{min-height:290px;border-radius:100px 100px 32px 32px!important}
html:not([data-experience=sanctuary])[data-design=garden] .hero-main{align-items:center;text-align:center;padding:25px 30px 80px}
html:not([data-experience=sanctuary])[data-design=garden] .hero-orbit{left:8%;top:45px;opacity:.18}
html:not([data-experience=sanctuary])[data-design=garden] .hero-pattern{opacity:.07}
html:not([data-experience=sanctuary])[data-design=garden] .quick-action{display:flex;flex-direction:column;justify-content:center;text-align:center;min-height:140px;border-radius:35px!important}
html:not([data-experience=sanctuary])[data-design=garden] .quick-action-arrow{display:none}
html:not([data-experience=sanctuary])[data-design=garden] .quick-actions-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
html:not([data-experience=sanctuary])[data-design=garden] :is(.library-item,.ahlulbayt-person-card){min-height:132px;border-radius:40px 16px 40px 16px!important}
html:not([data-experience=sanctuary])[data-design=garden] :is(.quick-action-icon,.library-item-icon,.ahlulbayt-person-icon){border-radius:50%!important;width:48px;height:48px}
/* 05 — ATLAS: asymmetry, chapter numbers, strong outlines and large type. */
html:not([data-experience=sanctuary])[data-design=atlas] .sidebar{flex-basis:210px;background:#182229!important;--ds-onhero:#fff}
html:not([data-experience=sanctuary])[data-design=atlas] .sidebar .nav-button{border-radius:0!important;border-bottom:1px solid #ffffff22}
html:not([data-experience=sanctuary])[data-design=atlas] .sidebar .nav-button.is-active{background:#e3ee75!important;color:#182229!important}
html:not([data-experience=sanctuary])[data-design=atlas] .page-home{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(240px,1fr)}
html:not([data-experience=sanctuary])[data-design=atlas] .welcome-row{grid-column:1/-1;border-top:5px solid var(--ds-ink);padding-top:24px}
html:not([data-experience=sanctuary])[data-design=atlas] .welcome-row h1{font-size:clamp(2.2rem,4vw,3.4rem);font-weight:900;line-height:1.4}
html:not([data-experience=sanctuary])[data-design=atlas] .hero-card{min-height:350px;border:1px solid var(--ds-line)!important;box-shadow:6px 6px 0 var(--ds-line)!important}
html:not([data-experience=sanctuary])[data-design=atlas] .hero-pattern{background-image:radial-gradient(currentColor 1px,transparent 1px);background-size:12px 12px;opacity:.1}
html:not([data-experience=sanctuary])[data-design=atlas] .hero-orbit{display:none}
html:not([data-experience=sanctuary])[data-design=atlas] .hero-main h2{font-size:3rem;font-weight:900}
html:not([data-experience=sanctuary])[data-design=atlas] .quick-actions-grid{grid-template-columns:1fr!important;gap:12px!important}
html:not([data-experience=sanctuary])[data-design=atlas] .quick-action{border-radius:0!important;min-height:86px}
html:not([data-experience=sanctuary])[data-design=atlas] .daily-ethics-section{grid-column:1/-1}
html:not([data-experience=sanctuary])[data-design=atlas] :is(.library-list,.more-links,.ahlulbayt-person-grid){grid-template-columns:repeat(3,minmax(0,1fr))!important;counter-reset:chapter}
html:not([data-experience=sanctuary])[data-design=atlas] :is(.library-item,.more-link,.ahlulbayt-person-card){counter-increment:chapter;position:relative;min-height:175px;padding-top:52px;align-content:start}
html:not([data-experience=sanctuary])[data-design=atlas] :is(.library-item,.more-link,.ahlulbayt-person-card):before{content:counter(chapter,decimal-leading-zero);position:absolute;top:12px;inset-inline-start:20px;font-size:1.4rem;font-weight:900;color:var(--ds-accent)}
html:not([data-experience=sanctuary])[data-design=atlas] :is(.library-item,.more-link,.ahlulbayt-person-card):nth-child(4n+1){grid-column:span 2}
html:not([data-experience=sanctuary])[data-design=atlas] :is(.library-item-icon,.quick-action-icon,.ritual-icon,.ahlulbayt-person-icon){border-radius:0!important}
/* The picker is independent of React and works on every route. */
html[data-design] .design-launcher{position:fixed;z-index:1000;left:24px;bottom:24px;display:flex;align-items:center;gap:10px;padding:12px 16px;border:1px solid var(--ds-line);border-radius:50px;background:var(--ds-panel);color:var(--ds-ink);box-shadow:0 6px 24px #0002;font-size:.8rem;min-height:48px}
.design-launcher-name{margin-inline-start:8px;color:var(--ds-accent)}
.design-overlay{position:fixed;inset:0;z-index:2147483100;display:grid;place-items:center;padding:24px;background:#0b172ab3;backdrop-filter:blur(8px);direction:rtl}
html[data-design] .design-dialog{width:min(1120px,100%);max-height:calc(100dvh - 48px);overflow-y:auto;overscroll-behavior:contain;background:var(--ds-bg);border:1px solid var(--ds-line);border-radius:24px;color:var(--ds-ink);padding:28px;box-shadow:0 30px 100px #0005}
.design-dialog-header{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:24px}
.design-eyebrow{color:var(--ds-accent);font-size:.74rem}
.design-dialog-header h2{margin:6px 0;font-size:2rem;font-weight:850}
.design-dialog-header p{font-size:.8rem;color:var(--ds-muted);line-height:1.9;margin:0}
html[data-design] .design-close{flex-shrink:0;width:44px;height:44px;border:1px solid var(--ds-line);border-radius:50%;background:var(--ds-panel);color:var(--ds-ink);font-size:1.8rem}
.design-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
html[data-design] .design-choice{padding:6px;text-align:right;border:2px solid var(--ds-line);border-radius:16px;background:var(--ds-panel);color:var(--ds-ink);min-width:0;transition:transform .2s ease,border-color .2s ease;overflow:hidden}
html[data-design] .design-choice:hover{transform:translateY(-4px);border-color:var(--ds-accent)}
html[data-design] .design-choice[aria-pressed=true]{border-color:var(--ds-accent);box-shadow:0 0 0 2px var(--ds-soft)}
.design-choice-meta{display:grid;gap:7px;padding:12px 8px}
.design-choice-meta small{font-size:.57rem;color:var(--ds-muted)}
.design-choice-meta>strong{font-size:1.45rem;display:flex;justify-content:space-between;align-items:center}
.design-choice-meta>b{font-size:.68rem;line-height:1.8}
.design-choice-meta>span{font-size:.65rem;line-height:2;color:var(--ds-muted)}
.design-selected{font-size:.8rem;opacity:0}
[aria-pressed=true] .design-selected{opacity:1;color:var(--ds-accent)}
.design-preview{display:block;position:relative;height:155px;border-radius:10px;overflow:hidden;direction:rtl;background:#f4f5ef}
.design-preview i{position:absolute;display:block;font-style:normal}
.preview-nav{inset:0 0 0 auto;width:22%;background:#124e45}
.preview-title{right:28%;top:14px;width:45%;height:5px;background:#36554c}
.preview-hero{right:28%;top:30px;left:7%;height:70px;background:#124e45;border-radius:18px 3px 3px 3px;padding:8px;color:#fff}
.preview-hero b{display:block;font-size:8px}
.preview-hero em{font-style:normal;display:block;font-size:13px;margin-top:8px}
.preview-tile{top:111px;width:18%;height:28px;background:#dee7db;border:1px solid #c9d6c6;border-radius:12px 12px 3px 3px}
.tile-one{right:28%}.tile-two{right:51%}.tile-three{right:74%}
.design-preview--daftar{background:#f3eee4}
.design-preview--daftar .preview-nav{inset:0 0 auto;width:100%;height:17px;background:#c4b9a6}
.design-preview--daftar .preview-title{top:28px;right:10%;width:70%;background:#784735}
.design-preview--daftar .preview-hero{right:10%;top:42px;left:40%;height:86px;background:#e9dfcb;color:#493a2c;border-radius:0}
.design-preview--daftar .preview-tile{right:auto;left:8%;width:25%;height:20px;border:0;border-bottom:1px solid #c4b9a6;background:transparent;border-radius:0;top:44px}
.design-preview--daftar .tile-two{top:76px}.design-preview--daftar .tile-three{top:108px}
.design-preview--orbit{background:#0c1420}
.design-preview--orbit .preview-nav{width:13%;background:#203344}
.design-preview--orbit .preview-title{right:20%;background:#8bded6}
.design-preview--orbit .preview-hero{right:20%;left:32%;height:107px;background:#183143;border-radius:12px;color:#8bded6}
.design-preview--orbit .preview-hero:after{content:'';display:block;border:1px solid #8bded655;width:35px;height:35px;margin-top:8px;border-radius:50%}
.design-preview--orbit .preview-tile{right:auto;left:5%;width:22%;height:29px;border:1px solid #2b4154;background:#152231;border-radius:6px;top:30px}
.design-preview--orbit .tile-two{top:69px}.design-preview--orbit .tile-three{top:108px}
.design-preview--garden{background:#eef3e8}
.design-preview--garden .preview-nav{inset:8px 10% auto;width:80%;height:14px;background:#cddfc2;border-radius:20px}
.design-preview--garden .preview-title{top:32px;right:30%;width:40%;background:#466c3f}
.design-preview--garden .preview-hero{right:10%;left:10%;top:47px;height:57px;background:#dce6ca;color:#304831;text-align:center;border-radius:30px 30px 8px 8px}
.design-preview--garden .preview-hero em{margin-top:0}
.design-preview--garden .preview-tile{top:114px;width:23%;height:28px;background:#fff;border-radius:12px;border:0}
.design-preview--garden .tile-one{right:10%}.design-preview--garden .tile-two{right:39%}.design-preview--garden .tile-three{right:68%}
.design-preview--atlas{background:#f3f4f2}
.design-preview--atlas .preview-nav{width:17%;background:#182229}
.design-preview--atlas .preview-title{right:24%;width:62%;height:8px;background:#182229}
.design-preview--atlas .preview-hero{right:24%;left:8%;background:#e3ee75;color:#182229;border-radius:0;border:1px solid #182229;box-shadow:3px 3px #182229}
.design-preview--atlas .preview-tile{background:#244bcc;border-radius:0;border:1px solid #182229;top:113px;height:24px}
.design-preview--atlas .tile-one{right:24%;width:40%}.design-preview--atlas .tile-two{right:70%;width:21%}.design-preview--atlas .tile-three{display:none}
.design-preferences{margin-top:24px;border:1px solid var(--ds-line);border-radius:14px;padding:15px 18px;background:var(--ds-panel)}
.design-preferences summary{cursor:pointer;font-size:.85rem;font-weight:700;min-height:28px}
.design-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}
.design-field{display:grid;gap:8px;font-size:.75rem}
.design-field select{width:100%;padding:10px}
.design-dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:22px}
.design-status{font-size:.75rem;color:var(--ds-muted)}
html[data-design] .design-done{background:var(--ds-accent);color:var(--ds-bg);padding:12px 22px;border:0;border-radius:12px;font-size:.8rem;font-weight:700;min-height:44px}
html[data-design][data-siraj-density=compact]{--ds-gap:16px}
html[data-design][data-siraj-density=compact] :is(.library-item,.more-link,.ahlulbayt-person-card,.quick-action){padding:14px!important}
html[data-design][data-siraj-density=relaxed]{--ds-gap:36px}
html[data-design][data-siraj-density=relaxed] :is(.library-item,.more-link,.ahlulbayt-person-card,.quick-action){padding:26px!important}
@media(min-width:1500px){html:not([data-experience=sanctuary])[data-design=sahn] .quick-actions-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:1100px){.design-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}html[data-design] .sidebar{flex-basis:205px}html:not([data-experience=sanctuary])[data-design=orbit] .sidebar{flex-basis:100px}html:not([data-experience=sanctuary])[data-design=daftar] .page-home,html:not([data-experience=sanctuary])[data-design=orbit] .page-home,html:not([data-experience=sanctuary])[data-design=atlas] .page-home{grid-template-columns:1fr}html:not([data-experience=sanctuary])[data-design=orbit] .quick-actions-grid,html:not([data-experience=sanctuary])[data-design=atlas] .quick-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}html:not([data-experience=sanctuary])[data-design=garden] .sidebar{gap:12px}html:not([data-experience=sanctuary])[data-design=garden] .sidebar .brand-copy{display:none}}
@media(max-width:900px){html[data-design] .sidebar{display:none!important}html[data-design] .app-shell{display:block;padding-top:0}html[data-design] .desktop-topbar{display:none}html[data-design] .mobile-topbar{display:flex;padding:16px 20px 0;align-items:center;justify-content:space-between}html[data-design] .mobile-page-title{display:block;padding:12px 20px 0}html[data-design] .mobile-page-title span{display:block;color:var(--ds-muted)}html[data-design] .mobile-page-title strong{color:var(--ds-ink)}html[data-design] .bottom-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}html[data-design] .page-wrap{padding:24px 20px}html[data-design] .design-launcher{bottom:calc(90px + env(safe-area-inset-bottom,0px));left:14px;padding:9px 12px;min-height:44px}html[data-design] .design-launcher-name{display:none}html[data-design] :is(.app-main,main){padding-bottom:150px!important}html:not([data-experience=sanctuary])[data-design=daftar] .bottom-nav{border-radius:3px!important}html:not([data-experience=sanctuary])[data-design=garden] .bottom-nav{border-radius:36px!important}html:not([data-experience=sanctuary])[data-design=atlas] .bottom-nav{border-radius:0!important;border-width:2px!important}html:not([data-experience=sanctuary])[data-design=orbit] .bottom-nav{border-radius:18px!important}}
@media(max-width:600px){html[data-design]{--ds-gap:24px}html[data-design] .page-wrap{padding:22px 16px}html[data-design] .welcome-row{align-items:flex-start;gap:12px}html[data-design] .welcome-row h1{font-size:1.8rem}html[data-design] .location-pill{font-size:.64rem;padding:8px;max-width:120px}html[data-design] .hero-card{min-height:310px}html[data-design] .hero-main{padding:26px 22px 82px}html[data-design] .hero-main h2{font-size:2rem}html[data-design] .hero-countdown strong{font-size:2rem}html[data-design] .hero-footer{right:22px;left:22px}html[data-design] .hero-orbit{left:-70px;opacity:.2}html:not([data-experience=sanctuary])[data-design=sahn] .hero-card{border-radius:65px 18px 18px 18px!important}html:not([data-experience=sanctuary])[data-design=sahn] .hero-orbit{left:-45px;width:150px;opacity:.25}html[data-design] :is(.library-list,.more-links,.ahlulbayt-person-grid,.ahlulbayt-category-grid,.siraj-worship-grid,.siraj-worship-dashboard){grid-template-columns:1fr!important}html:not([data-experience=sanctuary])[data-design=sahn] :is(.library-list,.ahlulbayt-person-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}html[data-design] :is(.library-item,.quick-action,.more-link,.ahlulbayt-person-card,.ahlulbayt-category-card){padding:16px;min-height:95px}html[data-design] .quick-action{grid-template-columns:34px minmax(0,1fr);gap:8px}html[data-design] .quick-action-arrow{display:none}html[data-design] .quick-action-icon{width:34px;height:38px}html[data-design] .quick-action small{font-size:.65rem}html[data-design] .quick-action strong{font-size:.78rem}html[data-design] .daily-ethics-grid{grid-template-columns:1fr}html[data-design] .daily-ethics-card{padding:20px}html:not([data-experience=sanctuary])[data-design=garden] .welcome-row{padding-top:44px}html:not([data-experience=sanctuary])[data-design=garden] .hero-card{border-radius:70px 70px 24px 24px!important}html:not([data-experience=sanctuary])[data-design=garden] .quick-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}html:not([data-experience=sanctuary])[data-design=garden] .quick-action{min-height:132px}html:not([data-experience=sanctuary])[data-design=atlas] :is(.library-list,.more-links,.ahlulbayt-person-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}html:not([data-experience=sanctuary])[data-design=atlas] :is(.library-item,.more-link,.ahlulbayt-person-card){padding:48px 14px 20px;grid-template-columns:1fr;min-height:150px}html:not([data-experience=sanctuary])[data-design=atlas] .welcome-row h1{font-size:2.2rem}.design-overlay{padding:10px}.design-dialog-header{margin-bottom:18px}.design-dialog-header h2{font-size:1.6rem}.design-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}html[data-design] .design-dialog{padding:18px 12px;border-radius:20px;max-height:calc(100dvh - 20px)}.design-choice:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;align-items:center}.design-choice-meta{padding:8px}.design-preview{height:145px}.design-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.design-dialog-footer{flex-direction:column;align-items:stretch}.design-status{text-align:center}html[data-design] .bottom-nav .nav-button span{font-size:.57rem}html[data-design] .page-intro{padding:18px;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){html[data-design] *,html[data-design] *:before,html[data-design] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
html[data-design][data-siraj-motion=reduced] *,html[data-design][data-siraj-motion=reduced] *:before,html[data-design][data-siraj-motion=reduced] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media print{html[data-design] :is(.sidebar,.bottom-nav,.mobile-topbar,.design-launcher,.design-overlay){display:none!important}html[data-design] body{background:white!important;color:black!important}html[data-design] .page-wrap{padding:0;max-width:none}}

@media(min-width:761px) and (max-width:900px){html[data-design] .bottom-nav{position:fixed;z-index:15;right:10px;left:10px;border-radius:20px}html[data-design] .bottom-nav .nav-button{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:6px 2px;font-size:.7rem}}
html[data-design] .design-overlay *,html[data-calendar-design] *{box-sizing:border-box}
html[data-design] .siraj-istikhara-result,html[data-design] .siraj-istikhara-opinion{background:var(--ds-soft)!important;color:var(--ds-ink)!important;border-color:var(--ds-line)!important}html[data-design] .siraj-istikhara-result header{background:var(--ds-hero);color:var(--ds-onhero)}html[data-design] :is(.siraj-istikhara-verse,.siraj-istikhara-trans,.siraj-istikhara-status){color:var(--ds-ink)}
