/* ══════════════════════════════════════════════════════════════════════════
   Arex global floating VOICE agent widget.
   Isolated (all classes prefixed .axw-) so it never collides with page styles.
   ══════════════════════════════════════════════════════════════════════════ */
.axw-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 2147483000;
    width: 58px; height: 58px; border-radius: 50%; border: none; cursor: grab;
    background: radial-gradient(circle at 35% 30%, #7dd3fc, #2563eb 72%);
    box-shadow: 0 8px 26px rgba(37, 99, 235, .45); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
    transition: transform .18s ease, box-shadow .18s ease;
    touch-action: none; user-select: none; -webkit-user-select: none;
}
.axw-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 32px rgba(37,99,235,.55); }
.axw-fab.axw-dragging { cursor: grabbing; transition: none; transform: scale(1.06); }
.axw-fab.axw-connecting { animation: axwPulse 1.4s infinite; }
.axw-fab.axw-live {
    background: radial-gradient(circle at 35% 30%, #86efac, #16a34a 72%);
    box-shadow: 0 0 0 4px rgba(34,197,94,.28), 0 8px 26px rgba(22,163,74,.5);
    animation: axwPulse 1.6s infinite;
}
.axw-hidden { display: none !important; }

.axw-panel {
    position: fixed; right: 22px; bottom: 92px; z-index: 2147483000;
    width: 320px; max-width: 92vw;
    display: flex; flex-direction: column; overflow: hidden;
    border-radius: 16px; border: 1px solid rgba(56,189,248,.28);
    background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(8,12,24,.98));
    box-shadow: 0 20px 60px rgba(0,0,0,.55); color: #e2e8f0;
    font-family: 'Inter', system-ui, sans-serif;
    animation: axwIn .2s ease both;
}
@keyframes axwIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.axw-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(148,163,184,.14); }
.axw-title { font-weight: 700; font-size: .95rem; letter-spacing: .02em; flex: 1; }
.axw-dot { width: 8px; height: 8px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 0 0 rgba(56,189,248,.5); animation: axwPulse 1.8s infinite; }
@keyframes axwPulse { 70% { box-shadow: 0 0 0 7px rgba(56,189,248,0); } 100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); } }
.axw-close {
    background: rgba(148,163,184,.12); border: 1px solid rgba(148,163,184,.2); color: #cbd5e1;
    border-radius: 8px; padding: 4px 8px; font-size: .72rem; cursor: pointer;
}
.axw-close:hover { background: rgba(148,163,184,.22); }

.axw-status { padding: 14px; text-align: center; font-size: .84rem; color: #94a3b8; min-height: 20px; }

.axw-controls { padding: 0 14px 6px; display: flex; flex-direction: column; gap: 10px; }
.axw-row { display: flex; align-items: center; justify-content: space-between; }
.axw-label { font-size: .8rem; color: #cbd5e1; font-weight: 600; }
.axw-seg {
    background: rgba(56,189,248,.14); border: 1px solid rgba(56,189,248,.3); color: #e0f2fe;
    border-radius: 10px; padding: 6px 16px; font-size: .8rem; cursor: pointer; min-width: 104px;
    transition: background .15s ease;
}
.axw-seg:hover:not(:disabled) { background: rgba(56,189,248,.24); }
.axw-seg:disabled { opacity: .45; cursor: not-allowed; }

.axw-foot { padding: 12px 14px 16px; border-top: 1px solid rgba(148,163,184,.14); margin-top: 6px; }
.axw-power {
    width: 100%; padding: 11px; border-radius: 12px; cursor: pointer; font-size: .9rem; font-weight: 700;
    background: rgba(34,197,94,.16); border: 1px solid rgba(34,197,94,.4); color: #86efac;
    transition: background .15s ease;
}
.axw-power:hover { background: rgba(34,197,94,.26); }
.axw-power.axw-on { background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.4); color: #fca5a5; }
.axw-power.axw-on:hover { background: rgba(239,68,68,.26); }
.axw-power.axw-busy { opacity: .7; pointer-events: none; }

@media (max-width: 640px) {
    .axw-panel { right: 3vw; left: 3vw; width: auto; max-width: none; bottom: 86px; }
    .axw-fab { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .axw-fab, .axw-panel, .axw-dot { animation: none !important; transition: none !important; }
}
