.bd-global-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 236px;
  padding: 28px 22px 20px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #e4e7ec;
}

.bd-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 0 6px 24px;
}

.bd-sidebar-brand-logo {
  display: block;
  width: 112px;
  height: 76px;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity .16s ease;
}

.bd-sidebar-brand-logo.is-ready { opacity: 1; }

.bd-sidebar-nav {
  display: grid;
  align-content: start;
  gap: 12px;
}

.bd-sidebar-group {
  display: grid;
  gap: 4px;
}

.bd-sidebar-group-label {
  margin: 2px 10px 0;
  color: var(--bd-text-tertiary);
  font: 600 10px/1.2 var(--bd-font);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bd-sidebar-group-links {
  display: grid;
  gap: 2px;
}

.bd-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 8px 10px;
  border: 0;
  border-radius: 3px;
  color: #4b5563;
  font: 400 13.5px/1.2 var(--bd-font);
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
}

.bd-sidebar-link:hover {
  background: #fafbfc;
  color: #14181f;
}

.bd-sidebar-link.is-active {
  background: #eef3fb;
  color: #2f5fb0;
  font-weight: 600;
}

.bd-sidebar-link:focus-visible {
  outline: 2px solid #c7d6ee;
  outline-offset: 2px;
}

.bd-sidebar-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  line-height: 1;
  flex: 0 0 18px;
}

.bd-sidebar-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bd-sidebar-icon svg circle[fill="currentColor"] {
  fill: currentColor;
  stroke: none;
}

.bd-sidebar-footer {
  margin-top: auto;
  padding: 14px 2px 0;
  color: var(--bd-text-tertiary);
  font: 400 12px/1.5 var(--bd-font);
}

.bd-sidebar-toggle,
.bd-sidebar-backdrop {
  display: none;
}

body.bd-with-nav .bd-topbar-inner {
  height: 52px;
  margin-left: 236px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: none;
}

body.bd-with-nav .bd-topbar-left { gap: 12px; }
body.bd-with-nav .bd-topbar-right { gap: 8px; }

body.bd-with-nav .bd-title {
  margin: 0;
  color: #14181f;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

body.bd-with-nav .bd-main {
  padding: 32px 44px 80px;
}

body.bd-with-nav .bd-main > .bd-container {
  width: calc(100% - 236px);
  max-width: 1440px;
  margin-left: 236px;
  margin-right: auto;
}

body.bd-with-nav .bd-footer {
  margin-left: 236px;
}

body.bd-with-nav .bd-topbar .bd-back,
body.bd-with-nav .bd-topbar .bd-topbar-divider {
  display: none;
}

body.bd-with-nav.bd-chart-detail .bd-topbar .bd-back,
body.bd-with-nav.bd-chart-detail .bd-topbar .bd-topbar-divider {
  display: inline-flex;
}

body.bd-with-nav :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #c7d6ee;
  outline-offset: 2px;
}

body.bd-with-nav :where(input, select, textarea):focus-visible {
  border-color: #2f5fb0;
  box-shadow: 0 0 0 3px #eef3fb;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .bd-sidebar-brand-logo { transition: none; }
}

@media (max-width: 860px) {
  body.bd-with-nav {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .bd-global-sidebar {
    position: sticky;
    inset: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 58px;
    padding: 10px 16px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid #e4e7ec;
  }

  .bd-sidebar-brand {
    min-height: 36px;
    padding: 0;
    flex: 0 0 auto;
  }

  .bd-sidebar-brand-logo {
    width: 64px;
    height: 38px;
  }

  .bd-sidebar-nav {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .bd-sidebar-nav::-webkit-scrollbar { display: none; }

  .bd-sidebar-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 2px;
  }

  .bd-sidebar-group-label {
    margin: 0 3px 0 6px;
    white-space: nowrap;
  }

  .bd-sidebar-group-links {
    display: flex;
    flex: 0 0 auto;
    gap: 2px;
  }

  .bd-sidebar-link {
    min-height: 32px;
    padding: 7px 9px;
    white-space: nowrap;
  }

  .bd-sidebar-footer,
  .bd-sidebar-toggle,
  .bd-sidebar-backdrop {
    display: none !important;
  }

  body.bd-with-nav .bd-main {
    padding: 24px 16px 56px;
  }

  body.bd-with-nav .bd-main > .bd-container {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  body.bd-with-nav .bd-topbar-inner {
    width: 100%;
    min-height: 48px;
    height: auto;
    margin-left: 0;
    padding: 10px 16px;
  }

  body.bd-with-nav .bd-footer { margin-left: 0; }
}

@media (max-width: 600px) {
  body.bd-with-nav .bd-main { padding-inline: 16px; }
  body.bd-with-nav .bd-title { font-size: 16px; }
}
