/* App shell: fixed sidebar + sticky topbar + scrolling content. */

#app { min-height: 100%; }

.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  border-right: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 16px 12px;
  font-weight: 700;
  font-size: 15px;
}
.sidebar-brand img { width: 26px; height: 26px; }
.sidebar-nav { flex: 1; padding: 4px 10px 10px; }
.sidebar-foot { padding: 12px 16px 16px; border-top: 1px solid var(--border); }
.sidebar-foot .btn { width: 100%; justify-content: center; }
.sidebar-foot .foot-links {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Topbar */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 26px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.topbar-title { font-size: 15px; font-weight: 600; flex: 1; min-width: 0; }
.topbar .menu-wrap { position: relative; }

/* Content */
.content {
  flex: 1;
  width: 100%;
  max-width: 860px;
  padding: 26px;
}
.page-head { margin-bottom: 18px; }
.page-head p { margin-top: 4px; font-size: 13.5px; }

/* Small screens: collapsible sidebar drawer */
.nav-burger { display: none; }
/* Hidden (and out of the .shell grid flow) except as the open-drawer scrim. */
.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 40;
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.18s ease-out;
    box-shadow: none;
  }
  .shell.nav-open .sidebar { transform: none; box-shadow: var(--shadow-pop); }
  .nav-burger {
    display: inline-flex;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text);
    padding: 2px 6px;
  }
  .shell.nav-open .nav-scrim { display: block; }
  .content { padding: 18px 16px; }
}

/* Connect (signed-out) screen */
.connect-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.connect-card {
  width: 100%;
  max-width: 460px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  text-align: center;
}
.connect-card img { width: 52px; height: 52px; margin-bottom: 12px; }
.connect-card h1 { margin-bottom: 6px; }
.connect-card > p { margin-bottom: 22px; font-size: 13.5px; }
