/* A quiet, standing consultant keeps the assistant easy to find. */
body.portal-preview #assistant-launcher.assistant-launcher{display:block;isolation:isolate;width:108px;height:122px;min-height:0;padding:0;left:auto;right:18px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;transition:none}
body.portal-preview #assistant-launcher.assistant-launcher:hover{background:transparent;color:inherit}
body.portal-preview #assistant-launcher.assistant-launcher:focus-visible{outline:2px solid #95668d;outline-offset:4px;border-radius:14px}
.assistant-character{position:absolute;right:0;bottom:0;display:block;width:74px;height:111px;object-fit:contain;pointer-events:none}
.assistant-speech{position:absolute;top:2px;left:7px;display:grid;justify-items:center;gap:2px;width:45px;padding:5px 3px 4px;border:1px solid #d8c4dd;border-radius:10px 10px 3px 10px;background:linear-gradient(135deg,#fffaf1,#f1e5f4);box-shadow:0 3px 9px #72527212;color:#704868;font-size:9px;font-weight:500;line-height:1.15;pointer-events:none}
.assistant-speech>span:first-child{display:grid;justify-items:center;gap:1px}.assistant-speech b{font-size:10px;font-weight:600}
.assistant-speech::after{content:"";position:absolute;right:8px;bottom:-4px;width:6px;height:6px;border-right:1px solid #d8c4dd;border-bottom:1px solid #d8c4dd;background:#f1e5f4;transform:rotate(45deg)}
.assistant-waiting{display:flex;align-items:center;justify-content:center;gap:3px;height:4px}
.assistant-waiting i{display:block;width:2px;height:2px;border-radius:50%;background:#916580}
#site-assistant .assistant-top{align-items:center;gap:6px;padding:8px 12px;flex-shrink:0}
#site-assistant .assistant-identity{display:flex;align-items:center;gap:9px;min-width:0;flex:1}
.assistant-header-character{display:block;width:43px;height:65px;object-fit:contain;flex:none}
#site-assistant .assistant-identity h2{font-size:15px;line-height:1.25;margin:0}
#site-assistant .assistant-identity p{font-size:9px;letter-spacing:1.5px;color:#827160;margin:4px 0 0;line-height:1.2}
body:has(#site-assistant[open]) #assistant-launcher{visibility:hidden}
.assistant-login-intro{display:flex;align-items:center;gap:18px;margin-bottom:18px}.assistant-login-intro>img{width:64px;height:96px;object-fit:contain;flex:none}.assistant-login-intro p{font-size:14px}.assistant-login-intro .tiny{font-size:11px}
@media(max-width:760px){
 body.portal-preview #assistant-launcher.assistant-launcher{width:94px;height:104px;right:10px}
 .assistant-character{width:64px;height:96px}
 .assistant-speech{top:0;left:3px;width:41px;padding:4px 2px 3px;font-size:8px}
 .assistant-speech b{font-size:9px}
 #site-assistant .assistant-top{padding:6px 8px;gap:4px}
 #site-assistant .assistant-identity{gap:5px}
 .assistant-header-character{width:35px;height:53px}
 #site-assistant .assistant-identity h2{font-size:13px}
 #site-assistant .assistant-top>button{min-width:32px;width:32px;min-height:36px;padding:4px}
}
@media(prefers-reduced-motion:reduce){.assistant-character,.assistant-speech,.assistant-waiting i{animation:none}}
@media print{#assistant-launcher.assistant-launcher{display:none!important}}

/* Keep conversation actions separate from the compact title controls. */
#site-assistant .assistant-chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 14px;background:#faf8f5;border-bottom:1px solid #eee5dd;flex-shrink:0}
#site-assistant .assistant-chat-toolbar .assistant-disclosure{padding:0;background:transparent;flex:1;min-width:0;line-height:1.4}
#site-assistant #assistant-clear{flex:none;width:auto;min-height:36px;padding:6px 10px;font-size:11px;line-height:1.2;white-space:nowrap;border:1px solid #e5d8ce;border-radius:9px;background:#fffdf9;color:#7b5b49;box-shadow:none}
#site-assistant #assistant-clear:hover{background:#f6ebe4;border-color:#c69c84}
#site-assistant .assistant-top>button{flex-shrink:0}
#assistant-clear-confirm{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(360px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);height:fit-content;padding:24px;border:1px solid #eaded5;border-radius:20px;background:#fffdfb;color:#3f352f;box-shadow:0 18px 65px #34241935;overflow:auto}
#assistant-clear-confirm::backdrop{background:#30271f66;backdrop-filter:blur(3px)}
#assistant-clear-confirm .assistant-clear-symbol{display:grid;place-items:center;width:42px;height:42px;margin-bottom:14px;border-radius:14px;background:#f6e9e5;color:#aa5948;font-size:28px}
#assistant-clear-confirm h2{margin:0 0 10px;font:600 19px/1.3 Arial,sans-serif;color:inherit}
#assistant-clear-confirm p{font-size:13px;line-height:1.6;margin:0 0 18px;color:#78695e}
#assistant-clear-confirm #assistant-clear-error{color:#a63c37;margin:0 0 12px}
#assistant-clear-confirm #assistant-clear-error:empty{display:none}
#assistant-clear-confirm .assistant-clear-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
#assistant-clear-confirm button{min-height:42px;padding:10px 13px;font-size:12px;font-weight:600;border:1px solid #e1d7ce;border-radius:10px;background:#fff;color:#66574b}
#assistant-clear-confirm #assistant-clear-accept{background:#ae5146;border-color:#ae5146;color:white}
#assistant-clear-confirm button:disabled{opacity:.6;cursor:wait}
@media(max-width:380px){#site-assistant .assistant-chat-toolbar{padding:7px 10px}#site-assistant .assistant-chat-toolbar .assistant-disclosure{font-size:10px}#site-assistant #assistant-clear{padding:6px 8px}}
