* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #1a1a2e; background: #fff; line-height: 1.6; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; width: 230px; height: 100vh; background: #fafafa; border-right: 1px solid #e5e7eb; padding: 20px 0; overflow-y: auto; z-index: 10; }
.nav-brand { padding: 0 18px 18px; font-size: 16px; font-weight: 700; color: #f5298c; border-bottom: 1px solid #e5e7eb; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.nav-logo { width: 24px; height: 24px; object-fit: contain; }
.nav-section { padding: 0 10px; margin-bottom: 6px; }
.nav-section-title { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #9ca3af; padding: 10px 10px 4px; font-weight: 600; }
.nav a { display: block; padding: 5px 12px; font-size: 13px; color: #4b5563; text-decoration: none; border-radius: 6px; transition: all 0.15s; }
.nav a:hover { background: #f3f4f6; color: #1a1a2e; }
.nav a.active { background: #fde6f0; color: #f5298c; font-weight: 500; }

/* Main */
.main { margin-left: 230px; max-width: 780px; padding: 40px 48px 80px; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 6px; }
.subtitle { color: #6b7280; font-size: 16px; margin-bottom: 8px; }
.base-url { margin-bottom: 36px; font-size: 14px; color: #4b5563; }
.base-url-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #9ca3af; margin-right: 6px; }
h2 { font-size: 20px; font-weight: 600; margin: 40px 0 14px; padding-top: 20px; border-top: 1px solid #f1f3f5; letter-spacing: -0.2px; }
section:first-of-type h2 { border-top: none; margin-top: 0; padding-top: 0; }
h3 { font-size: 15px; font-weight: 600; margin: 22px 0 8px; color: #1a1a2e; }
p { margin-bottom: 12px; color: #4b5563; font-size: 14.5px; }
ul { margin: 0 0 16px 20px; color: #4b5563; font-size: 14.5px; line-height: 1.9; }
code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 12.5px; font-family: 'SF Mono', Monaco, Consolas, monospace; color: #e11d48; }
pre { background: #1e1e2e; color: #cdd6f4; padding: 16px 18px; border-radius: 10px; overflow-x: auto; font-size: 13px; line-height: 1.55; margin: 8px 0 16px; }
pre code { background: none; padding: 0; color: inherit; font-size: 13px; }

/* Endpoint */
.endpoint { display: inline-flex; align-items: center; gap: 10px; background: #fafafa; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 14px; margin: 8px 0 14px; }
.method { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; font-family: monospace; color: #fff; }
.method.get { background: #2563eb; }
.method.post { background: #16a34a; }
.method.put { background: #d97706; }
.method.delete { background: #dc2626; }
.endpoint code { background: none; color: #1a1a2e; font-size: 13.5px; }

/* Table */
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; }
th { text-align: left; padding: 9px 12px; background: #fafafa; border-bottom: 2px solid #e5e7eb; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #6b7280; }
td { padding: 9px 12px; border-bottom: 1px solid #f1f3f5; color: #374151; }

/* Card */
.card { background: #fafafa; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; margin: 12px 0 16px; }
.card-row { display: flex; padding: 10px 16px; font-size: 14px; border-bottom: 1px solid #f1f3f5; gap: 12px; align-items: center; }
.card-row:last-child { border-bottom: none; }
.card-label { font-weight: 600; color: #1a1a2e; min-width: 120px; }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 16px; }
.step { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: #f5298c; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-body { flex: 1; }
.step-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.step-body p { margin: 0; font-size: 13px; }

/* Tabs */
.tabs { display: flex; gap: 0; margin-top: 12px; }
.tab { padding: 7px 18px; font-size: 12px; font-weight: 500; background: #f3f4f6; border: 1px solid #e5e7eb; cursor: pointer; color: #6b7280; font-family: inherit; transition: all 0.15s; }
.tab:first-child { border-radius: 8px 0 0 0; }
.tab:last-child { border-radius: 0 8px 0 0; }
.tab.active { background: #1e1e2e; color: #cdd6f4; border-color: #1e1e2e; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel pre { margin-top: 0; border-radius: 0 0 10px 10px; }

/* Boxes */
.info-box { padding: 12px 16px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; font-size: 13px; color: #1e40af; line-height: 1.5; margin: 12px 0 16px; }
.tip { padding: 12px 16px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; font-size: 13px; color: #166534; line-height: 1.5; margin: 0 0 16px; }
.checklist { list-style: none; margin-left: 0; }
.checklist li { padding: 4px 0 4px 24px; position: relative; }
.checklist li::before { content: '\2713'; position: absolute; left: 0; color: #f5298c; font-weight: 700; }

/* Mobile */
@media (max-width: 768px) {
  .nav { display: none; }
  .main { margin-left: 0; padding: 24px 20px 60px; }
  h1 { font-size: 24px; }
  .endpoint { flex-wrap: wrap; }
}
