/* Home layout follows the reading hierarchy used by Android. */
html[data-web-experience="modern"]{--home-accent:#20583f;--home-bg:#e7eeea;--home-card:#fff;--home-tint:#dcebe2;--home-line:#afc5b7;--home-edge:#6b8b77;--home-ink:#163b2b;--home-muted:#4c6054;--home-button:#20583f;--home-button-ink:#fff}
html[data-web-experience="modern"][data-theme="madinah"]{--home-accent:#245571;--home-bg:#e5edf3;--home-tint:#dce9f2;--home-line:#a6bdcf;--home-edge:#66869e;--home-ink:#193d56;--home-muted:#4a6172;--home-button:#245571}
html[data-web-experience="modern"][data-theme="classic"]{--home-accent:#71512f;--home-bg:#eee8df;--home-tint:#eee1cd;--home-line:#c6b398;--home-edge:#977c57;--home-ink:#48351f;--home-muted:#675b48;--home-button:#71512f}
html[data-web-experience="modern"][data-theme="purple"]{--home-accent:#5c417d;--home-bg:#ece7f1;--home-tint:#e6dcef;--home-line:#bdaccd;--home-edge:#8d76a4;--home-ink:#39294a;--home-muted:#655570;--home-button:#5c417d}
html[data-web-experience="modern"][data-theme="neutral"]{--home-accent:#4c5e54;--home-bg:#e9ece8;--home-tint:#e1e7df;--home-line:#b1bcb0;--home-edge:#7b8c7e;--home-ink:#303e35;--home-muted:#566258;--home-button:#4c5e54}
html[data-web-experience="modern"][data-theme="night"]{--home-accent:#b2c6b8;--home-bg:#080d0a;--home-card:#111b15;--home-tint:#1b3024;--home-line:#405b4a;--home-edge:#789682;--home-ink:#d9ded3;--home-muted:#b0bcae;--home-button:#2c503b;--home-button-ink:#e2eadf}
html[data-web-experience="modern"] body:has(#homeView.active),html[data-web-experience="modern"] body:has(#homeView.active) main{background:var(--home-bg)!important}
html[data-web-experience="modern"] #homeView.active{gap:15px!important;padding-bottom:38px;color:var(--home-ink)}
html[data-web-experience="modern"] #homeView>.continue-card{grid-template-columns:minmax(0,1fr)!important;border:1px solid var(--home-line)!important;border-radius:22px;background:var(--home-card)!important;box-shadow:0 10px 25px #17251b1a,0 2px 5px #17251b0b!important}
html[data-web-experience="modern"] #homeView .continue-card>.continue-reading-pane{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:16px!important;min-height:130px!important;padding:20px!important;background:var(--home-card)!important;border:0!important;box-shadow:none!important}
html[data-web-experience="modern"] #homeView .continue-copy{gap:10px!important}
html[data-web-experience="modern"] #homeView .continue-copy>small{font:500 10px/1.4 system-ui!important;letter-spacing:.09em;color:var(--home-muted)!important}
html[data-web-experience="modern"] #homeView .continue-copy>strong{font:750 23px/1.3 system-ui!important;color:var(--home-ink)!important;white-space:normal;overflow-wrap:anywhere}
html[data-web-experience="modern"] #homeView .continue-copy>p{font-size:13px!important;line-height:1.5!important;color:var(--home-muted)!important;white-space:normal!important;overflow:visible!important}
html[data-web-experience="modern"] #homeView #continueReading>b{justify-self:end;align-self:center!important;min-height:44px;display:grid!important;place-content:center;padding:12px 14px!important;border-radius:12px!important;background:var(--home-button)!important;color:var(--home-button-ink)!important;font:750 12px/1.4 system-ui!important;white-space:nowrap;box-sizing:border-box}
html[data-web-experience="modern"] #homeView .continue-card>.reading-collection-home-card{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:0!important;padding:14px 18px!important;background:var(--home-card)!important;border:0!important;border-top:1px solid var(--home-line)!important}
html[data-web-experience="modern"] #homeView .reading-collection-home-card>.reading-home-copy{display:block;flex:1;min-width:0;width:auto!important}
html[data-web-experience="modern"] #homeView .reading-home-copy :is(small,strong){display:none!important}
html[data-web-experience="modern"] #homeView #homeCollectionSummary{font:400 12px/1.5 system-ui!important;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--home-muted)!important}
html[data-web-experience="modern"] #homeView .reading-collection-home-card>b{flex:none;font:750 12px/1.5 system-ui!important;color:var(--home-accent)!important;white-space:nowrap}
html[data-web-experience="modern"] #homeView>.smart-finder{padding:12px!important;border-color:var(--home-line)!important;background:var(--home-card)!important;box-shadow:0 10px 25px #17251b18,0 2px 5px #17251b0b!important}
html[data-web-experience="modern"] #homeView .finder-tabs{background:var(--home-tint)!important;margin-bottom:11px;padding:3px;border-radius:14px}
html[data-web-experience="modern"] #homeView .finder-tabs button{color:var(--home-muted)!important;min-height:44px;font-weight:650!important}
html[data-web-experience="modern"] #homeView .finder-tabs button.active{background:var(--home-button)!important;color:var(--home-button-ink)!important;box-shadow:none!important}
html[data-web-experience="modern"] #homeView .finder-combobox{min-height:50px;border:1.5px solid var(--home-edge)!important;background:var(--home-card)!important;color:var(--home-ink)!important}
html[data-web-experience="modern"] #homeView .finder-combobox :is(input,button,.finder-icon){color:var(--home-accent)!important}
html[data-web-experience="modern"] #homeView .finder-combobox input::placeholder{color:var(--home-muted)!important;opacity:1}
html[data-web-experience="modern"] #homeView :is(#qmSearchHome,#qmWebSearchLaunch){color:var(--home-accent)!important;border-color:var(--home-line)!important;font-weight:750!important;min-height:44px}
html[data-web-experience="modern"] #homeView .qm-web-quick{gap:9px}
html[data-web-experience="modern"] #homeView .qm-web-quick button{background:var(--home-tint)!important;color:var(--home-accent)!important;border-color:var(--home-edge)!important;border-radius:14px;min-height:46px;font-weight:750;box-shadow:0 4px 8px #17251b12}
html[data-web-experience="modern"] #homeView>.home-surah-spotlight{padding:0!important;border:1px solid var(--home-line)!important;border-radius:22px;background:var(--home-card)!important;box-shadow:0 10px 25px #17251b1a,0 2px 5px #17251b0b!important;overflow:hidden}
html[data-web-experience="modern"] #homeView #homeSurahSpotlight>header{padding:16px!important;margin:0!important;min-height:72px;box-sizing:border-box;align-items:center}
html[data-web-experience="modern"] #homeView #homeSurahSpotlight h2{font:700 26px/1.25 Georgia,serif!important;color:var(--home-ink)!important}
html[data-web-experience="modern"] #homeView #homeSurahSpotlightToggle{min-height:44px;font:650 11px/1.4 system-ui;padding:8px 10px;background:var(--home-card)!important;color:var(--home-accent)!important;border-color:var(--home-edge)!important}
html[data-web-experience="modern"] #homeView .home-surah-spotlight-grid{padding:0 12px 12px;gap:10px!important}
html[data-web-experience="modern"] #homeView .home-surah-spotlight-card{grid-template-columns:30px minmax(0,1fr)!important;gap:6px 9px!important;padding:14px 10px!important;min-height:108px!important;border-color:var(--home-line)!important;border-radius:16px!important;background:var(--home-card)!important}
html[data-web-experience="modern"] #homeView .home-surah-spotlight-number{display:grid;place-content:center;grid-row:1/3;width:30px!important;height:30px!important;border-radius:10px;background:var(--home-tint)!important;color:var(--home-accent)!important;font-size:16px!important}
html[data-web-experience="modern"] #homeView .home-surah-spotlight-copy strong{font:750 14px/1.4 system-ui!important;white-space:normal!important;color:var(--home-ink)!important}
html[data-web-experience="modern"] #homeView .home-surah-spotlight-copy small{font:400 13px/1.4 system-ui!important;color:var(--home-muted)!important}
html[data-web-experience="modern"] #homeView .home-surah-spotlight-arabic{font-size:17px!important;line-height:1.6!important;color:var(--home-accent)!important;white-space:normal!important;overflow-wrap:break-word}
html[data-web-experience="modern"] #homeView :is(button,input,a):focus-visible{outline:2px solid var(--home-accent);outline-offset:3px}
html[data-web-experience="modern"][data-theme="night"] #homeView :is(.continue-card,.smart-finder,.home-surah-spotlight){box-shadow:0 10px 24px #0007!important}
html[data-web-experience="modern"][data-theme="night"] #homeView .qm-web-quick button{box-shadow:0 4px 9px #0004!important}
html[data-web-experience="modern"] #homeView .qm-web-home-footer{padding:9px 12px;background:var(--home-tint);border-top:1px solid var(--home-line);color:var(--home-accent);font:700 11px/1.4 system-ui}
@media(max-width:900px){
 html[data-web-experience="modern"] body:has(#homeView.active) main{padding:80px 12px 52px!important}
 html[data-web-experience="modern"] #homeView .qm-web-home-footer{position:fixed;bottom:0;left:0;right:0;z-index:30;box-sizing:border-box;text-align:center;padding-bottom:max(9px,env(safe-area-inset-bottom))}
}
@media(max-width:359px){
 html[data-web-experience="modern"] #homeView .continue-card>.continue-reading-pane{grid-template-columns:minmax(0,1fr)!important;padding:18px!important;gap:14px!important;min-height:0!important}
 html[data-web-experience="modern"] #homeView #continueReading>b{justify-self:start;white-space:nowrap}
 html[data-web-experience="modern"] #homeView .continue-card>.reading-collection-home-card{padding:12px 14px!important;gap:8px!important}
 html[data-web-experience="modern"] #homeView #homeSurahSpotlight>header{padding:14px 12px!important;gap:7px!important}
 html[data-web-experience="modern"] #homeView #homeSurahSpotlight h2{font-size:23px!important}
 html[data-web-experience="modern"] #homeView #homeSurahSpotlightToggle{font-size:10px;padding:8px}
 html[data-web-experience="modern"] #homeView .home-surah-spotlight-grid{padding:0 8px 10px;gap:8px!important}
 html[data-web-experience="modern"] #homeView .home-surah-spotlight-card{grid-template-columns:26px minmax(0,1fr)!important;padding:12px 8px!important;gap:5px 6px!important}
 html[data-web-experience="modern"] #homeView .home-surah-spotlight-number{width:26px!important;height:28px!important}
}
/* Keep both resume contents in the same row at regular phone widths. */
html[data-web-experience="modern"] #homeView .continue-card>.continue-reading-pane>.continue-copy{grid-column:1!important;grid-row:1!important;min-width:0}
html[data-web-experience="modern"] #homeView .continue-card>#continueReading>b{grid-column:2!important;grid-row:1!important}
html[data-web-experience="modern"] #homeView #smartFinder>.finder-heading{display:none!important}
@media(max-width:359px){html[data-web-experience="modern"] #homeView .continue-card>#continueReading>b{grid-column:1!important;grid-row:2!important}}
@media(prefers-reduced-motion:reduce){html[data-web-experience="modern"] #homeView :is(button,a){transition:none!important}}
