* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.5;
  font-size: 14px;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.sub {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}

.sub a {
  color: #0066cc;
  text-decoration: none;
}

hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 16px 0;
}

.stage {
  margin-bottom: 18px;
}

.stage label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #333;
}

.stage input,
.stage select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
}

.stage input:focus,
.stage select:focus {
  outline: none;
  border-color: #111;
}

.btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  margin-top: 8px;
}

.btn:hover {
  background: #333;
}

.btn:disabled {
  background: #999;
  cursor: not-allowed;
}

.btn-outline {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}

.btn-outline:hover {
  background: #f5f5f5;
}

.response-box {
  margin-top: 20px;
}

.response-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.response-header span {
  font-size: 13px;
  font-weight: 600;
}

.response-actions {
  display: flex;
  gap: 6px;
}

.response-actions button {
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
}

pre {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 12px;
  font-size: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 360px;
  overflow-y: auto;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
}

.list {
  margin-top: 8px;
}

.list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  margin-bottom: 4px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.list button:hover {
  background: #eee;
}

.footer {
  margin-top: 30px;
  text-align: center;
  font-size: 11px;
  color: #999;
}

.hidden {
  display: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
}

th, td {
  border: 1px solid #ddd;
  padding: 6px 8px;
  text-align: left;
}

th {
  background: #f5f5f5;
}

.form-row {
  margin-bottom: 10px;
}

.form-row label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: #555;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.actions button {
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
}
