:root {
    --v3-cyan: #00c3d4;
    --v3-magenta: #ff52c3;
    --v3-ink: #0a0a1a;
}

/* ---- Chat flotante ---- */
.v3-chat-launcher {
    position: fixed;
    right: 18px;
    top: 60%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 40;
    width: min(430px, calc(100vw - 36px));
    transition: width 0.28s ease, right 0.28s ease, top 0.28s ease, bottom 0.28s ease, transform 0.28s ease;
}

@media (max-width: 640px) {
    .v3-chat-launcher { right: 10px; top: 60%; bottom: auto; transform: translateY(-50%); }
    .v3-subtitles {
        bottom: clamp(60px, 16vh, 120px);
        width: calc(100vw - 24px);
        padding: 0 8px;
    }
    .v3-subtitles__text {
        font-size: clamp(0.92rem, 3.2vw, 1.05rem);
    }
}

/* ---- Chat (self-contained, no depende de landing_avatar.css) ---- */
.v3-chat-launcher .chat-container {
    display: flex;
    flex-direction: column;
    height: min(66vh, 640px);
    background:
        linear-gradient(175deg, rgba(19, 21, 46, 0.97) 0%, rgba(7, 9, 24, 0.98) 100%),
        radial-gradient(circle at 20% 0%, rgba(0, 195, 212, 0.14), transparent 34%),
        radial-gradient(circle at 86% 12%, rgba(255, 82, 195, 0.12), transparent 32%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 30px 82px rgba(0, 0, 0, 0.55),
        0 0 38px rgba(0, 195, 212, 0.12),
        0 0 30px rgba(255, 82, 195, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.v3-chat-launcher .chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background:
        linear-gradient(135deg, rgba(0, 195, 212, 0.14), rgba(255, 82, 195, 0.1)),
        rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}
.v3-chat-launcher .chat-header-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.v3-chat-launcher .v3-chat-avatar-wrap {
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.v3-chat-launcher .chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #021016;
    background: linear-gradient(135deg, var(--v3-cyan), var(--v3-magenta));
}
.v3-chat-launcher .v3-chat-avatar-expand {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 9;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #061016;
    background: linear-gradient(135deg, var(--v3-cyan), #ffffff 48%, var(--v3-magenta));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), 0 0 20px rgba(0, 195, 212, 0.22);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px) scale(0.92);
    transition: opacity 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.v3-chat-launcher .v3-chat-avatar-expand:hover,
.v3-chat-launcher .v3-chat-avatar-expand:focus-visible {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.46), 0 0 26px rgba(255, 82, 195, 0.34);
}
.v3-chat-launcher .chat-container:not(.is-collapsed) .v3-chat-avatar-wrap:hover .v3-chat-avatar-expand,
.v3-chat-launcher .chat-container:not(.is-collapsed) .v3-chat-avatar-wrap:focus-within .v3-chat-avatar-expand,
.v3-chat-launcher .chat-container:not(.is-collapsed) .v3-chat-avatar-wrap.is-expand-reveal .v3-chat-avatar-expand {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.v3-chat-launcher .chat-container.is-collapsed .v3-chat-avatar-expand {
    display: none;
}
.v3-chat-launcher .chat-header-info h4 { margin: 0; font-size: 16px; line-height: 1.15; }
.v3-chat-launcher .chat-status-line {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    min-width: 0;
}
.v3-chat-launcher .chat-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 8px;
    background: #35f59a;
    box-shadow:
        0 0 0 3px rgba(53, 245, 154, 0.12),
        0 0 14px rgba(53, 245, 154, 0.44);
}
.v3-chat-launcher .chat-status-text { font-size: 13px; color: var(--v3-cyan); line-height: 1.2; }
.v3-chat-launcher .avatar-chat-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.v3-chat-launcher .avatar-chat-collapse-toggle,
.v3-chat-launcher .avatar-chat-voice-toggle {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}
.v3-chat-launcher .avatar-chat-collapse-toggle:hover,
.v3-chat-launcher .avatar-chat-voice-toggle:hover {
    background: rgba(255, 255, 255, 0.11);
}
.v3-chat-launcher .avatar-chat-collapse-toggle i,
.v3-chat-launcher .avatar-chat-voice-toggle i { font-size: 18px; transition: transform 0.28s ease; }
.v3-chat-launcher .avatar-chat-voice-toggle.is-muted {
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.04);
}
.v3-chat-launcher .avatar-chat-voice-toggle.is-muted:hover {
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
}
.v3-chat-launcher .chat-container.is-collapsed { height: auto; }
.v3-chat-launcher .chat-container.is-collapsed .chat-messages,
.v3-chat-launcher .chat-container.is-collapsed .chat-input { display: none; }
.v3-chat-launcher .chat-messages {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.38) transparent;
}
.v3-chat-launcher .chat-messages::-webkit-scrollbar {
    width: 14px;
}
.v3-chat-launcher .chat-messages::-webkit-scrollbar-track {
    background: transparent;
    margin-block: 10px;
}
.v3-chat-launcher .chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.38);
    border: 4px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}
.v3-chat-launcher .chat-messages::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.58);
}
.v3-chat-launcher .chat-bubble {
    position: relative;
    font-size: 14px;
    line-height: 1.55;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: min(88%, 28rem);
    overflow-wrap: anywhere;
    word-break: break-word;
    letter-spacing: 0.01em;
}
.v3-chat-launcher .chat-bubble.bot {
    align-self: flex-start;
    color: rgba(255, 255, 255, 0.92);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
        rgba(8, 10, 24, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px 18px 18px 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
.v3-chat-launcher .chat-bubble.user {
    align-self: flex-end;
    color: #eefcff;
    font-weight: 450;
    background:
        linear-gradient(145deg, rgba(0, 195, 212, 0.28) 0%, rgba(255, 82, 195, 0.16) 100%),
        rgba(5, 14, 28, 0.94);
    border: 1px solid rgba(0, 195, 212, 0.38);
    border-radius: 18px 18px 6px 18px;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.32),
        0 0 22px rgba(0, 195, 212, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.v3-chat-launcher .chat-bubble.user::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 42%);
    opacity: 0.55;
}
.v3-chat-launcher .chat-bubble.bot.chat-typing-bubble {
    border-radius: 18px 18px 18px 6px;
}
.v3-chat-launcher .chat-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}
.v3-chat-launcher .chat-input__row {
    display: flex;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.v3-chat-launcher .avatar-chat-panel[role="button"]:focus-visible {
    outline: 2px solid var(--v3-cyan);
    outline-offset: 4px;
}
.v3-chat-launcher .chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    color: #fff;
    font-size: 16px;
    outline: none;
}
.v3-chat-launcher .chat-privacy-note {
    margin: 0;
    color: rgba(237, 242, 252, 0.52);
    font-size: 0.68rem;
    line-height: 1.4;
}
.v3-chat-launcher .chat-privacy-note a {
    color: var(--v3-cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.v3-chat-launcher .chat-input input:focus { border-color: rgba(0, 195, 212, 0.42); }
.v3-chat-launcher .chat-send-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: #021016;
    background: linear-gradient(135deg, var(--v3-cyan), var(--v3-magenta));
    font-size: 18px;
}
.v3-chat-launcher .chat-container.is-collapsed {
    height: auto;
    border-radius: 999px;
    cursor: pointer;
    background:
        linear-gradient(135deg, rgba(0, 195, 212, 0.18), rgba(255, 82, 195, 0.16)),
        rgba(8, 10, 24, 0.92);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 22px 56px rgba(0, 0, 0, 0.42),
        0 0 36px rgba(0, 195, 212, 0.24),
        0 0 34px rgba(255, 82, 195, 0.18);
}
.v3-chat-launcher .chat-container.is-collapsed .chat-header {
    padding: 12px 16px 12px 12px;
    border-bottom: none;
    background: transparent;
}
.v3-chat-launcher .chat-container.is-collapsed .chat-header-info h4 {
    font-size: 15px;
}
.v3-chat-launcher .chat-container.is-collapsed .chat-status-line {
    display: inline-flex;
    max-width: 230px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v3-chat-launcher .chat-container.is-collapsed .chat-status-text {
    vertical-align: middle;
}
.v3-chat-launcher .v3-chat-avatar-stage {
    position: relative;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    padding: 0;
    background: #080a17;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.14),
        0 0 0 6px rgba(0, 195, 212, 0.08),
        0 0 34px rgba(0, 195, 212, 0.32),
        0 0 28px rgba(255, 82, 195, 0.24);
}
.v3-chat-launcher .chat-container:not(.is-collapsed) .v3-chat-avatar-stage {
    width: 108px;
    height: 108px;
    border-radius: 28px;
}
.v3-chat-avatar-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: inherit;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 36%),
        radial-gradient(circle at 74% 22%, rgba(255, 82, 195, 0.16), transparent 30%);
    pointer-events: none;
    mix-blend-mode: screen;
}
.v3-chat-avatar-stage__ring {
    position: absolute;
    inset: -2px;
    z-index: 5;
    border-radius: inherit;
    border: 2px solid rgba(0, 195, 212, 0.62);
    box-shadow: inset 0 0 18px rgba(255, 82, 195, 0.22);
    pointer-events: none;
}
/* Idle en reposo; clips de boca encima con .is-visible (misma técnica que landing_avatar_intro) */
.v3-chat-avatar-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transform: translateZ(0);
    transition: opacity 0.14s ease;
    background: #080a17;
}
.v3-chat-avatar-video.is-active {
    opacity: 1;
    z-index: 2;
}
.v3-chat-avatar-video.is-visible {
    opacity: 1;
    z-index: 4;
}
/* Sin crossfade entre clip→clip: evita mezclar dos vídeos y frames no decodificados */
.v3-chat-avatar-video.v3-chat-talk-swap-instant {
    transition: none !important;
}

/* iOS Safari: el <video> ignora border-radius del contenedor hasta un repaint (p. ej. al tocar). */
.v3-chat-launcher .chat-container.is-minibubble .v3-chat-avatar-stage,
.v3-chat-launcher .chat-container.is-collapsed .v3-chat-avatar-stage {
    overflow: hidden;
    isolation: isolate;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-clip-path: circle(50% at 50% 50%);
    clip-path: circle(50% at 50% 50%);
}
.v3-chat-launcher .chat-container.is-minibubble .v3-chat-avatar-video,
.v3-chat-launcher .chat-container.is-collapsed .v3-chat-avatar-video {
    border-radius: 50%;
    -webkit-clip-path: circle(50% at 50% 50%);
    clip-path: circle(50% at 50% 50%);
}
.v3-chat-launcher .chat-container.is-minibubble .v3-chat-avatar-stage::after {
    -webkit-clip-path: circle(50% at 50% 50%);
    clip-path: circle(50% at 50% 50%);
}

@media (prefers-reduced-motion: reduce) {
    .v3-chat-avatar-video {
        transition-duration: 0.05s;
    }
    .v3-chat-avatar-video.v3-chat-talk-swap-instant {
        transition: none !important;
    }
}
.v3-chat-launcher .chat-container.is-thinking .v3-chat-avatar-stage {
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.14),
        0 0 0 8px rgba(255, 209, 102, 0.1),
        0 0 42px rgba(255, 209, 102, 0.36);
}
.v3-chat-launcher .chat-container.is-speaking .v3-chat-avatar-stage {
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.16),
        0 0 0 8px rgba(255, 82, 195, 0.1),
        0 0 52px rgba(0, 195, 212, 0.44),
        0 0 44px rgba(255, 82, 195, 0.28);
}
.v3-chat-launcher .chat-container.is-speaking .v3-chat-avatar-stage__ring,
.v3-chat-launcher .chat-container.is-thinking .v3-chat-avatar-stage__ring {
    animation: v3-chat-avatar-ring 1.2s ease-in-out infinite;
}
@keyframes v3-chat-avatar-ring {
    0%, 100% { opacity: 0.44; transform: scale(1); }
    50% { opacity: 1; transform: scale(0.94); }
}
.v3-chat-launcher .chat-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.v3-chat-launcher .chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 195, 212, 0.85);
    animation: v3-chat-dot 0.9s ease-in-out infinite;
}
.v3-chat-launcher .chat-typing span:nth-child(2) { animation-delay: 0.12s; }
.v3-chat-launcher .chat-typing span:nth-child(3) { animation-delay: 0.24s; }
@keyframes v3-chat-dot {
    0%, 100% { transform: translateY(0); opacity: 0.42; }
    50% { transform: translateY(-4px); opacity: 1; }
}

html:has(body.v3-voice-mode-open),
html:has(body.v3-voice-confirm-open),
body.v3-voice-mode-open,
body.v3-voice-confirm-open {
    overflow: hidden !important;
}

.v3-voice-confirm,
.v3-voice-mode {
    position: fixed;
    inset: 0;
    z-index: 190;
}

.v3-voice-confirm {
    display: grid;
    place-items: center;
    padding: 22px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 195, 212, 0.08), transparent 55%),
        radial-gradient(ellipse 60% 50% at 80% 70%, rgba(255, 82, 195, 0.06), transparent 50%),
        rgba(3, 6, 18, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.v3-voice-confirm[hidden],
.v3-voice-mode[hidden] {
    display: none !important;
}

.v3-voice-confirm:not([hidden]) .v3-voice-confirm__panel {
    animation: v3-voice-confirm-in 0.42s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes v3-voice-confirm-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.v3-voice-confirm__panel {
    position: relative;
    width: min(400px, calc(100vw - 32px));
    padding: 28px 26px 24px;
    border-radius: 20px;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(165deg, rgba(18, 22, 48, 0.97) 0%, rgba(8, 10, 28, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 0 1px rgba(0, 195, 212, 0.12) inset,
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 48px rgba(0, 195, 212, 0.08);
    overflow: hidden;
}

.v3-voice-confirm__panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--v3-cyan), var(--v3-magenta), transparent);
    opacity: 0.65;
    pointer-events: none;
}

.v3-voice-confirm__visual {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
}

.v3-voice-confirm__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    pointer-events: none;
}

.v3-voice-confirm__glow--cyan {
    width: 72px;
    height: 72px;
    left: 50%;
    top: 50%;
    transform: translate(-58%, -52%);
    background: rgba(0, 195, 212, 0.35);
    opacity: 0.5;
}

.v3-voice-confirm__glow--magenta {
    width: 56px;
    height: 56px;
    left: 50%;
    top: 50%;
    transform: translate(-35%, -38%);
    background: rgba(255, 82, 195, 0.28);
    opacity: 0.45;
}

.v3-voice-confirm__icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 195, 212, 0.35);
    animation: v3-voice-confirm-ring 2.8s ease-out infinite;
}

.v3-voice-confirm__icon-ring--2 {
    animation-delay: 1.4s;
}

@keyframes v3-voice-confirm-ring {
    0% { transform: scale(0.92); opacity: 0.7; }
    100% { transform: scale(1.35); opacity: 0; }
}

.v3-voice-confirm__icon {
    position: absolute;
    inset: 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 28px;
    color: #fff;
    background: linear-gradient(145deg, rgba(0, 195, 212, 0.22), rgba(255, 82, 195, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(0, 195, 212, 0.15);
}

.v3-voice-confirm__eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--v3-cyan);
}

.v3-voice-confirm__panel h3 {
    margin: 0;
    padding: 0 8px;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.v3-voice-confirm__desc {
    margin: 12px 0 0;
    padding: 0 4px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
}

.v3-voice-confirm__desc a {
    color: var(--v3-cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.v3-voice-confirm__close,
.v3-voice-mode__exit {
    border: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.v3-voice-confirm__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 2;
}

.v3-voice-confirm__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.v3-voice-confirm__close:focus-visible {
    outline: 2px solid var(--v3-cyan);
    outline-offset: 2px;
}

.v3-voice-confirm__actions {
    display: flex;
    justify-content: stretch;
    gap: 10px;
    margin-top: 22px;
}

.v3-voice-confirm__secondary,
.v3-voice-confirm__primary {
    flex: 1;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.v3-voice-confirm__secondary {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.v3-voice-confirm__secondary:hover {
    background: rgba(255, 255, 255, 0.11);
}

.v3-voice-confirm__primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--v3-cyan), var(--v3-magenta));
    box-shadow: 0 6px 22px rgba(0, 195, 212, 0.28);
}

.v3-voice-confirm__primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 195, 212, 0.38);
}

.v3-voice-confirm__primary:active,
.v3-voice-confirm__secondary:active {
    transform: translateY(0);
}

.v3-voice-confirm__primary:focus-visible,
.v3-voice-confirm__secondary:focus-visible {
    outline: 2px solid var(--v3-cyan);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .v3-voice-confirm:not([hidden]) .v3-voice-confirm__panel {
        animation: none;
    }
    .v3-voice-confirm__icon-ring {
        animation: none;
        opacity: 0.35;
    }
}

.v3-voice-mode {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    color: #fff;
    background:
        linear-gradient(180deg, #040814, #090c1c);
}

.v3-voice-mode::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(0, 195, 212, 0.14), transparent 38%),
        linear-gradient(315deg, rgba(255, 82, 195, 0.12), transparent 42%);
}

.v3-voice-mode__bar,
.v3-voice-mode__body {
    position: relative;
    z-index: 1;
}

.v3-voice-mode__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1120px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 22px 0;
}

.v3-voice-mode__title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.v3-voice-mode__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 10px;
    background: #35f59a;
    box-shadow: 0 0 0 5px rgba(53, 245, 154, 0.12), 0 0 18px rgba(53, 245, 154, 0.5);
}

.v3-voice-mode__title h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: 0;
}

.v3-voice-mode__title p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.25;
}

.v3-voice-mode__exit {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex: 0 0 42px;
}

.v3-voice-mode__body {
    flex: 1 1 auto;
    width: min(1120px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 12px 0 36px;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    place-items: center;
    gap: 26px;
}

.v3-voice-avatar-stage {
    position: relative;
    width: min(58vmin, 430px);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    isolation: isolate;
    background: #080a17;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.16),
        0 0 0 12px rgba(0, 195, 212, 0.08),
        0 34px 90px rgba(0, 0, 0, 0.5),
        0 0 84px rgba(0, 195, 212, 0.26),
        0 0 72px rgba(255, 82, 195, 0.16);
    -webkit-clip-path: circle(50% at 50% 50%);
    clip-path: circle(50% at 50% 50%);
}

.v3-voice-mode.is-recording .v3-voice-avatar-stage {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.16),
        0 0 0 14px rgba(53, 245, 154, 0.08),
        0 34px 90px rgba(0, 0, 0, 0.5),
        0 0 92px rgba(53, 245, 154, 0.24),
        0 0 70px rgba(0, 195, 212, 0.22);
}

.v3-voice-avatar-stage .v3-chat-avatar-video {
    border-radius: 50%;
    -webkit-clip-path: circle(50% at 50% 50%);
    clip-path: circle(50% at 50% 50%);
}

.v3-voice-controls {
    width: min(520px, 100%);
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(13, 16, 36, 0.92);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.v3-voice-record-toggle {
    width: min(180px, 46vw);
    aspect-ratio: 1;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: #031016;
    background: linear-gradient(135deg, var(--v3-cyan), #ffffff 48%, var(--v3-magenta));
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.42), 0 0 34px rgba(0, 195, 212, 0.28);
    cursor: pointer;
}

.v3-voice-record-toggle:disabled {
    opacity: 0.56;
    cursor: wait;
}

.v3-voice-record-toggle__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 30px;
    background: rgba(3, 16, 22, 0.1);
}

.v3-voice-record-toggle__text {
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
}

.v3-voice-mode.is-recording .v3-voice-record-toggle {
    color: #fff;
    background: linear-gradient(135deg, #f43f5e, #b91c1c);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.42), 0 0 38px rgba(244, 63, 94, 0.34);
}

.v3-voice-meter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 28px;
    opacity: 0.34;
}

.v3-voice-meter span {
    width: 5px;
    height: 8px;
    border-radius: 999px;
    background: var(--v3-cyan);
}

.v3-voice-mode.is-recording .v3-voice-meter {
    opacity: 1;
}

.v3-voice-mode.is-recording .v3-voice-meter span {
    animation: v3-voice-meter 0.82s ease-in-out infinite;
}

.v3-voice-mode.is-recording .v3-voice-meter span:nth-child(2) { animation-delay: 0.08s; }
.v3-voice-mode.is-recording .v3-voice-meter span:nth-child(3) { animation-delay: 0.16s; }
.v3-voice-mode.is-recording .v3-voice-meter span:nth-child(4) { animation-delay: 0.24s; }
.v3-voice-mode.is-recording .v3-voice-meter span:nth-child(5) { animation-delay: 0.32s; }

@keyframes v3-voice-meter {
    0%, 100% { height: 8px; opacity: 0.58; }
    50% { height: 26px; opacity: 1; }
}

.v3-voice-timer {
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    line-height: 1.2;
}

.v3-voice-transcript {
    min-height: 22px;
    max-width: 100%;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
}

@media (hover: none) and (max-width: 768px) {
    .v3-chat-launcher .chat-container:not(.is-collapsed) .v3-chat-avatar-wrap {
        cursor: pointer;
    }
    .v3-chat-launcher .v3-chat-avatar-expand {
        width: 26px;
        height: 26px;
        top: -5px;
        right: -5px;
        font-size: 13px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38), 0 0 14px rgba(0, 195, 212, 0.18);
    }
}

@media (max-width: 640px) {
    .v3-voice-confirm {
        padding: 16px;
        align-items: flex-end;
        padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    }
    .v3-voice-confirm__panel {
        padding: 24px 20px 20px;
        border-radius: 22px 22px 18px 18px;
    }
    .v3-voice-confirm__panel h3 {
        font-size: 1.2rem;
    }
    .v3-voice-confirm__desc {
        font-size: 0.84rem;
    }
    .v3-voice-confirm__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .v3-voice-confirm__primary {
        order: -1;
    }
    .v3-voice-confirm__primary,
    .v3-voice-confirm__secondary {
        width: 100%;
        justify-content: center;
    }
    .v3-voice-mode {
        min-height: var(--v3-chat-vvh, 100dvh);
    }
    .v3-voice-mode__bar {
        width: calc(100vw - 28px);
        padding: calc(14px + env(safe-area-inset-top, 0px)) 0 12px;
    }
    .v3-voice-mode__title h2 {
        font-size: 18px;
    }
    .v3-voice-mode__title p {
        max-width: 62vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 12.5px;
    }
    .v3-voice-mode__body {
        width: calc(100vw - 28px);
        padding: 4px 0 calc(18px + env(safe-area-inset-bottom, 0px));
        gap: 18px;
    }
    .v3-voice-avatar-stage {
        width: min(70vw, 330px, 48vh);
    }
    .v3-voice-controls {
        padding: 14px;
        gap: 10px;
    }
    .v3-voice-record-toggle {
        width: min(154px, 42vw, 24vh);
    }
    .v3-voice-record-toggle__icon {
        width: 48px;
        height: 48px;
        font-size: 27px;
    }
    .v3-voice-record-toggle__text {
        font-size: 16px;
    }
    .v3-chat-launcher {
        width: 98px;
    }
    .v3-chat-launcher.is-chat-expanded {
        width: min(390px, calc(100vw - 20px));
    }
    .v3-chat-launcher .chat-container:not(.is-collapsed) {
        height: min(76vh, 620px);
    }
    .v3-chat-launcher .chat-container.avatar-chat-panel.is-collapsed {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: 92px !important;
        max-width: 92px;
        margin-left: 0;
        transform: none;
        overflow: visible;
        border: none;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .v3-chat-launcher .chat-container.is-collapsed .chat-header {
        position: relative;
        display: block;
        padding: 0;
        background: transparent;
        border-bottom: none;
    }
    .v3-chat-launcher .chat-container.is-collapsed .chat-header-main {
        display: block;
    }
    .v3-chat-launcher .chat-container.is-collapsed .v3-chat-avatar-stage {
        width: 88px;
        height: 88px;
        border-radius: 50%;
        border: 2px solid rgba(0, 195, 212, 0.8);
        background:
            radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.16), transparent 28px),
            linear-gradient(135deg, #071c22, #1a1230);
        box-shadow:
            0 0 0 6px rgba(0, 195, 212, 0.1),
            0 20px 42px rgba(0, 0, 0, 0.48),
            0 0 42px rgba(0, 195, 212, 0.42),
            0 0 34px rgba(255, 82, 195, 0.28);
    }
    .v3-chat-launcher .chat-container.is-collapsed .chat-header-info,
    .v3-chat-launcher .chat-container.is-collapsed .chat-status-text {
        display: none;
    }
    .v3-chat-launcher .chat-container.is-collapsed .chat-header {
        width: fit-content;
        max-width: 100%;
    }
    .v3-chat-launcher .chat-container.is-collapsed:not(.is-minibubble) .avatar-chat-controls {
        position: absolute;
        inset: 0;
        z-index: 7;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 0;
        pointer-events: none;
    }
    .v3-chat-launcher .chat-container.is-collapsed .avatar-chat-collapse-toggle,
    .v3-chat-launcher .chat-container.is-collapsed .avatar-chat-voice-toggle {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 50%;
        pointer-events: auto;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38), 0 0 18px rgba(255, 82, 195, 0.42);
    }
    .v3-chat-launcher .chat-container.is-collapsed .avatar-chat-collapse-toggle {
        margin: 0 -5px -3px 0;
        background: linear-gradient(135deg, var(--v3-cyan), var(--v3-magenta));
        color: #061016;
    }
    .v3-chat-launcher .chat-container.is-collapsed .avatar-chat-voice-toggle {
        margin: 0 0 -3px -5px;
        background: rgba(8, 10, 24, 0.82);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38), 0 0 14px rgba(0, 195, 212, 0.22);
    }
    .v3-chat-launcher .chat-container.is-collapsed .avatar-chat-voice-toggle.is-muted {
        color: rgba(255, 255, 255, 0.5);
    }
    .v3-chat-launcher .chat-container.is-collapsed .avatar-chat-collapse-toggle i,
    .v3-chat-launcher .chat-container.is-collapsed .avatar-chat-voice-toggle i {
        font-size: 18px;
    }
    .v3-chat-launcher .chat-container:not(.is-collapsed) .v3-chat-avatar-stage {
        width: 82px;
        height: 82px;
        border-radius: 22px;
    }
    .v3-chat-launcher .chat-container:not(.is-collapsed) .chat-header {
        align-items: center;
        padding: 14px 12px 12px;
        gap: 10px;
    }
    .v3-chat-launcher .chat-container:not(.is-collapsed) .chat-header-main {
        flex: 1;
        min-width: 0;
    }
    .v3-chat-launcher .chat-container:not(.is-collapsed) .avatar-chat-controls {
        flex-shrink: 0;
    }
    .v3-chat-launcher .chat-header-info h4 {
        font-size: 14px;
        max-width: 165px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.v3-chat-launcher.is-chat-docked {
    right: 14px;
    top: auto;
    bottom: 14px;
    transform: none;
}

.v3-chat-launcher.is-chat-docked:not(.is-chat-mini):not(.is-chat-expanded) {
    width: auto;
    max-width: min(360px, calc(100vw - 28px));
}

.v3-chat-launcher.is-chat-mini {
    width: 66px;
}
.v3-chat-launcher .chat-container.is-minibubble {
    width: 66px;
    max-width: 66px;
    height: 66px;
    min-height: 66px;
    overflow: visible;
    border: none;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    cursor: pointer;
}
.v3-chat-launcher .chat-container.is-minibubble .chat-header {
    position: relative;
    display: block;
    width: 66px;
    height: 66px;
    padding: 0;
    overflow: visible;
    border-bottom: none;
    background: transparent;
}
.v3-chat-launcher .chat-container.is-minibubble .chat-header-main {
    display: block;
}
.v3-chat-launcher .chat-container.is-minibubble .chat-header::before,
.v3-chat-launcher .chat-container.is-minibubble .chat-header::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.v3-chat-launcher .chat-container.is-minibubble .chat-header::before {
    inset: 1px;
    z-index: 0;
    border: 1px solid rgba(0, 195, 212, 0.38);
    animation: v3-chat-mini-rim-pulse 2.9s ease-out infinite;
}
.v3-chat-launcher .chat-container.is-minibubble .chat-header::after {
    inset: 11px;
    z-index: 0;
    box-shadow: 0 0 34px rgba(0, 195, 212, 0.24), 0 0 28px rgba(255, 82, 195, 0.12);
}
.v3-chat-launcher .chat-container.is-minibubble .v3-chat-avatar-stage {
    position: relative;
    z-index: 1;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid transparent;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.13), transparent 42%) padding-box,
        linear-gradient(180deg, rgba(8, 12, 28, 0.94), rgba(4, 8, 18, 0.9)) padding-box,
        linear-gradient(135deg, var(--v3-cyan), rgba(255, 255, 255, 0.26) 46%, var(--v3-magenta)) border-box;
    box-shadow:
        0 0 0 7px rgba(255, 255, 255, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -12px 28px rgba(0, 0, 0, 0.28),
        0 16px 34px rgba(0, 0, 0, 0.42),
        0 0 34px rgba(0, 195, 212, 0.24),
        0 0 28px rgba(255, 82, 195, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.v3-chat-launcher .chat-container.is-minibubble:hover .v3-chat-avatar-stage {
    transform: translateY(-2px) scale(1.035);
}
.v3-chat-launcher .chat-container.is-minibubble .v3-chat-avatar-stage__ring {
    display: none;
}
@keyframes v3-chat-mini-rim-pulse {
    0% { transform: scale(0.84); opacity: 0.76; }
    100% { transform: scale(1.32); opacity: 0; }
}
.v3-chat-launcher .chat-container.is-minibubble .chat-header-info,
.v3-chat-launcher .chat-container.is-minibubble .avatar-chat-collapse-toggle,
.v3-chat-launcher .chat-container.is-minibubble .avatar-chat-voice-toggle {
    display: none;
}
.v3-chat-launcher .chat-container.is-minibubble .avatar-chat-controls {
    position: absolute;
    right: -6px;
    bottom: -6px;
    z-index: 8;
    display: block;
}

/* Mini en reposo: solo avatar circular */
.v3-chat-launcher .chat-container.is-minibubble .avatar-chat-controls {
    display: none;
}

@media (max-width: 640px) {
    html:has(body.v3-chat-modal-open) {
        overflow: hidden !important;
    }
    body.v3-chat-modal-open {
        overflow: hidden !important;
        overscroll-behavior: contain;
        touch-action: none;
        position: fixed;
        width: 100%;
        left: 0;
        right: 0;
    }

    .v3-chat-launcher.is-chat-expanded,
    .v3-chat-launcher.is-mobile-modal {
        position: fixed !important;
        top: var(--v3-chat-vvt, 0px) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        z-index: 120 !important;
        width: 100vw !important;
        max-width: none !important;
        height: var(--v3-chat-vvh, 100dvh) !important;
        max-height: var(--v3-chat-vvh, 100dvh) !important;
        padding: 10px 10px 0 !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        transform: none !important;
        background:
            radial-gradient(circle at 50% 100%, rgba(0, 195, 212, 0.2), transparent 42%),
            rgba(2, 4, 12, 0.72) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        touch-action: auto;
    }

    .v3-chat-launcher.is-mobile-modal .chat-container:not(.is-collapsed),
    .v3-chat-launcher.is-chat-expanded .chat-container:not(.is-collapsed) {
        width: 100% !important;
        max-width: 520px !important;
        min-width: 0 !important;
        height: min(720px, calc(var(--v3-chat-vvh, 100dvh) - 10px)) !important;
        max-height: calc(var(--v3-chat-vvh, 100dvh) - 10px) !important;
        border-radius: 22px 22px 0 0 !important;
        border-bottom: 0 !important;
        overflow: hidden !important;
        cursor: default !important;
        box-shadow:
            0 -18px 62px rgba(0, 0, 0, 0.56),
            0 0 34px rgba(0, 195, 212, 0.18),
            0 0 28px rgba(255, 82, 195, 0.14) !important;
    }

    .v3-chat-launcher.is-mobile-modal .chat-header,
    .v3-chat-launcher.is-chat-expanded .chat-container:not(.is-collapsed) .chat-header {
        padding: 12px 12px 10px !important;
        min-height: 74px;
        gap: 10px !important;
    }

    .v3-chat-launcher.is-mobile-modal .chat-header-main,
    .v3-chat-launcher.is-chat-expanded .chat-container:not(.is-collapsed) .chat-header-main {
        min-width: 0;
        flex: 1 1 auto;
        gap: 10px !important;
    }

    .v3-chat-launcher.is-mobile-modal .v3-chat-avatar-stage,
    .v3-chat-launcher.is-chat-expanded .chat-container:not(.is-collapsed) .v3-chat-avatar-stage {
        width: 52px !important;
        height: 52px !important;
        border-radius: 16px !important;
    }

    .v3-chat-launcher.is-mobile-modal .chat-header-info,
    .v3-chat-launcher.is-chat-expanded .chat-container:not(.is-collapsed) .chat-header-info {
        min-width: 0;
    }

    .v3-chat-launcher.is-mobile-modal .chat-header-info h4,
    .v3-chat-launcher.is-chat-expanded .chat-container:not(.is-collapsed) .chat-header-info h4 {
        max-width: none !important;
        font-size: 13.5px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .v3-chat-launcher.is-mobile-modal .chat-status-line,
    .v3-chat-launcher.is-chat-expanded .chat-container:not(.is-collapsed) .chat-status-line {
        max-width: min(190px, 48vw);
        overflow: hidden;
    }

    .v3-chat-launcher.is-mobile-modal .chat-status-text,
    .v3-chat-launcher.is-chat-expanded .chat-container:not(.is-collapsed) .chat-status-text {
        display: inline-block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
    }

    .v3-chat-launcher.is-mobile-modal .avatar-chat-controls,
    .v3-chat-launcher.is-chat-expanded .chat-container:not(.is-collapsed) .avatar-chat-controls {
        gap: 6px !important;
    }

    .v3-chat-launcher.is-mobile-modal .avatar-chat-collapse-toggle,
    .v3-chat-launcher.is-mobile-modal .avatar-chat-voice-toggle,
    .v3-chat-launcher.is-chat-expanded .chat-container:not(.is-collapsed) .avatar-chat-collapse-toggle,
    .v3-chat-launcher.is-chat-expanded .chat-container:not(.is-collapsed) .avatar-chat-voice-toggle {
        width: 38px !important;
        height: 38px !important;
        border-radius: 12px !important;
    }

    .v3-chat-launcher.is-mobile-modal .chat-messages,
    .v3-chat-launcher.is-chat-expanded .chat-container:not(.is-collapsed) .chat-messages {
        flex: 1 1 auto;
        min-height: 0;
        padding: 14px 12px 12px !important;
        gap: 10px !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .v3-chat-launcher.is-mobile-modal .chat-bubble,
    .v3-chat-launcher.is-chat-expanded .chat-container:not(.is-collapsed) .chat-bubble {
        max-width: 92%;
        font-size: 13.5px;
        line-height: 1.45;
        padding: 10px 12px;
    }

    .v3-chat-launcher.is-mobile-modal .chat-input,
    .v3-chat-launcher.is-chat-expanded .chat-container:not(.is-collapsed) .chat-input {
        position: relative;
        z-index: 2;
        display: flex !important;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        gap: 8px !important;
        background:
            linear-gradient(180deg, rgba(8, 10, 24, 0.86), rgba(6, 8, 20, 0.98));
    }

    .v3-chat-launcher.is-mobile-modal .chat-input input,
    .v3-chat-launcher.is-chat-expanded .chat-container:not(.is-collapsed) .chat-input input {
        min-width: 0;
        height: 44px;
        border-radius: 12px;
        padding: 10px 12px;
        font-size: 16px;
    }

    .v3-chat-launcher.is-mobile-modal .chat-send-btn,
    .v3-chat-launcher.is-chat-expanded .chat-container:not(.is-collapsed) .chat-send-btn {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    .v3-chat-launcher.is-chat-docked {
        right: 12px;
        bottom: 12px;
    }
    .v3-chat-launcher.is-chat-mini {
        width: 60px;
    }
    .v3-chat-launcher.is-chat-docked:not(.is-chat-mini):not(.is-chat-expanded) {
        width: auto;
        max-width: min(320px, calc(100vw - 24px));
    }
    .v3-chat-launcher .chat-container.is-minibubble,
    .v3-chat-launcher .chat-container.avatar-chat-panel.is-collapsed.is-minibubble {
        width: 60px !important;
        max-width: 60px;
        height: 60px;
        min-height: 60px;
    }
    .v3-chat-launcher .chat-container.is-minibubble .chat-header {
        width: 60px;
        height: 60px;
    }
    .v3-chat-launcher .chat-container.is-minibubble .v3-chat-avatar-stage,
    .v3-chat-launcher .chat-container.is-collapsed.is-minibubble .v3-chat-avatar-stage {
        width: 60px;
        height: 60px;
        border-radius: 50%;
    }
    .v3-chat-launcher .chat-container.is-minibubble .chat-header::after {
        inset: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v3-start__glow,
    .v3-start__logo-wrap,
    .v3-start__play-ring,
    .v3-start__play-wrap::before,
    .v3-start__inner,
    .v3-start__play,
    .v3-skip::before { animation: none; }
    .v3-start.is-launching .v3-start__inner { transform: none; filter: none; }
    .v3-knock__pulse { animation: none; }
    .v3-chat-launcher .chat-container.is-speaking .v3-chat-avatar-stage__ring,
    .v3-chat-launcher .chat-container.is-thinking .v3-chat-avatar-stage__ring,
    .v3-chat-launcher .chat-typing span,
    .v3-chat-launcher .chat-container.is-minibubble .chat-header::before { animation: none; }
}
