* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, sans-serif; background: #1a1a1a; color: #e0e0e0; height: 100vh; display: flex; flex-direction: column; } .tab-bar { display: flex; align-items: center; background: #222; border-bottom: 1px solid #333; height: 36px; flex-shrink: 0; } .tab-bar-tabs { display: flex; align-items: center; height: 100%; flex: 1; overflow-x: auto; } .tab-bar-actions { display: flex; align-items: center; height: 100%; border-left: 1px solid #333; } .tab { display: flex; align-items: center; gap: 6px; padding: 0 12px; height: 100%; font-size: 12px; cursor: pointer; border-right: 1px solid #333; white-space: nowrap; color: #888; } .tab.active { background: #1a1a1a; color: #e0e0e0; } .tab .close { font-size: 14px; opacity: 0.5; cursor: pointer; margin-left: 4px; } .tab .close:hover { opacity: 1; } .tab .edit { width: 12px; height: 12px; opacity: 0; cursor: pointer; filter: invert(1) brightness(2); margin-left: 2px; } .tab:hover .edit { opacity: 0.4; } .tab .edit:hover { opacity: 1; } .tab-add { padding: 0 12px; height: 100%; display: flex; align-items: center; font-size: 16px; cursor: pointer; color: #888; } .tab-add:hover { color: #e0e0e0; } .tab-action-btn { padding: 0 12px; height: 100%; display: flex; align-items: center; font-size: 12px; cursor: pointer; color: #888; } .tab-action-btn:hover { color: #e0e0e0; } .tab-action-btn.settings { font-size: 14px; } .tab-action-btn.bot { font-weight: 500; } .tab-action-btn.running { color: #dc3545; } .tab-rename-input { width: 80px; padding: 0 4px; border: 1px solid #555; border-radius: 4px; font-size: 12px; background: #111; color: #e0e0e0; outline: none; } .toolbar { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: #252525; border-bottom: 1px solid #333; height: 36px; flex-shrink: 0; } .toolbar button { padding: 3px 12px; border: none; border-radius: 6px; font-size: 12px; cursor: pointer; font-weight: 500; } .btn-vk { background: #0077ff; color: white; } .btn-telemost { background: #fc3f1d; color: white; } .btn-headless { background: #0077ff; color: white; opacity: 0.8; } .btn-headless-tm { background: #fc3f1d; color: white; opacity: 0.8; } .btn-headless-wb { background: linear-gradient(90deg, #cb11ab 0%, #481173 100%); color: white; opacity: 0.85; } .toolbar-spacer { margin-left: auto; } .toolbar-label { font-size: 11px; color: #888; } .toolbar-select { padding: 2px 6px; border: 1px solid #555; border-radius: 6px; font-size: 11px; cursor: pointer; font-weight: 500; background: #333; color: #e0e0e0; outline: none; } .toolbar-icon { cursor: pointer; margin-left: 8px; } .toolbar-icon img { height: 16px; vertical-align: middle; filter: invert(1) brightness(2); } .content { flex: 1; position: relative; } .content webview { width: 100%; height: 100%; border: none; position: absolute; top: 0; left: 0; } .content webview.hidden { display: none; } .webview-full { width: 100%; height: 100%; position: absolute; top: 0; left: 0; } .welcome { display: flex; align-items: center; justify-content: center; height: 100%; flex-direction: column; gap: 16px; } .welcome h1 { font-size: 22px; font-weight: 500; } .welcome p { color: #888; font-size: 14px; } .headless-info { display: none; padding: 24px; color: #e0e0e0; font-family: monospace; font-size: 14px; } .headless-title { font-size: 18px; font-weight: bold; margin-bottom: 16px; } .headless-status { color: #888; } .headless-call-info { margin-top: 16px; display: none; } .headless-row { margin-bottom: 8px; } .headless-label { color: #888; } .headless-link { color: #4fc3f7; cursor: pointer; } .headless-copy { width: 16px; height: 16px; margin-left: 6px; cursor: pointer; vertical-align: middle; filter: invert(0.53); } .headless-copy:hover { filter: invert(0.88); } .headless-tunnel { margin-top: 16px; display: none; color: #4caf50; font-weight: bold; font-size: 16px; } .logs { display: flex; gap: 0; border-top: 1px solid #333; height: 120px; flex-shrink: 0; } .log-panel { flex: 1; display: flex; flex-direction: column; } .log-panel:first-child { border-right: 1px solid #333; } .logs.relay-only .log-panel:first-child { border-right: none; } .log-title { font-size: 10px; font-weight: 600; color: #888; padding: 3px 8px; background: #1e1e1e; border-bottom: 1px solid #333; } .log-clear-btn { cursor: pointer; float: right; font-size: 13px; line-height: 13px; } .log-download-btn { display: none; float: right; width: 16px; height: 16px; margin-right: 8px; margin-top: -2px; cursor: pointer; filter: invert(0.55); vertical-align: middle; } .log-download-btn:hover { filter: invert(0.88); } .logs.relay-only .log-download-btn { display: inline-block; } .log-content { flex: 1; overflow-y: auto; padding: 3px 8px; font-family: monospace; font-size: 10px; background: #111; white-space: pre-wrap; word-break: break-all; } .log-content.relay { color: #4fc3f7; } .log-content.hook { color: #66bb6a; } .popup-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); z-index: 1000; display: none; align-items: center; justify-content: center; } .popup-overlay.visible { display: flex; } .popup { background: #2a2a2a; border-radius: 12px; padding: 24px; width: 400px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); } .popup h2 { margin: 0 0 20px; font-size: 18px; font-weight: 600; color: #e0e0e0; } .popup label { display: block; margin-bottom: 6px; font-size: 12px; color: #888; font-weight: 500; } .popup input { width: 100%; padding: 10px 12px; border: 1px solid #444; border-radius: 8px; font-size: 14px; background: #1a1a1a; color: #e0e0e0; outline: none; margin-bottom: 16px; box-sizing: border-box; } .popup input:focus { border-color: #0077ff; } .popup-buttons { display: flex; gap: 8px; justify-content: flex-end; } .popup button { padding: 8px 16px; border: none; border-radius: 8px; font-size: 13px; cursor: pointer; font-weight: 500; } .btn-save { background: #0077ff; color: white; } .btn-cancel { background: #444; color: #e0e0e0; } .error-title { color: #dc3545; margin-bottom: 12px; font-size: 15px; } .error-text { background: #111; padding: 10px; border-radius: 6px; font-size: 11px; color: #e0e0e0; white-space: pre-wrap; word-break: break-all; max-height: 200px; overflow-y: auto; user-select: text; cursor: text; margin: 0; }