.sidebar {
  --content-width: 720px;
  --gutter: 96px;
  --sidebar-width: calc(50% - var(--content-width) / 2 - var(--gutter));
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  padding: 32px 32px 64px;
  background: var(--surface);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 14px;
  line-height: 24px;
}
.sidebar-content {
  width: 100%;
  max-width: 216px;
  margin-left: auto;
}
@media (min-width: 1240px) {
  .sidebar {
    display: block;
  }
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  padding-left: 12px;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.sidebar-brand iconify-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-bottom: 4px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--text-strong);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  text-align: left;
}
button.sidebar-heading {
  cursor: pointer;
}
.sidebar-group:not(:last-child) {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.sidebar-group:not(:first-child) .sidebar-heading {
  padding-top: 14px;
}
.sidebar-group:not(:last-child):has(> button.sidebar-heading:not(.expanded)) {
  padding-bottom: 14px;
}
button.sidebar-heading:not(.expanded) {
  margin-bottom: 0;
}
.sidebar-menu {
  margin-top: 20px;
}
.sidebar-caret {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
  transition:
    transform 0.15s ease,
    color 0.15s ease;
}
.sidebar-heading.expanded .sidebar-caret {
  transform: rotate(90deg);
}
button.sidebar-heading:hover .sidebar-caret {
  color: var(--text-strong);
}
.sidebar-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--muted);
  font-weight: 400;
  text-decoration: none;
}
.sidebar-menu a iconify-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
}
.sidebar-menu a:hover {
  color: var(--text-strong);
  background: var(--surface-2);
}
.sidebar-menu a.active {
  color: var(--primary);
  background: var(--primary-soft);
  border-left-color: var(--primary);
}
.sidebar-menu a.active iconify-icon {
  color: var(--primary);
}
