:root {
    --nv2-navy: #061a33;
    --nv2-navy-light: #0b2f57;
    --nv2-gold: #d4af37;
    --nv2-page: #f3f6fb;
    --nv2-white: #ffffff;
    --nv2-text: #111827;
    --nv2-muted: #64748b;
    --nv2-border: #dbe3ef;
}

.nv2-index-page,
.nv2-new-page {
    min-height: calc(100vh - 70px);
    padding: 14px;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.14), transparent 28%),
        linear-gradient(180deg, #f4f7fb, #e8eef7);
    color: var(--nv2-text);
}

.nv2-index-shell,
.nv2-new-shell {
    width: 100%;
    max-width: none;
    margin: 0;
}

.nv2-hero,
.nv2-new-head {
    padding: 22px;
    margin-bottom: 14px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--nv2-navy), var(--nv2-navy-light));
    color: #fff;
    box-shadow: 0 20px 55px rgba(15,23,42,.16);
}

.nv2-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.nv2-hero h1,
.nv2-new-head h1 {
    margin: 6px 0;
    color: #fff;
    font-size: 36px;
    font-weight: 900;
}

.nv2-hero p,
.nv2-new-head p {
    margin: 0;
    color: rgba(255,255,255,.78);
}

.nv2-kicker {
    color: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    opacity: .72;
}

.nv2-gold-button,
.nv2-sidebar-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    background: var(--nv2-gold);
    color: #07152a;
    padding: 12px 17px;
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.nv2-list-card,
.nv2-member-card {
    overflow: hidden;
    border: 1px solid var(--nv2-border);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15,23,42,.10);
}

.nv2-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #eef2f7;
}

.nv2-list-head span,
.nv2-conversation small,
.nv2-conversation time,
.nv2-member-row small {
    color: var(--nv2-muted);
    font-size: 12px;
}

.nv2-conversation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: inherit;
    text-decoration: none;
    transition: .16s ease;
}

.nv2-conversation:hover,
.nv2-member-row:hover {
    background: #f8fafc;
}

.nv2-conversation-left,
.nv2-member-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nv2-conversation-left,
.nv2-conversation-copy,
.nv2-member-copy {
    min-width: 0;
}

.nv2-conversation-copy,
.nv2-member-copy {
    display: grid;
    flex: 1;
    gap: 3px;
}

.nv2-conversation-copy strong,
.nv2-member-copy strong {
    overflow: hidden;
    color: var(--nv2-text);
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nv2-conversation-copy small,
.nv2-member-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nv2-avatar,
.nv2-member-avatar,
.nv2-side-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: var(--nv2-navy-light);
    color: #fff;
    font-weight: 900;
}

.nv2-avatar {
    width: 48px;
    height: 48px;
    border-radius: 17px;
}

.nv2-empty-state {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 44px;
    color: var(--nv2-muted);
    text-align: center;
}

.nv2-empty-state > div:first-child {
    font-size: 46px;
}

.nv2-pagination {
    padding: 16px;
}

.nv2-new-shell {
    max-width: 980px;
    margin: auto;
}

.nv2-new-head > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nv2-head-back {
    color: #fff;
    font-size: 28px;
    text-decoration: none;
}

.nv2-member-row {
    width: 100%;
    padding: 15px 18px;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    color: inherit;
    text-align: start;
    cursor: pointer;
}

.nv2-member-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
}

.nv2-member-start {
    border-radius: 13px;
    background: var(--nv2-gold);
    color: #07152a;
    padding: 8px 13px;
    font-weight: 900;
}

.nv2-chat-page {
    position: fixed;
    top: 72px;
    right: 18px;
    bottom: 14px;
    left: 18px;
    z-index: 999;
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(212,175,55,.14), transparent 28%),
        linear-gradient(180deg, #f4f7fb, #e8eef7);
}

.nv2-chat-layout {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 8px;
}

.nv2-chat-main {
    min-width: 0;
    height: 100%;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--nv2-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(15,23,42,.12);
}

.nv2-sidebar {
    width: 380px;
    max-width: 380px;
    height: 100%;
    flex: 0 0 380px;
    overflow: hidden;
    border: 1px solid var(--nv2-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15,23,42,.10);
}

.nv2-sidebar-head {
    padding: 16px;
    background: linear-gradient(135deg, var(--nv2-navy), var(--nv2-navy-light));
    color: #fff;
}

.nv2-sidebar-title {
    margin-top: 4px;
    color: #fff;
    font-size: 26px;
    font-weight: 900;
}

.nv2-sidebar-new {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
}

.nv2-sidebar-list {
    height: calc(100% - 132px);
    overflow-y: auto;
}

.nv2-side-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: inherit;
    text-decoration: none;
}

.nv2-side-item.is-active,
.nv2-side-item:hover {
    background: #eef4fb;
}

.nv2-side-avatar {
    width: 42px;
    height: 42px;
    border-radius: 15px;
}

.nv2-side-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.nv2-side-copy strong,
.nv2-side-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nv2-side-copy strong {
    color: var(--nv2-text);
    font-weight: 900;
}

.nv2-side-copy small {
    max-width: 250px;
    color: var(--nv2-muted);
    font-size: 12px;
}

.nv2-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 13px 15px;
    background: linear-gradient(135deg, var(--nv2-navy), var(--nv2-navy-light));
    color: #fff;
}

.nv2-header-left,
.nv2-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nv2-header-left {
    min-width: 0;
    gap: 11px;
}

.nv2-mobile-menu,
.nv2-back,
.nv2-action-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 15px;
    background: rgba(255,255,255,.13);
    color: #fff;
    text-decoration: none;
}

.nv2-mobile-menu {
    display: none;
}

.nv2-action-button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.nv2-room-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 16px;
    background: var(--nv2-gold);
    color: #07152a;
}

.nv2-room-copy {
    min-width: 0;
    display: grid;
}

.nv2-room-copy strong,
.nv2-room-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nv2-room-copy strong {
    color: #fff;
    font-weight: 900;
}

.nv2-room-copy small {
    color: rgba(255,255,255,.75);
    font-size: 12px;
}

.nv2-header-badge {
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    padding: 8px 11px;
    font-size: 12px;
}

.nv2-messages {
    min-height: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.10), transparent 26%),
        linear-gradient(180deg, #f8fafc, #eef4fb);
}

.nv2-message-row {
    display: flex;
    margin-bottom: 12px;
}

.nv2-message-row.is-mine {
    justify-content: flex-end;
}

.nv2-message-row.is-other {
    justify-content: flex-start;
}

.nv2-bubble {
    max-width: min(76%, 720px);
    padding: 12px 15px;
    border-radius: 20px;
    box-shadow: 0 8px 18px rgba(15,23,42,.06);
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.nv2-bubble.is-mine {
    border: 1px solid rgba(11,47,87,.25);
    border-radius: 20px 20px 4px 20px;
    background: var(--nv2-navy-light);
    color: #fff;
}

.nv2-bubble.is-other {
    border: 1px solid #e5e7eb;
    border-radius: 20px 20px 20px 4px;
    background: #fff;
    color: var(--nv2-text);
}

[dir="ltr"] .nv2-bubble.is-mine {
    border-radius: 20px 20px 20px 4px;
}

[dir="ltr"] .nv2-bubble.is-other {
    border-radius: 20px 20px 4px 20px;
}

.nv2-sender {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.nv2-sender span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--nv2-navy-light);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.nv2-sender strong {
    color: var(--nv2-navy-light);
    font-size: 12px;
}

.nv2-message-body {
    white-space: pre-wrap;
}

.nv2-message-meta {
    margin-top: 6px;
    font-size: 10px;
    opacity: .65;
}

.nv2-empty-messages {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--nv2-muted);
    text-align: center;
}

.nv2-empty-messages > div > div {
    margin-bottom: 8px;
    font-size: 46px;
}

.nv2-composer {
    display: grid;
    grid-template-columns: 52px minmax(0,1fr) 110px;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 -12px 30px rgba(15,23,42,.05);
}

.nv2-composer textarea {
    width: 100%;
    min-width: 0;
    height: 48px;
    max-height: 130px;
    padding: 12px 16px;
    resize: none;
    outline: none;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    background: #f8fafc;
    color: var(--nv2-text);
    font: inherit;
}

.nv2-composer textarea:focus {
    border-color: var(--nv2-gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(212,175,55,.16);
}

.nv2-composer-tool,
.nv2-send-button {
    height: 48px;
    border: 0;
    border-radius: 16px;
    font: inherit;
    font-weight: 900;
}

.nv2-composer-tool {
    background: #eef2f7;
    color: var(--nv2-navy-light);
}

.nv2-composer-tool:disabled {
    cursor: not-allowed;
    opacity: .7;
}

.nv2-send-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--nv2-gold);
    color: #07152a;
    cursor: pointer;
}

.nv2-send-button:disabled {
    cursor: wait;
    opacity: .65;
}

.nv2-mobile-backdrop {
    display: none;
}

.nv2-access-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.16), transparent 28%),
        linear-gradient(180deg, #f4f7fb, #e8eef7);
}

.nv2-access-card {
    width: min(520px, 100%);
    overflow: hidden;
    border: 1px solid var(--nv2-border);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15,23,42,.16);
}

.nv2-access-card > header {
    padding: 28px;
    background: linear-gradient(135deg, var(--nv2-navy), var(--nv2-navy-light));
    color: #fff;
    text-align: center;
}

.nv2-access-card h1 {
    margin: 6px 0;
    color: #fff;
    font-size: 38px;
}

.nv2-access-card header p {
    margin: 0;
    color: rgba(255,255,255,.78);
    line-height: 1.7;
}

.nv2-access-body {
    padding: 24px;
}

.nv2-access-form {
    display: grid;
    gap: 12px;
}

.nv2-access-form input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--nv2-text);
    font: inherit;
}

.nv2-success,
.nv2-error {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 13px;
}

.nv2-success {
    background: #ecfdf5;
    color: #166534;
}

.nv2-error {
    background: #fef2f2;
    color: #991b1b;
}

@media(max-width:900px) {
    .nv2-chat-page {
        top: 72px;
        right: 6px;
        bottom: 8px;
        left: 6px;
        border-radius: 20px;
    }

    .nv2-chat-layout {
        display: block;
        padding: 6px;
    }

    .nv2-chat-main {
        width: 100%;
        height: 100%;
        border-radius: 20px;
    }

    .nv2-mobile-menu {
        display: grid;
    }

    .nv2-header-badge {
        display: none;
    }

    .nv2-sidebar {
        position: fixed;
        top: 78px;
        bottom: 10px;
        inset-inline-start: 10px;
        z-index: 99999;
        width: min(350px, calc(100vw - 20px));
        max-width: none;
        height: auto;
        transform: translateX(115%);
        transition: transform .22s ease;
    }

    [dir="ltr"] .nv2-sidebar {
        transform: translateX(-115%);
    }

    body.nv2-sidebar-open .nv2-sidebar {
        transform: translateX(0);
    }

    .nv2-mobile-backdrop {
        position: fixed;
        inset: 0;
        z-index: 99998;
        border: 0;
        background: rgba(2,8,23,.46);
        backdrop-filter: blur(3px);
    }

    body.nv2-sidebar-open .nv2-mobile-backdrop {
        display: block;
    }
}

@media(max-width:700px) {
    .nv2-index-page,
    .nv2-new-page {
        padding: 10px;
    }

    .nv2-hero,
    .nv2-new-head {
        padding: 18px;
        border-radius: 22px;
    }

    .nv2-hero h1,
    .nv2-new-head h1 {
        font-size: 30px;
    }

    .nv2-conversation {
        padding: 14px;
    }

    .nv2-composer {
        grid-template-columns: 44px minmax(0,1fr) 50px;
        gap: 7px;
        padding: 10px;
    }

    .nv2-composer textarea,
    .nv2-composer-tool,
    .nv2-send-button {
        height: 44px;
        border-radius: 15px;
    }

    .nv2-send-button span {
        display: none;
    }

    .nv2-bubble {
        max-width: 90%;
        font-size: 14px;
    }

    .nv2-messages {
        padding: 12px 10px;
    }
}

/*
|--------------------------------------------------------------------------
| NEXUS_V2_FULLSCREEN_V3
| Dedicated full-screen Nexus V2 workspace.
|--------------------------------------------------------------------------
*/

.nv2-chat-page,
.nv2-index-page,
.nv2-new-page {
    box-sizing: border-box !important;
}

.nv2-chat-page *,
.nv2-index-page *,
.nv2-new-page * {
    box-sizing: border-box !important;
}

/* Isolate Nexus from the ERP layout without modifying the ERP itself. */
.nv2-chat-page {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #eef2f7 !important;
}

.nv2-chat-layout {
    display: grid !important;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 1720px !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 auto !important;
    gap: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 0 45px rgba(6, 17, 31, 0.18) !important;
}

.nv2-sidebar {
    position: relative !important;
    z-index: 4 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    border-radius: 0 !important;
}

.nv2-sidebar-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
}

.nv2-chat-main {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    border-radius: 0 !important;
}

.nv2-chat-header {
    flex: 0 0 auto !important;
    min-height: 74px !important;
    padding: 12px clamp(14px, 2vw, 28px) !important;
    gap: 16px !important;
}

.nv2-header-left,
.nv2-header-actions {
    min-width: 0 !important;
}

.nv2-room-copy {
    min-width: 0 !important;
}

.nv2-room-copy strong,
.nv2-room-copy small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.nv2-messages {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: clamp(16px, 2.5vw, 34px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}

.nv2-message-row {
    width: 100% !important;
}

.nv2-bubble {
    width: fit-content !important;
    max-width: min(72%, 760px) !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.nv2-message-body {
    white-space: pre-wrap !important;
    line-height: 1.7 !important;
}

.nv2-composer {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: flex-end !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px clamp(12px, 2vw, 24px) !important;
    gap: 10px !important;
}

.nv2-composer textarea {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 48px !important;
    max-height: 150px !important;
    margin: 0 !important;
    resize: none !important;
}

.nv2-send-button,
.nv2-composer-tool {
    flex: 0 0 auto !important;
}

.nv2-mobile-menu {
    display: none !important;
}

/* Full-screen home and new-message views. */
.nv2-index-page,
.nv2-new-page {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #eef2f7 !important;
}

/* Tablet and mobile layout. */
@media (max-width: 900px) {
    .nv2-chat-layout {
        display: block !important;
        max-width: none !important;
    }

    .nv2-chat-main {
        width: 100vw !important;
    }

    .nv2-sidebar {
        position: fixed !important;
        inset-block: 0 !important;
        inset-inline-start: 0 !important;
        z-index: 2147483020 !important;
        width: min(88vw, 370px) !important;
        max-width: 370px !important;
        box-shadow: 18px 0 45px rgba(6, 17, 31, 0.28) !important;
        transform: translateX(-110%);
        transition: transform 220ms ease !important;
    }

    [dir="rtl"].nv2-chat-page .nv2-sidebar {
        transform: translateX(110%);
        box-shadow: -18px 0 45px rgba(6, 17, 31, 0.28) !important;
    }

    body.nv2-sidebar-open .nv2-chat-page .nv2-sidebar {
        transform: translateX(0) !important;
    }

    .nv2-mobile-menu {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .nv2-chat-header {
        min-height: 66px !important;
        padding: 9px 11px !important;
    }

    .nv2-header-badge {
        display: none !important;
    }

    .nv2-messages {
        padding: 14px 10px 18px !important;
    }

    .nv2-bubble {
        max-width: 88% !important;
    }

    .nv2-composer {
        padding:
            9px
            max(9px, env(safe-area-inset-right))
            max(9px, env(safe-area-inset-bottom))
            max(9px, env(safe-area-inset-left)) !important;
        gap: 7px !important;
    }

    .nv2-send-button span {
        display: none !important;
    }

    .nv2-send-button {
        width: 48px !important;
        height: 48px !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .nv2-room-icon,
    .nv2-action-button {
        display: none !important;
    }

    .nv2-chat-header {
        gap: 7px !important;
    }

    .nv2-room-copy strong {
        font-size: 14px !important;
    }

    .nv2-room-copy small {
        font-size: 11px !important;
    }

    .nv2-composer-tool {
        display: none !important;
    }

    .nv2-bubble {
        max-width: 92% !important;
    }
}

/* NEXUS_V2_ACCOUNTS_INVITES_PWA_V1 */
html, body { min-height: 100%; }
body.nv2-authenticated { margin: 0 !important; background: #07111f !important; }
.nv2-authenticated .nv2-shell { min-height: 100dvh; padding-top: 52px; }
.nv2-account-bar {
    position: fixed; inset: 0 0 auto 0; z-index: 10000; height: 52px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 0 14px; box-sizing: border-box;
    color: #f8fafc; background: rgba(7, 17, 31, .97);
    border-bottom: 1px solid rgba(212, 175, 55, .34);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .22);
}
.nv2-account-brand { display: flex; align-items: center; gap: 10px; color: #f8fafc; text-decoration: none; min-width: 0; }
.nv2-account-brand b { color: #e4c15f; letter-spacing: .12em; }
.nv2-account-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .88; }
.nv2-account-actions { display: flex; align-items: center; gap: 8px; }
.nv2-account-actions form { margin: 0; }
.nv2-account-button {
    border: 1px solid rgba(212, 175, 55, .42); border-radius: 10px;
    padding: 7px 11px; color: #f6d77d; background: #111c2d;
    font: inherit; cursor: pointer; white-space: nowrap;
}
.nv2-account-logout { color: #fecaca; border-color: rgba(248, 113, 113, .3); }
.nv2-authenticated .nv2-chat-page { min-height: calc(100dvh - 52px) !important; height: calc(100dvh - 52px) !important; }
.nv2-authenticated .nv2-chat-layout { min-height: calc(100dvh - 52px) !important; height: calc(100dvh - 52px) !important; }
.nv2-authenticated .nv2-index-page,
.nv2-authenticated .nv2-new-page { min-height: calc(100dvh - 52px) !important; }
.nv2-access-form input,
.nv2-invite-form input,
.nv2-invite-result input {
    width: 100%; box-sizing: border-box; border: 1px solid rgba(212, 175, 55, .3);
    border-radius: 12px; padding: 12px 14px; color: #f8fafc;
    background: rgba(15, 28, 46, .92); outline: none;
}
.nv2-access-form input:focus,
.nv2-invite-form input:focus { border-color: #e4c15f; box-shadow: 0 0 0 3px rgba(228, 193, 95, .12); }
.nv2-magic-access { margin-top: 18px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; }
.nv2-magic-access summary { cursor: pointer; color: #d8c58a; margin-bottom: 12px; }
.nv2-locked-email { display: grid; gap: 4px; padding: 13px; margin-bottom: 15px; border-radius: 12px; background: rgba(212,175,55,.1); }
.nv2-locked-email small, .nv2-expiry-note, .nv2-invite-note { color: #b7c2d0; }
.nv2-invite-panel {
    margin: 18px 0; padding: 20px; border: 1px solid rgba(212,175,55,.28);
    border-radius: 18px; color: #f8fafc; background: rgba(9, 22, 38, .92);
}
.nv2-invite-panel-title { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.nv2-invite-panel-title small { color: #aeb9c8; }
.nv2-invite-form { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; }
.nv2-invite-result { display: grid; gap: 10px; margin: 0 0 16px; padding: 14px; border-radius: 13px; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25); }
.nv2-invite-result > div { display: flex; gap: 8px; flex-wrap: wrap; }
.nv2-invite-result .nv2-gold-button { width: auto; text-decoration: none; }
.nv2-success, .nv2-error { padding: 12px 14px; border-radius: 11px; margin-bottom: 14px; }
.nv2-success { color: #bbf7d0; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.25); }
.nv2-error { color: #fecaca; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.25); }
@media (max-width: 760px) {
    .nv2-account-brand span { display: none; }
    .nv2-account-button { padding: 7px 9px; font-size: 12px; }
    .nv2-invite-form { grid-template-columns: 1fr; }
    .nv2-invite-panel-title { flex-direction: column; }
}

/* NEXUS_V2_CHAT_VISIBILITY_FIX_V6 */
body.nv2-authenticated {
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
}

body.nv2-authenticated .nv2-shell {
    width: 100% !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    padding-top: 52px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

body.nv2-authenticated .nv2-chat-page {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.nv2-authenticated .nv2-chat-layout {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.nv2-authenticated .nv2-sidebar {
    flex: 0 0 auto !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}

body.nv2-authenticated .nv2-chat-main {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    width: auto !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.nv2-authenticated .nv2-chat-header {
    position: relative !important;
    flex: 0 0 auto !important;
    top: auto !important;
}

body.nv2-authenticated .nv2-messages {
    display: flex !important;
    flex: 1 1 0 !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
}

body.nv2-authenticated .nv2-composer {
    position: relative !important;
    inset: auto !important;
    bottom: auto !important;
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: flex-end !important;
    width: 100% !important;
    min-height: 66px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    z-index: 200 !important;
    background: #0b1728 !important;
    border-top: 1px solid rgba(212, 175, 55, .30) !important;
}

body.nv2-authenticated .nv2-composer textarea {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 44px !important;
    max-height: 130px !important;
    padding: 11px 14px !important;
    color: #f8fafc !important;
    background: #111f33 !important;
    border: 1px solid rgba(212, 175, 55, .35) !important;
    border-radius: 14px !important;
    visibility: visible !important;
    opacity: 1 !important;
    resize: none !important;
}

body.nv2-authenticated .nv2-send-button,
body.nv2-authenticated .nv2-composer-tool {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 760px) {
    body.nv2-authenticated .nv2-composer {
        min-height: 64px !important;
        padding-right: max(9px, env(safe-area-inset-right)) !important;
        padding-bottom: max(9px, env(safe-area-inset-bottom)) !important;
        padding-left: max(9px, env(safe-area-inset-left)) !important;
    }

    body.nv2-authenticated .nv2-composer-tool {
        display: none !important;
    }
}

/* NEXUS_V2_SECURE_ATTACHMENTS_UI_V7 */
.nv2-composer { flex-wrap: wrap !important; }
.nv2-file-card {
    display: flex; align-items: center; gap: 10px; min-width: 240px;
    max-width: 430px; margin-top: 7px; padding: 11px 12px;
    color: #f8fafc; text-decoration: none; border-radius: 13px;
    border: 1px solid rgba(212,175,55,.28); background: rgba(7,17,31,.48);
}
.nv2-file-card:hover { border-color: rgba(228,193,95,.65); background: rgba(20,35,55,.72); }
.nv2-file-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(212,175,55,.13); }
.nv2-file-copy { display: grid; flex: 1 1 auto; min-width: 0; gap: 3px; }
.nv2-file-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv2-file-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b8c4d3; font-size: 11px; }
.nv2-file-download { color: #e4c15f; font-size: 22px; }
.nv2-upload-progress {
    order: 20; flex: 1 0 100%; box-sizing: border-box; margin-top: 7px;
    padding: 8px 10px; border-radius: 11px; color: #dbe5ef;
    background: rgba(7,17,31,.94); border: 1px solid rgba(212,175,55,.25);
}
.nv2-upload-progress-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 12px; }
.nv2-upload-progress-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv2-upload-progress-track { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.nv2-upload-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#b78c2e,#f1d57c); transition: width .18s ease; }
.nv2-composer-tool:disabled { opacity: .45 !important; cursor: wait !important; }
body.nv2-authenticated .nv2-composer-tool { display: inline-flex !important; }
@media (max-width: 600px) {
    .nv2-file-card { min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; }
    body.nv2-authenticated .nv2-composer-tool { display: inline-flex !important; }
}

/* NEXUS_V2_LIVEKIT_CALLS_V1 */
.nv2-call-root[hidden],
.nv2-incoming-call[hidden],
.nv2-call-stage[hidden],
.nv2-local-media[hidden],
.nv2-call-control[hidden],
.nv2-incoming-actions button[hidden] {
    display: none !important;
}

.nv2-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nv2-action-button:not(:disabled) {
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.nv2-action-button:not(:disabled):hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, .8);
    background: rgba(212, 175, 55, .16);
}

.nv2-incoming-call {
    position: fixed;
    z-index: 10020;
    top: max(18px, env(safe-area-inset-top));
    left: 50%;
    width: min(560px, calc(100vw - 28px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: #fff;
    border: 1px solid rgba(212, 175, 55, .56);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(8, 23, 43, .98), rgba(16, 37, 65, .98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45), 0 0 28px rgba(212, 175, 55, .12);
    backdrop-filter: blur(18px);
}

.nv2-incoming-pulse {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 23px;
    background: rgba(16, 185, 129, .18);
    border: 1px solid rgba(52, 211, 153, .5);
    animation: nv2CallPulse 1.35s ease-in-out infinite;
}

@keyframes nv2CallPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .35); }
    50% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); }
}

.nv2-incoming-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.nv2-incoming-copy small {
    color: #d6b95d;
    font-size: 12px;
}

.nv2-incoming-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
}

.nv2-incoming-actions {
    display: flex;
    gap: 8px;
}

.nv2-incoming-actions button {
    min-height: 40px;
    padding: 8px 15px;
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.nv2-call-accept {
    border: 1px solid #34d399;
    background: #059669;
}

.nv2-call-decline {
    border: 1px solid #fb7185;
    background: #be123c;
}

.nv2-call-stage {
    position: fixed;
    z-index: 10010;
    inset: 0;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: max(16px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
    color: #fff;
    background:
        radial-gradient(circle at 20% 15%, rgba(212, 175, 55, .16), transparent 34%),
        radial-gradient(circle at 80% 80%, rgba(20, 184, 166, .12), transparent 32%),
        linear-gradient(145deg, #061325, #0a1c33 56%, #071426);
}

.nv2-call-stage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 2px 16px;
}

.nv2-call-stage-header > div {
    display: grid;
    gap: 3px;
}

.nv2-call-stage-header small {
    color: #d6b95d;
}

.nv2-call-stage-header strong {
    font-size: clamp(17px, 3vw, 23px);
}

.nv2-call-secure {
    padding: 7px 11px;
    border: 1px solid rgba(52, 211, 153, .35);
    border-radius: 999px;
    color: #a7f3d0;
    background: rgba(5, 150, 105, .12);
    font-size: 12px;
}

.nv2-call-grid {
    position: relative;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    place-items: stretch;
    gap: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, .22);
    border-radius: 24px;
    background: rgba(2, 8, 23, .62);
}

.nv2-call-placeholder {
    min-height: 100%;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, .72);
}

.nv2-call-placeholder span {
    width: 108px;
    height: 108px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #f5d46b;
    border: 1px solid rgba(212, 175, 55, .5);
    background: linear-gradient(145deg, rgba(212, 175, 55, .16), rgba(16, 36, 62, .8));
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
    font-weight: 900;
}

.nv2-call-tile {
    position: relative;
    min-width: 0;
    min-height: 220px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(145deg, #102744, #071425);
}

.nv2-call-tile video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nv2-call-avatar {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #f9df88;
    border: 1px solid rgba(212, 175, 55, .5);
    background: rgba(212, 175, 55, .12);
    font-size: 36px;
    font-weight: 900;
}

.nv2-call-participant-name {
    position: absolute;
    z-index: 2;
    inset-inline-start: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(2, 8, 23, .72);
    font-size: 12px;
}

.nv2-local-media {
    position: absolute;
    z-index: 10012;
    inset-inline-end: 24px;
    bottom: 104px;
    width: min(25vw, 210px);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, .62);
    border-radius: 18px;
    background: #0b1e35;
    box-shadow: 0 16px 45px rgba(0, 0, 0, .4);
}

.nv2-local-media > span {
    position: absolute;
    z-index: 3;
    inset-inline-start: 8px;
    bottom: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(2, 8, 23, .7);
    font-size: 11px;
}

.nv2-local-media .nv2-call-tile {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
}

.nv2-call-controls {
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-top: 18px;
}

.nv2-call-control {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.nv2-call-control.is-off {
    color: #fecdd3;
    border-color: rgba(251, 113, 133, .6);
    background: rgba(190, 18, 60, .32);
}

.nv2-call-hangup {
    width: 64px;
    height: 64px;
    border-color: #fb7185;
    background: #be123c;
    transform: rotate(135deg);
}

@media (max-width: 680px) {
    .nv2-incoming-call {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .nv2-incoming-actions {
        grid-column: 1 / -1;
    }

    .nv2-incoming-actions button {
        flex: 1;
    }

    .nv2-call-stage {
        padding-inline: 10px;
    }

    .nv2-call-secure {
        display: none;
    }

    .nv2-call-grid {
        border-radius: 18px;
    }

    .nv2-local-media {
        inset-inline-end: 16px;
        bottom: 98px;
        width: 112px;
        border-radius: 14px;
    }
}

/* NEXUS_V2_INTERACTIONS_HISTORY_V1 */
.nv2-bubble-stack {
    position: relative;
    width: fit-content;
    max-width: min(78%, 760px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.nv2-message-row.is-other .nv2-bubble-stack {
    align-items: flex-start;
}

.nv2-bubble-stack > .nv2-bubble {
    max-width: 100% !important;
}

.nv2-message-actions {
    min-height: 26px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-inline: 5px;
}

.nv2-like-button,
.nv2-message-menu-toggle {
    min-width: 29px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 7px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 999px;
    color: #64748b;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
    cursor: pointer;
    transition: .18s ease;
}

.nv2-like-button:hover,
.nv2-message-menu-toggle:hover,
.nv2-like-button.is-active {
    color: #8a6410;
    border-color: rgba(212, 175, 55, .58);
    background: #fff8df;
    transform: translateY(-1px);
}

.nv2-like-button b {
    font-size: 11px;
}

.nv2-message-menu-wrap {
    position: relative;
}

.nv2-message-menu-toggle {
    padding: 0;
    font-size: 20px;
    line-height: 1;
}

.nv2-message-menu {
    position: absolute;
    z-index: 80;
    inset-inline-end: 0;
    bottom: calc(100% + 7px);
    width: 142px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .18);
}

.nv2-message-menu[hidden] {
    display: none !important;
}

.nv2-message-menu button {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    color: #0f2743;
    background: transparent;
    text-align: start;
    cursor: pointer;
}

.nv2-message-menu button:hover {
    background: #f1f5f9;
}

.nv2-message-menu button.is-danger {
    color: #be123c;
}

.nv2-message-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.nv2-message-receipt {
    direction: ltr;
    display: inline-block;
    min-width: 17px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -4px;
    padding-inline-end: 4px;
    color: rgba(255, 255, 255, .72);
}

.nv2-message-receipt[data-state="delivered"] {
    color: rgba(255, 255, 255, .92);
}

.nv2-message-receipt[data-state="read"] {
    color: #60a5fa;
    filter: drop-shadow(0 0 3px rgba(96, 165, 250, .35));
}

.nv2-edited-label {
    opacity: .82;
}

.nv2-message-deleted {
    padding: 4px 2px;
    font-style: italic;
    opacity: .72;
}

.nv2-message-row.is-deleted .nv2-bubble {
    filter: saturate(.55);
}

.nv2-interaction-modal[hidden],
.nv2-call-history-modal[hidden] {
    display: none !important;
}

.nv2-interaction-modal,
.nv2-call-history-modal {
    position: fixed;
    z-index: 10100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(2, 8, 23, .72);
    backdrop-filter: blur(8px);
}

.nv2-interaction-dialog,
.nv2-call-history-dialog {
    width: min(520px, 100%);
    max-height: min(720px, calc(100dvh - 36px));
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, .38);
    border-radius: 22px;
    color: #e5edf8;
    background: linear-gradient(145deg, #0a1b31, #071323);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
}

.nv2-interaction-dialog > header,
.nv2-call-history-dialog > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.nv2-interaction-dialog > header button,
.nv2-call-history-dialog > header button {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font-size: 22px;
    cursor: pointer;
}

.nv2-interaction-dialog textarea {
    width: calc(100% - 36px);
    min-height: 130px;
    margin: 18px;
    padding: 13px;
    resize: vertical;
    border: 1px solid rgba(212, 175, 55, .35);
    border-radius: 14px;
    color: #0f2743;
    background: #fff;
    font: inherit;
}

.nv2-interaction-dialog > footer {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 0 18px 18px;
}

.nv2-interaction-dialog > footer button {
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 11px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
}

.nv2-interaction-dialog > footer button.is-primary {
    color: #081426;
    border-color: #d4af37;
    background: linear-gradient(135deg, #f4d76f, #d4af37);
    font-weight: 800;
}

.nv2-call-history-dialog {
    width: min(620px, 100%);
}

.nv2-call-history-dialog header small {
    display: block;
    margin-bottom: 2px;
    color: #d6b95d;
    font-size: 10px;
    letter-spacing: .12em;
}

.nv2-call-history-list {
    max-height: min(600px, calc(100dvh - 140px));
    overflow: auto;
    padding: 10px;
}

.nv2-call-history-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nv2-call-history-item:last-child {
    border-bottom: 0;
}

.nv2-call-history-item.is-missed,
.nv2-call-history-item.is-declined {
    color: #fecdd3;
}

.nv2-call-history-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(212, 175, 55, .28);
    border-radius: 50%;
    background: rgba(212, 175, 55, .09);
}

.nv2-call-history-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.nv2-call-history-copy strong,
.nv2-call-history-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nv2-call-history-copy small,
.nv2-call-history-item time {
    color: #9fb0c4;
    font-size: 11px;
}

.nv2-call-history-loading,
.nv2-call-history-empty {
    padding: 34px 20px;
    color: #9fb0c4;
    text-align: center;
}

@media (max-width: 680px) {
    .nv2-bubble-stack {
        max-width: 93%;
    }

    .nv2-message-actions {
        opacity: 1;
    }

    .nv2-call-history-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .nv2-call-history-item time {
        grid-column: 2;
    }
}

/* NEXUS_V2_MESSAGE_LAYOUT_FIX_V10 */
.nv2-message-row {
    min-width: 0 !important;
}

.nv2-bubble-stack {
    width: max-content !important;
    min-width: 158px !important;
    max-width: min(74%, 760px) !important;
    flex: 0 1 auto !important;
    align-items: stretch !important;
}

.nv2-message-row.is-mine .nv2-bubble-stack {
    margin-inline-start: auto;
}

.nv2-message-row.is-other .nv2-bubble-stack {
    margin-inline-end: auto;
}

.nv2-bubble-stack > .nv2-bubble {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.nv2-message-body {
    min-width: 0 !important;
    white-space: pre-wrap !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.72 !important;
    letter-spacing: 0 !important;
}

.nv2-sender {
    min-width: 0 !important;
}

.nv2-sender strong {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    word-break: normal !important;
}

.nv2-message-meta {
    min-width: 0 !important;
    justify-content: flex-end !important;
    column-gap: 5px !important;
    line-height: 1.35 !important;
}

.nv2-message-time {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
}

.nv2-message-actions {
    align-self: flex-end !important;
    padding-inline: 3px !important;
}

.nv2-message-row.is-other .nv2-message-actions {
    align-self: flex-start !important;
}

.nv2-composer textarea {
    min-width: 0 !important;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
    letter-spacing: 0 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

[dir="rtl"] .nv2-composer textarea {
    direction: rtl !important;
    text-align: right !important;
}

[dir="ltr"] .nv2-composer textarea {
    direction: ltr !important;
    text-align: left !important;
}

@media (max-width: 680px) {
    .nv2-bubble-stack {
        min-width: 132px !important;
        max-width: 91% !important;
    }

    .nv2-message-body {
        font-size: 15px !important;
        line-height: 1.66 !important;
    }
}

@media (max-width: 390px) {
    .nv2-bubble-stack {
        min-width: 118px !important;
        max-width: 94% !important;
    }
}

/* NEXUS_V2_ADMIN_GROUPS_CHANNELS_V1 */
.nv2-hero-actions,
.nv2-admin-header-actions,
.nv2-form-actions,
.nv2-admin-row-actions,
.nv2-admin-user-controls,
.nv2-account-actions,
.nv2-sidebar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nv2-outline-button,
.nv2-mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(214, 173, 78, .45);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    color: #f7e4ad;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.nv2-outline-button {
    min-height: 44px;
    padding: 10px 16px;
}

.nv2-mini-button {
    min-height: 34px;
    padding: 7px 11px;
    font-size: .82rem;
}

.nv2-outline-button:hover,
.nv2-mini-button:hover {
    transform: translateY(-1px);
    border-color: #e4bd61;
    background: rgba(214, 173, 78, .12);
}

.nv2-mini-button.is-primary {
    border-color: #3286ff;
    background: rgba(50, 134, 255, .12);
    color: #cfe2ff;
}

.nv2-mini-button.is-warning {
    border-color: #e8a735;
    background: rgba(232, 167, 53, .12);
    color: #ffe1a3;
}

.nv2-mini-button.is-danger {
    border-color: #ef5b67;
    background: rgba(239, 91, 103, .12);
    color: #ffc4c9;
}

.nv2-admin-link {
    text-decoration: none;
}

.nv2-sidebar-actions {
    margin-top: 14px;
}

.nv2-sidebar-new.is-secondary {
    background: transparent;
    color: #f5d98f;
}

.nv2-readonly-notice {
    flex: 0 0 auto;
    margin: 10px 14px 14px;
    padding: 13px 16px;
    border: 1px solid rgba(214, 173, 78, .3);
    border-radius: 14px;
    background: rgba(15, 25, 42, .95);
    color: #f2dfa9;
    text-align: center;
    font-weight: 800;
}

.nv2-admin-page {
    min-height: calc(100vh - 70px);
    padding: 34px 18px 70px;
    background:
        radial-gradient(circle at 10% 0, rgba(214, 173, 78, .12), transparent 28%),
        radial-gradient(circle at 90% 15%, rgba(45, 115, 210, .12), transparent 25%),
        #07111f;
    color: #edf3fb;
}

.nv2-admin-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.nv2-admin-shell.is-narrow {
    width: min(920px, 100%);
}

.nv2-admin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.nv2-admin-header h1 {
    margin: 7px 0 6px;
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.05;
}

.nv2-admin-header p,
.nv2-admin-card-head p,
.nv2-entity-form p,
.nv2-danger-zone p {
    margin: 0;
    color: #92a4bb;
}

.nv2-head-back {
    display: inline-flex;
    margin-bottom: 12px;
    color: #e8c66f;
    text-decoration: none;
    font-weight: 800;
}

.nv2-admin-alert {
    margin: 0 0 18px;
    padding: 13px 16px;
    border-radius: 13px;
    font-weight: 800;
}

.nv2-admin-alert.is-success {
    border: 1px solid rgba(45, 196, 126, .4);
    background: rgba(45, 196, 126, .12);
    color: #a9f1cc;
}

.nv2-admin-alert.is-error {
    border: 1px solid rgba(239, 91, 103, .45);
    background: rgba(239, 91, 103, .12);
    color: #ffc1c6;
}

.nv2-admin-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.nv2-admin-stats article {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(142, 164, 191, .17);
    border-radius: 16px;
    background: rgba(12, 25, 42, .85);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .16);
}

.nv2-admin-stats span {
    display: block;
    color: #8fa1b8;
    font-size: .82rem;
}

.nv2-admin-stats strong {
    display: block;
    margin-top: 6px;
    color: #f2cd70;
    font-size: 1.8rem;
}

.nv2-admin-card {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid rgba(142, 164, 191, .18);
    border-radius: 20px;
    background: rgba(11, 23, 40, .94);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .22);
}

.nv2-admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.nv2-admin-card-head h2,
.nv2-danger-zone h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 1.25rem;
}

.nv2-admin-count {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(214, 173, 78, .13);
    color: #f2cd70;
    font-weight: 900;
}

.nv2-settings-form,
.nv2-entity-form {
    display: grid;
    gap: 15px;
}

.nv2-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(142, 164, 191, .12);
}

.nv2-switch-row b,
.nv2-switch-row small {
    display: block;
}

.nv2-switch-row small {
    margin-top: 3px;
    color: #8799b0;
}

.nv2-switch {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 27px;
}

.nv2-switch input[type="checkbox"] {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.nv2-switch i {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #344157;
    transition: background .18s ease;
}

.nv2-switch i::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    transition: transform .18s ease;
}

.nv2-switch input:checked + i {
    background: #c99c38;
}

.nv2-switch input:checked + i::after {
    transform: translateX(-21px);
}

.nv2-admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.nv2-admin-form-grid.is-one {
    grid-template-columns: 1fr;
}

.nv2-admin-form-grid label,
.nv2-add-member-form,
.nv2-role-form {
    min-width: 0;
}

.nv2-admin-form-grid label > span {
    display: block;
    margin-bottom: 7px;
    color: #bdc9d8;
    font-weight: 800;
}

.nv2-admin-page input[type="text"],
.nv2-admin-page input[type="search"],
.nv2-admin-page input[type="number"],
.nv2-admin-page textarea,
.nv2-admin-page select,
.nv2-static-field {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid rgba(142, 164, 191, .25);
    border-radius: 12px;
    outline: none;
    background: #0a1729;
    color: #eef4fb;
    font: inherit;
}

.nv2-admin-page input,
.nv2-admin-page textarea,
.nv2-admin-page select,
.nv2-static-field {
    padding: 10px 12px;
}

.nv2-admin-page textarea {
    resize: vertical;
}

.nv2-admin-page input:focus,
.nv2-admin-page textarea:focus,
.nv2-admin-page select:focus {
    border-color: #d1aa4d;
    box-shadow: 0 0 0 3px rgba(209, 170, 77, .13);
}

.nv2-static-field {
    color: #e7cd8a;
}

.nv2-admin-conversation-row,
.nv2-admin-user-row,
.nv2-admin-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(142, 164, 191, .12);
}

.nv2-admin-conversation-row:last-child,
.nv2-admin-user-row:last-child,
.nv2-admin-member-row:last-child {
    border-bottom: 0;
}

.nv2-admin-conversation-main,
.nv2-admin-user-main {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.nv2-admin-conversation-main > span:last-child,
.nv2-admin-user-main > span:last-child {
    min-width: 0;
}

.nv2-admin-conversation-main b,
.nv2-admin-conversation-main small,
.nv2-admin-user-main b,
.nv2-admin-user-main small,
.nv2-admin-user-main em {
    display: block;
    overflow-wrap: anywhere;
}

.nv2-admin-conversation-main small,
.nv2-admin-user-main small {
    margin-top: 4px;
    color: #8ea0b7;
}

.nv2-admin-user-main em {
    margin-top: 5px;
    color: #e3ba59;
    font-size: .78rem;
    font-style: normal;
}

.nv2-admin-icon {
    display: inline-flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(214, 173, 78, .12);
    font-size: 1.25rem;
}

.nv2-admin-row-actions form,
.nv2-admin-user-controls form {
    margin: 0;
}

.nv2-admin-search {
    display: flex;
    width: min(420px, 100%);
    gap: 8px;
}

.nv2-admin-search input {
    min-width: 0;
}

.nv2-admin-user-controls {
    justify-content: flex-end;
}

.nv2-inline-reason-form {
    display: flex;
    gap: 7px;
}

.nv2-inline-reason-form input {
    width: 190px !important;
    min-height: 34px !important;
    padding-block: 6px !important;
}

.nv2-status-badge {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(42, 190, 120, .12);
    color: #98e9bf;
    font-size: .78rem;
    font-weight: 900;
}

.nv2-status-badge.is-blocked {
    background: rgba(232, 167, 53, .13);
    color: #ffdc96;
}

.nv2-status-badge.is-removed {
    background: rgba(239, 91, 103, .13);
    color: #ffc0c6;
}

.nv2-admin-user-row.is-blocked,
.nv2-admin-user-row.is-removed {
    opacity: .84;
}

.nv2-member-picker {
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(142, 164, 191, .18);
    border-radius: 16px;
}

.nv2-member-picker legend {
    padding: 0 8px;
    color: #fff;
    font-weight: 900;
}

.nv2-member-picker-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 13px;
}

.nv2-member-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(142, 164, 191, .16);
    border-radius: 13px;
    background: rgba(255, 255, 255, .025);
    cursor: pointer;
}

.nv2-member-check:has(input:checked) {
    border-color: rgba(214, 173, 78, .55);
    background: rgba(214, 173, 78, .09);
}

.nv2-member-check > span:last-child {
    min-width: 0;
}

.nv2-member-check b,
.nv2-member-check small {
    display: block;
    overflow-wrap: anywhere;
}

.nv2-member-check small {
    margin-top: 3px;
    color: #8d9eb4;
    font-size: .77rem;
}

.nv2-role-form,
.nv2-add-member-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nv2-role-form select {
    width: 120px;
    min-height: 34px;
    padding-block: 5px;
}

.nv2-add-member-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 150px auto;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(142, 164, 191, .13);
}

.nv2-danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-color: rgba(239, 91, 103, .28);
}

@media (max-width: 900px) {
    .nv2-admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nv2-admin-header,
    .nv2-admin-card-head.is-users,
    .nv2-admin-user-row,
    .nv2-admin-member-row {
        align-items: stretch;
        flex-direction: column;
    }

    .nv2-admin-user-controls,
    .nv2-admin-row-actions {
        justify-content: flex-start;
    }

    .nv2-admin-search {
        width: 100%;
    }
}

@media (max-width: 650px) {
    .nv2-admin-page {
        padding: 22px 10px 50px;
    }

    .nv2-admin-card {
        padding: 15px;
        border-radius: 16px;
    }

    .nv2-admin-form-grid,
    .nv2-member-picker-list,
    .nv2-add-member-form {
        grid-template-columns: 1fr;
    }

    .nv2-admin-conversation-row,
    .nv2-danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .nv2-admin-row-actions,
    .nv2-admin-user-controls,
    .nv2-inline-reason-form,
    .nv2-role-form {
        width: 100%;
    }

    .nv2-admin-row-actions > *,
    .nv2-admin-row-actions form,
    .nv2-admin-user-controls > *,
    .nv2-admin-user-controls form,
    .nv2-inline-reason-form input,
    .nv2-inline-reason-form button,
    .nv2-role-form select,
    .nv2-role-form button {
        flex: 1 1 auto;
        width: auto !important;
    }

    .nv2-account-actions {
        gap: 6px;
    }

    .nv2-account-button {
        padding-inline: 9px;
        font-size: .76rem;
    }
}

/* NEXUS_V2_VOICE_PROFILE_SETTINGS_V1 */
body.nv2-authenticated {
    padding-bottom: 82px;
}

.nv2-footer-nav {
    position: fixed;
    z-index: 120;
    right: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: flex;
    width: min(620px, calc(100% - 22px));
    min-height: 64px;
    align-items: stretch;
    justify-content: space-around;
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(211, 174, 83, .28);
    border-radius: 20px;
    background: rgba(7, 17, 31, .94);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .42);
    backdrop-filter: blur(18px);
    transform: translateX(50%);
}

.nv2-footer-nav a {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 6px 7px;
    border-radius: 14px;
    color: #8fa1b8;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.nv2-footer-nav a:hover,
.nv2-footer-nav a.is-active {
    color: #f2d47f;
    background: rgba(214, 173, 78, .13);
    transform: translateY(-1px);
}

.nv2-footer-nav span {
    font-size: 1.12rem;
    line-height: 1;
}

.nv2-footer-nav b {
    max-width: 100%;
    overflow: hidden;
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nv2-account-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.nv2-account-avatar,
.nv2-profile-avatar,
.nv2-avatar img,
.nv2-side-avatar img,
.nv2-room-icon img {
    overflow: hidden;
    border-radius: 50%;
}

.nv2-account-avatar {
    display: inline-flex;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ebc96e, #9f7424);
    color: #111827;
    font-weight: 900;
}

.nv2-account-avatar img,
.nv2-profile-avatar img,
.nv2-avatar img,
.nv2-side-avatar img,
.nv2-room-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nv2-account-identity {
    display: grid;
    line-height: 1.05;
}

.nv2-account-identity small {
    max-width: 150px;
    overflow: hidden;
    color: #aebbc9;
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nv2-settings-page {
    min-height: calc(100vh - 70px);
    padding: 34px 16px 70px;
    background:
        radial-gradient(circle at 9% 0, rgba(214, 173, 78, .13), transparent 28%),
        radial-gradient(circle at 92% 12%, rgba(47, 127, 225, .11), transparent 25%),
        #07111f;
    color: #edf3fb;
}

.nv2-settings-shell {
    width: min(940px, 100%);
    margin: 0 auto;
}

.nv2-settings-header {
    margin-bottom: 22px;
}

.nv2-settings-header h1 {
    margin: 7px 0;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3rem);
}

.nv2-settings-header p {
    margin: 0;
    color: #94a7bd;
}

.nv2-profile-card {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid rgba(142, 164, 191, .18);
    border-radius: 22px;
    background: rgba(11, 23, 40, .94);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .22);
}

.nv2-profile-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nv2-profile-avatar {
    display: inline-flex;
    flex: 0 0 112px;
    width: 112px;
    height: 112px;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(231, 194, 102, .62);
    background: linear-gradient(145deg, #ebc96e, #9f7424);
    color: #111827;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
    font-size: 2.8rem;
    font-weight: 900;
}

.nv2-avatar-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nv2-profile-summary {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.nv2-profile-summary strong {
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 1.35rem;
}

.nv2-profile-summary span,
.nv2-profile-summary small {
    overflow-wrap: anywhere;
    color: #93a5bb;
}

.nv2-profile-summary small {
    color: #e1c273;
}

.nv2-settings-form-main {
    display: grid;
    gap: 0;
}

.nv2-settings-page input[type="text"],
.nv2-settings-page input[type="email"],
.nv2-settings-page input[type="password"],
.nv2-settings-page textarea,
.nv2-settings-page select {
    width: 100%;
    min-height: 45px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid rgba(142, 164, 191, .25);
    border-radius: 12px;
    outline: none;
    background: #0a1729;
    color: #eef4fb;
    font: inherit;
}

.nv2-settings-page input:focus,
.nv2-settings-page textarea:focus,
.nv2-settings-page select:focus {
    border-color: #d1aa4d;
    box-shadow: 0 0 0 3px rgba(209, 170, 77, .13);
}

.nv2-settings-page textarea {
    resize: vertical;
}

.nv2-privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.nv2-privacy-grid label > span {
    display: block;
    margin-bottom: 7px;
    color: #bdc9d8;
    font-weight: 800;
}

.nv2-account-safety-note {
    margin-bottom: 18px;
    padding: 15px 17px;
    border: 1px solid rgba(71, 137, 230, .25);
    border-radius: 15px;
    background: rgba(71, 137, 230, .09);
    color: #c9ddfa;
    line-height: 1.65;
}

.nv2-settings-save-bar {
    position: sticky;
    z-index: 15;
    bottom: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px;
    border: 1px solid rgba(211, 174, 83, .22);
    border-radius: 18px;
    background: rgba(7, 17, 31, .92);
    backdrop-filter: blur(16px);
}

.nv2-room-icon img,
.nv2-side-avatar img,
.nv2-avatar img {
    display: block;
}

.nv2-voice-button.is-recording {
    border-color: #f34d5d !important;
    background: rgba(243, 77, 93, .16) !important;
    color: #ffabb2 !important;
    animation: nv2-recording-pulse 1.2s infinite;
}

.nv2-voice-recorder {
    order: 20;
    flex: 1 0 100%;
    width: 100%;
    box-sizing: border-box;
    margin-top: 9px;
    padding: 11px 13px;
    border: 1px solid rgba(243, 77, 93, .3);
    border-radius: 15px;
    background: rgba(11, 23, 40, .98);
}

.nv2-voice-recorder[hidden],
.nv2-voice-upload[hidden] {
    display: none !important;
}

.nv2-voice-live,
.nv2-voice-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.nv2-voice-live {
    color: #f8d8dc;
}

.nv2-voice-live time {
    min-width: 40px;
    color: #fff;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
}

.nv2-recording-dot {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4053;
    box-shadow: 0 0 0 5px rgba(239, 64, 83, .12);
}

.nv2-wave-bars {
    display: flex;
    flex: 1 1 auto;
    height: 28px;
    align-items: center;
    gap: 4px;
}

.nv2-wave-bars i {
    display: block;
    width: 4px;
    height: 8px;
    border-radius: 99px;
    background: #d4af55;
    animation: nv2-wave 1s ease-in-out infinite;
}

.nv2-wave-bars i:nth-child(2) { animation-delay: -.2s; }
.nv2-wave-bars i:nth-child(3) { animation-delay: -.4s; }
.nv2-wave-bars i:nth-child(4) { animation-delay: -.6s; }
.nv2-wave-bars i:nth-child(5) { animation-delay: -.8s; }

.nv2-voice-actions {
    justify-content: flex-end;
    margin-top: 9px;
}

.nv2-voice-actions button {
    min-height: 35px;
    padding: 7px 12px;
    border: 1px solid rgba(147, 165, 187, .28);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: #d9e1eb;
    font: inherit;
    font-size: .82rem;
    font-weight: 900;
    cursor: pointer;
}

.nv2-voice-actions [data-voice-send] {
    border-color: rgba(214, 173, 78, .48);
    background: rgba(214, 173, 78, .13);
    color: #f5d987;
}

.nv2-voice-upload {
    position: relative;
    overflow: hidden;
    height: 28px;
    border-radius: 10px;
    background: #14233a;
}

.nv2-voice-upload span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: linear-gradient(90deg, #a97b22, #e4c36d);
    transition: width .18s ease;
}

.nv2-voice-upload b {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: .76rem;
    font-variant-numeric: tabular-nums;
}

.nv2-voice-card {
    display: flex;
    width: min(390px, 100%);
    min-width: min(285px, 100%);
    align-items: center;
    gap: 9px;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid rgba(214, 173, 78, .22);
    border-radius: 15px;
    background: rgba(7, 17, 31, .32);
}

.nv2-voice-icon {
    display: inline-grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: rgba(214, 173, 78, .15);
}

.nv2-voice-card audio {
    min-width: 0;
    width: 240px;
    max-width: 100%;
    height: 36px;
}

.nv2-voice-duration {
    color: #9eafc2;
    font-size: .72rem;
    font-variant-numeric: tabular-nums;
}

.nv2-voice-download {
    display: inline-grid;
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .07);
    color: #f3d47f;
    text-decoration: none;
    font-weight: 900;
}

.nv2-compact .nv2-message-row {
    margin-block: 2px;
}

.nv2-compact .nv2-bubble {
    padding: 7px 10px;
}

.nv2-compact .nv2-side-item {
    min-height: 48px;
    padding-block: 6px;
}

@keyframes nv2-wave {
    0%, 100% { height: 7px; opacity: .55; }
    50% { height: 25px; opacity: 1; }
}

@keyframes nv2-recording-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(243, 77, 93, 0); }
    50% { box-shadow: 0 0 0 6px rgba(243, 77, 93, .13); }
}

@media (max-width: 760px) {
    body.nv2-authenticated {
        padding-bottom: 76px;
    }

    .nv2-footer-nav {
        bottom: 0;
        width: 100%;
        min-height: 64px;
        box-sizing: border-box;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 17px 17px 0 0;
    }

    .nv2-settings-page {
        padding: 22px 10px 60px;
    }

    .nv2-profile-card,
    .nv2-profile-avatar-wrap {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .nv2-profile-summary {
        text-align: center;
    }

    .nv2-privacy-grid {
        grid-template-columns: 1fr;
    }

    .nv2-settings-save-bar {
        bottom: 70px;
    }

    .nv2-voice-card {
        min-width: 0;
    }

    .nv2-voice-card audio {
        width: 190px;
    }
}

@media (max-width: 430px) {
    .nv2-footer-nav b {
        font-size: .66rem;
    }

    .nv2-footer-nav span {
        font-size: 1rem;
    }

    .nv2-voice-live b {
        display: none;
    }

    .nv2-voice-card audio {
        width: 150px;
    }

    .nv2-settings-save-bar {
        align-items: stretch;
        flex-direction: column;
    }
}

/* NEXUS_V2_ADMIN_SETTINGS_SCROLL_V17 */
/* Long Nexus documents scroll inside the fixed application viewport. */
body.nv2-authenticated .nv2-admin-page,
body.nv2-authenticated .nv2-settings-page {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(120px, calc(96px + env(safe-area-inset-bottom))) !important;
}

body.nv2-authenticated .nv2-admin-shell,
body.nv2-authenticated .nv2-settings-shell {
    height: auto !important;
    min-height: min-content !important;
    overflow: visible !important;
}

@media (max-width: 760px) {
    body.nv2-authenticated .nv2-admin-page,
    body.nv2-authenticated .nv2-settings-page {
        padding-right: 10px !important;
        padding-left: 10px !important;
        padding-bottom: max(116px, calc(94px + env(safe-area-inset-bottom))) !important;
    }
}

/* NEXUS_V2_VIDEO_APPROVAL_MEMBERSHIP_PWA_V19 */
.nv2-access-links {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.nv2-access-links a,
.nv2-access-links button {
    width: 100%;
    box-sizing: border-box;
}

.nv2-install-trigger.is-installable {
    border-color: #2ccf83;
    box-shadow: 0 0 0 3px rgba(44, 207, 131, .12);
}

.nv2-registration-card {
    width: min(590px, 100%);
}

.nv2-verification-notice,
.nv2-request-state {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid rgba(214, 173, 78, .3);
    border-radius: 16px;
    background: rgba(214, 173, 78, .08);
    color: #e8edf4;
}

.nv2-verification-notice span,
.nv2-request-state span {
    color: #aebed0;
    line-height: 1.65;
}

.nv2-membership-confirmation {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(142, 164, 191, .18);
    border-radius: 13px;
    cursor: pointer;
}

.nv2-membership-confirmation input {
    width: 18px !important;
    min-height: 18px !important;
    margin-top: 2px;
}

.nv2-request-state.is-approved {
    border-color: rgba(44, 207, 131, .4);
    background: rgba(44, 207, 131, .1);
}

.nv2-request-state.is-rejected {
    border-color: rgba(239, 91, 103, .4);
    background: rgba(239, 91, 103, .1);
}

.nv2-registration-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.nv2-registration-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(142, 164, 191, .22);
    border-radius: 13px;
    background: rgba(11, 23, 40, .9);
    color: #c9d5e4;
    text-decoration: none;
    font-weight: 800;
}

.nv2-registration-tabs a.is-active {
    border-color: #d6ad4e;
    color: #ffe4a0;
    background: rgba(214, 173, 78, .13);
}

.nv2-registration-tabs b {
    min-width: 24px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    text-align: center;
}

.nv2-registration-row {
    display: grid;
    grid-template-columns: minmax(230px, .8fr) minmax(360px, 1.2fr);
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(142, 164, 191, .13);
}

.nv2-registration-row:last-child {
    border-bottom: 0;
}

.nv2-registration-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.nv2-registration-main > span:last-child {
    min-width: 0;
}

.nv2-registration-main b,
.nv2-registration-main small,
.nv2-registration-main code {
    display: block;
    overflow-wrap: anywhere;
}

.nv2-registration-main small {
    margin: 5px 0;
    color: #91a3ba;
}

.nv2-registration-main code {
    width: fit-content;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(214, 173, 78, .12);
    color: #f5d887;
    font-size: .9rem;
}

.nv2-registration-review,
.nv2-approval-form,
.nv2-rejection-form {
    display: grid;
    gap: 9px;
}

.nv2-verification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nv2-live-verification-result {
    padding: 9px 11px;
    border-radius: 10px;
    font-weight: 800;
    font-size: .86rem;
}

.nv2-live-verification-result.is-verified {
    border: 1px solid rgba(44, 207, 131, .4);
    background: rgba(44, 207, 131, .1);
    color: #a8f0cc;
}

.nv2-live-verification-result.is-invalid {
    border: 1px solid rgba(239, 91, 103, .4);
    background: rgba(239, 91, 103, .1);
    color: #ffc3c8;
}

.nv2-approval-form,
.nv2-rejection-form {
    grid-template-columns: minmax(190px, 1fr) minmax(180px, 1fr) auto;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(142, 164, 191, .12);
}

.nv2-approval-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b9c7d7;
    font-size: .85rem;
}

.nv2-approval-form input[type="text"],
.nv2-rejection-form input[type="text"] {
    min-height: 38px;
}

.nv2-call-upgrade {
    border-color: rgba(214, 173, 78, .65) !important;
    background: rgba(214, 173, 78, .15) !important;
}

@media (max-width: 850px) {
    .nv2-registration-row,
    .nv2-approval-form,
    .nv2-rejection-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .nv2-call-controls {
        gap: 8px;
    }

    .nv2-call-control {
        width: 48px;
        height: 48px;
    }
}

/* NEXUS_V2_REGISTRATION_SCROLL_V23 */
html:has(.nv2-registration-page),
body:has(.nv2-registration-page) {
    width: 100%;
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
}

body:has(.nv2-registration-page) .nv2-shell {
    width: 100%;
    height: auto !important;
    min-height: 100dvh;
    overflow: visible !important;
}

.nv2-registration-page {
    width: 100%;
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    overflow: visible !important;
    align-items: start !important;
    place-items: start center !important;
    padding:
        max(24px, env(safe-area-inset-top))
        max(16px, env(safe-area-inset-right))
        max(34px, env(safe-area-inset-bottom))
        max(16px, env(safe-area-inset-left)) !important;
    box-sizing: border-box;
}

.nv2-registration-page .nv2-registration-card,
.nv2-registration-page .nv2-registration-card .nv2-access-body,
.nv2-registration-page .nv2-registration-card .nv2-access-form {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.nv2-registration-page .nv2-registration-card {
    margin-block: auto;
}

.nv2-registration-page .nv2-registration-card input,
.nv2-registration-page .nv2-registration-card button,
.nv2-registration-page .nv2-registration-card a {
    touch-action: manipulation;
}

@media (max-width: 680px) {
    .nv2-registration-page {
        display: block !important;
        padding:
            max(12px, env(safe-area-inset-top))
            max(10px, env(safe-area-inset-right))
            max(28px, env(safe-area-inset-bottom))
            max(10px, env(safe-area-inset-left)) !important;
    }

    .nv2-registration-page .nv2-registration-card {
        width: 100% !important;
        margin: 0 auto !important;
    }

    .nv2-registration-page .nv2-registration-card input {
        min-height: 48px;
        font-size: 16px;
    }
}

/* NEXUS_V2_ADMIN_NAVIGATION_V24 */
.nv2-account-admin-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    white-space: nowrap;
}

.nv2-account-admin-link.is-requests {
    border-color: rgba(214, 173, 78, .58) !important;
    color: #ffe39a !important;
    background: rgba(214, 173, 78, .13) !important;
}

.nv2-admin-entry-panel {
    display: grid;
    grid-template-columns: minmax(210px, .8fr) minmax(300px, 1.2fr);
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid rgba(214, 173, 78, .34);
    border-radius: 20px;
    background:
        radial-gradient(circle at 85% 20%, rgba(214, 173, 78, .13), transparent 38%),
        rgba(9, 22, 39, .96);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.nv2-admin-entry-copy {
    display: grid;
    gap: 6px;
}

.nv2-admin-entry-copy b {
    color: #fff;
    font-size: clamp(18px, 2.5vw, 24px);
}

.nv2-admin-entry-copy small {
    color: #aebed0;
    line-height: 1.55;
}

.nv2-admin-entry-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.nv2-admin-entry-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    text-decoration: none;
}

@media (max-width: 780px) {
    .nv2-admin-entry-panel {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .nv2-admin-entry-actions {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .nv2-admin-entry-actions a {
        width: 100%;
        box-sizing: border-box;
    }

    .nv2-account-actions {
        display: flex !important;
        align-items: center;
        gap: 6px;
        overflow-x: auto;
        max-width: min(72vw, 560px);
        scrollbar-width: none;
    }

    .nv2-account-actions::-webkit-scrollbar {
        display: none;
    }

    .nv2-account-admin-link {
        flex: 0 0 auto;
        min-width: 46px;
    }

    .nv2-account-admin-link span:last-child {
        display: none;
    }
}

/* NEXUS_V2_COMPOSER_CALLS_MOBILE_V30 */
.nv2-chat-main,
.nv2-chat-header,
.nv2-header-left,
.nv2-room-copy {
    min-width: 0 !important;
}

.nv2-header-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    gap: 7px !important;
    pointer-events: auto !important;
}

.nv2-header-actions .nv2-action-button {
    display: inline-grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    place-items: center !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    line-height: 1 !important;
}

form#nv2Composer {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    pointer-events: auto !important;
}

form#nv2Composer textarea {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 110px !important;
    flex: 1 1 180px !important;
    pointer-events: auto !important;
    -webkit-user-select: text !important;
    user-select: text !important;
}

form#nv2Composer textarea:disabled {
    opacity: 1 !important;
    cursor: text !important;
}

.nv2-e2ee-composer-gate {
    order: -1;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    padding: 8px 11px;
    border: 1px solid rgba(212, 175, 55, .32);
    border-radius: 12px;
    color: #f8fafc;
    background: rgba(10, 28, 49, .94);
}

.nv2-e2ee-composer-gate[hidden] {
    display: none !important;
}

.nv2-e2ee-gate-icon {
    flex: 0 0 auto;
    font-size: 18px;
}

.nv2-e2ee-gate-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.nv2-e2ee-gate-copy strong {
    color: #f6d77d;
    font-size: 12px;
}

.nv2-e2ee-gate-copy small {
    color: #c8d6e5;
    font-size: 10px;
    line-height: 1.45;
}

@media (max-width: 720px) {
    .nv2-chat-header {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 10px !important;
        overflow: visible !important;
    }

    .nv2-header-left {
        flex: 1 1 150px !important;
    }

    .nv2-header-actions {
        flex: 0 0 auto !important;
        margin-inline-start: auto !important;
    }

    .nv2-header-actions .nv2-header-badge {
        display: none !important;
    }

    .nv2-header-actions #nv2RealtimeStatus {
        max-width: 112px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    form#nv2Composer {
        box-sizing: border-box !important;
        gap: 7px !important;
        padding-inline: 8px !important;
        padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
    }

    form#nv2Composer textarea {
        min-height: 44px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .nv2-room-copy small,
    .nv2-header-actions #nv2RealtimeStatus {
        display: none !important;
    }

    .nv2-header-actions .nv2-action-button {
        flex-basis: 38px !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }

    .nv2-e2ee-gate-copy small {
        font-size: 9px;
    }
}

/* NEXUS_V2_INCOMING_ANSWER_SCREEN_V37 */
body.nv2-has-incoming-call {
    overflow: hidden !important;
}

.nv2-incoming-call.is-incoming:not([hidden]) {
    position: fixed !important;
    z-index: 2147483000 !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto 1fr auto !important;
    place-items: center !important;
    align-content: center !important;
    gap: 18px !important;
    padding: max(42px, env(safe-area-inset-top)) 22px max(34px, env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #fff !important;
    text-align: center !important;
    background:
        radial-gradient(circle at 50% 18%, rgba(212, 175, 55, .30), transparent 30%),
        linear-gradient(160deg, #061629 0%, #0c2948 54%, #071728 100%) !important;
    box-shadow: none !important;
    isolation: isolate !important;
}

.nv2-incoming-call.is-incoming .nv2-incoming-pulse {
    width: 104px !important;
    height: 104px !important;
    font-size: 44px !important;
    background: linear-gradient(145deg, #d4af37, #f5d878) !important;
    border: 4px solid rgba(255, 255, 255, .22) !important;
    box-shadow: 0 0 0 14px rgba(212, 175, 55, .10), 0 24px 60px rgba(0, 0, 0, .34) !important;
}

.nv2-incoming-call.is-incoming .nv2-incoming-copy {
    display: grid !important;
    gap: 8px !important;
    justify-items: center !important;
}

.nv2-incoming-call.is-incoming .nv2-incoming-copy small {
    color: #f7dda0 !important;
    font-size: clamp(17px, 4.4vw, 22px) !important;
}

.nv2-incoming-call.is-incoming .nv2-incoming-copy strong {
    color: #fff !important;
    font-size: clamp(28px, 8vw, 44px) !important;
    line-height: 1.2 !important;
}

.nv2-incoming-call.is-incoming .nv2-incoming-actions {
    align-self: end !important;
    width: min(430px, 100%) !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}

.nv2-incoming-call.is-incoming .nv2-incoming-actions button {
    min-height: 62px !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .25) !important;
}

.nv2-incoming-call.is-incoming .nv2-call-accept {
    background: #059669 !important;
}

.nv2-incoming-call.is-incoming .nv2-call-decline {
    background: #be123c !important;
}

@media (min-width: 780px) {
    .nv2-incoming-call.is-incoming:not([hidden]) {
        padding-inline: max(24px, calc((100vw - 720px) / 2)) !important;
    }
}
/* NEXUS_V2_GLOBAL_MESSAGE_NOTIFICATIONS_V38 */
.nv2-global-message-alerts {
    position: fixed;
    z-index: 2147482500;
    top: max(14px, env(safe-area-inset-top));
    inset-inline-end: 14px;
    width: min(390px, calc(100vw - 28px));
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.nv2-global-message-alert {
    width: 100%;
    min-height: 74px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(212, 175, 55, .52);
    border-radius: 18px;
    color: #fff;
    text-align: start;
    background: linear-gradient(145deg, rgba(7, 25, 45, .98), rgba(15, 49, 80, .98));
    box-shadow: 0 20px 55px rgba(0, 0, 0, .34);
    backdrop-filter: blur(18px);
    pointer-events: auto;
    cursor: pointer;
    animation: nv2GlobalAlertIn .24s ease-out both;
}

.nv2-global-message-alert-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    font-size: 23px;
    background: rgba(212, 175, 55, .16);
}

.nv2-global-message-alert-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.nv2-global-message-alert-copy strong,
.nv2-global-message-alert-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nv2-global-message-alert-copy strong {
    color: #fff;
    font-size: 16px;
}

.nv2-global-message-alert-copy small {
    color: #f5d878;
    font-size: 13px;
}

@keyframes nv2GlobalAlertIn {
    from { opacity: 0; transform: translateY(-12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
/* NEXUS_V2_INCOMING_WATCHDOG_V40 */
html body .nv2-incoming-call.nv2-watchdog-visible:not([hidden]) {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483640 !important;
    display: grid !important;
    place-items: center !important;
    width: 100vw !important;
    min-height: 100dvh !important;
    padding: max(24px, env(safe-area-inset-top)) 20px
        max(24px, env(safe-area-inset-bottom)) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background:
        radial-gradient(circle at 50% 28%, rgba(212, 175, 55, .26), transparent 34%),
        rgba(4, 15, 31, .985) !important;
}

html body .nv2-incoming-call.nv2-watchdog-visible .nv2-incoming-card {
    width: min(440px, 100%) !important;
    margin: auto !important;
}
/* NEXUS_V2_ISOLATED_APP_CALL_QUALITY_V43 */
body.nv2-in-call {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.nv2-call-stage:not([hidden]) {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483200 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
        radial-gradient(circle at 50% 20%, rgba(27, 82, 126, .52), transparent 44%),
        linear-gradient(160deg, #071a2f, #020b16 74%) !important;
    color: #fff !important;
    padding-top: max(12px, env(safe-area-inset-top)) !important;
    padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
}

.nv2-call-stage-header {
    position: relative;
    z-index: 3;
}

.nv2-call-grid {
    min-height: 0 !important;
    overflow: hidden !important;
}

.nv2-call-controls {
    position: relative !important;
    z-index: 5 !important;
    display: flex !important;
    justify-content: center !important;
    gap: clamp(8px, 2.4vw, 16px) !important;
    padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
}

.nv2-call-controls .nv2-call-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    touch-action: manipulation;
}

.nv2-call-controls .nv2-call-upgrade:not([hidden]) {
    display: inline-flex !important;
    background: #d4af37 !important;
    color: #071a2f !important;
}

.nv2-local-media.is-front-camera video {
    transform: scaleX(-1) !important;
}

.nv2-local-media:not(.is-front-camera) video {
    transform: none !important;
}

audio[data-nexus-audio-track] {
    position: fixed !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* NEXUS_STANDALONE_PWA_V49_1 */
.nv2-pwa-fixed-install {
    position: fixed;
    inset-inline-end: max(14px, env(safe-area-inset-right));
    bottom: max(82px, calc(env(safe-area-inset-bottom) + 70px));
    z-index: 1250;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    max-width: calc(100vw - 28px);
    padding: 11px 16px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 999px;
    color: #071a2f;
    background: linear-gradient(135deg, #f6d66f, #d89f1f);
    box-shadow: 0 13px 34px rgba(6,27,51,.28);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.nv2-pwa-fixed-install:hover,
.nv2-pwa-fixed-install:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(6,27,51,.34);
}
.nv2-pwa-fixed-install:focus-visible {
    outline: 3px solid rgba(225,173,42,.35);
    outline-offset: 3px;
}
.nv2-pwa-install-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    color: #f8d970;
    background: #082a49;
    line-height: 1;
}
.nv2-pwa-fixed-install.is-installable {
    animation: nv2PwaReady 1.8s ease-in-out infinite;
}
@keyframes nv2PwaReady {
    0%,100% { box-shadow: 0 13px 34px rgba(6,27,51,.28); }
    50% { box-shadow: 0 15px 42px rgba(216,159,31,.48); }
}
@media (max-width: 520px) {
    .nv2-pwa-fixed-install {
        inset-inline: 12px;
        bottom: max(76px, calc(env(safe-area-inset-bottom) + 66px));
        width: calc(100% - 24px);
    }
}
@media (display-mode: standalone) {
    .nv2-pwa-fixed-install { display: none !important; }
}
