.curl-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.curl-section {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.curl-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
  margin-bottom: .75rem;
}

/* Input area */
.curl-input {
  width: 100%;
  min-height: 120px;
  padding: .65rem .75rem;
  font-family: ui-monospace, monospace;
  font-size: .875rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  background: var(--input-bg, #f9fafb);
  color: var(--text, #111);
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.6;
}
.curl-input:focus { outline: 2px solid #2563eb; border-color: transparent; }

.curl-input-toolbar {
  display: flex;
  gap: .5rem;
  margin-top: .6rem;
}

/* Language tabs */
.lang-tabs {
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;
}

.lang-tab {
  padding: .3rem .75rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  background: transparent;
  color: var(--muted, #6b7280);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.lang-tab:hover { background: var(--input-bg, #f9fafb); color: var(--text, #111); }
.lang-tab.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* Output header */
.curl-output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}

.curl-output-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted, #6b7280);
}

/* Output action buttons */
.curl-output-actions {
  display: flex;
  gap: .4rem;
}

/* Code block */
.curl-code-block {
  margin: 0;
  padding: 1rem;
  background: var(--input-bg, #f9fafb);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  overflow: auto;
  min-height: 80px;
  max-height: 420px;
}

.curl-code-block code {
  font-family: ui-monospace, monospace;
  font-size: .82rem;
  line-height: 1.65;
  color: var(--text, #111);
  white-space: pre;
  display: block;
}

/* Error */
.curl-error {
  margin-top: .6rem;
  font-size: .85rem;
  color: #dc2626;
  min-height: 1.2em;
}
