:root {
  color-scheme: dark;
  font:
    13px/1.4 Inter,
    "Segoe UI",
    system-ui,
    sans-serif;
  color: #f0f0f8;
  background: #090b12;
  --surface: #151925;
  --raised: #202535;
  --line: #414258;
  --accent: #b34cff;
  --muted: #aab0c5;
}
.track-head,
.track-row {
  grid-template-columns: minmax(0, 1fr) 42px 56px 90px !important;
}
.track-row > span:nth-child(3) {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.mic-control {
  padding: 8px 0;
  border-top: 1px solid #454052;
  border-bottom: 1px solid #454052;
}
.mic-control small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.1em;
}
.mic-control > div {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 5px 0;
}
.mic-control button {
  font-size: 10px;
  padding: 4px;
  min-height: 25px;
}
.mic-control input {
  min-width: 0;
}
.mic-control > span {
  font-size: 10px;
  color: #aab0c5;
}
.settings-body label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 9px;
}
.browser > .controller-focus {
  border-color: #b47aef;
  box-shadow:
    inset 0 0 0 1px #b47aef55,
    0 0 10px #a344db44;
}
.banks button.bank-focused {
  outline: 2px solid #ead1ff;
  outline-offset: 2px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 760px;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  color: #f0eef9;
  background: linear-gradient(180deg, #343747, #202331 48%, #171a25);
  border: 1px solid #696479;
  border-bottom-color: #302d3b;
  border-radius: 6px;
  box-shadow:
    inset 0 1px #ffffff29,
    0 2px 4px #0008;
}
button {
  cursor: pointer;
  padding: 7px 10px;
  min-height: 30px;
}
button:hover:not(:disabled) {
  border-color: #c88aff;
  filter: brightness(1.12);
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button.selected,
button.active {
  background: linear-gradient(180deg, #9e38df, #4e1975);
  border-color: #d683ff;
  color: white;
  box-shadow:
    inset 0 1px #ffffff5c,
    0 0 12px #ac40e97a;
}
input[type="range"] {
  accent-color: #b865ef;
  width: 100%;
  cursor: pointer;
}
input[type="search"] {
  height: 35px;
  border: 1px solid #414258;
  border-radius: 5px;
  background: #0c1018;
  color: #f0f0f8;
  padding: 0 12px;
  width: 100%;
}
input:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #c890ff;
  outline-offset: 2px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
}
small {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.app-shell {
  min-height: 100vh;
  background: radial-gradient(
    ellipse at 50% -25%,
    #402052,
    #0b0d16 45%,
    #090b12 100%
  );
}
.topbar {
  position: relative;
  height: 70px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
  background: linear-gradient(180deg, #191826, #0e1019);
  border-bottom: 1px solid #584070;
  box-shadow: 0 4px 22px #8d28e924;
}
.brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand img {
  display: block;
  width: 300px;
  height: 62px;
  object-fit: contain;
}
.web-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #dcb6ff;
  border: 1px solid #8250a4;
  border-radius: 4px;
  padding: 3px 5px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.connection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #737b8c;
}
.connection-dot.connected {
  background: #a7ed51;
  box-shadow: 0 0 10px #a7ed51;
}
.top-actions {
  margin-left: auto;
  display: flex;
  gap: 7px;
}
.top-actions button {
  font-size: 11px;
}
.top-actions button.active {
  animation: breathe 2s ease-in-out infinite;
}
@keyframes breathe {
  50% {
    box-shadow: 0 0 22px #b34cffaa;
  }
}
main {
  padding: 12px 14px 7px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: calc(100vh - 70px);
  min-height: 750px;
}
.stacked {
  height: 106px;
  flex: 0 0 106px;
  position: relative;
  border: 1px solid #3d4054;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0d14;
}
.stacked-row {
  height: 50%;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 45px;
  align-items: center;
  border-bottom: 1px solid #343548;
}
.stacked-row strong {
  font-size: 10px;
  text-align: center;
  color: #9ba0b3;
}
.stacked-row canvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}
.stacked-row span {
  text-align: center;
  color: #a3a7b5;
  font-variant-numeric: tabular-nums;
  font-size: 10px;
}
.playhead {
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #e3d1ff66;
}
.performance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(185px, 11%) minmax(0, 1fr);
  gap: 10px;
  flex: 1;
  min-height: 355px;
}
.panel,
.deck {
  min-width: 0;
  min-height: 0;
  background: linear-gradient(155deg, #222633, #151824 45%, #11131c);
  border: 1px solid #4b465f;
  border-radius: 8px;
  box-shadow:
    inset 0 1px #ffffff18,
    0 12px 24px #0005;
}
.deck {
  border-color: color-mix(in srgb, var(--deck) 65%, #414258);
  display: flex;
  flex-direction: column;
  box-shadow:
    inset 0 1px #ffffff16,
    0 0 14px color-mix(in srgb, var(--deck) 19%, transparent);
}
.deck.is-playing {
  box-shadow:
    0 0 16px 2px color-mix(in srgb, var(--deck) 52%, transparent),
    inset 0 1px #ffffff16;
}
.deck-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  min-height: 57px;
  border-bottom: 1px solid #ffffff14;
}
.deck-tag {
  flex: none;
  color: var(--deck);
  font-size: 11px;
  border: 1px solid var(--deck);
  border-radius: 4px;
  padding: 5px;
}
.deck-title > div {
  min-width: 0;
  flex: 1;
}
.deck-title h2 {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
}
.deck-title small {
  font-size: 10px;
}
.deck-state {
  font-size: 10px;
  color: var(--deck);
}
.overview {
  height: 46px;
  width: 100%;
  flex: none;
  background: #0d111a;
  cursor: crosshair;
  touch-action: none;
}
.deck-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(150px, 1.5fr) minmax(
      95px,
      0.7fr
    );
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}
.fx {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fx small {
  font-size: 9px;
  letter-spacing: 0.09em;
}
.fx-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.fx-buttons button {
  font-size: 9px;
  padding: 4px;
  min-height: 28px;
  line-height: 1.1;
}
.fx-buttons button:last-child {
  grid-column: 1/-1;
}
.fx-buttons button.active {
  border-color: var(--deck);
  box-shadow: 0 0 10px var(--deck);
}
.fx label {
  color: #acb1c4;
  font-size: 9px;
}
.fx input {
  display: block;
}
.center-deck {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  min-width: 0;
}
.platter {
  width: min(13vw, 164px);
  height: min(13vw, 164px);
  min-width: 108px;
  min-height: 108px;
  border-radius: 50%;
  border: 4px solid #121620;
  background: repeating-radial-gradient(
    circle,
    #252b3b 0,
    #10131d 2px,
    #303748 3px,
    #181c29 5px
  );
  box-shadow:
    inset 0 0 0 2px #737b91,
    inset 0 0 22px #000c,
    0 0 0 4px #54556a,
    0 0 20px color-mix(in srgb, var(--deck) 35%, transparent);
  display: grid;
  place-items: center;
}
.platter img {
  width: 44%;
  height: 44%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--deck));
}
.deck.is-playing .platter {
  animation: spin 4s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.deck-time {
  color: #ecf1fa;
  font-variant-numeric: tabular-nums;
}
.deck-time small {
  font-size: 10px;
  margin-left: 5px;
}
.transport {
  display: flex;
  gap: 5px;
  justify-content: center;
}
.transport button {
  min-width: 43px;
  min-height: 34px;
  font-size: 11px;
  font-weight: 700;
}
.transport .play {
  color: #baf77c;
  border-color: #83c742;
  background: linear-gradient(#263d24, #142215);
  font-size: 18px;
}
.transport .cue {
  border-color: #b772da;
  background: linear-gradient(#63347b, #2c1d3f);
}
.pitch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  place-items: center;
}
.pitch label {
  font-size: 9px;
  color: var(--muted);
  text-align: center;
}
.pitch input {
  display: block;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 22px;
  height: 105px;
  margin: 5px auto;
  accent-color: var(--deck);
}
.pitch button,
.pitch small {
  grid-column: 1/-1;
}
.pitch button {
  width: 100%;
  font-size: 9px;
}
.hotcues {
  flex: none;
  border-top: 1px solid #454356;
  padding: 7px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.hotcues > span {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.cue-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  flex: 1;
}
.cue-slots button {
  padding: 4px;
  min-height: 26px;
  font-size: 10px;
}
.cue-slots button.set {
  border-color: var(--deck);
}
.mixer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 11px;
  padding: 12px 10px;
  text-align: center;
}
.mixer h2 {
  font-size: 11px;
  letter-spacing: 0.17em;
}
.mixer-control label,
.target small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}
.mixer-control input {
  display: block;
  margin-top: 5px;
}
.mixer meter {
  width: 50%;
  height: 32px;
  align-self: center;
}
.target > div {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 5px;
}
.target button {
  min-width: 38px;
}
.record-state {
  font-size: 10px;
  color: #c7b4df;
  min-height: 28px;
}
.ends {
  display: flex;
  justify-content: space-between;
  color: #abb2c2;
  font-size: 10px;
}
.browser {
  height: 34vh;
  min-height: 240px;
  max-height: 380px;
  display: grid;
  grid-template-columns: minmax(180px, 0.17fr) minmax(320px, 0.55fr) minmax(
      260px,
      0.28fr
    );
  gap: 10px;
}
.browser > .panel {
  overflow: hidden;
  padding: 10px;
  display: flex;
  flex-direction: column;
}
.browser h2 {
  font-size: 11px;
}
.folder-tree,
.items,
#queue {
  overflow: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #765389 #171925;
}
.folders .pick {
  margin: 10px 0;
}
.pick {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 7px 8px;
  border: 1px solid #5b4f6f;
  border-radius: 5px;
  background: #242337;
  font-size: 11px;
  cursor: pointer;
}
.pick:hover {
  border-color: #c88aff;
}
.pick input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}
.folder-tree {
  flex: 1;
}
.folder-row {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.folder-row.selected {
  background: #552571;
}
.browser-hint {
  font-size: 10px;
  color: #959caf;
  padding: 8px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.panel-heading span {
  color: var(--muted);
  font-size: 10px;
}
.track-head,
.track-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px 90px;
  gap: 5px;
  align-items: center;
}
.track-head {
  margin-top: 8px;
  border-bottom: 1px solid #555166;
  color: #c2bfd0;
  font-size: 10px;
}
.track-head button {
  background: none;
  border: 0;
  box-shadow: none;
  text-align: left;
  font-size: 10px;
  padding: 6px 2px;
}
.track-head span {
  text-align: center;
}
.library .items {
  flex: 1;
}
.track-row {
  padding: 5px 2px;
  border-bottom: 1px solid #ffffff10;
  cursor: pointer;
  font-size: 11px;
}
.track-row:nth-child(even) {
  background: #ffffff05;
}
.track-row.selected {
  background: #68319766;
}
.track-row > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track-row > span:nth-child(2) {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.track-actions {
  display: flex;
  gap: 2px;
}
.track-actions button {
  font-size: 10px;
  padding: 1px 5px;
  min-height: 24px;
}
.tabs,
.banks {
  display: flex;
  gap: 5px;
}
.tabs button,
.banks button {
  flex: 1;
  font-size: 10px;
  padding: 5px;
  min-width: 0;
}
.banks {
  margin: 10px 0;
}
#sampler-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#pads {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 5px;
  flex: 1;
  min-height: 0;
}
.pad {
  position: relative;
  min-width: 0;
  min-height: 0;
  --pad: #a548e9;
}
.pad:nth-child(5n + 2) {
  --pad: #00aecd;
}
.pad:nth-child(5n + 3) {
  --pad: #287fdf;
}
.pad:nth-child(5n + 4) {
  --pad: #c43d9d;
}
.pad:nth-child(5n) {
  --pad: #8bbd1b;
}
.pad > button:first-child {
  width: 100%;
  height: 100%;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  padding: 5px 12px 5px 5px;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--pad) 56%, #343342),
    color-mix(in srgb, var(--pad) 25%, #111520)
  );
  border-color: color-mix(in srgb, var(--pad) 65%, white);
}
.pad.playing > button:first-child {
  box-shadow: 0 0 13px var(--pad);
}
.pad.selected > button:first-child {
  outline: 2px solid #ead1ff;
  outline-offset: -3px;
}
.clear-pad {
  position: absolute;
  right: 1px;
  top: 1px;
  font-size: 11px;
  min-height: 17px;
  padding: 0 3px;
}
.sample-settings {
  margin-top: 6px;
  font-size: 11px;
  border: 1px solid #4c455e;
  border-radius: 5px;
  max-height: 48%;
  overflow: auto;
}
.sample-settings summary {
  padding: 6px;
  cursor: pointer;
  text-align: center;
}
.sample-settings .pick {
  margin: 4px;
}
.sample-settings .items {
  max-height: 150px;
}
.sample-row,
.queue-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border-bottom: 1px solid #ffffff15;
  font-size: 10px;
}
.sample-row span,
.queue-row span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sample-row button,
.queue-row button {
  font-size: 10px;
  min-height: 24px;
  padding: 3px 5px;
}
#sidelist-view {
  flex: 1;
  overflow: auto;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #9ba0b4;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
}
footer span {
  overflow: hidden;
  text-overflow: ellipsis;
}
dialog {
  width: min(650px, calc(100vw - 30px));
  max-height: 86vh;
  padding: 0;
  background: #141824;
  color: #f0f0f8;
  border: 1px solid #74528b;
  border-radius: 12px;
  box-shadow: 0 25px 80px #000c;
}
dialog::backdrop {
  background: #05050bdc;
}
.dialog-head {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #454052;
}
.dialog-head small {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #bb8cff;
}
.dialog-head h2 {
  font-size: 25px;
  letter-spacing: 0;
}
.settings-body {
  padding: 20px;
  overflow: auto;
  display: grid;
  gap: 20px;
}
.settings-body section {
  padding: 15px;
  background: #1d2230;
  border: 1px solid #41465a;
  border-radius: 8px;
  display: grid;
  gap: 12px;
}
.settings-body h3 {
  font-size: 14px;
}
.settings-body label {
  display: grid;
  gap: 5px;
  color: #c7c9d8;
}
.settings-body select {
  min-height: 34px;
}
.settings-body p {
  color: #aeb3c5;
}
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #171925;
}
::-webkit-scrollbar-thumb {
  background: #625274;
  border-radius: 8px;
}
@media (max-width: 1100px) {
  .deck-body {
    grid-template-columns: minmax(90px, 1fr) minmax(120px, 1.3fr) minmax(
        75px,
        0.7fr
      );
    padding: 6px;
  }
  .platter {
    min-width: 100px;
    min-height: 100px;
  }
  .transport button {
    min-width: 34px;
  }
  .browser {
    grid-template-columns: minmax(145px, 0.18fr) minmax(260px, 0.52fr) minmax(
        210px,
        0.3fr
      );
  }
}
@media (max-height: 850px) {
  main {
    min-height: 650px;
  }
  .browser {
    height: 30vh;
    min-height: 205px;
  }
  .platter {
    width: 105px;
    height: 105px;
  }
  .pitch input {
    height: 75px;
  }
}
@media (max-width: 760px) {
  body {
    min-width: 0;
  }
  .topbar {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 8px 12px;
  }
  .brand {
    position: static;
    transform: none;
  }
  .brand img {
    width: 175px;
    height: 42px;
  }
  .top-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
  main {
    height: auto;
    min-height: 0;
  }
  .performance,
  .browser {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    max-height: none;
  }
  .deck {
    min-height: 340px;
  }
  .mixer {
    min-height: 260px;
    order: 2;
  }
  .browser > .panel {
    min-height: 220px;
  }
  .browser .library {
    min-height: 300px;
  }
  .browser .sideview {
    min-height: 360px;
  }
  .folder-tree,
  .library .items {
    max-height: 240px;
  }
  .platter {
    width: 140px;
    height: 140px;
  }
  footer {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
