.miles-chat{position:fixed;right:28px;bottom:92px;z-index:45;width:430px;max-width:calc(100vw - 32px);color:#edf1f4;transform-origin:bottom right;animation:miles-open .35s cubic-bezier(.22,1,.36,1);font-size:13px}
.miles-chat-head{display:flex;align-items:center;gap:9px;padding:0 5px 12px;color:#516978}.dark .miles-chat-head{color:#c3d2dd}.miles-chat-head strong{font-size:13px;font-weight:600;letter-spacing:2px}.miles-chat-head small{font-size:10px;opacity:.75}.miles-chat-head button{margin-left:auto;border:0;background:transparent;color:inherit;font-size:20px;line-height:1;width:28px;height:28px;border-radius:50%}.miles-chat-head button:hover{background:#8098a21c}
.miles-composer{padding:18px 16px 13px;border:1px solid #525c6590;border-top-color:#9da8b083;border-radius:21px;background:linear-gradient(155deg,#292e33ed,#15191df5 70%);backdrop-filter:blur(24px);box-shadow:inset 0 1px 0 #ffffff12,0 18px 48px #17232f38,0 3px 9px #15233020}
.miles-input{width:100%;min-height:49px;max-height:150px;resize:none;border:0;background:transparent;color:#f2f5f7;font:inherit;font-size:14px;line-height:1.6;outline:none;padding:0 3px 8px}.miles-input::placeholder{color:#a1aab2}.miles-input:focus-visible{outline:none}
.miles-tools{display:flex;align-items:center;gap:5px}.miles-tool{height:31px;display:flex;align-items:center;gap:0;flex-shrink:0;border:1px solid transparent;border-radius:18px;padding:6px;color:#9daab4;background:none;transition:background .3s,color .3s,border-color .3s}.miles-tool svg{width:16px;height:16px;flex-shrink:0}.miles-tool span{max-width:0;overflow:hidden;opacity:0;font-size:11px;white-space:nowrap;transition:max-width .35s cubic-bezier(.22,1,.36,1),opacity .25s,margin .35s}.miles-tool:hover{color:#fff;background:#ffffff09}.miles-tool[aria-pressed=true]{border-color:#9aafbf55;background:#b1c7d414;color:#e3eef5}.miles-tool[aria-pressed=true] span{max-width:65px;opacity:1;margin-left:5px}.miles-tools .miles-separator{height:14px;width:1px;background:#ffffff19;margin:0 3px}
.miles-mic{margin-left:auto;flex-shrink:0;position:relative;display:grid;place-items:center;width:43px;height:43px;border-radius:50%;color:#dbe3e9;overflow:hidden;isolation:isolate;border:0;background:#16191c;box-shadow:0 7px 15px #0003,inset 0 1px #ffffff44;transition:transform .25s,box-shadow .25s}
.miles-mic:before{content:'';position:absolute;width:160px;height:160px;left:50%;top:50%;background:conic-gradient(#444a52,#646e79 65deg,#f8fbff 85deg,#b6c7d6 94deg,#343b44 125deg,#252a31 180deg,#8798a7 235deg,#fff 266deg,#a2b0bd 278deg,#343b44 315deg,#444a52);animation:miles-rim 5s linear infinite;z-index:-2}.miles-mic:after{content:'';position:absolute;inset:1.3px;border-radius:inherit;background:linear-gradient(175deg,#2b3036,#15181c 40%,#080a0d 95%);box-shadow:inset 0 1px 1px #ffffff14;z-index:-1}.miles-mic svg{width:19px;height:19px}.miles-mic:hover{transform:translateY(-2px);color:#fff;box-shadow:0 7px 20px #8faabe25}.miles-mic.is-listening{box-shadow:0 0 0 6px #a6c1d425,0 0 25px #b4d6ed45}.miles-mic.is-listening:before{animation-duration:1.5s}
.miles-log{max-height:min(390px,46svh);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:17px;margin-bottom:10px;border:1px solid #d1dce680;border-radius:20px;background:#eef3f5e8;backdrop-filter:blur(24px);box-shadow:0 12px 35px #14233115;color:#294352}.miles-log:empty{display:none}.miles-reply{margin:0 0 18px;font-size:13px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.miles-reply:last-child{margin-bottom:0}.miles-reply small{display:block;font-size:9px;letter-spacing:1px;opacity:.65;margin-bottom:6px}.miles-reply.own{background:#cbd9e55c;border-radius:12px;padding:12px 15px;margin-left:28px}.dark .miles-log{background:#253640e8;color:#dce8f1;border-color:#7d96a340}.dark .miles-reply.own{background:#ffffff0d}
.miles-feedback{font-size:10px;line-height:1.6;color:#b5c5d1;margin:10px 3px 0}.miles-feedback:empty{display:none}.miles-files{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:9px}.miles-files:empty{display:none}.miles-files button{background:#ffffff0d;color:#bccbd6;border:1px solid #ffffff20;border-radius:8px;font:inherit;font-size:10px;padding:6px 9px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.miles-chat-note{margin:9px 5px 0;color:#738693;font-size:9px;letter-spacing:.3px}.dark .miles-chat-note{color:#a6bac8}.miles-chat button:focus-visible{outline:2px solid #a6c6dd;outline-offset:3px}
@keyframes miles-rim{to{transform:translate(-50%,-50%) rotate(360deg)}from{transform:translate(-50%,-50%) rotate(0)}}@keyframes miles-open{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
@media(max-width:600px){.miles-chat{right:16px!important;bottom:84px!important}.miles-composer{padding:15px 12px 12px}.miles-tool{padding:5px}.miles-tools{gap:3px}}
@media(prefers-reduced-motion:reduce){.miles-chat{animation:none}.miles-tool,.miles-tool span,.miles-mic{transition:none}.miles-mic:before{animation:none;transform:translate(-50%,-50%) rotate(35deg)}}

/* One frosted backing keeps the heading and footnote readable. */
.miles-chat{padding:16px;border-radius:26px;border:1px solid #ffffffc0;background:linear-gradient(145deg,#f7fafcdb,#e6eef3c7);backdrop-filter:blur(28px) saturate(130%);-webkit-backdrop-filter:blur(28px) saturate(130%);box-shadow:inset 1px 1px #fff,0 16px 50px #172c3e24;max-height:calc(100svh - 36px);overflow:auto}
.miles-chat-head{color:#3e5667}.miles-chat-head small{opacity:1}.miles-chat-note{color:#556e7f}.miles-composer{box-shadow:inset 0 1px #ffffff12,0 5px 15px #17232f20}.dark .miles-chat{background:linear-gradient(145deg,#2b3d49e0,#1c2d38cf);border-color:#b0c7d536;box-shadow:inset 1px 1px #ffffff20,0 16px 50px #0004}
@media(max-width:600px){.miles-chat{right:12px!important;bottom:12px!important;padding:13px;max-height:calc(100svh - 24px)}}
