:root {
  color-scheme: light;
  --docs-bg: #ffffff;
  --docs-surface: #f5f5f5;
  --docs-border: rgba(0, 0, 0, 0.1);
  --docs-text: rgba(0, 0, 0, 0.9);
  --docs-dim: rgba(0, 0, 0, 0.5);
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #ffffff;
}

body.api-docs-shell {
  color: var(--docs-text);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.api-docs-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--docs-border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.api-docs-topbar__brand,
.api-docs-topbar__links a {
  color: var(--docs-text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.api-docs-topbar__brand {
  font-weight: 700;
}

.api-docs-topbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.api-docs-topbar__links a {
  color: var(--docs-dim);
}

.api-docs-topbar__links a:hover,
.api-docs-topbar__brand:hover {
  color: #000000;
}

#swagger-ui {
  padding: 20px 18px 48px;
}

#swagger-ui .swagger-ui .info {
  margin: 20px 0 28px;
}

#swagger-ui .swagger-ui .info .title {
  color: var(--docs-text);
}

#swagger-ui .swagger-ui .info p,
#swagger-ui .swagger-ui .renderedMarkdown p,
#swagger-ui .swagger-ui .renderedMarkdown li {
  color: rgba(0, 0, 0, 0.72);
  line-height: 1.65;
}

#swagger-ui .swagger-ui .scheme-container {
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  box-shadow: none;
  background: var(--docs-surface);
}

#swagger-ui .swagger-ui .opblock-tag {
  padding: 16px 0 12px;
}

#swagger-ui .swagger-ui .opblock {
  border-radius: 8px;
}

#swagger-ui .swagger-ui .models {
  border-radius: 8px;
}

@media (max-width: 720px) {
  .api-docs-topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  #swagger-ui {
    padding: 12px 8px 32px;
  }
}
