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

        /* CSS Variables for Light and Dark Themes */
        :root {
            /* Light Theme (Default) */
            --bg-primary: #ffffff;
            --bg-secondary: #f8f9fa;
            --bg-tertiary: #e9ecef;
            --bg-accent: #007acc;
            --text-primary: #212529;
            --text-secondary: #6c757d;
            --text-accent: #ffffff;
            --border-color: #dee2e6;
            --border-hover: #adb5bd;
            --shadow-color: rgba(0, 0, 0, 0.1);
            --input-bg: #ffffff;
            --input-border: #ced4da;
            --success-color: #28a745;
            --error-color: #dc3545;
            --warning-color: #ffc107;
            --info-color: #17a2b8;
        }

        /* Dark Theme */
        .dark-mode {
            --bg-primary: #1a1a1a;
            --bg-secondary: #2d2d2d;
            --bg-tertiary: #404040;
            --bg-accent: #007acc;
            --text-primary: #e0e0e0;
            --text-secondary: #b0b0b0;
            --text-accent: #ffffff;
            --border-color: #404040;
            --border-hover: #555555;
            --shadow-color: rgba(0, 0, 0, 0.3);
            --input-bg: #404040;
            --input-border: #555555;
            --success-color: #28a745;
            --error-color: #dc3545;
            --warning-color: #ffc107;
            --info-color: #17a2b8;
        }

        /* FIXED: Proper responsive setup */
        html {
            font-size: 16px;
            -webkit-text-size-adjust: 100%;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            height: 100vh;
            height: 100dvh; /* Dynamic viewport height for mobile */
            overflow: hidden;
            transition: background-color 0.3s ease, color 0.3s ease;
            position: fixed;
            width: 100%;
        }

        .container {
            display: flex;
            height: 100vh;
            height: 100dvh;
            width: 100vw;
            position: relative;
            overflow: hidden;
        }

        /* FIXED: Proper sidebar with flex behavior */
        .sidebar {
            width: 300px;
            min-width: 300px;
            max-width: 300px;
            background: var(--bg-secondary);
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            transition: all 0.3s ease;
            overflow: hidden;
            z-index: 1000;
            flex-shrink: 0;
        }

        .sidebar.collapsed {
            width: 0;
            min-width: 0;
            max-width: 0;
            border-right: none;
        }

        /* Custom Scrollbar for Sidebar */
        .sidebar ::-webkit-scrollbar {
            width: 8px;
        }

        .sidebar ::-webkit-scrollbar-track {
            background: var(--bg-secondary);
        }

        .sidebar ::-webkit-scrollbar-thumb {
            background: var(--border-hover);
            border-radius: 4px;
        }

        .sidebar ::-webkit-scrollbar-thumb:hover {
            background: var(--text-secondary);
        }

        .sidebar-header {
            padding: 15px 20px;
            border-bottom: 1px solid var(--border-color);
            flex-shrink: 0;
        }

        .sidebar-header h1 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 5px;
            color: var(--text-primary);
            white-space: nowrap;
        }

        .sidebar-section {
            padding: 15px 20px;
            border-bottom: 1px solid var(--border-color);
            flex-shrink: 0;
        }

        .sidebar-section h3 {
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--text-secondary);
            white-space: nowrap;
        }

        .input-group {
            display: flex;
            margin-bottom: 8px;
        }

        .input-group input {
            flex: 1;
            padding: 6px 10px;
            background: var(--input-bg);
            border: 1px solid var(--input-border);
            border-radius: 4px 0 0 4px;
            color: var(--text-primary);
            font-size: 12px;
            transition: background-color 0.3s ease, border-color 0.3s ease;
            min-width: 0;
        }

        .input-group input::placeholder {
            color: var(--text-secondary);
        }

        .input-group input:focus {
            outline: none;
            border-color: var(--bg-accent);
        }

        .input-group button {
            padding: 6px 10px;
            background: var(--bg-accent);
            border: 1px solid var(--bg-accent);
            border-radius: 0 4px 4px 0;
            color: var(--text-accent);
            cursor: pointer;
            font-size: 12px;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .input-group button:hover {
            opacity: 0.8;
        }

        .btn {
            padding: 6px 10px;
            background: var(--bg-accent);
            border: none;
            border-radius: 4px;
            color: var(--text-accent);
            cursor: pointer;
            font-size: 12px;
            width: 100%;
            margin-bottom: 8px;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .btn:hover {
            opacity: 0.8;
        }

        .btn.danger {
            background: var(--error-color);
        }

        .logout-btn {
            background: var(--text-secondary);
            margin-top: 8px;
        }

        .file-list {
            flex: 1;
            overflow-y: auto;
            padding: 0 20px;
        }

        .file-item {
            padding: 6px 10px;
            margin-bottom: 3px;
            background: var(--bg-tertiary);
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--text-primary);
        }

        .file-item:hover {
            background: var(--border-hover);
        }

        .file-item.active {
            background: var(--bg-accent);
            color: var(--text-accent);
        }

        .file-delete {
            background: var(--error-color);
            border: none;
            border-radius: 3px;
            color: white;
            cursor: pointer;
            font-size: 10px;
            padding: 2px 4px;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .file-item:hover .file-delete {
            opacity: 1;
        }

        /* FIXED: Main content that properly expands */
        .main-content {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            height: 100vh;
            height: 100dvh;
            overflow: hidden;
            position: relative;
        }

        .header {
            height: 50px;
            min-height: 50px;
            background: var(--bg-secondary);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            padding: 0 15px;
            gap: 8px;
            transition: background-color 0.3s ease;
            flex-wrap: wrap;
            flex-shrink: 0;
        }

        .toggle-sidebar {
            background: none;
            border: none;
            color: var(--text-primary);
            cursor: pointer;
            padding: 8px;
            border-radius: 4px;
            transition: all 0.3s ease;
            font-size: 18px;
            flex-shrink: 0;
            min-width: 40px;
            min-height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .toggle-sidebar:hover {
            background: var(--bg-tertiary);
        }

        .room-info {
            font-size: 12px;
            color: var(--text-secondary);
            flex: 1;
            min-width: 120px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

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

        .header-select {
            background: var(--input-bg);
            border: 1px solid var(--input-border);
            color: var(--text-primary);
            padding: 6px 8px;
            border-radius: 4px;
            font-size: 11px;
            transition: all 0.3s ease;
            min-width: 0;
            min-height: 36px;
        }

        .header-select:focus {
            outline: none;
            border-color: var(--bg-accent);
        }

        .header-input {
            background: var(--input-bg);
            border: 1px solid var(--input-border);
            color: var(--text-primary);
            padding: 6px 8px;
            border-radius: 4px;
            font-size: 11px;
            width: 50px;
            transition: all 0.3s ease;
            min-height: 36px;
        }

        .header-input:focus {
            outline: none;
            border-color: var(--bg-accent);
        }

        .run-btn {
            background: var(--success-color);
            border: none;
            border-radius: 4px;
            color: white;
            cursor: pointer;
            font-size: 11px;
            padding: 8px 12px;
            position: relative;
            transition: all 0.3s ease;
            flex-shrink: 0;
            min-height: 36px;
        }

        .run-btn:hover:not(:disabled) {
            opacity: 0.8;
        }

        .run-btn:disabled {
            background: var(--text-secondary);
            cursor: not-allowed;
        }

        .theme-toggle-btn, .wrap-toggle-btn {
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            cursor: pointer;
            font-size: 11px;
            padding: 8px 12px;
            border-radius: 4px;
            transition: all 0.3s ease;
            flex-shrink: 0;
            min-height: 36px;
        }

        .theme-toggle-btn:hover, .wrap-toggle-btn:hover {
            background: var(--border-hover);
        }

        .run-btn .spinner {
            display: none;
            width: 10px;
            height: 10px;
            border: 2px solid #ffffff;
            border-top: 2px solid transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        .run-btn.loading .spinner {
            display: inline-block;
        }

        .run-btn.loading .run-text {
            display: none;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .editor-container {
            flex: 1;
            min-height: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        #editor {
            flex: 1;
            min-height: 0;
            font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
            font-size: 14px;
        }

        /* FIXED: Terminal container with proper flex behavior */
        .terminal-container {
            flex: none;
            background: var(--bg-primary);
            border-top: 1px solid var(--border-color);
            transition: background-color 0.3s ease;
            position: relative;
        }

        .terminal-resizer {
            position: absolute;
            top: -3px;
            left: 0;
            right: 0;
            height: 6px;
            cursor: row-resize;
            background: transparent;
            z-index: 10;
            transition: background-color 0.3s ease;
        }

        .terminal-resizer:hover {
            background: var(--bg-accent);
        }

        /* FIXED: Terminal with guaranteed visibility */
        .terminal {
            height: 50px;
            min-height: 50px;
            display: flex;
            flex-direction: column;
            transition: height 0.3s ease;
            background: var(--bg-primary);
        }

        .terminal.expanded {
            height: 200px;
            min-height: 200px;
        }

        /* FIXED: Terminal header with strong visibility */
        .terminal-header {
            height: 50px;
            min-height: 50px;
            background: var(--bg-secondary);
            display: flex;
            align-items: center;
            padding: 0 15px;
            justify-content: space-between;
            cursor: pointer;
            transition: background-color 0.3s ease;
            flex-shrink: 0;
            border-bottom: 2px solid var(--border-color);
            position: relative;
            z-index: 10;
        }

        .terminal-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-primary);
            text-transform: uppercase;
        }

        .terminal-toggle {
            background: var(--bg-tertiary);
            border: 2px solid var(--border-color);
            color: var(--text-primary);
            cursor: pointer;
            padding: 6px 10px;
            border-radius: 4px;
            font-size: 16px;
            font-weight: bold;
            min-width: 40px;
            min-height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .terminal-toggle:hover {
            background: var(--border-hover);
        }

        .terminal-body {
            flex: 1;
            min-height: 0;
            padding: 10px 15px;
            overflow-y: auto;
            display: none;
            flex-direction: column;
            background: var(--bg-primary);
        }

        .terminal.expanded .terminal-body {
            display: flex;
        }

        .terminal-output-area {
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            margin-bottom: 10px;
        }

        /* Modern Thin Scrollbar for Terminal */
        .terminal-output-area::-webkit-scrollbar {
            width: 6px;
        }

        .terminal-output-area::-webkit-scrollbar-track {
            background: transparent;
        }

        .terminal-output-area::-webkit-scrollbar-thumb {
            background: var(--border-hover);
            border-radius: 3px;
        }

        .terminal-output-area::-webkit-scrollbar-thumb:hover {
            background: var(--text-secondary);
        }

        /* Modern Scrollbar for File List */
        .file-list::-webkit-scrollbar {
            width: 6px;
        }

        .file-list::-webkit-scrollbar-track {
            background: transparent;
        }

        .file-list::-webkit-scrollbar-thumb {
            background: var(--border-hover);
            border-radius: 3px;
        }

        .file-list::-webkit-scrollbar-thumb:hover {
            background: var(--text-secondary);
        }
		/* --- Modern Scrollbars for Ace Editor --- */
		.ace_scrollbar-v::-webkit-scrollbar,
		.ace_scrollbar-h::-webkit-scrollbar {
		  width: 10px;
		  height: 10px;
		}

		.ace_scrollbar-v::-webkit-scrollbar-track,
		.ace_scrollbar-h::-webkit-scrollbar-track {
		  background: var(--bg-secondary);
		  border-radius: 6px;
		}

		.ace_scrollbar-v::-webkit-scrollbar-thumb,
		.ace_scrollbar-h::-webkit-scrollbar-thumb {
		  background: var(--border-hover);
		  border-radius: 6px;
		  border: 2px solid var(--bg-secondary);
		  transition: background 0.3s;
		  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
		}

		.ace_scrollbar-v::-webkit-scrollbar-thumb:hover,
		.ace_scrollbar-h::-webkit-scrollbar-thumb:hover {
		  background: var(--text-secondary);
		}

		/* For Firefox */
		.ace_scrollbar-v,
		.ace_scrollbar-h {
		  scrollbar-width: thin;
		  scrollbar-color: var(--border-hover) var(--bg-secondary);
		}

        .terminal-input {
            display: flex;
            align-items: center;
            flex-shrink: 0;
        }

        .terminal-prompt {
            color: var(--info-color);
            margin-right: 8px;
            font-family: monospace;
            flex-shrink: 0;
        }

        .terminal-input input {
            flex: 1;
            background: transparent;
            border: none;
            color: var(--text-primary);
            font-family: monospace;
            font-size: 12px;
            outline: none;
            min-width: 0;
        }

        .terminal-output {
            font-family: monospace;
            font-size: 11px;
            line-height: 1.4;
            color: var(--text-secondary);
            margin-bottom: 5px;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .execution-output {
            background: var(--bg-secondary);
            border-left: 4px solid var(--success-color);
            padding: 10px;
            margin: 6px 0;
            border-radius: 4px;
            font-family: monospace;
            transition: background-color 0.3s ease;
        }

        .execution-output.success {
            border-left-color: var(--success-color);
        }

        .execution-output.error {
            border-left-color: var(--error-color);
        }

        .execution-output.warning {
            border-left-color: var(--warning-color);
        }

        .execution-output pre {
            margin: 0;
            white-space: pre-wrap;
            word-wrap: break-word;
            color: var(--text-primary);
            font-size: 11px;
        }

        .execution-output .output-section {
            margin-bottom: 8px;
        }

        .execution-output .output-section:last-child {
            margin-bottom: 0;
        }

        .execution-output .section-title {
            font-weight: bold;
            font-size: 11px;
            margin-bottom: 4px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .execution-output .section-title.output {
            color: var(--success-color);
        }

        .execution-output .section-title.error {
            color: var(--error-color);
        }

        .execution-stats {
            font-size: 10px;
            color: var(--text-secondary);
            margin-top: 6px;
            padding-top: 6px;
            border-top: 1px solid var(--border-color);
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 2000;
        }

        .modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: var(--bg-secondary);
            padding: 20px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            width: 90%;
            max-width: 400px;
            transition: background-color 0.3s ease;
        }

        .modal h3 {
            margin-bottom: 15px;
            color: var(--text-primary);
            font-size: 16px;
        }

        .modal p {
            color: var(--text-secondary);
            margin-bottom: 12px;
            font-size: 14px;
        }

        .modal input, .modal textarea {
            width: 100%;
            padding: 8px;
            background: var(--input-bg);
            border: 1px solid var(--input-border);
            border-radius: 4px;
            color: var(--text-primary);
            margin-bottom: 12px;
            font-size: 14px;
            resize: vertical;
            transition: all 0.3s ease;
        }

        .modal input:focus, .modal textarea:focus {
            outline: none;
            border-color: var(--bg-accent);
        }

        .modal-buttons {
            display: flex;
            gap: 8px;
            justify-content: flex-end;
        }

        .modal-buttons button {
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.3s ease;
        }

        .modal-buttons .btn-primary {
            background: var(--bg-accent);
            color: var(--text-accent);
        }

        .modal-buttons .btn-primary:hover {
            opacity: 0.8;
        }

        .modal-buttons .btn-secondary {
            background: var(--text-secondary);
            color: var(--text-accent);
        }

        .modal-buttons .btn-secondary:hover {
            opacity: 0.8;
        }
		/* password error text already colored by inline var(--error-color) but make it bold */
		#passwordError { font-weight: 600; }

		/* simple shake animation */
		@keyframes shake {
		  0% { transform: translateX(0); }
		  20% { transform: translateX(-6px); }
		  40% { transform: translateX(6px); }
		  60% { transform: translateX(-4px); }
		  80% { transform: translateX(4px); }
		  100% { transform: translateX(0); }
		}
		#passwordInput.shake { animation: shake 350ms ease-in-out; }

        .no-files-message {
            text-align: center;
            color: var(--text-secondary);
            font-style: italic;
            padding: 15px;
            font-size: 12px;
        }

        /* Success/Error output styling */
        .terminal-output.success {
            color: var(--success-color);
        }

        .terminal-output.error {
            color: var(--error-color);
        }

        .terminal-output.warning {
            color: var(--warning-color);
        }

        .terminal-output.info {
            color: var(--info-color);
        }

        .terminal-output.user-input {
            color: var(--info-color);
            font-weight: bold;
        }

        .terminal-output.program-output {
            color: var(--success-color);
            margin-left: 10px;
        }

        /* Interactive mode styling */
        .interactive-mode {
            background: var(--bg-secondary);
            border-left: 3px solid var(--info-color);
            padding: 6px;
            margin: 4px 0;
            border-radius: 4px;
        }

        /* COMPLETELY REWRITTEN Mobile Responsive Design */
        @media screen and (max-width: 768px) {
            /* Force mobile viewport handling */
            html {
                -webkit-text-size-adjust: none;
                -ms-text-size-adjust: none;
                text-size-adjust: none;
            }

            body {
                height: 100vh;
                height: 100dvh;
                position: fixed;
                width: 100vw;
                overflow: hidden;
                -webkit-overflow-scrolling: touch;
            }

            .container {
                height: 100vh;
                height: 100dvh;
                width: 100vw;
                display: flex;
                flex-direction: row;
                overflow: hidden;
            }

            /* FIXED: Mobile sidebar behavior */
            .sidebar {
                position: fixed;
                top: 0;
                left: 0;
                height: 100vh;
                height: 100dvh;
                width: 280px;
                min-width: 280px;
                max-width: 280px;
                z-index: 1500;
                transform: translateX(-100%);
                transition: transform 0.3s ease;
                background: var(--bg-secondary);
                border-right: 1px solid var(--border-color);
            }

            .sidebar.show {
                transform: translateX(0);
            }

            .sidebar.collapsed {
                transform: translateX(-100%);
            }

            /* FIXED: Main content always full width on mobile */
            .main-content {
                width: 100vw;
                min-width: 100vw;
                max-width: 100vw;
                height: 100vh;
                height: 100dvh;
                flex: none;
                display: flex;
                flex-direction: column;
                overflow: hidden;
                margin-left: 0;
            }

            /* Enhanced header for mobile */
            .header {
                height: 55px;
                min-height: 55px;
                padding: 8px 12px;
                gap: 8px;
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .toggle-sidebar {
                min-width: 44px;
                min-height: 44px;
                font-size: 20px;
                padding: 10px;
            }

            .header-controls {
                gap: 8px;
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .header-select, .header-input {
                min-width: 60px;
                min-height: 40px;
                font-size: 12px;
                padding: 8px 10px;
                white-space: nowrap;
            }

            .run-btn, .theme-toggle-btn, .wrap-toggle-btn {
                min-width: 50px;
                min-height: 40px;
                font-size: 12px;
                padding: 8px 12px;
                white-space: nowrap;
            }

            .room-info {
                font-size: 12px;
                min-width: 120px;
                flex: 1;
            }

            /* FIXED: Editor container for mobile */
            .editor-container {
                flex: 1;
                min-height: 0;
                overflow: hidden;
                display: flex;
                flex-direction: column;
            }

            #editor {
                flex: 1;
                min-height: 0;
                width: 100%;
                height: 100%;
            }

            /* FIXED: Terminal with guaranteed visibility on mobile */
            .terminal-container {
                flex: none;
                position: relative;
                width: 100%;
                background: var(--bg-primary);
                border-top: 2px solid var(--border-color);
            }

            .terminal {
                height: 55px;
                min-height: 55px;
                width: 100%;
                background: var(--bg-primary);
                position: relative;
            }

            .terminal.expanded {
                height: 250px;
                min-height: 250px;
                max-height: 40vh;
            }

            /* ENHANCED: Terminal header for mobile */
            .terminal-header {
                height: 55px;
                min-height: 55px;
                background: var(--bg-secondary);
                border-bottom: 3px solid var(--border-color);
                padding: 0 15px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                position: relative;
                z-index: 20;
            }

            .terminal-title {
                font-size: 16px;
                font-weight: 800;
                color: var(--text-primary);
                text-transform: uppercase;
                letter-spacing: 1px;
            }

            .terminal-toggle {
                background: var(--bg-accent);
                border: 2px solid var(--bg-accent);
                color: var(--text-accent);
                padding: 8px 12px;
                border-radius: 6px;
                font-size: 18px;
                font-weight: bold;
                min-width: 44px;
                min-height: 40px;
            }

            .terminal-toggle:hover {
                opacity: 0.8;
            }

            .terminal-body {
                padding: 10px 15px;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }

            /* Disable resizer on mobile */
            .terminal-resizer {
                display: none;
            }

            .terminal-output {
                font-size: 11px;
            }

            .execution-output {
                padding: 8px;
                margin: 4px 0;
            }

            .execution-output pre {
                font-size: 10px;
            }

            .modal-content {
                width: 95%;
                max-width: none;
                margin: 20px;
                padding: 20px;
            }

            /* Mobile sidebar overlay */
            .sidebar-overlay {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100vw;
                height: 100vh;
                height: 100dvh;
                background: rgba(0, 0, 0, 0.5);
                z-index: 1400;
                -webkit-tap-highlight-color: transparent;
            }

            .sidebar-overlay.show {
                display: block;
            }
        }

        /* Very small mobile screens */
        @media screen and (max-width: 480px) {
            .header {
                height: 50px;
                min-height: 50px;
                padding: 6px 10px;
            }

            .toggle-sidebar {
                min-width: 40px;
                min-height: 40px;
                font-size: 18px;
                padding: 8px;
            }

            .header-select, .header-input {
                min-height: 36px;
                font-size: 11px;
                padding: 6px 8px;
            }

            .run-btn, .theme-toggle-btn, .wrap-toggle-btn {
                min-height: 36px;
                font-size: 11px;
                padding: 6px 10px;
            }

            .room-info {
                font-size: 11px;
                min-width: 100px;
            }

            .terminal {
                height: 50px;
                min-height: 50px;
            }

            .terminal-header {
                height: 50px;
                min-height: 50px;
            }

            .terminal.expanded {
                height: 220px;
                min-height: 220px;
                max-height: 35vh;
            }
        }

        /* Landscape mobile */
        @media screen and (max-width: 768px) and (orientation: landscape) {
            .terminal.expanded {
                height: 180px;
                min-height: 180px;
                max-height: 30vh;
            }

            .header {
                height: 45px;
                min-height: 45px;
                padding: 6px 10px;
            }
        }