:root{--bg:#f8f7f2;--paper:#fffefa;--ink:#233e35;--green:#285847;--muted:#727c72;--line:#e4e7dd;--sage:#edf1e6;--gold:#a68a53}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:15px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #b49b64;outline-offset:4px}.sidebar{width:254px;position:fixed;inset:0 auto 0 0;background:#f0f2e9;border-right:1px solid var(--line);padding:40px 24px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;padding:0 8px;font:800 30px 'Manrope',sans-serif;letter-spacing:-1.4px}.brandmark{font-size:42px;font-weight:400}.brand small{display:block;font:600 8px 'DM Sans',sans-serif;letter-spacing:1.7px;margin-top:6px}nav{margin-top:65px;display:grid;gap:10px}nav a{display:flex;gap:15px;align-items:center;padding:15px 18px;border-radius:10px;font-size:22px;color:#6b786a}nav a span{font-size:14px}nav a.active{background:#dfe7d9;color:var(--green);font-weight:700}.side-note{margin-top:auto;padding:35px 14px 45px}.side-note>span{font-size:34px;color:var(--gold)}.side-note p{font-family:Georgia,serif;font-size:21px;line-height:1.5}.side-note small,.profile small{font-size:11px;color:var(--muted)}.profile{border-top:1px solid #dbe0d3;padding-top:24px;display:flex;gap:12px;align-items:center;font-size:12px}.profile small{display:block;margin-top:5px}.avatar{width:38px;height:38px;border-radius:50%;background:#e0e5d7;display:grid;place-items:center}.shell{margin-left:254px}header{height:100px;border-bottom:1px solid var(--line);margin:0 55px;display:flex;justify-content:space-between;align-items:center}header>span{font:23px Amiri,serif;color:#73816c}.icon-btn{background:none;border:1px solid #d4dccc;border-radius:50%;width:34px;height:34px;color:#6b786a}main{max-width:1120px;margin:auto;padding:45px 55px 30px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:#7b876e;text-transform:uppercase}h1{font:500 37px/1.25 'Manrope',sans-serif;letter-spacing:-1.4px;margin:12px 0}h2{font:700 22px 'Manrope',sans-serif;letter-spacing:-.6px}p{color:var(--muted);line-height:1.7}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.date-chip{font-size:12px;border:1px solid var(--line);border-radius:30px;padding:11px 15px;color:#6a7860}.hero{position:relative;overflow:hidden;background:#234f43;border-radius:20px;padding:38px;color:#fff;display:grid;grid-template-columns:1.3fr 1fr;min-height:290px}.hero .eyebrow{color:#c3d4ba}.hero h2{font-size:32px;font-weight:500;line-height:1.3;max-width:370px;margin:15px 0}.hero p{color:#c4d2c7;max-width:340px;font-size:14px}.primary,.secondary{border:0;border-radius:10px;padding:16px 22px;min-height:52px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:25px}.primary{background:var(--green);color:white}.hero .primary{background:#edf1df;color:#294e40;margin-top:10px}.secondary{background:transparent;border:1px solid #d6ddcf;color:var(--green)}.hero-art{display:grid;place-items:center;position:relative}.arch{width:195px;height:230px;border:1px solid #ffffff30;border-radius:110px 110px 0 0;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;background:#ffffff04;box-shadow:0 0 0 15px #ffffff03,0 0 0 16px #ffffff0b,0 0 0 30px #ffffff03,0 0 0 31px #ffffff08}.arch .arabic{font-size:51px;color:#e0dbb6}.arch small{font-size:10px;letter-spacing:3px;color:#c9d1bb;margin-top:14px}.arabic{font-family:Amiri,serif;direction:rtl}.stats{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:14px;margin:22px 0 38px;background:var(--paper);padding:23px 0}.stat{display:flex;gap:14px;align-items:center;padding:0 25px;border-right:1px solid var(--line)}.stat:last-child{border:0}.stat-icon{background:#eef1e7;border-radius:12px;width:44px;height:44px;display:grid;place-items:center;font-size:21px;color:#788767}.stat strong{font:700 21px Manrope,sans-serif}.stat small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:20px 0}.section-title h2{margin:0}.text-link{border:0;background:none;color:var(--green);font-weight:600;font-size:12px;padding:12px 0}.surah-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.surah{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:23px;display:flex;align-items:center;gap:17px;text-align:left;transition:transform .2s,border-color .2s;width:100%;color:var(--ink)}.surah:hover{transform:translateY(-3px);border-color:#aab99f}.number{width:39px;height:39px;flex-shrink:0;background:#f0f2e9;border-radius:10px;display:grid;place-items:center;font-size:12px;color:#77876b}.surah strong{font-size:15px}.surah small{display:block;color:var(--muted);font-size:11px;margin-top:7px}.surah .arabic{font-size:25px;margin-left:auto;color:#647656}.surah .arrow{color:#9aa28d}.gentle{display:flex;align-items:center;gap:18px;background:#eeefe4;border-radius:12px;padding:18px 24px;margin-top:28px}.gentle span{font-size:24px;color:var(--gold)}.gentle p{font-size:12px;margin:0}.gentle strong{color:#59664e}footer{max-width:1010px;margin:8px auto 0;padding:25px 55px;display:flex;justify-content:space-between;font-size:10px;color:#919888}.back{background:none;border:0;color:var(--muted);padding:0 0 25px;font-size:13px}.lesson-header{display:flex;justify-content:space-between;align-items:center}.pill{border:1px solid var(--line);border-radius:30px;padding:9px 14px;font-size:12px}.progress-track{height:5px;background:#e2e7dc;border-radius:20px;margin:24px 0 10px;overflow:hidden}.progress-track div{height:100%;background:#7e9a70;transition:width .4s}.progress-label{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.practice{background:var(--paper);border:1px solid var(--line);border-radius:20px;margin-top:28px;padding:35px;text-align:center}.practice .arabic{font-size:78px;line-height:1.9;margin:10px 0 0}.transliteration{font-size:22px;font-weight:500;margin-top:0}.translation{font-size:14px;color:var(--muted);margin:12px 0 28px}.listen{border:1px solid #dce4d5;background:#eff3e9;color:var(--green);border-radius:30px;padding:13px 24px;min-height:48px}.record-area{margin:28px auto 0;border-top:1px solid var(--line);padding-top:26px}.record{background:var(--green);border:0;border-radius:50%;width:66px;height:66px;color:white;font-size:26px}.record.recording{background:#a74740;animation:pulse 1.3s infinite}.record-label{font-weight:600;font-size:13px;margin:12px 0 5px}.hint{font-size:12px;color:var(--muted)}audio{max-width:100%;margin-top:15px}.lesson-actions{display:flex;justify-content:space-between;margin-top:22px;gap:12px}.verse-line{font-size:38px!important;line-height:2.2!important}.empty{text-align:center;padding:50px 20px}.search{width:100%;padding:16px 20px;background:var(--paper);border:1px solid var(--line);border-radius:12px;font:inherit;margin:20px 0}.library-note{margin-bottom:22px}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#233e35;color:white;border-radius:12px;padding:15px 22px;box-shadow:0 10px 35px #0002;display:none;z-index:10;max-width:90%;font-size:13px}dialog{border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:20px;padding:30px;max-width:440px}dialog::backdrop{background:#173a3255;backdrop-filter:blur(4px)}@keyframes pulse{50%{box-shadow:0 0 0 10px #a7474020}}@media(min-width:1450px){main{padding-top:65px}.hero{min-height:320px}}@media(max-width:1100px){.sidebar{width:215px;padding:30px 16px}.shell{margin-left:215px}main{padding:35px 30px}header{margin:0 30px}.stat{padding:0 15px}.hero{padding:28px}.hero h2{font-size:28px}.arch{width:150px;height:210px}}@media(max-width:760px){.sidebar{position:relative;width:100%;padding:20px 22px;background:var(--bg);border:0;flex-direction:row;align-items:center;justify-content:space-between}.brand{font-size:25px}.brandmark{font-size:32px}.brand small{font-size:7px}.side-note,.profile{display:none}nav{position:fixed;bottom:0;left:0;right:0;margin:0;display:flex;justify-content:space-around;background:#fffefaf5;border-top:1px solid var(--line);z-index:5;padding:7px 8px max(7px,env(safe-area-inset-bottom))}nav a{flex-direction:column;gap:3px;padding:7px 15px;min-width:85px;font-size:22px}nav a span{font-size:10px}.shell{margin-left:0}header{height:45px;margin:0 25px;padding-bottom:12px}header>span{font-size:19px}.icon-btn{width:29px;height:29px}main{padding:28px 22px 20px}h1{font-size:29px}.intro{margin-bottom:23px}.date-chip{display:none}.hero{padding:28px 25px;grid-template-columns:1fr .5fr;min-height:290px}.hero h2{font-size:27px;position:relative;z-index:1}.hero p{font-size:12px}.hero-art{opacity:.6}.arch{width:105px;height:190px;margin-left:15px}.arch .arabic{font-size:34px}.arch small{font-size:7px;letter-spacing:1px}.hero .primary{padding:14px 18px;font-size:12px;gap:20px;white-space:nowrap}.stats{padding:17px 0;margin-bottom:28px}.stat{padding:0 12px;gap:7px}.stat-icon{display:none}.stat strong{font-size:19px}.stat small{font-size:10px}.section-title h2{font-size:19px}.surah-grid{grid-template-columns:1fr}.surah{padding:19px}.gentle{padding:17px}.gentle p{font-size:11px}footer{padding:15px 22px 105px;font-size:9px}footer span{display:none}.practice{padding:25px 18px}.practice .arabic{font-size:68px}.lesson-header h1{font-size:26px}.pill{font-size:10px}.lesson-actions button{font-size:12px;padding:14px}.verse-line{font-size:32px!important}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* One stable practice surface for both learning modes. */
[hidden]{display:none!important}button:disabled{cursor:not-allowed;opacity:.55}button:disabled:hover{transform:none}.verse-picker{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:25px 0 20px}.verse-picker label{font-weight:600;font-size:14px}.verse-picker select{font:inherit;color:var(--ink);background:var(--paper);border:1px solid #c8d3c1;border-radius:10px;min-height:48px;padding:10px 40px 10px 14px}.mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:6px;background:#e9eee2;border-radius:13px}.mode-switch button{min-height:52px;padding:12px;border:0;border-radius:9px;background:transparent;color:#4e6253;font-weight:600}.mode-switch button[aria-pressed=true]{background:var(--paper);color:var(--green);box-shadow:0 2px 8px #233e3510}.unified-practice{margin-top:20px;padding:32px 28px}.unified-practice .verse-words{font-size:42px;line-height:2.25;margin:20px 0 12px;text-align:center;overflow-wrap:normal}.verse-word{display:inline-block;vertical-align:baseline;font:inherit;line-height:2.15;color:var(--ink);background:transparent;border:1px solid transparent;border-radius:12px;padding:0 9px;margin:3px 0;min-height:56px;transition:background .18s,border-color .18s}.verse-word[aria-pressed=true]{background:#e3eddc;border-color:#a9c29c;color:#214d3a}.verse-word:hover{background:#f0f4eb}.verse-word[aria-pressed=true]:hover{background:#dce8d4}.selection-status{color:#52664f;font-size:14px;min-height:24px}.word-navigation{display:flex;justify-content:center;gap:12px;margin:20px 0}.word-navigation button{min-width:155px;font-size:14px}.unified-practice .listen{margin-top:18px;min-height:52px;font-weight:600}.unified-practice .hint{font-size:13px;color:#5f6d5b}.pending-note{background:#f0f2e9;border:1px solid #e1e7d7;color:#5b694f;border-radius:10px;padding:14px 18px;font-size:13px;line-height:1.65;margin:18px auto 0;max-width:550px;text-align:left}.recorder-controls{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.record-control{gap:10px;min-width:175px}.record-control.recording{background:#9d423d;animation:pulse 1.3s infinite}.recorder-controls .secondary{min-width:130px}.unified-practice .record-label{margin-top:18px;font-size:14px}.verse-completion{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px}.verse-completion .hint{font-size:13px}.unified-practice audio{width:100%;max-width:420px;min-height:48px}.verse-picker select:focus-visible{outline:3px solid #b49b64;outline-offset:4px}.unified-practice .eyebrow{color:#627454}dialog p{color:#596754}header .icon-btn{min-width:44px;min-height:44px}@media(max-width:760px){.unified-practice{padding:26px 15px}.unified-practice .verse-words{font-size:36px;line-height:2.3;margin-top:22px}.verse-word{padding:0 7px;border-radius:10px}.word-navigation{gap:8px}.word-navigation button{min-width:0;flex:1;padding:14px 10px;font-size:13px}.mode-switch button{font-size:14px}.verse-completion{flex-direction:column;align-items:stretch;text-align:center}.verse-picker{margin-top:22px}.pending-note{font-size:13px}.unified-practice .hint{font-size:13px}.recorder-controls{flex-wrap:nowrap}.record-control{min-width:0;flex:1;font-size:14px;padding:15px 10px}.recorder-controls .secondary{min-width:100px;font-size:14px;padding:15px 10px}.lesson-actions button{min-height:52px}.eyebrow{letter-spacing:1.5px}}@media(max-width:360px){.unified-practice .verse-words{font-size:32px}.verse-word{padding:0 5px}.mode-switch button{font-size:13px}}

.word-credit{max-width:570px;margin:16px auto 0;line-height:1.8}.word-credit a{color:#285847;text-decoration:underline;text-underline-offset:3px}.word-credit a:focus-visible{outline:3px solid #b49b64;outline-offset:3px}
.text-source{text-align:center;font-size:12px;line-height:1.8;color:#52664f}.text-source a{color:#285847;text-decoration:underline;text-underline-offset:3px}.verse-word[aria-current="true"]{background:#e3eddc;border-color:#a9c29c;color:#214d3a}

/* Display metadata only: one isolated Unicode sign+digit run, never a word button. */
.ayah-marker{display:inline-block;vertical-align:baseline;white-space:nowrap;unicode-bidi:isolate;direction:rtl;font-family:'Amiri',serif;font-size:1.15em;font-weight:400;line-height:2.15;color:#214d3a;margin-inline-start:.12em;pointer-events:none;user-select:none}

/* Locally bundled Quran-specific face; no clipped diacritics or mark suppression. */
@font-face{font-family:"Amiri Quran";src:url("assets/fonts/AmiriQuran-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
.verse-words.arabic,.ayah-marker{font-family:"Amiri Quran","Amiri",serif;font-weight:400;font-synthesis:none;overflow:visible}
.recitation-sign{display:inline-block;font:inherit;white-space:nowrap;pointer-events:none}

/* Product identity, sized to retain the existing mobile and sidebar layout. */
.brand{gap:9px;padding-inline:0;font-size:24px;letter-spacing:-.8px}
.brand-copy{display:block;white-space:nowrap}
.brand small{font-size:9px;font-weight:500;line-height:1.5;letter-spacing:0;color:#62745e;white-space:normal;max-width:170px;margin-top:6px}
@media(min-width:761px) and (max-width:1100px){.brand{font-size:20px;gap:7px}.brandmark{font-size:32px}.brand small{font-size:8px;max-width:130px}}
@media(max-width:760px){.brand{font-size:27px;gap:10px}.brand small{font-size:10px;max-width:none}}

/* Small practice layout refinements; mobile navigation participates in layout. */
header>span{font-size:27px;color:#526b49;line-height:1.8}
main{padding-top:30px}
.back{padding-bottom:16px}
.verse-picker{margin:18px 0 16px}
.unified-practice{margin-top:16px;padding-top:24px}
.unified-practice .verse-words{margin-top:12px}
@media(max-width:760px){
 html{scroll-padding-bottom:20px}
 body{min-height:100dvh;display:flex;flex-direction:column}
 .sidebar{display:contents}
 .sidebar .brand{order:0;padding:16px 22px 10px}
 .sidebar nav{order:2;position:static;flex-shrink:0;margin-top:auto;background:#fffefa;padding:7px 8px max(7px,env(safe-area-inset-bottom))}
 .shell{order:1;flex:1;min-width:0}
 header{height:52px;margin:0 22px;padding-bottom:6px}
 header>span{font-size:24px;color:#526b49;line-height:1.8}
 main{padding:20px 22px 16px}
 .back{padding-bottom:14px}
 .verse-picker{margin:16px 0 14px}
 .unified-practice{padding-top:20px}
 .unified-practice .verse-words{margin-top:10px}
 footer{padding-bottom:22px}
}

/* Approved word-first pilot refinements; Arabic text metrics stay unchanged. */
.mode-switch small{display:block;font-size:11px;font-weight:400;line-height:1.3;margin-top:3px}
.practice-sequence{font-size:14px;line-height:1.7;color:var(--green);margin:12px 0;text-align:center}
.unified-practice .listen{margin-top:8px}
.unified-practice .record-area{margin-top:12px;padding-top:12px;border-top:0}
.unified-practice .word-navigation{margin:16px 0 12px}
.unified-practice .pending-note{margin-top:14px;font-size:12px;padding:10px 14px}
.unified-practice .word-credit{font-size:12px;line-height:1.6;margin-top:10px}
.verse-completion{flex-wrap:wrap;gap:10px;margin-top:16px}
#completion-guidance{flex-basis:100%;margin:0}
.verse-picker{margin:12px 0}
.lesson-actions{margin-top:14px}
[hidden]{display:none!important}
@media(max-width:600px){.unified-practice{padding-top:16px}.practice-sequence{font-size:13px;margin:8px 0}.unified-practice .record-area{margin-top:8px;padding-top:8px}.unified-practice .word-navigation{margin:12px 0}.verse-picker{margin:10px 0}.mode-switch{margin-bottom:12px}.verse-completion{align-items:stretch}.lesson-actions button{min-height:48px}.bottom-nav{padding-bottom:max(14px,env(safe-area-inset-bottom))}}

/* Compact learning-page chrome only; practice Arabic metrics remain unchanged. */
.learning-page .brand small,.learning-page footer>span{display:none}
@media(max-width:760px){
 .learning-page .sidebar .brand{min-height:44px;padding:6px 18px 2px;gap:8px;font-size:21px;line-height:1.4;letter-spacing:-.5px}
 .learning-page .brandmark{font-size:25px;line-height:1}
 .learning-page header{height:44px;margin:0 18px;padding:0}
 .learning-page header>span{font-size:21px;line-height:1.8}
 .learning-page main{padding:8px 18px 16px}
 .learning-page .back{min-height:44px;padding:0;display:inline-flex;align-items:center}
 .learning-page .lesson-header h1{font-size:24px;line-height:1.25;margin:4px 0}
 .learning-page .lesson-header .hint{display:block;line-height:1.4}
 .learning-page .pill{font-size:11px;padding:8px 10px;white-space:nowrap}
 .learning-page .verse-picker{margin:6px 0}
 .learning-page .mode-switch{padding:4px;margin-bottom:8px}
 .learning-page .mode-switch button{min-height:48px;padding:6px 8px}
 .learning-page .unified-practice{margin-top:10px;padding-top:12px}
 .learning-page .unified-practice .verse-words{margin-top:6px}
}

/* Balanced learning-page mobile header; practice spacing is unchanged. */
@media(max-width:760px){
 .learning-page .sidebar .brand{font-size:23.5px;padding:10px 18px 6px}
 .learning-page header{height:52px;justify-content:space-between;gap:16px;padding-bottom:4px}
 .learning-page header>span{font-size:19px;flex:0 1 auto;min-width:0}
 .learning-page header #help{position:static;flex:0 0 44px}
}

/* Consolidated learning-page refinements, preserving the original visual identity. */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.learning-page .brand small{display:block}
.learning-page .verse-picker{justify-content:flex-end}
.learning-page .ayah-marker{display:block;width:max-content;max-width:100%;font-size:.8em;line-height:1.35;margin:0 auto}
@media(max-width:760px){
 .learning-page .sidebar .brand{gap:10px;padding:12px 18px 6px}
 .learning-page .brandmark{font-size:36px}
 .learning-page .brand small{font-size:10px;line-height:1.5;margin-top:4px;white-space:nowrap}
 .learning-page .lesson-header h1{margin:6px 0}
 .learning-page .verse-picker{margin:10px 0 8px}
 .learning-page .verse-picker select{min-width:164px}
 .learning-page .mode-switch{margin-bottom:10px}
}

/* Final local refinements: retain accessible announcements without redundant visual rows. */
.learning-page .verse-picker select{width:100%;min-width:0}
.learning-page #selection-status.visually-hidden,.learning-page #recordLabel.visually-hidden{min-height:0}
.learning-page .ayah-marker{line-height:1.15;margin:2px auto 0}
.learning-page #recordHint{font-size:12px;line-height:1.5;color:#63705f;margin-top:5px}
@media(max-width:760px){.learning-page .brandmark{font-size:40px}}

/* Spacious practice rhythm in both modes; header and Arabic typography unchanged. */
.learning-page .unified-practice{padding-top:22px;padding-bottom:26px}
.learning-page .unified-practice .verse-words{margin-top:18px;margin-bottom:20px}
.learning-page .ayah-marker{margin:12px auto 0}
.learning-page .practice-sequence{margin:14px 0 18px}
.learning-page .unified-practice .listen{margin-top:8px;min-height:52px}
.learning-page .unified-practice .record-area{margin-top:22px;padding-top:0}
.learning-page .recorder-controls{gap:14px}
.learning-page #recordHint{margin-top:10px}
.learning-page .unified-practice .word-navigation{margin:24px 0 0}
.learning-page .lesson-actions{margin-top:20px}
.learning-page .verse-completion{margin-top:22px}

/* Screenshot-referenced SVG logo on learning routes only. */
.brandmark-floral{display:none}
.learning-page .brandmark-legacy{display:none}
.learning-page .brandmark{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px}
.learning-page .brandmark-floral{display:block;width:40px;height:40px}
