body {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--color-sidebar-bg);
  color: var(--color-sidebar-text);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
}

.sidebar-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--color-sidebar-text-muted);
}

.nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-item {
  background: transparent;
  border: none;
  color: var(--color-sidebar-text);
  padding: 10px 12px;
  text-align: left;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .15s;
}
.nav-item:hover:not(:disabled) { background: var(--color-sidebar-hover); }
.nav-item.active { background: var(--color-sidebar-active); color: #fff; }
.nav-item:disabled { cursor: default; }
.nav-icon { font-size: 16px; line-height: 1; }
.nav-badge {
  margin-left: auto;
  font-size: 11px;
  color: var(--color-sidebar-text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 999px;
}

.sidebar-footer {
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
}
.meta-label { color: var(--color-sidebar-text-muted); }
.meta-truncate {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main {
  flex: 1;
  padding: 28px var(--dock-width-plus-gap) 40px 32px;
  min-width: 0;
  transition: padding-right 240ms ease;
}
body.dock-collapsed .main {
  padding-right: 32px;
}

.page-header { margin-bottom: 20px; }
.page-header h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.page-sub { margin: 4px 0 0; color: var(--color-text-muted); font-size: 13px; }
