.manual-actions-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 4px 0 20px;
}
.manual-bookmark-btn,
.manual-download-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--accent);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  -webkit-transition: 0.1s;
  transition: 0.1s;
}
.manual-bookmark-btn svg,
.manual-download-btn svg {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  margin: auto;
}
@media (max-width: 1015px) {
  .manual-bookmark-btn,
  .manual-download-btn {
    padding: 12px;
    font-size: 15px;
  }
  .manual-bookmark-btn span,
  .manual-download-btn span {
    display: none;
  }
}
.manual-bookmark-btn:hover,
.manual-bookmark-btn:focus,
.manual-download-btn:hover,
.manual-download-btn:focus {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.manual-bookmark-btn.is-saved {
  background: var(--accent);
  color: #fff;
}
.header-bookmarks {
  position: relative;
  margin-right: 12px;
}
.header-bookmarks__toggle {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--black);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  -webkit-transition: 0.16s;
  transition: 0.16s;
}
.header-bookmarks__toggle:hover,
.header-bookmarks__toggle:focus,
.header-bookmarks__toggle[aria-expanded="true"] {
  color: var(--accent);
}
.header-bookmarks__toggle svg {
  -ms-flex-negative: 0;
  flex-shrink: 0;
}
.header-bookmarks__count {
  position: absolute;
  top: 0;
  right: 0;
  -webkit-transform: translate(25%, -25%);
  transform: translate(25%, -25%);
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.header-bookmarks__count[hidden] {
  display: none;
}
.header-bookmarks__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: min(360px, calc(100vw - 24px));
  max-height: 420px;
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
  -webkit-box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.header-bookmarks__panel[hidden] {
  display: none;
}
.header-bookmarks__heading {
  margin: 0;
  padding: 14px 16px 10px;
  font-size: 16px;
  font-weight: 700;
}
.header-bookmarks__empty {
  margin: 0;
  padding: 8px 16px 16px;
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
}
.header-bookmarks__empty[hidden] {
  display: none;
}
.header-bookmarks__list {
  padding: 0 8px 8px;
}
.header-bookmarks__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
}
.header-bookmarks__item:hover {
  background: rgba(0, 0, 0, 0.04);
}
.header-bookmarks__link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  color: inherit;
  text-decoration: none;
}
.header-bookmarks__link:hover {
  text-decoration: none;
}
.header-bookmarks__thumb {
  width: 40px;
  height: 40px;
  -o-object-fit: contain;
  object-fit: contain;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}
.header-bookmarks__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.3;
}
.header-bookmarks__remove {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-right: 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(0, 0, 0, 0.55);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.header-bookmarks__remove:hover,
.header-bookmarks__remove:focus {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
}
@media (max-width: 1015px) {
  .header-bookmarks {
    margin-right: 8px;
  }
  .header-bookmarks__toggle {
    padding: 8px;
  }
  .header-bookmarks__toggle span:not(.header-bookmarks__count) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .header-bookmarks__panel {
    position: fixed;
    top: calc(64px + 8px);
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
  }
}
