/* AlBurhan day mode - loaded after site.css; active only when html has data-theme=light */
html[data-theme=light]{--bg:#f6efe2;--panel:#fffaf0;--line:#ddcfb5;--gold:#8f5f00;--btn:#d37f00;--text:#2b1a0d;--mute:#6b563b;--ok:#1f8a5b;--bad:#c62f2f;color-scheme:light}
html[data-theme=light] .top{background:#faf0df!important}
html[data-theme=light] input,html[data-theme=light] select{background:#faf0df!important}
html[data-theme=light] #busy{background:#f7ebdaf2!important}
html[data-theme=light] .opt{background:#f8ecdb!important}
html[data-theme=light] .exp{background:#faf0df!important}
html[data-theme=light] .bar{background:#faf0df!important}
html[data-theme=light] .sticky{background:#faf0dfee!important}
html[data-theme=light] .stem .r{color:#986f01!important}
html[data-theme=light] .stp{background:#f8ecdb!important}
html[data-theme=light] .dots i{background:#faf0df!important}
html[data-theme=light] .pbt .r,html[data-theme=light] .vp .r{color:#2e220f!important}
html[data-theme=light] .pbt .r.fem,html[data-theme=light] .vp .r.fem{color:#c2004c!important}
html[data-theme=light] .pbt .a.fem,html[data-theme=light] .vp .a.fem{color:#c2004c!important}
html[data-theme=light] .play{background:#efddc4!important}
html[data-theme=light] .l1bar{background:#f4e6d0!important}
html[data-theme=light] .l1msg{color:#2e220f!important}
html[data-theme=light] .l1opts button{background:#f4e6d0!important;color:#2e220f!important}
html[data-theme=light] .l1opts button.good{background:#d4e6ce!important}
html[data-theme=light] .l1opts button.miss{background:#e9d1c5!important}
html[data-theme=light] .l1next{border-color:#a97419!important}
html[data-theme=light] .stpgrp{color:#855c14!important}
html[data-theme=light] .lessons .part{border-top:1px solid #a974192e!important}
html[data-theme=light] .ptab{background:#f8ecdb!important}
html[data-theme=light] .l1bar{background:#e7d3ba!important}
html[data-theme=light] .top .hbg{background:#fffaf0}
html[data-theme=light] .top .menu{background:#fffaf0}
html[data-theme=light] [style*="#bfa57a"]{color:#6b563b!important}
html[data-theme=light] [style*="#e0a030"]{color:#8f5f00!important;border-color:#a8740f!important}
html[data-theme=light] [style*="background:#2a1b0f"]{background:#fffaf0!important;border-color:#d8c7a6!important}
html[data-theme=light] [style*="#ff9ec4"]{color:#c2004c!important}
html[data-theme=light] [style*="#5b4020"]{border-color:#d8c7a6!important}
.top .thm{width:46px;height:46px;border-radius:50%;background:transparent;border:1.5px solid var(--gold);color:var(--gold);padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 auto;margin-inline-start:auto;margin-inline-end:6px}
.top .thm svg{width:24px;height:24px;display:block}
.top .thm .moon{display:none}
html[data-theme=light] .top .thm .sun{display:none}
html[data-theme=light] .top .thm .moon{display:block}
.top .thm:hover{background:rgba(242,181,68,.15)}
@media print{.top .thm{display:none}}
html[data-theme=light] .top .menu>.mute{border-bottom-color:#ddcfb5}
html[data-theme=light] .top img{filter:brightness(.42) saturate(1.5)}
html[data-theme=light] .flash{border-color:var(--line)}
html[data-theme=light] .flash.bad{border-color:#d9a0a0}
html[data-theme=light] .flash.ok{border-color:#9fd4b9}
/* spacing between neighbouring buttons on all devices */
:where(.wrap) .btn,:where(.wrap) button{margin-block:6px}
/* static-bar: Submit/Back sit at the end of the quiz, not floating */
.sticky{position:static!important;bottom:auto!important;background:transparent!important;border:0!important;box-shadow:none!important;margin:24px 0 8px!important;padding:0!important}

/* popup dialog */
.abm{position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(10,6,3,.62);display:flex;align-items:center;justify-content:center;z-index:99999;padding:16px}
.abm .box{background:var(--panel);color:var(--text);border:1.5px solid var(--gold);border-radius:18px;max-width:440px;width:100%;padding:24px 22px 20px;text-align:center;box-shadow:0 12px 40px rgba(0,0,0,.45)}
.abm .ic{width:46px;height:46px;border-radius:50%;border:2px solid var(--gold);color:var(--gold);font:700 26px/42px Tahoma,Arial,sans-serif;margin:0 auto 12px}
.abm p{margin:0}.abm .en{font-weight:700;font-size:19px;line-height:1.5}
.abm .ar{font-size:21px;line-height:1.7;direction:rtl;margin-top:2px}
.abm .s2{margin-top:10px}.abm .en.s2{font-weight:400;font-size:17px;color:var(--mute)}.abm .ar.s2{font-size:19px;color:var(--mute)}
.abm .acts{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:20px}
.abm .acts button{margin:0;min-width:150px}
.abm .acts button.alt{background:transparent;color:var(--gold);border:1.5px solid var(--gold)}
.abm-open{overflow:hidden}
/* field-fix: textareas and fields in day mode, nicer focus */
html[data-theme=light] textarea,html[data-theme=light] input,html[data-theme=light] select{background:#fbf3e3!important;color:var(--text)!important;border:1px solid var(--line)!important}
html[data-theme=light] textarea::placeholder,html[data-theme=light] input::placeholder{color:#9a8664}
textarea{min-height:150px;resize:vertical;border-radius:10px}
textarea:focus,input:focus,select:focus{outline:none;border-color:var(--gold)!important;box-shadow:0 0 0 3px rgba(242,181,68,.25)}
html[data-theme=light] textarea:focus,html[data-theme=light] input:focus,html[data-theme=light] select:focus{box-shadow:0 0 0 3px rgba(143,95,0,.18)}
