.la-root {
    position: fixed;
    left: 1.15rem;
    right: auto;
    bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    pointer-events: none;
}

.la-root > * {
    pointer-events: auto;
}

.la-fab[hidden],
.la-bar[hidden] {
    display: none !important;
}

.la-fab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.95rem 0.5rem 0.5rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #2554E8 0%, #8B3DFF 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.84rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(37, 84, 232, 0.28);
}

.la-fab__avatar {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.72rem;
    font-weight: 800;
}

.la-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: min(92vw, 26rem);
}

.la-bar__status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.7rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(8, 18, 36, 0.92);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

.la-bar__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #94a3b8;
}

.la-bar__dot.is-speaking {
    background: #38bdf8;
    animation: la-dot 0.7s ease-out infinite;
}

.la-bar__dot.is-muted {
    background: #f59e0b;
    animation: none;
}

@keyframes la-dot {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
    100% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}

.la-bar__text {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.la-bar__timer {
    font-size: 0.78rem;
    opacity: 0.72;
    font-variant-numeric: tabular-nums;
}

.la-bar__btn {
    min-width: 2.7rem;
    height: 2.7rem;
    padding: 0 0.8rem;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.la-bar__btn--mic {
    background: #129649;
}

.la-bar__btn--mic.is-muted {
    background: #64748b;
}

.la-bar__btn--end {
    background: #dc2626;
}

.la-root.is-active .la-fab {
    display: none !important;
}

body.is-live-agent {
    scroll-padding-top: 8px;
    padding-bottom: 6rem;
}

body.is-live-agent.page-category .housa-hero {
    display: none !important;
}

body.is-live-agent .page-category__list {
    scroll-margin-top: 8px;
    padding-top: 0.75rem;
}

body.is-live-agent .page-category__subs,
body.is-live-agent .page-category__subs.listing-filters {
    flex-wrap: wrap;
    max-height: none;
    overflow: visible;
    justify-content: flex-start;
}

@media (max-width: 900px) {
    .la-root {
        right: 4.35rem;
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }

    .la-fab {
        padding: 0.45rem 0.75rem 0.45rem 0.45rem;
    }

    .la-bar {
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: min(94vw, 22rem);
    }

    .la-bar__text {
        font-size: 0.78rem;
    }

    .la-bar__btn {
        padding: 0 0.6rem;
        font-size: 0.7rem;
    }
}
