/* v7.css — Rasd Online v7.0.0: new components, English (LTR) layout fixes and the dark theme (RASD navy/gold palette).
   Loaded after cust.css. The dark block below the marker is generated from style.css + cust.css (light surfaces -> navy surfaces,
   navy text -> light text) and then refined by hand for contrast. */
.wlang{position:absolute;top:calc(14px + env(safe-area-inset-top));left:14px;z-index:3;border:1px solid rgba(217,176,122,.6);background:rgba(255,255,255,.1);color:#fff;border-radius:999px;padding:6px 14px;font-weight:700;font-size:14px;cursor:pointer}
html[dir=ltr] .wlang{left:auto;right:14px}
.v7off{text-align:center;padding:26px 18px}.v7off b{display:block;font-size:18px;margin:8px 0 4px}.v7off-ic{width:56px;height:56px;margin:0 auto;border-radius:50%;background:var(--tl);color:var(--t1);display:grid;place-items:center}.v7off-ic svg{width:28px;height:28px}
/* favourites */
.v7home{margin-top:14px}
.fnrow{display:flex;gap:10px;overflow-x:auto;padding:4px 2px 8px;scrollbar-width:none}.fnrow::-webkit-scrollbar{display:none}
.fnchip{flex:none;width:76px;border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer;color:var(--ink);font:inherit}
.fnchip b{font-size:13px;max-width:76px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fnchip small{font-size:11px;color:var(--muted)}
.fnav{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800;font-size:20px;box-shadow:0 0 0 3px #fff,0 4px 10px rgba(13,44,58,.15)}
.fnchip.add .fnav{background:var(--tl);color:var(--t1);border:2px dashed var(--gold)}.fnchip.add .fnav svg{width:22px;height:22px}
.fnload{height:74px;flex:1;border-radius:14px;background:linear-gradient(90deg,var(--tl),#fff,var(--tl));background-size:200% 100%;animation:sk 1.2s infinite}@keyframes sk{to{background-position:-200% 0}}
.rptcard{width:100%;display:flex;align-items:center;gap:12px;border:0;background:#fff;border-radius:16px;padding:12px 14px;box-shadow:var(--sh);margin-top:8px;cursor:pointer;font:inherit;color:inherit;text-align:start}
.rptcard .mid{flex:1;min-width:0;display:flex;flex-direction:column}.rptcard small{color:var(--muted);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rptic{width:42px;height:42px;border-radius:12px;background:#0d2c3a;color:#d9b07a;display:grid;place-items:center;flex:none}.rptic svg{width:22px;height:22px}.rptamt{color:var(--gold3);font-size:17px}
.favlist .fvi{flex-wrap:wrap}.fvacts{display:flex;gap:6px;align-items:center;margin-inline-start:auto}
.iconbtn2{border:0;background:var(--tl);color:var(--t1);width:36px;height:36px;border-radius:10px;display:grid;place-items:center;cursor:pointer;flex:none}.iconbtn2 svg{width:18px;height:18px}
.cx-fav{color:#b0844c;font-size:18px;padding-inline:12px}
/* order actions + discount */
.oacts{display:flex;gap:8px;padding:0 14px 12px;margin-top:-4px;border-bottom:1px solid var(--line)}
.oact{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);background:#fff;color:var(--t3);border-radius:999px;padding:5px 12px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.oact svg{width:16px;height:16px}
.end .disc{display:block;color:#1b7a4a;font-size:11.5px;font-weight:700}
/* receipt */
.rcptwrap{min-height:200px;display:grid;place-items:center;background:var(--tl);border-radius:14px;padding:8px}.rcptimg{width:100%;max-width:340px;border-radius:12px;box-shadow:var(--sh)}
/* coupon */
.cpntog{display:flex;align-items:center;gap:8px;width:100%;margin-top:10px;border:1.5px dashed var(--gold);background:#fffaf1;color:var(--t3);border-radius:12px;padding:10px 12px;font:inherit;font-weight:700;cursor:pointer}.cpntog svg{width:20px;height:20px;color:#b0844c}
.cpnrow{display:flex;gap:8px;margin-top:10px}.cpnrow .in{flex:1;text-transform:uppercase;letter-spacing:1px}
.hint.okc{color:#1b7a4a;font-weight:600}s.was{color:var(--muted);font-weight:500;margin-inline-end:4px}
/* notifications centre */
.pushcard{display:flex;align-items:center;gap:12px}.pushcard .mid{flex:1;display:flex;flex-direction:column}.pushcard small{color:var(--muted);font-size:12.5px}
.pushic{width:44px;height:44px;border-radius:12px;background:#0d2c3a;color:#d9b07a;display:grid;place-items:center;flex:none}.pushic svg{width:22px;height:22px}
.nhead{display:flex;justify-content:space-between;align-items:center;margin:4px 2px 8px;color:var(--muted);font-size:14px}
.notif2{width:100%;display:flex;gap:12px;align-items:flex-start;border:0;border-bottom:1px solid var(--line);background:#fff;padding:13px 14px;text-align:start;font:inherit;color:inherit;cursor:pointer;position:relative}
.notif2 .mid{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.notif2 .nb{color:var(--ink);opacity:.85;font-size:14px}.notif2 small{color:var(--muted);font-size:12px}
.notif2.unread{background:#fbf6ea}.notif2.unread b{font-weight:800}.ndot{width:9px;height:9px;border-radius:50%;background:#d9b07a;flex:none;margin-top:6px}
.nic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex:none}.nic svg{width:21px;height:21px}
.nk-ok{background:#e3eef1;color:#1b5566}.nk-bad{background:#fdecea;color:#c0392b}.nk-gold{background:#f6ead6;color:#9a6c2f}.nk-teal{background:#e6f0f2;color:#24707f}
/* chat */
.chatwrap{max-width:560px;margin:0 auto;padding:10px 12px 150px}
.chatlog{display:flex;flex-direction:column;gap:8px;min-height:50vh}
.cmsg{max-width:82%;padding:9px 12px 6px;border-radius:16px;box-shadow:0 2px 6px rgba(13,44,58,.07)}.cmsg p{margin:0;white-space:pre-wrap;word-break:break-word}.cmsg small{display:block;font-size:11px;opacity:.7;margin-top:2px}
.cmsg.me{align-self:flex-start;background:#0d2c3a;color:#fff;border-end-start-radius:4px}
.cmsg.them{align-self:flex-end;background:#fff;color:var(--ink);border-end-end-radius:4px;border:1px solid var(--line)}
.cmsg img{display:block;max-width:220px;max-height:260px;border-radius:10px;margin-bottom:4px;background:var(--tl);min-width:80px;min-height:60px}
.csys{align-self:center;font-size:12.5px;color:var(--muted);background:var(--tl);padding:4px 12px;border-radius:999px}
.chatempty{margin:40px auto;text-align:center;display:flex;flex-direction:column;gap:6px;align-items:center;color:var(--muted);max-width:280px}.chatempty svg{width:46px;height:46px;color:#d9b07a}.chatempty b{color:var(--ink);font-size:18px}
.chatbar{position:fixed;bottom:0;left:0;right:0;display:flex;gap:8px;align-items:center;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);z-index:20;max-width:560px;margin:0 auto}
.chatbar .in{flex:1;margin:0}.cattach{width:44px;height:44px;border-radius:12px;background:var(--tl);color:var(--t1);display:grid;place-items:center;cursor:pointer;flex:none}.cattach svg{width:22px;height:22px}
.csend{width:48px;height:44px;padding:0;flex:none}.csend svg{width:20px;height:20px}html[dir=rtl] .csend svg{transform:scaleX(-1)}
.cpreview{position:fixed;bottom:76px;left:12px;right:12px;max-width:536px;margin:0 auto;background:#fff;border-radius:12px;padding:8px;display:flex;align-items:center;gap:10px;box-shadow:var(--sh);z-index:21}.cpreview img{height:60px;border-radius:8px}
.cwa{display:flex;align-items:center;gap:6px;margin:14px auto 0;justify-content:center}.cwa svg{width:18px;height:18px;color:#25d366}
/* transfer + QR */
.trwho{margin-top:8px;min-height:4px}.trcard{display:flex;align-items:center;gap:10px;background:var(--tl);border-radius:12px;padding:8px 10px}.trcard>div:nth-child(2){flex:1;display:flex;flex-direction:column}.trcard small{color:var(--muted);font-size:12.5px}.trcard .avatar{width:40px;height:40px;font-size:17px;box-shadow:0 0 0 2px #d9b07a}
.myqr{text-align:center;padding:22px 16px}.myqr-q{width:236px;height:236px;margin:0 auto 12px;border-radius:16px;overflow:hidden;box-shadow:0 0 0 6px #fff,0 0 0 8px #d9b07a}.myqr-q svg{display:block;width:100%;height:100%}.myqr .pname{display:block;font-size:19px}.myqr .row2{margin-top:12px}
.depqr{display:flex;gap:14px;align-items:center}.depqr-q{width:132px;height:132px;flex:none;border-radius:12px;overflow:hidden;border:2px solid #d9b07a;background:#fff}.depqr-q svg{display:block;width:100%;height:100%}
.depqr-t{display:flex;flex-direction:column;gap:4px;min-width:0}.depqr-v{font-weight:800;font-size:17px;word-break:break-word}.depqr-t small{color:var(--muted)}.depqr-t .btn{align-self:flex-start}
.scanbox{position:relative;border-radius:16px;overflow:hidden;background:#000;aspect-ratio:1/1;max-height:60vh}.scanbox video{width:100%;height:100%;object-fit:cover}
.scanframe{position:absolute;inset:16%;border:3px solid #d9b07a;border-radius:18px;box-shadow:0 0 0 999px rgba(0,0,0,.35)}
/* invite + agent */
.invite{text-align:center}.invite h2{margin:6px 0}.invic{width:64px;height:64px;margin:0 auto;border-radius:50%;background:#0d2c3a;color:#d9b07a;display:grid;place-items:center}.invic svg{width:32px;height:32px}
.refcode{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--tl);border:1.5px dashed #d9b07a;border-radius:14px;padding:10px;margin:12px 0}.refcode small{color:var(--muted)}.refcode b{font-size:22px;letter-spacing:2px}
.stats2{display:flex;gap:10px;margin:12px 0}.stats2>div{flex:1;background:#fff;border-radius:14px;padding:12px;text-align:center;box-shadow:var(--sh)}.stats2 small{display:block;color:var(--muted);font-size:12.5px}.stats2 b{font-size:20px}
.stats2 .pf b,.t7 .pf{color:#1b7a4a}
.arange label{flex:1;display:flex;flex-direction:column;font-size:13px;color:var(--muted)}.arange .in{margin-top:4px}
.t7{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden;box-shadow:var(--sh);font-size:14px}.t7 th{background:#0d2c3a;color:#d9b07a;font-weight:700;padding:8px 6px}.t7 td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:center}
.aord .end{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.aord .end small{color:var(--muted);font-size:11.5px}
/* settings */
.setc .seth{display:flex;align-items:center;gap:8px;margin-bottom:10px}.setc .seth svg{width:22px;height:22px;color:#b0844c}.setc .seg{margin:0;flex-wrap:wrap}
/* English (LTR): text alignment + direction-aware icons */
html[dir=ltr] body{direction:ltr}
html[dir=ltr] .item.row,html[dir=ltr] .ditem{text-align:left}
html[dir=ltr] .item.row>svg,html[dir=ltr] .ditem>svg:last-child,html[dir=ltr] .hbtn[aria-label="Back"] svg,html[dir=ltr] .hbtn[aria-label="رجوع"] svg{transform:scaleX(-1)}
html[dir=ltr] .notif.unread{border-right:0;border-left:4px solid var(--gold)}
html[dir=ltr] .badge{left:auto;right:-5px}

/* ===== dark theme ===== */
html[data-theme=dark]{color-scheme:dark}
html[data-theme=dark] body.cust{--bg:#0b1f29;--ink:#e9f0f2;--muted:#9fb3ba;--line:#23414d;--tl:#16343f;--tl2:#21414d;--sh:0 6px 18px rgba(0,0,0,.35);background:#0b1f29;color:#e9f0f2}
html[data-theme=dark] body{color:#e9f0f2}
html[data-theme=dark] .btn.line{background:#15323f;color:#e9f0f2}
html[data-theme=dark] .net{background:#15323f}
html[data-theme=dark] .card{background:#15323f}
html[data-theme=dark] .list{background:#15323f}
html[data-theme=dark] .plus{color:#8fd0dc}
html[data-theme=dark] .st-done,html[data-theme=dark] .st-approved{color:#8fd0dc}
html[data-theme=dark] .in{background:#15323f}
html[data-theme=dark] .seg{background:#2e4049}
html[data-theme=dark] .seg button.on{background:#15323f;color:#e9f0f2}
html[data-theme=dark] .chips button{background:#15323f}
html[data-theme=dark] .chips button.on{background:#2e4149;color:#8fd0dc}
html[data-theme=dark] .opt{background:#15323f}
html[data-theme=dark] .opt.on{background:#30424a}
html[data-theme=dark] .opt .price{color:#8fd0dc}
html[data-theme=dark] .sum{background:#31424a}
html[data-theme=dark] .nav{background:#15323f}
html[data-theme=dark] .nav a.on{color:#8fd0dc}
html[data-theme=dark] .back{color:#8fd0dc}
html[data-theme=dark] .sheet{background:#15323f}
html[data-theme=dark] .auth .card{color:#e9f0f2}
html[data-theme=dark] .code{background:#314148;color:#e9f0f2}
html[data-theme=dark] .filebtn{color:#8fd0dc;background:#31424b}
html[data-theme=dark] .methinfo{background:#314148}
html[data-theme=dark] .notif.unread{background:#31424b}
html[data-theme=dark] .stmt-h{background:#31424a}
html[data-theme=dark] .note{background:#15323f}
html[data-theme=dark] .tabs button{background:#15323f}
html[data-theme=dark] .ord{background:#15323f}
html[data-theme=dark] .ord .amt{color:#8fd0dc}
html[data-theme=dark] .stat{background:#15323f}
html[data-theme=dark] .stat i{color:#8fd0dc}
html[data-theme=dark] table.t{background:#15323f}
html[data-theme=dark] table.t th{background:#31424a}
html[data-theme=dark] .sw span{background:#2a3d46}
html[data-theme=dark] .sw span:before{background:#15323f}
html[data-theme=dark] img.rcpt{background:#31424a}
html[data-theme=dark] .bcard{background:#15323f;border:1.5px solid #23414d;color:#8ac9e5}
html[data-theme=dark] .bcard.on,html[data-theme=dark] .bcard:focus-visible{border-color:#23414d}
html[data-theme=dark] .bc-ic::after{border:2px solid #23414d}
html[data-theme=dark] .bc-t b{color:#8ac9e5}
html[data-theme=dark] .bc-t small{color:#a9bcc2}
html[data-theme=dark] .bc-p{background:#314148;border:1px solid #23414d}
html[data-theme=dark] .bc-p b{color:#8ac9e5}
html[data-theme=dark] .bc-specs{background:#314148}
html[data-theme=dark] .bs+.bs{border-right:1px solid #23414d}
html[data-theme=dark] .bs i{color:#8ecee1}
html[data-theme=dark] .bs b{color:#8ac9e5}
html[data-theme=dark] .bprev{background:#314148}
html[data-theme=dark] .st-resub{background:#2f414b;color:#98a5d7}
html[data-theme=dark] .kfil button{background:#15323f}
html[data-theme=dark] .kfil button i{background:#2f4149}
html[data-theme=dark] .fstats div{background:#15323f}
html[data-theme=dark] .kreason{background:#314148}
html[data-theme=dark] .docimg{background:#2f4149}
html[data-theme=dark] .st-wa{background:#2e4148;color:#8ce4b0}
html[data-theme=dark] .kycalert.wa{background:#2e4148;color:#8ce4b0}
html[data-theme=dark] .wcode.big{color:#e9f0f2;background:#30414a}
html[data-theme=dark] .st-unknown{background:#324042;color:#ffcd70}
html[data-theme=dark] .st-done{color:#8fd0dc}
html[data-theme=dark] .provline{background:#30414a}
html[data-theme=dark] details.provbox{background:#324249}
html[data-theme=dark] details.provbox summary{color:#e9f0f2}
html[data-theme=dark] h4.ph{color:#e9f0f2}
html[data-theme=dark] .pbal{color:#e9f0f2}
html[data-theme=dark] .item.recon.cat-a{background:#32414a}
html[data-theme=dark] .item.recon.cat-b{background:#324249}
html[data-theme=dark] .provinfo{color:#e9f0f2}
html[data-theme=dark] .svrow{background:#15323f;border-right:4px solid #23414d}
html[data-theme=dark] .svrow .svri{background:#2f414a;color:#8fd0dc}
html[data-theme=dark] .svrow .svok{color:#89e6bb}
html[data-theme=dark] .svrow .svno{color:#ffcd70}
html[data-theme=dark] .svkids{border-right:2px dashed #23414d}
html[data-theme=dark] .svof{background:#314249}
html[data-theme=dark] body.cust{color:#e9f0f2}
html[data-theme=dark] .cust .btn.wa{background:#15323f;color:#e9f0f2}
html[data-theme=dark] .cust .btn.line{color:#e9f0f2}
html[data-theme=dark] .avatar{background:#15323f;color:#e9f0f2}
html[data-theme=dark] .topup-pill{background:#15323f;color:#e9f0f2;border:2px solid #23414d}
html[data-theme=dark] .ann{background:#15323f}
html[data-theme=dark] .ann p{color:#e9f0f2}
html[data-theme=dark] .pendline{background:#324146;color:#ffcd70}
html[data-theme=dark] .sech h2{color:#e9f0f2;border-right:4px solid #23414d}
html[data-theme=dark] .lnk{color:#8fd0dc}
html[data-theme=dark] .favsec{background:#15323f}
html[data-theme=dark] .fav{color:#e9f0f2}
html[data-theme=dark] .fav .fc{color:#8fd0dc}
html[data-theme=dark] .fav.add .fc{background:#15323f;border:2px dashed #23414d}
html[data-theme=dark] .fav .ndot{border:2px solid #23414d}
html[data-theme=dark] .tile{background:#15323f;color:#e9f0f2}
html[data-theme=dark] .tile .tic{color:#8fd0dc}
html[data-theme=dark] .tile.soon{background:#314249;border:1.5px dashed #23414d}
html[data-theme=dark] .soonb{background:#324145;color:#ffcd70}
html[data-theme=dark] .cust .item .ic.in{color:#8fd0dc}
html[data-theme=dark] .cust .item .ic.out{background:#324048;color:#e5938a}
html[data-theme=dark] .cust .chip.st-pending{background:#324146;color:#ffcd70}
html[data-theme=dark] .pbar{border-bottom:3px solid #23414d}
html[data-theme=dark] .bnav{background:#15323f}
html[data-theme=dark] .fab{border:3px solid #23414d}
html[data-theme=dark] .drawer{background:#15323f}
html[data-theme=dark] .dhead{border-bottom:3px solid #23414d}
html[data-theme=dark] .ditem{color:#e9f0f2}
html[data-theme=dark] .ditem > svg:first-child{color:#8fd0dc}
html[data-theme=dark] .ditem.danger{color:#e5938a}
html[data-theme=dark] .ditem.danger > svg{color:#e5938a}
html[data-theme=dark] .profile{background:#15323f}
html[data-theme=dark] .pmeta b{color:#e9f0f2}
html[data-theme=dark] .pstats b{color:#e9f0f2}
html[data-theme=dark] .list.menu .item.row{background:#15323f}
html[data-theme=dark] .ric{color:#8fd0dc}
html[data-theme=dark] .list.menu .item.row.danger b{color:#e5938a}
html[data-theme=dark] .list.menu .item.row.danger .ric{background:#324048;color:#e5938a}
html[data-theme=dark] .fp{background:#15323f}
html[data-theme=dark] .fp .tic{color:#8fd0dc}
html[data-theme=dark] .cust .code{color:#e9f0f2}
html[data-theme=dark] .cust .filebtn{color:#8fd0dc;background:#314249}
html[data-theme=dark] .cust .notif.unread{background:#314249}
html[data-theme=dark] .bx-mode{background:#15323f}
html[data-theme=dark] .bx-nets a{background:#15323f;color:#e9f0f2}
html[data-theme=dark] .bx-nets a.on{border-color:#23414d;background:#324249}
html[data-theme=dark] .bx-rc{background:#15323f}
html[data-theme=dark] .bx-lines button{background:#15323f}
html[data-theme=dark] .acc{background:#15323f}
html[data-theme=dark] .acc.open .acc-b,html[data-theme=dark] .acc>.acc-b{background:#314249}
html[data-theme=dark] .wbadge{background:#15323f}
html[data-theme=dark] .wbtn.fill{background:#15323f;color:#8ac9e5}
html[data-theme=dark] .wbtn.out{border:2px solid #23414d}
html[data-theme=dark] .wfoot{border-top:2px solid #23414d}
html[data-theme=dark] .wmenu{background:#15323f}
html[data-theme=dark] .wmenu button{color:#8ac9e5}
html[data-theme=dark] .wmenu button:hover,html[data-theme=dark] .wmenu button:focus-visible{background:#314148}
html[data-theme=dark] .wmenu svg{color:#8ecee1}
html[data-theme=dark] .msgs-ic{background:#314148;color:#8ecee1;border:2px solid #23414d}
html[data-theme=dark] .wnum{color:#8ac9e5}
html[data-theme=dark] .wfinger.dark{background:#314148;color:#8ecee1;border-color:#23414d}
html[data-theme=dark] .privacy .ptitle{color:#8ac9e5}
html[data-theme=dark] .privacy h2{color:#8ecee1;border-right:3px solid #23414d}
html[data-theme=dark] .privacy p,html[data-theme=dark] .privacy li{color:#a2c1cd}
html[data-theme=dark] .kintro{background:#15323f}
html[data-theme=dark] .kintro b{color:#e9f0f2}
html[data-theme=dark] .ksec{color:#e9f0f2}
html[data-theme=dark] .kf{background:#15323f}
html[data-theme=dark] .kf:focus-within{border-color:#23414d}
html[data-theme=dark] .kf .kic{background:#314148;color:#8ecee1}
html[data-theme=dark] .kf small i{color:#e5938a}
html[data-theme=dark] .kin{color:#e9f0f2}
html[data-theme=dark] .dtabs{background:#15323f}
html[data-theme=dark] .dbox{background:#15323f}
html[data-theme=dark] .dbox.empty{border:2px dashed #23414d;color:#e9f0f2}
html[data-theme=dark] .dbox.empty .dic,html[data-theme=dark] .dbox.file .dic{background:#314148;color:#8ecee1}
html[data-theme=dark] .dbox b{color:#e9f0f2}
html[data-theme=dark] .dbox.has{border:2px solid #23414d}
html[data-theme=dark] .dbox.has img{background:#2f4049}
html[data-theme=dark] .dbtns button{background:#314148;color:#e9f0f2}
html[data-theme=dark] .dbtns [data-del]{color:#e5938a;background:#313f47}
html[data-theme=dark] .kagree{color:#e9f0f2}
html[data-theme=dark] .kstat{border-right:5px solid #23414d;background:#15323f}
html[data-theme=dark] .kstat b{color:#e9f0f2}
html[data-theme=dark] .ks-pending.kstat{background:#324148}
html[data-theme=dark] .ks-rejected.kstat{background:#324049}
html[data-theme=dark] .ks-resubmit.kstat{background:#30414b}
html[data-theme=dark] .kycban{background:#15323f;color:#e9f0f2}
html[data-theme=dark] .kycban .kbic{background:#324146}
html[data-theme=dark] .kycban.ks-rejected .kbic{background:#313f47;color:#e5938a}
html[data-theme=dark] .kycban.ks-resubmit .kbic{background:#2f414b;color:#98a5d7}
html[data-theme=dark] .kchip{background:#324146}
html[data-theme=dark] .kchip.ks-verified{background:#2e4049;color:#8ecee1}
html[data-theme=dark] .kchip.ks-rejected{background:#313f47;color:#e5938a}
html[data-theme=dark] .kchip.ks-resubmit{background:#2f414b;color:#98a5d7}
html[data-theme=dark] .wl-logo{background:#15323f}
html[data-theme=dark] .wl-card{background:#15323f;color:#8ac9e5}
html[data-theme=dark] .wl-ic{background:#2e4148}
html[data-theme=dark] .wl-card h2{color:#8ac9e5}
html[data-theme=dark] .wl-code{background:#314148;border:2px dashed #23414d;color:#8ac9e5}
html[data-theme=dark] .wl-steps{color:#a9bcc2}
html[data-theme=dark] .cx-op{background:#15323f}
html[data-theme=dark] .cx-chev{border:2px solid #23414d}
html[data-theme=dark] .cx-nlist button{background:#15323f}
html[data-theme=dark] .cx-nlist button b{color:#e9f0f2}
html[data-theme=dark] .cx-nlist button.on{border-color:#23414d;background:#324249}
html[data-theme=dark] .qc{background:linear-gradient(180deg,#15323f 0%,#32424a 100%)}
html[data-theme=dark] .qc-num{color:#8fd0dc}
html[data-theme=dark] .qc-r{background:#15323f;color:#8fd0dc}
html[data-theme=dark] .qc-o{background:#15323f}
html[data-theme=dark] .qc-grid.sk>div,html[data-theme=dark] .qc-skl{background:linear-gradient(90deg,#304047 25%,#314149 50%,#304047 75%)}
html[data-theme=dark] .srow{background:#15323f;color:#e9f0f2}
html[data-theme=dark] .srow .sic{color:#8fd0dc}
html[data-theme=dark] .manual{background:#324248;border:1.5px solid #23414d;color:#e9c387}
html[data-theme=dark] .manual b{color:#eec481}
/* v7.9: the item picker rows keep the bundle-row look in dark mode too */
html[data-theme=dark] .svitem{box-shadow:0 0 0 1px rgba(217,176,122,.10),var(--sh)}
html[data-theme=dark] .svitem.on{box-shadow:0 0 0 2.5px #d9b07a,0 6px 18px rgba(0,0,0,.35)}
html[data-theme=dark] .svfixed b{color:#8fd0dc}
html[data-theme=dark] .svform .req{color:#e5938a}
html[data-theme=dark] #svsum .neg{color:#e5938a}
html[data-theme=dark] .cust .item .ic.svc{color:#8fd0dc}
html[data-theme=dark] .svcode{background:#30424a;border:1.5px dashed #23414d}
html[data-theme=dark] .svcode .cpy{color:#8fd0dc}
/* dark — hand refinements (contrast checked: body text #e9f0f2 on #15323f ≈ 11:1, muted #9fb3ba on #15323f ≈ 5.6:1, gold #d9b07a on #0b1f29 ≈ 8.6:1) */
html[data-theme=dark] .cust .btn.gold,html[data-theme=dark] .btn.gold{background:#d9b07a;color:#0d2c3a;box-shadow:none}
html[data-theme=dark] .btn.line{border-color:#2d5261;color:#e9f0f2}
html[data-theme=dark] .cust .btn.wa{background:#15323f;color:#e9f0f2}
html[data-theme=dark] .in,html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#0f2833;color:#e9f0f2;border-color:#2d5261}
html[data-theme=dark] .in::placeholder{color:#6f8a93}
html[data-theme=dark] .hd{background:linear-gradient(160deg,#123b4d 0%,#0d2c3a 45%,#071820 100%)}
html[data-theme=dark] .pbar{background:#0d2c3a}
html[data-theme=dark] .bnav{background:#0f2833;border-color:#23414d}
html[data-theme=dark] .bnav a{color:#9fb3ba}html[data-theme=dark] .bnav a.on{color:#d9b07a}
html[data-theme=dark] .sheet,html[data-theme=dark] .drawer{background:#12303c;color:#e9f0f2}
html[data-theme=dark] .sum{background:#0f2833}
html[data-theme=dark] .chip{filter:saturate(.9)}
html[data-theme=dark] .rptcard,html[data-theme=dark] .notif2,html[data-theme=dark] .oact,html[data-theme=dark] .stats2>div,html[data-theme=dark] .t7,html[data-theme=dark] .chatbar,html[data-theme=dark] .cpreview,html[data-theme=dark] .cmsg.them{background:#15323f;color:#e9f0f2}
html[data-theme=dark] .notif2.unread{background:#1b3a46}
html[data-theme=dark] .oact{color:#e9f0f2;border-color:#2d5261}
html[data-theme=dark] .cmsg.me{background:#d9b07a;color:#0d2c3a}
html[data-theme=dark] .cpntog{background:#1a3540;color:#e9f0f2}
html[data-theme=dark] .fnav{box-shadow:0 0 0 3px #15323f}
html[data-theme=dark] .fnchip{color:#e9f0f2}
html[data-theme=dark] .rptic,html[data-theme=dark] .pushic,html[data-theme=dark] .invic{background:#d9b07a;color:#0d2c3a}
html[data-theme=dark] .nk-ok,html[data-theme=dark] .nk-teal{background:#1d4552;color:#8fd0dc}html[data-theme=dark] .nk-bad{background:#4a2420;color:#ff9d8f}html[data-theme=dark] .nk-gold{background:#43361f;color:#e8c48f}
html[data-theme=dark] .hint.okc,html[data-theme=dark] .end .disc,html[data-theme=dark] .stats2 .pf b,html[data-theme=dark] .t7 .pf{color:#7fd6a4}
html[data-theme=dark] .t7 td{border-color:#23414d}
html[data-theme=dark] .empty{color:#9fb3ba}
html[data-theme=dark] .fnload{background:linear-gradient(90deg,#16343f,#1d4552,#16343f);background-size:200% 100%}
