/* Fosible Web — light theme + shared extras. Dark is the default design. */
html[data-theme=light]{--bg:#ffffff;--card:#f3f3f4;--card2:#e7e7e9;--line:#e4e4e6;--ic:#e8e8ea;--tx:#111;--mut:#6b6b70;--mut2:#55555a;--acc:#b9714a;--acc2:#a9643f;color-scheme:light}
@media (prefers-color-scheme:light){html[data-theme=system]{--bg:#ffffff;--card:#f3f3f4;--card2:#e7e7e9;--line:#e4e4e6;--ic:#e8e8ea;--tx:#111;--mut:#6b6b70;--mut2:#55555a;--acc:#b9714a;--acc2:#a9643f;color-scheme:light}}
html[data-theme=light] .ibtn,html[data-theme=light] .t2,html[data-theme=light] .unread .t2,html[data-theme=light] .today,html[data-theme=light] .btn.sec,html[data-theme=light] .sec,html[data-theme=light] .pill,html[data-theme=light] .abtn.g,html[data-theme=light] .g,html[data-theme=light] .day.today,html[data-theme=light] .fld .at input,html[data-theme=light] .langs button.on,html[data-theme=light] .tabs2 button.on{color:var(--tx)}
html[data-theme=light] .btn,html[data-theme=light] .done,html[data-theme=light] .abtn,html[data-theme=light] .bsh-btn,html[data-theme=light] .seg button.on,html[data-theme=light] .seg2 button.on,html[data-theme=light] .day.ok i,html[data-theme=light] .day.today.ok i,html[data-theme=light] .wz-av .cam,html[data-theme=light] .aprev .cam{background:#111;color:#fff}
html[data-theme=light] .nav a.on,html[data-theme=light] .nav-bub{background:rgba(0,0,0,.08)}
html[data-theme=light] .btn.sec,html[data-theme=light] .pill,html[data-theme=light] .sec,html[data-theme=light] .seg,html[data-theme=light] .day i,html[data-theme=light] .wz-prog i,html[data-theme=light] .toast{background:var(--card2)}
html[data-theme=light] .toast{color:var(--tx);box-shadow:0 6px 20px rgba(0,0,0,.18)}
html[data-theme=light] .ph .ibtn,html[data-theme=light] .pa button,html[data-theme=light] .cap,html[data-theme=light] .nav a,html[data-theme=light] .side a.it,html[data-theme=light] .sub-h,html[data-theme=light] .mrow .streak,html[data-theme=light] .mrow .del,html[data-theme=light] .sh-h .ibtn,html[data-theme=light] .cm .lk,html[data-theme=light] .seg button,html[data-theme=light] .fld .at,html[data-theme=light] .aprev .lnk,html[data-theme=light] .aprev .lnk button,html[data-theme=light] .ncard .chk{color:#333}
html[data-theme=light] .grp,html[data-theme=light] .search .ic,html[data-theme=light] .search input::placeholder,html[data-theme=light] .psec span,html[data-theme=light] .day,html[data-theme=light] .srch-in .ic,html[data-theme=light] .inp .ic,html[data-theme=light] .inp input::placeholder,html[data-theme=light] .inp .eye,html[data-theme=light] .fld label,html[data-theme=light] .tabs2 button,html[data-theme=light] .langs button,html[data-theme=light] .seg2 button{color:#6f6f74}
html[data-theme=light] .srow .chev,html[data-theme=light] .private .ic,html[data-theme=light] .fld .cnt,html[data-theme=light] .or{color:#9a9aa0}
html[data-theme=light] .back,html[data-theme=light] .sh-h,html[data-theme=light] .sh-f,html[data-theme=light] .fld,html[data-theme=light] .lvl,html[data-theme=light] .sbtn,html[data-theme=light] .abtn.g,html[data-theme=light] .g,html[data-theme=light] .chat-h,html[data-theme=light] .main{border-color:var(--line)}
html[data-theme=light] .sh-h{border-bottom-color:var(--line)}
html[data-theme=light] .sh-f{border-top-color:var(--line)}
html[data-theme=light] .main{border-left-color:var(--line);border-right-color:var(--line)}
html[data-theme=light] .ring{border-color:#d4d4d8}
html[data-theme=light] .av,html[data-theme=light] .av-ph,html[data-theme=light] .pav,html[data-theme=light] .bprev,html[data-theme=light] .fan a,html[data-theme=light] .grid a,html[data-theme=light] .flag{background:#e3e3e6}
html[data-theme=light] .av-ph{color:#555}
html[data-theme=light] .pav{border-color:#d4d4d8}
html[data-theme=light] .sh-f input,html[data-theme=light] .sbtn:active,html[data-theme=light] .side a.it:hover{background:var(--card2)}
html[data-theme=light] .side a.it.on{background:var(--card)}
html[data-theme=light] .sh-f input::placeholder{color:#8a8a8f}
html[data-theme=light] .nav{background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(244,244,246,.92));border-color:rgba(0,0,0,.08);box-shadow:0 10px 30px rgba(0,0,0,.14)}
html[data-theme=light] .nav .me{border-color:#8a8a8f}
html[data-theme=light] .dot{border-color:#fff}
html[data-theme=light] .handle{background:#c9c9ce}
html[data-theme=light] .ov{background:rgba(0,0,0,.35)}
html[data-theme=light] .ov.ov-blur{background:rgba(0,0,0,.28)}
html[data-theme=light] .menu{background:rgba(0,0,0,.35)}
html[data-theme=light] .bar,html[data-theme=light] .spin{border-color:#d9d9dd;background-color:#d9d9dd}
html[data-theme=light] .spin{background:transparent}
html[data-theme=light] .skel{background:linear-gradient(90deg,#ececee,#f6f6f8,#ececee)}
html[data-theme=light] .obtn{border-color:#c4c4c9}
html[data-theme=light] .tabs2 button.on{border-color:#b9b9bf}
html[data-theme=light] .fan a{box-shadow:0 10px 24px rgba(0,0,0,.18)}
html[data-theme=light] .chip,html[data-theme=light] .cbtn{background:rgba(255,255,255,.7);color:#111}
html[data-theme=light] .pedit{background:rgba(255,255,255,.7);color:#222;border-color:#c4c4c9}
html[data-theme=light] .banner{background-color:#e9e9ec}
html[data-theme=light] .banner:after{background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.85) 100%)}
html[data-theme=light] .media,html[data-theme=light] .reels,html[data-theme=light] .reel,html[data-theme=light] .sv,html[data-theme=light] .rtabs,html[data-theme=light] .rail,html[data-theme=light] .rpause,html[data-theme=light] .disc{--tx:#fff;--card:#1c1c1c;--card2:#2a2a2a;color:#fff}
html[data-theme=light] .reels .ibtn,html[data-theme=light] .sv .ibtn,html[data-theme=light] .reel .ibtn,html[data-theme=light] .media .ibtn,html[data-theme=light] .media .mute,html[data-theme=light] .media .multi,html[data-theme=light] .reels .on,html[data-theme=light] .sv .on,html[data-theme=light] .sv .t2,html[data-theme=light] .reels .t2{color:#fff}
html[data-theme=light] .sv .btn,html[data-theme=light] .sv .done,html[data-theme=light] .reels .btn{background:#fff;color:#111}
html[data-theme=light] .sv-f input,html[data-theme=light] .sv .sh-f input{background:rgba(255,255,255,.14);color:#fff}
html[data-theme=light] .srow.danger .lb,html[data-theme=light] .menu .mb button.dg{color:#d6333a}
html[data-theme=light] .err{color:#d6333a}
html[data-theme=light] .ok,html[data-theme=light] .uchk.good{color:#1f9a52}
html[data-theme=light] .uchk.bad{color:#d6333a}
html[data-theme=light] .fx-card{background:var(--card)!important;border-color:var(--line)!important}
html[data-theme=light] .fx-in,html[data-theme=light] .fx-sel{background:#fff!important;color:#111!important;border-color:#d4d4d8!important}
html[data-theme=light] .fx-code{background:#fff!important;border-color:#c4c4c9!important;color:#111}
html[data-theme=light] .fx-m{color:#55555a}
html[data-theme=light] .mx-dd{background:#fff!important;border-color:#d4d4d8!important;box-shadow:0 10px 30px rgba(0,0,0,.18)!important}
html[data-theme=light] .mx-dd .mx-i{color:#111!important}
html[data-theme=light] .mx-dd .mx-i.on,html[data-theme=light] .mx-dd .mx-i:hover{background:#f0f0f2!important}
html[data-theme=light] .mx-dd .mx-h{color:#6f6f74!important}
@media (prefers-color-scheme:light){
html[data-theme=system] .ibtn,html[data-theme=system] .t2,html[data-theme=system] .unread .t2,html[data-theme=system] .today,html[data-theme=system] .btn.sec,html[data-theme=system] .sec,html[data-theme=system] .pill,html[data-theme=system] .abtn.g,html[data-theme=system] .g,html[data-theme=system] .day.today,html[data-theme=system] .fld .at input,html[data-theme=system] .langs button.on,html[data-theme=system] .tabs2 button.on{color:var(--tx)}
html[data-theme=system] .btn,html[data-theme=system] .done,html[data-theme=system] .abtn,html[data-theme=system] .bsh-btn,html[data-theme=system] .seg button.on,html[data-theme=system] .seg2 button.on,html[data-theme=system] .day.ok i,html[data-theme=system] .day.today.ok i,html[data-theme=system] .wz-av .cam,html[data-theme=system] .aprev .cam{background:#111;color:#fff}
html[data-theme=system] .nav a.on,html[data-theme=system] .nav-bub{background:rgba(0,0,0,.08)}
html[data-theme=system] .btn.sec,html[data-theme=system] .pill,html[data-theme=system] .sec,html[data-theme=system] .seg,html[data-theme=system] .day i,html[data-theme=system] .wz-prog i,html[data-theme=system] .toast{background:var(--card2)}
html[data-theme=system] .toast{color:var(--tx);box-shadow:0 6px 20px rgba(0,0,0,.18)}
html[data-theme=system] .ph .ibtn,html[data-theme=system] .pa button,html[data-theme=system] .cap,html[data-theme=system] .nav a,html[data-theme=system] .side a.it,html[data-theme=system] .sub-h,html[data-theme=system] .mrow .streak,html[data-theme=system] .mrow .del,html[data-theme=system] .sh-h .ibtn,html[data-theme=system] .cm .lk,html[data-theme=system] .seg button,html[data-theme=system] .fld .at,html[data-theme=system] .aprev .lnk,html[data-theme=system] .aprev .lnk button,html[data-theme=system] .ncard .chk{color:#333}
html[data-theme=system] .grp,html[data-theme=system] .search .ic,html[data-theme=system] .search input::placeholder,html[data-theme=system] .psec span,html[data-theme=system] .day,html[data-theme=system] .srch-in .ic,html[data-theme=system] .inp .ic,html[data-theme=system] .inp input::placeholder,html[data-theme=system] .inp .eye,html[data-theme=system] .fld label,html[data-theme=system] .tabs2 button,html[data-theme=system] .langs button,html[data-theme=system] .seg2 button{color:#6f6f74}
html[data-theme=system] .srow .chev,html[data-theme=system] .private .ic,html[data-theme=system] .fld .cnt,html[data-theme=system] .or{color:#9a9aa0}
html[data-theme=system] .back,html[data-theme=system] .sh-h,html[data-theme=system] .sh-f,html[data-theme=system] .fld,html[data-theme=system] .lvl,html[data-theme=system] .sbtn,html[data-theme=system] .abtn.g,html[data-theme=system] .g,html[data-theme=system] .chat-h,html[data-theme=system] .main{border-color:var(--line)}
html[data-theme=system] .sh-h{border-bottom-color:var(--line)}
html[data-theme=system] .sh-f{border-top-color:var(--line)}
html[data-theme=system] .main{border-left-color:var(--line);border-right-color:var(--line)}
html[data-theme=system] .ring{border-color:#d4d4d8}
html[data-theme=system] .av,html[data-theme=system] .av-ph,html[data-theme=system] .pav,html[data-theme=system] .bprev,html[data-theme=system] .fan a,html[data-theme=system] .grid a,html[data-theme=system] .flag{background:#e3e3e6}
html[data-theme=system] .av-ph{color:#555}
html[data-theme=system] .pav{border-color:#d4d4d8}
html[data-theme=system] .sh-f input,html[data-theme=system] .sbtn:active,html[data-theme=system] .side a.it:hover{background:var(--card2)}
html[data-theme=system] .side a.it.on{background:var(--card)}
html[data-theme=system] .sh-f input::placeholder{color:#8a8a8f}
html[data-theme=system] .nav{background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(244,244,246,.92));border-color:rgba(0,0,0,.08);box-shadow:0 10px 30px rgba(0,0,0,.14)}
html[data-theme=system] .nav .me{border-color:#8a8a8f}
html[data-theme=system] .dot{border-color:#fff}
html[data-theme=system] .handle{background:#c9c9ce}
html[data-theme=system] .ov{background:rgba(0,0,0,.35)}
html[data-theme=system] .ov.ov-blur{background:rgba(0,0,0,.28)}
html[data-theme=system] .menu{background:rgba(0,0,0,.35)}
html[data-theme=system] .bar,html[data-theme=system] .spin{border-color:#d9d9dd;background-color:#d9d9dd}
html[data-theme=system] .spin{background:transparent}
html[data-theme=system] .skel{background:linear-gradient(90deg,#ececee,#f6f6f8,#ececee)}
html[data-theme=system] .obtn{border-color:#c4c4c9}
html[data-theme=system] .tabs2 button.on{border-color:#b9b9bf}
html[data-theme=system] .fan a{box-shadow:0 10px 24px rgba(0,0,0,.18)}
html[data-theme=system] .chip,html[data-theme=system] .cbtn{background:rgba(255,255,255,.7);color:#111}
html[data-theme=system] .pedit{background:rgba(255,255,255,.7);color:#222;border-color:#c4c4c9}
html[data-theme=system] .banner{background-color:#e9e9ec}
html[data-theme=system] .banner:after{background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.85) 100%)}
html[data-theme=system] .media,html[data-theme=system] .reels,html[data-theme=system] .reel,html[data-theme=system] .sv,html[data-theme=system] .rtabs,html[data-theme=system] .rail,html[data-theme=system] .rpause,html[data-theme=system] .disc{--tx:#fff;--card:#1c1c1c;--card2:#2a2a2a;color:#fff}
html[data-theme=system] .reels .ibtn,html[data-theme=system] .sv .ibtn,html[data-theme=system] .reel .ibtn,html[data-theme=system] .media .ibtn,html[data-theme=system] .media .mute,html[data-theme=system] .media .multi,html[data-theme=system] .reels .on,html[data-theme=system] .sv .on,html[data-theme=system] .sv .t2,html[data-theme=system] .reels .t2{color:#fff}
html[data-theme=system] .sv .btn,html[data-theme=system] .sv .done,html[data-theme=system] .reels .btn{background:#fff;color:#111}
html[data-theme=system] .sv-f input,html[data-theme=system] .sv .sh-f input{background:rgba(255,255,255,.14);color:#fff}
html[data-theme=system] .srow.danger .lb,html[data-theme=system] .menu .mb button.dg{color:#d6333a}
html[data-theme=system] .err{color:#d6333a}
html[data-theme=system] .ok,html[data-theme=system] .uchk.good{color:#1f9a52}
html[data-theme=system] .uchk.bad{color:#d6333a}
html[data-theme=system] .fx-card{background:var(--card)!important;border-color:var(--line)!important}
html[data-theme=system] .fx-in,html[data-theme=system] .fx-sel{background:#fff!important;color:#111!important;border-color:#d4d4d8!important}
html[data-theme=system] .fx-code{background:#fff!important;border-color:#c4c4c9!important;color:#111}
html[data-theme=system] .fx-m{color:#55555a}
html[data-theme=system] .mx-dd{background:#fff!important;border-color:#d4d4d8!important;box-shadow:0 10px 30px rgba(0,0,0,.18)!important}
html[data-theme=system] .mx-dd .mx-i{color:#111!important}
html[data-theme=system] .mx-dd .mx-i.on,html[data-theme=system] .mx-dd .mx-i:hover{background:#f0f0f2!important}
html[data-theme=system] .mx-dd .mx-h{color:#6f6f74!important}
}

/* story viewer: close-friends badge */
.sv-cfb{position:absolute;top:calc(64px + env(safe-area-inset-top));left:16px;z-index:5;background:#3fbf6f;color:#fff;font-weight:800;font-size:12px;padding:5px 10px;border-radius:12px;pointer-events:none}
