        /* Panels */
        .tab-panel { display: none !important; padding: 16px; animation: fadeIn 0.3s ease; flex: 1; flex-direction: column; }
        .tab-panel.active { display: flex !important; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        /* Custom Inputs & Buttons */
        .modern-input { width: 100%; padding: 12px 14px; background: #0d1117; border: 1px solid #30363d; color: white; border-radius: 8px; outline: none; font-size: 14px; margin-bottom: 12px; }
        .modern-input:focus { border-color: #58a6ff; }
        .primary-btn { width: 100%; padding: 14px; background: #238636; color: white; border: 1px solid #2ea043; border-radius: 8px; font-weight: 600; font-size: 15px; display: flex; justify-content: center; align-items: center; gap: 8px; transition: transform 0.1s; cursor: pointer; }
        .primary-btn:active { transform: scale(0.98); background: #2ea043; }
        .danger-btn { background: #da3633; border-color: #ff7b72; }
        .danger-btn:active { background: #ff7b72; }
        .blue-btn { background: #0e639c; border-color: #1177bb; }
        .blue-btn:active { background: #1177bb; }

        /* Toolbars & Scroll hiding */
        .scrollbar-hide::-webkit-scrollbar { display: none; }
        .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
        .toolbar-btn { background: #21262d; border: 1px solid #30363d; color: #c9d1d9; padding: 8px 14px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; flex-shrink: 0; transition: background 0.1s; }
        .toolbar-btn:active { background: #30363d; }

        /* Custom Scrollbar for Lists */
        .custom-scrollbar::-webkit-scrollbar { width: 4px; }
        .custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
        .custom-scrollbar::-webkit-scrollbar-thumb { background: #30363d; border-radius: 4px; }

        /* Ace Editor Containers */
        #mobileEditor { width: 100%; flex: 1; min-height: 250px; border-radius: 8px; border: 1px solid #30363d; background: #161b22; }
        #historyEditor { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 0 0 12px 12px; }

        /* Rendered Markdown Preview */
        .markdown-preview { min-height: 250px; line-height: 1.6; font-size: 14px; background: #0d1117; color: #c9d1d9; }
        .markdown-preview h1, .markdown-preview h2, .markdown-preview h3 { font-weight: 700; margin: 0.8em 0 0.4em; color: #f3f4f6; border-bottom: 1px solid #30363d; padding-bottom: 0.2em; }
        .markdown-preview h1 { font-size: 1.6em; }
        .markdown-preview h2 { font-size: 1.35em; }
        .markdown-preview h3 { font-size: 1.15em; }
        .markdown-preview p { margin: 0.6em 0; }
        .markdown-preview code { background: #161b22; color: #79c0ff; padding: 2px 5px; border-radius: 4px; font-size: 0.9em; }
        .markdown-preview pre { background: #161b22; color: #c9d1d9; padding: 12px; border-radius: 8px; overflow-x: auto; border: 1px solid #30363d; }
        .markdown-preview pre code { background: none; color: inherit; padding: 0; }
        .markdown-preview ul, .markdown-preview ol { margin: 0.5em 0; padding-left: 1.5em; }
        .markdown-preview blockquote { border-left: 3px solid #30363d; margin: 0.6em 0; padding-left: 1em; color: #8b949e; }
        .markdown-preview img { max-width: 100%; border-radius: 6px; }
        .markdown-preview a { color: #58a6ff; text-decoration: underline; }
        .markdown-preview table { border-collapse: collapse; width: 100%; margin: 0.6em 0; }
        .markdown-preview th, .markdown-preview td { border: 1px solid #30363d; padding: 6px 10px; }
        .markdown-preview hr { border: none; border-top: 1px solid #30363d; margin: 1em 0; }

        /* Modals */
        .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
        .modal-overlay.open { display: flex; }
        .modal-box { background: #161b22; border: 1px solid #30363d; border-radius: 12px; width: 100%; max-width: 350px; max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; }
        .modal-header { padding: 16px; border-bottom: 1px solid #30363d; display: flex; justify-content: space-between; align-items: center; font-weight: bold; }
        .modal-body { padding: 16px; overflow-y: auto; flex: 1; }

        /* File Tree Items */
        .file-item { padding: 12px; border-bottom: 1px solid #30363d; font-family: monospace; font-size: 13px; color: #c9d1d9; display: flex; align-items: center; gap: 8px; word-break: break-all; transition: background 0.1s; }
        .file-item:active { background: #21262d; }
        .folder-item { cursor: pointer; background: rgba(14, 99, 156, 0.1); border-left: 2px solid rgba(56, 189, 248, 0.5); }
        .folder-item:active { background: rgba(14, 99, 156, 0.2); }

        /* Progress Bar */
        .progress-container { width: 100%; background: #21262d; border-radius: 10px; height: 8px; margin-top: 10px; overflow: hidden; }
        .progress-bar { height: 100%; background: #58a6ff; width: 0%; transition: width 0.3s; }

        /* Toast */
        #toast { position: fixed; bottom: -50px; left: 50%; transform: translateX(-50%); background: #238636; color: white; padding: 12px 24px; border-radius: 30px; font-size: 13px; font-weight: 600; z-index: 9999; transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 15px rgba(0,0,0,0.5); pointer-events: none; text-align: center; max-width: 92vw; }
        #toast.show { bottom: 85px; }

        /* Full Screen Logs */
        .logs-fullscreen { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; height: 100vh !important; height: 100dvh !important; width: 100vw !important; z-index: 100 !important; border-radius: 0 !important; border: none !important; margin: 0 !important; }

        /* Errors Only filter for the logs terminal */
        #serverLogsBox.errors-only-mode .log-line:not(.log-error) { display: none; }

        /* Secrets panel scrolls on its own so Save Bulk never hides under the nav */
        #panel-secrets { overflow-y: auto; }
        #bulkSecretsBox { flex: none; height: 140px; }

        /* Clickable workflow run rows (GitHub Actions) */
        .run-row { cursor: pointer; }
        .run-row:active { background: #161b22; }

