.waie-ui-theme{--waie-chat-surface: #ffffff;--waie-chat-border: #e5e7eb;--waie-chat-header-bg: #ffffff;--waie-chat-viewport-bg: #f4f6fb;--waie-chat-muted: #6b7280;--waie-chat-text: #0f172a;--waie-chat-user-bg: #10a37f;--waie-chat-user-fg: #ffffff;--waie-chat-user-avatar-bg: #bbf7d0;--waie-chat-user-avatar-fg: #065f46;--waie-chat-assistant-bg: #ffffff;--waie-chat-assistant-border: rgba(15, 23, 42, .08);--waie-chat-assistant-avatar-bg: #e2e8f0;--waie-chat-assistant-avatar-fg: #0f172a;--waie-chat-system-bg: #eef2ff;--waie-chat-system-border: rgba(37, 99, 235, .3);--waie-chat-system-fg: #1e293b;--waie-chat-error-bg: #fee2e2;--waie-chat-error-fg: #b91c1c;--waie-chat-send-bg: #10a37f;--waie-chat-send-fg: #ffffff;--waie-chat-input-bg: #ffffff;--waie-chat-input-border: #d0d5dd;--waie-chat-input-focus: #10a37f;--waie-chat-shadow: 0 20px 55px rgba(15, 23, 42, .08);--waie-chat-divider: rgba(15, 23, 42, .06);--waie-chat-avatar-bg: rgba(15, 23, 42, .08);--waie-chat-avatar-fg: var(--waie-chat-text);--waie-chat-tool-bg: #fef3c7;--waie-chat-tool-border: rgba(217, 119, 6, .4);--waie-chat-tool-fg: #78350f;--waie-chat-tool-avatar-bg: #fde68a;--waie-chat-tool-avatar-fg: #92400e;--waie-chat-tool-meta: rgba(146, 64, 14, .7);--waie-chat-bubble-shadow: 0 10px 35px rgba(15, 23, 42, .1);--waie-chat-user-shadow: 0 14px 30px rgba(16, 163, 127, .25);--waie-chat-send-shadow: 0 12px 28px rgba(16, 163, 127, .3);--waie-chat-reset-hover-bg: rgba(15, 23, 42, .05);--waie-chat-input-focus-shadow: 0 0 0 2px rgba(16, 163, 127, .15);--waie-chat-raw-bg: #0f172a;--waie-chat-raw-fg: #f8fafc}.waie-ui-theme--openai{--waie-chat-viewport-bg: #f1f5f9;--waie-chat-assistant-bg: #ffffff;--waie-chat-assistant-border: rgba(15, 23, 42, .06);--waie-chat-system-bg: #eef2ff;--waie-chat-system-border: rgba(79, 70, 229, .25);--waie-chat-send-bg: #10a37f}.waie-ui-theme--midnight{--waie-chat-surface: #0f172a;--waie-chat-border: rgba(148, 163, 184, .24);--waie-chat-header-bg: #111c2f;--waie-chat-viewport-bg: #0b1120;--waie-chat-muted: #94a3b8;--waie-chat-text: #e2e8f0;--waie-chat-user-bg: #38bdf8;--waie-chat-user-fg: #0f172a;--waie-chat-user-avatar-bg: rgba(56, 189, 248, .25);--waie-chat-user-avatar-fg: #e0f2fe;--waie-chat-assistant-bg: #111c2f;--waie-chat-assistant-border: rgba(148, 163, 184, .24);--waie-chat-assistant-avatar-bg: rgba(30, 41, 59, .8);--waie-chat-assistant-avatar-fg: #38bdf8;--waie-chat-system-bg: rgba(59, 130, 246, .15);--waie-chat-system-border: rgba(59, 130, 246, .4);--waie-chat-system-fg: #bfdbfe;--waie-chat-error-bg: rgba(248, 113, 113, .2);--waie-chat-error-fg: #fecaca;--waie-chat-send-bg: #38bdf8;--waie-chat-send-fg: #0f172a;--waie-chat-input-bg: #111c2f;--waie-chat-input-border: rgba(148, 163, 184, .35);--waie-chat-input-focus: #38bdf8;--waie-chat-shadow: 0 20px 45px rgba(8, 15, 30, .6);--waie-chat-divider: rgba(148, 163, 184, .18);--waie-chat-avatar-bg: rgba(148, 163, 184, .24);--waie-chat-avatar-fg: #e2e8f0;--waie-chat-tool-bg: rgba(14, 165, 233, .12);--waie-chat-tool-border: rgba(14, 165, 233, .35);--waie-chat-tool-fg: #e0f2fe;--waie-chat-tool-avatar-bg: rgba(14, 165, 233, .28);--waie-chat-tool-avatar-fg: #0f172a;--waie-chat-tool-meta: rgba(191, 219, 254, .75);--waie-chat-bubble-shadow: 0 12px 35px rgba(8, 16, 32, .55);--waie-chat-user-shadow: 0 14px 32px rgba(56, 189, 248, .3);--waie-chat-send-shadow: 0 12px 24px rgba(56, 189, 248, .35);--waie-chat-reset-hover-bg: rgba(148, 163, 184, .18);--waie-chat-input-focus-shadow: 0 0 0 2px rgba(56, 189, 248, .2);--waie-chat-raw-bg: #020617;--waie-chat-raw-fg: #e2e8f0}.waie-ui-chat,.waie-ui-completion,.waie-ui-embeddings{margin-bottom:24px}.waie-ui-chat{position:relative}.waie-ui-chat__surface{display:flex;flex-direction:column;min-height:420px;border-radius:20px;border:1px solid var(--waie-chat-border);background:var(--waie-chat-surface);box-shadow:var(--waie-chat-shadow);overflow:hidden}.waie-ui-chat__header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;background:var(--waie-chat-header-bg);border-bottom:1px solid var(--waie-chat-border)}.waie-ui-chat__header-meta{display:flex;flex-direction:column;gap:4px}.waie-ui-chat__header-label{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--waie-chat-muted)}.waie-ui-chat__provider{font-size:15px;font-weight:600;color:var(--waie-chat-text)}.waie-ui-chat__provider-subtitle{font-size:13px;color:var(--waie-chat-muted)}.waie-ui-chat__reset{border:none;background:none;color:var(--waie-chat-muted);font-size:13px;cursor:pointer;padding:6px 12px;border-radius:999px;transition:background .2s ease,color .2s ease}.waie-ui-chat__reset:hover:not(:disabled){background:var(--waie-chat-reset-hover-bg);color:var(--waie-chat-text)}.waie-ui-chat__reset:disabled{opacity:.5;cursor:not-allowed}.waie-ui-chat__viewport{flex:1 1 auto;overflow-y:auto;padding:24px;background:var(--waie-chat-viewport-bg)}.waie-ui-chat__empty{margin:80px auto;text-align:center;color:var(--waie-chat-muted);font-size:15px;max-width:360px}.waie-ui-chat__message{display:flex;gap:14px;margin-bottom:20px;max-width:80%}.waie-ui-chat__message:last-child{margin-bottom:0}.waie-ui-chat__message--user{margin-left:auto;flex-direction:row-reverse}.waie-ui-chat__message--user .waie-ui-chat__bubble{background:var(--waie-chat-user-bg);color:var(--waie-chat-user-fg);border-color:transparent;box-shadow:var(--waie-chat-user-shadow)}.waie-ui-chat__message--user .waie-ui-chat__bubble-meta{color:#ffffffbf}.waie-ui-chat__message--user .waie-ui-chat__avatar{background:var(--waie-chat-user-avatar-bg);color:var(--waie-chat-user-avatar-fg)}.waie-ui-chat__message--assistant .waie-ui-chat__bubble{background:var(--waie-chat-assistant-bg);border-color:var(--waie-chat-assistant-border)}.waie-ui-chat__message--assistant .waie-ui-chat__avatar{background:var(--waie-chat-assistant-avatar-bg);color:var(--waie-chat-assistant-avatar-fg)}.waie-ui-chat__message--system .waie-ui-chat__bubble{background:var(--waie-chat-system-bg);border:1px dashed var(--waie-chat-system-border);color:var(--waie-chat-system-fg)}.waie-ui-chat__message--system .waie-ui-chat__bubble-meta{color:var(--waie-chat-muted)}.waie-ui-chat__message--tool .waie-ui-chat__bubble{background:var(--waie-chat-tool-bg);border:1px dashed var(--waie-chat-tool-border);color:var(--waie-chat-tool-fg)}.waie-ui-chat__message--tool .waie-ui-chat__avatar{background:var(--waie-chat-tool-avatar-bg);color:var(--waie-chat-tool-avatar-fg)}.waie-ui-chat__message--tool .waie-ui-chat__bubble-meta{color:var(--waie-chat-tool-meta)}.waie-ui-chat__message--error .waie-ui-chat__bubble{background:var(--waie-chat-error-bg);color:var(--waie-chat-error-fg);border-color:transparent}.waie-ui-chat__message--error .waie-ui-chat__avatar{background:var(--waie-chat-error-bg);color:var(--waie-chat-error-fg)}.waie-ui-chat__message--pending .waie-ui-chat__bubble{opacity:.8}.waie-ui-chat__avatar{flex:0 0 auto;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px;background:var(--waie-chat-avatar-bg);color:var(--waie-chat-avatar-fg);text-transform:uppercase}.waie-ui-chat__bubble{flex:1 1 auto;padding:14px 18px;border-radius:18px;border:1px solid transparent;background:var(--waie-chat-assistant-bg);color:var(--waie-chat-text);box-shadow:var(--waie-chat-bubble-shadow)}.waie-ui-chat__bubble-meta{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--waie-chat-muted);margin-bottom:8px}.waie-ui-chat__bubble-content{font-size:15px;line-height:1.6;white-space:pre-wrap;word-break:break-word}.waie-ui-chat__typing{display:inline-flex;gap:5px;color:currentColor}.waie-ui-chat__typing span{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.3;animation:waie-ui-typing 1.2s infinite ease-in-out}.waie-ui-chat__typing span:nth-child(2){animation-delay:.15s}.waie-ui-chat__typing span:nth-child(3){animation-delay:.3s}@keyframes waie-ui-typing{0%,80%,to{opacity:.2;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}.waie-ui-chat__footer{padding:18px 22px;border-top:1px solid var(--waie-chat-border);background:var(--waie-chat-surface);display:flex;flex-direction:column;gap:12px}.waie-ui-chat__footer-meta{font-size:12px;color:var(--waie-chat-muted);margin-bottom:10px}.waie-ui-wave-input{display:flex;align-items:center;gap:16px;border:1px solid var(--waie-chat-input-border);background:var(--waie-chat-input-bg);border-radius:999px;padding:0 18px;min-height:60px;box-shadow:0 12px 32px #0f172a14;transition:border-color .25s ease,box-shadow .25s ease,background .25s ease;margin-bottom:16px}.waie-ui-wave-input.is-disabled{opacity:.75}.waie-ui-wave-input--recording{border-color:#10a37f73;box-shadow:0 18px 45px #10a37f38}.waie-ui-wave-input__prefix{flex:0 0 auto;width:36px;height:36px;border-radius:999px;background:#0f172a0d;display:flex;align-items:center;justify-content:center;color:var(--waie-chat-muted)}.waie-ui-wave-input__icon-symbol{width:16px;height:16px}.waie-ui-wave-input__field{position:relative;flex:1 1 auto;display:flex;align-items:center}.waie-ui-wave-input__textarea{width:100%;border:none;background:transparent;font-size:15px;line-height:1.5;color:var(--waie-chat-text);resize:none;padding:18px 0;max-height:160px}.waie-ui-wave-input__textarea:focus{outline:none}.waie-ui-wave-input__textarea::placeholder{color:var(--waie-chat-muted)}.waie-ui-wave-input__canvas{position:absolute;top:0;right:0;bottom:0;left:0;display:block;opacity:0;transition:opacity .25s ease;pointer-events:none}.waie-ui-wave-input--recording .waie-ui-wave-input__canvas{opacity:1}.waie-ui-wave-input__baseline{position:absolute;bottom:12px;left:0;right:0;border-top:1px dotted var(--waie-chat-input-border);opacity:.35;pointer-events:none}.waie-ui-wave-input--recording .waie-ui-wave-input__baseline{opacity:.2}.waie-ui-wave-input__actions{display:flex;align-items:center;gap:10px}.waie-ui-wave-input__button{width:40px;height:40px;border-radius:999px;border:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .2s ease,opacity .2s ease,background .2s ease;color:var(--waie-chat-muted, #64748b);box-shadow:none;background:transparent}.waie-ui-wave-input__button:disabled{cursor:not-allowed;opacity:.45;box-shadow:none;transform:none}.waie-ui-wave-input__button:not(:disabled):hover{transform:translateY(-1px)}.waie-ui-wave-input__button:not(:disabled):focus-visible{outline:none}.waie-ui-wave-input__button--primary{color:var(--waie-chat-send-bg, #10a37f)}.waie-ui-wave-input__button--danger{color:#ef4444}.waie-ui-wave-input__button--success{color:#10a37f}.waie-ui-wave-input__button--send{color:var(--waie-chat-send-bg, #10a37f)}.waie-ui-wave-input__button-icon{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.waie-ui-wave-input__arrow-icon{width:16px;height:16px;display:block;fill:currentColor;pointer-events:none}.waie-ui-chat__composer{margin:0}.waie-ui-chat__suggestions{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}.waie-ui-chat__suggestion{border:1px solid var(--waie-chat-input-border);border-radius:999px;background:var(--waie-chat-input-bg);color:var(--waie-chat-muted);font-size:13px;line-height:1.2;padding:6px 12px;cursor:pointer;transition:background .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease}.waie-ui-chat__suggestion:hover{color:var(--waie-chat-text);background:#0f172a0d}.waie-ui-chat__suggestion:focus-visible{outline:2px solid var(--waie-chat-input-focus);outline-offset:2px;color:var(--waie-chat-text)}.waie-ui-chat__composer-actions{display:flex;align-items:center;gap:8px}.waie-ui-chat__banner{padding:10px 14px;border-radius:12px;font-size:.85rem;background:#0f172a0f;color:var(--waie-chat-text);box-shadow:0 8px 24px #0f172a14}.waie-ui-chat__banner--error{background:#f871712e;color:#b91c1c}.waie-ui-chat__divider{position:relative;display:flex;align-items:center;justify-content:center;margin:24px 0;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--waie-chat-muted)}.waie-ui-chat__divider:before,.waie-ui-chat__divider:after{content:"";flex:1 1 auto;height:1px;background:var(--waie-chat-divider);margin:0 16px}.waie-ui-chat__tool-card{display:flex;align-items:flex-start;gap:12px;margin:12px 22px;padding:16px 18px;border-radius:16px;border:1px solid rgba(15,23,42,.08);background:#0f172a09;box-shadow:0 8px 24px #0f172a0f}.waie-ui-chat__tool-card.is-error{border-color:#f8717159;background:#f871711f}.waie-ui-chat__tool-icon{flex:0 0 auto;width:40px;height:40px;border-radius:999px;background:#0f172a14;display:flex;align-items:center;justify-content:center;color:var(--waie-chat-muted)}.waie-ui-chat__tool-body{flex:1 1 auto;display:flex;flex-direction:column;gap:6px}.waie-ui-chat__tool-header{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.85rem;font-weight:600;color:var(--waie-chat-text)}.waie-ui-chat__tool-status{font-size:.75rem;color:var(--waie-chat-muted);text-transform:uppercase;letter-spacing:.08em}.waie-ui-chat__tool-detail{font-size:.85rem;color:var(--waie-chat-muted);line-height:1.45}.waie-ui-chat__tool-detail pre{margin:0;white-space:pre-wrap;word-break:break-word}.waie-ui-chat__tool-glyph{width:18px;height:18px;fill:currentColor}.waie-ui-chat__send{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:999px;border:none;background:var(--waie-chat-send-bg);color:var(--waie-chat-send-fg);cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease}.waie-ui-chat__send:disabled{cursor:not-allowed;opacity:.45;transform:none;box-shadow:none}.waie-ui-chat__send:not(:disabled):hover{transform:translateY(-1px);box-shadow:var(--waie-chat-send-shadow)}.waie-ui-chat__send-icon{width:18px;height:18px;fill:currentColor}.waie-ui-raw{margin:18px 22px 22px}.waie-ui-raw-toggle{border:none;background:none;color:var(--waie-chat-muted);cursor:pointer;font-size:13px;padding:0;text-decoration:underline}.waie-ui-raw-panel{margin-top:10px}.waie-ui-raw-panel pre{background:var(--waie-chat-raw-bg);color:var(--waie-chat-raw-fg);padding:14px;border-radius:12px;max-height:240px;overflow:auto}.waie-ui-toast{padding:10px 14px;border-radius:12px;font-size:14px}.waie-ui-toast--error{background:#fee2e2;color:#b91c1c}.waie-ui-toast--success{background:#dcfce7;color:#166534}.waie-ui-completion,.waie-ui-embeddings{border:1px solid #e5e7eb;border-radius:18px;background:#fff;box-shadow:0 12px 32px #0f172a0d;padding:22px}.waie-ui-completion__inner,.waie-ui-embeddings__inner{display:flex;flex-direction:column;gap:12px}.waie-ui-completion__inner textarea,.waie-ui-embeddings__inner textarea{width:100%;min-height:140px}.waie-ui-completion__result,.waie-ui-embeddings__result{padding:16px;border-radius:12px;background:#f8fafc}.waie-ui-completion__inner .button,.waie-ui-embeddings__inner .button{align-self:flex-start}@media (max-width: 768px){.waie-ui-chat__surface{border-radius:16px}.waie-ui-chat__viewport{padding:18px}.waie-ui-chat__message{max-width:100%}.waie-ui-chat__composer{flex-direction:column;align-items:stretch}.waie-ui-chat__composer-actions{justify-content:flex-end}.waie-ui-chat__send{align-self:flex-end}}.waie-ui-floating{position:fixed;z-index:2147483000;display:flex;flex-direction:column;gap:12px;pointer-events:none;padding-right:env(safe-area-inset-right,0px);padding-bottom:env(safe-area-inset-bottom,0px)}.waie-ui-floating--bottom-right,.waie-ui-floating--top-right{right:24px}.waie-ui-floating--bottom-left,.waie-ui-floating--top-left{left:24px}.waie-ui-floating--bottom-right,.waie-ui-floating--bottom-left{bottom:24px}.waie-ui-floating--top-right,.waie-ui-floating--top-left{top:24px}.waie-ui-floating--bottom-left,.waie-ui-floating--top-left{align-items:flex-start}.waie-ui-floating--bottom-right,.waie-ui-floating--top-right{align-items:flex-end}.waie-ui-floating__launcher,.waie-ui-floating__panel{pointer-events:auto}.waie-ui-floating__launcher{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--waie-chat-input-border);border-radius:999px;background:var(--waie-chat-input-bg);color:var(--waie-chat-text);padding:12px 16px;font-weight:500;cursor:pointer;box-shadow:none;transition:transform .2s ease,box-shadow .2s ease,background .2s ease,color .2s ease,border-color .2s ease}.waie-ui-floating__launcher:hover{transform:translateY(-1px);box-shadow:var(--waie-chat-shadow);background:var(--waie-chat-surface)}.waie-ui-floating__launcher:focus-visible{outline:2px solid var(--waie-chat-input-focus);outline-offset:2px}.waie-ui-floating__icon{width:20px;height:20px;fill:currentColor}.waie-ui-floating__panel{width:min(380px,calc(100vw - 48px));max-height:min(78vh,640px);border-radius:20px;border:1px solid var(--waie-chat-border);background:var(--waie-chat-surface);box-shadow:var(--waie-chat-shadow);overflow:hidden;display:none;flex-direction:column;opacity:0;transform:translateY(8px);transition:opacity .2s ease,transform .2s ease}.waie-ui-floating.is-open .waie-ui-floating__panel{display:flex;opacity:1;transform:translateY(0)}.waie-ui-floating.is-open .waie-ui-floating__launcher{display:none}.waie-ui-floating__panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:var(--waie-chat-header-bg);border-bottom:1px solid var(--waie-chat-border)}.waie-ui-floating__panel-title{font-size:.95rem;font-weight:600;color:var(--waie-chat-text);flex:1 1 auto;min-width:0}.waie-ui-floating__window-controls{display:inline-flex;align-items:center;gap:8px}.waie-ui-floating__window-button{width:28px;height:28px;border-radius:999px;border:none;background:transparent;color:var(--waie-chat-muted);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s ease,color .2s ease,box-shadow .2s ease}.waie-ui-floating__window-button:hover{background:#0f172a14;color:var(--waie-chat-text)}.waie-ui-floating__window-button:focus-visible{outline:2px solid rgba(16,163,127,.35);outline-offset:2px}.waie-ui-floating__window-button[aria-pressed=true]{background:#0f172a1a;color:var(--waie-chat-text)}.waie-ui-floating__window-button--close{color:var(--waie-chat-text)}.waie-ui-floating__window-button--close:hover{background:#ef44441f;color:#ef4444}.waie-ui-floating__window-icon{width:14px;height:14px;fill:currentColor}.waie-ui-floating__panel-body{flex:1 1 auto;display:flex;padding:16px;background:var(--waie-chat-surface)}.waie-ui-floating__panel-body .waie-ui-chat__surface{width:100%;min-height:420px}.waie-ui-floating.is-minimized .waie-ui-floating__panel{transform:translateY(0) scale(.92);max-height:280px}.waie-ui-floating.is-minimized .waie-ui-floating__panel-body .waie-ui-chat__transcript{max-height:200px;overflow-y:auto}.waie-ui-floating.is-minimized .waie-ui-floating__panel-body .waie-ui-chat__surface{min-height:0}.waie-ui-floating.is-maximized{top:0;right:0;bottom:0;left:0;width:100vw;height:100vh;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);align-items:stretch;justify-content:center}.waie-ui-floating.is-maximized .waie-ui-floating__panel{max-width:100vw;width:100vw;height:100vh;max-height:100vh;border-radius:0;transform:translateY(0) scale(1)}.waie-ui-floating.is-maximized .waie-ui-floating__panel-body{padding:24px}.waie-ui-floating.is-maximized .waie-ui-floating__panel-body .waie-ui-chat__surface{min-height:100%}@media (max-width: 640px){.waie-ui-floating--bottom-right,.waie-ui-floating--top-right{right:16px}.waie-ui-floating--bottom-left,.waie-ui-floating--top-left{left:16px}.waie-ui-floating--bottom-right,.waie-ui-floating--bottom-left{bottom:16px}.waie-ui-floating--top-right,.waie-ui-floating--top-left{top:16px}.waie-ui-floating__panel{width:min(100vw - 32px,360px);max-height:calc(100vh - 96px)}.waie-ui-floating__panel-body{padding:12px}.waie-ui-floating.is-maximized .waie-ui-floating__panel-body{padding:16px}}
