.home-eva-chat { display:flex; justify-content:center; grid-column:1 / -1; }
.eva-chat-launch { display:flex; align-items:center; gap:12px; width:min(100%,380px); padding:10px 18px; border:1px solid var(--line); border-radius:var(--radius-l); background:var(--paper); text-align:left; color:var(--ink); }
.eva-chat-launch img { width:48px; height:58px; object-fit:contain; }
.eva-chat-launch span { flex:1; min-width:0; }
.eva-chat-launch strong,.eva-chat-launch small { display:block; }
.eva-chat-launch small { margin-top:4px; color:var(--muted); font-size:var(--text-12); }
.eva-chat-launch > svg { width:18px; color:var(--accent); }
#eva-chat-dialog { padding:0; width:620px; max-width:calc(100vw - 28px); height:min(760px,calc(100dvh - 40px)); max-height:calc(100dvh - 40px); overflow:hidden; }
.eva-chat-screen { height:100%; display:flex; flex-direction:column; }
.eva-chat-header { display:flex; align-items:center; gap:12px; padding:12px 18px; border-bottom:1px solid var(--line); flex-shrink:0; }
.eva-chat-header img { width:42px; height:56px; object-fit:contain; }
.eva-chat-header h2 { margin:0; font-size:var(--text-20); }
.eva-chat-header p { margin:2px 0 0; color:var(--muted); font-size:var(--text-12); }
.eva-chat-header > button { margin-left:auto; }
.eva-chat-messages { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:18px; }
.eva-chat-welcome { max-width:400px; margin:16px auto; }
.eva-chat-welcome h3 { margin:0 0 12px; font-size:var(--text-20); }
.eva-chat-welcome p { line-height:1.6; color:var(--muted); }
.eva-chat-welcome > div { display:grid; gap:8px; margin:20px 0; }
.eva-chat-welcome button { padding:12px; border:1px solid var(--line); border-radius:var(--radius-m); background:var(--paper); text-align:left; font:inherit; }
.eva-chat-welcome > small { color:var(--muted); font-size:var(--text-12); }
.eva-chat-bubble { max-width:92%; padding:12px 14px; margin:0 0 14px; border-radius:var(--radius-l); overflow-wrap:anywhere; }
.eva-chat-bubble.is-user { margin-left:auto; background:var(--tint); }
.eva-chat-bubble.is-eva { margin-right:auto; background:var(--surface); }
.eva-chat-bubble p { margin:0; white-space:pre-wrap; line-height:1.55; }
.eva-chat-bubble small { display:block; margin-top:6px; color:var(--muted); }
.eva-chat-bubble small svg { width:14px; height:14px; vertical-align:middle; }
.eva-chat-speaker { display:block; margin-bottom:6px; color:var(--accent); font-size:var(--text-12); font-weight:600; }
.eva-chat-bubble summary { cursor:pointer; padding:10px 0 0; font-size:var(--text-12); color:var(--accent); }
.eva-chat-fact { margin-top:10px; padding-top:10px; border-top:1px solid var(--line); font-size:var(--text-13); }
.eva-chat-fact p { margin-top:8px; }
.eva-chat-status { color:var(--muted); font-size:var(--text-13); }
.eva-chat-compose { flex-shrink:0; padding:12px 18px max(12px,env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:var(--paper); }
.eva-chat-compose textarea { width:100%; min-height:60px; max-height:140px; resize:vertical; padding:10px 12px; border:1px solid var(--line); border-radius:var(--radius-m); font:inherit; font-size:16px; background:var(--paper); color:var(--ink); }
.eva-chat-send-row { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:8px; }
.eva-chat-send-row .button { min-height:44px; }
.eva-chat-error { font-size:var(--text-13); margin:0 0 8px; color:var(--danger,#a73838); }
.eva-chat-photos { display:flex; gap:8px; overflow-x:auto; }
.eva-chat-photos figure { position:relative; flex:none; margin:0 0 8px; }
.eva-chat-photos img { display:block; width:60px; height:60px; object-fit:cover; border-radius:8px; }
.eva-chat-photos button { position:absolute; top:0; right:0; display:grid; place-items:center; width:28px; height:28px; padding:4px; border:1px solid var(--line); border-radius:50%; background:var(--paper); }
.eva-chat-photos button svg { width:16px; height:16px; }
@media(max-width:650px){#eva-chat-dialog { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; margin:0; border:0; border-radius:0; }.eva-chat-bubble{max-width:96%}.eva-chat-header{padding-top:max(10px,env(safe-area-inset-top))}}

.account-staff-page > .home-eva-chat { margin:20px 0; }
.eva-chat-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.eva-chat-actions button { max-width:100%; padding:9px 12px; border:1px solid var(--line); border-radius:var(--radius-m); background:var(--paper); color:var(--accent); text-align:left; font:inherit; font-size:var(--text-13); }
.eva-chat-proposal { margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.eva-chat-proposal > p { margin-top:8px; }
.eva-chat-proposal .button { margin-top:12px; white-space:normal; }
