:root{--chat-brand: rgb(52, 128, 217);--chat-brand-dark: rgb(42, 108, 187);--chat-brand-soft: #eef4fc;--chat-brand-border: #d4e3f7;--chat-brand-muted: #2a5a96}.page{min-height:100dvh;min-height:100svh;display:flex;align-items:center;justify-content:center;padding:max(1rem,env(safe-area-inset-top)) max(1rem,env(safe-area-inset-right)) max(1rem,env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left));background:#e8eaef}.widget{position:relative;width:100%;max-width:min(1200px,100%);height:min(780px,calc(100dvh - 2rem));height:min(780px,calc(100svh - 2rem));display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 12px 40px #1e14321f;overflow:hidden}.header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.85rem 1rem;background:linear-gradient(135deg,var(--chat-brand) 0%,var(--chat-brand-dark) 100%);color:#fff}.header-clear-btn{flex-shrink:0;display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .65rem;border:1px solid rgba(255,255,255,.45);border-radius:999px;background:#ffffff1f;color:#fff;font-size:.78rem;font-weight:600;cursor:pointer;transition:background .15s ease}.header-clear-btn:hover:not(:disabled){background:#ffffff38}.header-clear-btn:disabled{opacity:.45;cursor:not-allowed}.header-clear-icon{width:18px;height:18px}@media(max-width:420px){.header-clear-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.header-clear-btn{padding:.45rem;border-radius:50%}}.header-brand{display:flex;align-items:center;gap:.65rem;min-width:0}.logo{width:44px;height:44px;border-radius:50%;background:#ffffff26;border:2px solid rgba(255,255,255,.35);display:grid;place-items:center;flex-shrink:0}.logo-chat-icon{width:26px;height:26px;opacity:.95}.header-text{min-width:0}.header-company-title{margin:0;font-size:1.05rem;font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(100%,18rem)}.header-status{margin:.15rem 0 0;font-size:.78rem;opacity:.92}.header .icon-btn{color:#fff;min-width:40px;min-height:40px}.messages{flex:1;overflow-y:auto;padding:1rem .85rem;background:#f3f4f7;display:flex;flex-direction:column;gap:.5rem}.messages-empty{margin:auto;color:#8a9199;font-size:.9rem;text-align:center}.bubble{max-width:88%;padding:.45rem .65rem .35rem;border-radius:14px;font-size:.92rem;line-height:1.4}.bubble.theirs.bubble--has-payment{min-width:min(92%,19rem);padding:.35rem .5rem .2rem}.bubble-text--payment-code{overflow-wrap:anywhere;word-break:break-all}.bubble-payment-wa{align-self:stretch;min-width:0}.bubble-payment-intro{margin:0 0 .35rem;padding:0 .1rem;font-size:.875rem;line-height:1.35;color:#111b21}.bubble-payment-code{padding:.15rem .1rem .5rem;font-size:.8125rem;line-height:1.38;letter-spacing:.02em;color:#111b21;overflow-wrap:anywhere;word-break:break-all}.bubble-payment-action{display:flex;align-items:center;justify-content:center;gap:.45rem;width:calc(100% + 1rem);margin:0 -.5rem;padding:.65rem .75rem;border:none;border-top:1px solid #e9edef;background:transparent;color:#027eb5;font:inherit;font-size:.8125rem;font-weight:400;line-height:1.2;cursor:pointer}.bubble-payment-action:hover{background:#f5f6f6}.bubble-payment-action:active{background:#e9edef}.bubble-payment-action.is-copied{color:#008069}.bubble-payment-action.is-copied .bubble-payment-action-icon--check{width:16px;height:16px;opacity:1;color:#008069}.bubble-payment-action:focus-visible{outline:2px solid #027eb5;outline-offset:-2px}.bubble-payment-action-icon{width:16px;height:16px;flex-shrink:0;opacity:.9}.bubble--has-payment .bubble-time{margin-top:.15rem}.bubble-inner{display:flex;flex-direction:column;align-items:flex-end;gap:.12rem;min-width:0}.bubble-inner>:not(.bubble-time){align-self:stretch;min-width:0}.bubble-text{margin:0;white-space:pre-wrap;word-break:break-word}.bubble-text strong,.bubble-caption strong,.bubble-transcript strong{font-weight:700}.bubble-link{color:inherit;font-weight:400;text-decoration:underline;word-break:break-all}.bubble-text strong .bubble-link,.bubble-caption strong .bubble-link,.bubble-transcript strong .bubble-link{font-weight:400}.bubble.mine .bubble-link{color:#fff}.bubble.theirs .bubble-link{color:#027eb5}.bubble-time{flex-shrink:0;font-size:.68rem;line-height:1.1;letter-spacing:.01em;-webkit-user-select:none;user-select:none;padding-left:.5rem}.bubble-time time{font-variant-numeric:tabular-nums}.bubble.mine .bubble-time{color:#ffffffd1}.bubble.theirs .bubble-time{color:#667781}.bubble-media{display:flex;flex-direction:column;gap:.35rem;min-width:0}.bubble-img,.bubble-video{display:block;max-width:min(100%,320px);max-height:240px;border-radius:10px;object-fit:cover}.bubble-audio{display:block;width:100%;min-width:0;height:40px}.bubble-doc{color:inherit;font-weight:600;text-decoration:underline;word-break:break-all}.bubble-caption{margin:0;font-size:.88rem;opacity:.95;white-space:pre-wrap;word-break:break-word}.bubble.mine .bubble-doc{color:#fff}.bubble-location{font-weight:600;color:inherit;text-decoration:underline}.bubble-location-coords{font-size:.82rem;opacity:.9}.bubble.mine{align-self:flex-end;background:var(--chat-brand);color:#fff;border-bottom-right-radius:4px}.bubble.theirs{align-self:flex-start;background:#fff;color:#1a1d21;border:1px solid #e2e5ea;border-bottom-left-radius:4px;box-shadow:0 1px 2px #0000000a}.typing{align-self:flex-start;color:#8a9199;font-size:.82rem;margin:0}.typing-bubble{display:flex;align-items:center;justify-content:center;gap:5px;min-width:3.25rem;padding:.75rem 1rem}.typing-bubble span{width:8px;height:8px;border-radius:50%;background:#8696a0;animation:typing-dot 1.45s infinite ease-in-out;will-change:transform,opacity}.typing-bubble span:nth-child(1){animation-delay:0s}.typing-bubble span:nth-child(2){animation-delay:.2s}.typing-bubble span:nth-child(3){animation-delay:.4s}@keyframes typing-dot{0%,25%,to{transform:translateY(0);opacity:.35}12%{transform:translateY(-6px);opacity:1}}.banner-error{margin:0;padding:.45rem .85rem;background:#fef2f2;color:#b91c1c;font-size:.82rem}.banner-toast{margin:0;padding:.45rem .85rem;background:var(--chat-brand-soft);color:var(--chat-brand-muted);font-size:.78rem;border-top:1px solid var(--chat-brand-border)}.composer-wrap{position:relative;background:#fff;border-top:1px solid #eceef2;padding:.65rem .55rem max(.75rem,env(safe-area-inset-bottom))}.composer{display:flex;align-items:center;gap:.45rem}.icon-btn{border:none;background:transparent;color:#374151;padding:.35rem;cursor:pointer;display:grid;place-items:center;border-radius:50%;min-width:40px;min-height:40px;flex-shrink:0}.icon-btn svg{width:1.5rem;height:1.5rem;display:block}.icon-btn:disabled{cursor:not-allowed;color:#9ca3af}.icon-btn:not(:disabled):hover{background:#f3f4f6;color:var(--chat-brand)}.composer .input-inline svg{width:1.35rem;height:1.35rem}.input-shell{flex:1;position:relative;display:flex;align-items:center;border:1px solid #d8dce3;border-radius:999px;background:#fff;padding:.35rem .5rem .35rem .85rem;min-width:0}.input{flex:1;border:none;background:transparent;font:inherit;font-size:.92rem;color:#1a1d21;min-width:0;padding:.35rem 0}.input:focus{outline:none}.input::placeholder{color:#a0a6ae}.input-actions{display:flex;align-items:center;gap:.1rem;padding-left:.25rem}.mic-btn{width:44px;height:44px;min-width:44px;min-height:44px;border:none;border-radius:50%;background:var(--chat-brand);color:#fff;display:grid;place-items:center;cursor:pointer;flex-shrink:0;box-shadow:0 2px 8px #3480d959}.mic-btn:disabled{opacity:.65;cursor:not-allowed}.mic-btn:not(:disabled):hover{background:var(--chat-brand-dark)}.mic-btn svg{width:1.35rem;height:1.35rem}.mic-btn.send-btn{background:var(--chat-brand);box-shadow:0 2px 8px #3480d959}.mic-btn.send-btn:not(:disabled):hover{background:var(--chat-brand-dark)}.mic-btn.send-btn svg{width:1.2rem;height:1.2rem;margin-left:2px}.mic-btn-active{background:#c62828;box-shadow:0 2px 8px #c6282873;animation:mic-pulse 1.2s ease-in-out infinite}.mic-btn-active:not(:disabled):hover{background:#b71c1c}@keyframes mic-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.06)}}.input-shell-voice{display:flex;align-items:center;gap:.35rem;padding:.35rem .65rem .35rem .45rem;min-height:44px;border-color:var(--chat-brand-border);background:var(--chat-brand-soft)}.input-shell-voice-cancel{border-color:#fecaca;background:#fef2f2}.voice-recorder-trash,.voice-recorder-pause{flex-shrink:0;border:none;background:transparent;color:#6b7280;padding:.25rem;cursor:pointer;display:grid;place-items:center;border-radius:50%;min-width:36px;min-height:36px}.voice-recorder-trash:not(:disabled):hover,.voice-recorder-pause:not(:disabled):hover{color:var(--chat-brand);background:#ffffffa6}.voice-recorder-pause{color:var(--chat-brand)}.voice-recorder-trash svg,.voice-recorder-pause svg{width:1.35rem;height:1.35rem}.voice-recorder-dot{width:8px;height:8px;border-radius:50%;background:#ff375f;flex-shrink:0;animation:voice-dot-pulse 1.1s ease-in-out infinite}@keyframes voice-dot-pulse{0%,to{opacity:1}50%{opacity:.45}}.voice-recorder-time{color:#374151;font-size:.88rem;font-weight:600;font-variant-numeric:tabular-nums;min-width:2.1rem;flex-shrink:0}.voice-waveform{flex:1;display:flex;align-items:center;justify-content:center;gap:2px;height:28px;min-width:0;overflow:hidden;padding:0 .15rem}.voice-waveform-bar{display:block;width:3px;border-radius:2px;background:var(--chat-brand);opacity:.55;min-height:3px;transition:height .05s linear}.input-shell-voice-cancel .voice-waveform-bar{background:#dc2626;opacity:.45}.voice-slide-hint{text-align:center;font-size:.78rem;color:#6b7280;margin:.25rem 0 0}.bubble-audio-block{width:min(100%,360px);min-width:min(100%,300px)}.bubble:has(.bubble-audio-block){min-width:min(88vw,320px);max-width:min(88%,380px)}.bubble-transcript{margin:0;padding-top:.4rem;font-size:.86rem;line-height:1.4;opacity:.95;border-top:1px solid rgba(255,255,255,.22)}.bubble.theirs .bubble-transcript{border-top-color:#00000014;color:#374151}.bubble.mine .bubble-audio{filter:brightness(1.05)}.bubble-transcript-pending{font-style:italic;opacity:.75}.attach-menu{position:absolute;right:3.5rem;bottom:calc(100% + .35rem);min-width:200px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 8px 24px #0000001f;padding:.35rem 0;z-index:5}.attach-menu button{width:100%;display:flex;align-items:center;gap:.65rem;border:none;background:transparent;padding:.55rem .85rem;font:inherit;font-size:.88rem;color:#374151;cursor:pointer;text-align:left}.attach-menu button:hover{background:#f9fafb}.attach-icon{width:1.35rem;height:1.35rem;color:var(--chat-brand)}.location-modal-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:1rem;pointer-events:none}.location-modal-scrim{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;margin:0;padding:0;border:none;cursor:default;pointer-events:auto;background:#11182773}.location-modal{position:relative;z-index:1;pointer-events:auto;width:min(100%,320px);background:#fff;border-radius:14px;padding:1.1rem 1.15rem 1rem;box-shadow:0 12px 40px #0000002e}.location-modal h2{margin:0 0 .5rem;font-size:1.05rem;font-weight:600;color:#111827}.location-modal p{margin:0 0 1rem;font-size:.88rem;line-height:1.45;color:#4b5563}.location-modal-actions{display:flex;gap:.5rem;justify-content:flex-end}.location-modal-btn{border:none;border-radius:8px;padding:.5rem .85rem;font:inherit;font-size:.88rem;cursor:pointer}.location-modal-cancel{background:#f3f4f6;color:#374151}.location-modal-confirm{background:var(--chat-brand);color:#fff;font-weight:600}.location-modal-confirm:disabled{opacity:.6;cursor:not-allowed}.hp,.hidden-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}@media(max-width:600px){.page{padding:0;align-items:stretch}.widget{max-width:none;height:100dvh;height:100svh;border-radius:0;box-shadow:none}.composer{gap:.35rem}.input-shell{padding-left:.65rem}}@media(min-width:601px){.widget{max-width:720px}}@media(min-width:900px){.widget{max-width:960px;height:min(820px,calc(100svh - 3rem))}}@media(min-width:1200px){.widget{max-width:1200px}}:root{color-scheme:light;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.45;font-weight:400;background:#e8eaef;color:#1a1d21}*{box-sizing:border-box}body{margin:0;min-height:100dvh}
