*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Proxima Nova', system-ui, -apple-system, sans-serif;
  background: var(--bg2);
  color: var(--txt);
  min-height: 100vh;
  font-size: 14px;
}

/* Shell */
.shell { display: flex; flex-direction: column; height: 100vh; }

/* Topbar */
.topbar {
  height: 56px;
  background: var(--bg2);
  border-bottom: 1px solid var(--brd);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  flex-shrink: 0;
  z-index: 100;
}
.topbar-logo { color: var(--pur); font-weight: 700; font-size: 15px; letter-spacing: -.3px; }
.topbar-sep  { flex: 1; }

/* Body */
.body { display: flex; flex: 1; overflow: hidden; }

/* Sidebar */
.sidebar {
  width: 175px;
  background: var(--bg1);
  border-right: 1px solid var(--brd);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  flex-shrink: 0;
}

.snav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--txs);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.snav:hover { background: rgba(255,255,255,.05); color: var(--txt); }
.snav.on    { background: var(--actBg); color: var(--act); }
.snav svg   { width: 16px; height: 16px; flex-shrink: 0; }

.snav-section {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--txs);
  padding: 12px 10px 4px;
}

/* Main */
.main {
  flex: 1;
  padding: 12px 16px;
  overflow-y: auto;
  background: var(--bg2);
}

/* Mobile: sidebar collassabile */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .sidebar.open { display: flex; position: fixed; top: 56px; left: 0; bottom: 0; z-index: 200; }
  .main { padding: 10px 12px; }
}
