.nav-rail {
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 24px 12px;
  position: static;
}

.nav-brand {
  align-items: center;
  display: flex;
  gap: 12px;
  padding: 8px 12px 24px;
}

.nav-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-brand-name {
  color: var(--color-highlight);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-brand-dot {
  background: var(--color-accent-strong);
  border-radius: 999px;
  height: 8px;
  width: 8px;
}

.nav-items {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
}

.nav-item {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--color-muted);
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  min-height: 44px;
  padding: 11px 12px;
  position: relative;
  text-align: left;
}

.nav-item::before {
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-strong));
  border-radius: 0 3px 3px 0;
  content: "";
  height: 60%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 20%;
  transition: opacity var(--transition-smooth);
  width: 3px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-subtle);
  transform: none;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--color-highlight);
}

.nav-item.active::before {
  opacity: 1;
}

.nav-icon {
  flex-shrink: 0;
  font-size: 1rem;
  text-align: center;
  width: 20px;
}

.nav-label {
  white-space: nowrap;
}

.nav-footer {
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 10px;
  margin-top: auto;
  min-width: 0;
  padding-top: 16px;
  width: 100%;
}

.nav-footer .compact-field,
.nav-footer select {
  min-width: 0;
  width: 100%;
}

.nav-footer-actions {
  display: flex;
  gap: 8px;
}

.nav-footer-actions > * {
  flex: 1;
}

.bottom-tab-bar {
  bottom: 16px;
  display: none;
  gap: 8px;
  left: 14px;
  padding: 8px;
  position: fixed;
  right: 14px;
  z-index: 30;
}

.bottom-tab-item {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--color-muted);
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  min-height: 56px;
  padding: 10px 8px;
}

.bottom-tab-item.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-highlight);
}

.bottom-tab-icon {
  font-size: 1rem;
  line-height: 1;
}

.bottom-tab-item span:last-child {
  font-size: 0.78rem;
}
