.cancea-chat,.cancea-chat *{box-sizing:border-box}
.cancea-chat{--chat-brand:#0d2634;--chat-brand-2:#174957;--chat-accent:#5cc9d8;--chat-accent-2:#a7cf67;--chat-panel:#f7f4ee;--chat-surface:#fff;--chat-soft:#eaf0f3;--chat-text:#102632;--chat-muted:#617782;--chat-line:rgba(13,31,42,.11);--chat-link:#087f98;--chat-radius:18px;--chat-control-radius:12px;--chat-focus:rgba(92,201,216,.7);--chat-shadow:0 24px 72px rgba(3,18,27,.24);position:fixed;right:22px;bottom:22px;z-index:1200;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:13px;color:var(--chat-text);line-height:1.5}
.cancea-chat .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.cancea-chat button,.cancea-chat textarea{font:inherit;letter-spacing:normal}
.cancea-chat button{margin:0}
.cancea-chat p,.cancea-chat h3,.cancea-chat h4,.cancea-chat h5,.cancea-chat blockquote,.cancea-chat ul,.cancea-chat ol{margin-top:0}
.cancea-chat__launcher{display:flex;align-items:center;gap:10px;min-height:44px;border:1px solid color-mix(in srgb,var(--chat-accent) 34%,transparent);border-radius:var(--chat-control-radius);background:linear-gradient(135deg,var(--chat-brand),var(--chat-brand-2));color:#fff;padding:11px 15px 11px 12px;font-family:inherit;font-size:13px;font-weight:700;line-height:1.1;box-shadow:0 14px 36px rgba(3,18,27,.24);cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.cancea-chat__launcher:hover{transform:translateY(-1px);box-shadow:0 18px 44px rgba(3,18,27,.28);border-color:color-mix(in srgb,var(--chat-accent) 58%,transparent)}
.cancea-chat__launcher:focus-visible,.cancea-chat button:focus-visible,.cancea-chat textarea:focus-visible,.cancea-chat a:focus-visible,.cancea-chat summary:focus-visible{outline:3px solid var(--chat-focus);outline-offset:3px}
.cancea-chat__launcher-mark{position:relative;display:block;flex:0 0 auto;width:22px;height:22px;border-radius:7px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.11)}
.cancea-chat__launcher-mark::before,.cancea-chat__launcher-mark::after{content:"";position:absolute;border-radius:50%;border:1.5px solid var(--chat-accent)}
.cancea-chat__launcher-mark::before{width:8px;height:8px;left:4px;top:4px}
.cancea-chat__launcher-mark::after{width:6px;height:6px;right:3px;bottom:3px;border-color:var(--chat-accent-2)}
.cancea-chat__launcher-label{white-space:nowrap}
.cancea-chat__panel{position:absolute;right:0;bottom:58px;width:min(430px,calc(100vw - 28px));max-height:min(700px,calc(100vh - 104px));display:flex;flex-direction:column;overflow:hidden;padding:0!important;margin:0!important;border:1px solid var(--chat-line);border-radius:var(--chat-radius);background:var(--chat-panel);color:var(--chat-text);box-shadow:var(--chat-shadow)}
.cancea-chat__panel[hidden]{display:none!important}
.cancea-chat__head{display:flex;justify-content:space-between;gap:18px;align-items:center;flex:0 0 auto;padding:14px 14px 13px 15px;background:linear-gradient(135deg,var(--chat-brand),var(--chat-brand-2));color:#fff}
.cancea-chat__identity{display:flex;align-items:center;min-width:0;gap:11px}
.cancea-chat__brandmark{position:relative;display:block;flex:0 0 auto;width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.12)}
.cancea-chat__brandmark::before,.cancea-chat__brandmark::after{content:"";position:absolute;border-radius:50%;border:1.8px solid var(--chat-accent)}
.cancea-chat__brandmark::before{width:11px;height:11px;left:6px;top:6px}
.cancea-chat__brandmark::after{width:8px;height:8px;right:5px;bottom:5px;border-color:var(--chat-accent-2)}
.cancea-chat__head-copy{min-width:0}
.cancea-chat__head-copy strong{display:block;margin:0;font-size:14px;line-height:1.2;font-weight:760;letter-spacing:.01em}
.cancea-chat__head-copy span{display:block;margin-top:3px;color:rgba(255,255,255,.68);font-size:10.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cancea-chat__head-actions{display:flex;gap:3px;align-items:center;flex:0 0 auto}
.cancea-chat__icon-button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:9px;background:transparent;color:#fff;cursor:pointer;transition:background .15s ease}
.cancea-chat__icon-button:hover{background:rgba(255,255,255,.10)}
.cancea-chat__icon-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cancea-chat__messages{min-height:118px;max-height:372px;overflow:auto;padding:18px 16px 14px;display:flex;flex-direction:column;gap:12px;scrollbar-gutter:stable;background:var(--chat-panel)}
.cancea-chat__message{display:flex;flex-direction:column;gap:7px;min-width:0}
.cancea-chat__message--user{align-items:flex-end}
.cancea-chat__bubble{max-width:92%;padding:10px 12px;border:1px solid transparent;border-radius:calc(var(--chat-control-radius) + 2px);background:var(--chat-soft);color:var(--chat-text);font-size:13px;line-height:1.52;overflow-wrap:anywhere}
.cancea-chat__message--assistant .cancea-chat__bubble{border-color:color-mix(in srgb,var(--chat-line) 75%,transparent)}
.cancea-chat__message--user .cancea-chat__bubble{white-space:pre-wrap;background:var(--chat-brand);color:#fff;border-color:var(--chat-brand);box-shadow:none}
.cancea-chat__bubble p{margin:0 0 .72em}.cancea-chat__bubble p:last-child{margin-bottom:0}
.cancea-chat__bubble h3,.cancea-chat__bubble h4,.cancea-chat__bubble h5{margin:.8em 0 .35em;color:inherit;line-height:1.25}
.cancea-chat__bubble h3:first-child,.cancea-chat__bubble h4:first-child,.cancea-chat__bubble h5:first-child{margin-top:0}
.cancea-chat__bubble h3{font-size:15px}.cancea-chat__bubble h4{font-size:14px}.cancea-chat__bubble h5{font-size:13px}
.cancea-chat__bubble ul,.cancea-chat__bubble ol{margin:.45em 0 .72em;padding-left:1.35em}.cancea-chat__bubble li+li{margin-top:.28em}
.cancea-chat__bubble blockquote{margin:.65em 0;padding:.05em 0 .05em .8em;border-left:3px solid var(--chat-accent);color:var(--chat-muted)}
.cancea-chat__bubble code{padding:.08em .3em;border-radius:4px;background:color-mix(in srgb,var(--chat-brand) 8%,transparent);font:12px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace}
.cancea-chat__bubble pre{margin:.65em 0;overflow:auto;border-radius:8px;background:var(--chat-brand);color:#eef6f8;padding:10px}
.cancea-chat__bubble pre code{padding:0;background:transparent;color:inherit;white-space:pre}
.cancea-chat__bubble a{color:var(--chat-link);text-decoration:underline;text-underline-offset:2px}
.cancea-chat__working{display:flex;align-items:center;gap:9px;color:var(--chat-muted)}
.cancea-chat__spinner{width:14px;height:14px;box-sizing:border-box;border:2px solid color-mix(in srgb,var(--chat-brand) 16%,transparent);border-top-color:var(--chat-accent);border-radius:50%;animation:cancea-chat-spin .8s linear infinite}
@keyframes cancea-chat-spin{to{transform:rotate(360deg)}}
.cancea-chat__sources{max-width:92%;font-size:11px;color:var(--chat-muted)}
.cancea-chat__sources summary{display:inline-flex;align-items:center;gap:5px;padding:4px 7px 4px 5px;border-radius:999px;cursor:pointer;font-weight:700;color:var(--chat-muted);list-style:none;transition:background .15s ease,color .15s ease}
.cancea-chat__sources summary:hover{background:color-mix(in srgb,var(--chat-accent) 8%,transparent);color:var(--chat-text)}
.cancea-chat__sources summary::-webkit-details-marker{display:none}
.cancea-chat__sources summary::before{content:"›";display:inline-block;color:var(--chat-accent);font-size:14px;line-height:1;transition:transform .15s ease}
.cancea-chat__sources[open] summary::before{transform:rotate(90deg)}
.cancea-chat__source-list{display:flex;flex-direction:column;gap:5px;margin-top:6px;padding-left:12px}
.cancea-chat__source-list a{color:var(--chat-link);text-decoration:none;border-bottom:1px solid color-mix(in srgb,var(--chat-link) 24%,transparent);width:fit-content;max-width:100%}
.cancea-chat__prompt-row{flex:0 0 auto;padding:4px 14px 5px;border-top:1px solid color-mix(in srgb,var(--chat-line) 65%,transparent);background:color-mix(in srgb,var(--chat-surface) 96%,var(--chat-panel))}
.cancea-chat__prompt-row[hidden]{display:none!important}
.cancea-chat__prompt-label{display:block;margin:0 0 2px;color:color-mix(in srgb,var(--chat-muted) 72%,transparent);font-size:8px;font-weight:700;line-height:1;text-transform:uppercase;letter-spacing:.10em}
.cancea-chat__suggestions{display:flex;align-items:center;gap:0;min-height:18px;overflow-x:auto;overflow-y:hidden;padding:0 0 3px;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--chat-accent) 45%,transparent) transparent;white-space:nowrap;-webkit-overflow-scrolling:touch}
.cancea-chat__suggestions::-webkit-scrollbar{height:4px}
.cancea-chat__suggestions::-webkit-scrollbar-track{background:transparent}
.cancea-chat__suggestions::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--chat-accent) 45%,transparent);border-radius:999px}
.cancea-chat__suggestions button{position:relative;flex:0 0 auto;border:0;background:transparent;color:color-mix(in srgb,var(--chat-muted) 82%,transparent);padding:2px 8px;font-family:inherit;font-size:9.5px;font-weight:500;line-height:1.2;cursor:pointer;white-space:nowrap;transition:color .15s ease}
.cancea-chat__suggestions button:first-child{padding-left:0}
.cancea-chat__suggestions button+button::before{content:"·";position:absolute;left:-1px;color:color-mix(in srgb,var(--chat-muted) 45%,transparent)}
.cancea-chat__suggestions button:hover{color:var(--chat-link);text-decoration:underline;text-underline-offset:3px}
.cancea-chat__form{flex:0 0 auto;margin:0!important;padding:12px 14px 8px!important;border-top:1px solid var(--chat-line);background:var(--chat-surface)}
.cancea-chat__composer{position:relative;min-height:50px;padding:4px 52px 4px 12px;border:1px solid color-mix(in srgb,var(--chat-line) 125%,transparent);border-radius:calc(var(--chat-control-radius) + 2px);background:var(--chat-surface);box-shadow:0 1px 0 rgba(255,255,255,.5) inset;transition:border-color .15s ease,box-shadow .15s ease}
.cancea-chat__composer:focus-within{border-color:color-mix(in srgb,var(--chat-accent) 50%,var(--chat-line));box-shadow:0 0 0 3px color-mix(in srgb,var(--chat-accent) 12%,transparent)}
.cancea-chat__form textarea{display:block;width:100%;min-width:0;height:40px;min-height:40px;max-height:112px;resize:none;overflow-y:auto;padding:9px 0;border:0!important;outline:0!important;background:transparent!important;color:var(--chat-text);font-family:inherit;font-size:13px;font-weight:400;line-height:22px;box-shadow:none!important}
.cancea-chat__form textarea::placeholder{color:color-mix(in srgb,var(--chat-muted) 72%,transparent)}
.cancea-chat__send{position:absolute;right:4px;bottom:4px;display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:linear-gradient(135deg,var(--chat-brand),var(--chat-brand-2));color:#fff;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,opacity .15s ease}
.cancea-chat__send:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 8px 18px color-mix(in srgb,var(--chat-brand) 22%,transparent)}
.cancea-chat__send:disabled{opacity:.62;cursor:wait}
.cancea-chat__send-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.cancea-chat__send svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cancea-chat__send-spinner{display:none;width:15px;height:15px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:cancea-chat-spin .8s linear infinite}
.cancea-chat__send.is-busy .cancea-chat__send-icon{display:none}.cancea-chat__send.is-busy .cancea-chat__send-spinner{display:block}
.cancea-chat__foot{display:flex;flex-wrap:wrap;align-items:center;gap:5px;flex:0 0 auto;margin:0!important;padding:0 14px 11px!important;background:var(--chat-surface);color:var(--chat-muted);font-size:9.5px;line-height:1.35}
.cancea-chat__foot-sep{opacity:.45}.cancea-chat__foot a{color:var(--chat-link);text-decoration:none;font-weight:650}.cancea-chat__foot a:hover{text-decoration:underline}
.cancea-chat--expanded .cancea-chat__panel{position:fixed;right:24px;bottom:24px;width:min(780px,calc(100vw - 48px));height:min(820px,calc(100vh - 48px));max-height:none}
.cancea-chat--expanded .cancea-chat__messages{flex:1 1 auto;min-height:0;max-height:none;padding:22px 22px 18px}
.cancea-chat--expanded .cancea-chat__bubble{max-width:82%;font-size:14px;line-height:1.58}
.cancea-chat--theme-cancea{--chat-brand:#123d5a;--chat-brand-2:#225b7c;--chat-accent:#f28a18;--chat-accent-2:#f6b24a;--chat-panel:#f5f8fb;--chat-surface:#fff;--chat-soft:#eaf1f6;--chat-text:#173247;--chat-muted:#5b7080;--chat-line:#d9e2e9;--chat-link:#155a88;--chat-radius:12px;--chat-control-radius:8px;--chat-focus:rgba(242,138,24,.58);--chat-shadow:0 16px 44px rgba(11,47,74,.20)}
.cancea-chat--theme-cancea .cancea-chat__launcher{border-color:rgba(242,138,24,.72);box-shadow:0 12px 30px rgba(11,47,74,.22)}
.cancea-chat--theme-cancea .cancea-chat__launcher:hover{border-color:#f6b24a;box-shadow:0 15px 34px rgba(11,47,74,.27)}
.cancea-chat--theme-cancea .cancea-chat__head{border-bottom:3px solid var(--chat-accent)}
.cancea-chat--theme-cancea .cancea-chat__launcher-mark,.cancea-chat--theme-cancea .cancea-chat__brandmark{border-radius:6px;background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.14)}
.cancea-chat--theme-cancea .cancea-chat__launcher-mark::before,.cancea-chat--theme-cancea .cancea-chat__launcher-mark::after,.cancea-chat--theme-cancea .cancea-chat__brandmark::before,.cancea-chat--theme-cancea .cancea-chat__brandmark::after{border:0;border-radius:999px}
.cancea-chat--theme-cancea .cancea-chat__launcher-mark::before{width:12px;height:3px;left:4px;top:6px;background:var(--chat-accent)}
.cancea-chat--theme-cancea .cancea-chat__launcher-mark::after{width:8px;height:3px;right:3px;bottom:5px;background:rgba(255,255,255,.9)}
.cancea-chat--theme-cancea .cancea-chat__brandmark::before{width:16px;height:4px;left:6px;top:8px;background:var(--chat-accent)}
.cancea-chat--theme-cancea .cancea-chat__brandmark::after{width:11px;height:4px;right:5px;bottom:7px;background:rgba(255,255,255,.9)}
.cancea-chat--theme-cancea .cancea-chat__message--assistant .cancea-chat__bubble{background:#fff}
.cancea-chat--theme-cancea .cancea-chat__prompt-row{background:#fff}
.cancea-chat--theme-cancea .cancea-chat__composer{border-color:#cbd8e1}
.cancea-chat--theme-cancea .cancea-chat__send{background:linear-gradient(135deg,#123d5a,#225b7c)}
.cancea-chat--theme-cancea .cancea-chat__diagram{background:#fff;border-radius:10px}

.cancea-chat--theme-svt{--chat-brand:#202F54;--chat-brand-2:#1a2646;--chat-accent:#00B3DC;--chat-accent-2:#FDBA12;--chat-panel:#F7F9FC;--chat-surface:#fff;--chat-soft:#fff;--chat-text:#2D3436;--chat-muted:#4A5568;--chat-line:#E5E7EB;--chat-link:#00738C;--chat-radius:8px;--chat-control-radius:6px;--chat-focus:#F0951C;--chat-shadow:0 12px 34px rgba(32,47,84,.18)}
.cancea-chat--theme-svt .cancea-chat__launcher{border-radius:8px;box-shadow:0 10px 24px rgba(32,47,84,.22)}
.cancea-chat--theme-svt .cancea-chat__launcher:hover{box-shadow:0 12px 28px rgba(32,47,84,.27)}
.cancea-chat--theme-svt .cancea-chat__launcher-mark,.cancea-chat--theme-svt .cancea-chat__brandmark{border-radius:6px}
.cancea-chat--theme-svt .cancea-chat__launcher-mark::before,.cancea-chat--theme-svt .cancea-chat__launcher-mark::after,.cancea-chat--theme-svt .cancea-chat__brandmark::before,.cancea-chat--theme-svt .cancea-chat__brandmark::after{border:0;border-radius:1px}
.cancea-chat--theme-svt .cancea-chat__launcher-mark::before{width:7px;height:7px;left:4px;top:4px;background:#00B3DC}
.cancea-chat--theme-svt .cancea-chat__launcher-mark::after{width:6px;height:6px;right:4px;bottom:4px;background:#FDBA12}
.cancea-chat--theme-svt .cancea-chat__brandmark::before{width:9px;height:9px;left:6px;top:6px;background:#00B3DC}
.cancea-chat--theme-svt .cancea-chat__brandmark::after{width:8px;height:8px;right:5px;bottom:5px;background:#FDBA12}
.cancea-chat--theme-svt .cancea-chat__head{border-bottom:3px solid #00B3DC}
.cancea-chat--theme-svt .cancea-chat__bubble{border-radius:8px;box-shadow:0 1px 2px rgba(0,0,0,.025)}
.cancea-chat--theme-svt .cancea-chat__sources summary{border-radius:6px}
.cancea-chat--theme-svt .cancea-chat__suggestions button{border-radius:0}
.cancea-chat--theme-svt .cancea-chat__composer{border-radius:8px}
.cancea-chat--theme-svt .cancea-chat__prompt-row{background:#fff}
.cancea-chat--theme-onemodel .cancea-chat__head{background:linear-gradient(135deg,#0b2230 0%,#123746 72%,#174957 100%)}
.cancea-chat--theme-onemodel .cancea-chat__panel{background:#f7f4ee}
.cancea-chat--theme-onemodel .cancea-chat__message--assistant .cancea-chat__bubble{background:#eef2f3}
.cancea-chat--theme-onemodel .cancea-chat__prompt-row{background:#f5f8f9}
@media(max-width:600px){.cancea-chat{right:14px;bottom:14px}.cancea-chat__panel,.cancea-chat--expanded .cancea-chat__panel{position:fixed;left:10px;right:10px;bottom:68px;width:auto;height:auto;max-height:calc(100vh - 82px)}.cancea-chat__messages,.cancea-chat--expanded .cancea-chat__messages{max-height:46vh;padding:16px 14px}.cancea-chat__expand{display:none}.cancea-chat__head-copy span{max-width:210px}.cancea-chat__foot-sep:nth-of-type(2){display:none}}
@media(prefers-reduced-motion:reduce){.cancea-chat *{scroll-behavior:auto!important}.cancea-chat__launcher,.cancea-chat__send{transition:none}.cancea-chat__spinner,.cancea-chat__send-spinner{animation:none}.cancea-chat__sources summary::before{transition:none}}
.cancea-chat__bubble--diagram{width:100%;max-width:100%}
.cancea-chat__diagram{position:relative;display:grid;place-items:center;min-height:110px;margin:.8em 0 .25em;padding:12px;overflow:auto;border:1px solid var(--chat-line);border-radius:12px;background:var(--chat-surface);color:var(--chat-muted)}
.cancea-chat__diagram:not(.is-ready):not(.is-error)::before{content:"Rendering diagram…";font-size:11px;font-weight:650;color:var(--chat-muted)}
.cancea-chat__diagram svg{display:block;width:100%;height:auto;min-width:260px;max-height:360px}
.cancea-chat__diagram.is-error{min-height:0;padding:10px 12px;font-size:11px;background:color-mix(in srgb,var(--chat-soft) 70%,var(--chat-surface))}
.cancea-chat--expanded .cancea-chat__diagram{padding:18px}
.cancea-chat--expanded .cancea-chat__diagram svg{min-width:360px;max-height:520px}
.cancea-chat--theme-svt .cancea-chat__diagram{border-radius:8px;background:#fff}

.cancea-chat__diagram svg .nodeLabel,
.cancea-chat__diagram svg .label,
.cancea-chat__diagram svg text{fill:var(--chat-text)!important;color:var(--chat-text)!important}
.cancea-chat__diagram svg foreignObject,
.cancea-chat__diagram svg foreignObject div,
.cancea-chat__diagram svg foreignObject span,
.cancea-chat__diagram svg foreignObject p{color:var(--chat-text)!important}
.cancea-chat__diagram svg .edgePath path,
.cancea-chat__diagram svg .flowchart-link{stroke:var(--chat-muted)!important;stroke-width:1.35px!important}
.cancea-chat__diagram svg marker path{fill:var(--chat-muted)!important;stroke:var(--chat-muted)!important}
.cancea-chat__diagram svg .node rect,
.cancea-chat__diagram svg .node polygon,
.cancea-chat__diagram svg .node path{stroke-width:1.2px!important}
.cancea-chat__diagram svg foreignObject>div{line-height:1.2!important;text-align:center!important}
