.qv-page .qv-navigation{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 18px;position:relative;z-index:30}
.qv-page :is(#qr-library,#qr-random,#qr-static) :is(.qv-control,.qv-open){display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;max-width:100%;padding:11px 20px;border:1px solid #68766e;border-radius:999px;background:#3f4542;color:#f2f4f3;font-family:inherit;font-size:14px;font-weight:650;line-height:1.6;text-decoration:none;text-align:center;box-shadow:6px 6px 14px #20252155,-3px -3px 10px #ffffff08;cursor:pointer;transition:background .16s ease,border-color .16s ease}
.qv-page :is(#qr-library,#qr-random,#qr-static) :is(.qv-control,.qv-open):hover{background:#354c41;border-color:#8ab79f}
.qv-page :is(#qr-library,#qr-random,#qr-static) :is(a,button,summary,input):focus-visible{outline:3px solid #a4d8bd;outline-offset:4px}
.qv-page :is(.qv-control,.qv-saved-summary) svg{width:21px;height:21px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.qv-page :is(#qr-library,#qr-random,#qr-static) .qv-primary{background:#276a50;border-color:#72b494;color:#fff}
.qv-page :is(#qr-library,#qr-random,#qr-static) .qv-primary:hover{background:#215e46}
.qv-page .qv-language{position:relative;max-width:52%;flex-shrink:0}
.qv-page .qv-language summary{list-style:none;user-select:none}
.qv-page .qv-language summary::-webkit-details-marker{display:none}
.qv-page .qv-language summary bdi{overflow-wrap:anywhere}
.qv-page .qv-caret{font-size:20px;line-height:1;transition:transform .16s ease}
.qv-page .qv-language[open] .qv-caret{transform:rotate(180deg)}
.qv-page .qv-language-menu{position:absolute;inset-inline-end:0;top:calc(100% + 12px);width:350px;max-width:calc(100vw - 32px);padding:18px 12px 10px;border:1px solid #718279;border-radius:18px;background:#3f4542;box-shadow:0 16px 44px #0007;z-index:31;text-align:start}
.qv-page .qv-language-label{display:block;margin:0 5px 10px;color:#f2f4f3;font-size:14px;font-weight:650}
.qv-page #qv-language-search{box-sizing:border-box;width:100%;min-height:46px;padding:10px 12px;margin-bottom:10px;border:1px solid #798b7f;border-radius:10px;background:#353d38;color:#fff;font:inherit;font-size:14px}
.qv-page #qv-language-search::placeholder{color:#cbd0cd;opacity:1}
.qv-page .qv-language-options{max-height:min(48vh,390px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.qv-page :is(#qr-library,#qr-random,#qr-static) .qv-language-option{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;margin:2px 4px;border-radius:8px;font-size:14px;line-height:1.65;text-decoration:none;color:#f2f4f3;overflow-wrap:anywhere}
.qv-page :is(#qr-library,#qr-random,#qr-static) a.qv-language-option:hover,.qv-page .qv-language-option[aria-current]{background:#30543f}
.qv-page .qv-language-check{color:#8ae5bb;font-size:18px}
.qv-page :is(#qr-library,#qr-random,#qr-static) .qv-language-option.is-translation-pending{cursor:not-allowed}
.qv-page :is(#qr-library,#qr-random,#qr-static) .qv-language-option.is-translation-pending,.qv-page .qv-language-option.is-translation-pending *{color:#000!important;-webkit-text-fill-color:#000!important}
.qv-page .qv-language-option small{font-size:11px;flex-shrink:0}
.qv-page .qv-no-language{font-size:13px;padding:12px;margin:0;color:#d3ddd6}


/* Shared home controls have one clear green primary treatment. */
html body :is(.qv-home,.back-home,.surah-site-footer .footer-legal .surah-footer-home,.account-home){background:#2ca77b!important;color:#fff!important;border:1px solid #6ac5a2!important;border-radius:999px!important;box-shadow:5px 7px 16px #20252166!important;text-decoration:none!important;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 18px!important;font:inherit}
html body :is(.qv-home,.back-home,.surah-site-footer .footer-legal .surah-footer-home,.account-home):hover{background:#258d68!important;color:#fff!important}
html body :is(.qv-home,.back-home,.surah-site-footer .footer-legal .surah-footer-home,.account-home) *{color:inherit!important}
html body :is(.qv-home,.back-home,.surah-site-footer .footer-legal .surah-footer-home,.account-home):focus-visible{outline:3px solid #dfc793!important;outline-offset:4px}
.qv-card-actions{display:flex;align-items:stretch;justify-content:center;flex-wrap:wrap;gap:12px;margin:24px auto 10px}
html body #qr-library .qv-card-actions :is(.qv-open,.qv-resume){display:inline-flex;align-items:center;justify-content:center;gap:9px;width:auto;margin:0;padding:11px 20px;min-height:48px;border:1px solid #68766e;border-radius:999px;background:#3f4542;color:#f2f4f3;font:inherit;font-size:14px;text-decoration:none;box-shadow:6px 6px 14px #20252155}
.qv-card-actions svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65}
.qv-static-page #qr-static{min-width:0;max-width:1080px;width:100%;margin:20px auto;padding:12px;box-sizing:border-box}
.qv-static-page #qr-static .paper{min-width:0;max-width:100%;box-sizing:border-box}
.qv-static-page .qv-navigation{margin-bottom:32px}
html body.qv-static-page .qv-navigation{background:transparent!important}
.qv-static-page #qr-static :is(.qv-control,.qv-open){box-sizing:border-box}
.qv-static-page :is(form,.form-grid,.form-field,input,textarea){min-width:0;max-width:100%;box-sizing:border-box}
.qv-static-page .qv-language-menu{z-index:100}
.qv-static-page .qv-home svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65}
#account-settings[hidden]{display:none!important}
#account-settings{margin-top:24px;padding-top:14px;border-top:1px solid #71807766}
#account-settings h2{text-align:center;font-size:20px}
.account-appearance{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
html body #account-settings #decorationToggle{min-height:44px;border:1px solid #dbc48f;border-radius:14px;padding:10px 16px;color:#dbc48f;background:#3f4542;cursor:pointer}
html body #account-settings #decorationToggle[aria-pressed="true"]{background:#30543f;border-color:#70ba94}
html body .account-tools form{margin:0;box-shadow:none!important}
.account-greeting{overflow-wrap:anywhere}
@media(max-width:600px){
 .qv-static-page #qr-static{margin:0 auto;padding:8px}
 .qv-static-page #qr-static .paper{padding:18px 10px!important}
 .qv-static-page #qr-static .qv-control{font-size:12px;padding:10px 12px;gap:6px}
 .qv-static-page .qv-navigation{gap:8px}
 .qv-static-page .qv-language{max-width:48%}
 .qv-card-actions{gap:8px}
 html body #qr-library .qv-card-actions :is(.qv-open,.qv-resume){flex:1 1 130px;font-size:12px;padding:10px}
}
@media(max-width:600px){
 html body .surah-toolbar{gap:8px!important;min-width:0}
 html body .surah-toolbar #languagePickerV40{max-width:48%;min-width:0}
 html body .surah-toolbar #languagePickerV40 .lang-v40-button{max-width:100%;min-width:0;padding-inline:10px!important}
 html body .surah-toolbar .back-home{min-width:0;max-width:50%;font-size:12px;padding:10px!important;text-align:center;line-height:1.6}
}
