:root {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #dce3e9;
  background: #10161d;
  color-scheme: dark;
  --copper: #dc9b71;
  --mint: #91c9ae;
  --muted: #8293a3;
  --line: #2b3743;
  --panel: #18212b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  border-radius: 4px;
  padding: 8px 10px;
  touch-action: manipulation;
}
button:hover:not(:disabled) {
  background: #ffffff0b;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
svg {
  display: block;
  flex-shrink: 0;
}
svg,
*[data-icon] {
  pointer-events: none;
}
button[data-icon] {
  pointer-events: auto;
}
input,
select {
  min-width: 0;
  border: 1px solid #354350;
  border-radius: 4px;
  background: #111a23;
  padding: 7px 8px;
}
input[type="range"] {
  accent-color: var(--copper);
  padding: 0;
  cursor: pointer;
  height: 16px;
}
input[type="number"] {
  appearance: textfield;
}
input::-webkit-inner-spin-button {
  appearance: none;
}
input[type="checkbox"] {
  accent-color: var(--copper);
}
input:disabled,
select:disabled {
  opacity: 0.4;
}
button.accent {
  background: var(--copper);
  color: #251b15;
  font-weight: 700;
}
button.accent:hover {
  background: #e6aa83;
}
.secondary {
  background: #26333f;
  border: 1px solid #3b4b59;
}
.quiet {
  color: #9babb9;
}
.icon-button {
  width: 32px;
  height: 32px;
  padding: 6px;
}
.header {
  height: 68px;
  border-bottom: 1px solid var(--line);
  background: #151c24;
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 34px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  min-width: 210px;
}
.brand-symbol {
  position: relative;
  display: inline-block;
  color: #14202b;
  background: var(--copper);
  border-radius: 9px;
  font-size: 41px;
  font-weight: 900;
  letter-spacing: -5px;
  padding: 1px 17px 1px 7px;
  line-height: 1.3;
}
.brand-symbol > span {
  position: absolute;
  letter-spacing: -4px;
  font-size: 30px;
  right: 6px;
  top: 11px;
  line-height: 0.9;
}
.brand-symbol.small {
  font-size: 26px;
  border-radius: 6px;
  padding: 1px 13px 1px 5px;
}
.brand-symbol.small > span {
  font-size: 20px;
  right: 5px;
  top: 6px;
}
.brand strong {
  font-size: 15px;
  letter-spacing: 2px;
  display: block;
  font-weight: 700;
}
.brand small {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: var(--copper);
  display: block;
  margin-top: 5px;
}
.file-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.file-actions > button {
  font-size: 11px;
}
.separator,
.divider {
  width: 1px;
  height: 21px;
  background: var(--line);
  display: inline-block;
  margin: 0 7px;
}
.header-end {
  margin-left: auto;
  display: flex;
  gap: 15px;
  align-items: center;
}
.local-label {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 8px;
  letter-spacing: 0.8px;
  color: #8b9b9c;
}
.local-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
}
.export-button {
  padding: 10px 14px;
}
.transport {
  height: 89px;
  background: #1a242e;
  border-bottom: 1px solid #354350;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 23px;
}
.transport-buttons,
.transport-switches {
  display: flex;
  gap: 9px;
  align-items: center;
}
.play-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #1c252c;
  background: var(--mint);
}
.play-button:hover:not(:disabled) {
  background: #afdcc5;
}
.record-button {
  height: 38px;
  border: 1px solid #39434c;
  font-size: 11px;
  gap: 9px;
  padding: 8px 12px;
}
.record-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #d77273;
  border-radius: 50%;
}
.record-button.recording {
  background: #6c343b;
  color: #ffe0df;
  border-color: #aa5a60;
}
.record-button.recording .record-dot {
  animation: pulse 1s infinite;
}
.toggle {
  color: #7c8d9b;
  width: 31px;
  height: 31px;
  padding: 6px;
}
.toggle.active {
  background: #dc9b7118;
  color: var(--copper);
  box-shadow: inset 0 0 0 1px #dc9b7144;
}
.position {
  padding: 0 18px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-width: 155px;
}
.position output {
  display: block;
  color: var(--mint);
  font:
    25px "Consolas",
    monospace;
  letter-spacing: 1px;
}
.position output span {
  color: #537868;
  margin: 0 3px;
}
.position small {
  color: #758b98;
  letter-spacing: 1.5px;
  font-size: 8px;
  display: block;
  margin-top: 4px;
}
.tempo-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}
.tempo-controls label > span,
.signature > span {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}
.tempo-controls label > div {
  display: flex;
  align-items: center;
  gap: 5px;
}
.tempo-controls input {
  font:
    18px Consolas,
    monospace;
  width: 56px;
  padding: 2px;
  border: 0;
  background: none;
}
.tempo-controls label b {
  font-size: 8px;
  color: #748b9b;
  font-weight: 400;
}
.signature b {
  font:
    17px Consolas,
    monospace;
}
.master-control {
  position: relative;
  margin-left: auto;
  max-width: 200px;
  width: 200px;
  display: grid;
  grid-template-columns: 1fr 32px;
  column-gap: 10px;
  row-gap: 8px;
}
.master-control label {
  font-size: 8px;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  grid-column: 1/3;
  color: #8fa2b1;
}
.master-control output {
  font:
    10px Consolas,
    monospace;
  letter-spacing: 0;
  color: #dce3e9;
}
.master-control input {
  width: 100%;
}
.master-meter {
  height: 3px;
  background: #10191f;
  border-radius: 2px;
  overflow: hidden;
  align-self: end;
}
.master-meter i {
  display: block;
  background: var(--mint);
  height: 100%;
  width: 0;
}
#clip-indicator {
  font-size: 7px;
  letter-spacing: 1px;
  color: #6d727c;
  padding: 2px 4px;
  grid-column: 2;
  grid-row: 2/4;
}
#clip-indicator.lit {
  color: #ffaaa0;
  background: #692c2c;
}
.studio {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 252px;
  height: calc(100dvh - 188px);
  min-height: 0;
}
.library,
.inspector {
  background: #17212b;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.library {
  border-right: 1px solid var(--line);
  padding: 17px 13px 12px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 700;
}
.section-heading small {
  font-size: 8px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.5px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #344350;
  background: #111a23;
  border-radius: 5px;
  padding: 0 9px;
  margin: 16px 0 11px;
  color: #6d8395;
}
.search input {
  width: 100%;
  border: 0;
  background: none;
  padding: 10px 0;
  font-size: 11px;
  outline: 0;
}
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
}
.categories button {
  padding: 5px 8px;
  font-size: 9px;
  color: #869bac;
  border-radius: 3px;
}
.categories button.active {
  background: #374044;
  color: var(--copper);
}
.library-label {
  display: flex;
  justify-content: space-between;
  color: #6f8495;
  font-size: 8px;
  letter-spacing: 1px;
  margin: 0 3px 9px;
}
.library-label small {
  letter-spacing: 0;
  color: #627787;
  font-size: 8px;
}
.sounds {
  overflow-y: auto;
  flex: 1;
  min-height: 50px;
  scrollbar-width: thin;
  scrollbar-color: #40505b transparent;
}
.sound {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px 8px;
  width: 100%;
  justify-content: flex-start;
  border-radius: 5px;
  text-align: left;
  margin: 2px 0;
  color: #9eafbc;
}
.sound.active {
  background: #c69a7723;
  color: #efbd95;
  box-shadow: inset 0 0 0 1px #b3856044;
}
.sound .sound-icon {
  background: #20303c;
  padding: 6px;
  border-radius: 4px;
  color: #91a5b5;
}
.sound.active .sound-icon {
  background: #c69a7725;
  color: var(--copper);
}
.sound b {
  display: block;
  font-size: 11px;
  font-weight: 400;
}
.sound small {
  display: block;
  color: #677f91;
  font-size: 8px;
  margin-top: 5px;
}
.sound .audition-arrow {
  margin-left: auto;
  opacity: 0;
  font-size: 9px;
}
.sound:hover .audition-arrow {
  opacity: 1;
}
.library-footer {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.library-footer > span {
  font-size: 10px;
  color: #9db0be;
  text-align: center;
  margin: 2px 0 6px;
}
.library-footer > button {
  font-size: 10px;
  padding: 10px;
}
.library-divider {
  height: 1px;
  background: var(--line);
  margin: 8px 0;
}
.library-footer .import-button {
  padding-bottom: 4px;
}
.workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #111a23;
}
.session-heading {
  padding: 17px 19px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  height: 83px;
  flex-shrink: 0;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #6f8899;
  display: block;
  margin-bottom: 7px;
}
.session-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.session-title-row input {
  font-size: 17px;
  background: none;
  border: 0;
  padding: 0;
  width: 310px;
  font-weight: 500;
  letter-spacing: 0.1px;
}
#dirty-dot {
  color: var(--copper);
  font-size: 8px;
}
.workspace-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}
.workspace-actions select {
  font-size: 10px;
  padding: 8px 10px;
  max-width: 170px;
}
.workspace-actions .icon-button {
  display: none;
}
.arrangement-panel {
  flex: 1.1;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.panel-bar {
  height: 41px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: #17212b;
}
.panel-bar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.panel-title {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #90a4b4;
}
.pill {
  font-size: 7px;
  letter-spacing: 0.7px;
  color: #668194;
  border: 1px solid #314353;
  padding: 3px 5px;
  border-radius: 3px;
}
.arrange-tools label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 7px;
  letter-spacing: 1px;
  color: #6e879b;
}
.arrange-tools input {
  width: 70px;
  accent-color: #8fa4b4;
}
.arrangement-scroll {
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #384b5a transparent;
}
.arrangement-grid {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  min-height: 100%;
}
.track-headers {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #19232d;
  border-right: 1px solid #354654;
}
.track-list-title {
  height: 34px;
  display: flex;
  align-items: center;
  padding-left: 14px;
  font-size: 7px;
  letter-spacing: 1px;
  color: #6e8598;
  border-bottom: 1px solid #32404c;
}
.track-slot {
  height: 76px;
  border-bottom: 1px solid #2c3945;
  border-left: 3px solid var(--track-color);
  padding: 11px 10px;
  background: #19232d;
  position: relative;
}
.track-slot.selected {
  background: #24323e;
}
.track-name {
  justify-content: flex-start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  padding: 0;
  margin-bottom: 7px;
  gap: 7px;
}
.track-name svg {
  color: var(--track-color);
}
.track-switches {
  display: flex;
  align-items: center;
  gap: 5px;
}
.track-switches small {
  font-size: 7px;
  letter-spacing: 0.5px;
  color: #728b9c;
  margin-right: auto;
}
.track-switches button {
  font-size: 8px;
  border: 1px solid #3b4b58;
  padding: 2px 5px;
  width: 22px;
  height: 18px;
  color: #7f95a5;
  border-radius: 3px;
}
.track-switches .on {
  color: #e1bd75;
  border-color: #8e7544;
  background: #78623833;
}
.track-switches .arm.on {
  color: #ed9a9a;
  border-color: #ab5963;
  background: #88394a33;
}
.track-slot-meter {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--track-color);
  width: 0;
  opacity: 0.75;
}
.timeline-scroll {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #3a4f60 transparent;
}
canvas {
  display: block;
  touch-action: none;
}
.playhead {
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #d9ab7d;
  box-shadow: 0 0 3px #dc9b7140;
  z-index: 2;
}
.playhead:before {
  content: "";
  position: absolute;
  top: 0;
  left: -4px;
  border: 4px solid transparent;
  border-top: 7px solid #dc9b71;
}
#empty-tracks {
  position: absolute;
  inset: 60px 0 0 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  pointer-events: none;
  background: #131d26bb;
}
#empty-tracks h2 {
  font-size: 16px;
  font-weight: 400;
  margin: 0;
}
#empty-tracks p {
  color: var(--muted);
  font-size: 11px;
  margin: 4px 0 12px;
}
#empty-tracks button {
  pointer-events: auto;
}
.editor-panel {
  flex: 1;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #3b4b59;
  background: #141e28;
}
.editor-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 43px;
  padding: 0 13px;
  background: #1a252f;
  border-bottom: 1px solid var(--line);
}
.editor-tabs > div {
  display: flex;
  height: 43px;
  align-items: stretch;
  gap: 10px;
}
.editor-tabs button {
  padding: 0 9px;
  font-size: 10px;
  border-radius: 0;
  position: relative;
  color: #7e94a5;
  gap: 7px;
}
.editor-tabs button.active {
  color: #dfb18c;
}
.editor-tabs button.active:after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--copper);
  bottom: 0;
  left: 10px;
  right: 10px;
}
#editor-track {
  font-size: 9px;
  color: #7d95a6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  min-height: 46px;
  flex-shrink: 0;
  border-bottom: 1px solid #2f3c49;
}
.note-toolbar label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 7px;
  letter-spacing: 0.7px;
  color: #7790a2;
}
.note-toolbar select {
  font-size: 10px;
  padding: 5px;
}
.note-toolbar input {
  width: 37px;
  padding: 5px;
  font-size: 10px;
}
.bar-select {
  display: flex;
  align-items: center;
  gap: 2px;
}
.bar-select button {
  padding: 4px 5px;
  color: #98acbb;
}
.bar-select select {
  width: 36px;
}
.note-actions {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.note-actions button {
  padding: 5px;
  font-size: 8px;
  color: #8da2b3;
}
.piano-scroll {
  position: relative;
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #425462 transparent;
  min-height: 0;
  background: #16212b;
}
.piano-scroll .playhead {
  height: 2328px;
}
.steps-panel {
  padding: 20px 23px;
  overflow: auto;
  flex: 1;
}
.steps-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 15px;
}
.steps-settings h3 {
  font-size: 13px;
  font-weight: 400;
  margin: 0 0 6px;
}
.steps-settings p {
  font-size: 9px;
  color: var(--muted);
  margin: 0;
}
.steps-settings label {
  font-size: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: #829aaa;
}
.steps-settings input {
  width: 40px;
  padding: 5px;
}
.steps-settings button {
  font-size: 9px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 5px;
}
.step {
  height: 54px;
  border: 1px solid #344554;
  border-radius: 4px;
  background: #1d2a36;
  position: relative;
  min-width: 0;
  padding: 0;
  color: #536c80;
  font-size: 8px;
}
.step:nth-child(8n + 5),
.step:nth-child(8n + 6),
.step:nth-child(8n + 7),
.step:nth-child(8n + 8) {
  background: #23323e;
}
.step:before {
  content: "";
  position: absolute;
  height: 3px;
  left: 5px;
  right: 5px;
  bottom: 6px;
  border-radius: 2px;
  background: #344858;
}
.step.on {
  background: #8f684a;
  color: #f5dcc6;
  border-color: #e1a87b;
}
.step.on:before {
  background: #e5af83;
  height: var(--velocity-height, 12px);
}
.step.playing {
  box-shadow: 0 0 0 2px #91c9ae;
}
.steps-caption {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  font-size: 8px;
  color: #658197;
  margin-top: 10px;
  padding: 0 3px;
}
.editor-tip {
  color: #607d91;
  font-size: 9px;
  margin-top: 23px;
}
.mixer-panel {
  display: flex;
  flex: 1;
  overflow: auto;
  min-height: 0;
  padding: 12px 10px;
  gap: 6px;
}
.mixer-strip {
  background: #1b2935;
  border: 1px solid #354654;
  border-radius: 5px;
  min-width: 91px;
  width: 91px;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 11px 6px;
  gap: 8px;
  position: relative;
  border-top: 3px solid var(--track-color);
}
.mixer-strip.selected {
  background: #273644;
  border-color: #537085;
}
.mixer-strip > b {
  font-size: 9px;
  font-weight: 400;
  text-align: center;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mixer-strip .mixer-switches {
  display: flex;
  gap: 3px;
}
.mixer-switches button {
  font-size: 8px;
  padding: 3px 6px;
  border: 1px solid #3d5364;
}
.mixer-switches button.on {
  color: #efc187;
  background: #694d3033;
}
.mixer-strip input[type="range"] {
  writing-mode: vertical-lr;
  direction: rtl;
  appearance: slider-vertical;
  min-height: 65px;
  max-height: 180px;
  flex: 1;
  width: 24px;
  accent-color: var(--track-color);
}
.mixer-strip output {
  font:
    10px Consolas,
    monospace;
  color: #94acbd;
}
.audio-editor {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 25px;
  min-height: 180px;
  flex: 1;
}
.audio-editor > span {
  color: #7ca8b5;
  background: #253a47;
  padding: 18px;
  border-radius: 8px;
}
.audio-editor > span svg {
  width: 35px;
  height: 35px;
}
.audio-editor h3 {
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 11px;
}
.audio-editor p {
  color: #7f97a8;
  line-height: 1.7;
  max-width: 420px;
  font-size: 11px;
}
.audio-editor button {
  font-size: 10px;
}
.inspector {
  border-left: 1px solid var(--line);
  padding: 18px 16px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #425462 transparent;
}
.channel-identity {
  margin: 23px 0 18px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.channel-identity > span {
  padding: 11px;
  border-radius: 6px;
  background: #24343f;
  color: var(--track-color);
}
.channel-identity input {
  font-size: 13px;
  width: 150px;
  border: 0;
  background: none;
  padding: 0;
}
.channel-identity small {
  display: block;
  font-size: 8px;
  color: #6f899d;
  margin-top: 6px;
  letter-spacing: 0.5px;
}
.channel-controls {
  margin-bottom: 12px;
}
.channel-switches {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}
.channel-switches button {
  border: 1px solid #3e5262;
  background: #20303d;
  flex: 1;
  font-size: 9px;
  padding: 7px;
}
.channel-switches button.on {
  color: var(--copper);
  border-color: #9d7351;
  background: #71533933;
}
.channel-switches button.arm.on {
  color: #e5a1a2;
  border-color: #a75c66;
  background: #77415133;
}
.control {
  margin-bottom: 18px;
}
.control > label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #8da5b7;
  font-size: 9px;
  margin-bottom: 8px;
}
.control output {
  font:
    10px Consolas,
    monospace;
  color: #a5bac9;
}
.control input {
  width: 100%;
  accent-color: #a7becd;
}
.control.pan input {
  accent-color: #8bafbc;
}
.effects-heading {
  margin: 7px 0 20px;
  padding-top: 19px;
  border-top: 1px solid #354451;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1px;
}
.effects-heading .muted {
  font-size: 7px;
  color: #5e7a8d;
}
.effect-row {
  display: grid;
  grid-template-columns: 62px 1fr 37px;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}
.effect-row label {
  font-size: 9px;
  color: #8ba3b5;
}
.effect-row input {
  width: 100%;
  accent-color: #bc987b;
}
.effect-row output {
  font:
    9px Consolas,
    monospace;
  color: #a2b6c6;
  text-align: right;
}
.clip-editor {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 2px;
}
.clip-editor > b {
  display: block;
  margin: 15px 0;
  font-size: 10px;
  color: #91b6be;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clip-editor > label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #7f9cae;
  margin-bottom: 9px;
}
.clip-editor input {
  width: 62px;
  font-size: 10px;
  padding: 5px;
}
.clip-editor > div:last-child {
  display: flex;
  gap: 7px;
  margin-top: 13px;
}
.clip-editor button {
  padding: 6px;
  width: 33px;
  height: 29px;
}
.inspector-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 30px;
  color: #6b8f87;
}
.inspector-foot p {
  font-size: 9px;
  line-height: 1.7;
  margin: 0;
  color: #80998f;
}
.inspector-foot small {
  font-size: 8px;
  color: #58766d;
}
.status-bar {
  height: 31px;
  background: #1b252f;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 15px;
  color: #6f8799;
  font-size: 8px;
  letter-spacing: 0.4px;
}
.status-bar #notice {
  margin-right: auto;
  color: #99acbb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}
.status-bar #audio-state {
  color: #8ab6a0;
}
.status-bar button {
  font-size: 8px;
  padding: 4px;
}
.modal {
  width: min(480px, calc(100vw - 28px));
  background: #202e3b;
  border: 1px solid #50616f;
  border-radius: 10px;
  color: #d9e3e9;
  padding: 25px;
  box-shadow: 0 24px 100px #0008;
  max-height: 90dvh;
  overflow: auto;
}
.modal::backdrop {
  background: #080d13b8;
  backdrop-filter: blur(4px);
}
.modal header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}
.modal h2 {
  font-size: 20px;
  font-weight: 400;
  margin: 0;
}
.modal .eyebrow {
  color: var(--copper);
  font-size: 8px;
}
.modal footer {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  border-top: 1px solid #3f5262;
  margin-top: 25px;
  padding-top: 17px;
}
.modal footer button {
  font-size: 11px;
  padding: 10px 16px;
}
.modal p {
  color: #9aafbf;
  line-height: 1.7;
  font-size: 12px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 10px;
  color: #9fb4c4;
  margin: 17px 0;
}
.form-field input,
.form-field select {
  width: 100%;
  padding: 10px;
  font-size: 12px;
}
.form-help {
  font-size: 10px !important;
  color: #819dad !important;
}
.error {
  color: #e5a0a0 !important;
  padding: 9px;
  background: #86464a22;
  border: 1px solid #85464b;
  border-radius: 5px;
}
.toast {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  border: 1px solid #657887;
  color: #dce8ee;
  box-shadow: 0 5px 24px #0008;
  border-radius: 6px;
  background: #314354;
  padding: 13px 18px;
  font-size: 11px;
  max-width: min(540px, 90vw);
  line-height: 1.6;
}
#loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2000;
  background: #10161d;
}
#loading h1 {
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 2px;
  margin: 20px 0 5px;
}
#loading p {
  color: #8aa1b2;
  font-size: 12px;
}
#drop-overlay {
  position: fixed;
  inset: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #121f2cf2;
  border: 2px dashed var(--copper);
  z-index: 1500;
  color: var(--copper);
  border-radius: 12px;
  pointer-events: none;
}
#drop-overlay svg {
  width: 50px;
  height: 50px;
}
#drop-overlay h2 {
  font-size: 28px;
  font-weight: 400;
}
#drop-overlay p {
  color: #8ca7b9;
}
.working {
  cursor: progress;
}
.working .export-button {
  opacity: 0.5;
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}
@media (min-height: 1000px) {
  .arrangement-panel {
    flex: 1.9;
  }
  .editor-panel {
    flex: 1;
  }
  .track-slot {
    height: 80px;
  }
}
@media (max-width: 1300px) {
  .header {
    gap: 17px;
    padding: 0 15px;
  }
  .header .local-label {
    display: none;
  }
  .studio {
    grid-template-columns: 200px minmax(0, 1fr) 224px;
  }
  .inspector {
    padding: 17px 12px;
  }
  .channel-identity input {
    width: 130px;
  }
  .transport {
    gap: 13px;
    padding: 12px 16px;
  }
  .position {
    min-width: 139px;
    padding: 0 14px;
  }
  .tempo-controls {
    gap: 13px;
  }
  .master-control {
    max-width: 155px;
  }
  .session-title-row input {
    font-size: 15px;
    width: 250px;
  }
  .arrangement-grid {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .track-slot {
    padding-left: 8px;
  }
  .note-toolbar {
    gap: 6px;
  }
  .note-actions button {
    font-size: 7px;
    padding: 4px;
  }
  .note-actions button[data-action="repeat-bar"] {
    display: none;
  }
  .file-actions {
    gap: 1px;
  }
  .brand {
    min-width: 205px;
  }
}
@media (max-width: 1100px) {
  .studio {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .inspector {
    display: none;
    position: absolute;
    right: 0;
    top: 157px;
    bottom: 31px;
    z-index: 10;
    width: 252px;
    box-shadow: -10px 0 30px #0006;
  }
  .show-inspector .inspector {
    display: flex;
  }
  .workspace-actions .icon-button {
    display: inline-flex;
  }
  .transport-switches {
    gap: 5px;
  }
  .master-control {
    max-width: 135px;
  }
  .signature {
    display: none;
  }
  .header .brand {
    min-width: 190px;
  }
  .file-actions > button {
    font-size: 10px;
    padding: 7px;
  }
  .header-end {
    gap: 5px;
  }
  .file-actions .separator {
    margin: 0 2px;
  }
  .transport {
    gap: 10px;
  }
  .transport-buttons {
    gap: 5px;
  }
  .record-button {
    padding: 8px;
  }
  .position {
    min-width: 130px;
    padding: 0 10px;
  }
  .tempo-controls {
    gap: 8px;
  }
  .tempo-controls input {
    font-size: 17px;
    width: 48px;
  }
}
@media (max-width: 800px) {
  .studio {
    grid-template-columns: minmax(0, 1fr);
  }
  .library {
    display: none;
    position: absolute;
    left: 0;
    top: 157px;
    bottom: 31px;
    z-index: 11;
    width: 230px;
    box-shadow: 10px 0 30px #0006;
  }
  .show-library .library {
    display: flex;
  }
  .header {
    padding: 0 12px;
    gap: 10px;
  }
  .brand {
    min-width: 0 !important;
    gap: 7px;
  }
  .brand strong {
    font-size: 13px;
    letter-spacing: 1.4px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .file-actions button {
    font-size: 10px;
  }
  .file-actions .separator,
  .file-actions .icon-button {
    display: none;
  }
  .header-end .quiet {
    display: none;
  }
  .export-button {
    font-size: 10px;
    padding: 9px;
  }
  .transport .master-control {
    display: none;
  }
  .transport {
    gap: 12px;
    justify-content: space-between;
  }
  .position {
    min-width: 125px;
  }
  .tempo-controls {
    gap: 12px;
  }
  .transport-switches {
    gap: 4px;
  }
  .session-title-row input {
    width: 300px;
  }
  .note-toolbar {
    gap: 12px;
  }
  .note-actions button {
    font-size: 8px;
  }
  .status-bar {
    gap: 12px;
  }
  .status-bar #memory-state {
    display: none;
  }
}
@media (max-width: 560px) {
  .header {
    height: 57px;
  }
  .brand strong {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .brand small {
    display: none;
  }
  .brand-symbol.small {
    font-size: 23px;
  }
  .brand-symbol.small > span {
    top: 6px;
    font-size: 17px;
  }
  .file-actions {
    gap: 0;
  }
  .file-actions button {
    padding: 7px;
    font-size: 9px;
  }
  .file-actions button[data-action="new"] {
    display: none;
  }
  .header-end .export-button {
    font-size: 0;
    padding: 8px;
    width: 31px;
    height: 31px;
  }
  .header-end .export-button svg {
    width: 16px;
  }
  .transport {
    height: 109px;
    flex-wrap: wrap;
    gap: 9px;
    padding: 10px 13px;
  }
  .transport-buttons {
    gap: 5px;
  }
  .play-button {
    width: 34px;
    height: 34px;
  }
  .record-button {
    height: 32px;
    font-size: 9px;
  }
  .transport-buttons .icon-button {
    width: 28px;
  }
  .transport-switches {
    margin-left: auto;
  }
  .toggle {
    width: 27px;
    height: 27px;
  }
  .position {
    min-width: 0;
    width: auto;
    padding: 0 12px 0 0;
    border: 0;
    order: 3;
  }
  .position output {
    font-size: 20px;
  }
  .position small {
    display: none;
  }
  .tempo-controls {
    order: 4;
    margin-left: auto;
    gap: 13px;
  }
  .tempo-controls label {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .tempo-controls label > span {
    font-size: 7px;
    margin: 0;
  }
  .tempo-controls input {
    font-size: 15px;
    width: 36px;
  }
  .tempo-controls label b {
    font-size: 7px;
  }
  .studio {
    height: calc(100dvh - 194px);
  }
  .library,
  .inspector {
    top: 166px;
    bottom: 28px;
  }
  .session-heading {
    height: 70px;
    padding: 12px;
  }
  .eyebrow {
    font-size: 7px;
  }
  .session-title-row input {
    font-size: 13px;
    width: 185px;
  }
  .workspace-actions select {
    width: 65px;
    font-size: 8px;
    padding: 6px;
  }
  .workspace-actions .icon-button {
    width: 25px;
    padding: 4px;
  }
  .workspace-actions {
    gap: 2px;
  }
  .arrangement-grid {
    grid-template-columns: 126px minmax(0, 1fr);
  }
  .track-name {
    font-size: 9px;
  }
  .track-name svg {
    width: 12px;
  }
  .track-slot {
    padding: 12px 6px;
  }
  .track-switches {
    gap: 3px;
  }
  .track-switches small {
    font-size: 6px;
  }
  .track-switches button {
    width: 18px;
    padding: 1px 3px;
    height: 17px;
    font-size: 7px;
  }
  .panel-bar {
    padding: 0 10px;
    height: 34px;
  }
  .arrange-tools label {
    display: none;
  }
  .arrangement-panel {
    min-height: 180px;
  }
  .editor-panel {
    min-height: 220px;
    flex: 1;
  }
  .editor-tabs {
    padding: 0 8px;
    min-height: 37px;
  }
  .editor-tabs > div {
    gap: 0;
    height: 37px;
  }
  .editor-tabs button {
    font-size: 8px;
    gap: 4px;
    padding: 0 7px;
  }
  .editor-tabs svg {
    width: 13px;
    height: 13px;
  }
  #editor-track {
    font-size: 7px;
    max-width: 70px;
  }
  .note-toolbar {
    gap: 7px;
    flex-wrap: wrap;
    padding: 7px;
    min-height: 64px;
  }
  .note-toolbar label {
    font-size: 6px;
    gap: 3px;
  }
  .note-toolbar select {
    font-size: 8px;
    padding: 4px;
  }
  .note-toolbar input {
    width: 31px;
    font-size: 8px;
    padding: 4px;
  }
  .note-actions {
    margin-left: 0;
    gap: 4px;
  }
  .note-actions button {
    font-size: 7px;
  }
  .note-actions button[data-action="repeat-bar"] {
    display: none;
  }
  .steps-panel {
    padding: 16px 12px;
  }
  .steps-settings {
    margin-bottom: 16px;
    gap: 5px;
  }
  .steps-settings h3 {
    font-size: 11px;
  }
  .steps-settings p {
    font-size: 8px;
  }
  .steps-settings label {
    font-size: 7px;
  }
  .steps-settings button {
    font-size: 8px;
    padding: 4px;
  }
  .steps {
    gap: 3px;
  }
  .step {
    height: 44px;
    font-size: 7px;
  }
  .step:before {
    left: 3px;
    right: 3px;
    bottom: 5px;
  }
  .editor-tip {
    font-size: 8px;
    margin-top: 17px;
  }
  .status-bar {
    height: 28px;
    padding: 0 9px;
    font-size: 7px;
    gap: 10px;
  }
  .status-bar #audio-state,
  .status-bar > button {
    display: none;
  }
  .audio-editor {
    padding: 18px;
    gap: 12px;
  }
  .audio-editor > span {
    padding: 10px;
  }
  .audio-editor > span svg {
    width: 24px;
  }
  .audio-editor h3 {
    font-size: 13px;
  }
  .audio-editor p {
    font-size: 10px;
  }
  .modal {
    padding: 20px;
  }
  .modal h2 {
    font-size: 18px;
  }
  .toast {
    font-size: 10px;
    bottom: 40px;
  }
  .working .header .export-button {
    opacity: 0.5;
  }
}
