.workbench {
  background: #fafbfd;
  color: #222a35;
}
.workbench .project h1 {
  font-size: clamp(26px, 3vw, 42px);
  margin: 0;
}
.workbench .project {
  padding: 24px 0 20px;
}
.inline-workbench .top {
  display: none;
}
.inline-workbench .shell {
  width: 100%;
  margin: auto;
}
.workbench .desk {
  display: grid;
  grid-template-columns: minmax(0, 1.54fr) minmax(320px, 1fr);
  gap: 18px;
}
.workbench .viewport {
  aspect-ratio: 16/9;
}
.workbench .left {
  display: grid;
  gap: 14px;
}
.workbench .inspector {
  display: block;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: white;
  overflow: hidden;
  min-width: 0;
  align-self: stretch;
}
.workbench .inspector section {
  box-shadow: none;
  border: 0;
  border-radius: 0;
  padding: 14px;
}
.workbench .tabs {
  display: flex;
  border-bottom: 1px solid var(--edge);
}
.workbench .tabs button {
  flex: 1;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #526175;
  min-height: 46px !important;
}
.workbench .tabs button[aria-pressed='true'] {
  color: #245b9a;
  background: #f1f6fc !important;
  box-shadow: inset 0 -3px #3678c4;
}
.workbench:not([data-panel='visual']) #visualPanel,
.workbench:not([data-panel='words']) #wordsPanel,
.workbench:not([data-panel='motion']) #motionPanel,
.workbench:not([data-panel='motion']) .motion-only,
.workbench:not([data-panel='motion']) #clips,
.workbench:not([data-panel='words']) #cueBand,
.workbench:not(.loop-mode) .loop-only,
.workbench.loop-mode .song-only,
.workbench #cueTicks {
  display: none !important;
}
.wordsPanel .partHead {
  margin: 0 0 12px;
}
.cue-row {
  margin: 7px 0;
  border: 1px solid #dae1e9;
  border-radius: 9px;
  overflow: hidden;
}
.cue-row.selected {
  background: #edf4ff;
  border-color: #6596d2;
}
.cue-head,
.cue-actions,
.cue-fields,
.subtitle-downloads,
.cue-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cue-head {
  padding: 5px;
}
.cue-head button {
  border: 0 !important;
  background: transparent !important;
  min-height: 34px !important;
  padding: 4px 6px !important;
}
.cue-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: start;
}
.cue-times,
.cue-number,
.cue-fields input {
  font-family: ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.cue-times,
.cue-number {
  font-size: 11px;
  color: #46556c;
}
.cue-edit {
  padding: 0 10px 10px;
}
.cue-edit input {
  width: 100%;
  border: 1px solid #adbbcc;
  border-radius: 6px;
  background: white;
  padding: 7px;
  color: #202a36;
  min-height: 38px;
  font-size: 15px;
}
.cue-fields,
.cue-actions {
  margin-top: 8px;
  flex-wrap: wrap;
}
.cue-fields label {
  flex: 1;
  min-width: 85px;
  font-size: 12px;
}
.cue-fields input {
  display: block;
  margin: 4px 0;
}
.cue-actions button,
.subtitle-downloads button {
  font-size: 13px;
}
.cue-actions [aria-pressed='true'] {
  color: #2465a8;
  background: #dceafa !important;
}
.subtitle-downloads {
  margin-top: 14px;
}
.subtitle-downloads > * {
  flex: 1;
}
.cue-done,
.cue-switch {
  display: none !important;
}
.workbench #rows {
  max-height: 430px;
  overflow: auto;
  scrollbar-gutter: stable;
}
.workbench #cueBand {
  height: 43px;
  position: relative;
  background: #f4f7fb;
  margin-top: 4px;
}
.workbench #cueBand .cue {
  position: absolute;
  font-size: 11px;
  padding: 4px;
  border: 1px solid #c9d4e2;
  min-height: 40px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: start;
}
.workbench #cueBand .cue[aria-pressed='true'] {
  border-color: #4384d2;
  background: #dceafe;
  color: #174b87;
}
.cue-handle {
  position: absolute;
  z-index: 2;
  bottom: 0;
  height: 42px;
  width: 16px;
  transform: translateX(-50%);
  cursor: ew-resize;
  touch-action: none;
  display: grid;
  place-items: center;
}
.cue-handle:after {
  content: '';
  width: 7px;
  height: 23px;
  border: 1px solid white;
  border-radius: 5px;
  background: #377ac8;
  box-shadow: 0 0 0 1px #377ac8;
}
.workbench .trackArea {
  margin-inline: 6px;
}
.workbench .lyricPanel {
  margin-top: 15px;
}
.workbench .source {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.workbench .source label {
  display: inline-grid;
  gap: 4px;
}
.workbench .source input {
  max-width: 100%;
}
.workbench .loop-settings label {
  display: block;
  margin: 12px 0;
}
.loop-settings select,
.loop-settings input {
  width: 100%;
}
.workbench .job {
  margin-bottom: 5px;
}
.workbench .cue-head button:focus-visible,
.workbench :focus-visible {
  outline: 2px solid #3c7cc9;
  outline-offset: 1px;
}
.workbench .beat-track {
  display: flex;
  gap: 2px;
  height: 42px;
}
.beat-track span {
  flex: 1;
  background: #dbe6f3;
}
.beat-track span:nth-child(4n + 1) {
  background: #acc8e7;
}
@media (max-width: 720px) {
  .workbench .project {
    padding: 14px 0;
    flex-wrap: wrap;
  }
  .workbench .project h1 {
    font-size: 26px;
  }
  .workbench .desk {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .workbench .left,
  .workbench .inspector {
    display: block;
    width: 100%;
  }
  .workbench .timelineBox {
    margin-top: 12px;
  }
  .workbench .cue-open .cue-row:not(.selected),
  .workbench .cue-open .selected > .cue-head {
    display: none;
  }
  .workbench .cue-switch {
    display: flex !important;
    justify-content: space-between;
    margin: 5px 0 8px;
  }
  .workbench .cue-switch button {
    min-width: 44px;
  }
  .workbench .cue-done {
    display: block !important;
    width: 100%;
    margin-top: 10px;
    background: #232a34 !important;
    color: white !important;
  }
  .workbench .cue-edit {
    padding: 8px;
  }
  .workbench .cue-row.selected {
    background: #fff;
  }
  .workbench .cue-fields input,
  .workbench .cue-edit button,
  .workbench .cue-text {
    min-height: 44px !important;
  }
  .workbench #rows {
    max-height: none;
  }
  .workbench .cue-handle {
    width: 24px;
  }
  .workbench .cue-name {
    min-width: 0;
  }
  .workbench .source {
    display: grid;
  }
  .workbench .shell {
    max-width: 100%;
  }
  .workbench .monitor .viewport {
    display: grid;
  }
  .workbench .deck {
    gap: 6px;
  }
}

.workbench #sourcePanel {
  padding: 0;
  border: 1px solid #d5dee8;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}
.audio-source summary {
  min-height: 56px;
  padding: 14px clamp(14px, 2vw, 26px);
  list-style: none;
}
.audio-source summary::-webkit-details-marker {
  display: none;
}
.audio-section-title,
.audio-bars,
.audio-file-card,
.audio-footer,
.audio-privacy,
.audio-meta,
.audio-controls {
  display: flex;
  align-items: center;
}
.workbench #sourcePanel .audio-section-title {
  gap: 10px;
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 650;
  letter-spacing: -0.025em;
}
.audio-bars {
  height: 20px;
  gap: 2px;
  flex: none;
}
.audio-bars i {
  background: currentColor;
  width: 3px;
  height: 6px;
  border-radius: 2px;
}
.audio-bars i:nth-child(2),
.audio-bars i:nth-child(4) {
  height: 13px;
}
.audio-bars i:nth-child(3) {
  height: 19px;
}
.source-chevron {
  width: 10px;
  height: 10px;
  border: solid #536071;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-right: 4px;
}
.audio-source[open] .source-chevron {
  transform: rotate(225deg);
}
.audio-content {
  padding: 0 clamp(14px, 2vw, 26px) 14px;
}
.audio-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  margin: 8px 0 16px;
}
.audio-asset,
.audio-recognition,
.audio-file-info {
  min-width: 0;
}
.audio-file-card {
  background: #f2f5f8;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  min-height: 74px;
}
#sourceWave {
  width: clamp(44px, 7vw, 105px);
  height: 36px;
  border-right: 1px solid #ccd5df;
  padding-right: 12px;
  flex: none;
}
.audio-file-info {
  flex: 1;
}
.audio-file-info strong,
.audio-file-info small {
  display: block;
}
.audio-file-info strong {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audio-source small,
.audio-privacy {
  font-size: 13px;
  color: #526275;
  line-height: 1.5;
}
.audio-meta {
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 3px;
}
.workbench #sourcePanel #replaceAudio,
.workbench #sourcePanel #asr {
  min-height: 44px;
  border-radius: 8px;
  padding: 8px 14px;
  line-height: 1.25;
}
.workbench #sourcePanel #demo,
.workbench #sourcePanel #importTrigger {
  min-height: 40px;
  padding: 5px 0;
  background: transparent;
  border: 0;
  color: #285e9c;
  font-weight: 600;
  text-align: start;
  line-height: 1.35;
}
.audio-recognition {
  padding-left: clamp(16px, 2.5vw, 36px);
  border-left: 1px solid #d9e0e8;
}
.audio-recognition label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 4px 0 7px;
}
.audio-controls {
  gap: 10px;
  align-items: stretch;
}
.audio-controls select {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  background: white;
  color: #242830;
  border: 1px solid #98a6b6;
  border-radius: 8px;
  min-height: 44px;
  padding: 7px;
  font: inherit;
}
.workbench #sourcePanel #asr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 58%;
  background: #262c35;
  color: white;
  border: 1px solid #262c35;
  font-weight: 600;
}
.workbench #sourcePanel #asr .audio-bars {
  transform: scale(0.8);
}
.audio-footer {
  justify-content: space-between;
  gap: 18px;
  padding-top: 8px;
  border-top: 1px solid #dce3eb;
}
.audio-privacy {
  gap: 9px;
}
.monitor-icon {
  width: 16px;
  height: 11px;
  border: 1.6px solid currentColor;
  border-radius: 2px;
  position: relative;
  flex: none;
}
.monitor-icon:after {
  content: '';
  position: absolute;
  left: 3px;
  bottom: -4px;
  width: 7px;
  border-bottom: 1.6px solid currentColor;
}
.audio-footer button {
  flex: none;
}
.audio-source summary:focus-visible,
.audio-controls select:focus-visible {
  outline: 2px solid #3974b5;
  outline-offset: -2px;
}
@media (max-width: 720px) {
  .audio-main {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 4px 0 13px;
  }
  .audio-recognition {
    padding: 0;
    border: 0;
  }
  .audio-file-card {
    padding: 10px;
    gap: 8px;
  }
  .audio-asset .audio-meta {
    align-items: center;
  }
  .audio-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding-top: 12px;
  }
  .audio-source summary {
    min-height: 52px;
  }
  .audio-controls select,
  .workbench #sourcePanel #asr {
    flex: 1;
  }
  .audio-file-info strong {
    font-size: 14px;
  }
  .workbench #sourcePanel #replaceAudio {
    max-width: 40%;
    font-size: 14px;
  }
  .workbench #sourcePanel #importTrigger,
  .workbench #sourcePanel #demo {
    min-height: 44px;
  }
}

.workbench #sourcePanel .audio-section-title {
  color: #242830;
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.4;
}
.audio-source .audio-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
}
.workbench #sourcePanel #asr {
  max-width: none;
}
