:root {
  color-scheme: light dark;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
body { margin: 0; padding: 1.25rem; }
main { max-width: 52rem; margin: 0 auto; }
h1 { font-size: 1.35rem; margin: 0 0 0.75rem; }
.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  vertical-align: middle;
}
.banner {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
button {
  font: inherit;
  padding: 0.45rem 0.85rem;
  border-radius: 0.4rem;
  border: 1px solid #94a3b8;
  background: #f8fafc;
  cursor: pointer;
}
button:disabled { opacity: 0.45; cursor: not-allowed; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.65rem 1rem;
  margin: 1rem 0;
}
.status div {
  font-size: 0.9rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.35rem;
}
label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; }
input[type="number"], select { font: inherit; padding: 0.35rem 0.5rem; }
.log {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 0.5rem;
  min-height: 10rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.8rem;
}
