/* The retained Sofia interface, restyled for the current editorial website. */
.eh-home .sofia-dock{--sofia-surface:var(--eh-panel);--sofia-ink:var(--eh-ink);--sofia-copy:var(--eh-muted);--sofia-border:var(--eh-line);--sofia-soft:var(--eh-soft);--sofia-accent:var(--eh-accent);position:fixed;right:24px;bottom:max(24px,env(safe-area-inset-bottom));z-index:100;color:var(--sofia-ink);font-size:14px;line-height:1.6}
.sofia-dock [hidden]{display:none!important}
.eh-home .sofia-launcher{display:flex;align-items:center;gap:11px;min-height:64px;padding:7px 19px 7px 7px;border:1px solid var(--sofia-border);border-radius:36px;background:var(--sofia-surface);color:var(--sofia-ink);box-shadow:var(--eh-shadow);transition:translate .2s,box-shadow .2s}
.eh-home .sofia-launcher:hover{translate:0 -3px;box-shadow:0 10px 30px color-mix(in srgb,var(--eh-ink) 14%,transparent)}
.sofia-launcher-portrait{display:block;width:48px;height:48px;flex:0 0 48px;border-radius:50%;overflow:hidden;background:var(--eh-soft);border:2px solid var(--sofia-surface)}
.sofia-launcher-portrait>img{width:100%;height:100%;object-fit:cover}
.sofia-launcher-copy>strong{font-size:14px;line-height:1.5;font-weight:600;white-space:nowrap}
.sofia-launcher-copy>small,.sofia-launcher>svg{display:none}
.eh-home .sofia-dock.is-at-footer .sofia-launcher{width:64px;min-width:64px;padding:7px;border-radius:50%}
.sofia-dock.is-at-footer .sofia-launcher-copy,.sofia-dock.is-open .sofia-launcher{display:none}
.eh-home .sofia-help{position:absolute;bottom:0;right:0;display:flex;flex-direction:column;width:420px;height:min(660px,calc(100dvh - 48px));max-width:calc(100vw - 48px);padding:0;background:var(--sofia-surface);color:var(--sofia-ink);border:1px solid var(--sofia-border);border-radius:22px;box-shadow:0 16px 60px color-mix(in srgb,var(--eh-ink) 17%,transparent);overflow:hidden;isolation:isolate}
.eh-home .sofia-dock.is-expanded .sofia-help{width:min(740px,calc(100vw - 48px));height:min(860px,calc(100dvh - 48px))}
.sofia-assistant-header{display:flex;align-items:center;gap:11px;padding:20px;border-bottom:1px solid var(--sofia-border);flex:0 0 auto}
.sofia-assistant-header>img{width:44px;height:44px;flex:0 0 44px;border-radius:50%;object-fit:cover}
.sofia-assistant-header>div:not(.sofia-window-controls){flex:1;min-width:0}
.eh-home #sofia-help-title{font-size:20px;font-weight:600;line-height:1.2;letter-spacing:-.025em;margin:0;color:var(--sofia-ink)}
.eh-home .sofia-assistant-header p{font-size:12px;line-height:1.5;color:var(--sofia-copy);margin:5px 0 0}
.sofia-window-controls{display:flex;align-items:center;gap:1px;flex:0 0 auto}
.sofia-window-controls button{display:grid;place-items:center;flex:0 0 32px;width:32px;height:34px;padding:6px;background:transparent;color:var(--sofia-copy);border:0;border-radius:7px}
.sofia-window-controls button:hover{background:var(--sofia-soft);color:var(--sofia-accent)}
.sofia-window-controls svg{width:19px;height:19px}
.sofia-dock.is-expanded [data-sofia-expand] svg{rotate:180deg}
.sofia-voice-toolbar{text-align:center;padding:19px 20px 7px;flex:0 0 auto}
.eh-home .sofia-voice-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 20px;min-height:48px;border:1px solid var(--sofia-border);border-radius:26px;background:var(--sofia-surface);color:var(--sofia-ink);font-size:14px;line-height:1.5;font-weight:500}
.sofia-voice-button svg{width:21px;height:21px;color:var(--sofia-accent)}
.sofia-voice-button:hover,.sofia-voice-button[aria-pressed=true]{background:var(--sofia-soft);border-color:var(--sofia-accent)}
.eh-home .sofia-connection-note{margin:13px 0 0;padding:12px 14px;text-align:left;font-size:12px;line-height:1.6;border-radius:8px;background:var(--sofia-soft);color:var(--sofia-copy)}
.sofia-conversation{flex:1;min-height:70px;padding:20px 22px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.sofia-message{max-width:100%;margin:0 0 17px;overflow-wrap:anywhere}
.eh-home .sofia-message p{font-size:15px;font-weight:400;line-height:1.8;color:var(--sofia-ink);margin:0}
.sofia-message--user{margin-left:25px;padding:10px 13px;background:var(--eh-accent-soft);border-radius:12px 12px 3px 12px}
.sofia-message--status{padding:12px 14px;background:var(--sofia-soft);border-radius:10px}
.sofia-message>a{display:inline-flex;align-items:center;font-size:12px;font-weight:550;color:var(--sofia-accent);text-decoration:underline;text-underline-offset:3px;margin-top:9px}
.sofia-topic-actions{display:flex;flex-wrap:wrap;gap:7px;margin:17px 0 5px}
.eh-home .sofia-topic-actions button{border:1px solid var(--sofia-border);border-radius:9px;background:var(--sofia-surface);color:var(--sofia-ink);font-size:12px;line-height:1.5;font-weight:500;padding:9px 11px}
.sofia-topic-actions button:hover{background:var(--sofia-soft);border-color:var(--sofia-accent)}
.sofia-compose{flex:0 0 auto;padding:14px 18px;border-top:1px solid var(--sofia-border);background:var(--sofia-surface)}
.eh-home .sofia-meeting{display:flex;align-items:center;gap:11px;padding:13px 15px;min-height:49px;background:var(--eh-button);color:var(--eh-on-button);border-radius:10px;font-size:14px;font-weight:600;line-height:1.5;margin-bottom:12px;transition:background .2s}
.sofia-meeting:hover{background:var(--eh-primary-hover)}
.sofia-meeting>svg{width:20px;height:20px}.sofia-meeting>span:last-child{margin-left:auto;font-size:19px}
.sofia-chat-form{display:flex;align-items:flex-end;gap:4px;margin:0;padding:7px 6px 7px 12px;border:1px solid var(--sofia-border);border-radius:11px;background:var(--sofia-surface)}
.sofia-chat-form:focus-within{border-color:var(--sofia-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--sofia-accent) 15%,transparent)}
.sofia-chat-form .sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.eh-home .sofia-chat-form textarea{display:block;flex:1;min-width:0;min-height:35px;height:35px;max-height:100px;margin:0;padding:6px 0;resize:none;background:transparent;border:0;outline:0;box-shadow:none;color:var(--sofia-ink);font:inherit;font-size:14px;line-height:1.6}
.sofia-chat-form textarea::placeholder{color:var(--sofia-copy);opacity:1}
.sofia-chat-form button{display:grid;place-items:center;width:32px;height:35px;flex:0 0 32px;padding:7px;border:0;border-radius:7px;background:var(--sofia-soft);color:var(--sofia-copy)}
.sofia-chat-form button>svg{width:18px;height:18px}
.sofia-chat-form [data-sofia-send]:not(:disabled){background:var(--eh-button);color:var(--eh-on-button)}
.sofia-chat-form [data-sofia-send]:disabled{opacity:.45;cursor:default}
.eh-home .sofia-api-note{font-size:11px;line-height:1.5;text-align:center;color:var(--sofia-copy);margin:10px 0 0}
.eh-home .sofia-privacy{display:flex;align-items:center;justify-content:center;gap:5px;font-size:10px;line-height:1.6;color:var(--sofia-copy);margin:6px 0 0}
.sofia-privacy a{text-decoration:underline;text-underline-offset:3px}.sofia-privacy a:hover{color:var(--sofia-accent)}
@media(max-width:600px){
 .eh-home .sofia-dock{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.eh-home .sofia-launcher{min-height:58px;padding:6px 15px 6px 6px;gap:8px}.sofia-launcher-portrait{width:44px;height:44px;flex-basis:44px}.sofia-launcher-copy>strong{font-size:13px}
 .eh-home .sofia-dock.is-at-footer .sofia-launcher{width:58px;min-width:58px;padding:6px}.eh-home .sofia-help,.eh-home .sofia-dock.is-expanded .sofia-help{width:calc(100vw - 24px);max-width:calc(100vw - 24px);height:min(660px,calc(100dvh - 24px));border-radius:18px}.eh-home .sofia-dock.is-expanded .sofia-help{height:calc(100dvh - 24px)}
 .sofia-assistant-header{padding:17px 15px;gap:10px}.sofia-assistant-header>img{width:40px;height:40px;flex-basis:40px}.eh-home #sofia-help-title{font-size:19px}.sofia-window-controls button{width:30px;flex-basis:30px;padding:6px}.sofia-voice-toolbar{padding:17px 16px 7px}.sofia-conversation{padding:17px 18px}.eh-home .sofia-message p{font-size:14px}.sofia-compose{padding:12px 14px}.eh-home .sofia-meeting{font-size:13px}.sofia-topic-actions{gap:6px}.eh-home .sofia-topic-actions button{font-size:11px;padding:9px 10px}
}
@media(prefers-reduced-motion:reduce){.sofia-dock *{animation:none!important;transition:none!important}}
/* Public text chat: allow room for verification without the unused voice toolbar. */
.sofia-assistant [data-sofia-verification]{max-width:100%;overflow:hidden}
.sofia-assistant [data-sofia-status]{font-size:12px;line-height:1.4;margin:4px 0;color:var(--muted,#667085)}
.sofia-assistant .sofia-message p{white-space:pre-wrap;overflow-wrap:anywhere}
.sofia-assistant .sofia-chat-form{grid-template-columns:1fr auto}
