/* The original avatar and brand copy form one continuous assistant area. */
body>header:has(>#workspaceAssistantRegion){flex-wrap:nowrap}
.assistant-brand-region{position:relative;display:block;flex:0 1 auto;max-width:860px;min-width:0}
.assistant-brand-region:not(:has(>.assistant-surface))>.brand{display:flex;width:auto;height:auto;min-width:0;border-radius:0}
.assistant-surface{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:13px;align-items:center;width:100%;min-width:0;color:#24353b}
.assistant-surface>.brand{display:block;position:relative;width:44px;min-width:44px;height:44px;border-radius:50%;outline-offset:6px}
.assistant-surface-floating{position:fixed;z-index:130;align-items:start;padding:var(--assistant-surface-padding,12px);max-height:var(--assistant-surface-max-height,calc(100dvh - 24px));overflow:hidden;border:0;border-radius:24px;background:#fff;max-width:calc(100dvw - 24px);box-shadow:inset 0 0 0 1px #dce6e1,0 10px 32px #173e331f;isolation:isolate}
.assistant-surface-floating.assistant-region-open,.assistant-surface-floating.assistant-introduction-visible{border-radius:18px;grid-template-rows:44px minmax(0,1fr);row-gap:14px}
.assistant-surface-floating .assistant-content{min-height:0;overflow:hidden}
.assistant-surface-floating>.workspace-assistant,.assistant-surface-floating>.assistant-introduction{grid-column:1/-1;align-self:stretch;height:100%;max-height:100%}
.brand.assistant-trigger{cursor:pointer}.brand.assistant-trigger:hover{color:inherit}.brand.assistant-trigger:focus-visible{outline:2px solid var(--action,#2563eb)}
.assistant-surface:not(.assistant-surface-floating){border-radius:12px;outline:1px solid transparent;outline-offset:7px}
@media(min-width:761px) and (pointer:fine),(min-width:1025px){.assistant-surface:not(.assistant-surface-floating){outline-offset:11px}}
.assistant-surface:not(.assistant-surface-floating):has(.assistant-trigger):focus-within{outline-color:var(--action,#2563eb)}
@media(hover:hover){.assistant-surface:not(.assistant-surface-floating):has(.assistant-trigger):hover{outline-color:var(--action,#2563eb)}.assistant-surface-floating:has(.assistant-trigger):hover{box-shadow:inset 0 0 0 1px #b1c8f8,0 10px 32px #173e331f}}
.assistant-content{display:flex;flex-direction:column;min-width:0;min-height:0;max-width:800px}.assistant-content-head{flex-shrink:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;min-height:44px;align-items:center}
.assistant-copy-trigger{display:block;min-width:0;width:100%;padding:0;border:0;border-radius:0;background:transparent;color:#263a32;font:inherit;text-align:left;line-height:1.4}
.assistant-copy-trigger:hover,.assistant-copy-trigger:disabled{background:transparent;opacity:1}.assistant-copy-trigger:disabled{cursor:default}.assistant-copy-trigger:focus-visible{outline:2px solid var(--action,#2563eb);outline-offset:4px;border-radius:3px}
.assistant-copy-trigger>span{display:block;min-width:0}.assistant-surface #brandTitle{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px;font-weight:700;line-height:1.45}
.assistant-copy-trigger small{display:block;font-size:11px;font-weight:400;color:#61736c;margin-top:5px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.assistant-copy-trigger .assistant-brand-preview{color:#536b61;font-size:13px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;margin-top:4px}
/* The avatar stays at its original anchor. Only the content on its right turns
   into a short message; the real header never takes part in this expansion. */
.assistant-surface-floating.assistant-region-dynamic{overflow:visible;box-shadow:none;background:transparent;animation:none}
.assistant-region-dynamic .assistant-content{overflow:visible}
.assistant-speech{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-width:0;min-height:44px;padding:11px 14px;border:1px solid #cbdcf5;border-radius:16px;background:#f1f6ff;box-shadow:0 4px 16px #1e4a7a12;color:#243b55;text-align:left;font:inherit;font-size:14px;line-height:1.6}
.assistant-speech::before{content:'';position:absolute;left:-5px;top:17px;width:8px;height:8px;transform:rotate(45deg);border-left:1px solid #cbdcf5;border-bottom:1px solid #cbdcf5;background:#f1f6ff}
.assistant-speech:hover{background:#eaf2ff;border-color:#aac8f1}.assistant-speech:hover::before{background:#eaf2ff;border-color:#aac8f1}
.assistant-speech:focus-visible{outline:2px solid var(--action,#2563eb);outline-offset:3px}
.assistant-speech-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;min-width:0;flex:1}
.assistant-speech-action{flex-shrink:0;font-size:12px;color:#5276a6;white-space:nowrap}
@media(prefers-reduced-motion:no-preference){.assistant-speech-enter{animation:assistant-speak .32s cubic-bezier(.2,.7,.2,1) backwards}@keyframes assistant-speak{from{opacity:0;clip-path:inset(-8px 100% -8px -8px);transform:translateX(-5px)}to{opacity:1;clip-path:inset(-8px -8px -8px -8px);transform:translateX(0)}}}
@media(prefers-reduced-motion:reduce){.assistant-speech-enter{animation:none}}
.assistant-unread-dot{position:absolute;top:-2px;right:-2px;width:9px;height:9px;border:2px solid #fff;border-radius:50%;background:var(--action,#2563eb)}
.assistant-surface>.brand>.assistant-pending-badge{position:absolute;top:-5px;right:-6px;display:flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 4px;border:2px solid #fff;border-radius:12px;background:#cf3f49;color:#fff;font-size:11px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums;pointer-events:none}
.assistant-region-dynamic .brand-avatar{outline:1px solid var(--action,#2563eb);outline-offset:3px}
.assistant-inline-tools{display:flex;align-items:center;gap:2px;flex-shrink:0}
.assistant-inline-tools button{border:0;background:transparent;color:#61736c;font-size:12px;min-height:32px;padding:5px 7px;border-radius:6px;white-space:nowrap}
.assistant-inline-tools button:hover{background:#f0f6f3;color:#14745c}.assistant-inline-tools button[aria-pressed="true"]{color:#14745c;background:#edf5f1}
.assistant-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.workspace-assistant{flex:0 1 auto;position:static;width:100%;max-width:100%;min-width:0;height:auto;min-height:0;margin:0;padding:0;display:flex;flex-direction:column;overflow:hidden;background:transparent;color:#24353b;font-size:14px;line-height:1.65;border:0;border-radius:0;box-shadow:none}
.assistant-connection-status{margin:0 0 6px;padding:0;color:#61736c;font-size:12px;line-height:1.5;flex-shrink:0}
.assistant-messages{flex:0 1 auto;min-height:0;max-height:280px;overflow-y:auto;overscroll-behavior:contain;scroll-padding:8px;padding:0 6px 8px 0;outline-offset:-2px;background:transparent}
.assistant-history-mode .assistant-messages{height:280px;max-height:280px}
.assistant-start{padding:0}.assistant-start h3{display:none}.assistant-start p{font-size:14px;line-height:1.7;color:#61736c;margin:0 0 8px}.assistant-suggestions{display:flex;flex-wrap:wrap;gap:6px}.assistant-suggestions button{font-size:12px;padding:5px 9px;background:#fff;border-color:var(--line,#e2e8e6);min-height:30px}
.assistant-message{margin:0 0 14px;min-width:0}.assistant-message:last-child{margin-bottom:0}.assistant-message-meta{display:flex;align-items:center;gap:8px;margin:0 0 3px;color:#61736c;font-size:11px}.assistant-message-meta time{margin-left:auto;font-size:11px}.assistant-message-source{font-size:10px;color:#7b8a82}
.assistant-message-body{padding:0;overflow-wrap:anywhere;word-break:break-word;border:0;border-radius:0;background:transparent}.assistant-message-body p{margin:0;font-size:14px;line-height:1.7;white-space:pre-wrap}.assistant-message-body p+p{margin-top:4px}
.assistant-message-user .assistant-message-body,.assistant-message-user .assistant-message-body p{color:#61736c;font-size:13px}.assistant-region-open:not(.assistant-history-mode) .assistant-message-meta{display:none}
.assistant-history-mode .assistant-message{padding-bottom:10px;border-bottom:1px solid var(--line,#e2e8e6)}.assistant-history-mode .assistant-message:last-child{border-bottom:0;padding-bottom:0}
.assistant-message-state{display:block;color:#61736c;font-size:11px;line-height:1.6;margin-top:4px}.assistant-inline-link{display:inline;border:0;border-bottom:1px solid currentColor;border-radius:0;padding:0;background:transparent;color:#14745c;font-size:inherit;line-height:inherit;text-align:left}.assistant-inline-link:hover{background:transparent;color:#0e5f4b}
.assistant-proposal-actions{display:flex;gap:8px;margin-top:7px}.assistant-proposal-actions button{min-height:32px;padding:5px 11px;font-size:13px}
.assistant-composer{display:flex;flex-direction:column;align-items:stretch;gap:10px;flex-shrink:0;padding:12px;margin:10px 0 0;border:1px solid #d7e0dc;border-radius:12px;background:#fafcfb}
.assistant-composer:focus-within{border-color:#82aaf3;box-shadow:0 0 0 2px #2563eb0c}
.assistant-composer textarea{display:block;width:100%;height:80px;max-height:150px;min-height:72px;resize:vertical;border:0;border-radius:0;padding:0;color:#24353b;background:transparent;font:inherit;line-height:1.65;outline:none;box-shadow:none}
.assistant-composer textarea:focus-visible{outline:none;box-shadow:none}
.assistant-composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}.assistant-composer-bottom small{font-size:11px;color:#718178;line-height:1.5;margin:0}.assistant-send{min-width:68px;min-height:36px;font-size:13px;padding:7px 16px;flex-shrink:0;margin-left:auto}
.assistant-recovery{display:flex;align-items:center;gap:8px;justify-content:space-between;padding:6px 0;color:#7a5b2d;font-size:12px;line-height:1.5;flex-shrink:0}.assistant-recovery button{flex-shrink:0;font-size:12px;padding:5px 8px;min-height:30px}
.assistant-message-retired .assistant-message-body,.assistant-message-retired .assistant-inline-link{color:#75837c}
.assistant-new-message{flex-shrink:0;align-self:start;border:0;border-radius:0;background:transparent;color:#14745c;font-size:12px;line-height:1.5;padding:4px 0;min-height:28px;text-align:left}
.assistant-activity-list{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px;max-height:70px;overflow:auto;flex-shrink:0}.assistant-entry-choice{font-size:12px;padding:5px 9px;min-height:30px;text-align:left;border-color:#d8e5ef;background:#f7fbff;overflow-wrap:anywhere}.assistant-entry-context{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0;padding:4px 0;font-size:12px;line-height:1.5;color:#526d80}.assistant-entry-context button{border:0;background:transparent;font-size:11px;padding:4px 6px;min-height:28px;flex-shrink:0}.assistant-entry-prompt{margin:0;font-size:14px;line-height:1.7}
@media(max-width:760px),(pointer:coarse) and (max-width:1024px){
 .assistant-brand-region{flex:1 1 0;max-width:100%}
 /* A desktop-sized placeholder must adopt the phone's normal 44px brand row
    when a floating conversation stays open across rotation. */
 .assistant-brand-region:not(:has(>.assistant-surface)){height:44px!important}
 .assistant-surface{column-gap:10px}.assistant-surface-floating{max-width:calc(100dvw - 16px)}.assistant-content-head{gap:2px}.assistant-surface #brandTitle{font-size:15px}.assistant-copy-trigger small{font-size:11px}.assistant-copy-trigger .assistant-brand-preview{font-size:13px;line-height:1.55;-webkit-line-clamp:2}.assistant-region-open #brandTitle{font-size:15px}
 .assistant-inline-tools{gap:0}.assistant-inline-tools button{font-size:12px;min-width:40px;min-height:44px;padding:6px 4px}
 .workspace-assistant{margin:0}.assistant-messages{max-height:210px;padding-right:3px;scroll-padding:4px}.assistant-history-mode .assistant-messages{height:250px;max-height:250px}
 .assistant-message-body p{font-size:14px;line-height:1.65}.assistant-message-user .assistant-message-body p{font-size:13px}.assistant-message-meta,.assistant-message-meta time{font-size:12px}.assistant-message-source{font-size:11px}.assistant-message-state{font-size:12px}.assistant-inline-link{min-height:44px}
 .assistant-start p{font-size:14px}.assistant-suggestions button,.assistant-proposal-actions button,.assistant-entry-choice{min-height:44px;font-size:13px}.assistant-proposal-actions button{padding:7px 12px}.assistant-activity-list{max-height:80px;margin-bottom:5px}
 .assistant-surface-floating.assistant-region-open,.assistant-surface-floating.assistant-introduction-visible{row-gap:12px}.assistant-composer{padding:10px;gap:10px;margin-top:8px}.assistant-composer textarea{font-size:16px;height:80px;min-height:72px;max-height:120px;resize:none}.assistant-send{font-size:14px;min-width:68px;min-height:44px;padding:9px 14px}.assistant-composer-bottom small{font-size:11px}.assistant-recovery{font-size:12px}.assistant-recovery button{min-height:44px;font-size:12px}.assistant-entry-context{font-size:12px}.assistant-entry-context button{min-height:36px}
}
@media(prefers-reduced-motion:no-preference){.assistant-region-busy .brand-avatar{animation:assistant-live-line 1.5s ease-in-out infinite}@keyframes assistant-live-line{0%,100%{outline-color:#2563eb}50%{outline-color:#9dbcf6}}}
@media(prefers-reduced-motion:reduce){.assistant-region-busy .brand-avatar{animation:none;outline-color:#2563eb}}

/* The visual viewport can shrink under a software keyboard. Preserve the form
   controls and let message history yield first; never resize the real header. */
.assistant-surface-short .assistant-content-head{min-height:32px}
.assistant-surface-short .assistant-inline-tools button{min-height:32px}
.assistant-surface-short.assistant-region-open,.assistant-surface-short.assistant-introduction-visible{grid-template-rows:32px minmax(0,1fr);row-gap:6px}
.assistant-surface-short .workspace-assistant{margin:0}
.assistant-surface-short .assistant-composer{padding:6px 8px;gap:4px;margin-top:4px}
.assistant-surface-short .assistant-composer textarea{height:38px;min-height:38px;max-height:50px}
.assistant-surface-short .assistant-send{min-height:38px;padding-top:6px;padding-bottom:6px}
.assistant-surface-short .assistant-composer-bottom small,.assistant-surface-short .assistant-entry-context{display:none}
.assistant-surface-short .assistant-composer-bottom{justify-content:flex-end}
.assistant-surface-short .assistant-activity-list{max-height:44px;margin-bottom:3px}
@media(prefers-reduced-motion:no-preference){.assistant-surface-floating{animation:assistant-surface-appear .15s ease-out}@keyframes assistant-surface-appear{from{opacity:.78}to{opacity:1}}}

/* First visit guidance is part of the same brand surface, never a fake chat. */
.assistant-introduction{display:flex;flex-direction:column;min-width:0;min-height:0;gap:16px;overflow-y:auto;overscroll-behavior:contain;padding:0 2px 2px}
.assistant-introduction-copy{font-size:14px;line-height:1.8;color:#364d42;margin:0}
.assistant-introduction-heading{font-size:13px;line-height:1.7;color:#61736c;margin:-6px 0 -6px}
@media(prefers-reduced-motion:no-preference){.assistant-surface-floating.assistant-introduction-enter{animation:assistant-introduction-open .42s cubic-bezier(.2,.7,.2,1) backwards}@keyframes assistant-introduction-open{from{opacity:.35;clip-path:inset(0 calc(100% - 80px) calc(100% - 68px) 0 round 24px)}to{opacity:1;clip-path:inset(0 0 0 0 round 18px)}}}
@media(prefers-reduced-motion:reduce){.assistant-surface-floating.assistant-introduction-enter{animation:none}}
.assistant-introduction-states{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.assistant-state-item{display:grid;grid-template-columns:16px minmax(0,1fr);gap:10px;align-items:start;font-size:13px;line-height:1.7;color:#61736c}
.assistant-state-mark{display:block;width:10px;height:10px;margin:6px 0 0 2px;border:1px solid #739ee9;border-radius:50%}
.assistant-state-mark[data-state="message"]{background:#739ee9;border-color:#739ee9}
.assistant-state-mark[data-state="pending"]{width:16px;height:16px;margin:3px 0 0 -1px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:#cf3f49;color:#fff;font-size:10px;font-weight:600;line-height:1}
.assistant-state-mark[data-state="conversation"]{border-radius:3px}
.assistant-state-item small{display:block;font-size:13px;line-height:1.7;color:#61736c;margin-top:2px}
.assistant-introduction-states strong{font-size:13px;font-weight:600;color:#24353b}
.assistant-introduction-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:2px}
.assistant-introduction-actions button{min-height:36px;padding:7px 14px;font-size:13px}
.assistant-introduction-actions button:not(.primary){border-color:transparent;background:transparent;color:#61736c}
@media(max-width:760px),(pointer:coarse) and (max-width:1024px){.assistant-introduction{gap:14px}.assistant-introduction-states{gap:10px}.assistant-introduction-actions button{min-height:44px;font-size:14px}}
@media(hover:hover){.assistant-surface:not(.assistant-surface-floating){transition:outline-color .16s ease-out}}
@media(prefers-reduced-motion:reduce){.assistant-surface:not(.assistant-surface-floating){transition:none}}
