.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background:
    linear-gradient(180deg, rgba(255, 249, 234, .9), rgba(245, 226, 183, .84)),
    repeating-linear-gradient(45deg, rgba(113, 74, 18, .04) 0 1px, transparent 1px 8px);
  border-right: 1px solid var(--line);
  box-shadow: 16px 0 40px rgba(80, 54, 18, .08);
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 24px;
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .25s var(--ease);
}

.brand:hover {
  background: rgba(255,255,255,.34);
}

.brand:focus-visible {
  outline: 2px solid rgba(63, 124, 172, .52);
  outline-offset: 3px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #f2cf82, #fff2c8);
  border: 1px solid rgba(105, 73, 21, .18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 22px rgba(129, 86, 27, .17);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  color: #51340d;
  flex-shrink: 0;
}

.brand-mark img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.brand h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}

.nav-section-title {
  margin: 20px 12px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.nav-item {
  position: relative;
  width: calc(100% - 4px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 13px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #4b3b27;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  transition: .25s var(--ease);
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  text-align: left;
}

.nav-item:hover {
  transform: translateX(4px);
  background: rgba(255,255,255,.45);
  border-color: var(--line);
}

.nav-item.active {
  background: #fff7df;
  border-color: rgba(129, 86, 27, .16);
  box-shadow: 0 12px 28px rgba(104, 65, 14, .10);
}

.nav-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255,255,255,.64);
  border: 1px solid rgba(80, 54, 18, .10);
  font-size: 14px;
  flex-shrink: 0;
}

.nav-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1120px) {
  .sidebar {
    padding: 20px 10px;
  }

  .brand {
    justify-content: center;
    padding: 8px 0 18px;
  }

  .brand h1,
  .nav-section-title,
  .nav-text {
    display: none;
  }

  .nav-item {
    justify-content: center;
    padding: 12px;
  }
}

@media (max-width: 760px) {
  .sidebar {
    position: static;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
  }

  .brand {
    min-width: 64px;
    padding: 0;
  }

  .nav-section-title {
    display: none;
  }

  .nav-list {
    flex-direction: row;
    flex: 0 0 auto;
    overflow: visible;
    padding-right: 0;
  }

  .nav-item {
    width: auto;
    min-width: 56px;
    justify-content: center;
  }
}
