:root {
  --active-color: #ffc107;
  --background-primary-color: #ede7f6;
  --border-radius: 4px;
  --primary-color: #673ab7;
  --text-color: #241440;
}
.theme-night {
  --text-color: #fff;
  --background-color: #000;
  --background-neutral: rgba(0,0,0,0.75);
  --neutral-dark: rgba(255,255,255,0.5);
  --neutral-darker: rgba(255,255,255,0.93);
  --neutral-faint: rgba(255,255,255,0.25);
  --neutral-faintest: #202020;
}
@font-face {
  font-display: auto;
  font-family: 'Chicago';
  src: url("https://danielx.net/fonts/chicago.woff2") format('woff2'), url("https://danielx.net/fonts/chicago.woff") format('woff');
  font-weight: normal;
  font-style: normal;
}
title-bar {
  cursor: grab;
}
title-bar:active {
  cursor: grabbing;
}
.ace_scrollbar {
  cursor: default;
}
img {
  max-width: 100%;
}
.hidden {
  display: none !important;
}
.theme-night song-section > span.measure-number,
.theme-night viewport > staff,
.theme-night pre.position {
  background-color: var(--background-neutral);
}
.theme-night #modal {
  background-color: var(--background-neutral);
}
#modal {
  cursor: default;
}
#modal > * {
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-low) var(--primary-color);
  color: inherit;
  padding: 1rem;
}
#modal > * > h1,
#modal > * > h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}
#modal > section.purchase {
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  padding: 0;
}
#modal > section.purchase > div.direct {
  background-color: #fff;
  border: 1px solid var(--primary-color);
  box-shadow: var(--shadow-low) var(--primary-color);
  margin: 20px auto;
  padding: 20px;
  text-align: center;
}
#modal > section.purchase > div.direct > button {
  margin-top: 16px;
}
#modal > .publish > p.status:empty {
  margin: 0;
}
#modal > .publish > pre {
  user-select: all;
}
#modal > .publish > actions {
  display: flex;
}
#modal > .publish > actions > button:last-child {
  margin-left: auto;
}
#modal > section.ws-login {
  padding: 1rem;
}
#modal > section.ws-login > form {
  width: 480px;
}
#modal > section.ws-login > form > h1 {
  font-size: 1.25rem;
}
#modal > section.ws-login > form > section > button {
  margin-top: 8px;
}
#modal > section.ws-login > form > section > button.top-left {
  display: none;
}
#modal > section.ws-login > form > section > label > h2 {
  font-size: 1rem;
  font-weight: normal;
  margin-bottom: 4px;
}
#modal > section.ws-login > form > section > label > input {
  width: 100%;
}
#modal > section.ws-login > form > section > progress {
  width: 100%;
}
:focus {
  color: #fff;
  background-color: var(--primary-color);
  outline: none;
}
body {
  font-family: Chicago, sans-serif;
  line-height: 1rem;
  overflow: hidden;
  user-select: none;
}
p {
  font-family: "Fira Sans";
  user-select: text;
}
input,
textarea,
select,
button {
  font-family: inherit;
}
form > label,
form > section > label {
  margin-bottom: 1rem;
}
label.inline {
  display: inline-block;
}
label.inline > h3 {
  display: inline-block;
  font-size: 1rem;
  margin-right: 8px;
  min-width: 108px;
  text-align: right;
}
label.inline > select {
  width: auto;
}
section.settings > label {
  margin-bottom: 2px;
  margin-left: -6px;
}
section.settings > h2 {
  margin-left: -8px;
}
input {
  background-color: var(--background-primary-color);
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-low) var(--primary-color) inset;
  color: var(--primary-color);
  font-size: inherit;
  padding: 2px 0.25em;
}
input[type="number"] {
  -moz-appearance: textfield;
}
input:focus {
  background-color: var(--highlight-color);
  color: rgba(0,0,0,0.69);
}
note {
  font-size: 48px;
  height: 48px;
  -ms-interpolation-mode: nearest-neighbor;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  position: absolute;
  width: 48px;
}
note.active {
  animation-name: note-active;
  animation-duration: 0.25s;
}
note::after {
  align-items: center;
  background-repeat: no-repeat;
  background-position: 100% 50%;
  content: "";
  display: flex;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  text-indent: -12px;
}
note.♭::after {
  content: "♭";
}
note.♯::after {
  content: "♯";
}
note.C4::before,
note.A5::before,
note.C6::before,
note.C2::before,
note.E2::before,
note.B5::before,
note.D2::before {
  content: "";
  width: 48px;
  left: 0px;
  top: 23px;
  position: absolute;
  height: 0;
  border-bottom: 3px solid var(--neutral-darker);
}
note.B5::before {
  top: 47px;
}
note.D2::before {
  top: -1px;
}
song-section {
  height: 483px;
  position: absolute;
  top: -241px;
}
song-section::after {
  content: "";
  border-right: 2px solid var(--neutral-darker);
  height: 100%;
  position: absolute;
  right: 10px;
}
song-section > span.measure-number {
  background-color: var(--background-color);
  border: 1px solid var(--neutral-darker);
  box-shadow: var(--shadow-low) var(--neutral-dark);
  font-style: italic;
  left: 0px;
  padding: 2px 6px 2px 4px;
  position: absolute;
  top: -132px;
}
song-section > div.key-signature.s > ::after {
  content: "♯";
}
song-section > div.key-signature.f > ::after {
  content: "♭";
}
song-section > div.key-signature > * {
  display: none;
  font-size: 96px;
  height: 48px;
  position: absolute;
  width: 48px;
}
song-section > div.key-signature > *::after {
  align-items: center;
  display: flex;
  height: 100%;
  width: 100%;
}
song-section > div.key-signature.s1 > :nth-child(1),
song-section > div.key-signature.s2 > :nth-child(1),
song-section > div.key-signature.s3 > :nth-child(1),
song-section > div.key-signature.s4 > :nth-child(1),
song-section > div.key-signature.s5 > :nth-child(1),
song-section > div.key-signature.s6 > :nth-child(1),
song-section > div.key-signature.s7 > :nth-child(1) {
  display: initial;
  top: -24px;
  left: -96px;
}
song-section > div.key-signature.s2 > :nth-child(2),
song-section > div.key-signature.s3 > :nth-child(2),
song-section > div.key-signature.s4 > :nth-child(2),
song-section > div.key-signature.s5 > :nth-child(2),
song-section > div.key-signature.s6 > :nth-child(2),
song-section > div.key-signature.s7 > :nth-child(2) {
  display: initial;
  top: 48px;
  left: -72px;
}
song-section > div.key-signature.s3 > :nth-child(3),
song-section > div.key-signature.s4 > :nth-child(3),
song-section > div.key-signature.s5 > :nth-child(3),
song-section > div.key-signature.s6 > :nth-child(3),
song-section > div.key-signature.s7 > :nth-child(3) {
  display: initial;
  top: -48px;
  left: -48px;
}
song-section > div.key-signature.s4 > :nth-child(4),
song-section > div.key-signature.s5 > :nth-child(4),
song-section > div.key-signature.s6 > :nth-child(4),
song-section > div.key-signature.s7 > :nth-child(4) {
  display: initial;
  top: 24px;
  left: -24px;
}
song-section > div.key-signature.s5 > :nth-child(5),
song-section > div.key-signature.s6 > :nth-child(5),
song-section > div.key-signature.s7 > :nth-child(5) {
  display: initial;
  top: 96px;
  left: 0;
}
song-section > div.key-signature.s6 > :nth-child(6),
song-section > div.key-signature.s7 > :nth-child(6) {
  display: initial;
  top: 0px;
  left: 24px;
}
song-section > div.key-signature.s7 > :nth-child(7) {
  display: initial;
  top: 72px;
  left: 48px;
}
song-section > div.key-signature.f1 > :nth-child(1),
song-section > div.key-signature.f2 > :nth-child(1),
song-section > div.key-signature.f3 > :nth-child(1),
song-section > div.key-signature.f4 > :nth-child(1),
song-section > div.key-signature.f5 > :nth-child(1),
song-section > div.key-signature.f6 > :nth-child(1),
song-section > div.key-signature.f7 > :nth-child(1) {
  display: initial;
  top: 72px;
  left: -96px;
}
song-section > div.key-signature.f2 > :nth-child(2),
song-section > div.key-signature.f3 > :nth-child(2),
song-section > div.key-signature.f4 > :nth-child(2),
song-section > div.key-signature.f5 > :nth-child(2),
song-section > div.key-signature.f6 > :nth-child(2),
song-section > div.key-signature.f7 > :nth-child(2) {
  display: initial;
  top: 0px;
  left: -72px;
}
song-section > div.key-signature.f3 > :nth-child(3),
song-section > div.key-signature.f4 > :nth-child(3),
song-section > div.key-signature.f5 > :nth-child(3),
song-section > div.key-signature.f6 > :nth-child(3),
song-section > div.key-signature.f7 > :nth-child(3) {
  display: initial;
  top: 96px;
  left: -48px;
}
song-section > div.key-signature.f4 > :nth-child(4),
song-section > div.key-signature.f5 > :nth-child(4),
song-section > div.key-signature.f6 > :nth-child(4),
song-section > div.key-signature.f7 > :nth-child(4) {
  display: initial;
  top: 24px;
  left: -24px;
}
song-section > div.key-signature.f5 > :nth-child(5),
song-section > div.key-signature.f6 > :nth-child(5),
song-section > div.key-signature.f7 > :nth-child(5) {
  display: initial;
  top: -48px;
  left: 0;
}
song-section > div.key-signature.f6 > :nth-child(6),
song-section > div.key-signature.f7 > :nth-child(6) {
  display: initial;
  top: 48px;
  left: 24px;
}
song-section > div.key-signature.f7 > :nth-child(7) {
  display: initial;
  top: -24px;
  left: 48px;
}
td > select {
  width: 100%;
}
td > input,
td .slider > input {
  border-radius: 0;
  box-shadow: none;
}
td > aside.fx-picker > label {
  display: none;
}
td.sprite {
  padding: 0;
  text-align: center;
  vertical-align: middle;
}
td.sprite > img {
  margin-right: 1rem;
  vertical-align: middle;
}
td.input > .slider {
  display: flex;
  width: 180px;
}
td.input > .slider > input[type=range] {
  width: 100px;
}
td.input > .slider > input[type=number] {
  display: block;
  margin: auto;
  width: 74px;
}
button.flat {
  padding: 2px 0.5rem;
}
th.solo,
td.solo {
  padding: 0.25rem;
}
th.solo > button,
td.solo > button {
  width: 100%;
}
section {
  position: relative;
}
section > button.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
section.settings {
  overflow: auto;
  padding: 1rem;
  width: 834px;
}
section.settings > table {
  margin: 0 -8px;
  width: calc(100% + 16px);
}
section.channel-sprite {
  overflow: auto;
}
section.channel-sprite > div {
  background-color: var(--background-primary-color);
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(16, 48px);
  padding: 2px;
  width: 100%;
}
section.channel-sprite > div > tool {
  background-color: var(--background-color);
}
section.channel-sprite > div > tool:hover {
  background-color: var(--hover-color);
}
section.channel-sprite > div > tool.selected {
  background-color: var(--active-color);
}
tool {
  cursor: pointer;
  display: inline-block;
}
tool:hover {
  background-color: var(--hover-color);
}
tool.selected {
  background-color: var(--active-color);
}
section.song-picker {
  overflow: auto;
  padding: 1rem;
}
section.song-picker > h2 {
  margin: 0 0 1rem;
}
section.song-picker > button.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
section.song-picker > table {
  font-size: 18px;
  min-width: 420px;
}
section.song-picker > table > tbody > tr {
  cursor: pointer;
  font-family: sans-serif;
  height: 2rem;
  vertical-align: bottom;
}
section.song-picker > table > tbody > tr:hover {
  background-color: var(--hover-color);
}
section.song-picker > table > tbody > tr > td:first-child {
  font-weight: bold;
  padding-right: 2rem;
}
tr.hotkey-category {
  height: 2rem;
  vertical-align: bottom;
}
td.right {
  text-align: right;
}
td.channel > label > input {
  width: auto;
}
viewport {
  display: flex;
  height: 100%;
  align-items: center;
  overflow: hidden;
}
viewport > selection {
  background-color: rgba(103,58,183,0.25);
  border: 2px dashed var(--primary-color);
  position: absolute;
  left: -150px;
  z-index: 20;
}
viewport > selection > button {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 48px;
  height: 48px;
}
viewport > selection > button.up {
  bottom: calc(100% + 4px);
  top: auto;
}
viewport > selection > button.down {
  top: calc(100% + 4px);
  bottom: auto;
}
viewport > selection > button.left {
  right: calc(100% + 4px);
  left: auto;
}
viewport > selection > button.right {
  left: calc(100% + 4px);
  right: auto;
}
viewport > selection > actions {
  display: none;
  position: absolute;
}
viewport > selection > actions > button {
  margin-left: 4px;
}
viewport > selection.t > actions {
  top: 0;
}
viewport > selection.b > actions {
  bottom: 0;
}
viewport > selection.l > actions {
  left: 0;
}
viewport > selection.r > actions {
  right: 0;
}
viewport > selection.set > actions {
  display: flex;
}
viewport > selection.set > button {
  display: block;
}
form > h2,
form > section > h2 {
  margin-bottom: 1rem;
}
form > label,
form > section > label {
  display: block;
}
form > label > h3,
form > section > label > h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}
form > label > h3.inline,
form > section > label > h3.inline {
  display: inline-block;
  margin-right: 0.5em;
}
form > label > input,
form > section > label > input {
  padding-left: 2px;
  width: 100%;
}
form > label > input[type="checkbox"],
form > section > label > input[type="checkbox"] {
  width: auto;
}
form > actions,
form > section > actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1em;
}
section.ws-login > form > section > a {
  display: inline-block;
  margin-top: 1rem;
}
form.purchase {
  width: 672px;
}
app {
  display: flex;
  flex: 1 0;
  height: 100%;
  flex-direction: column;
}
pattern-preview {
  opacity: 0.5;
  position: absolute;
  pointer-events: none;
}
button.loop {
  font-size: 32px;
  line-height: 1rem;
}
aside.meter-picker {
  margin-left: 8px;
}
aside.meter-picker > button {
  border-radius: 0;
}
aside.meter-picker > button:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
aside.meter-picker > button:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
aside.note-control > section {
  display: flex;
  margin-left: 12px;
}
aside.note-control > section > label {
  display: flex;
  align-items: center;
  margin-right: 4px;
}
aside.note-control > section > button {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1rem;
  width: 36px;
  border-radius: 0;
}
aside.note-control > section > button.triplet {
  font-size: 16px;
}
aside.note-control > section > button:nth-child(n + 3) {
  border-left: 0;
}
aside.note-control > section > button:nth-child(2) {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
aside.note-control > section.snap > button:nth-child(5) {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
aside.note-control > section.snap > input {
  margin-left: 5px;
  width: 60px;
}
aside.note-control > section.duration > input {
  margin-left: 5px;
  width: 60px;
}
aside.note-control > section.accidental > button:nth-child(4) {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
section.persistence {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  width: 480px;
}
section.persistence > button {
  margin-top: 8px;
  width: 100%;
}
section.persistence > button:first-child {
  margin-top: 0;
}
section.key-signature > div > button {
  width: 3rem;
}
section.key-signature > div:first-of-type {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
section.time-signature > div {
  margin-bottom: 1rem;
}
section.time-signature > div > button {
  width: 4.25rem;
}
section.time-signature > div:first-of-type {
  margin-top: 2rem;
}
section.time-signature > div:last-child {
  margin-bottom: 0;
}
about {
  width: 480px;
}
about > actions > button,
about > actions a.button {
  width: 100%;
  margin-top: 8px;
}
aside {
  display: flex;
}
aside > label {
  display: flex;
  align-items: center;
  margin-right: 4px;
  margin-left: 12px;
}
aside.signature-picker > button {
  width: 3rem;
}
aside.stereo-analyser > canvas {
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
}
aside.fx-picker {
  display: flex;
}
aside.fx-picker > button {
  background-size: cover;
  height: 36px;
  padding: 0;
  margin-left: 2px;
  width: 36px;
}
.control-group > * {
  border-radius: 0;
  border-left: 0;
}
.control-group > *:first-child {
  border-left: 1px solid var(--primary-color);
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
}
.control-group > *:last-child {
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}
aside.midi-input {
  margin-left: 12px;
}
aside.midi-input > button {
  width: 41px;
}
section.midi-input {
  min-width: 420px;
}
aside.actions {
  background-color: var(--background-color);
  border-top: 2px solid var(--primary-color);
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  padding: 4px 4px 0px 4px;
  width: 100%;
}
aside.actions > section:nth-child(2) > button,
aside.actions > section:nth-child(2) > a.button {
  padding: 15px 8px;
}
aside.actions > section {
  display: flex;
}
aside.actions > section:last-child {
  margin-top: 8px;
}
aside.actions > section.buttons > * {
  margin-bottom: 6px;
}
aside.actions > section.buttons > *:nth-child(n + 2) {
  margin-left: 4px;
}
aside.actions > section.buttons > form {
  display: flex;
}
aside.actions > section.buttons > button,
aside.actions > section.buttons > a.button {
  flex: 0 0 auto;
}
aside.actions > section.buttons > label {
  align-items: center;
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-low) var(--primary-color);
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  padding: 5px 8px 4px;
  white-space: nowrap;
}
aside.actions > section.buttons > label > input {
  padding: 2px 0 0;
  text-align: center;
  width: 60px;
}
aside.actions > section.buttons > label > h2 {
  display: block;
  font-size: 1em;
  font-weight: normal;
  margin: 0 0 4px;
}
aside.actions > section.buttons > .spacer {
  margin-right: auto;
}
actions > label {
  background-color: var(--background-color);
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-low) var(--primary-color);
  color: var(--primary-color);
  cursor: pointer;
  font: inherit;
  line-height: 1em;
  padding: 9px 16px;
}
actions > label:nth-child(n + 2) {
  margin-left: 4px;
}
a.button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
a.button > :nth-child(2) {
  margin-left: 5px;
}
button,
a.button {
  background-color: var(--background-color);
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-low) var(--primary-color);
  color: var(--primary-color);
  cursor: pointer;
  font-size: inherit;
  line-height: 1em;
  padding: 9px 8px;
  white-space: nowrap;
}
button:hover,
a.button:hover {
  background-color: var(--hover-color);
}
button.full,
a.button.full {
  width: 100%;
}
button:focus,
a.button:focus {
  background-color: var(--active-color);
  color: rgba(0,0,0,0.69);
  outline-offset: 4px;
}
button:active,
a.button:active,
button.active,
a.button.active {
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: #fff;
  box-shadow: var(--shadow-low) #241440 inset;
}
button:disabled,
a.button:disabled {
  background-color: var(--neutral-faintest);
  border-color: var(--neutral-dark);
  box-shadow: var(--shadow-low) var(--neutral-dark);
  color: var(--neutral-dark);
  cursor: default;
}
tools,
patterns {
  background-color: var(--background-color);
  border-bottom: 2px solid var(--primary-color);
  display: flex;
  width: 100%;
}
tools > *,
patterns > * {
  align-items: center;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  border-right: 1px solid var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: center;
  width: 49px;
  height: 48px;
}
tools > *:hover,
patterns > *:hover {
  background-color: var(--hover-color);
}
tools > *.active,
patterns > *.active {
  background-color: var(--active-color);
}
tools > *:after,
patterns > *:after {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
}
tool {
  -ms-interpolation-mode: nearest-neighbor;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  overflow: hidden;
}
tool:after {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
}
tool.erase {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAAIdJREFUeJzNUsERwCAIw15n031wDt0Hl0s/9VoF9NnmZzRBCERfI2zusdOtDABmopRGVoRCrdviADNMiADM6L873Mql2NYiw3E2WItzVi2dSuw8JBHNvQyegcU4vmjNFesWZrHFTSlYQ/RhRDgatKZFnXPy7zMIoVaYa3fH5i3PTHira4r/gQv1W1E4p9FksQAAAABJRU5ErkJggg==");
}
tool.selection {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAiUlEQVRYR+1XQQrAIAyr/3/0RLAyqoUdzNJDvFnEpkkM2MzssX21Qw1SGo0igHfNgfiZ6/sI4HqDSVs6wGlaCNXZpQ7gN80jkIxyNAtLkjIA0BOn99O0d0RlJIjvFC3JZkJ0Q3kgMqAcWIwoB8oEkXKAHsV0APIAXQI6AHkA9vf78jUbZ+gAaB7opmM7IWnG3nUAAAAASUVORK5CYII=");
}
tool.velocity {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABbklEQVRYw+2Xv0oDQRCHv0RNCESDoE9gIaQUAz6BlYhgoc+gaKMv4EPYCmohNunsFEW0UKtYCSoYNU2KYKlEczYrDOMeHGF3bPxVu3PHfTOzf2YuByT8Vg4j5f8S7nMgFHwROAN6QAdoAqtpLycpy9CPRoBX8c0aUBHztTQHQqgAvAvYJlAU8wR4jrmcDwo2Ciwr21Es+I4C3Tj7MHDrbF2gGgNeAj6UAzOWJ6mu4F2gbAUfUhsvcUcuswb7gB4D42484Ha6VAVouPEdsBTagS/g010y057n9+KCa8RM/5hKfQI8hqgFWVXz2A4sd/+hJwN5Swc0/CRUOc5a7bT2LKPf9mTAVC0F37CET3min7B0YFfBr6zT/yLgPdcFmamsom9ZR7+vHChZwguu1v/A67FACwIyL+yzwv4UM9KOALVF2ZYbbzKmA28Ctu5s58JWjb3WWwJ2KRrOtuiEgintV2wFmHPdzzVwClzwrwj6BpKTiGEHOW3+AAAAAElFTkSuQmCC");
}
tool.duration {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAzklEQVRYw+3XrW7CUByG8V/5SMBjZrgD/AQSvUshBDOzC0JN7B7wJJNYDASzZFuWEOhMRcNglHIogvMmNadvzvOc5i96EqT+JlFRareEHxIoC9+GELjk5MmlApV+9n2Bm8GPDWEUiAJRIApEgSgQBe5LoHFmv4UR+mhjhWfsqpB9yX7hDz1f14a//wNP8Z3r9jDDIBR8eAKe4iPXn+bWg2RRQOAt1x9la5NQAj8n4Bs8lN28XqDTweORd5/oYnnNAWxijHl2BVvjFU9iAuQXnzc+AqKAQ58AAAAASUVORK5CYII=");
}
tool.keySignature {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABXElEQVRYw+3WPUtcQRjF8d+K4PsSsqyNL2nEDdE+VUgRbMRea8VCME0+RT6Alb1YBgIJ0UKLhBRpLBaCBExA7BIRtPEFXJtZGDYb1rh37wTigQtPM3P+PPeZmVNAze8qyEldKc2bAeRq3giQu3ldNf+z7tr2EcxjBo9RRjdOsI8veIvPWXd4AGs4Dxu3+r5hNSvzcVSjzX/gJSroRzF0YwUfG0DaVh/2og030NNizVyAzATgdWT+4Q8XWDOVsNOu+UOcBfMLjOZ9UpYbWt/xt6BRL6L6fYq7Yj/qQCUFwK8I4EEKgKsIoDvFDJxG9VAKgOOoLqcA+BrVT1MA7Eb1bIohHMNlGMIrPEoBsR6dhO2/yBHF8Ha0rRK+RxCb6G2x5nmYn8wCyTSOIohDvMKTkAcGMYklbGWdB+oaxhtc3zIRVbHYiUw4hQU8w0T4Rdf4iQN8wruQDe91r39bN9iVYmIpT8hrAAAAAElFTkSuQmCC");
}
tool.timeSignature {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAACTklEQVRYw92XvWtTURjGf+859yb3kvRiEBIyNGCQtGkc/Ag6Gjq4KEjrVDAVFyG4Co76D4i7Uwcnl4KoMePFRawIgtBBRUFQErF2sNav5ricKxft0NjcK/jCGc4ZzvPwvB/POQIY/gwhpVD/Enw7AqmC/04gdXAAZxfgOWAf8MPuvwMv0yTftAW8CXwDnqUqned5dywBIyImlk6JrcTCBTYiAr7vLwGIyLkYcERCjR29UqnMisiWJXArDMM8sKKUCnfY6rusXMe5ZsFvGmNmS6XSe7u/t01b63HjZyxYCNBoNFajVDiO001UgV6v52ez2VBE1pVSBXv8OFaM3UQrPwiCE1prAywDR4Ap234RgQdKqXqz2cwlxWEBWLdrDRjYAWTs+gqs+b5/MM2R8DAioJRaHocb7nwUNpuHPc+b+lXyIpPA0VHu2M208rTWV4bDYWCM2bJ3OYAHXAI+JC19CTgLzAPzExMTc4uLi3utqsk7a61Wa8eKz2itw1TNKDb9jIhsArkwDP1UwKenpyetDZtMJmOAY51O53ixWLyeOPjMzIwAJyMbbjQal33fnwuCYKiUup+KAoVC4QVgXNe9ARyIUuG6bjdx8Gq1esECLtmjp6l5gYjkgbfAk9jxSqwb7o5656hefQo4bx+fBtgPnAYiZ9wAPlmSm2NXoNVqXVVKrQLPgTci8gr4ElPgM/Baa30osSzY53heRCLLfRR7G962qqrEi9ESOAN8jAiUy+V39Xp9od1u7xn1Y/K3oYGL0Qd3MBhIv99XqSjw38RP9dSXqkyE7YEAAAAASUVORK5CYII=");
}
tool.pan {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAABK0lEQVRIx8WWwU4CMRCGPzYb3AQeiTMXDh58AeNGs4gSNT6GGCMGCQm8ASfjY3j24GvIgQRZL1PTbCp0d9vyJ3PZdubrdDvtQDUNxYIoA3Kx1DfsQoMpO/UF6xtgyjLbIA3LeT1gAqz+GW8DA+DNS6pJkjRKLLa+oihaANNKvhWZG7FgwOq7Y/jWdRj/ZB/wChg7BI6lnIzATCZ8OwSupJzOisAB8Orx181VpjFwB4wKE2JZwI/JO8/zDrDdURpNPSvRBGhFwBEH0L12L35YFP4MeLGI+6XF/dtSgAfZopGnhFJgoQMBHuUQnTsEtYBLBSsCVaafDoHXwHLfTfPuELg8+F0a1/DbBltlnQfY1ukYeA7dYty6aKLK6iZkm2iCpiFO6ZP4reXZKaVfmnNMBUxsANEAAAAASUVORK5CYII=");
}
tool.setTempo {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAyUlEQVRYw+3XPYpCMRiF4eeOyoy9jY3rsHANLmUQGxvXZOFWLG1tFBtBh4HBuTa3EL3+klxBciBN+Mh58+UQkgy5c2Uq0scrzcsA7jXfxwB4ZOdZaIBK234K8DLzSyFMAAkgAVSqesC18mdu0bfqQJYykDKQLqIYR/CFAXpoYoUR/quAGxfJLhu72OazK+Y5fiIFGXzfMM+xOapvhAZY3AEwPar/DP2y/r1h/od2KLNayVwL3Qv1W3SwjBnABoaYF1+wNSboS4qgAxZnOgKgPPeEAAAAAElFTkSuQmCC");
}
patterns {
  margin-top: -1px;
}
patterns:empty {
  display: none;
}
patterns > pattern {
  display: flex;
  align-items: center;
  width: 64px;
  overflow: hidden;
}
patterns > pattern > canvas {
  width: 100%;
}
pre.position {
  background-color: var(--background-color);
  border: 1px solid var(--neutral-darker);
  box-shadow: var(--shadow-low) var(--neutral-dark);
  padding: 2px 6px 2px 4px;
  font-family: inherit;
  pointer-events: none;
  padding: 4px;
  position: absolute;
  left: 1rem;
  top: calc(45px + 1rem);
}
pre.position:empty {
  display: none;
}
pre.debug:empty {
  display: none;
}
@media only screen and (max-width: 768px) {
  aside.actions {
    border-top: none;
    padding-top: 0;
  }
  aside.actions > section:first-child {
    display: none;
  }
  aside.actions > section:nth-child(2) {
    margin-top: 0;
  }
  button > span.description {
    display: none;
  }
  tools,
  patterns {
    order: 2;
    border: none;
    width: 49px;
    height: 48px;
  }
  tools > *,
  patterns > * {
    border-top: 1px solid var(--primary-color);
    display: none;
  }
  tools tool.active,
  patterns tool.active {
    display: flex;
  }
  tools pattern.active,
  patterns pattern.active {
    display: flex;
  }
  tools.open,
  patterns.open {
    background-color: var(--primary-color);
    display: grid;
    grid-gap: 1px;
    position: absolute;
    width: 100%;
    height: 100%;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    z-index: 1;
  }
  tools.open > *,
  patterns.open > * {
    background-color: var(--background-color);
    background-size: 100%;
    border: none;
    display: flex;
    image-rendering: pixelated;
    height: 100%;
    width: 100%;
  }
  tools.open > *:hover,
  patterns.open > *:hover {
    background-color: var(--hover-color);
  }
}
@-moz-keyframes note-active {
  from {
    background-color: rgba(0,0,0,0);
  }
  to {
    background-color: rgba(255,0,255,0);
  }
}
@-webkit-keyframes note-active {
  from {
    background-color: rgba(0,0,0,0);
  }
  to {
    background-color: rgba(255,0,255,0);
  }
}
@-o-keyframes note-active {
  from {
    background-color: rgba(0,0,0,0);
  }
  to {
    background-color: rgba(255,0,255,0);
  }
}
@keyframes note-active {
  from {
    background-color: rgba(0,0,0,0);
  }
  to {
    background-color: rgba(255,0,255,0);
  }
}
