.web-chat{color-scheme:dark;--wc-bg:#081321;--wc-panel:#112235;--wc-text:#eef6ff;--wc-line:#30465d;--wc-accent:#43d9b8}.web-light .web-chat,html[data-theme="light"] .web-chat{color-scheme:light;--wc-bg:#edf3fa;--wc-panel:#fff;--wc-text:#142438;--wc-line:#c5d3e2;--wc-accent:#0d8b75}body:has(>.web-chat){margin:0;background:#081321;color:#eef6ff;font:16px system-ui}.web-chat{box-sizing:border-box;max-width:800px;margin:24px auto;padding:24px;border:1px solid var(--wc-line);border-radius:16px;background:var(--wc-panel);color:var(--wc-text)}.web-chat header{display:flex;align-items:center;justify-content:space-between;gap:20px}.web-chat h1{font-size:1.4rem}.web-chat label{display:block;margin:14px 0}.web-chat input,.web-chat textarea{box-sizing:border-box;display:block;width:100%;margin-top:6px;padding:12px;border:1px solid var(--wc-line);border-radius:8px;background:var(--wc-bg);color:var(--wc-text);font:inherit}.web-chat button{padding:10px 18px;border:1px solid var(--wc-accent);border-radius:8px;background:transparent;color:var(--wc-accent);cursor:pointer;font:inherit}.web-chat button:hover{background:var(--wc-accent);color:#06131f}.web-chat button:disabled{opacity:.5;cursor:wait}.web-chat [hidden]{display:none!important}.web-chat [data-chat-messages]{max-height:52vh;overflow:auto;padding:8px}.web-message{padding:12px 16px;margin:12px 0;max-width:85%;border-radius:12px;background:var(--wc-bg);border:1px solid var(--wc-line);overflow-wrap:anywhere}.web-message.agent{margin-left:auto;border-color:var(--wc-accent)}.web-message p{white-space:pre-wrap}.web-message small,.chat-hint{font-size:.8rem;opacity:.8}.web-chat [role=status]{min-height:1.5em}.web-chat :focus-visible{outline:3px solid var(--wc-accent);outline-offset:3px}@media(max-width:600px){.web-chat{margin:0;padding:16px;border-radius:0;min-height:100dvh}.web-message{max-width:94%}}

html.web-light body:has(>.web-chat){background:#edf3fa;color:#142438}.inbox-conversation>.web-chat{margin:0;border:0;border-radius:0;max-width:none;width:100%;min-height:0;flex:1;overflow:auto}.inbox-conversation>.web-chat [data-chat-messages]{max-height:45vh}
