.left-spaces-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
}

.left-spaces-heading,
.left-spaces-group {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.left-spaces-heading {
  padding: 0 10px 5px;
  color: var(--muted);
  font-size: 11px;
}

.left-spaces-group {
  padding: 7px 10px 3px;
}

.left-spaces-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 40px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.left-spaces-item:hover {
  background: #f5f8fa;
  color: #0b6f8c;
}

.left-spaces-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.left-spaces-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  overflow: hidden;
  border-radius: 50%;
  background: #e6f6fb;
  color: #0b6f8c;
  font-size: 12px;
  font-weight: 700;
}

.left-spaces-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.left-spaces-name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The gear rides on the "Your spaces" heading. It is the only control in this
   section — discovery belongs to Explore at the top of the rail, so a second
   "find Spaces" entry here would just be the same door twice. */
.left-spaces-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.left-spaces-head .left-spaces-heading {
  padding-right: 0;
}

.left-spaces-manage {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  /* Icon-only, so the box is padded out to a comfortable target rather than
     being only as big as the 15px gear. */
  width: 28px;
  height: 28px;
  margin: 0 6px 5px 0;
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
}

.left-spaces-manage:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.left-spaces-manage:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
