* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f7f8fa; color: #1f2937; margin: 0; min-height: 100vh; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.site-header { background: #111827; color: #fff; padding: 14px 0; margin-bottom: 32px; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.brand { font-weight: 700; color: #fff; text-decoration: none; font-size: 16px; margin-right: auto; display: inline-flex; align-items: center; gap: 8px; }
.sdk-version { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.02em; background: rgba(255,255,255,0.12); color: #d1d5db; padding: 2px 8px; border-radius: 999px; font-family: 'JetBrains Mono', Consolas, monospace; }
nav a { color: #d1d5db; margin-left: 20px; text-decoration: none; font-size: 14px; }
nav a:hover { color: #fff; }
.config-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.06); color: #e5e7eb; border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 6px 14px; font-size: 12px; text-decoration: none; font-family: 'JetBrains Mono', Consolas, monospace; }
.config-pill:hover { background: rgba(255,255,255,0.14); }
.config-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.config-pill-warn { font-family: inherit; color: #fde68a; background: rgba(252,211,77,0.12); border-color: rgba(252,211,77,0.4); }
h1 { margin: 0 0 16px; font-size: 26px; }
h2 { margin: 24px 0 12px; font-size: 18px; color: #111827; }
h3 { margin: 16px 0 8px; font-size: 15px; color: #374151; }
p.lede { color: #6b7280; margin: 4px 0 32px; }
.muted { color: #9ca3af; font-size: 13px; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 24px; margin-bottom: 24px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-header > div:first-child { flex: 1; }
label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; font-family: inherit; }
.field { margin-bottom: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
button, .btn { background: #2563eb; color: #fff; padding: 9px 18px; border: 0; border-radius: 6px; cursor: pointer; font-size: 13.5px; font-weight: 500; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { background: #1d4ed8; }
button:disabled { background: #9ca3af; cursor: not-allowed; }
.btn.secondary { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.btn.secondary:hover { background: #f9fafb; }
.btn.danger { background: transparent; color: #b91c1c; border: 1px solid #fecaca; }
.btn.danger:hover { background: #fef2f2; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 11px 14px; border-bottom: 2px solid #e5e7eb; font-size: 11.5px; text-transform: uppercase; color: #6b7280; letter-spacing: 0.04em; font-weight: 600; background: #f9fafb; }
.table td { padding: 12px 14px; border-bottom: 1px solid #f3f4f6; font-size: 13.5px; vertical-align: middle; }
.table tbody tr:hover { background: #f9fafb; }
.table tbody tr:last-child td { border-bottom: 0; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.row-link { color: #111827; text-decoration: none; font-weight: 500; }
.row-link:hover { color: #2563eb; text-decoration: underline; }
code { background: #f3f4f6; padding: 2px 6px; border-radius: 3px; font-size: 12.5px; font-family: 'JetBrains Mono', Consolas, monospace; }
.chip { display: inline-block; padding: 2px 8px; background: #eef2ff; color: #3730a3; border-radius: 12px; font-size: 11.5px; font-weight: 500; }
.toolbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input, .toolbar select { flex: 1; min-width: 180px; }
.pager { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; margin-top: 12px; border-top: 1px solid #f3f4f6; font-size: 13px; color: #6b7280; }
.pager a, .pager .disabled { background: transparent; color: #374151; border: 1px solid #d1d5db; padding: 6px 14px; border-radius: 6px; text-decoration: none; }
.pager .disabled { color: #9ca3af; border-color: #e5e7eb; pointer-events: none; }
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 13.5px; }
.alert.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert.info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.footer { margin-top: 48px; padding: 24px 24px 48px; color: #6b7280; font-size: 12.5px; }
.detail-grid { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 0; font-size: 13.5px; }
.detail-grid dt { color: #6b7280; font-size: 12.5px; }
.detail-grid dd { margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 24px; }
.resource-card { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 18px; text-decoration: none; color: inherit; min-height: 140px; }
.resource-card:hover { border-color: #2563eb; }
.resource-card h3 { margin: 0 0 6px; font-size: 15px; color: #111827; }
.resource-card p { margin: 0; font-size: 13px; color: #6b7280; line-height: 1.4; }
.sdk-snippet { background: #0f172a; border-radius: 10px; overflow: hidden; margin: 20px 0; position: relative; }
.sdk-snippet-header { padding: 8px 14px; background: #1e293b; color: #94a3b8; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; display: flex; justify-content: space-between; align-items: center; }
.sdk-snippet-copy { background: transparent; color: #94a3b8; border: 1px solid rgba(148,163,184,0.3); padding: 3px 10px; font-size: 11px; border-radius: 4px; cursor: pointer; font-family: inherit; }
.sdk-snippet-copy:hover { background: rgba(148,163,184,0.1); color: #e2e8f0; }
.sdk-snippet pre { border-radius: 0; background: #0f172a; color: #e2e8f0; margin: 0; padding: 14px 18px; }
.sdk-snippet code { background: transparent !important; color: inherit !important; padding: 0 !important; border-radius: 0 !important; font-size: 13px; font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace; line-height: 1.55; }

/* Request drawer */
body.drawer-open { transition: padding-right 0.18s ease; }
@media (min-width: 1100px) { body.drawer-open { padding-right: 440px; } }
.lw-drawer { position: fixed; top: 0; right: 0; height: 100vh; width: 440px; background: #0f172a; color: #e2e8f0; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.18s ease; z-index: 50; box-shadow: -4px 0 24px rgba(15,23,42,0.35); }
.lw-drawer.open { transform: translateX(0); }
@media (max-width: 1099px) { .lw-drawer { width: 100vw; max-width: 520px; } }
.lw-drawer-rail { position: fixed; top: 50%; right: 0; transform: translateY(-50%); background: #1e293b; color: #e2e8f0; border: 1px solid #334155; border-right: 0; border-radius: 10px 0 0 10px; padding: 14px 10px; cursor: pointer; font-size: 12px; letter-spacing: 0.08em; writing-mode: vertical-rl; z-index: 49; }
.lw-drawer-rail:hover { background: #334155; }
.lw-drawer-rail .count { display: block; writing-mode: horizontal-tb; font-size: 11px; margin-top: 6px; color: #94a3b8; text-align: center; }
.lw-drawer-header { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #1e293b; }
.lw-drawer-header strong { font-size: 14px; letter-spacing: 0.02em; }
.lw-drawer-header button { background: transparent; border: 1px solid #334155; color: #cbd5e1; padding: 5px 10px; font-size: 11.5px; cursor: pointer; border-radius: 4px; margin-left: 6px; }
.lw-drawer-header button:hover { background: #1e293b; }
.lw-drawer-body { flex: 1; overflow: hidden; display: grid; grid-template-rows: minmax(100px, 180px) 1fr; gap: 0; }
.lw-entries { overflow-y: auto; border-bottom: 1px solid #1e293b; }
.lw-entry { padding: 10px 14px; border-bottom: 1px solid #1e293b; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 8px 10px; align-items: center; font-size: 12.5px; }
.lw-entry:hover { background: rgba(59,130,246,0.08); }
.lw-entry.selected { background: rgba(59,130,246,0.15); }
.lw-method { font-family: 'JetBrains Mono', Consolas, monospace; font-weight: 700; font-size: 11px; padding: 2px 6px; border-radius: 3px; background: #334155; color: #e2e8f0; }
.lw-method.GET { background: #064e3b; color: #d1fae5; }
.lw-method.POST { background: #1e3a8a; color: #dbeafe; }
.lw-method.PUT, .lw-method.PATCH { background: #78350f; color: #fde68a; }
.lw-method.DELETE { background: #7f1d1d; color: #fecaca; }
.lw-status { font-family: 'JetBrains Mono', Consolas, monospace; font-size: 11px; color: #94a3b8; }
.lw-status.ok { color: #34d399; }
.lw-status.err { color: #fb7185; }
.lw-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #cbd5e1; font-family: 'JetBrains Mono', Consolas, monospace; }
.lw-detail { overflow-y: auto; padding: 14px 16px; font-size: 12.5px; }
.lw-detail h4 { margin: 12px 0 6px; color: #94a3b8; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.lw-detail pre { background: #020617; color: #e2e8f0; padding: 10px 12px; font-size: 11.5px; white-space: pre-wrap; word-break: break-all; max-height: 240px; overflow-y: auto; }
.lw-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-family: 'JetBrains Mono', Consolas, monospace; font-size: 11.5px; color: #cbd5e1; }
.lw-meta dt { color: #94a3b8; }
.lw-edit-form { display: flex; flex-direction: column; gap: 8px; }
.lw-edit-form input, .lw-edit-form textarea, .lw-edit-form select { width: 100%; background: #020617; border: 1px solid #1e293b; color: #e2e8f0; padding: 6px 8px; font-family: 'JetBrains Mono', Consolas, monospace; font-size: 12px; border-radius: 4px; }
.lw-edit-form textarea { min-height: 80px; resize: vertical; }
.lw-edit-form button { background: #2563eb; color: #fff; border: 0; padding: 8px; font-size: 12.5px; border-radius: 4px; cursor: pointer; }
.lw-edit-form button:hover { background: #1d4ed8; }
.lw-empty { padding: 18px; text-align: center; color: #64748b; font-size: 12.5px; }
.lw-edit-toggle { background: transparent; color: #94a3b8; border: 1px solid #334155; padding: 3px 8px; font-size: 11px; border-radius: 4px; cursor: pointer; font-family: inherit; }
[x-cloak] { display: none !important; }
