.remote-screen-wrap {
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.remote-screen-wrap video {
    width: 100%;
    display: block;
    background: #000;
}
.remote-screen-wrap.fullscreen-mode {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1050;
    border-radius: 0;
}
.remote-screen-wrap.fullscreen-mode video {
    height: 100vh;
    object-fit: contain;
}
#annotateCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}
#annotateCanvas.drawing-active {
    pointer-events: auto;
    cursor: crosshair;
    touch-action: none;
}
.fullscreen-exit-btn {
    position: absolute;
    top: 10px; /* fallback for browsers without env() */
    right: 10px;
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: calc(10px + env(safe-area-inset-right, 0px));
    z-index: 1060;
    opacity: 0.85;
}
.session-toolbar .btn {
    margin-right: 4px;
    margin-bottom: 4px;
}

/* ---- Mobile tweaks ---- */
@media (max-width: 575.98px) {
    .big-id {
        font-size: 1.4rem;
        letter-spacing: 1px;
        word-break: break-all;
    }
    .session-toolbar .btn {
        padding: 0.5rem 0.65rem;
        font-size: 0.9rem;
    }
    .chat-box {
        height: 200px;
    }
    .content-wrapper .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }
}
@media (max-width: 991.98px) and (orientation: landscape) {
    .remote-screen-wrap.fullscreen-mode video {
        height: 100vh;
    }
}
.chat-box {
    height: 260px;
    overflow-y: auto;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px;
}
.chat-msg {
    margin-bottom: 6px;
}
.chat-msg .who {
    font-weight: 600;
    font-size: 0.8rem;
}
.chat-msg.me { text-align: right; }
.chat-msg .bubble {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 10px;
    background: #e9ecef;
    max-width: 80%;
}
.chat-msg.me .bubble {
    background: #007bff;
    color: #fff;
}
.big-id {
    font-size: 2rem;
    letter-spacing: 2px;
    font-weight: 700;
}
.pulse-dot {
    height: 10px; width: 10px;
    border-radius: 50%;
    background: #28a745;
    display: inline-block;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40,167,69,0.5); }
    70% { box-shadow: 0 0 0 8px rgba(40,167,69,0); }
    100% { box-shadow: 0 0 0 0 rgba(40,167,69,0); }
}
