.nav-container,
.toc.sidebar {
  display: none !important;
}

main.article {
  width: 100% !important;
  margin-left: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

main.article > .content {
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  overflow: visible !important;
}

article.doc {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
}

article.doc > h1.page {
  display: none !important;
}

.api-playground {
  color-scheme: light;
  --scalar-content-max-width: none;
  --refs-content-max-width: none;
  width: 100%;
  min-height: 100vh;
}

#api-playground-reference {
  width: 100%;
  min-height: 100vh;
}

.api-playground .hh-playground-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--scalar-border-color, #dfdfdf);
  border-radius: 12px;
  background: var(--scalar-background-1, #fff);
  margin-bottom: 12px;
  pointer-events: auto;
  width: 100%;
  max-width: 100%;
}

.api-playground .hh-playground-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--scalar-border-color, #dfdfdf);
  border-radius: 12px;
  background: var(--scalar-background-1, #fff);
  margin-bottom: 12px;
  pointer-events: auto;
  width: 100%;
  max-width: 100%;
}

.api-playground .hh-playground-controls.hh-playground-controls--fallback {
  max-width: 560px;
  margin-left: auto;
}

.api-playground .hh-playground-auth-keys {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--scalar-border-color, #dfdfdf);
}

.api-playground .scalar-data-table .hh-playground-auth-keys {
  margin-top: 0;
  padding: 12px;
}

.api-playground .hh-playground-controls * {
  pointer-events: auto;
}

.api-playground .hh-playground-card * {
  pointer-events: auto;
}

.api-playground .hh-playground-controls__block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.api-playground .hh-playground-controls__label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--scalar-color-1, #1b1b1b);
}

.api-playground .hh-playground-controls__input {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--scalar-border-color, #dfdfdf);
  background: var(--scalar-background-1, #fff);
  color: var(--scalar-color-1, #1b1b1b);
  font-size: 14px;
  line-height: 1.3;
}

.api-playground .hh-playground-controls__input:focus {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--scalar-color-accent, #0d3a92), transparent 70%);
  border-color: var(--scalar-color-accent, #0d3a92);
}

.api-playground .hh-playground-controls__textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  resize: none;
  overflow: hidden;
  transition: max-height 120ms ease;
  max-height: 44px;
}

.api-playground .hh-playground-controls__textarea.is-masked {
  -webkit-text-security: disc;
}

.api-playground .hh-playground-controls__textarea.is-expanded {
  resize: vertical;
  overflow: auto;
  max-height: 360px;
}

.api-playground .hh-playground-controls__icon-button {
  appearance: none;
  border: 1px solid var(--scalar-border-color, #dfdfdf);
  background: var(--scalar-background-2, #f6f6f6);
  color: var(--scalar-color-1, #1b1b1b);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 4px;
}

.api-playground .hh-playground-controls__icon-button:hover {
  border-color: color-mix(in srgb, var(--scalar-color-accent, #0d3a92), var(--scalar-border-color, #dfdfdf) 50%);
}

.api-playground .hh-playground-controls__icon-button svg {
  width: 18px;
  height: 18px;
}

.api-playground .hh-playground-controls__row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.api-playground .hh-playground-controls__row > textarea {
  min-width: 0;
}

.api-playground .hh-playground-controls__row > button {
  justify-self: end;
}

.api-playground .hh-playground-controls__row-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  padding-top: 10px;
  color: var(--scalar-color-1, #1b1b1b);
}

@media (max-width: 720px) {
  .api-playground .hh-playground-controls__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
  }

  .api-playground .hh-playground-controls__row-label {
    grid-column: 1 / -1;
    padding-top: 0;
  }
}

.api-playground .hh-playground-controls__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.api-playground .hh-playground-controls__button {
  appearance: none;
  border: 1px solid var(--scalar-border-color, #dfdfdf);
  background: var(--scalar-background-2, #f6f6f6);
  color: var(--scalar-color-1, #1b1b1b);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.api-playground .hh-playground-controls__button:hover {
  border-color: color-mix(in srgb, var(--scalar-color-accent, #0d3a92), var(--scalar-border-color, #dfdfdf) 50%);
}

.api-playground .hh-playground-controls__hint {
  font-size: 12px;
  line-height: 1.35;
  color: var(--scalar-color-2, #525252);
}

.api-playground[data-mode='rsa'] .scalar-reference-intro-server [class~="group/label"] {
  flex-wrap: nowrap;
  border-top: 1px solid var(--scalar-border-color, #dfdfdf);
  border-radius: 12px;
}

.api-playground[data-mode='rsa'] .hh-playground-project-id [class~="group/label"] {
  flex-wrap: nowrap;
  border-top: 1px solid var(--scalar-border-color, #dfdfdf);
  border-radius: 12px;
}

.api-playground[data-mode='rsa'] .scalar-reference-intro-server [class~="group/label"] > label {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-weight: 700;
  min-width: 120px;
}

.api-playground[data-mode='rsa'] .scalar-reference-intro-server input::placeholder {
  color: var(--scalar-color-2, #525252);
  opacity: 0.6;
}

.api-playground[data-mode='rsa'] .hh-playground-project-id [class~="group/label"] > label {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-weight: 700;
  min-width: 120px;
}

.api-playground[data-mode='rsa'] .hh-playground-rsa-keys {
  margin-top: 12px;
  padding-right: 0;
}

.api-playground[data-mode='rsa'] .hh-playground-rsa-keys .hh-playground-controls__hint {
  padding-right: 12px;
}

.api-playground[data-mode='rsa'] .scalar-reference-intro-auth .bg-b-2 {
  display: none !important;
}

.api-playground[data-mode='rsa'] .scalar-reference-intro-auth .scalar-data-table {
  border-top: 1px solid var(--scalar-border-color, #dfdfdf) !important;
  border-radius: 12px;
}

.api-playground[data-mode='rsa'] .scalar-reference-intro-auth .scalar-data-table label {
  font-weight: 700;
}

.api-playground .hh-playground-real-headers {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--scalar-border-color, #dfdfdf);
  max-height: 240px;
  overflow: auto;
  padding-right: 8px;
}

.api-playground .hh-playground-real-headers__title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--scalar-color-1, #1b1b1b);
}

.api-playground .hh-playground-real-headers__error {
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 10px;
  color: #b91c1c;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.api-playground .hh-playground-real-headers__row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 10px;
  padding: 4px 0;
  align-items: start;
}

.api-playground .hh-playground-real-headers__name,
.api-playground .hh-playground-real-headers__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
  white-space: pre-wrap;
}

.api-playground .hh-playground-real-headers__name {
  color: var(--scalar-color-2, #525252);
}

.api-playground .hh-playground-real-headers__value {
  color: var(--scalar-color-1, #1b1b1b);
}

.api-playground .hh-playground-controls__mode {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--scalar-border-color, #dfdfdf);
  border-radius: 999px;
  overflow: hidden;
  width: fit-content;
  background: var(--scalar-background-2, #f6f6f6);
}

.api-playground .hh-playground-controls__mode-option {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  color: var(--scalar-color-2, #525252);
  background: transparent;
}

.api-playground .hh-playground-controls__mode-option + .hh-playground-controls__mode-option {
  border-left: 1px solid var(--scalar-border-color, #dfdfdf);
}

.api-playground .hh-playground-controls__mode-option.is-active {
  background: var(--scalar-color-accent, #0d3a92);
  color: #fff;
}

.api-playground [aria-label="Developer Tools"] {
  display: none !important;
}

.api-playground a[href="https://www.scalar.com"],
.api-playground a[href="https://scalar.com"] {
  display: none !important;
}

#api-playground-reference .cm-editor,
#api-playground-reference .cm-scroller,
#api-playground-reference .cm-gutters {
  background-color: #f8f9fb !important;
  color: #0f172a !important;
}

#api-playground-reference .cm-gutters {
  border-right: 1px solid #e2e8f0 !important;
}

#api-playground-reference .cm-content,
#api-playground-reference .cm-line,
#api-playground-reference pre,
#api-playground-reference code {
  background-color: transparent !important;
  color: inherit !important;
}

/* Scalar renders code samples in a dark card even in light mode. Force these cards to inherit light variables. */
#api-playground-reference .light-mode .scalar-card.dark-mode {
  --scalar-background-1: unset !important;
  --scalar-background-2: unset !important;
  --scalar-background-3: unset !important;
  --scalar-border-color: unset !important;
  --scalar-color-1: unset !important;
  --scalar-color-2: unset !important;
  --scalar-color-3: unset !important;
  --scalar-color-accent: unset !important;
  --scalar-background-accent: unset !important;
  --scalar-code-language-color-supersede: unset !important;
}
