/* Left menu panel shell, brand row and scroll area. */

#menu_left_zone_layout {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: var(--menu-shell-pad-top) var(--menu-shell-pad-x) var(--menu-shell-pad-bottom);
  gap: var(--menu-shell-gap);
  background: var(--menu-side-canvas-bg);
  font-family: var(--font-ui);
  z-index: 2;
}

#menu_left_brand {
  flex: 0 0 auto;
  height: var(--menu-panel-top-row-height);
  min-height: var(--menu-panel-top-row-height);
  max-height: var(--menu-panel-top-row-height);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
}

.menu-brand-link {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--menu-panel-top-row-height);
  height: var(--menu-panel-top-row-height);
  text-decoration: none;
  color: var(--vk-text-primary);
  font-family: var(--font-brand);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.12em;
}

#menu_left_brand > [data-panel-toggle="left-close"] {
  grid-column: 3;
}

.menu-brand-link:hover,
.menu-brand-link:focus-visible {
  color: var(--vk-text-primary);
  text-decoration: none;
}

.menu-shell-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-inline:
    calc(-1 * var(--vk-paper-list-gutter-left))
    calc(-1 * var(--vk-paper-list-gutter-right));
  padding-inline:
    var(--vk-paper-list-gutter-left)
    var(--vk-paper-list-gutter-right);
  padding-bottom: var(--menu-shell-scroll-shadow-pad-bottom);
  scroll-padding-inline:
    var(--vk-paper-list-gutter-left)
    var(--vk-paper-list-gutter-right);
  scroll-padding-bottom: var(--menu-shell-scroll-shadow-pad-bottom);
}

#menu_left_bottom_auth {
  flex: 0 0 auto;
  min-height: 48px;
  height: auto;
  max-height: none;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  position: relative;
  z-index: 12;
}
