/* Website assistant: a still launcher in the bottom-left corner, its conversation panel and the guided tour
   card. Uses the tokens from site.css. Nothing here animates on its own. */
.vxc-root{--vxc-gap:calc(16px + env(safe-area-inset-bottom,0px));--vxc-left:calc(16px + env(safe-area-inset-left,0px));font-family:var(--body);color:var(--ink)}
.vxc-vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* launcher */
.vxc-launcher{position:fixed;left:var(--vxc-left);bottom:var(--vxc-gap);z-index:40;display:inline-flex;align-items:center;gap:0;height:60px;padding:0 0 0 0;border:1px solid var(--line-2);border-radius:var(--r-pill);background:var(--surface);box-shadow:0 12px 30px -18px rgba(39,51,46,.45);transition:box-shadow var(--dur) var(--ease),border-color var(--dur) var(--ease)}
.vxc-launcher:hover,.vxc-launcher:focus-visible{border-color:var(--sage);box-shadow:0 16px 34px -18px rgba(39,51,46,.5)}
.vxc-face{display:grid;place-items:end center;width:58px;height:58px;border-radius:50%;background:var(--sage-tint);overflow:hidden;flex:none}
.vxc-face img{display:block;width:auto;height:50px;margin-bottom:1px}
.vxc-launcher-label{max-width:0;overflow:hidden;white-space:nowrap;font-size:var(--fs-sm);font-weight:600;color:var(--ink);transition:max-width .3s var(--ease),padding .3s var(--ease)}
.vxc-launcher:hover .vxc-launcher-label,.vxc-launcher:focus-visible .vxc-launcher-label{max-width:9rem;padding:0 1.1rem 0 .7rem}
.vxc-root.is-open .vxc-launcher{border-color:var(--green-3)}
@media (max-width:640px){
  .vxc-launcher{height:48px;transition:opacity .25s var(--ease),transform .25s var(--ease),box-shadow var(--dur),border-color var(--dur)}
  .vxc-face{width:46px;height:46px}
  .vxc-face img{height:40px}
  .vxc-root.is-scrolling .vxc-launcher{opacity:0;transform:translateY(8px);pointer-events:none}
  .vxc-launcher-label{display:none}
  .vxc-root.is-open .vxc-launcher,.vxc-touring .vxc-launcher,body.menu-open .vxc-launcher{display:none}
}
@media print{.vxc-root,.vxc-tour{display:none!important}}

/* panel */
.vxc-panel{position:fixed;left:var(--vxc-left);bottom:calc(var(--vxc-gap) + 72px);z-index:41;display:flex;flex-direction:column;width:min(390px,calc(100vw - 32px));max-height:min(620px,calc(100vh - 120px));max-height:min(620px,calc(100dvh - 120px));background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:0 30px 60px -30px rgba(39,51,46,.45);overflow:hidden}
.vxc-panel[hidden]{display:none}
.vxc-head{display:flex;align-items:center;gap:.75rem;padding:.9rem .9rem .9rem 1rem;border-bottom:1px solid var(--line)}
.vxc-avatar{display:grid;place-items:end center;width:40px;height:40px;border-radius:50%;background:var(--sage-tint);overflow:hidden;flex:none}
.vxc-avatar img{display:block;width:auto;height:35px}
.vxc-head-text{flex:1;min-width:0}
.vxc-head h2{font-size:1rem;letter-spacing:-.01em;line-height:1.25}
.vxc-head p{font-size:var(--fs-xs);color:var(--muted)}
.vxc-icon-btn{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink-2)}
.vxc-icon-btn:hover{background:var(--soft);color:var(--ink)}
.vxc-icon-btn svg{width:18px;height:18px}
.vxc-chat{display:flex;flex-direction:column;min-height:0;flex:1}
.vxc-log{list-style:none;margin:0;padding:1rem;display:flex;flex-direction:column;gap:.75rem;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:120px}
.vxc-msg{max-width:88%;font-size:var(--fs-sm);line-height:1.55}
.vxc-msg p+p,.vxc-msg p+ul,.vxc-msg p+ol,.vxc-msg ul+p,.vxc-msg ol+p{margin-top:.5rem}
.vxc-msg ul,.vxc-msg ol{margin:.4rem 0 0;padding-left:1.15rem}
.vxc-msg li+li{margin-top:.25rem}
.vxc-msg a{color:var(--green-3);text-decoration:underline;text-underline-offset:2px}
.vxc-bot{align-self:flex-start;padding:.7rem .9rem;border-radius:4px 16px 16px 16px;background:var(--soft);color:var(--ink)}
.vxc-user{align-self:flex-end;padding:.6rem .9rem;border-radius:16px 16px 4px 16px;background:var(--green);color:#fff;overflow-wrap:anywhere}
.vxc-chips{display:flex;flex-wrap:wrap;gap:.4rem;padding:0 1rem .75rem}
.vxc-chips:empty{display:none}
.vxc-chip{display:inline-flex;align-items:center;min-height:36px;padding:.4rem .85rem;border:1px solid var(--line-2);border-radius:var(--r-pill);background:var(--surface);color:var(--ink);font:500 .84rem/1.25 var(--body);text-align:left;transition:background var(--dur),border-color var(--dur)}
.vxc-chip:hover{background:var(--sage-tint);border-color:var(--green-3);color:var(--ink)}
.vxc-chip-p{background:var(--green);border-color:var(--green);color:#fff}
.vxc-chip-p:hover{background:var(--green-2);color:#fff}
.vxc-compose{display:flex;align-items:flex-end;gap:.5rem;padding:.75rem 1rem;border-top:1px solid var(--line)}
.vxc-compose textarea{flex:1;min-width:0;min-height:44px;max-height:120px;padding:.65rem .9rem;border:1px solid var(--line-2);border-radius:var(--r-md);background:var(--bg);font:400 1rem/1.4 var(--body);color:var(--ink);resize:none}
.vxc-compose textarea:focus{outline:2px solid var(--green-3);outline-offset:0;border-color:transparent}
.vxc-send{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--green);color:#fff}
.vxc-send:hover{background:var(--green-2)}
.vxc-send svg{width:18px;height:18px}
.vxc-note{padding:0 1rem .8rem;font-size:.75rem;color:var(--muted)}
.vxc-check{position:fixed;left:50%;bottom:var(--vxc-gap);z-index:50;transform:translateX(-50%)}
@media (max-width:640px){
  .vxc-panel{left:0;right:0;bottom:0;width:auto;max-height:82vh;max-height:82dvh;border-radius:var(--r-lg) var(--r-lg) 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom,0px)}
}

/* guided tour */
.vxc-tour{position:fixed;right:calc(24px + env(safe-area-inset-right,0px));bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:42;width:min(380px,calc(100vw - 32px));padding:1.1rem 1.2rem 1.2rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:0 30px 60px -30px rgba(39,51,46,.5);font-family:var(--body);color:var(--ink)}
.vxc-tour[hidden]{display:none}
.vxc-tour-top{display:flex;align-items:center;justify-content:space-between;margin:-.35rem -.45rem .2rem 0}
.vxc-tour-count{font-size:var(--fs-xs);font-weight:600;color:var(--green-3)}
.vxc-tour-progress{height:3px;border-radius:2px;background:var(--soft-2);overflow:hidden;margin-bottom:1rem}
.vxc-tour-progress i{display:block;height:100%;width:0;background:var(--green-3);transition:width .3s var(--ease)}
.vxc-tour-title{font-size:1.15rem;letter-spacing:-.015em}
.vxc-tour-title:focus{outline:0}
.vxc-tour-title:focus-visible{outline:2px solid var(--green-3);outline-offset:3px}
.vxc-tour-text{margin-top:.5rem;font-size:var(--fs-sm);color:var(--ink-2);line-height:1.6}
.vxc-tour-nav{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:1.2rem}
.vxc-tour-steps{display:flex;gap:.5rem}
.vxc-tour-skip{min-height:40px;padding:0 .25rem;border:0;background:none;color:var(--muted);font-size:var(--fs-xs);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.vxc-tour-skip:hover{color:var(--ink)}
.vxc-btn{min-height:40px;padding:0 1rem;border:1px solid var(--line-2);border-radius:var(--r-pill);background:var(--surface);color:var(--ink);font-size:var(--fs-sm);font-weight:600}
.vxc-btn:hover{background:var(--soft)}
.vxc-btn:disabled{opacity:.45;cursor:default}
.vxc-btn-p{background:var(--green);border-color:var(--green);color:#fff}
.vxc-btn-p:hover{background:var(--green-2)}
.vxc-tour-target{outline:2px solid var(--green-3);outline-offset:-2px;scroll-margin-top:calc(var(--header-h,72px) + 12px)}
@media (max-width:640px){.vxc-tour{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));width:auto}}
@media (forced-colors:active){.vxc-launcher,.vxc-panel,.vxc-tour{border:1px solid CanvasText}.vxc-tour-target{outline-color:Highlight}}
