.qm-web-search-loading{width:min(440px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--line);border-radius:22px;background:var(--surface,#fff);color:var(--ink)}
.qm-web-search-loading::backdrop{background:#0d241ab8}
.qm-web-search-loading h2{font:750 23px/1.3 system-ui;margin:0 0 12px}.qm-web-search-loading p{font:400 15px/1.65 system-ui;color:var(--muted)}
.qm-web-search-loading button{min-height:44px;padding:10px 18px;border:1px solid var(--line);border-radius:12px;background:var(--pale);color:var(--ink);font-weight:700}
#qmWebSearchLaunch,#qmSearchHome{display:flex;width:100%;gap:10px;align-items:center;justify-content:space-between;margin-top:12px;padding:14px 4px 3px;min-height:44px;border:0;border-top:1px solid var(--line);border-radius:0;background:none;color:var(--green);font:700 14px/1.5 system-ui;text-align:left}
#qmWebSearchLaunch>span:nth-child(2),#qmSearchHome>span:nth-child(2){flex:1}
#qmWebSearchReturn{position:fixed;z-index:37;left:12px;bottom:85px;max-width:calc(100% - 160px);min-height:44px;padding:9px 14px;border:1px solid var(--green);border-radius:999px;background:var(--surface,#fff);color:var(--ink);font:700 13px/1.4 system-ui;box-shadow:0 4px 14px #102b3020}
#qmWebSearchReturn[hidden]{display:none}
#qmTranslationFolder,#qmTafsirFolder{display:none!important}
html[data-theme] #qmSearchDialog,html[data-theme] #qmTafsirDialog{width:min(560px,calc(100% - 24px));max-width:calc(100% - 24px)}
html[data-theme] #qmSearchDialog .qm-search-excerpt,html[data-theme] #qmTafsirDialog #qmTafsirText{font-size:18px;line-height:1.8}
html[data-theme=night] :is(#qmSearchDialog,#qmTafsirDialog,#qmTranslationDialog){background:#111b15!important;color:#d0d5c8!important;border-color:#405347!important;text-shadow:none!important}
html[data-theme=night] :is(#qmSearchDialog,#qmTafsirDialog,#qmTranslationDialog) :is(input,select,button){color:#d0d5c8!important;border-color:#405347!important}
html[data-theme=night] :is(#qmSearchDialog,#qmTafsirDialog,#qmTranslationDialog) button{background:#1b2b21!important}
html[data-theme=night] #qmSearchDialog :is(.qm-search-result,.qm-search-discovery-grid button,.qm-search-topic,.qm-search-featured button){background:#15221a!important;border-color:#405347!important}
html[data-theme=night] #qmSearchDialog :is(.qm-search-submit,[aria-pressed=true]){background:#294736!important;color:#d4dfcf!important}
html[data-theme=night] #qmWebSearchReturn{background:#203228;color:#d0d5c8;border-color:#637d68;box-shadow:none}
#sidebar.sidebar #qmTafsirNav>span:first-child,#sidebar.sidebar #qmWebTafsirNav>span:first-child{font-size:0!important}
#sidebar.sidebar :is(#qmTafsirNav,#qmWebTafsirNav)>span:first-child::before{content:"📚";font:20px/1 "Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif}
#sidebar.sidebar #qmTranslationNav>span:first-child{font-size:20px!important}
#sidebar.sidebar :is(#qmTafsirNav,#qmTranslationNav)>span:first-child>svg{display:none}
#sidebar.sidebar #qmTranslationNav>span:first-child::before{content:"🌐";font:20px/1 "Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif}
@media(max-width:350px){#qmWebSearchLaunch,#qmSearchHome{font-size:13px}#qmWebSearchReturn{padding-inline:10px;font-size:12px}}
