@font-face{font-family:TilawiWordmark;src:url('./fonts/tilawi-wordmark.woff2') format('woff2');font-weight:200 800;font-display:swap}
.brand>span,.sidebar-brand>span{font-family:TilawiWordmark,ui-sans-serif,system-ui,sans-serif;font-weight:700;letter-spacing:-.7px}
body:not(.is-reading)>.top{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);width:100%;align-items:center;gap:18px}
.top>.home-primary-nav{grid-column:2;grid-row:1;justify-self:center;width:auto;justify-content:center;margin:0;padding:3px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.top>.home-primary-nav a{min-width:106px;min-height:44px;font-size:15px;padding:9px 18px;border-radius:11px;color:var(--ink)}
.top>.home-primary-nav a:hover{background:var(--surface2)}
body:not(.is-reading)>.top>.menu-toggle{margin:0;justify-self:end}
.home-quran-tools{display:grid;gap:6px;border-top:1px solid var(--line);margin-top:22px;padding-top:14px}
.home-quran-tool{display:grid;grid-template-columns:24px minmax(0,1fr) 18px;align-items:center;gap:12px;width:100%;min-height:76px;padding:13px 11px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--ink);text-align:start;font:inherit;transition:background .15s,border-color .15s}
.home-quran-tool:hover{background:var(--surface2);border-color:#3d5c52}
.home-quran-tool>svg{width:22px;height:22px;color:#91c5af}.home-quran-tool>svg:last-child{width:17px;height:17px;color:var(--faint)}
.home-quran-tool>span{display:grid;gap:5px;min-width:0}.home-quran-tool strong{font-size:16px;font-weight:550;line-height:1.4}.home-quran-tool small{font-size:12px;line-height:1.5;color:var(--muted)}
.home-device-note{font-size:12px;line-height:1.7;color:var(--faint);margin:14px 2px}
.continue-card>.primary{width:100%}
/* Detail navigation stays inside the existing right progress pane. */
.practice-view-learned{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:11px 12px;margin:-7px 0 20px;border:1px solid #36594d;border-radius:10px;background:#18362d;color:#dcf0e4;font-size:14px;text-align:start}
.practice-view-learned>svg{width:17px;height:17px;flex:none}
.practice-metric-grid>div:has(.practice-metric-link){padding:0}
.practice-metric-link{display:block;width:100%;height:100%;padding:13px;border:0;border-radius:12px;background:transparent;color:var(--ink);text-align:start}
.practice-metric-link:hover{background:var(--surface2)}
.learned-progress-view{min-width:0}.learned-back{display:inline-flex;align-items:center;gap:7px;border:0;padding:4px 0 12px;min-height:38px;font-size:13px;color:var(--muted)}.learned-back svg{width:17px;height:17px}
.learned-heading{margin:9px 0 20px}.learned-heading>.eyebrow{font-size:10px;letter-spacing:1px;color:#93baa5}.learned-heading h3{font-size:24px;font-weight:550;margin:6px 0 8px}.learned-heading p{font-size:13px;line-height:1.7;color:var(--muted);margin:0}
.learned-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;border:1px solid var(--line);border-radius:12px;padding:4px;background:var(--bg);margin:0 0 16px}
.learned-tabs button{min-width:0;font-size:13px;min-height:40px;padding:8px 5px;border:0;border-radius:8px;color:var(--muted)}
.learned-tabs [aria-pressed=true]{background:#23443a;color:#e3f3e8}
.learned-search{position:relative;display:block;margin:0 0 18px}
.learned-search>svg{position:absolute;inset-inline-start:13px;top:15px;width:18px;height:18px;color:var(--faint);pointer-events:none}
.learned-search input{width:100%;min-height:48px;padding:12px 12px 12px 39px;border-radius:11px;font-size:13px;background:var(--bg)}
.learned-row{border:1px solid var(--line);border-radius:13px;padding:16px;margin-bottom:12px;background:#10282366;min-width:0}
.learned-row>header{display:flex;justify-content:space-between;align-items:start;gap:10px}.learned-row>header>div{min-width:0}
.learned-row-caption{font-size:11px;color:var(--faint)}.learned-row h4{font-size:18px;font-weight:550;line-height:1.5;margin:4px 0 0;overflow-wrap:anywhere}
.learned-completion{display:inline-flex;align-items:center;gap:4px;flex:none;font-size:10px;line-height:1.5;padding:4px 6px;border:1px solid #4a5c53;border-radius:6px;color:var(--muted)}
.learned-completion.is-complete{border-color:#527c61;background:#284e38;color:#d8f0da}
.learned-row-count{font-size:12px;color:var(--muted);margin:12px 0 10px}
.learned-ref-ranges{font-size:14px;line-height:1.8;color:#c6ddcf;margin:0;overflow-wrap:anywhere;text-align:start}
.learned-ref-chips{display:flex;flex-wrap:wrap;gap:6px}.learned-ref-chips bdi{border:1px solid #3d6150;border-radius:7px;padding:4px 7px;font-size:13px;background:#214231;color:#e0efe2}
.learned-saved-note{font-size:12px;line-height:1.7;color:var(--faint);margin:20px 0 0}
.learned-empty{padding:24px 6px;text-align:center;color:var(--muted);font-size:14px;line-height:1.7}.learned-empty>svg{width:30px;height:30px;color:#8bb299}.learned-empty h4{font-size:18px;color:var(--ink);font-weight:550;margin:13px 0 7px}
@media(max-width:699px){
 body:not(.is-reading)>.top{grid-template-columns:minmax(0,1fr);gap:14px;padding:14px}
 .top>.home-primary-nav{grid-column:1;grid-row:2;width:auto;justify-self:center;padding:2px}
 .top>.home-primary-nav a{min-width:78px;min-height:42px;padding:8px 12px;font-size:14px;flex:none}
 .top>.menu-toggle{width:44px;min-height:44px;padding:9px}.top>.menu-toggle>span{display:none}
 .brand>span{font-size:25px}.brand img{width:34px;height:34px}
 .home-quran-tools{margin-top:20px;padding-top:12px}.home-quran-tool{padding:12px 7px;min-height:72px}
 .home-quran-tool strong{font-size:16px}.home-quran-tool small{font-size:12px}
 .practice-view-learned{font-size:14px;margin-bottom:16px}
 .learned-heading h3{font-size:23px}.learned-row{padding:14px}.learned-row h4{font-size:18px}.learned-tabs button{font-size:13px}
}

.home-quran-tools>.home-quran-tool{display:grid;justify-content:normal}
.practice-progress-title{display:flex;align-items:center;gap:9px;min-width:0}
body.is-memorizing #verse-context .practice-progress-title h2{margin:7px 0 0}
.learned-header-back{display:grid;place-items:center;flex:none;width:30px;min-height:32px;height:32px;padding:5px;border:0;border-radius:8px;color:var(--muted);margin-top:7px}
.learned-header-back svg{width:20px;height:20px}
.learned-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.learned-toolbar p{margin:0;font-size:14px;color:var(--muted)}
.learned-search-toggle{display:grid;place-items:center;width:34px;min-height:34px;height:34px;padding:7px;border-radius:9px}
.learned-search-toggle svg{width:18px;height:18px}
.learned-search[hidden]{display:none!important}
@media(max-width:699px){
 .learned-toolbar{margin-bottom:10px}.learned-tabs{margin-bottom:12px}.learned-row{padding:12px}
 body.is-memorizing #verse-context .practice-progress-title h2{margin:0;font-size:23px}
 .learned-header-back{margin:0;width:28px;min-height:28px;height:28px;padding:4px}
 .learned-toolbar p{font-size:13px}
}

@media(max-width:699px){[data-learned-surah] .learned-row-caption{display:none}.learned-row h4{margin:0}.learned-ref-chips{margin-top:10px}.learned-row-count{margin:9px 0 0}}
