:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-hover: #334155;
  --border: #334155;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #f0ab3e;
  --primary-text: #0f172a;
  --get: #38bdf8;
  --post: #4ade80;
  --put: #fbbf24;
  --delete: #f87171;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 60px;
}
header {
  background: #090e1a;
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mark {
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 18px;
}
.title-group h1 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.title-group p { font-size: 12px; color: var(--text-muted); }
.actions {
  display: flex;
  gap: 12px;
}
.btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn:hover { background: var(--surface-hover); }
.btn-primary { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.btn-primary:hover { background: #e09b2e; }
.container {
  max-width: 1400px;
  margin: 28px auto;
  padding: 0 32px;
}
.spec-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.spec-info h2 { font-size: 20px; margin-bottom: 6px; }
.spec-info p { color: var(--text-muted); font-size: 14px; max-width: 750px; }
.spec-tags { display: flex; gap: 8px; margin-top: 10px; }
.tag {
  background: #0f172a;
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--get);
  font-weight: 600;
}
.tag-sec { color: var(--post); }
.tag-asvs { color: var(--primary); }
.tag-group { margin-bottom: 24px; }
.tag-title {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.endpoint {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.endpoint:hover { border-color: #475569; }
.ep-header {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}
.method {
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  min-width: 65px;
  text-align: center;
}
.method-GET { background: rgba(56, 189, 248, 0.15); color: var(--get); border: 1px solid var(--get); }
.method-POST { background: rgba(74, 222, 128, 0.15); color: var(--post); border: 1px solid var(--post); }
.method-PUT { background: rgba(251, 191, 36, 0.15); color: var(--put); border: 1px solid var(--put); }
.method-DELETE { background: rgba(248, 113, 113, 0.15); color: var(--delete); border: 1px solid var(--delete); }
.ep-path { font-family: ui-monospace, monospace; font-size: 14px; font-weight: 600; flex: 1; }
.ep-desc { font-size: 13px; color: var(--text-muted); }
.ep-body {
  border-top: 1px solid var(--border);
  padding: 18px;
  background: #141f32;
  display: none;
}
.ep-body.open { display: block; }
.ep-section { margin-bottom: 14px; }
.ep-section h4 { font-size: 12px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.pre-box {
  background: #090e1a;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  overflow-x: auto;
  color: #38bdf8;
  white-space: pre-wrap;
}
.test-btn {
  background: var(--primary);
  color: var(--primary-text);
  border: 0;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}
.test-btn:hover { background: #e09b2e; }
.res-box { margin-top: 12px; display: none; }
