/*
 * YHOO NewAPI console theme.
 * External overlay only: no NewAPI source, image, database, or business changes.
 */

html.ohlaoo-official-theme-ready,
body.ohlaoo-official-theme-ready {
  --yh-font-body:
    "Alibaba PuHuiTi",
    "HarmonyOS Sans SC",
    "MiSans",
    "Public Sans Variable",
    "Public Sans",
    "Noto Sans SC",
    "PingFang SC",
    "Microsoft YaHei UI",
    "Segoe UI",
    sans-serif;
  --yh-font-mono:
    "JetBrains Mono",
    "SFMono-Regular",
    "Cascadia Code",
    Consolas,
    monospace;

  --yh-canvas: color-mix(in oklab, var(--background, #f7f7f4) 92%, var(--muted, #eeeeea) 8%);
  --yh-panel: var(--card, #ffffff);
  --yh-panel-soft: color-mix(in oklab, var(--card, #ffffff) 84%, var(--muted, #eeeeea) 16%);
  --yh-panel-strong: color-mix(in oklab, var(--card, #ffffff) 94%, var(--foreground, #171714) 6%);
  --yh-text: var(--foreground, #171714);
  --yh-text-soft: color-mix(in oklab, var(--muted-foreground, #6f6f68) 88%, var(--foreground, #171714) 12%);
  --yh-text-faint: color-mix(in oklab, var(--muted-foreground, #6f6f68) 74%, transparent);
  --yh-line: color-mix(in oklab, var(--border, #deded8) 88%, transparent);
  --yh-line-strong: color-mix(in oklab, var(--border, #deded8) 70%, var(--foreground, #171714) 30%);
  --yh-accent: var(--primary, #171714);
  --yh-accent-contrast: var(--primary-foreground, #ffffff);
  --yh-accent-soft: color-mix(in oklab, var(--primary, #171714) 8%, var(--card, #ffffff) 92%);
  --yh-accent-mid: color-mix(in oklab, var(--primary, #171714) 16%, var(--card, #ffffff) 84%);
  --yh-brand: #e87555;
  --yh-brand-ink: #1a1a17;
  --yh-brand-paper: #fff8f3;
  --yh-code-bg: #171816;
  --yh-code-panel: #20211e;
  --yh-code-text: #f5f4ed;
  --yh-code-muted: #a9aaa2;
  --yh-danger: var(--destructive, #b64d4d);
  --yh-focus: color-mix(in oklab, var(--ring, var(--primary, #171714)) 34%, transparent);
  --yh-float-shadow: 0 18px 48px color-mix(in oklab, #000 14%, transparent);
  --yh-radius: 8px;
  --yh-radius-control: 6px;
  --yh-fast: 140ms;
  --yh-base: 200ms;
  --yh-ease: cubic-bezier(0.2, 0.75, 0.25, 1);

  font-family: var(--yh-font-body);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.ohlaoo-theme-dark {
  --yh-canvas: color-mix(in oklab, var(--background, #151513) 94%, #000 6%);
  --yh-panel: var(--card, #1c1c19);
  --yh-panel-soft: color-mix(in oklab, var(--card, #1c1c19) 82%, var(--muted, #292925) 18%);
  --yh-panel-strong: color-mix(in oklab, var(--card, #1c1c19) 90%, #fff 10%);
  --yh-text: var(--foreground, #f2f1ea);
  --yh-text-soft: color-mix(in oklab, var(--muted-foreground, #aaa99f) 90%, #fff 10%);
  --yh-line: color-mix(in oklab, var(--border, #33332e) 88%, transparent);
  --yh-line-strong: color-mix(in oklab, var(--border, #33332e) 62%, #fff 38%);
  --yh-accent-soft: color-mix(in oklab, var(--primary, #f0b39f) 10%, var(--card, #1c1c19) 90%);
  --yh-accent-mid: color-mix(in oklab, var(--primary, #f0b39f) 18%, var(--card, #1c1c19) 82%);
  --yh-code-bg: #0d0e0c;
  --yh-code-panel: #171815;
  --yh-float-shadow: 0 20px 56px color-mix(in oklab, #000 42%, transparent);
}

body.ohlaoo-page-app,
body.ohlaoo-page-auth {
  color: var(--yh-text);
  background: var(--yh-canvas);
  font-family: var(--yh-font-body) !important;
  font-size: 15.5px;
  line-height: 1.58;
}

body.ohlaoo-page-app {
  min-height: 100svh;
  overflow-x: hidden;
}

body.ohlaoo-page-app #root {
  min-height: 100svh;
}

body.ohlaoo-page-app *,
body.ohlaoo-page-auth * {
  box-sizing: border-box;
}

body.ohlaoo-page-app :is(
    button,
    input,
    textarea,
    select,
    label,
    table,
    [data-slot='button'],
    [data-slot='input'],
    [data-slot='select-trigger'],
    [data-sidebar='menu-button']
  ),
body.ohlaoo-page-auth :is(button, input, textarea, select, label) {
  font-family: var(--yh-font-body) !important;
  letter-spacing: 0;
}

body.ohlaoo-page-app :is(code, pre, kbd, .font-mono, [class*='font-mono']) {
  font-family: var(--yh-font-mono) !important;
  font-variant-numeric: tabular-nums;
}

body.ohlaoo-page-app :is(h1, h2, h3, h4, h5, h6),
body.ohlaoo-page-auth :is(h1, h2, h3, h4) {
  color: var(--yh-text);
  font-family: var(--yh-font-body);
  font-weight: 760;
  letter-spacing: 0;
}

body.ohlaoo-page-app h1 {
  font-size: 1.85rem;
  line-height: 1.2;
}

body.ohlaoo-page-app h2 {
  font-size: 1.28rem;
  line-height: 1.3;
}

body.ohlaoo-page-app h3,
body.ohlaoo-page-app h4 {
  font-size: 1.05rem;
  line-height: 1.4;
}

body.ohlaoo-page-app :is(.text-muted-foreground, [data-slot='empty-description']) {
  color: var(--yh-text-soft) !important;
  line-height: 1.6;
}

body.ohlaoo-page-app ::selection,
body.ohlaoo-page-auth ::selection {
  color: var(--yh-text);
  background: var(--yh-accent-mid);
}

button[aria-describedby='config-drawer-description'],
button[aria-label='Open theme settings'],
button[aria-label='Theme Settings'],
button[aria-label='打开主题设置'],
[data-ohlaoo-native-theme-control='hidden'],
[data-ohlaoo-native-theme-dialog='hidden'],
[role='dialog']:has(#config-drawer-description),
[data-slot='dialog-content']:has(#config-drawer-description),
[data-slot='sheet-content']:has(#config-drawer-description) {
  display: none !important;
  pointer-events: none !important;
}

/* Theme switch */
.ohlaoo-theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483000;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: var(--yh-text);
  border: 1px solid var(--yh-line-strong);
  border-radius: var(--yh-radius-control);
  background: var(--yh-panel);
  box-shadow: 0 8px 24px color-mix(in oklab, #000 10%, transparent);
  cursor: pointer;
  transition:
    color var(--yh-fast) ease,
    border-color var(--yh-fast) ease,
    background-color var(--yh-fast) ease;
}

.ohlaoo-theme-toggle:hover {
  color: var(--yh-accent);
  border-color: var(--yh-accent);
  background: var(--yh-panel-soft);
}

.ohlaoo-theme-toggle:focus-visible {
  outline: 3px solid var(--yh-focus);
  outline-offset: 2px;
}

.ohlaoo-theme-toggle-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ohlaoo-theme-toggle-moon,
.ohlaoo-theme-toggle[data-theme='dark'] .ohlaoo-theme-toggle-sun {
  display: none;
}

.ohlaoo-theme-toggle[data-theme='dark'] .ohlaoo-theme-toggle-moon {
  display: block;
}

/* Shell */
body.ohlaoo-page-app [data-slot='sidebar-inset'] {
  min-width: 0;
  min-height: 100svh;
  background: transparent;
}

body.ohlaoo-page-app [data-slot='sidebar-inner'] {
  border-inline-end: 1px solid var(--yh-line) !important;
  background: var(--yh-panel) !important;
  box-shadow: none !important;
}

body.ohlaoo-page-app [data-sidebar='group-label'] {
  height: auto;
  min-height: 28px;
  padding: 8px 12px 5px;
  color: var(--yh-text-faint) !important;
  font-size: 0.72rem !important;
  font-weight: 760 !important;
  line-height: 1.3;
  text-transform: uppercase;
}

body.ohlaoo-page-app [data-sidebar='menu-item'] {
  position: relative;
  margin-block: 2px;
}

body.ohlaoo-page-app [data-sidebar='menu-button'] {
  min-height: 40px;
  gap: 10px;
  padding-inline: 11px;
  color: var(--yh-text-soft);
  border: 1px solid transparent;
  border-radius: var(--yh-radius-control) !important;
  background: transparent !important;
  font-size: 0.94rem !important;
  font-weight: 610;
  line-height: 1.35 !important;
  transition:
    color var(--yh-fast) ease,
    border-color var(--yh-fast) ease,
    background-color var(--yh-fast) ease;
}

body.ohlaoo-page-app [data-sidebar='menu-button']:hover {
  color: var(--yh-text);
  background: var(--yh-panel-soft) !important;
}

body.ohlaoo-page-app [data-sidebar='menu-button'][data-active],
body.ohlaoo-page-app [data-sidebar='menu-button'].active {
  color: var(--yh-text) !important;
  border-color: var(--yh-line);
  background: var(--yh-accent-soft) !important;
  font-weight: 720;
}

body.ohlaoo-page-app [data-sidebar='menu-item']:has([data-active])::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px -1px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--yh-accent);
}

body.ohlaoo-page-app [data-sidebar='menu-button'] > svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px;
  color: currentColor;
  stroke-width: 1.8;
}

body.ohlaoo-page-app img[data-ohlaoo-brand-mark='1'],
body.ohlaoo-page-auth img[data-ohlaoo-brand-mark='1'] {
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: contain !important;
}

body.ohlaoo-page-app [data-slot='sidebar-header'] img[data-ohlaoo-brand-mark='1'] {
  width: 32px !important;
  height: 32px !important;
}

body.ohlaoo-page-app [data-slot='sidebar'][data-collapsible='icon'] {
  width: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  flex: 0 0 68px !important;
}

body.ohlaoo-page-app [data-slot='sidebar'][data-collapsible='icon'] [data-slot='sidebar-inner'] {
  width: 68px !important;
  min-width: 68px !important;
  overflow: hidden;
}

body.ohlaoo-page-app [data-slot='sidebar'][data-collapsible='icon'] [data-sidebar='group'] {
  padding-inline: 8px !important;
}

body.ohlaoo-page-app [data-slot='sidebar'][data-collapsible='icon'] [data-slot='sidebar-header'] {
  display: grid;
  min-height: 64px;
  place-items: center;
  padding: 8px !important;
  overflow: hidden;
}

body.ohlaoo-page-app [data-slot='sidebar'][data-collapsible='icon'] [data-slot='sidebar-header'] > * {
  width: 42px !important;
  min-width: 42px;
  justify-content: center;
  gap: 0 !important;
  overflow: hidden;
  font-size: 0 !important;
  white-space: nowrap;
}

body.ohlaoo-page-app [data-slot='sidebar'][data-collapsible='icon'] [data-slot='sidebar-header'] :is(img, svg) {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px;
}

body.ohlaoo-page-app [data-slot='sidebar'][data-collapsible='icon'] [data-sidebar='group-label'],
body.ohlaoo-page-app [data-slot='sidebar'][data-collapsible='icon'] [data-slot='sidebar-menu-action'],
body.ohlaoo-page-app [data-slot='sidebar'][data-collapsible='icon'] [data-sidebar='menu-action'] {
  display: none !important;
}

body.ohlaoo-page-app [data-slot='sidebar'][data-collapsible='icon'] [data-sidebar='menu-button'] {
  width: 42px !important;
  height: 42px !important;
  min-height: 42px;
  justify-content: center;
  gap: 0;
  margin-inline: auto;
  padding: 0 !important;
}

body.ohlaoo-page-app [data-slot='sidebar'][data-collapsible='icon'] [data-sidebar='menu-button'] > :not(svg:first-of-type),
body.ohlaoo-page-app [data-slot='sidebar'][data-collapsible='icon'] [data-sidebar='menu-button'] > svg:not(:first-of-type) {
  display: none !important;
}

body.ohlaoo-page-app [data-slot='sidebar'][data-collapsible='icon'] [data-sidebar='menu-button'] > svg:first-of-type {
  width: 19px !important;
  height: 19px !important;
}

body.ohlaoo-page-app header:has([data-slot='sidebar-trigger']) {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 64px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--yh-line);
  border-radius: 0;
  background: var(--yh-panel) !important;
  box-shadow: none !important;
}

body.ohlaoo-page-app header [data-slot='sidebar-trigger'],
body.ohlaoo-page-app header [data-slot='dropdown-menu-trigger'] {
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: var(--yh-radius-control) !important;
  background: transparent !important;
}

body.ohlaoo-page-app header [data-slot='sidebar-trigger']:hover,
body.ohlaoo-page-app header [data-slot='dropdown-menu-trigger']:hover {
  border-color: var(--yh-line);
  background: var(--yh-panel-soft) !important;
}

body.ohlaoo-page-app header :is(button, a) svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

body.ohlaoo-page-app header nav a,
body.ohlaoo-page-app nav.hidden.items-center.space-x-4 a {
  position: relative;
  color: var(--yh-text-soft);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

body.ohlaoo-page-app header nav a:hover,
body.ohlaoo-page-app nav.hidden.items-center.space-x-4 a:hover {
  color: var(--yh-text);
}

body.ohlaoo-page-app header nav a::after,
body.ohlaoo-page-app nav.hidden.items-center.space-x-4 a::after {
  content: "";
  position: absolute;
  inset: auto 0 -8px;
  height: 2px;
  background: var(--yh-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--yh-base) var(--yh-ease);
}

body.ohlaoo-page-app header nav a:hover::after,
body.ohlaoo-page-app nav.hidden.items-center.space-x-4 a:hover::after {
  transform: scaleX(1);
}

/* Main canvas and panels */
body.ohlaoo-page-app main {
  min-width: 0;
}

body.ohlaoo-page-app main main .min-h-0.flex-1.overflow-auto,
body.ohlaoo-page-app main > .min-h-0.flex-1.overflow-auto {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

body.ohlaoo-page-app main main .min-h-0.flex-1.overflow-auto > div,
body.ohlaoo-page-app main.container {
  width: min(100%, 1600px);
  margin-inline: auto;
  padding: 24px 28px 40px !important;
}

body.ohlaoo-page-app [data-ohlaoo-surface='1'] {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: var(--yh-text);
  border: 1px solid var(--yh-line) !important;
  border-radius: var(--yh-radius) !important;
  background: var(--yh-panel) !important;
  box-shadow: none !important;
  animation: yh-surface-enter 180ms var(--yh-ease) both;
  animation-delay: calc(min(var(--oh-enter-index, 0), 8) * 18ms);
}

body.ohlaoo-page-app [data-ohlaoo-surface='1']:focus-within {
  border-color: var(--yh-line-strong) !important;
}

body.ohlaoo-page-app [data-ohlaoo-overview-top='1'],
body.ohlaoo-page-app [data-ohlaoo-overview-panels='1'],
body.ohlaoo-page-app [data-ohlaoo-profile-columns='1'] {
  align-items: stretch !important;
}

body.ohlaoo-page-app [data-ohlaoo-overview-top='1'] > *,
body.ohlaoo-page-app [data-ohlaoo-overview-panels='1'] > *,
body.ohlaoo-page-app [data-ohlaoo-profile-columns='1'] > * {
  min-width: 0;
  height: 100%;
}

body.ohlaoo-page-app [data-ohlaoo-overview-panels='1'] > * > :is(div, section, article),
body.ohlaoo-page-app [data-ohlaoo-profile-column='side'] > :is(div, section, article) {
  height: 100%;
}

/* Overview */
.ohlaoo-overview-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  grid-template-areas:
    "copy endpoint"
    "proof proof";
  overflow: hidden;
  margin-bottom: 18px;
  color: var(--yh-text);
  border: 1px solid var(--yh-line);
  border-radius: var(--yh-radius);
  background: var(--yh-panel);
  animation: yh-surface-enter 180ms var(--yh-ease) both;
}

.ohlaoo-home-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    linear-gradient(var(--yh-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--yh-line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 62%);
}

.ohlaoo-home-hero-copy {
  position: relative;
  z-index: 1;
  grid-area: copy;
  min-width: 0;
  padding: 28px 30px 24px;
}

.ohlaoo-home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yh-text-soft);
  font-family: var(--yh-font-mono);
  font-size: 0.71rem;
  font-weight: 760;
  line-height: 1;
}

.ohlaoo-home-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yh-accent);
}

body.ohlaoo-page-app .ohlaoo-overview-home-hero h1 {
  max-width: 720px;
  margin: 16px 0 10px;
  font-size: 2rem;
  font-weight: 790;
  line-height: 1.18;
}

.ohlaoo-home-subcopy {
  max-width: 680px;
  margin: 0;
  color: var(--yh-text-soft);
  font-size: 0.96rem;
  line-height: 1.72;
}

.ohlaoo-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.ohlaoo-home-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  color: var(--yh-text);
  border: 1px solid var(--yh-line-strong);
  border-radius: var(--yh-radius-control);
  background: var(--yh-panel);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    color var(--yh-fast) ease,
    border-color var(--yh-fast) ease,
    background-color var(--yh-fast) ease;
}

.ohlaoo-home-action:hover {
  border-color: var(--yh-accent);
  background: var(--yh-panel-soft);
}

.ohlaoo-home-action-primary {
  color: var(--yh-accent-contrast);
  border-color: var(--yh-accent);
  background: var(--yh-accent);
}

.ohlaoo-home-action-primary:hover {
  color: var(--yh-accent-contrast);
  background: color-mix(in oklab, var(--yh-accent) 88%, var(--yh-text) 12%);
}

.ohlaoo-home-code {
  position: relative;
  z-index: 1;
  grid-area: endpoint;
  min-width: 0;
  margin: 18px 18px 18px 0;
  overflow: hidden;
  color: var(--yh-code-text);
  border: 1px solid color-mix(in oklab, #fff 12%, transparent);
  border-radius: var(--yh-radius);
  background: var(--yh-code-bg);
}

.ohlaoo-home-code-bar {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid color-mix(in oklab, #fff 10%, transparent);
}

.ohlaoo-home-code-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in oklab, #fff 24%, transparent);
}

.ohlaoo-home-code-bar strong {
  margin-inline-start: auto;
  color: var(--yh-code-muted);
  font-family: var(--yh-font-mono);
  font-size: 0.67rem;
  font-weight: 650;
}

.ohlaoo-home-endpoints {
  display: grid;
  gap: 0;
  padding: 8px 14px 14px;
}

.ohlaoo-home-endpoints > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid color-mix(in oklab, #fff 9%, transparent);
}

.ohlaoo-home-endpoints > div:last-child {
  border-bottom: 0;
}

.ohlaoo-home-endpoints span {
  color: var(--yh-code-muted);
  font-family: var(--yh-font-mono);
  font-size: 0.65rem;
  font-weight: 760;
}

.ohlaoo-home-endpoints code {
  min-width: 0;
  overflow: hidden;
  color: var(--yh-code-text);
  font-size: 0.8rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ohlaoo-home-endpoints small {
  color: var(--yh-code-muted);
  font-size: 0.72rem;
}

.ohlaoo-home-proof {
  position: relative;
  z-index: 1;
  display: grid;
  grid-area: proof;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--yh-line);
  background: var(--yh-panel-soft);
}

.ohlaoo-home-proof span {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  color: var(--yh-text-soft);
  border-inline-end: 1px solid var(--yh-line);
  font-size: 0.78rem;
  font-weight: 650;
}

.ohlaoo-home-proof span:last-child {
  border-inline-end: 0;
}

.ohlaoo-home-proof b {
  color: var(--yh-text-faint);
  font-family: var(--yh-font-mono);
  font-size: 0.65rem;
}

body.ohlaoo-page-app [data-ohlaoo-overview-home='1'] {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px !important;
}

body.ohlaoo-page-app [data-ohlaoo-overview-top='1'] {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 14px !important;
}

/* Route context */
body.ohlaoo-page-app .ohlaoo-route-supplement {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 112px;
  margin-bottom: 18px;
  padding: 18px 20px 18px 22px;
  overflow: hidden;
  border: 1px solid var(--yh-line);
  border-inline-start: 3px solid var(--yh-accent);
  border-radius: var(--yh-radius);
  background: var(--yh-panel);
  animation: yh-surface-enter 180ms var(--yh-ease) both;
}

body.ohlaoo-page-app .ohlaoo-route-supplement-copy {
  min-width: 0;
}

body.ohlaoo-page-app .ohlaoo-route-supplement-eyebrow {
  color: var(--yh-text-faint);
  font-family: var(--yh-font-mono);
  font-size: 0.67rem;
  font-weight: 760;
  line-height: 1;
}

body.ohlaoo-page-app .ohlaoo-route-supplement h2 {
  margin: 8px 0 4px;
  font-size: 1.28rem;
  font-weight: 780;
}

body.ohlaoo-page-app .ohlaoo-route-supplement p {
  max-width: 760px;
  margin: 0;
  color: var(--yh-text-soft);
  font-size: 0.87rem;
  line-height: 1.58;
}

body.ohlaoo-page-app .ohlaoo-route-supplement-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body.ohlaoo-page-app .ohlaoo-route-supplement-chips span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: var(--yh-text-soft);
  border: 1px solid var(--yh-line);
  border-radius: var(--yh-radius-control);
  background: var(--yh-panel-soft);
  font-size: 0.74rem;
  font-weight: 650;
  white-space: nowrap;
}

body.ohlaoo-page-app .ohlaoo-route-supplement-chips b {
  color: var(--yh-text-faint);
  font-family: var(--yh-font-mono);
  font-size: 0.63rem;
}

/* Tables and dense data */
body.ohlaoo-page-app [data-slot='table-container'],
body.ohlaoo-page-data-grid main .min-h-0.flex-1.overflow-auto:has([data-slot='table']),
body.ohlaoo-page-data-grid main :is(.rounded-xl.border, .rounded-2xl.border):has([data-slot='table']) {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--yh-line) !important;
  border-radius: var(--yh-radius) !important;
  background: var(--yh-panel) !important;
  box-shadow: none !important;
  scrollbar-gutter: stable;
}

body.ohlaoo-page-app [data-slot='table'] {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

body.ohlaoo-page-data-grid main [data-slot='table'] {
  min-width: 760px;
}

body.ohlaoo-page-app [data-slot='table-header'] {
  position: sticky;
  top: 0;
  z-index: 3;
}

body.ohlaoo-page-app [data-slot='table-head'] {
  height: 44px;
  padding: 10px 14px;
  color: var(--yh-text-soft);
  border-bottom: 1px solid var(--yh-line);
  background: var(--yh-panel-soft);
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1.35;
  white-space: nowrap;
}

body.ohlaoo-page-app [data-slot='table-cell'] {
  min-height: 52px;
  padding: 12px 14px;
  color: var(--yh-text);
  border-bottom: 1px solid var(--yh-line);
  font-size: 0.88rem;
  line-height: 1.45;
  vertical-align: middle;
}

body.ohlaoo-page-app [data-slot='table-row']:last-child [data-slot='table-cell'] {
  border-bottom: 0;
}

body.ohlaoo-page-app [data-slot='table-body'] [data-slot='table-row']:nth-child(even) [data-slot='table-cell'] {
  background: color-mix(in oklab, var(--yh-panel-soft) 52%, transparent);
}

body.ohlaoo-page-app [data-slot='table-row'] {
  transition: background-color var(--yh-fast) ease;
}

body.ohlaoo-page-app [data-slot='table-row']:hover [data-slot='table-cell'] {
  background: var(--yh-accent-soft);
}

body.ohlaoo-page-app [data-slot='table-row'][data-state='selected'] [data-slot='table-cell'] {
  background: var(--yh-accent-soft);
}

body.ohlaoo-page-app [data-slot='table-row'][data-state='selected'] [data-slot='table-cell']:first-child {
  box-shadow: inset 2px 0 0 var(--yh-accent);
}

body.ohlaoo-page-app [data-slot='table-cell']:first-child {
  font-weight: 650;
}

body.ohlaoo-page-app [data-slot='table-cell'] :is(code, .font-mono, [class*='font-mono']) {
  color: var(--yh-text-soft);
  font-size: 0.8rem;
}

body.ohlaoo-page-app [data-slot='table-cell'] button:not(.ohlaoo-theme-toggle) {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: var(--yh-radius-control) !important;
}

body.ohlaoo-page-app [data-slot='table-cell'] button:not(.ohlaoo-theme-toggle) > svg {
  width: 15px;
  height: 15px;
}

/* Controls */
body.ohlaoo-page-app :is(
    [data-slot='button'],
    button:not(.ohlaoo-theme-toggle),
    a[class*='button']
  ) {
  border-radius: var(--yh-radius-control);
  font-weight: 650;
  white-space: nowrap;
  transition:
    color var(--yh-fast) ease,
    border-color var(--yh-fast) ease,
    background-color var(--yh-fast) ease,
    box-shadow var(--yh-fast) ease;
}

body.ohlaoo-page-app :is(
    button,
    a,
    input,
    textarea,
    select,
    [role='button'],
    [role='combobox'],
    [tabindex]
  ):focus-visible,
body.ohlaoo-page-auth :is(button, a, input, textarea, select, [role='checkbox']):focus-visible {
  outline: 3px solid var(--yh-focus) !important;
  outline-offset: 2px;
}

body.ohlaoo-page-app :is(
    input,
    textarea,
    select,
    [data-slot='input'],
    [data-slot='textarea'],
    [data-slot='select-trigger'],
    [role='combobox'],
    button[role='combobox']
  ) {
  color: var(--yh-text);
  border-color: var(--yh-line) !important;
  border-radius: var(--yh-radius-control) !important;
  background: var(--yh-panel) !important;
  font-size: 0.88rem;
  box-shadow: none !important;
}

body.ohlaoo-page-app :is(
    input,
    select,
    [data-slot='input'],
    [data-slot='select-trigger'],
    [role='combobox'],
    button[role='combobox']
  ) {
  min-height: 40px;
}

body.ohlaoo-page-app textarea,
body.ohlaoo-page-app [data-slot='textarea'] {
  min-height: 96px;
  line-height: 1.55;
  resize: vertical;
}

body.ohlaoo-page-app :is(input, textarea, [data-slot='input'], [data-slot='textarea']):focus {
  border-color: var(--yh-line-strong) !important;
}

body.ohlaoo-page-app :is([data-slot='label'], [data-slot='field-label'], [data-slot='form-label']) {
  color: var(--yh-text);
  font-size: 0.82rem;
  font-weight: 680;
}

body.ohlaoo-page-app :is([data-slot='field-description'], [data-slot='form-description']) {
  color: var(--yh-text-soft);
  font-size: 0.78rem;
  line-height: 1.55;
}

body.ohlaoo-page-app [data-slot='form-message'] {
  color: var(--yh-danger);
  font-size: 0.78rem;
}

body.ohlaoo-page-app [data-slot='tabs-list'] {
  display: flex;
  min-height: 42px;
  gap: 18px;
  padding: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--yh-line);
  border-radius: 0 !important;
  background: transparent !important;
  scrollbar-width: none;
}

body.ohlaoo-page-app [data-slot='tabs-list']::-webkit-scrollbar {
  display: none;
}

body.ohlaoo-page-app [data-slot='tabs-trigger'] {
  position: relative;
  min-height: 41px;
  padding: 8px 1px;
  color: var(--yh-text-soft);
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.84rem;
  font-weight: 650;
  white-space: nowrap;
}

body.ohlaoo-page-app [data-slot='tabs-trigger']::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--yh-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--yh-base) var(--yh-ease);
}

body.ohlaoo-page-app [data-slot='tabs-trigger']:is([data-state='active'], [data-selected]) {
  color: var(--yh-text);
}

body.ohlaoo-page-app [data-slot='tabs-trigger']:is([data-state='active'], [data-selected])::after {
  transform: scaleX(1);
}

body.ohlaoo-page-app [data-slot='switch'] {
  border: 1px solid var(--yh-line-strong);
  box-shadow: none;
  transition:
    border-color var(--yh-fast) ease,
    background-color var(--yh-fast) ease;
}

body.ohlaoo-page-app [data-slot='switch'][data-checked] {
  border-color: var(--yh-accent);
  background: var(--yh-accent);
}

body.ohlaoo-page-app [data-slot='switch-thumb'] {
  transition: transform var(--yh-base) var(--yh-ease);
}

body.ohlaoo-page-app :is([data-slot='checkbox'], [data-slot='radio-group-item']) {
  border-color: var(--yh-line-strong);
  border-radius: 4px;
  box-shadow: none;
}

body.ohlaoo-page-app :is([data-slot='checkbox'], [data-slot='radio-group-item'])[data-checked] {
  color: var(--yh-accent-contrast);
  border-color: var(--yh-accent);
  background: var(--yh-accent);
}

body.ohlaoo-page-app :is([data-slot='badge'], [data-slot='status-badge']) {
  gap: 6px;
  border: 1px solid var(--yh-line);
  border-radius: 999px;
  background: var(--yh-panel-soft);
  font-size: 0.72rem;
  font-weight: 680;
}

body.ohlaoo-page-app [data-slot='progress-track'] {
  overflow: hidden;
  background: var(--yh-panel-soft);
}

body.ohlaoo-page-app [data-slot='progress-indicator'] {
  background: var(--yh-accent);
  transition: transform 320ms var(--yh-ease);
}

body.ohlaoo-page-app [class*='container/pagination'] {
  min-height: 48px;
  padding-block: 8px;
  border-top: 1px solid var(--yh-line);
}

/* Settings, profile, wallet, catalog, and workbench */
body.ohlaoo-page-settings main :is(.rounded-lg.border, .rounded-xl.border, .rounded-2xl.border) {
  border-color: var(--yh-line) !important;
  border-radius: var(--yh-radius) !important;
  box-shadow: none !important;
}

body.ohlaoo-page-settings main [data-slot='tabs-list'] {
  position: sticky;
  top: 64px;
  z-index: 20;
  background: var(--yh-canvas) !important;
}

body.ohlaoo-page-profile [data-ohlaoo-profile-columns='1'] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr) !important;
  gap: 16px !important;
}

body.ohlaoo-page-wallet main [data-ohlaoo-surface='1'],
body.ohlaoo-page-profile main [data-ohlaoo-surface='1'] {
  border-radius: var(--yh-radius) !important;
}

body.ohlaoo-page-catalog main .grid > :is(article, div).border {
  height: 100%;
  border-color: var(--yh-line) !important;
  border-radius: var(--yh-radius) !important;
  background: var(--yh-panel) !important;
  box-shadow: none !important;
  transition:
    border-color var(--yh-fast) ease,
    background-color var(--yh-fast) ease;
}

body.ohlaoo-page-catalog main .grid > :is(article, div).border:hover {
  border-color: var(--yh-line-strong) !important;
  background: var(--yh-panel-soft) !important;
}

body.ohlaoo-page-playground main :is(pre, code) {
  color: var(--yh-code-text);
  border-color: color-mix(in oklab, #fff 10%, transparent);
  background: var(--yh-code-bg);
}

body.ohlaoo-page-playground main [class*='grid'] > * {
  min-width: 0;
}

body.ohlaoo-page-about main.container,
body.ohlaoo-page-legal main.container {
  max-width: 1040px;
}

body.ohlaoo-page-error main {
  display: grid;
  min-height: calc(100svh - 64px);
  place-items: center;
}

/* Floating surfaces */
html.ohlaoo-official-theme-ready :is(
    [data-slot='dialog-overlay'],
    [data-slot='alert-dialog-overlay'],
    [data-slot='sheet-overlay']
  ) {
  background: color-mix(in oklab, #000 55%, transparent);
  backdrop-filter: none;
}

html.ohlaoo-official-theme-ready :is(
    [data-slot='dialog-content'],
    [data-slot='alert-dialog-content'],
    [data-slot='popover-content'],
    [data-slot='dropdown-menu-content'],
    [data-slot='dropdown-menu-sub-content'],
    [data-slot='select-content'],
    [data-slot='command'],
    [data-slot='combobox-content'],
    [data-slot='tooltip-content'],
    [data-sonner-toast]
  ) {
  color: var(--yh-text);
  border: 1px solid var(--yh-line-strong);
  border-radius: var(--yh-radius);
  background: var(--yh-panel);
  box-shadow: var(--yh-float-shadow);
  animation: yh-pop-in 160ms var(--yh-ease) both;
}

html.ohlaoo-official-theme-ready [data-slot='sheet-content'] {
  color: var(--yh-text);
  border-color: var(--yh-line-strong);
  border-radius: 0;
  background: var(--yh-panel);
  box-shadow: var(--yh-float-shadow);
  animation: yh-sheet-in 180ms var(--yh-ease) both;
}

html.ohlaoo-official-theme-ready [data-slot='tooltip-content'] {
  color: var(--yh-code-text);
  border-color: color-mix(in oklab, #fff 12%, transparent);
  border-radius: 5px;
  background: var(--yh-code-bg);
  font-size: 0.72rem;
}

html.ohlaoo-official-theme-ready :is(
    [data-slot='dropdown-menu-item'],
    [data-slot='dropdown-menu-checkbox-item'],
    [data-slot='dropdown-menu-sub-trigger'],
    [data-slot='select-item'],
    [data-slot='command-item'],
    [data-slot='combobox-item']
  ) {
  min-height: 34px;
  border-radius: var(--yh-radius-control);
  font-size: 0.82rem;
  transition:
    color var(--yh-fast) ease,
    background-color var(--yh-fast) ease;
}

html.ohlaoo-official-theme-ready :is(
    [data-slot='dropdown-menu-item'],
    [data-slot='dropdown-menu-checkbox-item'],
    [data-slot='dropdown-menu-sub-trigger'],
    [data-slot='select-item'],
    [data-slot='command-item'],
    [data-slot='combobox-item']
  ):is([data-highlighted], [data-selected], [data-checked], :hover, :focus-visible) {
  color: var(--yh-text);
  background: var(--yh-accent-soft);
}

html.ohlaoo-official-theme-ready :is(
    [data-slot='dialog-footer'],
    [data-slot='alert-dialog-footer'],
    [data-slot='sheet-footer']
  ) {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--yh-line);
}

/* Authentication stays visually related without becoming a landing page. */
body.ohlaoo-page-auth {
  min-height: 100svh;
  background:
    linear-gradient(90deg, var(--yh-panel-soft) 0 1px, transparent 1px 100%),
    var(--yh-canvas);
  background-size: 48px 48px;
}

body.ohlaoo-page-auth :is(h1, .text-2xl, .text-xl) {
  font-weight: 780 !important;
  letter-spacing: 0;
}

body.ohlaoo-page-auth :is(input, button, [role='checkbox']) {
  border-radius: var(--yh-radius-control) !important;
}

body.ohlaoo-page-auth input {
  min-height: 42px;
  border-color: var(--yh-line) !important;
  background: var(--yh-panel) !important;
  box-shadow: none !important;
}

body.ohlaoo-page-auth form > button[type='submit'] {
  min-height: 42px;
  font-weight: 720;
}


/* Scrollbars */
body.ohlaoo-page-app,
html.ohlaoo-official-theme-ready :is(
    [data-slot='scroll-area-viewport'],
    [data-slot='dropdown-menu-content'],
    [data-slot='select-content'],
    [data-slot='dialog-content'],
    [data-slot='sheet-content']
  ) {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in oklab, var(--yh-text-soft) 34%, transparent) transparent;
}

body.ohlaoo-page-app *::-webkit-scrollbar,
html.ohlaoo-official-theme-ready :is(
    [data-slot='scroll-area-viewport'],
    [data-slot='dropdown-menu-content'],
    [data-slot='select-content'],
    [data-slot='dialog-content'],
    [data-slot='sheet-content']
  )::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

body.ohlaoo-page-app *::-webkit-scrollbar-track {
  background: transparent;
}

body.ohlaoo-page-app *::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  background-color: color-mix(in oklab, var(--yh-text-soft) 32%, transparent);
}

body.ohlaoo-page-app *::-webkit-scrollbar-thumb:hover {
  background-color: color-mix(in oklab, var(--yh-text-soft) 52%, transparent);
}

@keyframes yh-surface-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes yh-pop-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes yh-sheet-in {
  from {
    opacity: 0.6;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1180px) {
  .ohlaoo-overview-home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
  }

  body.ohlaoo-page-app .ohlaoo-route-supplement {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  body.ohlaoo-page-app .ohlaoo-route-supplement-chips {
    justify-content: flex-start;
  }
}

@media (max-width: 960px) {
  body.ohlaoo-page-app main main .min-h-0.flex-1.overflow-auto > div,
  body.ohlaoo-page-app main.container {
    padding: 20px 18px 32px !important;
  }

  .ohlaoo-overview-home-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "endpoint"
      "proof";
  }

  .ohlaoo-home-code {
    margin: 0 18px 18px;
  }

  body.ohlaoo-page-profile [data-ohlaoo-profile-columns='1'] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.ohlaoo-page-settings main [data-slot='tabs-list'] {
    top: 58px;
  }
}

@media (max-width: 640px) {
  body.ohlaoo-page-app,
  body.ohlaoo-page-auth {
    font-size: 15px;
  }

  body.ohlaoo-page-app header:has([data-slot='sidebar-trigger']) {
    min-height: 58px;
  }

  body.ohlaoo-page-app main main .min-h-0.flex-1.overflow-auto > div,
  body.ohlaoo-page-app main.container {
    padding: 14px 12px 28px !important;
  }

  body.ohlaoo-page-app [data-ohlaoo-overview-home='1'] {
    gap: 12px !important;
  }

  .ohlaoo-overview-home-hero {
    margin-bottom: 12px;
  }

  .ohlaoo-home-hero-copy {
    padding: 20px 18px 18px;
  }

  body.ohlaoo-page-app .ohlaoo-overview-home-hero h1 {
    margin-top: 12px;
    font-size: 1.58rem;
  }

  .ohlaoo-home-subcopy {
    font-size: 0.88rem;
  }

  .ohlaoo-home-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ohlaoo-home-action {
    width: 100%;
  }

  .ohlaoo-home-code {
    margin: 0 12px 12px;
  }

  .ohlaoo-home-endpoints > div {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .ohlaoo-home-endpoints small {
    display: none;
  }

  .ohlaoo-home-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ohlaoo-home-proof span:nth-child(2) {
    border-inline-end: 0;
  }

  .ohlaoo-home-proof span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--yh-line);
  }

  body.ohlaoo-page-app .ohlaoo-route-supplement {
    min-height: auto;
    margin-bottom: 12px;
    padding: 16px 15px;
  }

  body.ohlaoo-page-app .ohlaoo-route-supplement h2 {
    font-size: 1.12rem;
  }

  body.ohlaoo-page-app .ohlaoo-route-supplement-chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  body.ohlaoo-page-app .ohlaoo-route-supplement-chips::-webkit-scrollbar {
    display: none;
  }

  body.ohlaoo-page-data-grid main [data-slot='table'] {
    min-width: 680px;
  }

  body.ohlaoo-page-app [data-slot='table-head'],
  body.ohlaoo-page-app [data-slot='table-cell'] {
    padding-inline: 11px;
  }

  .ohlaoo-theme-toggle {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.ohlaoo-official-theme-ready *,
  html.ohlaoo-official-theme-ready *::before,
  html.ohlaoo-official-theme-ready *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
