:root{--brand-accent:#2f6fed;--brand-accent-contrast:#fff;--surface:#fff;--surface-muted:#f4f5f7;--text:#16181d;--text-muted:#5c626e;--border:#e3e5ea;--danger:#c0342b;--radius:12px;--font:ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif}@media (prefers-color-scheme:dark){:root{--surface:#16181d;--surface-muted:#22252c;--text:#f2f3f5;--text-muted:#a2a8b4;--border:#33373f}}*{box-sizing:border-box}html,body{height:100%;font-family:var(--font);background:var(--surface);color:var(--text);margin:0;padding:0}.messenger{background:var(--surface);max-width:420px;height:100dvh;padding-bottom:env(safe-area-inset-bottom);flex-direction:column;margin:0 auto;display:flex}.messenger button{font:inherit;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);min-width:44px;min-height:44px;color:var(--text);cursor:pointer}.messenger button:focus-visible,.messenger a:focus-visible,.messenger textarea:focus-visible{outline:3px solid var(--brand-accent);outline-offset:2px}.header{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:12px 16px;display:flex}.header h1{flex:1;margin:0;font-size:1rem}.verified-chip{color:var(--text-muted);border:1px solid var(--border);border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:.75rem;display:inline-flex}.responder-chip{background:var(--surface-muted);color:var(--text-muted);border-radius:999px;padding:4px 10px;font-size:.75rem}.home-list{flex-direction:column;flex:1;gap:8px;padding:12px 16px;display:flex;overflow-y:auto}.conversation-item{text-align:left;align-items:center;gap:12px;width:100%;padding:12px;display:flex}.conversation-item .preview{text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);flex:1;font-size:.875rem;overflow:hidden}.unread-badge{background:var(--brand-accent);color:var(--brand-accent-contrast);border-radius:999px;justify-content:center;align-items:center;min-width:22px;height:22px;padding:0 6px;font-size:.75rem;display:inline-flex}.primary{background:var(--brand-accent);color:var(--brand-accent-contrast);border:none;padding:0 16px}.thread{flex-direction:column;flex:1;gap:10px;padding:16px;display:flex;overflow-y:auto}.bubble{border-radius:var(--radius);white-space:pre-wrap;overflow-wrap:anywhere;max-width:85%;padding:10px 14px;font-size:.9375rem;line-height:1.4}.bubble.customer{background:var(--brand-accent);color:var(--brand-accent-contrast);align-self:flex-end}.bubble.responder{background:var(--surface-muted);align-self:flex-start}.author-tag{color:var(--text-muted);margin-bottom:2px;font-size:.6875rem;display:block}.bubble.customer .author-tag{color:var(--brand-accent-contrast);opacity:.8}.event-chip{color:var(--text-muted);background:var(--surface-muted);border-radius:999px;align-self:center;padding:4px 12px;font-size:.75rem}.failed-send{flex-direction:column;align-self:flex-end;align-items:flex-end;gap:4px;display:flex}.failed-send .note{color:var(--danger);font-size:.75rem}.failed-send .actions{gap:8px;display:flex}.composer{border-top:1px solid var(--border);gap:8px;padding:12px 16px;display:flex}.composer textarea{resize:none;border:1px solid var(--border);border-radius:var(--radius);font:inherit;background:var(--surface);color:var(--text);flex:1;min-height:44px;max-height:120px;padding:10px 12px}.talk-to-person{align-self:center;margin:4px 16px;font-size:.8125rem}.inline-card{border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;align-self:stretch;gap:8px;padding:12px;font-size:.875rem;display:flex}.inline-card .actions{gap:8px;display:flex}.star-row{gap:4px;display:flex}.star-row button{background:0 0;border:none;min-width:44px;font-size:1.5rem}.status-screen{color:var(--text-muted);text-align:center;flex:1;justify-content:center;align-items:center;padding:24px;display:flex}@media (prefers-reduced-motion:no-preference){.bubble{animation:.12s ease-out bubble-in}@keyframes bubble-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}}.launcher-root{right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:2147483000;flex-direction:column;align-items:flex-end;gap:12px;display:flex;position:fixed}.launcher-bubble{background:var(--brand-accent);width:56px;height:56px;color:var(--brand-accent-contrast);border:none;border-radius:50%;font-size:1.5rem;box-shadow:0 4px 16px #0003}.launcher-bubble.inert{opacity:.5;cursor:default}.panel{border:1px solid var(--border);background:var(--surface);border-radius:16px;width:min(400px,100vw - 32px);height:min(640px,100dvh - 104px);display:flex;overflow:hidden;box-shadow:0 12px 40px #0000003d}.panel .messenger{width:100%;max-width:none;height:100%}.greeting{margin:12px 16px 0;font-size:1.125rem;font-weight:600}.tab-bar{border-top:1px solid var(--border);display:flex}.tab-bar button{background:var(--surface);color:var(--text-muted);border:none;border-radius:0;flex:1}.tab-bar button[aria-current=true]{color:var(--brand-accent);font-weight:600}.footer-links{justify-content:center;gap:16px;padding:8px;font-size:.75rem;display:flex}.footer-links a{color:var(--text-muted)}.inline-card textarea{resize:none;border:1px solid var(--border);border-radius:var(--radius);font:inherit;background:var(--surface);color:var(--text);min-height:44px;padding:8px 10px}.star-row .star-active{color:var(--brand-accent)}
