.participant-card {
    width: 400px;
    height: 300px;
    position: relative;
    background: #000;
    overflow: hidden;
}

.participant-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
    z-index: 1;
    opacity: 0;
}

.participant-screen-video {
    z-index: 2;
}

.participant-video-active {
    opacity: 1;
}

.participant-camera-placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    background: #5f432f;
}

.participant-camera-placeholder img,
.participant-camera-placeholder span,
.prejoin-avatar img,
.meeting-participant-list-avatar img,
.meeting-participant-list-avatar span,
.chat-message-avatar img,
.chat-message-avatar span {
    display: block;
    border-radius: 999px;
}

.participant-camera-placeholder img,
.participant-camera-placeholder span {
    width: 86px;
    height: 86px;
}

.participant-camera-placeholder img {
    object-fit: cover;
}

.participant-camera-placeholder span {
    display: grid;
    place-items: center;
    color: #202124;
    font-size: 2rem;
    font-weight: 900;
    background: #a8c7fa;
}

.participant-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(0, 0, 0, .42);
    pointer-events: none;
    z-index: 3;
}

.participant-label,
.participant-text {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .85);
}

.participant-label {
    opacity: .82;
}

.participant-metrics {
    flex-wrap: wrap;
}

.participant-card .h5 {
    font-size: 1rem;
}

.participant-name-line {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.participant-name-line > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-name-icon {
    display: inline-grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
    font-size: .78rem;
    border-radius: 999px;
    text-shadow: none;
}

.participant-name-hand {
    color: #202124;
    background: #fdd663;
}

.participant-name-admin {
    color: #fff;
    background: rgba(0, 123, 255, .95);
}

.participant-speaking {
    border: 3px solid #dc3545 !important;
}

.participant-hand-raised {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 4;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    font-size: 1.8rem;
    line-height: 1;
    background: rgba(17, 24, 39, .86);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}

.participant-card > .participant-admin-actions {
    position: absolute !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    z-index: 100 !important;
    display: flex !important;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(.96);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.participant-card:hover > .participant-admin-actions,
.participant-card:focus-within > .participant-admin-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.participant-card > .participant-admin-actions > .participant-admin-action {
    display: inline-grid !important;
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    place-items: center;
    position: relative;
    z-index: 101 !important;
    color: #fff;
    background: rgba(17, 24, 39, .96);
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
    cursor: pointer;
    pointer-events: auto !important;
}

.participant-card > .participant-admin-actions > .participant-admin-action:hover,
.participant-card > .participant-admin-actions > .participant-admin-action:focus {
    color: #fff;
    background: rgba(220, 53, 69, .96);
    outline: 2px solid rgba(255, 255, 255, .86);
    outline-offset: 2px;
}

.participant-card > .participant-admin-actions > .participant-admin-action:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.participant-card > .participant-admin-actions > .participant-admin-action-danger {
    color: #fecaca;
}

.participant-status-indicators {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 18;
    display: flex;
    gap: 8px;
    pointer-events: none;
}

.participant-status-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: rgba(17, 24, 39, .88);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
}

.participant-muted-indicator {
    color: #fff;
    background: rgba(220, 53, 69, .95);
}

.participant-admin-indicator {
    color: #fff;
    background: rgba(0, 123, 255, .95);
}

.participant-chat-muted-indicator {
    color: #fff;
    background: rgba(255, 193, 7, .96);
}

.local-preview-card {
    max-width: min(400px, 100%);
}

.reaction-button {
    min-width: 46px;
    font-size: 1.25rem;
    line-height: 1;
}

.reaction-float-layer {
    position: fixed;
    left: 50%;
    bottom: 32px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
    transform: translateX(-50%);
}

.reaction-toast {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 16px;
    color: #fff;
    font-weight: 700;
    background: rgba(17, 24, 39, .88);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .28);
    animation: reaction-rise 3s ease-out forwards;
}

.reaction-emotion {
    font-size: 1.45rem;
    line-height: 1;
}

@keyframes reaction-rise {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(.96);
    }

    12% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    82% {
        opacity: 1;
        transform: translateY(-52px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-82px) scale(.98);
    }
}

.chat-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1070;
    display: flex;
    flex-direction: column;
    width: min(600px, calc(100vw - 40px));
    height: min(400px, calc(100vh - 40px));
    overflow: hidden;
    background: #1b1b1b;
    border: 2px solid #333;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .4);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    color: #fff;
    font-weight: 700;
    background: #252525;
    border-bottom: 1px solid #333;
}

.chat-header-button,
.chat-minimized-button {
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    background: #333;
    border: 1px solid #555;
}

.chat-header-button {
    padding: 6px 10px;
    border-radius: 6px;
}

.chat-minimized-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1070;
    min-width: 120px;
    padding: 12px 16px;
    background: #1b1b1b;
    border: 2px solid #333;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .4);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    color: #fff;
}

.chat-message {
    margin-bottom: 10px;
    word-break: break-word;
}

.chat-message-system {
    color: #d1d5db;
    font-style: italic;
}

.chat-message-name {
    color: #4ade80;
    font-weight: 700;
}

.chat-message-system .chat-message-name {
    color: #fbbf24;
}

.chat-message-separator {
    color: #999;
}

.chat-composer {
    display: flex;
    border-top: 1px solid #333;
}

.chat-input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    color: #fff;
    background: #111;
    border: 0;
    outline: 0;
}

.chat-send-button {
    width: 100px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    background: #2563eb;
    border: 0;
}

body:has(.meeting-shell-active),
body:has(.meeting-shell-prejoin) {
    overflow: visible;
}

.meeting-shell {
    min-height: 100dvh;
}

.meeting-shell-prejoin {
    display: grid;
    min-height: 100dvh;
    padding: 32px;
    color: #e8eaed;
    background: #111214;
}

.meeting-shell-prejoin label {
    font-weight: 700;
}

.meeting-shell-prejoin .participant-card {
    border: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 58px rgba(0, 0, 0, .32);
}

.prejoin-lobby {
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(320px, 520px);
    gap: 28px;
    place-content: center;
    align-items: center;
    width: min(1080px, 100%);
    min-height: calc(100dvh - 64px);
    margin: 0 auto;
}

.prejoin-preview-wrap {
    position: relative;
    display: grid;
    gap: 18px;
    justify-items: center;
    min-width: 0;
}

.prejoin-preview-card {
    width: 100%;
    height: 360px;
    min-height: 360px;
    background: #5b3f2b;
    border-radius: 20px !important;
}

.prejoin-preview-card .participant-overlay {
    justify-content: flex-end;
    padding: 18px !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 54%, rgba(0, 0, 0, .74));
}

.prejoin-preview-card .participant-overlay .h5 {
    display: inline-flex;
    max-width: min(100%, 360px);
    min-height: 32px;
    align-items: center;
    padding: 7px 13px;
    margin: 0 !important;
    overflow: visible;
    color: #202124;
    font-size: .92rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #a8e6a1;
    border-radius: 999px;
    text-shadow: none;
}

.prejoin-avatar {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(168, 199, 250, .12), transparent 32%),
        #5b3f2b;
}

.prejoin-avatar span {
    display: grid;
    width: clamp(82px, 12vw, 132px);
    height: clamp(82px, 12vw, 132px);
    place-items: center;
    color: #202124;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 900;
    background: #a8c7fa;
    border-radius: 999px;
}

.prejoin-avatar img {
    width: clamp(94px, 14vw, 148px);
    height: clamp(94px, 14vw, 148px);
    object-fit: cover;
    box-shadow: 0 12px 44px rgba(0, 0, 0, .38);
}

.prejoin-controls {
    position: absolute;
    bottom: -66px;
    left: 50%;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transform: translateX(-50%);
}

.prejoin-card {
    display: grid;
    gap: 18px;
    align-content: center;
    min-height: 360px;
    padding: 24px;
    background: #202124;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, .34);
}

.prejoin-card label {
    display: block;
    margin: 0 0 8px;
    color: #f1f3f4;
    font-size: .86rem;
}

.prejoin-card .form-control {
    min-height: 46px;
    color: #f1f3f4;
    background: #303134;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
}

.prejoin-card .form-control:focus {
    color: #f1f3f4;
    background: #303134;
    border-color: #a8c7fa;
    box-shadow: 0 0 0 3px rgba(168, 199, 250, .24);
}

.prejoin-room-status,
.prejoin-status {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    color: #e8eaed;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.35;
    background: #303134;
    border-radius: 12px;
}

.prejoin-room-status i {
    margin-top: 2px;
    color: #a8c7fa;
}

.prejoin-status-info {
    background: #214b5b;
}

.prejoin-status-success {
    color: #202124;
    background: #a8e6a1;
}

.prejoin-status-warning {
    color: #202124;
    background: #fdd663;
}

.prejoin-status-danger {
    color: #fff;
    background: #a50e0e;
}

.prejoin-enter-button {
    min-height: 48px;
    color: #062e6f;
    font-weight: 900;
    background: #a8c7fa;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.prejoin-enter-button:hover,
.prejoin-enter-button:focus {
    background: #d2e3fc;
    outline: 2px solid rgba(168, 199, 250, .65);
    outline-offset: 2px;
}

.prejoin-enter-button:disabled {
    color: #9aa0a6;
    background: #3c4043;
    cursor: not-allowed;
}

.prejoin-device-menu {
    bottom: calc(100% + 14px);
}

.meeting-shell-active {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding: 72px 16px 96px;
    overflow: hidden;
    color: #e8eaed;
    background: #111214;
}

.meeting-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-height: 56px;
    padding: 10px 18px;
    color: #f1f3f4;
    background: linear-gradient(180deg, rgba(17, 18, 20, .98), rgba(17, 18, 20, .76));
}

.meeting-room-title,
.meeting-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.meeting-admin-chip,
.meeting-count-chip,
.meeting-topbar .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 10px;
    color: #e8eaed;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
    background: #303134;
    border-radius: 999px;
}

.meeting-admin-chip {
    color: #d2e3fc;
    background: #174ea6;
}

.meeting-count-chip {
    color: #202124;
    background: #a8c7fa;
}

.meeting-admin-button,
.meeting-count-button {
    border: 0;
    cursor: pointer;
}

.meeting-count-queue-text {
    font-weight: 900;
}

.meeting-admin-button:hover,
.meeting-admin-button:focus {
    color: #d2e3fc;
    background: #1967d2;
    outline: 2px solid rgba(168, 199, 250, .65);
    outline-offset: 2px;
}

.meeting-count-button:hover,
.meeting-count-button:focus {
    color: #202124;
    background: #d2e3fc;
    outline: 2px solid rgba(168, 199, 250, .65);
    outline-offset: 2px;
}

.meeting-participants-popover,
.meeting-admin-popover {
    position: absolute;
    top: 56px;
    right: 18px;
    z-index: 1095;
    width: min(338px, calc(100vw - 28px));
    overflow: visible;
    color: #e8eaed;
    background: #202124;
    border: 1px solid #3c4043;
    border-radius: 10px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}

.meeting-admin-popover {
    right: 112px;
}

.meeting-admin-popover .meeting-participants-popover-header {
    grid-template-columns: minmax(0, 1fr) 32px;
}

.meeting-participants-popover-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 32px;
    gap: 12px;
    align-items: center;
    min-height: 52px;
    padding: 0 14px 0 20px;
    font-weight: 800;
    border-bottom: 1px solid #3c4043;
}

.meeting-participants-popover-header strong {
    font-size: .95rem;
}

.meeting-participants-popover-close {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #e8eaed;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.meeting-participants-popover-close:hover,
.meeting-participants-popover-close:focus {
    background: #303134;
    outline: 0;
}

.meeting-participants-popover-list {
    display: grid;
    gap: 22px;
    padding: 22px 20px 28px;
}

.meeting-admin-popover-body {
    display: grid;
    gap: 12px;
    padding: 18px 20px 22px;
}

.meeting-admin-popover-body label {
    margin: 0;
    color: #bdc1c6;
    font-size: .8rem;
    font-weight: 800;
}

.meeting-admin-permission-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 10px;
    border-bottom: 1px solid #3c4043;
}

.meeting-admin-permission-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    font-size: .82rem;
    font-weight: 900;
    border-radius: 999px;
}

.meeting-admin-permission-public {
    color: #062e6f;
    background: #a8c7fa;
}

.meeting-admin-permission-private {
    color: #fce8e6;
    background: #a50e0e;
}

.meeting-admin-change-permission {
    min-height: 34px;
    padding: 6px 12px;
    color: #f1f3f4;
    font-size: .82rem;
    font-weight: 900;
    background: #303134;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    cursor: pointer;
}

.meeting-admin-change-permission:hover,
.meeting-admin-change-permission:focus {
    background: #3c4043;
    outline: 2px solid rgba(168, 199, 250, .5);
    outline-offset: 2px;
}

.meeting-admin-scope-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3c4043;
}

.meeting-admin-scope-option {
    display: grid;
    gap: 3px;
    min-width: 0;
    min-height: 58px;
    padding: 9px 10px;
    color: #f1f3f4;
    text-align: left;
    background: #303134;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    cursor: pointer;
}

.meeting-admin-scope-option span,
.meeting-admin-scope-option small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meeting-admin-scope-option span {
    font-size: .84rem;
    font-weight: 900;
}

.meeting-admin-scope-option small {
    color: #bdc1c6;
    font-size: .72rem;
    font-weight: 800;
}

.meeting-admin-scope-option:hover,
.meeting-admin-scope-option:focus {
    background: #3c4043;
    outline: 2px solid rgba(168, 199, 250, .5);
    outline-offset: 2px;
}

.meeting-admin-scope-option-active,
.meeting-admin-scope-option:disabled {
    color: #062e6f;
    background: #a8c7fa;
    border-color: #a8c7fa;
    cursor: default;
    opacity: 1;
}

.meeting-admin-scope-option-active small,
.meeting-admin-scope-option:disabled small {
    color: #174ea6;
}

.meeting-admin-create-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.meeting-admin-create-group .form-control {
    min-height: 40px;
    color: #f1f3f4;
    background: #303134;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
}

.meeting-admin-create-group button {
    min-height: 40px;
    padding: 0 14px;
    color: #062e6f;
    font-weight: 900;
    background: #a8c7fa;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.meeting-admin-create-group button:disabled {
    color: #9aa0a6;
    background: #3c4043;
    cursor: not-allowed;
}

.meeting-admin-groups-row {
    display: grid;
    gap: 10px;
}

.meeting-admin-groups {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.meeting-admin-groups span,
.meeting-group-pill {
    max-width: 100%;
    padding: 5px 9px;
    overflow: hidden;
    color: #d2e3fc;
    font-size: .78rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #174ea6;
    border-radius: 999px;
}

.meeting-group-pill {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
}

.meeting-admin-group-item {
    position: relative;
    display: inline-flex;
}

.meeting-admin-group-button {
    border: 0;
    cursor: pointer;
}

.meeting-admin-group-button:hover,
.meeting-admin-group-button:focus {
    color: #fff;
    background: #1967d2;
    outline: 2px solid rgba(168, 199, 250, .55);
    outline-offset: 2px;
}

.meeting-admin-group-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1120;
    display: grid;
    min-width: 150px;
    padding: 8px;
    background: #2b2c2f;
    border: 1px solid #3c4043;
    border-radius: 12px;
    box-shadow: 0 18px 54px rgba(0, 0, 0, .5);
}

.meeting-admin-group-menu button {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 38px;
    padding: 7px 10px;
    color: #fce8e6;
    font-size: .84rem;
    font-weight: 800;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.meeting-admin-group-menu button:hover,
.meeting-admin-group-menu button:focus {
    background: rgba(255, 255, 255, .08);
    outline: 0;
}

.meeting-admin-end-all-groups {
    width: fit-content;
    min-height: 34px;
    padding: 6px 12px;
    color: #fce8e6;
    font-size: .82rem;
    font-weight: 900;
    background: #a50e0e;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.meeting-admin-end-all-groups:hover,
.meeting-admin-end-all-groups:focus {
    background: #d93025;
    outline: 2px solid rgba(252, 232, 230, .5);
    outline-offset: 2px;
}

.meeting-join-requests {
    display: grid;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid #3c4043;
}

.meeting-join-requests-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #e8eaed;
    font-size: .86rem;
    font-weight: 800;
}

.meeting-join-requests-header button,
.meeting-join-request-actions button {
    min-height: 30px;
    padding: 5px 10px;
    font-size: .78rem;
    font-weight: 800;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.meeting-join-requests-header button,
.meeting-join-request-approve {
    color: #062e6f;
    background: #a8c7fa;
}

.meeting-join-request-item {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.meeting-join-request-item > span {
    overflow: hidden;
    color: #f1f3f4;
    font-size: .9rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meeting-join-request-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.meeting-join-request-deny {
    color: #fce8e6;
    background: #a50e0e;
}

.meeting-join-requests-header button:hover,
.meeting-join-requests-header button:focus,
.meeting-join-request-approve:hover,
.meeting-join-request-approve:focus {
    background: #d2e3fc;
    outline: 0;
}

.meeting-join-request-deny:hover,
.meeting-join-request-deny:focus {
    background: #d93025;
    outline: 0;
}

.meeting-join-requests button:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.meeting-participants-popover-item {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 34px;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.meeting-participant-list-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
}

.meeting-participant-list-avatar img,
.meeting-participant-list-avatar span {
    width: 36px;
    height: 36px;
}

.meeting-participant-list-avatar img {
    object-fit: cover;
}

.meeting-participant-list-avatar span {
    display: grid;
    place-items: center;
    color: #202124;
    font-size: .84rem;
    font-weight: 900;
    background: #a8c7fa;
}

.meeting-participants-popover-name {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.meeting-participants-popover-name span {
    overflow: hidden;
    font-size: .93rem;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meeting-participants-popover-name small {
    color: #bdc1c6;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.2;
}

.meeting-participants-popover-name .meeting-group-pill {
    color: #d2e3fc;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.2;
    background: #174ea6;
}

.meeting-participant-kebab {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #e8eaed;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.meeting-participant-kebab:hover,
.meeting-participant-kebab:focus {
    background: #303134;
    outline: 0;
}

.meeting-participant-context-menu {
    position: absolute;
    top: 38px;
    right: 0;
    z-index: 1110;
    display: grid;
    min-width: 230px;
    padding: 8px;
    background: #2b2c2f;
    border: 1px solid #3c4043;
    border-radius: 12px;
    box-shadow: 0 18px 54px rgba(0, 0, 0, .5);
}

.meeting-participant-context-menu button {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 40px;
    padding: 7px 10px;
    color: #f1f3f4;
    font-size: .84rem;
    font-weight: 800;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.meeting-participant-context-menu button:hover,
.meeting-participant-context-menu button:focus {
    background: rgba(255, 255, 255, .08);
    outline: 0;
}

.meeting-participant-context-menu button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.meeting-participant-context-danger {
    color: #fce8e6 !important;
}

.meeting-participant-context-divider {
    height: 1px;
    margin: 6px 4px;
    background: #3c4043;
}

.meeting-shell-active > .alert {
    position: fixed;
    top: 66px;
    left: 50%;
    z-index: 1090;
    width: min(560px, calc(100vw - 32px));
    margin: 0;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
    transform: translateX(-50%);
}

.meeting-shell-active .meeting-participants-section {
    flex: 1;
    min-height: 0;
    margin: 0 !important;
    transition: margin-right .18s ease;
}

.meeting-shell-active .meeting-presentation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
    gap: 12px;
    align-items: stretch;
}

.meeting-shell-active .meeting-participants-section > h2 {
    display: none;
}

.meeting-screen-stage {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #05070b;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.meeting-screen-stage-video {
    opacity: 1;
    object-fit: contain;
    background: #05070b;
}

.meeting-screen-stage-label {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 6;
    display: inline-flex;
    max-width: calc(100% - 24px);
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 7px 12px;
    overflow: hidden;
    color: #f1f3f4;
    font-size: .86rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(32, 33, 36, .82);
    border-radius: 999px;
}

.meeting-shell-active .meeting-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 12px;
    align-content: center;
    width: 100%;
    height: 100%;
    padding: 4px 0;
    overflow: auto;
}

.meeting-shell-active .meeting-presentation-layout .meeting-grid {
    grid-template-columns: 1fr;
    align-content: start;
    height: 100%;
    padding: 0;
}

.meeting-shell-active .meeting-grid:has(.meeting-participant-card:nth-child(1):last-child) {
    grid-template-columns: minmax(0, min(1180px, 100%));
    justify-content: center;
}

.meeting-shell-active .meeting-grid:has(.meeting-participant-card:nth-child(1):last-child) .meeting-participant-card {
    max-height: calc(100dvh - 188px);
}

.meeting-shell-active .meeting-participant-card {
    width: 100%;
    height: auto;
    min-height: 180px;
    aspect-ratio: 16 / 9;
    margin: 0 !important;
    overflow: hidden;
    background: #5b3f2b;
    border: 0 !important;
    border-radius: 18px !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04) !important;
}

.meeting-shell-active .meeting-participant-card:has(.participant-screen-video.participant-video-active) {
    grid-column: span 2;
    grid-row: span 2;
}

.meeting-shell-active .meeting-presentation-layout .meeting-participant-card,
.meeting-shell-active .meeting-presentation-layout .meeting-participant-card:has(.participant-screen-video.participant-video-active) {
    grid-column: auto;
    grid-row: auto;
    min-height: 150px;
    aspect-ratio: 16 / 9;
}

.meeting-shell-active .meeting-presentation-layout .participant-screen-video {
    display: none;
}

.meeting-shell-active .participant-local {
    box-shadow: inset 0 0 0 3px #a8c7fa, 0 18px 58px rgba(168, 199, 250, .18);
}

.meeting-shell-active .participant-speaking {
    border: 0 !important;
    box-shadow: inset 0 0 0 3px #81c995, 0 18px 58px rgba(129, 201, 149, .18);
}

.meeting-shell-active .participant-video {
    border-radius: inherit;
}

.meeting-shell-active .participant-overlay {
    justify-content: flex-end;
    padding: 14px !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .72));
}

.meeting-shell-active .participant-overlay > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.meeting-shell-active .participant-overlay .participant-label,
.meeting-shell-active .participant-overlay .text-monospace,
.meeting-shell-active .participant-overlay .mt-2,
.meeting-shell-active .participant-overlay .mt-3,
.meeting-shell-active .participant-metrics {
    display: none !important;
}

    .meeting-shell-active .participant-overlay .h5 {
        display: inline-flex;
        max-width: min(100%, 320px);
        min-height: 30px;
        align-items: center;
        padding: 6px 12px;
        margin: 0 !important;
        overflow: hidden;
        color: #f1f3f4;
        font-size: .9rem;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
        background: rgb(14 14 14 / 82%);
        border-radius: 999px;
        text-shadow: none;
    }

.meeting-shell-active .participant-local .participant-overlay .h5 {
    background: rgb(14 14 14 / 82%);
}

.meeting-shell-active .participant-status-indicators {
    top: 12px;
    right: 12px;
    gap: 7px;
}

.meeting-shell-active .participant-status-icon {
    width: 32px;
    height: 32px;
    border: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.meeting-shell-active .participant-hand-raised {
    right: 12px;
    bottom: 58px;
    width: 40px;
    height: 40px;
    color: #202124;
    font-size: 1.4rem;
    background: #fdd663;
    border: 0;
}

.meeting-shell-active .participant-card > .participant-admin-actions {
    z-index: 120 !important;
    gap: 10px;
    padding: 12px;
    background: rgba(32, 33, 36, .72);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.meeting-shell-active .participant-card > .participant-admin-actions > .participant-admin-action {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    background: rgba(60, 64, 67, .98);
    border: 0;
    border-radius: 999px;
}

.meeting-shell-active .participant-card > .participant-admin-actions > .participant-admin-action:hover,
.meeting-shell-active .participant-card > .participant-admin-actions > .participant-admin-action:focus {
    background: #d93025;
}

.meeting-controls-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1080;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 84px;
    padding: 12px 20px;
    color: #f1f3f4;
    background: linear-gradient(0deg, rgba(17, 18, 20, .98), rgba(17, 18, 20, .84) 70%, rgba(17, 18, 20, 0));
}

.meeting-controls-left,
.meeting-controls-center,
.meeting-controls-right {
    display: flex;
    align-items: center;
    min-width: 0;
}

.meeting-controls-left {
    gap: 10px;
    overflow: hidden;
    font-weight: 700;
}

.meeting-controls-left span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meeting-controls-divider {
    width: 1px;
    height: 18px;
    background: rgba(241, 243, 244, .42);
}

.meeting-controls-center {
    position: relative;
    justify-content: center;
    gap: 8px;
}

.meeting-controls-right {
    justify-content: flex-end;
}

.meeting-control-button {
    position: relative;
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #f1f3f4;
    background: #3c4043;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    cursor: pointer;
    transition: background-color .14s ease, color .14s ease, transform .14s ease;
}

.meeting-control-button:hover,
.meeting-control-button:focus {
    color: #fff;
    background: #5f6368;
    outline: 2px solid rgba(168, 199, 250, .65);
    outline-offset: 2px;
}

.meeting-control-button:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.meeting-control-active {
    color: #062e6f;
    background: #a8c7fa;
}

.meeting-control-button.meeting-control-active:hover,
.meeting-control-button.meeting-control-active:focus {
    color: #062e6f;
    background: #a8c7fa;
}

.meeting-control-active-danger {
    color: #fff;
    background: #d93025;
}

.meeting-control-button.meeting-control-active-danger:hover,
.meeting-control-button.meeting-control-active-danger:focus {
    color: #fff;
    background: #d93025;
}

.meeting-control-danger {
    width: 64px;
    color: #fff;
    background: #d93025;
}

.meeting-chat-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    padding: 0 5px;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    background: #d93025;
    border: 2px solid #111315;
    border-radius: 999px;
}

.meeting-reaction-picker,
.meeting-device-picker,
.meeting-screen-share-picker {
    position: relative;
    display: inline-flex;
}

.meeting-reaction-menu,
.meeting-device-menu,
.meeting-screen-share-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    z-index: 1095;
    display: flex;
    gap: 6px;
    padding: 8px;
    background: rgba(32, 33, 36, .96);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    box-shadow: 0 18px 54px rgba(0, 0, 0, .45);
    transform: translateX(-50%);
}

.meeting-screen-share-menu {
    left: 0;
    display: grid;
    min-width: 260px;
    gap: 4px;
    padding: 10px 0;
    color: #f1f3f4;
    border-radius: 4px;
    transform: translateX(-45%);
}

.meeting-screen-share-menu button {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 8px 16px;
    color: #f1f3f4;
    font-weight: 800;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.meeting-screen-share-menu button:hover,
.meeting-screen-share-menu button:focus {
    background: rgba(255, 255, 255, .08);
    outline: 0;
}

.meeting-screen-share-menu button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.meeting-screen-share-menu i {
    color: #bdc1c6;
    font-size: 1.1rem;
    text-align: center;
}

.meeting-device-menu {
    left: 0;
    display: grid;
    width: min(360px, calc(100vw - 28px));
    gap: 8px;
    padding: 14px;
    color: #f1f3f4;
    border-radius: 18px;
    transform: translateX(-42%);
}

.meeting-device-menu label {
    margin: 6px 0 0;
    color: #bdc1c6;
    font-size: .78rem;
    font-weight: 800;
}

.meeting-device-menu .custom-select {
    width: 100%;
    min-height: 42px;
    color: #f1f3f4;
    background-color: #303134;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
}

.meeting-reaction-menu button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    font-size: 1.35rem;
    line-height: 1;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .14s ease, transform .14s ease;
}

.meeting-reaction-menu button:hover,
.meeting-reaction-menu button:focus {
    background: rgba(255, 255, 255, .14);
    outline: 2px solid rgba(168, 199, 250, .7);
    outline-offset: 2px;
    transform: translateY(-2px);
}

.meeting-shell-active .reaction-float-layer {
    bottom: 96px;
}

.meeting-shell-active .chat-minimized-button {
    display: none;
}

.meeting-shell-active .chat-panel {
    top: 64px;
    right: 16px;
    bottom: 92px;
    z-index: 1075;
    width: min(360px, calc(100vw - 32px));
    height: auto;
    color: #e8eaed;
    background: #202124;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, .48);
}

.meeting-shell-active:has(.chat-panel) .meeting-participants-section {
    margin-right: 376px !important;
}

.meeting-shell-active .chat-header {
    min-height: 56px;
    padding: 16px 18px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.meeting-shell-active .chat-header span {
    font-size: 1rem;
}

.meeting-shell-active .chat-header-button {
    width: 36px;
    height: 36px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    background: transparent;
    border: 0;
    border-radius: 999px;
}

.meeting-shell-active .chat-header-button::before {
    color: #e8eaed;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f00d";
}

.meeting-shell-active .chat-messages {
    position: relative;
    padding: 14px 18px;
}

.chat-scroll-bottom-button {
    position: sticky;
    right: 0;
    bottom: 8px;
    left: 50%;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    margin: 8px auto 0;
    color: #062e6f;
    background: #a8c7fa;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .36);
}

.chat-scroll-bottom-button:hover,
.chat-scroll-bottom-button:focus {
    color: #062e6f;
    background: #d2e3fc;
    outline: 2px solid rgba(168, 199, 250, .65);
    outline-offset: 2px;
}

.meeting-shell-active .chat-message {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 8px;
    width: fit-content;
    max-width: 92%;
    padding: 8px 10px;
    margin-bottom: 8px;
    color: #f1f3f4;
    background: #303134;
    border-radius: 14px 14px 14px 4px;
}

.chat-message-avatar {
    grid-row: 1 / span 3;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    align-self: start;
}

.chat-message-avatar img,
.chat-message-avatar span {
    width: 32px;
    height: 32px;
}

.chat-message-avatar img {
    object-fit: cover;
}

.chat-message-avatar span {
    display: grid;
    place-items: center;
    color: #202124;
    font-size: .74rem;
    font-weight: 900;
    background: #a8c7fa;
}

.meeting-shell-active .chat-message > :not(.chat-message-avatar) {
    grid-column: 2;
}

.meeting-shell-active .chat-message-name {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 2px;
    color: #bdc1c6;
    font-size: .78rem;
}

.chat-message-time {
    color: #9aa0a6;
    font-size: .72rem;
    font-weight: 700;
}

.meeting-shell-active .chat-message-separator {
    display: none;
}

.meeting-shell-active .chat-message-system {
    display: block;
    width: 100%;
    max-width: 100%;
    color: #bdc1c6;
    text-align: center;
    background: transparent;
}

.meeting-shell-active .chat-composer {
    gap: 8px;
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.meeting-shell-active .chat-input {
    min-height: 44px;
    padding: 10px 14px;
    color: #f1f3f4;
    background: #303134;
    border-radius: 999px;
}

.meeting-shell-active .chat-send-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    overflow: hidden;
    color: transparent;
    background: #a8c7fa;
    border-radius: 999px;
}

.meeting-shell-active .chat-send-button::before {
    color: #062e6f;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f1d8";
}

@media (max-width: 1100px) {
    .prejoin-lobby {
        grid-template-columns: 1fr;
        align-content: center;
        width: min(640px, 100%);
        min-height: calc(100dvh - 36px);
        gap: 22px;
    }

    .prejoin-preview-card,
    .prejoin-card {
        min-height: 320px;
    }

    .prejoin-preview-wrap {
        margin-bottom: 66px;
    }

    .prejoin-card {
        width: min(640px, 100%);
        margin: 0 auto;
    }

    .meeting-shell-active .meeting-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    }

    .meeting-shell-active .meeting-participant-card:has(.participant-screen-video.participant-video-active) {
        grid-column: 1 / -1;
    }

    .meeting-shell-active .meeting-presentation-layout {
        grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
    }
}

@media (max-width: 900px) {
    .meeting-shell-prejoin {
        padding: 18px 12px;
        overflow-y: auto;
    }

    .prejoin-preview-card {
        height: 280px;
        min-height: 280px;
        border-radius: 16px !important;
    }

    .prejoin-card {
        padding: 18px;
        border-radius: 18px;
    }

    .meeting-shell-active {
        padding: 64px 10px 88px;
    }

    .meeting-topbar {
        min-height: 52px;
        padding: 8px 12px;
    }

    .meeting-room-title {
        flex: 1;
    }

    .meeting-shell-active:has(.chat-panel) .meeting-participants-section {
        margin-right: 0 !important;
    }

    .meeting-shell-active .chat-panel {
        top: 62px;
        right: 10px;
        bottom: 86px;
        left: 10px;
        width: auto;
        border-radius: 18px;
    }

    .meeting-shell-active .meeting-presentation-layout {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(220px, 1fr) auto;
    }

    .meeting-shell-active .meeting-presentation-layout .meeting-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        max-height: 190px;
    }

    .meeting-controls-bar {
        grid-template-columns: 1fr;
        gap: 8px;
        min-height: 80px;
        padding: 8px 10px 10px;
    }

    .meeting-controls-left,
    .meeting-controls-right {
        display: none;
    }

    .meeting-controls-center {
        gap: 6px;
        justify-content: center;
    }

    .meeting-control-button {
        width: 44px;
        height: 44px;
    }

    .meeting-screen-share-picker {
        display: none;
    }

    .meeting-control-danger {
        width: 56px;
    }
}

@media (max-width: 640px) {
    .meeting-shell-prejoin {
        padding: 14px 10px;
    }

    .prejoin-lobby {
        align-content: start;
        gap: 16px;
    }

    .prejoin-preview-wrap {
        gap: 14px;
    }

    .prejoin-preview-card {
        height: 230px;
        min-height: 230px;
        aspect-ratio: 4 / 3;
    }

    .prejoin-controls {
        gap: 8px;
    }

    .prejoin-card {
        gap: 14px;
        padding: 16px;
    }

    .meeting-shell-active {
        padding-right: 8px;
        padding-left: 8px;
    }

    .meeting-shell-active .meeting-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        align-content: start;
    }

    .meeting-shell-active .meeting-participant-card {
        min-height: 150px;
        border-radius: 14px !important;
    }

    .meeting-shell-active .participant-card > .participant-admin-actions {
        gap: 6px;
        padding: 8px;
    }

    .meeting-shell-active .participant-card > .participant-admin-actions > .participant-admin-action {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }

    .meeting-controls-center {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 4px 4px;
        scrollbar-width: none;
    }

    .meeting-controls-center::-webkit-scrollbar {
        display: none;
    }

    .meeting-control-button {
        flex: 0 0 auto;
    }

    .meeting-device-menu {
        position: fixed;
        right: 10px;
        bottom: 84px;
        left: 10px;
        width: auto;
        transform: none;
    }

    .meeting-screen-share-menu {
        left: 50%;
        min-width: min(280px, calc(100vw - 20px));
        transform: translateX(-50%);
    }
}
