/* XMM AI v667: flat see-through UI, full-screen chat, no mascot, no model button. Loaded last. */
:root{--blur:blur(3px);--glass:rgba(24,24,27,.32);--line:rgba(255,255,255,.14);--bg7:#0e0e10;--tx7:#f4f4f5}
html,html body{background:var(--bg7)!important;overflow:hidden}
#dots660,#cf,#mas,#vm,.mas,#masp,.dk-say,#mchip,#hint,.sep,#xsnow,canvas[id*=snow]{display:none!important}
/* the chat is the whole screen */
html body #win{left:0!important;right:0!important;width:auto!important;max-width:none!important;margin:0!important;padding-left:0!important;padding-right:0!important;transition:none!important}
html:not(.pwa) body #win{position:fixed!important;top:var(--xtop,0px)!important;height:calc(var(--app-h,100dvh) - var(--xtop,0px))!important;min-height:0!important;bottom:auto!important;box-sizing:border-box}
html body{--sb:0px}
@media(min-width:900px){html body{--sb:calc(var(--side,280px) + 4px)}html body.sc{--sb:0px}}
html body #win #log,html body.n660 #win #log{position:absolute!important;inset:0!important;width:auto!important;max-width:none!important;height:auto!important;margin:0!important;overflow-y:auto!important;overflow-x:hidden!important;box-sizing:border-box;text-align:left;
 padding:calc(env(safe-area-inset-top,0px) + 76px) max(16px,calc((100% - var(--sb) - 1100px)/2)) calc(var(--inh,90px) + 24px) max(calc(var(--sb) + 16px),calc((100% + var(--sb) - 1100px)/2))!important;overscroll-behavior:contain}
html body #log>*{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
html body #log :is(img,video,canvas,iframe){max-width:100%}
html body #log :is(pre,table){max-width:100%;overflow-x:auto;overflow-wrap:normal}
html body #log table{display:block}
html body.n660 #win #log{display:flex!important;flex-direction:column;justify-content:safe center;text-align:center}
html body.n660 #log>*{flex:none}
/* input floats over the chat */
html body #win #in,html body.n660 #win #in{position:absolute!important;z-index:6;left:calc(var(--sb) + max(10px,(100% - var(--sb) - 820px)/2))!important;right:max(10px,calc((100% - var(--sb) - 820px)/2))!important;bottom:calc(env(safe-area-inset-bottom,0px) + 10px)!important;width:auto!important;max-width:none!important;margin:0!important}
html body #win #top{position:absolute!important;z-index:5;left:var(--sb)!important;right:0!important;top:env(safe-area-inset-top,0px)!important;margin:0!important;padding:10px 12px!important;background:transparent!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;pointer-events:none}
html body #win #top *{pointer-events:auto}
html body #top .tt{pointer-events:none}
/* flat glass: see everything behind, very weak blur, no bevels, glows or 3D */
html body :is(#in,#menu,#side,#sbtn,#nbtn,#sx,#plus,#thk,#vbtn,#go,#snew,#stabs,.u,.cb,.box,.home .cards button){background:var(--glass)!important;-webkit-backdrop-filter:var(--blur)!important;backdrop-filter:var(--blur)!important;border:1px solid var(--line)!important;box-shadow:none!important;text-shadow:none!important}
html body #in:focus-within{background:var(--glass)!important;border-color:rgba(255,255,255,.3)!important;box-shadow:none!important}
html body #in :is(#plus,#thk,#vbtn){-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:transparent!important}
html body #thk.on{background:rgba(255,255,255,.18)!important}
html body #go,html body #snew{background:rgba(255,255,255,.88)!important;color:#0e0e10!important;border-color:transparent!important}
html body #menu{background:rgba(24,24,27,.72)!important}
html body #side{background:rgba(20,20,23,.55)!important}
html body #stabs button{background:transparent!important;box-shadow:none!important;border-color:transparent!important}
html body #stabs button.on{background:rgba(255,255,255,.14)!important}
html body :is(button,.si,#in,.u,.cb){transform:none!important;translate:none!important;scale:none!important;filter:none!important}
html body button:active{opacity:.65}
html body :is(#in,#top,#side) *::before,html body :is(#in,#top)::before,html body :is(#in,#top)::after{box-shadow:none!important}
html body .appico{filter:none!important;box-shadow:none!important;width:64px!important;height:64px!important}
html body #in #ta{flex:1;min-width:0}
@media(prefers-color-scheme:light){
 :root{--glass:rgba(255,255,255,.38);--line:rgba(0,0,0,.12);--bg7:#f6f6f7;--tx7:#111}
 html body #side{background:rgba(255,255,255,.7)!important}
 html body #menu{background:rgba(255,255,255,.82)!important}
 html body #go,html body #snew{background:#111!important;color:#fff!important}
 html body #stabs button.on,html body #thk.on{background:rgba(0,0,0,.1)!important}
 html body #in:focus-within{border-color:rgba(0,0,0,.3)!important}
}
/* mascot art gone everywhere in the app */
#xsplash,.appico,.home .hm>img,.home .hm>svg{display:none!important}
html body #win #menu{background:rgba(24,24,27,.93)!important}
html body #win #in #go{background:rgba(255,255,255,.9)!important;color:#0e0e10!important;border:0!important;box-shadow:none!important}
html body #fbtn{background:var(--glass)!important;-webkit-backdrop-filter:var(--blur)!important;backdrop-filter:var(--blur)!important;border:1px solid var(--line)!important;border-radius:999px!important;padding:8px 14px!important;color:var(--tx7)!important}
html body #win #in #thk{min-width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
html body #win #in #thk svg{width:18px!important;height:18px!important;flex:none}
@media(max-width:600px){html body #win #in #thk{width:40px;padding:0!important}}
@media(min-width:901px){html body.cxo #win{right:var(--pw)!important}}
@media(prefers-color-scheme:light){
 html body #win #menu{background:rgba(255,255,255,.95)!important}
 html body #win #in #go{background:#111!important;color:#fff!important}
 html body .fc{background:var(--glass)!important;border-color:var(--line)!important}
 html body .fc :not(.dl):not(.dl *){color:#111!important}
}
@media(prefers-color-scheme:light){
 html body .fc :is(button,a,[class*=ic]):not(.dl){background:rgba(0,0,0,.07)!important;border-color:var(--line)!important;color:#111!important}
 html body .fc .dl{background:#111!important;color:#fff!important}
 html body .fc .dl *{color:#fff!important}
 html body #menu *{color:#222!important}
}
@media(prefers-color-scheme:light){
 html body #log .home .cards code,html body #log .home .cards button code{color:#111!important;background:rgba(0,0,0,.07)!important;-webkit-text-fill-color:#111}
}
/* round send button */
html body #win #in #go{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px;flex:0 0 42px!important;aspect-ratio:1/1;padding:0!important;border-radius:50%!important;display:inline-flex;align-items:center;justify-content:center;line-height:1}
html body #win #in #go[style*="none"]{display:none}
/* message menu + editor */
#mmenu{position:fixed;z-index:2147483200;min-width:180px;padding:6px;border-radius:16px;background:rgba(32,32,36,.94);border:1px solid var(--line);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);-webkit-user-select:none;user-select:none}
html body #mmenu button{display:block;width:100%;min-height:44px;padding:10px 14px;text-align:left;border:0;border-radius:11px;background:transparent;color:var(--tx7);font:500 15px var(--sf,system-ui);cursor:pointer}
html body #mmenu button:hover{background:rgba(127,127,127,.2)}
html body #mmore{position:fixed;z-index:20;width:30px;height:30px;padding:0;border-radius:50%;border:1px solid var(--line);background:var(--glass);color:var(--tx7);cursor:pointer}
html body #mmore[hidden]{display:none}
html body #log>.msel{opacity:.7}
@media(hover:none),(pointer:coarse){#log>.u,#log>.a,#log>.u *,#log>.a *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}#log>.a img{-webkit-touch-callout:default}#mmore{display:none!important}}
#vtalk,#vtalk *,#vbtn{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:none}
#medit{position:fixed;inset:0;z-index:2147483100;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.45)}
#medit .w{width:min(560px,100%);max-height:calc(var(--app-h,100dvh) - 32px);overflow:auto;box-sizing:border-box;padding:16px;border-radius:20px;background:var(--bg7);border:1px solid var(--line);color:var(--tx7);font:15px var(--sf,system-ui)}
html body #medit textarea{display:block;width:100%;box-sizing:border-box;margin:12px 0;padding:12px;border-radius:12px;border:1px solid var(--line);background:transparent;color:var(--tx7);font:16px/1.5 var(--sf,system-ui);resize:vertical}
#medit .r{display:flex;gap:8px;justify-content:flex-end}
html body #medit button{min-height:42px;padding:8px 18px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--tx7);font:600 14px var(--sf,system-ui);cursor:pointer}
html body #medit button.s{background:var(--tx7);color:var(--bg7)}
.mtoast{position:fixed;z-index:2147483300;left:50%;top:calc(env(safe-area-inset-top,0px) + 70px);transform:translateX(-50%);padding:9px 18px;border-radius:999px;background:var(--tx7);color:var(--bg7);font:600 14px var(--sf,system-ui);pointer-events:none}
/* clean upload + new chat icons */
html body #win #in #plus,html body #win #top #nbtn{width:42px!important;height:42px!important;min-width:42px!important;flex:0 0 42px!important;padding:0!important;border-radius:50%!important;display:inline-flex!important;align-items:center;justify-content:center;font-size:0!important;line-height:0!important;position:relative}
html body #win #top #nbtn{margin-left:auto}
html body #win #top #nbtn>*{display:none!important}
html body #win #in #plus::before,html body #win #top #nbtn::before{content:""!important;display:block!important;position:static!important;width:20px!important;height:20px!important;background:currentColor!important;box-shadow:none!important;border:0!important;opacity:1!important;transform:none!important;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
html body #win #in #plus::after,html body #win #top #nbtn::after{display:none!important}
#plus{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")}
#nbtn{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-6'/%3E%3Cpath d='M17.5 3.5a2.1 2.1 0 0 1 3 3L12 15l-4 1 1-4z'/%3E%3C/svg%3E")}
/* mic turns into send */
html body #win #in.sending #vbtn{display:none!important}
html body #win #in.sending #go{animation:pop7 .14s ease-out}
@keyframes pop7{from{opacity:0;scale:.6}to{opacity:1;scale:1}}
