
/* V15.4.1 TEST: precise wordmark accent; original official BYD image unchanged. */
.bydi-wordmark{display:inline-flex;align-items:center;justify-content:center;gap:0;max-width:100%;margin:0 auto 8px;white-space:nowrap}
.chat-head .byd-chat-intro h2 .bydi-wordmark .byd-official-wordmark{display:block!important;width:clamp(190px,23vw,315px)!important;max-width:calc(100% - 24px)!important;margin:0!important;flex:0 1 auto}
.bydi-accent{display:inline-block;color:var(--bydi-ui-residual-f32621)!important;font:bold italic clamp(38px,5vw,67px)/1 Georgia,serif;margin-left:-1px;transform:translateY(-4%);text-shadow:none!important}
@media(max-width:700px){.chat-head .byd-chat-intro h2 .bydi-wordmark .byd-official-wordmark{width:clamp(138px,46vw,268px)!important;max-width:calc(100% - 18px)!important}.bydi-accent{font-size:clamp(29px,9vw,51px)}}
/* The animation remains the original; the callout is OUTSIDE its avatar tile. */
.chat-head .bydi-bot-area{grid-column:1;grid-row:1;position:relative;display:flex;align-items:center;justify-content:flex-start;min-width:0;isolation:isolate}
.chat-head .bydi-bot-area .bot-avatar{display:flex!important;align-items:center;justify-content:center;padding:0;cursor:pointer;font:inherit;flex:0 0 auto}
.bydi-bot-trigger:focus-visible{outline:3px solid var(--bydi-ui-residual-1489e5);outline-offset:4px}
.bydi-ai-bubble{position:absolute;left:calc(100% + 8px);top:0;z-index:5;min-width:136px;max-width:185px;padding:10px 13px;border:2px solid var(--bydi-component-color-37b9f6, var(--bydi-component-color-37b9f6));border-radius:22px;background:var(--bydi-ui-browser-choice-light-bg);color:var(--bydi-ui-residual-103861);box-shadow:0 5px 16px var(--bydi-ui-residual-007cc02b);font:700 14px/1.2 Arial,sans-serif;text-align:center;cursor:pointer;white-space:normal;animation:bydi-bubble-glow 3s ease-in-out infinite}
.bydi-ai-bubble:before{content:"";position:absolute;left:-9px;top:21px;width:15px;height:15px;background:var(--bydi-ui-browser-choice-light-bg);border-left:2px solid var(--bydi-component-color-37b9f6, var(--bydi-component-color-37b9f6));border-bottom:2px solid var(--bydi-component-color-37b9f6, var(--bydi-component-color-37b9f6));transform:rotate(45deg)}
.bydi-ai-bubble strong{color:var(--bydi-ui-residual-086de5)}.bydi-ai-small{display:block;font:500 11px/1.4 Arial,sans-serif;color:var(--bydi-ui-residual-57758a);margin-top:3px}
@keyframes bydi-bubble-glow{50%{box-shadow:0 5px 21px #009be85a}}
@media(min-width:701px){.chat-head .bydi-bot-area{grid-column:1!important;grid-row:1!important}.chat-head .bydi-ai-bubble{left:calc(100% + 8px);top:-8px}}
@media(max-width:700px){.chat-head .bydi-bot-area{grid-column:1!important;grid-row:1!important;align-self:start}.chat-head .bydi-ai-bubble{left:0;top:calc(100% + 5px);min-width:86px;max-width:105px;padding:6px 7px;font-size:10px;border-radius:14px}.bydi-ai-small{font-size:9px}.bydi-ai-bubble:before{left:18px;top:-7px;width:11px;height:11px;transform:rotate(135deg)}}
@media(max-width:390px){.chat-head .bydi-ai-bubble{min-width:76px;max-width:85px;font-size:9px;padding:5px}.bydi-ai-small{font-size:8px}}
@media(prefers-reduced-motion:reduce){.bydi-ai-bubble{animation:none}}
/* Keep the mobile switch thumb entirely inside its capsule. */
.byd-theme-toggle{box-sizing:border-box!important;overflow:hidden!important;flex-shrink:0!important}
.byd-theme-knob{flex-shrink:0!important}
html:not([data-byd-theme="light"]) .byd-theme-knob{transform:translateX(30px)!important}
@media(max-width:550px){html:not([data-byd-theme="light"]) .byd-theme-knob{transform:translateX(26px)!important}}
html[data-byd-theme="light"] .byd-theme-knob{transform:translateX(0)!important}
/* Mobile copy confirmation must not be replaced by a fixed pseudo-label. */
@media(max-width:700px){.messages .msg:not(.user)>.byd-answer-actions .byd-copy-answer.bydi-copied::after{content:'✓ Copiato!'!important;color:#16815b!important}}
.bydi-ai-overlay[hidden]{display:none!important}.bydi-ai-overlay{position:fixed;inset:0;z-index:15000;background:var(--bydi-ui-residual-07182cb5);display:grid;place-items:center;padding:18px}
.bydi-ai-dialog{position:relative;width:min(100%,440px);max-height:calc(100dvh - 36px);overflow:auto;padding:28px 24px 22px;background:linear-gradient(145deg,var(--bydi-ui-browser-choice-light-bg),var(--bydi-ui-residual-edf8ff));border:2px solid var(--bydi-ui-residual-a8d8f4);border-radius:25px;box-shadow:0 18px 60px var(--bydi-ui-residual-07172e80);color:var(--bydi-ui-residual-143758);text-align:center}
.bydi-ai-dialog img{width:112px;height:112px;object-fit:contain}.bydi-ai-dialog h2{font-size:clamp(22px,5vw,29px);margin:8px 0 12px;color:var(--bydi-ui-residual-0d3766)}.bydi-ai-dialog p{font-size:15px;line-height:1.55;margin:0 0 17px}
.bydi-ai-soon{padding:12px;border-radius:13px;background:var(--bydi-ui-residual-d8edff);font-weight:700;color:var(--bydi-ui-residual-0b5eae)}.bydi-ai-close{position:absolute;right:14px;top:12px;width:36px;height:36px;border:0;border-radius:50%;background:var(--bydi-ui-residual-e2ecf5);color:var(--bydi-ui-residual-173c62);font-size:24px;cursor:pointer}.bydi-ai-ok{width:100%;margin-top:16px;border:0;border-radius:13px;padding:13px 10px;background:var(--bydi-ui-residual-087cf0);color:var(--bydi-ui-browser-choice-light-bg);font-size:16px;font-weight:700;cursor:pointer}
