.chat-tray{bottom:0;right:var(--minichat-open-width,0px);pointer-events:none;z-index:var(--z-chat-shell);align-items:flex-end;gap:8px;padding:0 12px 12px 0;transition:right .3s;display:flex;position:fixed}.chat-tray>*{pointer-events:auto}.chat-tray__bubbles{flex-direction:column-reverse;flex-shrink:0;align-items:center;gap:8px;display:flex}.chat-tray__windows{flex-direction:row-reverse;align-items:flex-end;gap:8px;display:flex}.chat-tray-bubble-item{flex:none;width:48px;height:48px;position:relative}.chat-tray-bubble{border:1px solid var(--border);background:var(--popover);width:48px;min-width:48px;height:48px;min-height:48px;box-shadow:0 4px 12px color-mix(in oklch, var(--background) 32%, transparent);cursor:pointer;border-radius:50%;flex-shrink:0;padding:0;transition:transform .15s,background-color .15s;position:relative}.chat-tray-bubble:hover{background:var(--muted);transform:translateY(-1px)}.chat-tray-bubble:active{transform:translateY(0)}.chat-tray-bubble__avatar{border-radius:inherit;-o-object-fit:cover;object-fit:cover;width:100%;height:100%;display:block}.chat-tray-bubble__fallback{border-radius:inherit;width:100%;height:100%;color:var(--foreground);background:var(--muted);justify-content:center;align-items:center;font-size:14px;font-weight:600;display:flex}.chat-tray-bubble__ai-icon{border-radius:inherit;width:100%;height:100%;color:var(--foreground);justify-content:center;align-items:center;display:flex}.chat-tray-bubble__unread{background:var(--destructive);min-width:18px;height:18px;color:var(--destructive-foreground,white);font-variant-numeric:tabular-nums;border:2px solid var(--background);border-radius:999px;justify-content:center;align-items:center;padding:0 4px;font-size:.75rem;font-weight:700;line-height:1;display:flex;position:absolute;top:-2px;right:-2px}.chat-tray-bubble__close{cursor:pointer;isolation:isolate;opacity:0;width:44px;min-width:44px;height:44px;min-height:44px;color:var(--muted-foreground);background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;transition:opacity .15s;display:flex;position:absolute;top:-8px;right:-8px}.chat-tray-bubble__close:before,.chat-tray-mobile__close:before{content:"";z-index:0;background:var(--muted);border-radius:999px;position:absolute;inset:10px}.chat-tray-bubble__close svg,.chat-tray-mobile__close svg{z-index:1;position:relative}.chat-tray-bubble-item:hover .chat-tray-bubble__close,.chat-tray-bubble-item:focus-within .chat-tray-bubble__close{opacity:1}.chat-tray-bubble__close:hover{color:var(--destructive-foreground,white)}.chat-tray-bubble__close:hover:before,.chat-tray-mobile__close:active:before{background:var(--destructive)}.chat-tray-bubble__tooltip{background:var(--popover);color:var(--popover-foreground);border-radius:var(--radius);white-space:nowrap;pointer-events:none;opacity:0;box-shadow:0 4px 12px color-mix(in oklch, var(--background) 32%, transparent);border:1px solid var(--border);padding:4px 8px;font-size:12px;font-weight:500;transition:opacity .15s;position:absolute;top:50%;right:calc(100% + 8px);transform:translateY(-50%)}.chat-tray-bubble:hover .chat-tray-bubble__tooltip,.chat-tray-bubble:focus-visible .chat-tray-bubble__tooltip{opacity:1}.msg-chat-window{background:var(--popover);border:1px solid var(--border);border-radius:var(--radius) var(--radius) 0 0;width:min(360px,100vw - 24px);min-width:0;height:min(520px,100dvh - 32px);min-height:360px;box-shadow:0 16px 36px color-mix(in oklch, var(--background) 42%, transparent);color:var(--foreground);flex-direction:column;flex-shrink:0;animation:.2s ease-out both window-slide-up;display:flex;overflow:hidden}@keyframes window-slide-up{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.msg-chat-window{animation:none}}.msg-chat-window__header{border-bottom:1px solid var(--border);background:var(--popover);flex-shrink:0;align-items:center;gap:8px;min-height:62px;padding:10px 10px 10px 12px;display:flex}.msg-chat-window__header-info{border-radius:var(--radius);min-width:0;height:auto;min-height:44px;color:inherit;cursor:pointer;text-align:left;background:0 0;border:0;flex:1;align-items:center;gap:10px;padding:2px 8px 2px 4px;transition:background-color .15s,border-color .15s,color .15s;display:flex}.msg-chat-window__header-info:hover,.msg-chat-window__header-info:focus-visible{background:var(--muted)}.msg-chat-window__header-avatar{-o-object-fit:cover;object-fit:cover;border-radius:50%;flex-shrink:0;width:40px;height:40px}.msg-chat-window__header-avatar-fallback{background:var(--muted);width:40px;height:40px;color:var(--muted-foreground);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:.8125rem;font-weight:700;display:flex}.msg-chat-window__header-name{color:var(--foreground);white-space:nowrap;text-overflow:ellipsis;font-size:.875rem;font-weight:600;overflow:hidden}.msg-chat-window__header-actions{flex-shrink:0;gap:4px;display:flex}.msg-chat-window__header-btn{width:40px;min-width:44px;height:40px;min-height:44px;color:var(--muted-foreground);cursor:pointer;background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;padding:0;transition:background-color .15s,border-color .15s,color .15s,transform .15s;display:flex}.msg-chat-window__header-btn:hover{background:var(--muted);color:var(--foreground)}.msg-chat-window__header-btn:focus-visible,.msg-chat-window__send-btn:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.msg-chat-window__messages{overscroll-behavior:contain;scrollbar-gutter:stable;background:var(--background);flex-direction:column;flex:1;gap:4px;min-height:0;padding:14px 14px 16px;display:flex;overflow-y:auto}.msg-chat-window__message{overflow-wrap:anywhere;word-break:normal;border-radius:17px;max-width:80%;padding:8px 12px;font-size:.875rem;line-height:1.45}.msg-chat-window__message-content{white-space:pre-wrap;display:block}.msg-chat-window__message--user{background:var(--primary);color:var(--primary-foreground);border-bottom-right-radius:4px;align-self:flex-end}.msg-chat-window__message--contact{background:var(--muted);color:var(--foreground);border-bottom-left-radius:4px;align-self:flex-start}.msg-chat-window__message--failed{opacity:.6;border:1px solid var(--destructive)}.msg-chat-window__timestamp{color:var(--muted-foreground);text-align:center;background:var(--muted);border-radius:999px;align-self:center;margin:5px 0;padding:3px 9px;font-size:.75rem}.msg-chat-window__sender-name{max-width:78%;color:var(--muted-foreground);align-self:flex-start;padding:4px 8px 0;font-size:.75rem;font-weight:600}.msg-chat-window__media{min-width:11rem;max-width:100%}.msg-chat-window__media img,.msg-chat-window__media video{border-radius:var(--radius);max-height:9rem!important}.msg-chat-window__failed-label{color:var(--destructive);margin-top:4px;font-size:.75rem;font-weight:600;display:block}.msg-chat-window__composer{border-top:1px solid var(--border);background:var(--popover);padding-bottom:env(safe-area-inset-bottom);flex-shrink:0}.msg-chat-window__error{margin:8px 10px 0;padding:8px 10px;font-size:.75rem;font-weight:500}.msg-chat-window__error>div{padding-left:0}.msg-chat-window__from-number{padding:7px 10px 0}.msg-chat-window__input{border:1px solid var(--input);border-radius:var(--radius);resize:none;background:var(--background);min-height:44px;max-height:96px;color:var(--foreground);outline:none;flex:1;padding:10px 14px;font-size:.875rem;line-height:1.35;transition:border-color .15s,box-shadow .15s,background-color .15s;overflow-y:auto}.msg-chat-window__input:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in oklch, var(--primary) 16%, transparent)}.msg-chat-window__input::placeholder{color:var(--muted-foreground)}.msg-chat-window__send-btn{background:var(--primary);width:44px;min-width:44px;height:44px;min-height:44px;color:var(--primary-foreground);cursor:pointer;border:0;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;padding:0;transition:opacity .1s,transform .1s;display:flex}.msg-chat-window__send-btn:disabled{opacity:.4;cursor:not-allowed}.msg-chat-window__send-btn:not(:disabled):hover{opacity:.85;transform:translateY(-1px)}.chat-tray-mobile{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:var(--z-fab);pointer-events:none;max-width:calc(100vw - 24px);position:fixed}.chat-tray-mobile__bar{background:var(--popover);border:1px solid var(--border);border-radius:calc(var(--radius) + .25rem);width:fit-content;max-width:100%;box-shadow:0 8px 24px color-mix(in oklch, var(--background) 38%, transparent);pointer-events:auto;align-items:center;gap:8px;padding:6px;display:flex;overflow:hidden}.chat-tray-mobile__item{flex:none;width:36px;height:36px;position:relative}.chat-tray-mobile__bubble{border:1px solid var(--border);background:var(--popover);cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:50%;flex-shrink:0;width:36px;min-width:36px;height:36px;padding:0;display:block;position:relative}.chat-tray-mobile__bubble:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.chat-tray-mobile__bubble:active{transform:scale(.92)}.chat-tray-mobile__avatar{border-radius:inherit;-o-object-fit:cover;object-fit:cover;width:100%;height:100%;display:block}.chat-tray-mobile__fallback{border-radius:inherit;width:100%;height:100%;color:var(--foreground);background:var(--muted);justify-content:center;align-items:center;font-size:.75rem;font-weight:600;display:flex}.chat-tray-mobile__unread{background:var(--destructive);min-width:18px;height:18px;color:var(--destructive-foreground,white);font-variant-numeric:tabular-nums;border:2px solid var(--background);border-radius:999px;justify-content:center;align-items:center;padding:0 3px;font-size:.75rem;font-weight:700;line-height:1;display:flex;position:absolute;top:-3px;right:-3px}.chat-tray-mobile__close{cursor:pointer;isolation:isolate;width:44px;min-width:44px;height:44px;min-height:44px;color:var(--muted-foreground);opacity:.85;background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;top:-8px;left:-8px}.chat-tray-mobile__close:active{color:var(--destructive-foreground,white)}.chat-tray-mobile__overflow{background:var(--muted);width:36px;min-width:36px;height:36px;color:var(--muted-foreground);cursor:default;-webkit-tap-highlight-color:transparent;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:12px;font-weight:600;display:flex}.chat-tray-mobile__ai-icon{border-radius:inherit;width:100%;height:100%;color:var(--foreground);background:var(--muted);justify-content:center;align-items:center;display:flex}.chat-tray-mobile__window-wrapper{bottom:calc(50px + env(safe-area-inset-bottom));z-index:var(--z-chat-shell);pointer-events:auto;position:fixed;left:8px;right:8px}.chat-tray-mobile__window-wrapper .msg-chat-window{width:100%;height:calc(100dvh - 108px);min-height:360px;box-shadow:0 -10px 34px color-mix(in oklch, var(--background) 46%, transparent)}
