.eaa { --eaa-font: Lato, 'Segoe UI', Arial, sans-serif; font-family:var(--eaa-font); font-size:var(--eaa-font-size,15px); color:var(--eaa-text); line-height:1.5; text-align:left; -webkit-text-size-adjust:100%; }
.eaa *, .eaa *::before, .eaa *::after { box-sizing:border-box; }
.eaa [hidden] { display:none !important; }
.eaa button, .eaa textarea, .eaa input { font:inherit; letter-spacing:normal; text-transform:none; }
.eaa button { cursor:pointer; margin:0; box-shadow:none; min-width:44px; min-height:44px; border:0; text-decoration:none; }
.eaa button:disabled { opacity:.5; cursor:default; }
.eaa button:focus-visible, .eaa textarea:focus-visible, .eaa a:focus-visible, .eaa input:focus-visible { outline:2px solid var(--eaa-accent); outline-offset:3px; }
.eaa p { margin:0; padding:0; font:inherit; color:inherit; }
.eaa a { color:var(--eaa-accent); text-decoration:underline; }
.eaa-floating { position:fixed; bottom:max(var(--eaa-offset-y),env(safe-area-inset-bottom)); right:var(--eaa-offset-x); z-index:99990; }
.eaa-floating.eaa-left { right:auto; left:var(--eaa-offset-x); }
.eaa-launcher { display:flex; align-items:center; justify-content:center; gap:12px; background:var(--eaa-header); color:var(--eaa-header-text); border:1px solid var(--eaa-border) !important; border-radius:999px; padding:13px 22px; min-height:56px !important; box-shadow:0 5px 24px #0002 !important; transition:background .16s; }
.eaa .eaa-launcher:hover { background:var(--eaa-accent); color:var(--eaa-accent-text); }
.eaa-chat-icon { display:block; width:21px; height:17px; border:1.6px solid currentColor; border-radius:5px; position:relative; }
.eaa-chat-icon::after { content:''; position:absolute; bottom:-5px; left:4px; width:5px; height:5px; border-left:1.6px solid currentColor; transform:skewY(-35deg); }
.eaa-panel { width:var(--eaa-width); height:var(--eaa-height); max-width:100%; display:flex; flex-direction:column; background:var(--eaa-surface); border:1px solid var(--eaa-border); border-radius:var(--eaa-radius); overflow:hidden; box-shadow:0 16px 60px #0002; isolation:isolate; }
.eaa-floating .eaa-panel { position:absolute; bottom:72px; right:0; max-width:calc(100vw - 32px); max-height:calc(100dvh - var(--eaa-offset-y) - 100px); animation:eaa-enter .18s ease-out; }
.eaa-left .eaa-panel { right:auto; left:0; }
body.admin-bar .eaa-floating .eaa-panel { max-height:calc(100dvh - var(--eaa-offset-y) - 132px); }
.eaa-header { flex:none; position:relative; background:var(--eaa-header); color:var(--eaa-header-text); padding:10px 16px 8px; border-bottom:2px solid var(--eaa-accent); }
.eaa-header-top { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:44px; }
.eaa-header-identity { display:flex; align-items:center; gap:12px; min-width:0; }
.eaa .eaa-brand-logo { display:block; flex:none; width:120px; max-width:100%; height:24px; object-fit:contain; object-position:left center; border:0; border-radius:0; margin:0; box-shadow:none; }
.eaa-actions { display:flex; flex:none; gap:6px; }
.eaa .eaa-sound-hint{font-size:11px;color:var(--eaa-muted);margin-top:10px}.eaa .eaa-actions .eaa-sound{font-size:15px}
@media(max-width:600px){.eaa .eaa-brand-logo{width:88px}.eaa .eaa-title{font-size:20px}.eaa-header-identity{gap:8px}.eaa-actions{gap:2px}}
.eaa .eaa-message-files { display:grid; grid-template-columns:minmax(0,1fr); gap:4px; margin-top:7px; white-space:normal; }
.eaa .eaa-message-files .eaa-download { display:flex; align-items:center; gap:8px; width:100%; min-width:0; min-height:34px; margin:0; padding:6px 9px; border:1px solid var(--eaa-border); border-radius:7px; background:var(--eaa-surface); color:var(--eaa-text); font-size:12px; font-weight:400; line-height:1.4; text-align:left; text-decoration:none; white-space:normal; overflow-wrap:anywhere; box-shadow:none; }
.eaa .eaa-message-files .eaa-download::before { content:'↓'; flex:none; font-size:16px; line-height:1; opacity:.8; }
.eaa .eaa-message-user .eaa-message-files .eaa-download { background:#ffffff16; color:var(--eaa-accent-text); border-color:#ffffff40; }
.eaa .eaa-message-files .eaa-download:hover { filter:brightness(.94); }
.eaa .eaa-message-user .eaa-message-files .eaa-download:hover { background:#ffffff28; filter:none; }
.eaa .eaa-message-files .eaa-download:focus-visible { outline:2px solid currentColor; outline-offset:1px; }
.eaa .eaa-form .eaa-attach { display:grid; place-items:center; width:44px; height:44px; padding:0; background:transparent; color:var(--eaa-muted); border-radius:8px; }
.eaa .eaa-form .eaa-attach:hover { background:var(--eaa-surface); color:var(--eaa-accent); }
.eaa-attach svg { display:block; flex:none; width:18px; height:18px; }
.eaa-compose > [role=status] { font-size:12px; color:var(--eaa-muted); padding:4px 0; }
.eaa .eaa-attachment-notice-host { position:relative; height:0; flex:none; z-index:5; }
.eaa .eaa-attachment-notice { position:absolute; bottom:8px; left:8px; right:8px; width:fit-content; max-width:calc(100% - 16px); margin:auto; padding:9px 12px; border:1px solid #ead7af; border-radius:10px; background:#fff8e8; color:#69480d; box-shadow:0 5px 18px #0002; font-size:12px; line-height:1.4; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .25s ease,visibility .25s; }
.eaa .eaa-attachment-notice.is-visible { opacity:1; visibility:visible; }
@media(prefers-reduced-motion:reduce){.eaa .eaa-attachment-notice{transition:none}}
.eaa .eaa-files { max-height:112px; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; padding-right:4px; }
.eaa .eaa-files[data-overlayscrollbars]{display:flex}
.eaa .eaa-files > [data-overlayscrollbars-viewport]{min-height:0;max-height:100%}
.eaa .eaa-files:empty{display:none}.eaa-file-item>span>span,.eaa-file-item small{display:block}.eaa .eaa-file-ready{color:#177349;font-size:10px}.eaa .eaa-file-status{color:var(--eaa-muted);font-size:10px}
.eaa .eaa-file-item { display:flex; width:100%; align-items:center; gap:6px; padding:4px; border:1px solid var(--eaa-border); border-radius:6px; margin-top:4px; font-size:11px; }
.eaa-file-item img { width:36px; height:36px; object-fit:cover; border-radius:4px; }
.eaa-file-item span { flex:1; min-width:0; overflow-wrap:anywhere; }
.eaa .eaa-file-item button { background:transparent; color:var(--eaa-text); padding:0; }
/* Compact 32px visible controls retain separate 44px touch targets. */
.eaa .eaa-actions button { width:44px; height:44px; border:6px solid transparent; background:#ffffff08; background-clip:padding-box; color:var(--eaa-header-text); padding:0; font-family:Arial,sans-serif; font-size:20px; line-height:1; border-radius:14px; }
.eaa .eaa-actions button:hover { background-color:#ffffff1c; color:var(--eaa-header-text); }
.eaa .eaa-title { font-size:22px; line-height:1.2; font-weight:700; margin:0; padding-right:12px; border-right:1px solid #ffffff30; min-width:0; overflow-wrap:anywhere; letter-spacing:-.3px; }
.eaa .eaa-subtitle { font-size:11px; opacity:.8; line-height:1.4; margin:0; overflow-wrap:anywhere; }
.eaa-status { display:inline-flex; align-items:center; gap:7px; font-size:11px; margin-top:12px; opacity:.85; }
.eaa-status::before { content:''; width:5px; height:5px; border-radius:50%; background:currentColor; }
.eaa .eaa-conversation { flex:1 1 0; min-height:0; overflow-y:auto; overflow-anchor:none; scroll-behavior:auto; overscroll-behavior:contain; padding:16px; background:var(--eaa-canvas); scrollbar-width:thin; scrollbar-color:var(--eaa-border) transparent; }
.eaa .eaa-messages{height:auto;max-height:none;overflow:visible;flex:none}
.eaa-eyebrow { display:block; color:var(--eaa-muted); font-size:10px; line-height:1.5; font-weight:700; letter-spacing:1.2px; margin-bottom:12px; overflow-wrap:anywhere; }
.eaa .eaa-welcome { font-size:var(--eaa-font-size); line-height:1.65; }
.eaa-email-form { margin:14px 0; padding:12px; background:var(--eaa-surface); border:1px solid var(--eaa-border); border-radius:10px; }
.eaa-email-form label { display:block; font-size:13px; font-weight:700; margin-bottom:8px; }
.eaa-email-form small { font-size:11px; font-weight:400; color:var(--eaa-muted); }
.eaa-email-row { display:flex; gap:6px; flex-wrap:wrap; }
.eaa .eaa-email-row input { flex:1; min-width:120px; width:100%; min-height:44px; margin:0; padding:8px; background:var(--eaa-canvas); color:var(--eaa-text); border:1px solid var(--eaa-border); border-radius:6px; font-size:16px; }
.eaa-email-row button { padding:8px 10px; border-radius:6px; background:var(--eaa-accent); color:var(--eaa-accent-text); font-size:12px; }
.eaa .eaa-email-form p,.eaa .eaa-email-status { font-size:11px; line-height:1.5; color:var(--eaa-muted); margin-top:8px; }
.eaa .eaa-email-skip { background:transparent; color:var(--eaa-accent); padding:0; font-size:12px; text-decoration:underline; }
.eaa-suggestions { display:grid; gap:8px; margin-top:18px; }
.eaa-suggestions:empty { display:none; }
.eaa .eaa-suggestion { padding:10px 13px; background:var(--eaa-surface); color:var(--eaa-text); border:1px solid var(--eaa-border); border-radius:8px; text-align:left; font-size:13px; line-height:1.45; }
.eaa .eaa-suggestion:hover { border-color:var(--eaa-accent); color:var(--eaa-text); background:var(--eaa-surface); }
.eaa-message { display:flex; align-items:flex-start; gap:8px; margin-top:16px; }
.eaa-message:first-child { margin-top:0; }
.eaa .eaa-message-system { margin-top:16px; }
.eaa-avatar { flex:none; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--eaa-header); color:var(--eaa-header-text); font-size:12px; font-weight:700; }
.eaa .eaa-avatar.eaa-zeus-avatar { border-radius:6px; background:transparent url('zeus-icon.svg') center/contain no-repeat; }
.eaa .eaa-title.eaa-zeus-title { font-size:0; flex:none; }
.eaa .eaa-zeus-title::before { content:''; display:block; width:66px; height:20px; background:currentColor; -webkit-mask:url('zeus-wordmark.svg') center/contain no-repeat; mask:url('zeus-wordmark.svg') center/contain no-repeat; }
.eaa-message-body { min-width:0; max-width:calc(100% - 36px); }
.eaa-bubble { padding:10px 12px; border-radius:12px; white-space:pre-wrap; overflow-wrap:anywhere; background:var(--eaa-surface); border:1px solid var(--eaa-border); }
.eaa .eaa-bubble .eaa-message-link { color:inherit; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; font-weight:600; }
.eaa .eaa-bubble .eaa-message-link:hover { text-decoration-thickness:2px; }
.eaa-message-user { flex-direction:row-reverse; }
.eaa-message-user .eaa-avatar,.eaa-message-user .eaa-bubble { background:var(--eaa-accent); color:var(--eaa-accent-text); border-color:transparent; }
.eaa-message-user .eaa-avatar { background:#E6E6E6; color:#222222; }
.eaa-message time { display:block; font-size:10px; line-height:1.4; margin-top:4px; color:var(--eaa-muted); }
.eaa-message-user time { text-align:right; }
.eaa-message-thinking .eaa-bubble { background:transparent; border:0; color:var(--eaa-muted); padding:4px 0; font-size:13px; animation:eaa-thinking 1.4s ease-in-out infinite; }
.eaa-message-system .eaa-bubble { background:var(--eaa-surface); color:var(--eaa-muted); border-style:dashed; font-size:13px; }
@keyframes eaa-thinking { 0%,100% { opacity:1; } 50% { opacity:.35; } }
.eaa-compose { padding:8px 12px 4px; background:var(--eaa-surface); border-top:1px solid var(--eaa-border); flex:none; }
.eaa-consent { display:flex; align-items:center; gap:7px; color:var(--eaa-muted); font-size:11px; line-height:1.5; margin:0 0 7px; cursor:pointer; }
.eaa-consent input { flex:none; width:17px; height:17px; margin:0; accent-color:var(--eaa-accent); }
.eaa-form { display:flex; align-items:center; gap:8px; margin:0; padding:5px; border:1px solid var(--eaa-border); background:var(--eaa-canvas); border-radius:10px; }
.eaa .eaa-form textarea { resize:none; min-width:0; width:100%; height:44px; min-height:44px; max-height:100px; margin:0; padding:10px 8px; border:0; border-radius:5px; color:var(--eaa-text); background:transparent; box-shadow:none; line-height:24px; font-size:16px; }
.eaa-form textarea::placeholder { color:var(--eaa-muted); opacity:1; }
.eaa-form button { flex:none; background:var(--eaa-accent); color:var(--eaa-accent-text); border-radius:8px; width:44px; padding:0; font-family:Arial,sans-serif; font-size:25px; }
.eaa-form button:hover { background:var(--eaa-accent); color:var(--eaa-accent-text); filter:brightness(.92); }
.eaa .eaa-hint { color:var(--eaa-muted); text-align:center; font-size:10px; margin-top:8px; line-height:1.5; }
.eaa .eaa-contact { display:block; font-size:12px; text-align:center; margin-top:6px; min-height:24px; text-decoration:none; }
.eaa-credit { flex:none; display:flex; align-items:center; justify-content:center; gap:9px; background:#fff; color:#62666d; padding:5px 10px; border-top:1px solid #e4e6ea; font-family:Lato,'Segoe UI',Arial,sans-serif; font-size:10px; }
.eaa .eaa-credit img { width:120px; height:25px; object-fit:contain; margin:0; border:0; border-radius:0; box-shadow:none; }
.eaa-sr { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@keyframes eaa-enter { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
@media(max-width:600px) { .eaa-floating { right:16px; bottom:max(16px,env(safe-area-inset-bottom)); } .eaa-floating.eaa-left { left:16px; } .eaa-floating .eaa-panel { width:calc(100vw - 32px); max-height:calc(100dvh - 100px - env(safe-area-inset-bottom)); bottom:72px; } }
@media(max-width:782px) { body.admin-bar .eaa-floating .eaa-panel { max-height:calc(100dvh - 148px - env(safe-area-inset-bottom)); } }
@media(max-height:620px) { .eaa-header { padding:10px 16px; } .eaa-header-top { margin-bottom:4px; } .eaa-subtitle,.eaa-status,.eaa-eyebrow { display:none; } .eaa .eaa-title { font-size:17px; } .eaa-conversation { padding:12px 16px; } .eaa-compose { padding:8px 12px; } .eaa-credit { padding:6px; } }
@media(prefers-reduced-motion:reduce) { .eaa *, .eaa *::before,.eaa *::after { animation:none !important; transition:none !important; } }
.eaa .eaa-fallback{white-space:normal;margin-top:10px}
.eaa .eaa-fallback-options{display:flex;flex-wrap:wrap;gap:6px}
.eaa .eaa-fallback-options .eaa-external-icon{display:block;width:14px;height:14px;flex:0 0 14px;margin-inline-start:2px}
.eaa .eaa-fallback-options a,.eaa .eaa-fallback-options button{display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:34px;padding:7px 10px;border:1px solid var(--eaa-border);border-radius:8px;background:var(--eaa-surface);color:var(--eaa-text);font-size:12px;line-height:1.3;text-decoration:none}
.eaa .eaa-fallback-options a:hover,.eaa .eaa-fallback-options button:hover{border-color:var(--eaa-accent);color:var(--eaa-accent)}
.eaa .eaa-lead-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.eaa .eaa-lead-form label{display:flex;flex-direction:column;gap:3px;font-size:11px;min-width:0;color:var(--eaa-text)}
.eaa .eaa-lead-form input:not([type=checkbox]){width:100%;min-width:0;height:34px;margin:0;padding:6px 8px;border:1px solid var(--eaa-border);border-radius:6px;background:var(--eaa-surface);color:var(--eaa-text);font-size:13px;box-sizing:border-box}
.eaa .eaa-lead-form .eaa-lead-consent{grid-column:1/-1;flex-direction:row;align-items:flex-start;gap:6px;font-size:11px;line-height:1.45}
.eaa .eaa-lead-consent input{flex:none;width:14px;height:14px;min-width:14px;margin:2px 0 0;padding:0;accent-color:var(--eaa-accent)}
.eaa .eaa-lead-form button{min-height:34px;min-width:0;align-self:end;border-radius:7px;padding:7px 10px;font-size:12px;background:var(--eaa-accent);color:var(--eaa-accent-text)}
.eaa .eaa-fallback small{display:block;margin-top:8px;color:var(--eaa-muted);font-size:10px;line-height:1.5}
.eaa .eaa-lead-status:not(:empty){margin-top:8px;font-size:12px}
@media(max-width:380px){.eaa .eaa-lead-form{grid-template-columns:minmax(0,1fr)}}
.eaa .eaa-lead-form>label:nth-child(3),.eaa .eaa-lead-form>button{grid-column:1/-1}
.eaa .eaa-launcher{position:relative;overflow:visible}
.eaa .eaa-notification-badge{position:absolute;top:-5px;right:-4px;display:grid;place-items:center;width:23px;height:23px;border:2px solid #fff;border-radius:50%;background:#a01d21;color:#fff;font:700 12px/1 system-ui,sans-serif;box-shadow:0 2px 7px #0003;pointer-events:none}
.eaa .eaa-actions .eaa-minimize{font-size:22px;line-height:1}
.eaa .eaa-header-top{flex-wrap:nowrap;gap:8px;min-height:38px}
.eaa .eaa-header-identity{flex:1;flex-direction:row;align-items:center;gap:8px;overflow:hidden}
.eaa .eaa-header-identity .eaa-title{padding-right:8px;border-right:1px solid #ffffff30;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eaa .eaa-header-identity .eaa-brand-logo{flex:0 1 100px;width:100px;min-width:0;height:22px}
.eaa .eaa-actions{gap:2px;align-items:center;flex-wrap:nowrap}
.eaa .eaa-actions button{width:32px;min-width:32px;height:36px;min-height:36px;border-width:3px;border-radius:9px;font-size:17px}
.eaa .eaa-actions .eaa-sound{font-size:13px}
.eaa .eaa-actions .eaa-minimize{font-size:19px}
@media(max-width:360px){.eaa .eaa-header{padding-left:12px;padding-right:12px}.eaa .eaa-actions{gap:0}.eaa .eaa-header-identity{gap:6px}.eaa .eaa-header-identity .eaa-title{padding-right:6px}.eaa .eaa-zeus-title::before{width:52px;height:18px}}
.eaa .eaa-resolved-reply{display:block;width:100%;margin-top:14px;padding:9px 12px;border:1px solid var(--eaa-accent);border-radius:18px;background:var(--eaa-surface);color:var(--eaa-accent);font-size:12px;font-weight:600}
.eaa .eaa-resolved-reply:hover{background:var(--eaa-accent);color:var(--eaa-accent-text)}
dialog.eaa-end-dialog{box-sizing:border-box!important;width:min(410px,calc(100vw - 32px))!important;max-width:410px!important;max-height:calc(100dvh - 32px);padding:24px!important;margin:auto!important;border:1px solid #e1e3e8;border-radius:16px;background:#fff;color:#222;box-shadow:0 20px 70px #0003;font:14px/1.6 system-ui,sans-serif;text-align:left!important}
dialog.eaa-end-dialog *{box-sizing:border-box}
/* Native top-layer confirmation: independent of page scroll and theme scrollbar wrappers. */
dialog.eaa-end-dialog[open]{display:block!important;position:fixed!important;inset:0!important;height:fit-content!important;overflow:auto;visibility:visible!important;opacity:1!important;transform:none!important;animation:none!important}
.eaa-end-dialog::backdrop{background:#15151580}
dialog.eaa-end-dialog h2{font:650 22px/1.3 system-ui,sans-serif!important;color:#222!important;margin:0 0 10px!important;padding:0!important;text-align:left!important;letter-spacing:-.3px;text-transform:none!important}
dialog.eaa-end-dialog p{font:400 14px/1.6 system-ui,sans-serif!important;color:#444!important;margin:0 0 16px!important;padding:0!important;text-align:left!important}
dialog.eaa-end-dialog .eaa-end-note{font-size:12px!important;color:#626b78!important;background:transparent;padding:0!important;margin:0!important}
dialog.eaa-end-dialog .eaa-end-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:12px!important;margin:22px 0 0!important;padding:0!important;width:100%}
dialog.eaa-end-dialog button{display:block!important;width:100%!important;min-width:0!important;min-height:44px;padding:10px 12px!important;margin:0!important;border:1px solid #d4d8df;border-radius:8px;background:#fff;color:#333;box-shadow:none;font:600 13px/1.5 system-ui,sans-serif!important;text-align:center!important;text-transform:none!important;letter-spacing:normal!important;cursor:pointer}
dialog.eaa-end-dialog button:hover{background:#f6f7f9}
dialog.eaa-end-dialog .eaa-end-confirm{background:#a01d21;border-color:#a01d21;color:#fff}
dialog.eaa-end-dialog .eaa-end-confirm:hover{background:#85181c;border-color:#85181c}
.eaa-end-dialog button:focus-visible{outline:2px solid #a01d21;outline-offset:3px}
.eaa-end-dialog button:disabled{opacity:.6;cursor:wait}
