/* Presentation only. Keep Swagger's native forms, authorization and operations. */
#swagger-ui {
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}
#swagger-ui .wrapper {
  max-width: 1320px;
  padding: 0 32px;
}
#swagger-ui
  :is(
    button,
    input,
    textarea,
    select,
    .btn,
    .opblock-tag,
    .opblock-summary-description,
    .info,
    .model
  ) {
  font-family: inherit;
}
#swagger-ui
  :is(
    h1,
    h2,
    h3,
    h4,
    h5,
    p,
    label,
    .opblock-tag,
    .opblock-tag small,
    .parameter__name,
    .parameter__type,
    .response-col_status,
    .response-col_links,
    .opblock-summary-path,
    .opblock-summary-description,
    .opblock-description-wrapper,
    .tab li,
    .model,
    .model-title,
    .prop,
    .base-url,
    .title
  ),
#swagger-ui table :is(th, td),
#swagger-ui [class*='json-schema-2020-12'] {
  color: var(--text);
}
#swagger-ui a {
  color: #9de8ff;
}
#swagger-ui svg {
  color: var(--muted);
  fill: var(--muted);
}
#swagger-ui .authorization__btn {
  opacity: 0.85;
}
#swagger-ui .info {
  margin: 24px 0;
}
#swagger-ui .info .title {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.4px;
}
#swagger-ui .info p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
#swagger-ui .info .title small {
  padding: 3px 7px;
  background: #2b3443;
  font-size: 10px;
}
#swagger-ui .info .title small.version-stamp {
  background: #184b4c;
}
#swagger-ui .info .title small pre {
  padding: 0;
  margin: 0;
  background: transparent !important;
  font-size: 10px;
  line-height: 1.4;
}
#swagger-ui .scheme-container {
  background: var(--surface);
  box-shadow: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  margin-bottom: 24px;
}
#swagger-ui .servers {
  min-width: 0;
}
#swagger-ui :is(.servers-title, .parameter__in) {
  color: var(--muted);
}
#swagger-ui .parameter__name.required:after,
#swagger-ui .parameter__name.required span,
#swagger-ui .opblock-section-header label span {
  color: #ffb4bb;
}
#swagger-ui .servers > label {
  max-width: 100%;
}
#swagger-ui
  :is(
    input[type='text'],
    input[type='password'],
    input[type='email'],
    input[type='search'],
    textarea,
    select
  ) {
  background: var(--code);
  color: var(--text);
  border: 1px solid #454d5d;
  border-radius: 8px;
  box-shadow: none;
}
#swagger-ui select {
  color-scheme: dark;
  appearance: auto;
  background-image: none;
  max-width: 100%;
  padding: 8px 12px;
}
#swagger-ui textarea {
  min-height: 160px;
  font-family: ui-monospace, monospace;
  line-height: 1.6;
}
#swagger-ui input::placeholder,
#swagger-ui textarea::placeholder {
  color: #9ba6b9;
}
#swagger-ui :is(input, select, textarea).invalid {
  border-color: #ff9ea9;
}
#swagger-ui .btn {
  padding: 9px 18px;
  border: 1px solid #5a6475;
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: none;
  color: var(--text);
  font-size: 12px;
}
#swagger-ui .btn:hover {
  border-color: var(--accent);
}
#swagger-ui .btn.authorize {
  color: #b5f0ff;
  border-color: #386f80;
  background: #13232c;
}
#swagger-ui .btn.authorize svg {
  color: #b5f0ff;
  fill: #b5f0ff;
}
#swagger-ui .btn.execute {
  background: var(--accent);
  color: #071820;
  border-color: var(--accent);
}
#swagger-ui .btn.cancel {
  color: #ffb4bb;
  border-color: #a0505c;
}
#swagger-ui :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
#swagger-ui .opblock-tag {
  font-size: 16px;
  border-color: var(--border);
}
#swagger-ui .opblock-tag:hover {
  background: var(--surface);
}
#swagger-ui .opblock {
  border-radius: 10px;
  box-shadow: none;
  margin-bottom: 12px;
  overflow: hidden;
}
#swagger-ui .opblock.opblock-post {
  border-color: #305f50;
  background: #101c1a;
}
#swagger-ui .opblock.opblock-get {
  border-color: #315574;
  background: #101a25;
}
#swagger-ui .opblock.opblock-patch {
  border-color: #6e5c37;
  background: #201c15;
}
#swagger-ui .opblock .opblock-summary {
  padding: 10px 12px;
  border-color: inherit;
}
#swagger-ui .opblock-summary-control {
  flex-wrap: wrap;
  min-width: 0;
  gap: 8px;
}
#swagger-ui .opblock .opblock-summary-method {
  min-width: 64px;
  padding: 5px 10px;
  border-radius: 5px;
  text-shadow: none;
  color: #08151c;
  font-size: 11px;
}
#swagger-ui .opblock-post .opblock-summary-method {
  background: #6ce6b0;
}
#swagger-ui .opblock-get .opblock-summary-method {
  background: #83c7ff;
}
#swagger-ui .opblock-patch .opblock-summary-method {
  background: #ffd382;
}
#swagger-ui .opblock .opblock-summary-path {
  min-width: 0;
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
#swagger-ui .opblock .opblock-summary-description {
  color: #c0c9d7;
  font-size: 12px;
}
#swagger-ui .opblock .opblock-section-header {
  background: var(--surface);
  box-shadow: none;
  border-block: 1px solid var(--border);
}
#swagger-ui .opblock .opblock-section-header h4 {
  color: var(--text);
  font-size: 13px;
}
#swagger-ui :is(.opblock-body, .responses-wrapper) {
  min-width: 0;
}
#swagger-ui :is(.opblock-description-wrapper p, .response-col_description p) {
  color: #c0c9d7;
  font-size: 13px;
  line-height: 1.7;
}
#swagger-ui table thead :is(th, td) {
  border-color: #454d5d;
}
#swagger-ui :is(pre, .highlight-code, .microlight, .model-example, .model-box) {
  background: var(--code) !important;
  border-radius: 8px;
}
#swagger-ui pre {
  padding: 16px;
  font-size: 12px;
  line-height: 1.65;
  overflow: auto;
}
#swagger-ui :is(.renderedMarkdown code, .markdown code) {
  color: #b5f0ff;
  background: #1b2938;
}
#swagger-ui .tab li.active {
  border-bottom-color: var(--accent);
}
#swagger-ui section.models {
  border: 1px solid var(--border);
  border-radius: 10px;
}
#swagger-ui section.models h4 {
  border-color: var(--border);
}
#swagger-ui section.models .model-container {
  background: var(--surface);
  border-radius: 8px;
}
#swagger-ui section.models .model-container:hover {
  background: var(--surface-raised);
}
#swagger-ui section.models .json-schema-2020-12 {
  background: var(--surface);
  border-radius: 8px;
}
#swagger-ui :is(.json-schema-2020-12-accordion, .json-schema-2020-12-expand-deep-button) {
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: 4px;
  padding: 2px 4px;
  cursor: pointer;
}
#swagger-ui :is(.json-schema-2020-12-accordion, .json-schema-2020-12-expand-deep-button):hover {
  background: var(--surface-raised);
}
#swagger-ui .model-toggle:after {
  filter: invert(1);
}
#swagger-ui .prop-type {
  color: #c7b8ff;
}
#swagger-ui .json-schema-2020-12__constraint {
  background: #c7b8ff;
  color: #071820;
}
#swagger-ui .json-schema-2020-12__constraint--string {
  background: #ffd382;
}
#swagger-ui .json-schema-2020-12-property--required .json-schema-2020-12__title:after {
  color: #ffb4bb;
}
#swagger-ui .errors-wrapper {
  background: #351d25;
  border-color: #a0505c;
  color: #ffd2d6;
}

@media (max-width: 640px) {
  #swagger-ui .wrapper {
    padding: 0 20px;
  }
  #swagger-ui .opblock .opblock-summary {
    padding: 10px 8px;
  }
  #swagger-ui .opblock .opblock-summary-path {
    font-size: 11px;
    max-width: 100%;
  }
  #swagger-ui .opblock .opblock-summary-description {
    flex-basis: 100%;
  }
  #swagger-ui .scheme-container .schemes {
    align-items: stretch;
    gap: 16px;
  }
  #swagger-ui .scheme-container .auth-wrapper {
    justify-content: flex-start;
  }
  #swagger-ui .opblock-body {
    overflow-x: auto;
  }
}
