.account-api-card .section-title { align-items: center; gap: 16px; flex-wrap: wrap; }
.account-api-card .section-title h2 { margin: 0; }
.api-token { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; max-width: 900px; }
.api-token-label { min-width: 0; display: grid; gap: 8px; font-weight: 700; }
.api-token-input { width: 100%; min-width: 0; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 14px/1.6 monospace; }
.api-token-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.api-access-form { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.api-access-status { color: var(--muted); font-size: 13px; }
.api-token button:disabled { opacity: .5; cursor: default; }
.api-token-actions .button + .button { margin: 0; }
.api-token-status { grid-column: 1 / -1; min-height: 0; font-size: 13px; color: var(--muted); }
.developer-page main { max-width: 1120px; }
.api-doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.api-doc-navigation { display: block; min-width: 0; position: sticky; top: 20px; max-height: calc(100dvh - 40px); overflow-y: auto; overflow-x: hidden; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); margin-top: 24px; }
.api-doc-navigation h2 { font-size: 11px; letter-spacing: .08em; color: var(--muted); margin: 22px 0 8px; }
.api-doc-navigation h2:first-child { margin-top: 0; }
.api-doc-navigation a { display: block; padding: 10px 8px; font-size: 13px; color: var(--ink); border-radius: 8px; overflow-wrap: anywhere; }
.api-test-access { display: grid; gap: 10px; margin-top: 22px; }
.api-test-access input { width: 100%; min-width: 0; padding: 12px; font: inherit; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--bg); }
.api-example-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.api-example-actions button + button { margin-left: 0; }
.api-steps { padding-left: 24px; line-height: 1.9; }
.api-request-url { display: block; overflow-wrap: anywhere; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.api-doc-navigation a:hover, .api-doc-navigation a:focus-visible { background: #2e9be31a; }
.developer-reference { min-width: 0; }
.api-method { scroll-margin-top: 24px; }
@media (max-width: 850px) {
  .api-doc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .api-doc-navigation { position: static; max-height: 240px; }
}
.developer-reference { margin-block: 24px; }
.api-reference-intro { color: var(--muted); margin-bottom: 20px; }
.api-method { margin: 12px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); }
.api-method summary { list-style: none; display: flex; gap: 16px; align-items: center; padding: 18px 22px; font-size: 17px; font-weight: 700; cursor: pointer; color: #b46b00; transition: background .2s ease; }
.api-method summary::-webkit-details-marker { display: none; }
.api-method summary:focus-visible { outline: 2px solid #e89922; outline-offset: -3px; }
.api-method summary:hover, .api-method[open] summary { background: #f6a32112; }
.api-method[open] { border-color: #e89922; }
.api-method-name { flex: 1; }
.api-method-badge { font: 700 11px/1.4 monospace; padding: 5px 8px; border-radius: 6px; color: #2478af; background: #2e9be31a; }
.api-method-badge.post { color: #a46810; background: #df97201f; }
.api-method-chevron { font-size: 26px; line-height: 1; transition: transform .2s ease; }
.api-method[open] .api-method-chevron { transform: rotate(90deg); }
.api-method-content { padding: 6px 22px 24px; color: var(--ink); }
.api-parameters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.api-parameters label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; }
.api-parameters input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); color: var(--ink); background: var(--bg); }
.api-code { max-width: 100%; overflow: auto; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #091322; color: #dfeaf8; font: 13px/1.7 monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.api-send { margin-top: 8px; }
.api-send:disabled { opacity: .6; cursor: wait; }
.api-write-note { display: block; margin-top: 12px; }
.api-doc-intro code, .api-rules code { overflow-wrap: anywhere; }
html[data-theme='dark'] .api-token-input, html[data-theme='dark'] .api-parameters input { background: #142338; color: #e5edf8; border-color: #42546e; }
html[data-theme='dark'] .api-method { background: #1b2d43; border-color: #42546e; }
html[data-theme='dark'] .api-method summary { color: #f5a623; }
html[data-theme='dark'] .api-method-badge { color: #71bbef; }
html[data-theme='dark'] .api-method-badge.post { color: #e9aa4d; }
html[data-theme='dark'] .api-method[open] { border-color: #e89922; }
html[data-theme='dark'] .api-method-content { color: #e5edf8; }
@media (max-width: 680px) {
  .api-token { grid-template-columns: 1fr; }
  .api-token-actions { justify-content: flex-start; }
  .api-parameters { grid-template-columns: 1fr; }
  .api-method summary { padding: 16px; gap: 10px; font-size: 15px; }
  .api-method-content { padding: 0 16px 18px; }
  .api-doc-intro, .api-rules { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .api-method summary, .api-method-chevron { transition: none; } }
