/* VALORA Focus Chat — loaded after original CSS; does not change backend behavior. */
.welcome[hidden],.conversation[hidden],.chat-actions-dock[hidden],.chat-actions-panel[hidden]{display:none!important}
.assistant-avatar{width:42px!important;height:42px!important;min-width:42px!important;display:flex;align-items:center;justify-content:center;padding:0!important;overflow:hidden;border-radius:50%;background:#120c1f;border:1.5px solid #e9bc68!important;box-shadow:0 0 0 3px #9d5ce51b,0 0 20px #dca65442!important}
.assistant-avatar img{width:100%;height:100%;display:block;object-fit:cover;object-position:center;border-radius:50%}
.new-chat-top{display:none;align-items:center;justify-content:center;gap:7px;border:1px solid #76549b;background:linear-gradient(130deg,#2e1c49,#1d1332);color:#efddff;border-radius:10px;padding:8px 13px;font-size:12px;font-weight:650;white-space:nowrap;min-height:36px;cursor:pointer;transition:background .18s,border-color .18s}
.new-chat-top:hover{border-color:#c6a0f5;background:#382351}
.new-chat-top span:first-child{font-size:19px;line-height:1}
body.chat-active .new-chat-top{display:inline-flex}
body.chat-active .main{min-width:0;width:100%;flex:1}
body.chat-active .welcome{display:none!important}
body.chat-active .conversation{width:min(925px,calc(100% - 62px));max-width:925px;padding:31px 8px 26px;gap:26px;margin:0 auto;scroll-padding-bottom:30px}
body.chat-active .message.assistant{max-width:100%;gap:15px}
body.chat-active .message-content{max-width:100%;overflow-wrap:anywhere}
body.chat-active .composer-area{width:min(940px,calc(100% - 58px));margin-bottom:12px}
body.chat-active .suggestions{display:none!important}
body.chat-active .disclaimer{margin-top:8px}
/* The original feature cards are moved into this unobtrusive bottom drawer. */
.chat-actions-dock{width:100%;margin:8px auto 0;position:relative;z-index:2}
.chat-actions-toggle{display:inline-flex;align-items:center;gap:7px;color:#c3b1d8;font-size:11px;border:1px solid #5e4873;border-radius:100px;padding:7px 12px;background:#150d25e6;line-height:1.3}
.chat-actions-toggle:hover,.chat-actions-toggle[aria-expanded="true"]{border-color:#b98ae8;background:#29183d;color:#fff}
.dock-chevron{transition:transform .2s}
.chat-actions-toggle[aria-expanded="true"] .dock-chevron{transform:rotate(180deg)}
.chat-actions-panel{padding:12px 0 3px}
.chat-actions-panel .features{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-start;width:100%}
.chat-actions-panel .feature{width:calc(25% - 7px);min-width:0;min-height:70px;display:flex;flex-direction:row;gap:9px;padding:11px 10px;border-radius:12px;align-items:center;justify-content:flex-start;text-align:left;flex-wrap:wrap}
.chat-actions-panel .feature>span{width:28px;height:28px;min-width:28px;border-radius:9px}
.chat-actions-panel .feature>span .v-icon{width:17px;height:17px}
.chat-actions-panel .feature strong{font-size:11.5px;line-height:1.3}
.chat-actions-panel .feature small{display:none}
/* On desktop hide the old sidebar in chat mode, keeping a togglable nav drawer. */
@media(min-width:761px){
 body.chat-active .sidebar{position:fixed;left:0;top:0;bottom:0;width:268px;max-height:100dvh;transform:translateX(-105%);transition:transform .23s ease;z-index:7;box-shadow:16px 0 44px #0009;overflow-y:auto}
 body.chat-active .sidebar.open{transform:translateX(0)}
 body.chat-active .overlay.open{display:block;position:fixed;inset:0;background:#0009;z-index:6}
 body.chat-active #menuBtn{display:inline-flex;align-items:center;justify-content:center;font-size:22px;min-width:38px;height:38px;border-radius:10px;border:1px solid #58426c;color:#e5d1ff;margin-right:6px}
 body.chat-active header{padding-left:clamp(22px,4vw,60px)}
}
@media(max-width:760px){
 body.chat-active .conversation{width:calc(100% - 20px);padding:19px 4px 20px;gap:21px}
 body.chat-active .composer-area{width:calc(100% - 20px);margin-bottom:calc(6px + env(safe-area-inset-bottom))}
 body.chat-active header{padding:0 11px}
 body.chat-active .header-left{gap:7px;min-width:0}
 body.chat-active .header-left small{font-size:7px}
 body.chat-active .new-chat-top{font-size:0;padding:5px 9px;min-width:34px;min-height:34px}
 body.chat-active .new-chat-top-label{display:none}
 body.chat-active .new-chat-top span:first-child{font-size:22px}
 body.chat-active .assistant-avatar{width:36px!important;height:36px!important;min-width:36px!important}
 body.chat-active .message.assistant{gap:10px}
 body.chat-active .message{font-size:14px;line-height:1.65}
 body.chat-active .compose-bottom{flex-wrap:nowrap;align-items:center;gap:7px}
 body.chat-active .tools{display:flex;flex:1 1 auto;min-width:0;max-width:calc(100% - 52px);flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:3px;scrollbar-width:none}
 body.chat-active .tools::-webkit-scrollbar{display:none}
 body.chat-active .tool{flex:none;padding:8px 10px;min-height:35px;white-space:nowrap}
 body.chat-active .tools>.tool span:not([data-icon]),body.chat-active .tools>.valora-attach span:not([data-icon]){display:none}
 body.chat-active .model-picker{flex:0 0 auto}
 body.chat-active .model-picker select{min-width:90px;max-width:118px;font-size:11px}
 body.chat-active .send-area{flex:0 0 44px;min-width:44px;justify-content:flex-end}
 body.chat-active .typing-status{display:none}
 body.chat-active .composer{padding:11px 12px 8px;border-radius:17px}
 body.chat-active .composer textarea{min-height:36px;font-size:15px}
 .chat-actions-panel .features{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;gap:8px;padding-bottom:5px;scroll-snap-type:x proximity;scrollbar-width:thin}
 .chat-actions-panel .feature{min-width:166px;flex:0 0 166px;max-width:166px;min-height:69px;scroll-snap-align:start}
 .chat-actions-toggle{font-size:11px;padding:7px 10px}
 body.chat-active .disclaimer{font-size:9px}
}
@media(max-width:380px){body.chat-active .header-left small{display:none}body.chat-active .new-chat-top{padding:4px 7px}}
@media(prefers-reduced-motion:reduce){body.chat-active .sidebar,.dock-chevron{transition:none}}

/* Softer reading canvas and a small speaker label keep the response in focus. */
.assistant-speaker{font-size:10px;line-height:1;letter-spacing:.17em;color:#dbb1ff;font-weight:750;margin:4px 0 11px}
body.chat-active .main{background:radial-gradient(ellipse at 95% -15%,#211331 0,transparent 42%),#0b0916}
body.chat-active .main::before{opacity:.16;animation:none}
body.chat-active .message.assistant .md{line-height:1.72}
