.unified-workspaces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

.unified-workspaces .unified-workspaces__link {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid #c8d3f2;
  border-radius: 9px;
  background: #f5f7ff;
  color: #223e80;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.unified-workspaces .unified-workspaces__link:hover {
  background: #e6edff;
}

.unified-workspaces .unified-workspaces__link[aria-current="page"] {
  background: #4b3d9b;
  border-color: #4b3d9b;
  color: #fff;
}

/* The original sidebar is a three-row grid. Give the workspace links a row. */
.sidebar:has(> .unified-workspaces) {
  grid-template-rows: 70px auto minmax(0, 1fr) 76px;
}

.sidebar > .unified-workspaces {
  grid-column: 1 / -1;
  padding: 4px 0 0;
}

.sidebar > .unified-workspaces + nav {
  min-height: 0;
  overflow-y: auto;
  padding-top: 0;
}

.unified-logout-notice {
  margin: 4px 0 0;
  color: #223e80;
  font-size: 14px;
}

.finance-workspaces {
  padding: 0 6px;
}

@media (max-width: 999px) {
  .finance-workspaces { padding: 0; }
}

@media (max-height: 540px) {
  .sidebar:has(> .unified-workspaces) {
    grid-template-rows: 54px auto minmax(0, 1fr) 60px;
  }
}
