body {
  background: var(--color-background);
  color: var(--color-text);
}

/* The connect/repo screens are centered single cards - .screen is correct
   for those. The main app shell is a different layout entirely (docked
   topbar + docked sidebar + filling content) and gets its own class so it
   never inherits .screen's centering, which used to squash the topbar and
   sidebar into the middle of the viewport. */
.screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.app-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  width: 100%;
  height: var(--topbar-height);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--color-surface) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 30;
}

.app-body {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.sidebar {
  width: var(--sidebar-width);
  height: 100%;
  flex-shrink: 0;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  overflow-y: auto;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: var(--topbar-height) 0 0 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 25;
}

.sidebar-spacer { flex: 1; }

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
}

.content {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  padding: 28px 32px 60px;
}

.search-wrap {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.conn-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 4px;
  font-size: 12.5px;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
}
