html,
body {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: #fff;
  font-family: sans-serif;
  color-scheme: dark;
}

body {
  min-height: 100vh;
}

.app-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.controls-panel {
  background: #000;
}

.controls-inner {
  box-sizing: border-box;
  height: 100vh;
  overflow-y: auto;
  padding: 20px;
}

.preview-panel {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  border-left: 1px solid #fff;
  background: #000;
}

.preview-stage {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 20px;
  box-sizing: border-box;
  background: #000;
}

.control-block {
  margin-bottom: 16px;
}

.control-block-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.control-block-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.control-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.35;
}

.control-toggle-label {
  flex: 1 1 auto;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.control-description {
  font-size: 12px;
}

input[type="file"],
input[type="range"],
select,
audio,
button {
  width: 100%;
  box-sizing: border-box;
}

input,
select,
button {
  background: #000;
  color: #fff;
  border: 1px solid #fff;
}

button,
select {
  min-height: 38px;
  padding: 8px 10px;
}

option {
  background: #000;
  color: #fff;
}

input[type="file"] {
  padding: 8px 10px;
}

input[type="file"]::file-selector-button {
  margin-right: 10px;
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  padding: 8px 10px;
}

input[type="range"],
input[type="checkbox"] {
  accent-color: #fff;
}

input[type="checkbox"] {
  width: auto;
  margin: 0;
  align-self: center;
}

output {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #d0d0d0;
}

.preset-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.control-select-inline {
  flex: 0 0 220px;
  max-width: 220px;
}

.ledstrip {
  display: inline-grid;
  grid-template-columns: repeat(10, 14px);
  grid-template-rows: repeat(20, 14px);
  gap: 4px;
  padding: 4px;
  border: none;
  background: #000;
}

.WS2812-led {
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border: 1px solid #080808;
  background: #000;
}

.preview-player {
  flex: 0 0 auto;
  border-top: 1px solid #fff;
  padding: 16px 20px 20px;
  background: #000;
}

.preview-player-inner {
  width: min(640px, 100%);
  margin: 0 auto;
}

.preview-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#audio-toggle {
  width: 120px;
}

.player-time {
  font-size: 12px;
  color: #d0d0d0;
}

#audio-player {
  display: none;
}
