:root {
  color-scheme:dark;
  --bg:#1a1b1f;
  --panel:#2d2f35;
  --panel2:#31343b;
  --head:#383b42;
  --deep:#202226;
  --line:#1f2125;
  --soft:#3e4149;
  --text:#e2e2e5;
  --dim:#a3a5ad;
  --pink:#f296c6;
  --knob-highlight:#47e2f4;
  --green:#8fe2ad;
  --yellow:#ecdb85;
  --mono:"SFMono-Regular",Menlo,Consolas,monospace;
  font:13px -apple-system,BlinkMacSystemFont,"Inter",Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  height:100dvh;
  min-height:510px;
  display:grid;
  grid-template-rows:55px minmax(0,1fr) 28px;
  overflow:hidden;
}

button,input,select {
  font:inherit;
  color:inherit;
}

button,select {
  cursor:pointer;
}

button {
  background:var(--skin-button,#42454d);
  border:1px solid var(--skin-border,#52555d);
  border-radius:3px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:23px;
  padding:2px 7px;
  font-size:12px;
  font-weight:550;
  white-space:nowrap;
}

button:hover {
  filter:brightness(1.16);
}

button:active {
  filter:brightness(.9);
}

button:disabled {
  opacity:.42;
  cursor:default;
}

button.on,.on {
  background:var(--pink);
  border-color:var(--pink);
  color:#221b22;
}

button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,canvas:focus-visible,[tabindex]:focus-visible {
  outline:2px solid var(--pink);
  outline-offset:-2px;
}

input,select {
  background:var(--skin-field,#202226);
  border:1px solid var(--skin-border,#17181c);
  border-radius:3px;
  height:25px;
  min-width:0;
  padding:2px 5px;
}

input[type=number] {
  appearance:textfield;
  -moz-appearance:textfield;
}

input::-webkit-inner-spin-button {
  display:none;
}

input[type=range] {
  padding:0;
  accent-color:var(--pink);
}

[hidden] {
  display:none!important;
}

svg {
  width:15px;
  height:15px;
  display:block;
  flex-shrink:0;
}

i[data-icon],h2 i,.footer-right i {
  display:inline-flex;
  font-style:normal;
}

.iconbutton {
  width:26px;
  padding:0;
}

h2,h3,p {
  margin:0;
}

button,kbd {
  user-select:none;
}

.transport {
  background:var(--skin-chrome,#202226);
  border-bottom:1px solid var(--skin-border,#101114);
  display:flex;
  align-items:center;
  gap:clamp(10px,2.3vw,42px);
  padding:0 14px;
}

.brand {
  font-size:17px;
  letter-spacing:-.7px;
  font-weight:690;
  display:flex;
  align-items:center;
  gap:9px;
  white-space:nowrap;
}

.brand-logo {
  display:block;
  width:clamp(50px, 7vw, 81px);
  height:auto;
  mix-blend-mode:screen;
}

.tempo-block,.playgroup,.top-right {
  display:flex;
  align-items:center;
  gap:3px;
}

.tempo-block>*,.playgroup>*,.top-right button {
  height:28px;
  min-height:28px;
}

.tempo-block button,.tempo-block select,.tempo,.signature,#position,.transport-icon,#sync {
  border:1px solid var(--skin-border,#45474e);
  background:var(--skin-button,#303238);
  border-radius:3px;
}

.tempo-block select {
  font-size:12px;
}

.tempo {
  display:flex;
  align-items:center;
  gap:3px;
  padding:0 7px;
}

.tempo input {
  background:transparent;
  border:0;
  width:39px;
  padding:0;
  text-align:right;
  font:bold 13px var(--mono);
}

.tempo span {
  color:var(--dim);
  font:9px var(--mono);
  letter-spacing:.4px;
}

.signature {
  padding:5px 8px;
  font:12px var(--mono);
  white-space:nowrap;
}

.playgroup {
  position:absolute;
  left:50%;
  transform:translateX(-50%);
}

#position {
  display:grid;
  place-items:center;
  font:600 14px var(--mono);
  min-width:98px;
  letter-spacing:1px;
  color:var(--skin-fg,#eee);
}

.transport-icon {
  width:32px;
  padding:0;
}

.transport-icon svg {
  width:18px;
  height:18px;
}

#play.active {
  color:var(--green);
  background:#354039;
}

#stop.active {
  color:var(--pink);
}

.top-right {
  margin-left:auto;
  gap:9px;
}

#sync.on {
  background:#445b50;
  color:#c8f9d9;
}

.cart-btn {
  background:var(--pink);
  color:#281824;
  border-color:var(--pink);
  gap:7px;
}

.cart-btn b {
  font:11px var(--mono);
  background:#35242e;
  color:#ffd5ed;
  border-radius:2px;
  padding:2px 4px;
}

main {
  min-height:0;
  display:grid;
  grid-template-rows:minmax(0,1fr) clamp(220px,30.5vh,405px);
  gap:6px;
  padding:6px 7px 0;
}

.upper {
  display:grid;
  grid-template-columns:clamp(320px,31.5%,610px) minmax(0,1fr);
  gap:6px;
  min-height:0;
}

.pane {
  background:var(--panel);
  border:1px solid var(--skin-border,#18191c);
  border-radius:4px;
  min-width:0;
  min-height:0;
  overflow:hidden;
}

.pane-head {
  display:flex;
  align-items:center;
  gap:12px;
  background:var(--head);
  height:36px;
  min-width:0;
  padding:0 10px;
  border-bottom:1px solid var(--line);
}

.pane-head h2 {
  font-size:13px;
  font-weight:650;
  display:flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
}

.pane-head h2 i {
  color:var(--skin-muted,#d0d1d8);
}

.file-count,.session-title,#format {
  font-size:11.5px;
  color:var(--skin-muted,#bfc0c7);
}

.file-count {
  margin-left:auto;
  font-family:var(--mono);
  font-size:10.5px;
}

.session-title {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  border-left:1px solid var(--skin-border,#575960);
  padding-left:11px;
  cursor:pointer;
}

.actions {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:5px;
}

.actions button {
  font-size:11.5px;
}

.actions svg {
  width:13px;
}

.browser {
  display:flex;
  flex-direction:column;
}

.searchline {
  display:flex;
  gap:4px;
  padding:6px;
  border-bottom:1px solid var(--line);
}

.searchline label {
  display:flex;
  align-items:center;
  gap:6px;
  background:var(--deep);
  padding:0 6px;
  border:1px solid var(--skin-border,#18191c);
  border-radius:3px;
  min-width:0;
  flex:1;
  color:var(--dim);
}

.searchline input {
  background:transparent;
  border:0;
  flex:1;
  outline:none;
  font-size:12px;
}

.searchline kbd {
  font:10px var(--mono);
  color:var(--skin-muted,#989ba5);
}

.filters {
  padding:6px;
  display:flex;
  gap:5px;
  align-items:end;
  background:var(--skin-workspace,#282a2f);
}

.filters label,.formgrid label,.modalbody label {
  display:grid;
  gap:4px;
  min-width:0;
  font-size:12px;
  color:var(--skin-muted,#bfc0c9);
}

.filters label {
  flex:1;
}

.browser-body {
  min-height:0;
  display:flex;
  flex:1;
}

.browser nav {
  width:31.5%;
  min-width:93px;
  max-width:190px;
  flex:none;
  overflow:auto;
  border-right:2px solid var(--line);
  padding:4px 0 8px;
  background:var(--skin-workspace,#292b30);
}

.nav-label {
  color:var(--skin-muted,#a6a8b0);
  font-size:10px;
  letter-spacing:1px;
  font-weight:650;
  text-transform:uppercase;
  padding:10px 9px 5px;
}

.nav-btn {
  display:flex;
  width:100%;
  border:0;
  border-radius:0;
  background:transparent;
  justify-content:flex-start;
  text-align:left;
  min-height:25px;
  padding:4px 8px;
  color:var(--skin-fg,#d1d2d8);
  font-weight:450;
  font-size:12px;
  gap:6px;
}

.nav-btn span {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.nav-btn svg {
  width:13px;
}

.nav-btn.selected {
  background:#48515a;
  color:#fff;
}

.nav-btn:hover,.file:hover {
  background:var(--skin-hover,#41444c);
}

.nav-btn.add {
  color:var(--skin-accent-ink,#ebbbd5);
}

.file-pane {
  flex:1;
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
}

.file-head,.file {
  display:grid;
  align-items:center;
  grid-template-columns:minmax(0,1fr) 46px;
  column-gap:4px;
}

.file-head {
  height:26px;
  flex:none;
  background:var(--skin-raised,#3c3f47);
  color:var(--skin-muted,#cbccd2);
  font-size:11px;
  font-weight:600;
  padding:0 7px;
}

.file-head span:last-child {
  text-align:right;
}

#files {
  overflow:auto;
  flex:1;
  scrollbar-gutter:stable;
  min-height:0;
  outline:none;
}

.file {
  font:12px -apple-system,BlinkMacSystemFont,Arial,sans-serif;
  min-height:29px;
  line-height:1.3;
  padding:0 4px 0 7px;
  cursor:default;
  border-bottom:1px solid var(--skin-border,#373940);
}

.file>span:first-child {
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}

.file>span:first-child::before {
  content:"";
  width:6px;
  height:6px;
  flex:none;
  border-radius:1px;
  background:#85878d;
}

.file[aria-description="Favourite"]>span:first-child::before {
  background:#16ef92;
}

.file.session-clip>span:first-child::before {
  background:#149dff;
}

.file em {
  font-style:normal;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.file .price {
  font:10.5px var(--mono);
  text-align:right;
  color:var(--skin-muted,#bfc0c8);
}

.file.selected {
  color:#201c23;
  background:#dca9c6;
}

.file.selected .price {
  color:#353039;
}

.pages {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:3px;
  font:10px var(--mono);
  color:var(--dim);
  padding:3px 5px;
  border-top:1px solid var(--line);
  min-height:22px;
}

.pages button {
  min-height:18px;
  height:18px;
  border:0;
  background:transparent;
  padding:0;
}

.pages button svg {
  width:13px;
}

.tagline {
  display:flex;
  align-items:center;
  gap:4px;
  min-height:30px;
  padding:3px 7px;
  background:var(--skin-surface,#31333a);
  border-top:1px solid var(--line);
  overflow:hidden;
}

.tagline>span {
  font-size:10px;
  font-weight:bold;
  color:var(--dim);
}

.tag {
  font:10.5px inherit;
  font-size:10.5px;
  background:var(--skin-button,#44464f);
  border:1px solid var(--skin-border,#555862);
  border-radius:3px;
  padding:2px 5px;
  min-height:19px;
  white-space:nowrap;
}

.tagline .iconbutton {
  margin-left:auto;
  border:0;
  background:transparent;
  min-height:20px;
}

.audition {
  display:flex;
  align-items:center;
  gap:6px;
  padding:4px 6px;
  background:var(--skin-workspace,#292b30);
  border-top:1px solid var(--line);
  height:31px;
}

.audition canvas {
  flex:1;
  min-width:0;
  height:18px;
}

.audition button {
  min-height:20px;
  height:20px;
  font-size:11px;
}

.audition #audition {
  width:25px;
  padding:0;
}

.audition .iconbutton svg {
  width:10px;
}

.empty {
  padding:14px 9px;
  line-height:1.45;
  color:var(--skin-muted,#bbbfc7);
  font-size:12px;
}

.session {
  display:flex;
  flex-direction:column;
}

.session-body {
  flex:1;
  min-height:0;
  display:flex;
  overflow:auto;
  background:var(--skin-workspace,#292b30);
  isolation:isolate;
}

#tracks {
  display:flex;
  flex:1;
  min-width:max-content;
}

.strip {
  --track:#aaa;
  min-width:102px;
  flex:1 0 102px;
  max-width:194px;
  display:flex;
  flex-direction:column;
  border-right:2px solid var(--line);
  background:var(--panel);
  min-height:100%;
}

.strip:nth-child(even) {
  background:var(--skin-surface,#303239);
}

.trackhead {
  background:var(--track);
  height:30px;
  flex:none;
  display:flex;
  align-items:center;
  color:#1e1e24;
  padding:0 6px;
  gap:6px;
  min-width:0;
}

.trackhead strong {
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.trackhead .number {
  font:600 10px var(--mono);
  opacity:.75;
}

.trackhead button {
  background:transparent;
  border:0;
  min-height:18px;
  color:inherit;
  margin-left:auto;
  width:16px;
  opacity:.7;
  padding:0;
}

.trackhead button svg {
  width:13px;
}

.slots {
  flex:0 0 var(--slotsh,150px);
  overflow:auto;
  scrollbar-width:none;
}

.slots::-webkit-scrollbar {
  display:none;
}

.slot {
  height:25px;
  display:flex;
  align-items:center;
  min-width:0;
  border-top:2px solid var(--line);
  color:#191a1e;
  background:var(--track);
  cursor:pointer;
  padding-right:3px;
}

.slot .clipname {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11.5px;
  font-weight:535;
  flex:1;
}

.slot button,.scene-row button {
  border:0;
  border-radius:0;
  background:transparent;
  color:inherit;
  padding:0;
  min-height:20px;
  width:22px;
  flex:none;
}

.slot button svg,.scene-row button svg {
  width:17px;
  height:17px;
}

.slot.filled button {
  border-right:1px solid #0003;
  margin-right:4px;
}

.slot.is-selected {
  background:#8bc6ed;
  box-shadow:inset 0 0 0 1px #5299cd;
}
.slot.filled:not(.is-selected) { background:var(--clip-colour, var(--track)); }
.slot.is-selected button { background:var(--clip-colour, transparent); }
.slot:focus-visible { outline:1px solid #a6d8f6; outline-offset:-2px; }
.slot.empty-slot:focus { box-shadow:inset 0 0 0 1px #5299cd; }
.slot .clip-rename { min-width:0; width:100%; height:19px; padding:0 2px; font:inherit; }

.clip-menu {
  position:fixed; z-index:100; width:204px; max-width:calc(100vw - 8px);
  max-height:calc(100dvh - 8px); overflow:auto; padding:4px 0;
  border:1px solid var(--skin-border,#70727a); border-radius:3px; background:var(--skin-surface,#24262b);
  box-shadow:0 4px 14px #0008; color:var(--skin-fg,#e0e1e4);
}
.clip-menu[hidden] { display:none; }
.clip-menu > button {
  display:flex; align-items:center; justify-content:space-between; width:100%;
  border:0; border-radius:0; color:inherit; background:transparent; padding:3px 11px;
  font:inherit; font-size:12px; min-height:23px; text-align:left;
}
.clip-menu > button:is(:hover,:focus-visible):enabled { background:var(--skin-hover,#404b58); outline:0; }
.clip-menu > button:disabled { opacity:.35; }
.clip-menu kbd { font:inherit; color:var(--skin-muted,#b8bac2); margin-left:12px; }
.clip-menu > :is([data-command="rename"],[data-command="similar"],[data-command="crop"]) {
  border-top:1px solid var(--skin-border,#4b4d54);
}
.clip-colours {
  display:flex; flex-wrap:nowrap; justify-content:space-between; gap:4px;
  border-top:1px solid var(--skin-border,#4b4d54); padding:7px 10px 3px;
}
.clip-colours button {
  flex:1; min-width:0; min-height:16px; height:16px; padding:0;
  border:1px solid #0004; border-radius:1px; background:var(--colour);
}
.clip-colours button:is(:hover,:focus-visible,[aria-checked="true"]) {
  outline:1px solid white; outline-offset:1px;
}

.slot.empty-slot {
  background:var(--skin-raised,#35373f);
  color:var(--skin-border,#202126);
}

.slot.empty-slot:nth-child(even) {
  background:var(--skin-alternate,#303239);
}

.slot.empty-slot svg {
  width:15px;
  height:15px;
}

.slot.sounding button {
  color:#00ff99;
  background:#1d2923;
}

.slot.queued button,.scene-row.queued {
  animation:blink .65s infinite alternate;
}

.drop-target {
  box-shadow:inset 0 0 0 2px var(--pink)!important;
  background:#63495c!important;
}

.channel-status {
  display:flex;
  align-items:center;
  gap:6px;
  height:23px;
  flex:none;
  background:var(--skin-chrome,#27292f);
  border-block:2px solid var(--line);
  padding:0 5px;
  color:var(--skin-muted,#a5a8b1);
  font:9.5px var(--mono);
}

.channel-status button {
  padding:0;
  background:none;
  border:0;
  color:#9ca0aa;
  min-height:17px;
  width:16px;
}

.channel-status svg {
  width:10px;
}

.channel-status output {
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.mix {
  min-height:108px;
  flex:1;
  display:flex;
  flex-direction:column;
  padding:8px 7px 5px;
  border-bottom:4px solid var(--track);
  background:linear-gradient(90deg,#ffffff02,transparent);
}

.mix-top,.mix-btm {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px;
}

.mix-top {
  min-height:19px;
}

.smallcap {
  font:9px var(--mono);
  color:var(--skin-muted,#afb0b9);
  letter-spacing:.7px;
}

.readout {
  font:10.5px var(--mono);
  background:var(--skin-field,#222429);
  border:1px solid #16171b;
  color:#dedfe4;
  border-radius:2px;
  padding:2px 4px;
  white-space:nowrap;
}

.fader-area {
  display:flex;
  justify-content:center;
  align-items:stretch;
  flex:1;
  min-height:50px;
  max-height:268px;
  margin:5px 0;
  gap:3px;
}

.meter {
  width:8px;
  position:relative;
  background:#16181b;
  overflow:hidden;
  border:1px solid #151619;
  border-radius:2px;
}

.meter:after {
  content:"";
  position:absolute;
  inset:0;
  background:repeating-linear-gradient(to top,transparent 0 4px,#14161b99 4px 5px);
}

.meter div {
  position:absolute;
  bottom:0;
  height:0;
  width:100%;
  background:linear-gradient(to top,#56c68a,#a2e8a3 85%,#f5d872);
}

.v-fader {
  width:22px;
  position:relative;
  min-height:25px;
  touch-action:none;
  cursor:ns-resize;
}

.v-fader:before {
  content:"";
  position:absolute;
  inset:0 calc(50% - 2px);
  background:#18191c;
  border-radius:2px;
}

.v-fader b {
  position:absolute;
  top:var(--pos);
  left:2px;
  right:2px;
  height:7px;
  transform:translateY(-50%);
  border:1px solid #9a9ca6;
  border-radius:1px;
  background:linear-gradient(to bottom,#bbbdc4 43%,#494b52 45%,#494b52 58%,#a3a6af 60%);
  box-shadow:0 1px 3px #131417;
}

.ticks {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  color:#91959f;
  font:8.5px var(--mono);
  width:19px;
  pointer-events:none;
}

.mix-btm {
  margin-top:auto;
  justify-content:center;
  padding-top:3px;
}

.mix-btm button {
  min-height:21px;
  min-width:25px;
  font:600 10px var(--mono);
  padding:1px 5px;
  background:#25272c;
  border-color:#51535d;
}

.mix-btm .activator.on {
  background:var(--track);
  color:#201f23;
  border-color:var(--track);
}

.mix-btm .solo.on {
  background:#82b6ed;
  color:#172638;
}

.pan {
  width:18px;
  height:18px;
  border-radius:50%;
  position:relative;
  background:#383b42;
  border:2px solid #16171c;
  cursor:ew-resize;
  touch-action:none;
  margin:0 2px;
}

.pan:after {
  content:"";
  width:2px;
  height:7px;
  background:#c8cad1;
  position:absolute;
  top:0;
  left:6px;
  transform-origin:center 7px;
  transform:rotate(var(--angle,0deg));
}

.trackspace {
  flex:1;
  min-width:8px;
  background:repeating-linear-gradient(to bottom,var(--skin-surface,#303238) 0 23px,var(--skin-border,#26282d) 23px 25px) 0 30px/100% var(--slotsh) no-repeat;
}

#main-strip {
  flex:0 0 100px;
  position:sticky;
  right:0;
  background:var(--skin-surface,#32343b);
  border-left:3px solid var(--skin-border,#1b1c20);
  z-index:2;
  display:flex;
}

#main-strip .strip {
  min-width:0;
  flex:1;
  border-right:0;
}

.scene-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 6px 0 1px;
  font-size:11.5px;
  gap:3px;
  height:25px;
  border-top:2px solid var(--line);
  cursor:pointer;
  background:var(--skin-raised,#3d3f46);
}

.scene-row span {
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.scene-row.sounding {
  background:#56604b;
  color:#d7efb5;
}

.scene-row em {
  font:9px var(--mono);
  opacity:.65;
}

.scene-row button {
  width:14px;
}

.main-label {
  margin-left:auto;
  font-size:9px;
  opacity:.7;
}

.master-label {
  font:10px var(--mono);
  color:var(--skin-muted,#b8bac1);
}

.editor {
  display:flex;
  flex-direction:column;
}

.clip-head {
  height:32px;
  flex:none;
}

.clip-head h2 {
  font-size:12px;
}

.clip-head h2 i {
  color:var(--pink);
}

#clip-title {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.swatch {
  width:8px;
  height:8px;
  background:var(--track,var(--pink));
  border-radius:1px;
  flex:none;
}

.clip-head #format {
  font:10px var(--mono);
}

.editor-body {
  flex:1;
  min-height:0;
  display:flex;
}

.editor-body #parameters {
  width:clamp(230px,21%,385px);
  flex:none;
  background:var(--skin-surface,#303239);
  overflow:auto;
  border-right:3px solid var(--line);
  padding:8px 10px;
}

.params-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:6px 9px;
}

.param {
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
  color:var(--skin-muted,#c0c3ca);
  font-size:10.5px;
}

.param input,.param select {
  width:100%;
  height:21px;
  font:11px var(--mono);
}

.clip-timing { display:contents; }
.clip-dial-row {
  display:grid;
  grid-template-columns:24px minmax(0,1fr);
  align-items:center;
  gap:4px;
}
.clip-dial-row input { min-width:0; }
.clip-dial {
  --dial-size:20px;
  --knob-origin:0deg;
  display:grid;
  place-items:center;
  min-height:24px;
  cursor:ns-resize;
  touch-action:none;
  user-select:none;
}
.clip-dial .rotary-face { --cap:3px; }
.clip-dial[role="slider"]:focus-visible { outline:1px solid var(--pink); border-radius:3px; }

.param output {
  height:21px;
  color:var(--skin-fg,#efeff1);
  background:var(--skin-field,#27292f);
  padding:3px 6px;
  border:1px solid var(--skin-border,#1c1d20);
  border-radius:2px;
  overflow:hidden;
  white-space:nowrap;
}

.clip-timing>button {
  height:23px;
  min-height:20px;
  font-size:11px;
}

.inlinefields {
  display:flex;
  gap:2px;
}

.inlinefields button {
  font:9px var(--mono);
  padding:0 3px;
  min-height:19px;
}

.params-foot {
  border-top:1px solid var(--skin-border,#454850);
  padding-top:5px;
  margin-top:7px;
  font:9.5px var(--mono);
  color:var(--skin-muted,#a4a8b1);
}

.wave-panel {
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
}

.wave-tools {
  height:26px;
  background:var(--skin-surface,#2b2d33);
  border-bottom:1px solid var(--skin-border,#202126);
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 5px 0 10px;
  font-size:10.5px;
  font-weight:600;
}

.wave-tools>span:first-child {
  color:var(--pink);
}

#wave-info {
  color:var(--skin-muted,#adb0b9);
  font:10px var(--mono);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.zoom-controls {
  display:flex;
  margin-left:auto;
  align-items:center;
  gap:2px;
}

.zoom-controls label {
  display:flex;
  align-items:center;
  gap:4px;
  color:var(--skin-muted,#aeb1ba);
}

.zoom-controls select,.zoom-controls button {
  font-size:10px;
  min-height:18px;
  height:18px;
  padding:0 4px;
}

.zoom-controls svg {
  width:11px;
  height:11px;
}

#wave-wrap {
  position:relative;
  flex:1;
  min-height:0;
}

#wave,#overview {
  display:block;
  width:100%;
  height:100%;
  touch-action:none;
}

#wave-cue {
  position:absolute;
  top:51px;
  bottom:17px;
  border-left:1px dashed var(--wave-edge,#eee);
  pointer-events:none;
}
#wave-cue::before {
  content:"";
  position:absolute;
  left:-5px;
  border-top:8px solid #fff;
  border-inline:4px solid transparent;
}

#wave-empty {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#bbc0c8;
  pointer-events:none;
  font-size:12px;
}

.overview {
  height:18px;
  flex:none;
  background:#24262c;
  border-top:1px solid var(--skin-border,#17181c);
}

footer {
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 11px;
  min-width:0;
  color:var(--skin-muted,#b7b9c2);
  font-size:11px;
}

.status-indicator {
  background:#85b79c;
  border-radius:50%;
  width:6px;
  height:6px;
  flex:none;
}

#status {
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.footer-right {
  display:flex;
  align-items:center;
  gap:6px;
  margin-left:auto;
  white-space:nowrap;
}

.footer-right i svg,.footer-right a svg {
  height:12px;
  width:12px;
}

.footer-right a {
  display:inline-flex;
  align-items:center;
  gap:4px;
  text-decoration:none;
  color:inherit;
  background:transparent;
  border:0;
  min-height:18px;
  font-size:11px;
  padding:0 3px;
}

.footer-right a:hover,.footer-right a:focus-visible { text-decoration:underline; }

.footer-sep {
  height:12px;
  width:1px;
  background:var(--skin-border,#4a4c53);
  margin:0 4px;
}

.empty-editor {
  color:var(--skin-muted,#a9abb6);
  line-height:1.5;
  font-size:12px;
}

dialog,#cart {
  background:var(--skin-surface,#303238);
  border:1px solid var(--skin-border,#5b5e69);
  color:var(--text);
  border-radius:6px;
  box-shadow:0 16px 64px #0009;
}

dialog {
  padding:0;
  width:min(440px,92vw);
  max-height:86vh;
}

dialog::backdrop,#cart-shade {
  background:#11121780;
}

dialog header,#cart header {
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:space-between;
  background:var(--skin-raised,#393c44);
  border-bottom:1px solid var(--skin-border,#202126);
  padding:11px 14px;
}

dialog header h2,#cart h2 {
  font-size:15px;
  display:flex;
  align-items:center;
  gap:8px;
}

dialog header button,#cart header button {
  border:0;
  background:transparent;
}

.modalbody {
  padding:15px;
  display:grid;
  gap:13px;
  font-size:13px;
  line-height:1.45;
}

.modalbody > form { display:grid; gap:14px; min-width:0; }
.modalbody p { margin:0; }
.modalbody > form > button { justify-self:start; }
.modalbody > form > output:empty { display:none; }
.modalbody .controls button { min-height:28px; padding-inline:10px; }
.modalbody .danger-action { background:#55353f; border-color:#835563; color:#ffd8df; }

.modalbody p,.modalbody li {
  color:var(--skin-fg,#c7c9cf);
}

.modalbody ul,.modalbody ol {
  padding-left:18px;
  margin:0;
}

.modalbody li+li {
  margin-top:6px;
}

.modalbody select,.modalbody input {
  width:100%;
  height:29px;
}

.modalbody .formgrid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.modalbody .controls {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.primary {
  background:var(--pink);
  color:#261b24;
  border-color:var(--pink);
}

.detailfile {
  font:12px var(--mono);
  overflow-wrap:anywhere;
  color:var(--skin-accent-ink,#f0d5e4);
}

.subtle {
  font-size:11px;
  color:var(--skin-muted,#abafb8);
}

.warning {
  color:#f0bd90;
}

#cart-shade {
  position:fixed;
  inset:0;
  z-index:5;
}

#cart {
  position:fixed;
  z-index:6;
  right:7px;
  top:50px;
  bottom:26px;
  width:min(385px,94vw);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.cart-tools,.cart-foot {
  padding:12px;
  border-bottom:1px solid var(--line);
}

.cart-tools {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.cart-list {
  overflow:auto;
  flex:1;
}

.cart-row {
  padding:10px 9px;
  display:grid;
  grid-template-columns:17px minmax(0,1fr) auto 22px;
  align-items:center;
  gap:6px;
  border-bottom:1px solid var(--soft);
}

.cart-row input {
  accent-color:var(--pink);
  height:15px;
}

.cart-row strong {
  display:block;
  font-weight:550;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
}

.cart-row small {
  font-size:10px;
  color:var(--dim);
}

.cart-row .money {
  font:11px var(--mono);
}

.cart-row button {
  background:none;
  border:0;
  padding:0;
  min-width:15px;
  color:var(--skin-muted,#b6bac3);
}

.cart-foot {
  display:grid;
  gap:10px;
  border:0;
  border-top:1px solid var(--line);
  background:var(--skin-surface,#282a30);
}

.cart-total {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.cart-total strong {
  font:600 19px var(--mono);
}

.cart-foot .primary {
  min-height:32px;
}
.cart-checkout,.checkout-setup,.checkout-setup label { display:grid; gap:6px; }
.cart-checkout a { color:var(--skin-link,#b3cfea); }
.cart-checkout small { color:var(--dim); line-height:1.45; }
.checkout-setup { padding:8px; background:var(--skin-surface,#25272d); border:1px solid var(--line); }
.checkout-setup input { width:100%; min-width:0; }
.cart-foot { max-height:75%; overflow:auto; }

.cart-empty {
  padding:20px 13px;
  line-height:1.5;
  color:var(--dim);
}

.cart-empty b {
  display:block;
  color:var(--text);
  margin-bottom:4px;
}

.cart-checks {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.textbtn {
  border:0;
  background:transparent;
  color:var(--pink);
}

.add-to-cart-lbl {
  font-size:11px;
}

.error-text {
  color:#ffb9a8;
}

::-webkit-scrollbar {
  width:6px;
  height:7px;
}

::-webkit-scrollbar-track {
  background:var(--skin-scroll-track,#25272c);
}

::-webkit-scrollbar-thumb {
  background:var(--skin-scroll-thumb,#52555e);
  border-radius:5px;
}

@keyframes blink {
  to {
    opacity:.4;
  }
}

@media(min-height:850px) {
  :root {
    font-size:14px;
  }
  .file {
    min-height:32px;
  }
  .nav-btn {
    min-height:28px;
  }
  .pane-head {
    height:39px;
  }
  .clip-head {
    height:33px;
  }
  .mix {
    padding:12px 10px 8px;
  }
  .params-grid {
    gap:9px 10px;
  }
  .param {
    font-size:12px;
  }
  .param input,.param output {
    height:25px;
  }
  .clip-timing>button {
    height:25px;
  }
}

@media(max-width:1100px) {
  .transport {
    gap:12px;
  }
  .playgroup {
    position:static;
    transform:none;
    margin-left:auto;
  }
  .top-right {
    margin-left:auto;
  }
  .session-title {
    display:none;
  }
  .upper {
    grid-template-columns:310px minmax(0,1fr);
  }
  .strip {
    min-width:94px;
    flex-basis:94px;
  }
  #main-strip {
    flex-basis:84px;
  }
  .browser nav {
    min-width:87px;
  }
  .session .actions button {
    font-size:10.5px;
  }
  .brand {
    font-size:15px;
  }
  .tempo-block .signature {
    display:none;
  }
}

@media(max-height:690px) and (min-width:791px) {
  body {
    grid-template-rows:45px minmax(0,1fr) 23px;
  }
  main {
    grid-template-rows:minmax(0,1fr) 204px;
  }
  .slots {
    flex-basis:min(var(--slotsh),100px);
  }
  .mix {
    padding-top:4px;
  }
  .fader-area {
    margin:3px 0;
  }
  .param {
    font-size:10px;
  }
  .params-grid {
    gap:4px 7px;
  }
  .pane-head {
    height:30px;
  }
}

@media(max-width:790px) {
  body {
    height:auto;
    min-height:100dvh;
    overflow:auto;
    display:block;
  }
  .transport {
    position:sticky;
    top:0;
    z-index:4;
    flex-wrap:wrap;
    gap:7px;
    padding:7px 9px;
  }
  .brand {
    margin-right:auto;
  }
  .top-right {
    order:1;
    margin-left:0;
  }
  .tempo-block {
    order:2;
  }
  .playgroup {
    order:3;
  }
  .upper {
    display:flex;
    flex-direction:column;
    gap:6px;
  }
  .browser {
    height:290px;
    flex:none;
  }
  .session {
    height:432px;
    flex:none;
  }
  main {
    display:flex;
    flex-direction:column;
    padding:5px;
    gap:6px;
  }
  .editor {
    min-height:255px;
  }
  .editor-body {
    min-height:218px;
  }
  .editor-body #parameters {
    width:195px;
  }
  .file-head,.file {
    grid-template-columns:minmax(0,1fr) 59px;
  }
  .trackspace {
    min-width:2px;
  }
  .transport #sync {
    font-size:11px;
  }
  .clip-head #format {
    display:none;
  }
  footer {
    height:27px;
  }
  .footer-right {
    font-size:0;
  }
  .session-title {
    display:inline;
  }
  .browser nav {
    max-width:none;
    width:30%;
  }
}

@media(max-width:510px) {
  .transport {
    display:grid;
    grid-template-columns:1fr auto;
  }
  .tempo-block,.playgroup {
    margin:0;
  }
  .playgroup {
    justify-content:flex-end;
  }
  .brand {
    font-size:15px;
  }
  .cart-btn {
    font-size:11px;
  }
  .tempo-block .signature {
    display:block;
  }
  .top-right {
    justify-content:flex-end;
  }
  .editor-body {
    flex-direction:column-reverse;
  }
  .wave-panel {
    height:197px;
    flex:none;
  }
  .editor-body #parameters {
    width:100%;
    border-right:0;
    border-top:2px solid var(--line);
  }
  .params-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .clip-head {
    gap:6px;
  }
  .session-title {
    display:none;
  }
  .footer-right {
    gap:0;
  }
  .file-count {
    font-size:9.5px;
  }
  .params-foot:not(:has(button)) {
    display:none;
  }
}

.places-column {
  flex:0 0 32%;
  min-width:92px;
  max-width:195px;
  display:flex;
  flex-direction:column;
  border-right:2px solid var(--line);
  background:var(--skin-workspace,#292b30);
  min-height:0;
}

.browser .places-column nav {
  flex:1;
  width:100%;
  min-width:0;
  max-width:none;
  border-right:0;
  padding-top:1px;
}

.nav-btn.nested {
  padding-left:18px;
}

.session-title:after {
  content:'⌄';
  margin-left:5px;
  color:var(--skin-muted,#bfc2c9);
}

.session-title:hover {
  color:var(--skin-fg,#fff);
}

#tracks {
  min-width:0;
  flex:1 0 calc(var(--n,5)*102px + 8px);
}

.strip {
  width:0;
  min-width:102px;
}

.trackspace {
  flex:0 1 20px;
  min-width:5px;
}

.ticks {
  position:relative;
}

.ticks span {
  position:absolute;
  transform:translateY(-50%);
}

.ticks span:first-child {
  top:0;
  transform:none;
}

.ticks span:nth-child(2) {
  top:15.5%;
}

.ticks span:nth-child(3) {
  top:46.5%;
}

.ticks span:nth-child(4) {
  top:66.2%;
}

.ticks span:last-child {
  bottom:0;
  transform:none;
}

.session-body {
  scrollbar-color:var(--skin-scroll-thumb,#52555e) var(--skin-scroll-track,#25272c);
}

.places-column .nav-btn {
  font-weight:450;
}

.upper {
  position:relative;
}

.pane-head .session-title {
  display:block;
}

@media(max-width:1100px) {
  #tracks {
    flex-basis:calc(var(--n,5)*94px + 5px);
  }
  .strip {
    min-width:94px;
  }
  .session .pane-head {
    gap:5px;
  }
  .session-title {
    max-width:125px;
    min-width:25px;
    padding-left:5px;
  }
}

@media(max-width:790px) {
  .places-column {
    max-width:none;
  }
  .session-title {
    max-width:145px;
  }
}

@media(max-width:510px) {
  .session-title {
    max-width:85px;
  }
  .session .pane-head h2 {
    font-size:11px;
  }
}

.add-place {
  display: grid;
  border-top: 1px solid var(--line);
  background: var(--skin-surface,#303238);
}

.add-place .nav-btn {
  min-height: 24px;
  padding: 3px 5px;
  gap: 4px;
  font-size: 11px;
  white-space: normal;
}

.import-note {
  flex: none;
  margin: 0;
  padding: 4px 8px;
  border-top: 1px solid var(--line);
  background: var(--skin-workspace,#292b30);
  color: var(--skin-fg,#d2d3da);
  font-size: 11px;
  line-height: 1.35;
}

.import-note a {
  color: var(--skin-link,#a8dfe8);
  white-space: nowrap;
  text-underline-offset: 2px;
}

main {
  position:relative;
}

.divider {
  position:absolute;
  z-index:3;
  touch-action:none;
}

.divider:hover,.divider:focus-visible {
  background:#f296c65e;
}

.browser-divider {
  left:var(--browser-width,clamp(320px,31.5%,610px));
  top:0;
  bottom:0;
  width:6px;
  cursor:col-resize;
}

.editor-divider {
  grid-row:2 / 3;
  top:-6px;
  height:6px;
  left:7px;
  right:7px;
  cursor:row-resize;
}

@media(min-width:791px) {
  .upper {
    grid-template-columns:var(--browser-width,clamp(320px,31.5%,610px)) minmax(0,1fr);
  }
  main {
    grid-template-rows:minmax(0,1fr) var(--editor-height,clamp(220px,30.5vh,405px));
  }
}

@media(max-width:790px) {
  .divider {
    display:none;
  }
}

@media(min-width:791px) and (max-height:690px) {
  main {
    grid-template-rows:minmax(0,1fr) var(--editor-height,204px);
  }
}

/* The triangle and open ring use the same face at every mixer/device size. */
.rotary-face {
  --cap:calc(var(--dial-size,30px) * .20);
  --stroke:max(1.6px,calc(var(--dial-size,30px) * .085));
  --ink:var(--skin-dial-ink,#0d0d0f);
  display:block;
  position:relative;
  width:var(--dial-size,30px);
  height:calc(var(--dial-size,30px) + var(--cap));
  pointer-events:none;
}
.rotary-face::before {
  content:""; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:30%; height:var(--cap); background:var(--cap-color,var(--ink));
  clip-path:polygon(0 0,100% 0,50% 100%);
}
.rotary-face i { position:absolute; inset:var(--cap) 0 0; }
.rotary-face i::before {
  --from:calc(135deg + min(var(--knob-angle),var(--knob-origin,-135deg)));
  --to:calc(135deg + max(var(--knob-angle),var(--knob-origin,-135deg)));
  content:""; position:absolute; inset:0; border-radius:50%;
  background:conic-gradient(from 225deg,var(--ink) 0 var(--from),var(--knob-highlight) var(--from) var(--to),var(--ink) var(--to) 270deg,transparent 270deg);
  mask:radial-gradient(closest-side,transparent calc(100% - var(--stroke) - .3px),#000 calc(100% - var(--stroke) + .4px));
}
.rotary-face i::after {
  content:""; position:absolute; inset:0; transform:rotate(var(--knob-angle));
  background:linear-gradient(var(--ink),var(--ink)) center top / var(--stroke) 53% no-repeat;
}
[role="slider"]:is(:hover,:focus) .rotary-face,.strip-pan:focus-within .rotary-face {
  --cap-color:var(--knob-highlight);
}
[role="slider"]:has(.rotary-face):focus { outline:0; }

.places-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.places-title button {
  background:transparent;
  border:0;
  width:17px;
  min-height:15px;
  padding:0;
  color:var(--skin-muted,#a8abb4);
}

.places-title svg {
  width:11px;
  height:11px;
}

.stereo-meter {
  width:11px;
  display:flex;
  align-items:stretch;
  gap:1px;
  background:#24262b;
}

.stereo-meter .meter {
  width:5px;
  border:0;
  border-radius:1px;
}


.metronome-controls { display:flex; align-items:center; position:relative; }
#metronome { width:27px; height:100%; padding:3px; border-radius:3px 0 0 3px; }
#metronome svg { width:18px; height:18px; display:block; margin:auto; }
#metronome[aria-pressed="true"] { background:var(--pink); color:#17181b; }
#metronome-level {
  --dial-size:17px; --knob-highlight:var(--pink);
  display:grid; place-items:center; height:100%; width:25px; background:var(--skin-button,#393b42);
  border:1px solid var(--skin-border,#45474e); border-left:0; border-radius:0 3px 3px 0; cursor:ns-resize; touch-action:none;
}
#metronome-level:focus-visible { outline:2px solid var(--pink); outline-offset:-2px; }
#metronome-level:is(:hover,:focus-visible,:active)::after {
  content:attr(data-value); position:absolute; top:100%; right:0; margin-top:3px;
  z-index:5; white-space:nowrap; background:#22242a; color:#eee; padding:3px 5px; border-radius:3px;
  font:10px var(--mono); pointer-events:none;
}
@media (max-width:510px) {
  .transport .tempo-block { grid-column:1/-1; }
  .transport .playgroup { grid-column:1/-1; justify-content:flex-start; }
}

.edit-arrows { display:inline-flex; gap:1px; align-items:center; }
.edit-arrows button { display:grid; place-items:center; padding:0; min-height:24px; width:24px; border:0; background:transparent; }
.edit-arrows button:disabled { opacity:.35; }
.edit-arrows svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linejoin:round; stroke-linecap:round; }
@media (min-width:1101px) and (max-width:1400px) {
  .transport .playgroup { position:static; transform:none; margin-inline:auto; }
}
