/* "Room" Liquid Glass (loaded last): a soft photo-like room wallpaper, smoky see-through glass cards,
   white text on glass in BOTH modes. Light mode = daytime room + lighter grey glass; dark mode = evening room + dark glass.
   Remove this one file to go back to the iOS system look. */

html[data-theme],html{
  color-scheme:dark;
  --room:url(/lib/wall/room-light.jpg);
  --gc:rgba(92,86,82,.46);           /* card glass */
  --gc2:rgba(255,255,255,.12);       /* controls inside cards */
  --gc3:rgba(255,255,255,.20);       /* pressed / selected */
  --gedge:rgba(255,255,255,.26);     /* thin border */
  --ghi:rgba(255,255,255,.30);       /* top highlight */
  --gsh:0 10px 30px -12px rgba(30,24,20,.35);
  --gblur:blur(26px) saturate(150%);
  --ios-label:#ffffff;--ios-label2:rgba(255,255,255,.74);--ios-label3:rgba(255,255,255,.45);--ios-sep:rgba(255,255,255,.18);
  --ios-card:var(--gc);--ios-card2:var(--gc2);--ios-fill:var(--gc2);--ios-bg:#8e857c;
  --ink:#fff;--ink2:#f2f2f2;--mute:rgba(255,255,255,.74);--lq-ink:#fff;--lq-mute:rgba(255,255,255,.74);
  --line:rgba(255,255,255,.18);--line2:rgba(255,255,255,.2);--panel:rgba(255,255,255,.10);--card:var(--gc);--bg:#8e857c;
  --ios-blue:#0A84FF;--ios-green:#30D158;--ios-red:#FF453A;--ios-orange:#FF7A1A;--ios-purple:#BF5AF2;--ios-indigo:#7D7AFF;
  --g:#0A84FF;--ok:#30D158;--a:#FFB020;--amber:#FFB020;--bad:#FF5A4E;--blue:#9FA8FF;
  --lq-fill:rgba(92,86,82,.5);--lq-fill2:rgba(92,86,82,.42);--lq-rim:linear-gradient(rgba(255,255,255,.26),rgba(255,255,255,.26));
}
html[data-theme=dark]{
  --room:url(/lib/wall/room-dark.jpg);
  --gc:rgba(24,22,21,.52);--gc2:rgba(255,255,255,.07);--gc3:rgba(255,255,255,.14);
  --gedge:rgba(255,255,255,.12);--ghi:rgba(255,255,255,.14);--gsh:0 12px 34px -12px rgba(0,0,0,.65);
  --ios-bg:#1b1715;--bg:#1b1715;
  --lq-fill:rgba(24,22,21,.58);--lq-fill2:rgba(24,22,21,.5);--lq-rim:linear-gradient(rgba(255,255,255,.12),rgba(255,255,255,.12));
}

/* ---------- wallpaper ---------- */
html,html[data-theme],html:has(#deck.on),html:has(#stu.on),html[data-theme]:has(#deck.on),html[data-theme]:has(#stu.on){background:var(--bg)!important}
body::before{background:var(--bg) var(--room) center/cover no-repeat!important}
#ov.m26{background:var(--bg) var(--room) center/cover fixed no-repeat!important}
body{color:#fff!important}

/* ---------- smoky glass cards ---------- */
.bc,.uc,.resume,.lab,.stat,.metrics>div,.ddb,.mbox,.cmd,.box,.card,.modal>.box,.side .sec,
#stu .qbox,#stu .acard,#stu .refp,#stu .ix,#stu .uover,#stu .lbanner,#deck .mon,
#ov.m26 .mtile,#ov.m26 .mtable,#ov.m26 details.mset,#ov.m26 .mcard,#ov.m26 .mkey,.srep .src,
#deck .vc,#deck .grid>div,#deck .rv>div,#deck .ply,#deck .ix,#deck .tbig,#deck .pred,#deck .qbox,#deck .refp,#deck section>.wrap,#deck .nbp,#deck .nbv,
.navin,body>.top:not(.modal),#deck nav,#ov.m26 .mbar26,.ios-tabs,.ios-search,#stu .shead.s26::before{
  background:var(--gc)!important;color:#fff!important;
  -webkit-backdrop-filter:var(--gblur)!important;backdrop-filter:var(--gblur)!important;
  border:1px solid var(--gedge)!important;
  box-shadow:inset 0 1px 0 var(--ghi),var(--gsh)!important}
.srep .srp{background:var(--gc)!important;-webkit-backdrop-filter:blur(40px) saturate(150%)!important;backdrop-filter:blur(40px) saturate(150%)!important;border-left:1px solid var(--gedge)!important}
.srep{background:rgba(0,0,0,.18)!important}
.modal{background:rgba(0,0,0,.25)!important}
.mbox,.cmd,.modal>.box{background:var(--gc)!important;-webkit-backdrop-filter:blur(40px) saturate(150%)!important;backdrop-filter:blur(40px) saturate(150%)!important}
#deck .nbp{box-shadow:inset 5px 0 0 var(--ios-blue),var(--gsh)!important}
#deck .nbv{border:1.5px dashed rgba(255,255,255,.35)!important}
#deck .pred{border:1.5px solid rgba(255,176,32,.7)!important}
#stu .lbanner:not(.wait){box-shadow:inset 4px 0 0 var(--ios-red),var(--gsh)!important}
#stu .lbanner.wait{box-shadow:inset 4px 0 0 var(--ios-blue),var(--gsh)!important}
.hero{border:1px solid var(--gedge)!important}

/* ---------- controls inside cards: lighter glass tiles ---------- */
.ulist .ul,.frows>*,#stu .opt,#stu .chip,#stu .bk,#deck .opt,#deck .chip,.chip,.tagchip,.badge,#stu .pill,#stu .ach,#stu .aid,#stu .qtime,#ov.m26 .mlive,.srep .srs span,#stu .uo-stats span,
.btn-o,.btn-ghost,.btn.alt,#stu .btn.alt,#deck .btn.alt,#ov.m26 .btn.alt,.btn-glass,.ib,.srep .srx,.search,#ov.m26 .msearch,#ov.m26 .msel,#stu .refp .vc,
.filters,.tabs,#ov.m26 .mseg,.theme-switch,#stu .theme-switch,#deck nav .theme-switch,#stu>.row .ios-back,#ov.m26 .mbar26 .ios-back{
  background:var(--gc2)!important;color:#fff!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html #stu .shead .pill,html #stu .qtime,html #stu>.row .ios-back{background:var(--gc2)!important;box-shadow:none!important}
.ulist .ul .tx b,.ulist .ul .tx small{color:#fff!important}.ulist .ul .tx small{opacity:.72}
.filters button,.tabs button,#ov.m26 .mseg button,.theme-switch button{color:rgba(255,255,255,.8)!important;background:transparent!important}
.filters button.on,.tabs button.on,#ov.m26 .mseg button.on,.theme-switch button.on,
html[data-theme] .filters button.on,html[data-theme] .tabs button.on,html[data-theme] #ov.m26 .mseg button.on,html[data-theme] .theme-switch button.on{
  background:var(--gc3)!important;color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.2)!important}
.ios-back,a.link,.link,.nl.accent{color:#fff!important}
.ios-back svg{color:#fff}
.btn:active,.chip:active,.opt:active,.ib:active{background:var(--gc3)!important}

/* answers */
#stu .opt.ok,#deck .opt.ok,.chip.ok{background:rgba(48,209,88,.28)!important;box-shadow:inset 0 0 0 2px #30D158!important}
#stu .opt.no,#deck .opt.no{background:rgba(255,69,58,.24)!important;box-shadow:inset 0 0 0 2px #FF453A!important}
#stu .opt.sel,#deck .opt.sel,#stu .chip.sel{background:rgba(10,132,255,.3)!important;box-shadow:inset 0 0 0 2px #0A84FF!important}
.fb.good,.c1{color:#5BE37D!important}.fb.bad,.c0{color:#FF7A70!important}

/* main buttons stay bright and solid like the blue / orange buttons in the picture */
.btn-p,.btn:not(.alt):not(.btn-o):not(.btn-ghost):not(.btn-ink):not(.btn-glass),#deck .btn:not(.alt),#stu .btn:not(.alt),#ov.m26 .btn:not(.alt){
  background:#0A84FF!important;color:#fff!important;border:0!important;box-shadow:0 6px 18px -8px rgba(10,132,255,.8)!important}
html body .hero .btn.btn-p:not(.alt):not(.btn-o):not(.btn-ghost):not(.btn-ink):not(.btn-glass){background:#fff!important;color:#0062CC!important}
.btn-ink{background:#fff!important;color:#111!important}

/* fields */
input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea{background:rgba(0,0,0,.22)!important;color:#fff!important;border:1px solid rgba(255,255,255,.14)!important}
input::placeholder,textarea::placeholder{color:rgba(255,255,255,.55)}
select option{color:#000}
#ov.m26 .msearch input{background:none!important;border:0!important}

/* text: white everywhere, softer white for small print; no halos needed on glass */
.ios26 .sm,.ios26 small,.ios26 .sub,.ios26 .lead,.ios26 p.d,.um,.eyebrow,.tag,#stu .shead .tag,.mtitle small,.srh small,.cnt,.lbl{color:rgba(255,255,255,.74)!important}
:is(h1,h2,h3,h4,b,strong,label,td,th,li,p){color:inherit}
:is(h1,h2,h3,.eyebrow,.sub,.crumb,.chd,#stu>.row>b,#deck section>h2,#deck section>h1,#deck section>.tag,#deck section>p,#deck section>ul,#deck section>ol,#deck .do,section.sec>.shead *,.chead>*){text-shadow:0 1px 12px rgba(0,0,0,.35)!important}
:is(.bc,.uc,.box,.card,.mbox,.lab,#stu .qbox,.srep .src,#deck .vc) :is(h1,h2,h3,p,small,b){text-shadow:none!important}
#deck h1{color:#fff!important}
.tag,#deck .tag{color:#9FCBFF!important}
#deck .do b,#deck .tag{text-shadow:none}

/* score colors stay readable on glass */
#ov.m26 .cbx.g{background:rgba(48,209,88,.24)!important;color:#7CF09A!important}
#ov.m26 .cbx.m{background:rgba(255,176,32,.24)!important;color:#FFD27A!important}
#ov.m26 .cbx.b{background:rgba(255,69,58,.24)!important;color:#FF9A92!important}
#ov.m26 .cbx.w{border-color:rgba(255,255,255,.4)!important;color:rgba(255,255,255,.8)!important}
#ov.m26 td.tot.g,#ov.m26 tfoot td.g{color:#7CF09A!important}#ov.m26 td.tot.m,#ov.m26 tfoot td.m{color:#FFD27A!important}#ov.m26 td.tot.b,#ov.m26 tfoot td.b{color:#FF9A92!important}
#ov.m26 thead th,#ov.m26 .sticky.first,#ov.m26 tfoot td,html[data-theme] #ov.m26 thead th,html[data-theme] #ov.m26 .sticky.first,html[data-theme] #ov.m26 tfoot td{background:rgba(60,56,52,.92)!important}
html[data-theme=dark] #ov.m26 thead th,html[data-theme=dark] #ov.m26 .sticky.first,html[data-theme=dark] #ov.m26 tfoot td{background:rgba(30,28,27,.95)!important}
#ov.m26 th,#ov.m26 td{border-color:rgba(255,255,255,.1)!important}
.srep .rch .ax{fill:rgba(255,255,255,.7)!important}.srep .rch .ax.b,.srep .rch .bv,.srep .radar .rl,.srep .pie .pl{fill:#fff!important}
.srep .rch .gl,html[data-theme] .srep .rch .gl{stroke:rgba(255,255,255,.22)!important}
.srep .pie .pbg{stroke:rgba(255,255,255,.12)!important}.srep .pie .pp{fill:rgba(255,255,255,.75)!important}

/* tab bar */
.ios-tabs a{color:rgba(255,255,255,.85)!important}.ios-tabs a.on{color:#fff!important}
.ios-lens{background:var(--gc3)!important}
.ios-search{color:#fff!important}
.ios-edge{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}

/* the home hero keeps its color but becomes a glass card too */
.hero{background:linear-gradient(160deg,rgba(10,132,255,.72),rgba(94,92,230,.72))!important;-webkit-backdrop-filter:var(--gblur);backdrop-filter:var(--gblur)}
.lab{color:#fff!important}
.hero .lab p,.hero .lab .out,.hero .lab .out p{color:#fff!important}
.hero .lab .out{background:var(--gc2)!important}
/* text right on the wallpaper: soft dark shadow in both modes (no white halos) */
html[data-theme] :is(h1,h2,h3,.eyebrow,.sub,.crumb,.chd,#stu>.row>b,#deck section>h2,#deck section>h1,#deck section>.tag,#deck section>p,#deck section>ul,#deck section>ol,#deck .do,section.sec>.shead *,.chead>*,.ios-back){text-shadow:0 1px 2px rgba(0,0,0,.35),0 0 20px rgba(0,0,0,.28)!important}
html[data-theme] :is(.bc,.uc,.box,.card,.mbox,.lab,#stu .qbox,.srep .src,#deck .vc,.chead,.hero,.navin,body>.top) :is(h1,h2,h3,p,small,b,span,div){text-shadow:none!important}
.tag,#deck .tag,#deck section>.tag{color:rgba(255,255,255,.85)!important}
#deck .do{color:#fff!important}
#deck .do b,#deck .do strong{color:#FFC94D!important}

/* ---------- shimmer background (lib/shimmer.js draws the moving rays and specks; this is the still fallback) ---------- */
html[data-theme],html{--shim:radial-gradient(120% 90% at 50% -10%,#ecc892 0%,#b08a62 45%,#5f4a36 100%);--bg:#6e5640}
html[data-theme=dark]{--shim:radial-gradient(120% 90% at 50% -10%,#7a5430 0%,#3a2a1e 45%,#100c09 100%);--bg:#1c1510}
body::before{background:var(--shim)!important}
#ov.m26{background:var(--shim) fixed!important}
html,html[data-theme],html:has(#deck.on),html:has(#stu.on),html[data-theme]:has(#deck.on),html[data-theme]:has(#stu.on){background:var(--bg)!important}
/* warmer glass to sit in the golden light */
html[data-theme],html{--gc:rgba(70,56,44,.42);--gc2:rgba(255,240,220,.12);--gc3:rgba(255,240,220,.22)}
html[data-theme=dark]{--gc:rgba(20,15,11,.5);--gc2:rgba(255,235,210,.07);--gc3:rgba(255,235,210,.14)}
/* golden accents to match the shimmer */
html[data-theme],html{--gold:#E9B867;--gold2:#C98A3C}
.hero{background:linear-gradient(170deg,rgba(185,138,82,.55),rgba(36,24,15,.7))!important}
h1.hl span{color:#FFDFA3!important}
.btn-p,.btn:not(.alt):not(.btn-o):not(.btn-ghost):not(.btn-ink):not(.btn-glass),#deck .btn:not(.alt),#stu .btn:not(.alt),#ov.m26 .btn:not(.alt){
  background:linear-gradient(180deg,#F4CC85,#D69A4A)!important;color:#2a1a0c!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 6px 20px -8px rgba(233,184,103,.9)!important}
html body .hero .btn.btn-p:not(.alt):not(.btn-o):not(.btn-ghost):not(.btn-ink):not(.btn-glass){background:linear-gradient(180deg,#FFF3DC,#F2D3A0)!important;color:#3a250f!important}
.ios-tabs a.on{color:#FFDFA3!important}
#stu .acard .abar i,.pbar i,.prog i,#deck nav .bar.topbar i{background:var(--gold)!important}
.tag,#deck .tag,#deck section>.tag,.eyebrow{color:#FFDFA3!important}
#stu .opt.sel,#deck .opt.sel,#stu .chip.sel{background:rgba(233,184,103,.28)!important;box-shadow:inset 0 0 0 2px var(--gold)!important}
input:focus,select:focus,textarea:focus{box-shadow:0 0 0 3px rgba(233,184,103,.45)!important}
input[type=range]{accent-color:var(--gold)}
.srep .radar .rfill{fill:rgba(233,184,103,.25)!important;stroke:var(--gold)!important}.srep .radar .rdot{fill:var(--gold)!important}
#stu .uo-stats svg,#ov.m26 .mtile .ti{color:#FFDFA3!important}#ov.m26 .mtile .ti{background:rgba(233,184,103,.18)!important}
#ov.m26 th.cgrp{color:#FFDFA3!important}
/* low-key: both modes now sit on a dim amber shimmer; light mode is just a touch brighter */
html[data-theme],html{--shim:radial-gradient(120% 90% at 50% -10%,#76563a 0%,#3a2b1f 45%,#140f0b 100%);--bg:#2a2018;
  --gc:rgba(40,31,24,.5);--gc2:rgba(255,236,210,.09);--gc3:rgba(255,236,210,.17);--gedge:rgba(255,255,255,.16);--ghi:rgba(255,255,255,.16);--gsh:0 12px 34px -12px rgba(0,0,0,.55)}
html[data-theme=dark]{--shim:radial-gradient(120% 90% at 50% -10%,#4e361f 0%,#221912 45%,#090705 100%);--bg:#140f0b}
.hero{background:linear-gradient(170deg,rgba(120,88,52,.5),rgba(20,14,9,.72))!important}

.mbar i,#deck .mon .mbar i{background:var(--gold)!important}

/* ===== calm "macOS" backdrop (shimmer.js now draws slow color clouds + a faint molecule network) ===== */
html[data-theme],html{--shim:linear-gradient(135deg,#1b2436,#202c40);--bg:#1b2436;
  --gc:rgba(22,30,46,.55);--gc2:rgba(220,232,255,.08);--gc3:rgba(220,232,255,.16);--gedge:rgba(255,255,255,.13);--ghi:rgba(255,255,255,.14);--gsh:0 12px 34px -12px rgba(0,0,0,.55);
  --gold:#7FB2FF;--gold2:#4F8BE8}
html[data-theme=dark]{--shim:linear-gradient(135deg,#0b1020,#0d1626);--bg:#0b1020;--gc:rgba(14,20,34,.58)}
.hero{background:linear-gradient(170deg,rgba(42,58,92,.6),rgba(11,16,32,.75))!important}
h1.hl span{color:#A9CBFF!important}
.btn-p,.btn:not(.alt):not(.btn-o):not(.btn-ghost):not(.btn-ink):not(.btn-glass),#deck .btn:not(.alt),#stu .btn:not(.alt),#ov.m26 .btn:not(.alt){
  background:linear-gradient(180deg,#5B9BF5,#3B78DB)!important;color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 6px 18px -8px rgba(59,120,219,.8)!important}
html[data-theme] :is(#deck .btn:not(.alt),#stu .btn:not(.alt),#ov.m26 .btn:not(.alt)){color:#fff!important}
html body .hero .btn.btn-p:not(.alt):not(.btn-o):not(.btn-ghost):not(.btn-ink):not(.btn-glass){background:#EAF1FF!important;color:#1F4FA8!important}
.ios-tabs a.on,.tag,#deck .tag,#deck section>.tag,.eyebrow,#stu .uo-stats svg,#ov.m26 .mtile .ti,#ov.m26 th.cgrp{color:#A9CBFF!important}
#ov.m26 .mtile .ti{background:rgba(127,178,255,.16)!important}
#deck .do b,#deck .do strong{color:#FFD27A!important}
html[data-theme] body .hero .btn.btn-p:not(.alt):not(.btn-o):not(.btn-ghost):not(.btn-ink):not(.btn-glass){background:#EAF1FF!important;color:#1F4FA8!important}
