/* Chat assistant window */
.vcc { --ink: var(--vc-ink, #232120); --muted: var(--vc-ink-2, #5d5852); --line: var(--vc-line, #e4dfd8); --stone: var(--vc-stone, #f4f1ec); font-family: var(--vc-sans); }
.vcc [hidden] { display: none !important; }
.vcc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Launcher */
.vcc-launch { position: fixed; right: 22px; bottom: 22px; z-index: 99990; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 16px; border: 0; border-radius: 28px; background: var(--ink); color: #fff; box-shadow: 0 14px 34px rgba(35, 33, 32, .28); cursor: pointer; font: 500 14px/1 var(--vc-sans); letter-spacing: .02em; text-transform: none; transition: transform .25s ease, box-shadow .25s ease, padding .3s ease, width .3s ease; }
.vcc-launch:hover { background: #000; color: #fff; transform: translateY(-2px); box-shadow: 0 18px 40px rgba(35, 33, 32, .34); }
.vcc-launch:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.vcc-launch__icon { width: 24px; height: 24px; flex: none; }
.vcc-launch__icon svg, .vcc-icon svg, .vcc-send svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vcc.is-seen .vcc-launch { width: 56px; padding: 0; justify-content: center; }
.vcc.is-seen .vcc-launch__label { display: none; }
.vcc.is-open .vcc-launch { display: none; }

/* Panel */
.vcc-panel { position: fixed; right: 22px; bottom: 22px; z-index: 99995; width: 390px; height: min(620px, calc(100vh - 44px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(35, 33, 32, .22); animation: vcc-in .28s cubic-bezier(.2, .8, .2, 1); }
body.admin-bar .vcc-panel { height: min(620px, calc(100vh - 76px)); }
@keyframes vcc-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.vcc-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.vcc-logo { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--stone); position: relative; }
.vcc-logo::after { content: ""; position: absolute; inset: 7px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='20 30 460 460'%3E%3Cpath d='M30 355 Q250 82 462 368 Q250 130 30 355 Z'/%3E%3Cpath fill-rule='evenodd' d='M70 372 Q262 175 452 372 Q262 560 70 372 Z M104 372 Q262 214 418 372 Q262 522 104 372 Z'/%3E%3Ccircle cx='261' cy='370' r='68' fill='none' stroke='%23000' stroke-width='18'/%3E%3Ccircle cx='261' cy='370' r='29'/%3E%3Cpath d='M214 106 C206 58 250 34 288 40 C332 48 340 98 306 128 C272 158 254 172 257 208' fill='none' stroke='%23000' stroke-width='24' stroke-linecap='round'/%3E%3Ccircle cx='214' cy='104' r='16'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='20 30 460 460'%3E%3Cpath d='M30 355 Q250 82 462 368 Q250 130 30 355 Z'/%3E%3Cpath fill-rule='evenodd' d='M70 372 Q262 175 452 372 Q262 560 70 372 Z M104 372 Q262 214 418 372 Q262 522 104 372 Z'/%3E%3Ccircle cx='261' cy='370' r='68' fill='none' stroke='%23000' stroke-width='18'/%3E%3Ccircle cx='261' cy='370' r='29'/%3E%3Cpath d='M214 106 C206 58 250 34 288 40 C332 48 340 98 306 128 C272 158 254 172 257 208' fill='none' stroke='%23000' stroke-width='24' stroke-linecap='round'/%3E%3Ccircle cx='214' cy='104' r='16'/%3E%3C/svg%3E") center / contain no-repeat; }
.vcc-head__t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.vcc-head__t b { font-family: var(--vc-serif); font-weight: 500; font-size: 1.25rem; line-height: 1.1; color: var(--ink); }
.vcc-head__t span { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.vcc-head__t span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6f9a62; margin-right: 6px; vertical-align: 1px; }
.vcc-icon { width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.vcc-icon:hover { background: var(--stone); color: var(--ink); }

/* Messages */
.vcc-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: #fcfbf9; overscroll-behavior: contain; }
.vcc-msg { max-width: 86%; padding: 11px 14px; font-size: 14.5px; line-height: 1.55; color: var(--ink); animation: vcc-msg .25s ease; word-wrap: break-word; }
@keyframes vcc-msg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.vcc-msg p { margin: 0 0 .55em; } .vcc-msg p:last-child { margin-bottom: 0; }
.vcc-msg ul { margin: .2em 0 .55em; padding-left: 1.15em; } .vcc-msg ul:last-child { margin-bottom: 0; }
.vcc-msg li { margin: .15em 0; }
.vcc-msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.vcc-msg--assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; }
.vcc-msg--user { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 16px 4px 16px 16px; }
.vcc-msg--error { border-color: #e2c4a8; background: #fbf3ea; }
.vcc-typing { display: flex; gap: 5px; padding: 15px 16px; }
.vcc-typing span { width: 7px; height: 7px; border-radius: 50%; background: #a59d92; animation: vcc-dot 1.1s ease-in-out infinite; }
.vcc-typing span:nth-child(2) { animation-delay: .15s; } .vcc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes vcc-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.vcc-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.vcc-suggest button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 12px; font: 500 13px/1.2 var(--vc-sans); letter-spacing: 0; text-transform: none; text-align: left; cursor: pointer; transition: border-color .2s; }
.vcc-suggest button:hover { border-color: var(--ink); background: #fff; color: var(--ink); }

/* Input */
.vcc-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 8px 14px; border-top: 1px solid var(--line); background: #fff; }
.vcc-form textarea { flex: 1; resize: none; overflow-y: hidden; border: 1px solid var(--line); border-radius: 20px; padding: 10px 14px; min-height: 42px; max-height: 120px; font: 400 15px/1.4 var(--vc-sans); color: var(--ink); background: #fff; box-shadow: none; }
.vcc-form textarea:focus { outline: none; border-color: var(--ink); }
.vcc-send { width: 42px; height: 42px; flex: none; padding: 10px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; }
.vcc-send:hover { background: #000; color: #fff; }
.vcc-send:disabled { opacity: .4; cursor: default; }
.vcc-foot { margin: 0; padding: 0 14px 10px; font-size: 11.5px; color: var(--muted); background: #fff; }
.vcc-foot a { color: inherit; }

@media (max-width: 640px) {
  .vcc-launch { right: 16px; bottom: 16px; height: 52px; }
  .vcc.is-seen .vcc-launch { width: 52px; }
  .vcc-launch__label { font-size: 13.5px; }
  .vcc-panel { inset: 0; right: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; border: 0; animation-duration: .22s; }
  .vcc-form textarea { font-size: 16px; }
  html.vcc-lock, html.vcc-lock body { overflow: hidden; }
}
@media print { .vcc { display: none; } }
@media (prefers-reduced-motion: reduce) { .vcc-panel, .vcc-msg { animation: none; } .vcc-typing span { animation: none; opacity: .7; } }
