/* Site assistant: launcher, chat panel, read-aloud player. Colors come from the market's theme tokens. */
body.ax-pad { padding-bottom: 84px; } /* room so the floating buttons never sit on the last control of a page */
.ax-launch { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: flex; gap: 8px; align-items: center; }
.ax-fab { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-accent, #fff); font: 600 15px/1 var(--sans, system-ui); box-shadow: var(--shadow-l, 0 10px 30px rgba(0,0,0,.25)); }
.ax-fab.ax-mini { width: 52px; padding: 0; justify-content: center; background: var(--surface, #fff); color: var(--ink, #111); border: 1px solid var(--line, rgba(0,0,0,.12)); }
.ax-fab svg { width: 22px; height: 22px; flex: none; }
.ax-fab:focus-visible, .ax-btn:focus-visible, .ax-chip:focus-visible, .ax-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ax-panel { position: fixed; right: 18px; bottom: 82px; z-index: 901; width: min(420px, calc(100vw - 24px)); height: min(640px, calc(100vh - 110px));
  display: none; flex-direction: column; background: var(--surface, #fff); color: var(--ink, #111); border: 1px solid var(--line, rgba(0,0,0,.12));
  border-radius: 18px; box-shadow: var(--shadow-l, 0 20px 60px rgba(0,0,0,.3)); overflow: hidden; font: 15px/1.5 var(--sans, system-ui); }
.ax-panel.ax-open { display: flex; }
.ax-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 16px; border-bottom: 1px solid var(--line, rgba(0,0,0,.1)); }
.ax-title { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-btn { border: 1px solid var(--line, rgba(0,0,0,.14)); background: transparent; color: inherit; border-radius: 999px; height: 34px; min-width: 34px; padding: 0 12px;
  font: 600 13px/1 var(--sans, system-ui); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ax-btn svg { width: 16px; height: 16px; }
.ax-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent, #fff); border-color: var(--accent); }
.ax-btn.ax-primary { background: var(--accent); color: var(--on-accent, #fff); border-color: var(--accent); }
.ax-tabs { display: flex; gap: 4px; padding: 8px 12px 0; }
.ax-tab { flex: 1; border: 0; background: transparent; color: var(--muted, #666); font: 600 14px/1 var(--sans, system-ui); padding: 10px 0; border-bottom: 2px solid transparent; cursor: pointer; }
.ax-tab[aria-selected="true"] { color: var(--ink, #111); border-bottom-color: var(--accent); }
.ax-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ax-view { flex: 1; min-height: 0; display: none; flex-direction: column; }
.ax-view.ax-on { display: flex; }
.ax-log { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 10px; }
.ax-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ax-msg.ax-user { align-self: flex-end; background: var(--accent); color: var(--on-accent, #fff); border-bottom-right-radius: 4px; }
.ax-msg.ax-bot { align-self: flex-start; background: var(--bg-2, rgba(0,0,0,.05)); border-bottom-left-radius: 4px; }
.ax-msg.ax-note { align-self: center; background: transparent; color: var(--muted, #666); font-size: 13px; text-align: center; }
.ax-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ax-act { display: inline-block; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--accent); color: var(--ink, #111); text-decoration: none; font-size: 13px; font-weight: 600; background: var(--surface, #fff); }
.ax-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 8px; }
.ax-chip { border: 1px solid var(--line, rgba(0,0,0,.14)); background: var(--surface, #fff); color: inherit; border-radius: 999px; padding: 7px 11px; font: 13px/1.2 var(--sans, system-ui); cursor: pointer; text-align: left; }
.ax-form { display: flex; gap: 6px; padding: 10px 12px 12px; border-top: 1px solid var(--line, rgba(0,0,0,.1)); align-items: flex-end; }
.ax-input { flex: 1; min-width: 0; resize: none; max-height: 120px; min-height: 42px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, rgba(0,0,0,.18));
  background: var(--bg, #fff); color: inherit; font: 15px/1.4 var(--sans, system-ui); }
.ax-form .ax-btn { height: 42px; }
.ax-mic.ax-live { background: var(--bad, #c0392b); color: #fff; border-color: transparent; }
.ax-listen { padding: 14px; overflow-y: auto; flex: 1; }
.ax-listen p { margin: 0 0 10px; padding: 6px 8px; border-radius: 8px; }
.ax-listen p.ax-now { background: var(--accent-soft, rgba(0,0,0,.06)); }
.ax-player { display: flex; gap: 6px; align-items: center; padding: 10px 12px 12px; border-top: 1px solid var(--line, rgba(0,0,0,.1)); flex-wrap: wrap; }
.ax-status { font-size: 12px; color: var(--muted, #666); flex-basis: 100%; }
.ax-foot { font-size: 11.5px; color: var(--muted, #666); padding: 0 14px 10px; }
.ax-dots::after { content: "…"; animation: ax-blink 1s steps(3) infinite; }
@keyframes ax-blink { 0% { opacity: .2 } 50% { opacity: 1 } 100% { opacity: .2 } }
@media (max-width: 560px) {
  .ax-panel { right: 0; left: 0; bottom: 0; width: 100vw; height: 86vh; border-radius: 18px 18px 0 0; }
  .ax-launch { right: 12px; bottom: 12px; }
  .ax-fab { height: 48px; }
  .ax-fab .ax-label { display: none; }
  .ax-fab:not(.ax-mini) { width: 48px; padding: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .ax-dots::after { animation: none; } }
