:root {
  color-scheme: dark;
}
.lb-studio {
  background: #09080d;
  color: #f5f3f9;
  margin: 0;
  font-family: Golos, Inter, "Segoe UI", Arial, sans-serif;
}
.s-wrap,
.s-dialog {
  --s-bg: #111017;
  --s-line: #2b2737;
  --s-muted: #b8b1c5;
  --s-violet: #c4aaff;
  --s-code: "SFMono-Regular", Consolas, monospace;
  font-family: Golos, Inter, "Segoe UI", Arial, sans-serif;
  color: #f4f0f9;
}
.s-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 38px clamp(16px, 4vw, 70px) 70px;
}
.s-wrap *,
.s-dialog * {
  box-sizing: border-box;
}
.s-heading,
.s-sectionhead,
.s-actions,
.s-sectionhead h2,
.s-transport,
.s-stage-info,
.s-nav,
.s-sequence-head,
.s-note-head,
.s-hand,
.s-wrap button,
.s-dialog button,
.s-drop,
.s-stage-helper,
.s-score,
.s-taps {
  display: flex;
  align-items: center;
}
.s-heading,
.s-sectionhead,
.s-sequence-head,
.s-note-head {
  justify-content: space-between;
  gap: 14px;
}
.s-heading {
  align-items: end;
  margin-bottom: 25px;
}
.s-crumb,
.s-code,
.s-clock,
.s-drop small,
.s-mini-label,
.s-led {
  font-family: var(--s-code);
}
.s-crumb {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b8adcd;
  text-decoration: none;
}
.s-crumb span {
  color: #86759b;
}
.s-wrap h1,
.s-wrap h2,
.s-dialog h2,
.s-wrap p,
.s-dialog p {
  margin: 0;
}
.s-wrap h1 {
  font-weight: 640;
  letter-spacing: -0.055em;
  font-size: clamp(32px, 3.2vw, 52px);
  line-height: 1.08;
  margin-top: 6px;
}
.s-actions {
  flex-wrap: wrap;
  gap: 7px;
}
.s-wrap button,
.s-dialog button {
  font: inherit;
  font-size: 13px;
  font-weight: 570;
  justify-content: center;
  gap: 8px;
  color: #f3edf8;
  background: #201d28;
  border: 1px solid #37313f;
  border-radius: 10px;
  min-height: 39px;
  padding: 8px 13px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1.4);
}
.s-wrap button:enabled:hover,
.s-dialog button:enabled:hover {
  background: #302837;
  border-color: #665471;
}
.s-wrap button:enabled:active,
.s-dialog button:enabled:active {
  transform: scale(0.96);
}
.s-wrap button:disabled,
.s-wrap fieldset:disabled button,
.s-wrap input:disabled,
.s-wrap select:disabled {
  opacity: 0.5;
  cursor: default;
}
.s-wrap button:focus-visible,
.s-dialog button:focus-visible,
.s-wrap a:focus-visible,
.s-wrap summary:focus-visible,
.s-wrap input:focus-visible,
.s-wrap select:focus-visible,
.s-dialog textarea:focus-visible,
.s-drop:focus-within {
  outline: 2px solid #c4a2ff;
  outline-offset: 3px;
}
.s-wrap .s-emph,
.s-wrap .s-primary,
.s-dialog .s-primary {
  background: linear-gradient(120deg, #c9affb, #b28aed);
  border: 1px solid #d4b9ff;
  color: #211532;
  box-shadow:
    inset 0 1px #fff5,
    0 2px 11px #9a65eb18;
}
.s-wrap .s-emph:enabled:hover,
.s-wrap .s-primary:enabled:hover,
.s-dialog .s-primary:enabled:hover {
  background: #d2b8ff;
  color: #160d20;
  border-color: #e2d0ff;
}
.s-wrap [data-icon],
.s-dialog [data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.s-wrap [data-icon] svg,
.s-dialog [data-icon] svg {
  width: 100%;
  height: 100%;
}
.s-workspace {
  display: grid;
  grid-template-columns: minmax(238px, 0.35fr) minmax(0, 1fr);
  gap: 17px;
  align-items: stretch;
}
.s-panel {
  background: var(--s-bg);
  border: 1px solid var(--s-line);
  border-radius: 17px;
  overflow: hidden;
  min-width: 0;
}
.s-sectionhead {
  padding: 13px 18px;
  min-height: 51px;
  border-bottom: 1px solid var(--s-line);
}
.s-sectionhead h2 {
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-size: 16px;
  gap: 9px;
}
.s-sectionhead h2 i {
  color: #ba9fea;
}
.s-indicator,
.s-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a5e4c1;
  box-shadow: 0 0 9px #90e9b555;
}
.s-indicator {
  margin-right: 2px;
}
.s-drop {
  margin: 15px 15px 12px;
  border: 1px dashed #5b486b;
  border-radius: 10px;
  background: linear-gradient(130deg, #282034, #1c1723);
  min-height: 99px;
  padding: 15px 10px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.s-drop:hover,
.s-drop[data-drag="true"] {
  border-color: #c09bee;
  background: #2b2238;
}
.s-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.s-drop [data-icon] {
  color: #c4a5ea;
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
}
.s-drop b,
.s-drop small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.s-drop b {
  font-size: 13px;
  font-weight: 580;
}
.s-drop small {
  font-size: 10px;
  color: var(--s-muted);
}
.s-options {
  display: grid;
  padding: 0 15px 16px;
  gap: 10px;
}
.s-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.s-field > span,
.s-hand legend,
.s-mini-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--s-muted);
}
.s-field input:not([type="range"]),
.s-field select,
.s-field textarea {
  display: block;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  background: #18151e;
  color: #f1eaf6;
  border: 1px solid #38313f;
  border-radius: 7px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  height: 34px;
}
.s-field input::placeholder,
.s-field textarea::placeholder {
  color: #a49aaf;
}
.s-field select {
  color-scheme: dark;
  cursor: pointer;
}
.s-field textarea {
  height: auto;
  resize: vertical;
  min-height: 68px;
}
.s-options details {
  font-size: 12px;
  color: var(--s-muted);
}
.s-options summary {
  padding: 5px 0;
  cursor: pointer;
  min-height: 26px;
}
.s-settings {
  margin: 6px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.s-settings .s-full {
  grid-column: 1/-1;
}
.s-field output {
  float: right;
  font-family: var(--s-code);
}
.s-field input[type="range"] {
  accent-color: #ba9aef;
  width: 100%;
  margin: 3px 0;
}
.s-wrap .s-demo {
  min-height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #c6acd9;
  font-size: 12px;
}
.s-preview {
  display: flex;
  flex-direction: column;
}
.s-code {
  font-size: 11px;
  font-weight: 500;
  color: #c1b4cf;
  white-space: nowrap;
}
.s-stage {
  position: relative;
  flex: 1;
  min-height: 280px;
  isolation: isolate;
  overflow: hidden;
  background: #0c0812;
}
.s-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.s-stage-info,
.s-stage-helper,
.s-score,
.s-taps {
  position: absolute;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: #e1d6ed;
}
.s-stage-info,
.s-score,
.s-stage-helper {
  padding: 5px 9px;
  border: 1px solid #b29ac33a;
  background: #171020ab;
  border-radius: 7px;
  backdrop-filter: blur(8px);
}
.s-stage-info {
  top: 15px;
  left: 15px;
}
.s-led {
  width: 5px;
  height: 5px;
  background: #bc91f1;
  box-shadow: 0 0 9px #bc91f166;
}
.s-stage-helper {
  bottom: 12px;
  left: 12px;
}
.s-score {
  right: 13px;
  top: 15px;
  font-family: var(--s-code);
}
.s-taps {
  bottom: 12px;
  right: 12px;
  gap: 5px;
}
.s-wrap .s-taps button {
  min-height: 34px;
  background: #19141ddc;
  font-size: 11px;
  padding: 4px 8px;
  backdrop-filter: blur(8px);
}
.s-wrap .s-taps button:first-child {
  color: #ff9bab;
  border-color: #8a4254;
}
.s-wrap .s-taps button:last-child {
  color: #8bbdff;
  border-color: #344f80;
}
.s-wrap kbd {
  padding: 1px 4px;
  border: 1px solid #80778288;
  border-radius: 3px;
  font-family: var(--s-code);
  font-size: 10px;
}
.s-transport {
  padding: 12px 15px;
  gap: 11px;
  border-top: 1px solid #3b2c46;
}
.s-wrap .s-play {
  color: #1b112b;
  background: #d0b4ff;
  border-color: #d0b4ff;
  padding: 0;
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 50%;
}
.s-transport-name {
  min-width: 0;
  display: grid;
  gap: 2px;
  flex: 1;
}
.s-transport-name > * {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.s-transport-name strong {
  font-size: 14px;
  font-weight: 570;
}
.s-transport-name > span {
  font-size: 11px;
  color: var(--s-muted);
}
.s-clock {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.s-clock small {
  font-size: 11px;
  color: var(--s-muted);
}
.s-wrap .s-mode {
  font-size: 12px;
  min-height: 32px;
}
.s-wrap .s-mode[aria-pressed="true"] {
  color: #d6bafa;
  border-color: #816299;
  background: #32243d;
}
.s-wave {
  position: relative;
  height: 42px;
  margin: 0 17px 14px;
  overflow: hidden;
  border-radius: 5px;
  background: #19131f;
}
.s-wave canvas,
.s-wave input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.s-wave input {
  opacity: 0;
  cursor: ew-resize;
}
.s-wave:focus-within {
  outline: 2px solid var(--s-violet);
  outline-offset: 2px;
}
.s-editor {
  margin-top: 17px;
}
.s-editor .s-sectionhead {
  min-height: 49px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.s-small button,
.s-nav button {
  height: 29px;
  min-height: 29px;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 11px;
}
.s-edit-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
}
.s-sequence {
  padding: 17px 19px;
  overflow: hidden;
  min-width: 0;
}
.s-sequence-head {
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.s-sequence-head > div:first-child {
  display: flex;
  gap: 12px;
  align-items: center;
}
.s-sequence-head b,
.s-note-head b {
  font-size: 13px;
  font-weight: 560;
}
.s-nav {
  gap: 4px;
}
.s-nav button:first-child,
.s-nav button:last-child {
  font-size: 18px;
  min-width: 29px;
}
.s-timeline {
  --gutter: 22px;
  position: relative;
  height: 148px;
  margin: 0;
  background: #15111b;
  border: 1px solid #342b3c;
  border-radius: 7px;
  overflow: hidden;
  user-select: none;
  touch-action: manipulation;
}
.s-trackgrid {
  position: absolute;
  left: var(--gutter);
  right: 0;
  bottom: 0;
  top: 20px;
  background:
    linear-gradient(90deg, #9e88bf22 1px, transparent 1px) 0 0/12.5% 100%,
    linear-gradient(#a889b51f 1px, transparent 1px) 0 0/100% 25%;
}
.s-ruler {
  position: absolute;
  top: 4px;
  margin-left: var(--gutter);
  height: 13px;
  right: 0;
  left: 0;
  pointer-events: none;
}
.s-ruler span,
.s-lanes span {
  position: absolute;
  font: 9px var(--s-code);
  color: #b5a7c0;
  letter-spacing: -0.05em;
}
.s-lanes {
  position: absolute;
  left: 6px;
  top: 20px;
  bottom: 0;
  width: 12px;
}
.s-lanes span {
  transform: translateY(-50%);
}
.s-grid-cells {
  position: absolute;
  left: var(--gutter);
  right: 0;
  bottom: 0;
  top: 20px;
}
.s-wrap .s-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0;
  width: 20px;
  height: 20px;
  min-height: 20px;
  border-radius: 4px;
  font:
    700 14px/1 Arial,
    sans-serif;
  box-shadow: 0 1px 3px #0008;
}
.s-wrap .s-dot:enabled:active {
  transform: translate(-50%, -50%) scale(0.94);
}
.s-dot[data-hand="0"],
.s-wrap #left-hand[aria-pressed="true"] {
  background: #a63756;
  color: #fff1f3;
  border-color: #e47688;
}
.s-dot[data-hand="1"],
.s-wrap #right-hand[aria-pressed="true"] {
  background: #365f98;
  color: #f4f9ff;
  border-color: #76a7ea;
}
.s-wrap .s-dot[aria-pressed="true"] {
  outline: 2px solid white;
  outline-offset: 1px;
  z-index: 1;
}
.s-grid-playhead {
  position: absolute;
  top: -20px;
  bottom: 0;
  width: 1px;
  background: #dac0ff;
  pointer-events: none;
  z-index: 2;
}
.s-grid-playhead:before {
  content: "";
  position: absolute;
  top: 0;
  left: -3px;
  border: 3.5px solid transparent;
  border-top: 5px solid #dac0ff;
}
.s-editor-tip,
.s-fine {
  font-size: 11px;
  color: var(--s-muted);
  line-height: 1.5;
  margin-top: 8px;
}
.s-note-tools {
  margin: 0;
  border: 0;
  border-left: 1px solid var(--s-line);
  min-width: 0;
  padding: 13px 16px;
  display: grid;
  gap: 9px;
}
.s-note-head {
  min-height: 20px;
}
.s-wrap #deselect {
  padding: 0;
  min-height: 21px;
  font-size: 10px;
  background: transparent;
  border: 0;
  color: #d4b2f3;
}
.s-note-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 16px;
}
.s-mini-label {
  display: block;
  margin-bottom: 4px;
  font-family: inherit;
}
.s-pos-grid,
.s-dir-grid {
  display: grid;
  gap: 2px;
}
.s-pos-grid {
  grid-template-columns: repeat(4, 1fr);
}
.s-dir-grid {
  grid-template-columns: repeat(3, 1fr);
}
.s-note-grid button {
  height: 20px;
  min-height: 20px;
  padding: 0;
  border-radius: 3px;
  font:
    13px/1 Arial,
    sans-serif;
  background: #23202a;
  border-color: #39323f;
}
.s-pos-grid button::after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9b8aaa;
}
.s-note-grid button[aria-pressed="true"] {
  background: #67517e;
  color: #fff;
  border-color: #d6b2f5;
}
.s-pos-grid button[aria-pressed="true"]::after {
  width: 6px;
  height: 6px;
  background: #eedfff;
}
.s-note-bottom {
  display: flex;
  gap: 12px;
  align-items: end;
}
.s-note-bottom > .s-field {
  flex: 1;
}
.s-hand {
  margin: 0;
  border: 0;
  padding: 0;
  gap: 2px;
  min-width: 0;
}
.s-hand legend {
  margin-bottom: 5px;
}
.s-hand button {
  width: 29px;
  height: 34px;
  min-height: 30px;
  padding: 0;
  border-radius: 5px;
}
.s-note-buttons {
  display: flex;
  gap: 5px;
}
.s-note-buttons button {
  min-height: 32px;
  font-size: 12px;
  padding: 4px 9px;
}
.s-note-buttons button:first-child {
  flex: 1;
}
.s-feedback {
  margin: 0 0 12px;
  padding: 9px 13px;
  border-radius: 8px;
  border: 1px solid #483858;
  background: #211928;
  color: #e5d7ef;
  font-size: 13px;
  line-height: 1.5;
}
.s-feedback[data-tone="error"] {
  border-color: #834451;
  color: #ffd4dc;
  background: #341e25;
}
.s-feedback a {
  color: #e2c6ff;
  font-weight: 650;
}
.s-dialog {
  width: min(420px, calc(100vw - 30px));
  background: #1c1723f5;
  border: 1px solid #594665;
  border-radius: 17px;
  padding: 24px;
  box-shadow: 0 20px 80px #0008;
}
.s-dialog::backdrop {
  background: #050309ae;
  backdrop-filter: blur(6px);
}
.s-dialog form {
  display: grid;
  gap: 15px;
}
.s-dialog h2 {
  font-size: 23px;
  letter-spacing: -0.04em;
  font-weight: 580;
}
.s-dialog p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--s-muted);
}
.s-dialog .s-fine {
  font-size: 11px;
}
.s-dialog .s-actions {
  justify-content: flex-end;
}
.s-wrap [hidden],
.s-dialog [hidden] {
  display: none !important;
}
.s-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 930px) {
  .s-wrap {
    padding: 24px 18px 45px;
  }
  .s-workspace {
    grid-template-columns: 222px minmax(0, 1fr);
    gap: 11px;
  }
  .s-heading {
    gap: 10px;
  }
  .s-heading > .s-actions button {
    font-size: 11px;
    padding: 7px 9px;
  }
  .s-edit-body {
    grid-template-columns: minmax(0, 1fr) 224px;
  }
  .s-sequence {
    padding: 13px;
  }
  .s-note-tools {
    padding: 12px;
  }
  .s-stage-helper {
    display: none;
  }
}
@media (max-width: 650px) {
  .s-wrap {
    padding: 20px 12px 35px;
  }
  .s-heading {
    align-items: start;
    flex-direction: column;
    margin-bottom: 15px;
    gap: 12px;
  }
  .s-heading > .s-actions {
    width: 100%;
  }
  .s-heading > .s-actions button {
    flex: 1;
    min-height: 36px;
    white-space: nowrap;
  }
  .s-heading > .s-actions i {
    width: 14px;
    height: 14px;
  }
  .s-workspace {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .s-source {
    display: grid;
    grid-template-columns: 32% 1fr;
    align-items: start;
  }
  .s-source .s-sectionhead {
    grid-column: 1/-1;
  }
  .s-drop {
    margin: 12px 0 12px 12px;
    min-height: 118px;
    padding: 8px 6px;
  }
  .s-drop b,
  .s-drop small {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
  .s-drop b {
    font-size: 12px;
  }
  .s-options {
    padding: 12px;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
  }
  .s-options .s-field:has(#difficulty),
  .s-options details {
    grid-column: 1/-1;
  }
  .s-options .s-primary,
  .s-options .s-demo {
    grid-column: 1/-1;
  }
  .s-sectionhead {
    min-height: 43px;
    padding: 10px 13px;
  }
  .s-stage {
    min-height: 245px;
  }
  .s-transport {
    padding: 10px;
    gap: 7px;
  }
  .s-wrap .s-mode {
    padding: 4px 6px;
    font-size: 11px;
  }
  .s-wrap .s-play {
    width: 33px;
    height: 33px;
    min-height: 33px;
  }
  .s-transport-name strong {
    font-size: 12px;
  }
  .s-transport-name > span {
    font-size: 10px;
  }
  .s-clock {
    font-size: 11px;
  }
  .s-clock small {
    font-size: 10px;
  }
  .s-wave {
    height: 31px;
    margin: 0 10px 10px;
  }
  .s-editor {
    margin-top: 12px;
  }
  .s-edit-body {
    grid-template-columns: 1fr;
  }
  .s-note-tools {
    border-left: 0;
    border-top: 1px solid var(--s-line);
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .s-note-head,
  .s-note-grid {
    grid-column: 1/-1;
  }
  .s-note-grid {
    max-width: 330px;
  }
  .s-note-grid button {
    height: 29px;
    min-height: 29px;
  }
  .s-note-bottom {
    gap: 6px;
  }
  .s-wrap .s-dot {
    width: 17px;
    height: 17px;
    min-height: 17px;
    font-size: 12px;
  }
  .s-sequence-head {
    gap: 6px;
  }
  .s-stage-info {
    left: 10px;
    top: 10px;
    font-size: 10px;
  }
}
@media (max-width: 370px) {
  .s-heading > .s-actions button {
    font-size: 10px;
    gap: 4px;
    padding: 5px;
  }
  .s-mode span,
  .s-wrap .s-clock small {
    display: none;
  }
  .s-note-tools {
    grid-template-columns: 1fr;
  }
  .s-source {
    grid-template-columns: 30% 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .s-wrap button,
  .s-dialog button {
    transition: none;
  }
  .s-wrap button:enabled:active,
  .s-dialog button:enabled:active {
    transform: none;
  }
}

.s-wrap .lb-glass,
.s-dialog .lb-glass {
  --glass-r: 10px;
  transform: translate(var(--gel-x, 0px), var(--gel-y, 0px))
    scale(var(--gel-w, 1), var(--gel-h, 1));
}
.s-wrap .lb-glass:enabled:active,
.s-dialog .lb-glass:enabled:active {
  transform: translate(var(--gel-x, 0px), var(--gel-y, 0px))
    scale(var(--gel-w, 1), var(--gel-h, 1));
}
.s-cover-row,
.s-pub-track {
  display: flex;
  align-items: center;
  gap: 12px;
}
.s-cover-row {
  grid-column: 1/-1;
  padding: 1px 0 11px;
  border-bottom: 1px solid var(--s-line);
}
.s-cover-row img,
.s-pub-track img {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 7px;
  box-shadow: 0 0 0 1px #bd95df40;
  object-fit: cover;
  background: #1f1729;
}
.s-cover-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.s-cover-row strong {
  font-size: 13px;
}
.s-cover-row small,
.s-cover-properties small {
  color: var(--s-muted);
  font-size: 11px;
  line-height: 1.4;
}
.s-cover-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.s-cover-row #cover-edit {
  justify-self: start;
  padding: 2px 0;
  min-height: 23px;
  border: 0;
  background: none;
  color: var(--s-violet);
  font-size: 12px;
}
.s-cover-row #cover-edit:hover {
  text-decoration: underline;
}
.s-cover-dialog {
  width: min(640px, calc(100vw - 26px));
  max-height: calc(100dvh - 30px);
  overflow: auto;
}
.s-cover-dialog form {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px 21px;
  align-items: start;
}
.s-cover-dialog h2,
.s-cover-result {
  grid-column: 1/-1;
}
.s-cover-dialog canvas {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  border: 1px solid #564261;
  background: #19131d;
  border-radius: 9px;
  touch-action: none;
  cursor: grab;
}
.s-cover-dialog canvas:active {
  cursor: grabbing;
}
.s-cover-properties {
  min-width: 0;
  display: grid;
  gap: 9px;
}
.s-cover-properties .s-field {
  margin-top: 2px;
}
.s-cover-properties #cover-source {
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.s-cover-file {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 37px;
  border-radius: 8px;
  border: 1px solid #896ba3;
  background: #34273e;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
}
.s-cover-file input {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.s-cover-file:focus-within {
  outline: 2px solid #c4a2ff;
  outline-offset: 3px;
}
.s-cover-result {
  border-top: 1px solid var(--s-line);
  padding-top: 13px;
}
.s-cover-result #cover-error {
  color: #ffb5c3;
}
.s-cover-result #cover-error:not(:empty) {
  margin-bottom: 12px;
}
.s-cover-properties #cover-reset {
  font-size: 12px;
  min-height: 31px;
}
.s-clip {
  padding: 0 16px 12px;
}
.s-clip summary {
  color: #d4c7de;
  cursor: pointer;
  font-size: 12px;
  padding: 3px 0;
  line-height: 1.4;
}
.s-clip output {
  float: right;
  font: 11px var(--s-code);
  color: #bcb0ca;
}
.s-clip-controls {
  display: flex;
  gap: 6px;
  align-items: end;
  flex-wrap: wrap;
  margin: 10px 0 0;
}
.s-clip-controls .s-field {
  width: 85px;
}
.s-clip-controls button {
  font-size: 11px;
  min-height: 34px;
}
.s-clip-controls #clip-listen {
  color: #dcc3ff;
  background: #302238;
}
.s-score {
  display: grid;
  gap: 2px;
  text-align: right;
  font-size: 10px;
  white-space: pre-line;
}
@media (max-width: 650px) {
  .s-cover-row {
    padding: 0 0 8px;
    gap: 8px;
  }
  .s-cover-row img {
    width: 44px;
    height: 44px;
  }
  .s-cover-row small {
    display: none;
  }
  .s-cover-row #cover-edit {
    font-size: 11px;
    min-height: 23px;
  }
  .s-clip {
    padding: 0 10px 9px;
  }
  .s-cover-row strong {
    font-size: 12px;
  }
}
@media (max-width: 520px) {
  .s-cover-dialog {
    padding: 16px;
  }
  .s-cover-dialog form {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .s-cover-dialog canvas {
    width: min(48vw, 215px);
    justify-self: center;
  }
  .s-cover-properties {
    grid-template-columns: 1fr 1fr;
    gap: 9px 12px;
  }
  .s-cover-properties #cover-source,
  .s-cover-properties > small {
    grid-column: 1/-1;
  }
  .s-cover-properties > small {
    margin-top: -4px;
  }
  .s-cover-file {
    grid-column: 1/-1;
  }
  .s-cover-properties .s-field {
    min-width: 0;
  }
  .s-cover-properties #cover-reset {
    align-self: center;
    font-size: 11px;
  }
  .s-clip-controls button {
    padding-inline: 7px;
  }
  .s-clip-controls .s-field {
    width: 76px;
  }
}
