:root {
  color-scheme: dark;
  --bg: #141617;
  --panel: #1b1e20;
  --raised: #24282a;
  --border: #333739;
  --text: #eff1ed;
  --muted: #989fa2;
  --accent: #d7fa73;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select {
  font: inherit;
}
button {
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 7px;
  min-height: 34px;
  padding: 7px 11px;
  transition: background 0.15s;
}
button:hover {
  background: #ffffff10;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
input,
select {
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px;
  min-height: 34px;
}
input[type="range"] {
  accent-color: var(--accent);
  padding: 0;
  height: 18px;
  min-height: 18px;
  cursor: pointer;
  width: 100%;
}
input[type="checkbox"] {
  accent-color: var(--accent);
}
.primary {
  background: var(--accent);
  color: #202719;
  font-weight: 650;
}
.primary:hover {
  background: #e4ffa0;
}
.outline {
  border-color: var(--border);
}
.danger {
  color: #ff9797;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.mono {
  font-family: "Cascadia Code", Consolas, monospace;
}
.flex {
  display: flex;
  align-items: center;
  gap: 9px;
}
.between {
  justify-content: space-between;
}
.spacer {
  flex: 1;
}
.divider {
  width: 1px;
  height: 25px;
  background: var(--border);
  margin: 0 8px;
}
.active {
  color: var(--accent) !important;
  background: #d7fa7312 !important;
}
.app-shell {
  height: 100dvh;
  min-height: 640px;
  display: grid;
  grid-template-rows: 67px 72px 1fr 32px;
  overflow: hidden;
}
.topbar {
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 22px;
  background: #181a1b;
}
.brand {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 1px;
  white-space: nowrap;
}
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #1c2512;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  margin-right: 10px;
  letter-spacing: -2px;
}
.project-name {
  border: 0;
  background: transparent;
  font-size: 15px;
  width: 165px;
  padding: 4px;
}
.saved {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.transport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.transport-controls {
  gap: 7px;
}
.play {
  width: 43px;
  height: 43px;
  background: var(--accent);
  color: #202719;
  font-size: 20px;
  border-radius: 50%;
}
.play:hover {
  background: #e9ffb0;
}
.record {
  color: #f38b90;
  font-size: 20px;
}
.record.recording {
  background: #c74d56;
  color: white;
  animation: pulse 1s infinite;
}
.lcd {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #0d1011;
  border: 1px solid #2b3030;
  border-radius: 8px;
  padding: 8px 20px;
  height: 51px;
}
.position {
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--accent);
  min-width: 108px;
}
.lcd label {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.lcd input {
  background: transparent;
  border: 0;
  width: 57px;
  text-align: center;
  font-size: 19px;
  padding: 0;
  min-height: 26px;
}
.master-small {
  width: 95px;
}
.workspace {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 0;
}
.library {
  background: #191c1d;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.library-header {
  padding: 21px 18px 14px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 2px;
  color: var(--muted);
}
h1 {
  font-size: 21px;
  margin: 8px 0 18px;
  font-weight: 600;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}
.search {
  width: 100%;
  background: #222628;
  margin: 0 0 12px;
}
.library-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 13px 9px;
}
.library-tabs button {
  flex: 1;
}
.library-list {
  padding: 15px 12px;
  overflow: auto;
  flex: 1;
}
.group-title {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 7px 12px;
}
.instrument {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid transparent;
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
  padding: 12px 9px;
}
.instrument.selected {
  border-color: #d7fa7340;
  background: #d7fa7308;
}
.instrument-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  width: 42px;
  height: 43px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--color), transparent 90%);
  color: var(--color);
  flex-shrink: 0;
}
.instrument-name {
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}
.instrument-meta {
  font-size: 12px;
  color: var(--muted);
}
.library-footer {
  border-top: 1px solid var(--border);
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.arrangement {
  flex: 1;
  min-height: 245px;
  display: flex;
  flex-direction: column;
}
.arrange-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--border);
}
.view-tabs {
  display: flex;
  gap: 3px;
  margin-right: 12px;
}
.view-tabs button {
  font-size: 14px;
}
.zoom {
  width: 85px !important;
}
.arrange-scroll {
  overflow: auto;
  flex: 1;
  position: relative;
  overscroll-behavior: contain;
}
.arrange-inner {
  position: relative;
  min-width: 760px;
}
.ruler {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 8;
  height: 37px;
  background: #1b1e20;
  border-bottom: 1px solid var(--border);
}
.ruler-label {
  width: 213px;
  flex-shrink: 0;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 12px;
  position: sticky;
  left: 0;
  background: #1b1e20;
  z-index: 10;
}
.ruler-beats {
  position: relative;
  flex: 1;
  cursor: crosshair;
}
.bar-number {
  position: absolute;
  top: 11px;
  font:
    12px Consolas,
    monospace;
  color: #b9bec0;
  border-left: 1px solid #5a605e;
  padding-left: 8px;
  height: 25px;
}
.loop-region {
  height: 4px;
  background: var(--accent);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0.65;
}
.track-row {
  display: flex;
  height: 85px;
  border-bottom: 1px solid #303436;
}
.track-head {
  width: 213px;
  flex-shrink: 0;
  position: sticky;
  left: 0;
  background: #1d2022;
  z-index: 6;
  padding: 12px 13px 8px 17px;
  border-right: 1px solid var(--border);
  border-left: 3px solid var(--color);
}
.track-row.selected .track-head {
  background: #292e2e;
}
.track-title {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 137px;
}
.track-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}
.mini {
  padding: 1px 5px;
  min-height: 23px;
  min-width: 24px;
  font-size: 12px;
  border: 1px solid #454b4e;
  border-radius: 4px;
  color: #a8aeb1;
}
.mini.on {
  color: #1e2313;
  background: var(--accent);
  border-color: var(--accent);
}
.track-actions input {
  width: 82px;
}
.track-lane {
  position: relative;
  flex: 1;
  background-color: #181b1c;
  background-image:
    linear-gradient(to right, #353a3b 1px, transparent 1px),
    linear-gradient(to right, #252a2b 1px, transparent 1px);
  background-size:
    calc(var(--beat) * 4) 100%,
    var(--beat) 100%;
}
.track-row.selected .track-lane {
  background-color: #1f2324;
}
.clip {
  position: absolute;
  top: 8px;
  height: 68px;
  border: 1px solid color-mix(in srgb, var(--color), transparent 18%);
  background: color-mix(in srgb, var(--color), #101718 70%);
  color: #13191a;
  border-radius: 5px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  min-width: 15px;
}
.clip.selected {
  box-shadow: 0 0 0 2px #eff4e7;
  border-color: transparent;
}
.clip-name {
  height: 22px;
  line-height: 22px;
  font-weight: 600;
  font-size: 12px;
  background: var(--color);
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.clip svg {
  width: 100%;
  height: 43px;
  display: block;
}
.playhead {
  position: absolute;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: #e8f5c6;
  z-index: 7;
  pointer-events: none;
}
.playhead:before {
  content: "";
  position: absolute;
  top: 0;
  left: -4px;
  width: 9px;
  height: 9px;
  background: #e8f5c6;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.empty-track {
  height: 78px;
  padding: 18px 16px 18px 229px;
  color: #8a9295;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #16191a;
}
.editor {
  height: 307px;
  min-height: 230px;
  border-top: 1px solid #484e4f;
  background: #1b1e20;
  display: flex;
  flex-direction: column;
}
.editor-toolbar {
  padding: 12px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  height: 57px;
  flex-shrink: 0;
}
.tag {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  border: 1px solid #464d50;
  padding: 4px 6px;
  border-radius: 4px;
}
.editor-sub {
  font-size: 12px;
  color: var(--muted);
}
.editor-tools {
  display: flex;
  align-items: center;
  gap: 9px;
}
.editor-tools select {
  font-size: 12px;
  padding: 4px;
  min-height: 29px;
}
.piano-scroll {
  overflow: auto;
  flex: 1;
  position: relative;
}
.piano {
  display: flex;
  position: relative;
  min-width: 720px;
}
.keys {
  position: sticky;
  left: 0;
  width: 79px;
  flex-shrink: 0;
  z-index: 3;
  box-shadow: 3px 0 7px #0004;
}
.key {
  height: 20px;
  width: 79px;
  background: #c1c7c6;
  color: #36403d;
  font:
    11px Consolas,
    monospace;
  padding: 2px 8px;
  border-radius: 0;
  border-bottom: 1px solid #919c98;
  min-height: 20px;
  text-align: right;
}
.key.black {
  background: #303738;
  color: #aeb8b4;
  border-bottom-color: #1a1f20;
  width: 79px;
  padding-right: 23px;
}
.note-grid {
  flex: 1;
  position: relative;
  background:
    repeating-linear-gradient(to bottom, transparent 0 19px, #333b3c 19px 20px),
    repeating-linear-gradient(
      to right,
      #505852 0 1px,
      transparent 1px calc(var(--step) * 4)
    ),
    repeating-linear-gradient(
      to right,
      #303739 0 1px,
      transparent 1px var(--step)
    );
  cursor: crosshair;
  min-height: 480px;
  touch-action: none;
}
.note {
  position: absolute;
  height: 15px;
  background: var(--color);
  border-radius: 3px;
  border: 1px solid #ffffff28;
  box-shadow: 0 1px 2px #0005;
  cursor: grab;
  touch-action: none;
  padding: 0;
  min-height: 15px;
}
.note:hover {
  filter: brightness(1.18);
  background: var(--color);
}
.note.current {
  outline: 2px solid white;
}
.note:after {
  content: "";
  position: absolute;
  right: 2px;
  top: 3px;
  width: 2px;
  bottom: 3px;
  background: #0005;
}
.drum-grid {
  padding: 17px;
  overflow: auto;
}
.drum-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 680px;
  margin-bottom: 10px;
}
.drum-label {
  width: 86px;
  text-align: left;
  flex-shrink: 0;
  font-size: 12px;
  min-height: 26px;
  padding: 0;
}
.step {
  padding: 0;
  border: 1px solid #454b4e;
  background: #303537;
  flex: 1;
  height: 23px;
  min-height: 23px;
  border-radius: 3px;
}
.step:nth-child(8n + 6),
.step:nth-child(8n + 7),
.step:nth-child(8n + 8),
.step:nth-child(8n + 9) {
  background: #3b4142;
}
.step.hit {
  background: var(--color);
  border-color: var(--color);
}
.step.hit:hover {
  filter: brightness(1.2);
}
.step.beat-now {
  box-shadow: 0 0 0 2px white;
}
.footer {
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  background: #191c1d;
}
.footer kbd {
  font: 11px inherit;
  border: 1px solid #474e50;
  border-radius: 3px;
  padding: 1px 5px;
  margin-right: 5px;
}
.mixer {
  display: flex;
  overflow: auto;
  flex: 1;
  padding: 24px;
  gap: 12px;
  align-items: stretch;
}
.channel {
  background: #202426;
  min-width: 145px;
  width: 165px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--color);
  border-radius: 7px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.channel label {
  font-size: 12px;
  color: var(--muted);
  display: block;
}
.channel strong {
  font-size: 14px;
}
.channel .volume-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1;
  min-height: 85px;
}
.fader {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 20px !important;
  height: 115px !important;
  min-height: 85px !important;
}
.meter {
  height: 115px;
  width: 10px;
  background: repeating-linear-gradient(to top, #b1d975 0 4px, #222927 4px 6px);
  opacity: 0.22;
  border-radius: 2px;
}
.meter.running {
  opacity: 0.8;
  animation: meter 0.6s infinite alternate;
}
.mixer-empty {
  padding: 40px;
  color: var(--muted);
}
.empty-editor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--muted);
  gap: 12px;
}
.empty-editor p {
  margin: 0;
}
.wave-editor {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 20px;
}
.wave-editor svg {
  width: 100%;
  height: 120px;
}
.pill {
  background: #2b3131;
  border-radius: 30px;
  padding: 5px 10px;
  font-size: 12px;
}
.pattern {
  width: 100%;
  padding: 13px 11px;
  margin-bottom: 8px;
  background: #24282a;
  text-align: left;
  border: 1px solid var(--border);
}
.pattern strong {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
}
.pattern span {
  font-size: 12px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translate(-50%, 15px);
  padding: 11px 20px;
  background: var(--accent);
  color: #273019;
  border-radius: 8px;
  z-index: 80;
  box-shadow: 0 10px 40px #0005;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  background: #202527;
  color: var(--text);
  border: 1px solid #485052;
  border-radius: 14px;
  width: 530px;
  max-width: 94vw;
  padding: 26px;
  box-shadow: 0 30px 100px #0008;
}
dialog::backdrop {
  background: #05090bb8;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 22px;
  margin: 0 0 15px;
}
dialog p {
  color: #bac1c3;
  line-height: 1.8;
  font-size: 14px;
}
dialog .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 23px;
}
dialog .choice {
  padding: 15px;
  border: 1px solid var(--border);
  width: 100%;
  display: block;
  text-align: left;
  margin: 10px 0;
}
dialog .choice strong {
  display: block;
  margin-bottom: 5px;
}
dialog .choice span {
  color: var(--muted);
  font-size: 13px;
}
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0;
  gap: 15px;
}
.help-step {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}
.help-step b {
  background: #d7fa7315;
  color: var(--accent);
  border: 1px solid #d7fa7340;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  text-align: center;
  line-height: 28px;
}
.help-step p {
  margin: 0;
}
.loading-overlay {
  position: fixed;
  inset: 0;
  background: #111e;
  display: grid;
  place-items: center;
  z-index: 100;
}
.mobile-library {
  display: none;
}
.clip-info {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  padding: 6px 16px;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.clip-info input {
  min-height: 25px;
  padding: 2px 6px;
  width: 60px;
  font-size: 12px;
}
.clip-info input.clip-rename {
  width: 135px;
}
.library-toggle {
  display: none;
}
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
@keyframes meter {
  to {
    clip-path: inset(30% 0 0 0);
  }
}
@media (min-width: 1600px) {
  .editor {
    height: 350px;
  }
  .workspace {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .topbar {
    gap: 10px;
    padding: 0 14px;
  }
  .topbar .saved {
    display: none;
  }
  .transport {
    gap: 8px;
    padding: 10px 12px;
  }
  .lcd {
    gap: 10px;
    padding: 8px 10px;
  }
  .transport .extra-label {
    display: none;
  }
  .master-small {
    width: 65px;
  }
  .editor-sub {
    display: none;
  }
  .editor-toolbar {
    gap: 7px;
  }
  .editor-tools {
    gap: 4px;
  }
  .library-header {
    padding: 18px 13px 10px;
  }
}
@media (max-width: 800px) {
  .app-shell {
    min-height: 700px;
    grid-template-rows: 60px 70px 1fr 28px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .library {
    display: none;
  }
  .library.open {
    display: flex;
    position: absolute;
    left: 0;
    top: 130px;
    bottom: 28px;
    width: 230px;
    z-index: 25;
    box-shadow: 20px 0 50px #0009;
  }
  .library-toggle {
    display: block;
  }
  .brand {
    font-size: 14px;
    letter-spacing: 0.3px;
  }
  .brand-icon {
    width: 27px;
    height: 27px;
    margin-right: 6px;
  }
  .topbar {
    padding: 0 10px;
    gap: 8px;
  }
  .project-name {
    width: 115px;
  }
  .topbar .hide-small,
  .transport .hide-small {
    display: none;
  }
  .topbar button {
    padding: 6px 8px;
  }
  .transport {
    padding: 8px;
    gap: 5px;
  }
  .transport-controls {
    gap: 2px;
  }
  .transport-controls button {
    padding: 4px 7px;
  }
  .lcd {
    gap: 8px;
  }
  .lcd .position {
    font-size: 18px;
    min-width: 76px;
    letter-spacing: 0;
  }
  .lcd input {
    width: 43px;
    font-size: 16px;
  }
  .transport .divider {
    display: none;
  }
  .transport label.master-small {
    display: none;
  }
  .arrange-toolbar {
    padding: 6px 8px;
    gap: 4px;
  }
  .arrange-toolbar .hide-small {
    display: none;
  }
  .editor {
    height: 300px;
  }
  .editor-toolbar {
    padding: 8px;
    height: auto;
    min-height: 52px;
    flex-wrap: wrap;
  }
  .editor-tools {
    margin-left: auto;
  }
  .tag {
    display: none;
  }
  .footer .shortcuts {
    display: none;
  }
  .footer {
    padding: 0 8px;
  }
  .empty-track {
    padding-left: 225px;
  }
  .clip-info {
    padding: 5px 8px;
    gap: 7px;
    flex-wrap: wrap;
  }
  .clip-info .hide-small {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* The default workspace keeps detailed editing behind Advanced. */
.simple-shell {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}
.simple-workspace {
  min-width: 0;
}
.simple-shell {
  height: 100dvh;
  min-height: 620px;
  display: grid;
  grid-template-rows: 66px 90px minmax(220px, 1fr) 198px 36px;
  background: #171a1c;
}
.simple-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid #303638;
  background: #1d2123;
}
.simple-header .brand {
  font-size: 16px;
  letter-spacing: 0.8px;
}
.simple-header-divider {
  height: 24px;
  border-left: 1px solid #394043;
  margin: 0 4px;
}
.simple-header .project-name {
  width: 145px;
}
.simple-header .saved {
  font-size: 12px;
  color: #87918e;
}
.simple-header button {
  font-size: 14px;
  min-height: 36px;
}
.simple-header .primary {
  padding: 9px 24px;
}
.advanced-link {
  color: #a6afad;
}
.simple-transport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 30px;
  border-bottom: 1px solid #303638;
  gap: 20px;
  background: #171b1d;
}
.simple-play {
  width: 45px;
  height: 45px;
}
.simple-stop {
  font-size: 17px;
  margin-right: 14px;
  color: #b2bcb9;
}
.simple-transport #position {
  font-size: 16px;
  color: #97a39e;
  letter-spacing: 1px;
  min-width: 85px;
}
.midi-connect-area {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  justify-content: center;
}
.midi-connect {
  background: #d7fa7310;
  border: 1px solid #d7fa7350;
  color: #def3b1;
  padding: 11px 19px;
  min-height: 44px;
  font-size: 15px;
}
.midi-connect.connected {
  border-color: #d7fa73;
  color: #d7fa73;
}
.midi-connect-area > span {
  font-size: 12px;
  color: #89948f;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tempo-control {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #a2aca7;
}
.tempo-control input {
  width: 65px;
  text-align: center;
  background: #252c2e;
  border-color: #3a4344;
}
.tempo-control > span {
  font-size: 11px;
}
.simple-workspace {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #1a1e20;
}
.simple-arrangement-heading {
  height: 52px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.simple-arrangement-heading h2 {
  font-size: 16px;
  font-weight: 550;
}
.simple-track-count {
  font-size: 12px;
  color: #88938f;
}
.simple-arrangement-heading button {
  font-size: 13px;
}
.simple-shell .arrange-inner {
  min-width: 690px;
}
.simple-shell .track-row {
  height: 57px;
}
.simple-shell .track-head {
  padding: 10px 15px 6px 25px;
  background: #1f2527;
  border-left-width: 3px;
}
.simple-shell .track-head .track-actions {
  margin-top: 5px;
}
.simple-shell .track-actions .mini {
  display: none;
}
.simple-shell .track-actions input {
  width: 115px;
  height: 13px;
}
.simple-shell .track-actions > span {
  margin-left: 14px;
  font-size: 11px;
}
.simple-shell .track-title {
  font-size: 13px;
}
.simple-shell .track-head .mini {
  border: 0;
  min-height: 20px;
}
.simple-shell .clip {
  height: 41px;
  top: 8px;
}
.simple-shell .clip svg {
  height: 21px;
}
.simple-shell .clip-name {
  height: 20px;
  line-height: 20px;
  font-size: 11px;
}
.simple-shell .empty-track {
  display: none;
}
.simple-shell .ruler {
  height: 29px;
}
.simple-shell .ruler-label {
  padding: 7px 28px;
  font-size: 11px;
}
.simple-shell .bar-number {
  top: 8px;
  font-size: 11px;
  height: 20px;
}
.simple-shell .loop-region {
  height: 2px;
}
.simple-shell .playhead {
  top: 22px;
}
.simple-shell .track-lane {
  background-color: #1c2223;
  background-image: linear-gradient(to right, #343c3d 1px, transparent 1px);
  background-size: calc(var(--beat) * 4) 100%;
}
.keyboard-panel {
  background: #242b2c;
  border-top: 1px solid #424c4c;
  padding: 0 28px 17px;
  min-width: 0;
}
.keyboard-heading {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.keyboard-choice {
  display: flex;
  align-items: center;
  gap: 13px;
}
.keyboard-choice select {
  width: 165px;
  font-size: 14px;
  border-color: #45514e;
  background: #293231;
}
.keyboard-tip {
  font-size: 12px;
  color: #899791;
}
.key-record {
  border: 1px solid #62685b;
  background: #d7fa7308;
  color: #d7fa73;
  padding: 9px 17px;
  min-width: 112px;
  font-size: 14px;
}
.key-record.is-recording {
  color: #ffd1d1;
  border-color: #cf7070;
  background: #8a383866;
}
.keyboard-body {
  display: flex;
  gap: 17px;
  height: 117px;
  max-width: 1120px;
  margin: 0 auto;
}
.octave-switch {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 39px;
  flex-shrink: 0;
  color: #a6b4ad;
}
.octave-switch button {
  min-height: 28px;
  font-size: 18px;
  padding: 2px 9px;
}
.octave-switch span {
  font-size: 11px;
}
.performance-keys {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 8px #0007;
}
.white-keys {
  display: flex;
  height: 100%;
  gap: 2px;
  background: #242b29;
}
.performance-white {
  background: linear-gradient(#dde3de, #f3f6ef);
  flex: 1;
  min-width: 0;
  border-radius: 0 0 5px 5px;
  position: relative;
  padding: 0;
  box-shadow: inset 0 -4px 0 #aebdb3;
  color: #6c7f73;
  touch-action: none;
}
.performance-white:hover {
  background: #e3eddf;
}
.performance-white span {
  position: absolute;
  bottom: 12px;
  font:
    11px Consolas,
    monospace;
  left: 0;
  right: 0;
}
.performance-white.pressed {
  background: #d7fa73;
  box-shadow: inset 0 -2px 0 #86a344;
}
.black-keys {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.performance-black {
  position: absolute;
  top: 0;
  height: 64%;
  min-height: 0;
  padding: 0;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(#1b2121, #343e3c);
  box-shadow:
    inset 0 -5px 0 #111716,
    0 4px 3px #0005;
  border: 1px solid #141b18;
  pointer-events: auto;
  touch-action: none;
}
.performance-black:hover {
  background: #424e47;
}
.performance-black.pressed {
  background: #8daa54;
  box-shadow: inset 0 -3px 0 #6a8337;
}
.simple-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  font-size: 12px;
  background: #1c2223;
  color: #8d9a94;
}
.simple-footer button {
  font-size: 12px;
  min-height: 25px;
  padding: 4px 12px;
}
.simple-footer > span:last-child {
  display: flex;
  gap: 15px;
  align-items: center;
}
.drum-pads {
  display: flex;
  gap: 12px;
  height: 100%;
}
.drum-pad {
  flex: 1;
  background: #3c4944;
  border: 1px solid #607267;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #d1e4d3;
  touch-action: none;
}
.drum-pad.pressed {
  background: #d7fa73;
  color: #263419;
}
@media (max-width: 1050px) {
  .simple-header {
    padding: 0 20px;
    gap: 12px;
  }
  .simple-header .saved {
    display: none;
  }
  .midi-connect-area {
    flex-direction: column;
    gap: 5px;
  }
  .simple-transport {
    padding: 12px 20px;
  }
  .keyboard-tip {
    display: none;
  }
  .simple-header .project-name {
    width: 120px;
  }
}
@media (max-width: 650px) {
  .simple-shell {
    min-height: 650px;
    grid-template-rows: 58px 90px minmax(220px, 1fr) 210px 32px;
  }
  .simple-header {
    padding: 0 12px;
    gap: 5px;
  }
  .simple-header .brand {
    font-size: 12px;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .simple-header .brand-icon {
    width: 25px;
    height: 25px;
    font-size: 13px;
    margin-right: 6px;
  }
  .simple-header-divider {
    display: none;
  }
  .simple-header .project-name {
    width: 75px;
    font-size: 13px;
  }
  .simple-header button {
    font-size: 12px;
    padding: 5px 7px;
  }
  .simple-header .primary {
    padding: 7px 10px;
  }
  .simple-header .advanced-link {
    font-size: 11px;
  }
  .simple-transport {
    padding: 10px 13px;
    gap: 9px;
  }
  .simple-play {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
  .simple-stop {
    margin: 0;
    padding: 5px;
  }
  .simple-transport #position {
    display: none;
  }
  .midi-connect {
    font-size: 13px;
    min-height: 38px;
    padding: 8px 11px;
  }
  .midi-connect-area > span {
    font-size: 10px;
    max-width: 170px;
  }
  .tempo-control {
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
  }
  .tempo-control input {
    width: 48px;
    min-height: 28px;
    padding: 3px;
    font-size: 13px;
  }
  .tempo-control > span {
    display: none;
  }
  .simple-arrangement-heading {
    padding: 0 15px;
    gap: 8px;
    height: 45px;
  }
  .simple-arrangement-heading h2 {
    font-size: 14px;
  }
  .simple-track-count {
    display: none;
  }
  .simple-arrangement-heading button {
    font-size: 12px;
  }
  .keyboard-panel {
    padding: 0 13px 17px;
  }
  .keyboard-heading {
    height: 68px;
    gap: 5px;
  }
  .keyboard-choice {
    gap: 5px;
    flex-direction: column;
    align-items: flex-start;
  }
  .keyboard-choice .small {
    font-size: 11px;
  }
  .keyboard-choice select {
    width: 150px;
    font-size: 13px;
    min-height: 30px;
    padding: 4px;
  }
  .key-record {
    font-size: 13px;
    padding: 7px 10px;
    min-width: 100px;
  }
  .keyboard-body {
    height: 123px;
    gap: 8px;
  }
  .octave-switch {
    width: 24px;
  }
  .performance-white span {
    font-size: 9px;
  }
  .simple-footer {
    padding: 0 12px;
    font-size: 11px;
  }
  .footer-hint {
    display: none;
  }
  .simple-footer button {
    font-size: 11px;
  }
  .drum-pads {
    gap: 4px;
  }
  .drum-pad {
    font-size: 11px;
    padding: 2px;
    gap: 10px;
  }
}
