@font-face {
  font-family: Barlow;
  src: url("../assets/barlow-regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/barlow-condensed-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
:root {
  --ink: #33273c;
  --ground: #ded5e3;
  --acid: #cce665;
  --dim: #c1b3c7;
  --pink: #f8ae91;
  --rule: #57475f;
  --track: #cce665;
  color-scheme: light;
  font-family: Barlow, sans-serif;
  background: var(--ground);
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  border: 0;
}
button {
  transition:
    background 0.15s,
    color 0.15s;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
button:focus-visible,
select:focus-visible,
input:focus-visible,
label.import-label:focus-within {
  outline: 3px solid #845cc4;
  outline-offset: 3px;
}
::selection {
  background: var(--acid);
  color: var(--ink);
}
input {
  caret-color: #845cc4;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 0 48px 24px;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  line-height: 1;
}
h2 {
  font-size: 30px;
  letter-spacing: -0.01em;
}
svg {
  display: block;
}
button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.masthead {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 38px 0 32px;
}
.brand {
  display: flex;
  gap: 20px;
  align-items: center;
}
.brand > svg {
  width: 54px;
  height: 70px;
  stroke: var(--ink);
  stroke-width: 2;
  fill: none;
}
.brand h1 {
  font-size: 58px;
  letter-spacing: -0.025em;
  line-height: 0.87;
}
.brand h1 span {
  color: #72527e;
}
.intro {
  margin-left: 20px;
  flex: 1;
}
.intro p {
  font-size: 25px;
  line-height: 1.1;
}
.intro > span {
  display: block;
  font-size: 14px;
  margin-top: 10px;
}
.transport {
  min-width: 236px;
}
.play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--ink);
  color: var(--acid);
  min-height: 62px;
  width: 100%;
  padding: 12px 28px;
  border-radius: 5px;
  font-size: 21px;
}
.play:hover {
  background: #55405f;
}
.play svg {
  fill: currentColor;
  stroke: none;
}
.play.playing {
  background: var(--acid);
  color: var(--ink);
}
.clock {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 9px;
  font-variant-numeric: tabular-nums;
}
.instrument {
  background: var(--ink);
  color: var(--ground);
  padding: 26px 28px 20px;
  border-radius: 8px;
}
.groove-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.groove-heading > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.groove-heading label {
  font-size: 12px;
  color: var(--dim);
}
select {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 7px 32px 7px 10px;
  max-width: 100%;
}
select option {
  background: var(--ground);
  color: var(--ink);
}
#preset {
  font-family: "Barlow Condensed";
  font-size: 29px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding-left: 0;
  min-width: 240px;
}
.groove-heading p {
  flex: 1;
  line-height: 1.35;
  color: var(--dim);
  max-width: 440px;
  padding: 12px 0 0;
}
.quiet {
  background: transparent;
  color: inherit;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 8px 13px;
  min-height: 38px;
}
.quiet:hover {
  background: #57475f;
}
.editor-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0 25px;
}
.segmented {
  display: flex;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.segmented button {
  background: transparent;
  color: var(--ground);
  padding: 9px 16px;
  min-height: 38px;
}
.segmented .selected {
  background: var(--ground);
  color: var(--ink);
}
.editor-tools p {
  font-size: 13px;
  flex: 1;
  color: var(--dim);
}
.editor-tools > .quiet {
  font-size: 13px;
}
.chops {
  display: grid;
  grid-template-columns: 108px repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 15px;
}
.chop-spacer {
  font-size: 12px;
  color: var(--dim);
  align-self: center;
}
.chop {
  display: flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.chop-name {
  background: transparent;
  color: var(--dim);
  text-align: left;
  flex: 1;
  padding: 8px 12px;
}
.chop-name:hover,
.chop-name.selected {
  background: var(--acid);
  color: var(--ink);
}
.rotate {
  color: var(--dim);
  background: transparent;
  display: grid;
  place-items: center;
  padding: 5px 9px;
  min-height: 35px;
}
.rotate:hover {
  color: var(--acid);
}
.ruler {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 8px;
  margin-bottom: 9px;
}
.ruler > div {
  display: grid;
  grid-template-columns: repeat(32, minmax(0, 1fr));
  gap: 3px;
}
.ruler span {
  font-size: 12px;
  color: var(--dim);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.track {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 8px;
  align-items: center;
}
.track-label {
  display: flex;
  gap: 7px;
  align-items: center;
}
.mute {
  flex: 1;
  padding: 8px 0;
  text-align: left;
  background: transparent;
  color: var(--track);
  font-size: 17px;
}
.mute.muted {
  text-decoration: line-through;
}
.solo {
  color: var(--dim);
  background: transparent;
  font-size: 12px;
  min-width: 28px;
  min-height: 32px;
  border-radius: 3px;
  border: 1px solid var(--rule);
}
.solo.selected {
  background: var(--track);
  color: var(--ink);
}
.steps {
  display: grid;
  grid-template-columns: repeat(32, minmax(0, 1fr));
  gap: 3px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--track);
  opacity: 0.18;
  pointer-events: none;
}
.step {
  position: relative;
  height: 40px;
  background: #43344d;
  min-width: 0;
  border-radius: 2px;
  padding: 0;
  isolation: isolate;
}
.step:nth-child(4n + 1) {
  border-left: 1px solid #8a7794;
}
.step:nth-child(16) {
  margin-right: 2px;
}
.step:hover {
  background: #695379;
}
.step .hit {
  display: block;
  position: absolute;
  left: 20%;
  right: 20%;
  height: calc(8px + var(--velocity) * 22px);
  bottom: 5px;
  background: var(--track);
  opacity: calc(0.3 + var(--velocity) * 0.7);
  border-radius: 1px;
}
.step:not(.active) .hit {
  display: none;
}
.step.pinned::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  top: 3px;
  left: calc(50% - 2.5px);
  border-radius: 50%;
  background: var(--ground);
}
.step.playhead {
  background: #887493;
  outline: 1px solid var(--acid);
  outline-offset: 0;
}
.silenced .steps {
  opacity: 0.3;
}
.editor-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--dim);
  margin-top: 22px;
}
.pin-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ground);
  margin-right: 7px;
  vertical-align: middle;
}
.queued {
  color: var(--acid);
}
.bar-switch,
.mobile-tip {
  display: none;
}
.shape {
  display: grid;
  grid-template-columns: 1.15fr repeat(5, 1fr);
  gap: 24px;
  padding: 30px 0 34px;
  border-bottom: 1px solid #b5a6bc;
}
.shape-title h2 {
  font-size: 28px;
}
.shape-title p {
  font-size: 13px;
  margin-top: 9px;
}
.dial {
  font-size: 16px;
  display: block;
}
.dial output {
  font-variant-numeric: tabular-nums;
  display: block;
  font-family: "Barlow Condensed";
  font-size: 28px;
  margin-top: 7px;
  white-space: nowrap;
}
.dial > span {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
}
.dial b {
  font-weight: 400;
}
input[type="range"] {
  appearance: none;
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #ad9ab8;
  accent-color: var(--ink);
  margin: 19px 0 15px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--ground);
}
input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--ground);
}
.variations {
  padding: 32px 0;
  border-bottom: 1px solid #b5a6bc;
}
.section-heading {
  display: flex;
  gap: 24px;
  align-items: center;
}
.section-heading > div {
  flex: 1;
}
.section-heading p {
  font-size: 15px;
  margin-top: 8px;
  line-height: 1.4;
}
.dark-button {
  padding: 11px 18px;
  min-height: 42px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--ground);
  white-space: nowrap;
}
.dark-button:hover {
  background: #61486e;
}
.amount {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.siblings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.empty {
  color: #68546f;
  font-size: 14px;
  padding: 5px 0;
  line-height: 1.4;
}
.siblings > .empty {
  grid-column: 1 / -1;
}
.original {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
}
.text-button {
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 5px 0;
  min-height: 32px;
  text-align: left;
  font-size: 13px;
}
.text-button:hover {
  color: #805199;
}
.sibling {
  background: var(--ink);
  padding: 15px 18px;
  border-radius: 4px;
  color: var(--ground);
  outline: 2px solid transparent;
}
.sibling.chosen {
  outline-color: #72527e;
  outline-offset: 3px;
}
.sibling-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.sibling-heading span {
  font-size: 12px;
  color: var(--dim);
}
.sibling svg {
  width: 100%;
  margin: 15px 0;
}
.sibling-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.sibling .text-button:hover {
  color: var(--acid);
}
.library {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 90px;
  padding: 34px 0 30px;
}
.library h2 {
  margin-bottom: 18px;
}
#save-form {
  display: flex;
  gap: 10px;
}
input[type="text"],
input:not([type]) {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #9982a5;
  padding: 9px 0;
  color: var(--ink);
  min-width: 0;
  flex: 1;
}
input::placeholder {
  color: #68546f;
}
#scene-list {
  margin-top: 17px;
  max-height: 250px;
  overflow: auto;
}
.scene {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #b5a6bc;
  padding: 10px 0;
}
.scene-load {
  background: transparent;
  color: var(--ink);
  text-align: left;
  flex: 1;
  font-size: 17px;
  min-height: 38px;
}
.scene-load:hover {
  color: #805199;
}
.scene-load span {
  display: block;
  font-size: 12px;
  color: #68546f;
  margin-top: 3px;
}
.local-note {
  font-size: 12px;
  color: #68546f;
  margin-top: 15px;
}
.scene-backup {
  display: flex;
  gap: 24px;
  margin-top: 6px;
}
.import-label {
  cursor: pointer;
}
.import-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.export > p {
  font-size: 14px;
  line-height: 1.4;
  max-width: 40ch;
}
.export-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
}
.export-controls label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.volume {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}
.volume input {
  max-width: 140px;
  margin: 0;
}
.volume output {
  font-variant-numeric: tabular-nums;
}
footer {
  border-top: 1px solid #b5a6bc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 16px 0;
  color: #68546f;
}
#help {
  padding: 18px 0;
  font-size: 14px;
  line-height: 1.55;
  max-width: 85ch;
}
#help p + p {
  margin-top: 10px;
}
.notice {
  min-height: 26px;
  font-size: 14px;
  line-height: 1.5;
  color: #5b3d6a;
}
.roll {
  scrollbar-color: #806589 var(--ink);
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  height: 7px;
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #cbbcd2;
}
::-webkit-scrollbar-thumb {
  background: #806589;
  border-radius: 5px;
}
@media (min-width: 1600px) {
  main {
    padding-top: 22px;
  }
  .masthead {
    padding-bottom: 40px;
  }
  .instrument {
    padding-top: 30px;
    padding-bottom: 25px;
  }
  .step {
    height: 47px;
  }
  .grid {
    gap: 12px;
  }
}
@media (max-width: 1100px) {
  main {
    padding: 0 28px 20px;
  }
  .masthead {
    gap: 28px;
  }
  .intro {
    margin-left: 0;
  }
  .brand h1 {
    font-size: 49px;
  }
  .intro p {
    font-size: 21px;
  }
  .transport {
    min-width: 205px;
  }
  .shape {
    gap: 18px;
    grid-template-columns: repeat(5, 1fr);
  }
  .shape-title {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    gap: 20px;
  }
  .shape-title p {
    margin: 0;
  }
  .library {
    gap: 40px;
  }
  .groove-heading p {
    font-size: 14px;
  }
  .chops,
  .track,
  .ruler {
    grid-template-columns: 88px repeat(4, minmax(0, 1fr));
  }
  .track,
  .ruler {
    grid-template-columns: 88px 1fr;
  }
  .step {
    height: 38px;
  }
}
@media (max-width: 760px) {
  main {
    padding: 0 18px 16px;
  }
  .masthead {
    padding: 24px 0;
    gap: 22px;
    flex-wrap: wrap;
  }
  .brand {
    gap: 12px;
  }
  .brand h1 {
    font-size: 45px;
  }
  .brand > svg {
    width: 38px;
    height: 51px;
  }
  .intro {
    flex: 1;
  }
  .intro p {
    font-size: 20px;
  }
  .intro > span {
    font-size: 12px;
    max-width: 20ch;
  }
  .transport {
    width: 100%;
  }
  .play {
    min-height: 52px;
  }
  .instrument {
    padding: 20px 16px 17px;
    margin: 0 -4px;
  }
  .groove-heading {
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 17px;
  }
  .groove-heading > div {
    flex: 1;
    min-width: 0;
  }
  #preset {
    min-width: 0;
    width: 100%;
    font-size: 26px;
  }
  .groove-heading p {
    order: 4;
    flex-basis: 100%;
    padding: 0;
  }
  .groove-heading > .quiet {
    font-size: 12px;
    padding: 6px 10px;
  }
  .editor-tools {
    flex-wrap: wrap;
    gap: 12px;
    margin: 17px 0;
  }
  .editor-tools p {
    order: 3;
    flex-basis: 100%;
  }
  .editor-tools > .quiet {
    margin-left: auto;
    max-width: 145px;
    padding: 6px 10px;
  }
  .segmented button {
    padding: 8px 11px;
    font-size: 13px;
  }
  .bar-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
  }
  .bar-switch button {
    background: transparent;
    color: var(--dim);
    border: 1px solid var(--rule);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    min-height: 36px;
  }
  .bar-switch .selected {
    background: var(--ground);
    color: var(--ink);
  }
  #follow {
    margin-left: auto;
  }
  #follow[aria-pressed="true"] {
    color: var(--acid);
  }
  .mobile-tip {
    display: block;
    color: var(--dim);
    font-size: 12px;
    margin-bottom: 12px;
  }
  .roll {
    overflow-x: auto;
    padding: 2px 0 10px;
  }
  .chops {
    grid-template-columns: 80px repeat(2, minmax(0, 1fr));
    min-width: 640px;
  }
  .ruler,
  .grid {
    min-width: 640px;
  }
  .track,
  .ruler {
    grid-template-columns: 80px 1fr;
  }
  .steps,
  .ruler > div {
    grid-template-columns: repeat(16, minmax(0, 1fr));
  }
  .track-label,
  .chop-spacer {
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--ink);
  }
  .step {
    height: 42px;
  }
  .roll [data-bar="0"] .second-bar,
  .roll [data-bar="1"] .first-bar {
    display: none;
  }
  .editor-footer {
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    margin-top: 14px;
  }
  .shape {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 28px;
    padding: 26px 0;
  }
  .shape-title {
    display: block;
  }
  .shape-title p {
    margin-top: 8px;
  }
  .dial:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    padding-right: 14px;
  }
  .section-heading {
    flex-wrap: wrap;
    gap: 15px;
  }
  .section-heading > div {
    flex-basis: 100%;
  }
  .section-heading h2 {
    font-size: 29px;
  }
  .section-heading p {
    font-size: 14px;
    max-width: 35ch;
  }
  .section-heading > .dark-button {
    margin-left: auto;
  }
  .amount {
    gap: 7px;
  }
  .amount select {
    max-width: 130px;
    padding-right: 15px;
  }
  .siblings {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .sibling svg {
    max-height: 65px;
  }
  .library {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 0;
  }
  #save-form {
    gap: 10px;
  }
  .library h2 {
    font-size: 29px;
  }
  footer {
    align-items: flex-start;
    gap: 24px;
    line-height: 1.4;
  }
  footer > span {
    max-width: 24ch;
  }
  .volume input {
    flex: 1;
    max-width: 160px;
  }
  .original {
    justify-content: space-between;
    gap: 15px;
  }
  h2 {
    font-size: 29px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* the first screen offers musical choices before detailed step editing. */
.feel-section {
  padding: 2px 0 24px;
}
.feel-heading {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 16px;
}
.feel-heading p {
  font-size: 15px;
}
.feels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.feel {
  background: transparent;
  color: var(--ink);
  border: 1px solid #a58cad;
  border-radius: 5px;
  padding: 16px 18px;
  text-align: left;
  min-height: 118px;
}
.feel:hover {
  background: #cdbdd5;
}
.feel.selected {
  background: #cbb7d3;
  border: 2px solid #72527e;
  padding: 15px 17px;
}
.feel strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 25px;
  font-weight: 600;
}
.feel-description {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  margin: 7px 0 10px;
}
.feel-tag {
  font-size: 12px;
  color: #54335f;
}
.playground {
  padding: 26px 28px 22px;
  background: var(--ink);
  color: var(--ground);
  border-radius: 8px;
}
.playground-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.playground-heading p {
  font-size: 14px;
  color: var(--dim);
  margin-top: 9px;
}
.pocket {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.pocket-labels {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  gap: 0;
}
.pocket-label {
  color: var(--track);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}
.pocket-label small {
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
}
.pocket-preview svg {
  width: 100%;
  height: 138px;
  display: block;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.quick-action {
  background: #51405c;
  color: var(--ground);
  border: 1px solid #8e779b;
  border-radius: 5px;
  min-height: 91px;
  padding: 13px 16px;
  text-align: left;
}
.quick-action:hover {
  background: #675176;
}
.quick-action:active {
  background: #806589;
}
.quick-action strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.quick-action span {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: #e3d7e9;
  margin-top: 5px;
}
.keeper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.keep-button {
  background: var(--acid);
  color: var(--ink);
  border-radius: 4px;
  padding: 10px 15px;
  min-height: 42px;
}
.keep-button:hover {
  background: #e0f396;
}
.keep-button:disabled {
  opacity: 0.75;
}
.keeper > span {
  margin-left: auto;
  max-width: 28ch;
  font-size: 12px;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.play-guidance {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  margin-top: 17px;
  font-size: 14px;
  line-height: 1.4;
}
.play-guidance > span {
  color: var(--acid);
  font-size: 12px;
  white-space: nowrap;
}
.playground .notice {
  min-height: 0;
  margin-top: 10px;
  color: var(--acid);
  font-size: 14px;
}
.playground .notice:empty {
  display: none;
}
.shape {
  grid-template-columns: 1.1fr repeat(3, 1fr) 1.1fr;
  align-items: start;
}
.extra-sound > summary {
  font-size: 16px;
  cursor: pointer;
  min-height: 44px;
  line-height: 1.3;
}
.extra-sound summary span {
  display: block;
  font-size: 12px;
  margin-top: 8px;
  padding-left: 16px;
}
.extra-sound > div {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}
.extra-sound[open] {
  grid-column: 1 / -1;
}
.extra-sound[open] > div {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.extra-sound .dial:last-child {
  max-width: none;
  padding: 0;
}
.editor-details,
.variations-details {
  border-bottom: 1px solid #b5a6bc;
}
.editor-details > summary,
.variations-details > summary {
  cursor: pointer;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 25px;
  padding: 22px 0;
  line-height: 1.35;
}
.editor-details > summary > span,
.variations-details > summary > span {
  display: inline-block;
  margin-left: 18px;
  font-family: Barlow, sans-serif;
  font-size: 14px;
  color: #68546f;
}
.editor-details[open] {
  padding-bottom: 24px;
}
.variations-details .variations {
  padding-top: 2px;
  border: 0;
}
.hit-strength {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hit-strength select {
  min-height: 38px;
  max-width: 105px;
  padding-right: 18px;
}
.editor-tools {
  flex-wrap: wrap;
}
.editor-tools p {
  min-width: 180px;
}
.track,
.ruler {
  grid-template-columns: 136px 1fr;
}
.chops {
  grid-template-columns: 136px repeat(4, minmax(0, 1fr));
}
.solo {
  font-size: 12px;
  padding: 4px;
  min-width: 45px;
}
.scene-name-label {
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
}
.library {
  padding-top: 28px;
}
summary:focus-visible {
  outline: 3px solid #845cc4;
  outline-offset: 3px;
}
@media (max-width: 1100px) {
  .feel strong {
    font-size: 23px;
  }
  .feel {
    padding: 14px;
    min-height: 136px;
  }
  .feel.selected {
    padding: 13px;
  }
  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shape {
    grid-template-columns: repeat(3, 1fr);
  }
  .shape-title {
    grid-column: 1 / -1;
  }
  .extra-sound {
    grid-column: 1 / -1;
  }
  .extra-sound > div {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }
  .pocket-label small {
    display: none;
  }
  .pocket {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }
  .play-guidance {
    flex-wrap: wrap;
    gap: 8px;
  }
  .keeper > span {
    flex-basis: 100%;
    margin-left: 0;
    max-width: none;
  }
  .editor-tools p {
    order: 4;
    flex-basis: 100%;
  }
}
@media (max-width: 760px) {
  .feel-section {
    padding: 0 0 20px;
  }
  .feel-heading {
    display: block;
    margin-bottom: 14px;
  }
  .feel-heading p {
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.4;
  }
  .feels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .feel {
    min-height: 136px;
    padding: 12px;
  }
  .feel.selected {
    padding: 11px;
  }
  .feel strong {
    font-size: 23px;
  }
  .feel-description {
    font-size: 13px;
    margin-top: 7px;
  }
  .playground {
    padding: 20px 16px;
    margin: 0 -4px;
  }
  .playground-heading {
    flex-wrap: wrap;
    gap: 14px;
  }
  .playground-heading p {
    line-height: 1.4;
    max-width: 32ch;
  }
  .playground-heading > .quiet {
    font-size: 13px;
  }
  .pocket {
    margin: 18px 0;
    grid-template-columns: 48px 1fr;
    gap: 8px;
  }
  .pocket-label {
    font-size: 12px;
  }
  .pocket-preview svg {
    height: 106px;
  }
  .quick-actions {
    gap: 10px;
  }
  .quick-action {
    padding: 12px;
    min-height: 116px;
  }
  .quick-action strong {
    font-size: 15px;
    line-height: 1.35;
  }
  .quick-action span {
    font-size: 12px;
  }
  .keeper {
    gap: 10px;
  }
  .keeper > .quiet,
  .keep-button {
    font-size: 13px;
    padding: 9px 11px;
    min-height: 40px;
  }
  .play-guidance {
    font-size: 13px;
  }
  .playground .notice {
    font-size: 13px;
  }
  .shape {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shape > .dial:last-of-type {
    grid-column: 1 / -1;
    max-width: 50%;
    padding-right: 14px;
  }
  .extra-sound {
    grid-column: 1 / -1;
  }
  .extra-sound > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .extra-sound .dial:last-child {
    grid-column: auto;
    max-width: none;
  }
  .editor-details > summary,
  .variations-details > summary {
    font-size: 24px;
    padding: 19px 0;
  }
  .editor-details > summary > span,
  .variations-details > summary > span {
    display: block;
    margin: 7px 0 0 18px;
    font-size: 13px;
    line-height: 1.4;
  }
  .hit-strength {
    margin-left: auto;
  }
  .editor-tools > .quiet {
    margin-left: 0;
    max-width: none;
  }
  .track,
  .ruler {
    grid-template-columns: 108px 1fr;
  }
  .chops {
    grid-template-columns: 108px repeat(2, minmax(0, 1fr));
  }
  .ruler,
  .grid,
  .chops {
    min-width: 700px;
  }
  .solo {
    font-size: 12px;
    min-width: 38px;
  }
  .mute {
    font-size: 15px;
  }
  .instrument {
    margin: 0 -4px;
  }
  .library {
    gap: 28px;
  }
}

.pocket-transport {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .pocket-transport {
    width: 100%;
  }
  .pocket-transport .keep-button {
    font-size: 14px;
  }
  .pocket-transport .quiet {
    margin-left: auto;
    font-size: 13px;
  }
}

/* painted cells stay in place until the whole stroke is committed. */
.step {
  touch-action: none;
}
.density-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.density-action {
  color: var(--ground);
  text-align: left;
  min-height: 44px;
  padding: 8px 12px;
}
.density-action strong {
  font-weight: 500;
  font-size: 14px;
}
.density-action span {
  display: none;
}

@media (pointer: coarse) {
  .step {
    touch-action: pan-x pan-y;
  }
}
@media (max-width: 760px) {
  .step {
    touch-action: pan-x pan-y;
  }
}

.kit-choice {
  display: grid;
  gap: 7px;
  font-size: 12px;
  margin-top: 12px;
  max-width: 180px;
}
.kit-choice select {
  min-height: 38px;
  width: 100%;
  font-size: 14px;
}
.step-tag {
  background: #43344d;
  line-height: 1;
  position: absolute;
  right: 2px;
  top: 2px;
  font-size: 11px;
  color: var(--track);
  pointer-events: none;
}
footer a {
  color: inherit;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .extra-sound[open] > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.step.pinned::after {
  left: 3px;
}
