:root {
  color-scheme: dark;
  font:
    14px/1.55 Arial,
    sans-serif;
  background: #151718;
  color: #eee9df;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  padding: 22px;
  max-width: 1200px;
  margin: auto;
}
h1 {
  font-size: 25px;
  line-height: 1.2;
  margin: 8px 0;
}
h2 {
  font-size: 15px;
  margin: 0 0 12px;
}
.eyebrow {
  font: 10px/1.5 monospace;
  letter-spacing: 1.6px;
  color: #ffbd45;
}
p {
  color: #afb7b5;
  margin: 8px 0 16px;
}
.notice {
  border-left: 3px solid #ffbd45;
  background: #242526;
  padding: 12px 15px;
}
.transport {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0;
}
.transport span {
  flex: 1;
  min-width: 180px;
  color: #9ee6cb;
}
button,
select,
input {
  font: inherit;
}
button {
  cursor: pointer;
  background: #33383a;
  border: 1px solid #555d5d;
  color: #f1eee6;
  border-radius: 5px;
  padding: 9px 13px;
}
button:hover:not(:disabled) {
  border-color: #ffbd45;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
#start,
button[aria-pressed="true"] {
  background: #ffbd45;
  color: #17191a;
  border-color: #ffbd45;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #9ee6cb;
  outline-offset: 3px;
}
.audio-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.audio-controls > div,
body > main > section:not(.audio-controls) {
  border: 1px solid #3c4242;
  background: #1c2021;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 14px;
}
label {
  display: block;
  margin: 13px 0 6px;
  color: #dbdfd9;
}
select {
  width: 100%;
  display: block;
  margin-top: 6px;
  padding: 9px;
  background: #111516;
  color: inherit;
  border: 1px solid #525958;
  border-radius: 4px;
}
input[type="range"],
meter {
  width: 100%;
  accent-color: #ffbd45;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
}
#gui {
  min-height: 65px;
  max-width: 100%;
  overflow: auto;
}
#parameters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
#parameters label {
  background: #141718;
  padding: 10px;
  border-radius: 5px;
}
#parameters output {
  float: right;
  color: #9ee6cb;
}
.small {
  font-size: 12px;
}
#publisher {
  overflow-wrap: anywhere;
}
#midi-section button {
  margin: 0 8px 8px 0;
}
@media (max-width: 650px) {
  main {
    padding: 14px;
  }
  .audio-controls {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .transport button {
    flex: 1;
  }
  button {
    min-height: 44px;
  }
}

.audio-controls button {
  margin: 0 6px 6px 0;
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  color: #9ee6cb;
  padding: 8px 0;
}
#midi-section {
  padding: 0 16px;
}
#midi-section[open] {
  padding-bottom: 12px;
}
