/* ─── Top Bar ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--topbar-bg-light);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--page-padding);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

[data-theme="dark"] .topbar {
  background: var(--topbar-bg-dark);
}

.topbar > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.topbar-leading {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  flex: 1 1 auto;
}

.topbar-titles {
  min-width: 0;
  flex: 1 1 auto;
}

.topbar-back {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: calc(var(--page-padding) * -1);
}

.topbar-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-subtitle {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.topbar-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.topbar-actions-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  flex-shrink: 0;
}
