/* XMM AI v675. Loaded last. Bubble pop-ups, login redesign, composer buttons pinned to the bottom, smooth "Thinking" text. */
:root{--xb-bg:#2a2a2e;--xb-tx:#f4f4f5;--xb-ln:rgba(255,255,255,.14)}
@media(prefers-color-scheme:light){:root{--xb-bg:#fff;--xb-tx:#111;--xb-ln:rgba(0,0,0,.12)}}

/* ---------- chat-bubble pop-up (Think + voice) ---------- */
.xb{position:fixed;z-index:2147483001;left:0;top:0;display:flex;align-items:center;gap:6px;max-width:min(300px,calc(100vw - 16px));box-sizing:border-box;padding:9px 8px 9px 14px;border-radius:16px;background:var(--xb-bg);color:var(--xb-tx);border:1px solid var(--xb-ln);box-shadow:0 12px 32px rgba(0,0,0,.35);font:500 14px/1.35 -apple-system,"SF Pro Text",system-ui,Roboto,sans-serif;opacity:0;transform:translateY(var(--xb-from,6px)) scale(.96);transition:opacity .2s ease,transform .24s cubic-bezier(.2,.9,.3,1);will-change:opacity,transform}
.xb.show{opacity:1;transform:none}
.xb .xt{flex:1;min-width:0}
.xb .xx{flex:none;width:24px;height:24px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;opacity:.6;cursor:pointer;transition:opacity .15s,background .15s}
.xb .xx:hover{opacity:1;background:rgba(127,127,127,.2)}
.xb .xx svg{width:12px;height:12px}
.xb::after{content:"";position:absolute;width:10px;height:10px;background:var(--xb-bg);border:1px solid var(--xb-ln);transform:rotate(45deg)}
.xb[data-side=top]::after{bottom:-6px;left:var(--ax,50%);margin-left:-5px;border-top:0;border-left:0}
.xb[data-side=bottom]::after{top:-6px;left:var(--ax,50%);margin-left:-5px;border-bottom:0;border-right:0}
.xb[data-side=left]::after{right:-6px;top:var(--ay,50%);margin-top:-5px;border-bottom:0;border-left:0}
.xb[data-side=bottom]{--xb-from:-6px}
@media(prefers-reduced-motion:reduce){.xb{transition:opacity .01s}}

/* ---------- composer: buttons stay at the bottom when the prompt gets tall ---------- */
html body #in{align-items:flex-end!important;border-radius:28px!important}
html body #in #ta{margin:0 0 8px!important;align-self:flex-end}
html body #in :is(#plus,#thk,#vbtn,#go){align-self:flex-end;flex:none}

/* ---------- Thinking label: one smooth shimmer, no emoji ---------- */
details.th summary{list-style:none}
details.th summary::-webkit-details-marker{display:none}
details.th .thl{display:inline-block;background:linear-gradient(90deg,var(--dim,#8f8d86) 0%,var(--dim,#8f8d86) 35%,var(--tx7,#fff) 50%,var(--dim,#8f8d86) 65%,var(--dim,#8f8d86) 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;animation:xth 2.2s linear infinite;animation-delay:var(--ph,0s)}
@keyframes xth{from{background-position:125% 0}to{background-position:-125% 0}}
details.th{transition:border-color .3s ease,background .3s ease}
@media(prefers-reduced-motion:reduce){details.th .thl{animation:none;-webkit-text-fill-color:currentColor;color:var(--dim)}}

/* ---------- voice screen: mute button ---------- */
html body #vo .v6p button#v6snd{transition:opacity .2s ease,background .2s ease}
html body #vo .v6p button#v6snd:hover{background:rgba(255,255,255,.08)}
html body #vo .v6p button#v6snd svg{transition:transform .2s cubic-bezier(.2,.9,.3,1)}
html body #vo .v6p button#v6snd:active svg{transform:scale(.88)}

/* ---------- v676: equal round buttons, light-blue Think, voice menu ---------- */
html body #in :is(#plus,#thk,#vbtn,#go){width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border-radius:50%!important;flex:0 0 42px!important;display:inline-flex;align-items:center;justify-content:center}
html body #in #thk span{display:none!important}
html body #in #thk svg{width:19px!important;height:19px!important}
html body #in #thk{transition:background .25s ease,border-color .25s ease,color .25s ease,box-shadow .25s ease}
html body #in #thk.on{background:rgba(56,152,255,.28)!important;border-color:#4aa8ff!important;color:#8cc8ff!important;box-shadow:0 0 0 3px rgba(74,168,255,.2)!important}
@media(prefers-color-scheme:light){html body #in #thk.on{background:rgba(10,102,214,.14)!important;border-color:#1a7af0!important;color:#0a66d6!important}}
.pic img{object-fit:contain}
html body #vo .v6m{position:absolute;right:16px;top:calc(env(safe-area-inset-top,0px) + 70px);z-index:5;min-width:180px;padding:6px;border-radius:16px;background:#2b2b2d;border:1px solid rgba(255,255,255,.12);box-shadow:0 14px 34px rgba(0,0,0,.45);display:flex;flex-direction:column;gap:2px}
html body #vo .v6m[hidden]{display:none}
html body #vo .v6m .v6mh{padding:6px 10px 4px;font:600 12px system-ui;color:#9a9aa0}
html body #vo .v6m button{width:100%;height:auto;display:block;text-align:left;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:#fff;font:500 15px system-ui;cursor:pointer}
html body #vo .v6m button.on{background:rgba(74,168,255,.22);color:#8cc8ff}
html body #vo .v6m button.on::after{content:"\2713";float:right}
