:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}html,body{background:var(--surface,#fff);height:100%;color:var(--ink,#17222b);font-family:var(--font-body,system-ui, sans-serif);margin:0}#root{height:100%}.widget{background:var(--surface);flex-direction:column;width:100%;height:100%;display:flex;overflow:hidden}.widget-header{background:var(--ink);color:var(--paper);flex:none;align-items:center;gap:10px;padding:14px 16px;display:flex}.widget-header .title{font-family:var(--font-display);font-size:15px;font-weight:700}.widget-header .sub{opacity:.75;margin-top:1px;font-size:12px}.widget-header .meta{opacity:.9;align-items:center;gap:7px;margin-left:auto;font-size:12px;display:flex}.widget-body{flex-direction:column;flex:1;min-height:0;display:flex}.intake{flex-direction:column;gap:14px;padding:22px 20px;display:flex;overflow-y:auto}.intake h2{font-family:var(--font-display);color:var(--ink);margin:4px 0 0;font-size:18px}.intake .lede{color:var(--muted);margin:0;font-size:13.5px;line-height:1.5}.field{flex-direction:column;gap:5px;display:flex}.field label{color:var(--ink);font-size:12.5px;font-weight:600}.field .req{color:var(--waiting);font-weight:600}.field input{font:inherit;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:8px;padding:9px 11px;font-size:14px}.field input:focus-visible{outline:2px solid var(--signal);outline-offset:1px}.field input[aria-invalid=true]{border-color:var(--waiting)}.field-error{color:var(--waiting);font-size:12px}.btn-primary{font:inherit;cursor:pointer;background:var(--signal);color:#fff;border:none;border-radius:9px;margin-top:4px;padding:11px 16px;font-size:14px;font-weight:600}.btn-primary:hover{filter:brightness(1.06)}.btn-primary:focus-visible{outline:2px solid var(--ink);outline-offset:2px}.btn-primary:disabled{opacity:.7;cursor:default}.waiting-screen{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:14px;padding:28px;display:flex}.waiting-ring{border:3px solid var(--waiting-soft);border-top-color:var(--waiting);border-radius:50%;width:52px;height:52px;animation:1.1s linear infinite spin}@media (prefers-reduced-motion:reduce){.waiting-ring{animation:none}}@keyframes spin{to{transform:rotate(360deg)}}.waiting-screen h3{font-family:var(--font-display);color:var(--ink);margin:0;font-size:16px}.waiting-screen p{color:var(--muted);max-width:26ch;margin:0;font-size:13.5px}.waiting-screen .count{color:var(--waiting);font-size:12.5px}.thread{flex-direction:column;flex:1;gap:10px;padding:16px;display:flex;overflow-y:auto}.bubble-row{display:flex}.bubble-row.from-me{justify-content:flex-end}.bubble{border-radius:13px;max-width:78%;padding:9px 12px;font-size:13.5px;line-height:1.45}.bubble-row.from-them .bubble{background:var(--paper);border:1px solid var(--line);color:var(--ink);border-bottom-left-radius:4px}.bubble-row.from-me .bubble{background:var(--signal);color:#fff;border-bottom-right-radius:4px}.bubble-meta{color:var(--muted);margin-top:3px;font-size:10.5px}.bubble-row.from-me .bubble-meta{text-align:right}.system-note{color:var(--muted);background:var(--paper);border:1px solid var(--line);border-radius:999px;align-self:center;padding:3px 10px;font-size:11.5px}.bubble-attachment{cursor:default;align-items:center;gap:10px;min-width:190px;padding:9px 11px 9px 9px;display:flex}.bubble-attachment .file-icon,.bubble-attachment .file-icon-error,.bubble-attachment .file-spinner-sm{border-radius:8px;flex:none;justify-content:center;align-items:center;width:30px;height:30px;display:flex}.bubble-row.from-them .bubble-attachment .file-icon{background:var(--signal-soft);color:var(--signal)}.bubble-row.from-me .bubble-attachment .file-icon{color:#fff;background:#fff3}.file-info{flex:1;min-width:0}.file-name{white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:600;overflow:hidden}.file-meta{opacity:.85;font-size:11px}.attachment-verified{cursor:pointer}.attachment-verified:hover{filter:brightness(1.04)}.attachment-verified .file-chevron{opacity:.7;flex:none}.attachment-pending{border:1px dashed var(--line);color:var(--ink);background:var(--paper)!important}.bubble-row.from-me .attachment-pending{border-bottom-right-radius:4px}.bubble-row.from-them .attachment-pending{border-bottom-left-radius:4px}.attachment-pending .file-name{color:var(--ink)}.attachment-pending .file-meta{color:var(--muted)}.file-spinner-sm{border:2.5px solid var(--line);border-top-color:var(--waiting);border-radius:50%;animation:1s linear infinite spin}@media (prefers-reduced-motion:reduce){.file-spinner-sm{animation:none}}.attachment-rejected{border:1px solid var(--waiting);color:var(--waiting);background:var(--waiting-soft)!important}.bubble-row.from-me .attachment-rejected{border-bottom-right-radius:4px}.bubble-row.from-them .attachment-rejected{border-bottom-left-radius:4px}.attachment-rejected .file-icon-error{color:var(--waiting);background:#b5700e24}.attachment-rejected .file-name,.attachment-rejected .file-meta{color:var(--waiting)}.composer{border-top:1px solid var(--line);flex:none;gap:8px;padding:12px;display:flex}.attach-btn{border:1px solid var(--line);background:var(--surface);width:36px;height:36px;color:var(--muted);cursor:pointer;border-radius:999px;flex:none;justify-content:center;align-items:center;display:flex}.attach-btn:hover{background:var(--paper);color:var(--ink)}.attach-btn:focus-visible{outline:2px solid var(--signal);outline-offset:1px}.attach-btn:disabled{opacity:.6;cursor:default}.attach-hint{color:var(--waiting);padding:0 12px 10px;font-size:11px}.composer input{font:inherit;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:999px;flex:1;padding:9px 12px;font-size:13.5px}.composer input:focus-visible{outline:2px solid var(--signal);outline-offset:1px}.send-btn{font:inherit;cursor:pointer;background:var(--signal);color:#fff;border:none;border-radius:999px;padding:0 16px;font-size:13px;font-weight:600}.ended-bar{border-top:1px solid var(--line);flex:none;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;display:flex}.ended-bar span{color:var(--muted);font-size:12.5px}.btn-ghost{font:inherit;cursor:pointer;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:8px 14px;font-size:13px;font-weight:600}.pulse-dot{border-radius:50%;flex:none;width:8px;height:8px;position:relative}.pulse-dot:after{content:"";opacity:.6;border:1.5px solid;border-radius:50%;animation:2.2s ease-out infinite pulse;position:absolute;inset:-4px}@media (prefers-reduced-motion:reduce){.pulse-dot:after{animation:none;display:none}}@keyframes pulse{0%{opacity:.7;transform:scale(.6)}to{opacity:0;transform:scale(2.1)}}.pulse-dot.live{background:var(--ok);color:var(--ok)}.pulse-dot.waiting{background:var(--waiting);color:var(--waiting)}.pulse-dot.ended{background:var(--muted);color:var(--muted)}.pulse-dot.ended:after{display:none}
