/* EnterChatRooms — minimal dark theme */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0f1117;
    --bg-panel: #181b23;
    --bg-input: #10131a;
    --border: #2a2f3c;
    --text: #e5e7eb;
    --text-dim: #9ca3af;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --danger: #ef4444;
    --success: #22c55e;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
}
.logo { font-size: 1.2rem; font-weight: 700; color: var(--text); flex: none; white-space: nowrap; }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 1rem; }
.site-header nav a { color: var(--text-dim); }
.site-header nav a:hover { color: var(--text); text-decoration: none; }
.nav-user { font-weight: 600; }

/* Layout */
.container { max-width: 760px; width: 100%; margin: 0 auto; padding: 2rem 1.25rem; flex: 1; }
.container-wide { max-width: 1100px; width: 100%; margin: 0 auto; padding: 1rem 1.25rem; flex: 1; display: flex; flex-direction: column; }

/* Chat page shell: locks to the viewport so the chat + user list are always
   exactly full height — the page itself never scrolls, only the message list. */
body:has(.chat-shell) {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}
.chat-shell {
    flex: 1; min-height: 0; width: 100%; max-width: 1200px;
    margin: 0 auto; padding: 0.9rem 1.25rem;
    display: flex; flex-direction: column;
}

/* Footer */
.site-footer {
    text-align: center; padding: 1.25rem; color: var(--text-dim);
    font-size: 0.85rem; border-top: 1px solid var(--border);
}
.site-footer nav { margin-top: 0.4rem; }

/* Forms */
.form-card {
    background: var(--bg-panel); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.75rem; max-width: 420px; margin: 0 auto;
}
.form-card h1 { font-size: 1.4rem; margin-bottom: 1.25rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.3rem; }
input[type=text], input[type=email], input[type=password], input[type=date], select {
    width: 100%; padding: 0.6rem 0.75rem; border-radius: 8px;
    border: 1px solid var(--border); background: var(--bg-input); color: var(--text);
    font-size: 1rem;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }
.checkbox-field { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.85rem; color: var(--text-dim); }
.checkbox-field input { margin-top: 0.2rem; }

.btn {
    display: inline-block; background: var(--accent); color: #fff; border: none;
    padding: 0.65rem 1.4rem; border-radius: 8px; font-size: 1rem; font-weight: 600;
    cursor: pointer; text-align: center; white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.85rem; }
.link-btn { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 1rem; padding: 0; }
.link-btn:hover { color: var(--text); }
.inline-form { display: inline; }

.alert { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.4); color: var(--success); }
.alert-error { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.4); color: var(--danger); }
.error-text { color: var(--danger); font-size: 0.82rem; margin-top: 0.25rem; }

/* Color picker */
.color-picker { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.color-picker label { cursor: pointer; }
.color-picker input { display: none; }
.color-swatch {
    width: 28px; height: 28px; border-radius: 50%; display: block;
    border: 2px solid transparent;
}
.color-picker input:checked + .color-swatch { border-color: #fff; }

/* Hero (landing) */
.hero { text-align: center; padding: 3rem 0 2rem; }
.hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.hero h1 span { color: var(--accent); }
.hero p.tagline { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 2rem; }
.enter-form { max-width: 380px; margin: 0 auto; display: flex; gap: 0.5rem; }
.enter-form input { flex: 1; }
.hero-perks { margin-top: 2.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.perk {
    background: var(--bg-panel); border: 1px solid var(--border); border-radius: 10px;
    padding: 1rem 1.25rem; font-size: 0.9rem; color: var(--text-dim); max-width: 200px;
}
.perk strong { color: var(--text); display: block; margin-bottom: 0.25rem; }

/* Room list */
.room-list { display: grid; gap: 0.75rem; }
.room-card {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-panel); border: 1px solid var(--border);
    border-radius: 10px; padding: 1rem 1.25rem;
}
.room-card:hover { border-color: var(--accent); }
.room-card h2 { font-size: 1.05rem; }
.room-card .topic { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.2rem; }
.room-card .badge {
    font-size: 0.7rem; background: rgba(59,130,246,.15); color: var(--accent);
    padding: 0.15rem 0.5rem; border-radius: 99px; margin-left: 0.5rem; vertical-align: middle;
}
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.5rem; }

/* ============ Chat screen ============ */
.chat-wrap { display: flex; gap: 1rem; flex: 1; min-height: 0; }
.chat-main {
    flex: 1; display: flex; flex-direction: column; min-width: 0;
    background: var(--bg-panel); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
}

/* Header */
.chat-head {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 0.8rem 1.1rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(59,130,246,.06), transparent);
}
.chat-head-info { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.chat-head-titles { min-width: 0; }
.room-icon {
    width: 38px; height: 38px; border-radius: 10px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: rgba(59,130,246,.14); color: var(--accent);
    font-size: 1.3rem; font-weight: 700;
}
.chat-head h1 { font-size: 1.05rem; line-height: 1.2; }
.chat-head .topic {
    color: var(--text-dim); font-size: 0.8rem; display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px;
}
.chat-head-right { display: flex; align-items: center; gap: 0.75rem; flex: none; }
.online-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25);
    color: var(--success); font-size: 0.78rem; font-weight: 600;
    padding: 0.25rem 0.7rem; border-radius: 99px;
}
.pulse-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--success);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
    50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}
.chat-status { font-size: 0.75rem; color: var(--text-dim); }
.chat-status.connected { color: var(--success); }

/* Messages area */
.chat-messages {
    flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 1.1rem 0.5rem;
    display: flex; flex-direction: column; gap: 2px;
    scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 8px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.chat-messages::-webkit-scrollbar-thumb:hover { background: #3a4150; }

.room-intro { text-align: center; padding: 1.5rem 1rem 2rem; color: var(--text-dim); }
.room-intro-icon {
    width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 0.75rem;
    display: flex; align-items: center; justify-content: center;
    background: rgba(59,130,246,.12); color: var(--accent);
    font-size: 2rem; font-weight: 700;
}
.room-intro h2 { color: var(--text); font-size: 1.1rem; margin-bottom: 0.35rem; }
.room-intro p { font-size: 0.85rem; max-width: 420px; margin: 0 auto; line-height: 1.5; }

/* Message rows */
.mrow {
    display: flex; gap: 0.7rem; padding: 0.18rem 0.5rem;
    border-radius: 8px; margin-top: 0.55rem;
    animation: msg-in 0.18s ease-out;
}
.mrow:hover { background: rgba(255,255,255,.025); }
.mrow.grouped { margin-top: 0; padding-left: calc(34px + 0.5rem + 0.7rem); }
.mrow.own .mname { opacity: 0.95; }
@keyframes msg-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}
.avatar {
    width: 34px; height: 34px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.95rem; user-select: none; margin-top: 2px;
}
.avatar.clickable { cursor: pointer; }
.avatar.clickable:hover { filter: brightness(1.3); }
.avatar-sm { width: 22px; height: 22px; font-size: 0.7rem; margin-top: 0; }
.mbody { min-width: 0; flex: 1; }
.mhead { display: flex; align-items: baseline; gap: 0.5rem; }
.mname { font-weight: 600; font-size: 0.92rem; }
.mtime { color: var(--text-dim); font-size: 0.7rem; }
.mtext {
    font-size: 0.95rem; line-height: 1.5; color: var(--text);
    overflow-wrap: break-word; white-space: pre-wrap;
}

/* System chips */
.sys-row { text-align: center; margin: 0.45rem 0; }
.sys-chip {
    display: inline-block; font-size: 0.74rem; color: var(--text-dim);
    background: var(--bg-input); border: 1px solid var(--border);
    padding: 0.18rem 0.75rem; border-radius: 99px;
}

/* Typing + input */
.typing-bar {
    height: 1.3rem; padding: 0 1.25rem; font-size: 0.75rem;
    color: var(--text-dim); font-style: italic;
}
.chat-input-row {
    display: flex; gap: 0.6rem; padding: 0.6rem 0.9rem 0.9rem; align-items: center;
}
.chat-input-row input {
    flex: 1; border-radius: 12px; padding: 0.75rem 1rem;
    background: var(--bg-input); border: 1px solid var(--border);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.chat-input-row input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.send-btn {
    width: 44px; height: 44px; border-radius: 12px; border: none; flex: none;
    background: var(--accent); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, transform 0.1s;
}
.send-btn:hover:not(:disabled) { background: var(--accent-hover); }
.send-btn:active:not(:disabled) { transform: scale(0.93); }
.send-btn:disabled, .chat-input-row input:disabled { opacity: 0.45; cursor: not-allowed; }

/* Emoji picker + stickers */
.emoji-toggle {
    width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--bg-input); cursor: pointer; font-size: 1.3rem; flex: none;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.15s, transform 0.1s;
    filter: grayscale(1); opacity: 0.75;
}
.emoji-toggle:hover { border-color: var(--accent); filter: none; opacity: 1; }
.emoji-toggle:active { transform: scale(0.93); }
.emoji-panel {
    position: fixed; width: 320px; height: 340px; z-index: 70;
    background: var(--bg-panel); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,.55);
    display: flex; flex-direction: column; overflow: hidden;
    animation: msg-in 0.12s ease-out;
}
.emoji-tabs {
    display: flex; border-bottom: 1px solid var(--border); background: var(--bg-input);
}
.emoji-tabs button {
    flex: 1; background: none; border: none; padding: 0.55rem 0.25rem;
    font-size: 0.95rem; cursor: pointer; color: var(--text-dim);
    border-bottom: 2px solid transparent;
}
.emoji-tabs button.active { border-bottom-color: var(--accent); background: var(--bg-panel); color: var(--text); }
.emoji-tabs button:last-child { font-size: 0.72rem; font-weight: 600; }
.emoji-body { flex: 1; overflow-y: auto; padding: 0.5rem; }
.emoji-body::-webkit-scrollbar { width: 8px; }
.emoji-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji-grid button {
    background: none; border: none; font-size: 1.35rem; padding: 0.28rem 0;
    cursor: pointer; border-radius: 8px; line-height: 1;
}
.emoji-grid button:hover { background: rgba(255,255,255,.08); transform: scale(1.15); }
.sticker-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sticker-grid button { font-size: 2.3rem; padding: 0.45rem 0; }

.mtext.sticker { font-size: 2.8rem; line-height: 1.15; padding: 0.15rem 0; }
.sticker-inline { font-size: 2rem; line-height: 1.15; display: inline-block; vertical-align: middle; }
.pm-form { display: flex; align-items: center; }
.pm-form .emoji-toggle { width: 34px; height: 34px; border: none; border-radius: 0; font-size: 1.05rem; background: var(--bg-input); }
.pm-form input { flex: 1; }

/* Sidebar (left) — same height as the chat box, its own scroll */
.chat-side {
    width: 230px; background: var(--bg-panel); border: 1px solid var(--border);
    border-radius: 14px; padding: 0.9rem 0.7rem; flex: none;
    display: flex; flex-direction: column; min-height: 0;
}
.chat-side h3 {
    font-size: 0.72rem; text-transform: uppercase; color: var(--text-dim);
    margin: 0 0.35rem 0.25rem; letter-spacing: 0.07em;
}
.chat-side ul { list-style: none; flex: 1; min-height: 0; overflow-y: auto; }
.chat-side ul::-webkit-scrollbar { width: 8px; }
.chat-side ul::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.side-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 78;
}
.users-toggle {
    display: none; width: 38px; height: 38px; border-radius: 10px; flex: none;
    border: 1px solid var(--border); background: var(--bg-input);
    font-size: 1.05rem; cursor: pointer; align-items: center; justify-content: center;
}
.user-row {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.32rem 0.45rem; border-radius: 8px; font-size: 0.9rem;
}
.user-row:hover { background: rgba(255,255,255,.04); }
.user-row .user-btn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.you-tag, .reg-tag { font-size: 0.65rem; color: var(--text-dim); flex: none; }
.reg-tag { color: #f59e0b; }
.user-row .kick-btn { opacity: 0; transition: opacity 0.12s; }
.user-row:hover .kick-btn { opacity: 1; }
.kick-btn { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 0.72rem; flex: none; }
.kick-btn:hover { color: var(--danger); }

.side-hint { font-size: 0.72rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.user-btn {
    background: none; border: none; cursor: pointer; font-size: 0.9rem;
    padding: 0; text-align: left;
}
.user-btn:hover { text-decoration: underline; }

/* Private message boxes */
#pm-stack {
    position: fixed; bottom: 0; right: 1rem; display: flex;
    gap: 0.5rem; align-items: flex-end; z-index: 40;
}
.pm-box {
    width: 270px; background: var(--bg-panel); border: 1px solid var(--border);
    border-bottom: none; border-radius: 12px 12px 0 0; display: flex; flex-direction: column;
    box-shadow: 0 -4px 24px rgba(0,0,0,.5);
    animation: msg-in 0.15s ease-out;
}
.pm-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.5rem 0.65rem; border-bottom: 1px solid var(--border); cursor: pointer;
    background: linear-gradient(180deg, rgba(59,130,246,.07), transparent);
}
.pm-name { font-weight: 600; font-size: 0.88rem; }
.pm-actions { display: flex; gap: 0.35rem; }
.pm-actions button {
    background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 0.85rem;
}
.pm-actions button:hover { color: var(--text); }
.pm-messages {
    height: 180px; overflow-y: auto; padding: 0.5rem 0.6rem;
    display: flex; flex-direction: column; gap: 0.25rem;
}
.pm-messages .msg { font-size: 0.85rem; }
.pm-box form { border-top: 1px solid var(--border); }
.pm-box form input {
    border: none; border-radius: 0; background: var(--bg-input); font-size: 0.85rem;
}
.pm-box.minimized .pm-messages, .pm-box.minimized form { display: none; }

/* Call banner (incoming) */
.call-banner {
    position: fixed; top: 1rem; left: 50%; transform: translateX(-50%);
    background: var(--bg-panel); border: 1px solid var(--accent); border-radius: 10px;
    padding: 0.75rem 1rem; display: flex; gap: 0.75rem; align-items: center;
    z-index: 60; box-shadow: 0 4px 20px rgba(0,0,0,.5); font-size: 0.9rem;
}

/* Call overlay (active call) */
.call-overlay {
    position: fixed; inset: 0; background: rgba(10,12,16,.96); z-index: 50;
    display: flex; align-items: center; justify-content: center;
}
.call-overlay video#remote-video { max-width: 90%; max-height: 80%; border-radius: 12px; background: #000; }
.call-overlay video#local-video {
    position: absolute; bottom: 5.5rem; right: 1.5rem; width: 180px;
    border-radius: 10px; border: 1px solid var(--border); background: #000;
}
.call-controls {
    position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: 1rem; align-items: center;
}
#call-status { color: var(--text-dim); font-size: 0.9rem; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #dc2626; }
.hidden { display: none !important; }

/* Admin users + rooms */
.admin-stats { display: flex; gap: 1.5rem; color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1rem; }
.admin-stats strong { color: var(--text); }
.admin-search { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1rem; max-width: 480px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; background: var(--bg-panel); }
.admin-table th, .admin-table td { padding: 0.55rem 0.75rem; text-align: left; white-space: nowrap; }
.admin-table th { color: var(--text-dim); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border); }
.admin-table tbody tr { border-bottom: 1px solid var(--border); }
.admin-table tbody tr:last-child { border-bottom: none; }
.badge-danger { background: rgba(239,68,68,.15); color: var(--danger); }
.room-edit-grid { display: grid; grid-template-columns: 1fr 2fr auto auto; gap: 0.75rem; align-items: end; }
.room-edit-grid .field { margin-bottom: 0; }
.room-edit-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 0.75rem; }
@media (max-width: 700px) { .room-edit-grid { grid-template-columns: 1fr; } }

/* Admin reports */
.admin-ban-form { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1.5rem; }
.admin-ban-form input { width: auto; }
.report-card {
    background: var(--bg-panel); border: 1px solid var(--border); border-radius: 10px;
    padding: 1rem 1.25rem; margin-bottom: 1rem;
}
.report-card.resolved { opacity: 0.55; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.6rem; }
.report-meta { color: var(--text-dim); font-size: 0.78rem; margin-left: 0.5rem; }
.report-messages { border-top: 1px solid var(--border); padding-top: 0.6rem; display: flex; flex-direction: column; gap: 0.3rem; }
.report-messages .who { font-weight: 600; margin-right: 0.4rem; }

/* Static pages */
.prose h1 { font-size: 1.6rem; margin-bottom: 1rem; }
.prose h2 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.prose p, .prose li { color: var(--text-dim); line-height: 1.6; margin-bottom: 0.75rem; }
.prose ul { padding-left: 1.25rem; }

/* ============ Mobile ============ */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.6rem; }
    .site-header { padding: 0.6rem 0.9rem; gap: 0.6rem; }
    .site-header nav { gap: 0.7rem; }
    .site-header nav a, .site-header .link-btn { font-size: 0.88rem; }
    .logo { font-size: 1.05rem; }
    .btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; }

    .chat-shell { padding: 0.5rem; }
    .chat-wrap { gap: 0; }
    .chat-main { border-radius: 12px; }

    /* Sidebar becomes a slide-in drawer from the left */
    .chat-side {
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 80;
        width: min(270px, 80vw); border-radius: 0 16px 16px 0;
        transform: translateX(-102%); transition: transform 0.22s ease;
        box-shadow: 8px 0 30px rgba(0,0,0,.5);
    }
    .chat-side.open { transform: none; }
    .users-toggle { display: flex; }

    /* Compact header */
    .chat-head { padding: 0.6rem 0.7rem; gap: 0.5rem; }
    .room-icon { display: none; }
    .chat-head h1 { font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .chat-head .topic { display: none; }
    .chat-status { display: none; }
    .chat-head-titles { min-width: 0; }

    .chat-messages { padding: 0.7rem 0.6rem 0.4rem; }
    .mrow.grouped { padding-left: calc(34px + 0.5rem + 0.7rem); }
    .chat-input-row { padding: 0.5rem 0.55rem 0.65rem; gap: 0.45rem; }
    .chat-input-row input { padding: 0.65rem 0.85rem; font-size: 16px; } /* 16px stops iOS zoom */
    .send-btn, .emoji-toggle { width: 42px; height: 42px; }
    .typing-bar { padding: 0 0.8rem; }

    /* PM boxes fit the screen */
    #pm-stack { right: 0.5rem; left: 0.5rem; justify-content: flex-end; }
    .pm-box { width: min(280px, calc(100vw - 1rem)); }

    /* Emoji panel fits the screen */
    .emoji-panel { width: min(320px, calc(100vw - 12px)); height: min(340px, 55vh); }

    /* Call overlay */
    .call-overlay video#local-video { width: 110px; bottom: 6rem; right: 0.75rem; }
    .call-banner { width: calc(100vw - 1.5rem); justify-content: space-between; }
}
