        /* === HEADER === */
        header {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--glass-border);
            padding: 12px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.15rem;
            font-weight: 800;
            letter-spacing: -0.5px;
        }
        .logo-container .logo-icon {
            width: 36px; height: 36px;
            background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }
        .logo-container .logo-text { background: linear-gradient(135deg, var(--primary-color), #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

        .header-controls { display: flex; align-items: center; gap: 12px; }

        .connection-panel {
            display: flex;
            gap: 10px;
            align-items: center;
            background: var(--surface-color);
            padding: 6px 14px;
            border-radius: 30px;
            border: 1px solid var(--border-color);
            flex-wrap: wrap;
            transition: border-color var(--transition);
        }
        .connection-panel:focus-within { border-color: var(--primary-color); }

        .input-group { display: flex; align-items: center; gap: 6px; }
        .input-group i { color: var(--text-muted); width: 16px; height: 16px; }

        input {
            background: transparent;
            border: none;
            color: var(--text-primary);
            font-size: 0.85rem;
            font-family: inherit;
            outline: none;
            width: 110px;
        }
        input::placeholder { color: var(--text-muted); }

        .divider { width: 1px; height: 20px; background: var(--border-color); }

        /* === WORKSPACE === */
        .workspace {
            display: flex;
            flex: 1;
            padding: 20px;
            gap: 20px;
            max-width: 1700px;
            margin: 0 auto;
            width: 100%;
            height: calc(100vh - 61px);
            overflow: hidden;
        }

        /* === VIDEO GRID === */
        .video-grid { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }

        .main-video-container {
            flex: 1;
            background: var(--surface-color);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .video-wrapper {
            flex: 1;
            position: relative;
            background: #000;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        video, .remote-img { width: 100%; height: 100%; object-fit: contain; }

        /* === SIDEBAR === */
        .sidebar {
            width: 340px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            height: 100%;
            flex-shrink: 0;
        }

        .panel {
            background: var(--surface-color);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transition: border-color var(--transition);
        }

        .participants-panel { flex: 0 0 auto; max-height: 200px; }
        .chat-panel { flex: 2; min-height: 0; }
        .log-panel { flex: 1; min-height: 0; }

        .panel-header {
            padding: 12px 16px;
            border-bottom: 1px solid var(--border-color);
            font-weight: 600;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        .panel-header .badge {
            background: var(--primary-color);
            color: white;
            font-size: 0.7rem;
            padding: 2px 8px;
            border-radius: 10px;
            margin-left: auto;
            font-weight: 700;
        }

        .panel-content {
            flex: 1;
            padding: 12px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .panel-content::-webkit-scrollbar { width: 4px; }
        .panel-content::-webkit-scrollbar-track { background: transparent; }
        .panel-content::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }

        /* === FOOTER === */
        footer {
            padding: 10px 24px;
            text-align: center;
            font-size: 0.75rem;
            color: var(--text-muted);
            border-top: 1px solid var(--border-color);
            background: var(--glass-bg);
            flex-shrink: 0;
        }
        footer a { color: var(--primary-color); text-decoration: none; }

        /* === RESPONSIVE === */
        @media (max-width: 1100px) {
            .workspace { flex-direction: column; height: auto; overflow: visible; }
            .sidebar { width: 100%; height: auto; max-height: 500px; }
            .main-video-container { min-height: 350px; }
            .participants-panel { max-height: 120px; }
        }

        @media (max-width: 768px) {
            header { flex-direction: column; gap: 12px; padding: 10px 16px; }
            .connection-panel { flex-direction: column; width: 100%; border-radius: var(--radius-md); padding: 10px; }
            .divider { width: 100%; height: 1px; }
            input { width: 100%; }
            .workspace { padding: 12px; gap: 12px; }
            .local-video-container { width: 110px; top: 10px; right: 10px; }
            .floating-controls { width: 92%; justify-content: space-around; padding: 8px 12px; gap: 6px; }
            .control-btn { width: 42px; height: 42px; }
            .control-btn[title]::after { display: none; }
            .sidebar { gap: 10px; }
            footer { padding: 8px 16px; }
        }