/**
 * LifeOS — Topbar (shared)
 *
 * Canonical example for the `css_only_split` kind under the platform-separation
 * convention (`docs/ui-platform-convention.md`). This file holds rules that
 * apply on both desktop and mobile. Platform-specific overrides live in
 * `css/topbar.desktop.css` and `css/topbar.mobile.css`, gated by the `<link
 * media="...">` attributes in `app.html`.
 *
 * Brand tokens are read from `css/app.css` `:root`. Do not hardcode literals.
 */

.main-header, .app-header {
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-7);
  gap: 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-left { display: flex; align-items: center; gap: 14px; flex: 1; }
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-title { font-size: var(--fs-lg); font-weight: 700; color: var(--text); letter-spacing: -.2px; }

/* User menu in header */
.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.header-user:hover { background: var(--accent-glow); }
.header-user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.header-user-name {
  font-size: var(--fs-md);
  color: var(--text-muted);
  font-weight: 500;
}
