/* ══════════════════════════════════════════════════════ AppHeader — Manus-inspired custom titlebar 48px tall · glass-dark · full drag region · custom WinControls ══════════════════════════════════════════════════════ */ .app-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 48px; display: flex; align-items: center; gap: 0; padding: 0 8px 0 10px; /* Manus-dark glass */ background: rgba(13, 13, 17, 0.90); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); border-bottom: 1px solid rgba(255, 255, 255, 0.055); box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 4px 28px rgba(0,0,0,0.5); /* enable drag: the region itself is draggable; interactive children opt-out */ user-select: none; -webkit-user-select: none; } /* ── Left ── */ .app-header-left { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; } /* ── Center ── */ .app-header-center { display: flex; align-items: center; justify-content: center; flex-shrink: 0; /* stop drag so user can interact with the pill */ -webkit-app-region: no-drag; app-region: no-drag; } /* ── Right ── */ .app-header-right { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: flex-end; } /* ── Hamburger ── */ .header-nav-btn { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: none; border-radius: 6px; background: transparent; color: rgba(255,255,255,0.45); cursor: pointer; flex-shrink: 0; transition: background 0.15s, color 0.15s; -webkit-app-region: no-drag; app-region: no-drag; } .header-nav-btn:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); } .header-nav-btn.active { background: rgba(124,58,237,0.18); color: #a78bfa; } /* Back button — slightly wider to fit the arrow */ .header-back-btn { width: 34px; gap: 3px; } .header-back-btn:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); } /* ── Brand ── */ .header-brand { display: flex; align-items: center; gap: 7px; flex-shrink: 0; } .header-brand-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(124,58,237,0.45)); } .header-brand-name { font-size: 14px; font-weight: 700; letter-spacing: -0.2px; background: linear-gradient(135deg, #e2d9f3 0%, #c4b5fd 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; } /* ── Breadcrumb ── */ .header-breadcrumb { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; } .header-breadcrumb-sep { color: rgba(255,255,255,0.18); font-size: 13px; flex-shrink: 0; } .header-breadcrumb-title { font-size: 12.5px; color: rgba(255,255,255,0.38); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; } /* ── Runtime status pill ── */ .header-status-pill { display: flex; align-items: center; gap: 5px; padding: 3px 8px 3px 6px; border-radius: 20px; font-size: 11px; font-weight: 500; white-space: nowrap; cursor: default; transition: background 0.2s, color 0.2s; -webkit-app-region: no-drag; app-region: no-drag; } .header-status-pill.online { background: rgba(16,185,129,0.1); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.18); } .header-status-pill.offline { background: rgba(239,68,68,0.09); color: #fca5a5; border: 1px solid rgba(239,68,68,0.18); } :root { --status-online: #10b981; --status-offline: #ef4444; } /* ── Live generation badge ── */ .header-live-badge { display: flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 10px; background: rgba(99,102,241,0.14); border: 1px solid rgba(99,102,241,0.24); font-size: 11px; font-weight: 600; color: #a5b4fc; white-space: nowrap; } .header-live-pulse { width: 5px; height: 5px; border-radius: 50%; background: #818cf8; flex-shrink: 0; animation: hdr-pulse 1s ease-in-out infinite; } @keyframes hdr-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } } .header-live-unit { font-weight: 400; opacity: 0.7; } /* ── TPS badge ── */ .header-tps-badge { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.35); white-space: nowrap; cursor: default; } .header-tps-unit { font-size: 10px; opacity: 0.7; } /* ── Icon buttons ── */ .header-icon-btn { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: none; border-radius: 6px; background: transparent; color: rgba(255,255,255,0.38); cursor: pointer; transition: background 0.15s, color 0.15s; flex-shrink: 0; -webkit-app-region: no-drag; app-region: no-drag; } .header-icon-btn:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.85); } .header-icon-btn:active { background: rgba(255,255,255,0.04); transform: scale(0.93); } /* ── Window Controls ── */ .header-wincontrols { display: flex; align-items: center; gap: 2px; margin-left: 6px; padding-left: 6px; border-left: 1px solid rgba(255,255,255,0.06); -webkit-app-region: no-drag; app-region: no-drag; } .winctrl { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: none; border-radius: 6px; background: transparent; color: rgba(255,255,255,0.3); cursor: pointer; transition: background 0.12s, color 0.12s; flex-shrink: 0; } .winctrl:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); } .winctrl:active { transform: scale(0.92); } /* Close gets a red hover */ .winctrl-close:hover { background: rgba(239,68,68,0.18); color: #fca5a5; } /* ── Content offset ── */ .with-app-header { padding-top: 48px; } /* ── Responsive ── */ @media (max-width: 640px) { .app-header { padding: 0 4px 0 6px; } .header-tps-badge { display: none; } .header-breadcrumb-title { max-width: 90px; } } @media (max-width: 480px) { .header-breadcrumb { display: none; } .header-brand-name { display: none; } }