:root {
  --bg: #fcfcfc;
  --bg-surface: #fff;
  --bg-inset: #e4e4e4;
  --fg: #000;
  --fg-muted: #888;
  --border: #ddd;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
  border-radius: 15px;
}

.container {
  padding: 1rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.tab {
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.875rem;
  color: var(--fg-muted);
  cursor: pointer;
  font-weight: bold;
}

.tab:hover {
  color: var(--fg);
}

.tab.active {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

.tab-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.description {
  font-size: 0.875rem;
}

.link-button {
  background: none;
  border: none;
  color: #0066cc;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

.link-button:hover {
  color: #004499;
}

.error {
  font-size: 0.875rem;
  color: #c00;
}

.success {
  font-size: 0.875rem;
  color: #0a8;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

pre,
code {
  background: var(--bg-inset);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: ui-monospace, monospace;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
}

code.dark {
  background: var(--fg);
  color: var(--bg);
}

.button-row {
  display: flex;
  gap: 0.5rem;
}

.btn {
  padding: 0.5rem 1rem;
  background: var(--fg);
  color: var(--bg-surface);
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
}

.btn:hover:not(:disabled) {
  opacity: 0.8;
}

.btn:active:not(:disabled) {
  opacity: 0.9;
}

.btn:disabled {
  background: var(--border);
  cursor: not-allowed;
}

.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-inset);
}

.btn-outline:disabled {
  color: var(--border);
  background: var(--bg-surface);
}

.muted {
  opacity: 0.5;
}

.muted:hover {
  opacity: 1;
}

.input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
}

.input:focus {
  outline: none;
  border-color: var(--fg);
}
