/* Public sales advisor panel. Uses the marketing pages' tokens (--surface,
   --bg, --border, --accent, --text, --muted) with dark fallbacks. */
.ask-launcher {
  position: fixed; right: 18px; bottom: 18px; z-index: 950; padding: 11px 18px; border-radius: 999px;
  border: none; background: linear-gradient(135deg, var(--accent, #4f8ef7), var(--accent2, #7c5af7));
  color: #fff; font: 600 14px 'Segoe UI', system-ui, sans-serif; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.ask-launcher[hidden], .ask-panel[hidden], .ask-lead[hidden] { display: none; }
.ask-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 960; width: min(400px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 36px)); display: flex; flex-direction: column;
  background: var(--surface, #1a1d27); color: var(--text, #e8eaf0); border: 1px solid var(--border, #2d3148);
  border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.45); font: 14px/1.45 'Segoe UI', system-ui, sans-serif;
  overflow: hidden;
}
@media (max-width: 480px) {
  .ask-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
}
.ask-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border, #2d3148); }
.ask-head strong { flex: 1; }
.ask-icon { border: 1px solid var(--border, #2d3148); background: transparent; color: var(--text, #e8eaf0);
            width: 30px; height: 30px; border-radius: 8px; cursor: pointer; }
.ask-disclosure { font-size: 12px; color: var(--muted, #9199ab); padding: 8px 14px; border-bottom: 1px solid var(--border, #2d3148); }
.ask-log { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ask-msg { max-width: 92%; padding: 9px 12px; border-radius: 12px; overflow-wrap: anywhere; }
.ask-msg p { margin: 0 0 6px; } .ask-msg p:last-child { margin: 0; }
.ask-msg ul { margin: 4px 0 6px 18px; padding: 0; }
.ask-user { align-self: flex-end; background: var(--accent, #4f8ef7); color: #fff; }
.ask-bot { align-self: flex-start; background: var(--bg, #0f1117); border: 1px solid var(--border, #2d3148); }
.ask-warn { align-self: stretch; border: 1px solid #f59e0b; font-size: 13px; }
.ask-dim { color: var(--muted, #9199ab); font-size: 12px; }
.ask-thinking::after { content: '…'; animation: ask-blink 1s infinite; }
@keyframes ask-blink { 50% { opacity: .25; } }
.ask-actions, .ask-starters { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.ask-btn { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--accent, #4f8ef7); background: transparent;
           color: var(--text, #e8eaf0); font: 600 12.5px 'Segoe UI', system-ui, sans-serif; cursor: pointer; text-decoration: none; }
.ask-btn:hover { background: rgba(79,142,247,.12); }
.ask-btn.primary { background: var(--accent, #4f8ef7); color: #fff; }
.ask-form { border-top: 1px solid var(--border, #2d3148); padding: 10px 14px; }
.ask-form textarea, .ask-lead input, .ask-lead select, .ask-lead textarea {
  width: 100%; box-sizing: border-box; background: var(--bg, #0f1117); color: var(--text, #e8eaf0);
  border: 1px solid var(--border, #2d3148); border-radius: 8px; padding: 7px 9px; font: inherit; font-size: 13.5px; }
.ask-form textarea { resize: none; }
.ask-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ask-row .ask-dim { flex: 1; }
.ask-send { padding: 7px 16px; border-radius: 8px; border: none; background: var(--accent, #4f8ef7); color: #fff;
            font-weight: 700; cursor: pointer; }
.ask-send[disabled] { opacity: .5; cursor: wait; }
.ask-lead { padding: 12px 14px; border-top: 1px solid var(--border, #2d3148); display: flex; flex-direction: column;
            gap: 7px; overflow-y: auto; max-height: 70%; }
.ask-lead label { font-size: 12px; color: var(--muted, #9199ab); display: block; }
.ask-lead .ask-check { color: var(--text, #e8eaf0); font-size: 13px; display: flex; gap: 6px; align-items: flex-start; }
.ask-lead .ask-check input { width: auto; }
.ask-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ask-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ask-lead-msg { font-size: 13px; }
.ask-lead-msg.err { color: #f87171; } .ask-lead-msg.ok { color: #4ade80; }
