/* One persistent assistant, shared with the full chat workspace. No API changes. */
.assistant-surface{display:flex;flex:1;flex-direction:column;min-height:0;min-width:0}
.assistant-launcher{position:fixed;right:24px;bottom:24px;z-index:70;display:flex;align-items:center;gap:10px;min-height:52px;padding:10px 18px;border:1px solid #edb129;border-radius:18px;background:#ffc63d;color:#181818;font:inherit;font-weight:700;box-shadow:0 6px 22px #17171718;cursor:pointer;transition:background .16s,box-shadow .16s}
.assistant-launcher:hover{background:#ffd264;box-shadow:0 8px 24px #17171724}
.assistant-launcher>svg{width:22px;height:22px;flex-shrink:0}
.assistant-launcher>span{display:flex;flex-direction:column;align-items:flex-start;line-height:1.4}
.assistant-launcher small{font-size:11px;font-weight:500}
.assistant-launcher:focus-visible,.assistant-dock-head button:focus-visible{outline:3px solid #242424;outline-offset:3px}
.assistant-floating{position:fixed;inset:auto 24px 88px auto;z-index:80;width:min(520px,calc(100vw - 48px));height:min(780px,calc(100dvh - 116px));border:1px solid #d7d7d2;border-radius:22px;box-shadow:0 24px 80px #17171724,0 4px 16px #17171710;background:#fafaf8;overflow:hidden}
.assistant-dock-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid #e4e4df;background:#ffffffec;flex-shrink:0}
.assistant-dock-head>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.assistant-dock-head strong{font-size:15px;color:#20201e}
.assistant-dock-head small{font-size:11px;color:#77776f}
.assistant-dock-actions{display:flex;gap:4px;flex-shrink:0}
.assistant-dock-head button{display:inline-flex;justify-content:center;align-items:center;min-width:40px;min-height:40px;border:1px solid transparent;border-radius:10px;background:transparent;color:#45453f;font:inherit;cursor:pointer}
.assistant-dock-head button:hover{border-color:#deded8;background:#f2f2ed}
.assistant-context{padding:9px 18px;background:#fff9e8;border-bottom:1px solid #eee4c7;color:#59533d;flex-shrink:0}
.assistant-context label{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;line-height:1.5}
.assistant-context input{accent-color:#20201e}
.assistant-context small{display:block;font-size:10px;line-height:1.5;margin-top:3px;color:#787363}
.assistant-floating .chat-workspace{background:#fafaf8;min-height:0}
.assistant-floating .chat-workspace::before,.assistant-floating .chat-workspace::after{display:none}
.assistant-floating .chat-titlebar{padding:8px 12px;gap:8px;background:#ffffffa8;min-height:42px;margin:0;border-radius:0;box-shadow:none}
.assistant-floating .chat-titlebar-title{font-size:12px}
.assistant-floating .chat-area{padding:18px 16px;gap:16px;overscroll-behavior:contain;scrollbar-width:thin}
.assistant-floating .msg{width:100%;max-width:100%;min-width:0;font-size:14px}
.assistant-floating .msg pre,.assistant-floating .msg table{max-width:100%;overflow-x:auto}
.assistant-floating .chat-input-area{padding:10px 12px 12px;background:#fafaf8;border-top:1px solid #e6e6df;flex-shrink:0;display:flex;flex-direction:column;align-items:stretch;gap:6px}
.assistant-floating .chat-toolbar{display:flex;justify-content:flex-end;width:100%;min-height:0;gap:6px;margin:0;padding:0}
.assistant-floating .chat-toolbar .auto-gear{width:auto;min-width:44px;flex:0 0 auto;min-height:30px;height:30px;background:transparent;border:0;box-shadow:none;border-radius:8px}
.assistant-floating .composer{display:flex;flex-wrap:wrap;gap:6px;width:100%;max-width:none;padding:8px;border:1px solid #d8d8d2;background:#fff;border-radius:16px;box-shadow:0 3px 12px #17171708}
.assistant-floating .composer textarea{order:-1;flex:1 0 100%;width:100%;max-width:100%;min-height:44px;max-height:150px;padding:8px;box-sizing:border-box;font-size:14px;line-height:1.6}
.assistant-floating .composer-model-label{display:inline-block;max-width:92px}
.assistant-floating .composer .send-btn{margin-left:auto}
.assistant-floating .send-btn{background:#ffc63d;color:#20201e;border-color:#e9b435;box-shadow:none}
.assistant-floating .send-btn-stop{background:#b43325;color:#fff;border-color:#b43325}
.assistant-floating .composer-hint{font-size:10px;line-height:1.5;margin:6px 4px 0;color:#83837c}
.assistant-floating .chat-empty{padding:10px 0;width:100%;min-width:0}
.assistant-floating .chat-empty-hero{margin-bottom:18px;animation:none;text-align:left}
.assistant-floating .chat-empty-icon{display:none}
.assistant-floating .chat-empty-title{font-size:23px;line-height:1.4}
.assistant-floating .chat-empty-sub{font-size:12px;line-height:1.7;margin-top:5px}
.assistant-floating .chat-empty-grid{grid-template-columns:1fr;gap:8px}
.assistant-floating .chat-empty-card{min-height:0;padding:12px;display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:2px 10px;align-items:center;background:#fff;border:1px solid #e4e4df;border-radius:12px;box-shadow:none;animation:none;transform:none}
.assistant-floating .chat-empty-card:hover{background:#fffaf0;border-color:#dbc77b;transform:none;box-shadow:none}
.assistant-floating .chat-empty-card-emoji{grid-column:1;grid-row:1/3;width:30px;height:30px;margin:0;background:#f3f1e9;color:#595749;border:0;box-shadow:none}
.assistant-floating .chat-empty-card-title{grid-column:2;font-size:13px}
.assistant-floating .chat-empty-card-list{grid-column:2;min-height:0;font-size:11px;line-height:1.5}
.assistant-floating .chat-empty-card-cta{grid-column:3;grid-row:1/3;margin:0;font-size:11px;color:#736335}
.assistant-floating .msg-user{background:transparent;border:0;box-shadow:none;padding:0}
.assistant-floating .msg-user>div{max-width:92%;background:#272725;color:#fff;border-color:#45453f;box-shadow:none;padding:12px 16px;border-radius:16px 16px 4px 16px}
.assistant-floating .msg-ai{padding:16px;background:#fff;border:1px solid #e6e6df;box-shadow:none;border-radius:16px}
.assistant-floating .pa-card{max-width:100%;min-width:0}
.assistant-task-stacked{bottom:92px!important}
/* This sibling panel sits at the main viewport bottom, outside the page's
   scroll area. Reserve real space so the launcher never covers its actions. */
.outreach-reconciliation-summary{padding-bottom:96px;max-height:45dvh;overflow-y:auto;flex-shrink:0;scroll-padding-bottom:96px}
@media(max-width:820px),(max-width:1024px) and (max-height:500px){
 .assistant-launcher{right:14px;bottom:calc(78px + env(safe-area-inset-bottom,0px));min-height:48px;padding:9px 13px;border-radius:16px;font-size:13px}
 .assistant-floating{inset:0;width:100%;height:100dvh;max-height:100dvh;border-radius:0;border:0;z-index:125;background:var(--surface)}
 .assistant-dock-head{padding:8px 12px;gap:6px}
 .assistant-context{padding:7px 12px}
 .assistant-context small{font-size:12px}
 .assistant-floating .chat-area{padding:14px 10px}
 .assistant-floating .chat-input-area{padding:8px 12px calc(12px + env(safe-area-inset-bottom,0px))}
 .assistant-dock-head button{min-height:44px;min-width:44px}
 .assistant-floating .composer textarea{font-size:16px}
 .assistant-floating .composer-model-label{max-width:68px;font-size:11px}
 .assistant-floating .chat-titlebar{padding:8px 10px}
 .assistant-task-stacked{bottom:calc(138px + env(safe-area-inset-bottom,0px))!important}
}
@media(prefers-reduced-motion:reduce){.assistant-launcher{transition:none}}

/* Geometry applies only to the desktop floating surface. Full-page chat stays in flow. */
.assistant-resize-handle{display:none}
@media(min-width:641px){
 .assistant-floating{left:var(--assistant-x,auto);top:var(--assistant-y,auto);width:var(--assistant-w,min(520px,calc(100vw - 48px)));height:var(--assistant-h,min(780px,calc(100dvh - 116px)));max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
 .assistant-floating .assistant-dock-head{cursor:grab;touch-action:none;user-select:none}
 .assistant-floating.assistant-adjusting,.assistant-floating.assistant-adjusting *{user-select:none!important}
 .assistant-floating.assistant-adjusting .assistant-dock-head{cursor:grabbing}
 .assistant-floating .assistant-resize-handle{display:block;position:absolute;z-index:5;padding:0;border:0;background:transparent;touch-action:none;min-width:0;min-height:0}
 .assistant-resize-n,.assistant-resize-s{left:20px;right:20px;height:8px;cursor:ns-resize}
 .assistant-resize-n{top:0}.assistant-resize-s{bottom:0}
 .assistant-resize-e,.assistant-resize-w{top:20px;bottom:20px;width:8px;cursor:ew-resize}
 .assistant-resize-e{right:0}.assistant-resize-w{left:0}
 .assistant-resize-ne,.assistant-resize-nw,.assistant-resize-se,.assistant-resize-sw{width:20px;height:20px}
 .assistant-resize-ne{top:0;right:0;cursor:nesw-resize}.assistant-resize-nw{top:0;left:0;cursor:nwse-resize}
 .assistant-resize-se{bottom:0;right:0;cursor:nwse-resize}.assistant-resize-sw{bottom:0;left:0;cursor:nesw-resize}
 .assistant-resize-se::after{content:'';position:absolute;width:7px;height:7px;right:7px;bottom:7px;border-right:2px solid #777;border-bottom:2px solid #777}
 .assistant-resize-handle:focus-visible,.assistant-floating .assistant-dock-head:focus-visible{outline:2px solid #806000;outline-offset:-3px}
}
