/* API documentation — layout extras only (base design system: app.css) */
.flex-row { display: flex; align-items: center; gap: .5rem; }

/* Docs frame: same sidebar + black area as the inbox */
.docs-body { overflow: hidden; }
.docs-frame { display: flex; }
.docs-side { gap: 0; }
.docs-base-chip {
  display: flex; flex-direction: column; gap: 4px; margin: 0 0 6px; padding: 10px 12px;
  border-radius: 12px; background: #111114; border: 1px solid rgba(255,255,255,0.07);
}
.docs-base-chip code { color: #ffb4ab; font-size: 11.5px; word-break: break-all; }
.docs-group { margin: 14px 4px 6px; padding: 0; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5f5f68; }
.docs-nav-btn {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; min-height: 34px;
  padding: 5px 9px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: #a1a1aa; font: 600 12.5px/1.3 var(--font); cursor: pointer; transition: .12s ease;
}
.docs-nav-btn span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-nav-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
.docs-nav-btn.is-active { background: #26262b; border-color: rgba(255,255,255,0.06); color: #fff; }

.docs-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.25rem;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 28px 48px;
}
@media (max-width: 1180px) { .docs-studio { grid-template-columns: minmax(0, 1fr); } }
.docs-try { position: sticky; top: 28px; align-self: start; }
@media (max-width: 1180px) { .docs-try { position: static; } }
@media (max-width: 760px) {
  .docs-body { overflow: auto; }
  .docs-side .vh-side-scroll { flex-direction: column; flex-wrap: nowrap; max-height: 260px; overflow-y: auto; }
  .docs-studio { padding: 16px 12px 40px; }
}

.method {
  flex-shrink: 0; min-width: 46px; text-align: center;
  font: 700 10px/1 var(--mono); letter-spacing: .03em; text-transform: uppercase;
  padding: .3rem .4rem; border-radius: 7px; border: 1px solid transparent;
}
.method.get    { color: #6ee7b7; background: rgba(52,211,153,.10); border-color: rgba(52,211,153,.28); }
.method.post   { color: #ff8a80; background: rgba(255,59,48,.10); border-color: rgba(255,59,48,.30); }
.method.delete { color: #fca5a5; background: rgba(248,113,113,.10); border-color: rgba(248,113,113,.30); }

.docs-article { padding: 1.75rem 2rem 2rem; min-width: 0; }
@media (max-width: 760px) { .docs-article { padding: 1.25rem; } }
.docs-article h1 { font-size: 1.6rem; font-weight: 750; letter-spacing: -.03em; margin: 0 0 .35rem; }
.docs-article h3 { margin: 1.6rem 0 .6rem; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.docs-article p { color: #d4d4d8; font-size: 14px; line-height: 1.65; }
.docs-article .about { color: var(--muted); font-size: 14.5px; margin: 0 0 1.25rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--border); }
.docs-article code { font-family: var(--mono); font-size: 12.5px; color: #ffb4ab; background: rgba(255,59,48,.08); border: 1px solid rgba(255,59,48,.2); padding: .05rem .35rem; border-radius: 6px; }
.docs-article pre code, .endpoint code { background: none; border: 0; padding: 0; }

.endpoint {
  display: flex; align-items: center; gap: .7rem; margin: 1rem 0;
  padding: .75rem .9rem; border-radius: 12px;
  background: #141416; border: 1px solid var(--border);
  font: 13px var(--mono); overflow-x: auto;
}
.endpoint code { color: var(--text); font-size: 13px; }

.docs-bullets, .docs-steps { color: #d4d4d8; font-size: 14px; line-height: 1.6; padding-left: 1.25rem; margin: .5rem 0; }
.docs-bullets li, .docs-steps li { margin: .4rem 0; }
.docs-bullets li::marker { color: var(--accent); }
.docs-steps li::marker { color: #ff8a80; font-weight: 700; }

.docs-sample { background: #0c0c0e; border: 1px solid var(--border); border-radius: 12px; padding: .95rem 1.05rem; overflow: auto; font: 12px/1.6 var(--mono); color: #ffb4ab; margin: .75rem 0; }

.docs-table { width: 100%; border-collapse: collapse; margin: .9rem 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.docs-table th, .docs-table td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; color: #d4d4d8; }
.docs-table th { background: var(--bg-elevated); color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.docs-table tr:last-child td { border-bottom: 0; }

.docs-warn { display: block; background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.28); color: #fde68a !important; border-radius: 12px; padding: .75rem .9rem; font-size: 13px !important; }

.docs-try-card { padding: 1.1rem; }
.docs-try-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; padding-bottom: .9rem; border-bottom: 1px solid var(--border); }
.docs-try-sub { margin: .15rem 0 0; font-size: 12px; color: var(--muted); }
.docs-try-card .label { margin-top: .75rem; }
.docs-run { margin-top: 1rem; }
.docs-stop { margin-top: .5rem; }
.docs-stop[hidden] { display: none; }
.docs-resp-title { margin: 1.1rem 0 .45rem; }
.try-log { margin: 0; min-height: 200px; max-height: 46vh; white-space: pre-wrap; word-break: break-word; }
.docs-empty { color: var(--muted); font-size: 12.5px; margin: .9rem 0 0; }
