* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: monospace; font-size: 13px; background: #1a1a1a; color: #ccc; padding: 12px; }
header { border-bottom: 1px solid #444; padding-bottom: 12px; margin-bottom: 12px; }
h1 { font-size: 18px; color: #0f0; margin-bottom: 8px; }
h2 { font-size: 14px; color: #0f0; margin: 8px 0; }
h3 { font-size: 12px; color: #888; }
input, select, button, textarea { 
  font-family: monospace; font-size: 12px; padding: 4px 8px; 
  background: #2a2a2a; color: #ccc; border: 1px solid #555; margin: 2px;
}
button { cursor: pointer; background: #333; }
button:hover { background: #444; }
button.primary { background: #0a0; color: #000; font-weight: bold; }
button.danger { background: #a00; color: #fff; }
nav { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 12px; }
nav button { border-radius: 0; border-bottom: 2px solid transparent; }
nav button.active { border-bottom: 2px solid #0f0; color: #0f0; }
.endpoint-card { 
  border: 1px solid #333; padding: 8px; margin-bottom: 6px; 
  display: grid; grid-template-columns: 60px 1fr auto; gap: 8px; align-items: center;
}
.method { font-weight: bold; text-align: center; padding: 2px 6px; border-radius: 2px; }
.method.GET { background: #0a0; color: #000; }
.method.POST { background: #00a; color: #fff; }
.method.PUT { background: #a80; color: #fff; }
.method.DELETE { background: #a00; color: #fff; }
.path { word-break: break-all; }
pre { 
  background: #000; color: #0f0; padding: 12px; 
  max-height: 400px; overflow: auto; font-size: 11px; 
  white-space: pre-wrap; word-break: break-all;
}
#response-meta { color: #888; font-size: 11px; margin-top: 4px; }
.status-200 { color: #0f0; }
.status-400 { color: #fa0; }
.status-429 { color: #f0f; }
.status-500 { color: #f00; }
footer { border-top: 1px solid #444; margin-top: 16px; padding-top: 12px; }
#connection-status { margin-left: 8px; font-size: 11px; }
.connected { color: #0f0; }
.disconnected { color: #f00; }
.params-row { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.params-row input { flex: 1; min-width: 100px; }
@media (max-width: 768px) {
  .endpoint-card { grid-template-columns: 1fr; }
  input, select, button { width: 100%; margin: 2px 0; }
  body { font-size: 14px; }
  input, select, button { font-size: 16px; padding: 8px; }
}

/* Mobile-specific */
@media (max-width: 768px) {
  body { padding: 8px; font-size: 14px; }
  h1 { font-size: 16px; }
  nav { flex-direction: column; }
  nav button { text-align: left; padding: 10px; }
  .endpoint-card { grid-template-columns: 1fr; gap: 4px; }
  input, select, button, textarea { 
    width: 100%; margin: 4px 0; 
    font-size: 16px; padding: 10px 8px;
  }
  button { min-height: 44px; }
}
