/* ═══════════════════════════════════════════════════════════════════
   NEXUS MEET — Live Video Call Dashboard
   Typography: JetBrains Mono EVERYWHERE (100%)
   Responsive: 1400 → 1200 → 991 → 767 → 540 → 480 → 360px + landscape
═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

:root {
    --bg: #060810;
    --bg1: #0b0e17;
    --bg2: #0f1420;
    --bg3: #141a28;
    --bg4: #192030;
    --bg5: #1f2838;
    --bg6: #263042;

    --b0: rgba(255, 255, 255, 0.04);
    --b1: rgba(255, 255, 255, 0.08);
    --b2: rgba(255, 255, 255, 0.13);
    --ba: rgba(99, 202, 255, 0.3);

    --cy: #63caff;
    --cy1: rgba(99, 202, 255, 0.15);
    --cy2: rgba(99, 202, 255, 0.07);
    --vi: #a78bfa;
    --vi1: rgba(167, 139, 250, 0.15);
    --vi2: rgba(167, 139, 250, 0.07);
    --gn: #34d399;
    --gn1: rgba(52, 211, 153, 0.15);
    --gn2: rgba(52, 211, 153, 0.07);
    --ro: #fb7185;
    --ro1: rgba(251, 113, 133, 0.15);
    --ro2: rgba(251, 113, 133, 0.07);
    --am: #fbbf24;
    --am1: rgba(251, 191, 36, 0.15);
    --am2: rgba(251, 191, 36, 0.07);

    --t1: #eef2ff;
    --t2: #8892aa;
    --t3: #48546a;
    --t4: #2a3244;

    --rs: 5px;
    --r: 10px;
    --rl: 16px;
    --rx: 22px;

    --ez: cubic-bezier(0.4, 0, 0.2, 1);
    --ezs: cubic-bezier(0.34, 1.56, 0.64, 1);

    --sh: 0 8px 28px rgba(0, 0, 0, 0.55);
    --shg: 0 20px 60px rgba(0, 0, 0, 0.72);
    --shc: 0 0 22px rgba(99, 202, 255, 0.18);

    --tb-h: 56px;
    --cb-h: 70px;
    --lp-w: 66px;
    --rp-w: 300px;

    --f: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--f);
    background: var(--bg);
    color: var(--t1);
    font-size: 13px;
    line-height: 1.55;
    overflow: hidden;
    height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea,
label {
    font-family: var(--f);
}

/* ── GLOBAL BUTTON RESET ──────────────────────────────────────────
   This is the root cause of "weird buttons": without it every
   <button> falls back to the browser's grey bordered style (and
   fights with Bootstrap's reboot). All custom buttons below build
   on top of this clean slate. */
button {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    line-height: 1.4;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

button:focus {
    outline: none;
}

button:focus-visible {
    outline: 2px solid var(--cy);
    outline-offset: 2px;
    border-radius: var(--rs);
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── UNIFIED BUTTON DESIGN LANGUAGE ───────────────────────────────
   All call-screen buttons share: same font, same easing, same hover
   lift, same active press, same disabled handling. Variants only
   change colour / shape, never the fundamentals. */
.t-tab,
.lp-btn,
.lt-btn,
.tb-icon-btn,
.ctrl-btn,
.ctrl-btn-end,
.rp-tab,
.sec-tab,
.ph-invite,
.wr-btn,
.room-join,
.sb-stop,
.vt-action,
.wb-tool,
.ci-act,
.ci-send,
.md-close,
.mbtn,
.panel-fab {
    font-family: var(--f);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
    transition:
        background 0.16s var(--ez),
        border-color 0.16s var(--ez),
        color 0.16s var(--ez),
        transform 0.16s var(--ez),
        box-shadow 0.16s var(--ez),
        opacity 0.16s var(--ez);
}

.t-tab:active,
.lp-btn:active,
.lt-btn:active,
.tb-icon-btn:active,
.ctrl-btn:active,
.ctrl-btn-end:active,
.rp-tab:active,
.sec-tab:active,
.wr-btn:active,
.room-join:active,
.sb-stop:active,
.vt-action:active,
.wb-tool:active,
.ci-act:active,
.ci-send:active,
.md-close:active,
.mbtn:active {
    transform: scale(0.96);
}

::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg5);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--b2);
}

.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient::before {
    content: '';
    position: absolute;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(99, 202, 255, 0.045) 0%,
        transparent 68%
    );
    top: -220px;
    right: -120px;
    animation: gA 22s ease-in-out infinite alternate;
}

.ambient::after {
    content: '';
    position: absolute;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(167, 139, 250, 0.04) 0%,
        transparent 68%
    );
    bottom: -140px;
    left: -80px;
    animation: gB 26s ease-in-out infinite alternate;
}

.ambient-dot {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(52, 211, 153, 0.025) 0%,
        transparent 70%
    );
    top: 45%;
    left: 38%;
    transform: translate(-50%, -50%);
    animation: gA 19s ease-in-out infinite alternate-reverse;
}

@keyframes gA {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(55px, 38px) scale(1.14);
    }
}

@keyframes gB {
    from {
        transform: translate(0, 0) scale(1.1);
    }

    to {
        transform: translate(-44px, -28px) scale(1);
    }
}

.app {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
}

/* ════════════════════════════════════════════
   TOP BAR
════════════════════════════════════════════ */
.topbar {
    height: var(--tb-h);
    background: rgba(6, 8, 16, 0.92);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border-bottom: 1px solid var(--b0);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 50;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--cy), var(--vi));
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f);
    font-size: 15px;
    font-weight: normal;
    box-shadow: 0 0 18px rgba(99, 202, 255, 0.32);
}

.brand-name {
    font-family: var(--f);
    font-size: 17px;
    color: var(--t1);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.brand-name span {
    color: var(--cy);
}

.topbar-meeting {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: var(--bg3);
    border: 1px solid var(--b1);
    border-radius: var(--r);
    cursor: pointer;
    transition:
        border-color 0.18s,
        background 0.18s;
    flex-shrink: 0;
}

.topbar-meeting:hover {
    border-color: var(--ba);
    background: var(--bg4);
}

.meeting-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gn);
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--gn);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.78);
    }
}

.meeting-id {
    font-family: var(--f);
    font-size: 12px;
    color: var(--cy);
    letter-spacing: 0.7px;
}

.meeting-label {
    font-family: var(--f);
    font-size: 9.5px;
    color: var(--t3);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.topbar-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.rec-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ro);
    flex-shrink: 0;
    animation: recBlink 1.4s ease-in-out infinite;
}

@keyframes recBlink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.12;
    }
}

#timer {
    font-family: var(--f);
    font-size: 13px;
    color: var(--t2);
    letter-spacing: 0.5px;
}

.topbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.topbar-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--bg2);
    border: 1px solid var(--b1);
    border-radius: var(--r);
    padding: 3px;
}

.t-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    font-family: var(--f);
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: 0.2px;
    color: var(--t3);
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}

.t-tab:hover {
    color: var(--t2);
    background: var(--bg3);
    border-color: transparent;
}

.t-tab.active {
    background: var(--bg4);
    color: var(--t1);
    border-color: var(--b1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.t-tab i {
    font-size: 12px;
    line-height: 1;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

.tb-icon-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--b1);
    background: var(--bg2);
    background-color: var(--bg2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    color: var(--t2);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.tb-icon-btn i {
    line-height: 1;
    display: flex;
}

.tb-icon-btn:hover {
    border-color: var(--ba);
    color: var(--cy);
    background: var(--cy2);
    background-color: rgba(99, 202, 255, 0.07);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.n-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    border-radius: 7px;
    background: var(--ro);
    font-family: var(--f);
    font-size: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bg);
}

.tb-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, var(--vi));
    border: 2px solid var(--ba);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f);
    font-size: 11px;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.18s;
}

.tb-avatar:hover {
    border-color: var(--cy);
}

/* ════════════════════════════════════════════
   CONTENT AREA
════════════════════════════════════════════ */
.content-area {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ════════════════════════════════════════════
   LEFT ICON PANEL
════════════════════════════════════════════ */
.left-panel {
    width: var(--lp-w);
    background: var(--bg1);
    border-right: 1px solid var(--b0);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 0;
    gap: 3px;
    flex-shrink: 0;
    z-index: 10;
}

.lp-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 100%;
}

.lp-divider {
    width: 26px;
    height: 1px;
    background: var(--b0);
    margin: 6px 0;
}

.lp-spacer {
    flex: 1;
}

.lp-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    color: var(--t3);
    cursor: pointer;
    position: relative;
}

.lp-btn i {
    line-height: 1;
    display: flex;
}

.lp-btn:hover {
    background: var(--bg3);
    border-color: var(--b0);
    color: var(--t1);
    transform: translateX(1px);
}

.lp-btn.active {
    background: var(--cy1);
    border-color: rgba(99, 202, 255, 0.28);
    color: var(--cy);
    box-shadow: 0 0 14px rgba(99, 202, 255, 0.12);
}

.lp-btn.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 22px;
    background: var(--cy);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 8px var(--cy);
}

.lp-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 13px;
    height: 13px;
    border-radius: 7px;
    background: var(--ro);
    font-family: var(--f);
    font-size: 7px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bg1);
}

.lp-tooltip {
    position: absolute;
    left: calc(100% + 9px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg4);
    border: 1px solid var(--b1);
    padding: 4px 10px;
    border-radius: var(--rs);
    font-family: var(--f);
    font-size: 11px;
    color: var(--t1);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.14s;
    z-index: 200;
    box-shadow: var(--sh);
}

.lp-btn:hover .lp-tooltip {
    opacity: 1;
}

/* ════════════════════════════════════════════
   VIDEO AREA
════════════════════════════════════════════ */
.video-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg);
    position: relative;
    min-width: 0;
}

.share-banner {
    background: linear-gradient(90deg, var(--vi2), var(--cy2));
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: var(--rs);
    padding: 7px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 12px 0;
    flex-shrink: 0;
}

.sb-icon {
    font-size: 13px;
    color: var(--vi);
}

.sb-text {
    flex: 1;
    font-family: var(--f);
    font-size: 11.5px;
    color: var(--t2);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sb-text strong {
    color: var(--vi);
}

.sb-stop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--ro1);
    background-color: rgba(251, 113, 133, 0.15);
    color: var(--ro);
    border: 1px solid rgba(251, 113, 133, 0.3);
    border-radius: 50px;
    font-family: var(--f);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.sb-stop:hover {
    background: rgba(251, 113, 133, 0.24);
    background-color: rgba(251, 113, 133, 0.24);
    border-color: rgba(251, 113, 133, 0.5);
    transform: translateY(-1px);
}

.video-grid {
    flex: 1;
    padding: 10px;
    display: grid;
    gap: 8px;
    overflow: hidden;
    min-height: 0;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.video-grid.layout-gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.video-grid.layout-spotlight {
    grid-template-columns: 1fr 200px;
    grid-template-rows: repeat(3, 1fr);
}

.video-grid.layout-spotlight .video-tile:first-child {
    grid-row: 1 / 4;
    grid-column: 1;
}

.video-tile {
    background: var(--bg2);
    border: 1px solid var(--b0);
    border-radius: var(--rl);
    position: relative;
    overflow: hidden;
    transition:
        border-color 0.22s,
        box-shadow 0.22s,
        transform 0.18s var(--ezs);
    cursor: pointer;
    min-height: 0;
    min-width: 0;
}

.video-tile:hover {
    border-color: var(--b1);
    transform: scale(1.007);
}

.video-tile.speaking {
    border-color: var(--cy);
    box-shadow:
        0 0 0 2px rgba(99, 202, 255, 0.22),
        var(--shc);
}

.video-tile.pinned {
    border-color: var(--vi);
    box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.22);
}

.vt-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.3s;
}

.video-tile:hover .vt-bg {
    transform: scale(1.025);
}

.vt-bg-1 {
    background: linear-gradient(135deg, #0c1422, #172040, #0c1422);
}

.vt-bg-2 {
    background: linear-gradient(135deg, #100d1c, #1b1230, #100d1c);
}

.vt-bg-3 {
    background: linear-gradient(135deg, #0a1613, #0f2418, #0a1613);
}

.vt-bg-4 {
    background: linear-gradient(135deg, #170c0c, #241212, #170c0c);
}

.vt-bg-5 {
    background: linear-gradient(135deg, #100e0c, #1c1910, #100e0c);
}

.vt-bg-6 {
    background: linear-gradient(135deg, #0b101c, #121a2c, #0b101c);
}

.vt-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.5) 0,
        rgba(255, 255, 255, 0.5) 1px,
        transparent 0,
        transparent 50%
    );
    background-size: 18px 18px;
}

.vt-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.vt-av-circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f);
    font-size: 20px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.vt-av-circle::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid;
    opacity: 0.18;
    animation: avRing 3s ease-in-out infinite;
}

@keyframes avRing {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.18;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.05;
    }
}

.av-c {
    background: linear-gradient(135deg, #3b82f6, var(--vi));
    color: #fff;
}

.av-c::after {
    border-color: var(--vi);
}

.av-g {
    background: linear-gradient(135deg, #059669, var(--gn));
    color: #fff;
}

.av-g::after {
    border-color: var(--gn);
}

.av-r {
    background: linear-gradient(135deg, #dc2626, var(--ro));
    color: #fff;
}

.av-r::after {
    border-color: var(--ro);
}

.av-a {
    background: linear-gradient(135deg, #d97706, var(--am));
    color: #060810;
}

.av-a::after {
    border-color: var(--am);
}

.av-cy {
    background: linear-gradient(135deg, #0284c7, var(--cy));
    color: #060810;
}

.av-cy::after {
    border-color: var(--cy);
}

.vt-av-name {
    font-family: var(--f);
    font-size: 10.5px;
    color: var(--t3);
    letter-spacing: 0.4px;
}

.vt-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 10px 8px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        transparent 100%
    );
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
}

.vt-name {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--f);
    font-size: 11.5px;
    color: var(--t1);
    overflow: hidden;
    white-space: nowrap;
    max-width: 60%;
    flex-shrink: 1;
    min-width: 0;
}

/* raw text inside a flex row never truncates — the name gets its own
   shrinkable span so long names ellipsis instead of breaking the label */
.vt-name-txt {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
}

.vt-name > i {
    flex-shrink: 0;
}

.you-tag {
    background: var(--cy);
    color: var(--bg);
    font-family: var(--f);
    font-size: 8px;
    letter-spacing: 0.6px;
    padding: 1px 5px;
    border-radius: 3px;
    flex-shrink: 0;
}

.host-tag {
    background: var(--vi);
    color: #fff;
    font-family: var(--f);
    font-size: 8px;
    letter-spacing: 0.4px;
    padding: 1px 5px;
    border-radius: 3px;
    flex-shrink: 0;
}

.vt-badges {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.vt-badge {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.vt-badge.muted {
    background: var(--ro1);
    color: var(--ro);
}

.vt-badge.cam-off {
    background: var(--b0);
    color: var(--t3);
}

.vt-badge.hand {
    background: var(--am1);
    color: var(--am);
    animation: handWave 0.5s ease-in-out infinite alternate;
}

.vt-badge.share {
    background: var(--vi1);
    color: var(--vi);
}

@keyframes handWave {
    from {
        transform: rotate(-10deg);
    }

    to {
        transform: rotate(10deg);
    }
}

.vt-wave {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 2px;
    height: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.video-tile.speaking .vt-wave {
    opacity: 1;
}

.wave-bar {
    width: 2.5px;
    border-radius: 2px;
    background: var(--cy);
    animation: wv 0.6s ease-in-out infinite alternate;
}

.wave-bar:nth-child(1) {
    height: 4px;
    animation-delay: 0s;
}

.wave-bar:nth-child(2) {
    height: 10px;
    animation-delay: 0.1s;
}

.wave-bar:nth-child(3) {
    height: 7px;
    animation-delay: 0.05s;
}

.wave-bar:nth-child(4) {
    height: 12px;
    animation-delay: 0.15s;
}

.wave-bar:nth-child(5) {
    height: 5px;
    animation-delay: 0.08s;
}

@keyframes wv {
    from {
        transform: scaleY(0.28);
    }

    to {
        transform: scaleY(1);
    }
}

.vt-network {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    gap: 1.5px;
    height: 12px;
}

.net-bar {
    width: 3px;
    border-radius: 1px;
    background: var(--t4);
}

.net-bar:nth-child(1) {
    height: 3px;
}

.net-bar:nth-child(2) {
    height: 6px;
}

.net-bar:nth-child(3) {
    height: 9px;
}

.net-bar:nth-child(4) {
    height: 12px;
}

.net-good .net-bar {
    background: var(--gn);
}

.net-fair .net-bar:nth-child(-n + 3) {
    background: var(--am);
}

.net-fair .net-bar:nth-child(4) {
    background: var(--t4);
}

.net-poor .net-bar:nth-child(-n + 2) {
    background: var(--ro);
}

.net-poor .net-bar:nth-child(n + 3) {
    background: var(--t4);
}

.vt-hover-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.18s;
}

.video-tile:hover .vt-hover-actions {
    opacity: 1;
}

/* owner action bar lives on the tile too (top-right) — never stack the
   hover row on top of it, or every video shows duplicated mic/cam buttons */
.video-tile:has(> .owner-controls) .vt-hover-actions {
    display: none;
}

.vt-action {
    width: 28px;
    height: 28px;
    padding: 0;
    background: rgba(6, 10, 18, 0.72);
    background-color: rgba(6, 10, 18, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    color: var(--t2);
    cursor: pointer;
}

.vt-action i {
    line-height: 1;
    display: flex;
}

.vt-action:hover {
    border-color: var(--ba);
    color: var(--cy);
    background-color: rgba(99, 202, 255, 0.12);
    transform: translateY(-1px);
}

/* ════════════════════════════════════════════
   CONTROLS BAR
════════════════════════════════════════════ */
.controls-bar {
    height: var(--cb-h);
    background: rgba(6, 8, 16, 0.95);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    border-top: 1px solid var(--b0);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 7px;
    flex-shrink: 0;
    z-index: 20;
}

.ctrl-group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.ctrl-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px;
}

.ctrl-center::-webkit-scrollbar {
    display: none;
}

.ctrl-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 54px;
    height: 52px;
    padding: 6px 2px 5px;
    border-radius: 13px;
    font-size: 17px;
    line-height: 1;
    color: var(--t2);
    background: var(--bg3);
    background-color: var(--bg3);
    border: 1px solid var(--b1);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.ctrl-btn > i:first-child {
    font-size: 17px;
    line-height: 1;
    display: flex;
}

.ctrl-btn:hover {
    border-color: var(--b2);
    background: var(--bg4);
    background-color: var(--bg4);
    color: var(--t1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.ctrl-btn.active {
    background: var(--cy1);
    background-color: rgba(99, 202, 255, 0.15);
    border-color: rgba(99, 202, 255, 0.38);
    color: var(--cy);
    box-shadow: 0 0 16px rgba(99, 202, 255, 0.14);
}

.ctrl-btn.active:hover {
    background-color: rgba(99, 202, 255, 0.2);
}

.ctrl-btn.danger {
    background: var(--ro1);
    background-color: rgba(251, 113, 133, 0.15);
    border-color: rgba(251, 113, 133, 0.4);
    color: var(--ro);
    box-shadow: 0 0 16px rgba(251, 113, 133, 0.14);
}

.ctrl-btn.danger:hover {
    background: rgba(251, 113, 133, 0.22);
    background-color: rgba(251, 113, 133, 0.22);
    border-color: rgba(251, 113, 133, 0.55);
    color: var(--ro);
}

.ctrl-btn.active.danger {
    background-color: rgba(251, 113, 133, 0.15);
    border-color: rgba(251, 113, 133, 0.4);
    color: var(--ro);
    box-shadow: 0 0 16px rgba(251, 113, 133, 0.14);
}

.ctrl-btn-lbl {
    font-family: var(--f);
    font-size: 8.5px;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: capitalize;
    line-height: 1;
    opacity: 0.75;
}

.ctrl-arrow {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    line-height: 1;
    color: var(--t3);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

.ctrl-btn:hover .ctrl-arrow {
    color: var(--t1);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--b1);
}

.ctrl-btn.active .ctrl-arrow {
    color: var(--cy);
    background: rgba(99, 202, 255, 0.12);
}

.ctrl-btn.danger .ctrl-arrow {
    color: var(--ro);
    background: rgba(251, 113, 133, 0.12);
}

.ctrl-btn-end {
    width: 66px;
    height: 52px;
    padding: 6px 2px 5px;
    border-radius: 13px;
    background: linear-gradient(135deg, #e0304a, #b91c1c);
    background-color: #c81e3a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
}

.ctrl-btn-end > i {
    line-height: 1;
    display: flex;
}

.ctrl-btn-end:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.5);
    filter: brightness(1.08);
    border-color: rgba(255, 255, 255, 0.22);
}

.ctrl-btn-end .ctrl-btn-lbl {
    font-family: var(--f);
    font-size: 8.5px;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.85);
    opacity: 1;
}

.layout-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--bg2);
    background-color: var(--bg2);
    border: 1px solid var(--b1);
    border-radius: 9px;
    padding: 3px;
}

.lt-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    color: var(--t3);
    cursor: pointer;
}

.lt-btn i {
    line-height: 1;
    display: flex;
}

.lt-btn:hover {
    color: var(--t1);
    background: var(--bg3);
    background-color: var(--bg3);
}

.lt-btn.active {
    background: var(--bg4);
    background-color: var(--bg4);
    color: var(--cy);
    border-color: var(--b1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.ctrl-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.quality-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    background: var(--bg2);
    border: 1px solid var(--b1);
    border-radius: 50px;
    flex-shrink: 0;
}

.q-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gn);
    box-shadow: 0 0 7px var(--gn);
}

.q-label {
    font-family: var(--f);
    font-size: 11.5px;
    color: var(--gn);
    letter-spacing: 0.3px;
}

.q-res {
    font-family: var(--f);
    font-size: 11px;
    color: var(--t3);
    letter-spacing: 0.2px;
}

/* ════════════════════════════════════════════
   RIGHT PANEL
════════════════════════════════════════════ */
.right-panel {
    width: var(--rp-w);
    background: var(--bg1);
    border-left: 1px solid var(--b0);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
    min-height: 0;
}

.rp-tabs {
    display: flex;
    border-bottom: 1px solid var(--b0);
    flex-shrink: 0;
}

.rp-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 6px;
    font-family: var(--f);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: var(--t3);
    background: transparent;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}

.rp-tab i {
    font-size: 12px;
    line-height: 1;
}

.rp-tab:hover {
    color: var(--t1);
    background: var(--bg2);
    background-color: var(--bg2);
}

.rp-tab.active {
    color: var(--cy);
    border-bottom-color: var(--cy);
    background: rgba(99, 202, 255, 0.05);
    background-color: rgba(99, 202, 255, 0.05);
}

.rp-count {
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--ro);
    font-family: var(--f);
    font-size: 8.5px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.rp-tab.active .rp-count {
    background: var(--cy);
    color: var(--bg);
}

.rp-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 13px;
    min-height: 0;
}

.participants-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
}

.ph-title {
    font-family: var(--f);
    font-size: 9.5px;
    color: var(--t3);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ph-invite {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--f);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2px;
    line-height: 1;
    color: var(--cy);
    background: var(--cy1);
    background-color: rgba(99, 202, 255, 0.15);
    border: 1px solid rgba(99, 202, 255, 0.25);
    border-radius: 50px;
    padding: 6px 12px;
    cursor: pointer;
}

.ph-invite:hover {
    opacity: 1;
    background-color: rgba(99, 202, 255, 0.22);
    border-color: rgba(99, 202, 255, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 202, 255, 0.18);
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 8px;
    border-radius: var(--rs);
    cursor: default;
    margin-bottom: 2px;
    transition: background 0.13s;
}

.participant-item:hover {
    background: var(--bg3);
}

.pi-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f);
    font-size: 11.5px;
    flex-shrink: 0;
    position: relative;
}

.speak-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--cy);
    opacity: 0;
    transition: opacity 0.2s;
    animation: spkRing 1.1s ease-in-out infinite;
}

@keyframes spkRing {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

.participant-item.speaking .speak-ring {
    opacity: 1;
}

.pi-info {
    flex: 1;
    min-width: 0;
}

.pi-name {
    font-family: var(--f);
    font-size: 12px;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pi-role {
    font-family: var(--f);
    font-size: 9.5px;
    color: var(--t3);
    letter-spacing: 0.2px;
}

.pi-status {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.pi-icon {
    font-size: 11px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.pi-icon.muted {
    color: var(--ro);
    background: var(--ro1);
}

.pi-icon.cam {
    color: var(--t3);
    background: var(--bg3);
}

.pi-icon.ok {
    color: var(--gn);
}

.pi-hand {
    background: var(--am1);
    color: var(--am);
    animation: handWave 0.5s ease-in-out infinite alternate;
}

.badge-cy {
    background: var(--cy1);
    color: var(--cy);
    font-family: var(--f);
    font-size: 8px;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.badge-vi {
    background: var(--vi1);
    color: var(--vi);
    font-family: var(--f);
    font-size: 8px;
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
}

.wr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 50px;
    font-family: var(--f);
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.2px;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.wr-btn i {
    font-size: 10px;
    line-height: 1;
}

.wr-btn.accept {
    background: var(--gn1);
    background-color: rgba(52, 211, 153, 0.15);
    color: var(--gn);
    border-color: rgba(52, 211, 153, 0.3);
}

.wr-btn.accept:hover {
    background-color: rgba(52, 211, 153, 0.24);
    border-color: rgba(52, 211, 153, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.18);
    filter: none;
}

.wr-btn.deny {
    background: var(--bg4);
    background-color: var(--bg4);
    color: var(--t2);
    border-color: var(--b1);
}

.wr-btn.deny:hover {
    color: var(--t1);
    border-color: var(--b2);
    background-color: var(--bg5);
    filter: none;
}

.wr-btn:hover {
    filter: none;
}

.bottom-stats {
    border-top: 1px solid var(--b0);
    padding: 10px 13px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    flex-shrink: 0;
}

.stat-item {
    padding: 7px 8px;
    background: var(--bg2);
    border: 1px solid var(--b0);
    border-radius: var(--rs);
}

.stat-label {
    font-family: var(--f);
    font-size: 8.5px;
    color: var(--t3);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.stat-value {
    font-family: var(--f);
    font-size: 13px;
    color: var(--t1);
    line-height: 1.2;
}

.stat-value.good {
    color: var(--gn);
}

.stat-value.warn {
    color: var(--am);
}

.stat-sub {
    font-family: var(--f);
    font-size: 9px;
    color: var(--t3);
}

.chat-area {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-bottom: 4px;
}

.chat-msg {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.cm-av {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f);
    font-size: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cm-body {
    flex: 1;
    min-width: 0;
}

.cm-meta {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 3px;
}

.cm-name {
    font-family: var(--f);
    font-size: 12px;
    color: var(--t1);
}

.cm-time {
    font-family: var(--f);
    font-size: 10px;
    color: var(--t3);
    letter-spacing: 0.2px;
}

.cm-text {
    font-family: var(--f);
    font-size: 12.5px;
    color: var(--t2);
    line-height: 1.55;
    word-break: break-word;
}

.cm-text.hl {
    background: var(--cy1);
    border-left: 2px solid var(--cy);
    padding: 6px 10px;
    border-radius: 0 var(--rs) var(--rs) 0;
    color: var(--t1);
}

.cm-reaction {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--bg3);
    border: 1px solid var(--b1);
    border-radius: 50px;
    padding: 2px 7px;
    margin-top: 4px;
    font-family: var(--f);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.13s;
}

.cm-reaction:hover {
    border-color: var(--ba);
    background: var(--cy2);
}

.cm-reaction .cnt {
    font-family: var(--f);
    color: var(--t3);
}

.cm-file {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg3);
    border: 1px solid var(--b1);
    border-radius: var(--rs);
    padding: 7px 10px;
    margin-top: 4px;
    max-width: 220px;
}

.cm-file-ico {
    font-size: 17px;
    flex-shrink: 0;
}

.cm-file-nm {
    font-family: var(--f);
    font-size: 11.5px;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-file-sz {
    font-family: var(--f);
    font-size: 9.5px;
    color: var(--t3);
}

.typing-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.td {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--t3);
    animation: tdB 0.8s ease-in-out infinite;
}

.td:nth-child(2) {
    animation-delay: 0.15s;
}

.td:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes tdB {
    0%,
    80%,
    100% {
        transform: scale(0.78);
        opacity: 0.38;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.typing-text {
    font-family: var(--f);
    font-size: 10.5px;
    color: var(--t3);
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.chat-input-area {
    padding-top: 10px;
    border-top: 1px solid var(--b0);
    margin-top: 10px;
}

.chat-input-box {
    background: var(--bg3);
    border: 1px solid var(--b1);
    border-radius: var(--r);
    padding: 9px 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: border-color 0.18s;
}

.chat-input-box:focus-within {
    border-color: var(--ba);
}

.chat-input-box textarea {
    background: none;
    border: none;
    outline: none;
    color: var(--t1);
    font-family: var(--f);
    font-size: 12px;
    resize: none;
    line-height: 1.5;
    min-height: 34px;
    max-height: 88px;
}

.chat-input-box textarea::placeholder {
    color: var(--t3);
    font-family: var(--f);
}

.chat-input-actions {
    display: flex;
    align-items: center;
    gap: 3px;
}

.ci-act {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    color: var(--t3);
    cursor: pointer;
}

.ci-act i {
    line-height: 1;
    display: flex;
}

.ci-act:hover {
    background: var(--bg4);
    background-color: var(--bg4);
    border-color: var(--b0);
    color: var(--t1);
}

.ci-send {
    margin-left: auto;
    width: 30px;
    height: 30px;
    background: var(--cy);
    background-color: var(--cy);
    background-image: linear-gradient(135deg, var(--cy), #3b9edd);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    color: var(--bg);
    cursor: pointer;
    flex-shrink: 0;
}

.ci-send i {
    line-height: 1;
    display: flex;
}

.ci-send:hover {
    background: #8ee0ff;
    background-color: #8ee0ff;
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 4px 14px rgba(99, 202, 255, 0.35);
}

.sec-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
    background: var(--bg2);
    border: 1px solid var(--b0);
    border-radius: var(--rs);
    padding: 3px;
}

.sec-tab {
    flex: 1;
    text-align: center;
    padding: 6px;
    font-family: var(--f);
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.4px;
    line-height: 1.3;
    color: var(--t3);
    background: transparent;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
}

.sec-tab:hover {
    color: var(--t1);
    background-color: var(--bg3);
}

.sec-tab.active {
    background: var(--bg4);
    background-color: var(--bg4);
    color: var(--t1);
    border-color: var(--b1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.poll-card {
    background: var(--bg2);
    border: 1px solid var(--b1);
    border-radius: var(--r);
    padding: 12px;
    margin-bottom: 8px;
}

.poll-q {
    font-family: var(--f);
    font-size: 12.5px;
    color: var(--t1);
    margin-bottom: 11px;
}

.poll-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    cursor: pointer;
}

.po-wrap {
    flex: 1;
    height: 26px;
    background: var(--bg3);
    border: 1px solid var(--b0);
    border-radius: var(--rs);
    overflow: hidden;
    position: relative;
}

.po-bar {
    height: 100%;
    border-radius: var(--rs);
    transition: width 1s var(--ez);
}

.po-bar.c1 {
    background: linear-gradient(90deg, var(--cy2), rgba(99, 202, 255, 0.16));
}

.po-bar.c2 {
    background: linear-gradient(90deg, var(--vi2), rgba(167, 139, 250, 0.16));
}

.po-bar.c3 {
    background: linear-gradient(90deg, var(--gn2), rgba(52, 211, 153, 0.16));
}

.po-lbl {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--f);
    font-size: 11px;
    color: var(--t1);
    white-space: nowrap;
}

.po-pct {
    font-family: var(--f);
    font-size: 11.5px;
    color: var(--t2);
    min-width: 32px;
    text-align: right;
    flex-shrink: 0;
}

.poll-total {
    font-family: var(--f);
    font-size: 10px;
    color: var(--t3);
    margin-top: 5px;
}

.wb-preview {
    background: #0c0e17;
    border: 1px solid var(--b0);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    height: 148px;
}

.wb-canvas {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: crosshair;
}

.wb-dot {
    position: absolute;
    border-radius: 50%;
    animation: wbP 0.4s var(--ezs) forwards;
}

@keyframes wbP {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.wb-tools {
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    border: 1px solid var(--b0);
    border-radius: 50px;
    padding: 4px;
    z-index: 10;
}

.wb-tool {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    color: var(--t3);
    cursor: pointer;
}

.wb-tool i {
    line-height: 1;
    display: flex;
}

.wb-tool:hover,
.wb-tool.active {
    background: var(--bg4);
    background-color: var(--bg4);
    border-color: var(--b1);
    color: var(--cy);
}

.room-card {
    background: var(--bg2);
    border: 1px solid var(--b0);
    border-radius: var(--r);
    padding: 11px 12px;
    margin-bottom: 7px;
    transition: border-color 0.16s;
}

.room-card:hover {
    border-color: var(--b1);
}

.room-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.room-name {
    font-family: var(--f);
    font-size: 12.5px;
    color: var(--t1);
}

.room-cnt {
    font-family: var(--f);
    font-size: 10.5px;
    color: var(--t3);
}

.room-avs {
    display: flex;
}

.r-av {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--bg2);
    margin-left: -6px;
    font-family: var(--f);
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.r-av:first-child {
    margin-left: 0;
}

.room-join {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 13px;
    background: var(--cy1);
    background-color: rgba(99, 202, 255, 0.15);
    color: var(--cy);
    border: 1px solid rgba(99, 202, 255, 0.28);
    border-radius: 50px;
    font-family: var(--f);
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.2px;
    line-height: 1;
    cursor: pointer;
}

.room-join:hover {
    background: rgba(99, 202, 255, 0.22);
    background-color: rgba(99, 202, 255, 0.22);
    border-color: rgba(99, 202, 255, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 202, 255, 0.18);
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--b0);
}

.settings-row:last-child {
    border-bottom: none;
}

.sr-ico {
    width: 32px;
    height: 32px;
    border-radius: var(--rs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.sr-inf {
    flex: 1;
    min-width: 0;
}

.sr-lbl {
    font-family: var(--f);
    font-size: 12.5px;
    color: var(--t1);
}

.sr-val {
    font-family: var(--f);
    font-size: 10px;
    color: var(--t3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sr-sel {
    background: var(--bg3);
    border: 1px solid var(--b0);
    border-radius: var(--rs);
    color: var(--t2);
    font-family: var(--f);
    font-size: 11px;
    padding: 5px 8px;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    max-width: 130px;
    transition: border-color 0.16s;
    -webkit-appearance: none;
}

.sr-sel:focus {
    border-color: var(--ba);
}

.fm-lbl {
    font-family: var(--f);
    font-size: 9.5px;
    color: var(--t3);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.fm-inp {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--b0);
    border-radius: var(--rs);
    color: var(--t1);
    font-family: var(--f);
    font-size: 12px;
    padding: 9px 11px;
    outline: none;
    transition: border-color 0.16s;
}

.fm-inp:focus {
    border-color: var(--ba);
    box-shadow: 0 0 0 3px rgba(99, 202, 255, 0.07);
}

.fm-inp::placeholder {
    color: var(--t3);
}

.fm-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--b0);
    gap: 12px;
}

.fm-toggle:last-child {
    border-bottom: none;
}

.fmt-lbl {
    font-family: var(--f);
    font-size: 12.5px;
    color: var(--t1);
}

.fmt-sub {
    font-family: var(--f);
    font-size: 10px;
    color: var(--t3);
}

.tog {
    width: 38px;
    height: 20px;
    background: var(--bg5);
    border: 1px solid var(--b1);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.22s;
}

.tog::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--t3);
    transition: all 0.22s var(--ezs);
}

.tog.on {
    background: var(--cy);
    border-color: rgba(99, 202, 255, 0.42);
}

.tog.on::after {
    left: calc(100% - 16px);
    background: var(--bg);
}

.mbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 9px;
    font-family: var(--f);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.2px;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.mbtn i {
    font-size: 13px;
    line-height: 1;
}

.mbtn-cy {
    background: linear-gradient(135deg, var(--cy), #3b9edd);
    background-color: var(--cy);
    border-color: rgba(255, 255, 255, 0.12);
    color: #06121f;
    box-shadow: 0 2px 12px rgba(99, 202, 255, 0.26);
}

.mbtn-cy:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 202, 255, 0.4);
    filter: brightness(1.06);
}

.mbtn-gh {
    background: var(--bg4);
    background-color: var(--bg4);
    color: var(--t2);
    border-color: var(--b1);
}

.mbtn-gh:hover {
    color: var(--t1);
    border-color: var(--b2);
    background-color: var(--bg5);
    transform: translateY(-1px);
}

.mbtn-dn {
    background: linear-gradient(135deg, #e0304a, #b91c1c);
    background-color: #c81e3a;
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

.mbtn-dn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
    filter: brightness(1.07);
}

.mbtn-full {
    width: 100%;
    justify-content: center;
}

.btn-block-soft {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg3);
    background-color: var(--bg3);
    border: 1px solid var(--b0);
    color: var(--t2);
    border-radius: 9px;
    padding: 10px 14px;
    font-family: var(--f);
    font-size: 11.5px;
    letter-spacing: 0.2px;
    line-height: 1.4;
    cursor: pointer;
}

.btn-block-soft:hover {
    border-color: var(--b1);
    color: var(--t1);
    background-color: var(--bg4);
    transform: translateY(-1px);
}

.btn-block-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: linear-gradient(135deg, var(--cy), var(--vi));
    background-color: var(--cy);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #06121f;
    border-radius: 9px;
    padding: 11px 14px;
    font-family: var(--f);
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(99, 202, 255, 0.22);
}

.btn-block-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 202, 255, 0.35);
    filter: brightness(1.06);
}

.btn-block-danger-soft {
    width: 100%;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg3);
    background-color: var(--bg3);
    border: 1px solid rgba(251, 113, 133, 0.22);
    color: var(--ro);
    border-radius: 9px;
    padding: 10px 14px;
    font-family: var(--f);
    font-size: 11.5px;
    cursor: pointer;
}

.btn-block-danger-soft:hover {
    background-color: rgba(251, 113, 133, 0.12);
    border-color: rgba(251, 113, 133, 0.45);
}

.menu-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 13px;
    background: var(--bg3);
    background-color: var(--bg3);
    border: 1px solid var(--b0);
    border-radius: 9px;
    font-family: var(--f);
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--t1);
    cursor: pointer;
    text-align: left;
}

.menu-row:hover {
    border-color: var(--b1);
    background-color: var(--bg4);
    transform: translateY(-1px);
}

.menu-row i {
    font-size: 15px;
    width: 20px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.room-card-create {
    border-style: dashed;
    border-color: var(--b2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    gap: 8px;
    background: transparent;
    background-color: transparent;
    width: 100%;
    border-radius: var(--r);
    font-family: var(--f);
    font-size: 12px;
    color: var(--t3);
}

.room-card-create:hover {
    border-color: var(--ba);
    color: var(--cy);
    background-color: var(--cy2);
}

.room-card-create i {
    font-size: 15px;
    line-height: 1;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: var(--bg2);
    border: 1px solid var(--b2);
    border-radius: var(--rx);
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shg);
    animation: mdIn 0.24s var(--ezs);
    margin: auto;
}

@keyframes mdIn {
    from {
        opacity: 0;
        transform: scale(0.93) translateY(12px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.md-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 16px;
    border-bottom: 1px solid var(--b0);
}

.md-title {
    font-family: var(--f);
    font-size: 17px;
    color: var(--t1);
    letter-spacing: -0.3px;
}

.md-close {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 8px;
    background: var(--bg3);
    background-color: var(--bg3);
    border: 1px solid var(--b0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    color: var(--t3);
    cursor: pointer;
    flex-shrink: 0;
}

.md-close i {
    line-height: 1;
    display: flex;
}

.md-close:hover {
    background: var(--ro1);
    background-color: rgba(251, 113, 133, 0.15);
    border-color: rgba(251, 113, 133, 0.4);
    color: var(--ro);
}

.md-body {
    padding: 20px 22px;
    max-height: 74vh;
    overflow-y: auto;
    font-family: var(--f);
}

.md-ft {
    padding: 13px 22px;
    border-top: 1px solid var(--b0);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: var(--bg1);
    border-radius: 0 0 var(--rx) var(--rx);
    flex-wrap: wrap;
}

.tile-more {
    cursor: pointer;
}

.tile-more:hover {
    border-color: var(--ba);
    box-shadow: var(--shc);
    transform: scale(1.01);
}

.tile-more:focus-visible {
    outline: 2px solid var(--cy);
    outline-offset: 2px;
}

.tile-more-cta {
    font-family: var(--f);
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--cy);
    background: var(--cy1);
    background-color: rgba(99, 202, 255, 0.15);
    border: 1px solid rgba(99, 202, 255, 0.28);
    border-radius: 50px;
    padding: 5px 12px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

.tile-more-cta i {
    font-size: 13px;
    line-height: 1;
}

.tile-more:hover .tile-more-cta {
    background-color: rgba(99, 202, 255, 0.24);
    border-color: rgba(99, 202, 255, 0.5);
}

.modal-box-all {
    max-width: 560px;
}

.ap-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 7px;
    border-radius: 10px;
    background: var(--cy);
    background-color: var(--cy);
    color: #06121f;
    font-family: var(--f);
    font-size: 11px;
    vertical-align: middle;
    margin-left: 6px;
}

.ap-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.ap-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg3);
    background-color: var(--bg3);
    border: 1px solid var(--b0);
    border-radius: 9px;
    padding: 0 12px;
    min-width: 0;
}

.ap-search:focus-within {
    border-color: var(--ba);
    box-shadow: 0 0 0 3px rgba(99, 202, 255, 0.07);
}

.ap-search i {
    font-size: 13px;
    color: var(--t3);
    flex-shrink: 0;
}

.ap-search input {
    flex: 1;
    min-width: 0;
    background: none;
    background-color: transparent;
    border: none;
    outline: none;
    color: var(--t1);
    font-family: var(--f);
    font-size: 12.5px;
    padding: 10px 0;
}

.ap-search input::placeholder {
    color: var(--t3);
}

.mbtn.btn-sm {
    padding: 8px 13px;
    font-size: 11px;
    border-radius: 8px;
    flex-shrink: 0;
}

.ap-sec {
    font-family: var(--f);
    font-size: 9.5px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--t3);
    margin-bottom: 8px;
}

.ap-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 46vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 6px;
}

.ap-list .participant-item {
    border: 1px solid transparent;
    margin-bottom: 0;
}

.ap-list .participant-item:hover {
    background: var(--bg3);
    background-color: var(--bg3);
    border-color: var(--b0);
}

.ap-act {
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    color: var(--t3);
    cursor: pointer;
    flex-shrink: 0;
}

.ap-act i {
    line-height: 1;
    display: flex;
}

.ap-act:hover {
    background: var(--bg4);
    background-color: var(--bg4);
    border-color: var(--b1);
    color: var(--cy);
}

.ap-empty {
    font-family: var(--f);
    font-size: 12px;
    color: var(--t3);
    text-align: center;
    padding: 26px 10px;
}

.notif-pop {
    position: fixed;
    top: calc(var(--tb-h) + 12px);
    right: 16px;
    z-index: 400;
    width: 285px;
    background: var(--bg3);
    border: 1px solid var(--b2);
    border-radius: var(--rl);
    padding: 13px 15px;
    display: none;
    align-items: flex-start;
    gap: 10px;
    box-shadow: var(--shg);
    animation: npIn 0.28s var(--ezs);
}

.notif-pop.show {
    display: flex;
}

@keyframes npIn {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.np-ico {
    width: 32px;
    height: 32px;
    border-radius: var(--rs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.np-ico.join {
    background: var(--gn1);
    color: var(--gn);
}

.np-ico.hand {
    background: var(--am1);
    color: var(--am);
}

.np-ico.chat {
    background: var(--cy1);
    color: var(--cy);
}

.np-body {
    flex: 1;
    min-width: 0;
}

.np-title {
    font-family: var(--f);
    font-size: 12.5px;
    color: var(--t1);
    margin-bottom: 2px;
}

.np-sub {
    font-family: var(--f);
    font-size: 10.5px;
    color: var(--t2);
}

.np-acts {
    display: flex;
    gap: 6px;
    margin-top: 9px;
}

#toastWrap {
    position: fixed;
    bottom: calc(var(--cb-h) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 600;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    pointer-events: none;
}

.toast-pill {
    background: var(--bg3);
    border: 1px solid var(--b2);
    color: var(--t1);
    padding: 9px 16px;
    border-radius: 50px;
    font-family: var(--f);
    font-size: 11.5px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    pointer-events: all;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
    animation: tpIn 0.28s var(--ezs);
}

@keyframes tpIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.float-rxn {
    position: fixed;
    bottom: calc(var(--cb-h) + 16px);
    font-size: 30px;
    pointer-events: none;
    z-index: 300;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.28));
    animation: flUp 2.5s ease-out forwards;
}

@keyframes flUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    80% {
        opacity: 0.5;
    }

    100% {
        opacity: 0;
        transform: translateY(-165px) scale(1.3);
    }
}

.divider {
    height: 1px;
    background: var(--b0);
    margin: 9px 0;
}

.t-tiny {
    font-family: var(--f);
    font-size: 9.5px;
    color: var(--t3);
}

/* ════════════════════════════════════════════════════════════════
   COMPLETE RESPONSIVE SYSTEM — 7 BREAKPOINTS
════════════════════════════════════════════════════════════════ */

@media (min-width: 1400px) {
    :root {
        --rp-w: 320px;
    }

    .ctrl-btn {
        width: 56px;
        height: 56px;
        font-size: 19px;
    }

    .ctrl-btn-end {
        width: 68px;
        height: 56px;
        font-size: 19px;
    }

    .ctrl-btn-lbl {
        font-size: 9px;
    }

    .video-grid {
        gap: 10px;
        padding: 14px;
    }

    .vt-av-circle {
        width: 68px;
        height: 68px;
        font-size: 22px;
    }
}

@media (max-width: 1200px) {
    :root {
        --rp-w: 272px;
    }

    .topbar-tabs {
        display: none;
    }

    .ctrl-center {
        gap: 5px;
    }
}

@media (max-width: 991px) {
    :root {
        --lp-w: 0px;
        --rp-w: 248px;
    }

    .left-panel {
        display: none;
    }

    .video-grid.layout-spotlight {
        grid-template-columns: 1fr 175px;
    }

    .ctrl-btn-lbl {
        display: none;
    }

    .ctrl-btn {
        width: 46px;
        height: 46px;
        font-size: 17px;
    }

    .ctrl-btn-end {
        width: 56px;
        height: 46px;
        font-size: 17px;
    }

    .ctrl-arrow {
        display: none;
    }
}

@media (max-width: 767px) {
    :root {
        --tb-h: 52px;
        --cb-h: 60px;
        --rp-w: 0px;
    }

    .topbar-meeting,
    .topbar-timer,
    .topbar-center {
        display: none !important;
    }

    .brand-name {
        display: none;
    }

    .tb-icon-btn.tb-hide {
        display: none !important;
    }

    .right-panel {
        display: none;
        position: fixed;
        bottom: var(--cb-h);
        left: 0;
        right: 0;
        width: 100%;
        max-height: 56vh;
        border-left: none;
        border-top: 1px solid var(--b1);
        border-radius: var(--rx) var(--rx) 0 0;
        z-index: 35;
        background: var(--bg1);
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.55);
        animation: shUp 0.26s var(--ezs);
    }

    .right-panel.open {
        display: flex;
        flex-direction: column;
    }

    @keyframes shUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .rp-content {
        max-height: calc(56vh - 46px);
    }

    .video-grid,
    .video-grid.layout-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        padding: 7px;
        gap: 6px;
    }

    .video-grid.layout-spotlight {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 75px 75px 75px;
    }

    .video-grid.layout-spotlight .video-tile:first-child {
        grid-row: 1;
        grid-column: 1;
    }

    /* controls: every button stays reachable with proper touch targets
       (44px minimum). The center group scrolls horizontally on narrow
       screens instead of hiding features. */
    .controls-bar {
        padding: 0 8px;
        gap: 4px;
    }

    .ctrl-group:first-child,
    .ctrl-right {
        display: flex;
    }

    .quality-pill {
        display: none;
    }

    .ctrl-center .d-none.d-md-flex {
        display: flex !important;
    }

    .ctrl-btn {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .ctrl-btn > i:first-child {
        font-size: 18px;
    }

    .ctrl-btn-end {
        width: 58px;
        height: 46px;
        font-size: 18px;
    }

    .lt-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .wb-tool {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    #ownerAllBar button {
        min-width: 44px;
        min-height: 40px;
        font-size: 14px !important;
    }

    .owner-controls button {
        min-width: 34px;
        min-height: 32px;
    }

    .ctrl-btn-lbl {
        display: none;
    }

    .ctrl-center {
        gap: 4px;
        /* centered + overflowing flex hides the FIRST buttons (mic/cam)
           off the left edge with no way to scroll back — left-align so
           every button stays reachable via horizontal scroll */
        justify-content: flex-start;
    }

    .vt-av-circle {
        width: 48px;
        height: 48px;
        font-size: 17px;
    }

    .vt-info {
        padding: 14px 8px 6px;
    }

    .vt-name {
        font-size: 10.5px;
        max-width: 55%;
    }

    .modal-box {
        border-radius: var(--rx) var(--rx) 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        margin: 0;
        animation: shUp 0.24s var(--ezs);
    }

    .modal-overlay.open {
        align-items: flex-end;
        padding: 0;
    }

    .md-body {
        max-height: 64vh;
    }

    .notif-pop {
        left: 12px;
        right: 12px;
        width: auto;
    }

    .panel-fab {
        position: fixed;
        right: 14px;
        bottom: calc(var(--cb-h) + 14px);
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: var(--bg3);
        border: 1px solid var(--ba);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 17px;
        color: var(--cy);
        z-index: 40;
        cursor: pointer;
        box-shadow: var(--shc);
        animation: npIn 0.28s var(--ezs);
    }
}

@media (max-width: 540px) {
    .ctrl-btn {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }

    .ctrl-btn > i:first-child {
        font-size: 17px;
    }

    .ctrl-btn-end {
        width: 56px;
        height: 44px;
        font-size: 17px;
    }

    .vt-av-circle {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .vt-badge {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }

    .you-tag,
    .host-tag {
        font-size: 9px;
        padding: 2px 5px;
        white-space: nowrap;
    }

    /* owner bar: keep the crown label visible and tappable on phones,
       and keep per-tile controls inside small tiles */
    #ownerAllBar {
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    #ownerAllBar > span:first-child {
        font-size: 16px;
        flex-shrink: 0;
    }

    .owner-controls {
        max-width: calc(100% - 12px);
    }
}

@media (max-width: 480px) {
    :root {
        --tb-h: 48px;
        --cb-h: 56px;
    }

    .topbar {
        padding: 0 9px;
        gap: 6px;
    }

    .brand-mark {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }

    .tb-icon-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .tb-avatar {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .video-grid,
    .video-grid.layout-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 5px;
        padding: 6px;
    }

    .video-grid.layout-spotlight .video-tile:first-child {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .video-grid.layout-spotlight {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr 72px 72px;
    }

    .ctrl-btn {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }

    .ctrl-btn > i:first-child {
        font-size: 17px;
    }

    .ctrl-btn-end {
        width: 56px;
        height: 44px;
        font-size: 17px;
    }

    .controls-bar {
        padding: 0 8px;
        gap: 3px;
    }

    .vt-av-circle {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .vt-name {
        font-size: 9.5px;
    }

    .wave-bar {
        width: 2px;
    }

    .notif-pop {
        width: calc(100vw - 24px);
        left: 12px;
        right: 12px;
    }

    #toastWrap {
        width: calc(100vw - 32px);
    }

    .toast-pill {
        font-size: 10.5px;
        padding: 8px 13px;
        text-align: center;
        white-space: normal;
    }
}

@media (max-width: 360px) {
    :root {
        --tb-h: 44px;
        --cb-h: 56px;
    }

    .ctrl-btn {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }

    .ctrl-btn > i:first-child {
        font-size: 17px;
    }

    .ctrl-btn-end {
        width: 54px;
        height: 44px;
        font-size: 17px;
    }

    .video-grid {
        gap: 4px;
        padding: 5px;
    }

    .vt-av-circle {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .vt-info {
        padding: 10px 6px 5px;
    }

    .brand-mark {
        display: none;
    }
}

@media (max-height: 480px) and (orientation: landscape) {
    :root {
        --tb-h: 44px;
        --cb-h: 50px;
    }

    .video-grid,
    .video-grid.layout-gallery {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: 1fr;
    }

    .video-grid.layout-spotlight {
        grid-template-columns: 2fr repeat(4, 1fr);
        grid-template-rows: 1fr;
    }

    .video-grid.layout-spotlight .video-tile:first-child {
        grid-row: 1;
        grid-column: 1;
    }

    .topbar-meeting {
        display: none;
    }

    .ctrl-btn {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }

    .ctrl-btn > i:first-child {
        font-size: 17px;
    }

    .ctrl-btn-end {
        width: 54px;
        height: 44px;
    }

    .right-panel {
        max-height: 100%;
    }

    .vt-av-circle {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* ── UI CAPITALIZATION — markup is written lowercase; interface chrome
   renders capitalized. Data content (names, table cells, chat, code,
   inputs) is intentionally untouched. ── */
.rp-tab,
.sec-tab,
.drop-item,
.wr-btn,
.ph-invite,
.tile-more-cta,
.md-title,
.ctrl-btn-lbl {
    text-transform: capitalize;
}

.toast-msg::first-letter {
    text-transform: uppercase;
}
