/* XMM AI v685: everything transparent with a weak blur (phone + PC),
   tiny one-row composer on phone, no Chat/Code switcher on phone,
   Chat/Code switcher lives inside the composer on PC. */

/* ---------- background the glass sits on ---------- */
html:root:root,html:root:root::before{background:#000!important;background-image:none!important}
html:root:root::before{display:none!important}
html[data-theme="light"]:root:root{background:#f2f2f4!important;background-image:none!important}
html body.x678.x678.x678,html body.x678.x678.x678 #win{background:transparent!important}
html body.x678.x678.x678 #dots660,html body.x678.x678.x678 #cf{display:none!important}

/* ---------- glass tokens (override the solid v678 palette) ---------- */
html body.x678.x678.x678{
 --b-bg:transparent;--b-side:rgba(255,255,255,.05);--b-card:rgba(255,255,255,.07);
 --b-ln:rgba(255,255,255,.13);--b-cardln:rgba(255,255,255,.17);
 --b-hov:rgba(255,255,255,.10);--b-act:rgba(255,255,255,.15);--b-u:rgba(255,255,255,.10);
 --b-ov:rgba(0,0,0,.25);--b-sh:0 10px 40px rgba(0,0,0,.35);
 --g-blur:blur(8px) saturate(1.15);--g-pop:rgba(18,22,26,.42)}
html[data-theme="light"] body.x678.x678.x678{
 --b-side:rgba(255,255,255,.35);--b-card:rgba(255,255,255,.4);
 --b-ln:rgba(0,0,0,.10);--b-cardln:rgba(0,0,0,.12);
 --b-hov:rgba(0,0,0,.06);--b-act:rgba(0,0,0,.09);--b-u:rgba(255,255,255,.5);
 --b-ov:rgba(255,255,255,.25);--b-sh:0 10px 40px rgba(0,0,0,.14);--g-pop:rgba(255,255,255,.6)}

/* ---------- weak blur on every surface ---------- */
html body.x678.x678.x678 :is(#side,#top,#win #in,#win #log .u,.cb,#x678menu,#x678set,.x678-ft,#x678toast,.home .cards>*){
 -webkit-backdrop-filter:var(--g-blur)!important;backdrop-filter:var(--g-blur)!important}
html body.x678.x678.x678 :is(#x678menu,#x678set,#x678toast){background:var(--g-pop)!important}
html body.x678.x678.x678 #side{background:var(--b-side)!important}
html body.x678.x678.x678 #top{background:transparent!important;border-bottom:1px solid var(--b-ln)!important}
html body.x678.x678.x678 #win #in{background:var(--b-card)!important;border:1px solid var(--b-cardln)!important;box-shadow:0 4px 24px rgba(0,0,0,.2)!important}
html body.x678.x678.x678 #win #in:focus-within{background:var(--b-card)!important;border-color:rgba(255,255,255,.3)!important}
html body.x678.x678.x678 #win #in #ta,html body.x678.x678.x678 #win #in #ta:focus{background:transparent!important;border:0!important;box-shadow:none!important}
html body.x678.x678.x678 #win #log .u{background:var(--b-u)!important;border:1px solid var(--b-ln)!important}
html body.x678.x678.x678 .cb{background:var(--b-card)!important}
html body.x678.x678.x678 #win #in #go{background:rgba(255,255,255,.88)!important;color:#0b0b0d!important}
html[data-theme="light"] body.x678.x678.x678 #win #in #go{background:rgba(20,20,22,.85)!important;color:#fff!important}
html body.x678.x678.x678 #side .si:hover,html body.x678.x678.x678 #side .si.on{background:var(--b-hov)!important}
.x678-ov{background:var(--b-ov)!important}

html body.x678.x678.x678 #win #in #plus{font-size:0!important}

/* ---------- PC: Chat/Code switcher sits inside the chat input ---------- */
@media(min-width:900px){
 html body.x678.x678.x678 #win #in #x678under{display:flex!important;order:1;width:auto!important;margin:0 auto 0 4px!important;padding:2px;gap:2px;flex:none;align-items:center;justify-content:flex-start;border-radius:11px;background:var(--b-hov);border:1px solid var(--b-ln)}
 html body.x678.x678.x678 #win #in #plus{margin-right:0!important}
 html body.x678.x678.x678 #win #in #thk{order:3}
 html body.x678.x678.x678 #win #in #vbtn{order:4}
 html body.x678.x678.x678 #win #in #go{order:5}
 html body.x678.x678.x678 #win #in #x678under button{padding:5px 11px;border-radius:9px;font:500 12.5px/1 var(--b-sans);color:var(--b-dim)}
 html body.x678.x678.x678 #win #in #x678under button.on{background:var(--b-act);color:var(--b-tx)}
}

/* ---------- PHONE: tiny one-row composer, no Chat/Code switcher ---------- */
@media(max-width:899px){
 html body.x678.x678.x678 #x678under{display:none!important}
 html body.x678.x678.x678 #win #in{flex-wrap:nowrap!important;align-items:center!important;gap:2px!important;width:calc(100% - 20px)!important;max-width:560px!important;min-height:0!important;margin:0 auto max(8px,env(safe-area-inset-bottom,0px))!important;padding:5px 5px 5px 8px!important;border-radius:28px!important;box-shadow:0 2px 14px rgba(0,0,0,.2)!important}
 html body.x678.x678.x678 #win #in #ta{order:2!important;flex:1 1 0!important;width:auto!important;min-width:0!important;min-height:38px!important;max-height:110px!important;padding:9px 6px!important;margin:0!important;font-size:16px!important;line-height:20px!important;box-sizing:border-box!important;align-self:center}
 html body.x678.x678.x678 #win #in :is(#plus,#thk,#vbtn,#go){width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;max-width:38px!important;max-height:38px!important;flex:0 0 38px!important;margin:0!important}
 html body.x678.x678.x678 #win #in #plus{order:1!important}
 html body.x678.x678.x678 #win #in #plus::before{width:20px!important;height:20px!important}
 html body.x678.x678.x678 #win #in #thk{order:3!important}
 html body.x678.x678.x678 #win #in :is(#vbtn,#go){order:5!important;border-radius:50%!important}
 html body.x678.x678.x678 #win #in #mchip,html body.x678.x678.x678 #win #in .p{display:none!important}
 html body.x678.x678.x678 #top{padding-top:max(0px,env(safe-area-inset-top,0px))}
}

/* v687: rounded settings/user button in the sidebar */
html body.x678.x678.x678 #side .x678-ft{border:1px solid var(--b-cardln)!important;border-top:1px solid var(--b-cardln)!important;border-radius:999px!important;padding:8px 14px 8px 8px!important;margin:8px 4px 4px!important;width:calc(100% - 8px)!important;background:var(--b-card)!important}
html body.x678.x678.x678 #side .x678-ft:hover{background:var(--b-hov)!important}
html body.x678.x678.x678 #x678menu{border-radius:22px!important}
html body.x678.x678.x678 #x678menu :is(button,a){border-radius:999px!important;padding:9px 16px!important}

/* v688: ONE round button in the corner: voice when empty, send when you type (all screens) */
html body.x678.x678.x678 #win #in.vb:not(.typing):not(.busy) #go{display:none!important}
html body.x678.x678.x678 #win #in.vb.typing #vbtn,html body.x678.x678.x678 #win #in.vb.busy #vbtn{display:none!important}
html body.x678.x678.x678 #win #in #vbtn{display:grid!important;order:5;background:rgba(255,255,255,.9)!important;color:#0b0b0d!important;border:0!important;border-radius:50%!important;width:34px;height:34px;min-width:34px;place-items:center;transition:transform .15s,background .2s}
html[data-theme="light"] body.x678.x678.x678 #win #in #vbtn{background:rgba(20,20,22,.88)!important;color:#fff!important}
html body.x678.x678.x678 #win #in #vbtn:active,html body.x678.x678.x678 #win #in #go:active{transform:scale(.9)}
html body.x678.x678.x678 #win #in #vbtn svg{width:18px;height:18px}
@media(max-width:899px){html body.x678.x678.x678 #win #in #vbtn{width:38px!important;height:38px!important}}
@media(min-width:900px){html body.x678.x678.x678 #win #in #vbtn,html body.x678.x678.x678 #win #in #go{width:36px!important;height:36px!important;min-width:36px!important;border-radius:50%!important}}

/* v688: voice mode polish (clean black glass) */
html body #vo{background:#000!important}
html body #vo .v6p{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.14);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
html body #vo .v6p button{border-radius:999px!important;transition:background .15s}
html body #vo .v6p button:hover{background:rgba(255,255,255,.12)!important}
html body #vo .v6t{font-weight:600;letter-spacing:.5px;opacity:.9}
html body #vo .v6b i{background:linear-gradient(180deg,#7fe3ff,#2aa7ff)!important;box-shadow:0 0 18px rgba(60,170,255,.45)}
html body #vo .v6bar{gap:14px}
html body #vo .v6bar button,html body #vo .v6pill{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
html body #vo .v6c,html body #vo #vback{background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:50%!important;color:#fff}
html body #vo #vback{background:rgba(255,70,70,.9)!important;border-color:transparent!important}
html body #vo .v6pill{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:999px!important}
html body #vo #vtalk{border-radius:50%!important;transition:transform .15s,background .2s,box-shadow .2s}
html body #vo #vtalk.on{transform:scale(1.08);box-shadow:0 0 0 8px rgba(60,170,255,.25),0 0 30px rgba(60,170,255,.5)}
html body #vo #vst{color:rgba(255,255,255,.55)}

/* v689: plain clickable suggestions (under the chat input on PC, under the greeting on phone) */
.xsug{display:flex;flex-direction:column;gap:2px;width:min(100%,680px);margin:10px auto 0;padding:0 6px;box-sizing:border-box;text-align:left}
.xsug .sg{display:flex;align-items:center;gap:14px;padding:11px 12px;border-radius:12px;color:var(--b-dim,#9b9a95);font:400 15.5px/1.2 var(--b-sans,system-ui,sans-serif);cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;transition:color .15s,background .15s;outline:0}
.xsug .sg:hover,.xsug .sg:focus-visible{color:var(--b-tx,#fff);background:rgba(255,255,255,.07)}
.xsug .sg svg{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html body.x678 .home .cards{display:none!important}
#xsugpc{display:none}
@media(min-width:900px){
 html body.x678.e678 #xsugpc{display:flex}
 .home .xsug{display:none}
}
@media(max-width:899px){
 #xsugpc{display:none!important}
 .home .xsug{width:min(100%,420px);margin-top:18px}
 
}

/* v689: model picker + donate button + "New models" popup */
#xmodel{position:fixed;z-index:60;top:10px;display:flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--b-cardln,rgba(255,255,255,.17));background:var(--b-card,rgba(255,255,255,.07));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:var(--b-tx,#fff);font:500 13.5px/1 var(--b-sans,system-ui,sans-serif);cursor:pointer;white-space:nowrap}
#xmodel svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2.2;opacity:.7}
@media(min-width:900px){#xmodel{left:calc(var(--b-sw,288px) + 16px)}body.sc #xmodel{left:60px}}
@media(max-width:899px){#xmodel{left:50%;transform:translateX(-50%);top:calc(9px + env(safe-area-inset-top,0px))}}
#xmenu{position:fixed;z-index:61;min-width:270px;max-width:calc(100vw - 24px);padding:6px;border-radius:20px;border:1px solid var(--b-cardln,rgba(255,255,255,.17));background:var(--g-pop,rgba(18,22,26,.6));-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 14px 44px rgba(0,0,0,.45);display:none;color:var(--b-tx,#fff);font-family:var(--b-sans,system-ui,sans-serif)}
#xmenu.on{display:block}
#xmenu button{all:unset;box-sizing:border-box;display:flex;flex-direction:column;gap:3px;width:100%;padding:10px 14px;border-radius:14px;cursor:pointer}
#xmenu button:hover{background:rgba(255,255,255,.09)}
#xmenu button b{font:600 14.5px/1.2 inherit;display:flex;justify-content:space-between;gap:10px}
#xmenu button small{font:400 12.5px/1.3 inherit;color:var(--b-dim,#9b9a95)}
#xmenu button.on b::after{content:"✓"}
#xtop{position:fixed;z-index:60;top:10px;right:14px;display:flex;gap:8px}
#xtop button{display:flex;align-items:center;gap:7px;height:34px;padding:0 15px;border-radius:999px;border:1px solid var(--b-cardln,rgba(255,255,255,.17));background:var(--b-card,rgba(255,255,255,.07));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:var(--b-tx,#fff);font:600 13.5px/1 var(--b-sans,system-ui,sans-serif);cursor:pointer;white-space:nowrap}
#xtop button:hover{background:var(--b-hov,rgba(255,255,255,.1))}
@media(max-width:899px){#xtop{display:none}}
@media(min-width:900px){body.cxo #xtop{right:calc(var(--pw,480px) + 14px)}#xmodel,#xmenu{display:none!important}}
html body #fbtn:not([hidden]){display:inline-flex!important;align-items:center}
#xnm{position:fixed;inset:0;z-index:2147483200;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.45);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);font-family:var(--b-sans,system-ui,sans-serif)}
#xnm.on{display:flex;animation:xnmIn .25s ease}
@keyframes xnmIn{from{opacity:0}to{opacity:1}}
#xnm .bx{width:min(100%,400px);padding:24px 22px 20px;border-radius:26px;border:1px solid rgba(255,255,255,.18);background:rgba(20,22,26,.6);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);color:#fff;box-shadow:0 20px 70px rgba(0,0,0,.55)}
#xnm h2{margin:0 0 4px;font:700 24px/1.15 inherit;letter-spacing:-.02em}
#xnm p{margin:0 0 16px;color:#a9adb3;font-size:14px;line-height:1.45}
#xnm .m{padding:11px 14px;border-radius:16px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);margin-bottom:8px}
#xnm .m b{display:flex;justify-content:space-between;font-size:15px}
#xnm .m b i{font-style:normal;font-size:11px;font-weight:600;padding:3px 8px;border-radius:99px;background:#fff;color:#0b0b0d}
#xnm .m small{display:block;margin-top:3px;color:#a9adb3;font-size:12.5px}
#xnm button.ok{width:100%;height:46px;margin-top:10px;border:0;border-radius:999px;background:#fff;color:#0b0b0d;font:600 15px inherit;cursor:pointer}

@media(min-width:900px){
 html body.x678.x678.x678 #win #in :is(#vbtn,#go){width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important;flex:0 0 40px!important;aspect-ratio:1/1;padding:0!important;border-radius:50%!important;display:grid;place-items:center;align-self:center}
 html body.x678.x678.x678 #win #in #go:not(:is(.typing #go)){}
 html body.x678.x678.x678 #win #in.vb:not(.typing):not(.busy) #go{display:none!important}
 html body.x678.x678.x678 #win #in.vb.typing #vbtn,html body.x678.x678.x678 #win #in.vb.busy #vbtn{display:none!important}
}

/* v691: no model button anywhere (use /model) */
#xmodel,#xmenu{display:none!important}
