:root {
  color-scheme: dark;
  --bg: #090b0e;
  --panel: #101319;
  --panel-2: #151920;
  --panel-3: #1b2028;
  --line: #272d37;
  --line-soft: #1f242c;
  --text: #f3f4f6;
  --muted: #8a919d;
  --faint: #5f6671;
  --orange: #ff5b2e;
  --orange-2: #ff875f;
  --green: #69e6aa;
  --yellow: #ffd166;
  --purple: #9f87ff;
  --cyan: #42d3e8;
  --pink: #ff6fae;
  --track-header: 186px;
  --timeline-width: 2700px;
  --row-height: 92px;
  --radius: 10px;
  --shadow: 0 20px 50px rgb(0 0 0 / 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
[contenteditable="true"]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

button,
input[type="range"] {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  display: grid;
  grid-template-rows: 58px 64px minmax(0, 1fr) 28px;
  width: 100%;
  height: 100%;
  min-width: 960px;
  background:
    radial-gradient(circle at 35% -20%, rgb(255 91 46 / 0.06), transparent 25%),
    var(--bg);
}

.topbar,
.transport,
.statusbar {
  display: flex;
  align-items: center;
  border-color: var(--line);
  background: rgb(13 16 21 / 0.96);
}

.topbar {
  justify-content: space-between;
  gap: 20px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 188px;
  gap: 10px;
}

.brand > div:last-child {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand strong {
  font-size: 16px;
  letter-spacing: -0.4px;
}

.brand small {
  color: var(--orange-2);
  font: 500 9px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 1.8px;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  gap: 2px;
  border-radius: 9px;
  background: var(--orange);
  box-shadow: 0 0 22px rgb(255 91 46 / 0.18);
}

.brand-mark span {
  width: 3px;
  border-radius: 4px;
  background: #fff;
}

.brand-mark span:nth-child(1) {
  height: 10px;
}

.brand-mark span:nth-child(2) {
  height: 20px;
}

.brand-mark span:nth-child(3) {
  height: 14px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.tool-button,
.add-track-button,
.toggle-button,
.small-action,
.full-button {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #171b22;
  color: #d8dce2;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.15s;
}

.tool-button:hover,
.toggle-button:hover,
.small-action:hover,
.full-button:hover {
  border-color: #3d4552;
  background: #1d222a;
}

.tool-button:active,
.round-button:active,
.edit-tool:active {
  transform: translateY(1px);
}

.tool-button .icon {
  margin-right: 5px;
  color: var(--orange-2);
  font-size: 15px;
}

.tool-button.primary {
  border-color: var(--orange);
  background: var(--orange);
  color: white;
}

.tool-button.primary .icon {
  color: white;
}

.tool-button.primary:hover {
  background: #ff6a41;
}

.tool-button.export {
  border-color: rgb(105 230 170 / 0.35);
  color: var(--green);
}

.tool-button.stems {
  border-color: rgb(66 211 232 / 0.28);
  color: var(--cyan);
}

.record-settings {
  width: 25px;
  height: 25px;
  margin-left: -2px;
  font-size: 9px;
}

.loop-field input {
  width: 48px;
}

.marker-button {
  border-color: rgb(255 209 102 / 0.28);
  color: var(--yellow);
}

.project-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 188px;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.autosave-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgb(105 230 170 / 0.7);
}

.autosave-dot.unsaved {
  background: var(--yellow);
  box-shadow: 0 0 8px rgb(255 209 102 / 0.7);
}

.icon-button {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-button:hover {
  border-color: #434b57;
  color: white;
}

.transport {
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.1);
}

.transport-main {
  display: flex;
  align-items: center;
  gap: 6px;
}

.round-button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #151920;
  color: #b5bbc5;
  font-size: 11px;
  cursor: pointer;
}

.round-button:hover {
  border-color: #4b5360;
  color: white;
}

.round-button.play {
  width: 42px;
  height: 42px;
  padding-left: 3px;
  border-color: var(--orange);
  background: var(--orange);
  color: white;
  box-shadow: 0 0 18px rgb(255 91 46 / 0.18);
}

.round-button.play.playing {
  border-color: var(--green);
  background: var(--green);
  color: #0b1511;
}

.round-button.record {
  color: #ff5474;
}

.round-button.record.recording {
  border-color: #ff5474;
  background: #ff5474;
  color: white;
  animation: recordPulse 1.2s infinite;
}

@keyframes recordPulse {
  50% {
    box-shadow: 0 0 0 7px rgb(255 84 116 / 0.12);
  }
}

.time-display {
  display: flex;
  flex-direction: column;
  min-width: 104px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #090b0e;
}

.time-display span {
  color: #f8f9fa;
  font: 500 16px/1.05 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.2px;
}

.time-display small {
  margin-top: 4px;
  color: var(--faint);
  font: 500 7px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 1.2px;
}

.compact-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--faint);
  font: 500 8px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.8px;
}

.compact-field input,
.compact-field select {
  width: 58px;
  height: 27px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #11151a;
  color: #e5e7eb;
  font: 500 11px "SFMono-Regular", Consolas, monospace;
}

.compact-field select {
  width: 62px;
}

.toggle-button {
  height: 31px;
  padding: 0 10px;
  color: var(--muted);
}

.toggle-button.active {
  border-color: rgb(255 91 46 / 0.4);
  background: rgb(255 91 46 / 0.1);
  color: var(--orange-2);
}

.zoom-control {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--faint);
  font-size: 12px;
}

input[type="range"] {
  height: 3px;
  accent-color: var(--orange);
  cursor: pointer;
}

.zoom-control input {
  width: 92px;
}

.master-mini {
  display: grid;
  grid-template-columns: auto 90px 33px;
  align-items: center;
  gap: 8px;
}

.master-mini label {
  color: var(--faint);
  font: 500 8px "DM Mono", monospace;
  letter-spacing: 0.8px;
}

.master-mini output {
  color: var(--muted);
  font: 500 9px "DM Mono", monospace;
}

.workspace {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 0;
}

.browser-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 15px 13px 12px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--panel);
  transition:
    width 0.2s,
    padding 0.2s;
}

.workspace.browser-collapsed {
  grid-template-columns: 40px minmax(0, 1fr);
}

.browser-panel.collapsed {
  padding: 13px 6px;
  overflow: hidden;
}

.browser-panel.collapsed > *:not(.panel-heading) {
  display: none;
}

.browser-panel.collapsed .panel-heading > div {
  display: none;
}

.browser-panel.collapsed .panel-heading {
  justify-content: center;
}

.panel-heading,
.arrangement-toolbar,
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eyebrow {
  color: var(--faint);
  font: 500 8px/1 "DM Mono", monospace;
  letter-spacing: 1.4px;
}

.panel-heading h2,
.arrangement-toolbar h1,
.modal-head h2 {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.tab-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 16px 0 12px;
  padding: 3px;
  border-radius: 7px;
  background: #090c10;
}

.tab {
  height: 28px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.tab.active {
  background: var(--panel-3);
  color: var(--text);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.22);
}

.library-view {
  display: none;
}

.library-view.active {
  display: block;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0c0f13;
  color: var(--faint);
}

.search-box:focus-within {
  border-color: rgb(255 91 46 / 0.55);
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 10px;
}

.library-group {
  margin-top: 16px;
}

.group-title {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  width: 100%;
  padding: 0 3px 8px;
  border: 0;
  background: transparent;
  color: #777e89;
  text-align: left;
  font: 500 8px "DM Mono", monospace;
  letter-spacing: 1px;
  cursor: pointer;
}

.group-title small {
  color: var(--faint);
}

.sample-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sample-item {
  display: grid;
  grid-template-columns: 28px 1fr 20px;
  align-items: center;
  min-height: 46px;
  padding: 5px 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.sample-item:hover {
  border-color: var(--line);
  background: var(--panel-2);
}

.sample-play {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 5px;
  background: #222832;
  color: var(--orange-2);
  font-size: 7px;
}

.sample-item > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.sample-item strong {
  overflow: hidden;
  color: #d6dae1;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-item small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 8px;
}

.add-sample {
  color: var(--faint);
  font-size: 15px;
}

.sample-item:hover .add-sample {
  color: var(--green);
}

.quick-tools {
  display: grid;
  gap: 5px;
}

.quick-tools button {
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #12161c;
  color: #9da4ae;
  text-align: left;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.quick-tools button:hover {
  border-color: #3a424d;
  color: white;
}

.quick-tools span {
  display: inline-block;
  width: 20px;
  color: var(--orange-2);
}

.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 105px;
  margin-top: 16px;
  padding: 14px;
  border: 1px dashed #343b47;
  border-radius: 9px;
  background: rgb(255 255 255 / 0.012);
  text-align: center;
  transition: 0.15s;
}

.drop-zone.dragover {
  border-color: var(--orange);
  background: rgb(255 91 46 / 0.06);
}

.drop-zone > span {
  color: var(--orange-2);
  font-size: 20px;
}

.drop-zone strong {
  margin-top: 4px;
  color: #b9bec7;
  font-size: 9px;
}

.drop-zone small {
  max-width: 170px;
  margin-top: 4px;
  color: var(--faint);
  font-size: 7px;
  line-height: 1.45;
}

.instrument-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1015;
}

.instrument-head {
  display: flex;
  flex-direction: column;
}

.instrument-head span {
  color: var(--purple);
  font: 500 10px "DM Mono", monospace;
  letter-spacing: 1px;
}

.instrument-head small {
  margin-top: 4px;
  color: var(--faint);
  font-size: 8px;
}

.piano {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  height: 84px;
  margin-top: 14px;
  gap: 2px;
}

.piano button {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 7px;
  border: 0;
  border-radius: 0 0 4px 4px;
  background: #e9e9e9;
  color: #252525;
  font: 500 8px "DM Mono", monospace;
  cursor: pointer;
}

.piano button:active,
.piano button.active {
  background: var(--purple);
  color: white;
}

.synth-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.synth-options label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--faint);
  font-size: 8px;
}

.synth-options select {
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #171b22;
  color: #d6dae1;
  font-size: 9px;
}

.full-button {
  width: 100%;
  margin-top: 10px;
  border-color: rgb(159 135 255 / 0.4);
  color: #b9aaff;
}

.tip-card {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgb(255 255 255 / 0.012);
}

.tip-card > span {
  color: var(--orange-2);
}

.tip-card div {
  display: flex;
  flex-direction: column;
}

.tip-card strong {
  color: #aeb4be;
  font-size: 8px;
}

.tip-card small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 7px;
}

.arrangement {
  --bottom-panel-height: 274px;
  display: grid;
  grid-template-rows: 64px minmax(140px, 1fr) var(--bottom-panel-height);
  min-width: 0;
  min-height: 0;
  background: #0c0f13;
}

.arrangement-toolbar {
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #11151a;
}

.arrangement-toolbar h1 {
  min-width: 200px;
  max-width: 460px;
  padding: 2px 5px;
  overflow: hidden;
  border-radius: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrangement-toolbar h1:focus {
  background: #20252d;
}

.edit-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

.edit-tool {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #151920;
  color: #8e95a0;
  cursor: pointer;
}

.edit-tool:hover,
.edit-tool.active {
  border-color: rgb(255 91 46 / 0.42);
  background: rgb(255 91 46 / 0.08);
  color: var(--orange-2);
}

.toolbar-separator {
  width: 1px;
  height: 21px;
  margin: 0 4px;
  background: var(--line);
}

.add-track-button {
  height: 30px;
  margin-left: 5px;
  border-color: rgb(105 230 170 / 0.26);
  color: var(--green);
}

.timeline-wrap {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 44px minmax(0, 1fr);
}

.timeline-ruler-row {
  display: grid;
  grid-template-columns: var(--track-header) minmax(0, 1fr);
  min-width: 0;
  border-bottom: 1px solid var(--line);
  background: #0d1014;
}

.track-header-spacer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  color: var(--faint);
  font: 500 8px "DM Mono", monospace;
  letter-spacing: 1px;
}

.track-header-spacer small {
  color: #939aa4;
}

.ruler-scroll {
  overflow: hidden;
}

#rulerCanvas {
  display: block;
  width: var(--timeline-width);
  height: 44px;
  cursor: pointer;
}

.tracks-scroll {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background:
    linear-gradient(to right, transparent calc(var(--track-header) - 1px), var(--line) var(--track-header)),
    #0b0e12;
  scrollbar-color: #343b46 #11151a;
  scrollbar-width: thin;
}

.tracks-content {
  position: relative;
  width: calc(var(--track-header) + var(--timeline-width));
  min-height: 100%;
}

.track-row {
  display: grid;
  grid-template-columns: var(--track-header) var(--timeline-width);
  height: var(--row-height);
  border-bottom: 1px solid var(--line-soft);
}

.track-row.selected .track-controls {
  background: #1a1f26;
  box-shadow: inset 3px 0 var(--track-color);
}

.track-controls {
  position: sticky;
  left: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 50px;
  grid-template-rows: 36px 34px;
  align-items: center;
  gap: 4px 7px;
  padding: 9px 10px;
  border-right: 1px solid var(--line);
  background: #11151a;
}

.track-number {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  background: color-mix(in srgb, var(--track-color) 18%, #171b22);
  color: var(--track-color);
  font: 500 9px "DM Mono", monospace;
}

.track-name {
  min-width: 0;
  overflow: hidden;
  color: #d8dce2;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
}

.track-buttons button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0e1115;
  color: var(--faint);
  font: 700 8px "DM Mono", monospace;
  cursor: pointer;
}

.track-buttons .mute.active {
  border-color: var(--yellow);
  background: rgb(255 209 102 / 0.15);
  color: var(--yellow);
}

.track-buttons .solo.active {
  border-color: var(--green);
  background: rgb(105 230 170 / 0.15);
  color: var(--green);
}

.track-volume {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 5px;
}

.track-volume span {
  color: var(--faint);
  font: 500 7px "DM Mono", monospace;
}

.track-volume input {
  width: 100%;
}

.track-pan {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.track-pan span {
  color: var(--faint);
  font: 500 7px "DM Mono", monospace;
}

.track-pan input {
  width: 34px;
}

.track-lane {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(to right, rgb(255 255 255 / 0.017) 1px, transparent 1px);
  background-position: 0 0;
  background-size: var(--bar-width, 180px) 100%, calc(var(--bar-width, 180px) / 4) 100%;
}

.track-row:nth-child(even) .track-lane {
  background-color: rgb(255 255 255 / 0.008);
}

.clip {
  position: absolute;
  top: 10px;
  height: 72px;
  min-width: 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--clip-color) 72%, white);
  border-radius: 7px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--clip-color) 32%, #141821), color-mix(in srgb, var(--clip-color) 16%, #0d1014));
  box-shadow: 0 6px 12px rgb(0 0 0 / 0.14);
  cursor: grab;
  user-select: none;
}

.clip:hover {
  filter: brightness(1.12);
}

.clip.selected {
  border-color: white;
  box-shadow:
    0 0 0 2px var(--clip-color),
    0 8px 18px rgb(0 0 0 / 0.32);
}

.clip.dragging {
  z-index: 20;
  cursor: grabbing;
  opacity: 0.86;
}

.clip-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 22px;
  padding: 0 7px;
  background: color-mix(in srgb, var(--clip-color) 52%, #11151a);
  color: white;
  font-size: 8px;
  font-weight: 800;
}

.clip-header strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clip-header small {
  margin-left: 7px;
  opacity: 0.65;
  font: 500 7px "DM Mono", monospace;
}

.waveform {
  position: absolute;
  inset: 22px 0 0;
  width: 100%;
  height: 50px;
  opacity: 0.88;
  pointer-events: none;
}

.fade-overlay {
  position: absolute;
  z-index: 3;
  inset: 22px 0 0;
  pointer-events: none;
}

.clip-resize {
  position: absolute;
  z-index: 5;
  top: 22px;
  bottom: 0;
  width: 7px;
  cursor: ew-resize;
}

.clip-resize.left {
  left: 0;
}

.clip-resize.right {
  right: 0;
}

.clip-resize:hover {
  background: rgb(255 255 255 / 0.25);
}

.playhead {
  position: absolute;
  z-index: 25;
  top: 0;
  bottom: 0;
  left: var(--track-header);
  width: 1px;
  background: var(--orange);
  pointer-events: none;
  box-shadow: 0 0 8px rgb(255 91 46 / 0.5);
}

.playhead-handle {
  position: sticky;
  top: 0;
  width: 11px;
  height: 11px;
  margin-left: -5px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: var(--orange);
}

.timeline-marker {
  position: absolute;
  z-index: 21;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--marker-color);
  box-shadow: 0 0 6px color-mix(in srgb, var(--marker-color) 50%, transparent);
  pointer-events: none;
}

.timeline-marker-label {
  position: sticky;
  top: 3px;
  display: inline-flex;
  max-width: 120px;
  height: 20px;
  margin-left: 3px;
  padding: 0 7px;
  align-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: var(--marker-color);
  color: #111;
  font-size: 7px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
}

.loop-region {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  border-right: 1px solid rgb(255 91 46 / 0.38);
  border-left: 1px solid rgb(255 91 46 / 0.38);
  background: rgb(255 91 46 / 0.035);
  pointer-events: none;
}

.empty-state {
  position: absolute;
  z-index: 3;
  inset: 0 0 0 var(--track-header);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-icon {
  display: flex;
  align-items: center;
  height: 46px;
  gap: 5px;
}

.empty-icon span {
  width: 5px;
  border-radius: 6px;
  background: var(--orange);
  box-shadow: 0 0 14px rgb(255 91 46 / 0.22);
}

.empty-icon span:nth-child(1),
.empty-icon span:nth-child(5) {
  height: 13px;
}

.empty-icon span:nth-child(2),
.empty-icon span:nth-child(4) {
  height: 27px;
}

.empty-icon span:nth-child(3) {
  height: 42px;
}

.empty-state h3 {
  margin: 8px 0 0;
  color: #d8dce2;
  font-size: 17px;
}

.empty-state p {
  max-width: 370px;
  margin: 7px 0 15px;
  color: var(--faint);
  font-size: 10px;
}

.bottom-panel {
  position: relative;
  min-height: 0;
  border-top: 1px solid var(--line);
  background: #11151a;
}

.panel-resizer {
  position: absolute;
  z-index: 12;
  top: -7px;
  right: 0;
  left: 0;
  display: grid;
  place-items: center;
  height: 14px;
  cursor: ns-resize;
  touch-action: none;
}

.panel-resizer span {
  width: 54px;
  height: 4px;
  border-radius: 5px;
  background: #414955;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.3);
  transition: width 0.16s, background 0.16s, box-shadow 0.16s;
}

.panel-resizer:hover span,
.panel-resizer:focus-visible span,
body.resizing-bottom-panel .panel-resizer span {
  width: 86px;
  background: var(--orange);
  box-shadow: 0 0 14px rgb(255 91 46 / 0.45);
}

body.resizing-bottom-panel {
  cursor: ns-resize;
  user-select: none;
}

.bottom-panel.closed {
  height: 34px;
  align-self: end;
}

.bottom-panel.closed .bottom-content {
  display: none;
}

.bottom-tabs {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line-soft);
}

.bottom-tab {
  align-self: stretch;
  min-width: 74px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--faint);
  font: 500 8px "DM Mono", monospace;
  letter-spacing: 0.9px;
  cursor: pointer;
}

.bottom-tab.active {
  border-bottom-color: var(--orange);
  color: var(--orange-2);
}

.panel-close {
  width: 26px;
  height: 24px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}

.bottom-content {
  display: none;
  height: calc(var(--bottom-panel-height) - 35px);
  overflow: auto;
}

.bottom-content.active {
  display: block;
}

.no-selection {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  color: var(--faint);
  font-size: 9px;
}

.no-selection[hidden],
.clip-editor[hidden] {
  display: none !important;
}

.no-selection > span {
  color: var(--orange-2);
  font-size: 19px;
}

.clip-editor {
  display: grid;
  grid-template-columns: 180px 115px 115px minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) 100px;
  align-items: center;
  height: 100%;
  padding: 15px;
  gap: 13px;
}

.selected-clip-info {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.selected-clip-info .color-dot {
  width: 8px;
  height: 38px;
  border-radius: 4px;
  background: var(--orange);
}

.selected-clip-info > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.selected-clip-info strong {
  overflow: hidden;
  color: #e2e5e9;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-clip-info small {
  margin-top: 4px;
  color: var(--faint);
  font-size: 8px;
}

.clip-editor label,
.effect-unit label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  color: var(--faint);
  font: 500 8px "DM Mono", monospace;
}

.clip-editor label span {
  position: absolute;
  margin: 28px 0 0 74px;
  color: var(--faint);
}

.clip-editor input[type="number"] {
  width: 100%;
  height: 31px;
  padding: 0 34px 0 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0d1014;
  color: #dfe2e7;
  font: 500 9px "DM Mono", monospace;
}

.clip-editor label input[type="range"] {
  width: 100%;
}

.clip-editor output {
  color: #b9bec7;
  font: 500 8px "DM Mono", monospace;
}

.small-action {
  height: 32px;
  padding: 0 10px;
}

.effect-strip {
  display: flex;
  align-items: stretch;
  min-width: max-content;
  height: 100%;
  padding: 12px;
  gap: 8px;
}

.effect-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: calc(100vw - 300px);
  gap: 10px;
  color: var(--faint);
  font-size: 9px;
}

.effect-placeholder > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--purple);
  font: 500 9px "DM Mono", monospace;
}

.effect-unit {
  display: grid;
  grid-template-columns: 100px 140px 140px;
  align-items: center;
  min-width: 410px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1014;
  gap: 14px;
}

.effect-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.effect-title span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 7px;
  background: rgb(159 135 255 / 0.13);
  color: var(--purple);
  font: 500 8px "DM Mono", monospace;
}

.effect-title div {
  display: flex;
  flex-direction: column;
}

.effect-title strong {
  font-size: 9px;
}

.effect-title small {
  margin-top: 3px;
  color: var(--faint);
  font-size: 7px;
}

.effect-unit input {
  width: 100%;
}

.mixer-channels {
  display: flex;
  align-items: stretch;
  min-width: max-content;
  height: 100%;
  padding: 10px;
  gap: 7px;
}

.mixer-channel {
  display: grid;
  grid-template-columns: 1fr 8px;
  grid-template-rows: 21px 1fr 20px;
  width: 112px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0c0f13;
  gap: 4px 8px;
}

.mixer-channel strong {
  grid-column: 1 / 3;
  overflow: hidden;
  color: #bac0c8;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mixer-channel input[type="range"] {
  width: 76px;
  margin: auto;
  transform: rotate(-90deg);
}

.level-meter {
  display: flex;
  align-items: flex-end;
  height: 67px;
  overflow: hidden;
  border-radius: 3px;
  background: #1e242c;
}

.level-meter i {
  display: block;
  width: 100%;
  height: var(--level, 6%);
  background: linear-gradient(to top, var(--green), var(--yellow) 75%, #ff5d74);
  transition: height 0.09s linear;
}

.mixer-channel small {
  grid-column: 1 / 3;
  overflow: hidden;
  color: var(--faint);
  font: 500 7px "DM Mono", monospace;
  text-align: center;
}

.statusbar {
  gap: 28px;
  padding: 0 13px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font: 500 8px "DM Mono", monospace;
}

.statusbar > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.statusbar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.statusbar .app-ready {
  margin-left: auto;
  color: #65706e;
  letter-spacing: 0.8px;
}

.toast-container {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 42px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  min-width: 260px;
  max-width: 360px;
  padding: 12px 14px;
  border: 1px solid #343c47;
  border-radius: 8px;
  background: #171b22;
  color: #dbe0e6;
  box-shadow: var(--shadow);
  font-size: 10px;
  animation: toastIn 0.2s ease-out;
}

.toast.success {
  border-left: 3px solid var(--green);
}

.toast.warning {
  border-left: 3px solid var(--yellow);
}

.toast.error {
  border-left: 3px solid #ff5d74;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

dialog {
  padding: 0;
  border: 1px solid #343c47;
  border-radius: 13px;
  background: #13171d;
  color: var(--text);
  box-shadow: 0 30px 100px rgb(0 0 0 / 0.6);
}

dialog::backdrop {
  background: rgb(2 4 7 / 0.72);
  backdrop-filter: blur(5px);
}

.modal-card {
  width: min(480px, 90vw);
  padding: 20px;
}

.modal-head {
  margin-bottom: 19px;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 28px;
  color: #b4bac3;
  font-size: 10px;
}

kbd {
  min-width: 55px;
  padding: 5px 8px;
  border: 1px solid #38404b;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #0c0f13;
  color: #dce0e6;
  font: 500 8px "DM Mono", monospace;
  text-align: center;
}

.modal-note {
  margin: 18px 0;
  padding: 10px;
  border-radius: 7px;
  background: rgb(105 230 170 / 0.06);
  color: #8fb6a3;
  font-size: 9px;
  line-height: 1.55;
}

.modal-ok {
  width: 100%;
}

.progress-card {
  width: min(400px, 88vw);
  padding: 30px;
  text-align: center;
}

.progress-card h2 {
  margin: 16px 0 5px;
  font-size: 17px;
}

.progress-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.export-spinner {
  width: 38px;
  height: 38px;
  margin: auto;
  border: 3px solid #252b34;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.progress-track {
  height: 5px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 5px;
  background: #262c35;
}

.progress-track span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  transition: width 0.25s;
}

.creator-panel,
.automation-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  height: 100%;
  min-width: 860px;
}

.creator-sidebar {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #0d1014;
}

.creator-sidebar h3 {
  margin: 5px 0 6px;
  font-size: 14px;
}

.creator-sidebar p {
  margin: 0 0 12px;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.5;
}

.creator-sidebar label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 7px;
  color: var(--muted);
  font: 500 8px "DM Mono", monospace;
}

.creator-sidebar select {
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #171b22;
  color: var(--text);
  font-size: 9px;
}

.creator-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-top: auto;
}

.primary-action {
  border-color: var(--orange);
  background: var(--orange);
  color: white;
}

.step-sequencer {
  display: grid;
  grid-template-columns: 92px repeat(16, minmax(23px, 1fr));
  grid-template-rows: repeat(4, 1fr);
  align-items: center;
  align-content: center;
  gap: 7px 5px;
  padding: 22px;
  overflow-x: auto;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.012), transparent),
    #10141a;
}

.sequence-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #bec4cd;
  font-size: 9px;
  font-weight: 700;
}

.sequence-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--row-color);
  box-shadow: 0 0 8px color-mix(in srgb, var(--row-color) 60%, transparent);
}

.step-cell {
  aspect-ratio: 1;
  min-width: 23px;
  max-width: 34px;
  padding: 0;
  border: 1px solid #303743;
  border-radius: 5px;
  background: #1a2028;
  cursor: pointer;
  transition: 0.12s;
}

.step-cell:nth-child(4n + 2) {
  margin-left: 4px;
}

.step-cell:hover {
  border-color: var(--row-color);
  transform: translateY(-1px);
}

.step-cell.active {
  border-color: var(--row-color);
  background: var(--row-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--row-color) 38%, transparent);
}

.piano-panel-layout {
  grid-template-columns: 210px minmax(0, 1fr);
}

.piano-roll-scroll {
  overflow: auto;
  background: #0b0e12;
}

.piano-roll {
  display: grid;
  grid-template-columns: 54px repeat(16, minmax(38px, 1fr));
  grid-template-rows: repeat(14, 24px);
  min-width: 850px;
  padding: 8px 14px 14px;
}

.piano-note-label {
  display: flex;
  align-items: center;
  padding-left: 9px;
  border-bottom: 1px solid #222831;
  background: #161b22;
  color: #9fa6b0;
  font: 500 8px "DM Mono", monospace;
}

.piano-note-label.sharp {
  background: #090b0e;
  color: #696f79;
}

.piano-cell {
  padding: 0;
  border: 0;
  border-right: 1px solid #242a33;
  border-bottom: 1px solid #20262e;
  background: rgb(255 255 255 / 0.012);
  cursor: crosshair;
}

.piano-cell:nth-child(4n + 2) {
  border-left: 1px solid #4a515d;
}

.piano-cell:hover {
  background: rgb(159 135 255 / 0.16);
}

.piano-cell.active {
  margin: 2px;
  border: 1px solid #c5b9ff;
  border-radius: 3px;
  background: linear-gradient(90deg, #7d67e8, var(--purple));
  box-shadow: 0 0 8px rgb(159 135 255 / 0.26);
}

.automation-layout {
  grid-template-columns: 220px minmax(0, 1fr);
}

.automation-canvas-wrap {
  position: relative;
  min-width: 0;
  padding: 14px 18px 28px 44px;
  overflow: hidden;
  background: #0b0e12;
}

#automationCanvas {
  width: 100%;
  height: 190px;
  border: 1px solid #2b323d;
  border-radius: 7px;
  background: #10151b;
  cursor: crosshair;
}

.automation-scale {
  position: absolute;
  top: 17px;
  bottom: 31px;
  left: 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--faint);
  font: 500 7px "DM Mono", monospace;
}

.automation-hint {
  position: absolute;
  right: 20px;
  bottom: 8px;
  color: var(--faint);
  font-size: 7px;
}

.graphic-eq {
  display: grid;
  grid-template-columns: 90px minmax(260px, 1fr) 150px;
  min-width: 600px;
}

.eq-canvas-wrap {
  position: relative;
  height: 104px;
}

#eqCanvas {
  width: 100%;
  height: 104px;
  border: 1px solid #2b323d;
  border-radius: 6px;
  background:
    linear-gradient(rgb(255 255 255 / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.025) 1px, transparent 1px),
    #090c10;
  background-size: 100% 25%, 12.5% 100%;
  cursor: crosshair;
}

.eq-values {
  display: grid;
  gap: 4px;
  color: var(--faint);
  font: 500 8px "DM Mono", monospace;
}

.eq-values strong {
  color: #ccd1d8;
}

.projects-modal {
  width: min(760px, 92vw);
  max-height: min(680px, 86vh);
  padding: 22px;
  overflow: auto;
}

.analyzer-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  height: 100%;
  background: #0a0d11;
}

.analyzer-copy {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.analyzer-copy h3 {
  margin: 5px 0 7px;
  font-size: 14px;
}

.analyzer-copy p {
  margin: 0;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.55;
}

.frequency-legend {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  color: var(--faint);
  font: 500 7px "DM Mono", monospace;
}

#spectrumCanvas {
  width: 100%;
  height: 100%;
  min-width: 600px;
  background:
    linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.025) 1px, transparent 1px);
  background-size: 100% 25%, 10% 100%;
}

.recording-modal {
  width: min(560px, 92vw);
  padding: 22px;
}

.recording-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.recording-grid label,
.marker-modal label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
}

.recording-grid input,
.recording-grid select,
.marker-modal input {
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d1014;
  color: var(--text);
  font-size: 10px;
}

.recording-grid .check-row {
  grid-column: 1 / 3;
  flex-direction: row;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}

.recording-grid .check-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--orange);
}

.input-meter-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0f13;
}

.input-meter-card > div:first-child {
  grid-column: 1 / 3;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8px;
}

.input-meter {
  height: 8px;
  align-self: center;
  overflow: hidden;
  border-radius: 6px;
  background: #222831;
}

.input-meter i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow) 72%, #ff5d74);
  transition: width 0.07s;
}

.marker-modal {
  display: grid;
  width: min(390px, 90vw);
  padding: 20px;
  gap: 14px;
}

.marker-modal .modal-head {
  margin-bottom: 2px;
}

.marker-modal input[type="color"] {
  padding: 3px;
}

.virtual-instruments {
  margin-top: 12px;
}

.instrument-preset-grid {
  display: grid;
  gap: 7px;
}

.instrument-preset-grid button {
  display: grid;
  grid-template-columns: 32px 1fr;
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #10141a;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.instrument-preset-grid button:hover {
  border-color: rgb(255 107 61 / 0.6);
  background: #151a21;
}

.instrument-preset-grid button > span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--orange);
  font-size: 18px;
}

.instrument-preset-grid strong {
  font-size: 9px;
}

.instrument-preset-grid small {
  color: var(--faint);
  font-size: 7px;
}

.personal-library-head {
  padding: 13px;
  margin-bottom: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: linear-gradient(145deg, rgb(66 211 232 / 0.08), rgb(159 135 255 / 0.05));
}

.personal-library-head h3 {
  margin: 5px 0;
  font-size: 15px;
}

.personal-library-head p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.personal-sample-list {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.personal-sample {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 26px 22px;
  align-items: center;
  gap: 5px;
  min-height: 45px;
  padding: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #0e1217;
}

.personal-sample button {
  height: 26px;
  border: 0;
  border-radius: 5px;
  background: #1c222b;
  color: var(--muted);
  cursor: pointer;
}

.personal-sample button:hover {
  color: white;
  background: var(--orange);
}

.personal-sample div {
  min-width: 0;
}

.personal-sample strong,
.personal-sample small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-sample strong {
  font-size: 8px;
}

.personal-sample small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 6px;
}

.personal-empty,
.section-empty {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 120px;
  color: var(--faint);
  text-align: center;
}

.personal-empty span,
.section-empty span {
  color: var(--orange);
  font-size: 24px;
}

.personal-empty strong,
.section-empty strong {
  color: var(--muted);
  font-size: 10px;
}

.personal-empty small,
.section-empty small {
  font-size: 7px;
}

.sections-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  height: 100%;
}

.section-list {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  padding: 16px;
  overflow: auto;
}

.section-card {
  display: grid;
  grid-template-columns: 1fr 28px 28px;
  min-height: 55px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #0f1318;
  overflow: hidden;
}

.section-card button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.section-jump {
  display: grid;
  grid-template-columns: 7px 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px;
  text-align: left;
}

.section-jump i {
  width: 4px;
  height: 30px;
  border-radius: 4px;
  background: var(--section-color);
}

.section-jump strong,
.section-jump small {
  display: block;
}

.section-jump strong {
  color: var(--text);
  font-size: 9px;
}

.section-jump small {
  margin-top: 3px;
  color: var(--faint);
  font: 500 7px "DM Mono", monospace;
}

.section-rename:hover,
.section-delete:hover {
  background: #1a2028;
  color: white;
}

.mobile-dock {
  display: none;
}

.ai-tab {
  color: #c9baff;
}

.ai-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  height: 100%;
  min-width: 820px;
  background:
    radial-gradient(circle at 20% 10%, rgb(159 135 255 / 0.1), transparent 32%),
    #0b0e12;
}

.ai-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-right: 1px solid var(--line-soft);
}

.ai-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.ai-brand > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #9f87ff, #5e46c8);
  color: white;
  box-shadow: 0 6px 20px rgb(159 135 255 / 0.24);
}

.ai-brand strong,
.ai-brand small {
  display: block;
}

.ai-brand strong {
  font-size: 12px;
}

.ai-brand small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 7px;
}

.ai-access-card {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid rgb(159 135 255 / 0.28);
  border-radius: 7px;
  background: rgb(159 135 255 / 0.08);
}

.ai-access-card span {
  color: #cfc4ff;
  font: 700 7px "DM Mono", monospace;
  letter-spacing: 0.08em;
}

.ai-access-card small {
  color: var(--muted);
  font-size: 7px;
  line-height: 1.45;
}

.ai-sidebar label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 8px;
}

.ai-sidebar select {
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #10141a;
  color: var(--text);
  font-size: 8px;
}

.ai-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.ai-mode-grid button,
.ai-creative-actions button {
  min-height: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #11161c;
  color: var(--muted);
  font-size: 8px;
  cursor: pointer;
}

.ai-mode-grid button.active,
.ai-mode-grid button:hover {
  border-color: #9f87ff;
  color: white;
  background: rgb(159 135 255 / 0.13);
}

.ai-mode-grid button.locked,
.ai-creative-actions button.locked {
  border-style: dashed;
  color: #686f7a;
  cursor: not-allowed;
  opacity: 0.72;
}

.ai-mode-grid button.locked::after,
.ai-creative-actions button.locked::after {
  content: " VIP";
  color: #9f87ff;
  font: 700 6px "DM Mono", monospace;
}

.ai-analyze {
  justify-content: center;
  width: 100%;
}

.ai-results {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  padding: 14px;
}

.ai-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ai-results-head h3 {
  margin: 4px 0 0;
  font-size: 13px;
}

.ai-score {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid #9f87ff;
  border-radius: 50%;
  color: white;
  font: 700 13px "DM Mono", monospace;
}

.ai-suggestion-list {
  display: grid;
  align-content: start;
  gap: 7px;
  overflow: auto;
}

.ai-suggestion {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid #7d8794;
  border-radius: 7px;
  background: rgb(17 22 28 / 0.92);
}

.ai-suggestion.high {
  border-left-color: #ff5d74;
}

.ai-suggestion.medium {
  border-left-color: #ffd166;
}

.ai-suggestion.low {
  border-left-color: #42d3e8;
}

.ai-suggestion.good {
  border-left-color: #6ce5aa;
}

.ai-severity {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #202630;
  font-weight: 800;
}

.ai-suggestion strong {
  font-size: 9px;
}

.ai-suggestion p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.45;
}

.ai-suggestion-actions {
  display: flex;
  gap: 4px;
}

.ai-suggestion-actions button {
  height: 27px;
  padding: 0 7px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: #171c23;
  color: var(--muted);
  font-size: 7px;
  cursor: pointer;
}

.ai-suggestion-actions .apply {
  border-color: rgb(159 135 255 / 0.6);
  color: #d4c9ff;
}

.ai-empty {
  display: grid;
  place-items: center;
  min-height: 100px;
  color: var(--faint);
  text-align: center;
}

.ai-empty span {
  color: #9f87ff;
  font-size: 24px;
}

.ai-empty p {
  max-width: 430px;
  font-size: 8px;
  line-height: 1.55;
}

.ai-creative-actions {
  display: flex;
  gap: 6px;
  padding-top: 9px;
}

.ai-creative-actions button {
  padding: 0 10px;
}

.ai-upgrade {
  min-height: 28px;
  margin-top: 8px;
  border: 1px solid rgb(159 135 255 / 0.42);
  border-radius: 6px;
  background: rgb(159 135 255 / 0.11);
  color: #d6ceff;
  font-size: 7px;
  cursor: pointer;
}

.piano-cell.active {
  opacity: calc(0.45 + var(--velocity, 0.8) * 0.55);
}

.account-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 31px;
  padding: 0 9px 0 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #161a21;
  color: var(--muted);
  font-size: 8px;
  cursor: pointer;
}

.plans-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 31px;
  padding: 0 10px;
  border: 1px solid rgb(255 107 61 / 0.38);
  border-radius: 7px;
  background: rgb(255 107 61 / 0.08);
  color: #ff9a77;
  font-size: 8px;
  cursor: pointer;
}

.plans-button:hover {
  border-color: rgb(255 107 61 / 0.8);
  color: white;
}

.plans-button span {
  color: #ff6b3d;
  font-size: 12px;
}

.desktop-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 31px;
  padding: 0 9px;
  border: 1px solid rgb(66 211 232 / 0.32);
  border-radius: 7px;
  background: rgb(66 211 232 / 0.07);
  color: #8fdcf0;
  font-size: 8px;
  cursor: pointer;
}

.desktop-button:hover {
  border-color: rgb(66 211 232 / 0.65);
  color: white;
}

.desktop-button span {
  color: #42d3e8;
  font-size: 11px;
}

.desktop-modal {
  width: min(760px, 94vw);
  padding: 23px;
  background:
    radial-gradient(circle at 12% 0%, rgb(66 211 232 / 0.11), transparent 34%),
    #101319;
}

.desktop-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 15px 0;
  padding: 14px;
  border: 1px solid rgb(66 211 232 / 0.22);
  border-radius: 10px;
  background: rgb(66 211 232 / 0.06);
}

.desktop-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b3d, #d64a22);
  color: white;
  font: 800 11px "DM Mono", monospace;
  box-shadow: 0 8px 24px rgb(255 107 61 / 0.2);
}

.desktop-hero strong,
.desktop-hero p {
  display: block;
}

.desktop-hero strong {
  font-size: 11px;
}

.desktop-hero p,
.desktop-options p,
.desktop-note {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.desktop-hero p {
  margin: 4px 0 0;
}

.desktop-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.desktop-options article {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c1015;
}

.desktop-options h3 {
  margin: 8px 0 4px;
  font-size: 13px;
}

.desktop-option-kicker {
  color: #8fdcf0;
  font: 700 7px "DM Mono", monospace;
  letter-spacing: 0.08em;
}

.desktop-options .tool-button,
.desktop-download-link {
  justify-content: center;
  width: 100%;
  margin-top: auto;
}

.desktop-download-link {
  text-decoration: none;
}

.desktop-options small {
  margin-top: 7px;
  color: var(--faint);
  font-size: 7px;
  text-align: center;
}

.desktop-note {
  margin: 13px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
}

.pricing-modal {
  width: min(980px, 95vw);
  max-height: min(820px, 92vh);
  padding: 23px;
  overflow: auto;
  background:
    radial-gradient(circle at 75% 0%, rgb(159 135 255 / 0.12), transparent 33%),
    #101319;
}

.trial-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 15px 0;
  padding: 13px 15px;
  border: 1px solid rgb(66 211 232 / 0.25);
  border-radius: 10px;
  background: linear-gradient(135deg, rgb(66 211 232 / 0.08), rgb(159 135 255 / 0.05));
}

.trial-overview strong,
.trial-overview small {
  display: block;
}

.trial-overview strong {
  margin: 4px 0;
  font-size: 11px;
}

.trial-overview small {
  color: var(--muted);
  font-size: 8px;
}

.commerce-mode-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgb(255 209 102 / 0.4);
  border-radius: 20px;
  color: #ffd166;
  font: 600 7px "DM Mono", monospace;
}

.commerce-mode-badge.live {
  border-color: rgb(108 229 170 / 0.45);
  color: #6ce5aa;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 345px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0c1015;
}

.price-card.vip-card {
  border-color: rgb(159 135 255 / 0.5);
  background: linear-gradient(160deg, rgb(159 135 255 / 0.13), #0c1015 42%);
  box-shadow: 0 15px 42px rgb(0 0 0 / 0.22);
}

.price-kicker {
  color: var(--faint);
  font: 600 7px "DM Mono", monospace;
  letter-spacing: 0.12em;
}

.price-card h3 {
  margin: 9px 0 13px;
  font-size: 14px;
}

.price-card .price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0 0 13px;
}

.price-card .price strong {
  font-size: 24px;
}

.price-card .price small {
  color: var(--muted);
  font-size: 8px;
}

.price-card ul {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
  color: #b5bdc8;
  font-size: 8px;
  line-height: 1.45;
  list-style: none;
}

.price-card li::before {
  content: "✓";
  margin-right: 7px;
  color: #6ce5aa;
}

.price-action {
  justify-content: center;
  width: 100%;
  margin-top: auto;
}

.monthly-action {
  width: 100%;
  margin-top: 7px;
  text-align: center;
}

.recommended-badge {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 5px 7px;
  border-radius: 20px;
  background: #9f87ff;
  color: #0b0d11;
  font: 800 6px "DM Mono", monospace;
}

.pricing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.pricing-footer p {
  margin: 0;
  color: var(--faint);
  font-size: 7px;
  line-height: 1.5;
}

.license-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.account-button:hover {
  border-color: rgb(159 135 255 / 0.6);
  color: white;
}

.account-button span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  background: #272d37;
  color: #c9baff;
  font-size: 9px;
}

.account-modal {
  width: min(680px, 94vw);
  max-height: min(760px, 90vh);
  padding: 22px;
  overflow: auto;
}

.account-intro {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgb(159 135 255 / 0.24);
  border-radius: 10px;
  background: linear-gradient(135deg, rgb(159 135 255 / 0.1), rgb(66 211 232 / 0.04));
}

.account-intro > span {
  color: #b8a5ff;
  font-size: 28px;
}

.account-intro strong {
  font-size: 11px;
}

.account-intro p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.account-tabs button {
  height: 35px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--faint);
  font-size: 9px;
  cursor: pointer;
}

.account-tabs button.active {
  border-bottom-color: #9f87ff;
  color: white;
}

.account-form {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.account-form.active {
  display: grid;
}

.account-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 8px;
}

.account-form input {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d1014;
  color: white;
}

.account-form label:first-child,
.account-form .account-check,
.account-form button {
  grid-column: 1 / -1;
}

#loginForm label {
  grid-column: auto;
}

.account-check {
  display: flex !important;
  align-items: center;
}

.account-check input {
  width: 15px;
  height: 15px;
  accent-color: #9f87ff;
}

.account-form button {
  justify-content: center;
}

.account-security-note {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 7px;
  line-height: 1.45;
}

.profile-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 11px;
  margin: 16px 0 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #10141a;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background: linear-gradient(135deg, #9f87ff, #5640c4);
  color: white;
  font-weight: 800;
}

.profile-card strong,
.profile-card small {
  display: block;
}

.profile-card strong {
  font-size: 12px;
}

.profile-card small {
  margin-top: 3px;
  color: var(--faint);
  font-size: 8px;
}

.role-badge,
.admin-crown {
  padding: 6px 8px;
  border: 1px solid rgb(159 135 255 / 0.45);
  border-radius: 20px;
  background: rgb(159 135 255 / 0.1);
  color: #cfc4ff;
  font: 600 7px "DM Mono", monospace;
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.account-stat-grid article {
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #0d1116;
}

.account-stat-grid span,
.account-stat-grid strong,
.account-stat-grid small {
  display: block;
}

.account-stat-grid span {
  color: var(--faint);
  font-size: 7px;
  text-transform: uppercase;
}

.account-stat-grid strong {
  margin: 6px 0 3px;
  font-size: 11px;
}

.account-stat-grid small {
  color: var(--muted);
  font-size: 7px;
}

.account-section,
.future-cloud-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #0f1318;
}

.account-section strong,
.account-section small,
.future-cloud-banner strong,
.future-cloud-banner small {
  display: block;
}

.account-section strong,
.future-cloud-banner strong {
  margin: 3px 0;
  font-size: 9px;
}

.account-section small,
.future-cloud-banner small {
  color: var(--faint);
  font-size: 7px;
}

.admin-section {
  border-color: rgb(255 209 102 / 0.32);
  background: linear-gradient(135deg, rgb(255 209 102 / 0.08), #0f1318);
}

.admin-crown {
  border-color: rgb(255 209 102 / 0.5);
  color: #ffd166;
}

.future-cloud-banner {
  justify-content: flex-start;
}

.future-cloud-banner > span {
  color: #42d3e8;
  font-size: 22px;
}

.cloud-backup-list {
  display: grid;
  gap: 6px;
  max-height: 150px;
  margin-top: 7px;
  overflow: auto;
}

.cloud-backup-list > p {
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed var(--line-soft);
  border-radius: 8px;
  color: var(--faint);
  font-size: 8px;
}

.cloud-backup-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #0d1116;
}

.cloud-backup-list strong,
.cloud-backup-list small {
  display: block;
}

.cloud-backup-list strong {
  font-size: 9px;
}

.cloud-backup-list small {
  margin-top: 3px;
  color: var(--faint);
  font-size: 7px;
}

.account-logout {
  margin-top: 14px;
  color: #ff8194;
}

.project-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
}

.project-modal-actions span {
  color: var(--faint);
  font-size: 8px;
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0d1014;
}

.project-card.current {
  border-color: rgb(255 91 46 / 0.55);
  box-shadow: inset 3px 0 var(--orange);
}

.project-card strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card small {
  grid-column: 1;
  color: var(--faint);
  font-size: 8px;
}

.project-card-actions {
  grid-row: 1 / 3;
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-card-actions button {
  height: 29px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #171b22;
  color: #aeb5bf;
  font-size: 8px;
  cursor: pointer;
}

.project-card-actions button:hover {
  color: white;
}

.project-card-actions .danger:hover {
  border-color: #ff5d74;
  color: #ff7d94;
}

@media (max-height: 760px) {
  .arrangement {
    --bottom-panel-height: min(224px, 38vh);
    grid-template-rows: 58px minmax(140px, 1fr) var(--bottom-panel-height);
  }

  .bottom-content {
    height: calc(var(--bottom-panel-height) - 35px);
  }

  .piano-roll {
    grid-template-rows: repeat(14, 20px);
  }
}

@media (max-width: 1180px) {
  .project-status span,
  .top-actions .tool-button:first-child,
  .top-actions .stems {
    display: none;
  }

  .project-status {
    min-width: auto;
  }

  .account-button strong {
    display: none;
  }

  .account-button span {
    display: grid;
  }

  .plans-button strong {
    display: none;
  }

  .desktop-button strong {
    display: none;
  }

  .plans-button span {
    display: inline;
  }

  .transport {
    gap: 10px;
  }

  .master-mini label,
  .toggle-button span {
    display: none;
  }

  .clip-editor {
    grid-template-columns: 150px 100px 100px repeat(3, minmax(115px, 1fr)) 90px;
  }
}

@media (max-width: 980px) {
  .browser-panel {
    width: 40px;
    padding: 13px 6px;
    overflow: hidden;
  }

  .workspace {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .browser-panel > *:not(.panel-heading),
  .browser-panel .panel-heading > div {
    display: none;
  }

  .top-actions .tool-button:not(.primary):not(.export) {
    display: none;
  }

  .signatureSelect,
  .compact-field:nth-of-type(2) {
    display: none;
  }
}

@media (pointer: coarse) {
  .round-button,
  .edit-tool,
  .track-buttons button {
    min-width: 34px;
    min-height: 34px;
  }

  .clip-resize {
    width: 14px;
  }
}

@media (max-width: 760px) {
  body {
    overflow: hidden;
  }

  .app-shell {
    height: 100dvh;
    padding-bottom: 62px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    min-height: 54px;
    padding: 0 10px;
  }

  .brand small,
  .project-status,
  .top-actions .tool-button,
  .statusbar {
    display: none;
  }

  .top-actions .primary {
    display: inline-flex;
  }

  .transport {
    min-height: 58px;
    padding: 7px 9px;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .transport-main,
  .master-mini,
  .zoom-control,
  .transport > .toggle-button:not(#loopBtn),
  .transport > .compact-field {
    display: none;
  }

  .time-display {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 112px;
    background: #11151b;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .browser-panel {
    display: none;
  }

  .arrangement {
    --bottom-panel-height: 205px;
    grid-template-rows: 58px minmax(130px, 1fr) var(--bottom-panel-height);
  }

  .arrangement-toolbar {
    padding: 8px 10px;
  }

  .arrangement-toolbar h1 {
    max-width: 145px;
    font-size: 14px;
  }

  .edit-tools .edit-tool:nth-of-type(-n + 4),
  .edit-tools .toolbar-separator,
  .edit-tools .marker-button {
    display: none;
  }

  .add-track-button {
    min-height: 36px;
  }

  .tracks-content,
  .timeline-ruler-row {
    min-width: 900px;
  }

  .bottom-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .bottom-tab {
    flex: 0 0 auto;
    min-width: 82px;
  }

  .bottom-content {
    height: calc(var(--bottom-panel-height) - 35px);
    overflow: auto;
  }

  .clip-editor,
  .creator-panel,
  .piano-panel-layout,
  .automation-layout,
  .analyzer-layout,
  .sections-layout,
  .ai-layout {
    min-width: 760px;
  }

  .mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 62px;
    padding: 6px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid #2a3039;
    background: rgb(11 14 18 / 0.97);
    backdrop-filter: blur(14px);
  }

  .mobile-dock button {
    display: grid;
    place-items: center;
    gap: 2px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 7px;
  }

  .mobile-dock span {
    color: white;
    font-size: 18px;
  }

  .mobile-dock .mobile-play span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 6px 20px rgb(255 91 46 / 0.3);
  }

  dialog {
    max-width: calc(100vw - 20px);
  }

  .recording-grid {
    grid-template-columns: 1fr;
  }

  .account-form,
  .account-stat-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    min-height: 0;
  }

  .pricing-modal {
    padding: 17px;
  }

  .trial-overview,
  .pricing-footer,
  .license-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .desktop-options {
    grid-template-columns: 1fr;
  }

  .desktop-modal {
    max-height: 90vh;
    overflow: auto;
    padding: 17px;
  }

  .account-form label,
  #loginForm label,
  .account-form button {
    grid-column: 1;
  }

  .recording-grid .check-row {
    grid-column: 1;
  }
}
