/* Studio surfaces, controls and musical editing grids. */
:root {
  color-scheme: dark;
  --bg: #131619;
  --panel: #1b1f23;
  --surface: #24292e;
  --control: #2b3137;
  --line: #343a40;
  --edge: #485158;
  --text: #edf0ee;
  --muted: #a4adb2;
  --quiet: #8b979d;
  --accent: #efb877;
  --accent-ink: #261d13;
  --accent-dim: #40362b;
  --lime: var(--accent);
  --mono: 'Cascadia Mono', Consolas, monospace;
  --sans: 'Segoe UI Variable Text', 'Segoe UI', Arial, sans-serif;
  --rad: 3px;
}
html, body, .app {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
button, select, input { font-family: inherit; }
button, input, select { border-radius: 3px; }
button, .asset-row, .channel-row, .note, .clip {
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
:where(button, input, select):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button:disabled { opacity: .45; }
input[type=range], input[type=checkbox] { accent-color: var(--accent); }
:where(.piano-scroll, .playlist-scroller, .library-scroll, .rack-matrix, .mixer-board) {
  scrollbar-color: #4a5258 #1a1e21;
  scrollbar-width: thin;
}

/* Transport and navigation */
.toolbar {
  height: 60px;
  padding: 0 20px;
  gap: 18px;
  background: #202428;
  border-bottom: 1px solid #0f1113;
}
.logotype { min-width: auto; gap: 11px; padding-right: 19px; border-right: 1px solid var(--line); }
.logomark { font-size: 31px; color: var(--text); }
.logo-dot { color: var(--accent); }
.brandname { font-size: 13px; font-weight: 700; letter-spacing: .13em; }
.brandtag { display: none; }
.project-name { gap: 7px; max-width: none; }
.project-name input { width: min(100%, 168px); font-size: 13px; font-weight: 500; color: var(--text); }
.project-dot { background: var(--accent); width: 4px; height: 4px; }
.saved-status { color: var(--quiet); font-size: 10px; white-space: nowrap; }
.transport { gap: 5px; }
.mode-switch, .mini-toolset {
  border: 0;
  border-radius: 4px;
  padding: 3px;
  background: #14181b;
  box-shadow: none;
}
.mode-switch button, .mini-toolset button {
  border-radius: 2px;
  color: var(--muted);
  background: transparent;
}
.mode-switch button.active, .mini-toolset button.active {
  background: var(--accent-dim);
  color: #ffd49c;
}
.mode-switch button { font: 600 10px var(--mono); letter-spacing: .04em; }
.transport-stop, .transport-play, .transport-record, .metro-btn {
  width: 33px;
  height: 33px;
  border: 0;
  border-radius: 3px;
  background: var(--control);
  color: var(--text);
  box-shadow: none;
}
.transport-play, .transport-play.playing { width: 40px; background: var(--accent); color: var(--accent-ink); }
.transport-play:hover { background: #ffcd8d; }
.transport-play.playing { box-shadow: inset 0 -3px #825e34; }
.transport-record { background: transparent; }
.transport-record span { border-color: #dd817c; }
.bpm-field, .position-display {
  height: 33px;
  border: 0;
  border-radius: 3px;
  background: #121619;
  box-shadow: none;
}
.bpm-field { margin-left: 9px; }
.bpm-field input { font: 600 15px var(--mono); color: #f1efeb; }
.bpm-field span, .seconds-display { font: 10px var(--mono); color: var(--muted); }
.position-display { padding: 7px 11px; color: var(--accent); font: 16px var(--mono); letter-spacing: .02em; }
.seconds-display { min-width: 54px; }
.toolbar-right { gap: 12px; }
.top-control, .primary-small, .ghost-button, .icon-button, .generator-link,
.piano-audition, #placePatternBtn, .subbar-link, .panel-close {
  border: 0;
  border-radius: 3px;
  box-shadow: none;
  background: var(--control);
  color: #dfe4e5;
  font-size: 12px;
  font-weight: 500;
}
.primary-small { padding: 9px 14px; background: #d8dddc; color: #22282b; }
.top-control, .generator-link, .subbar-link { background: transparent; }
.top-control span, .generator-link span, .engine-state { color: var(--muted); }
.engine-state { font: 9px var(--mono); }
.engine-state i, .online-dot { background: #8aa99a; box-shadow: none; }
:where(.ghost-button, .icon-button, .piano-audition, .generator-link, .top-control):hover {
  background: #343c41;
  color: white;
}
.subbar, .statusline {
  background: #161a1d;
  color: var(--quiet);
  border-color: #2e3438;
  font: 10px var(--mono);
}
.subbar { min-height: 24px; height: 24px; }
.subbar-left, .subbar-right { color: var(--quiet); }
.subbar-link { font: 10px var(--mono); color: var(--muted); }
.workspace, .main-layout, .arrange-view { background: var(--bg); }
.workspace-heading {
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #1c2024;
}
.work-tabs { gap: 3px; }
.work-tabs button {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 0 14px;
  border-radius: 0;
}
.work-tabs button.active { background: #25292d; color: #fff1dc; }
.work-tabs button.active:after { left: 13px; right: 13px; height: 2px; background: var(--accent); }
.work-tabs button:hover { color: var(--text); background: #292e32; }
.tab-icon { color: inherit; }
.tab-icon svg { width: 15px; height: 15px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.6; }
.shortcut { font: 10px var(--mono); border: 0; background: transparent; color: var(--quiet); }
.generator-link { color: #b2b9be; }
.section-heading h3, .pane-title h2 { font-weight: 600; letter-spacing: -.025em; color: var(--text); }
.section-heading p { color: var(--muted); }

/* Arrangement. Horizontal sizes remain in the timeline's bar coordinate system. */
.arrange-view .playlist-header {
  height: 54px;
  min-height: 54px;
  padding: 0 18px;
  background: var(--panel);
  border-bottom: 1px solid #30363b;
}
.arrange-view .playlist-header .section-heading h3 { font-size: 18px; font-weight: 600; }
.arrange-view .playlist-header .section-heading p { display: none; }
.playlist-actions { gap: 9px; }
.playlist-actions label { padding-left: 8px; color: var(--muted); }
.playlist-actions label input { accent-color: var(--accent); }
.playlist-scroller, .playlist-inner { background-color: var(--bg); }
.playlist-inner { min-width: 100%; }
.timeline-row {
  position: sticky;
  top: 0;
  z-index: 16;
  height: 36px;
  background: #1e2328;
  border-bottom: 1px solid var(--edge);
}
.timeline-sticky, .track-label { background: #21262a; border-right: 1px solid #3d454c; }
.timeline-sticky { font: 10px var(--mono); color: #a6afb5; letter-spacing: .055em; }
.timeline-ruler { background: #1b2024; }
.bar-num {
  top: 0;
  bottom: 0;
  transform: none;
  padding: 4px 0 0 6px;
  border-left: 1px solid #485158;
  color: #d0d7d9;
  font: 11px var(--mono);
}
.bar-num:nth-child(4n+1) { color: var(--accent); border-color: #7c7363; }
.bar-num small { font-size: 9px; color: #9aa4aa; }
.arrangement-track { height: 68px; border-color: #343a3e; }
.track-label { padding: 10px 14px; }
.track-num { font: 9px var(--mono); letter-spacing: .10em; color: var(--quiet); }
.track-title { font-size: 13px; font-weight: 500; color: var(--text); }
.track-lane {
  background-color: #191d21;
  background-image: linear-gradient(to right, #454e55 1px, transparent 1px),
                    linear-gradient(to right, #2b3136 1px, transparent 1px),
                    linear-gradient(to right, #ffffff05 50%, transparent 50%);
  background-size: var(--bar-px) 100%, calc(var(--bar-px) / 4) 100%, calc(var(--bar-px) * 8) 100%;
}
.arrangement-track:has(.clip.selected) .track-label { box-shadow: inset 2px 0 var(--accent); background: #302e2a; }
.arrangement-track:nth-child(even) .track-lane { background-color: #1c2024; }
.track-lane.drop-target, .track-lane.dragover,
.arrangement-track:nth-child(even) .track-lane:is(.drop-target, .dragover) {
  background-color: #343029;
  outline: 1px dashed var(--accent);
  outline-offset: -2px;
}
.clip {
  --material: var(--clip-stroke);
  top: 5px;
  bottom: 5px;
  border: 1px solid color-mix(in srgb, var(--material) 46%, #283033);
  border-left: 3px solid var(--material);
  border-radius: 3px;
  background: color-mix(in srgb, var(--material) 23%, #1c2226);
  box-shadow: none;
  filter: none;
}
.clip-pattern { --material: color-mix(in srgb, var(--clip-stroke) 38%, #e9b176); }
.clip.clip-audio { --material: #8ebfcb; }
.clip.clip-automation { --material: #baabc9; height: auto; }
.clip-head {
  height: 21px;
  padding: 2px 8px;
  background: transparent;
  color: #f2ede6;
  font-size: 11px;
  font-weight: 600;
}
.clip-body { height: calc(100% - 21px); }
.clip-body i { height: 3px; border-radius: 1px; background: var(--material); opacity: .92; }
.clip-resizer { width: 8px; background: transparent; }
.clip:hover { filter: none; border-color: var(--material); }
.clip:hover .clip-resizer { background: #ffffff12; }
.clip.selected { outline: 1px solid #f1d0a9; outline-offset: 1px; }
.clip.dragging { opacity: .8; outline: 1px dashed var(--accent); cursor: grabbing; }
.play-cursor { top: 36px; width: 1px; background: var(--accent); box-shadow: none; }
.play-cursor:before {
  content: '';
  position: absolute;
  top: 0;
  left: -4px;
  width: 9px;
  height: 6px;
  border: 0;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Floating tools. Window positions and dimensions are supplied by the workspace. */
.view.floating-window {
  display: flex;
  right: auto;
  bottom: auto;
  min-width: min(660px, calc(100% - 16px));
  max-width: calc(100% - 16px);
  min-height: 260px;
  max-height: calc(100% - 62px);
  overflow: hidden;
  border: 1px solid #42494f;
  border-radius: 5px;
  background: var(--panel);
  box-shadow: 0 8px 20px #0005;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 140ms ease, transform 140ms ease;
}
.view.floating-window.active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.view.floating-window.closing { opacity: 0; visibility: visible; pointer-events: none; }
.view.floating-window.focused { border-color: #647078; }
.view.floating-window.moving { transition: none; user-select: none; }
.view.floating-window .section-bar {
  height: auto;
  min-height: 54px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 16px;
  padding: 9px 44px 9px 14px;
  background: #262b30;
  border-bottom: 1px solid #424a50;
  cursor: move;
  touch-action: none;
}
.view.floating-window .section-heading { flex-shrink: 0; padding-left: 9px; border-left: 2px solid var(--edge); }
.view.floating-window.focused .section-heading { border-left-color: var(--accent); }
.view.floating-window .section-heading h3 { font-size: 15px; }
.view.floating-window .section-heading p { margin-top: 2px; font-size: 11px; }
.rack-actions, .piano-actions { flex: 1; flex-wrap: wrap; gap: 6px; justify-content: flex-end; cursor: default; }
.rack-actions label, .piano-actions label { color: var(--muted); font-size: 11px; }
.rack-actions select, .piano-actions select, .fx-control select {
  padding: 5px 6px;
  background: #171b1f;
  border: 1px solid #373f45;
  border-radius: 3px;
  color: var(--text);
}
.panel-close { top: 10px; right: 9px; width: 25px; height: 25px; background: transparent; color: var(--muted); font-size: 20px; }
.panel-close:hover { background: #49383a; color: #f5d5d0; }
.window-resize {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  z-index: 5;
  touch-action: none;
  cursor: nwse-resize;
  background: repeating-linear-gradient(135deg, transparent 0 3px, #737c82 3px 4px);
  clip-path: polygon(100% 15%, 100% 100%, 15% 100%);
}

/* Channel Rack */
.rack-view .rack-matrix { background: var(--panel); overflow: auto; flex: 1; min-height: 0; }
.rack-view .rack-guide, .rack-view .channel-row {
  grid-template-columns: 165px 143px minmax(300px, 1fr);
  gap: 12px;
  min-width: 650px;
  padding-inline: 14px;
}
.rack-view .rack-guide {
  padding-block: 9px;
  background: #161a1d;
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: .07em;
}
.rack-view .channel-row { height: 38px; border-top: 1px solid #2c3237; }
.rack-view .channel-row:hover { background: #262c30; }
.rack-view .channel-row.selected { background: #302c28; box-shadow: inset 2px 0 var(--accent); }
.ch-main { gap: 6px; }
.channel-color { width: 3px; border-radius: 0; }
.rack-view .ch-name { max-width: 100px; color: var(--text); font-size: 12px; font-weight: 500; }
.ch-mute, .ch-solo, .mix-mute { background: #1a1e21; border: 1px solid #40474d; border-radius: 2px; color: #b4bec3; font: 10px var(--mono); }
.ch-mute.active, .mix-mute.on { background: #71443b; color: #ffdbd2; }
.ch-solo.active { background: var(--accent); color: var(--accent-ink); }
.ch-asset { color: var(--muted); font-size: 11px; }
.insert-label { color: var(--quiet); font: 9px var(--mono); }
.insert-label .mixer-map { width: 35px; min-width: 35px; padding: 3px 0; background: transparent; border: 0; color: #d4dce0; font: 11px var(--mono); }
.rack-view .ch-steps { gap: 4px; }
.rack-view .ch-steps .step {
  height: 19px;
  border: 0;
  border-radius: 2px;
  background: #383e43;
  box-shadow: none;
  transform: none;
}
.rack-view .ch-steps .step:nth-child(8n+5), .rack-view .ch-steps .step:nth-child(8n+6),
.rack-view .ch-steps .step:nth-child(8n+7), .rack-view .ch-steps .step:nth-child(8n+8) { background: #474e53; }
.rack-view .ch-steps .step:nth-child(4n+1):not(:first-child) { margin-left: 5px; }
.rack-view .ch-steps .step.on { background: var(--accent); }
.rack-view .ch-steps .step.note-event:not(.on) { background: #463b2f; box-shadow: none; }
.rack-view .ch-steps .step.note-event:not(.on):after { content: '♪'; color: #efc392; font-size: 12px; }
.rack-view .ch-steps .step:hover { outline: 1px solid #a9b3ba; }
.rack-view .ch-steps .step.playhead { outline: 2px solid #e8eaeb; }
.rack-view .rack-footer { min-height: 36px; background: #1b2024; border-top: 1px solid var(--line); }
.rack-footer span { color: var(--muted); }
.rack-footer button { background: transparent; border: 0; color: #efd0aa; }

/* Piano Roll. Grid spacing matches the editable note and key dimensions. */
.piano-scroll { background: #181c20; }
.piano-canvas { touch-action: none; }
.note-grid {
  background-color: #1f252a;
  background-image:
    repeating-linear-gradient(to right, #58636a 0 1px, transparent 1px 352px),
    repeating-linear-gradient(to right, #3b444b 0 1px, transparent 1px 88px),
    repeating-linear-gradient(to right, #2b3339 0 1px, transparent 1px 22px),
    repeating-linear-gradient(to bottom, #353e44 0 1px, transparent 1px 23px),
    repeating-linear-gradient(to bottom, transparent 0 23px, #191f24 23px 46px,
      transparent 46px 69px, #191f24 69px 92px, transparent 92px 115px,
      #191f24 115px 138px, transparent 138px 184px, #191f24 184px 207px,
      transparent 207px 230px, #191f24 230px 253px, transparent 253px 276px);
}
.key-cell { background: #454c52; border: 0; border-bottom: 1px solid #22282c; color: #e5eaec; font: 10px var(--mono); }
.key-cell.black { background: #171c20; color: #a5afb6; border-right: 6px solid #353c41; }
.key-cell.cnote { color: #ffce93; border-left: 2px solid var(--accent); }
.note { background: #dba66e; color: #271c11; border: 0; border-radius: 2px; padding-left: 5px; font: 600 10px var(--mono); box-shadow: none; }
.note:hover { background: #f1c28c; }
.note.selected { background: #ffdcaa; outline: 1px solid #fff3df; outline-offset: -1px; box-shadow: none; }
.note-resize { width: 9px; background: #54351421; cursor: ew-resize; }
.note:hover .note-resize { border-right: 2px solid #62472d; }
.velocity-head { background: #262c31; border-color: var(--edge); color: #c8d0d4; font: 10px var(--mono); }
.velocity-head span:nth-child(2) { color: var(--muted); font: 11px var(--sans); }
.velocity-scroll, .velocity-canvas { background-color: #1a1f23; border-color: #343c42; }
.velocity-bar { background: #9f7e59; border-radius: 1px 1px 0 0; border-top: 2px solid #e7ba82; }
.velocity-bar.selected { background: var(--accent); border-color: #ffdfb3; }
.piano-hint, .mixer-desc { padding: 8px 14px; background: #191e22; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.piano-audition, #placePatternBtn { padding: 6px 8px; font-size: 11px; }
#placePatternBtn { color: #f0c99d; background: #3c342c; }

/* Library */
.browser-pane { width: 250px; flex-basis: 250px; background: #1d2226; border-color: #3a4248; }
.browser-pane .pane-title { padding: 18px 15px 12px; }
.browser-pane .pane-title h2 { font-size: 19px; }
.browser-pane .eyebrow { display: none; }
.pane-title button { background: #2b3237; color: var(--text); border: 0; border-radius: 3px; }
.search-wrap { margin: 0 12px 8px; border: 1px solid #343d43; border-radius: 3px; background: #151a1d; }
.search-wrap input { color: var(--text); font-size: 12px; }
.library-scroll { padding: 0 10px; }
.library-heading { padding: 16px 5px 7px; color: #aeb8bf; border-color: var(--line); font: 10px var(--mono); letter-spacing: .05em; }
.library-heading span { color: var(--quiet); }
.asset-row { min-height: 32px; padding: 4px 7px; border: 0; border-left: 2px solid transparent; border-radius: 0; }
.asset-row:hover { background: #2b3237; }
.asset-row.selected { border-left-color: var(--accent); background: #332f29; }
.asset-name { color: #d9e0e2; font-size: 12px; }
.asset-icon { background: transparent; color: #91a5b1; border-radius: 0; font-size: 14px; }
.asset-row.selected .asset-icon { color: var(--accent); }
.asset-type { font: 9px var(--mono); color: var(--quiet); }
.asset-row button { background: transparent; color: var(--accent); }
.browser-bottom { background: #191e22; border-color: var(--line); }
.disk-icon { color: #a5b8c6; border: 0; background: transparent; }
.browser-bottom small { color: var(--muted); }

/* Console strips and native range inputs */
.mixer-board { padding: 0; gap: 0; min-height: 0; background: #171b1e; }
.mixer-channel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto minmax(90px, 1fr) auto auto auto;
  justify-items: center;
  align-items: center;
  gap: 9px 4px;
  min-width: 75px;
  max-width: 105px;
  padding: 14px 10px;
  border: 0;
  border-right: 1px solid #363f45;
  border-radius: 0;
  background: #23292d;
}
.mixer-channel.master { background: #282d30; border: 0; border-right: 2px solid #4c555c; }
.mixer-channel.selected { background: #302e2a; box-shadow: inset 0 2px var(--accent); }
.mixer-channel > :not(.mixer-meter, .mixer-volume) { grid-column: 1 / -1; }
.mixer-number { grid-row: 1; color: var(--quiet); font: 10px var(--mono); }
.mixer-name { grid-row: 2; min-width: 0; width: 100%; color: var(--text); font-size: 11px; text-align: center; }
.mixer-meter, .mixer-volume { grid-row: 3; height: 82%; min-height: 80px; max-height: 210px; margin: 0; }
.mixer-meter { grid-column: 1; justify-self: end; width: 8px; border-radius: 1px; border: 1px solid #39444a; background: #151b1d; }
.mixer-meter::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(to top, transparent 0 5px, #0e161966 5px 6px); pointer-events: none; }
.mixer-meter-inner { background: #91beaa; border-radius: 0; transition: height 100ms linear; }
.mixer-volume { grid-column: 2; justify-self: start; width: 24px; appearance: none; background: transparent; }
.mixer-volume {
  background-image: repeating-linear-gradient(to top, #5c676f 0 1px, transparent 1px 12.5%);
  background-size: 3px 100%;
  background-position: right center;
  background-repeat: no-repeat;
}
.mixer-volume::-webkit-slider-runnable-track { width: 3px; border-radius: 1px; background: #111518; box-shadow: 1px 0 #444c51; }
.mixer-volume::-webkit-slider-thumb { appearance: none; width: 21px; height: 12px; margin-left: -9px; border: 0; border-top: 3px solid #d5dadc; border-radius: 2px; background: #909ba2; }
.mixer-channel.selected .mixer-volume::-webkit-slider-thumb { background: #bf925f; border-top-color: #f9ce96; }
.mixer-knob-label { grid-row: 4; color: #b6c0c6; font: 10px var(--mono); }
.mixer-pan { grid-row: 5; width: 62px; accent-color: #aab8c1; margin: 0; }
.mix-mute { grid-row: 6; width: 100%; padding: 5px; margin: 0; }
.mixer-fx { flex: 1; min-width: 194px; padding: 16px; background: #1b2024; border: 0; border-radius: 0; }
.fx-title { font-size: 13px; font-weight: 600; color: var(--text); }
.fx-sub, .hint-line { color: var(--muted); font-size: 11px; }
.fx-control { border-color: var(--line); }
.fx-control span { color: #c9d0d3; }
.fx-control input[type=range] { width: 52%; accent-color: #acb9c1; }
.mixer-pan, .fx-control input[type=range], .playlist-actions input[type=range] {
  appearance: none;
  height: 18px;
  background: transparent;
  cursor: pointer;
}
:is(.mixer-pan, .fx-control input[type=range], .playlist-actions input[type=range])::-webkit-slider-runnable-track {
  height: 3px;
  background: #586268;
  border-radius: 1px;
}
:is(.mixer-pan, .fx-control input[type=range], .playlist-actions input[type=range])::-webkit-slider-thumb {
  appearance: none;
  width: 9px;
  height: 9px;
  margin-top: -3px;
  border: 0;
  border-radius: 50%;
  background: #c5cfd3;
}
.mixer-pan::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #505a61 calc(50% - 1px), #bbc4c8 calc(50% - 1px) calc(50% + 1px), #505a61 calc(50% + 1px));
}
.playlist-actions input[type=range]::-webkit-slider-thumb { background: var(--accent); }
.mixer-actions span { color: var(--muted); font: 10px var(--mono); }

/* Feedback, popovers and small workspaces */
.channel-row.dragover, .rack-footer.dragover, #channelRack.dragover, .rack-drag-hover {
  background: #41372c !important;
  outline: 1px dashed var(--accent);
  outline-offset: -2px;
}
.channel-context-menu, dialog {
  background: #252b30;
  border: 1px solid #485159;
  border-radius: 5px;
  color: var(--text);
  box-shadow: 0 8px 22px #0005;
}
.channel-context-menu button:hover, .export-option:hover { background: #383b38; color: #ffe2bc; }
.modal-content input, .modal-content select, .export-option {
  background: #1b2024;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
}
.modal-actions .modal-primary { background: var(--accent); color: var(--accent-ink); }
#toast { z-index: 10000; background: #272c30; color: var(--text); border: 1px solid var(--edge); border-left: 2px solid var(--accent); border-radius: 3px; box-shadow: none; font-weight: 500; }
@media (min-width: 1101px) {
  .toolbar { display: grid; grid-template-columns: auto minmax(130px,1fr) auto minmax(180px,1fr); }
  .project-name, .toolbar-right { min-width: 0; }
}
@media (max-width: 1400px) {
  .toolbar { gap: 9px; padding-inline: 12px; }
  .browser-pane { width: 220px; flex-basis: 220px; }
  .work-tabs button { padding-inline: 10px; }
  .piano-actions, .rack-actions { justify-content: flex-start; }
  .piano-actions { flex-basis: 100%; }
  .mixer-channel { min-width: 72px; }
}
@media (max-width: 830px) {
  .toolbar { height: auto; }
  .workspace-heading { padding-inline: 5px; }
  .work-tabs button { font-size: 10px; }
  .browser-pane { width: 250px; flex-basis: 250px; }
  .view.floating-window { min-width: 0; }
  .view.floating-window .section-bar { max-height: 170px; overflow: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
