/* Night-window design: indigo surfaces, lavender details, warm peach actions. */
html {background:var(--bg)}
body {min-height:100dvh;font-family:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:radial-gradient(ellipse at 70% 0,#242d592e,transparent 58%),linear-gradient(180deg,#10162f 0,#0b1022 800px);color:var(--ink)}
body {isolation:isolate}
body:before {
 content:'';position:absolute;top:0;right:0;width:min(860px,66vw);height:365px;
 background:url('art/night-landscape.webp') right top/auto 100% no-repeat;opacity:.62;
 -webkit-mask-image:radial-gradient(ellipse 76% 88% at 88% 8%,#000 6%,#000b 40%,transparent 75%);
 mask-image:radial-gradient(ellipse 76% 88% at 88% 8%,#000 6%,#000b 40%,transparent 75%);
 pointer-events:none;z-index:-1;
}
body:after {
 content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;
 background:url('art/quiet-night.webp') center top/cover no-repeat;opacity:.7;
 -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 18%,#000 82%,transparent 100%);
 mask-image:linear-gradient(180deg,transparent 0,#000 18%,#000 82%,transparent 100%);
}
body[data-page=dashboard]:after,body[data-page=surahs]:after {display:none}
body:not([data-page=dashboard]):not([data-page=surahs]):before {display:none}
body>main {position:relative;margin:0;max-width:none;padding:0 clamp(24px,5.7vw,96px) 56px;background:transparent}
main>#app,main>footer {max-width:1408px;margin-inline:auto}
body[data-page=reader] main>#app {max-width:1040px}
main>header.app-topbar {max-width:1504px;height:96px;padding:18px 0;border-bottom:1px solid #535a8b66}
.topbar-brand {display:flex;gap:16px;font-size:1.625rem;letter-spacing:-.045em;text-decoration:none}
.topbar-brand .brand-name small {font-size:.9375rem;font-weight:400;margin-top:6px;color:var(--muted)}
.topbar-brand>.brand-name {font-weight:700;letter-spacing:-.055em}
main>footer {display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap}
main>footer strong {font-size:1.0625rem;font-weight:650;color:var(--ink);letter-spacing:-.04em}
.brand-book,.topbar-brand .brand-book {display:grid;place-items:center;width:54px;height:54px;padding:0;border-radius:16px;background:linear-gradient(145deg,#39487b,#202949);color:#fff;border:1px solid #8192d03b;box-shadow:inset 0 1px 0 #b7bdff24,0 5px 15px #04091b33}
.brand-book svg {width:33px;height:33px;color:#fff}
.header-settings {color:#d8dcff;min-height:46px;padding:10px 12px;font-size:1rem;gap:10px}
.header-settings svg {width:23px;height:23px;color:#aeb0ef}
body>aside,html[data-theme=night] body>aside {position:absolute;inset:24px auto auto 50%;transform:translateX(-50%);width:auto;height:auto;padding:0;background:transparent;border:0;box-shadow:none;display:block;z-index:40}
body>aside .brand,body>aside .aside-note,body>aside>.source-button {display:none}
body>aside nav {display:flex;gap:6px;margin:0}
body>aside nav button {flex-direction:row;min-height:46px;padding:10px 15px;gap:8px;border:1px solid transparent;border-radius:12px;color:#aeb9e1}
body>aside nav button .nav-label {font-size:.875rem;line-height:1.5;font-weight:500;white-space:nowrap}
body>aside nav button svg {width:19px;height:19px}
body>aside nav button.active[aria-current=page] {background:#3a416142;color:#eee8ff;border-color:#6c78a940;box-shadow:none}
body>aside nav button.active .nav-label {font-weight:650}
body>aside nav button:hover:not(.active) {background:#59608920;color:#fff}
.product-heading,.product-heading.compact-heading,.simple-intro,.intro {padding:32px 0 24px}
.product-heading h1,.product-heading.compact-heading h1,.simple-intro h1,.intro h1 {font-weight:650;letter-spacing:-.045em}
.product-heading.welcome-heading {padding:34px 4px 19px}
.product-heading.welcome-heading h1 {font-size:clamp(2.1rem,3vw,3rem);line-height:1.25;font-weight:650;margin-bottom:6px;letter-spacing:-.045em}
.welcome-heading p {font-size:1.125rem;line-height:1.65;color:var(--muted);margin:0}
h2,h3 {font-weight:600}
.primary,.secondary,.reader-tool,.audio-button,.filter-chip {transition:background-color .16s,border-color .16s,box-shadow .16s,transform .16s}
.primary,html[data-theme=night] .primary {background:linear-gradient(170deg,#ffd0bd,#ffb7ac);color:var(--action-ink);border-color:transparent;border-radius:16px;box-shadow:inset 0 1px 0 #fff6,0 5px 16px #060b2424}
.primary:hover:not(:disabled),html[data-theme=night] .primary:hover:not(:disabled) {background:var(--action-hover);color:var(--action-ink)}
.secondary {color:var(--ink);background:var(--soft);border-color:var(--line);border-radius:13px}
.secondary:hover:not(:disabled) {background:var(--accent);border-color:var(--nav-border)}
.primary:active:not(:disabled),.secondary:active:not(:disabled),.reader-tool:active:not(:disabled) {transform:translateY(1px)}
:focus-visible {outline:3px solid var(--green)!important;outline-offset:4px}
button:disabled {cursor:not-allowed}

/* Live content stays separate from the decorative artwork. */
.home-feature-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.home-reading,.home-learning {position:relative;isolation:isolate;overflow:hidden;min-height:356px;padding:28px 32px;border:1px solid #7474c0;border-radius:21px;background:linear-gradient(150deg,#333870,#161c3f);box-shadow:inset 0 1px 0 #b9c1ff2e,0 10px 26px #02071c28}
.home-learning {background:linear-gradient(150deg,#535caa,#2a3866);border-color:#8a8ad5;gap:20px}
.home-card-art {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:right bottom;z-index:-2;pointer-events:none}
.reading-art,.learning-art {object-position:right center}
.home-reading:after,.home-learning:after {content:'';position:absolute;inset:0;z-index:-1;pointer-events:none}
.home-reading:after {background:linear-gradient(90deg,#292d65c7 0,#252953a3 50%,#34346516 100%)}
.home-learning:after {background:linear-gradient(100deg,#3b4286ed 0,#3b4484c4 48%,#535da333 100%)}
.home-section-heading {align-items:center;gap:12px;flex-wrap:nowrap}
.home-section-heading h2 {font-size:1.5rem;line-height:1.35;gap:22px;color:#f7f3ff;font-weight:650;letter-spacing:-.025em;min-width:0}
.home-heading-icon {display:grid;place-items:center;flex-shrink:0;width:62px;height:62px;border-radius:18px;background:linear-gradient(145deg,#6c66c378,#7062c63d);box-shadow:inset 0 1px 0 #c2bfff30}
.home-reading .home-section-heading h2 svg,.home-learning .home-section-heading h2 svg {width:32px;height:32px;color:#d1baff}
.home-reading .home-section-heading>span {padding:10px 23px;white-space:nowrap;border:1px solid #a9a8ed4d;border-radius:28px;background:#28336b38;color:#e2dfff;font-size:.9375rem;line-height:1.5}
.home-current-surah {margin:22px 0 24px;gap:20px;max-width:73%;flex:1}
.home-current-surah>div {gap:4px}
.home-current-surah .eyebrow {font-size:.6875rem;letter-spacing:.22em;font-weight:500;color:#b5baff;margin-bottom:5px}
.home-current-surah strong {font-size:2.75rem;line-height:1.22;letter-spacing:-.04em;font-weight:650;color:#e6d5ff}
.home-current-surah>div>span:last-child {color:#c2c5f5;font-size:1.125rem;margin-top:4px}
.home-reading .home-surah-arabic {font-size:3.4rem;line-height:1.65;color:#d9b9fc;max-width:45%}
.home-reading .home-read-actions {gap:14px 30px;justify-content:flex-start}
.home-reading .home-read-actions .primary,html[data-theme=night] .home-reading .home-read-actions .primary,.home-learning .secondary {background:linear-gradient(170deg,#ffd0bd,#ffb7ac);border:0;border-radius:23px;color:#111d3f;min-height:54px;padding:14px 29px;gap:16px;font-size:1.0625rem;font-weight:650;box-shadow:inset 0 1px 0 #fff5,0 6px 16px #17174521}
.home-reading .home-read-actions .primary:hover:not(:disabled),html[data-theme=night] .home-reading .home-read-actions .primary:hover:not(:disabled),.home-learning .secondary:hover:not(:disabled) {background:#ffd3c3;color:#111d3f}
.home-reading .home-read-actions .text-button {border:0;border-bottom:1px solid #b9a6fa;border-radius:0;padding:10px 0;min-height:44px;font-size:1rem;color:#dbceff;font-weight:500}
.home-lesson-copy {margin:0;flex:1;padding-top:3px}
.home-lesson-copy h3 {font-size:2.125rem;line-height:1.28;letter-spacing:-.04em;font-weight:650;max-width:82%;margin:4px 0 4px;color:#f8f4ff;text-wrap:balance}
.home-lesson-copy p {font-size:1.0625rem;line-height:1.6;color:#c3c8ff;max-width:75%}
.home-learning .learning-milestones {display:flex;flex-wrap:wrap;gap:9px;margin:18px 0 0}
.home-learning .learning-milestones span,.home-learning .status-chip {display:inline-flex;align-items:center;gap:9px;padding:9px 16px;border:1px solid #9ba3f32e;border-radius:28px;background:#697ac23d;color:#e2e3ff;font-size:.875rem;line-height:1.5}
.home-learning .learning-milestones span:before,.home-learning .learning-milestones span+span:before {content:'';width:7px;height:7px;border-radius:50%;display:block;margin:0;background:#c8a0fc}
.home-learning .learning-milestones span:nth-child(2):before {background:#a5baff}
.home-learning .learning-milestones span:nth-child(3):before {background:#e7abcf}
.home-learning .status-chip {margin-top:14px}
.home-learning>.secondary {align-self:flex-start;min-width:164px;justify-content:center}

/* Secondary destinations use quieter scenes and the same spacing. */
.home-secondary-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px;border:0;border-radius:0;background:none;overflow:visible}
.home-secondary-grid .destination-card,.home-secondary-grid .destination-card+.destination-card {position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:64px minmax(0,1fr) 20px;min-height:124px;padding:23px 32px;gap:28px;text-align:left;border:1px solid #596695;border-radius:21px;background:linear-gradient(130deg,#1b2646,#253050);box-shadow:inset 0 1px 0 #b0bcff16,0 8px 24px #05071924}
.home-secondary-grid .destination-card[data-go=hatim] {background:linear-gradient(120deg,#263b5b,#354c81);border-color:#6b85b6}
.home-secondary-grid .destination-icon {display:flex;align-items:center;justify-content:center;flex-shrink:0;width:64px;height:66px;margin:0;border-radius:18px;background:linear-gradient(145deg,#5454a477,#5658a845);color:#cbb5ff}
.home-secondary-grid [data-go=hatim] .destination-icon {background:#536fb653;color:#d2c2ff}
.home-secondary-grid .destination-icon svg {display:block;flex-shrink:0;margin:0;width:34px;height:34px}
.home-secondary-grid .destination-copy {display:grid;gap:5px;flex-basis:auto;min-width:0;color:#bec6fb}
.home-secondary-grid .destination-copy strong {font-size:1.375rem;font-weight:600;line-height:1.4;color:#f4f0ff}
.home-secondary-grid .destination-copy>span {font-size:1.0625rem;line-height:1.5;color:#afbdf5}
.home-secondary-grid .destination-arrow {display:block;color:#c6bbff;z-index:1}
.home-secondary-grid .destination-arrow svg {width:20px;height:20px}
.home-secondary-grid .destination-card:hover {border-color:#a69fe9;box-shadow:inset 0 0 0 1px #a69fe92e}
.destination-art {position:absolute;inset:0 0 0 auto;width:65%;height:100%;object-fit:cover;object-position:right 58%;z-index:-1;opacity:.56;-webkit-mask-image:linear-gradient(90deg,transparent,#000);mask-image:linear-gradient(90deg,transparent,#000);pointer-events:none}
.sound-decoration {position:absolute;right:11%;bottom:21px;width:35%;height:65px;display:flex;align-items:flex-end;justify-content:space-between;gap:5px;opacity:.34;z-index:-1;pointer-events:none}
.sound-decoration i {display:block;width:4px;height:var(--bar);border-radius:3px;background:linear-gradient(#8a83df,#4b538e00)}
.home-daily .daily-start-card {position:relative;isolation:isolate;display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:28px;min-height:115px;padding:24px 32px;margin:16px 0 0;border:1px solid #4c5d95;border-radius:21px;background:linear-gradient(90deg,#17203dde,#1d274c42 70%,#182240a3),url('art/night-landscape.webp') center 72%/cover no-repeat;box-shadow:inset 0 1px 0 #adb8ff22}
.home-daily {margin-top:0}
.daily-symbol {display:grid;place-items:center;color:#cbbaff;background:linear-gradient(145deg,#47538b88,#444c8077);border:0}
.home-daily .daily-symbol {width:64px;height:64px;border-radius:18px}
.home-daily .daily-symbol svg {width:33px;height:33px}
.home-daily .daily-start-card h2 {font-size:1.375rem;font-weight:600;margin:0 0 5px;color:#f4f0ff}
.home-daily .daily-status {color:#b7c0f8;font-size:1rem;line-height:1.6}
.home-daily .daily-start-card .primary,.daily-start-card .primary,.learning-journey .daily-start-card .primary,html[data-theme=night] .daily-start-card .primary {min-width:110px;min-height:52px;padding:12px 26px;border:0;border-radius:21px;background:linear-gradient(165deg,#e0d3ff,#bda1ff);color:#182044}
.home-daily .daily-start-card .primary:hover:not(:disabled),.daily-start-card .primary:hover:not(:disabled),.learning-journey .daily-start-card .primary:hover:not(:disabled),html[data-theme=night] .daily-start-card .primary:hover:not(:disabled) {background:#e5d9ff;color:#182044}
.home-resume {margin-top:26px}
.home-resume h2 {font-size:1.1875rem;font-weight:500;color:#dfdcff;margin-bottom:14px}
.resume-choices {gap:14px}
.resume-choice {background:linear-gradient(130deg,#1d2849,#172039);border:1px solid var(--line);border-radius:16px;padding:19px 22px}
.resume-symbol {background:#32395f;color:#c9b5ff}

/* The functional screens carry the same materials, with calm reading surfaces. */
.destination-switch {border-color:#59649b55}
.destination-switch button.selected {color:var(--ink);border-bottom-color:var(--brand-highlight)}
.destination-switch button.selected svg {color:var(--green)}
.surah-number,.filter-chip.active {background:var(--read-tint);color:var(--read-ink);border-color:var(--read-edge)}
.surah-list,.settings-card,.hatim-card,.learning-progress-card,.listening-card,.practice-tools,.journey-stats,.course-unit,.level-choice,.panel,.personal-card,.prayer-card,.source-card,.favorite-list article {background:linear-gradient(145deg,var(--surface),var(--bg));border-color:var(--line);box-shadow:inset 0 1px 0 #c8ceff0b}
.reader-resume {background:var(--read-tint);border-left-color:var(--brand-light)}
.reader-resume>span:last-child {color:var(--read-ink)}
.reader-tool,.audio-button {background:var(--soft);color:var(--ink);border-color:var(--line)}
.reader-listen-start .reader-tool {background:var(--read-tint);color:var(--read-ink);border-color:var(--read-edge)}
.reader-tool[aria-expanded=true] {border-color:var(--nav-border);box-shadow:inset 0 -2px var(--green)}
.reading-header .favorite-toggle[aria-pressed=true] {background:var(--accent);color:var(--green)}
.quick-meaning,html[data-theme=night] .quick-meaning {background:var(--soft);border-color:var(--nav-border)}
.qword-wrap.pinned .qword,html[data-theme=night] .qword-wrap.pinned .qword {background:var(--accent);color:var(--ink);box-shadow:inset 0 -2px var(--green)}
.spoken-word.is-spoken,html[data-theme=night] .spoken-word.is-spoken {background:#564a88;color:#fff5e7;box-shadow:0 2px 0 #ceb1ff}
.simple-layout .verse-block.is-followed,.simple-layout .verse-block.is-reciting {border-color:var(--nav-border)}
.listening-cover {background:linear-gradient(#202b50aa,#161e40c9),url('art/night-landscape.webp') 75% center/cover;border:1px solid #56689d;color:#f5f1ff}
.listening-cover .listening-arabic,.listening-cover h2 {color:#f5f1ff}
.listening-cover .eyebrow,.listening-cover p {color:#c5cdfb}
.full-mini-player {left:50%;right:auto;transform:translateX(-50%);width:min(860px,calc(100% - 48px));bottom:20px;background:linear-gradient(130deg,#293356,#192342);border:1px solid #6473a7;border-radius:18px;box-shadow:0 12px 40px #04071980;color:#f5f1ff}
.full-mini-player .primary,.full-mini-player [data-full-mini-toggle],html[data-theme=night] .full-mini-player .primary {background:#d1bdff;color:#182044;border-color:transparent}
.full-mini-player .primary:hover:not(:disabled),.full-mini-player [data-full-mini-toggle]:hover {background:#e4d7ff;color:#182044}
.hatim-card {border-top:2px solid #768ab9}
progress {accent-color:var(--green)}
progress::-webkit-progress-bar {background:var(--soft)}
progress::-webkit-progress-value {background:var(--green)}
progress::-moz-progress-bar {background:var(--green)}
.setting-switch {background:var(--line)}
.setting-switch[aria-checked=true],html[data-theme=night] .setting-switch[aria-checked=true] {background:#8072bd}
.setting-switch span {background:#f5f1ff}
.theme-choice:before {background:#f1eff8}
.theme-choice[data-theme-choice=night]:before {background:#171f3b}
.theme-choice[aria-pressed=true] {background:var(--learn-tint);border-color:var(--learn-edge);box-shadow:inset 0 0 0 1px var(--learn-edge)}

/* Learning milestones: lavender, blue, peach and soft teal. */
.tone-0,html[data-theme=night] .tone-0,.journey-exercise,html[data-theme=night] .journey-exercise {--journey-tint:#30335d;--journey-color:#ded0ff;--journey-edge:#6f66a3;--journey-fill:#c3aff0}
.tone-1,html[data-theme=night] .tone-1 {--journey-tint:#2a3a5a;--journey-color:#c7d9ff;--journey-edge:#657fa7;--journey-fill:#a9c4ed}
.tone-2,html[data-theme=night] .tone-2 {--journey-tint:#433346;--journey-color:#ffd4c2;--journey-edge:#956e83;--journey-fill:#edbba7}
.tone-3,html[data-theme=night] .tone-3 {--journey-tint:#263e4c;--journey-color:#bce2e3;--journey-edge:#5b8693;--journey-fill:#9fced2}
.beginner-welcome {background:radial-gradient(ellipse at 90% 0,#6570c02e,transparent 65%),linear-gradient(135deg,#242d54,#19223f);border-color:#556494;border-bottom:3px solid #ac95db}
.beginner-welcome .journey-primary,.learning-journey .journey-primary,html[data-theme=night] .journey-primary {background:linear-gradient(170deg,#ffd0bd,#ffb7ac);color:#142046;box-shadow:0 4px 0 #a57682}
.beginner-welcome .journey-primary:hover:not(:disabled),.learning-journey .journey-primary:hover:not(:disabled),html[data-theme=night] .journey-primary:hover:not(:disabled) {background:#ffd3c3;color:#142046}
.beginner-welcome .journey-primary:active:not(:disabled),.learning-journey .journey-primary:active:not(:disabled),html[data-theme=night] .journey-primary:active:not(:disabled) {transform:translateY(3px);box-shadow:0 1px 0 #a57682}
.learning-journey .learning-focus-grid .journey-next {background:linear-gradient(135deg,#242e51,#19233f)}
.learning-journey .daily-start-card {background:linear-gradient(135deg,#303459,#1c2846);border-color:#555e96}
.learning-journey .daily-symbol {background:#414779;color:#d3c3ff;border-color:transparent}
.journey-lesson.current .lesson-node,html[data-theme=night] .journey-lesson.current .lesson-node {color:#17203c}
.level-alternatives .level-choice:hover {border-color:var(--journey-edge);background:var(--journey-tint)}
.letter-sound-actions .audio-button {background:var(--listen-tint);border-color:var(--listen-edge);color:var(--listen-ink)}
.letter-sound-actions .audio-button.is-playing {background:var(--learn-tint);color:var(--learn-ink);border-color:var(--learn-edge)}
.course-option.selected {background:var(--learn-tint);border-color:var(--learn-edge);color:var(--learn-ink)}
.course-controls {background:var(--bg)}

/* The surrounding landscape gives inner pages depth; text stays on calm panels. */
.simple-layout .verse-block,html[data-theme=night] .simple-layout .verse-block,
.simple-layout .basmalah,.settings-card,.hatim-card,.learning-progress-card,.listening-card,
.journey-roadmap .journey-unit,.journey-roadmap .journey-unit[open],.practice-tools {
 box-shadow:inset 0 1px 0 #c8ceff0b,0 12px 32px #04071926;
}
.simple-layout .verse-top {gap:10px 18px;margin-bottom:12px}
.simple-layout .verse-top .audio-button {background:transparent;border-radius:10px;padding:10px 14px}
.simple-layout .verse-meaning-button {min-height:46px;padding:9px 15px;border-radius:10px}
.simple-layout .verse-ref {min-height:44px;align-items:center;justify-content:center;padding:8px 14px}
.simple-layout .verse-pronunciation {border-radius:11px}
.simple-layout .verse-pronunciation summary {min-height:46px;display:list-item;padding-block:10px}
.simple-layout .basmalah {text-align:center;padding:27px 22px;margin-bottom:16px}
.reader-tap-hint {text-align:center;margin-block:12px 22px}
.reading-toolbar .reader-tool {min-height:50px;padding:12px 23px;border-radius:12px}
.surah-list,.settings-card,.favorite-list article {box-shadow:inset 0 1px 0 #c8ceff0b,0 12px 32px #04071926}

/* Daylight applies to the whole app; illustrated feature cards retain their blue artwork. */
:root[data-theme=day] {
  --ink:#202b46;--green:#5265a0;--muted:#5c6980;--line:#dce4f0;
  --bg:#f2f5fa;--surface:#fcfdfe;--soft:#eaf0fa;--lime:#c7d5ee;--rail:#fcfdfe;
  --gold:#8b5b47;--accent:#f8e9e2;--deep:#354878;--on-accent:#202b46;
  --success-bg:#e3f0ec;--success-text:#2f6355;--error-bg:#fae8eb;--error-text:#923f52;
  --nav-selected:#e7eefc;--nav-ink:#41568d;--nav-border:#a2b5d8;--menu-surface:#fcfdfe;--menu-border:#dce4f0;
  --read-tint:#eaf0fa;--read-ink:#41568d;--read-edge:#b7c7e1;
  --learn-tint:#e9eef9;--learn-ink:#455b92;--learn-edge:#b2c1df;
  --listen-tint:#e7effa;--listen-ink:#3b588a;--listen-edge:#b4c6e1;
  --track-tint:#e7f0f5;--track-ink:#416579;--track-edge:#b7cdd9;
  --brand-primary:#5265a0;--brand-secondary:#6c80b5;--brand-soft:#eaf0fa;--brand-light:#f2c5b4;--brand-highlight:#5265a0;
  --reading-bg:#fcfdfe;--reading-ink:#202b46;--reading-muted:#5c6980;--reading-gold:#8b5b47;
  --action-bg:#5265a0;--action-ink:#fff;--action-hover:#435689;--action-shadow:#364974;
  --icon-ink:#5265a0;--shadow:0 8px 24px #2036560a;color-scheme:light;color:var(--ink);
}

@media(min-width:1101px) and (max-width:1350px) {
 body>aside nav button {padding-inline:11px}
 .home-reading,.home-learning {padding:26px;min-height:366px}
 .home-section-heading h2 {font-size:1.3rem;gap:15px}
 .home-heading-icon {width:52px;height:54px;border-radius:15px}
 .home-reading .home-section-heading>span {padding:8px 15px}
 .home-reading .home-read-actions {gap:12px 22px}
 .home-reading .home-read-actions .primary,html[data-theme=night] .home-reading .home-read-actions .primary {padding-inline:23px;font-size:1rem}
 .home-lesson-copy h3 {font-size:1.875rem}
 .home-learning .learning-milestones span {padding:8px 12px}
 .home-secondary-grid .destination-card {gap:20px;padding-inline:26px}
}
@media(max-width:1100px) {
 body>main {margin:0;padding:env(safe-area-inset-top) max(24px,env(safe-area-inset-right)) calc(var(--nav-height,82px) + 32px) max(24px,env(safe-area-inset-left))}
 body>aside,html[data-theme=night] body>aside {position:fixed;inset:auto 0 0;transform:none;width:100%;height:auto;padding:7px max(12px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#121a32f5;border:0;border-top:1px solid #58629077;box-shadow:0 -8px 30px #04091d33;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);z-index:50}
 body>aside nav {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0}
 body>aside nav button {flex-direction:column;align-items:center;justify-content:center;min-height:60px;padding:7px 3px;gap:5px;border-radius:13px}
 body>aside nav button svg {width:22px;height:22px}
 body>aside nav button .nav-label {font-size:.8125rem;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
 body>aside nav button.active[aria-current=page] {background:#3437639e;color:#e2d2ff;border:1px solid #7776bb4d;box-shadow:none}
 main>header.app-topbar {height:86px;padding:16px 0}
 .topbar-brand {font-size:1.4rem;gap:12px}
 .topbar-brand .brand-book {width:46px;height:46px;border-radius:14px}
 .topbar-brand .brand-book svg {width:29px;height:29px}
 .topbar-brand .brand-name small {font-size:.8125rem}
 .home-feature-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
 .home-reading,.home-learning {padding:24px;min-height:366px}
 .home-section-heading h2 {font-size:1.125rem;gap:12px}
 .home-heading-icon {width:48px;height:50px;border-radius:14px}
 .home-reading .home-section-heading h2 svg,.home-learning .home-section-heading h2 svg {width:27px;height:27px}
 .home-reading .home-section-heading>span {padding:7px 12px;font-size:.8125rem}
 .home-current-surah {max-width:90%;margin:25px 0}
 .home-current-surah strong {font-size:2.3rem}
 .home-reading .home-surah-arabic {font-size:2.9rem}
 .home-lesson-copy {margin:0}
 .home-lesson-copy h3 {font-size:1.75rem;max-width:85%}
 .home-lesson-copy p {font-size:1rem;max-width:90%}
 .home-learning .learning-milestones {gap:6px;margin-top:15px}
 .home-learning .learning-milestones span {padding:7px 10px;gap:6px;font-size:.8125rem}
 .home-reading .home-read-actions {gap:9px 18px;justify-content:flex-start}
 .home-reading .home-read-actions .primary,html[data-theme=night] .home-reading .home-read-actions .primary,.home-learning .secondary {padding:13px 22px;min-height:52px;font-size:1rem;gap:12px;border-radius:20px}
 .home-reading .home-read-actions .text-button {font-size:.9375rem}
 .home-secondary-grid {gap:14px;margin-top:16px}
 .home-secondary-grid .destination-card,.home-secondary-grid .destination-card+.destination-card {grid-template-columns:48px minmax(0,1fr) 16px;min-height:110px;padding:20px;gap:16px;border-radius:18px;align-content:center}
 .home-secondary-grid .destination-icon {width:48px;height:52px;border-radius:14px}
 .home-secondary-grid .destination-icon svg {width:28px;height:28px}
 .home-secondary-grid .destination-copy strong {font-size:1.125rem}
 .home-secondary-grid .destination-copy>span {font-size:.9375rem}
 .home-secondary-grid .destination-copy {flex-basis:auto}
 .home-daily .daily-start-card {grid-template-columns:48px minmax(0,1fr) auto;min-height:106px;padding:23px 24px;gap:18px;border-radius:18px;margin-top:16px}
 .home-daily .daily-symbol {display:grid;width:48px;height:52px;border-radius:14px}
 .home-daily .daily-symbol svg {width:28px;height:28px}
 .home-daily .daily-start-card h2 {font-size:1.125rem}
 .home-daily .daily-status {font-size:.9375rem}
 .home-daily .daily-start-card .primary {min-width:86px;padding:12px 20px;justify-self:end}
 .full-mini-player {left:12px;right:12px;bottom:calc(var(--nav-height,82px) + 10px);width:auto;max-width:none;transform:none}
 .course-controls {bottom:calc(var(--nav-height,82px) + 8px)}
}
@media(max-width:740px) {
 body>main {padding-inline:max(20px,env(safe-area-inset-left)) max(20px,env(safe-area-inset-right))}
 body:before {width:80vw;height:270px;opacity:.35}
 body:after {background-position:right top;opacity:.44}
 main>header.app-topbar {height:82px}
 .header-settings {font-size:.875rem;gap:7px;padding:10px 3px 10px 8px}
 .product-heading.welcome-heading {padding:28px 1px 22px}
 .product-heading.welcome-heading h1 {font-size:2.125rem;margin-bottom:7px}
 .welcome-heading p {font-size:.9375rem;line-height:1.6;max-width:310px}
 .home-feature-grid {grid-template-columns:1fr;gap:16px}
 .home-reading,.home-learning {padding:22px;min-height:324px;border-radius:21px}
 .home-section-heading h2 {font-size:1.1875rem;gap:14px}
 .home-reading .home-section-heading>span {font-size:.8125rem;padding:7px 12px}
 .home-current-surah {max-width:82%;margin:23px 0 20px}
 .home-current-surah strong {font-size:2.375rem}
 .home-current-surah .eyebrow {font-size:.625rem;letter-spacing:.18em}
 .home-current-surah>div>span:last-child {font-size:1rem}
 .home-reading .home-surah-arabic {font-size:2.85rem}
 .home-reading .home-read-actions {gap:9px 22px}
 .home-reading .home-read-actions .primary,html[data-theme=night] .home-reading .home-read-actions .primary {padding-inline:20px;font-size:.9375rem;gap:12px}
 .home-reading .home-read-actions .text-button {font-size:.875rem}
 .home-learning {gap:20px;min-height:331px}
 .home-learning:after {background:linear-gradient(100deg,#353d7de8,#3b4484c4 53%,#535da32e)}
 .home-lesson-copy {padding-top:0}
 .home-lesson-copy h3 {font-size:1.875rem;max-width:83%;margin-top:0}
 .home-lesson-copy p {font-size:.9375rem;max-width:85%;color:#cbd0ff}
 .home-learning .learning-milestones span {padding:7px 11px;gap:7px}
 .home-learning>.secondary {min-width:143px}
 .home-secondary-grid {grid-template-columns:1fr;gap:12px}
 .home-secondary-grid .destination-card,.home-secondary-grid .destination-card+.destination-card {grid-template-columns:48px minmax(0,1fr) 16px;padding:19px 22px;gap:17px;min-height:98px}
 .home-secondary-grid .destination-copy {gap:3px}
 .home-secondary-grid .destination-copy strong {font-size:1.125rem}
 .home-secondary-grid .destination-copy>span {font-size:.875rem}
 .home-secondary-grid .destination-arrow {display:block}
 .sound-decoration {width:32%;right:13%;height:48px;bottom:18px;opacity:.2}
 .home-daily .daily-start-card {grid-template-columns:43px minmax(0,1fr) auto;padding:21px 18px;gap:13px;background-position:center,60% 75%}
 .home-daily .daily-symbol {width:43px;height:49px;border-radius:14px}
 .home-daily .daily-symbol svg {width:25px;height:25px}
 .home-daily .daily-start-card h2 {font-size:1rem;margin-bottom:3px;line-height:1.4}
 .home-daily .daily-status {font-size:.8125rem}
 .home-daily .daily-start-card .primary {min-width:70px;min-height:46px;padding:11px 15px;border-radius:17px;font-size:.875rem}
 .home-resume h2 {font-size:1.0625rem}
 .resume-choice {padding:17px}
 .reading-toolbar .reader-tool {min-height:46px;padding:10px 12px}
 .simple-layout .verse-top {gap:8px}
 .simple-layout .verse-top .audio-button {padding:8px 10px}
 .simple-layout .verse-meaning-button {padding:8px 10px;font-size:.875rem}
 .simple-layout .verse-ref {padding:7px 10px}
 .simple-layout .basmalah {padding:22px 14px}
}
@media(max-width:380px) {
 body>main {padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right))}
 .topbar-brand {gap:10px;font-size:1.3rem}
 .topbar-brand .brand-name small {font-size:.75rem}
 .header-settings {font-size:.8125rem}
 .home-reading,.home-learning {padding:20px}
 .home-section-heading h2 {font-size:1.125rem;gap:11px}
 .home-heading-icon {width:43px;height:47px}
 .home-reading .home-section-heading>span {padding-inline:10px}
 .home-reading .home-read-actions {gap:8px 16px}
 .home-reading .home-read-actions .primary,html[data-theme=night] .home-reading .home-read-actions .primary {padding-inline:16px;font-size:.875rem}
 .home-lesson-copy h3 {font-size:1.75rem}
 .home-learning .learning-milestones {gap:5px}
 .home-learning .learning-milestones span {padding:7px 9px;gap:5px;font-size:.75rem}
 .home-daily .daily-start-card {grid-template-columns:minmax(0,1fr) auto;padding:20px}
 .home-daily .daily-symbol {display:none}
}
@media(prefers-reduced-motion:reduce) {
 .primary,.secondary,.reader-tool,.audio-button,.filter-chip {transition:none;transform:none!important}
}

/* Route headings receive assistive focus, not an interactive focus frame. */
#app h1[tabindex="-1"]:focus {outline:none!important}

/* Light shell and tools: the same visual identity, with readable daylight surfaces. */
html[data-theme=day] body {background:radial-gradient(ellipse at 80% 0,#e6edf988,transparent 55%),var(--bg)}
html[data-theme=day] body:before,html[data-theme=day] body:after {display:none}
html[data-theme=day] main>header.app-topbar {border-color:var(--line)}
html[data-theme=day] .header-settings,html[data-theme=day] .header-settings svg {color:var(--green)}
html[data-theme=day] body>aside nav button {color:var(--muted)}
html[data-theme=day] body>aside nav button.active[aria-current=page] {background:var(--nav-selected);color:var(--nav-ink);border-color:var(--nav-border)}
html[data-theme=day] body>aside nav button:hover:not(.active) {background:var(--soft);color:var(--ink)}
html[data-theme=day] .home-resume h2 {color:var(--ink)}
html[data-theme=day] .resume-choice {background:var(--surface)}
html[data-theme=day] .resume-symbol {background:var(--learn-tint);color:var(--learn-ink)}
html[data-theme=day] .destination-switch {border-color:var(--line)}
html[data-theme=day] .beginner-welcome {background:radial-gradient(ellipse at 90% 0,#dce8fb88,transparent 65%),linear-gradient(135deg,var(--surface),#edf3fc);border-color:var(--learn-edge)}
html[data-theme=day] .learning-journey .learning-focus-grid .journey-next {background:linear-gradient(135deg,var(--surface),#edf3fc)}
html[data-theme=day] .learning-journey .daily-start-card {background:linear-gradient(135deg,#eef3fc,#e5edf9);border-color:var(--line)}
html[data-theme=day] .learning-journey .daily-symbol {background:var(--learn-tint);color:var(--learn-ink)}
html[data-theme=day] .tone-0,html[data-theme=day] .journey-exercise {--journey-tint:#e9eef9;--journey-color:#455b92;--journey-edge:#b2c1df;--journey-fill:#5265a0}
html[data-theme=day] .tone-1 {--journey-tint:#e5edf9;--journey-color:#365984;--journey-edge:#adc2df;--journey-fill:#547aa7}
html[data-theme=day] .tone-2 {--journey-tint:#f8e8e2;--journey-color:#834d43;--journey-edge:#dbb5a9;--journey-fill:#ac7263}
html[data-theme=day] .tone-3 {--journey-tint:#e0f0ee;--journey-color:#326365;--journey-edge:#a6cbc8;--journey-fill:#51888a}
html[data-theme=day] .journey-lesson.current .lesson-node {color:#fff}
html[data-theme=day] .full-mini-player {background:linear-gradient(130deg,var(--surface),#edf3fc);border-color:var(--nav-border);color:var(--ink);box-shadow:0 8px 28px #303b6226}
html[data-theme=day] .full-mini-player button:not(.primary):not([data-full-mini-toggle]) {color:var(--ink)}
html[data-theme=day] .simple-layout .verse-block,html[data-theme=day] .simple-layout .basmalah,
html[data-theme=day] .surah-list,html[data-theme=day] .settings-card,html[data-theme=day] .hatim-card,
html[data-theme=day] .learning-progress-card,html[data-theme=day] .journey-roadmap .journey-unit {box-shadow:0 8px 24px #303b620a}
@media(max-width:1100px) {
 /* Reset inherited positioning and track the actual visible viewport on iOS. */
 body>aside,html[data-theme=night] body>aside,html[data-theme=day] body>aside {
  position:fixed;top:auto;right:0;bottom:0;left:0;margin:0;width:100%;max-width:none;
  transform:translateY(var(--nav-shift,0px));border-radius:0;
 }
 html[data-theme=day] body>aside {background:#fcfdfef5;border-top-color:var(--line);box-shadow:0 -8px 24px #303b6210}
 .full-mini-player {bottom:calc(var(--nav-height,82px) + 10px - var(--nav-shift,0px))}
 .course-controls {bottom:calc(var(--nav-height,82px) + 8px - var(--nav-shift,0px))}
}

/* Approved daylight direction: blue artwork, white destination cards, indigo controls. */
html[data-theme=day] .primary,
html[data-theme=day] .beginner-welcome .journey-primary,
html[data-theme=day] .learning-journey .journey-primary,
html[data-theme=day] .daily-start-card .primary,
html[data-theme=day] .learning-journey .daily-start-card .primary,
html[data-theme=day] .full-mini-player [data-full-mini-toggle] {
 background:var(--action-bg);color:#fff;border-color:transparent;box-shadow:0 3px 8px #20365610;
}
html[data-theme=day] .primary:hover:not(:disabled),
html[data-theme=day] .beginner-welcome .journey-primary:hover:not(:disabled),
html[data-theme=day] .learning-journey .journey-primary:hover:not(:disabled),
html[data-theme=day] .daily-start-card .primary:hover:not(:disabled),
html[data-theme=day] .learning-journey .daily-start-card .primary:hover:not(:disabled),
html[data-theme=day] .full-mini-player [data-full-mini-toggle]:hover {background:var(--action-hover);color:#fff}
html[data-theme=day] .home-reading,html[data-theme=day] .home-learning {
 background:linear-gradient(135deg,#304e80,#1b355c);border-color:#5478a642;box-shadow:0 8px 24px #20365612;
}
html[data-theme=day] .home-reading:after {background:linear-gradient(90deg,#23416edd,#23416ea3 50%,#274b771a)}
html[data-theme=day] .home-learning:after {background:linear-gradient(100deg,#2d4c7aeb,#2d4c7ab5 48%,#45688c24)}
html[data-theme=day] .home-heading-icon {background:#b3ceff1a;box-shadow:inset 0 1px 0 #d4e3ff26}
html[data-theme=day] .home-reading .home-section-heading h2 svg,
html[data-theme=day] .home-learning .home-section-heading h2 svg {color:#d4e4ff}
html[data-theme=day] .home-current-surah strong,
html[data-theme=day] .home-reading .home-surah-arabic {color:#f4f7ff}
html[data-theme=day] .home-current-surah .eyebrow,
html[data-theme=day] .home-current-surah>div>span:last-child,
html[data-theme=day] .home-lesson-copy p {color:#d1dff5}
html[data-theme=day] .home-learning .learning-milestones span,
html[data-theme=day] .home-learning .status-chip {background:#a8c5f21a;border-color:#adc9f33d;color:#f0f5ff}
html[data-theme=day] .home-reading .home-read-actions .primary,
html[data-theme=day] .home-learning>.secondary {background:linear-gradient(160deg,#f9d7c6,#f2c5b4);color:#202b46;border:0;box-shadow:0 3px 10px #0f274521}
html[data-theme=day] .home-reading .home-read-actions .primary:hover:not(:disabled),
html[data-theme=day] .home-learning>.secondary:hover:not(:disabled) {background:#fbdccd;color:#202b46}
html[data-theme=day] .home-reading .home-read-actions .text-button {color:#e1edff;border-color:#bbcff2}
html[data-theme=day] .home-secondary-grid .destination-card,
html[data-theme=day] .home-secondary-grid .destination-card+.destination-card {
 background:var(--surface);border-color:var(--line);box-shadow:var(--shadow);
}
html[data-theme=day] .home-secondary-grid .destination-card:hover {background:#f7faff;border-color:var(--nav-border)}
html[data-theme=day] .home-secondary-grid .destination-icon {background:var(--soft);color:var(--green);border-radius:50%}
html[data-theme=day] .home-secondary-grid .destination-copy,
html[data-theme=day] .home-secondary-grid .destination-copy>span {color:var(--muted)}
html[data-theme=day] .home-secondary-grid .destination-copy strong {color:var(--ink)}
html[data-theme=day] .home-secondary-grid .destination-arrow {color:var(--green)}
html[data-theme=day] .home-secondary-grid .destination-art,
html[data-theme=day] .home-secondary-grid .sound-decoration {display:none}
html[data-theme=day] .home-daily .daily-start-card {background:linear-gradient(110deg,#edf3ff,#eaf1fb);border-color:#dce7f7;box-shadow:none}
html[data-theme=day] .home-daily .daily-symbol {background:#dde8fb;color:#415c97;border-radius:50%}
html[data-theme=day] .home-daily .daily-start-card h2 {color:var(--ink)}
html[data-theme=day] .home-daily .daily-status {color:var(--muted)}
html[data-theme=day] .home-daily .daily-start-card .primary {background:var(--action-bg);color:#fff}
html[data-theme=day] .home-daily .daily-start-card .primary:hover:not(:disabled) {background:var(--action-hover);color:#fff}
html[data-theme=day] .simple-layout .verse-block,
html[data-theme=day] .simple-layout .basmalah {background:var(--surface);border-color:var(--line)}
html[data-theme=day] .setting-switch[aria-checked=true] {background:var(--brand-primary)}
html[data-theme=day] .theme-choice:before {background:#f2f5fa}
html[data-theme=day] .theme-choice[data-theme-choice=night]:before {background:#171f3b}
html[data-theme=day] .spoken-word.is-spoken {background:#dce8fc;color:#243b66;box-shadow:0 2px 0 #5265a0}
@media(max-width:740px) {
 html[data-theme=day] .home-reading,html[data-theme=day] .home-learning {min-height:286px;padding:22px;gap:16px}
 html[data-theme=day] .home-heading-icon {width:40px;height:42px;border-radius:12px}
 html[data-theme=day] .home-section-heading h2 {gap:11px}
 html[data-theme=day] .home-current-surah {margin:17px 0}
 html[data-theme=day] .home-current-surah strong {font-size:2rem}
 html[data-theme=day] .home-lesson-copy h3 {font-size:1.75rem}
 html[data-theme=day] .home-secondary-grid .destination-icon {width:48px;height:48px}
}

/* Listening scope stays visible above reader utilities, in both themes. */
.reader-listening-scope {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;margin:0 0 18px;background:var(--surface);border:1px solid var(--line);border-radius:18px}
.reader-listening-scope .reader-listen-start {margin:0;min-width:0}
.reader-listening-scope .reader-tool {min-height:48px;padding:12px 18px;border-radius:12px;white-space:normal;text-align:left}
.reader-audio-note {margin:8px 0 0;font-size:13px;color:var(--muted)}
.reader-listening-scope>.text-button {font-size:14px;min-height:44px;text-align:left}
.listening-controls .listening-mode {display:flex;align-items:center;gap:14px;padding:16px;margin:16px 0 20px;border:1px solid var(--line);border-radius:14px;background:var(--soft);cursor:pointer}
.listening-mode input {flex:0 0 22px;width:22px;height:22px;margin:0;accent-color:var(--green)}
.listening-mode strong {display:block;font-size:16px;color:var(--ink)}
.listening-mode small {display:block;font-size:13px;line-height:1.6;color:var(--muted);margin-top:5px}
.listening-mode:focus-within {outline:2px solid var(--green);outline-offset:3px}
.listening-links {flex-wrap:wrap;gap:8px 24px}
@media(max-width:600px) {
 .reader-listening-scope {align-items:stretch;flex-direction:column;gap:6px;padding:16px}
 .reader-listening-scope .reader-tool {width:100%;justify-content:center;font-size:15px}
 .reader-listening-scope>.text-button {align-self:flex-start;padding:8px 0}
 .reader-audio-note {text-align:center}
 .simple-layout .verse-top {flex-wrap:wrap}
 .simple-layout .verse-top .audio-button {font-size:13px;padding:8px 10px;min-height:44px}
 .listening-controls .listening-mode {padding:14px}
}

/* Word details share the existing reading palette; no modal covers the verse. */
.word-grammar>summary {font-size:1rem;padding:16px 0;touch-action:manipulation}
.word-grammar>summary>span {display:block;margin:2px 0 0 18px;font-size:.875rem;font-weight:400;color:var(--muted)}
.grammar-key-facts {padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:12px;gap:16px}
.grammar-key-facts dd {font-size:1rem}
.grammar-key-facts:empty {display:none}
.grammar-word-source {display:inline-block;min-height:44px;padding:12px 0;font-size:.875rem;color:var(--green)}
.reader-load-more {display:block;width:100%;margin:16px 0;min-height:48px}
.app-loading {padding:32px 0;color:var(--muted)}
#reader-verses>.verse-block {content-visibility:auto;contain-intrinsic-size:auto 340px}
#reader-verses>.verse-block:has(.quick-meaning:not([hidden])),#reader-verses>.verse-block.is-followed {content-visibility:visible}
@media(hover:none) {
 .simple-layout .qword {touch-action:manipulation}
 .simple-layout:not(.words) .word-gloss {pointer-events:none}
 .simple-layout .qword:active {background:var(--soft)}
}

/* Harf: a shared rhythm, with different compositions for reading and learning. */
:root {--control-radius:14px;--panel-radius:22px;--space-unit:8px}
main>#app,main>footer {max-width:1240px}
main>header.app-topbar {max-width:1344px}
body:is([data-page=surahs],[data-page=favorites],[data-page=listen],[data-page=learn]) main>#app {max-width:1120px}
body:is([data-page=settings],[data-page=course],[data-page=daily],[data-page=spaced-review]) main>#app {max-width:800px}
body[data-page=reader] main>#app {max-width:1040px}
body:is([data-page=reader],[data-page=course],[data-page=daily]):after {opacity:.2}
.product-heading.compact-heading {padding:28px 0 20px}
.product-heading.welcome-heading {display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:32px 0 24px}
.product-heading.welcome-heading h1 {font-size:clamp(1.875rem,2.8vw,2.625rem);margin:0}
.welcome-heading p {font-size:1rem;margin:0}
#app h1[tabindex='-1']:focus {outline:0!important}
.primary,.secondary,.reader-tool,.audio-button {border-radius:var(--control-radius)}
.primary {font-weight:650}
.primary svg {width:20px;height:20px;flex-shrink:0}
.secondary,.reader-tool,.audio-button {box-shadow:none}

/* Two clear invitations; small destinations sit one level below them. */
.home-feature-grid {grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:20px}
.home-reading,.home-learning {min-height:312px;padding:28px;gap:20px;border-radius:24px}
.home-heading-icon {width:40px;height:40px;border-radius:12px;box-shadow:none}
.home-reading .home-section-heading h2 svg,.home-learning .home-section-heading h2 svg {width:25px;height:25px}
.home-section-heading h2 {gap:12px;font-size:1.1875rem}
.home-reading .home-section-heading>span {font-size:.8125rem;border:0;background:transparent;padding:0;color:#d4cef2}
.home-current-surah {margin:12px 0;max-width:86%}
.home-current-surah .eyebrow {font-size:.75rem;letter-spacing:.12em}
.home-current-surah strong {font-size:clamp(2rem,3vw,2.625rem)}
.home-current-surah>div>span:last-child {font-size:1rem}
.home-lesson-copy h3 {font-size:1.875rem;max-width:90%;line-height:1.35}
.home-learning .learning-milestones {margin-top:16px;gap:10px}
.home-learning .learning-milestones span,html[data-theme=day] .home-learning .learning-milestones span {padding:0;border:0;background:none;font-size:.875rem;gap:10px}
.home-learning .learning-milestones span:before {display:none}
.home-learning .learning-milestones span+span:before {display:inline;width:auto;height:auto;border-radius:0;background:none;content:'›';color:inherit;opacity:.75}
.home-learning .status-chip {font-size:.8125rem;padding:5px 10px;margin-top:12px}
.home-read-actions {display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px}
.home-learning .home-read-actions .primary,.home-reading .home-read-actions .primary,
html[data-theme=night] .home-reading .home-read-actions .primary {background:linear-gradient(170deg,#ffd0bd,#ffb7ac);color:#111d3f;border:0;border-radius:var(--control-radius);min-height:50px;padding:12px 20px;font-size:1rem;font-weight:650;gap:12px;box-shadow:none}
.home-learning .home-read-actions .primary:hover:not(:disabled) {background:#ffd3c3;color:#111d3f}
.home-learning .home-read-actions .text-button,.home-reading .home-read-actions .text-button {color:#e0d6ff;font-size:.9375rem;min-height:44px;border-radius:0;padding:10px 0;border:0}
.home-learning .home-read-actions .text-button:hover,.home-reading .home-read-actions .text-button:hover {text-decoration:underline;text-underline-offset:5px}
html[data-theme=day] .home-learning .home-read-actions .primary {background:linear-gradient(160deg,#f9d7c6,#f2c5b4);color:#202b46}
html[data-theme=day] .home-learning .home-read-actions .text-button {color:#e1edff}
.home-secondary-grid .destination-card,.home-secondary-grid .destination-card+.destination-card {min-height:96px;grid-template-columns:48px minmax(0,1fr) 20px;padding:20px 24px;gap:16px;border-radius:18px;box-shadow:none}
.home-secondary-grid .destination-icon {width:48px;height:48px;border-radius:14px;display:grid;place-items:center}
.home-secondary-grid .destination-icon svg {width:26px;height:26px}
.home-secondary-grid .destination-copy strong {font-size:1.125rem}
.home-secondary-grid .destination-copy>span {font-size:.875rem}
.home-secondary-grid .destination-art {opacity:.5}
.home-daily .daily-start-card {min-height:84px;padding:16px 20px;gap:16px;grid-template-columns:40px minmax(0,1fr) auto;border-radius:18px;background:var(--surface);border-color:var(--line);box-shadow:none}
.home-daily .daily-symbol {width:40px;height:40px;border-radius:12px;background:none}
.home-daily .daily-symbol svg {width:25px;height:25px}
.home-daily .daily-start-card .primary {min-height:44px;min-width:88px;padding:10px 16px;border-radius:12px;box-shadow:none}
.home-daily .daily-start-card h2 {font-size:1.0625rem;margin:0 0 4px}
.home-daily .daily-status {font-size:.875rem}

/* The library reads as an index, with one clear route back into the text. */
.destination-switch {margin-bottom:24px}
.destination-switch button {min-height:48px;font-size:1rem}
.surah-search {margin-top:24px}
.surah-search label {font-size:.875rem;margin-bottom:8px}
.surah-search input {border-radius:var(--control-radius);min-height:52px;background:var(--surface)}
.surah-filters {margin:16px 0 20px;gap:8px}
.filter-chip {min-height:44px;padding:9px 16px;border-radius:12px;font-size:.875rem}
.surah-list,html[data-theme=day] .surah-list {border:1px solid var(--line);border-radius:var(--panel-radius);background:var(--surface);box-shadow:none;padding:0 20px;column-gap:32px;overflow:hidden}
.surah-list-row {min-height:88px;padding:16px 8px;gap:16px}
.surah-list-row strong {font-size:1.0625rem;font-weight:600}
.surah-list-row .surah-number {width:36px;height:36px;min-width:36px;border-radius:11px;font-size:.8125rem;background:var(--soft);color:var(--muted)}
.surah-list-row small {font-size:.875rem;margin-top:3px}
.surah-list-arabic {font-size:1.8125rem}
.reader-resume {border:1px solid var(--read-edge);border-inline-start:3px solid var(--brand-light);border-radius:16px;padding:18px 20px;background:var(--read-tint)}
.reader-resume small {font-size:.75rem;letter-spacing:.1em}
.reader-resume strong {font-size:1.0625rem}
.reader-resume>span:last-child {font-size:.9375rem}

/* One utility tray above the reading canvas, no competing rows of panels. */
.reading-header.compact-reading-header {grid-template-columns:44px minmax(0,1fr) minmax(0,.65fr) 44px;gap:16px;padding:24px 0;text-align:left}
.reading-header.compact-reading-header .chapter-title {grid-column:auto;align-items:flex-start;gap:4px}
.reading-header.compact-reading-header h1 {font-size:1.5rem;font-weight:650;line-height:1.4}
.chapter-title>span {font-size:.875rem;color:var(--muted)}
.compact-reading-header>.chapter-arabic {font-size:2rem;text-align:right;line-height:1.8;overflow-wrap:anywhere}
.reader-back {display:grid;place-items:center;width:44px;min-height:44px;padding:0;border:1px solid var(--line);border-radius:50%}
.reader-back svg {width:20px;height:20px;transform:rotate(180deg)}
.reader-controls {display:block;padding:16px 20px;background:var(--surface);border:1px solid var(--line);border-radius:18px;margin-bottom:12px}
.reader-controls .reader-listening-scope {padding:0 0 14px;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;gap:12px;background:none;flex-direction:row;align-items:center}
.reader-listening-scope .reader-tool {width:auto;min-height:46px;padding:10px 16px;font-size:1rem}
.reader-audio-note {font-size:.8125rem;margin-top:6px;text-align:left}
.reader-listening-scope>.text-button {align-self:center;font-size:.875rem;padding:8px 0}
.reading-toolbar {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 0}
.reading-toolbar>.reader-tool {min-width:0;min-height:46px;padding:10px 8px;font-size:.9375rem;border-radius:10px;line-height:1.4;background:transparent;border-color:transparent;box-shadow:none;color:var(--muted)}
.reading-toolbar>.reader-tool:hover {background:var(--soft);color:var(--ink)}
.reading-toolbar>.reader-tool[aria-expanded=true] {background:var(--soft);border-color:var(--nav-border);box-shadow:none;color:var(--ink)}
.reading-toolbar .reader-tool svg {width:18px;height:18px;flex-shrink:0}
.reader-tap-hint {margin:12px 0 20px;font-size:.875rem}
.reader-inline-panel {margin-bottom:12px;border-radius:16px}
.simple-layout .verse-block,html[data-theme=night] .simple-layout .verse-block,html[data-theme=day] .simple-layout .verse-block {padding:24px 28px;margin:0 0 16px;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:none}
html .simple-layout .verse-block:is(.is-followed,.is-reciting) {border-color:var(--nav-border);background:var(--read-tint)}
.simple-layout .verse-top {justify-content:space-between;gap:8px;margin:0 0 12px}
.simple-layout .verse-top .verse-ref {padding:0;min-height:44px;background:none;color:var(--muted);font-size:.875rem;font-weight:500}
.simple-layout .verse-top .audio-button {font-size:.875rem;padding:10px 12px;min-height:44px;border-color:transparent;background:transparent;color:var(--green)}
.simple-layout .verse-top .audio-button:hover {background:var(--soft)}
.simple-layout .basmalah,html[data-theme=day] .simple-layout .basmalah {padding:20px;margin:4px 0 20px;border:0;background:transparent;box-shadow:none}

/* Today's lesson anchors the curriculum. Extra practice opens when requested. */
.learning-layout {display:grid;grid-template-columns:minmax(0,1fr);gap:28px;align-items:start;margin-top:24px}
.learning-journey .learning-focus-grid {display:block;min-width:0;margin:0}
.learning-focus-stack {display:grid;gap:16px}
.learning-journey .learning-focus-grid .journey-next {flex-direction:row;align-items:center;gap:24px;padding:24px;border:1px solid var(--journey-edge);border-radius:var(--panel-radius)}
.learning-journey .journey-next h2 {font-size:1.5rem}
.learning-journey .journey-next .journey-primary {flex-shrink:0;align-self:center;min-height:48px;border-radius:var(--control-radius);box-shadow:none}
.learning-journey .journey-next .journey-glyphs {margin:18px 0 14px}
.learning-day {padding:4px 2px 0}
.learning-day-heading {display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:.875rem}
.learning-day-heading strong {font-weight:600}
.learning-day-heading>span {color:var(--muted);font-variant-numeric:tabular-nums}
.learning-day>progress {width:100%;height:6px;display:block;margin:12px 0 0;border:0;border-radius:8px;overflow:hidden}
.learning-pulse {display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;margin:0;padding:14px 0 0;color:var(--muted);font-size:.875rem}
.learning-pulse>span {display:flex;align-items:center;gap:6px}
.learning-pulse strong {color:var(--ink);font-weight:650;font-variant-numeric:tabular-nums}
.learning-pulse svg {width:17px;height:17px;color:var(--green)}
.learning-path-heading {margin:0 0 16px;gap:12px}
.learning-path-heading h2 {font-size:1.25rem;margin:0 0 3px}
.learning-path-heading>div>span {font-size:.8125rem;color:var(--muted)}
.learning-path-heading>.text-button {font-size:.875rem;flex-shrink:0}
.learning-curriculum {min-width:0}
.journey-roadmap {gap:12px}
.journey-roadmap .journey-unit,.journey-roadmap .journey-unit[open],html[data-theme=day] .journey-roadmap .journey-unit {background:var(--surface);border-radius:18px;box-shadow:none}
.journey-roadmap .journey-unit>summary {padding:18px;min-height:76px;border-radius:17px}
.journey-roadmap .journey-unit[open]>summary {border-bottom-left-radius:0;border-bottom-right-radius:0}
.journey-roadmap .journey-unit>summary strong {font-size:1rem;line-height:1.5}
.journey-roadmap .journey-unit>summary small {font-size:.875rem}
.journey-roadmap .journey-unit:not([open])>summary small {display:none}
.journey-roadmap .unit-number {width:36px;height:36px;border-radius:11px;font-size:1rem}
.journey-roadmap .unit-count {font-size:.8125rem;background:transparent;padding:0}
.journey-roadmap .journey-stop:nth-child(n) {--step-offset:0px;padding-bottom:8px}
.journey-roadmap .journey-stop:before {left:25px;top:68px;bottom:-6px;border-left-width:1px}
.journey-roadmap .journey-nodes {padding:12px 20px 16px}
.journey-roadmap .journey-lesson,.journey-roadmap .journey-lesson.current,.journey-roadmap .journey-lesson.complete {min-height:84px;padding:12px 8px;gap:14px;border-radius:14px}
.journey-roadmap .journey-lesson.current {padding:12px 8px;background:var(--journey-tint)}
.journey-roadmap .lesson-node,.journey-roadmap .journey-lesson.current .lesson-node {width:48px;height:48px;border-radius:16px;border-bottom-width:3px;box-shadow:none}
.journey-roadmap .lesson-node svg {width:20px;height:20px}
.lesson-node-copy .node-status {font-size:.6875rem;letter-spacing:.08em;margin-bottom:3px}
.journey-roadmap .lesson-node-copy>strong {font-size:1rem;line-height:1.5}
.journey-roadmap .lesson-node-copy>small {font-size:.8125rem;margin-top:2px}
.journey-milestone {margin:0 20px 20px;padding:14px;border:0;border-radius:12px}
.journey-milestone strong {font-size:.9375rem}
.journey-milestone small {font-size:.8125rem}
.unit-journey-intro {padding:18px 20px 4px}
.unit-journey-intro>span {font-size:.8125rem}
.learning-journey>.practice-tools {margin-top:28px}
.learning-journey .practice-tools-body .daily-start-card {display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px;margin:0 0 20px;border-radius:16px;min-height:76px;box-shadow:none}
.learning-journey .daily-start-card .daily-symbol {display:grid;place-items:center;width:40px;height:40px;border-radius:12px}
.learning-journey .daily-start-card .daily-symbol svg {width:22px;height:22px}
.learning-journey .daily-start-card h2 {font-size:1rem;margin:0 0 3px}
.learning-journey .daily-start-card .daily-status {font-size:.875rem}
.learning-journey .daily-start-card .primary {grid-column:auto;justify-self:end;width:auto;min-width:80px;min-height:44px;border-radius:12px;padding:10px 16px;font-size:.9375rem}
.beginner-onboarding {max-width:760px}
.beginner-onboarding>.product-heading {margin-bottom:0}
.beginner-welcome {padding:28px;border-radius:24px;border-bottom-width:1px}
.beginner-welcome .journey-primary,html[data-theme=night] .beginner-welcome .journey-primary {box-shadow:none;border-radius:var(--control-radius)}
.level-alternatives .level-choice {padding:20px;box-shadow:none}
.journey-exercise .beginner-letter-card {border-radius:var(--panel-radius);box-shadow:none}
.journey-exercise .letter-stage {border-bottom-width:1px}
.course-controls {border-top:1px solid var(--line);border-radius:0;gap:16px;padding-top:16px}
.course-option {border-radius:14px;min-height:56px}
.surah-list-row,.course-option,.destination-card {touch-action:manipulation}

/* Compact player controls remain reachable without covering the reading flow. */
.full-mini-player {padding:10px 14px;border-radius:16px;box-shadow:0 8px 24px #04071933}
.mini-player-row {display:flex;align-items:center;gap:12px}
.mini-player-title {min-width:0;min-height:48px}
.mini-player-title strong {font-size:1rem}
.mini-player-title span {font-size:.8125rem}
.mini-player-row>[data-full-mini-toggle] {flex-shrink:0;min-height:44px;padding:10px 16px;border-radius:12px;font-size:.9375rem}
.mini-player-close {flex-shrink:0;min-width:44px;min-height:44px}
.listening-controls .listening-mode {margin:12px 0 16px;padding:12px 14px}
.listening-mode small {font-size:.875rem;margin-top:3px}
@media(min-width:1101px) {
 .learning-layout {grid-template-columns:320px minmax(0,1fr);gap:40px}
 .learning-focus-grid {position:sticky;top:24px}
 .learning-journey .learning-focus-grid .journey-next {flex-direction:column;align-items:stretch;gap:24px}
 .learning-journey .journey-next .journey-primary {align-self:stretch}
 .learning-day {padding:4px 8px 0}
}
@media(max-width:1100px) {
 body>aside,html[data-theme=night] body>aside {background:#121a32;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
 html[data-theme=day] body>aside {background:#fcfdfe;box-shadow:none}
 body[data-full-audio=active] main {padding-bottom:calc(var(--nav-height,82px) + 112px + env(safe-area-inset-bottom))}
}
@media(max-width:740px) {
 main>header.app-topbar {height:72px;padding:12px 0}
 .topbar-brand .brand-book {width:40px;height:40px;border-radius:12px}
 .topbar-brand .brand-book svg {width:25px;height:25px}
 .topbar-brand .brand-name small {font-size:.75rem;margin-top:3px}
 .header-settings {min-height:44px}
 .product-heading.welcome-heading {padding:24px 0 18px;gap:4px}
 .product-heading.welcome-heading h1 {font-size:1.875rem}
 .welcome-heading p {font-size:.875rem}
 .home-feature-grid {grid-template-columns:1fr;gap:16px}
 .home-reading,.home-learning,html[data-theme=day] .home-reading,html[data-theme=day] .home-learning {min-height:248px;padding:22px;gap:16px;border-radius:22px}
 .home-learning,html[data-theme=day] .home-learning {min-height:230px}
 .home-section-heading h2 {font-size:1.125rem;gap:10px}
 .home-current-surah,html[data-theme=day] .home-current-surah {margin:10px 0;max-width:90%}
 .home-current-surah strong,html[data-theme=day] .home-current-surah strong {font-size:2.125rem}
 .home-lesson-copy h3,html[data-theme=day] .home-lesson-copy h3 {font-size:1.625rem;max-width:88%}
 .home-read-actions,.home-reading .home-read-actions {gap:8px 16px}
 .home-learning .home-read-actions .primary,.home-reading .home-read-actions .primary,html[data-theme=night] .home-reading .home-read-actions .primary {font-size:.9375rem;padding:12px 16px;min-height:48px}
 .home-learning .learning-milestones {margin-top:10px}
 .home-secondary-grid .destination-card,.home-secondary-grid .destination-card+.destination-card {padding:18px 20px;min-height:92px}
 .home-daily .daily-start-card {padding:16px;gap:12px}
 .home-daily .daily-start-card .primary {min-width:72px;padding:10px 14px}
 .destination-switch {margin-bottom:20px}
 .destination-switch button {font-size:.9375rem}
 .surah-list,html[data-theme=day] .surah-list {padding-inline:16px;border-radius:18px}
 .surah-list-row {padding:16px 0;gap:12px;min-height:88px}
 .surah-list-arabic {font-size:1.6875rem;max-width:35%}
 .reading-header.compact-reading-header {gap:10px;padding:20px 0}
 .compact-reading-header>.chapter-arabic {font-size:1.6875rem}
 .reading-header.compact-reading-header h1 {font-size:1.25rem}
 .reader-controls {padding:14px 12px;border-radius:16px}
 .reader-controls .reader-listening-scope {gap:10px}
 .reading-toolbar>.reader-tool {font-size:.875rem;padding-inline:4px}
 .simple-layout .verse-block,html[data-theme=night] .simple-layout .verse-block,html[data-theme=day] .simple-layout .verse-block {padding:18px;margin-bottom:12px;border-radius:18px}
 .simple-layout .verse-top .audio-button {font-size:.875rem}
 .learning-layout {margin-top:20px;gap:28px}
 .learning-journey .learning-focus-grid .journey-next {flex-direction:column;align-items:stretch;gap:18px;padding:22px}
 .learning-journey .journey-next .journey-primary {align-self:stretch}
 .journey-roadmap .journey-unit>summary {padding:16px 14px;gap:10px}
 .journey-roadmap .journey-nodes {padding:12px 14px}
 .journey-milestone {margin-inline:14px}
 .beginner-welcome {padding:22px}
 .level-alternatives .level-choice {padding:18px}
 .full-mini-player {padding:8px 10px}
 .mini-player-row {gap:8px}
 .mini-player-row>[data-full-mini-toggle] {padding:10px 12px;font-size:.875rem}
}
@media(max-width:380px) {
 body>main {padding-inline:16px}
 .home-reading,.home-learning,html[data-theme=day] .home-reading,html[data-theme=day] .home-learning {padding:18px}
 .home-daily .daily-start-card {grid-template-columns:minmax(0,1fr) auto}
 .home-daily .daily-symbol {display:none}
 .home-read-actions .primary svg {display:none}
 .reader-listening-scope {flex-wrap:wrap}
 .reader-listening-scope>.text-button {margin-left:auto}
 .reading-toolbar>[data-reader-panel=options] svg {display:none}
 .simple-layout .verse-block,html[data-theme=night] .simple-layout .verse-block,html[data-theme=day] .simple-layout .verse-block {padding:16px}
 .surah-list,html[data-theme=day] .surah-list {padding-inline:12px}
}
@media(prefers-reduced-motion:reduce) {
 .primary,.secondary,.reader-tool,.audio-button,.filter-chip,.lesson-node,.unit-chevron,.course-option {transition:none}
}

/* Two quiet, independent disclosures below each verse. */
.simple-layout .verse-arabic {line-height:2.1}
.simple-layout .verse-details {margin-top:14px;padding-top:8px;border-top:1px solid var(--line)}
.verse-detail-actions {display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px}
.simple-layout .verse-detail-actions>.verse-detail-button {display:inline-flex;align-items:center;justify-content:center;gap:9px;width:auto;min-height:44px;margin:0;padding:9px 12px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--muted);font:500 .875rem/1.5 'Manrope',sans-serif;box-shadow:none;text-align:left;touch-action:manipulation}
.verse-detail-actions>.verse-detail-button:after {content:'+';font-size:1.125rem;line-height:1;font-weight:400}
.verse-detail-actions>.verse-detail-button[aria-expanded=true]:after {content:'−'}
.simple-layout .verse-detail-actions>.verse-detail-button[aria-expanded=true] {color:var(--green);background:var(--soft)}
@media(hover:hover) {
 .simple-layout .verse-detail-actions>.verse-detail-button:hover {color:var(--ink);background:var(--soft)}
}
html .simple-layout .verse-details>.verse-pronunciation,
html .simple-layout .verse-details>.verse-translation {width:100%;min-width:0;margin:12px 0 0;padding:14px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;text-align:left}
.verse-details .verse-panel-label {display:block;font:600 .8125rem/1.6 'Manrope',sans-serif;color:var(--muted);margin-bottom:6px;letter-spacing:0}
html .simple-layout .verse-details>.verse-pronunciation>p,
html .simple-layout .verse-details>.verse-translation>p {font:400 1rem/1.85 'Manrope',sans-serif;letter-spacing:0;color:var(--ink);margin:0;overflow-wrap:anywhere}
.verse-details .translation-label {display:block;margin-top:12px;font:400 .8125rem/1.6 'Manrope',sans-serif;letter-spacing:0;color:var(--muted)}
.simple-layout .verse-details>[hidden] {display:none}

/* Keep the last item reachable when optional player settings are expanded. */
@media(max-width:1100px){body[data-full-audio=active]:has(.mini-player-details) main{padding-bottom:calc(var(--nav-height,82px) + 164px + env(safe-area-inset-bottom))}body[data-full-audio=active]:has(.mini-player-details[open]) main{padding-bottom:calc(var(--nav-height,82px) + 260px + env(safe-area-inset-bottom))}}
.mini-player-details>summary{min-height:44px;padding:12px 0 4px;font-size:.875rem}
