/* Scoped to the assistant; the website's typography and palette are inherited. */
.vt-chat { --chat-muted:#a4b3c7; font-family:var(--sans); color:var(--silver-bright); font-size:14px; line-height:1.6; }
.vt-chat *, .vt-chat *::before, .vt-chat *::after { box-sizing:border-box; }
.vt-chat [hidden] { display:none !important; }
.vt-chat button { font:inherit; cursor:pointer; }
.vt-chat button:focus-visible, .vt-chat a:focus-visible { outline:2px solid var(--accent-2); outline-offset:3px; }
.vt-chat button:disabled { cursor:default; opacity:.45; }
.vt-chat svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.vt-chat-launch { position:fixed; left:24px; bottom:calc(24px + env(safe-area-inset-bottom,0px)); z-index:100; display:flex; align-items:center; gap:10px; min-height:56px; padding:0 20px; border:1px solid var(--accent); border-radius:30px; background:linear-gradient(135deg,var(--accent-2),var(--accent)); color:var(--navy); box-shadow:0 8px 30px #0006; font-weight:600 !important; transition:transform .2s,box-shadow .2s; }
.vt-chat-launch:hover { transform:translateY(-3px); box-shadow:0 12px 35px #0008; }
.vt-chat-launch[aria-expanded="true"] { visibility:hidden; }
.vt-chat-panel { position:fixed; z-index:101; left:24px; bottom:24px; width:400px; max-width:calc(100vw - 32px); height:min(650px,calc(100dvh - 48px)); padding:0; border:1px solid #89accf40; border-radius:14px; background:var(--navy); box-shadow:0 24px 90px #0009; display:flex; flex-direction:column; overflow:hidden; animation:vt-chat-in .24s cubic-bezier(.2,.7,.2,1) both; }
.vt-chat-head { display:flex; align-items:center; gap:12px; padding:20px; background:linear-gradient(135deg,var(--navy-2),var(--navy)); border-bottom:1px solid #89accf25; flex:none; }
.vt-chat-mark { display:grid; place-items:center; width:42px; height:42px; border:1px solid #89accf50; border-radius:9px; color:var(--accent-2); background:#89accf0c; }
.vt-chat-mark svg { width:28px; height:28px; }
.vt-chat-title { flex:1; }
.vt-chat-title h2 { font-family:var(--serif); font-size:20px; margin:0 0 4px; }
.vt-chat-status { color:var(--chat-muted); font-size:11px; display:flex; align-items:center; gap:6px; }
.vt-chat-status::before { content:''; width:6px; height:6px; border-radius:50%; background:#9bcebc; }
.vt-chat-status[data-state="error"]::before { background:#e8b5a7; }
.vt-chat-icon { display:grid; place-items:center; flex:none; width:40px; height:40px; padding:0; border:0; border-radius:7px; background:transparent; color:var(--chat-muted); transition:background .15s,color .15s; }
.vt-chat-icon:hover { color:var(--silver-bright); background:#89accf18; }
.vt-chat-history { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:22px 20px; scrollbar-width:thin; scrollbar-color:var(--navy-3) transparent; }
.vt-chat-intro { margin-bottom:22px; }
.vt-chat-kicker { color:var(--accent); font-size:10px; letter-spacing:.18em; text-transform:uppercase; margin-bottom:10px; }
.vt-chat-intro h3 { font:500 26px/1.2 var(--serif); margin-bottom:10px; }
.vt-chat-intro p { color:var(--chat-muted); font-size:13px; }
.vt-chat-message { display:flex; flex-direction:column; align-items:flex-start; margin:0 0 18px; animation:vt-chat-in .2s ease both; }
.vt-chat-message[data-role="user"] { align-items:flex-end; }
.vt-chat-bubble { max-width:92%; background:var(--navy-2); border:1px solid #89accf24; border-radius:2px 12px 12px; padding:12px 14px; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--silver-bright); }
.vt-chat-message[data-role="user"] .vt-chat-bubble { border-radius:12px 2px 12px 12px; background:var(--accent-2); border-color:transparent; color:var(--navy); }
.vt-chat-meta { font-size:10px; color:var(--chat-muted); margin:5px 2px 0; }
.vt-chat-suggestions { display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding-bottom:10px; }
.vt-chat-suggestions button { text-align:left; color:var(--accent-2); border:1px solid #89accf40; padding:9px 12px; border-radius:6px; background:transparent; font-size:12px; transition:background .15s,border-color .15s; }
.vt-chat-suggestions button:hover { background:#89accf12; border-color:var(--accent); }
.vt-chat-typing { color:var(--chat-muted); display:flex; gap:5px; align-items:center; padding:10px 0; font-size:12px; }
.vt-chat-typing i { width:4px; height:4px; background:var(--accent); border-radius:50%; animation:vt-chat-dot 1.2s infinite; }
.vt-chat-typing i:nth-child(2) { animation-delay:.15s; }.vt-chat-typing i:nth-child(3) { animation-delay:.3s; }
.vt-chat-error { padding:12px; border:1px solid #e8b5a750; border-radius:6px; background:#e8b5a70a; color:#f0c7bc; font-size:12px; margin-bottom:10px; }
.vt-chat-error button { color:inherit; border:0; background:none; text-decoration:underline; padding:8px 0 0; display:block; }
.vt-chat-foot { flex:none; padding:14px 16px max(14px,env(safe-area-inset-bottom,0px)); border-top:1px solid #89accf25; background:#0c1c30; }
.vt-chat-form { display:flex; align-items:flex-end; gap:8px; padding:6px; border:1px solid #89accf50; border-radius:8px; background:#ffffff04; }
.vt-chat-form:focus-within { border-color:var(--accent); }
.vt-chat-form textarea { flex:1; min-width:0; min-height:42px; max-height:115px; height:42px; resize:none; border:0; border-radius:0; background:transparent; padding:10px; color:var(--silver-bright); font:16px/22px var(--sans); outline:none; }
.vt-chat-form textarea:focus-visible { outline:none; }
.vt-chat-form textarea::placeholder { color:var(--chat-muted); }
.vt-chat-send { width:40px; height:40px; display:grid; place-items:center; background:var(--accent-2); color:var(--navy); border:0; border-radius:5px; flex:none; }
.vt-chat-note { font-size:10px; text-align:center; color:var(--chat-muted); margin:8px 0 0; }
.vt-chat-note a { text-underline-offset:2px; }
.vt-chat-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@keyframes vt-chat-in { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes vt-chat-dot { 0%,70%,100% { opacity:.3; transform:translateY(0); } 35% { opacity:1; transform:translateY(-3px); } }
@media(max-width:600px) {
 .vt-chat-launch { left:16px; bottom:calc(16px + env(safe-area-inset-bottom,0px)); }
 /* Anchor outside the fixed body in document coordinates. The visual viewport
    supplies both the origin and size, including browser keyboard panning. */
 .vt-chat-open { position:absolute; top:var(--vt-chat-top,0px); left:var(--vt-chat-left,0px); width:var(--vt-chat-width,100%); height:var(--vt-chat-height,100dvh); z-index:101; overflow:hidden; overscroll-behavior:none; }
 .vt-chat-panel { position:absolute; inset:0; width:100%; max-width:none; height:100%; min-height:0; border-radius:0; border:0; }
 .vt-chat-panel { animation-name:vt-chat-mobile-in; overscroll-behavior:none; }
 .vt-chat-keyboard .vt-chat-foot { padding-bottom:14px; }
 .vt-chat-head { padding:max(14px,env(safe-area-inset-top,0px)) 16px 14px; }
 .vt-chat-history { padding:20px 16px; }
}
@keyframes vt-chat-mobile-in { from { opacity:0; } to { opacity:1; } }
@media(prefers-reduced-motion:reduce) { .vt-chat *, .vt-chat *::before { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }
