html,
body {
  height: 100%;
  margin: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  overflow: hidden;
}

:root {
  --docs-header-height: 45px;
}

.top-menu {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-sizing: border-box;
  font-family: Inter, 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  height: var(--docs-header-height);
  line-height: 1.7;
  left: 0;
  padding: 0 14px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10000;
}

.top-menu__inner {
  align-items: center;
  display: flex;
  gap: 18px;
  height: 100%;
}

.top-menu__brand {
  align-items: center;
  color: #0f172a;
  display: inline-flex;
  font-family: Inter, 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  min-width: 100px;
  width: 120px;
  text-decoration: none;
}

.top-menu__nav {
  display: flex;
  gap: 6px;
}

.top-menu__actions {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.top-menu__surface-label {
  color: #64748b;
  font-family: Inter, 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.top-menu__surface-select {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #0f172a;
  font-family: Inter, 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 500;
  height: 28px;
  padding: 0 8px;
}

.top-menu__surface-select:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.top-menu__nav a {
  align-items: center;
  border-radius: 6px;
  color: #475569;
  display: inline-flex;
  font-family: Inter, 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  height: 30px;
  line-height: 1;
  padding: 0 10px;
  text-decoration: none;
}

.top-menu__nav a:hover {
  background: #f1f5f9;
}

.top-menu__nav a[aria-current='page'] {
  background: #eff6ff;
  color: #1d4ed8;
}

#app {
  --scalar-custom-header-height: var(--docs-header-height);
  height: 100vh;
  overflow: hidden;
}

.oxvo-theme-switch {
  -webkit-tap-highlight-color: transparent;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  height: 24px;
  margin: 0 0 0 6px;
  padding: 0;
  position: relative;
  width: 38px;
}

.oxvo-theme-switch:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.oxvo-theme-switch__track {
  background: #e2e8f0;
  border-radius: 999px;
  height: 12px;
  left: 1px;
  position: absolute;
  right: 1px;
  top: 6px;
}

.oxvo-theme-switch__thumb {
  align-items: center;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  color: #0f172a;
  display: flex;
  height: 23px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: -6px;
  transition: transform 0.24s ease;
  width: 23px;
  transform: translateX(0);
}

.top-menu .oxvo-theme-switch[aria-pressed='true'] .oxvo-theme-switch__thumb,
html[data-theme='dark'] .top-menu .oxvo-theme-switch__thumb {
  transform: translateX(14px) !important;
}

.oxvo-theme-switch__icon {
  font-size: 12px;
  line-height: 1;
}

.scalar-app .open-api-client-button {
  display: none !important;
}

.scalar-app .darklight-reference {
  border-top: 1px solid var(--scalar-border-color);
  margin-top: 10px;
  padding-top: 12px !important;
}

.scalar-app .api-reference-toolbar {
  margin-top: 45px;
}

.scalar-app .group\/sidebar-section > .group\/spacer-before {
  align-items: center;
  box-sizing: border-box;
  height: 24px !important;
  padding-left: 0 !important;
  padding-bottom: 6px;
  padding-right: 0 !important;
  padding-top: 6px;
  position: relative;
}

.scalar-app .group\/sidebar-section > .group\/spacer-before::after {
  border-top: 1px solid var(--scalar-border-color);
  content: '';
  left: 12px;
  opacity: 0.9;
  position: absolute;
  right: 12px;
  top: 50%;
}

.scalar-app .group\/button.cursor-auto.text-sm\/5.font-bold > .group\/button-label.flex-1.min-w-0 {
  letter-spacing: 0.02rem;
  line-height: 1.3333;
  padding-bottom: 4px;
  padding-top: 4px;
}

@media (min-width: 1001px) {
  .scalar-app .t-doc__sidebar {
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }

  .scalar-app .references-rendered {
    height: var(--refs-sidebar-height);
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
}

html[data-theme='dark'] body {
  background: #1b1b1d;
  color: #e5e7eb;
}

html[data-theme='dark'] .top-menu {
  background: #1b1b1d;
  border-bottom-color: #2f3137;
}

html[data-theme='dark'] .top-menu__brand {
  color: #f8fafc;
}

html[data-theme='dark'] .top-menu__nav a {
  color: #d1d5db;
}

html[data-theme='dark'] .top-menu__nav a:hover {
  background: #2b2d31;
  color: #f3f4f6;
}

html[data-theme='dark'] .top-menu__nav a[aria-current='page'] {
  background: #33363c;
  color: #f3f4f6;
}

html[data-theme='dark'] .top-menu__surface-label {
  color: #9ca3af;
}

html[data-theme='dark'] .top-menu__surface-select {
  background: #111827;
  border-color: #374151;
  color: #f3f4f6;
}

html[data-theme='dark'] .oxvo-theme-switch__track {
  background: #334155;
}

html[data-theme='dark'] .oxvo-theme-switch__thumb {
  background: #0f172a;
  border-color: #475569;
  color: #e2e8f0;
}
