/* Standalone Synteza widget: no rules target the rest of the page. */
.synteza-widget { position:fixed; z-index:10020; right:24px; bottom:24px; color:#173b2b; font:400 14px/1.6 'Plus Jakarta Sans',system-ui,sans-serif; --sw-green:#138362; --sw-border:#d4eade; }
.synteza-widget * { box-sizing:border-box; }
.synteza-widget [hidden] { display:none!important; }
.synteza-widget button,.synteza-widget textarea { font:inherit; }
.synteza-widget button { cursor:pointer; }
.synteza-widget button:disabled { opacity:.5; cursor:default; }
.synteza-widget button:focus-visible,.synteza-widget a:focus-visible { outline:3px solid #39bc8b; outline-offset:3px; }
.synteza-widget .sw-launch { display:flex; align-items:center; justify-content:center; width:62px; height:62px; padding:10px; border:1px solid #bde8d2; border-radius:22px; background:linear-gradient(145deg,#f4fff9,#d1f9e6); box-shadow:inset 0 2px 2px white,0 12px 32px -10px #064e3b60; transition:transform .2s; }
.synteza-widget .sw-launch img { width:40px; height:40px; }
.synteza-widget .sw-launch::after { content:''; position:absolute; right:2px; bottom:2px; width:10px; height:10px; border-radius:50%; background:#39bc8b; border:2px solid #fff; }
.synteza-widget .sw-panel { position:absolute; right:0; bottom:78px; display:flex; flex-direction:column; width:410px; max-width:calc(100vw - 32px); height:700px; max-height:calc(var(--sw-view-height,100dvh) - 120px); overflow:auto; border:1px solid #cde8da; border-radius:28px; background:linear-gradient(150deg,#fff,#f8fcf9); box-shadow:0 28px 80px -20px #022c2250,0 3px 12px #022c2210; animation:sw-enter .2s ease-out; }
.synteza-widget .sw-head { display:flex; align-items:center; gap:11px; padding:18px 20px; border-bottom:1px solid #e3eee7; background:linear-gradient(145deg,#f4fff9,#e8f7ef); }
.synteza-widget .sw-avatar { display:grid; place-items:center; width:40px; height:40px; flex:none; border:1px solid #c7edda; border-radius:13px; background:#f4fff9; box-shadow:inset 0 1px 2px white; }
.synteza-widget .sw-avatar img { width:33px; height:33px; }
.synteza-widget .sw-title { margin:0; color:#113d2a; font-size:14px; font-weight:800; letter-spacing:-.025em; }
.synteza-widget .sw-status { color:#567566; font-size:10px; }
.synteza-widget .sw-close { display:grid; place-items:center; margin-left:auto; width:32px; height:32px; padding:6px; border:1px solid #c7edda; border-radius:50%; background:#ffffffa6; color:#24523d; }
.synteza-widget svg { display:block; width:20px; height:20px; }
.synteza-widget .sw-note { padding:8px 18px; color:#6b5d32; background:#fbf7e9; font-size:10px; line-height:1.6; }
.synteza-widget .sw-log { flex:1; min-height:70px; overflow-y:auto; overscroll-behavior:contain; padding:20px 18px 10px; scroll-behavior:smooth; }
.synteza-widget .sw-bubble { width:fit-content; max-width:94%; margin:0 0 12px; padding:11px 13px; border:1px solid #e0ebe4; border-radius:17px 17px 17px 5px; color:#2c4d3c; background:#f0f6f2; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; line-height:1.75; }
.synteza-widget .sw-user { margin-left:auto; border-color:#cdebdc; border-radius:17px 17px 5px 17px; background:#e3f5eb; color:#164c35; }
.synteza-widget .sw-quick { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:14px 0; }
.synteza-widget .sw-quick button { min-width:0; min-height:44px; padding:8px 10px; border:1px solid #cde8da; border-radius:99px; background:#fff; color:#138362; font-size:11px; text-align:left; }
.synteza-widget .sw-typing { display:flex; gap:4px; width:fit-content; padding:13px; margin-bottom:10px; border-radius:14px; background:#edf5f0; }
.synteza-widget .sw-typing span { width:5px; height:5px; border-radius:50%; background:#8bbba4; animation:sw-dot 1s ease-in-out infinite; }
.synteza-widget .sw-typing span:nth-child(2) { animation-delay:.15s; }
.synteza-widget .sw-typing span:nth-child(3) { animation-delay:.3s; }
.synteza-widget .sw-draft { max-height:280px; overflow:auto; margin:0 16px 10px; padding:14px; border:1px solid #c7edda; border-radius:17px; background:#f1fbf6; font-size:11px; line-height:1.7; }
.synteza-widget .sw-draft h3 { margin:0 0 10px; font-size:13px; }
.synteza-widget .sw-draft dl { margin:0 0 12px; }
.synteza-widget .sw-draft dt { font-size:10px; color:#658372; }
.synteza-widget .sw-draft dd { margin:0 0 7px; overflow-wrap:anywhere; color:#244b36; white-space:pre-wrap; }
.synteza-widget .sw-consent { display:flex; align-items:flex-start; gap:8px; margin:12px 0; font-size:11px; }
.synteza-widget .sw-consent input { margin:4px 0 0; flex:none; accent-color:#138362; }
.synteza-widget .sw-confirm { width:100%; min-height:42px; padding:10px; border:1px solid #138362; border-radius:13px; background:#138362; color:white; font-weight:700; font-size:11px; }
.synteza-widget .sw-cancel { display:block; padding:8px 0 0; border:0; background:none; color:#567566; font-size:11px; }
.synteza-widget .sw-feedback { padding:0 18px 8px; color:#7d4532; font-size:11px; line-height:1.6; }
.synteza-widget .sw-feedback button { display:inline; margin:5px 0 0; padding:3px 7px; border:1px solid #d7e6dd; border-radius:7px; background:white; color:#138362; font-size:11px; }
.synteza-widget .sw-compose { display:flex; align-items:flex-end; gap:9px; padding:12px 16px; border-top:1px solid #e3eee7; background:#fff; }
.synteza-widget textarea { display:block; width:100%; min-width:0; min-height:43px; max-height:100px; resize:none; padding:10px 12px; border:1px solid #d6e7dc; border-radius:14px; outline:none; background:#f8fbf9; color:#163c2c; font-size:12px; line-height:1.7; }
.synteza-widget textarea:focus { background:#fff; border-color:#39bc8b; box-shadow:0 0 0 3px #39bc8b12; }
.synteza-widget .sw-send { display:grid; place-items:center; width:43px; height:43px; flex:none; padding:10px; border:1px solid #059669; border-radius:14px; background:linear-gradient(135deg,#10b981,#059669); color:#fff; }
.synteza-widget .sw-trap { display:none; }
@keyframes sw-dot { 0%,80%,100% {opacity:.3;transform:translateY(0);} 40% {opacity:1;transform:translateY(-2px);} }
@keyframes sw-enter { from {opacity:0;transform:translateY(8px);} to {opacity:1;transform:translateY(0);} }
@media (hover:hover) { .synteza-widget .sw-launch:hover { transform:translateY(-2px); } .synteza-widget .sw-quick button:hover { background:#f0fbf6; } }
@media (max-width:639px) { .synteza-widget { right:16px; bottom:16px; } .synteza-widget .sw-panel { width:calc(100vw - 24px); right:-4px; bottom:76px; border-radius:24px; max-height:calc(var(--sw-view-height,100dvh) - 108px); } .synteza-widget .sw-head { padding:15px 16px; } .synteza-widget textarea { font-size:16px; } .synteza-widget .sw-draft { max-height:230px; } }
@media (prefers-reduced-motion:reduce) { .synteza-widget .sw-panel,.synteza-widget .sw-typing span { animation:none; } .synteza-widget .sw-log { scroll-behavior:auto; } .synteza-widget .sw-launch { transition:none; } }
.synteza-widget .sw-invite {
  position:absolute; right:74px; bottom:0; display:flex; align-items:flex-start;
  width:min(252px, calc(100vw - 114px)); border:1px solid #cde8da;
  border-radius:16px; background:#f8fffb; box-shadow:0 8px 24px -12px #064e3b66;
}
.synteza-widget .sw-invite-open {
  flex:1; min-width:0; padding:10px 0 10px 12px; border:0; background:none;
  color:#173b2b; font-size:12px; line-height:1.5; text-align:left;
}
.synteza-widget .sw-invite-close {
  flex:none; width:36px; height:36px; border:0; background:none;
  color:#567566; font-size:19px; line-height:1;
}
/* Keep the mobile panel below the site header and leave page context. */
@media (max-width:639px) { .synteza-widget .sw-panel { height:560px; max-height:min(68dvh,calc(var(--sw-view-height,100dvh) - 170px)); } }

.synteza-widget .sw-head,.synteza-widget .sw-note,.synteza-widget .sw-draft,.synteza-widget .sw-feedback,.synteza-widget .sw-compose { flex-shrink:0; }

.synteza-widget .sw-feedback[data-tone="success"] { color:#138362; }

@media (max-width:359px) {
  .synteza-widget .sw-panel:has(.sw-quick:not([hidden])) { max-height:min(78dvh,calc(var(--sw-view-height,100dvh) - 145px)); }
  .synteza-widget .sw-log:has(.sw-quick:not([hidden])) { padding:14px 12px 8px; }
  .synteza-widget .sw-log:has(.sw-quick:not([hidden])) .sw-bubble { max-width:100%; }
  .synteza-widget .sw-quick button { padding:6px 8px; }
}
