#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--gray-900);
  color: var(--gray-300);
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

/* One View lockup: mark, wordmark, tracked sub-label (WORK-1053). Both text
 * halves come from BRAND, so a later rebrand flows through rebrand.py rather
 * than through this file. */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.sidebar-logo-mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.sidebar-logo-text {
  display: block;
  min-width: 0;
}

.sidebar-logo-name {
  display: block;
  font-family: var(--sazi-font-display);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.sidebar-logo-tagline {
  display: block;
  font-size: 8px;
  font-weight: 600;
  color: var(--sazi-brand-40);
  letter-spacing: 0.34em;
  margin-top: 3px;
  line-height: 1.2;
  text-transform: uppercase;
  /* letter-spacing also applies after the final glyph, so a label tracked
   * this hard sits visibly left of true. Pull the trailing space back. */
  margin-right: -0.34em;
}

.sidebar-section {
  margin-top: 8px;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  cursor: pointer;
  user-select: none;
}

.sidebar-section-header:hover {
  color: var(--gray-400);
}

.sidebar-section-header .chevron {
  font-size: 10px;
  transition: transform 0.2s;
}

.sidebar-section-header.collapsed .chevron {
  transform: rotate(-90deg);
}

.sidebar-section-items {
  overflow: hidden;
}

.sidebar-section-items.collapsed {
  max-height: 0;
}

.sidebar-item {
  display: block;
  padding: 8px 16px 8px 28px;
  color: var(--gray-400);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  border-left: 3px solid transparent;
}

.sidebar-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--gray-200);
}

.sidebar-item.active {
  background: color-mix(in srgb, var(--sazi-brand-60) 22%, transparent);
  color: #fff;
  /* Citrus reads as the active marker on ink and nowhere else. */
  border-left-color: var(--sazi-citrus);
}

.sidebar-dashboard-item {
  padding-left: 16px;
  margin-top: 8px;
}

.notif-wrap {
  position: relative;
}

.notif-bell {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: 13px;
  padding: 4px 0;
}

.notif-count {
  display: inline-block;
  background: var(--red-600);
  color: #fff;
  border-radius: 999px;
  padding: 0 6px;
  font-size: 11px;
  margin-left: 4px;
}

.notif-count[hidden] {
  display: none;
}

.notif-panel {
  position: absolute;
  bottom: 28px;
  left: 0;
  width: 260px;
  max-height: 320px;
  overflow: auto;
  background: #fff;
  color: var(--sazi-ink);
  border: 1px solid var(--sazi-line);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  z-index: 50;
}

.notif-panel[hidden] {
  display: none;
}

.notif-item {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--sazi-mist);
  cursor: pointer;
}

.notif-item.is-read {
  opacity: 0.55;
}

.notif-item.is-unread {
  font-weight: 600;
}

.notif-title {
  font-size: 13px;
}

.notif-body {
  font-size: 11px;
  color: var(--sazi-muted);
}

.notif-empty {
  padding: 0.8rem;
  font-size: 12px;
  color: var(--sazi-muted);
}
