body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #1e1e1e;
  color: #f0f0f0;
}

header,
footer {
  padding: 1rem 1.5rem;
  background: #252526;
  border-bottom: 1px solid #333;
}

footer {
  border-top: 1px solid #333;
  border-bottom: none;
}

h1 {
  margin: 0;
  font-size: 1.5rem;
}

h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

p {
  margin: 0.25rem 0;
}

.panel {
  margin: 1rem auto;
  padding: 1rem 1.5rem;
  max-width: 1100px;
  background: #252526;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #333;
}

.field-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
  flex-wrap: wrap;
}

.field-row label {
  min-width: 150px;
}

input[type="file"],
input[type="number"],
input[type="text"] {
  flex: 1;
  max-width: 280px;
  padding: 0.25rem 0.4rem;
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: 4px;
  color: #f0f0f0;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

button {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid #555;
  background: #3a3d41;
  color: #f0f0f0;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #4b4f53;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status {
  font-size: 0.8rem;
  opacity: 0.8;
}

.mono {
  font-family: Consolas, "Courier New", monospace;
}

.small {
  font-size: 0.82rem;
}

.table-wrapper {
  max-height: 360px;
  overflow: auto;
  border-radius: 6px;
  border: 1px solid #333;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

thead {
  background: #333;
  position: sticky;
  top: 0;
  z-index: 1;
}

th,
td {
  padding: 0.3rem 0.4rem;
  border-bottom: 1px solid #333;
  text-align: left;
}

tbody tr:nth-child(even) {
  background: #2c2c30;
}

tbody tr:nth-child(odd) {
  background: #252526;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #000;
}

select {
  padding: 0.2rem 0.4rem;
  background: #1e1e1e;
  color: #f0f0f0;
  border: 1px solid #444;
  border-radius: 4px;
}

textarea#output {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.5rem;
  background: #1e1e1e;
  border-radius: 4px;
  border: 1px solid #444;
  color: #f0f0f0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.85rem;
  padding: 0.5rem;
  resize: vertical;
}
