@font-face {
  font-family: Montserrat;
  src: url(fonts/montserrat.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "League Spartan";
  src: url(fonts/league-spartan.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: GeistMono;
  src: url(fonts/geistmono.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0b0d0f;
  --side: #111315;
  --panel: #191817;
  --raised: #252321;
  --line: #393633;
  --strong-line: #58514b;
  --fg: #f4f0e8;
  --muted: #c0b9ae;
  --subtle: #aaa49b;
  --gold: #f3b644;
  --gold-ink: #2b1c05;
  --amber-bg: #33291b;
  --amber-line: #806232;
  --kick: #ffb397;
  --mono: GeistMono, ui-monospace, SFMono-Regular, Consolas, monospace;
  --display: "League Spartan", Montserrat, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    14px Montserrat,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
a,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 600;
}
button:hover {
  filter: brightness(1.17);
}
button:disabled {
  opacity: 0.32;
  cursor: default;
  filter: none;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
svg.i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button.primary,
.accentSoft,
.ghost,
.icon {
  border-radius: 6px;
}
.mast {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 19px;
  border-bottom: 1px solid var(--line);
  background: var(--side);
  padding: 0 27px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--fg);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -1.1px;
}
.brand img {
  width: 35px;
  height: 35px;
}
.brand b {
  font-weight: 400;
  color: var(--fg);
}
.brandby {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.headtools,
.paneltitle,
.zoom,
.blockacts,
.transport,
.clipActions,
.keyline,
.underwave,
.dialoghead,
.rowctrl {
  display: flex;
  align-items: center;
}
.headtools {
  margin-left: auto;
  gap: 5px;
}
.headtools i {
  height: 20px;
  border-left: 1px solid var(--line);
  margin: 0 5px;
}
.icon,
.linkicon {
  width: 32px;
  height: 32px;
  color: var(--muted);
  padding: 0;
}
.icon:hover,
.linkicon:hover {
  background: var(--raised);
}
.primary {
  min-height: 38px;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 0 15px;
  font-size: 12px;
  margin-left: 10px;
}
.shell {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: calc(100vh - 111px);
}
aside {
  padding: 25px 15px 14px;
  background: var(--side);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.sidehead,
.sidebottom,
.panelhead,
.projecthead,
.blockbar,
.arrangefoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidehead {
  padding: 0 7px;
  margin: 2px 0 17px;
}
h1,
h2,
p {
  margin: 0;
}
h2 {
  font: 650 19px/1.12 var(--display);
  letter-spacing: -0.025em;
}
.counter,
.countbadge {
  font: 11px var(--mono);
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--raised);
  padding: 3px 6px;
  border-radius: 4px;
}
.track {
  display: flex;
  width: 100%;
  padding: 11px 9px;
  border-radius: 7px;
  gap: 9px;
  margin-bottom: 7px;
  text-align: left;
  border: 1px solid transparent;
  justify-content: flex-start;
  min-width: 0;
}
.track.selected {
  background: var(--raised);
  border-color: var(--strong-line);
  box-shadow: inset 2px 0 0 var(--track);
}
.track:not(.selected):hover {
  background: var(--raised);
}
.fileicon {
  height: 36px;
  width: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--track);
  border: 1px solid color-mix(in srgb, var(--track) 30%, transparent);
  background: color-mix(in srgb, var(--track) 10%, transparent);
  border-radius: 5px;
}
.fileicon svg {
  width: 20px;
  height: 20px;
}
.trackcopy {
  min-width: 0;
  flex: 1;
}
.trackcopy strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
}
.trackcopy small {
  color: var(--muted);
  font: 10px var(--mono);
  display: block;
  margin-top: 5px;
}
.srcletter {
  font: 10px var(--mono);
  color: var(--track);
}
.import {
  border: 1px dashed var(--strong-line);
  border-radius: 6px;
  width: 100%;
  height: 39px;
  color: var(--fg);
  font-size: 12px;
  margin-top: 8px;
}
.status {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  padding: 9px 3px;
}
.sidebottom {
  justify-content: flex-start;
  gap: 8px;
  margin-top: auto;
  padding: 15px 4px 0;
  color: var(--muted);
  font-size: 11px;
}
.sidebottom button {
  margin-left: auto;
}
.diskdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}
.sidebottom .diskdot {
  background: var(--subtle);
}
main {
  padding: 28px clamp(20px, 3.2vw, 62px) 28px;
  min-width: 0;
  max-width: 1740px;
  width: 100%;
  margin: 0 auto;
}
.projecthead {
  margin-bottom: 23px;
  gap: 15px;
}
.eyebrow,
.smalllabel {
  font: 10px var(--mono);
  letter-spacing: 0.14em;
  color: var(--subtle);
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  margin-bottom: 6px;
}
.eyebrow:before {
  content: "";
  width: 15px;
  height: 2px;
  background: var(--gold);
}
h1 {
  font-family: var(--display);
  font-size: clamp(34px, 3.8vw, 58px);
  font-weight: 650;
  line-height: 1.09;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.sessionstat {
  display: flex;
  gap: 12px;
  align-items: center;
  font: 11px var(--mono);
  color: var(--muted);
}
.sessionstat span + span {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}
.panelhead {
  min-height: 54px;
  padding: 9px 18px;
  gap: 10px;
}
.paneltitle {
  gap: 9px;
  min-width: 0;
}
.panelicon {
  display: flex;
  color: var(--gold);
}
.sourcename {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.zoom {
  gap: 3px;
  color: var(--muted);
  font: 11px var(--mono);
}
.zoom .icon {
  width: 27px;
  height: 28px;
}
.zoom span {
  min-width: 27px;
  text-align: center;
}
.waveScroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #626967 #171b1d;
  background: var(--side);
}
.surface {
  height: clamp(156px, 21vh, 238px);
  position: relative;
  touch-action: pan-x;
  min-width: 100%;
  outline-offset: -2px;
}
.surface canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-x;
}
.waveEmpty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  pointer-events: none;
}
.waveEmpty[hidden] {
  display: none;
}
.underwave {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 7px 16px;
  min-height: 45px;
  gap: 10px;
}
.clock,
.transport strong {
  font: 13px var(--mono);
  font-variant-numeric: tabular-nums;
}
.clock {
  color: var(--gold);
  min-width: 68px;
}
.grow {
  flex: 1;
}
.textplay {
  font-size: 11px;
  color: var(--fg);
}
.textplay svg {
  width: 12px;
}
.icon[aria-pressed="true"] {
  background: var(--amber-bg);
  color: var(--gold);
}
.ghost,
.accentSoft {
  padding: 7px 10px;
  font-size: 11px;
  min-height: 30px;
}
.ghost {
  border: 1px solid var(--strong-line);
  color: var(--fg);
}
.accentSoft {
  background: var(--amber-bg);
  color: var(--gold);
  border: 1px solid var(--amber-line);
}
.sub svg,
.accentSoft svg {
  width: 14px;
  height: 14px;
}
.blockbar {
  padding: 13px 17px;
  gap: 10px;
}
.blockinfo {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex-wrap: wrap;
}
.blockinfo strong {
  font-size: 12px;
}
.subtext {
  font: 10px var(--mono);
  color: var(--muted);
}
.blockacts {
  gap: 6px;
}
.arrange {
  margin-top: 19px;
}
.arrange .panelhead {
  border-bottom: 1px solid var(--line);
}
#board {
  display: flex;
  align-items: stretch;
  gap: 5px;
  padding: 14px;
  min-height: 100px;
  overflow-x: auto;
  scrollbar-width: thin;
  background: repeating-linear-gradient(
    90deg,
    #171a1c 0,
    #171a1c calc(6.25% - 1px),
    #23272a calc(6.25% - 1px),
    #23272a 6.25%
  );
}
.clip {
  flex: 1 0 88px;
  position: relative;
  min-width: 88px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  color: var(--t);
  border: 1px solid color-mix(in srgb, var(--t) 43%, #282a2e);
  border-top: 3px solid var(--t);
  border-radius: 5px;
  background: color-mix(in srgb, var(--t) 14%, #161a1b);
  padding: 7px 8px 4px;
  gap: 3px;
  overflow: hidden;
  font-size: 11px;
}
.clip.active {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
  background: color-mix(in srgb, var(--t) 25%, #161a1b);
}
.clip strong {
  color: var(--fg);
  font-size: 11px;
  line-height: 13px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.clip small {
  font: 9px var(--mono);
}
.clip canvas {
  display: block;
  height: 19px;
  width: 100%;
  opacity: 0.75;
}
.boardEmpty {
  display: grid;
  place-items: center;
  min-height: 62px;
  text-align: center;
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  border: 1px dashed #42484a;
  border-radius: 5px;
}
.arrangefoot {
  padding: 9px 15px;
  border-top: 1px solid var(--line);
}
.transport {
  gap: 11px;
}
.circleplay {
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  width: 32px;
  height: 32px;
}
.circleplay svg {
  width: 14px;
  fill: currentColor;
}
.transport span {
  font: 10px var(--mono);
  color: var(--muted);
}
.clipActions {
  gap: 6px;
}
.clipActions button {
  width: 27px;
  height: 29px;
}
.keyline {
  gap: 21px;
  margin-top: 14px;
  font-size: 10px;
  color: var(--subtle);
}
.keyline span {
  display: flex;
  align-items: center;
  gap: 5px;
}
kbd {
  font: 10px var(--mono);
  background: var(--raised);
  border: 1px solid var(--line);
  padding: 2px 4px;
  border-radius: 3px;
  color: #c7ccc8;
}
footer {
  height: 41px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  background: var(--side);
  color: var(--subtle);
  padding: 0 25px;
  font-size: 10px;
}
footer > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footbrand {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.footbrand .i {
  width: 11px;
  height: 11px;
  vertical-align: middle;
}
.footbrand b {
  font-weight: 400;
}
.dialoghead {
  justify-content: space-between;
  margin-bottom: 15px;
}
dialog {
  border: 1px solid var(--strong-line);
  background: var(--raised);
  color: var(--fg);
  border-radius: 12px;
  padding: 20px;
  max-width: calc(100% - 28px);
  width: 400px;
  box-shadow: 0 18px 90px #0008;
}
dialog::backdrop {
  background: #050708ac;
}
dialog h2 {
  font-size: 19px;
}
dialog p,
dialog li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
dialog p + p {
  margin-top: 12px;
}
dialog ul {
  padding-left: 20px;
}
dialog label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  font-size: 12px;
  color: var(--fg);
}
dialog input,
dialog select {
  background: var(--side);
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  color: var(--fg);
  max-width: 60%;
  font: 13px var(--mono);
  padding: 8px;
}
dialog input[type="number"] {
  width: 110px;
}
.rowctrl {
  justify-content: flex-end;
  gap: 7px;
  margin-top: 13px;
  flex-wrap: wrap;
}
dialog .primary {
  margin: 0;
}
#toast {
  position: fixed;
  bottom: 23px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 25px #0009;
  background: var(--raised);
  border: 1px solid var(--amber-line);
  color: var(--fg);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  max-width: 90%;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: 0.18s;
}
#toast.show {
  opacity: 1;
}
.dragAudio .import {
  background: var(--amber-bg);
  border-color: var(--gold);
}
@media (min-width: 1450px) {
  .shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  main {
    padding-top: 38px;
  }
  .blockbar {
    padding: 17px;
  }
  .arrange {
    margin-top: 23px;
  }
  #board {
    min-height: 120px;
  }
  .panelhead {
    min-height: 61px;
  }
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  main {
    padding: 22px 18px;
  }
  .blockbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .blockinfo {
    min-height: 26px;
  }
  .blockacts {
    flex-wrap: wrap;
  }
  .keyline {
    gap: 10px;
  }
  .sessionstat {
    font-size: 10px;
  }
  .clipActions {
    gap: 2px;
  }
}
@media (max-width: 750px) {
  .mast {
    height: 59px;
    padding: 0 12px;
    gap: 7px;
  }
  .brand {
    font-size: 16px;
    gap: 7px;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .brandby,
  .headtools i {
    display: none;
  }
  .headtools {
    gap: 0;
  }
  .headtools .icon {
    width: 26px;
  }
  .primary {
    margin-left: 5px;
    padding: 0 9px;
    min-height: 33px;
    font-size: 11px;
  }
  .shell {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 100px);
  }
  aside {
    padding: 12px 13px 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 7px;
  }
  .sidehead {
    padding: 0;
    margin: 0;
  }
  .sidehead h2 {
    font-size: 12px;
  }
  .sidehead .counter,
  .sidebottom,
  .status:empty {
    display: none;
  }
  #tracks {
    display: flex;
    gap: 4px;
    overflow: auto;
  }
  .track {
    width: auto;
    max-width: 145px;
    min-width: 68px;
    margin: 0;
    padding: 6px;
    gap: 5px;
  }
  .track .fileicon {
    display: none;
  }
  .trackcopy strong {
    font-size: 10px;
  }
  .trackcopy small {
    font-size: 8px;
  }
  .import {
    width: 34px;
    height: 32px;
    overflow: hidden;
    font-size: 0;
    gap: 0;
    margin: 0;
  }
  .status {
    grid-column: 1/-1;
    padding: 0;
  }
  .projecthead {
    margin-bottom: 15px;
  }
  .sessionstat {
    display: block;
    text-align: right;
  }
  .sessionstat span {
    display: block;
  }
  .sessionstat span + span {
    border: 0;
    padding: 3px 0 0;
  }
  .sourcepanel .panelhead {
    padding: 6px 10px;
  }
  .sourcename {
    max-width: 110px;
  }
  .panelhead {
    padding: 7px 11px;
    min-height: 45px;
  }
  .blockbar {
    padding: 9px;
  }
  .blockacts {
    gap: 4px;
  }
  .blockacts button {
    font-size: 10px;
    padding: 5px 7px;
  }
  .underwave {
    padding: 4px 9px;
    gap: 5px;
  }
  .arrangefoot {
    padding: 8px;
  }
  main {
    padding: 17px 10px 22px;
  }
  #board {
    padding: 9px;
    min-height: 89px;
  }
  .keyline {
    display: none;
  }
  .arrange {
    margin-top: 13px;
  }
  .eyebrow {
    font-size: 9px;
  }
  footer {
    height: auto;
    min-height: 41px;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 8px 13px;
  }
  .sourcepanel .zoom {
    gap: 0;
  }
  .arrange .sub {
    font-size: 10px;
  }
  .sidebottom:has(.linkicon) {
    display: none;
  }
  .mobile-session {
    display: inline-flex;
  }
}
@media (max-width: 390px) {
  .mast .headtools #help {
    display: none;
  }
  .sessionstat {
    display: none;
  }
}

.snapwrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
}
.snapwrap select {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--fg);
  padding: 3px;
  font-size: 11px;
}
.cueRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.blockbar {
  flex-wrap: wrap;
  gap: 5px;
}
dialog hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 15px 0;
}
@media (max-width: 750px) {
  .underwave {
    flex-wrap: wrap;
  }
  .blockacts {
    flex-wrap: wrap;
  }
  .snapwrap {
    font-size: 0;
    gap: 0;
  }
  .headtools .primary {
    white-space: nowrap;
  }
}
[hidden] {
  display: none !important;
}

.mast {
  background: var(--side);
  color: var(--fg);
  border-color: var(--line);
  gap: 20px;
  padding: 0 clamp(16px, 4vw, 70px);
}
.brand {
  gap: 9px;
  color: var(--fg);
  font-size: 19px;
  letter-spacing: -0.045em;
}
.brand img {
  filter: brightness(0) invert(0.95);
  width: 28px;
  height: 34px;
}
.appname {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.viewnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}
.viewnav button,
.catTabs button {
  border-radius: 5px;
  font-weight: 590;
  color: var(--muted);
  padding: 7px 11px;
  font-size: 12px;
}
.viewnav button[aria-current="page"],
.catTabs button[aria-pressed="true"] {
  background: var(--amber-bg);
  box-shadow: inset 0 0 0 1px var(--amber-line);
  color: var(--gold);
}
.viewnav button:hover,
.catTabs button:hover {
  outline: 1px solid var(--strong-line);
}
.mast .icon {
  color: var(--fg);
}
.mast .icon:hover {
  background: var(--raised);
}
.mast .headtools i {
  border-color: var(--line);
}
[data-view="catalog"] .shell,
[data-view="editor"] #catalogView {
  display: none;
}
[data-view="catalog"] .headtools #export,
[data-view="catalog"] .headtools #undo:disabled,
[data-view="catalog"] .headtools #redo:disabled,
[data-view="catalog"] .headtools i {
  display: none;
}
[data-view="catalog"] {
  background: var(--bg);
  color: var(--fg);
}
#catalogView {
  color: var(--fg);
  width: min(100%, 1510px);
  padding: 28px clamp(16px, 4vw, 70px) 44px;
  margin: auto;
  min-height: calc(100vh - 111px);
  color-scheme: dark;
}
.catalogCols,
.catalogRow {
  display: grid;
  grid-template-columns:
    minmax(230px, 1.9fr) minmax(110px, 0.56fr) minmax(64px, 0.34fr)
    minmax(105px, 0.43fr) 28px;
  align-items: center;
  gap: 15px;
}
.catTools,
.catEnd,
.catalogCols,
.catalogRow {
  width: 100%;
}
.catTools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 26px 0 15px;
}
.catTabs,
.searchbox,
.record,
.catalogAction,
.catEnd {
  display: flex;
  align-items: center;
}
.catTabs {
  gap: 3px;
  flex-wrap: wrap;
}
.catTabs button {
  font-size: 13px;
  padding: 9px 13px;
}
.catTabs span {
  font: 10px var(--mono);
  opacity: 0.8;
}
.searchbox {
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  background: var(--side);
  gap: 9px;
  padding: 9px 12px;
  width: min(320px, 45%);
}
.searchbox input {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  background: none;
  color: var(--fg);
  font-size: 13px;
}
.searchbox:focus-within {
  outline: 2px solid var(--amber-line);
  outline-offset: 2px;
}
.catalogCols {
  font: 10px var(--mono);
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
}
.catalogRow {
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  border-radius: 0;
  white-space: normal;
  color: var(--fg);
  transition: background 0.12s;
}
.catalogRow:hover,
.catalogRow:focus-visible {
  background: var(--raised);
  filter: none;
  outline-color: var(--gold);
}
.record,
.recordText {
  min-width: 0;
}
.record {
  gap: 13px;
}
.record img,
.noCover {
  width: 43px;
  height: 43px;
  object-fit: cover;
  flex: none;
  border-radius: 4px;
}
.noCover {
  display: grid;
  place-items: center;
  background: var(--amber-bg);
  color: var(--gold);
}
.recordText {
  display: grid;
  gap: 2px;
}
.recordText strong {
  font-size: 15px;
  font-weight: 640;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.recordText small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 430;
}
.recordText i {
  font-style: normal;
  color: var(--subtle);
}
.catalogRow .numbers,
.cueCount {
  font: 12px var(--mono);
  font-variant-numeric: tabular-nums;
}
.numbers small {
  font-size: 10px;
  white-space: nowrap;
  color: var(--muted);
}
.takeCount {
  font-size: 11px;
  color: var(--muted);
  font-weight: 475;
}
.takeCount b {
  display: inline-flex;
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: 4px;
  color: var(--gold);
  font-weight: 550;
}
.openArrow {
  font-size: 18px;
  color: var(--gold);
  text-align: right;
}
.catEnd {
  justify-content: space-between;
  margin-top: 16px;
  color: var(--muted);
  font: 11px var(--mono);
}
.catEnd button,
.catFile,
.catalogMsg button {
  font:
    550 12px Montserrat,
    sans-serif;
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  padding: 8px 11px;
  color: var(--muted);
}
.catFile {
  margin-top: 18px;
}
.catalogMsg {
  padding: 22px 12px;
}
#catalogView .heroArt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#catalogView .heroArt {
  min-height: 155px;
  position: relative;
  overflow: hidden;
  background: #272c1f;
}
#catalogView > div:first-child {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(105deg, #211e19, var(--side) 64%);
}
#catalogView > div:first-child > div:first-child {
  padding: clamp(20px, 3.2vw, 45px);
  align-self: center;
}
#catalogView > div:first-child h1 {
  font-size: clamp(37px, 4.65vw, 70px);
  letter-spacing: -0.045em;
  font-weight: 640;
}
#catalogView > div:first-child p {
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.45;
  color: var(--muted);
  margin-top: 10px;
  max-width: 490px;
}
#catalogView > div:first-child .eyebrow {
  color: var(--gold);
  font-size: 11px;
  margin-bottom: 10px;
}
#catalogView > div:first-child .eyebrow:before {
  background: var(--gold);
  width: 7px;
  height: 7px;
}
.heroArt img {
  position: absolute;
  inset: 0;
}
.catalogAction {
  background: var(--amber-bg);
  color: var(--gold);
  border: 1px solid var(--amber-line);
  border-radius: 8px;
  margin: 8px 0 0;
  min-height: 39px;
  font-size: 12px;
}
.takesHeading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 2px 7px;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}
.takesHeading b {
  font: 11px var(--mono);
  color: var(--gold);
}
.versionBtn {
  width: 100%;
  padding: 7px 4px;
  text-align: left;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  white-space: normal;
  gap: 7px;
}
.versionBtn span {
  min-width: 0;
}
.versionBtn strong,
.versionBtn small {
  display: block;
}
.versionBtn strong {
  font-size: 11px;
  font-weight: 550;
}
.versionBtn small {
  font: 9px var(--mono);
  color: var(--muted);
  margin-top: 3px;
}
.versionBtn b {
  color: var(--gold);
  font-size: 17px;
  padding: 0 4px;
}
.track .fileicon {
  overflow: hidden;
}
.track .fileicon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#cueStrip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 9px 15px 4px;
  border-top: 1px solid var(--line);
}
.cueChip {
  color: var(--fg);
  border: 1px solid var(--amber-line);
  border-radius: 4px;
  font-size: 10px;
  padding: 5px 6px;
  gap: 5px;
}
.cueChip:hover {
  background: var(--amber-bg);
}
.cueChip i {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}
.cueChip span {
  font: 9px var(--mono);
  color: var(--muted);
}
#selectionStatus {
  font: 11px var(--mono);
  color: var(--gold);
  margin-top: 10px;
}
#audioState {
  padding: 7px 15px;
  color: #e1d4ae;
  font-size: 12px;
  background: #28271f;
  line-height: 1.5;
}
#audioState button {
  font-size: 12px;
  text-decoration: underline;
}
.cueOrigin {
  font-size: 9px;
  color: var(--muted);
  text-align: right;
}
.footbrand {
  color: inherit;
  text-decoration: none;
}
@media (max-width: 900px) {
  .mast {
    gap: 12px;
  }
  .appname {
    padding-left: 12px;
  }
  .viewnav {
    margin-left: 0;
  }
  .mast .headtools {
    gap: 1px;
  }
}
@media (max-width: 750px) {
  .mast {
    height: auto;
    min-height: 59px;
    flex-wrap: wrap;
    padding: 8px 13px;
    gap: 6px 9px;
  }
  .brand {
    font-size: 15px;
  }
  .brand img {
    width: 22px;
    height: 28px;
  }
  .appname {
    font-size: 12px;
    padding-left: 7px;
  }
  .viewnav {
    order: 3;
    width: 100%;
  }
  .viewnav button {
    padding: 4px 9px;
    font-size: 11px;
  }
  .mast .headtools {
    margin-left: auto;
  }
  .mast .headtools .primary {
    font-size: 0;
    width: 34px;
    gap: 0;
  }
  .catalogAction {
    margin: 0;
    padding: 6px;
    min-height: 31px;
    font-size: 10px;
  }
  .shell aside {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: baseline;
  }
  .shell #tracks {
    flex: 1 1 40%;
  }
  .shell #versions,
  .shell .status {
    width: 100%;
  }
  .shell #versions:not(:empty) {
    display: flex;
    gap: 4px;
    overflow: auto;
    align-items: stretch;
  }
  .takesHeading {
    margin: 1px 5px;
    align-self: center;
    gap: 5px;
    white-space: nowrap;
  }
  .versionBtn {
    flex: 0 0 140px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 4px;
  }
  .catTools {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    margin: 14px 0 9px;
  }
  .searchbox {
    width: 100%;
  }
  .catalogCols,
  .catalogRow {
    grid-template-columns: minmax(100px, 1fr) 84px 16px;
    gap: 6px;
    padding-inline: 3px;
  }
  .catalogCols span:nth-child(2),
  .catalogCols span:nth-child(3),
  .catalogRow .numbers,
  .catalogRow .cueCount {
    display: none;
  }
  .record {
    gap: 8px;
  }
  .recordText strong {
    font-size: 13px;
  }
  .recordText small,
  .takeCount {
    font-size: 10px;
  }
  #catalogView .heroArt {
    min-height: 120px;
  }
  #catalogView > div:first-child {
    grid-template-columns: 2fr 1fr;
  }
  #catalogView > div:first-child > div:first-child {
    padding: 15px;
  }
  #catalogView > div:first-child p {
    font-size: 13px;
  }
  #catalogView .eyebrow {
    letter-spacing: 0.05em;
  }
  .catTabs button {
    font-size: 12px;
    padding: 6px 8px;
  }
  #cueStrip {
    padding: 5px;
  }
}
.anchorHandle {
  position: absolute;
  z-index: 1;
  top: 22px;
  min-width: 41px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid currentColor;
  border-left-width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--amber-bg);
  color: var(--gold);
  font: 650 10px var(--mono);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}
.anchorHandle::before {
  content: "";
  position: absolute;
  inset: -4px 0;
}
.anchorHandle.nearEnd {
  transform: translateX(-100%);
  border-left-width: 1px;
  border-right-width: 3px;
  border-radius: 4px 0 0 4px;
}
.kickHandle {
  top: 50px;
  color: var(--kick);
  background: #30231d;
}
@media (pointer: coarse) {
  .anchorHandle {
    height: 43px;
    min-width: 44px;
  }
  .kickHandle {
    top: 66px;
  }
  .surface,
  .surface canvas {
    touch-action: pan-y;
  }
}
.buildId {
  color: inherit;
  text-underline-offset: 3px;
}

/* Shared studio hierarchy: gold controls, warm reading surfaces, separate track inks. */
.brand {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 690;
  letter-spacing: -0.045em;
}
.brand span {
  white-space: nowrap;
}
.appname {
  white-space: nowrap;
  letter-spacing: -0.025em;
}
#catalogView .heroArt img {
  filter: grayscale(1) sepia(1) saturate(2.1) brightness(0.9);
}
#catalogView .heroArt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #171717 0%, transparent 22%);
  pointer-events: none;
}
#catalogView .heroCopy .eyebrow {
  color: var(--gold);
}
#catalogListHeading {
  font: 650 22px var(--display);
  margin: 20px 0 6px;
}
html:not([data-erstbesuch="a"]) .baselineCatalogCopy,
html[data-erstbesuch="a"] :is(#catalogHeading, #catalogIntro, #catalogStartActions, #catalogListHeading) {
  display: none;
}
html:not([data-erstbesuch="a"]) #catalogView .catalogHero h1 {
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.08;
}
html:not([data-erstbesuch="a"]) #catalogView .catalogHero .heroCopy {
  padding: 18px 19px;
  max-width: 720px;
}
html:not([data-erstbesuch="a"]) #catalogView .catalogHero .heroCopy p {
  max-width: 540px;
}
.catalogStartActions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.catalogStartActions button {
  min-height: 44px;
  margin: 0;
  padding: 7px 13px;
  font-size: 13px;
}
.catalogImportStatus:not(:empty) {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.catalogImportStatus[data-error="true"],
.status[data-error="true"] {
  color: var(--gold);
}
@media (max-width: 750px) {
  html:not([data-erstbesuch="a"]) #catalogView .catalogHero {
    display: block;
  }
  html:not([data-erstbesuch="a"]) #catalogView .heroArt {
    display: none;
  }
}
.viewnav,
.catTabs {
  background: #101112;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
}
.viewnav button,
.catTabs button {
  border-radius: 5px;
}
.viewnav button[aria-current="page"],
.catTabs button[aria-pressed="true"] {
  color: var(--gold);
}
.catalogCols {
  background: var(--side);
  border-radius: 6px 6px 0 0;
}
#catalogRows {
  background: #121315;
}
.catalogRow {
  min-height: 60px;
}
.catalogRow:hover,
.catalogRow:focus-visible {
  background: #211f1c;
}
.recordText small,
.takeCount {
  font-size: 12px;
}
.takeCount b {
  background: var(--amber-bg);
  border-color: #665032;
}
.track.selected {
  background: color-mix(in srgb, var(--track) 9%, var(--side));
  border-color: color-mix(in srgb, var(--track) 36%, var(--line));
}
.srcletter {
  border: 1px solid color-mix(in srgb, var(--track) 38%, var(--line));
  padding: 2px 5px;
  border-radius: 4px;
}
.panel {
  box-shadow: 0 6px 22px #0002;
}
.panelhead {
  background: linear-gradient(110deg, #21201e, #191a1b 68%);
}
.searchbox input,
dialog label,
dialog p,
dialog li,
.versionBtn strong,
.catTabs button,
.catalogAction,
.textplay {
  font-size: 13px;
}
dialog input,
dialog select {
  font-size: 14px;
}
.ghost:hover,
.icon:hover,
.clipActions button:hover,
.versionBtn:hover {
  background: var(--raised);
}
.sourcename,
.cueChip,
.snapwrap,
.snapwrap select,
.subtext,
.trackcopy small {
  font-size: 11px;
}
.ghost.sub,
.accentSoft,
.trackcopy strong {
  font-size: 12px;
}
dialog,
dialog input,
dialog select,
.searchbox,
.ghost,
.primary,
.accentSoft,
.import {
  border-radius: 8px;
}
.ghost,
.snapwrap select {
  border-color: var(--strong-line);
}
.catalogAction:hover,
.accentSoft:hover {
  border-color: var(--gold);
}
dialog::backdrop {
  background: rgb(8 8 9 / 0.77);
}
.cueChip i {
  background: #e7b977;
}
#cueStrip {
  padding-bottom: 8px;
}
.keyline kbd {
  border-color: var(--strong-line);
}
@media (max-width: 750px) {
  .brand {
    font-size: 17px;
  }
  .appname {
    font-size: 15px;
  }
  .viewnav {
    width: auto;
  }
  .mast {
    align-items: center;
  }
  .catTabs {
    align-self: flex-start;
  }
  .ghost.sub,
  .accentSoft {
    font-size: 11px;
  }
  .recordText small,
  .takeCount {
    font-size: 11px;
  }
}

.panelHint {
  margin: 0;
  padding: 9px 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
#blockSelection {
  display: grid;
  gap: 11px;
  padding: 12px 16px 14px;
  align-items: center;
  justify-content: stretch;
  border-top: 1px solid var(--line);
}
.blocktop,
.blocknav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.blocktop {
  justify-content: space-between;
  gap: 10px;
}
.blocktop .blockinfo {
  border-left: 4px solid var(--block-ink);
  padding-left: 10px;
  gap: 5px 10px;
}
#selLabel {
  color: var(--block-ink);
  font: 650 17px var(--display);
}
#selMeta {
  flex-basis: 100%;
}
.inEdit {
  color: var(--fg);
  font-size: 11px;
}
.inEdit::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
  background: var(--block-ink);
}
.inEdit[data-coverage="none"]::before {
  background: transparent;
  outline: 1px solid var(--muted);
}
.inEdit[data-coverage="partial"]::before {
  background: linear-gradient(90deg, var(--block-ink) 50%, transparent 50%);
  outline: 1px solid var(--block-ink);
}
.blocknav button {
  min-width: 36px;
  min-height: 36px;
  padding: 0;
}
.blockacts {
  flex-wrap: wrap;
}
.blockacts button {
  min-height: 36px;
  font-size: 12px;
}
#hearBlock {
  background: color-mix(in srgb, var(--block-ink) 14%, var(--side));
  border-color: color-mix(in srgb, var(--block-ink) 65%, var(--line));
}
#cueStrip:not([hidden])::before {
  content: "Hot Cues";
  color: var(--muted);
  font-size: 11px;
  align-self: center;
  margin-right: 3px;
}
.underwave {
  justify-content: flex-start;
}
.sourceTools {
  padding: 0 16px;
  border-top: 1px solid var(--line);
}
.sourceTools summary {
  cursor: pointer;
  padding: 12px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.sourceTools summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.toolrow {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 0 0 14px;
}
.toolrow .snapwrap select {
  min-height: 32px;
}
.editDuration {
  font: 12px var(--mono);
  color: var(--muted);
}
.clip {
  min-width: 110px;
  flex-basis: 110px;
  color: var(--t);
  background: color-mix(in srgb, var(--t) 18%, #121416);
}
.clip strong {
  color: var(--t);
  font: 660 14px var(--display);
}
.clip small {
  font-size: 10px;
  color: var(--fg);
}
.clip.active {
  background: color-mix(in srgb, var(--t) 25%, #121416);
}
.arrangefoot {
  flex-wrap: wrap;
  gap: 10px;
}
#playArr {
  width: auto;
  padding: 0 12px;
  gap: 6px;
  border-radius: 7px;
  font-size: 12px;
}
.clipActions {
  gap: 4px;
  flex-wrap: wrap;
}
.clipActions button {
  width: auto;
  min-height: 34px;
  padding: 0 7px;
  font-size: 11px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.clipActions .i {
  width: 13px;
  height: 13px;
}
@media (max-width: 750px) {
  .panelHint {
    padding: 8px 10px;
    font-size: 11px;
  }
  #blockSelection {
    padding: 9px 10px 12px;
    gap: 8px;
  }
  .blocktop .blockinfo {
    gap: 3px 7px;
  }
  .blocknav button {
    min-width: 44px;
    min-height: 44px;
  }
  .blockacts button {
    min-height: 44px;
    font-size: 12px;
    padding: 6px 10px;
  }
  .sourceTools {
    padding: 0 10px;
  }
  .sourceTools summary {
    min-height: 44px;
    display: list-item;
    align-content: center;
  }
  .toolrow button,
  .toolrow .snapwrap select {
    min-height: 44px;
  }
  .arrangefoot {
    display: grid;
    gap: 8px;
  }
  .clipActions button {
    min-height: 44px;
  }
  #playArr {
    min-height: 44px;
  }
  .clipActions {
    gap: 5px;
  }
  .underwave {
    min-height: 44px;
  }
  .sourcepanel .underwave .icon,
  .sourcepanel .underwave .textplay {
    min-height: 44px;
  }
}

/* A block keeps its source ink wherever it can be picked up or placed. */
#waveGrip {
  position: absolute;
  inset: auto 0 0;
  height: 26px;
  cursor: grab;
  touch-action: none;
}
.sourceGrip,
.cardGrip,
#waveGrip,
.clip {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.sourceGrip {
  color: var(--block-ink);
  background: color-mix(in srgb, var(--block-ink) 12%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--block-ink) 62%, var(--line));
  border-radius: 6px;
  gap: 4px;
  padding: 5px 9px 5px 6px;
  min-height: 32px;
  cursor: grab;
  touch-action: none;
}
.sourceGrip .i,
.cardGrip .i {
  stroke-width: 3.3;
}
.blocktop .blockinfo {
  border: 0;
  padding-left: 0;
}
#cueStrip .cueChip {
  background: color-mix(in srgb, var(--cue) 9%, var(--panel));
  border-color: color-mix(in srgb, var(--cue) 52%, var(--line));
}
#cueStrip .cueChip i {
  background: var(--cue);
}
#cueStrip .cueChip:hover {
  background: color-mix(in srgb, var(--cue) 22%, var(--panel));
}
.editBoardSlot {
  min-height: 100px;
}
.clip {
  border-top-width: 1px;
  flex-basis: 122px;
  min-width: 122px;
  padding-top: 12px;
  cursor: grab;
}
.clip::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--stripe);
}
.clip strong {
  max-width: calc(100% - 22px);
}
.clip[data-linked="true"]:not(.active) {
  border-color: var(--t);
  background: color-mix(in srgb, var(--t) 26%, #121416);
}
.clip.active {
  outline: 2px solid #fff4d8;
  outline-offset: -2px;
}
.cardGrip {
  position: absolute;
  right: 0;
  top: 4px;
  width: 26px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--t);
  cursor: grab;
  touch-action: none;
}
.cardGrip .i {
  width: 16px;
  height: 16px;
}
.heldCard {
  opacity: 0.55;
}
.draggingBlock,
.draggingBlock * {
  cursor: grabbing !important;
  user-select: none !important;
}
#dragGhost,
#insertLine {
  position: fixed;
  pointer-events: none;
  z-index: 1001;
}
#dragGhost {
  left: 0;
  top: 0;
  background: #1c1b1e;
  color: var(--held-color);
  border: 1px solid var(--held-color);
  border-left-width: 5px;
  border-radius: 6px;
  padding: 7px 10px;
  white-space: nowrap;
  box-shadow: 0 3px 12px #0009;
  font-weight: 650;
  font-size: 12px;
}
#insertLine {
  left: 0;
  top: 0;
  width: 3px;
  background: var(--gold);
  box-shadow: 0 0 0 1px #231e13;
}
#insertLine::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -2px;
  width: 9px;
  height: 6px;
  background: var(--gold);
  border-radius: 3px;
}
.dragTarget #board {
  outline: 1px solid var(--held-color, var(--gold));
  outline-offset: -2px;
}
.dockCaption {
  display: none;
}
.floatingBoard {
  position: fixed;
  z-index: 990;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: clamp(8px, 4vw, 60px);
  right: clamp(8px, 4vw, 60px);
  border: 1px solid var(--gold);
  border-radius: 10px;
  overflow: hidden;
  background: var(--side);
  box-shadow: 0 6px 30px #000a;
}
.floatingBoard .dockCaption {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 650;
  font-size: 13px;
  padding: 8px 12px;
}
.dockCaption span {
  color: var(--muted);
  font-weight: 450;
  font-size: 11px;
}
#placeTools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: var(--amber-bg);
  color: var(--fg);
  font-size: 12px;
}
#placeText {
  margin-right: auto;
}
.picking .clip {
  cursor: pointer;
}
.picking .clip:hover {
  border-left: 3px solid var(--gold);
}
@media (pointer: coarse), (max-width: 750px) {
  .sourceGrip {
    min-height: 44px;
  }
  .cardGrip {
    width: 44px;
    height: 44px;
  }
  .clip {
    min-width: 128px;
    flex-basis: 128px;
    cursor: pointer;
  }
  .clip strong {
    max-width: calc(100% - 32px);
  }
}

.dragTarget #board {
  box-shadow: inset 0 0 0 1px var(--held-color);
}
@media (min-width: 1050px) {
  .sourcepanel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .sourcepanel > * {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .sourcepanel .underwave {
    grid-column: 1;
    align-self: stretch;
    border-bottom: 0;
  }
  .sourcepanel #cueStrip {
    grid-column: 2;
    align-items: center;
    padding-block: 5px;
    justify-content: flex-end;
    padding-left: 0;
  }
  #blockSelection {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  #blockSelection .blocktop {
    gap: 15px;
  }
}

#duplicate {
  cursor: grab;
  touch-action: none;
  color: var(--gold);
  border-color: var(--amber-line);
}

.moveControls {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 4px;
}
.moveControls > span,
.moveLegend > span,
#occurrenceLabel {
  color: var(--muted);
  font-size: 11px;
}
.moveControls .blocknav button {
  min-width: 46px;
  min-height: 44px;
  background: color-mix(in srgb, var(--block-ink) 10%, var(--panel));
  border-color: color-mix(in srgb, var(--block-ink) 38%, var(--line));
}
.movePreview {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--side);
}
.moveLegend,
.moveActions,
#occurrenceLabel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.moveLegend strong {
  color: var(--block-ink);
  font: 600 11px var(--mono);
}
#fineReceipt {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  padding-inline-start: 9px;
  border-inline-start: 2px solid var(--block-ink);
  color: var(--muted);
  font-size: 12px;
}
#fineReceipt .receiptLabel,
#receiptStatus {
  flex-basis: 100%;
  font-size: 11px;
}
#fineReceipt strong {
  color: var(--fg);
  font: 550 12px var(--mono);
  white-space: nowrap;
}
#moveStrip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}
#moveStrip button {
  min-width: 0;
  min-height: 44px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  position: relative;
  color: var(--ink);
  font: 600 12px var(--mono);
  padding: 4px 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: color-mix(in srgb, var(--ink) 12%, var(--panel));
}
#moveStrip button::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 5px 5px 0 0;
  background: var(--stripe);
}
#moveStrip button[aria-pressed="true"] {
  outline: 2px solid var(--fg);
  outline-offset: -2px;
  color: var(--fg);
  background: color-mix(in srgb, var(--ink) 30%, var(--panel));
}
#moveStrip small {
  color: var(--muted);
  font: 10px var(--mono);
}
.moveActions {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.moveActions button {
  min-height: 44px;
  font-size: 12px;
}
#occurrenceLabel select {
  min-height: 44px;
  max-width: 65%;
}
@media (min-width: 1050px) {
  #blockSelection {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(300px, 1.15fr);
    align-content: center;
    gap: 8px 24px;
  }
  .movePreview {
    grid-row: 1 / 3;
    grid-column: 2;
  }
  #blockSelection .blocktop,
  #blockSelection .blockacts {
    grid-column: 1;
  }
}

#fineOpen {
  color: var(--fg);
  border-color: var(--block-ink);
  background: color-mix(in srgb, var(--block-ink) 16%, var(--panel));
}
#fineDialog {
  width: min(720px, 96vw);
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(14px, 3vw, 26px);
}
#fineDialog .dialoghead {
  margin-bottom: 12px;
}
#fineScope {
  display: block;
  color: var(--gold);
  font: 11px var(--mono);
  margin-bottom: 5px;
}
#fineTitle {
  font: 700 clamp(23px, 4vw, 32px) var(--display);
}
.finePair,
.fineScale,
.fineTimes,
.fineReadout,
.fineFooter,
.fineListen,
.fineNudges {
  display: flex;
  align-items: center;
  gap: 8px;
}
.finePair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.finePair > button {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 3px;
  min-width: 0;
  text-align: left;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--ink) 55%, var(--line));
  color: var(--ink);
  background: var(--side);
}
.finePair strong {
  font: 650 15px var(--display);
}
.finePair small {
  color: var(--muted);
  font: 10px var(--mono);
}
.finePair > button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--ink) 17%, var(--side));
  box-shadow: inset 0 -3px 0 var(--ink);
  border-color: var(--ink);
}
#fineDialog #fineRule {
  margin: 8px 0 14px;
}
.fineScale,
.fineTimes,
.fineReadout,
.fineFooter {
  justify-content: space-between;
}
.fineScale > span {
  font-size: 12px;
  font-weight: 650;
}
.fineScale label {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.fineScale select {
  max-width: none;
  padding: 4px;
  min-height: 40px;
}
#fineWave {
  height: clamp(104px, 21dvh, 188px);
  position: relative;
  overflow: hidden;
  background: #141317;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  border: 1px solid var(--strong-line);
  border-radius: 6px;
  margin-top: 4px;
}
#finePcm,
#fineInPcm {
  display: block;
  width: 100%;
  height: 100%;
}
#fineShade {
  position: absolute;
  inset: 0 0 0 var(--cut);
  pointer-events: none;
  background: color-mix(in srgb, var(--right-ink) 22%, transparent);
  border-left: 1px solid var(--fg);
}
#fineWave[data-side="in"] #fineShade {
  inset: 0 calc(100% - var(--cut)) 0 0;
  border-left: 0;
}
#fineMarker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(1px, var(--cut), calc(100% - 2px));
  width: 2px;
  background: #fff4dc;
  box-shadow: 0 0 2px #202020;
  pointer-events: none;
}
#fineMarker span {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(var(--tag-left, -50%));
  border-radius: 0 0 3px 3px;
  padding: 3px 5px;
  background: var(--fg);
  color: var(--bg);
  font: 650 10px var(--mono);
}
.fineTimes,
#fineHint {
  color: var(--muted);
  font: 10px var(--mono);
  margin: 4px 0;
}
#fineDialog #fineHint {
  font: 12px var(--body, sans-serif);
  margin: 7px 0 10px;
}
#fineIncoming {
  border-left: 2px solid var(--strong-line);
  padding-left: 8px;
  margin: 8px 0 12px;
}
#fineInPcm {
  height: 32px;
  background: var(--side);
  border-radius: 3px;
}
.fineReadout {
  font-size: 12px;
  margin: 9px 0;
}
#fineTime {
  font: 600 16px var(--mono);
  margin-left: 4px;
}
#fineDelta {
  color: var(--gold);
  font: 12px var(--mono);
}
.fineNudges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.fineNudges button {
  font: 12px var(--mono);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--side);
  padding: 0;
}
#fineDialog button {
  min-height: 44px;
}
.fineListen,
.fineFooter {
  flex-wrap: wrap;
}
.fineListen {
  margin-top: 8px;
}
.fineListen button {
  flex: 1 1 auto;
  justify-content: center;
}
.fineFooter {
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 10px;
}
#fineStatus:not(:empty) {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0;
}
.selectionDetails {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 8px;
}
.selectionDetails #selMeta {
  flex-basis: auto;
}
#fineOpen {
  min-height: 44px;
  font-size: 12px;
  padding-inline: 8px;
}

.saveNotice,
.recoveryBar {
  max-width: 900px;
  margin: 14px auto;
  padding: 16px 20px;
  border: 1px solid var(--amber-line);
  border-radius: 8px;
  background: var(--side);
}
.saveNotice p { margin: 6px 0 12px; }
[data-view="editor"] .recoveryBar { display: none; }

#fineBlockEdges {
  margin: 3px 0 12px;
}
#fineBlockName {
  display: block;
  margin-bottom: 5px;
  font: 650 14px var(--display);
}
.fineEdges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: var(--side);
  border: 1px solid var(--line);
}
.fineEdges button {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3px 8px;
  min-width: 0;
  min-height: 44px;
  border-radius: 5px;
  color: var(--muted);
  font: 630 13px var(--display);
}
.fineEdges button span + span {font: 11px var(--mono);}
.fineEdges [aria-pressed="true"] {
  color: var(--gold);
  background: var(--amber-bg);
  box-shadow: inset 0 0 0 1px var(--amber-line);
}
#fineDialog #fineLockWrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: -8px 0 4px;
  color: var(--fg);
  font-size: 12px;
  cursor: pointer;
}
#fineLock {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  accent-color: var(--gold);
}
#fineDialog .fineFooter {
  position: sticky;
  bottom: -1px;
  z-index: 2;
  background: var(--panel);
  padding-bottom: max(6px, env(safe-area-inset-bottom));
}
.fineOtherWave {position: relative; overflow: hidden;}
.finePlayhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  pointer-events: none;
  background: #79f1ec;
  box-shadow: 0 0 0 1px #143835;
  z-index: 1;
}
.finePlayhead::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top: 0;
  border-bottom: 7px solid #79f1ec;
}
#fineTransport {margin: 8px 0 6px;}
.fineTransportLine {display:flex; flex-wrap:wrap; align-items:baseline; gap: 2px 8px; font: 12px var(--body,sans-serif);}
#fineNowTime {font: 600 13px var(--mono); color:#79f1ec;}
#fineWindowHint {color: var(--muted);}
.fineProgressTrack {overflow:hidden; height:3px; background:var(--strong-line); margin:4px 0;}
#fineProgress {display:block; height:100%; background:#79f1ec;}
@media (max-width: 600px) {
  #fineDialog {padding: 11px 12px; max-height: calc(100dvh - 12px);}
  #fineDialog .dialoghead {margin-bottom: 5px;}
  #fineDialog #fineRule {margin: 5px 0 9px; font-size: 12px; line-height: 1.4;}
  #fineWave {height:clamp(96px,17dvh,145px);}
  .finePair > button {min-height:44px; padding:5px 7px;}
  #fineDialog #fineHint {margin:4px 0; font-size:11px;}
}
