/* Module 09: developer portal, API docs and console. Classes start with ap- (every module stylesheet loads on every page). */
.ap-tabs { align-self: start; }
.ap-secret { border: 2px solid #f0d58f; background: var(--warnBg); color: var(--warnFg); border-radius: 4px; padding: 12px 14px; display: grid; gap: 8px; }
.ap-secret p { margin: 0; font-size: 12.5px; }
.ap-secret-h { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.ap-secret-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.ap-secret-row .tl { font-size: 12px; font-weight: 700; }
.ap-secret-v { font-family: Consolas, 'Courier New', monospace; font-size: 13px; background: #fff; border: 1px solid #e6cf8a; border-radius: 3px; padding: 6px 8px; overflow-wrap: anywhere; color: #222; user-select: all; }
.ap-scopes { border: 1px solid var(--line2, #d6e0e9); border-radius: 4px; padding: 8px 12px 10px; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 6px 14px; min-width: 0; }
.ap-scopes legend { font-size: 12px; font-weight: 700; color: #2f4559; padding: 0 4px; }
.ap-scopes .ct-check { align-items: flex-start; }
.ap-scopes .ct-check span { line-height: 1.35; }
.ap-scopes [hidden] { display: none; }
.ap-wrap { white-space: normal !important; overflow-wrap: anywhere; max-width: 420px; }
.ap-url { white-space: normal; overflow-wrap: anywhere; }
.ap-m { display: inline-block; min-width: 46px; text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; border-radius: 3px; padding: 1px 5px; margin-right: 4px; background: #e4f0ff; color: #0f5aa6; }
.ap-m-post { background: #e3f6ec; color: #17734a; } .ap-m-patch { background: #fff3d6; color: #8a5a00; } .ap-m-delete { background: #fbe2e6; color: #a3283d; }
.ap-pre { background: #0f2238; color: #d8e6f5; border-radius: 4px; padding: 10px 12px; font: 12px/1.5 Consolas, 'Courier New', monospace; overflow-x: auto; white-space: pre; margin: 6px 0 12px; max-height: 520px; }
.ap-mono, textarea.ap-mono { font-family: Consolas, 'Courier New', monospace !important; font-size: 12px !important; }
.ap-details summary { cursor: pointer; font-size: 11.5px; color: var(--blue); }
.ap-details .ap-pre { max-width: 520px; max-height: 260px; }
.ap-h4 { margin: 4px 0 2px; font-size: 12px; text-transform: uppercase; color: #2f4559; }
.ap-inlineform { display: flex; gap: 6px; align-items: center; }
.ap-inlineform .ct-input { min-height: 28px; padding: 3px 6px; font-size: 12px; max-width: 220px; }
.ap-glcode { max-width: 140px; }
.ap-intro { max-width: 860px; }
/* Public docs */
.ap-docs .ap-docnav { position: sticky; top: 12px; align-self: start; }
.ap-prose h2 { scroll-margin-top: 16px; margin-top: 30px; }
.ap-prose h2:first-child { margin-top: 0; }
.ap-prose .ap-pre { white-space: pre; }
.ap-doctbl { margin: 8px 0 16px; }
.ap-doctbl td { white-space: normal; }
.ap-doctbl .req { color: var(--badFg); font-size: 11px; font-weight: 700; }
.ap-op { border-top: 1px solid var(--line2, #d6e0e9); padding: 12px 0 4px; scroll-margin-top: 16px; }
.ap-op h3 { font-size: 15px; margin: 0 0 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ap-op h3 code { font-size: 13.5px; overflow-wrap: anywhere; }
.ap-small { font-size: 12.5px; margin: 4px 0; }
.ap-tabsamples .ct-seg { margin-bottom: 4px; }
.ap-console { border: 1px solid var(--line2, #d6e0e9); border-radius: 4px; padding: 12px; display: grid; gap: 10px; background: #f7fafc; }
.ap-out { min-height: 80px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 900px) {
    .ap-secret-row { grid-template-columns: 1fr; }
    .ap-scopes { grid-template-columns: 1fr; }
    .ap-docs .ap-docnav { position: static; }
    .ap-wrap { max-width: none; }
}
