/* Vexo guide panel. Above the page (z 1100), below the tour (1250). A sheet on phones. */
.ast{position:fixed;right:20px;bottom:20px;z-index:1100;width:min(400px,calc(100vw - 32px));height:min(620px,calc(100vh - 96px));display:flex;flex-direction:column;
  background:var(--raised);color:var(--text);border:1px solid var(--border-strong);border-radius:18px;box-shadow:var(--shadow-pop);overflow:hidden;animation:ast-in 260ms var(--ease-out)}
.ast-head{display:flex;align-items:center;gap:10px;padding:10px 10px 10px 12px;border-bottom:1px solid var(--border);background:linear-gradient(180deg,color-mix(in srgb,var(--accent) 10%,transparent),transparent)}
.ast-avatar{width:56px;height:56px;flex-shrink:0;display:grid;place-items:center;margin:-6px -2px -6px -6px}
.ast-avatar-fallback{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(140deg,#a78bfa,#6d3df0);color:#fff;font:800 18px var(--font-display)}
.ast-titles{flex:1;min-width:0;display:flex;flex-direction:column}
.ast-titles h2{margin:0;font:700 15px var(--font-display)}
.ast-state{font-size:12px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ast-voice.is-on{color:var(--accent-light);background:var(--accent-soft)}
.ast-head .btn-icon svg{width:18px;height:18px}

.ast-list{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain}
.ast-msg{max-width:90%;display:flex;flex-direction:column;gap:8px}
.ast-msg.is-user{align-self:flex-end;align-items:flex-end}
.ast-text{padding:9px 12px;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.ast-msg.is-user .ast-text{background:var(--accent);color:var(--accent-ink);border-radius:14px 14px 4px 14px}
.ast-msg.is-assistant .ast-text{background:var(--surface-2);border:1px solid var(--border);border-radius:14px 14px 14px 4px}
.ast-msg.is-error .ast-text{border-color:color-mix(in srgb,var(--red) 45%,transparent)}
.ast-s{border-radius:4px;transition:background-color 180ms var(--ease),box-shadow 180ms var(--ease)}
.ast-s.is-speaking{background:var(--accent-soft);box-shadow:0 0 0 2px var(--accent-soft)}
.ast-actions,.ast-msg-tools{display:flex;flex-wrap:wrap;gap:6px}
.ast-mini{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;border:1px solid var(--border);background:var(--surface-2);color:var(--text-2);font:600 12px var(--font);cursor:pointer}
.ast-mini:hover{color:var(--text);border-color:var(--border-strong)}
.ast-mini svg{width:11px;height:11px}
.ast-dots{display:inline-flex;gap:4px;padding:4px 2px}
.ast-dots i{width:7px;height:7px;border-radius:50%;background:var(--text-3);animation:ast-dot 1.1s ease-in-out infinite}
.ast-dots i:nth-child(2){animation-delay:.15s}.ast-dots i:nth-child(3){animation-delay:.3s}

.ast-chips{display:flex;gap:6px;overflow-x:auto;padding:2px 12px 8px;scrollbar-width:none;flex-shrink:0}
.ast-chips::-webkit-scrollbar{display:none}
.ast-chip{flex-shrink:0;padding:6px 11px;border-radius:999px;border:1px solid var(--border-strong);background:transparent;color:var(--text-2);font:600 12.5px var(--font);white-space:nowrap;cursor:pointer;transition:border-color 140ms var(--ease),color 140ms var(--ease)}
.ast-chip:hover{color:var(--text);border-color:color-mix(in srgb,var(--accent) 50%,transparent)}
.ast-chip.is-tour{color:var(--accent-light);border-color:color-mix(in srgb,var(--accent) 35%,transparent)}
.ast-speech{display:flex;gap:6px;padding:8px 12px 0;flex-shrink:0}
.ast-form{display:flex;align-items:flex-end;gap:6px;padding:10px 10px 12px;border-top:1px solid var(--border);flex-shrink:0}
.ast-input{flex:1;min-height:40px;max-height:140px;resize:none;padding:10px 12px;border-radius:12px;border:1px solid var(--border-strong);background:var(--surface-2);color:var(--text);font:500 14px/1.4 var(--font);outline:none}
.ast-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
.ast-mic,.ast-send{width:40px;height:40px;flex-shrink:0;border-radius:12px}
.ast-mic svg,.ast-send svg{width:18px;height:18px}
.ast-mic.is-on{color:#fff;background:var(--red);animation:ast-rec 1.2s ease-in-out infinite}
.ast-send{display:grid;place-items:center;border:0;background:var(--accent);color:var(--accent-ink);cursor:pointer}
.ast-send.is-stop{background:var(--surface-3);color:var(--text)}

/* Pointing at an element: clicks still reach it */
.ast-point{position:fixed;inset:0;z-index:1090;pointer-events:none}
.ast-ring{position:fixed;border-radius:12px;box-shadow:0 0 0 2px #8b5cf6,0 0 26px 6px rgba(139,92,246,.5);animation:ast-ring 1.6s ease-in-out infinite}
.ast-note{position:fixed;left:0;top:0;max-width:min(320px,calc(100vw - 16px));display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#1d1a2b;color:#f2f0ff;
  border:1px solid rgba(167,139,250,.45);box-shadow:0 18px 40px -16px rgba(0,0,0,.6),0 0 30px -12px rgba(139,92,246,.6);font:500 13px/1.45 var(--font);pointer-events:auto;animation:ast-in 220ms var(--ease-out)}
.ast-note-x{flex-shrink:0;padding:4px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#fff;font:600 12px var(--font);cursor:pointer}

@keyframes ast-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@keyframes ast-dot{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-4px);opacity:1}}
@keyframes ast-rec{50%{box-shadow:0 0 0 6px color-mix(in srgb,var(--red) 25%,transparent)}}
@keyframes ast-ring{50%{box-shadow:0 0 0 3px #a78bfa,0 0 34px 10px rgba(139,92,246,.6)}}

@media(max-width:640px){
  .ast{left:0;right:0;bottom:0;width:100%;height:min(88vh,100%);border-radius:18px 18px 0 0;border-left:0;border-right:0;border-bottom:0}
}
@media(prefers-reduced-motion:reduce){
  .ast,.ast-note,.ast-dots i,.ast-mic.is-on,.ast-ring{animation:none}
}
/* A plan of changes the guide proposes: nothing runs until Confirm. */
.ast-actions .ast-plan{flex-basis:100%}
.ast-plan{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border:1px solid var(--accent);border-radius:var(--radius-sm);background:var(--accent-soft);width:100%}
.ast-plan.is-cancelled{border-color:var(--border);background:transparent;opacity:.75}
.ast-plan.is-done{border-color:var(--green);background:var(--green-soft)}
.ast-plan.is-failed{border-color:var(--yellow);background:var(--yellow-soft)}
.ast-plan-title{font-size:13.5px}
.ast-plan-steps{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:4px;font-size:13px;line-height:1.45}
.ast-plan-steps li.is-careful{color:var(--yellow)}
.ast-plan-ok{color:var(--green);font-weight:700}
.ast-plan-err{color:var(--red)}
.ast-plan-actions{display:flex;gap:6px;flex-wrap:wrap}
.ast-plan p{margin:0}
