/* مظهر فاتح/داكن موحّد: يلحق كل الصفحات. فاتح حقيقي في الوضع الفاتح، وداكن حقيقي في الداكن. */
/* الرئيسية: بطاقة الترحيب تتبع المظهر */
html[data-theme="light"] body.home #bn-home2 .h2-hero{background:linear-gradient(135deg,#fffdf8 0%,#f3f6fb 55%,#e6edf6 100%)!important;border:1px solid #d9c28f!important;box-shadow:0 10px 30px rgba(17,42,70,.08)!important}
html[data-theme="light"] body.home #bn-home2 .h2-hero::before{background-image:linear-gradient(rgba(18,36,63,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(18,36,63,.05) 1px,transparent 1px)!important}
html[data-theme="light"] body #bn-home2 .h2-hero *{color:#142943!important}
html[data-theme="light"] body #bn-home2 .h2-hero b{color:#7d5a17!important}
html[data-theme="light"] body #bn-home2 .h2-hero i{color:#42566f!important}
html[data-theme="light"] body #bn-home2 .h2-hero .h2-kick{color:#0b6b4e!important}
html[data-theme="light"] body #bn-home2 .h2-hero p{color:#3a4f69!important}
html[data-theme="light"] body #bn-home2 .h2-hero .h2-gold{color:#7d5a17!important}
html[data-theme="light"] body #bn-home2 .h2-hero #h2-q::placeholder{color:#5a6b82!important}
html[data-theme="light"] body #bn-home2 .h2-logo{background:#fff!important;border:1px solid #e2d3ad!important}
/* الرئيسية داكن: خانة البحث داكنة بدل البيضاء */
html[data-theme="dark"] body.home #bn-home2 .h2-search{background:#0e1c31!important;border-color:rgba(201,155,67,.6)!important}
html[data-theme="dark"] body.home #bn-home2 #h2-q{background:#0e1c31!important;color:#eef3fb!important;border-color:rgba(201,155,67,.6)!important}
html[data-theme="dark"] body.home #bn-home2 #h2-q::placeholder{color:#a9b9d0!important}
html[data-theme="dark"] body #bn-home2 .h2-search span{color:#a9b9d0!important}
/* خانات البحث والإدخال في المكتبة داكنة */
html[data-theme="dark"] body :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=button]):not([type=submit]){background-color:#0e1c31!important;color:#eef3fb!important;border-color:#2e4466!important;color-scheme:dark}
html[data-theme="dark"] body :is(input,textarea)::placeholder{color:#9fb0c8!important;opacity:1}
html[data-theme="light"] body :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=button]):not([type=submit]){color-scheme:light}
/* دليل المأموريات: الصندوق الداكن يصير فاتحًا في الوضع الفاتح */
html[data-theme="light"] body .of-stat{background:#f3f6fb!important;color:#142943!important;border:1px solid #d9c28f!important}
html[data-theme="light"] body .of-stat *{color:#142943!important}
html[data-theme="light"] body .of-stat b{color:#7d5a17!important}
html[data-theme="light"] body .of-btn{background:#f3f6fb!important;color:#142943!important;border:1px solid #d9c28f!important}
/* تباين النصوص الصغيرة */
html[data-theme="light"] body .bn-stats-n{color:#33495f!important}
html[data-theme="light"] body .gn-crumb span{color:#33495f!important;opacity:1!important}
html[data-theme="light"] body .tq-out .hint{color:#4b5d75!important}
html[data-theme="light"] body .fm-n{color:#7d5a17!important}
html[data-theme="light"] body .cal-kicker{color:#7d5a17!important}
html[data-theme="light"] body .lib-chip small{color:#3f536b!important}
html[data-theme="light"] body .log-date{color:#7d5a17!important}
html body .bn-per-o .p-l3{opacity:1!important}
html[data-theme="light"] body .bn-per-o .p-l3 a{color:#124b94!important}
/* روابط المصدر */
html[data-theme="light"] body a.bn-pdf-pre{color:#124b94!important}
html[data-theme="dark"] #bn-th-btn{background:#13233f!important;color:#e9c46a!important;border-color:#2e3d5e!important}
/* فقاعة الإذاعة: أصغر وبالإنجليزي */
html body .qr-bubble{font:600 10.5px/1 system-ui,-apple-system,"Segoe UI",sans-serif!important;padding:4px 9px!important;border-radius:8px!important;direction:ltr!important;letter-spacing:.2px;box-shadow:0 3px 10px rgba(15,61,117,.22)!important}
html body .qr-bubble:before{border-width:5px!important;margin-left:-5px!important}
html[data-theme="light"] body .exp-btn{background:#14284b!important;color:#fff!important;border-color:#14284b!important;transition:none!important}
html[data-theme="dark"] body .exp-btn{background:#1d3a66!important;color:#fff!important;border-color:#3a5a8c!important;transition:none!important}
html body .exp-btn:disabled{opacity:.8!important}
/* مرحلة تقوية الخصوصية */
html[data-theme="light"] body:not(#_):not(#__) .of-stat b{color:#7d5a17!important}
html[data-theme="light"] body:not(#_):not(#__) .of-stat span{color:#2a3f59!important}
html[data-theme="light"] body:not(#_):not(#__) .bn-stats .bn-stats-n,html[data-theme="light"] body:not(#_):not(#__) p.bn-stats-n{color:#2c4159!important;opacity:1!important}
html[data-theme="light"] body:not(#_):not(#__) .tq-out .hint,html[data-theme="light"] body:not(#_):not(#__) span.hint{color:#47596f!important;opacity:1!important}
html[data-theme="light"] body:not(#_):not(#__) .lib-chip small{color:#394d64!important;opacity:1!important}
html[data-theme="light"] body:not(#_):not(#__) button#exp-xlsx,html[data-theme="light"] body:not(#_):not(#__) button#exp-pdf{background:#14284b!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-theme="dark"] body:not(#_):not(#__) input:not([type=checkbox]):not([type=radio]):not([type=range]){background-color:#0e1c31!important;color:#eef3fb!important;-webkit-text-fill-color:#eef3fb!important}
html[data-theme="light"] body:not(#_):not(#__) .lib-chip.on small{color:#fff!important}
/* وهج زر الإذاعة عند فتح الصفحة، يقف عند أول تمرير */
@keyframes bnQrGlow{0%{box-shadow:0 0 0 0 rgba(42,111,214,.75),0 0 8px 2px rgba(42,111,214,.55)}70%{box-shadow:0 0 0 14px rgba(42,111,214,0),0 0 18px 6px rgba(42,111,214,.35)}100%{box-shadow:0 0 0 0 rgba(42,111,214,0),0 0 8px 2px rgba(42,111,214,.55)}}
html body.bn-qr-glow #qr-btn{animation:bnQrGlow 1.6s ease-out infinite!important}
@media (prefers-reduced-motion:reduce){html body.bn-qr-glow #qr-btn{animation:none!important;box-shadow:0 0 0 3px rgba(42,111,214,.55),0 0 12px 3px rgba(42,111,214,.45)!important}}
