/* [ADD] 2026-07-06 — /products/api REST API reference page (three-column layout) */

.tt-api-docs {
  --tt-api-docs-topbar-h: 64px;
  --tt-api-docs-tab-h: 40px;
  --tt-api-docs-chrome-h: calc(var(--tt-api-docs-topbar-h) + var(--tt-api-docs-tab-h));
  --tt-api-docs-sidebar-w: 280px;
  --tt-api-docs-resizer-w: 10px;
  --tt-api-docs-main-min-w: 420px;
  --tt-api-docs-samples-min-w: 360px;
  --tt-api-docs-samples-max-w: 720px;
  --tt-api-docs-samples-w: 580px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--tt-bg, #0d0f14);
  color: var(--tt-fg-0, #fff);
}

.theme--light .tt-api-docs {
  background: #fff;
  color: #000;
}

.tt-api-docs__shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.tt-api-docs__topbar {
  position: sticky;
  top: 0;
  z-index: 1100;
  flex-shrink: 0;
  border-bottom: 1px solid var(--tt-border, rgba(255,255,255,.1));
  background: #000000;
}

.theme--light .tt-api-docs__topbar {
  background: #ffffff;
  border-color: rgba(0,0,0,.08);
}

.tt-api-docs__topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--tt-api-docs-topbar-h);
  padding: 0 20px;
  overflow: visible;
}

.tt-api-docs__topbar-start {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tt-api-docs__topbar-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.tt-api-docs__topbar-logo svg.tz-logo-full {
  height: 30px;
  width: auto;
  max-width: min(320px, 42vw);
}

.tt-api-docs__topbar-search {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  margin: 0 auto;
}

.tt-api-docs__topbar-search input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--tt-border, rgba(255,255,255,.15));
  background: rgba(255,255,255,.04);
  color: inherit;
  font-size: 14px;
}

.theme--light .tt-api-docs__topbar-search input {
  background: rgba(0,0,0,.03);
  border-color: rgba(0,0,0,.12);
}

.tt-api-docs__topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  overflow: visible;
}

/* Override global header icon colors only inside api-docs topbar. */
body.theme--dark .tt-api-docs .tt-api-docs__topbar-icon-btn.theme-toggle svg {
  color: var(--tt-fg-0, #fff);
}

/* Global light-theme header keeps toggle white via !important for black header.
   Api docs light theme has white topbar, so we scope an override here. */
body.theme--light .tt-api-docs .tt-api-docs__topbar-icon-btn.theme-toggle svg {
  color: #000000 !important;
}

body.theme--dark .tt-api-docs .tt-api-docs__topbar-lang .lang-switcher svg,
body.theme--dark .tt-api-docs .tt-api-docs__topbar-lang .lang-switcher .lang-code {
  color: #ffffff;
}

/* tradeiz-custom.css forces light-theme lang switcher icon/text white with !important.
   Keep this override page-scoped to avoid affecting the global header baseline. */
body.theme--light .tt-api-docs .tt-api-docs__topbar-lang .lang-switcher svg,
body.theme--light .tt-api-docs .tt-api-docs__topbar-lang .lang-switcher .lang-code {
  color: #000000 !important;
}

/* [FIX] 2026-08-02 — topbar logo + nav: beat .theme--dark a:not(.tz-btn){#aaaaaa}. */
body.theme--dark .tt-api-docs .tt-api-docs__topbar-logo.tz-logo-adaptive,
body.theme--dark .tt-api-docs .tt-api-docs__topbar-link,
body.theme--dark .tt-api-docs .tt-api-docs__topbar-tab:not(.is-active),
body.theme--dark .tt-api-docs .tt-api-docs__topbar-icon-btn.theme-toggle,
body.theme--dark .tt-api-docs .tt-api-docs__topbar-lang .lang-switcher,
body.theme--dark .tt-api-docs .tt-api-docs__nav-toggle {
  color: #ffffff !important;
  opacity: 1;
}

body.theme--light .tt-api-docs .tt-api-docs__topbar-logo.tz-logo-adaptive,
body.theme--light .tt-api-docs .tt-api-docs__topbar-link,
body.theme--light .tt-api-docs .tt-api-docs__topbar-tab:not(.is-active),
body.theme--light .tt-api-docs .tt-api-docs__topbar-icon-btn.theme-toggle,
body.theme--light .tt-api-docs .tt-api-docs__topbar-lang .lang-switcher,
body.theme--light .tt-api-docs .tt-api-docs__nav-toggle {
  color: #000000 !important;
  opacity: 1;
}

.tt-api-docs__topbar-link {
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  opacity: 1;
  white-space: nowrap;
}

.tt-api-docs__topbar-link:hover {
  opacity: 1;
  color: #2962ff;
}

.tt-api-docs__topbar-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  background: #2962ff;
  color: #ffffff;
}

.tt-api-docs__topbar-btn:hover {
  opacity: .92;
  color: #ffffff;
}

/* [FIX] 2026-08-02 — REST API topbar CTA: beat .theme--dark a:not(.tz-btn){#aaaaaa}. */
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__topbar-btn,
body.theme--light .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__topbar-btn {
  color: #ffffff !important;
}

body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__topbar-btn:hover,
body.theme--light .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__topbar-btn:hover {
  color: #ffffff !important;
}

.tt-api-docs__topbar-icon-btn.theme-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--tt-border, rgba(255,255,255,.15));
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tt-api-docs__topbar-icon-btn svg {
  width: 18px;
  height: 18px;
}

.tt-api-docs__topbar-lang.lang-switcher-li {
  position: relative;
}

.tt-api-docs__topbar-lang.lang-switcher-li::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
}

.tt-api-docs__topbar-lang .lang-switcher {
  width: auto;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--tt-border, rgba(255,255,255,.15));
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.tt-api-docs__topbar-lang .lang-switcher svg {
  width: 16px;
  height: 16px;
}

.tt-api-docs__topbar-lang .lang-code {
  font-size: 12px;
  font-weight: 700;
}

.tt-api-docs__topbar-lang .lang-dropdown {
  /* Keep docs-specific placement only; dropdown sizing inherits site baseline. */
  top: calc(100% + 2px);
  right: 0;
  z-index: 1200;
}

.tt-api-docs__topbar-lang.active .lang-dropdown { display: block; }

.tt-api-docs__topbar-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: var(--tt-api-docs-tab-h);
  padding: 0 20px;
  border-top: 1px solid var(--tt-border, rgba(255,255,255,.06));
}

.theme--light .tt-api-docs__topbar-tabs {
  border-color: rgba(0,0,0,.06);
}

.tt-api-docs__topbar-tab {
  display: inline-flex;
  align-items: center;
  padding: 0 4px 0 0;
  margin-right: 20px;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  opacity: 1;
}

button.tt-api-docs__topbar-tab {
  font-family: inherit;
}

.tt-api-docs__topbar-tab.is-active {
  opacity: 1;
  color: #2962ff;
  border-bottom-color: #2962ff;
}

.tt-api-docs__intro {
  padding: 28px 0 8px;
}

.tt-api-docs__intro-title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.tt-api-docs__intro-sub {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.55;
  opacity: .82;
  max-width: 760px;
}

.tt-api-docs__foot {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 12px;
  opacity: .65;
  border-top: 1px solid var(--tt-border, rgba(255,255,255,.08));
}

.theme--light .tt-api-docs__foot {
  border-color: rgba(0,0,0,.08);
}

.tt-api-docs__foot a {
  color: inherit;
  text-decoration: none;
}

.tt-api-docs__foot a:hover {
  color: #2962ff;
  opacity: 1;
}

.tt-api-docs__foot-sep { opacity: .45; }

.tt-api-docs__hero-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.tt-api-docs__meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tt-api-docs__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid var(--tt-border, rgba(255,255,255,.12));
  background: rgba(255,255,255,.03);
}

.theme--light .tt-api-docs__badge {
  border-color: rgba(0,0,0,.08);
  background: rgba(0,0,0,.03);
}

.tt-api-docs__badge code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
}

.tt-api-docs__nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--tt-border, rgba(255,255,255,.15));
  background: rgba(255,255,255,.04);
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.tt-api-docs__nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0,0,0,.45);
}

.tt-api-docs__layout {
  display: grid;
  grid-template-columns: var(--tt-api-docs-sidebar-w) minmax(0, 1fr) var(--tt-api-docs-resizer-w) minmax(var(--tt-api-docs-samples-min-w), var(--tt-api-docs-samples-w));
  gap: 0;
  flex: 1;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 0 24px;
  align-items: stretch;
}

body.tt-api-docs--resizing,
body.tt-api-docs--resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

.tt-api-docs__resizer {
  position: relative;
  touch-action: none;
  cursor: col-resize;
  outline: none;
}

.tt-api-docs__resizer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: var(--tt-border, rgba(255,255,255,.12));
  transition: background-color .12s ease;
}

.tt-api-docs__resizer:hover::before,
.tt-api-docs__resizer.is-dragging::before,
.tt-api-docs__resizer:focus-visible::before {
  background: #2962ff;
}

.tt-api-docs__resizer:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(41,98,255,.45);
}

.theme--light .tt-api-docs__resizer::before {
  background: rgba(0,0,0,.1);
}

.tt-api-docs__sidebar {
  position: sticky;
  top: var(--tt-api-docs-chrome-h);
  height: calc(100vh - var(--tt-api-docs-chrome-h));
  max-height: calc(100vh - var(--tt-api-docs-chrome-h));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--tt-border, rgba(255,255,255,.08));
  padding: 16px 16px 16px 0;
}

.theme--light .tt-api-docs__sidebar {
  border-color: rgba(0,0,0,.08);
}

.tt-api-docs__nav-sections ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tt-api-docs__nav-sections li + li { margin-top: 4px; }

.tt-api-docs__nav-sublist {
  list-style: none;
  margin: 4px 0 0;
  padding: 0 0 0 14px;
}

.tt-api-docs__nav-sublist li + li {
  margin-top: 2px;
}

.tt-api-docs__nav-link {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: inherit;
  text-decoration: none;
  opacity: .78;
  border-left: 2px solid transparent;
}

.tt-api-docs__nav-link:hover {
  opacity: 1;
  color: #2962ff;
  background: rgba(41,98,255,.08);
}

.tt-api-docs__nav-link.is-active {
  opacity: 1;
  color: #2962ff;
  background: rgba(41,98,255,.12);
  border-left-color: #2962ff;
  font-weight: 600;
}

.tt-api-docs__nav-link--sub {
  padding: 5px 10px;
  font-size: 12px;
}

.tt-api-docs__nav-link--sub code {
  font-size: 12px;
  color: inherit;
}

.tt-api-docs__nav-divider {
  height: 1px;
  margin: 14px 0;
  background: var(--tt-border, rgba(255,255,255,.08));
}

.tt-api-docs__nav-endpoints-head {
  flex-shrink: 0;
  margin-bottom: 8px;
}

.tt-api-docs__nav-endpoints-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .65;
  margin-bottom: 8px;
}

.tt-api-docs__search input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--tt-border, rgba(255,255,255,.15));
  background: transparent;
  color: inherit;
  font-size: 14px;
}

.tt-api-docs__nav-endpoints {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  margin-right: -4px;
}

.tt-api-docs__nav-group {
  margin-bottom: 6px;
}

.tt-api-docs__nav-group summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  opacity: .88;
}

.tt-api-docs__nav-group summary::-webkit-details-marker { display: none; }

.tt-api-docs__nav-group summary:hover { background: rgba(255,255,255,.04); }

.tt-api-docs__nav-group-count {
  font-size: 11px;
  font-weight: 500;
  opacity: .6;
}

.tt-api-docs__nav-group ul {
  list-style: none;
  margin: 2px 0 0;
  padding: 0 0 0 8px;
}

.tt-api-docs__nav-ep {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  opacity: .72;
  border-left: 2px solid transparent;
}

.tt-api-docs__nav-ep-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* [EXCEPTION] REST method badge colors — industry-standard HTTP verb semantics for API docs nav */
.tt-api-docs__method-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tt-api-docs__method-badge--nav {
  font-size: 10px;
  padding: 2px 6px;
}

.tt-api-docs__method-badge--sm {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
}

.tt-api-docs__method-badge--get {
  background: rgba(38, 166, 154, .18);
  color: #26a69a;
}

.tt-api-docs__method-badge--post {
  background: rgba(41, 98, 255, .18);
  color: #6ea1ff;
}

.tt-api-docs__method-badge--put {
  background: rgba(255, 152, 0, .18);
  color: #ffb74d;
}

.tt-api-docs__method-badge--patch {
  background: rgba(255, 193, 7, .18);
  color: #ffd54f;
}

.tt-api-docs__method-badge--delete {
  background: rgba(239, 83, 80, .18);
  color: #ef5350;
}

.tt-api-docs__nav-ep:hover {
  opacity: 1;
  background: rgba(255,255,255,.04);
}

.tt-api-docs__nav-ep.is-active {
  opacity: 1;
  color: #6ea1ff;
  background: rgba(41,98,255,.1);
  border-left-color: #2962ff;
}

.tt-api-docs__main {
  min-width: 0;
  padding: 0 32px 32px;
  overflow-y: auto;
  max-height: calc(100vh - var(--tt-api-docs-chrome-h));
}

.tt-api-docs__section {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--tt-border, rgba(255,255,255,.08));
  scroll-margin-top: calc(var(--tt-api-docs-chrome-h) + 16px);
}

.tt-api-docs__section:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.tt-api-docs__section--endpoints { scroll-margin-top: calc(var(--tt-api-docs-chrome-h) + 16px); }

.tt-api-docs__code {
  margin: 0;
  padding: 16px 18px;
  border-radius: 10px;
  overflow-x: auto;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
}

.tt-api-docs__code--dark {
  background: #1a1d24;
  border-color: rgba(255,255,255,.1);
}

.theme--light .tt-api-docs__code {
  background: #f4f6f8;
  border-color: rgba(0,0,0,.08);
}

.theme--light .tt-api-docs__code--dark {
  background: #1e222a;
  border-color: rgba(0,0,0,.2);
}

.tt-api-docs__code code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre;
  color: #e6edf3;
}

.theme--light .tt-api-docs__code code { color: #0f172a; }
.theme--light .tt-api-docs__code--dark code { color: #e6edf3; }

.tt-api-docs__label {
  margin: 16px 0 6px;
  font-size: 14px;
  font-weight: 600;
  opacity: .75;
}

.tt-api-docs__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--tt-border, rgba(255,255,255,.1));
}

.tt-api-docs__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tt-api-docs__table th,
.tt-api-docs__table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--tt-border, rgba(255,255,255,.08));
  vertical-align: top;
}

.tt-api-docs__table th {
  text-align: left;
  font-weight: 600;
  background: rgba(255,255,255,.03);
}

.theme--light .tt-api-docs__table th { background: rgba(0,0,0,.03); }

.tt-api-docs__endpoint-detail { margin-top: 18px; }

.tt-api-docs__ep-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--tt-border, rgba(255,255,255,.08));
}

.tt-api-docs__method {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(41,98,255,.18);
  color: #6ea1ff;
}

.tt-api-docs__path {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  word-break: break-all;
}

.tt-api-docs__plan {
  margin-left: auto;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
}

.tt-api-docs__plan--free { border-color: rgba(38,166,154,.45); color: #26a69a; }
.tt-api-docs__plan--starter { border-color: rgba(41,98,255,.45); color: #6ea1ff; }
.tt-api-docs__plan--standard { border-color: rgba(171,71,188,.45); color: #ce93d8; }
.tt-api-docs__plan--professional { border-color: rgba(255,193,7,.45); color: #ffd54f; }

.tt-api-docs__ep-body {
  padding: 14px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.tt-api-docs__ep-name { font-weight: 600; margin-bottom: 6px; font-size: 16px; }

.tt-api-docs__ep-desc {
  opacity: .85;
  margin-bottom: 10px;
}

.tt-api-docs__ep-sub {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .65;
  margin: 16px 0 8px;
}

.tt-api-docs__params {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tt-api-docs__params th,
.tt-api-docs__params td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--tt-border, rgba(255,255,255,.06));
  vertical-align: top;
}

.tt-api-docs__params code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

.tt-api-docs__empty {
  padding: 24px;
  text-align: center;
  opacity: .7;
  font-size: 14px;
}

.tt-api-docs__samples {
  position: sticky;
  top: var(--tt-api-docs-chrome-h);
  height: calc(100vh - var(--tt-api-docs-chrome-h));
  max-height: calc(100vh - var(--tt-api-docs-chrome-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 0 16px 16px;
  border-left: 0;
}

.tt-api-docs__samples-inner { display: grid; gap: 16px; }

.tt-api-docs__sample-block {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  overflow: hidden;
}

.theme--light .tt-api-docs__sample-block {
  border-color: rgba(0,0,0,.1);
}

.tt-api-docs__sample-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.theme--light .tt-api-docs__sample-head {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.08);
}

.tt-api-docs__sample-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .75;
}

.tt-api-docs__copy {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.tt-api-docs__copy:hover { background: rgba(41,98,255,.2); border-color: rgba(41,98,255,.4); }

.tt-api-docs__copy.is-copied {
  border-color: rgba(38,166,154,.5);
  color: #26a69a;
}

.tt-api-docs__sample-block .tt-api-docs__code {
  border: 0;
  border-radius: 0;
}

.tt-api-docs__sample-req-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.theme--light .tt-api-docs__sample-req-head {
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .08);
}

.tt-api-docs__sample-req-route {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tt-api-docs__sample-path {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-all;
  opacity: .92;
}

.tt-api-docs__test-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  flex-shrink: 0;
  border: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  background: #2962ff;
  color: #fff;
  cursor: pointer;
}

.tt-api-docs__test-btn:hover {
  opacity: .92;
  color: #fff;
}

.tt-api-docs__test-btn.is-loading {
  opacity: .78;
  pointer-events: none;
}

.tt-api-docs__test-btn:disabled,
.tt-api-docs__test-btn.is-disabled {
  opacity: .48;
  cursor: not-allowed;
  background: rgba(120, 123, 134, .45);
}

.tt-api-docs__test-btn svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  display: block;
}

.tt-api-docs__test-btn span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.tt-api-docs__sample-inputs {
  display: grid;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.theme--light .tt-api-docs__sample-inputs {
  background: rgba(0, 0, 0, .03);
  border-color: rgba(0, 0, 0, .08);
}

.tt-api-docs__sample-input-row {
  display: grid;
  gap: 6px;
}

.tt-api-docs__sample-input-label {
  font-size: 12px;
  font-weight: 600;
  opacity: .8;
}

.tt-api-docs__sample-input-wrap {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.tt-api-docs__sample-input,
.tt-api-docs__sample-param-input,
.tt-api-docs__sample-param-select {
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .04);
  color: inherit;
  font-size: 12px;
}

.theme--light .tt-api-docs__sample-input,
.theme--light .tt-api-docs__sample-param-input,
.theme--light .tt-api-docs__sample-param-select {
  border-color: rgba(0, 0, 0, .12);
  background: rgba(0, 0, 0, .03);
}

.tt-api-docs__sample-input:focus,
.tt-api-docs__sample-param-input:focus,
.tt-api-docs__sample-param-select:focus {
  outline: 0;
  border-color: rgba(41, 98, 255, .6);
  box-shadow: 0 0 0 1px rgba(41, 98, 255, .3);
}

.tt-api-docs__key-toggle {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 0 10px;
  cursor: pointer;
}

.theme--light .tt-api-docs__key-toggle {
  border-color: rgba(0, 0, 0, .12);
  background: rgba(0, 0, 0, .04);
}

.tt-api-docs__key-toggle:hover {
  border-color: rgba(41, 98, 255, .45);
  background: rgba(41, 98, 255, .15);
}

.tt-api-docs__sample-param-title {
  font-size: 12px;
  font-weight: 600;
  opacity: .8;
}

.tt-api-docs__sample-param-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.tt-api-docs__sample-param-field {
  display: grid;
  gap: 4px;
}

.tt-api-docs__sample-param-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.tt-api-docs__sample-param-label code {
  font-size: 11px;
}

.tt-api-docs__sample-required {
  color: #ef5350;
  font-size: 11px;
}

.tt-api-docs__sample-inline-error {
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #ffd8d7;
  background: rgba(239, 83, 80, .18);
  border: 1px solid rgba(239, 83, 80, .35);
}

.theme--light .tt-api-docs__sample-inline-error {
  color: #8f1d1d;
  background: rgba(239, 83, 80, .12);
  border-color: rgba(239, 83, 80, .3);
}

.tt-api-docs__sample-req-foot,
.tt-api-docs__sample-res-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .03);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.theme--light .tt-api-docs__sample-req-foot,
.theme--light .tt-api-docs__sample-res-foot {
  background: rgba(0, 0, 0, .03);
  border-color: rgba(0, 0, 0, .08);
}

.tt-api-docs__lang-select,
.tt-api-docs__status-select {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .04);
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.theme--light .tt-api-docs__lang-select,
.theme--light .tt-api-docs__status-select {
  background: rgba(0, 0, 0, .03);
  border-color: rgba(0, 0, 0, .12);
}

.tt-api-docs__sample-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tt-api-docs__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .06);
  color: inherit;
  cursor: pointer;
}

.tt-api-docs__icon-btn svg {
  width: 14px;
  height: 14px;
}

.tt-api-docs__icon-btn:hover {
  background: rgba(41, 98, 255, .2);
  border-color: rgba(41, 98, 255, .4);
}

.tt-api-docs__icon-btn.is-copied {
  border-color: rgba(38, 166, 154, .5);
  color: #26a69a;
}

.tt-api-docs__sample-res-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.theme--light .tt-api-docs__sample-res-head {
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .08);
}

.tt-api-docs__sample-res-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  opacity: .85;
}

.tt-api-docs__content-type {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  opacity: .65;
}

.tt-api-docs__content-type.is-live {
  opacity: .9;
  color: #26a69a;
}

.tt-api-docs__content-type.is-error {
  opacity: .95;
  color: #ef5350;
}

.tt-api-docs--view-changelog .tt-api-docs__topbar-search,
.tt-ys-docs--view-changelog .tt-api-docs__topbar-search {
  visibility: hidden;
  pointer-events: none;
}

.tt-api-docs--view-changelog #api-docs-sidebar,
.tt-api-docs--view-changelog #api-docs-main,
.tt-api-docs--view-changelog .tt-api-docs__resizer,
.tt-api-docs--view-changelog .tt-api-docs__samples,
.tt-ys-docs--view-changelog #ys-docs-sidebar,
.tt-ys-docs--view-changelog #ys-docs-main {
  display: none !important;
}

.tt-api-docs--view-reference #api-docs-changelog-sidebar,
.tt-api-docs--view-reference #api-docs-changelog-main,
.tt-ys-docs--view-reference #ys-docs-changelog-sidebar,
.tt-ys-docs--view-reference #ys-docs-changelog-main {
  display: none !important;
}

.tt-api-docs--view-changelog .tt-api-docs__layout,
.tt-ys-docs--view-changelog .tt-api-docs__layout--no-samples {
  grid-template-columns: var(--tt-api-docs-sidebar-w) minmax(0, 1fr);
}

.tt-api-docs__changelog-nav-head {
  padding: 12px 0 8px;
}

.tt-api-docs__changelog-crumb {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #2962ff;
}

.tt-api-docs__changelog-policy {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 760px;
}

.tt-api-docs__changelog-body {
  display: grid;
  gap: 28px;
  padding-bottom: 32px;
}

.tt-api-docs__changelog-release {
  scroll-margin-top: calc(var(--tt-api-docs-chrome-h) + 16px);
}

.tt-api-docs__changelog-release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0 0 12px;
}

.tt-api-docs__changelog-release-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.tt-api-docs__changelog-release-type {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}

.theme--light .tt-api-docs__changelog-release-type {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.08);
}

.tt-api-docs__changelog-release-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.tt-api-docs__changelog-release-list li + li {
  margin-top: 8px;
}

.tt-api-docs__changelog-nav .tt-api-docs__nav-link {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-decoration: none;
  color: inherit;
  opacity: .82;
}

.tt-api-docs__changelog-nav .tt-api-docs__nav-link:hover {
  opacity: 1;
  background: rgba(255,255,255,.05);
}

.theme--light .tt-api-docs__changelog-nav .tt-api-docs__nav-link:hover {
  background: rgba(0,0,0,.04);
}

.tt-api-docs__changelog-nav .tt-api-docs__nav-link.is-active {
  opacity: 1;
  color: #2962ff;
  background: rgba(41,98,255,.12);
}

.tt-api-docs__changelog-nav-group {
  margin-bottom: 8px;
}

.tt-api-docs__changelog-nav-group > summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 700;
}

.tt-api-docs__changelog-nav-group > summary::-webkit-details-marker {
  display: none;
}

.tt-api-docs__changelog-nav-group > summary::before {
  content: "›";
  display: inline-block;
  margin-right: 6px;
  transition: transform .15s ease;
}

.tt-api-docs__changelog-nav-group[open] > summary::before {
  transform: rotate(90deg);
}

.tt-api-docs__changelog-nav-group ul {
  list-style: none;
  margin: 0;
  padding: 0 0 4px 8px;
}

@media (min-width: 1100px) {
  .tt-api-docs__sidebar-search { display: none; }
}

@media (max-width: 1099px) {
  .tt-api-docs {
    --tt-api-docs-tab-h: 0px;
  }

  .tt-api-docs__topbar-tabs { display: none; }

  .tt-api-docs__topbar-search { display: none; }

  .tt-api-docs__topbar-link { display: none; }

  .tt-api-docs__nav-toggle { display: inline-flex; }

  .tt-api-docs__layout {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .tt-api-docs__resizer {
    display: none;
  }

  .tt-api-docs__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: min(300px, 88vw);
    height: 100vh;
    max-height: none;
    transform: translateX(-105%);
    transition: transform .22s ease;
    background: var(--tt-bg, #0d0f14);
    border-right: 1px solid var(--tt-border, rgba(255,255,255,.12));
    padding: calc(var(--tt-api-docs-topbar-h) + 12px) 16px 24px;
    box-shadow: 4px 0 24px rgba(0,0,0,.35);
  }

  .theme--light .tt-api-docs__sidebar {
    background: #fff;
    border-color: rgba(0,0,0,.1);
  }

  .tt-api-docs__sidebar.is-open { transform: translateX(0); }

  .tt-api-docs__main {
    padding: 0 0 24px;
    max-height: none;
    overflow: visible;
    grid-row: 1;
  }

  .tt-api-docs__samples {
    position: static;
    height: auto;
    max-height: none;
    border-left: 0;
    padding: 0;
    margin-top: 32px;
    grid-row: 2;
  }
}

@media (max-width: 767px) {
  .tt-api-docs__topbar-inner {
    padding: 0 12px;
    gap: 10px;
  }

  .tt-api-docs__topbar-btn span { font-size: 13px; }

  .tt-api-docs__topbar-btn {
    padding: 7px 10px;
  }

  .tt-api-docs__intro-title { font-size: 22px; }

  .tt-api-docs__intro-sub { font-size: 14px; }

  .tt-api-docs__foot { padding: 12px 16px; }
}

/* YeScript language reference — two-column layout (no samples pane). */
.tt-api-docs__layout--no-samples {
  grid-template-columns: var(--tt-api-docs-sidebar-w) minmax(0, 1fr);
}

/* [FIX] 2026-08-02 — api-docs pages: override crocus-theme body/link grays. */
body.theme--dark:has(#page.tt-api-docs) {
  background-color: #000000 !important;
  color: #ffffff;
}

body.theme--light:has(#page.tt-api-docs) {
  background-color: #ffffff !important;
  color: #000000;
}

.tt-ys-docs {
  --tt-corp-fg: #ffffff;
  --tt-fg-0: #ffffff;
  --tt-bg: #000000;
  --tt-bg-0: #000000;
  background: #000000;
  color: var(--tt-corp-fg);
}

body.theme--light .tt-ys-docs {
  --tt-corp-fg: #000000;
  --tt-fg-0: #000000;
  --tt-bg: #ffffff;
  --tt-bg-0: #ffffff;
  background: #ffffff;
  color: var(--tt-corp-fg);
}

body.theme--dark .tt-ys-docs .tt-api-docs__intro,
body.theme--dark .tt-ys-docs .tt-api-docs__intro-title,
body.theme--dark .tt-ys-docs .tt-api-docs__intro-sub,
body.theme--dark .tt-ys-docs .corp-page__list,
body.theme--dark .tt-ys-docs .corp-page__list li {
  color: var(--tt-corp-fg) !important;
}

body.theme--light .tt-ys-docs .tt-api-docs__intro,
body.theme--light .tt-ys-docs .tt-api-docs__intro-title,
body.theme--light .tt-ys-docs .tt-api-docs__intro-sub,
body.theme--light .tt-ys-docs .corp-page__list,
body.theme--light .tt-ys-docs .corp-page__list li {
  color: var(--tt-corp-fg) !important;
}

body.theme--dark .tt-ys-docs .tt-api-docs__intro-sub {
  opacity: 1;
}

@media (max-width: 991px) {
  body.theme--dark .tt-ys-docs .tt-api-docs__sidebar.is-open {
    background: #000000;
  }

  body.theme--light .tt-ys-docs .tt-api-docs__sidebar.is-open {
    background: #ffffff;
  }
}

/* [FIX] 2026-08-02 — REST API docs dark theme: black canvas + border structure (scoped, not YeScript). */
body.theme--dark .tt-api-docs:not(.tt-ys-docs) {
  --tt-bg: #000000;
  background: #000000;
}

body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__topbar-search input,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__badge,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__nav-toggle,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__search input,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__code,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__code--dark,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__table th,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__sample-head,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__sample-req-head,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__sample-inputs,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__sample-req-foot,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__sample-res-foot,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__sample-res-head,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__sample-input,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__sample-param-input,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__sample-param-select,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__key-toggle,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__lang-select,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__status-select,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__copy,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__icon-btn,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__changelog-release-type {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__code,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__code--dark {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__sample-block .tt-api-docs__code {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__sample-head,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__sample-req-head,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__sample-res-head,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__sample-inputs {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__sample-req-foot,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__sample-res-foot {
  border-top-color: rgba(255, 255, 255, 0.12);
}

body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__nav-group summary:hover,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__nav-ep:hover,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__changelog-nav .tt-api-docs__nav-link:hover {
  background: #000000;
}

body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__test-btn:disabled,
body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__test-btn.is-disabled {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1099px) {
  body.theme--dark .tt-api-docs:not(.tt-ys-docs) .tt-api-docs__sidebar {
    background: #000000;
  }
}
