.docs-mobile-tools,
.docs-mobile-drawer {
  display: none;
}

@media (max-width: 860px) {
  .docs-site-shell {
    overflow: visible;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-shell {
    gap: 0;
    padding-top: 24px;
  }

  .docs-mobile-tools {
    position: sticky;
    top: 0;
    z-index: 24;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    width: min(calc(100% - 32px), 1380px);
    margin: 0 auto;
    border-bottom: 1px solid var(--line);
    background: rgba(3, 9, 14, .94);
    backdrop-filter: blur(14px);
  }

  .docs-mobile-tools__button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #aeb9c8;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }

  .docs-mobile-tools__button:hover,
  .docs-mobile-tools__button:focus-visible {
    color: #eef3fa;
  }

  .docs-mobile-tools__icon {
    width: 16px;
    height: 16px;
  }

  .docs-mobile-drawer:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
  }

  .docs-mobile-drawer__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, .56);
    backdrop-filter: blur(3px);
  }

  .docs-mobile-drawer__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(88vw, 352px);
    display: flex;
    flex-direction: column;
    background: #07111a;
    box-shadow: 0 0 48px rgba(0, 0, 0, .42);
  }

  .docs-mobile-drawer__panel--left {
    left: 0;
    border-right: 1px solid var(--line);
  }

  .docs-mobile-drawer__panel--right {
    right: 0;
    border-left: 1px solid var(--line);
  }

  .docs-mobile-drawer__header {
    min-height: 62px;
    flex: 0 0 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
  }

  .docs-mobile-drawer__header strong {
    font-size: 13px;
  }

  .docs-mobile-drawer__close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    color: #9eacbd;
    cursor: pointer;
  }

  .docs-mobile-drawer__close:hover,
  .docs-mobile-drawer__close:focus-visible {
    color: #fff;
    background: rgba(255,255,255,.055);
  }

  .docs-mobile-drawer__body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px;
  }

  .docs-mobile-drawer__body--navigation .docs-nav {
    gap: 12px;
  }

  .docs-mobile-drawer__body--navigation .docs-nav__group {
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.018);
    overflow: hidden;
  }

  .docs-mobile-drawer__body--navigation .docs-nav__group::before {
    display: none;
  }

  .docs-mobile-drawer__body--navigation .docs-nav__summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 13px;
    list-style: none;
    color: #cbd5e2;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .015em;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
  }

  .docs-mobile-drawer__body--navigation .docs-nav__summary::-webkit-details-marker {
    display: none;
  }

  .docs-mobile-drawer__body--navigation .docs-nav__summary:hover,
  .docs-mobile-drawer__body--navigation .docs-nav__summary:focus-visible {
    background: rgba(255,255,255,.035);
    color: #f0f4fa;
  }

  .docs-mobile-drawer__body--navigation .docs-nav__group[open] .docs-nav__summary {
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.025);
  }

  .docs-mobile-drawer__body--navigation .docs-nav__items {
    display: grid;
    gap: 7px;
    padding: 9px;
  }

  .docs-mobile-drawer__body--navigation .docs-nav__link {
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255,255,255,.018);
    color: #96a5b8;
    font-size: 12px;
    line-height: 1.35;
  }

  .docs-mobile-drawer__body--navigation .docs-nav__link::before {
    display: none;
  }

  .docs-mobile-drawer__body--navigation .docs-nav__link:hover,
  .docs-mobile-drawer__body--navigation .docs-nav__link:focus-visible {
    border-color: rgba(120, 132, 255, .2);
    background: rgba(100, 109, 255, .07);
    color: #e7ebff;
  }

  .docs-mobile-drawer__body--navigation .docs-nav__link.is-active {
    border-color: rgba(117, 122, 255, .42);
    background: linear-gradient(135deg, rgba(93, 105, 255, .18), rgba(115, 79, 255, .10));
    color: #d6d9ff;
    box-shadow: inset 0 0 20px rgba(92, 85, 255, .045);
  }

  .docs-mobile-toc {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .docs-mobile-toc__link {
    display: block;
    padding: 9px 10px;
    border-radius: 7px;
    color: #94a2b5;
    font-size: 13px;
    line-height: 1.45;
  }

  .docs-mobile-toc__link:hover,
  .docs-mobile-toc__link:focus-visible {
    background: rgba(255,255,255,.035);
    color: #e7edf6;
  }

  .docs-mobile-toc__link--level-3 {
    padding-left: 22px;
    font-size: 12px;
  }

  .docs-mobile-toc__link--level-4 {
    padding-left: 34px;
    font-size: 12px;
  }

  body.docs-mobile-drawer-open {
    overflow: hidden;
  }

  html[data-theme="light"] .docs-mobile-tools {
    background: rgba(248, 250, 252, .94);
  }

  html[data-theme="light"] .docs-mobile-tools__button {
    color: #5e6d82;
  }

  html[data-theme="light"] .docs-mobile-tools__button:hover,
  html[data-theme="light"] .docs-mobile-tools__button:focus-visible {
    color: #1f2d42;
  }

  html[data-theme="light"] .docs-mobile-drawer__panel {
    background: #f8fafc;
  }

  html[data-theme="light"] .docs-mobile-drawer__close {
    color: #58677b;
    background: rgba(34, 45, 63, .035);
  }

  html[data-theme="light"] .docs-mobile-drawer__body--navigation .docs-nav__group {
    background: rgba(255,255,255,.66);
  }

  html[data-theme="light"] .docs-mobile-drawer__body--navigation .docs-nav__summary {
    color: #34435a;
  }

  html[data-theme="light"] .docs-mobile-drawer__body--navigation .docs-nav__summary:hover,
  html[data-theme="light"] .docs-mobile-drawer__body--navigation .docs-nav__summary:focus-visible,
  html[data-theme="light"] .docs-mobile-drawer__body--navigation .docs-nav__group[open] .docs-nav__summary {
    background: rgba(35, 48, 69, .035);
  }

  html[data-theme="light"] .docs-mobile-drawer__body--navigation .docs-nav__link {
    background: rgba(39, 52, 72, .025);
    color: #5c6b80;
  }

  html[data-theme="light"] .docs-mobile-drawer__body--navigation .docs-nav__link:hover,
  html[data-theme="light"] .docs-mobile-drawer__body--navigation .docs-nav__link:focus-visible {
    border-color: rgba(80, 90, 210, .18);
    background: rgba(80, 90, 210, .06);
    color: #33405a;
  }

  html[data-theme="light"] .docs-mobile-drawer__body--navigation .docs-nav__link.is-active {
    border-color: rgba(80, 89, 205, .28);
    background: rgba(80, 89, 205, .09);
    color: #4d55bd;
  }

  html[data-theme="light"] .docs-mobile-toc__link {
    color: #647287;
  }

  html[data-theme="light"] .docs-mobile-toc__link:hover,
  html[data-theme="light"] .docs-mobile-toc__link:focus-visible {
    background: rgba(34, 45, 63, .045);
    color: #28364b;
  }
}

@media (max-width: 700px) {
  .footer-inner {
    gap: 20px;
    padding: 22px 0 24px;
  }

  .footer-brandline {
    gap: 14px;
  }

  .footer-wordmark {
    flex: 0 0 auto;
  }

  .footer-brandline nav {
    gap: 18px;
    flex-wrap: wrap;
  }

  .footer-meta {
    flex-wrap: wrap;
    row-gap: 9px;
  }
}
