:root {
    --novacore-chat-primary: rgb(37 99 235);
    --novacore-chat-primary-hover: rgb(19 81 217);
    --novacore-chat-primary-active: rgb(3 65 201);
    --novacore-chat-primary-soft: rgb(37 99 235 / .10);
    --novacore-chat-primary-border: rgb(37 99 235 / .24);
    --novacore-chat-focus: rgb(37 99 235 / .34);
    --novacore-chat-surface: rgb(255 255 255);
    --novacore-chat-surface-muted: rgb(247 249 252);
    --novacore-chat-text: rgb(23 32 51);
    --novacore-chat-text-muted: rgb(100 116 139);
    --novacore-chat-border: rgb(226 232 240);
    --novacore-chat-danger: rgb(153 27 27);
    --novacore-chat-danger-soft: rgb(254 242 242);
    --novacore-chat-code: rgb(15 23 42);
    --novacore-chat-code-text: rgb(248 250 252);
    --novacore-chat-shadow: rgb(15 23 42 / .18);
    --novacore-chat-white: rgb(255 255 255);
    --novacore-chat-white-strong: rgb(255 255 255 / .62);
    --novacore-chat-white-soft: rgb(255 255 255 / .14);
    --novacore-chat-shadow-subtle: rgb(15 23 42 / .06);
    --novacore-chat-shadow-faint: rgb(15 23 42 / .04);
    --novacore-chat-shadow-hover: rgb(15 23 42 / .08);
    --novacore-chat-shadow-avatar: rgb(0 0 0 / .12);
    --novacore-chat-z: 999999;
}
.novacore-chat{position:fixed;bottom:24px;z-index:var(--novacore-chat-z);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--novacore-chat-text)}
.novacore-chat--bottom_right{right:24px}.novacore-chat--bottom_left{left:24px}
.novacore-chat button,.novacore-chat textarea,.novacore-chat input{font:inherit}
.novacore-chat__launcher{display:grid;place-items:center;width:60px;height:60px;border:0;border-radius:20px;background:linear-gradient(145deg,var(--novacore-chat-primary),var(--novacore-chat-primary-hover));color:var(--novacore-chat-white);box-shadow:0 14px 34px var(--novacore-chat-shadow);cursor:pointer;transition:transform .22s ease,box-shadow .22s ease,background .22s ease}
.novacore-chat__launcher:hover{transform:translateY(-3px) scale(1.02);box-shadow:0 18px 42px var(--novacore-chat-shadow)}.novacore-chat__launcher:active{transform:translateY(0) scale(.97);background:var(--novacore-chat-primary-active)}
.novacore-chat__launcher-icon,.novacore-chat__launcher svg{width:28px;height:28px;fill:currentColor}
.novacore-chat__window{position:absolute;bottom:78px;right:0;width:min(410px,calc(100vw - 32px));height:min(680px,calc(100vh - 112px));background:var(--novacore-chat-surface);color:var(--novacore-chat-text);border:1px solid var(--novacore-chat-border);border-radius:24px;box-shadow:0 28px 80px var(--novacore-chat-shadow);display:flex;flex-direction:column;overflow:hidden;transform-origin:bottom right;animation:novacore-open .24s ease-out}
.novacore-chat--bottom_left .novacore-chat__window{right:auto;left:0;transform-origin:bottom left}
.novacore-chat__header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;background:linear-gradient(135deg,var(--novacore-chat-primary),var(--novacore-chat-primary-hover));color:var(--novacore-chat-white)}
.novacore-chat__brand{display:flex;align-items:center;gap:11px;min-width:0}.novacore-chat__brand-media,.novacore-chat__avatar{display:grid;place-items:center;flex:0 0 auto;overflow:hidden;background:var(--novacore-chat-white);color:var(--novacore-chat-primary);box-shadow:0 4px 14px var(--novacore-chat-shadow-avatar)}
.novacore-chat__brand-media{width:42px;height:42px;border-radius:13px}.novacore-chat__brand-media img,.novacore-chat__avatar img{width:100%;height:100%;object-fit:cover}.novacore-chat__brand-media svg{width:24px;height:24px;fill:currentColor}
.novacore-chat__brand-copy{display:grid;min-width:0}.novacore-chat__brand-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.novacore-chat__brand-copy small{margin-top:2px;opacity:.82;font-size:12px}
.novacore-chat__header-actions{display:flex;align-items:center;gap:5px}.novacore-chat__end,.novacore-chat__close{border:0;background:transparent;color:inherit;cursor:pointer;transition:background .18s ease,transform .18s ease}.novacore-chat__end{border:1px solid var(--novacore-chat-white-strong);border-radius:999px;padding:5px 9px;font-size:12px}.novacore-chat__close{width:34px;height:34px;border-radius:10px;font-size:24px}.novacore-chat__end:hover,.novacore-chat__close:hover{background:var(--novacore-chat-white-soft)}.novacore-chat__close:active{transform:scale(.94)}
.novacore-chat__messages{flex:1;overflow:auto;padding:18px 16px;background:var(--novacore-chat-surface-muted);scrollbar-width:thin;scrollbar-color:var(--novacore-chat-primary-border) transparent;overscroll-behavior:contain}.novacore-chat__messages::-webkit-scrollbar{width:7px}.novacore-chat__messages::-webkit-scrollbar-thumb{background:var(--novacore-chat-primary-border);border-radius:99px}
.novacore-chat__message-row{display:flex;align-items:flex-end;gap:8px;margin:0 0 14px}.novacore-chat__message-row--user{justify-content:flex-end}.novacore-chat__avatar{width:30px;height:30px;border-radius:10px;font-size:14px;box-shadow:0 4px 12px var(--novacore-chat-shadow)}
.novacore-chat__message{max-width:82%;padding:11px 13px;border-radius:16px;overflow-wrap:anywhere;box-shadow:0 4px 14px var(--novacore-chat-shadow-subtle)}.novacore-chat__message--assistant{background:var(--novacore-chat-surface);border:1px solid var(--novacore-chat-border);border-bottom-left-radius:5px}.novacore-chat__message--user{background:var(--novacore-chat-primary);color:var(--novacore-chat-white);border-bottom-right-radius:5px}
.novacore-chat__message-body p{margin:0 0 8px}.novacore-chat__message-body p:last-child{margin-bottom:0}.novacore-chat__message-body ul,.novacore-chat__message-body ol{margin:7px 0;padding-left:22px}.novacore-chat__message-body h1,.novacore-chat__message-body h2,.novacore-chat__message-body h3{margin:.75em 0 .35em;line-height:1.25}.novacore-chat__message-body h1{font-size:1.2rem}.novacore-chat__message-body h2{font-size:1.1rem}.novacore-chat__message-body h3{font-size:1rem}.novacore-chat__message-body a{color:var(--novacore-chat-primary);text-decoration:underline;text-underline-offset:2px}.novacore-chat__message-body pre{max-width:100%;overflow:auto;background:var(--novacore-chat-code);color:var(--novacore-chat-code-text);border-radius:10px;padding:11px;white-space:pre}.novacore-chat__message-body code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;background:var(--novacore-chat-border);border-radius:4px;padding:1px 4px}.novacore-chat__message-body pre code{background:transparent;padding:0}
.novacore-chat__suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:190px;overflow:auto;padding:12px 14px;background:var(--novacore-chat-surface);border-top:1px solid var(--novacore-chat-border)}.novacore-chat__suggestion{display:flex;align-items:center;gap:9px;min-width:0;text-align:left;border:1px solid var(--novacore-chat-primary-border);background:var(--novacore-chat-surface);color:var(--novacore-chat-text);border-radius:14px;padding:10px;cursor:pointer;box-shadow:0 3px 10px var(--novacore-chat-shadow-faint);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease}.novacore-chat__suggestion:hover{transform:translateY(-2px);border-color:var(--novacore-chat-primary);background:var(--novacore-chat-primary-soft);box-shadow:0 8px 18px var(--novacore-chat-shadow-hover)}.novacore-chat__suggestion:active{transform:translateY(0) scale(.98)}.novacore-chat__suggestion-icon{display:grid;place-items:center;flex:0 0 auto;width:34px;height:34px;border-radius:10px;background:var(--novacore-chat-primary-soft);color:var(--novacore-chat-primary);font-weight:700}.novacore-chat__suggestion-copy{display:grid;min-width:0}.novacore-chat__suggestion-copy strong{font-size:12px;line-height:1.25}.novacore-chat__suggestion-copy small{margin-top:3px;color:var(--novacore-chat-text-muted);font-size:10px;line-height:1.3}
.novacore-chat__typing{display:flex;align-items:center;gap:8px;padding:8px 16px;color:var(--novacore-chat-text-muted);font-size:12px;background:var(--novacore-chat-surface-muted)}.novacore-chat__typing-avatar{width:22px;height:22px;border-radius:8px;background:var(--novacore-chat-primary-soft)}.novacore-chat__typing-dots{display:flex;gap:3px}.novacore-chat__typing-dots i{width:5px;height:5px;border-radius:50%;background:var(--novacore-chat-primary);animation:novacore-typing 1.1s infinite ease-in-out}.novacore-chat__typing-dots i:nth-child(2){animation-delay:.14s}.novacore-chat__typing-dots i:nth-child(3){animation-delay:.28s}
.novacore-chat__error{padding:9px 14px;color:var(--novacore-chat-danger);background:var(--novacore-chat-danger-soft);font-size:12px}.novacore-chat__error button{display:block;margin-top:6px;border:1px solid currentColor;background:transparent;border-radius:7px;padding:5px 8px;cursor:pointer}
.novacore-chat__form{display:flex;align-items:flex-end;gap:9px;padding:12px 14px;border-top:1px solid var(--novacore-chat-border);background:var(--novacore-chat-surface)}.novacore-chat__form textarea{flex:1;min-height:44px;max-height:120px;resize:none;border:1px solid var(--novacore-chat-border);border-radius:14px;padding:11px 12px;color:var(--novacore-chat-text);background:var(--novacore-chat-surface);transition:border-color .18s ease,box-shadow .18s ease}.novacore-chat__form button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:48px;height:44px;border:0;border-radius:14px;background:var(--novacore-chat-primary);color:var(--novacore-chat-white);padding:0 14px;cursor:pointer;transition:background .18s ease,transform .18s ease}.novacore-chat__form button svg{width:18px;height:18px;fill:currentColor}.novacore-chat__form button:hover{background:var(--novacore-chat-primary-hover)}.novacore-chat__form button:active{background:var(--novacore-chat-primary-active);transform:scale(.97)}.novacore-chat__form button:disabled{opacity:.55;cursor:not-allowed}
.novacore-chat button:focus-visible,.novacore-chat textarea:focus-visible,.novacore-chat input:focus-visible{outline:3px solid var(--novacore-chat-focus);outline-offset:2px}.novacore-chat__footer{display:flex;justify-content:space-between;align-items:flex-end;gap:8px;padding:0 14px 10px;background:var(--novacore-chat-surface)}.novacore-chat__privacy,.novacore-chat__powered{font-size:10px;color:var(--novacore-chat-text-muted);margin:0}.novacore-chat__privacy a{color:inherit}.novacore-chat__powered{white-space:nowrap}.novacore-chat__powered strong{color:var(--novacore-chat-primary)}
.novacore-chat__tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.novacore-chat__tools button{border:1px solid var(--novacore-chat-primary-border);background:var(--novacore-chat-surface);color:var(--novacore-chat-primary);border-radius:999px;padding:6px 9px;cursor:pointer;transition:background .18s ease,color .18s ease,transform .18s ease}.novacore-chat__tools button:hover{background:var(--novacore-chat-primary-soft);transform:translateY(-1px)}.novacore-chat__tools button:disabled{cursor:default;opacity:.55}.novacore-chat__tools button.is-selected{background:var(--novacore-chat-primary);color:var(--novacore-chat-white);opacity:1}
.novacore-chat__table-wrap{max-width:100%;overflow:auto;margin:.75rem 0}.novacore-chat__table-wrap table{border-collapse:collapse;width:100%;font-size:.875rem}.novacore-chat__table-wrap th,.novacore-chat__table-wrap td{border:1px solid var(--novacore-chat-border);padding:.45rem;text-align:left}.novacore-chat__sources{font-size:.78rem;opacity:.85;margin:.5rem 0}.novacore-chat__sources ul{margin:.25rem 0;padding-left:1.2rem}.novacore-chat__products{display:grid;gap:.75rem;margin:.75rem 0}.novacore-chat__product{border:1px solid var(--novacore-chat-primary-border);border-radius:14px;padding:.8rem;background:var(--novacore-chat-surface);box-shadow:0 4px 14px var(--novacore-chat-shadow-subtle)}.novacore-chat__product img{width:100%;max-height:150px;object-fit:contain;border-radius:10px}.novacore-chat__product h3{margin:.5rem 0 .25rem}.novacore-chat__product-actions{display:flex;gap:.5rem;flex-wrap:wrap}.novacore-chat__product-actions a,.novacore-chat__product-actions button{border:0;border-radius:9px;padding:.55rem .75rem;text-decoration:none;cursor:pointer}.novacore-chat__product-actions a{color:var(--novacore-chat-primary);background:var(--novacore-chat-primary-soft)}.novacore-chat__product-actions button{background:var(--novacore-chat-primary);color:var(--novacore-chat-white)}.novacore-chat__lead-form{display:grid;gap:.55rem;margin:.75rem;padding:.9rem;border:1px solid var(--novacore-chat-primary-border);border-radius:14px;background:var(--novacore-chat-surface)}.novacore-chat__lead-form h3{margin:0}.novacore-chat__lead-form label{display:grid;gap:.2rem;font-size:.82rem}.novacore-chat__lead-form input{min-width:0;padding:.6rem;border:1px solid var(--novacore-chat-border);border-radius:8px}.novacore-chat__lead-form button{justify-self:start;background:var(--novacore-chat-primary);color:var(--novacore-chat-white);border:0;border-radius:9px;padding:.6rem .85rem}
@keyframes novacore-open{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes novacore-typing{0%,60%,100%{transform:translateY(0);opacity:.35}30%{transform:translateY(-4px);opacity:1}}
@media(max-width:600px){.novacore-chat{right:0!important;left:0!important;bottom:0}.novacore-chat__launcher{position:fixed;right:16px;bottom:16px}.novacore-chat__window{position:fixed;inset:0;width:100%;height:100%;max-height:none;border-radius:0}.novacore-chat__suggestions{grid-template-columns:1fr}.novacore-chat__footer{align-items:center}.novacore-chat__form button span{display:none}}
@media(prefers-reduced-motion:reduce){.novacore-chat *, .novacore-chat *::before,.novacore-chat *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* 1.0.3 premium theme tokens and components */
.novacore-chat{--novacore-radius:20px;--novacore-chat-surface:Canvas;--novacore-chat-text:CanvasText;--novacore-chat-surface-muted:color-mix(in srgb,var(--novacore-chat-primary) 5%,Canvas);--novacore-chat-text-muted:color-mix(in srgb,CanvasText 62%,transparent);--novacore-chat-border:color-mix(in srgb,var(--novacore-chat-primary) 16%,CanvasText 12%);--novacore-chat-danger:color-mix(in srgb,var(--novacore-chat-primary) 18%,crimson);--novacore-chat-danger-soft:color-mix(in srgb,var(--novacore-chat-danger) 9%,Canvas);--novacore-chat-success:color-mix(in srgb,var(--novacore-chat-primary) 28%,seagreen);--novacore-chat-warning:color-mix(in srgb,var(--novacore-chat-primary) 18%,darkorange);--novacore-chat-info:var(--novacore-chat-primary)}.novacore-chat__window{border-radius:var(--novacore-radius)}.novacore-chat__header{border-radius:var(--novacore-radius) var(--novacore-radius) 0 0}.novacore-chat__message{border-radius:calc(var(--novacore-radius) * .72)}.novacore-chat__message-row--assistant .novacore-chat__message{border-bottom-left-radius:calc(var(--novacore-radius) * .22)}.novacore-chat__message-row--user .novacore-chat__message{border-bottom-right-radius:calc(var(--novacore-radius) * .22)}.novacore-chat__message-row{animation:novacore-response-in .32s cubic-bezier(.2,.8,.2,1) both}.novacore-chat__notice{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid currentColor;border-radius:calc(var(--novacore-radius) * .55);background:Canvas;font-size:13px}.novacore-chat__notice--success{color:var(--novacore-chat-success)}.novacore-chat__notice--warning{color:var(--novacore-chat-warning)}.novacore-chat__notice--error{color:var(--novacore-chat-danger)}.novacore-chat__notice--info{color:var(--novacore-chat-info)}.novacore-chat__suggestion{border-radius:calc(var(--novacore-radius) * .65);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.novacore-chat__suggestion:hover{transform:translateY(-3px);box-shadow:0 12px 24px color-mix(in srgb,var(--novacore-chat-primary) 14%,transparent)}.novacore-chat__table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}.novacore-chat__message table{min-width:440px}.novacore-chat__typing-dots i{animation:novacore-premium-typing 1.15s cubic-bezier(.4,0,.2,1) infinite}.novacore-chat__typing-dots i:nth-child(2){animation-delay:.14s}.novacore-chat__typing-dots i:nth-child(3){animation-delay:.28s}@keyframes novacore-response-in{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}@keyframes novacore-premium-typing{0%,60%,100%{transform:translateY(0) scale(.85);opacity:.35}30%{transform:translateY(-5px) scale(1);opacity:1}}@media(max-width:480px){.novacore-chat__window{border-radius:0}.novacore-chat__header{border-radius:0}.novacore-chat__message table{min-width:360px}}

.novacore-chat__product-specs{display:grid;grid-template-columns:minmax(7rem,.8fr) 1.2fr;gap:.35rem .75rem;margin:.75rem 0;font-size:.82rem}.novacore-chat__product-specs dt{font-weight:650;color:var(--novacore-chat-muted)}.novacore-chat__product-specs dd{margin:0}.novacore-chat__commercial-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}.novacore-chat__comparison{overflow-x:auto;margin:.75rem 0}.novacore-chat__comparison table{min-width:34rem}

/* 3.3.5: guarantee that the native hidden state wins over theme/plugin CSS. */
.novacore-chat__window[hidden]{display:none!important}
.novacore-chat__header-actions{position:relative;z-index:3;pointer-events:auto}
.novacore-chat__end,.novacore-chat__close{position:relative;z-index:4;pointer-events:auto;touch-action:manipulation}


/* 4.1.0: proactive engagement invitation and accessible launcher bounce. */
.novacore-chat__engagement{display:flex;align-items:flex-end;gap:12px;position:relative}
.novacore-chat__invitation{position:absolute;right:72px;bottom:7px;width:max-content;max-width:min(280px,calc(100vw - 110px));border:1px solid var(--novacore-chat-primary-border);border-radius:16px;background:var(--novacore-chat-surface);color:var(--novacore-chat-text);box-shadow:0 14px 34px var(--novacore-chat-shadow);padding:12px 16px;font:inherit;font-size:14px;font-weight:700;line-height:1.35;text-align:left;cursor:pointer;opacity:0;transform:translateX(8px) scale(.96);transition:opacity .24s ease,transform .24s ease;z-index:2}
.novacore-chat__invitation.is-visible{opacity:1;transform:translateX(0) scale(1)}
.novacore-chat__invitation[hidden]{display:none!important}
.novacore-chat__invitation:hover{transform:translateY(-2px) scale(1);box-shadow:0 18px 40px var(--novacore-chat-shadow)}
.novacore-chat__invitation-arrow{position:absolute;right:-7px;bottom:17px;width:14px;height:14px;background:var(--novacore-chat-surface);border-top:1px solid var(--novacore-chat-primary-border);border-right:1px solid var(--novacore-chat-primary-border);transform:rotate(45deg)}
.novacore-chat__launcher-icon img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}
.novacore-chat__launcher:has(.novacore-chat__launcher-icon img){overflow:hidden;padding:0}
.novacore-chat__launcher.is-bouncing{animation:novacore-launcher-bounce 1.05s cubic-bezier(.28,.84,.42,1) 4}
@keyframes novacore-launcher-bounce{0%,100%{transform:translateY(0)}18%{transform:translateY(-11px)}36%{transform:translateY(0)}52%{transform:translateY(-5px)}68%{transform:translateY(0)}}
@media(max-width:600px){.novacore-chat__engagement{position:fixed;right:16px;bottom:16px}.novacore-chat__launcher{position:static}.novacore-chat__invitation{right:72px;bottom:7px}}
@media(prefers-reduced-motion:reduce){.novacore-chat__launcher.is-bouncing{animation:none}.novacore-chat__invitation{transition:none}}

/* 4.1.1: full-bleed assistant avatar and subtle recurring attention ring. */
.novacore-chat__launcher:has(.novacore-chat__launcher-icon img){
    position:relative;
    width:64px;
    height:64px;
    padding:0;
    overflow:visible;
    border:3px solid var(--novacore-chat-primary);
    border-radius:50%;
    background:var(--novacore-chat-surface);
    box-shadow:0 14px 34px var(--novacore-chat-shadow);
}
.novacore-chat__launcher:has(.novacore-chat__launcher-icon img)::after{
    content:'';
    position:absolute;
    inset:-7px;
    border:2px solid var(--novacore-chat-primary);
    border-radius:50%;
    pointer-events:none;
    opacity:0;
    animation:novacore-launcher-attention-ring 18s ease-out 5s infinite;
}
.novacore-chat__launcher:has(.novacore-chat__launcher-icon img) .novacore-chat__launcher-icon{
    display:block;
    width:100%;
    height:100%;
    overflow:hidden;
    border-radius:50%;
}
.novacore-chat__launcher:has(.novacore-chat__launcher-icon img) .novacore-chat__launcher-icon img{
    width:100%;
    height:100%;
    margin:0;
    padding:0;
    display:block;
    border-radius:50%;
    object-fit:cover;
    object-position:center;
}
@keyframes novacore-launcher-attention-ring{
    0%,88%,100%{opacity:0;transform:scale(.92)}
    90%{opacity:.5;transform:scale(.98)}
    94%{opacity:0;transform:scale(1.18)}
}
@media(prefers-reduced-motion:reduce){
    .novacore-chat__launcher:has(.novacore-chat__launcher-icon img)::after{animation:none}
}
