/* Pulse stays beside the work, anchored to its floating launcher. */
.copilot-drawer.pulse-popup{top:auto;right:max(24px,env(safe-area-inset-right));bottom:var(--pulse-popup-bottom,90px);width:390px;max-width:calc(100vw - 48px);height:min(560px,calc(100dvh - var(--pulse-popup-bottom,90px) - var(--pulse-popup-top,20px)));min-height:0;border:1px solid var(--line-strong,var(--line));border-radius:24px;background:var(--surface);box-shadow:0 18px 70px #00000024,0 4px 16px #00000010;overflow:hidden;transform-origin:calc(100% - 40px) calc(100% + 35px);isolation:isolate}
.pulse-popup.is-entering{animation:pulse-window-in 280ms cubic-bezier(.22,1,.36,1) both}
.pulse-popup.is-closing{animation:pulse-window-out 160ms cubic-bezier(.4,0,1,1) both;pointer-events:none}
@keyframes pulse-window-in{from{opacity:0;transform:translateY(14px) scale(.92)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes pulse-window-out{to{opacity:0;transform:translateY(10px) scale(.95)}}
.pulse-popup .copilot-drawer-header{padding:16px 16px 14px 18px;gap:10px;flex-shrink:0}
.pulse-popup .copilot-drawer-header strong{font-size:19px;letter-spacing:-.4px;gap:8px;line-height:1.4}
.pulse-popup .copilot-drawer-header strong>.icon{color:var(--accent)}
.pulse-ai-badge{font-size:10px;letter-spacing:.2px;font-weight:650;line-height:1.4;padding:3px 6px;border-radius:6px;background:var(--accent-soft);color:var(--accent)}
.pulse-popup .copilot-drawer-header small{font-size:12px;line-height:1.5;margin-top:2px}
.pulse-window-actions{display:flex;gap:2px;flex-shrink:0}
.pulse-window-actions .icon-button{width:36px;height:36px;min-width:36px;min-height:36px;border-radius:11px}
.pulse-popup .copilot-context{padding:9px 18px;font-size:11px;line-height:1.5;flex-shrink:0;display:flex;align-items:center}
.pulse-popup .chat-messages{padding:18px;gap:14px;min-height:0;overscroll-behavior:contain;scrollbar-width:thin}
.pulse-popup .chat-empty{margin:auto 0}
.pulse-popup .chat-symbol{width:42px;height:42px;border-radius:14px;margin-bottom:14px}
.pulse-popup .chat-empty h3{font-size:24px;letter-spacing:-.6px;line-height:1.2;margin:0 0 10px}
.pulse-popup .chat-empty p{font-size:13px;line-height:1.6;margin:0 0 16px}
.pulse-popup .suggestion{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;font-size:12px;min-height:42px;padding:10px 12px;margin-top:7px;border-radius:12px}
.pulse-popup .chat-bubble{font-size:13px;line-height:1.7;padding:13px 14px;overflow-wrap:anywhere}
.pulse-popup .chat-bubble.user{max-width:92%}
.pulse-popup .chat-input-area{padding:12px 14px 14px;flex-shrink:0}
.pulse-popup .chat-input-wrap{padding:5px 6px 5px 13px;border-radius:19px;transition:border-color 160ms ease,box-shadow 160ms ease}
.pulse-popup .chat-input-wrap:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.pulse-popup .chat-input-wrap input{min-width:0;min-height:34px;font-size:13px;padding:7px 0;box-shadow:none}
.pulse-popup .chat-input-wrap input:focus{outline:none;box-shadow:none!important;border:0!important}
.pulse-popup .chat-input-wrap .icon-button{width:34px;height:34px;min-width:34px;min-height:34px}
.pulse-popup .chat-input-area small{font-size:10px;line-height:1.5;margin-top:8px}
.pulse-popup .pulse-action-card{padding:14px;border-radius:15px}
.pulse-popup .pulse-action-card h4{font-size:16px;overflow-wrap:anywhere}
.pulse-popup .pulse-action-details dd{overflow-wrap:anywhere;min-width:0}
.pulse-popup .pulse-action-buttons{flex-wrap:wrap}
.pulse-popup .pulse-action-buttons .btn{min-height:40px}
.pulse-thinking{display:flex;align-items:center;gap:9px;color:var(--muted)}
.pulse-thinking-dots{display:inline-flex;gap:3px;align-items:center;flex-shrink:0}
.pulse-thinking-dots i{width:4px;height:4px;border-radius:50%;background:currentColor;animation:pulse-thinking 1.2s ease-in-out infinite}
.pulse-thinking-dots i:nth-child(2){animation-delay:120ms}.pulse-thinking-dots i:nth-child(3){animation-delay:240ms}
@keyframes pulse-thinking{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.pulse-launcher{transition:background-color 180ms ease,color 180ms ease,box-shadow 220ms ease,transform 220ms cubic-bezier(.22,1,.36,1)}
.pulse-launcher.is-open{background:var(--surface);border-color:var(--line-strong,var(--line));color:var(--accent);box-shadow:0 4px 18px #00000018}
body:has(.modal-backdrop) .pulse-popup,body:has(#team-call-layer:not(:empty)) .pulse-popup{visibility:hidden;pointer-events:none}
@media(max-width:760px){
 .copilot-drawer.pulse-popup{right:max(18px,env(safe-area-inset-right));max-width:calc(100vw - 36px);height:min(540px,calc(100dvh - var(--pulse-popup-bottom,82px) - var(--pulse-popup-top,16px)));border-radius:22px}
 .pulse-popup .copilot-drawer-header{padding:13px 12px 12px 16px}
 .pulse-popup .chat-messages{padding:16px}
 .pulse-popup .chat-input-wrap input{font-size:16px}
 .pulse-window-actions .icon-button{width:40px;height:40px;min-width:40px;min-height:40px}
 .pulse-popup .chat-input-wrap .icon-button{min-width:40px;min-height:40px}
 body:has(.sidebar.open) .pulse-popup{visibility:hidden;pointer-events:none}
}
@media(prefers-reduced-motion:reduce){
 .pulse-popup.is-entering,.pulse-popup.is-closing,.pulse-thinking-dots i{animation:none!important;transform:none!important}
 .pulse-launcher,.pulse-popup .chat-input-wrap{transition:none!important}
}
