/* Schleimpilz – Darstellung der Seite */
html, body {
  margin: 0;
  padding: 0;
  background: #1e2124;
  color: #d6dadd;
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
#c {
  display: block;
  margin: 0;
  background: #000;
  /* Breite/Höhe setzt das Skript exakt auf die Pixelgröße */
}

#panel {
  width: 380px;
  max-width: 100%;
  padding: 14px 16px 40px;
  box-sizing: border-box;
}
#status {
  margin: 0 0 12px;
  font-variant-numeric: tabular-nums;
  color: #aab2b8;
}
.buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
button {
  font: inherit;
  padding: 5px 12px;
  border: 1px solid #4a5157;
  background: #2a2e32;
  color: #e4e7ea;
  border-radius: 4px;
  cursor: pointer;
}
button:hover { background: #33383d; }
button:focus-visible, input:focus-visible { outline: 2px solid #7fb8ff; outline-offset: 1px; }
#restartNote {
  display: none;
  margin: 4px 0 10px;
  color: #ffc46b;
}
#restartNote.on { display: block; }

h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 6px;
  color: #f0f2f4;
}
.row {
  display: grid;
  grid-template-columns: 1fr 88px 42px;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid #2c3034;
}
.row label { cursor: pointer; }
.row .unit { color: #8a9399; font-size: 12px; }
.row.restart label::after {
  content: " *";
  color: #ffc46b;
}
input[type=number] {
  font: inherit;
  width: 100%;
  box-sizing: border-box;
  padding: 3px 6px;
  background: #121416;
  color: #f0f2f4;
  border: 1px solid #454c52;
  border-radius: 3px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
input[type=number]:invalid { border-color: #d9534f; }
.legend { margin-top: 14px; color: #8a9399; font-size: 12px; }
#configNote {
  margin: 4px 0 10px;
  color: #8a9399;
  font-size: 12px;
}
#configNote.warn { color: #ffc46b; }
#fileInput { display: none; }
#configNote:empty { display: none; }
