:root {
  color-scheme: light;
  --bg: #f5f5f2;
  --panel: #ffffff;
  --text: #1d1d1f;
  --muted: #6b6b70;
  --accent: #1f5cff;
  --border: #e3e3e6;
  --ok: #2f9e44;
  --err: #d9480f;
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  padding: 24px;
}

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

h1 {
  margin: 0 0 6px 0;
  font-size: 28px;
}

h2 {
  margin-top: 0;
  font-size: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.03);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  flex: 1 1 180px;
}

label.inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

input, select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
}

button:hover {
  opacity: 0.9;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.list li:first-child {
  border-top: none;
}

pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 10px;
  max-height: 240px;
  overflow: auto;
  margin: 0;
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9ecef;
  color: var(--text);
  font-size: 12px;
}

.pill.ok {
  background: #d3f9d8;
  color: var(--ok);
}

.pill.error {
  background: #ffe8cc;
  color: var(--err);
}

@media (max-width: 720px) {
  body {
    padding: 16px;
  }
}
