.sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px 16px;
}

.sidebar-identity {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.sidebar-identity-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-address {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.sidebar-name {
  font-size: var(--text-xs);
  color: var(--fg-muted);
}

.compose-button {
  justify-content: flex-start;
  min-height: 44px;
  margin: 4px 0 10px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: var(--text-md);
}

.compose-button .icon {
  width: 19px;
  height: 19px;
}

.folder-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.folder {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 10px 0 12px;
  border-radius: var(--radius);
  color: var(--fg);
  text-decoration: none;
}

.folder .icon {
  color: var(--fg-muted);
}

.folder:hover {
  background: var(--bg-hover);
}

.folder.is-current {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 650;
}

.folder.is-current .icon {
  color: var(--accent-text);
}

.folder-name {
  flex: 1 1 auto;
}

.folder-error {
  padding: 8px 12px;
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

.sidebar-foot {
  margin-top: auto;
  padding: 16px 12px 0;
  color: var(--fg-muted);
  font-size: var(--text-xs);
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .sidebar-identity {
    display: flex;
  }
}
