.compact-stats {
  margin-bottom: 12px;
}

.explorer-layout {
  grid-template-columns: 300px 1fr;
  align-items: start;
}

.explorer-nav-card {
  position: sticky;
  top: 24px;
  align-self: start;
}

.explorer-main-card {
  min-height: 0 !important;
}

.reference-header {
  margin-bottom: 6px;
}

.explorer-nav-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.explorer-link {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #0a1324;
  color: #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  transition: 0.2s ease;
  font-size: 14px;
  line-height: 1.3;
}

.explorer-link:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(59, 130, 246, 0.45);
  color: #ffffff;
}

.explorer-tip-box {
  margin-top: 18px;
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 14px;
  padding: 14px;
}

.explorer-tip-box strong {
  display: block;
  margin-bottom: 6px;
}

.explorer-tip-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.swagger-loading {
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
}

.swagger-shell {
  margin-top: 6px;
  border: 1px solid #dbe3ef;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.swagger-shell .swagger-ui {
  font-family: Inter, Arial, sans-serif;
  color: #0f172a;
}

.swagger-shell .swagger-ui .topbar {
  display: none !important;
}

.swagger-shell .swagger-ui .wrapper {
  padding: 0 !important;
  max-width: 100% !important;
}

.swagger-shell .swagger-ui .information-container,
.swagger-shell .swagger-ui .info {
  display: none !important;
}

.swagger-shell .swagger-ui .scheme-container {
  padding: 10px 16px !important;
  margin: 0 !important;
  background: #eef4fb;
  box-shadow: none;
  border-bottom: 1px solid #dbe3ef;
}

.swagger-shell .swagger-ui .auth-wrapper {
  margin: 0 !important;
  padding: 0 16px 12px 16px !important;
}

.swagger-shell .swagger-ui .btn.authorize {
  border-radius: 12px;
  border: 1px solid #2563eb;
  color: #2563eb;
  background: #ffffff;
}

.swagger-shell .swagger-ui .btn.authorize svg {
  fill: #2563eb;
}

.swagger-shell .swagger-ui .opblock-tag-section {
  margin: 0 !important;
}

.swagger-shell .swagger-ui .opblock-tag {
  margin: 0 !important;
  padding: 14px 16px !important;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  background: #f8fafc;
}

.swagger-shell .swagger-ui .opblock-tag:hover {
  background: #eef4fb;
}

.swagger-shell .swagger-ui .opblock {
  margin: 0 16px 12px !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
  border-width: 1px;
}

.swagger-shell .swagger-ui .opblock .opblock-summary {
  padding: 14px 16px;
}

.swagger-shell .swagger-ui .opblock .opblock-summary-method {
  border-radius: 10px;
  min-width: 74px;
  text-align: center;
  font-weight: 700;
}

.swagger-shell .swagger-ui .opblock .opblock-summary-path {
  font-weight: 700;
  color: #0f172a;
  font-size: 14px;
}

.swagger-shell .swagger-ui .opblock .opblock-summary-description,
.swagger-shell .swagger-ui .opblock-description-wrapper,
.swagger-shell .swagger-ui .opblock-external-docs-wrapper,
.swagger-shell .swagger-ui .opblock-title_normal {
  color: #475569;
}

.swagger-shell .swagger-ui .opblock.opblock-get {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.05);
}

.swagger-shell .swagger-ui .opblock.opblock-post {
  border-color: rgba(22, 163, 74, 0.25);
  background: rgba(22, 163, 74, 0.05);
}

.swagger-shell .swagger-ui .opblock.opblock-put {
  border-color: rgba(217, 119, 6, 0.25);
  background: rgba(217, 119, 6, 0.05);
}

.swagger-shell .swagger-ui .opblock.opblock-patch {
  border-color: rgba(124, 58, 237, 0.25);
  background: rgba(124, 58, 237, 0.05);
}

.swagger-shell .swagger-ui .opblock.opblock-delete {
  border-color: rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.05);
}

.swagger-shell .swagger-ui .opblock-body {
  padding: 12px !important;
  background: #ffffff;
}

.swagger-shell .swagger-ui .btn.execute {
  background: #2563eb;
  border-color: #2563eb;
  border-radius: 12px;
  color: #ffffff;
}

.swagger-shell .swagger-ui .btn.execute:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.swagger-shell .swagger-ui .btn.cancel {
  border-radius: 12px;
}

.swagger-shell .swagger-ui input,
.swagger-shell .swagger-ui textarea,
.swagger-shell .swagger-ui select {
  border-radius: 12px !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
  color: #0f172a !important;
  background: #ffffff !important;
}

.swagger-shell .swagger-ui textarea,
.swagger-shell .swagger-ui .body-param textarea {
  color: #0f172a !important;
  background: #ffffff !important;
}

.swagger-shell .swagger-ui table thead tr th,
.swagger-shell .swagger-ui .responses-inner h4,
.swagger-shell .swagger-ui .responses-inner h5,
.swagger-shell .swagger-ui .response-col_status,
.swagger-shell .swagger-ui .response-col_links,
.swagger-shell .swagger-ui .response-col_description,
.swagger-shell .swagger-ui .parameter__name,
.swagger-shell .swagger-ui .parameter__type,
.swagger-shell .swagger-ui .tab li,
.swagger-shell .swagger-ui .model-title,
.swagger-shell .swagger-ui .model {
  color: #0f172a;
}

.swagger-shell .swagger-ui section.models {
  margin: 16px !important;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.swagger-shell .swagger-ui .models {
  margin-top: 0 !important;
}

.swagger-shell .swagger-ui .model-box,
.swagger-shell .swagger-ui .highlight-code {
  border-radius: 12px;
  background: #f8fafc;
}

.swagger-shell .swagger-ui pre,
.swagger-shell .swagger-ui code,
.swagger-shell .swagger-ui .microlight {
  color: #0f172a !important;
  background: #f8fafc !important;
}

@media (max-width: 1200px) {
  .explorer-layout {
    grid-template-columns: 1fr;
  }

  .explorer-nav-card {
    position: relative;
    top: 0;
  }
}