:root {
    --bg: #111418;
    --panel: #1b1f24;
    --panel-soft: #242a31;
    --ink: #f1f3f4;
    --muted: #a8b0ba;
    --line: #30363d;
    --accent: #a8c7fa;
    --danger: #f28b82;
    --meet-font: "Google Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    min-height: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    padding: 0;
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(168, 199, 250, 0.08), transparent 32%),
        radial-gradient(circle at bottom right, rgba(95, 99, 104, 0.22), transparent 34%),
        var(--bg);
    color: var(--ink);
    font-family: var(--meet-font);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

/* Sahne solda buyuk, katilimciler sagda dikey seritte. */
.meeting-body {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 236px;
    grid-template-rows: 24px minmax(0, 1fr);
    gap: 10px 12px;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    padding: 12px 14px 92px;
}

/* Bekleme odasi: prejoin gibi tum ekrani kaplar, sahneyi gizlemez sadece onune gecer. */
.lobby-screen {
    position: fixed;
    inset: 0;
    z-index: 32;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 30% 15%, rgba(168, 199, 250, 0.12), transparent 34%),
        rgba(10, 14, 19, 0.96);
}

.lobby-card {
    display: grid;
    gap: 14px;
    justify-items: center;
    max-width: 480px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: var(--panel);
    padding: 32px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.lobby-card h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(20px, 2.6vw, 26px);
    line-height: 1.25;
}

.lobby-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.lobby-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(168, 199, 250, 0.25);
    border-top-color: var(--accent);
    border-radius: 999px;
    animation: lobby-spin 900ms linear infinite;
}

.lobby-screen.is-denied .lobby-spinner {
    border-color: rgba(242, 139, 130, 0.3);
    border-top-color: var(--danger);
    animation: none;
}

@keyframes lobby-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .lobby-spinner { animation: none; }
}

/* Host icin bekleyenler kuyrugu: katilimci seridinin ustunde durur. */
.lobby-queue {
    flex: 0 0 auto;
    display: grid;
    gap: 8px;
    border: 1px solid rgba(168, 199, 250, 0.35);
    border-radius: 12px;
    background: rgba(168, 199, 250, 0.1);
    padding: 10px;
}

.lobby-queue header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lobby-queue header button {
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #07111f;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 900;
    text-transform: none;
    letter-spacing: 0;
}

.lobby-person {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 6px;
}

.lobby-person span {
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lobby-person button {
    border: 0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 850;
}

.lobby-admit { background: var(--accent); color: #07111f; }
.lobby-deny { background: var(--panel-soft); color: var(--danger); }

.side-tab.has-waiting::after {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    content: "";
}

.meeting-title {
    grid-column: 1 / -1;
}

.meeting-body > .stage {
    grid-column: 1;
    grid-row: 2;
}

.meeting-body > .side-panel {
    grid-column: 2;
    grid-row: 2;
}

/* Sohbet acikken kolon genisler; sahne yine de mumkun oldugunca buyuk kalir. */
.meeting-body.chat-open {
    grid-template-columns: minmax(0, 1fr) 320px;
}

/* Cift tik veya buyut dugmesi: oda basligi ve katilimci seridi gizlenir,
   sahne tum alani doldurur. */
body.is-theater .meeting-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 12px 92px;
}

body.is-theater .meeting-title,
body.is-theater .side-panel {
    display: none;
}

.meeting-body:fullscreen {
    padding: 0 0 92px;
    gap: 0;
}

.meeting-body:fullscreen > .stage {
    border: 0;
    border-radius: 0;
}

.prejoin-screen {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 28px;
    align-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at 20% 10%, rgba(168, 199, 250, 0.12), transparent 32%),
        #111418;
}

.prejoin-screen.is-hidden {
    display: none;
}

.prejoin-preview {
    position: relative;
    min-height: 280px;
    height: min(62vh, 620px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: #05070a;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}

.prejoin-preview video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prejoin-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(168, 199, 250, 0.12), rgba(52, 168, 83, 0.08)),
        #111820;
}

.prejoin-placeholder span {
    display: grid;
    width: 104px;
    height: 104px;
    place-items: center;
    border-radius: 999px;
    background: #2b3037;
    color: #e8eaed;
    font-size: 44px;
    font-weight: 900;
}

.prejoin-panel {
    display: grid;
    gap: 18px;
    align-content: center;
}

.prejoin-kicker {
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.prejoin-panel h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.06;
}

.prejoin-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.prejoin-panel input {
    min-height: 48px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    color: var(--ink);
    padding: 0 14px;
}

.prejoin-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.join-primary {
    min-height: 52px;
    min-width: 132px;
    border: 0;
    border-radius: 999px;
    background: #a8c7fa;
    color: #07111f;
    padding: 0 22px;
    font-weight: 900;
}

.join-primary:disabled {
    cursor: not-allowed;
    background: #30363d;
    color: #8b949e;
}

.blocked-body {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100dvh;
    padding: 24px 18px;
}

.blocked-card {
    display: grid;
    gap: 14px;
    justify-items: start;
    max-width: 560px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: var(--panel);
    padding: 30px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.blocked-kicker {
    color: var(--danger);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blocked-card h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.15;
}

.blocked-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.blocked-reason {
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--muted);
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 800;
}

.meeting-title {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.stage {
    position: relative;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: #05070a;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.stage::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.24;
    content: "";
}

.main-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #05070a;
}

.main-video.is-off {
    display: none;
}

.stage-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 10px;
    background:
        linear-gradient(135deg, rgba(168, 199, 250, 0.1), rgba(52, 168, 83, 0.06)),
        #0b1016;
}

.stage-placeholder span:first-child {
    display: grid;
    width: 116px;
    height: 116px;
    place-items: center;
    border-radius: 999px;
    background: #2b3037;
    color: #e8eaed;
    font-size: 48px;
    font-weight: 900;
}

.stage-placeholder strong {
    color: var(--ink);
    font-size: 20px;
}

.stage-placeholder-hint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.annotation-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.share-bar {
    position: absolute;
    left: 50%;
    top: 12px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 24px);
    overflow-x: auto;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(11, 16, 22, 0.82);
    padding: 6px 8px;
    backdrop-filter: blur(12px);
}

.share-bar-title {
    flex: 0 0 auto;
    padding-left: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.share-chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    max-width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--ink);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.share-chip svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.8;
}

.share-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-chip.is-active {
    border-color: var(--accent);
    background: rgba(168, 199, 250, 0.18);
    color: #d7e5ff;
}

.stage-overlay {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 24px);
}

.stage-label {
    min-width: 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stage-pin {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0;
}

.stage-pin svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.stage-pin.is-active {
    border-color: var(--accent);
    background: rgba(168, 199, 250, 0.22);
    color: #d7e5ff;
}

.presenter-pip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    width: clamp(140px, 18%, 240px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: #05070a;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}

.presenter-pip video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #05070a;
}

.presenter-pip span {
    position: absolute;
    left: 8px;
    bottom: 7px;
    max-width: calc(100% - 16px);
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remote-audio-sink {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.annotation-canvas.is-active {
    cursor: crosshair;
    pointer-events: auto;
}

.empty-stage {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 8px;
    color: var(--muted);
    text-align: center;
}

.empty-stage strong {
    color: var(--ink);
    font-size: clamp(24px, 4vw, 42px);
}

.side-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    gap: 8px;
}

.side-tabs {
    display: flex;
    flex: 0 0 auto;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: var(--panel);
}

.side-tab {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    padding: 0 10px;
    font-size: 12px;
    font-weight: 850;
}

.side-tab.is-active {
    background: var(--panel-soft);
    color: var(--ink);
}

.side-tab-count {
    min-width: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 900;
}

.side-tab-badge {
    min-width: 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #07111f;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 900;
}

.chat-panel {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    gap: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: var(--panel);
    padding: 10px;
}

.chat-log {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
}

.chat-empty {
    margin: auto 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.chat-message {
    display: grid;
    gap: 3px;
    max-width: 92%;
    border-radius: 12px;
    background: var(--panel-soft);
    padding: 8px 10px;
}

.chat-message.is-own {
    margin-left: auto;
    background: rgba(168, 199, 250, 0.16);
}

.chat-message header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.chat-author {
    overflow: hidden;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-message.is-own .chat-author {
    color: #d7e5ff;
}

.chat-time {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.chat-text {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.chat-form {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.chat-form input {
    flex: 1;
    min-width: 0;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--ink);
    padding: 0 14px;
    font-size: 13px;
}

.chat-form input:disabled {
    opacity: 0.55;
}

.chat-form button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #07111f;
}

.chat-form button:disabled {
    cursor: not-allowed;
    background: var(--panel-soft);
    color: var(--muted);
}

.chat-form button svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.remote-users {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px;
    background: transparent;
    scrollbar-width: thin;
}

.remote-user {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: var(--panel);
    padding: 0;
}

.remote-user video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #05070a;
}

.remote-user.is-muted video {
    opacity: 0;
}

.remote-user.is-muted::before {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    content: "Kamera kapali";
}

.remote-user::after {
    position: absolute;
    left: 8px;
    bottom: 7px;
    max-width: calc(100% - 16px);
    overflow: hidden;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
    content: attr(data-label);
}

.remote-user.is-speaking {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(168, 199, 250, 0.28);
}

.remote-user.is-screen video {
    object-fit: contain;
    background: #05070a;
}

.remote-user.is-screen::after {
    background: rgba(52, 168, 83, 0.78);
}

.remote-user.is-on-stage {
    border-color: rgba(168, 199, 250, 0.85);
}

.tile-badge {
    position: absolute;
    right: 6px;
    top: 6px;
    display: none;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    background: rgba(168, 199, 250, 0.92);
    color: #07111f;
}

.tile-badge svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.remote-user.is-pinned .tile-badge {
    display: grid;
}

.remote-user.is-pinned {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(168, 199, 250, 0.32);
}

.tile-mic {
    position: absolute;
    left: 6px;
    top: 6px;
    display: none;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 999px;
    background: rgba(242, 139, 130, 0.92);
    color: #2b0f0d;
}

.tile-mic svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.remote-user.is-audio-muted .tile-mic {
    display: grid;
}

.meeting-controls {
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 66px;
    max-width: calc(100vw - 24px);
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(27, 31, 36, 0.86);
    padding: 7px 10px;
    backdrop-filter: blur(14px);
}

.settings-panel {
    position: fixed;
    left: 18px;
    top: 96px;
    z-index: 45;
    display: grid;
    width: min(360px, calc(100vw - 28px));
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(27, 31, 36, 0.98);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.44);
}

.settings-panel label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.settings-panel select {
    min-height: 40px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-soft);
    color: var(--ink);
    padding: 0 10px;
    font: inherit;
}

.settings-toggle {
    display: flex !important;
    grid-template-columns: none;
    align-items: center;
    gap: 10px !important;
    color: var(--ink) !important;
}

.control-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 52px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}

.control-button svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.control-button.is-off {
    background: #3a2426;
    color: var(--danger);
}

.control-button.is-off::after {
    position: absolute;
    width: 26px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
    content: "";
}

.control-button.is-active {
    background: #2b4a36;
    color: #81c995;
}

.control-button.danger {
    background: #c5221f;
    color: #fff;
}

@media screen and (max-width: 720px) {
    /* Dar ekranda sag serit yerine klasik alt serit. */
    .meeting-body {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 22px minmax(0, 1fr) 84px;
        padding: 10px 10px 104px;
    }

    /* Dar ekranda panel alta gecer; sohbet acikken tum alani kaplar. */
    .meeting-body > .side-panel {
        grid-column: 1;
        grid-row: 3;
    }

    .meeting-body .remote-users {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .meeting-body.chat-open {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 22px minmax(0, 1fr) minmax(0, 260px);
    }

    .side-tabs {
        border-radius: 10px;
    }

    body.is-theater .meeting-body {
        grid-template-rows: minmax(0, 1fr);
        padding: 10px 10px 96px;
    }

    .prejoin-screen {
        inset: 0;
        grid-template-columns: 1fr;
        gap: 18px;
        align-content: start;
        overflow-y: auto;
        padding: 16px;
    }

    .prejoin-preview {
        height: min(44vh, 360px);
        min-height: 220px;
        border-radius: 18px;
    }

    .prejoin-panel {
        gap: 14px;
    }

    .remote-user {
        width: 128px;
    }

    .meeting-controls {
        width: calc(100vw - 20px);
        gap: 6px;
        border-radius: 999px;
        padding: 8px;
    }

    .control-button {
        min-width: 44px;
        width: 44px;
        height: 44px;
        padding: 0;
    }

    .settings-panel {
        left: 10px;
        top: 96px;
    }

    .share-bar {
        top: 8px;
        gap: 6px;
        padding: 5px 6px;
    }

    .share-bar-title {
        display: none;
    }

    .share-chip {
        max-width: 150px;
        padding: 5px 10px;
        font-size: 11px;
    }

    .presenter-pip {
        right: 8px;
        bottom: 8px;
        width: 108px;
        border-radius: 10px;
    }

    .stage-overlay {
        left: 8px;
        bottom: 8px;
        gap: 6px;
        max-width: calc(100% - 126px);
    }

    .stage-pin {
        width: 32px;
        height: 32px;
    }

    .stage-label {
        padding: 6px 10px;
        font-size: 11px;
    }

    .stage-placeholder span:first-child {
        width: 84px;
        height: 84px;
        font-size: 34px;
    }
}

@media screen and (min-width: 721px) and (max-width: 1024px) {
    .meeting-body {
        grid-template-columns: minmax(0, 1fr) 190px;
        padding-bottom: 100px;
    }

    .meeting-body.chat-open {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .prejoin-screen {
        grid-template-columns: 1fr;
        align-content: start;
        overflow-y: auto;
        padding: 22px;
    }

    .prejoin-preview {
        height: min(48vh, 460px);
    }
}
