/* Snapshot of apps/widget/src/index.ts; host selectors mapped to iframe body. */

.handoff-form textarea{border:1px solid var(--line);border-radius:8px;padding:8px}.handoff-form [hidden]{display:none!important}

body{all:initial;--blue:#1769ff;--ink:#121920;--muted:#7a838d;--line:#e6e9ed;position:fixed;right:max(22px,env(safe-area-inset-right));bottom:max(22px,calc(env(safe-area-inset-bottom) + 14px));z-index:2147483000;isolation:isolate;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);color-scheme:light}
*,*:before,*:after{box-sizing:border-box}button,textarea,a{font:inherit}.launcher,.panel{pointer-events:auto}.launcher{height:62px;display:flex;align-items:stretch;overflow:hidden;padding:0;border:1px solid rgba(18,24,32,.08);border-radius:999px;background:#fff;box-shadow:0 12px 36px rgba(22,31,42,.2);cursor:pointer}.launcher-copy{min-width:148px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:0 17px 0 19px;background:#fff;color:#161c22;text-align:left;line-height:1.15}.launcher-copy strong{font-size:13px;font-weight:800}.launcher-copy span{margin-top:4px;color:var(--muted);font-size:11px;font-weight:650}.launcher-icon{position:relative;width:62px;height:62px;display:grid;flex:0 0 62px;place-items:center;margin:-1px -1px -1px 0;border:0;border-radius:50%;background:#111820;color:#fff;transition:background .14s ease}.launcher-icon svg{width:25px;height:25px}.launcher:hover .launcher-icon{background:#202a35}
.panel{position:absolute;right:0;bottom:76px;width:min(390px,calc(100vw - 32px));height:min(650px,calc(100dvh - 112px));min-height:430px;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;overflow:hidden;border:1px solid rgba(16,23,31,.1);border-radius:22px;background:#fff;box-shadow:0 26px 80px rgba(18,28,39,.19),0 4px 18px rgba(18,28,39,.08);opacity:0;visibility:hidden;transform:translateY(8px) scale(.985);transform-origin:right bottom;transition:opacity .16s ease,transform .16s ease,visibility .16s linear}body.open .panel{opacity:1;visibility:visible;transform:none}body.open .launcher{opacity:0;visibility:hidden;pointer-events:none}
.header{position:relative;z-index:5;min-height:72px;display:flex;align-items:center;justify-content:center;padding:12px 58px;border-bottom:1px solid var(--line);background:#fff}.agent-avatar{display:none;width:36px;height:36px;margin-right:10px;border-radius:50%;object-fit:cover}.agent-avatar.visible{display:block}.brand{min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;line-height:1.15}.brand strong{display:flex;align-items:center;gap:7px;font-size:15px;font-weight:800;letter-spacing:-.01em}.brand strong:after{content:"";width:7px;height:7px;border-radius:50%;background:#42bd7b;box-shadow:0 0 0 3px rgba(66,189,123,.12)}.brand span{max-width:230px;margin-top:5px;overflow:hidden;color:#818991;font-size:10px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.close{position:absolute;top:50%;right:14px;width:40px;height:40px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:#55606b;cursor:pointer;transform:translateY(-50%)}.close:hover{background:#f3f5f7}.close svg{width:21px;height:21px}.powered{position:relative;z-index:4;padding:7px 16px;border-bottom:1px solid var(--line);background:#fafbfc;color:#989fa6;font-size:9px;line-height:1.3;text-align:center}.powered a{color:inherit;font-weight:800;text-decoration:none}.powered.hidden{height:0;padding:0;border:0;overflow:hidden}body.unread .launcher-icon:after{content:"";position:absolute;top:2px;right:2px;width:12px;height:12px;border:3px solid #fff;border-radius:50%;background:#1769ff}
.thread{min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:18px 15px 22px;background:linear-gradient(180deg,#fff 0%,#fff 76%,#fcfcfd 100%);scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.message{display:flex;margin:0 0 12px}.message.assistant{justify-content:flex-start}.message.visitor{justify-content:flex-end}.message-inner{max-width:min(83%,292px)}.bubble{padding:10px 12px;border-radius:15px;font-size:13px;line-height:1.46;overflow-wrap:anywhere;white-space:pre-wrap}.assistant .bubble{border:1px solid #e5e8eb;border-bottom-left-radius:5px;background:#f5f6f8;color:#222930}.visitor .bubble{border-bottom-right-radius:5px;background:#121920;color:#fff}.meta{margin-top:4px;color:#a0a6ad;font-size:8px;font-weight:650}.visitor .meta{text-align:right}.typing{width:max-content;display:inline-flex;align-items:center;gap:4px;padding:11px 12px;border:1px solid #e5e8eb;border-radius:15px 15px 15px 5px;background:#f5f6f8}.typing i{width:5px;height:5px;display:block;border-radius:50%;background:#848d96;animation:dots 1.05s infinite ease-in-out}.typing i:nth-child(2){animation-delay:.14s}.typing i:nth-child(3){animation-delay:.28s}@keyframes dots{0%,60%,100%{transform:none;opacity:.35}30%{transform:translateY(-3px);opacity:1}}
.feedback{display:flex;align-items:center;gap:6px;margin:-7px 0 12px 4px;color:#8c949c;font-size:9px;font-weight:650}.feedback button{display:grid;width:27px;height:25px;place-items:center;padding:0;border:1px solid #e2e5e8;border-radius:8px;background:#fff;color:#5e6872;cursor:pointer}.feedback button:hover{background:#f5f6f8}.feedback button:disabled{opacity:.55;cursor:default}.suggestions{display:flex;flex-wrap:wrap;gap:7px;margin:2px 0 15px}.suggestions button{padding:8px 10px;border:1px solid #dfe4ea;border-radius:999px;background:#fff;color:#37414c;font-size:10px;font-weight:700;cursor:pointer}.suggestions button:hover{border-color:#b9c7dc;background:#f8faff}.suggestions.hidden{display:none}
.composer-wrap{position:relative;z-index:6;padding-top:1px;border-top:1px solid var(--line);background:#fff}.composer{min-height:54px;display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:end;gap:7px;margin:10px 10px 0;padding:5px 5px 5px 18px;border:1px solid #d9dee4;border-radius:999px;background:#fff;box-shadow:0 3px 14px rgba(17,24,32,.045)}.composer:focus-within{border-color:#c1c8d0;box-shadow:0 0 0 3px rgba(23,105,255,.07)}textarea{width:100%;min-height:42px;max-height:110px;resize:none;overflow-y:auto;padding:10px 0 8px;border:0;outline:0;background:transparent;color:#161c22;font-size:16px;line-height:1.35}textarea::placeholder{color:#9ba3ab}.send{width:44px;height:44px;display:grid;place-items:center;align-self:end;padding:0;border:0;border-radius:50%;background:var(--blue);color:#fff;cursor:pointer;transition:background .14s ease,transform .14s ease}.send:not(:disabled):hover{background:#0e5ce8}.send:not(:disabled):active{transform:scale(.94)}.send:disabled{background:#dce3ec;color:#9ba6b2;cursor:default}.send svg{width:20px;height:20px}.disclaimer{margin:6px 10px max(8px,calc(env(safe-area-inset-bottom) * .25));color:#b1b6bc;font-size:7px;line-height:1.2;text-align:center}.launcher:focus-visible,.close:focus-visible,.send:focus-visible,.feedback button:focus-visible{outline:3px solid rgba(23,105,255,.24);outline-offset:2px}
@media(max-width:720px),(pointer:coarse) and (max-height:720px){body{right:max(12px,env(safe-area-inset-right));bottom:max(12px,calc(env(safe-area-inset-bottom) + 8px))}.launcher{height:58px}.launcher-copy{min-width:133px;padding:0 14px 0 16px}.launcher-copy strong{font-size:12px}.launcher-copy span{font-size:10px}.launcher-icon{width:58px;height:58px;flex-basis:58px}.panel{position:fixed;top:6px;right:6px;bottom:6px;left:6px;width:auto;height:auto;min-height:0;max-height:none;border-radius:20px;transform:translateY(14px);transform-origin:center bottom}.header{z-index:10;min-height:68px;padding:11px 56px}.close{right:11px;width:42px;height:42px}.powered{z-index:9}.thread{padding:17px 13px 22px;overscroll-behavior-y:contain;touch-action:pan-y}.message-inner{max-width:86%}.composer-wrap{z-index:10}.composer{margin:9px 10px 0}.disclaimer{margin:5px 10px max(7px,env(safe-area-inset-bottom))}}
@media(max-width:480px){.panel{top:0;right:0;bottom:0;left:0;width:auto;height:100dvh;max-height:100dvh;border:0;border-radius:0}.header{padding-top:max(11px,env(safe-area-inset-top))}.composer-wrap{padding-bottom:env(safe-area-inset-bottom)}}@media(max-width:390px){.launcher-copy{min-width:124px}}
@media(prefers-reduced-motion:reduce){.panel,.typing i,.send{transition:none!important;animation:none!important}.thread{scroll-behavior:auto}}

.header{justify-content:center;background:#fbfcfd}.agent-avatar{position:absolute;left:18px;margin:0}.brand{align-items:center;text-align:center}.brand strong{font-size:15px;font-weight:700}.brand span{font-size:11px;font-weight:400;color:#657180}.brand strong:after{display:none}.powered{background:#fff;border-bottom:0;padding-top:8px;color:#7b8794}.thread{background:#fff}.assistant .bubble{background:#f3f5f7;border-color:#edf0f3;line-height:1.55}.visitor .bubble{background:#1c2938;line-height:1.55}.meta{font-size:10px;font-weight:600;color:#687585;margin:0 3px 6px}.suggestions{display:flex;flex-direction:column;align-items:flex-start;gap:7px}.suggestions button{display:inline-flex;align-items:center;gap:12px;max-width:100%;text-align:left;border-radius:10px;padding:11px 12px;font-size:11px;font-weight:500;background:#fafbfd}.suggestions button:after{content:"→";flex:none;color:#527095}.composer{border-radius:30px;box-shadow:none}.disclaimer{font-size:8px;line-height:1.35;color:#788493}.action-card{padding:16px;margin:10px 0 18px;border:1px solid #dce3ec;border-radius:14px;background:#f8fafc;overflow-wrap:anywhere}.action-card h3{font-size:14px;margin:0 0 7px;font-weight:700;line-height:1.4}.action-state{font-size:12px;line-height:1.5;color:#4e6175;margin:0 0 12px}.action-card dl{margin:10px 0;font-size:12px}.action-card dl>div{padding:7px 0;border-top:1px solid #e5eaf0}.action-card dt{color:#6b7887;font-size:10px;margin-bottom:3px}.action-card dd{margin:0;white-space:pre-wrap}.action-card label{display:block;font-size:11px;line-height:1.5;margin-top:12px;color:#455468}.action-card input{display:block;width:100%;min-height:42px;margin:5px 0;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;font:inherit;font-size:16px;background:white;color:#162332}.action-card button{display:block;width:100%;min-height:40px;padding:9px 12px;margin-top:9px;border:1px solid #213953;border-radius:9px;background:#213953;color:#fff;font:inherit;font-size:12px;font-weight:600;cursor:pointer}.action-card button.secondary{background:transparent;color:#405773;border-color:#ccd7e2}.action-card button:disabled{opacity:.55;cursor:wait}.action-card button:focus-visible,.action-card input:focus-visible{outline:2px solid #1769ff;outline-offset:2px}.action-note{font-size:11px;line-height:1.5;color:#596b80;margin:8px 0}.action-card small{display:block;font-size:9px;line-height:1.5;color:#5e6e80}


.bubble a{color:#236bcc;text-decoration:underline;text-underline-offset:3px}.bubble a:hover{color:#1352a4}
.feedback{gap:9px;margin:0 0 20px 3px;font-size:12px;color:#526174}.feedback button{width:42px;height:40px;border-radius:12px;color:#405773}.feedback svg{width:21px;height:21px}.feedback button:hover{color:#1769ff;border-color:#8daee0;background:#f0f6ff}.feedback button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.send.flying svg{animation:plane-flight 1s ease-in-out 3}.send.flying:disabled{background:var(--blue);color:white}@keyframes plane-flight{0%,100%{transform:translate(0,0) rotate(0)}35%{transform:translate(2px,-3px) rotate(-9deg)}70%{transform:translate(-1px,1px) rotate(5deg)}}
@media(max-width:720px),(pointer:coarse) and (max-height:720px){.panel{transition:opacity .16s ease,visibility .16s linear;transform:none}.disclaimer{margin:5px 10px 7px}.composer-wrap{padding-bottom:env(safe-area-inset-bottom)}body.keyboard .composer-wrap{padding-bottom:0}}
@media(prefers-reduced-motion:reduce){.send.flying svg{animation:none}}
body.dark{--ink:#e5ebf3;--muted:#a5b0be;--line:#303c4b;--blue:#4a8bff;color-scheme:dark}
body.dark .panel,body.dark .thread,body.dark .composer-wrap,body.dark .powered{background:#151d27;color:var(--ink)}
body.dark .header{background:#1a2431}body.dark .brand span,body.dark .meta,body.dark .powered,body.dark .disclaimer{color:#a5b0be}
body.dark .close{color:#c2ccda}body.dark .close:hover{background:#2a3748}
body.dark .assistant .bubble,body.dark .typing{background:#222e3d;border-color:#344256;color:#e5ebf3}body.dark .visitor .bubble{background:#285aa0;color:#fff}
body.dark .composer,body.dark .suggestions button,body.dark .feedback button{background:#1e2a39;border-color:#3a4960;color:#dce6f4}body.dark textarea{color:#e5ebf3}body.dark .send:disabled{background:#344256;color:#a7b6ca}body.dark .send.flying{background:var(--blue);color:white}
body.dark .bubble a{color:#91bdff}body.dark .suggestions button:after,body.dark .feedback{color:#afc9ec}
body.dark .action-card{background:#1e2a39;border-color:#3a4960}body.dark .action-card dl>div{border-color:#3a4960}body.dark .action-card input{background:#151d27;border-color:#52647b;color:#e5ebf3}body.dark .action-card button{background:#325a89;border-color:#5278a8}body.dark .action-card button.secondary{background:transparent;color:#c4d8f2}body.dark .action-card :is(.action-state,.action-note,dt,label,small){color:#b5c5d9}

/* Match the offer mock while keeping the existing light/dark conversation surfaces. */
.panel{border:2px solid #111820}
.header,body.dark .header{background:#102d50;color:#fff;border-bottom-color:#102d50}
.brand span,body.dark .brand span{color:#cbd9e9}
.close,body.dark .close{color:#fff}
.close:hover,body.dark .close:hover{background:rgba(255,255,255,.14)}
.close:focus-visible{outline:2px solid #fff;outline-offset:2px}
/* Desktop conversation panel; mobile keeps its existing visual-viewport layout. */
@media (min-width:721px) and (pointer:fine),(min-width:721px) and (min-height:721px){
  .panel{position:fixed;top:20px;right:max(22px,env(safe-area-inset-right));bottom:20px;left:auto;width:min(clamp(400px,34vw,640px),calc(100vw - 44px));height:calc(100dvh - 40px);min-height:0;max-height:none;transform-origin:right center}
  .thread{padding:22px 22px 26px}
  .message-inner{max-width:86%}
  .bubble{font-size:14px;line-height:1.55;padding:12px 14px}
  .action-card{padding:18px}
  .action-card dl{font-size:13px;line-height:1.55}
  .action-card dt{font-size:11px}
}

.suggestions button{border-radius:999px;padding:11px 16px}
.side-tools{position:absolute;z-index:12;right:0;top:35%;display:flex;flex-direction:column;gap:9px;padding:12px 7px;border:1px solid #dce3ec;border-right:0;border-radius:22px 0 0 22px;background:#f8fafceF;box-shadow:-3px 4px 18px #152b4510}
.side-tool{position:relative;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid #ceddf0;border-radius:50%;background:#edf4ff;color:#346cad;cursor:pointer;font:inherit}
.side-tool svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.side-tool.history{color:#7661ac;background:#f2eefa;border-color:#ded5ef}.side-tool.latest{color:#337a70;background:#eaf5f0;border-color:#cce5db}
.side-tool:hover{filter:brightness(.96)}.side-tool:focus-visible{outline:2px solid currentColor;outline-offset:3px}.side-tool[hidden]{display:none}
.tool-preview{position:absolute;right:calc(100% + 15px);top:50%;transform:translateY(-50%);width:210px;max-width:calc(100vw - 105px);padding:12px 14px;border:1px solid #dce3ec;border-radius:13px;background:#fff;color:#25384c;box-shadow:0 6px 24px #152b451b;font-size:12px;line-height:1.5;text-align:left;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s}
.tool-preview strong{display:block;margin-bottom:3px;font-size:12px}.side-tool:hover .tool-preview,.side-tool:focus-visible .tool-preview{opacity:1;visibility:visible}
.thread{padding-right:70px}
body.dark .side-tools{background:#1b2837;border-color:#34465d}body.dark .side-tool{background:#243e60;color:#a6caff;border-color:#3a5a80}body.dark .side-tool.history{background:#382f4f;color:#ceb9f7;border-color:#534269}body.dark .side-tool.latest{background:#203f3c;color:#a2d9c7;border-color:#365d55}body.dark .tool-preview{background:#223145;color:#e5edf7;border-color:#43546b}
.viewport-fill{display:none}
@media(max-width:720px),(pointer:coarse) and (max-height:720px){
 body.open .viewport-fill{display:block;position:fixed;inset:0;background:#fff;pointer-events:none}
 body.open.dark .viewport-fill{background:#151d27}
 .viewport-fill:before{content:'';position:absolute;top:0;left:0;right:0;height:var(--viewport-top,env(safe-area-inset-top));background:#102d50}
 .panel{border:0;border-radius:0}.thread{padding-right:65px}.side-tools{padding:10px 5px;gap:7px;top:32%}.side-tool{width:42px;height:42px}
}


.action-receipt{--receipt-accent:#234f79;--receipt-tint:#eaf1f8;background:#fff;border:1px solid #dce4ec;padding:17px;box-shadow:0 4px 16px rgba(20,40,60,.045);border-radius:17px}.action-receipt[data-status=succeeded]{--receipt-accent:#167351;--receipt-tint:#e8f5ee;border-color:#bfdecd}.action-receipt[data-status=failed]{--receipt-accent:#b23d3d;--receipt-tint:#fbeeed}.action-receipt[data-status=unknown]{--receipt-accent:#916312;--receipt-tint:#fff4dd}.action-receipt[data-status=cancelled]{--receipt-accent:#647183;--receipt-tint:#edf0f4}.action-receipt-head{display:flex;align-items:flex-start;gap:12px;padding-bottom:13px;border-bottom:1px solid var(--line)}.action-receipt-icon{width:35px;height:35px;flex:0 0 35px;border-radius:50%;display:grid;place-items:center;background:var(--receipt-tint);color:var(--receipt-accent)}.action-receipt-icon svg{width:20px;height:20px}.action-receipt-title{min-width:0;flex:1}.action-receipt .action-state{font-size:10px;font-weight:650;line-height:1.5;color:var(--receipt-accent);margin:0 0 4px}.action-receipt h3{font-size:14px;line-height:1.45;margin:0;font-weight:650;color:#172c40}.action-receipt dl{margin:6px 0 0}.action-receipt dl>div{display:grid;grid-template-columns:minmax(76px,.8fr) minmax(0,1.4fr);gap:13px;border-top:0;border-bottom:1px solid #edf0f3;padding:10px 0}.action-receipt dl>div:last-child{border-bottom:0}.action-receipt dt{font-size:10px;line-height:1.6;margin:0;color:#677889}.action-receipt dd{font-size:12px;line-height:1.6;color:#21384b;min-width:0}.action-result-links{display:grid;gap:8px;margin-top:13px}.action-result-links a{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:42px;padding:10px 15px;border:1px solid #d5e1ec;border-radius:999px;background:#f1f6fa;color:#234c6d;text-decoration:none;font-size:12px;font-weight:600}.action-result-links a:hover{background:#e5eef5}.action-result-links a:focus-visible{outline:2px solid #1769ff;outline-offset:3px}.action-receipt button{border-radius:999px;min-height:42px}.action-receipt .action-note:empty{display:none}.action-receipt[data-status=running] .action-receipt-icon svg{animation:action-spin 1.5s linear infinite}.action-receipt.action-arrived .action-receipt-icon{animation:action-settle .38s ease-out both}@keyframes action-spin{to{transform:rotate(360deg)}}@keyframes action-settle{0%{transform:scale(.82);opacity:.4}65%{transform:scale(1.09)}100%{transform:scale(1);opacity:1}}
body.dark .action-receipt{background:#1b2838;border-color:#394d63;--receipt-accent:#a9c9ee;--receipt-tint:#2a405b}body.dark .action-receipt[data-status=succeeded]{border-color:#376351;--receipt-accent:#92dbb9;--receipt-tint:#244a3b}body.dark .action-receipt[data-status=failed]{--receipt-accent:#f1aaaa;--receipt-tint:#533638}body.dark .action-receipt[data-status=unknown]{--receipt-accent:#efd092;--receipt-tint:#4c4330}body.dark .action-receipt .action-state{color:var(--receipt-accent)}body.dark .action-receipt-head,body.dark .action-receipt dl>div{border-color:#344456}body.dark .action-receipt h3,body.dark .action-receipt dd{color:#e3edf6}body.dark .action-receipt dt{color:#a5b7ca}body.dark .action-result-links a{background:#263e55;border-color:#415b74;color:#deedff}body.dark .action-result-links a:hover{background:#304c67}
@media(prefers-reduced-motion:reduce){.action-receipt .action-receipt-icon,.action-receipt .action-receipt-icon svg{animation:none!important}}
